genaicode 0.7.0 â 0.8.1
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/cli/cli-params.d.ts +1 -1
- package/dist/cli/cli-params.js +1 -1
- package/dist/cli/cli-params.js.map +1 -1
- package/dist/eval/codegen-summary.test.js +3 -1
- package/dist/eval/codegen-summary.test.js.map +1 -1
- package/dist/eval/data/current-prompt.d.ts +0 -17
- package/dist/eval/data/current-prompt.js +23 -23
- package/dist/eval/data/current-prompt.js.map +1 -1
- package/dist/eval/prompt-debug.test.js +6 -1
- package/dist/eval/prompt-debug.test.js.map +1 -1
- package/dist/files/read-files.d.ts +27 -4
- package/dist/files/read-files.js +20 -5
- package/dist/files/read-files.js.map +1 -1
- package/dist/files/read-files.test.js +4 -4
- package/dist/files/read-files.test.js.map +1 -1
- package/dist/files/source-code-tree.d.ts +11 -6
- package/dist/files/source-code-tree.js +45 -2
- package/dist/files/source-code-tree.js.map +1 -1
- package/dist/main/codegen-types.d.ts +1 -1
- package/dist/main/config-lib.js +20 -2
- package/dist/main/config-lib.js.map +1 -1
- package/dist/main/config.js +4 -28
- package/dist/main/config.js.map +1 -1
- package/dist/main/interactive/codegen-interactive.test.js +1 -1
- package/dist/main/interactive/codegen-interactive.test.js.map +1 -1
- package/dist/main/plugin-loader.d.ts +5 -0
- package/dist/main/plugin-loader.js +53 -0
- package/dist/main/plugin-loader.js.map +1 -1
- package/dist/main/ui/frontend/assets/index-QOcNx5ac.js +812 -0
- package/dist/main/ui/frontend/index.html +1 -1
- package/dist/project-profiles/detection.d.ts +40 -0
- package/dist/project-profiles/detection.js +131 -0
- package/dist/project-profiles/detection.js.map +1 -0
- package/dist/project-profiles/index.d.ts +35 -0
- package/dist/project-profiles/index.js +72 -0
- package/dist/project-profiles/index.js.map +1 -0
- package/dist/project-profiles/profiles/golang.d.ts +65 -0
- package/dist/project-profiles/profiles/golang.js +208 -0
- package/dist/project-profiles/profiles/golang.js.map +1 -0
- package/dist/project-profiles/profiles/java-maven.d.ts +80 -0
- package/dist/project-profiles/profiles/java-maven.js +165 -0
- package/dist/project-profiles/profiles/java-maven.js.map +1 -0
- package/dist/project-profiles/profiles/javascript-npm.d.ts +40 -0
- package/dist/project-profiles/profiles/javascript-npm.js +118 -0
- package/dist/project-profiles/profiles/javascript-npm.js.map +1 -0
- package/dist/project-profiles/profiles/javascript-react.d.ts +46 -0
- package/dist/project-profiles/profiles/javascript-react.js +147 -0
- package/dist/project-profiles/profiles/javascript-react.js.map +1 -0
- package/dist/project-profiles/profiles/python-django.d.ts +58 -0
- package/dist/project-profiles/profiles/python-django.js +200 -0
- package/dist/project-profiles/profiles/python-django.js.map +1 -0
- package/dist/project-profiles/types.d.ts +122 -0
- package/dist/project-profiles/types.js +77 -0
- package/dist/project-profiles/types.js.map +1 -0
- package/dist/prompt/function-defs/set-summaries.js +20 -1
- package/dist/prompt/function-defs/set-summaries.js.map +1 -1
- package/dist/prompt/prompt-codegen.test.js +5 -4
- package/dist/prompt/prompt-codegen.test.js.map +1 -1
- package/dist/prompt/prompt-service-ask-question.test.js +2 -0
- package/dist/prompt/prompt-service-ask-question.test.js.map +1 -1
- package/dist/prompt/prompt-service.js +13 -106
- package/dist/prompt/prompt-service.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/cancel-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.d.ts +2 -0
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.js +58 -0
- package/dist/prompt/steps/step-ask-question/handlers/code-generation.js.map +1 -0
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js +1 -3
- package/dist/prompt/steps/step-ask-question/handlers/confirm-code-generation.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/context-optimization.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/default-action.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/default-action.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js +0 -6
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message-with-image.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js +0 -2
- package/dist/prompt/steps/step-ask-question/handlers/handle-send-message.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js +0 -3
- package/dist/prompt/steps/step-ask-question/handlers/remove-files-from-context.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js +2 -5
- package/dist/prompt/steps/step-ask-question/handlers/request-files-content.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js +0 -3
- package/dist/prompt/steps/step-ask-question/handlers/request-permissions.js.map +1 -1
- package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +4 -3
- package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +2 -3
- package/dist/prompt/steps/step-ask-question/step-ask-question.js +20 -6
- package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
- package/dist/prompt/steps/step-codegen-planning.js +1 -1
- package/dist/prompt/steps/step-codegen-planning.js.map +1 -1
- package/dist/prompt/steps/step-codegen-summary.d.ts +7 -0
- package/dist/prompt/steps/step-codegen-summary.js +106 -0
- package/dist/prompt/steps/step-codegen-summary.js.map +1 -0
- package/dist/prompt/steps/step-codegen-summary.test.d.ts +1 -0
- package/dist/prompt/steps/step-codegen-summary.test.js +136 -0
- package/dist/prompt/steps/step-codegen-summary.test.js.map +1 -0
- package/dist/prompt/steps/step-context-optimization.js +159 -71
- package/dist/prompt/steps/step-context-optimization.js.map +1 -1
- package/dist/prompt/steps/step-context-optimization.test.js +24 -5
- package/dist/prompt/steps/step-context-optimization.test.js.map +1 -1
- package/dist/prompt/steps/step-ensure-context.d.ts +15 -0
- package/dist/prompt/steps/step-ensure-context.js +102 -0
- package/dist/prompt/steps/step-ensure-context.js.map +1 -0
- package/dist/prompt/steps/step-ensure-context.test.d.ts +1 -0
- package/dist/prompt/steps/step-ensure-context.test.js +242 -0
- package/dist/prompt/steps/step-ensure-context.test.js.map +1 -0
- package/dist/prompt/steps/step-summarization.d.ts +2 -1
- package/dist/prompt/steps/step-summarization.js +44 -11
- package/dist/prompt/steps/step-summarization.js.map +1 -1
- package/dist/prompt/steps/steps-types.d.ts +2 -0
- package/dist/prompt/steps/steps-types.js.map +1 -1
- package/dist/prompt/systemprompt.test.js +2 -2
- package/dist/prompt/systemprompt.test.js.map +1 -1
- package/package.json +6 -2
- package/dist/main/ui/frontend/assets/index-5e3ykhy6.js +0 -808
|
@@ -1,808 +0,0 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function yh(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nd={exports:{}},D={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react.production.min.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var so=Symbol.for("react.element"),vh=Symbol.for("react.portal"),wh=Symbol.for("react.fragment"),xh=Symbol.for("react.strict_mode"),Sh=Symbol.for("react.profiler"),kh=Symbol.for("react.provider"),Eh=Symbol.for("react.context"),Ch=Symbol.for("react.forward_ref"),_h=Symbol.for("react.suspense"),Ph=Symbol.for("react.memo"),Th=Symbol.for("react.lazy"),aa=Symbol.iterator;function Rh(e){return e===null||typeof e!="object"?null:(e=aa&&e[aa]||e["@@iterator"],typeof e=="function"?e:null)}var rd={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},od=Object.assign,id={};function or(e,t,n){this.props=e,this.context=t,this.refs=id,this.updater=n||rd}or.prototype.isReactComponent={};or.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};or.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ld(){}ld.prototype=or.prototype;function Zs(e,t,n){this.props=e,this.context=t,this.refs=id,this.updater=n||rd}var eu=Zs.prototype=new ld;eu.constructor=Zs;od(eu,or.prototype);eu.isPureReactComponent=!0;var ca=Array.isArray,sd=Object.prototype.hasOwnProperty,tu={current:null},ud={key:!0,ref:!0,__self:!0,__source:!0};function ad(e,t,n){var r,o={},i=null,l=null;if(t!=null)for(r in t.ref!==void 0&&(l=t.ref),t.key!==void 0&&(i=""+t.key),t)sd.call(t,r)&&!ud.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var u=Array(s),a=0;a<s;a++)u[a]=arguments[a+2];o.children=u}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:so,type:e,key:i,ref:l,props:o,_owner:tu.current}}function jh(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function nu(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function Nh(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var da=/\/+/g;function ll(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Nh(""+e.key):t.toString(36)}function Lo(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(i){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case so:case vh:l=!0}}if(l)return l=e,o=o(l),e=r===""?"."+ll(l,0):r,ca(o)?(n="",e!=null&&(n=e.replace(da,"$&/")+"/"),Lo(o,t,n,"",function(a){return a})):o!=null&&(nu(o)&&(o=jh(o,n+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(da,"$&/")+"/")+e)),t.push(o)),1;if(l=0,r=r===""?".":r+":",ca(e))for(var s=0;s<e.length;s++){i=e[s];var u=r+ll(i,s);l+=Lo(i,t,n,u,o)}else if(u=Rh(e),typeof u=="function")for(e=u.call(e),s=0;!(i=e.next()).done;)i=i.value,u=r+ll(i,s++),l+=Lo(i,t,n,u,o);else if(i==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function go(e,t,n){if(e==null)return e;var r=[],o=0;return Lo(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Oh(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pe={current:null},zo={transition:null},$h={ReactCurrentDispatcher:Pe,ReactCurrentBatchConfig:zo,ReactCurrentOwner:tu};function cd(){throw Error("act(...) is not supported in production builds of React.")}D.Children={map:go,forEach:function(e,t,n){go(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return go(e,function(){t++}),t},toArray:function(e){return go(e,function(t){return t})||[]},only:function(e){if(!nu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=or;D.Fragment=wh;D.Profiler=Sh;D.PureComponent=Zs;D.StrictMode=xh;D.Suspense=_h;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$h;D.act=cd;D.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=od({},e.props),o=e.key,i=e.ref,l=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,l=tu.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(u in t)sd.call(t,u)&&!ud.hasOwnProperty(u)&&(r[u]=t[u]===void 0&&s!==void 0?s[u]:t[u])}var u=arguments.length-2;if(u===1)r.children=n;else if(1<u){s=Array(u);for(var a=0;a<u;a++)s[a]=arguments[a+2];r.children=s}return{$$typeof:so,type:e.type,key:o,ref:i,props:r,_owner:l}};D.createContext=function(e){return e={$$typeof:Eh,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:kh,_context:e},e.Consumer=e};D.createElement=ad;D.createFactory=function(e){var t=ad.bind(null,e);return t.type=e,t};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:Ch,render:e}};D.isValidElement=nu;D.lazy=function(e){return{$$typeof:Th,_payload:{_status:-1,_result:e},_init:Oh}};D.memo=function(e,t){return{$$typeof:Ph,type:e,compare:t===void 0?null:t}};D.startTransition=function(e){var t=zo.transition;zo.transition={};try{e()}finally{zo.transition=t}};D.unstable_act=cd;D.useCallback=function(e,t){return Pe.current.useCallback(e,t)};D.useContext=function(e){return Pe.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return Pe.current.useDeferredValue(e)};D.useEffect=function(e,t){return Pe.current.useEffect(e,t)};D.useId=function(){return Pe.current.useId()};D.useImperativeHandle=function(e,t,n){return Pe.current.useImperativeHandle(e,t,n)};D.useInsertionEffect=function(e,t){return Pe.current.useInsertionEffect(e,t)};D.useLayoutEffect=function(e,t){return Pe.current.useLayoutEffect(e,t)};D.useMemo=function(e,t){return Pe.current.useMemo(e,t)};D.useReducer=function(e,t,n){return Pe.current.useReducer(e,t,n)};D.useRef=function(e){return Pe.current.useRef(e)};D.useState=function(e){return Pe.current.useState(e)};D.useSyncExternalStore=function(e,t,n){return Pe.current.useSyncExternalStore(e,t,n)};D.useTransition=function(){return Pe.current.useTransition()};D.version="18.3.1";nd.exports=D;var O=nd.exports;const De=yh(O);var dd={exports:{}},be={},fd={exports:{}},pd={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* scheduler.production.min.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/(function(e){function t(j,$){var A=j.length;j.push($);e:for(;0<A;){var V=A-1>>>1,W=j[V];if(0<o(W,$))j[V]=$,j[A]=W,A=V;else break e}}function n(j){return j.length===0?null:j[0]}function r(j){if(j.length===0)return null;var $=j[0],A=j.pop();if(A!==$){j[0]=A;e:for(var V=0,W=j.length,Xt=W>>>1;V<Xt;){var Xe=2*(V+1)-1,Tt=j[Xe],Le=Xe+1,ht=j[Le];if(0>o(Tt,A))Le<W&&0>o(ht,Tt)?(j[V]=ht,j[Le]=A,V=Le):(j[V]=Tt,j[Xe]=A,V=Xe);else if(Le<W&&0>o(ht,A))j[V]=ht,j[Le]=A,V=Le;else break e}}return $}function o(j,$){var A=j.sortIndex-$.sortIndex;return A!==0?A:j.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var u=[],a=[],c=1,f=null,m=3,v=!1,y=!1,w=!1,E=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(j){for(var $=n(a);$!==null;){if($.callback===null)r(a);else if($.startTime<=j)r(a),$.sortIndex=$.expirationTime,t(u,$);else break;$=n(a)}}function x(j){if(w=!1,h(j),!y)if(n(u)!==null)y=!0,M(k);else{var $=n(a);$!==null&&we(x,$.startTime-j)}}function k(j,$){y=!1,w&&(w=!1,p(R),R=-1),v=!0;var A=m;try{for(h($),f=n(u);f!==null&&(!(f.expirationTime>$)||j&&!ae());){var V=f.callback;if(typeof V=="function"){f.callback=null,m=f.priorityLevel;var W=V(f.expirationTime<=$);$=e.unstable_now(),typeof W=="function"?f.callback=W:f===n(u)&&r(u),h($)}else r(u);f=n(u)}if(f!==null)var Xt=!0;else{var Xe=n(a);Xe!==null&&we(x,Xe.startTime-$),Xt=!1}return Xt}finally{f=null,m=A,v=!1}}var _=!1,C=null,R=-1,B=5,z=-1;function ae(){return!(e.unstable_now()-z<B)}function he(){if(C!==null){var j=e.unstable_now();z=j;var $=!0;try{$=C(!0,j)}finally{$?oe():(_=!1,C=null)}}else _=!1}var oe;if(typeof d=="function")oe=function(){d(he)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,K=I.port2;I.port1.onmessage=he,oe=function(){K.postMessage(null)}}else oe=function(){E(he,0)};function M(j){C=j,_||(_=!0,oe())}function we(j,$){R=E(function(){j(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(j){j.callback=null},e.unstable_continueExecution=function(){y||v||(y=!0,M(k))},e.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<j?Math.floor(1e3/j):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(j){switch(m){case 1:case 2:case 3:var $=3;break;default:$=m}var A=m;m=$;try{return j()}finally{m=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(j,$){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var A=m;m=j;try{return $()}finally{m=A}},e.unstable_scheduleCallback=function(j,$,A){var V=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?V+A:V):A=V,j){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=A+W,j={id:c++,callback:$,priorityLevel:j,startTime:A,expirationTime:W,sortIndex:-1},A>V?(j.sortIndex=A,t(a,j),n(u)===null&&j===n(a)&&(w?(p(R),R=-1):w=!0,we(x,A-V))):(j.sortIndex=W,t(u,j),y||v||(y=!0,M(k))),j},e.unstable_shouldYield=ae,e.unstable_wrapCallback=function(j){var $=m;return function(){var A=m;m=$;try{return j.apply(this,arguments)}finally{m=A}}}})(pd);fd.exports=pd;var Ih=fd.exports;/**
|
|
18
|
-
* @license React
|
|
19
|
-
* react-dom.production.min.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Ah=O,He=Ih;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var hd=new Set,Ur={};function xn(e,t){Qn(e,t),Qn(e+"Capture",t)}function Qn(e,t){for(Ur[e]=t,e=0;e<t.length;e++)hd.add(t[e])}var kt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vl=Object.prototype.hasOwnProperty,Lh=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,fa={},pa={};function zh(e){return Vl.call(pa,e)?!0:Vl.call(fa,e)?!1:Lh.test(e)?pa[e]=!0:(fa[e]=!0,!1)}function Fh(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Dh(e,t,n,r){if(t===null||typeof t>"u"||Fh(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Te(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var ye={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ye[e]=new Te(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ye[t]=new Te(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ye[e]=new Te(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ye[e]=new Te(e,2,!1,e,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".split(" ").forEach(function(e){ye[e]=new Te(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ye[e]=new Te(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ye[e]=new Te(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ye[e]=new Te(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ye[e]=new Te(e,5,!1,e.toLowerCase(),null,!1,!1)});var ru=/[\-:]([a-z])/g;function ou(e){return e[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".split(" ").forEach(function(e){var t=e.replace(ru,ou);ye[t]=new Te(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ru,ou);ye[t]=new Te(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ru,ou);ye[t]=new Te(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ye[e]=new Te(e,1,!1,e.toLowerCase(),null,!1,!1)});ye.xlinkHref=new Te("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ye[e]=new Te(e,1,!1,e.toLowerCase(),null,!0,!0)});function iu(e,t,n,r){var o=ye.hasOwnProperty(t)?ye[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Dh(t,n,o,r)&&(n=null),r||o===null?zh(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=n===null?o.type===3?!1:"":n:(t=o.attributeName,r=o.attributeNamespace,n===null?e.removeAttribute(t):(o=o.type,n=o===3||o===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var Pt=Ah.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,yo=Symbol.for("react.element"),Tn=Symbol.for("react.portal"),Rn=Symbol.for("react.fragment"),lu=Symbol.for("react.strict_mode"),Wl=Symbol.for("react.profiler"),md=Symbol.for("react.provider"),gd=Symbol.for("react.context"),su=Symbol.for("react.forward_ref"),Ql=Symbol.for("react.suspense"),Kl=Symbol.for("react.suspense_list"),uu=Symbol.for("react.memo"),$t=Symbol.for("react.lazy"),yd=Symbol.for("react.offscreen"),ha=Symbol.iterator;function dr(e){return e===null||typeof e!="object"?null:(e=ha&&e[ha]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,sl;function _r(e){if(sl===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);sl=t&&t[1]||""}return`
|
|
26
|
-
`+sl+e}var ul=!1;function al(e,t){if(!e||ul)return"";ul=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(a){var r=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){r=a}e.call(t.prototype)}else{try{throw Error()}catch(a){r=a}e()}}catch(a){if(a&&r&&typeof a.stack=="string"){for(var o=a.stack.split(`
|
|
27
|
-
`),i=r.stack.split(`
|
|
28
|
-
`),l=o.length-1,s=i.length-1;1<=l&&0<=s&&o[l]!==i[s];)s--;for(;1<=l&&0<=s;l--,s--)if(o[l]!==i[s]){if(l!==1||s!==1)do if(l--,s--,0>s||o[l]!==i[s]){var u=`
|
|
29
|
-
`+o[l].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}while(1<=l&&0<=s);break}}}finally{ul=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_r(e):""}function Mh(e){switch(e.tag){case 5:return _r(e.type);case 16:return _r("Lazy");case 13:return _r("Suspense");case 19:return _r("SuspenseList");case 0:case 2:case 15:return e=al(e.type,!1),e;case 11:return e=al(e.type.render,!1),e;case 1:return e=al(e.type,!0),e;default:return""}}function Gl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Rn:return"Fragment";case Tn:return"Portal";case Wl:return"Profiler";case lu:return"StrictMode";case Ql:return"Suspense";case Kl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case gd:return(e.displayName||"Context")+".Consumer";case md:return(e._context.displayName||"Context")+".Provider";case su:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case uu:return t=e.displayName||null,t!==null?t:Gl(e.type)||"Memo";case $t:t=e._payload,e=e._init;try{return Gl(e(t))}catch{}}return null}function Bh(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Gl(t);case 8:return t===lu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Kt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function vd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Uh(e){var t=vd(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vo(e){e._valueTracker||(e._valueTracker=Uh(e))}function wd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=vd(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Yl(e,t){var n=t.checked;return ee({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function ma(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Kt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function xd(e,t){t=t.checked,t!=null&&iu(e,"checked",t,!1)}function ql(e,t){xd(e,t);var n=Kt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Jl(e,t.type,n):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,Kt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ga(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Jl(e,t,n){(t!=="number"||ei(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Pr=Array.isArray;function Bn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Kt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,r&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Xl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return ee({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ya(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(Pr(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Kt(n)}}function Sd(e,t){var n=Kt(t.value),r=Kt(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function va(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function kd(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Zl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?kd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var wo,Ed=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,o)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(wo=wo||document.createElement("div"),wo.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=wo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nr={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},Hh=["Webkit","ms","Moz","O"];Object.keys(Nr).forEach(function(e){Hh.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Nr[t]=Nr[e]})});function Cd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Nr.hasOwnProperty(e)&&Nr[e]?(""+t).trim():t+"px"}function _d(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Cd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var bh=ee({menuitem:!0},{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});function es(e,t){if(t){if(bh[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function ts(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 ns=null;function au(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rs=null,Un=null,Hn=null;function wa(e){if(e=co(e)){if(typeof rs!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Li(t),rs(e.stateNode,e.type,t))}}function Pd(e){Un?Hn?Hn.push(e):Hn=[e]:Un=e}function Td(){if(Un){var e=Un,t=Hn;if(Hn=Un=null,wa(e),t)for(e=0;e<t.length;e++)wa(t[e])}}function Rd(e,t){return e(t)}function jd(){}var cl=!1;function Nd(e,t,n){if(cl)return e(t,n);cl=!0;try{return Rd(e,t,n)}finally{cl=!1,(Un!==null||Hn!==null)&&(jd(),Td())}}function br(e,t){var n=e.stateNode;if(n===null)return null;var r=Li(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var os=!1;if(kt)try{var fr={};Object.defineProperty(fr,"passive",{get:function(){os=!0}}),window.addEventListener("test",fr,fr),window.removeEventListener("test",fr,fr)}catch{os=!1}function Vh(e,t,n,r,o,i,l,s,u){var a=Array.prototype.slice.call(arguments,3);try{t.apply(n,a)}catch(c){this.onError(c)}}var Or=!1,ti=null,ni=!1,is=null,Wh={onError:function(e){Or=!0,ti=e}};function Qh(e,t,n,r,o,i,l,s,u){Or=!1,ti=null,Vh.apply(Wh,arguments)}function Kh(e,t,n,r,o,i,l,s,u){if(Qh.apply(this,arguments),Or){if(Or){var a=ti;Or=!1,ti=null}else throw Error(P(198));ni||(ni=!0,is=a)}}function Sn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Od(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function xa(e){if(Sn(e)!==e)throw Error(P(188))}function Gh(e){var t=e.alternate;if(!t){if(t=Sn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return xa(o),e;if(i===r)return xa(o),t;i=i.sibling}throw Error(P(188))}if(n.return!==r.return)n=o,r=i;else{for(var l=!1,s=o.child;s;){if(s===n){l=!0,n=o,r=i;break}if(s===r){l=!0,r=o,n=i;break}s=s.sibling}if(!l){for(s=i.child;s;){if(s===n){l=!0,n=i,r=o;break}if(s===r){l=!0,r=i,n=o;break}s=s.sibling}if(!l)throw Error(P(189))}}if(n.alternate!==r)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function $d(e){return e=Gh(e),e!==null?Id(e):null}function Id(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Id(e);if(t!==null)return t;e=e.sibling}return null}var Ad=He.unstable_scheduleCallback,Sa=He.unstable_cancelCallback,Yh=He.unstable_shouldYield,qh=He.unstable_requestPaint,ne=He.unstable_now,Jh=He.unstable_getCurrentPriorityLevel,cu=He.unstable_ImmediatePriority,Ld=He.unstable_UserBlockingPriority,ri=He.unstable_NormalPriority,Xh=He.unstable_LowPriority,zd=He.unstable_IdlePriority,Oi=null,ft=null;function Zh(e){if(ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(Oi,e,void 0,(e.current.flags&128)===128)}catch{}}var rt=Math.clz32?Math.clz32:nm,em=Math.log,tm=Math.LN2;function nm(e){return e>>>=0,e===0?32:31-(em(e)/tm|0)|0}var xo=64,So=4194304;function Tr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function oi(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Tr(s):(i&=l,i!==0&&(r=Tr(i)))}else l=n&~o,l!==0?r=Tr(l):i!==0&&(r=Tr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-rt(t),o=1<<n,r|=e[n],t&=~o;return r}function rm(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function om(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var l=31-rt(i),s=1<<l,u=o[l];u===-1?(!(s&n)||s&r)&&(o[l]=rm(s,t)):u<=t&&(e.expiredLanes|=s),i&=~s}}function ls(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Fd(){var e=xo;return xo<<=1,!(xo&4194240)&&(xo=64),e}function dl(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function uo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function im(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-rt(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function du(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-rt(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var b=0;function Dd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Md,fu,Bd,Ud,Hd,ss=!1,ko=[],Dt=null,Mt=null,Bt=null,Vr=new Map,Wr=new Map,At=[],lm="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".split(" ");function ka(e,t){switch(e){case"focusin":case"focusout":Dt=null;break;case"dragenter":case"dragleave":Mt=null;break;case"mouseover":case"mouseout":Bt=null;break;case"pointerover":case"pointerout":Vr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Wr.delete(t.pointerId)}}function pr(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=co(t),t!==null&&fu(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function sm(e,t,n,r,o){switch(t){case"focusin":return Dt=pr(Dt,e,t,n,r,o),!0;case"dragenter":return Mt=pr(Mt,e,t,n,r,o),!0;case"mouseover":return Bt=pr(Bt,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Vr.set(i,pr(Vr.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,Wr.set(i,pr(Wr.get(i)||null,e,t,n,r,o)),!0}return!1}function bd(e){var t=nn(e.target);if(t!==null){var n=Sn(t);if(n!==null){if(t=n.tag,t===13){if(t=Od(n),t!==null){e.blockedOn=t,Hd(e.priority,function(){Bd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=us(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ns=r,n.target.dispatchEvent(r),ns=null}else return t=co(n),t!==null&&fu(t),e.blockedOn=n,!1;t.shift()}return!0}function Ea(e,t,n){Fo(e)&&n.delete(t)}function um(){ss=!1,Dt!==null&&Fo(Dt)&&(Dt=null),Mt!==null&&Fo(Mt)&&(Mt=null),Bt!==null&&Fo(Bt)&&(Bt=null),Vr.forEach(Ea),Wr.forEach(Ea)}function hr(e,t){e.blockedOn===t&&(e.blockedOn=null,ss||(ss=!0,He.unstable_scheduleCallback(He.unstable_NormalPriority,um)))}function Qr(e){function t(o){return hr(o,e)}if(0<ko.length){hr(ko[0],e);for(var n=1;n<ko.length;n++){var r=ko[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Dt!==null&&hr(Dt,e),Mt!==null&&hr(Mt,e),Bt!==null&&hr(Bt,e),Vr.forEach(t),Wr.forEach(t),n=0;n<At.length;n++)r=At[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<At.length&&(n=At[0],n.blockedOn===null);)bd(n),n.blockedOn===null&&At.shift()}var bn=Pt.ReactCurrentBatchConfig,ii=!0;function am(e,t,n,r){var o=b,i=bn.transition;bn.transition=null;try{b=1,pu(e,t,n,r)}finally{b=o,bn.transition=i}}function cm(e,t,n,r){var o=b,i=bn.transition;bn.transition=null;try{b=4,pu(e,t,n,r)}finally{b=o,bn.transition=i}}function pu(e,t,n,r){if(ii){var o=us(e,t,n,r);if(o===null)Sl(e,t,r,li,n),ka(e,r);else if(sm(o,e,t,n,r))r.stopPropagation();else if(ka(e,r),t&4&&-1<lm.indexOf(e)){for(;o!==null;){var i=co(o);if(i!==null&&Md(i),i=us(e,t,n,r),i===null&&Sl(e,t,r,li,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else Sl(e,t,r,null,n)}}var li=null;function us(e,t,n,r){if(li=null,e=au(r),e=nn(e),e!==null)if(t=Sn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Od(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return li=e,null}function Vd(e){switch(e){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 1;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 4;case"message":switch(Jh()){case cu:return 1;case Ld:return 4;case ri:case Xh:return 16;case zd:return 536870912;default:return 16}default:return 16}}var zt=null,hu=null,Do=null;function Wd(){if(Do)return Do;var e,t=hu,n=t.length,r,o="value"in zt?zt.value:zt.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var l=n-e;for(r=1;r<=l&&t[n-r]===o[i-r];r++);return Do=o.slice(e,1<r?1-r:void 0)}function Mo(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Eo(){return!0}function Ca(){return!1}function Ve(e){function t(n,r,o,i,l){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=l,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Eo:Ca,this.isPropagationStopped=Ca,this}return ee(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Eo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Eo)},persist:function(){},isPersistent:Eo}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mu=Ve(ir),ao=ee({},ir,{view:0,detail:0}),dm=Ve(ao),fl,pl,mr,$i=ee({},ao,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mr&&(mr&&e.type==="mousemove"?(fl=e.screenX-mr.screenX,pl=e.screenY-mr.screenY):pl=fl=0,mr=e),fl)},movementY:function(e){return"movementY"in e?e.movementY:pl}}),_a=Ve($i),fm=ee({},$i,{dataTransfer:0}),pm=Ve(fm),hm=ee({},ao,{relatedTarget:0}),hl=Ve(hm),mm=ee({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),gm=Ve(mm),ym=ee({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vm=Ve(ym),wm=ee({},ir,{data:0}),Pa=Ve(wm),xm={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sm={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"},km={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Em(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=km[e])?!!t[e]:!1}function gu(){return Em}var Cm=ee({},ao,{key:function(e){if(e.key){var t=xm[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sm[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gu,charCode:function(e){return e.type==="keypress"?Mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_m=Ve(Cm),Pm=ee({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ta=Ve(Pm),Tm=ee({},ao,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gu}),Rm=Ve(Tm),jm=ee({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),Nm=Ve(jm),Om=ee({},$i,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),$m=Ve(Om),Im=[9,13,27,32],yu=kt&&"CompositionEvent"in window,$r=null;kt&&"documentMode"in document&&($r=document.documentMode);var Am=kt&&"TextEvent"in window&&!$r,Qd=kt&&(!yu||$r&&8<$r&&11>=$r),Ra=" ",ja=!1;function Kd(e,t){switch(e){case"keyup":return Im.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var jn=!1;function Lm(e,t){switch(e){case"compositionend":return Gd(t);case"keypress":return t.which!==32?null:(ja=!0,Ra);case"textInput":return e=t.data,e===Ra&&ja?null:e;default:return null}}function zm(e,t){if(jn)return e==="compositionend"||!yu&&Kd(e,t)?(e=Wd(),Do=hu=zt=null,jn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Qd&&t.locale!=="ko"?null:t.data;default:return null}}var Fm={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 Na(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Fm[e.type]:t==="textarea"}function Yd(e,t,n,r){Pd(r),t=si(t,"onChange"),0<t.length&&(n=new mu("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Ir=null,Kr=null;function Dm(e){sf(e,0)}function Ii(e){var t=$n(e);if(wd(t))return e}function Mm(e,t){if(e==="change")return t}var qd=!1;if(kt){var ml;if(kt){var gl="oninput"in document;if(!gl){var Oa=document.createElement("div");Oa.setAttribute("oninput","return;"),gl=typeof Oa.oninput=="function"}ml=gl}else ml=!1;qd=ml&&(!document.documentMode||9<document.documentMode)}function $a(){Ir&&(Ir.detachEvent("onpropertychange",Jd),Kr=Ir=null)}function Jd(e){if(e.propertyName==="value"&&Ii(Kr)){var t=[];Yd(t,Kr,e,au(e)),Nd(Dm,t)}}function Bm(e,t,n){e==="focusin"?($a(),Ir=t,Kr=n,Ir.attachEvent("onpropertychange",Jd)):e==="focusout"&&$a()}function Um(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ii(Kr)}function Hm(e,t){if(e==="click")return Ii(t)}function bm(e,t){if(e==="input"||e==="change")return Ii(t)}function Vm(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var lt=typeof Object.is=="function"?Object.is:Vm;function Gr(e,t){if(lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!Vl.call(t,o)||!lt(e[o],t[o]))return!1}return!0}function Ia(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Aa(e,t){var n=Ia(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Ia(n)}}function Xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(){for(var e=window,t=ei();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ei(e.document)}return t}function vu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Wm(e){var t=Zd(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Xd(n.ownerDocument.documentElement,n)){if(r!==null&&vu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Aa(n,i);var l=Aa(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Qm=kt&&"documentMode"in document&&11>=document.documentMode,Nn=null,as=null,Ar=null,cs=!1;function La(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cs||Nn==null||Nn!==ei(r)||(r=Nn,"selectionStart"in r&&vu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ar&&Gr(Ar,r)||(Ar=r,r=si(as,"onSelect"),0<r.length&&(t=new mu("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Nn)))}function Co(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var On={animationend:Co("Animation","AnimationEnd"),animationiteration:Co("Animation","AnimationIteration"),animationstart:Co("Animation","AnimationStart"),transitionend:Co("Transition","TransitionEnd")},yl={},ef={};kt&&(ef=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function Ai(e){if(yl[e])return yl[e];if(!On[e])return e;var t=On[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ef)return yl[e]=t[n];return e}var tf=Ai("animationend"),nf=Ai("animationiteration"),rf=Ai("animationstart"),of=Ai("transitionend"),lf=new Map,za="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".split(" ");function Yt(e,t){lf.set(e,t),xn(t,[e])}for(var vl=0;vl<za.length;vl++){var wl=za[vl],Km=wl.toLowerCase(),Gm=wl[0].toUpperCase()+wl.slice(1);Yt(Km,"on"+Gm)}Yt(tf,"onAnimationEnd");Yt(nf,"onAnimationIteration");Yt(rf,"onAnimationStart");Yt("dblclick","onDoubleClick");Yt("focusin","onFocus");Yt("focusout","onBlur");Yt(of,"onTransitionEnd");Qn("onMouseEnter",["mouseout","mouseover"]);Qn("onMouseLeave",["mouseout","mouseover"]);Qn("onPointerEnter",["pointerout","pointerover"]);Qn("onPointerLeave",["pointerout","pointerover"]);xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));xn("onBeforeInput",["compositionend","keypress","textInput","paste"]);xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Rr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ym=new Set("cancel close invalid load scroll toggle".split(" ").concat(Rr));function Fa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Kh(r,t,void 0,e),e.currentTarget=null}function sf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var l=r.length-1;0<=l;l--){var s=r[l],u=s.instance,a=s.currentTarget;if(s=s.listener,u!==i&&o.isPropagationStopped())break e;Fa(o,s,a),i=u}else for(l=0;l<r.length;l++){if(s=r[l],u=s.instance,a=s.currentTarget,s=s.listener,u!==i&&o.isPropagationStopped())break e;Fa(o,s,a),i=u}}}if(ni)throw e=is,ni=!1,is=null,e}function G(e,t){var n=t[ms];n===void 0&&(n=t[ms]=new Set);var r=e+"__bubble";n.has(r)||(uf(t,e,2,!1),n.add(r))}function xl(e,t,n){var r=0;t&&(r|=4),uf(n,e,r,t)}var _o="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[_o]){e[_o]=!0,hd.forEach(function(n){n!=="selectionchange"&&(Ym.has(n)||xl(n,!1,e),xl(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_o]||(t[_o]=!0,xl("selectionchange",!1,t))}}function uf(e,t,n,r){switch(Vd(t)){case 1:var o=am;break;case 4:o=cm;break;default:o=pu}n=o.bind(null,t,n,e),o=void 0,!os||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),r?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Sl(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var l=r.tag;if(l===3||l===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(l===4)for(l=r.return;l!==null;){var u=l.tag;if((u===3||u===4)&&(u=l.stateNode.containerInfo,u===o||u.nodeType===8&&u.parentNode===o))return;l=l.return}for(;s!==null;){if(l=nn(s),l===null)return;if(u=l.tag,u===5||u===6){r=i=l;continue e}s=s.parentNode}}r=r.return}Nd(function(){var a=i,c=au(n),f=[];e:{var m=lf.get(e);if(m!==void 0){var v=mu,y=e;switch(e){case"keypress":if(Mo(n)===0)break e;case"keydown":case"keyup":v=_m;break;case"focusin":y="focus",v=hl;break;case"focusout":y="blur",v=hl;break;case"beforeblur":case"afterblur":v=hl;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=_a;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=pm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=Rm;break;case tf:case nf:case rf:v=gm;break;case of:v=Nm;break;case"scroll":v=dm;break;case"wheel":v=$m;break;case"copy":case"cut":case"paste":v=vm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=Ta}var w=(t&4)!==0,E=!w&&e==="scroll",p=w?m!==null?m+"Capture":null:m;w=[];for(var d=a,h;d!==null;){h=d;var x=h.stateNode;if(h.tag===5&&x!==null&&(h=x,p!==null&&(x=br(d,p),x!=null&&w.push(qr(d,x,h)))),E)break;d=d.return}0<w.length&&(m=new v(m,y,null,n,c),f.push({event:m,listeners:w}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",v=e==="mouseout"||e==="pointerout",m&&n!==ns&&(y=n.relatedTarget||n.fromElement)&&(nn(y)||y[Et]))break e;if((v||m)&&(m=c.window===c?c:(m=c.ownerDocument)?m.defaultView||m.parentWindow:window,v?(y=n.relatedTarget||n.toElement,v=a,y=y?nn(y):null,y!==null&&(E=Sn(y),y!==E||y.tag!==5&&y.tag!==6)&&(y=null)):(v=null,y=a),v!==y)){if(w=_a,x="onMouseLeave",p="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(w=Ta,x="onPointerLeave",p="onPointerEnter",d="pointer"),E=v==null?m:$n(v),h=y==null?m:$n(y),m=new w(x,d+"leave",v,n,c),m.target=E,m.relatedTarget=h,x=null,nn(c)===a&&(w=new w(p,d+"enter",y,n,c),w.target=h,w.relatedTarget=E,x=w),E=x,v&&y)t:{for(w=v,p=y,d=0,h=w;h;h=kn(h))d++;for(h=0,x=p;x;x=kn(x))h++;for(;0<d-h;)w=kn(w),d--;for(;0<h-d;)p=kn(p),h--;for(;d--;){if(w===p||p!==null&&w===p.alternate)break t;w=kn(w),p=kn(p)}w=null}else w=null;v!==null&&Da(f,m,v,w,!1),y!==null&&E!==null&&Da(f,E,y,w,!0)}}e:{if(m=a?$n(a):window,v=m.nodeName&&m.nodeName.toLowerCase(),v==="select"||v==="input"&&m.type==="file")var k=Mm;else if(Na(m))if(qd)k=bm;else{k=Um;var _=Bm}else(v=m.nodeName)&&v.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(k=Hm);if(k&&(k=k(e,a))){Yd(f,k,n,c);break e}_&&_(e,m,a),e==="focusout"&&(_=m._wrapperState)&&_.controlled&&m.type==="number"&&Jl(m,"number",m.value)}switch(_=a?$n(a):window,e){case"focusin":(Na(_)||_.contentEditable==="true")&&(Nn=_,as=a,Ar=null);break;case"focusout":Ar=as=Nn=null;break;case"mousedown":cs=!0;break;case"contextmenu":case"mouseup":case"dragend":cs=!1,La(f,n,c);break;case"selectionchange":if(Qm)break;case"keydown":case"keyup":La(f,n,c)}var C;if(yu)e:{switch(e){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else jn?Kd(e,n)&&(R="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(R="onCompositionStart");R&&(Qd&&n.locale!=="ko"&&(jn||R!=="onCompositionStart"?R==="onCompositionEnd"&&jn&&(C=Wd()):(zt=c,hu="value"in zt?zt.value:zt.textContent,jn=!0)),_=si(a,R),0<_.length&&(R=new Pa(R,e,null,n,c),f.push({event:R,listeners:_}),C?R.data=C:(C=Gd(n),C!==null&&(R.data=C)))),(C=Am?Lm(e,n):zm(e,n))&&(a=si(a,"onBeforeInput"),0<a.length&&(c=new Pa("onBeforeInput","beforeinput",null,n,c),f.push({event:c,listeners:a}),c.data=C))}sf(f,t)})}function qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function si(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=br(e,n),i!=null&&r.unshift(qr(e,i,o)),i=br(e,t),i!=null&&r.push(qr(e,i,o))),e=e.return}return r}function kn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Da(e,t,n,r,o){for(var i=t._reactName,l=[];n!==null&&n!==r;){var s=n,u=s.alternate,a=s.stateNode;if(u!==null&&u===r)break;s.tag===5&&a!==null&&(s=a,o?(u=br(n,i),u!=null&&l.unshift(qr(n,u,s))):o||(u=br(n,i),u!=null&&l.push(qr(n,u,s)))),n=n.return}l.length!==0&&e.push({event:t,listeners:l})}var qm=/\r\n?/g,Jm=/\u0000|\uFFFD/g;function Ma(e){return(typeof e=="string"?e:""+e).replace(qm,`
|
|
30
|
-
`).replace(Jm,"")}function Po(e,t,n){if(t=Ma(t),Ma(e)!==t&&n)throw Error(P(425))}function ui(){}var ds=null,fs=null;function ps(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hs=typeof setTimeout=="function"?setTimeout:void 0,Xm=typeof clearTimeout=="function"?clearTimeout:void 0,Ba=typeof Promise=="function"?Promise:void 0,Zm=typeof queueMicrotask=="function"?queueMicrotask:typeof Ba<"u"?function(e){return Ba.resolve(null).then(e).catch(eg)}:hs;function eg(e){setTimeout(function(){throw e})}function kl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"){if(r===0){e.removeChild(o),Qr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);Qr(t)}function Ut(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Ua(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var lr=Math.random().toString(36).slice(2),dt="__reactFiber$"+lr,Jr="__reactProps$"+lr,Et="__reactContainer$"+lr,ms="__reactEvents$"+lr,tg="__reactListeners$"+lr,ng="__reactHandles$"+lr;function nn(e){var t=e[dt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Et]||n[dt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Ua(e);e!==null;){if(n=e[dt])return n;e=Ua(e)}return t}e=n,n=e.parentNode}return null}function co(e){return e=e[dt]||e[Et],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function $n(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Li(e){return e[Jr]||null}var gs=[],In=-1;function qt(e){return{current:e}}function q(e){0>In||(e.current=gs[In],gs[In]=null,In--)}function Q(e,t){In++,gs[In]=e.current,e.current=t}var Gt={},Ee=qt(Gt),Ne=qt(!1),fn=Gt;function Kn(e,t){var n=e.type.contextTypes;if(!n)return Gt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oe(e){return e=e.childContextTypes,e!=null}function ai(){q(Ne),q(Ee)}function Ha(e,t,n){if(Ee.current!==Gt)throw Error(P(168));Q(Ee,t),Q(Ne,n)}function af(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(P(108,Bh(e)||"Unknown",o));return ee({},n,r)}function ci(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Gt,fn=Ee.current,Q(Ee,e),Q(Ne,Ne.current),!0}function ba(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=af(e,t,fn),r.__reactInternalMemoizedMergedChildContext=e,q(Ne),q(Ee),Q(Ee,e)):q(Ne),Q(Ne,n)}var vt=null,zi=!1,El=!1;function cf(e){vt===null?vt=[e]:vt.push(e)}function rg(e){zi=!0,cf(e)}function Jt(){if(!El&&vt!==null){El=!0;var e=0,t=b;try{var n=vt;for(b=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}vt=null,zi=!1}catch(o){throw vt!==null&&(vt=vt.slice(e+1)),Ad(cu,Jt),o}finally{b=t,El=!1}}return null}var An=[],Ln=0,di=null,fi=0,We=[],Qe=0,pn=null,wt=1,xt="";function en(e,t){An[Ln++]=fi,An[Ln++]=di,di=e,fi=t}function df(e,t,n){We[Qe++]=wt,We[Qe++]=xt,We[Qe++]=pn,pn=e;var r=wt;e=xt;var o=32-rt(r)-1;r&=~(1<<o),n+=1;var i=32-rt(t)+o;if(30<i){var l=o-o%5;i=(r&(1<<l)-1).toString(32),r>>=l,o-=l,wt=1<<32-rt(t)+o|n<<o|r,xt=i+e}else wt=1<<i|n<<o|r,xt=e}function wu(e){e.return!==null&&(en(e,1),df(e,1,0))}function xu(e){for(;e===di;)di=An[--Ln],An[Ln]=null,fi=An[--Ln],An[Ln]=null;for(;e===pn;)pn=We[--Qe],We[Qe]=null,xt=We[--Qe],We[Qe]=null,wt=We[--Qe],We[Qe]=null}var Be=null,Me=null,J=!1,nt=null;function ff(e,t){var n=Ke(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Va(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Be=e,Me=Ut(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Be=e,Me=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=pn!==null?{id:wt,overflow:xt}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ke(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Be=e,Me=null,!0):!1;default:return!1}}function ys(e){return(e.mode&1)!==0&&(e.flags&128)===0}function vs(e){if(J){var t=Me;if(t){var n=t;if(!Va(e,t)){if(ys(e))throw Error(P(418));t=Ut(n.nextSibling);var r=Be;t&&Va(e,t)?ff(r,n):(e.flags=e.flags&-4097|2,J=!1,Be=e)}}else{if(ys(e))throw Error(P(418));e.flags=e.flags&-4097|2,J=!1,Be=e}}}function Wa(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Be=e}function To(e){if(e!==Be)return!1;if(!J)return Wa(e),J=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ps(e.type,e.memoizedProps)),t&&(t=Me)){if(ys(e))throw pf(),Error(P(418));for(;t;)ff(e,t),t=Ut(t.nextSibling)}if(Wa(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Me=Ut(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Me=null}}else Me=Be?Ut(e.stateNode.nextSibling):null;return!0}function pf(){for(var e=Me;e;)e=Ut(e.nextSibling)}function Gn(){Me=Be=null,J=!1}function Su(e){nt===null?nt=[e]:nt.push(e)}var og=Pt.ReactCurrentBatchConfig;function gr(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var r=n.stateNode}if(!r)throw Error(P(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(l){var s=o.refs;l===null?delete s[i]:s[i]=l},t._stringRef=i,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Ro(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Qa(e){var t=e._init;return t(e._payload)}function hf(e){function t(p,d){if(e){var h=p.deletions;h===null?(p.deletions=[d],p.flags|=16):h.push(d)}}function n(p,d){if(!e)return null;for(;d!==null;)t(p,d),d=d.sibling;return null}function r(p,d){for(p=new Map;d!==null;)d.key!==null?p.set(d.key,d):p.set(d.index,d),d=d.sibling;return p}function o(p,d){return p=Wt(p,d),p.index=0,p.sibling=null,p}function i(p,d,h){return p.index=h,e?(h=p.alternate,h!==null?(h=h.index,h<d?(p.flags|=2,d):h):(p.flags|=2,d)):(p.flags|=1048576,d)}function l(p){return e&&p.alternate===null&&(p.flags|=2),p}function s(p,d,h,x){return d===null||d.tag!==6?(d=Nl(h,p.mode,x),d.return=p,d):(d=o(d,h),d.return=p,d)}function u(p,d,h,x){var k=h.type;return k===Rn?c(p,d,h.props.children,x,h.key):d!==null&&(d.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$t&&Qa(k)===d.type)?(x=o(d,h.props),x.ref=gr(p,d,h),x.return=p,x):(x=Qo(h.type,h.key,h.props,null,p.mode,x),x.ref=gr(p,d,h),x.return=p,x)}function a(p,d,h,x){return d===null||d.tag!==4||d.stateNode.containerInfo!==h.containerInfo||d.stateNode.implementation!==h.implementation?(d=Ol(h,p.mode,x),d.return=p,d):(d=o(d,h.children||[]),d.return=p,d)}function c(p,d,h,x,k){return d===null||d.tag!==7?(d=an(h,p.mode,x,k),d.return=p,d):(d=o(d,h),d.return=p,d)}function f(p,d,h){if(typeof d=="string"&&d!==""||typeof d=="number")return d=Nl(""+d,p.mode,h),d.return=p,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case yo:return h=Qo(d.type,d.key,d.props,null,p.mode,h),h.ref=gr(p,null,d),h.return=p,h;case Tn:return d=Ol(d,p.mode,h),d.return=p,d;case $t:var x=d._init;return f(p,x(d._payload),h)}if(Pr(d)||dr(d))return d=an(d,p.mode,h,null),d.return=p,d;Ro(p,d)}return null}function m(p,d,h,x){var k=d!==null?d.key:null;if(typeof h=="string"&&h!==""||typeof h=="number")return k!==null?null:s(p,d,""+h,x);if(typeof h=="object"&&h!==null){switch(h.$$typeof){case yo:return h.key===k?u(p,d,h,x):null;case Tn:return h.key===k?a(p,d,h,x):null;case $t:return k=h._init,m(p,d,k(h._payload),x)}if(Pr(h)||dr(h))return k!==null?null:c(p,d,h,x,null);Ro(p,h)}return null}function v(p,d,h,x,k){if(typeof x=="string"&&x!==""||typeof x=="number")return p=p.get(h)||null,s(d,p,""+x,k);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case yo:return p=p.get(x.key===null?h:x.key)||null,u(d,p,x,k);case Tn:return p=p.get(x.key===null?h:x.key)||null,a(d,p,x,k);case $t:var _=x._init;return v(p,d,h,_(x._payload),k)}if(Pr(x)||dr(x))return p=p.get(h)||null,c(d,p,x,k,null);Ro(d,x)}return null}function y(p,d,h,x){for(var k=null,_=null,C=d,R=d=0,B=null;C!==null&&R<h.length;R++){C.index>R?(B=C,C=null):B=C.sibling;var z=m(p,C,h[R],x);if(z===null){C===null&&(C=B);break}e&&C&&z.alternate===null&&t(p,C),d=i(z,d,R),_===null?k=z:_.sibling=z,_=z,C=B}if(R===h.length)return n(p,C),J&&en(p,R),k;if(C===null){for(;R<h.length;R++)C=f(p,h[R],x),C!==null&&(d=i(C,d,R),_===null?k=C:_.sibling=C,_=C);return J&&en(p,R),k}for(C=r(p,C);R<h.length;R++)B=v(C,p,R,h[R],x),B!==null&&(e&&B.alternate!==null&&C.delete(B.key===null?R:B.key),d=i(B,d,R),_===null?k=B:_.sibling=B,_=B);return e&&C.forEach(function(ae){return t(p,ae)}),J&&en(p,R),k}function w(p,d,h,x){var k=dr(h);if(typeof k!="function")throw Error(P(150));if(h=k.call(h),h==null)throw Error(P(151));for(var _=k=null,C=d,R=d=0,B=null,z=h.next();C!==null&&!z.done;R++,z=h.next()){C.index>R?(B=C,C=null):B=C.sibling;var ae=m(p,C,z.value,x);if(ae===null){C===null&&(C=B);break}e&&C&&ae.alternate===null&&t(p,C),d=i(ae,d,R),_===null?k=ae:_.sibling=ae,_=ae,C=B}if(z.done)return n(p,C),J&&en(p,R),k;if(C===null){for(;!z.done;R++,z=h.next())z=f(p,z.value,x),z!==null&&(d=i(z,d,R),_===null?k=z:_.sibling=z,_=z);return J&&en(p,R),k}for(C=r(p,C);!z.done;R++,z=h.next())z=v(C,p,R,z.value,x),z!==null&&(e&&z.alternate!==null&&C.delete(z.key===null?R:z.key),d=i(z,d,R),_===null?k=z:_.sibling=z,_=z);return e&&C.forEach(function(he){return t(p,he)}),J&&en(p,R),k}function E(p,d,h,x){if(typeof h=="object"&&h!==null&&h.type===Rn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case yo:e:{for(var k=h.key,_=d;_!==null;){if(_.key===k){if(k=h.type,k===Rn){if(_.tag===7){n(p,_.sibling),d=o(_,h.props.children),d.return=p,p=d;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===$t&&Qa(k)===_.type){n(p,_.sibling),d=o(_,h.props),d.ref=gr(p,_,h),d.return=p,p=d;break e}n(p,_);break}else t(p,_);_=_.sibling}h.type===Rn?(d=an(h.props.children,p.mode,x,h.key),d.return=p,p=d):(x=Qo(h.type,h.key,h.props,null,p.mode,x),x.ref=gr(p,d,h),x.return=p,p=x)}return l(p);case Tn:e:{for(_=h.key;d!==null;){if(d.key===_)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=o(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Ol(h,p.mode,x),d.return=p,p=d}return l(p);case $t:return _=h._init,E(p,d,_(h._payload),x)}if(Pr(h))return y(p,d,h,x);if(dr(h))return w(p,d,h,x);Ro(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=o(d,h),d.return=p,p=d):(n(p,d),d=Nl(h,p.mode,x),d.return=p,p=d),l(p)):n(p,d)}return E}var Yn=hf(!0),mf=hf(!1),pi=qt(null),hi=null,zn=null,ku=null;function Eu(){ku=zn=hi=null}function Cu(e){var t=pi.current;q(pi),e._currentValue=t}function ws(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Vn(e,t){hi=e,ku=zn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(je=!0),e.firstContext=null)}function Ye(e){var t=e._currentValue;if(ku!==e)if(e={context:e,memoizedValue:t,next:null},zn===null){if(hi===null)throw Error(P(308));zn=e,hi.dependencies={lanes:0,firstContext:e}}else zn=zn.next=e;return t}var rn=null;function _u(e){rn===null?rn=[e]:rn.push(e)}function gf(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,_u(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ct(e,r)}function Ct(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var It=!1;function Pu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function yf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function St(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Ht(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,U&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ct(e,n)}return o=r.interleaved,o===null?(t.next=t,_u(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ct(e,n)}function Bo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var l={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=l:i=i.next=l,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function mi(e,t,n,r){var o=e.updateQueue;It=!1;var i=o.firstBaseUpdate,l=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var u=s,a=u.next;u.next=null,l===null?i=a:l.next=a,l=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==l&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(i!==null){var f=o.baseState;l=0,c=a=u=null,s=i;do{var m=s.lane,v=s.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var y=e,w=s;switch(m=t,v=n,w.tag){case 1:if(y=w.payload,typeof y=="function"){f=y.call(v,f,m);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=w.payload,m=typeof y=="function"?y.call(v,f,m):y,m==null)break e;f=ee({},f,m);break e;case 2:It=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else v={eventTime:v,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=v,u=f):c=c.next=v,l|=m;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;m=s,s=m.next,m.next=null,o.lastBaseUpdate=m,o.shared.pending=null}}while(!0);if(c===null&&(u=f),o.baseState=u,o.firstBaseUpdate=a,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do l|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);mn|=l,e.lanes=l,e.memoizedState=f}}function Ga(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(o!==null){if(r.callback=null,r=n,typeof o!="function")throw Error(P(191,o));o.call(r)}}}var fo={},pt=qt(fo),Xr=qt(fo),Zr=qt(fo);function on(e){if(e===fo)throw Error(P(174));return e}function Tu(e,t){switch(Q(Zr,t),Q(Xr,e),Q(pt,fo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Zl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Zl(t,e)}q(pt),Q(pt,t)}function qn(){q(pt),q(Xr),q(Zr)}function vf(e){on(Zr.current);var t=on(pt.current),n=Zl(t,e.type);t!==n&&(Q(Xr,e),Q(pt,n))}function Ru(e){Xr.current===e&&(q(pt),q(Xr))}var X=qt(0);function gi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Cl=[];function ju(){for(var e=0;e<Cl.length;e++)Cl[e]._workInProgressVersionPrimary=null;Cl.length=0}var Uo=Pt.ReactCurrentDispatcher,_l=Pt.ReactCurrentBatchConfig,hn=0,Z=null,se=null,ce=null,yi=!1,Lr=!1,eo=0,ig=0;function xe(){throw Error(P(321))}function Nu(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!lt(e[n],t[n]))return!1;return!0}function Ou(e,t,n,r,o,i){if(hn=i,Z=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Uo.current=e===null||e.memoizedState===null?ag:cg,e=n(r,o),Lr){i=0;do{if(Lr=!1,eo=0,25<=i)throw Error(P(301));i+=1,ce=se=null,t.updateQueue=null,Uo.current=dg,e=n(r,o)}while(Lr)}if(Uo.current=vi,t=se!==null&&se.next!==null,hn=0,ce=se=Z=null,yi=!1,t)throw Error(P(300));return e}function $u(){var e=eo!==0;return eo=0,e}function at(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?Z.memoizedState=ce=e:ce=ce.next=e,ce}function qe(){if(se===null){var e=Z.alternate;e=e!==null?e.memoizedState:null}else e=se.next;var t=ce===null?Z.memoizedState:ce.next;if(t!==null)ce=t,se=e;else{if(e===null)throw Error(P(310));se=e,e={memoizedState:se.memoizedState,baseState:se.baseState,baseQueue:se.baseQueue,queue:se.queue,next:null},ce===null?Z.memoizedState=ce=e:ce=ce.next=e}return ce}function to(e,t){return typeof t=="function"?t(e):t}function Pl(e){var t=qe(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=se,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var l=o.next;o.next=i.next,i.next=l}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=l=null,u=null,a=i;do{var c=a.lane;if((hn&c)===c)u!==null&&(u=u.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),r=a.hasEagerState?a.eagerState:e(r,a.action);else{var f={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};u===null?(s=u=f,l=r):u=u.next=f,Z.lanes|=c,mn|=c}a=a.next}while(a!==null&&a!==i);u===null?l=r:u.next=s,lt(r,t.memoizedState)||(je=!0),t.memoizedState=r,t.baseState=l,t.baseQueue=u,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Z.lanes|=i,mn|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Tl(e){var t=qe(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var l=o=o.next;do i=e(i,l.action),l=l.next;while(l!==o);lt(i,t.memoizedState)||(je=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function wf(){}function xf(e,t){var n=Z,r=qe(),o=t(),i=!lt(r.memoizedState,o);if(i&&(r.memoizedState=o,je=!0),r=r.queue,Iu(Ef.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||ce!==null&&ce.memoizedState.tag&1){if(n.flags|=2048,no(9,kf.bind(null,n,r,o,t),void 0,null),pe===null)throw Error(P(349));hn&30||Sf(n,t,o)}return o}function Sf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function kf(e,t,n,r){t.value=n,t.getSnapshot=r,Cf(t)&&_f(e)}function Ef(e,t,n){return n(function(){Cf(t)&&_f(e)})}function Cf(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!lt(e,n)}catch{return!0}}function _f(e){var t=Ct(e,1);t!==null&&ot(t,e,1,-1)}function Ya(e){var t=at();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:to,lastRenderedState:e},t.queue=e,e=e.dispatch=ug.bind(null,Z,e),[t.memoizedState,e]}function no(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Z.updateQueue,t===null?(t={lastEffect:null,stores:null},Z.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function Pf(){return qe().memoizedState}function Ho(e,t,n,r){var o=at();Z.flags|=e,o.memoizedState=no(1|t,n,void 0,r===void 0?null:r)}function Fi(e,t,n,r){var o=qe();r=r===void 0?null:r;var i=void 0;if(se!==null){var l=se.memoizedState;if(i=l.destroy,r!==null&&Nu(r,l.deps)){o.memoizedState=no(t,n,i,r);return}}Z.flags|=e,o.memoizedState=no(1|t,n,i,r)}function qa(e,t){return Ho(8390656,8,e,t)}function Iu(e,t){return Fi(2048,8,e,t)}function Tf(e,t){return Fi(4,2,e,t)}function Rf(e,t){return Fi(4,4,e,t)}function jf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Nf(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4,4,jf.bind(null,t,e),n)}function Au(){}function Of(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function $f(e,t){var n=qe();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&Nu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function If(e,t,n){return hn&21?(lt(n,t)||(n=Fd(),Z.lanes|=n,mn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,je=!0),e.memoizedState=n)}function lg(e,t){var n=b;b=n!==0&&4>n?n:4,e(!0);var r=_l.transition;_l.transition={};try{e(!1),t()}finally{b=n,_l.transition=r}}function Af(){return qe().memoizedState}function sg(e,t,n){var r=Vt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lf(e))zf(t,n);else if(n=gf(e,t,n,r),n!==null){var o=_e();ot(n,e,r,o),Ff(n,t,r)}}function ug(e,t,n){var r=Vt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lf(e))zf(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,lt(s,l)){var u=t.interleaved;u===null?(o.next=o,_u(t)):(o.next=u.next,u.next=o),t.interleaved=o;return}}catch{}finally{}n=gf(e,t,o,r),n!==null&&(o=_e(),ot(n,e,r,o),Ff(n,t,r))}}function Lf(e){var t=e.alternate;return e===Z||t!==null&&t===Z}function zf(e,t){Lr=yi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ff(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,du(e,n)}}var vi={readContext:Ye,useCallback:xe,useContext:xe,useEffect:xe,useImperativeHandle:xe,useInsertionEffect:xe,useLayoutEffect:xe,useMemo:xe,useReducer:xe,useRef:xe,useState:xe,useDebugValue:xe,useDeferredValue:xe,useTransition:xe,useMutableSource:xe,useSyncExternalStore:xe,useId:xe,unstable_isNewReconciler:!1},ag={readContext:Ye,useCallback:function(e,t){return at().memoizedState=[e,t===void 0?null:t],e},useContext:Ye,useEffect:qa,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ho(4194308,4,jf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ho(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ho(4,2,e,t)},useMemo:function(e,t){var n=at();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=at();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=sg.bind(null,Z,e),[r.memoizedState,e]},useRef:function(e){var t=at();return e={current:e},t.memoizedState=e},useState:Ya,useDebugValue:Au,useDeferredValue:function(e){return at().memoizedState=e},useTransition:function(){var e=Ya(!1),t=e[0];return e=lg.bind(null,e[1]),at().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Z,o=at();if(J){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),pe===null)throw Error(P(349));hn&30||Sf(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,qa(Ef.bind(null,r,i,e),[e]),r.flags|=2048,no(9,kf.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=at(),t=pe.identifierPrefix;if(J){var n=xt,r=wt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=eo++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=ig++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},cg={readContext:Ye,useCallback:Of,useContext:Ye,useEffect:Iu,useImperativeHandle:Nf,useInsertionEffect:Tf,useLayoutEffect:Rf,useMemo:$f,useReducer:Pl,useRef:Pf,useState:function(){return Pl(to)},useDebugValue:Au,useDeferredValue:function(e){var t=qe();return If(t,se.memoizedState,e)},useTransition:function(){var e=Pl(to)[0],t=qe().memoizedState;return[e,t]},useMutableSource:wf,useSyncExternalStore:xf,useId:Af,unstable_isNewReconciler:!1},dg={readContext:Ye,useCallback:Of,useContext:Ye,useEffect:Iu,useImperativeHandle:Nf,useInsertionEffect:Tf,useLayoutEffect:Rf,useMemo:$f,useReducer:Tl,useRef:Pf,useState:function(){return Tl(to)},useDebugValue:Au,useDeferredValue:function(e){var t=qe();return se===null?t.memoizedState=e:If(t,se.memoizedState,e)},useTransition:function(){var e=Tl(to)[0],t=qe().memoizedState;return[e,t]},useMutableSource:wf,useSyncExternalStore:xf,useId:Af,unstable_isNewReconciler:!1};function et(e,t){if(e&&e.defaultProps){t=ee({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function xs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:ee({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Di={isMounted:function(e){return(e=e._reactInternals)?Sn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Vt(e),i=St(r,o);i.payload=t,n!=null&&(i.callback=n),t=Ht(e,i,o),t!==null&&(ot(t,e,o,r),Bo(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_e(),o=Vt(e),i=St(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ht(e,i,o),t!==null&&(ot(t,e,o,r),Bo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_e(),r=Vt(e),o=St(n,r);o.tag=2,t!=null&&(o.callback=t),t=Ht(e,o,r),t!==null&&(ot(t,e,r,n),Bo(t,e,r))}};function Ja(e,t,n,r,o,i,l){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,l):t.prototype&&t.prototype.isPureReactComponent?!Gr(n,r)||!Gr(o,i):!0}function Df(e,t,n){var r=!1,o=Gt,i=t.contextType;return typeof i=="object"&&i!==null?i=Ye(i):(o=Oe(t)?fn:Ee.current,r=t.contextTypes,i=(r=r!=null)?Kn(e,o):Gt),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Di,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Xa(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Di.enqueueReplaceState(t,t.state,null)}function Ss(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Pu(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=Ye(i):(i=Oe(t)?fn:Ee.current,o.context=Kn(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(xs(e,t,i,n),o.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(t=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),t!==o.state&&Di.enqueueReplaceState(o,o.state,null),mi(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function Jn(e,t){try{var n="",r=t;do n+=Mh(r),r=r.return;while(r);var o=n}catch(i){o=`
|
|
31
|
-
Error generating stack: `+i.message+`
|
|
32
|
-
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Rl(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function ks(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var fg=typeof WeakMap=="function"?WeakMap:Map;function Mf(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){xi||(xi=!0,$s=r),ks(e,t)},n}function Bf(e,t,n){n=St(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){ks(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){ks(e,t),typeof r!="function"&&(bt===null?bt=new Set([this]):bt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function Za(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new fg;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Pg.bind(null,e,t,n),t.then(e,e))}function ec(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function tc(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,Ht(n,t,1))),n.lanes|=1),e)}var pg=Pt.ReactCurrentOwner,je=!1;function Ce(e,t,n,r){t.child=e===null?mf(t,null,n,r):Yn(t,e.child,n,r)}function nc(e,t,n,r,o){n=n.render;var i=t.ref;return Vn(t,o),r=Ou(e,t,n,r,i,o),n=$u(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_t(e,t,o)):(J&&n&&wu(t),t.flags|=1,Ce(e,t,r,o),t.child)}function rc(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Hu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,Uf(e,t,i,r,o)):(e=Qo(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:Gr,n(l,r)&&e.ref===t.ref)return _t(e,t,o)}return t.flags|=1,e=Wt(i,r),e.ref=t.ref,e.return=t,t.child=e}function Uf(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(Gr(i,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,_t(e,t,o)}return Es(e,t,n,r,o)}function Hf(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Dn,Fe),Fe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Dn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,Q(Dn,Fe),Fe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,Q(Dn,Fe),Fe|=r;return Ce(e,t,o,n),t.child}function bf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Es(e,t,n,r,o){var i=Oe(n)?fn:Ee.current;return i=Kn(t,i),Vn(t,o),n=Ou(e,t,n,r,i,o),r=$u(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,_t(e,t,o)):(J&&r&&wu(t),t.flags|=1,Ce(e,t,n,o),t.child)}function oc(e,t,n,r,o){if(Oe(n)){var i=!0;ci(t)}else i=!1;if(Vn(t,o),t.stateNode===null)bo(e,t),Df(t,n,r),Ss(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var u=l.context,a=n.contextType;typeof a=="object"&&a!==null?a=Ye(a):(a=Oe(n)?fn:Ee.current,a=Kn(t,a));var c=n.getDerivedStateFromProps,f=typeof c=="function"||typeof l.getSnapshotBeforeUpdate=="function";f||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||u!==a)&&Xa(t,l,r,a),It=!1;var m=t.memoizedState;l.state=m,mi(t,r,l,o),u=t.memoizedState,s!==r||m!==u||Ne.current||It?(typeof c=="function"&&(xs(t,n,c,r),u=t.memoizedState),(s=It||Ja(t,n,s,r,m,u,a))?(f||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),l.props=r,l.state=u,l.context=a,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,yf(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:et(t.type,s),l.props=a,f=t.pendingProps,m=l.context,u=n.contextType,typeof u=="object"&&u!==null?u=Ye(u):(u=Oe(n)?fn:Ee.current,u=Kn(t,u));var v=n.getDerivedStateFromProps;(c=typeof v=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==f||m!==u)&&Xa(t,l,r,u),It=!1,m=t.memoizedState,l.state=m,mi(t,r,l,o);var y=t.memoizedState;s!==f||m!==y||Ne.current||It?(typeof v=="function"&&(xs(t,n,v,r),y=t.memoizedState),(a=It||Ja(t,n,a,r,m,y,u)||!1)?(c||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,y,u),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,y,u)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=y),l.props=r,l.state=y,l.context=u,r=a):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return Cs(e,t,n,r,i,o)}function Cs(e,t,n,r,o,i){bf(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&ba(t,n,!1),_t(e,t,i);r=t.stateNode,pg.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Yn(t,e.child,null,i),t.child=Yn(t,null,s,i)):Ce(e,t,s,i),t.memoizedState=r.state,o&&ba(t,n,!0),t.child}function Vf(e){var t=e.stateNode;t.pendingContext?Ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ha(e,t.context,!1),Tu(e,t.containerInfo)}function ic(e,t,n,r,o){return Gn(),Su(o),t.flags|=256,Ce(e,t,n,r),t.child}var _s={dehydrated:null,treeContext:null,retryLane:0};function Ps(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wf(e,t,n){var r=t.pendingProps,o=X.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),Q(X,o&1),e===null)return vs(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ui(l,r,0,null),e=an(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ps(n),t.memoizedState=_s,e):Lu(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return hg(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var u={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=u,t.deletions=null):(r=Wt(o,u),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Wt(s,i):(i=an(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?Ps(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=_s,r}return i=e.child,e=i.sibling,r=Wt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Lu(e,t){return t=Ui({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function jo(e,t,n,r){return r!==null&&Su(r),Yn(t,e.child,null,n),e=Lu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hg(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Rl(Error(P(422))),jo(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ui({mode:"visible",children:r.children},o,0,null),i=an(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Yn(t,e.child,null,l),t.child.memoizedState=Ps(l),t.memoizedState=_s,i);if(!(t.mode&1))return jo(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(P(419)),r=Rl(i,r,void 0),jo(e,t,l,r)}if(s=(l&e.childLanes)!==0,je||s){if(r=pe,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Ct(e,o),ot(r,e,o,-1))}return Uu(),r=Rl(Error(P(421))),jo(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Tg.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Me=Ut(o.nextSibling),Be=t,J=!0,nt=null,e!==null&&(We[Qe++]=wt,We[Qe++]=xt,We[Qe++]=pn,wt=e.id,xt=e.overflow,pn=t),t=Lu(t,r.children),t.flags|=4096,t)}function lc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ws(e.return,t,n)}function jl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Qf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ce(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lc(e,n,t);else if(e.tag===19)lc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Q(X,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&gi(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),jl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&gi(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}jl(t,!0,n,null,i);break;case"together":jl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function bo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function _t(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),mn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=Wt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function mg(e,t,n){switch(t.tag){case 3:Vf(t),Gn();break;case 5:vf(t);break;case 1:Oe(t.type)&&ci(t);break;case 4:Tu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Q(pi,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?Wf(e,t,n):(Q(X,X.current&1),e=_t(e,t,n),e!==null?e.sibling:null);Q(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return Qf(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Q(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,Hf(e,t,n)}return _t(e,t,n)}var Kf,Ts,Gf,Yf;Kf=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Ts=function(){};Gf=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,on(pt.current);var i=null;switch(n){case"input":o=Yl(e,o),r=Yl(e,r),i=[];break;case"select":o=ee({},o,{value:void 0}),r=ee({},r,{value:void 0}),i=[];break;case"textarea":o=Xl(e,o),r=Xl(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=ui)}es(n,r);var l;n=null;for(a in o)if(!r.hasOwnProperty(a)&&o.hasOwnProperty(a)&&o[a]!=null)if(a==="style"){var s=o[a];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(Ur.hasOwnProperty(a)?i||(i=[]):(i=i||[]).push(a,null));for(a in r){var u=r[a];if(s=o!=null?o[a]:void 0,r.hasOwnProperty(a)&&u!==s&&(u!=null||s!=null))if(a==="style")if(s){for(l in s)!s.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in u)u.hasOwnProperty(l)&&s[l]!==u[l]&&(n||(n={}),n[l]=u[l])}else n||(i||(i=[]),i.push(a,n)),n=u;else a==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,s=s?s.__html:void 0,u!=null&&s!==u&&(i=i||[]).push(a,u)):a==="children"?typeof u!="string"&&typeof u!="number"||(i=i||[]).push(a,""+u):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(Ur.hasOwnProperty(a)?(u!=null&&a==="onScroll"&&G("scroll",e),i||s===u||(i=[])):(i=i||[]).push(a,u))}n&&(i=i||[]).push("style",n);var a=i;(t.updateQueue=a)&&(t.flags|=4)}};Yf=function(e,t,n,r){n!==r&&(t.flags|=4)};function yr(e,t){if(!J)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Se(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function gg(e,t,n){var r=t.pendingProps;switch(xu(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Se(t),null;case 1:return Oe(t.type)&&ai(),Se(t),null;case 3:return r=t.stateNode,qn(),q(Ne),q(Ee),ju(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(To(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&(Ls(nt),nt=null))),Ts(e,t),Se(t),null;case 5:Ru(t);var o=on(Zr.current);if(n=t.type,e!==null&&t.stateNode!=null)Gf(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(P(166));return Se(t),null}if(e=on(pt.current),To(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[dt]=t,r[Jr]=i,e=(t.mode&1)!==0,n){case"dialog":G("cancel",r),G("close",r);break;case"iframe":case"object":case"embed":G("load",r);break;case"video":case"audio":for(o=0;o<Rr.length;o++)G(Rr[o],r);break;case"source":G("error",r);break;case"img":case"image":case"link":G("error",r),G("load",r);break;case"details":G("toggle",r);break;case"input":ma(r,i),G("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},G("invalid",r);break;case"textarea":ya(r,i),G("invalid",r)}es(n,i),o=null;for(var l in i)if(i.hasOwnProperty(l)){var s=i[l];l==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&Po(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Po(r.textContent,s,e),o=["children",""+s]):Ur.hasOwnProperty(l)&&s!=null&&l==="onScroll"&&G("scroll",r)}switch(n){case"input":vo(r),ga(r,i,!0);break;case"textarea":vo(r),va(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=ui)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{l=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=kd(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[dt]=t,e[Jr]=r,Kf(e,t,!1,!1),t.stateNode=e;e:{switch(l=ts(n,r),n){case"dialog":G("cancel",e),G("close",e),o=r;break;case"iframe":case"object":case"embed":G("load",e),o=r;break;case"video":case"audio":for(o=0;o<Rr.length;o++)G(Rr[o],e);o=r;break;case"source":G("error",e),o=r;break;case"img":case"image":case"link":G("error",e),G("load",e),o=r;break;case"details":G("toggle",e),o=r;break;case"input":ma(e,r),o=Yl(e,r),G("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=ee({},r,{value:void 0}),G("invalid",e);break;case"textarea":ya(e,r),o=Xl(e,r),G("invalid",e);break;default:o=r}es(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var u=s[i];i==="style"?_d(e,u):i==="dangerouslySetInnerHTML"?(u=u?u.__html:void 0,u!=null&&Ed(e,u)):i==="children"?typeof u=="string"?(n!=="textarea"||u!=="")&&Hr(e,u):typeof u=="number"&&Hr(e,""+u):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Ur.hasOwnProperty(i)?u!=null&&i==="onScroll"&&G("scroll",e):u!=null&&iu(e,i,u,l))}switch(n){case"input":vo(e),ga(e,r,!1);break;case"textarea":vo(e),va(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Kt(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Bn(e,!!r.multiple,i,!1):r.defaultValue!=null&&Bn(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=ui)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return Se(t),null;case 6:if(e&&t.stateNode!=null)Yf(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(P(166));if(n=on(Zr.current),on(pt.current),To(t)){if(r=t.stateNode,n=t.memoizedProps,r[dt]=t,(i=r.nodeValue!==n)&&(e=Be,e!==null))switch(e.tag){case 3:Po(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Po(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[dt]=t,t.stateNode=r}return Se(t),null;case 13:if(q(X),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(J&&Me!==null&&t.mode&1&&!(t.flags&128))pf(),Gn(),t.flags|=98560,i=!1;else if(i=To(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(P(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(P(317));i[dt]=t}else Gn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Se(t),i=!1}else nt!==null&&(Ls(nt),nt=null),i=!0;if(!i)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,t.mode&1&&(e===null||X.current&1?ue===0&&(ue=3):Uu())),t.updateQueue!==null&&(t.flags|=4),Se(t),null);case 4:return qn(),Ts(e,t),e===null&&Yr(t.stateNode.containerInfo),Se(t),null;case 10:return Cu(t.type._context),Se(t),null;case 17:return Oe(t.type)&&ai(),Se(t),null;case 19:if(q(X),i=t.memoizedState,i===null)return Se(t),null;if(r=(t.flags&128)!==0,l=i.rendering,l===null)if(r)yr(i,!1);else{if(ue!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=gi(e),l!==null){for(t.flags|=128,yr(i,!1),r=l.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,l=i.alternate,l===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Q(X,X.current&1|2),t.child}e=e.sibling}i.tail!==null&&ne()>Xn&&(t.flags|=128,r=!0,yr(i,!1),t.lanes=4194304)}else{if(!r)if(e=gi(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),yr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!J)return Se(t),null}else 2*ne()-i.renderingStartTime>Xn&&n!==1073741824&&(t.flags|=128,r=!0,yr(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=X.current,Q(X,r?n&1|2:n&1),t):(Se(t),null);case 22:case 23:return Bu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(Se(t),t.subtreeFlags&6&&(t.flags|=8192)):Se(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function yg(e,t){switch(xu(t),t.tag){case 1:return Oe(t.type)&&ai(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn(),q(Ne),q(Ee),ju(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Ru(t),null;case 13:if(q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Gn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(X),null;case 4:return qn(),null;case 10:return Cu(t.type._context),null;case 22:case 23:return Bu(),null;case 24:return null;default:return null}}var No=!1,ke=!1,vg=typeof WeakSet=="function"?WeakSet:Set,N=null;function Fn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){te(e,t,r)}else n.current=null}function Rs(e,t,n){try{n()}catch(r){te(e,t,r)}}var sc=!1;function wg(e,t){if(ds=ii,e=Zd(),vu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,u=-1,a=0,c=0,f=e,m=null;t:for(;;){for(var v;f!==n||o!==0&&f.nodeType!==3||(s=l+o),f!==i||r!==0&&f.nodeType!==3||(u=l+r),f.nodeType===3&&(l+=f.nodeValue.length),(v=f.firstChild)!==null;)m=f,f=v;for(;;){if(f===e)break t;if(m===n&&++a===o&&(s=l),m===i&&++c===r&&(u=l),(v=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=v}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(fs={focusedElem:e,selectionRange:n},ii=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var w=y.memoizedProps,E=y.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?w:et(t.type,w),E);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){te(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return y=sc,sc=!1,y}function zr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Rs(t,n,i)}o=o.next}while(o!==r)}}function Mi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function js(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function qf(e){var t=e.alternate;t!==null&&(e.alternate=null,qf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[dt],delete t[Jr],delete t[ms],delete t[tg],delete t[ng])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Jf(e){return e.tag===5||e.tag===3||e.tag===4}function uc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Jf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ns(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=ui));else if(r!==4&&(e=e.child,e!==null))for(Ns(e,t,n),e=e.sibling;e!==null;)Ns(e,t,n),e=e.sibling}function Os(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Os(e,t,n),e=e.sibling;e!==null;)Os(e,t,n),e=e.sibling}var me=null,tt=!1;function jt(e,t,n){for(n=n.child;n!==null;)Xf(e,t,n),n=n.sibling}function Xf(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Oi,n)}catch{}switch(n.tag){case 5:ke||Fn(n,t);case 6:var r=me,o=tt;me=null,jt(e,t,n),me=r,tt=o,me!==null&&(tt?(e=me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):me.removeChild(n.stateNode));break;case 18:me!==null&&(tt?(e=me,n=n.stateNode,e.nodeType===8?kl(e.parentNode,n):e.nodeType===1&&kl(e,n),Qr(e)):kl(me,n.stateNode));break;case 4:r=me,o=tt,me=n.stateNode.containerInfo,tt=!0,jt(e,t,n),me=r,tt=o;break;case 0:case 11:case 14:case 15:if(!ke&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&Rs(n,t,l),o=o.next}while(o!==r)}jt(e,t,n);break;case 1:if(!ke&&(Fn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){te(n,t,s)}jt(e,t,n);break;case 21:jt(e,t,n);break;case 22:n.mode&1?(ke=(r=ke)||n.memoizedState!==null,jt(e,t,n),ke=r):jt(e,t,n);break;default:jt(e,t,n)}}function ac(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new vg),t.forEach(function(r){var o=Rg.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,l=t,s=l;e:for(;s!==null;){switch(s.tag){case 5:me=s.stateNode,tt=!1;break e;case 3:me=s.stateNode.containerInfo,tt=!0;break e;case 4:me=s.stateNode.containerInfo,tt=!0;break e}s=s.return}if(me===null)throw Error(P(160));Xf(i,l,o),me=null,tt=!1;var u=o.alternate;u!==null&&(u.return=null),o.return=null}catch(a){te(o,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Zf(t,e),t=t.sibling}function Zf(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ze(t,e),ut(e),r&4){try{zr(3,e,e.return),Mi(3,e)}catch(w){te(e,e.return,w)}try{zr(5,e,e.return)}catch(w){te(e,e.return,w)}}break;case 1:Ze(t,e),ut(e),r&512&&n!==null&&Fn(n,n.return);break;case 5:if(Ze(t,e),ut(e),r&512&&n!==null&&Fn(n,n.return),e.flags&32){var o=e.stateNode;try{Hr(o,"")}catch(w){te(e,e.return,w)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,l=n!==null?n.memoizedProps:i,s=e.type,u=e.updateQueue;if(e.updateQueue=null,u!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&xd(o,i),ts(s,l);var a=ts(s,i);for(l=0;l<u.length;l+=2){var c=u[l],f=u[l+1];c==="style"?_d(o,f):c==="dangerouslySetInnerHTML"?Ed(o,f):c==="children"?Hr(o,f):iu(o,c,f,a)}switch(s){case"input":ql(o,i);break;case"textarea":Sd(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var v=i.value;v!=null?Bn(o,!!i.multiple,v,!1):m!==!!i.multiple&&(i.defaultValue!=null?Bn(o,!!i.multiple,i.defaultValue,!0):Bn(o,!!i.multiple,i.multiple?[]:"",!1))}o[Jr]=i}catch(w){te(e,e.return,w)}}break;case 6:if(Ze(t,e),ut(e),r&4){if(e.stateNode===null)throw Error(P(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(w){te(e,e.return,w)}}break;case 3:if(Ze(t,e),ut(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Qr(t.containerInfo)}catch(w){te(e,e.return,w)}break;case 4:Ze(t,e),ut(e);break;case 13:Ze(t,e),ut(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Du=ne())),r&4&&ac(e);break;case 22:if(c=n!==null&&n.memoizedState!==null,e.mode&1?(ke=(a=ke)||c,Ze(t,e),ke=a):Ze(t,e),ut(e),r&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(N=e,c=e.child;c!==null;){for(f=N=c;N!==null;){switch(m=N,v=m.child,m.tag){case 0:case 11:case 14:case 15:zr(4,m,m.return);break;case 1:Fn(m,m.return);var y=m.stateNode;if(typeof y.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(w){te(r,n,w)}}break;case 5:Fn(m,m.return);break;case 22:if(m.memoizedState!==null){dc(f);continue}}v!==null?(v.return=m,N=v):dc(f)}c=c.sibling}e:for(c=null,f=e;;){if(f.tag===5){if(c===null){c=f;try{o=f.stateNode,a?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,u=f.memoizedProps.style,l=u!=null&&u.hasOwnProperty("display")?u.display:null,s.style.display=Cd("display",l))}catch(w){te(e,e.return,w)}}}else if(f.tag===6){if(c===null)try{f.stateNode.nodeValue=a?"":f.memoizedProps}catch(w){te(e,e.return,w)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;c===f&&(c=null),f=f.return}c===f&&(c=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Ze(t,e),ut(e),r&4&&ac(e);break;case 21:break;default:Ze(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(Jf(n)){var r=n;break e}n=n.return}throw Error(P(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(Hr(o,""),r.flags&=-33);var i=uc(e);Os(e,i,o);break;case 3:case 4:var l=r.stateNode.containerInfo,s=uc(e);Ns(e,s,l);break;default:throw Error(P(161))}}catch(u){te(e,e.return,u)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xg(e,t,n){N=e,ep(e)}function ep(e,t,n){for(var r=(e.mode&1)!==0;N!==null;){var o=N,i=o.child;if(o.tag===22&&r){var l=o.memoizedState!==null||No;if(!l){var s=o.alternate,u=s!==null&&s.memoizedState!==null||ke;s=No;var a=ke;if(No=l,(ke=u)&&!a)for(N=o;N!==null;)l=N,u=l.child,l.tag===22&&l.memoizedState!==null?fc(o):u!==null?(u.return=l,N=u):fc(o);for(;i!==null;)N=i,ep(i),i=i.sibling;N=o,No=s,ke=a}cc(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,N=i):cc(e)}}function cc(e){for(;N!==null;){var t=N;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:ke||Mi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!ke)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:et(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&Ga(t,i,r);break;case 3:var l=t.updateQueue;if(l!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}Ga(t,l,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var f=c.dehydrated;f!==null&&Qr(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}ke||t.flags&512&&js(t)}catch(m){te(t,t.return,m)}}if(t===e){N=null;break}if(n=t.sibling,n!==null){n.return=t.return,N=n;break}N=t.return}}function dc(e){for(;N!==null;){var t=N;if(t===e){N=null;break}var n=t.sibling;if(n!==null){n.return=t.return,N=n;break}N=t.return}}function fc(e){for(;N!==null;){var t=N;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Mi(4,t)}catch(u){te(t,n,u)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(u){te(t,o,u)}}var i=t.return;try{js(t)}catch(u){te(t,i,u)}break;case 5:var l=t.return;try{js(t)}catch(u){te(t,l,u)}}}catch(u){te(t,t.return,u)}if(t===e){N=null;break}var s=t.sibling;if(s!==null){s.return=t.return,N=s;break}N=t.return}}var Sg=Math.ceil,wi=Pt.ReactCurrentDispatcher,zu=Pt.ReactCurrentOwner,Ge=Pt.ReactCurrentBatchConfig,U=0,pe=null,le=null,ge=0,Fe=0,Dn=qt(0),ue=0,ro=null,mn=0,Bi=0,Fu=0,Fr=null,Re=null,Du=0,Xn=1/0,gt=null,xi=!1,$s=null,bt=null,Oo=!1,Ft=null,Si=0,Dr=0,Is=null,Vo=-1,Wo=0;function _e(){return U&6?ne():Vo!==-1?Vo:Vo=ne()}function Vt(e){return e.mode&1?U&2&&ge!==0?ge&-ge:og.transition!==null?(Wo===0&&(Wo=Fd()),Wo):(e=b,e!==0||(e=window.event,e=e===void 0?16:Vd(e.type)),e):1}function ot(e,t,n,r){if(50<Dr)throw Dr=0,Is=null,Error(P(185));uo(e,n,r),(!(U&2)||e!==pe)&&(e===pe&&(!(U&2)&&(Bi|=n),ue===4&&Lt(e,ge)),$e(e,r),n===1&&U===0&&!(t.mode&1)&&(Xn=ne()+500,zi&&Jt()))}function $e(e,t){var n=e.callbackNode;om(e,t);var r=oi(e,e===pe?ge:0);if(r===0)n!==null&&Sa(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&Sa(n),t===1)e.tag===0?rg(pc.bind(null,e)):cf(pc.bind(null,e)),Zm(function(){!(U&6)&&Jt()}),n=null;else{switch(Dd(r)){case 1:n=cu;break;case 4:n=Ld;break;case 16:n=ri;break;case 536870912:n=zd;break;default:n=ri}n=up(n,tp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function tp(e,t){if(Vo=-1,Wo=0,U&6)throw Error(P(327));var n=e.callbackNode;if(Wn()&&e.callbackNode!==n)return null;var r=oi(e,e===pe?ge:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=ki(e,r);else{t=r;var o=U;U|=2;var i=rp();(pe!==e||ge!==t)&&(gt=null,Xn=ne()+500,un(e,t));do try{Cg();break}catch(s){np(e,s)}while(!0);Eu(),wi.current=i,U=o,le!==null?t=0:(pe=null,ge=0,t=ue)}if(t!==0){if(t===2&&(o=ls(e),o!==0&&(r=o,t=As(e,o))),t===1)throw n=ro,un(e,0),Lt(e,r),$e(e,ne()),n;if(t===6)Lt(e,r);else{if(o=e.current.alternate,!(r&30)&&!kg(o)&&(t=ki(e,r),t===2&&(i=ls(e),i!==0&&(r=i,t=As(e,i))),t===1))throw n=ro,un(e,0),Lt(e,r),$e(e,ne()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(P(345));case 2:tn(e,Re,gt);break;case 3:if(Lt(e,r),(r&130023424)===r&&(t=Du+500-ne(),10<t)){if(oi(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){_e(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=hs(tn.bind(null,e,Re,gt),t);break}tn(e,Re,gt);break;case 4:if(Lt(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var l=31-rt(r);i=1<<l,l=t[l],l>o&&(o=l),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Sg(r/1960))-r,10<r){e.timeoutHandle=hs(tn.bind(null,e,Re,gt),r);break}tn(e,Re,gt);break;case 5:tn(e,Re,gt);break;default:throw Error(P(329))}}}return $e(e,ne()),e.callbackNode===n?tp.bind(null,e):null}function As(e,t){var n=Fr;return e.current.memoizedState.isDehydrated&&(un(e,t).flags|=256),e=ki(e,t),e!==2&&(t=Re,Re=n,t!==null&&Ls(t)),e}function Ls(e){Re===null?Re=e:Re.push.apply(Re,e)}function kg(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!lt(i(),o))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Lt(e,t){for(t&=~Fu,t&=~Bi,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-rt(t),r=1<<n;e[n]=-1,t&=~r}}function pc(e){if(U&6)throw Error(P(327));Wn();var t=oi(e,0);if(!(t&1))return $e(e,ne()),null;var n=ki(e,t);if(e.tag!==0&&n===2){var r=ls(e);r!==0&&(t=r,n=As(e,r))}if(n===1)throw n=ro,un(e,0),Lt(e,t),$e(e,ne()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,tn(e,Re,gt),$e(e,ne()),null}function Mu(e,t){var n=U;U|=1;try{return e(t)}finally{U=n,U===0&&(Xn=ne()+500,zi&&Jt())}}function gn(e){Ft!==null&&Ft.tag===0&&!(U&6)&&Wn();var t=U;U|=1;var n=Ge.transition,r=b;try{if(Ge.transition=null,b=1,e)return e()}finally{b=r,Ge.transition=n,U=t,!(U&6)&&Jt()}}function Bu(){Fe=Dn.current,q(Dn)}function un(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xm(n)),le!==null)for(n=le.return;n!==null;){var r=n;switch(xu(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ai();break;case 3:qn(),q(Ne),q(Ee),ju();break;case 5:Ru(r);break;case 4:qn();break;case 13:q(X);break;case 19:q(X);break;case 10:Cu(r.type._context);break;case 22:case 23:Bu()}n=n.return}if(pe=e,le=e=Wt(e.current,null),ge=Fe=t,ue=0,ro=null,Fu=Bi=mn=0,Re=Fr=null,rn!==null){for(t=0;t<rn.length;t++)if(n=rn[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var l=i.next;i.next=o,r.next=l}n.pending=r}rn=null}return e}function np(e,t){do{var n=le;try{if(Eu(),Uo.current=vi,yi){for(var r=Z.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}yi=!1}if(hn=0,ce=se=Z=null,Lr=!1,eo=0,zu.current=null,n===null||n.return===null){ue=1,ro=t,le=null;break}e:{var i=e,l=n.return,s=n,u=t;if(t=ge,s.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){var a=u,c=s,f=c.tag;if(!(c.mode&1)&&(f===0||f===11||f===15)){var m=c.alternate;m?(c.updateQueue=m.updateQueue,c.memoizedState=m.memoizedState,c.lanes=m.lanes):(c.updateQueue=null,c.memoizedState=null)}var v=ec(l);if(v!==null){v.flags&=-257,tc(v,l,s,i,t),v.mode&1&&Za(i,a,t),t=v,u=a;var y=t.updateQueue;if(y===null){var w=new Set;w.add(u),t.updateQueue=w}else y.add(u);break e}else{if(!(t&1)){Za(i,a,t),Uu();break e}u=Error(P(426))}}else if(J&&s.mode&1){var E=ec(l);if(E!==null){!(E.flags&65536)&&(E.flags|=256),tc(E,l,s,i,t),Su(Jn(u,s));break e}}i=u=Jn(u,s),ue!==4&&(ue=2),Fr===null?Fr=[i]:Fr.push(i),i=l;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var p=Mf(i,u,t);Ka(i,p);break e;case 1:s=u;var d=i.type,h=i.stateNode;if(!(i.flags&128)&&(typeof d.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(bt===null||!bt.has(h)))){i.flags|=65536,t&=-t,i.lanes|=t;var x=Bf(i,s,t);Ka(i,x);break e}}i=i.return}while(i!==null)}ip(n)}catch(k){t=k,le===n&&n!==null&&(le=n=n.return);continue}break}while(!0)}function rp(){var e=wi.current;return wi.current=vi,e===null?vi:e}function Uu(){(ue===0||ue===3||ue===2)&&(ue=4),pe===null||!(mn&268435455)&&!(Bi&268435455)||Lt(pe,ge)}function ki(e,t){var n=U;U|=2;var r=rp();(pe!==e||ge!==t)&&(gt=null,un(e,t));do try{Eg();break}catch(o){np(e,o)}while(!0);if(Eu(),U=n,wi.current=r,le!==null)throw Error(P(261));return pe=null,ge=0,ue}function Eg(){for(;le!==null;)op(le)}function Cg(){for(;le!==null&&!Yh();)op(le)}function op(e){var t=sp(e.alternate,e,Fe);e.memoizedProps=e.pendingProps,t===null?ip(e):le=t,zu.current=null}function ip(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=yg(n,t),n!==null){n.flags&=32767,le=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ue=6,le=null;return}}else if(n=gg(n,t,Fe),n!==null){le=n;return}if(t=t.sibling,t!==null){le=t;return}le=t=e}while(t!==null);ue===0&&(ue=5)}function tn(e,t,n){var r=b,o=Ge.transition;try{Ge.transition=null,b=1,_g(e,t,n,r)}finally{Ge.transition=o,b=r}return null}function _g(e,t,n,r){do Wn();while(Ft!==null);if(U&6)throw Error(P(327));n=e.finishedWork;var o=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(im(e,i),e===pe&&(le=pe=null,ge=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Oo||(Oo=!0,up(ri,function(){return Wn(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=Ge.transition,Ge.transition=null;var l=b;b=1;var s=U;U|=4,zu.current=null,wg(e,n),Zf(n,e),Wm(fs),ii=!!ds,fs=ds=null,e.current=n,xg(n),qh(),U=s,b=l,Ge.transition=i}else e.current=n;if(Oo&&(Oo=!1,Ft=e,Si=o),i=e.pendingLanes,i===0&&(bt=null),Zh(n.stateNode),$e(e,ne()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(xi)throw xi=!1,e=$s,$s=null,e;return Si&1&&e.tag!==0&&Wn(),i=e.pendingLanes,i&1?e===Is?Dr++:(Dr=0,Is=e):Dr=0,Jt(),null}function Wn(){if(Ft!==null){var e=Dd(Si),t=Ge.transition,n=b;try{if(Ge.transition=null,b=16>e?16:e,Ft===null)var r=!1;else{if(e=Ft,Ft=null,Si=0,U&6)throw Error(P(331));var o=U;for(U|=4,N=e.current;N!==null;){var i=N,l=i.child;if(N.flags&16){var s=i.deletions;if(s!==null){for(var u=0;u<s.length;u++){var a=s[u];for(N=a;N!==null;){var c=N;switch(c.tag){case 0:case 11:case 15:zr(8,c,i)}var f=c.child;if(f!==null)f.return=c,N=f;else for(;N!==null;){c=N;var m=c.sibling,v=c.return;if(qf(c),c===a){N=null;break}if(m!==null){m.return=v,N=m;break}N=v}}}var y=i.alternate;if(y!==null){var w=y.child;if(w!==null){y.child=null;do{var E=w.sibling;w.sibling=null,w=E}while(w!==null)}}N=i}}if(i.subtreeFlags&2064&&l!==null)l.return=i,N=l;else e:for(;N!==null;){if(i=N,i.flags&2048)switch(i.tag){case 0:case 11:case 15:zr(9,i,i.return)}var p=i.sibling;if(p!==null){p.return=i.return,N=p;break e}N=i.return}}var d=e.current;for(N=d;N!==null;){l=N;var h=l.child;if(l.subtreeFlags&2064&&h!==null)h.return=l,N=h;else e:for(l=d;N!==null;){if(s=N,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Mi(9,s)}}catch(k){te(s,s.return,k)}if(s===l){N=null;break e}var x=s.sibling;if(x!==null){x.return=s.return,N=x;break e}N=s.return}}if(U=o,Jt(),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(Oi,e)}catch{}r=!0}return r}finally{b=n,Ge.transition=t}}return!1}function hc(e,t,n){t=Jn(n,t),t=Mf(e,t,1),e=Ht(e,t,1),t=_e(),e!==null&&(uo(e,1,t),$e(e,t))}function te(e,t,n){if(e.tag===3)hc(e,e,n);else for(;t!==null;){if(t.tag===3){hc(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(bt===null||!bt.has(r))){e=Jn(n,e),e=Bf(t,e,1),t=Ht(t,e,1),e=_e(),t!==null&&(uo(t,1,e),$e(t,e));break}}t=t.return}}function Pg(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=_e(),e.pingedLanes|=e.suspendedLanes&n,pe===e&&(ge&n)===n&&(ue===4||ue===3&&(ge&130023424)===ge&&500>ne()-Du?un(e,0):Fu|=n),$e(e,t)}function lp(e,t){t===0&&(e.mode&1?(t=So,So<<=1,!(So&130023424)&&(So=4194304)):t=1);var n=_e();e=Ct(e,t),e!==null&&(uo(e,t,n),$e(e,n))}function Tg(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lp(e,n)}function Rg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),lp(e,n)}var sp;sp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,mg(e,t,n);je=!!(e.flags&131072)}else je=!1,J&&t.flags&1048576&&df(t,fi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;bo(e,t),e=t.pendingProps;var o=Kn(t,Ee.current);Vn(t,n),o=Ou(null,t,r,e,o,n);var i=$u();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oe(r)?(i=!0,ci(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Pu(t),o.updater=Di,t.stateNode=o,o._reactInternals=t,Ss(t,r,e,n),t=Cs(null,t,r,!0,i,n)):(t.tag=0,J&&i&&wu(t),Ce(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(bo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Ng(r),e=et(r,e),o){case 0:t=Es(null,t,r,e,n);break e;case 1:t=oc(null,t,r,e,n);break e;case 11:t=nc(null,t,r,e,n);break e;case 14:t=rc(null,t,r,et(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Es(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),oc(e,t,r,o,n);case 3:e:{if(Vf(t),e===null)throw Error(P(387));r=t.pendingProps,i=t.memoizedState,o=i.element,yf(e,t),mi(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Jn(Error(P(423)),t),t=ic(e,t,r,n,o);break e}else if(r!==o){o=Jn(Error(P(424)),t),t=ic(e,t,r,n,o);break e}else for(Me=Ut(t.stateNode.containerInfo.firstChild),Be=t,J=!0,nt=null,n=mf(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Gn(),r===o){t=_t(e,t,n);break e}Ce(e,t,r,n)}t=t.child}return t;case 5:return vf(t),e===null&&vs(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ps(r,o)?l=null:i!==null&&ps(r,i)&&(t.flags|=32),bf(e,t),Ce(e,t,l,n),t.child;case 6:return e===null&&vs(t),null;case 13:return Wf(e,t,n);case 4:return Tu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Yn(t,null,r,n):Ce(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),nc(e,t,r,o,n);case 7:return Ce(e,t,t.pendingProps,n),t.child;case 8:return Ce(e,t,t.pendingProps.children,n),t.child;case 12:return Ce(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,Q(pi,r._currentValue),r._currentValue=l,i!==null)if(lt(i.value,l)){if(i.children===o.children&&!Ne.current){t=_t(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(i.tag===1){u=St(-1,n&-n),u.tag=2;var a=i.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}i.lanes|=n,u=i.alternate,u!==null&&(u.lanes|=n),ws(i.return,n,t),s.lanes|=n;break}u=u.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(P(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ws(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}Ce(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Vn(t,n),o=Ye(o),r=r(o),t.flags|=1,Ce(e,t,r,n),t.child;case 14:return r=t.type,o=et(r,t.pendingProps),o=et(r.type,o),rc(e,t,r,o,n);case 15:return Uf(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),bo(e,t),t.tag=1,Oe(r)?(e=!0,ci(t)):e=!1,Vn(t,n),Df(t,r,o),Ss(t,r,o,n),Cs(null,t,r,!0,e,n);case 19:return Qf(e,t,n);case 22:return Hf(e,t,n)}throw Error(P(156,t.tag))};function up(e,t){return Ad(e,t)}function jg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ke(e,t,n,r){return new jg(e,t,n,r)}function Hu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ng(e){if(typeof e=="function")return Hu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===su)return 11;if(e===uu)return 14}return 2}function Wt(e,t){var n=e.alternate;return n===null?(n=Ke(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Qo(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Hu(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case Rn:return an(n.children,o,i,t);case lu:l=8,o|=8;break;case Wl:return e=Ke(12,n,t,o|2),e.elementType=Wl,e.lanes=i,e;case Ql:return e=Ke(13,n,t,o),e.elementType=Ql,e.lanes=i,e;case Kl:return e=Ke(19,n,t,o),e.elementType=Kl,e.lanes=i,e;case yd:return Ui(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case md:l=10;break e;case gd:l=9;break e;case su:l=11;break e;case uu:l=14;break e;case $t:l=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Ke(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function an(e,t,n,r){return e=Ke(7,e,r,t),e.lanes=n,e}function Ui(e,t,n,r){return e=Ke(22,e,r,t),e.elementType=yd,e.lanes=n,e.stateNode={isHidden:!1},e}function Nl(e,t,n){return e=Ke(6,e,null,t),e.lanes=n,e}function Ol(e,t,n){return t=Ke(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Og(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=dl(0),this.expirationTimes=dl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=dl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function bu(e,t,n,r,o,i,l,s,u){return e=new Og(e,t,n,s,u),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ke(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Pu(i),e}function $g(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Tn,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function ap(e){if(!e)return Gt;e=e._reactInternals;e:{if(Sn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oe(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(Oe(n))return af(e,n,t)}return t}function cp(e,t,n,r,o,i,l,s,u){return e=bu(n,r,!0,e,o,i,l,s,u),e.context=ap(null),n=e.current,r=_e(),o=Vt(n),i=St(r,o),i.callback=t??null,Ht(n,i,o),e.current.lanes=o,uo(e,o,r),$e(e,r),e}function Hi(e,t,n,r){var o=t.current,i=_e(),l=Vt(o);return n=ap(n),t.context===null?t.context=n:t.pendingContext=n,t=St(i,l),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Ht(o,t,l),e!==null&&(ot(e,o,l,i),Bo(e,o,l)),l}function Ei(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function mc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Vu(e,t){mc(e,t),(e=e.alternate)&&mc(e,t)}function Ig(){return null}var dp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Wu(e){this._internalRoot=e}bi.prototype.render=Wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Hi(e,t,null,null)};bi.prototype.unmount=Wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;gn(function(){Hi(null,e,null,null)}),t[Et]=null}};function bi(e){this._internalRoot=e}bi.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ud();e={blockedOn:null,target:e,priority:t};for(var n=0;n<At.length&&t!==0&&t<At[n].priority;n++);At.splice(n,0,e),n===0&&bd(e)}};function Qu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Vi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function gc(){}function Ag(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var a=Ei(l);i.call(a)}}var l=cp(t,r,e,0,null,!1,!1,"",gc);return e._reactRootContainer=l,e[Et]=l.current,Yr(e.nodeType===8?e.parentNode:e),gn(),l}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var a=Ei(u);s.call(a)}}var u=bu(e,0,!1,null,null,!1,!1,"",gc);return e._reactRootContainer=u,e[Et]=u.current,Yr(e.nodeType===8?e.parentNode:e),gn(function(){Hi(t,u,n,r)}),u}function Wi(e,t,n,r,o){var i=n._reactRootContainer;if(i){var l=i;if(typeof o=="function"){var s=o;o=function(){var u=Ei(l);s.call(u)}}Hi(t,l,e,o)}else l=Ag(n,t,e,o,r);return Ei(l)}Md=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Tr(t.pendingLanes);n!==0&&(du(t,n|1),$e(t,ne()),!(U&6)&&(Xn=ne()+500,Jt()))}break;case 13:gn(function(){var r=Ct(e,1);if(r!==null){var o=_e();ot(r,e,1,o)}}),Vu(e,1)}};fu=function(e){if(e.tag===13){var t=Ct(e,134217728);if(t!==null){var n=_e();ot(t,e,134217728,n)}Vu(e,134217728)}};Bd=function(e){if(e.tag===13){var t=Vt(e),n=Ct(e,t);if(n!==null){var r=_e();ot(n,e,t,r)}Vu(e,t)}};Ud=function(){return b};Hd=function(e,t){var n=b;try{return b=e,t()}finally{b=n}};rs=function(e,t,n){switch(t){case"input":if(ql(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Li(r);if(!o)throw Error(P(90));wd(r),ql(r,o)}}}break;case"textarea":Sd(e,n);break;case"select":t=n.value,t!=null&&Bn(e,!!n.multiple,t,!1)}};Rd=Mu;jd=gn;var Lg={usingClientEntryPoint:!1,Events:[co,$n,Li,Pd,Td,Mu]},vr={findFiberByHostInstance:nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},zg={bundleType:vr.bundleType,version:vr.version,rendererPackageName:vr.rendererPackageName,rendererConfig:vr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Pt.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=$d(e),e===null?null:e.stateNode},findFiberByHostInstance:vr.findFiberByHostInstance||Ig,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $o=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$o.isDisabled&&$o.supportsFiber)try{Oi=$o.inject(zg),ft=$o}catch{}}be.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Lg;be.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Qu(t))throw Error(P(200));return $g(e,t,null,n)};be.createRoot=function(e,t){if(!Qu(e))throw Error(P(299));var n=!1,r="",o=dp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=bu(e,1,!1,null,null,n,!1,r,o),e[Et]=t.current,Yr(e.nodeType===8?e.parentNode:e),new Wu(t)};be.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=$d(t),e=e===null?null:e.stateNode,e};be.flushSync=function(e){return gn(e)};be.hydrate=function(e,t,n){if(!Vi(t))throw Error(P(200));return Wi(null,e,t,!0,n)};be.hydrateRoot=function(e,t,n){if(!Qu(e))throw Error(P(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",l=dp;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(l=n.onRecoverableError)),t=cp(t,null,e,1,n??null,o,!1,i,l),e[Et]=t.current,Yr(e),r)for(e=0;e<r.length;e++)n=r[e],o=n._getVersion,o=o(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new bi(t)};be.render=function(e,t,n){if(!Vi(t))throw Error(P(200));return Wi(null,e,t,!1,n)};be.unmountComponentAtNode=function(e){if(!Vi(e))throw Error(P(40));return e._reactRootContainer?(gn(function(){Wi(null,null,e,!1,function(){e._reactRootContainer=null,e[Et]=null})}),!0):!1};be.unstable_batchedUpdates=Mu;be.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Vi(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Wi(e,t,n,!1,r)};be.version="18.3.1-next-f1338f8080-20240426";function fp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(fp)}catch(e){console.error(e)}}fp(),dd.exports=be;var Fg=dd.exports,pp,yc=Fg;pp=yc.createRoot,yc.hydrateRoot;var hp={exports:{}},Qi={};/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.production.min.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/var Dg=O,Mg=Symbol.for("react.element"),Bg=Symbol.for("react.fragment"),Ug=Object.prototype.hasOwnProperty,Hg=Dg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,bg={key:!0,ref:!0,__self:!0,__source:!0};function mp(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Ug.call(t,r)&&!bg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:Mg,type:e,key:i,ref:l,props:o,_owner:Hg.current}}Qi.Fragment=Bg;Qi.jsx=mp;Qi.jsxs=mp;hp.exports=Qi;var g=hp.exports,fe=function(){return fe=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},fe.apply(this,arguments)};function Zn(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var Y="-ms-",Mr="-moz-",H="-webkit-",gp="comm",Ki="rule",Ku="decl",Vg="@import",yp="@keyframes",Wg="@layer",vp=Math.abs,Gu=String.fromCharCode,zs=Object.assign;function Qg(e,t){return de(e,0)^45?(((t<<2^de(e,0))<<2^de(e,1))<<2^de(e,2))<<2^de(e,3):0}function wp(e){return e.trim()}function yt(e,t){return(e=t.exec(e))?e[0]:e}function F(e,t,n){return e.replace(t,n)}function Ko(e,t,n){return e.indexOf(t,n)}function de(e,t){return e.charCodeAt(t)|0}function er(e,t,n){return e.slice(t,n)}function ct(e){return e.length}function xp(e){return e.length}function jr(e,t){return t.push(e),e}function Kg(e,t){return e.map(t).join("")}function vc(e,t){return e.filter(function(n){return!yt(n,t)})}var Gi=1,tr=1,Sp=0,Je=0,ie=0,sr="";function Yi(e,t,n,r,o,i,l,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Gi,column:tr,length:l,return:"",siblings:s}}function Ot(e,t){return zs(Yi("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function En(e){for(;e.root;)e=Ot(e.root,{children:[e]});jr(e,e.siblings)}function Gg(){return ie}function Yg(){return ie=Je>0?de(sr,--Je):0,tr--,ie===10&&(tr=1,Gi--),ie}function it(){return ie=Je<Sp?de(sr,Je++):0,tr++,ie===10&&(tr=1,Gi++),ie}function cn(){return de(sr,Je)}function Go(){return Je}function qi(e,t){return er(sr,e,t)}function Fs(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function qg(e){return Gi=tr=1,Sp=ct(sr=e),Je=0,[]}function Jg(e){return sr="",e}function $l(e){return wp(qi(Je-1,Ds(e===91?e+2:e===40?e+1:e)))}function Xg(e){for(;(ie=cn())&&ie<33;)it();return Fs(e)>2||Fs(ie)>3?"":" "}function Zg(e,t){for(;--t&&it()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return qi(e,Go()+(t<6&&cn()==32&&it()==32))}function Ds(e){for(;it();)switch(ie){case e:return Je;case 34:case 39:e!==34&&e!==39&&Ds(ie);break;case 40:e===41&&Ds(e);break;case 92:it();break}return Je}function ey(e,t){for(;it()&&e+ie!==57;)if(e+ie===84&&cn()===47)break;return"/*"+qi(t,Je-1)+"*"+Gu(e===47?e:it())}function ty(e){for(;!Fs(cn());)it();return qi(e,Je)}function ny(e){return Jg(Yo("",null,null,null,[""],e=qg(e),0,[0],e))}function Yo(e,t,n,r,o,i,l,s,u){for(var a=0,c=0,f=l,m=0,v=0,y=0,w=1,E=1,p=1,d=0,h="",x=o,k=i,_=r,C=h;E;)switch(y=d,d=it()){case 40:if(y!=108&&de(C,f-1)==58){Ko(C+=F($l(d),"&","&\f"),"&\f",vp(a?s[a-1]:0))!=-1&&(p=-1);break}case 34:case 39:case 91:C+=$l(d);break;case 9:case 10:case 13:case 32:C+=Xg(y);break;case 92:C+=Zg(Go()-1,7);continue;case 47:switch(cn()){case 42:case 47:jr(ry(ey(it(),Go()),t,n,u),u);break;default:C+="/"}break;case 123*w:s[a++]=ct(C)*p;case 125*w:case 59:case 0:switch(d){case 0:case 125:E=0;case 59+c:p==-1&&(C=F(C,/\f/g,"")),v>0&&ct(C)-f&&jr(v>32?xc(C+";",r,n,f-1,u):xc(F(C," ","")+";",r,n,f-2,u),u);break;case 59:C+=";";default:if(jr(_=wc(C,t,n,a,c,o,s,h,x=[],k=[],f,i),i),d===123)if(c===0)Yo(C,t,_,_,x,i,f,s,k);else switch(m===99&&de(C,3)===110?100:m){case 100:case 108:case 109:case 115:Yo(e,_,_,r&&jr(wc(e,_,_,0,0,o,s,h,o,x=[],f,k),k),o,k,f,s,r?x:k);break;default:Yo(C,_,_,_,[""],k,0,s,k)}}a=c=v=0,w=p=1,h=C="",f=l;break;case 58:f=1+ct(C),v=y;default:if(w<1){if(d==123)--w;else if(d==125&&w++==0&&Yg()==125)continue}switch(C+=Gu(d),d*w){case 38:p=c>0?1:(C+="\f",-1);break;case 44:s[a++]=(ct(C)-1)*p,p=1;break;case 64:cn()===45&&(C+=$l(it())),m=cn(),c=f=ct(h=C+=ty(Go())),d++;break;case 45:y===45&&ct(C)==2&&(w=0)}}return i}function wc(e,t,n,r,o,i,l,s,u,a,c,f){for(var m=o-1,v=o===0?i:[""],y=xp(v),w=0,E=0,p=0;w<r;++w)for(var d=0,h=er(e,m+1,m=vp(E=l[w])),x=e;d<y;++d)(x=wp(E>0?v[d]+" "+h:F(h,/&\f/g,v[d])))&&(u[p++]=x);return Yi(e,t,n,o===0?Ki:s,u,a,c,f)}function ry(e,t,n,r){return Yi(e,t,n,gp,Gu(Gg()),er(e,2,-2),0,r)}function xc(e,t,n,r,o){return Yi(e,t,n,Ku,er(e,0,r),er(e,r+1,-1),r,o)}function kp(e,t,n){switch(Qg(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 4789:return Mr+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Mr+e+Y+e+e;case 5936:switch(de(e,t+11)){case 114:return H+e+Y+F(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Y+F(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Y+F(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return H+e+Y+e+e;case 6165:return H+e+Y+"flex-"+e+e;case 5187:return H+e+F(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return H+e+Y+"flex-item-"+F(e,/flex-|-self/g,"")+(yt(e,/flex-|baseline/)?"":Y+"grid-row-"+F(e,/flex-|-self/g,""))+e;case 4675:return H+e+Y+"flex-line-pack"+F(e,/align-content|flex-|-self/g,"")+e;case 5548:return H+e+Y+F(e,"shrink","negative")+e;case 5292:return H+e+Y+F(e,"basis","preferred-size")+e;case 6060:return H+"box-"+F(e,"-grow","")+H+e+Y+F(e,"grow","positive")+e;case 4554:return H+F(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return F(F(F(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return F(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return F(F(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4200:if(!yt(e,/flex-|baseline/))return Y+"grid-column-align"+er(e,t)+e;break;case 2592:case 3360:return Y+F(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,yt(r.props,/grid-\w+-end/)})?~Ko(e+(n=n[t].value),"span",0)?e:Y+F(e,"-start","")+e+Y+"grid-row-span:"+(~Ko(n,"span",0)?yt(n,/\d+/):+yt(n,/\d+/)-+yt(e,/\d+/))+";":Y+F(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return yt(r.props,/grid-\w+-start/)})?e:Y+F(F(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return F(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ct(e)-1-t>6)switch(de(e,t+1)){case 109:if(de(e,t+4)!==45)break;case 102:return F(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Mr+(de(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ko(e,"stretch",0)?kp(F(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return F(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,l,s,u,a){return Y+o+":"+i+a+(l?Y+o+"-span:"+(s?u:+u-+i)+a:"")+e});case 4949:if(de(e,t+6)===121)return F(e,":",":"+H)+e;break;case 6444:switch(de(e,de(e,14)===45?18:11)){case 120:return F(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+H+(de(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Y+"$2box$3")+e;case 100:return F(e,":",":"+Y)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return F(e,"scroll-","scroll-snap-")+e}return e}function Ci(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function oy(e,t,n,r){switch(e.type){case Wg:if(e.children.length)break;case Vg:case Ku:return e.return=e.return||e.value;case gp:return"";case yp:return e.return=e.value+"{"+Ci(e.children,r)+"}";case Ki:if(!ct(e.value=e.props.join(",")))return""}return ct(n=Ci(e.children,r))?e.return=e.value+"{"+n+"}":""}function iy(e){var t=xp(e);return function(n,r,o,i){for(var l="",s=0;s<t;s++)l+=e[s](n,r,o,i)||"";return l}}function ly(e){return function(t){t.root||(t=t.return)&&e(t)}}function sy(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ku:e.return=kp(e.value,e.length,n);return;case yp:return Ci([Ot(e,{value:F(e.value,"@","@"+H)})],r);case Ki:if(e.length)return Kg(n=e.props,function(o){switch(yt(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":En(Ot(e,{props:[F(o,/:(read-\w+)/,":"+Mr+"$1")]})),En(Ot(e,{props:[o]})),zs(e,{props:vc(n,r)});break;case"::placeholder":En(Ot(e,{props:[F(o,/:(plac\w+)/,":"+H+"input-$1")]})),En(Ot(e,{props:[F(o,/:(plac\w+)/,":"+Mr+"$1")]})),En(Ot(e,{props:[F(o,/:(plac\w+)/,Y+"input-$1")]})),En(Ot(e,{props:[o]})),zs(e,{props:vc(n,r)});break}return""})}}var uy={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ze={},nr=typeof process<"u"&&ze!==void 0&&(ze.REACT_APP_SC_ATTR||ze.SC_ATTR)||"data-styled",Ep="active",Cp="data-styled-version",Ji="6.1.13",Yu=`/*!sc*/
|
|
41
|
-
`,_i=typeof window<"u"&&"HTMLElement"in window,ay=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&ze!==void 0&&ze.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&ze.REACT_APP_SC_DISABLE_SPEEDY!==""?ze.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&ze.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&ze!==void 0&&ze.SC_DISABLE_SPEEDY!==void 0&&ze.SC_DISABLE_SPEEDY!==""&&ze.SC_DISABLE_SPEEDY!=="false"&&ze.SC_DISABLE_SPEEDY),cy={},Xi=Object.freeze([]),rr=Object.freeze({});function _p(e,t,n){return n===void 0&&(n=rr),e.theme!==n.theme&&e.theme||t||n.theme}var Pp=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),dy=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,fy=/(^-|-$)/g;function Sc(e){return e.replace(dy,"-").replace(fy,"")}var py=/(a)(d)/gi,Io=52,kc=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ms(e){var t,n="";for(t=Math.abs(e);t>Io;t=t/Io|0)n=kc(t%Io)+n;return(kc(t%Io)+n).replace(py,"$1-$2")}var Il,Tp=5381,Mn=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Rp=function(e){return Mn(Tp,e)};function qu(e){return Ms(Rp(e)>>>0)}function hy(e){return e.displayName||e.name||"Component"}function Al(e){return typeof e=="string"&&!0}var jp=typeof Symbol=="function"&&Symbol.for,Np=jp?Symbol.for("react.memo"):60115,my=jp?Symbol.for("react.forward_ref"):60112,gy={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},yy={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Op={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},vy=((Il={})[my]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Il[Np]=Op,Il);function Ec(e){return("type"in(t=e)&&t.type.$$typeof)===Np?Op:"$$typeof"in e?vy[e.$$typeof]:gy;var t}var wy=Object.defineProperty,xy=Object.getOwnPropertyNames,Cc=Object.getOwnPropertySymbols,Sy=Object.getOwnPropertyDescriptor,ky=Object.getPrototypeOf,_c=Object.prototype;function $p(e,t,n){if(typeof t!="string"){if(_c){var r=ky(t);r&&r!==_c&&$p(e,r,n)}var o=xy(t);Cc&&(o=o.concat(Cc(t)));for(var i=Ec(e),l=Ec(t),s=0;s<o.length;++s){var u=o[s];if(!(u in yy||n&&n[u]||l&&u in l||i&&u in i)){var a=Sy(t,u);try{wy(e,u,a)}catch{}}}}return e}function yn(e){return typeof e=="function"}function Ju(e){return typeof e=="object"&&"styledComponentId"in e}function ln(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Pi(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function oo(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Bs(e,t,n){if(n===void 0&&(n=!1),!n&&!oo(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Bs(e[r],t[r]);else if(oo(t))for(var r in t)e[r]=Bs(e[r],t[r]);return e}function Xu(e,t){Object.defineProperty(e,"toString",{value:t})}function vn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var Ey=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,i=o;t>=i;)if((i<<=1)<0)throw vn(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var l=o;l<i;l++)this.groupSizes[l]=0}for(var s=this.indexOfGroup(t+1),u=(l=0,n.length);l<u;l++)this.tag.insertRule(s,n[l])&&(this.groupSizes[t]++,s++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n;this.groupSizes[t]=0;for(var i=r;i<o;i++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],o=this.indexOfGroup(t),i=o+r,l=o;l<i;l++)n+="".concat(this.tag.getRule(l)).concat(Yu);return n},e}(),qo=new Map,Ti=new Map,Jo=1,Ao=function(e){if(qo.has(e))return qo.get(e);for(;Ti.has(Jo);)Jo++;var t=Jo++;return qo.set(e,t),Ti.set(t,e),t},Cy=function(e,t){Jo=t+1,qo.set(e,t),Ti.set(t,e)},_y="style[".concat(nr,"][").concat(Cp,'="').concat(Ji,'"]'),Py=new RegExp("^".concat(nr,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ty=function(e,t,n){for(var r,o=n.split(","),i=0,l=o.length;i<l;i++)(r=o[i])&&e.registerName(t,r)},Ry=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Yu),o=[],i=0,l=r.length;i<l;i++){var s=r[i].trim();if(s){var u=s.match(Py);if(u){var a=0|parseInt(u[1],10),c=u[2];a!==0&&(Cy(c,a),Ty(e,c,u[3]),e.getTag().insertRules(a,o)),o.length=0}else o.push(s)}}},Pc=function(e){for(var t=document.querySelectorAll(_y),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(nr)!==Ep&&(Ry(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function jy(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ip=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(s){var u=Array.from(s.querySelectorAll("style[".concat(nr,"]")));return u[u.length-1]}(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(nr,Ep),r.setAttribute(Cp,Ji);var l=jy();return l&&r.setAttribute("nonce",l),n.insertBefore(r,i),r},Ny=function(){function e(t){this.element=Ip(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var l=r[o];if(l.ownerNode===n)return l}throw vn(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),Oy=function(){function e(t){this.element=Ip(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),$y=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Tc=_i,Iy={isServer:!_i,useCSSOMInjection:!ay},Ri=function(){function e(t,n,r){t===void 0&&(t=rr),n===void 0&&(n={});var o=this;this.options=fe(fe({},Iy),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&_i&&Tc&&(Tc=!1,Pc(this)),Xu(this,function(){return function(i){for(var l=i.getTag(),s=l.length,u="",a=function(f){var m=function(p){return Ti.get(p)}(f);if(m===void 0)return"continue";var v=i.names.get(m),y=l.getGroup(f);if(v===void 0||!v.size||y.length===0)return"continue";var w="".concat(nr,".g").concat(f,'[id="').concat(m,'"]'),E="";v!==void 0&&v.forEach(function(p){p.length>0&&(E+="".concat(p,","))}),u+="".concat(y).concat(w,'{content:"').concat(E,'"}').concat(Yu)},c=0;c<s;c++)a(c);return u}(o)})}return e.registerId=function(t){return Ao(t)},e.prototype.rehydrate=function(){!this.server&&_i&&Pc(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(fe(fe({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,o=n.target;return n.isServer?new $y(o):r?new Ny(o):new Oy(o)}(this.options),new Ey(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Ao(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Ao(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ao(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Ay=/&/g,Ly=/^\s*\/\/.*$/gm;function Ap(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Ap(n.children,t)),n})}function zy(e){var t,n,r,o=rr,i=o.options,l=i===void 0?rr:i,s=o.plugins,u=s===void 0?Xi:s,a=function(m,v,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):m},c=u.slice();c.push(function(m){m.type===Ki&&m.value.includes("&")&&(m.props[0]=m.props[0].replace(Ay,n).replace(r,a))}),l.prefix&&c.push(sy),c.push(oy);var f=function(m,v,y,w){v===void 0&&(v=""),y===void 0&&(y=""),w===void 0&&(w="&"),t=w,n=v,r=new RegExp("\\".concat(n,"\\b"),"g");var E=m.replace(Ly,""),p=ny(y||v?"".concat(y," ").concat(v," { ").concat(E," }"):E);l.namespace&&(p=Ap(p,l.namespace));var d=[];return Ci(p,iy(c.concat(ly(function(h){return d.push(h)})))),d};return f.hash=u.length?u.reduce(function(m,v){return v.name||vn(15),Mn(m,v.name)},Tp).toString():"",f}var Fy=new Ri,Us=zy(),Lp=De.createContext({shouldForwardProp:void 0,styleSheet:Fy,stylis:Us});Lp.Consumer;De.createContext(void 0);function Hs(){return O.useContext(Lp)}var zp=function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=Us);var l=r.name+i.hash;o.hasNameForId(r.id,l)||o.insertRules(r.id,l,i(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Xu(this,function(){throw vn(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Us),this.name+t.hash},e}(),Dy=function(e){return e>="A"&&e<="Z"};function Rc(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Dy(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Fp=function(e){return e==null||e===!1||e===""},Dp=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Fp(i)&&(Array.isArray(i)&&i.isCss||yn(i)?r.push("".concat(Rc(o),":"),i,";"):oo(i)?r.push.apply(r,Zn(Zn(["".concat(o," {")],Dp(i),!1),["}"],!1)):r.push("".concat(Rc(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in uy||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Qt(e,t,n,r){if(Fp(e))return[];if(Ju(e))return[".".concat(e.styledComponentId)];if(yn(e)){if(!yn(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return Qt(o,t,n,r)}var i;return e instanceof zp?n?(e.inject(n,r),[e.getName(r)]):[e]:oo(e)?Dp(e):Array.isArray(e)?Array.prototype.concat.apply(Xi,e.map(function(l){return Qt(l,t,n,r)})):[e.toString()]}function Mp(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(yn(n)&&!Ju(n))return!1}return!0}var My=Rp(Ji),By=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&Mp(t),this.componentId=n,this.baseHash=Mn(My,n),this.baseStyle=r,Ri.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))o=ln(o,this.staticRulesId);else{var i=Pi(Qt(this.rules,t,n,r)),l=Ms(Mn(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,l)){var s=r(i,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,s)}o=ln(o,l),this.staticRulesId=l}else{for(var u=Mn(this.baseHash,r.hash),a="",c=0;c<this.rules.length;c++){var f=this.rules[c];if(typeof f=="string")a+=f;else if(f){var m=Pi(Qt(f,t,n,r));u=Mn(u,m+c),a+=m}}if(a){var v=Ms(u>>>0);n.hasNameForId(this.componentId,v)||n.insertRules(this.componentId,v,r(a,".".concat(v),void 0,this.componentId)),o=ln(o,v)}}return o},e}(),io=De.createContext(void 0);io.Consumer;function jc(e){var t=De.useContext(io),n=O.useMemo(function(){return function(r,o){if(!r)throw vn(14);if(yn(r)){var i=r(o);return i}if(Array.isArray(r)||typeof r!="object")throw vn(8);return o?fe(fe({},o),r):r}(e.theme,t)},[e.theme,t]);return e.children?De.createElement(io.Provider,{value:n},e.children):null}var Ll={};function Uy(e,t,n){var r=Ju(e),o=e,i=!Al(e),l=t.attrs,s=l===void 0?Xi:l,u=t.componentId,a=u===void 0?function(x,k){var _=typeof x!="string"?"sc":Sc(x);Ll[_]=(Ll[_]||0)+1;var C="".concat(_,"-").concat(qu(Ji+_+Ll[_]));return k?"".concat(k,"-").concat(C):C}(t.displayName,t.parentComponentId):u,c=t.displayName,f=c===void 0?function(x){return Al(x)?"styled.".concat(x):"Styled(".concat(hy(x),")")}(e):c,m=t.displayName&&t.componentId?"".concat(Sc(t.displayName),"-").concat(t.componentId):t.componentId||a,v=r&&o.attrs?o.attrs.concat(s).filter(Boolean):s,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var w=o.shouldForwardProp;if(t.shouldForwardProp){var E=t.shouldForwardProp;y=function(x,k){return w(x,k)&&E(x,k)}}else y=w}var p=new By(n,m,r?o.componentStyle:void 0);function d(x,k){return function(_,C,R){var B=_.attrs,z=_.componentStyle,ae=_.defaultProps,he=_.foldedComponentIds,oe=_.styledComponentId,I=_.target,K=De.useContext(io),M=Hs(),we=_.shouldForwardProp||M.shouldForwardProp,j=_p(C,K,ae)||rr,$=function(Tt,Le,ht){for(var cr,Zt=fe(fe({},Le),{className:void 0,theme:ht}),il=0;il<Tt.length;il+=1){var mo=yn(cr=Tt[il])?cr(Zt):cr;for(var Rt in mo)Zt[Rt]=Rt==="className"?ln(Zt[Rt],mo[Rt]):Rt==="style"?fe(fe({},Zt[Rt]),mo[Rt]):mo[Rt]}return Le.className&&(Zt.className=ln(Zt.className,Le.className)),Zt}(B,C,j),A=$.as||I,V={};for(var W in $)$[W]===void 0||W[0]==="$"||W==="as"||W==="theme"&&$.theme===j||(W==="forwardedAs"?V.as=$.forwardedAs:we&&!we(W,A)||(V[W]=$[W]));var Xt=function(Tt,Le){var ht=Hs(),cr=Tt.generateAndInjectStyles(Le,ht.styleSheet,ht.stylis);return cr}(z,$),Xe=ln(he,oe);return Xt&&(Xe+=" "+Xt),$.className&&(Xe+=" "+$.className),V[Al(A)&&!Pp.has(A)?"class":"className"]=Xe,V.ref=R,O.createElement(A,V)}(h,x,k)}d.displayName=f;var h=De.forwardRef(d);return h.attrs=v,h.componentStyle=p,h.displayName=f,h.shouldForwardProp=y,h.foldedComponentIds=r?ln(o.foldedComponentIds,o.styledComponentId):"",h.styledComponentId=m,h.target=r?o.target:e,Object.defineProperty(h,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?function(k){for(var _=[],C=1;C<arguments.length;C++)_[C-1]=arguments[C];for(var R=0,B=_;R<B.length;R++)Bs(k,B[R],!0);return k}({},o.defaultProps,x):x}}),Xu(h,function(){return".".concat(h.styledComponentId)}),i&&$p(h,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),h}function Nc(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var Oc=function(e){return Object.assign(e,{isCss:!0})};function Zu(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(yn(e)||oo(e))return Oc(Qt(Nc(Xi,Zn([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Qt(r):Oc(Qt(Nc(r,t)))}function bs(e,t,n){if(n===void 0&&(n=rr),!t)throw vn(1,t);var r=function(o){for(var i=[],l=1;l<arguments.length;l++)i[l-1]=arguments[l];return e(t,n,Zu.apply(void 0,Zn([o],i,!1)))};return r.attrs=function(o){return bs(e,t,fe(fe({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return bs(e,t,fe(fe({},n),o))},r}var Bp=function(e){return bs(Uy,e)},T=Bp;Pp.forEach(function(e){T[e]=Bp(e)});var Hy=function(){function e(t,n){this.rules=t,this.componentId=n,this.isStatic=Mp(t),Ri.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,n,r,o){var i=o(Pi(Qt(this.rules,n,r,o)),""),l=this.componentId+t;r.insertRules(l,l,i)},e.prototype.removeStyles=function(t,n){n.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,n,r,o){t>2&&Ri.registerId(this.componentId+t),this.removeStyles(t,r),this.createStyles(t,n,r,o)},e}();function by(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Zu.apply(void 0,Zn([e],t,!1)),o="sc-global-".concat(qu(JSON.stringify(r))),i=new Hy(r,o),l=function(u){var a=Hs(),c=De.useContext(io),f=De.useRef(a.styleSheet.allocateGSInstance(o)).current;return a.styleSheet.server&&s(f,u,a.styleSheet,c,a.stylis),De.useLayoutEffect(function(){if(!a.styleSheet.server)return s(f,u,a.styleSheet,c,a.stylis),function(){return i.removeStyles(f,a.styleSheet)}},[f,u,a.styleSheet,c,a.stylis]),null};function s(u,a,c,f,m){if(i.isStatic)i.renderStyles(u,cy,c,m);else{var v=fe(fe({},a),{theme:_p(a,f,l.defaultProps)});i.renderStyles(u,v,c,m)}}return De.memo(l)}function ea(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Pi(Zu.apply(void 0,Zn([e],t,!1))),o=qu(r);return new zp(o,r)}const Vy="/assets/logo-BGHkG1-J.png",Wy="/assets/logo-dark-KAsU1C78.png",$c={name:"light",colors:{background:"#ffffffaa",pageBackground:"#ffffff",backgroundSecondary:"#f6f8fa",text:"#333333",textSecondary:"#6a737d",primary:"#0056b3",primaryHover:"#004494",error:"#d32f2f",errorHover:"#b71c1c",warning:"#f57c00",info:"#0288d1",secondary:"#616161",secondaryHover:"#424242",border:"#e1e4e8",buttonBg:"#e0e0e0",buttonText:"#333333",buttonHoverBg:"#bdbdbd",inputBg:"#ffffff",inputBorder:"#bdbdbd",inputText:"#333333",codeBackground:"#f5f5f5",codeText:"#24292e",systemMessageBackground:"#e3f2fd",systemMessageText:"#0d47a1",systemMessageBorder:"#bbdefb",systemMessageTimestamp:"#1565c0",disabled:"#9e9e9e",userMessageBackground:"#e8f5e9",userMessageText:"#1b5e20",userMessageTimestamp:"#2e7d32"},backgroundImage:Vy},Ic={name:"dark",colors:{background:"#00000055",pageBackground:"#1e1e1e",backgroundSecondary:"#2d333b",text:"#d4d4d4",textSecondary:"#8b949e",primary:"#58a6ff",primaryHover:"#79b8ff",secondary:"#8b949e",error:"#f44336",errorHover:"#d32f2f",secondaryHover:"#9aa3ad",warning:"#ffa726",info:"#29b6f6",border:"#30363d",buttonBg:"#21262d",buttonText:"#c9d1d9",buttonHoverBg:"#30363d",inputBg:"#0d1117",inputBorder:"#30363d",inputText:"#c9d1d9",codeBackground:"#161b22",codeText:"#c9d1d9",systemMessageBackground:"#1c2128",systemMessageText:"#8b949e",systemMessageBorder:"#30363d",systemMessageTimestamp:"#6e7681",disabled:"#41464b",userMessageBackground:"#1c4a7d",userMessageText:"#e6f3ff",userMessageTimestamp:"#a8c7f0"},backgroundImage:Wy},Qy=({usage:e})=>{const[t,n]=O.useState("total"),r=f=>{n(f.target.value)},o=e.usageMetrics[t],i=e.usageMetrics[t].cost||0,l=wr(i.toFixed(2)),s=wr(o.rpm),u=wr(o.rpd),a=wr(Ac(o.tpm)),c=wr(Ac(o.tpd));return g.jsx(Gy,{children:g.jsxs(Yy,{children:[g.jsx(qy,{onChange:r,value:t,children:Object.keys(e.usageMetrics).map(f=>g.jsx("option",{value:f,children:f},f))}),g.jsxs(xr,{children:[g.jsx(Sr,{children:"Cost:"}),g.jsxs(kr,{children:["$",l]},l)]}),g.jsxs(xr,{children:[g.jsx(Sr,{children:"RPM:"}),g.jsx(kr,{children:s},s)]}),g.jsxs(xr,{children:[g.jsx(Sr,{children:"RPD:"}),g.jsx(kr,{children:u},u)]}),g.jsxs(xr,{children:[g.jsx(Sr,{children:"TPM:"}),g.jsx(kr,{children:a},a)]}),g.jsxs(xr,{children:[g.jsx(Sr,{children:"TPD:"}),g.jsx(kr,{children:c},c)]})]})})},Ac=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),wr=e=>{const[t,n]=O.useState(e),r=O.useRef(e);return O.useEffect(()=>{e!==r.current&&(n(e),r.current=e)},[e]),t},Ky=ea`
|
|
42
|
-
0% {
|
|
43
|
-
transform: scale(1);
|
|
44
|
-
opacity: 1;
|
|
45
|
-
}
|
|
46
|
-
50% {
|
|
47
|
-
transform: scale(1.2);
|
|
48
|
-
opacity: 0.7;
|
|
49
|
-
}
|
|
50
|
-
100% {
|
|
51
|
-
transform: scale(1);
|
|
52
|
-
opacity: 1;
|
|
53
|
-
}
|
|
54
|
-
`,Gy=T.div`
|
|
55
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
56
|
-
border-radius: 4px;
|
|
57
|
-
padding: 4px 4px;
|
|
58
|
-
box-shadow:
|
|
59
|
-
0 1px 3px rgba(0, 0, 0, 0.12),
|
|
60
|
-
0 1px 2px rgba(0, 0, 0, 0.24);
|
|
61
|
-
`,Yy=T.div`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-wrap: wrap;
|
|
64
|
-
gap: 8px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
`,qy=T.select`
|
|
67
|
-
padding: 2px 4px;
|
|
68
|
-
border-radius: 4px;
|
|
69
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
70
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
71
|
-
color: ${({theme:e})=>e.colors.text};
|
|
72
|
-
font-size: 0.9em;
|
|
73
|
-
`,xr=T.div`
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
align-items: center;
|
|
77
|
-
margin-left: 8px;
|
|
78
|
-
`,Sr=T.span`
|
|
79
|
-
font-size: 0.8em;
|
|
80
|
-
color: ${({theme:e})=>e.colors.textSecondary};
|
|
81
|
-
`,kr=T.span`
|
|
82
|
-
font-size: 0.9em;
|
|
83
|
-
font-weight: bold;
|
|
84
|
-
color: ${({theme:e})=>e.colors.text};
|
|
85
|
-
animation: ${Ky} 0.5s ease-in-out;
|
|
86
|
-
`,Jy=({themeToggle:e,infoIcon:t,chatInterface:n,inputArea:r,usage:o})=>{const[i,l]=O.useState(!1);return g.jsxs(Xy,{children:[g.jsxs(Zy,{children:[g.jsxs(e0,{children:[g.jsx(t0,{onClick:()=>l(!i),children:"â°"}),g.jsx(n0,{children:"GenAIcode"})]}),g.jsxs(r0,{children:[g.jsx(o0,{children:g.jsx(Qy,{usage:o})}),g.jsxs(i0,{isOpen:i,children:[e,t]})]})]}),g.jsxs(l0,{children:[g.jsx(s0,{children:n}),g.jsx(u0,{children:r})]})]})},Xy=T.div`
|
|
87
|
-
display: flex;
|
|
88
|
-
flex-direction: column;
|
|
89
|
-
height: 100vh;
|
|
90
|
-
max-width: 1200px;
|
|
91
|
-
margin: 0 auto;
|
|
92
|
-
padding: 0 10px;
|
|
93
|
-
`,Zy=T.header`
|
|
94
|
-
position: relative;
|
|
95
|
-
display: flex;
|
|
96
|
-
justify-content: space-between;
|
|
97
|
-
align-items: center;
|
|
98
|
-
padding: 10px 0;
|
|
99
|
-
flex-wrap: nowrap;
|
|
100
|
-
gap: 10px;
|
|
101
|
-
`,e0=T.div`
|
|
102
|
-
display: flex;
|
|
103
|
-
align-items: center;
|
|
104
|
-
gap: 10px;
|
|
105
|
-
`,t0=T.button`
|
|
106
|
-
background: none;
|
|
107
|
-
border: none;
|
|
108
|
-
font-size: 1.5rem;
|
|
109
|
-
cursor: pointer;
|
|
110
|
-
display: none;
|
|
111
|
-
|
|
112
|
-
@media (max-width: 576px) {
|
|
113
|
-
display: block;
|
|
114
|
-
}
|
|
115
|
-
`,n0=T.h1`
|
|
116
|
-
text-transform: uppercase;
|
|
117
|
-
font-family: 'Press Start 2P', system-ui;
|
|
118
|
-
color: ${({theme:e})=>e.colors.primary};
|
|
119
|
-
margin: 0;
|
|
120
|
-
font-size: clamp(0.6rem, 2.5vw, 1.5rem);
|
|
121
|
-
white-space: nowrap;
|
|
122
|
-
overflow: hidden;
|
|
123
|
-
text-overflow: ellipsis;
|
|
124
|
-
`,r0=T.div`
|
|
125
|
-
display: flex;
|
|
126
|
-
align-items: center;
|
|
127
|
-
gap: 16px;
|
|
128
|
-
flex-wrap: nowrap;
|
|
129
|
-
flex-shrink: 0;
|
|
130
|
-
|
|
131
|
-
@media (max-width: 576px) {
|
|
132
|
-
gap: 8px;
|
|
133
|
-
}
|
|
134
|
-
`,o0=T.div`
|
|
135
|
-
flex-shrink: 1;
|
|
136
|
-
min-width: 0;
|
|
137
|
-
`,i0=T.div`
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
gap: 8px;
|
|
141
|
-
flex-shrink: 0;
|
|
142
|
-
|
|
143
|
-
@media (max-width: 576px) {
|
|
144
|
-
display: ${({isOpen:e})=>e?"flex":"none"};
|
|
145
|
-
flex-direction: column;
|
|
146
|
-
position: absolute;
|
|
147
|
-
z-index: 2;
|
|
148
|
-
top: 100%;
|
|
149
|
-
left: -10px;
|
|
150
|
-
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
151
|
-
padding: 10px;
|
|
152
|
-
border-radius: 4px;
|
|
153
|
-
border-top-left-radius: 0;
|
|
154
|
-
border-top-right-radius: 0;
|
|
155
|
-
box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
|
|
156
|
-
}
|
|
157
|
-
`,l0=T.main`
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-direction: column;
|
|
160
|
-
flex-grow: 1;
|
|
161
|
-
min-height: 0;
|
|
162
|
-
position: relative;
|
|
163
|
-
z-index: 1;
|
|
164
|
-
`,s0=T.div`
|
|
165
|
-
flex-grow: 1;
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
margin-bottom: 20px;
|
|
168
|
-
`,u0=T.div`
|
|
169
|
-
flex-shrink: 0;
|
|
170
|
-
`;function Up(e,t){return function(){return e.apply(t,arguments)}}const{toString:a0}=Object.prototype,{getPrototypeOf:ta}=Object,Zi=(e=>t=>{const n=a0.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),st=e=>(e=e.toLowerCase(),t=>Zi(t)===e),el=e=>t=>typeof t===e,{isArray:ur}=Array,lo=el("undefined");function c0(e){return e!==null&&!lo(e)&&e.constructor!==null&&!lo(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Hp=st("ArrayBuffer");function d0(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Hp(e.buffer),t}const f0=el("string"),Ue=el("function"),bp=el("number"),tl=e=>e!==null&&typeof e=="object",p0=e=>e===!0||e===!1,Xo=e=>{if(Zi(e)!=="object")return!1;const t=ta(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},h0=st("Date"),m0=st("File"),g0=st("Blob"),y0=st("FileList"),v0=e=>tl(e)&&Ue(e.pipe),w0=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=Zi(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},x0=st("URLSearchParams"),[S0,k0,E0,C0]=["ReadableStream","Request","Response","Headers"].map(st),_0=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function po(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),ur(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let s;for(r=0;r<l;r++)s=i[r],t.call(null,e[s],s,e)}}function Vp(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const sn=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wp=e=>!lo(e)&&e!==sn;function Vs(){const{caseless:e}=Wp(this)&&this||{},t={},n=(r,o)=>{const i=e&&Vp(t,o)||o;Xo(t[i])&&Xo(r)?t[i]=Vs(t[i],r):Xo(r)?t[i]=Vs({},r):ur(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&po(arguments[r],n);return t}const P0=(e,t,n,{allOwnKeys:r}={})=>(po(t,(o,i)=>{n&&Ue(o)?e[i]=Up(o,n):e[i]=o},{allOwnKeys:r}),e),T0=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),R0=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j0=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&ta(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},N0=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},O0=e=>{if(!e)return null;if(ur(e))return e;let t=e.length;if(!bp(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},$0=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ta(Uint8Array)),I0=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},A0=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},L0=st("HTMLFormElement"),z0=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Lc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F0=st("RegExp"),Qp=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};po(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(r[i]=l||o)}),Object.defineProperties(e,r)},D0=e=>{Qp(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},M0=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return ur(e)?r(e):r(String(e).split(t)),n},B0=()=>{},U0=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,zl="abcdefghijklmnopqrstuvwxyz",zc="0123456789",Kp={DIGIT:zc,ALPHA:zl,ALPHA_DIGIT:zl+zl.toUpperCase()+zc},H0=(e=16,t=Kp.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function b0(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const V0=e=>{const t=new Array(10),n=(r,o)=>{if(tl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=ur(r)?[]:{};return po(r,(l,s)=>{const u=n(l,o+1);!lo(u)&&(i[s]=u)}),t[o]=void 0,i}}return r};return n(e,0)},W0=st("AsyncFunction"),Q0=e=>e&&(tl(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),Gp=((e,t)=>e?setImmediate:t?((n,r)=>(sn.addEventListener("message",({source:o,data:i})=>{o===sn&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),sn.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ue(sn.postMessage)),K0=typeof queueMicrotask<"u"?queueMicrotask.bind(sn):typeof process<"u"&&process.nextTick||Gp,S={isArray:ur,isArrayBuffer:Hp,isBuffer:c0,isFormData:w0,isArrayBufferView:d0,isString:f0,isNumber:bp,isBoolean:p0,isObject:tl,isPlainObject:Xo,isReadableStream:S0,isRequest:k0,isResponse:E0,isHeaders:C0,isUndefined:lo,isDate:h0,isFile:m0,isBlob:g0,isRegExp:F0,isFunction:Ue,isStream:v0,isURLSearchParams:x0,isTypedArray:$0,isFileList:y0,forEach:po,merge:Vs,extend:P0,trim:_0,stripBOM:T0,inherits:R0,toFlatObject:j0,kindOf:Zi,kindOfTest:st,endsWith:N0,toArray:O0,forEachEntry:I0,matchAll:A0,isHTMLForm:L0,hasOwnProperty:Lc,hasOwnProp:Lc,reduceDescriptors:Qp,freezeMethods:D0,toObjectSet:M0,toCamelCase:z0,noop:B0,toFiniteNumber:U0,findKey:Vp,global:sn,isContextDefined:Wp,ALPHABET:Kp,generateString:H0,isSpecCompliantForm:b0,toJSONObject:V0,isAsyncFn:W0,isThenable:Q0,setImmediate:Gp,asap:K0};function L(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}S.inherits(L,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.status}}});const Yp=L.prototype,qp={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qp[e]={value:e}});Object.defineProperties(L,qp);Object.defineProperty(Yp,"isAxiosError",{value:!0});L.from=(e,t,n,r,o,i)=>{const l=Object.create(Yp);return S.toFlatObject(e,l,function(u){return u!==Error.prototype},s=>s!=="isAxiosError"),L.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const G0=null;function Ws(e){return S.isPlainObject(e)||S.isArray(e)}function Jp(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Fc(e,t,n){return e?e.concat(t).map(function(o,i){return o=Jp(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function Y0(e){return S.isArray(e)&&!e.some(Ws)}const q0=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function nl(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,E){return!S.isUndefined(E[w])});const r=n.metaTokens,o=n.visitor||c,i=n.dots,l=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(o))throw new TypeError("visitor must be a function");function a(y){if(y===null)return"";if(S.isDate(y))return y.toISOString();if(!u&&S.isBlob(y))throw new L("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(y)||S.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function c(y,w,E){let p=y;if(y&&!E&&typeof y=="object"){if(S.endsWith(w,"{}"))w=r?w:w.slice(0,-2),y=JSON.stringify(y);else if(S.isArray(y)&&Y0(y)||(S.isFileList(y)||S.endsWith(w,"[]"))&&(p=S.toArray(y)))return w=Jp(w),p.forEach(function(h,x){!(S.isUndefined(h)||h===null)&&t.append(l===!0?Fc([w],x,i):l===null?w:w+"[]",a(h))}),!1}return Ws(y)?!0:(t.append(Fc(E,w,i),a(y)),!1)}const f=[],m=Object.assign(q0,{defaultVisitor:c,convertValue:a,isVisitable:Ws});function v(y,w){if(!S.isUndefined(y)){if(f.indexOf(y)!==-1)throw Error("Circular reference detected in "+w.join("."));f.push(y),S.forEach(y,function(p,d){(!(S.isUndefined(p)||p===null)&&o.call(t,p,S.isString(d)?d.trim():d,w,m))===!0&&v(p,w?w.concat(d):[d])}),f.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return v(e),t}function Dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function na(e,t){this._pairs=[],e&&nl(e,this,t)}const Xp=na.prototype;Xp.append=function(t,n){this._pairs.push([t,n])};Xp.toString=function(t){const n=t?function(r){return t.call(this,r,Dc)}:Dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function J0(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Zp(e,t,n){if(!t)return e;const r=n&&n.encode||J0,o=n&&n.serialize;let i;if(o?i=o(t,n):i=S.isURLSearchParams(t)?t.toString():new na(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mc{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(r){r!==null&&t(r)})}}const eh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},X0=typeof URLSearchParams<"u"?URLSearchParams:na,Z0=typeof FormData<"u"?FormData:null,e1=typeof Blob<"u"?Blob:null,t1={isBrowser:!0,classes:{URLSearchParams:X0,FormData:Z0,Blob:e1},protocols:["http","https","file","blob","url","data"]},ra=typeof window<"u"&&typeof document<"u",Qs=typeof navigator=="object"&&navigator||void 0,n1=ra&&(!Qs||["ReactNative","NativeScript","NS"].indexOf(Qs.product)<0),r1=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",o1=ra&&window.location.href||"http://localhost",i1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ra,hasStandardBrowserEnv:n1,hasStandardBrowserWebWorkerEnv:r1,navigator:Qs,origin:o1},Symbol.toStringTag,{value:"Module"})),Ie={...i1,...t1};function l1(e,t){return nl(e,new Ie.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ie.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function s1(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function u1(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function th(e){function t(n,r,o,i){let l=n[i++];if(l==="__proto__")return!0;const s=Number.isFinite(+l),u=i>=n.length;return l=!l&&S.isArray(o)?o.length:l,u?(S.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!S.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&S.isArray(o[l])&&(o[l]=u1(o[l])),!s)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,o)=>{t(s1(r),o,n,0)}),n}return null}function a1(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const ho={transitional:eh,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=S.isObject(t);if(i&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(th(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return l1(t,this.formSerializer).toString();if((s=S.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return nl(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),a1(t)):t}],transformResponse:[function(t){const n=this.transitional||ho.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ie.classes.FormData,Blob:Ie.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{ho.headers[e]={}});const c1=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),d1=e=>{const t={};let n,r,o;return e&&e.split(`
|
|
171
|
-
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&c1[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Bc=Symbol("internals");function Er(e){return e&&String(e).trim().toLowerCase()}function Zo(e){return e===!1||e==null?e:S.isArray(e)?e.map(Zo):String(e)}function f1(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const p1=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Fl(e,t,n,r,o){if(S.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function h1(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function m1(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class Ae{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,u,a){const c=Er(u);if(!c)throw new Error("header name must be a non-empty string");const f=S.findKey(o,c);(!f||o[f]===void 0||a===!0||a===void 0&&o[f]!==!1)&&(o[f||u]=Zo(s))}const l=(s,u)=>S.forEach(s,(a,c)=>i(a,c,u));if(S.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(S.isString(t)&&(t=t.trim())&&!p1(t))l(d1(t),n);else if(S.isHeaders(t))for(const[s,u]of t.entries())i(u,s,r);else t!=null&&i(n,t,r);return this}get(t,n){if(t=Er(t),t){const r=S.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return f1(o);if(S.isFunction(n))return n.call(this,o,r);if(S.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Er(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Fl(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Er(l),l){const s=S.findKey(r,l);s&&(!n||Fl(r,r[s],s,n))&&(delete r[s],o=!0)}}return S.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Fl(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return S.forEach(this,(o,i)=>{const l=S.findKey(r,i);if(l){n[l]=Zo(o),delete n[i];return}const s=t?h1(i):String(i).trim();s!==i&&delete n[i],n[s]=Zo(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
|
|
172
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Bc]=this[Bc]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=Er(l);r[s]||(m1(o,l),r[s]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}}Ae.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Ae.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Ae);function Dl(e,t){const n=this||ho,r=t||n,o=Ae.from(r.headers);let i=r.data;return S.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function nh(e){return!!(e&&e.__CANCEL__)}function ar(e,t,n){L.call(this,e??"canceled",L.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(ar,L,{__CANCEL__:!0});function rh(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function g1(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function y1(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[i];l||(l=a),n[o]=u,r[o]=a;let f=i,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),a-l<t)return;const v=c&&a-c;return v?Math.round(m*1e3/v):void 0}}function v1(e,t){let n=0,r=1e3/t,o,i;const l=(a,c=Date.now())=>{n=c,o=null,i&&(clearTimeout(i),i=null),e.apply(null,a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?l(a,c):(o=a,i||(i=setTimeout(()=>{i=null,l(o)},r-f)))},()=>o&&l(o)]}const ji=(e,t,n=3)=>{let r=0;const o=y1(50,250);return v1(i=>{const l=i.loaded,s=i.lengthComputable?i.total:void 0,u=l-r,a=o(u),c=l<=s;r=l;const f={loaded:l,total:s,progress:s?l/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-l)/a:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Uc=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Hc=e=>(...t)=>S.asap(()=>e(...t)),w1=Ie.hasStandardBrowserEnv?function(){const t=Ie.navigator&&/(msie|trident)/i.test(Ie.navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=S.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),x1=Ie.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const l=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),S.isString(r)&&l.push("path="+r),S.isString(o)&&l.push("domain="+o),i===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function S1(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function k1(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function oh(e,t){return e&&!S1(t)?k1(e,t):t}const bc=e=>e instanceof Ae?{...e}:e;function wn(e,t){t=t||{};const n={};function r(a,c,f){return S.isPlainObject(a)&&S.isPlainObject(c)?S.merge.call({caseless:f},a,c):S.isPlainObject(c)?S.merge({},c):S.isArray(c)?c.slice():c}function o(a,c,f){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a,f)}else return r(a,c,f)}function i(a,c){if(!S.isUndefined(c))return r(void 0,c)}function l(a,c){if(S.isUndefined(c)){if(!S.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(a,c)=>o(bc(a),bc(c),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=u[c]||o,m=f(e[c],t[c],c);S.isUndefined(m)&&f!==s||(n[c]=m)}),n}const ih=e=>{const t=wn({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:s}=t;t.headers=l=Ae.from(l),t.url=Zp(oh(t.baseURL,t.url),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let u;if(S.isFormData(n)){if(Ie.hasStandardBrowserEnv||Ie.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((u=l.getContentType())!==!1){const[a,...c]=u?u.split(";").map(f=>f.trim()).filter(Boolean):[];l.setContentType([a||"multipart/form-data",...c].join("; "))}}if(Ie.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&w1(t.url))){const a=o&&i&&x1.read(i);a&&l.set(o,a)}return t},E1=typeof XMLHttpRequest<"u",C1=E1&&function(e){return new Promise(function(n,r){const o=ih(e);let i=o.data;const l=Ae.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=o,c,f,m,v,y;function w(){v&&v(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function p(){if(!E)return;const h=Ae.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),k={data:!s||s==="text"||s==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:h,config:e,request:E};rh(function(C){n(C),w()},function(C){r(C),w()},k),E=null}"onloadend"in E?E.onloadend=p:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(p)},E.onabort=function(){E&&(r(new L("Request aborted",L.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new L("Network Error",L.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let x=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const k=o.transitional||eh;o.timeoutErrorMessage&&(x=o.timeoutErrorMessage),r(new L(x,k.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,E)),E=null},i===void 0&&l.setContentType(null),"setRequestHeader"in E&&S.forEach(l.toJSON(),function(x,k){E.setRequestHeader(k,x)}),S.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),s&&s!=="json"&&(E.responseType=o.responseType),a&&([m,y]=ji(a,!0),E.addEventListener("progress",m)),u&&E.upload&&([f,v]=ji(u),E.upload.addEventListener("progress",f),E.upload.addEventListener("loadend",v)),(o.cancelToken||o.signal)&&(c=h=>{E&&(r(!h||h.type?new ar(null,e,E):h),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const d=g1(o.url);if(d&&Ie.protocols.indexOf(d)===-1){r(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,e));return}E.send(i||null)})},_1=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(a){if(!o){o=!0,s();const c=a instanceof Error?a:this.reason;r.abort(c instanceof L?c:new ar(c instanceof Error?c.message:c))}};let l=t&&setTimeout(()=>{l=null,i(new L(`timeout ${t} of ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(i):a.removeEventListener("abort",i)}),e=null)};e.forEach(a=>a.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>S.asap(s),u}},P1=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},T1=async function*(e,t){for await(const n of R1(e))yield*P1(n,t)},R1=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},Vc=(e,t,n,r)=>{const o=T1(e,t);let i=0,l,s=u=>{l||(l=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await o.next();if(a){s(),u.close();return}let f=c.byteLength;if(n){let m=i+=f;n(m)}u.enqueue(new Uint8Array(c))}catch(a){throw s(a),a}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},rl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",lh=rl&&typeof ReadableStream=="function",j1=rl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),sh=(e,...t)=>{try{return!!e(...t)}catch{return!1}},N1=lh&&sh(()=>{let e=!1;const t=new Request(Ie.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Wc=64*1024,Ks=lh&&sh(()=>S.isReadableStream(new Response("").body)),Ni={stream:Ks&&(e=>e.body)};rl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Ni[t]&&(Ni[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new L(`Response type '${t}' is not supported`,L.ERR_NOT_SUPPORT,r)})})})(new Response);const O1=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(Ie.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(S.isArrayBufferView(e)||S.isArrayBuffer(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await j1(e)).byteLength},$1=async(e,t)=>{const n=S.toFiniteNumber(e.getContentLength());return n??O1(t)},I1=rl&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:l,onDownloadProgress:s,onUploadProgress:u,responseType:a,headers:c,withCredentials:f="same-origin",fetchOptions:m}=ih(e);a=a?(a+"").toLowerCase():"text";let v=_1([o,i&&i.toAbortSignal()],l),y;const w=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let E;try{if(u&&N1&&n!=="get"&&n!=="head"&&(E=await $1(c,r))!==0){let k=new Request(t,{method:"POST",body:r,duplex:"half"}),_;if(S.isFormData(r)&&(_=k.headers.get("content-type"))&&c.setContentType(_),k.body){const[C,R]=Uc(E,ji(Hc(u)));r=Vc(k.body,Wc,C,R)}}S.isString(f)||(f=f?"include":"omit");const p="credentials"in Request.prototype;y=new Request(t,{...m,signal:v,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",credentials:p?f:void 0});let d=await fetch(y);const h=Ks&&(a==="stream"||a==="response");if(Ks&&(s||h&&w)){const k={};["status","statusText","headers"].forEach(B=>{k[B]=d[B]});const _=S.toFiniteNumber(d.headers.get("content-length")),[C,R]=s&&Uc(_,ji(Hc(s),!0))||[];d=new Response(Vc(d.body,Wc,C,()=>{R&&R(),w&&w()}),k)}a=a||"text";let x=await Ni[S.findKey(Ni,a)||"text"](d,e);return!h&&w&&w(),await new Promise((k,_)=>{rh(k,_,{data:x,headers:Ae.from(d.headers),status:d.status,statusText:d.statusText,config:e,request:y})})}catch(p){throw w&&w(),p&&p.name==="TypeError"&&/fetch/i.test(p.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,e,y),{cause:p.cause||p}):L.from(p,p&&p.code,e,y)}}),Gs={http:G0,xhr:C1,fetch:I1};S.forEach(Gs,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Qc=e=>`- ${e}`,A1=e=>S.isFunction(e)||e===null||e===!1,uh={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let l;if(r=n,!A1(n)&&(r=Gs[(l=String(n)).toLowerCase()],r===void 0))throw new L(`Unknown adapter '${l}'`);if(r)break;o[l||"#"+i]=r}if(!r){const i=Object.entries(o).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=t?i.length>1?`since :
|
|
173
|
-
`+i.map(Qc).join(`
|
|
174
|
-
`):" "+Qc(i[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:Gs};function Ml(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new ar(null,e)}function Kc(e){return Ml(e),e.headers=Ae.from(e.headers),e.data=Dl.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),uh.getAdapter(e.adapter||ho.adapter)(e).then(function(r){return Ml(e),r.data=Dl.call(e,e.transformResponse,r),r.headers=Ae.from(r.headers),r},function(r){return nh(r)||(Ml(e),r&&r.response&&(r.response.data=Dl.call(e,e.transformResponse,r.response),r.response.headers=Ae.from(r.response.headers))),Promise.reject(r)})}const ah="1.7.7",oa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{oa[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Gc={};oa.transitional=function(t,n,r){function o(i,l){return"[Axios v"+ah+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new L(o(l," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!Gc[l]&&(Gc[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function L1(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],u=s===void 0||l(s,i,e);if(u!==!0)throw new L("option "+i+" must be "+u,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+i,L.ERR_BAD_OPTION)}}const Ys={assertOptions:L1,validators:oa},Nt=Ys.validators;class dn{constructor(t){this.defaults=t,this.interceptors={request:new Mc,response:new Mc}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
|
|
175
|
-
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Ys.assertOptions(r,{silentJSONParsing:Nt.transitional(Nt.boolean),forcedJSONParsing:Nt.transitional(Nt.boolean),clarifyTimeoutError:Nt.transitional(Nt.boolean)},!1),o!=null&&(S.isFunction(o)?n.paramsSerializer={serialize:o}:Ys.assertOptions(o,{encode:Nt.function,serialize:Nt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&S.merge(i.common,i[n.method]);i&&S.forEach(["delete","get","head","post","put","patch","common"],y=>{delete i[y]}),n.headers=Ae.concat(l,i);const s=[];let u=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(u=u&&w.synchronous,s.unshift(w.fulfilled,w.rejected))});const a=[];this.interceptors.response.forEach(function(w){a.push(w.fulfilled,w.rejected)});let c,f=0,m;if(!u){const y=[Kc.bind(this),void 0];for(y.unshift.apply(y,s),y.push.apply(y,a),m=y.length,c=Promise.resolve(n);f<m;)c=c.then(y[f++],y[f++]);return c}m=s.length;let v=n;for(f=0;f<m;){const y=s[f++],w=s[f++];try{v=y(v)}catch(E){w.call(this,E);break}}try{c=Kc.call(this,v)}catch(y){return Promise.reject(y)}for(f=0,m=a.length;f<m;)c=c.then(a[f++],a[f++]);return c}getUri(t){t=wn(this.defaults,t);const n=oh(t.baseURL,t.url);return Zp(n,t.params,t.paramsSerializer)}}S.forEach(["delete","get","head","options"],function(t){dn.prototype[t]=function(n,r){return this.request(wn(r||{},{method:t,url:n,data:(r||{}).data}))}});S.forEach(["post","put","patch"],function(t){function n(r){return function(i,l,s){return this.request(wn(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}dn.prototype[t]=n(),dn.prototype[t+"Form"]=n(!0)});class ia{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new ar(i,l,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ia(function(o){t=o}),cancel:t}}}function z1(e){return function(n){return e.apply(null,n)}}function F1(e){return S.isObject(e)&&e.isAxiosError===!0}const qs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qs).forEach(([e,t])=>{qs[t]=e});function ch(e){const t=new dn(e),n=Up(dn.prototype.request,t);return S.extend(n,dn.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return ch(wn(e,o))},n}const re=ch(ho);re.Axios=dn;re.CanceledError=ar;re.CancelToken=ia;re.isCancel=nh;re.VERSION=ah;re.toFormData=nl;re.AxiosError=L;re.Cancel=re.CanceledError;re.all=function(t){return Promise.all(t)};re.spread=z1;re.isAxiosError=F1;re.mergeConfig=wn;re.AxiosHeaders=Ae;re.formToJSON=e=>th(S.isHTMLForm(e)?new FormData(e):e);re.getAdapter=uh.getAdapter;re.HttpStatusCode=qs;re.default=re;const D1="/api",ve=re.create({baseURL:D1,headers:{"Content-Type":"application/json"}}),M1=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};ve.interceptors.request.use(e=>{var n;const t=(n=document.querySelector("body[data-security-token]"))==null?void 0:n.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));ve.interceptors.response.use(e=>e,async e=>{var n;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const r=await M1();if(r)return t.headers.Authorization=`Bearer ${r}`,(n=document.querySelector("body[data-security-token]"))==null||n.setAttribute("data-security-token",r),ve(t)}return Promise.reject(e)});const Yc=async()=>(await ve.get("/content")).data.content,B1=async(e,t,n)=>{const r=new FormData;r.append("prompt",e),r.append("options",JSON.stringify(t)),n&&n.length>0&&n.forEach(o=>{r.append("images",o)});try{await ve.post("/execute-codegen",r,{headers:{"Content-Type":"multipart/form-data"}})}catch(o){throw re.isAxiosError(o)?o.response?new Error(`Server error: ${o.response.data.message||"Unknown error"}`):o.request?new Error("No response received from server"):new Error(`Error setting up request: ${o.message}`):new Error("An unexpected error occurred")}},Js=async()=>(await ve.get("/execution-status")).data.status,U1=async()=>{await ve.post("/interrupt-execution")},dh=async()=>{await ve.post("/pause-execution")},fh=async()=>{await ve.post("/resume-execution")},Xs=async()=>(await ve.get("/current-question")).data.question,H1=async(e,t,n,r)=>{await ve.post("/answer-question",{questionId:e,answer:t,confirmed:n,options:r})},qc=async()=>(await ve.get("/usage")).data,b1=async()=>(await ve.get("/default-codegen-options")).data.options,V1=async()=>(await ve.get("/rcconfig")).data.rcConfig,W1=async e=>{await ve.delete(`/delete-iteration/${e}`)},Q1=async()=>(await ve.get("/available-ai-services")).data.services;ve.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));const K1=500,G1=()=>{const[e,t]=O.useState(""),[n,r]=O.useState(!1),[o,i]=O.useState("idle"),[l,s]=O.useState([]),[u,a]=O.useState(null),[c,f]=O.useState("dark"),[m,v]=O.useState(),[y,w]=O.useState({}),[E,p]=O.useState(null),[d,h]=O.useState(null),[x,k]=O.useState(!1),_=O.useRef(null),C=()=>{f(c==="light"?"dark":"light")};O.useEffect(()=>{(async()=>{try{const[oe,I,K,M,we,j]=await Promise.all([Js(),Xs(),Yc(),qc(),b1(),V1()]);r(oe!=="idle"),i(oe),a(I),s(K.filter($=>!!$.message).map($=>({...$.message,data:$.data}))),v(M),w(we),p(j)}catch(oe){console.error("Failed to fetch initial data:",oe)}})()},[]);const R=O.useCallback(()=>{if(!x){k(!0);const he=async()=>{try{const[oe,I,K,M]=await Promise.all([Js(),Xs(),Yc(),qc()]);r(oe!=="idle"),i(oe),a(I),s(K.filter(we=>!!we.message).map(we=>({...we.message,data:we.data}))),v(M)}catch(oe){console.error("Failed to poll data:",oe)}_.current=setTimeout(he,K1)};he()}},[x]),B=O.useCallback(()=>{x&&(k(!1),_.current&&(clearTimeout(_.current),_.current=null))},[x]),z=O.useCallback(async()=>{try{await dh(),i("paused")}catch(he){console.error("Failed to pause execution:",he)}},[]),ae=O.useCallback(async()=>{try{await fh(),i("executing")}catch(he){console.error("Failed to resume execution:",he)}},[]);return{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:l,setChatMessages:s,currentQuestion:u,theme:c,usage:m,codegenOptions:y,rcConfig:E,lastFinishedExecutionId:d,toggleTheme:C,setCodegenOptions:w,setCurrentQuestion:a,setLastFinishedExecutionId:h,startPolling:R,stopPolling:B,handlePauseExecution:z,handleResumeExecution:ae}},Y1=({setCurrentPrompt:e,setIsExecuting:t,setExecutionStatus:n,setChatMessages:r,setCurrentQuestion:o,codegenOptions:i,setCodegenOptions:l})=>{const s=async(v,y)=>{e(v),t(!0);try{if(t(!0),n("executing"),await Js()==="executing"){console.warn("Execution is already executing");return}B1(v,i,y.length>0?y:void 0)}catch(w){console.error("Failed to execute codegen:",w)}finally{t(!1),n("idle")}},u=async(v,y,w)=>{const E=await Xs();if(E)try{o(null),await H1(E.id,v,y,{...i,aiService:w??i.aiService})}catch(p){console.error("Failed to submit answer:",p)}},a=async()=>{try{o(null),await U1()}catch(v){console.error("Failed to interrupt execution:",v)}},c=O.useCallback(v=>{l(v)},[l,r]),f=O.useCallback(async()=>{try{await dh()}catch(v){console.error("Failed to pause execution:",v)}},[n,r]),m=O.useCallback(async()=>{try{await fh()}catch(v){console.error("Failed to resume execution:",v)}},[n,r]);return{handleExecute:s,handleQuestionSubmit:u,handleInterrupt:a,handleOptionsChange:c,handlePauseExecution:f,handleResumeExecution:m}};var Br=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Br||{}),ph=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e))(ph||{});const q1=T.pre`
|
|
176
|
-
margin-top: 8px;
|
|
177
|
-
padding: 8px;
|
|
178
|
-
background-color: ${e=>e.theme.colors.codeBackground};
|
|
179
|
-
border-radius: 4px;
|
|
180
|
-
font-size: 0.9em;
|
|
181
|
-
overflow-x: auto;
|
|
182
|
-
white-space: pre-wrap;
|
|
183
|
-
word-wrap: break-word;
|
|
184
|
-
`,hh=({data:e})=>{const t=n=>JSON.stringify(n,null,2);return g.jsx(q1,{children:t(e)})},la=T.div`
|
|
185
|
-
display: flex;
|
|
186
|
-
&[data-type='user'] {
|
|
187
|
-
justify-content: flex-end;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
&[data-type='assistant'] {
|
|
191
|
-
justify-content: flex-start;
|
|
192
|
-
}
|
|
193
|
-
`,J1=T.div`
|
|
194
|
-
color: ${e=>e.theme.colors.text};
|
|
195
|
-
border-radius: 12px;
|
|
196
|
-
padding: 8px 12px;
|
|
197
|
-
max-width: 70%;
|
|
198
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
199
|
-
|
|
200
|
-
${la}[data-type='user'] & {
|
|
201
|
-
background-color: ${e=>e.theme.colors.userMessageBackground};
|
|
202
|
-
color: ${e=>e.theme.colors.userMessageText};
|
|
203
|
-
}
|
|
204
|
-
`,X1=T.div`
|
|
205
|
-
font-weight: bold;
|
|
206
|
-
margin-bottom: 4px;
|
|
207
|
-
`,Z1=T.pre`
|
|
208
|
-
white-space: pre-wrap;
|
|
209
|
-
word-wrap: break-word;
|
|
210
|
-
font-family: inherit;
|
|
211
|
-
margin: 0;
|
|
212
|
-
`,ev=T.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
justify-content: space-between;
|
|
215
|
-
align-items: center;
|
|
216
|
-
margin-top: 4px;
|
|
217
|
-
`,tv=T.div`
|
|
218
|
-
font-size: 0.8em;
|
|
219
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
220
|
-
|
|
221
|
-
${la}[data-type='user'] & {
|
|
222
|
-
color: ${e=>e.theme.colors.userMessageTimestamp};
|
|
223
|
-
}
|
|
224
|
-
`,nv=T.span`
|
|
225
|
-
font-size: 0.8em;
|
|
226
|
-
color: ${e=>e.theme.colors.primary};
|
|
227
|
-
cursor: pointer;
|
|
228
|
-
text-decoration: underline;
|
|
229
|
-
|
|
230
|
-
&:hover {
|
|
231
|
-
color: ${e=>e.theme.colors.primaryHover};
|
|
232
|
-
}
|
|
233
|
-
`,rv=T.div`
|
|
234
|
-
display: grid;
|
|
235
|
-
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
236
|
-
gap: 8px;
|
|
237
|
-
max-width: 800px;
|
|
238
|
-
margin: 8px 0;
|
|
239
|
-
`,ov=T.div`
|
|
240
|
-
position: relative;
|
|
241
|
-
width: 100%;
|
|
242
|
-
padding-bottom: 100%; /* Creates a square aspect ratio */
|
|
243
|
-
`,iv=T.img`
|
|
244
|
-
position: absolute;
|
|
245
|
-
top: 0;
|
|
246
|
-
left: 0;
|
|
247
|
-
width: 100%;
|
|
248
|
-
height: 100%;
|
|
249
|
-
object-fit: contain;
|
|
250
|
-
border-radius: 4px;
|
|
251
|
-
background-color: rgba(0, 0, 0, 0.05);
|
|
252
|
-
`,lv=({message:e,visibleDataIds:t,toggleDataVisibility:n})=>g.jsx(la,{"data-type":e.type,children:g.jsxs(J1,{children:[g.jsx(X1,{children:e.type==="user"?"You":"Assistant"}),g.jsx(Z1,{children:e.content}),e.images&&e.images.length>0&&g.jsx(rv,{children:e.images.map((r,o)=>g.jsx(ov,{children:g.jsx(iv,{src:`data:${r.mediaType};base64,${r.base64url}`,alt:r.originalName||`Image ${o+1}`,title:r.originalName||`Image ${o+1}`})},o))}),g.jsxs(ev,{children:[e.data?g.jsx(nv,{onClick:()=>n(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null,g.jsx(tv,{children:e.timestamp.toLocaleString()})]}),t.has(e.id)&&e.data?g.jsx(hh,{data:e.data}):null]})}),sv=T.div`
|
|
253
|
-
background-color: ${e=>e.theme.colors.systemMessageBackground};
|
|
254
|
-
color: ${e=>e.theme.colors.systemMessageText};
|
|
255
|
-
border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
|
|
256
|
-
border-radius: 8px;
|
|
257
|
-
padding: 8px 12px;
|
|
258
|
-
margin: 8px 0;
|
|
259
|
-
font-style: italic;
|
|
260
|
-
font-size: 0.9em;
|
|
261
|
-
opacity: 0.8;
|
|
262
|
-
${e=>e.isExecutionEnd&&`
|
|
263
|
-
border-bottom: 3px solid ${e.theme.colors.primary};
|
|
264
|
-
`}
|
|
265
|
-
`,uv=T.div`
|
|
266
|
-
cursor: pointer;
|
|
267
|
-
font-weight: bold;
|
|
268
|
-
margin-bottom: 8px;
|
|
269
|
-
`,av=T.div`
|
|
270
|
-
white-space: pre-wrap;
|
|
271
|
-
word-wrap: break-word;
|
|
272
|
-
font-family: inherit;
|
|
273
|
-
margin: 0;
|
|
274
|
-
`,cv=T.div`
|
|
275
|
-
margin-bottom: 8px;
|
|
276
|
-
`,dv=T.div`
|
|
277
|
-
font-size: 0.8em;
|
|
278
|
-
color: ${e=>e.theme.colors.systemMessageTimestamp};
|
|
279
|
-
float: right;
|
|
280
|
-
`,fv=T.span`
|
|
281
|
-
font-size: 0.8em;
|
|
282
|
-
color: ${e=>e.theme.colors.primary};
|
|
283
|
-
cursor: pointer;
|
|
284
|
-
text-decoration: underline;
|
|
285
|
-
float: right;
|
|
286
|
-
margin-right: 5px;
|
|
287
|
-
|
|
288
|
-
&:hover {
|
|
289
|
-
color: ${e=>e.theme.colors.primaryHover};
|
|
290
|
-
}
|
|
291
|
-
`,pv=({message:e,collapsedExecutions:t,toggleExecutionCollapse:n,visibleDataIds:r,toggleDataVisibility:o})=>g.jsxs(sv,{isExecutionEnd:e.isExecutionEnd,children:[g.jsxs(uv,{onClick:()=>n(e.id),children:[t.has(e.id)?"âļ":"âŧ"," Execution ",e.id.split("_")[1]]}),!t.has(e.id)&&g.jsx(av,{children:e.parts.map(i=>g.jsxs(cv,{children:[i.content,g.jsx(dv,{children:i.timestamp.toLocaleString()}),i.data?g.jsx(fv,{onClick:()=>o(i.id),children:r.has(i.id)?"Hide data":"Show data"}):null,r.has(i.id)&&i.data?g.jsx(hh,{data:i.data}):null]},i.id))})]}),hv=T.div`
|
|
292
|
-
display: flex;
|
|
293
|
-
flex-direction: column;
|
|
294
|
-
height: 100%;
|
|
295
|
-
background-color: ${e=>e.theme.colors.background};
|
|
296
|
-
position: relative;
|
|
297
|
-
overflow: hidden;
|
|
298
|
-
`,mv=T.div`
|
|
299
|
-
display: flex;
|
|
300
|
-
flex-direction: column;
|
|
301
|
-
gap: 16px;
|
|
302
|
-
padding: 16px;
|
|
303
|
-
overflow-y: auto;
|
|
304
|
-
flex-grow: 1;
|
|
305
|
-
max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
|
|
306
|
-
margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
|
|
307
|
-
`,gv=T.div`
|
|
308
|
-
display: flex;
|
|
309
|
-
flex-direction: column;
|
|
310
|
-
gap: 8px;
|
|
311
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
312
|
-
border-radius: 8px;
|
|
313
|
-
margin-bottom: 24px;
|
|
314
|
-
`,yv=T.div`
|
|
315
|
-
font-size: 16px;
|
|
316
|
-
font-weight: bold;
|
|
317
|
-
color: ${e=>e.theme.colors.text};
|
|
318
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
319
|
-
padding: 12px 16px;
|
|
320
|
-
border-bottom: 1px solid ${e=>e.theme.colors.border};
|
|
321
|
-
border-top-left-radius: 8px;
|
|
322
|
-
border-top-right-radius: 8px;
|
|
323
|
-
display: flex;
|
|
324
|
-
justify-content: space-between;
|
|
325
|
-
align-items: center;
|
|
326
|
-
cursor: pointer;
|
|
327
|
-
position: sticky;
|
|
328
|
-
top: -22px;
|
|
329
|
-
z-index: 10;
|
|
330
|
-
|
|
331
|
-
> .title {
|
|
332
|
-
display: flex;
|
|
333
|
-
align-items: start;
|
|
334
|
-
flex-grow: 1;
|
|
335
|
-
}
|
|
336
|
-
> .meta {
|
|
337
|
-
font-size: 12px;
|
|
338
|
-
font-weight: normal;
|
|
339
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
340
|
-
display: flex;
|
|
341
|
-
flex-direction: row;
|
|
342
|
-
align-items: center;
|
|
343
|
-
gap: 10px;
|
|
344
|
-
}
|
|
345
|
-
`,vv=T.button`
|
|
346
|
-
display: flex;
|
|
347
|
-
justify-content: center;
|
|
348
|
-
align-items: center;
|
|
349
|
-
background-color: transparent;
|
|
350
|
-
border: none;
|
|
351
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
352
|
-
cursor: pointer;
|
|
353
|
-
font-size: 16px;
|
|
354
|
-
padding: 4px;
|
|
355
|
-
border-radius: 4px;
|
|
356
|
-
|
|
357
|
-
&:hover {
|
|
358
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
359
|
-
}
|
|
360
|
-
`,wv=T.div`
|
|
361
|
-
display: ${e=>e.isCollapsed?"none":"flex"};
|
|
362
|
-
flex-direction: column;
|
|
363
|
-
gap: 8px;
|
|
364
|
-
padding: 16px;
|
|
365
|
-
`,xv=T.p`
|
|
366
|
-
font-size: 14px;
|
|
367
|
-
color: ${e=>e.theme.colors.textSecondary};
|
|
368
|
-
background-color: ${e=>e.theme.colors.backgroundTertiary};
|
|
369
|
-
padding: 8px;
|
|
370
|
-
border-radius: 4px;
|
|
371
|
-
margin: 0 0 16px 0;
|
|
372
|
-
`;T.div`
|
|
373
|
-
margin-bottom: 16px;
|
|
374
|
-
|
|
375
|
-
&:last-child {
|
|
376
|
-
margin-bottom: 0;
|
|
377
|
-
}
|
|
378
|
-
`;const Sv=T.span`
|
|
379
|
-
&:before {
|
|
380
|
-
content: 'âŧ';
|
|
381
|
-
margin-right: 8px;
|
|
382
|
-
}
|
|
383
|
-
`,kv=T.span`
|
|
384
|
-
&:before {
|
|
385
|
-
content: 'âļ';
|
|
386
|
-
margin-right: 8px;
|
|
387
|
-
}
|
|
388
|
-
`;T.span`
|
|
389
|
-
color: ${e=>e.theme.colors.primary};
|
|
390
|
-
cursor: pointer;
|
|
391
|
-
margin-right: 8px;
|
|
392
|
-
|
|
393
|
-
&:hover {
|
|
394
|
-
text-decoration: underline;
|
|
395
|
-
}
|
|
396
|
-
`;function Ev(e){return O.useMemo(()=>{const t=[];let n=null,r=null,o=0;return e.sort((i,l)=>i.iterationId<l.iterationId?-1:1).forEach((i,l)=>{var s;(!n||i.iterationId!==n.iterationId)&&(n&&(n.timestampEnd=new Date(i.timestamp),t.push(n)),n={iterationId:i.iterationId,timestampStart:new Date(i.timestamp),timestampEnd:new Date(i.timestamp),conversationSummaries:[],messages:[]}),(s=i.flags)!=null&&s.includes(ph.CONVERSATION_SUMMARY)&&i.data&&(n.conversationSummaries.push(i.data),n.iterationTitle||(n.iterationTitle=i.data)),i.type===Br.SYSTEM?r?r.parts.push(i):(o++,r={...i,type:Br.SYSTEM,parts:[i],id:`execution_${o}`,isExecutionEnd:l===e.length-1||e[l+1].type!==Br.SYSTEM},n.messages.push(r)):(r&&(r.isExecutionEnd=!0),r=null,n.messages.push(i)),n.timestampEnd=new Date(i.timestamp)}),n&&t.push(n),t.sort((i,l)=>i.timestampStart.getTime()-l.timestampStart.getTime())},[e])}const Cv=({onClick:e})=>g.jsxs(Pv,{onClick:e,children:[g.jsx(Tv,{children:"New messages"}),g.jsx(Bl,{}),g.jsx(Bl,{}),g.jsx(Bl,{})]}),_v=ea`
|
|
397
|
-
0%, 80%, 100% {
|
|
398
|
-
transform: scale(0.8);
|
|
399
|
-
}
|
|
400
|
-
40% {
|
|
401
|
-
transform: scale(1.2);
|
|
402
|
-
}
|
|
403
|
-
`,Pv=T.div`
|
|
404
|
-
display: flex;
|
|
405
|
-
justify-content: center;
|
|
406
|
-
align-items: center;
|
|
407
|
-
padding: 10px;
|
|
408
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
409
|
-
color: ${e=>e.theme.colors.text};
|
|
410
|
-
border-radius: 20px;
|
|
411
|
-
position: absolute;
|
|
412
|
-
bottom: 20px;
|
|
413
|
-
left: 50%;
|
|
414
|
-
transform: translateX(-50%);
|
|
415
|
-
cursor: pointer;
|
|
416
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
|
|
417
|
-
transition: all 0.3s ease;
|
|
418
|
-
z-index: 10;
|
|
419
|
-
|
|
420
|
-
&:hover {
|
|
421
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
422
|
-
}
|
|
423
|
-
`,Tv=T.span`
|
|
424
|
-
margin-right: 10px;
|
|
425
|
-
font-weight: bold;
|
|
426
|
-
`,Bl=T.div`
|
|
427
|
-
width: 8px;
|
|
428
|
-
height: 8px;
|
|
429
|
-
background-color: ${e=>e.theme.colors.text};
|
|
430
|
-
border-radius: 50%;
|
|
431
|
-
margin: 0 2px;
|
|
432
|
-
animation: ${_v} 1.4s infinite ease-in-out both;
|
|
433
|
-
|
|
434
|
-
&:nth-child(2) {
|
|
435
|
-
animation-delay: -0.32s;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
&:nth-child(3) {
|
|
439
|
-
animation-delay: -0.16s;
|
|
440
|
-
}
|
|
441
|
-
`,Rv=T.div`
|
|
442
|
-
position: relative;
|
|
443
|
-
width: 100%;
|
|
444
|
-
`,jv=T.textarea`
|
|
445
|
-
width: 100%;
|
|
446
|
-
min-height: 60px;
|
|
447
|
-
resize: none;
|
|
448
|
-
padding: 8px;
|
|
449
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
450
|
-
border-radius: 4px;
|
|
451
|
-
font-family: inherit;
|
|
452
|
-
font-size: 14px;
|
|
453
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
454
|
-
color: ${e=>e.theme.colors.inputText};
|
|
455
|
-
box-sizing: border-box;
|
|
456
|
-
overflow: hidden;
|
|
457
|
-
|
|
458
|
-
&:focus {
|
|
459
|
-
outline: none;
|
|
460
|
-
border-color: ${e=>e.theme.colors.primary};
|
|
461
|
-
}
|
|
462
|
-
`,mh=({value:e,onChange:t,onKeyDown:n,onPaste:r,onImagePaste:o,maxViewportHeight:i=.5,...l})=>{const s=O.useRef(null);O.useEffect(()=>{if(s.current){s.current.style.height="auto";const c=s.current.scrollHeight,f=i*window.innerHeight,m=Math.min(c,f);s.current.style.height=`${m}px`}},[e,i]);const u=c=>{t(c.target.value)},a=c=>{var m;const f=(m=c.clipboardData)==null?void 0:m.items;if(f){for(let v=0;v<f.length;v++)if(f[v].type.indexOf("image")!==-1){c.preventDefault();const y=f[v].getAsFile();if(y){const w=new File([y],`pasted-image-${Date.now()}.png`,{type:"image/png"});o==null||o(w)}break}}r==null||r(c)};return g.jsx(Rv,{children:g.jsx(jv,{ref:s,value:e,onChange:u,onKeyDown:n,onPaste:a,...l})})},sa=({value:e,onChange:t,disabled:n})=>{const[r,o]=O.useState([]),[i,l]=O.useState(null);O.useEffect(()=>{(async()=>{try{const a=await Q1();o(a)}catch(a){console.error("Error fetching AI services:",a),l("Failed to fetch available AI services.")}})()},[]);const s=u=>{t(u.target.value)};return g.jsxs(Nv,{children:[g.jsxs(Ov,{id:"aiService",value:e,onChange:s,disabled:n||i!==null,children:[g.jsx("option",{value:"",children:"Select AI Service"}),r.map(u=>g.jsx("option",{value:u,children:u},u))]}),i&&g.jsx($v,{children:i})]})},Nv=T.div`
|
|
463
|
-
display: flex;
|
|
464
|
-
flex-direction: column;
|
|
465
|
-
gap: 4px;
|
|
466
|
-
`,Ov=T.select`
|
|
467
|
-
padding: 8px;
|
|
468
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
469
|
-
border-radius: 4px;
|
|
470
|
-
background-color: ${({theme:e})=>e.colors.inputBg};
|
|
471
|
-
color: ${({theme:e})=>e.colors.inputText};
|
|
472
|
-
font-size: 14px;
|
|
473
|
-
|
|
474
|
-
&:disabled {
|
|
475
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
476
|
-
cursor: not-allowed;
|
|
477
|
-
}
|
|
478
|
-
`,$v=T.div`
|
|
479
|
-
color: ${({theme:e})=>e.colors.error};
|
|
480
|
-
font-size: 14px;
|
|
481
|
-
`,Iv=({onSubmit:e,onInterrupt:t,onPauseResume:n,question:r,codegenOptions:o,executionStatus:i})=>{var w;const[l,s]=O.useState(""),[u,a]=O.useState(null),[c,f]=O.useState(o.aiService);O.useEffect(()=>{f(o.aiService)},[o.aiService]);const m=async E=>{if(E.preventDefault(),l.trim()&&r)try{await e(l,void 0,c),s(""),a(null)}catch(p){console.error("Error submitting answer:",p),a("Failed to submit the answer. Please try again.")}},v=async E=>{try{await e(l,E,c),a(null)}catch(p){console.error("Error submitting confirmation:",p),a("Failed to submit the confirmation. Please try again.")}},y=i==="paused";return g.jsxs(Av,{children:[r?g.jsxs(Lv,{onSubmit:m,children:[r.confirmation&&g.jsx("p",{children:r.text}),((w=r.confirmation)==null?void 0:w.includeAnswer)!==!1&&g.jsx(mh,{value:l,onChange:s,placeholder:"Enter your answer here",maxViewportHeight:.3}),!r.confirmation&&g.jsxs(Ul,{children:[g.jsx(zv,{type:"submit",children:"Submit Answer"}),g.jsx(sa,{value:c,onChange:f,disabled:!1}),g.jsx(Hl,{onClick:t,children:"Interrupt"})]}),r.confirmation&&g.jsxs(Ul,{children:[g.jsx(Jc,{onClick:()=>v(!0),children:r.confirmation.confirmLabel}),g.jsx(Jc,{onClick:()=>v(!1),"data-secondary":"true",children:r.confirmation.declineLabel}),g.jsx(Hl,{onClick:t,children:"Interrupt"})]})]}):g.jsxs(Ul,{children:[g.jsx(Fv,{onClick:n,isPaused:y,children:y?"Resume":"Pause"}),g.jsx(Hl,{onClick:t,children:"Interrupt"})]}),u&&g.jsx(Dv,{children:u})]})},Av=T.div`
|
|
482
|
-
background-color: ${({theme:e})=>e.colors.background};
|
|
483
|
-
border: 1px solid ${({theme:e})=>e.colors.border};
|
|
484
|
-
border-radius: 8px;
|
|
485
|
-
padding: 15px;
|
|
486
|
-
margin-top: 10px;
|
|
487
|
-
margin-bottom: 10px;
|
|
488
|
-
max-width: 70%;
|
|
489
|
-
width: 100%;
|
|
490
|
-
box-sizing: border-box;
|
|
491
|
-
`,Lv=T.form`
|
|
492
|
-
display: flex;
|
|
493
|
-
flex-direction: column;
|
|
494
|
-
|
|
495
|
-
> p {
|
|
496
|
-
margin-top: 0;
|
|
497
|
-
}
|
|
498
|
-
`,Ul=T.div`
|
|
499
|
-
display: flex;
|
|
500
|
-
justify-content: flex-start;
|
|
501
|
-
gap: 10px;
|
|
502
|
-
margin-top: 10px;
|
|
503
|
-
`,ol=T.button`
|
|
504
|
-
color: #ffffff;
|
|
505
|
-
border: none;
|
|
506
|
-
border-radius: 4px;
|
|
507
|
-
padding: 8px 12px;
|
|
508
|
-
font-size: 14px;
|
|
509
|
-
cursor: pointer;
|
|
510
|
-
transition: background-color 0.3s ease;
|
|
511
|
-
`,zv=T(ol)`
|
|
512
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
513
|
-
|
|
514
|
-
&:hover {
|
|
515
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
516
|
-
}
|
|
517
|
-
`,Jc=T(ol)`
|
|
518
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
519
|
-
&:hover {
|
|
520
|
-
background-color: ${({theme:e})=>e.colors.primary}dd;
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
&[data-secondary='true'] {
|
|
524
|
-
background-color: ${({theme:e})=>e.colors.secondary};
|
|
525
|
-
&:hover {
|
|
526
|
-
background-color: ${({theme:e})=>e.colors.secondary}dd;
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
`,Hl=T(ol)`
|
|
530
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
531
|
-
margin-left: auto;
|
|
532
|
-
|
|
533
|
-
&:hover {
|
|
534
|
-
background-color: ${({theme:e})=>e.colors.error}dd;
|
|
535
|
-
}
|
|
536
|
-
`,Fv=T(ol)`
|
|
537
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
|
|
538
|
-
|
|
539
|
-
&:hover {
|
|
540
|
-
background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
|
|
541
|
-
}
|
|
542
|
-
`,Dv=T.p`
|
|
543
|
-
color: ${({theme:e})=>e.colors.error};
|
|
544
|
-
font-weight: bold;
|
|
545
|
-
margin-top: 10px;
|
|
546
|
-
margin-bottom: 0;
|
|
547
|
-
`,Mv=({isVisible:e,onInterrupt:t,onPauseResume:n,executionStatus:r})=>e?g.jsxs(Uv,{children:[g.jsx(bv,{onClick:t,children:"Interrupt"}),g.jsxs(Hv,{"data-execution-status":r,children:[g.jsx(bl,{}),g.jsx(bl,{}),g.jsx(bl,{})]}),g.jsx(gh,{onClick:n,children:r==="paused"?"Resume":"Pause"})]}):null,Bv=ea`
|
|
548
|
-
0%, 80%, 100% {
|
|
549
|
-
transform: scale(0);
|
|
550
|
-
}
|
|
551
|
-
40% {
|
|
552
|
-
transform: scale(1.0);
|
|
553
|
-
}
|
|
554
|
-
`,Uv=T.div`
|
|
555
|
-
display: flex;
|
|
556
|
-
flex-direction: row;
|
|
557
|
-
align-items: center;
|
|
558
|
-
justify-content: center;
|
|
559
|
-
gap: 50px;
|
|
560
|
-
padding: 10px;
|
|
561
|
-
background-color: ${e=>e.theme.colors.background};
|
|
562
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
563
|
-
`,Hv=T.div`
|
|
564
|
-
display: flex;
|
|
565
|
-
align-items: center;
|
|
566
|
-
justify-content: center;
|
|
567
|
-
align-items: center;
|
|
568
|
-
margin-bottom: 10px;
|
|
569
|
-
`,bl=T.div`
|
|
570
|
-
width: 10px;
|
|
571
|
-
height: 10px;
|
|
572
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
573
|
-
border-radius: 50%;
|
|
574
|
-
margin: 0 5px;
|
|
575
|
-
|
|
576
|
-
[data-execution-status='executing'] & {
|
|
577
|
-
animation: ${Bv} 1.4s infinite ease-in-out both;
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
&:nth-child(1) {
|
|
581
|
-
animation-delay: -0.32s;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
&:nth-child(2) {
|
|
585
|
-
animation-delay: -0.16s;
|
|
586
|
-
}
|
|
587
|
-
`,gh=T.button`
|
|
588
|
-
padding: 8px 16px;
|
|
589
|
-
background-color: ${e=>e.theme.colors.primary};
|
|
590
|
-
color: #ffffff;
|
|
591
|
-
border: none;
|
|
592
|
-
border-radius: 4px;
|
|
593
|
-
cursor: pointer;
|
|
594
|
-
font-size: 14px;
|
|
595
|
-
font-weight: 600;
|
|
596
|
-
transition: background-color 0.3s, transform 0.1s;
|
|
597
|
-
|
|
598
|
-
&:hover {
|
|
599
|
-
background-color: ${e=>e.theme.colors.primaryHover};
|
|
600
|
-
transform: translateY(-1px);
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
&:active {
|
|
604
|
-
transform: translateY(0);
|
|
605
|
-
}
|
|
606
|
-
`,bv=T(gh)`
|
|
607
|
-
background-color: ${({theme:e})=>e.colors.error};
|
|
608
|
-
|
|
609
|
-
&:hover {
|
|
610
|
-
background-color: ${({theme:e})=>e.colors.errorHover};
|
|
611
|
-
}
|
|
612
|
-
`,Vv=({messages:e,currentQuestion:t,codegenOptions:n,onQuestionSubmit:r,onInterrupt:o,onPauseResume:i,executionStatus:l})=>{var oe;const[s,u]=O.useState(()=>new Set),[a,c]=O.useState(()=>new Set),[f,m]=O.useState(()=>new Set),v=O.useRef(null),y=O.useRef(null),[w,E]=O.useState(!1),[p,d]=O.useState(!0),[h,x]=O.useState(null),k=Ev(e),_=l!=="idle"?(oe=k[k.length-1])==null?void 0:oe.iterationId:null,C=O.useCallback(()=>{if(!y.current)return!0;const{scrollTop:I,scrollHeight:K,clientHeight:M}=y.current;return Math.abs(K-M-I)<1||K<=M},[]);O.useEffect(()=>{const I=y.current;if(!I)return;const K=()=>{const M=C();d(M),M&&E(!1)};return I.addEventListener("scroll",K),()=>I.removeEventListener("scroll",K)},[C]),O.useEffect(()=>{p?ae():E(!0)},[k,p]),O.useEffect(()=>{const I=new Set(k.slice(0,-1).map(K=>K.iterationId));m(I)},[]);const R=I=>{u(K=>{const M=new Set(K);return M.has(I)?M.delete(I):M.add(I),M})},B=I=>{c(K=>{const M=new Set(K);return M.has(I)?M.delete(I):M.add(I),M})},z=I=>{m(K=>{const M=new Set(K);return M.has(I)?M.delete(I):M.add(I),M})},ae=()=>{var I;(I=y.current)==null||I.scrollTo({top:y.current.scrollHeight,behavior:"smooth"}),E(!1)},he=async I=>{if(h===I)try{await W1(I),x(null)}catch(K){console.error("Failed to delete iteration:",K)}else x(I)};return g.jsxs(hv,{children:[g.jsxs(mv,{ref:y,children:[k.map((I,K)=>g.jsxs(gv,{children:[g.jsxs(yv,{children:[g.jsxs("div",{className:"title",onClick:()=>z(I.iterationId),children:[f.has(I.iterationId)?g.jsx(kv,{}):g.jsx(Sv,{}),g.jsx("span",{children:I.iterationTitle??`Iteration ${I.iterationId}`})]}),g.jsxs("span",{className:"meta",children:[I.timestampStart.toLocaleString()," - ",I.timestampEnd.toLocaleString(),I.iterationId!==_&&g.jsx(vv,{onClick:()=>he(I.iterationId),title:h===I.iterationId?"Confirm deletion":"Delete iteration",children:h===I.iterationId?"đī¸ Confirm":"đī¸"})]})]}),g.jsxs(wv,{isCollapsed:f.has(I.iterationId),children:[I.conversationSummaries.length>0&&g.jsx(xv,{children:I.conversationSummaries.join(" ")}),I.messages.map((M,we)=>g.jsxs(De.Fragment,{children:[M.type===Br.SYSTEM?g.jsx(pv,{message:M,collapsedExecutions:a,toggleExecutionCollapse:B,visibleDataIds:s,toggleDataVisibility:R}):g.jsx(lv,{message:M,visibleDataIds:s,toggleDataVisibility:R}),l!=="idle"&&t&&K===k.length-1&&we===I.messages.length-1&&g.jsx(Iv,{onSubmit:r,onInterrupt:o,onPauseResume:i,question:t,codegenOptions:n,executionStatus:l})]},M.id))]})]},I.iterationId)),g.jsx("div",{ref:v})]}),w&&!p&&g.jsx(Cv,{onClick:ae}),g.jsx(Mv,{isVisible:l!=="idle"&&!t,onInterrupt:o,onPauseResume:i,executionStatus:l})]})},Wv=5*1024*1024,Xc=["image/jpeg","image/png","image/gif","image/webp"],Zc=5,Qv=({images:e,onImagesChange:t,error:n,setError:r,fileInputRef:o})=>{const i=s=>{const a=Array.from(s.target.files||[]).filter(c=>Xc.includes(c.type)?c.size>Wv?(r(`File too large: ${c.name}. Maximum size is 5MB.`),!1):!0:(r(`Invalid file type: ${c.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(a.length+e.length>Zc){r(`Too many images. Maximum ${Zc} images allowed.`);return}t([...e,...a]),r(null)},l=s=>{const u=e.filter((a,c)=>c!==s);t(u)};return g.jsxs(Kv,{children:[n&&g.jsx(Gv,{children:n}),g.jsx(Yv,{children:e.map((s,u)=>g.jsxs(qv,{children:[g.jsx("img",{src:URL.createObjectURL(s),alt:`Uploaded ${u+1}`}),g.jsx(Jv,{onClick:()=>l(u),children:"Ã"})]},u))}),g.jsx("input",{type:"file",ref:o,style:{display:"none"},onChange:i,accept:Xc.join(","),multiple:!0})]})},Kv=T.div`
|
|
613
|
-
margin-bottom: 8px;
|
|
614
|
-
`,Gv=T.div`
|
|
615
|
-
color: ${e=>e.theme.colors.error};
|
|
616
|
-
font-size: 14px;
|
|
617
|
-
margin-bottom: 8px;
|
|
618
|
-
`,Yv=T.div`
|
|
619
|
-
display: flex;
|
|
620
|
-
flex-wrap: wrap;
|
|
621
|
-
gap: 8px;
|
|
622
|
-
`,qv=T.div`
|
|
623
|
-
position: relative;
|
|
624
|
-
width: 60px;
|
|
625
|
-
height: 60px;
|
|
626
|
-
|
|
627
|
-
img {
|
|
628
|
-
width: 100%;
|
|
629
|
-
height: 100%;
|
|
630
|
-
object-fit: cover;
|
|
631
|
-
border-radius: 4px;
|
|
632
|
-
}
|
|
633
|
-
`,Jv=T.button`
|
|
634
|
-
position: absolute;
|
|
635
|
-
top: -8px;
|
|
636
|
-
right: -8px;
|
|
637
|
-
background-color: ${e=>e.theme.colors.error};
|
|
638
|
-
color: white;
|
|
639
|
-
border: none;
|
|
640
|
-
border-radius: 50%;
|
|
641
|
-
width: 20px;
|
|
642
|
-
height: 20px;
|
|
643
|
-
font-size: 14px;
|
|
644
|
-
line-height: 1;
|
|
645
|
-
cursor: pointer;
|
|
646
|
-
display: flex;
|
|
647
|
-
align-items: center;
|
|
648
|
-
justify-content: center;
|
|
649
|
-
|
|
650
|
-
&:hover {
|
|
651
|
-
background-color: ${e=>e.theme.colors.errorHover};
|
|
652
|
-
}
|
|
653
|
-
`,Xv=({onSubmit:e,onToggleOptions:t,onUploadClick:n,onAiServiceChange:r,options:o,disabled:i})=>g.jsxs(tw,{children:[g.jsx(Zv,{onClick:e,disabled:i,children:"Submit"}),g.jsx(ua,{onClick:n,children:"Upload Images"}),g.jsx(sa,{value:o.aiService,onChange:r}),g.jsx(ew,{onClick:t,children:"Configuration"})]}),ua=T.button`
|
|
654
|
-
color: ${({theme:e})=>e.colors.buttonText};
|
|
655
|
-
background-color: ${({theme:e})=>e.colors.buttonBg};
|
|
656
|
-
border: none;
|
|
657
|
-
border-radius: 4px;
|
|
658
|
-
padding: 10px 15px;
|
|
659
|
-
font-size: 14px;
|
|
660
|
-
cursor: pointer;
|
|
661
|
-
transition: background-color 0.3s ease;
|
|
662
|
-
margin-right: 10px;
|
|
663
|
-
|
|
664
|
-
&:hover {
|
|
665
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
666
|
-
}
|
|
667
|
-
|
|
668
|
-
&:disabled {
|
|
669
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
670
|
-
cursor: not-allowed;
|
|
671
|
-
}
|
|
672
|
-
`,Zv=T(ua)`
|
|
673
|
-
background-color: ${({theme:e})=>e.colors.primary};
|
|
674
|
-
color: #ffffff;
|
|
675
|
-
|
|
676
|
-
&:hover {
|
|
677
|
-
background-color: ${({theme:e})=>e.colors.primaryHover};
|
|
678
|
-
}
|
|
679
|
-
|
|
680
|
-
&:disabled {
|
|
681
|
-
background-color: ${({theme:e})=>e.colors.disabled};
|
|
682
|
-
}
|
|
683
|
-
`,ew=T(ua)`
|
|
684
|
-
margin-left: auto;
|
|
685
|
-
margin-right: 0;
|
|
686
|
-
`,tw=T.div`
|
|
687
|
-
display: flex;
|
|
688
|
-
justify-content: flex-start;
|
|
689
|
-
margin-top: 10px;
|
|
690
|
-
`,nw=({options:e,onOptionsChange:t,disabled:n})=>{const r=i=>{const{name:l,value:s,type:u}=i.target,a=u==="checkbox"?!i.target.checked:s;t({...e,[l]:a})},o=i=>{t({...e,aiService:i})};return g.jsxs(rw,{children:[g.jsxs(Cr,{children:[g.jsx(mt,{htmlFor:"aiService",children:"AI Service:"}),g.jsx(sa,{value:e.aiService,onChange:o,disabled:n})]}),g.jsx(Cr,{children:g.jsxs(mt,{htmlFor:"cheap",children:[g.jsx("input",{type:"checkbox",id:"cheap",name:"cheap",checked:e.cheap,onChange:r,disabled:n}),"Cheap Mode"]})}),g.jsxs(Cr,{children:[g.jsx(mt,{htmlFor:"contentMask",children:"Content Mask:"}),g.jsx(ed,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:r,disabled:n})]}),g.jsxs(Cr,{children:[g.jsx(mt,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),g.jsx(ed,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:i=>{const l=i.target.value.split(",").map(s=>s.trim());t({...e,ignorePatterns:l})},disabled:n}),g.jsx("small",{children:"Comma-separated list of patterns"})]}),g.jsxs(Cr,{children:[g.jsx(mt,{children:"File Operations:"}),g.jsxs(mt,{htmlFor:"allowFileCreate",children:[g.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:r,disabled:n}),"Allow File Create"]}),g.jsxs(mt,{htmlFor:"allowFileDelete",children:[g.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:r,disabled:n}),"Allow File Delete"]}),g.jsxs(mt,{htmlFor:"allowDirectoryCreate",children:[g.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:r,disabled:n}),"Allow Directory Create"]}),g.jsxs(mt,{htmlFor:"allowFileMove",children:[g.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:r,disabled:n}),"Allow File Move"]})]})]})},rw=T.div`
|
|
691
|
-
background-color: ${e=>e.theme.colors.backgroundSecondary};
|
|
692
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
693
|
-
border-radius: 4px;
|
|
694
|
-
padding: 16px;
|
|
695
|
-
margin-top: 16px;
|
|
696
|
-
`,Cr=T.div`
|
|
697
|
-
margin-bottom: 16px;
|
|
698
|
-
`,mt=T.label`
|
|
699
|
-
display: block;
|
|
700
|
-
margin-bottom: 4px;
|
|
701
|
-
color: ${e=>e.theme.colors.text};
|
|
702
|
-
`,ed=T.input`
|
|
703
|
-
width: 100%;
|
|
704
|
-
padding: 8px;
|
|
705
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
706
|
-
border-radius: 4px;
|
|
707
|
-
background-color: ${e=>e.theme.colors.inputBg};
|
|
708
|
-
color: ${e=>e.theme.colors.inputText};
|
|
709
|
-
|
|
710
|
-
&:disabled {
|
|
711
|
-
background-color: ${e=>e.theme.colors.disabled};
|
|
712
|
-
cursor: not-allowed;
|
|
713
|
-
}
|
|
714
|
-
`,ow=({onSubmit:e,isExecuting:t,codegenOptions:n,onOptionsChange:r})=>{const[o,i]=O.useState(""),[l,s]=O.useState([]),[u,a]=O.useState(!1),[c,f]=O.useState(null),m=O.useRef(null);if(t)return null;const v=()=>{(o.trim()||l.length>0)&&(e(o.trim(),l),i(""),s([]))},y=h=>{s(h)},w=()=>{a(!u)},E=()=>{var h;(h=m.current)==null||h.click()},p=h=>{const x=[...l,h];y(x)},d=h=>{r({...n,aiService:h})};return g.jsxs(iw,{children:[g.jsx(lw,{children:g.jsx(mh,{value:o,onChange:i,placeholder:"Enter your input here",onImagePaste:p})}),g.jsx(Qv,{images:l,onImagesChange:y,error:c,setError:f,fileInputRef:m}),g.jsx(Xv,{onSubmit:v,onToggleOptions:w,onUploadClick:E,onAiServiceChange:d,options:n,disabled:!o.trim()&&l.length===0}),u&&g.jsx(nw,{options:n,onOptionsChange:r,disabled:!1})]})},iw=T.div`
|
|
715
|
-
display: flex;
|
|
716
|
-
flex-direction: column;
|
|
717
|
-
background-color: ${e=>e.theme.colors.background};
|
|
718
|
-
border-top: 1px solid ${e=>e.theme.colors.border};
|
|
719
|
-
padding: 16px;
|
|
720
|
-
width: 100%;
|
|
721
|
-
box-sizing: border-box;
|
|
722
|
-
`,lw=T.div`
|
|
723
|
-
margin-bottom: 16px;
|
|
724
|
-
width: 100%;
|
|
725
|
-
`,sw=({theme:e,toggleTheme:t})=>g.jsx(uw,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"đ":"âī¸"}),uw=T.button`
|
|
726
|
-
background-color: transparent;
|
|
727
|
-
color: ${({theme:e})=>e.colors.text};
|
|
728
|
-
border: none;
|
|
729
|
-
border-radius: 50%;
|
|
730
|
-
width: 40px;
|
|
731
|
-
height: 40px;
|
|
732
|
-
font-size: 20px;
|
|
733
|
-
cursor: pointer;
|
|
734
|
-
display: flex;
|
|
735
|
-
align-items: center;
|
|
736
|
-
justify-content: center;
|
|
737
|
-
transition: background-color 0.3s;
|
|
738
|
-
|
|
739
|
-
&:hover {
|
|
740
|
-
background-color: ${({theme:e})=>e.colors.buttonHoverBg};
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
&:focus {
|
|
744
|
-
outline: none;
|
|
745
|
-
box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
|
|
746
|
-
}
|
|
747
|
-
`,aw=({rcConfig:e})=>{const[t,n]=O.useState(!1),r=()=>{n(!t)};return e?g.jsxs(cw,{onClick:r,children:[g.jsx(dw,{children:"âšī¸"}),t&&g.jsxs(fw,{children:[g.jsx(pw,{children:"RcConfig Settings"}),g.jsxs(Cn,{children:[g.jsx(_n,{children:"Root Directory:"}),g.jsx(Pn,{children:e.rootDir})]}),e.lintCommand&&g.jsxs(Cn,{children:[g.jsx(_n,{children:"Lint Command:"}),g.jsx(Pn,{children:e.lintCommand})]}),e.extensions&&g.jsxs(Cn,{children:[g.jsx(_n,{children:"Extensions:"}),g.jsx(Pn,{children:e.extensions.join(", ")})]}),e.ignorePaths&&g.jsxs(Cn,{children:[g.jsx(_n,{children:"Ignore Paths:"}),g.jsx(Pn,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&g.jsxs(Cn,{children:[g.jsx(_n,{children:"Important Context:"}),g.jsx(Pn,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&g.jsxs(Cn,{children:[g.jsx(_n,{children:"Model Overrides:"}),g.jsx(Pn,{children:JSON.stringify(e.modelOverrides,null,2)})]})]})]}):null},cw=T.div`
|
|
748
|
-
position: relative;
|
|
749
|
-
display: inline-block;
|
|
750
|
-
cursor: pointer;
|
|
751
|
-
`,dw=T.span`
|
|
752
|
-
font-size: 24px;
|
|
753
|
-
color: ${e=>e.theme.colors.primary};
|
|
754
|
-
`,fw=T.div`
|
|
755
|
-
position: absolute;
|
|
756
|
-
top: 100%;
|
|
757
|
-
right: 0;
|
|
758
|
-
background-color: ${e=>e.theme.colors.background};
|
|
759
|
-
border: 1px solid ${e=>e.theme.colors.border};
|
|
760
|
-
border-radius: 4px;
|
|
761
|
-
padding: 16px;
|
|
762
|
-
min-width: 200px;
|
|
763
|
-
max-width: 300px;
|
|
764
|
-
z-index: 1000;
|
|
765
|
-
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
766
|
-
|
|
767
|
-
@media (max-width: 576px) {
|
|
768
|
-
left: 0;
|
|
769
|
-
background-color: ${e=>e.theme.colors.pageBackground};
|
|
770
|
-
width: fit-content;
|
|
771
|
-
}
|
|
772
|
-
`,pw=T.h3`
|
|
773
|
-
margin-top: 0;
|
|
774
|
-
margin-bottom: 8px;
|
|
775
|
-
color: ${e=>e.theme.colors.primary};
|
|
776
|
-
`,Cn=T.div`
|
|
777
|
-
margin-bottom: 8px;
|
|
778
|
-
`,_n=T.span`
|
|
779
|
-
font-weight: bold;
|
|
780
|
-
margin-right: 8px;
|
|
781
|
-
`,Pn=T.span`
|
|
782
|
-
color: ${e=>e.theme.colors.text};
|
|
783
|
-
`,td=by`
|
|
784
|
-
body {
|
|
785
|
-
color: ${({theme:e})=>e.colors.text};
|
|
786
|
-
font-family: Arial, sans-serif;
|
|
787
|
-
margin: 0;
|
|
788
|
-
padding: 0;
|
|
789
|
-
background-color: ${({theme:e})=>e.colors.pageBackground};
|
|
790
|
-
}
|
|
791
|
-
|
|
792
|
-
body::before {
|
|
793
|
-
content: '';
|
|
794
|
-
position: fixed;
|
|
795
|
-
top: 0;
|
|
796
|
-
left: 0;
|
|
797
|
-
right: 0;
|
|
798
|
-
bottom: 0;
|
|
799
|
-
transition: all 0.3s ease;
|
|
800
|
-
opacity: 0.1;
|
|
801
|
-
background-image: url(${e=>e.theme.backgroundImage});
|
|
802
|
-
background-size: cover;
|
|
803
|
-
background-position: center;
|
|
804
|
-
background-repeat: no-repeat;
|
|
805
|
-
background-attachment: fixed;
|
|
806
|
-
z-index: -1;
|
|
807
|
-
}
|
|
808
|
-
`,hw=()=>{const{currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,executionStatus:o,setExecutionStatus:i,chatMessages:l,setChatMessages:s,currentQuestion:u,setCurrentQuestion:a,theme:c,usage:f,codegenOptions:m,rcConfig:v,toggleTheme:y,startPolling:w,stopPolling:E,handlePauseExecution:p,handleResumeExecution:d,setCodegenOptions:h}=G1(),{handleExecute:x,handleQuestionSubmit:k,handleInterrupt:_,handleOptionsChange:C}=Y1({currentPrompt:e,setCurrentPrompt:t,isExecuting:n,setIsExecuting:r,setExecutionStatus:i,chatMessages:l,setChatMessages:s,setCurrentQuestion:a,codegenOptions:m,setCodegenOptions:h});O.useEffect(()=>(w(),()=>{E()}),[w,E]);const R=()=>{o==="paused"?d():p()};return f?g.jsxs(jc,{theme:c==="light"?$c:Ic,children:[g.jsx(td,{}),g.jsx(Jy,{themeToggle:g.jsx(sw,{theme:c,toggleTheme:y}),infoIcon:g.jsx(aw,{rcConfig:v}),chatInterface:g.jsx(Vv,{messages:l,currentQuestion:u,codegenOptions:m,onQuestionSubmit:k,onInterrupt:_,onPauseResume:R,executionStatus:o}),inputArea:!n&&g.jsx(ow,{onSubmit:x,isExecuting:n,onInterrupt:_,codegenOptions:m,onOptionsChange:C}),usage:f})]}):g.jsx(jc,{theme:c==="light"?$c:Ic,children:g.jsx(td,{})})};function mw(){return g.jsx(hw,{})}const gw=document.getElementById("root"),yw=pp(gw);yw.render(De.createElement(mw,null));
|