genaicode 0.10.3 → 0.10.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/dist/ai-service/ai-studio.js +19 -8
  2. package/dist/ai-service/ai-studio.js.map +1 -1
  3. package/dist/ai-service/anthropic.js +17 -8
  4. package/dist/ai-service/anthropic.js.map +1 -1
  5. package/dist/ai-service/common-types.d.ts +2 -0
  6. package/dist/ai-service/common-types.js +2 -0
  7. package/dist/ai-service/common-types.js.map +1 -1
  8. package/dist/ai-service/openai.js +18 -1
  9. package/dist/ai-service/openai.js.map +1 -1
  10. package/dist/ai-service/service-configurations-types.d.ts +1 -0
  11. package/dist/ai-service/service-configurations.d.ts +2 -0
  12. package/dist/ai-service/service-configurations.js +21 -7
  13. package/dist/ai-service/service-configurations.js.map +1 -1
  14. package/dist/ai-service/vertex-ai.js +10 -6
  15. package/dist/ai-service/vertex-ai.js.map +1 -1
  16. package/dist/cli/service-autodetect.js +4 -4
  17. package/dist/cli/service-autodetect.js.map +1 -1
  18. package/dist/files/summary-cache.d.ts +1 -0
  19. package/dist/files/summary-cache.js +5 -0
  20. package/dist/files/summary-cache.js.map +1 -1
  21. package/dist/files/update-files.d.ts +2 -1
  22. package/dist/files/update-files.js +13 -2
  23. package/dist/files/update-files.js.map +1 -1
  24. package/dist/main/codegen-types.d.ts +2 -0
  25. package/dist/main/codegen.test-utils.d.ts +1 -0
  26. package/dist/main/codegen.test-utils.js.map +1 -1
  27. package/dist/main/config-types.d.ts +6 -0
  28. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js +1 -1
  29. package/dist/main/ui/backend/endpoints/generate-content-endpoint.js.map +1 -1
  30. package/dist/main/ui/common/api-types.d.ts +1 -0
  31. package/dist/main/ui/frontend/assets/index-BBSNw-ap.js +2256 -0
  32. package/dist/main/ui/frontend/index.html +1 -1
  33. package/dist/prompt/function-defs/codegen-summary.js +13 -1
  34. package/dist/prompt/function-defs/codegen-summary.js.map +1 -1
  35. package/dist/prompt/function-defs/compound-action.js +4 -0
  36. package/dist/prompt/function-defs/compound-action.js.map +1 -1
  37. package/dist/prompt/prompt-service.test-utils.js +1 -0
  38. package/dist/prompt/prompt-service.test-utils.js.map +1 -1
  39. package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js +7 -2
  40. package/dist/prompt/steps/step-ask-question/handlers/handle-code-generation.js.map +1 -1
  41. package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js +70 -17
  42. package/dist/prompt/steps/step-ask-question/handlers/handle-compound-action.js.map +1 -1
  43. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js +2 -1
  44. package/dist/prompt/steps/step-ask-question/handlers/handle-reasoning-inference.js.map +1 -1
  45. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js +10 -12
  46. package/dist/prompt/steps/step-ask-question/handlers/handle-search-code.js.map +1 -1
  47. package/dist/prompt/steps/step-ask-question/step-ask-question.js +3 -0
  48. package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
  49. package/dist/prompt/steps/step-auto-context-refresh.d.ts +6 -0
  50. package/dist/prompt/steps/step-auto-context-refresh.js +98 -0
  51. package/dist/prompt/steps/step-auto-context-refresh.js.map +1 -0
  52. package/dist/prompt/steps/step-context-optimization.js +1 -1
  53. package/dist/prompt/steps/step-context-optimization.js.map +1 -1
  54. package/dist/prompt/steps/step-ensure-context.d.ts +2 -9
  55. package/dist/prompt/steps/step-ensure-context.js.map +1 -1
  56. package/dist/prompt/steps/step-generate-summary.js +1 -1
  57. package/dist/prompt/steps/step-generate-summary.js.map +1 -1
  58. package/dist/prompt/steps/step-process-file-updates.js +33 -7
  59. package/dist/prompt/steps/step-process-file-updates.js.map +1 -1
  60. package/dist/prompt/steps/step-summarization.js +1 -1
  61. package/dist/prompt/steps/step-summarization.js.map +1 -1
  62. package/dist/prompt/steps/step-verify-patch.d.ts +1 -1
  63. package/dist/prompt/steps/step-verify-patch.js +5 -7
  64. package/dist/prompt/steps/step-verify-patch.js.map +1 -1
  65. package/package.json +4 -2
  66. package/dist/main/ui/frontend/assets/index-oL0QT7JQ.js +0 -2015
@@ -1,2015 +0,0 @@
1
- var Dy=Object.defineProperty;var zy=(t,o,i)=>o in t?Dy(t,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[o]=i;var Mo=(t,o,i)=>zy(t,typeof o!="symbol"?o+"":o,i);(function(){const o=document.createElement("link").relList;if(o&&o.supports&&o.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))l(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const p of f.addedNodes)p.tagName==="LINK"&&p.rel==="modulepreload"&&l(p)}).observe(document,{childList:!0,subtree:!0});function i(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function l(u){if(u.ep)return;u.ep=!0;const f=i(u);fetch(u.href,f)}})();function Fy(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Va={exports:{}},we={};/**
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 Yf;function By(){if(Yf)return we;Yf=1;var t=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),p=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function S(R){return R===null||typeof R!="object"?null:(R=x&&R[x]||R["@@iterator"],typeof R=="function"?R:null)}var $={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,N={};function T(R,z,ne){this.props=R,this.context=z,this.refs=N,this.updater=ne||$}T.prototype.isReactComponent={},T.prototype.setState=function(R,z){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,z,"setState")},T.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function I(){}I.prototype=T.prototype;function M(R,z,ne){this.props=R,this.context=z,this.refs=N,this.updater=ne||$}var D=M.prototype=new I;D.constructor=M,E(D,T.prototype),D.isPureReactComponent=!0;var U=Array.isArray,J=Object.prototype.hasOwnProperty,H={current:null},K={key:!0,ref:!0,__self:!0,__source:!0};function Q(R,z,ne){var ce,ve={},de=null,se=null;if(z!=null)for(ce in z.ref!==void 0&&(se=z.ref),z.key!==void 0&&(de=""+z.key),z)J.call(z,ce)&&!K.hasOwnProperty(ce)&&(ve[ce]=z[ce]);var pe=arguments.length-2;if(pe===1)ve.children=ne;else if(1<pe){for(var he=Array(pe),Ze=0;Ze<pe;Ze++)he[Ze]=arguments[Ze+2];ve.children=he}if(R&&R.defaultProps)for(ce in pe=R.defaultProps,pe)ve[ce]===void 0&&(ve[ce]=pe[ce]);return{$$typeof:t,type:R,key:de,ref:se,props:ve,_owner:H.current}}function ue(R,z){return{$$typeof:t,type:R.type,key:z,ref:R.ref,props:R.props,_owner:R._owner}}function je(R){return typeof R=="object"&&R!==null&&R.$$typeof===t}function Ne(R){var z={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(ne){return z[ne]})}var ge=/\/+/g;function Ee(R,z){return typeof R=="object"&&R!==null&&R.key!=null?Ne(""+R.key):z.toString(36)}function Se(R,z,ne,ce,ve){var de=typeof R;(de==="undefined"||de==="boolean")&&(R=null);var se=!1;if(R===null)se=!0;else switch(de){case"string":case"number":se=!0;break;case"object":switch(R.$$typeof){case t:case o:se=!0}}if(se)return se=R,ve=ve(se),R=ce===""?"."+Ee(se,0):ce,U(ve)?(ne="",R!=null&&(ne=R.replace(ge,"$&/")+"/"),Se(ve,z,ne,"",function(Ze){return Ze})):ve!=null&&(je(ve)&&(ve=ue(ve,ne+(!ve.key||se&&se.key===ve.key?"":(""+ve.key).replace(ge,"$&/")+"/")+R)),z.push(ve)),1;if(se=0,ce=ce===""?".":ce+":",U(R))for(var pe=0;pe<R.length;pe++){de=R[pe];var he=ce+Ee(de,pe);se+=Se(de,z,ne,he,ve)}else if(he=S(R),typeof he=="function")for(R=he.call(R),pe=0;!(de=R.next()).done;)de=de.value,he=ce+Ee(de,pe++),se+=Se(de,z,ne,he,ve);else if(de==="object")throw z=String(R),Error("Objects are not valid as a React child (found: "+(z==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":z)+"). If you meant to render a collection of children, use an array instead.");return se}function Y(R,z,ne){if(R==null)return R;var ce=[],ve=0;return Se(R,ce,"","",function(de){return z.call(ne,de,ve++)}),ce}function xe(R){if(R._status===-1){var z=R._result;z=z(),z.then(function(ne){(R._status===0||R._status===-1)&&(R._status=1,R._result=ne)},function(ne){(R._status===0||R._status===-1)&&(R._status=2,R._result=ne)}),R._status===-1&&(R._status=0,R._result=z)}if(R._status===1)return R._result.default;throw R._result}var ie={current:null},G={transition:null},ee={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:G,ReactCurrentOwner:H};function q(){throw Error("act(...) is not supported in production builds of React.")}return we.Children={map:Y,forEach:function(R,z,ne){Y(R,function(){z.apply(this,arguments)},ne)},count:function(R){var z=0;return Y(R,function(){z++}),z},toArray:function(R){return Y(R,function(z){return z})||[]},only:function(R){if(!je(R))throw Error("React.Children.only expected to receive a single React element child.");return R}},we.Component=T,we.Fragment=i,we.Profiler=u,we.PureComponent=M,we.StrictMode=l,we.Suspense=g,we.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ee,we.act=q,we.cloneElement=function(R,z,ne){if(R==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+R+".");var ce=E({},R.props),ve=R.key,de=R.ref,se=R._owner;if(z!=null){if(z.ref!==void 0&&(de=z.ref,se=H.current),z.key!==void 0&&(ve=""+z.key),R.type&&R.type.defaultProps)var pe=R.type.defaultProps;for(he in z)J.call(z,he)&&!K.hasOwnProperty(he)&&(ce[he]=z[he]===void 0&&pe!==void 0?pe[he]:z[he])}var he=arguments.length-2;if(he===1)ce.children=ne;else if(1<he){pe=Array(he);for(var Ze=0;Ze<he;Ze++)pe[Ze]=arguments[Ze+2];ce.children=pe}return{$$typeof:t,type:R.type,key:ve,ref:de,props:ce,_owner:se}},we.createContext=function(R){return R={$$typeof:p,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},R.Provider={$$typeof:f,_context:R},R.Consumer=R},we.createElement=Q,we.createFactory=function(R){var z=Q.bind(null,R);return z.type=R,z},we.createRef=function(){return{current:null}},we.forwardRef=function(R){return{$$typeof:h,render:R}},we.isValidElement=je,we.lazy=function(R){return{$$typeof:y,_payload:{_status:-1,_result:R},_init:xe}},we.memo=function(R,z){return{$$typeof:v,type:R,compare:z===void 0?null:z}},we.startTransition=function(R){var z=G.transition;G.transition={};try{R()}finally{G.transition=z}},we.unstable_act=q,we.useCallback=function(R,z){return ie.current.useCallback(R,z)},we.useContext=function(R){return ie.current.useContext(R)},we.useDebugValue=function(){},we.useDeferredValue=function(R){return ie.current.useDeferredValue(R)},we.useEffect=function(R,z){return ie.current.useEffect(R,z)},we.useId=function(){return ie.current.useId()},we.useImperativeHandle=function(R,z,ne){return ie.current.useImperativeHandle(R,z,ne)},we.useInsertionEffect=function(R,z){return ie.current.useInsertionEffect(R,z)},we.useLayoutEffect=function(R,z){return ie.current.useLayoutEffect(R,z)},we.useMemo=function(R,z){return ie.current.useMemo(R,z)},we.useReducer=function(R,z,ne){return ie.current.useReducer(R,z,ne)},we.useRef=function(R){return ie.current.useRef(R)},we.useState=function(R){return ie.current.useState(R)},we.useSyncExternalStore=function(R,z,ne){return ie.current.useSyncExternalStore(R,z,ne)},we.useTransition=function(){return ie.current.useTransition()},we.version="18.3.1",we}var Xf;function _u(){return Xf||(Xf=1,Va.exports=By()),Va.exports}var j=_u();const ct=Fy(j);var hs={},Ha={exports:{}},gt={},Wa={exports:{}},Ga={};/**
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
- */var Zf;function Uy(){return Zf||(Zf=1,function(t){function o(G,ee){var q=G.length;G.push(ee);e:for(;0<q;){var R=q-1>>>1,z=G[R];if(0<u(z,ee))G[R]=ee,G[q]=z,q=R;else break e}}function i(G){return G.length===0?null:G[0]}function l(G){if(G.length===0)return null;var ee=G[0],q=G.pop();if(q!==ee){G[0]=q;e:for(var R=0,z=G.length,ne=z>>>1;R<ne;){var ce=2*(R+1)-1,ve=G[ce],de=ce+1,se=G[de];if(0>u(ve,q))de<z&&0>u(se,ve)?(G[R]=se,G[de]=q,R=de):(G[R]=ve,G[ce]=q,R=ce);else if(de<z&&0>u(se,q))G[R]=se,G[de]=q,R=de;else break e}}return ee}function u(G,ee){var q=G.sortIndex-ee.sortIndex;return q!==0?q:G.id-ee.id}if(typeof performance=="object"&&typeof performance.now=="function"){var f=performance;t.unstable_now=function(){return f.now()}}else{var p=Date,h=p.now();t.unstable_now=function(){return p.now()-h}}var g=[],v=[],y=1,x=null,S=3,$=!1,E=!1,N=!1,T=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function D(G){for(var ee=i(v);ee!==null;){if(ee.callback===null)l(v);else if(ee.startTime<=G)l(v),ee.sortIndex=ee.expirationTime,o(g,ee);else break;ee=i(v)}}function U(G){if(N=!1,D(G),!E)if(i(g)!==null)E=!0,xe(J);else{var ee=i(v);ee!==null&&ie(U,ee.startTime-G)}}function J(G,ee){E=!1,N&&(N=!1,I(Q),Q=-1),$=!0;var q=S;try{for(D(ee),x=i(g);x!==null&&(!(x.expirationTime>ee)||G&&!Ne());){var R=x.callback;if(typeof R=="function"){x.callback=null,S=x.priorityLevel;var z=R(x.expirationTime<=ee);ee=t.unstable_now(),typeof z=="function"?x.callback=z:x===i(g)&&l(g),D(ee)}else l(g);x=i(g)}if(x!==null)var ne=!0;else{var ce=i(v);ce!==null&&ie(U,ce.startTime-ee),ne=!1}return ne}finally{x=null,S=q,$=!1}}var H=!1,K=null,Q=-1,ue=5,je=-1;function Ne(){return!(t.unstable_now()-je<ue)}function ge(){if(K!==null){var G=t.unstable_now();je=G;var ee=!0;try{ee=K(!0,G)}finally{ee?Ee():(H=!1,K=null)}}else H=!1}var Ee;if(typeof M=="function")Ee=function(){M(ge)};else if(typeof MessageChannel<"u"){var Se=new MessageChannel,Y=Se.port2;Se.port1.onmessage=ge,Ee=function(){Y.postMessage(null)}}else Ee=function(){T(ge,0)};function xe(G){K=G,H||(H=!0,Ee())}function ie(G,ee){Q=T(function(){G(t.unstable_now())},ee)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(G){G.callback=null},t.unstable_continueExecution=function(){E||$||(E=!0,xe(J))},t.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<G?Math.floor(1e3/G):5},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_getFirstCallbackNode=function(){return i(g)},t.unstable_next=function(G){switch(S){case 1:case 2:case 3:var ee=3;break;default:ee=S}var q=S;S=ee;try{return G()}finally{S=q}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(G,ee){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var q=S;S=G;try{return ee()}finally{S=q}},t.unstable_scheduleCallback=function(G,ee,q){var R=t.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?R+q:R):q=R,G){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=q+z,G={id:y++,callback:ee,priorityLevel:G,startTime:q,expirationTime:z,sortIndex:-1},q>R?(G.sortIndex=q,o(v,G),i(g)===null&&G===i(v)&&(N?(I(Q),Q=-1):N=!0,ie(U,q-R))):(G.sortIndex=z,o(g,G),E||$||(E=!0,xe(J))),G},t.unstable_shouldYield=Ne,t.unstable_wrapCallback=function(G){var ee=S;return function(){var q=S;S=ee;try{return G.apply(this,arguments)}finally{S=q}}}}(Ga)),Ga}var ep;function Vy(){return ep||(ep=1,Wa.exports=Uy()),Wa.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 tp;function Hy(){if(tp)return gt;tp=1;var t=_u(),o=Vy();function i(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)r+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var l=new Set,u={};function f(e,r){p(e,r),p(e+"Capture",r)}function p(e,r){for(u[e]=r,e=0;e<r.length;e++)l.add(r[e])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,v=/^[: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]*$/,y={},x={};function S(e){return g.call(x,e)?!0:g.call(y,e)?!1:v.test(e)?x[e]=!0:(y[e]=!0,!1)}function $(e,r,n,s){if(n!==null&&n.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function E(e,r,n,s){if(r===null||typeof r>"u"||$(e,r,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function N(e,r,n,s,a,c,m){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=s,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=r,this.sanitizeURL=c,this.removeEmptyString=m}var T={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){T[e]=new N(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var r=e[0];T[r]=new N(r,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){T[e]=new N(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){T[e]=new N(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){T[e]=new N(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){T[e]=new N(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){T[e]=new N(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){T[e]=new N(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){T[e]=new N(e,5,!1,e.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function M(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 r=e.replace(I,M);T[r]=new N(r,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var r=e.replace(I,M);T[r]=new N(r,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var r=e.replace(I,M);T[r]=new N(r,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){T[e]=new N(e,1,!1,e.toLowerCase(),null,!1,!1)}),T.xlinkHref=new N("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){T[e]=new N(e,1,!1,e.toLowerCase(),null,!0,!0)});function D(e,r,n,s){var a=T.hasOwnProperty(r)?T[r]:null;(a!==null?a.type!==0:s||!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(E(r,n,a,s)&&(n=null),s||a===null?S(r)&&(n===null?e.removeAttribute(r):e.setAttribute(r,""+n)):a.mustUseProperty?e[a.propertyName]=n===null?a.type===3?!1:"":n:(r=a.attributeName,s=a.attributeNamespace,n===null?e.removeAttribute(r):(a=a.type,n=a===3||a===4&&n===!0?"":""+n,s?e.setAttributeNS(s,r,n):e.setAttribute(r,n))))}var U=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,J=Symbol.for("react.element"),H=Symbol.for("react.portal"),K=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),je=Symbol.for("react.provider"),Ne=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),Ee=Symbol.for("react.suspense"),Se=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),xe=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),G=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var q=Object.assign,R;function z(e){if(R===void 0)try{throw Error()}catch(n){var r=n.stack.trim().match(/\n( *(at )?)/);R=r&&r[1]||""}return`
26
- `+R+e}var ne=!1;function ce(e,r){if(!e||ne)return"";ne=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(r)if(r=function(){throw Error()},Object.defineProperty(r.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(r,[])}catch(L){var s=L}Reflect.construct(e,[],r)}else{try{r.call()}catch(L){s=L}e.call(r.prototype)}else{try{throw Error()}catch(L){s=L}e()}}catch(L){if(L&&s&&typeof L.stack=="string"){for(var a=L.stack.split(`
27
- `),c=s.stack.split(`
28
- `),m=a.length-1,w=c.length-1;1<=m&&0<=w&&a[m]!==c[w];)w--;for(;1<=m&&0<=w;m--,w--)if(a[m]!==c[w]){if(m!==1||w!==1)do if(m--,w--,0>w||a[m]!==c[w]){var C=`
29
- `+a[m].replace(" at new "," at ");return e.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",e.displayName)),C}while(1<=m&&0<=w);break}}}finally{ne=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function ve(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=ce(e.type,!1),e;case 11:return e=ce(e.type.render,!1),e;case 1:return e=ce(e.type,!0),e;default:return""}}function de(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 K:return"Fragment";case H:return"Portal";case ue:return"Profiler";case Q:return"StrictMode";case Ee:return"Suspense";case Se:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Ne:return(e.displayName||"Context")+".Consumer";case je:return(e._context.displayName||"Context")+".Provider";case ge:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return r=e.displayName||null,r!==null?r:de(e.type)||"Memo";case xe:r=e._payload,e=e._init;try{return de(e(r))}catch{}}return null}function se(e){var r=e.type;switch(e.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=r.render,e=e.displayName||e.name||"",r.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(r);case 8:return r===Q?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function pe(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function he(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ze(e){var r=he(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),s=""+e[r];if(!e.hasOwnProperty(r)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var a=n.get,c=n.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return a.call(this)},set:function(m){s=""+m,c.call(this,m)}}),Object.defineProperty(e,r,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(m){s=""+m},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function tr(e){e._valueTracker||(e._valueTracker=Ze(e))}function At(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var n=r.getValue(),s="";return e&&(s=he(e)?e.checked?"true":"false":e.value),e=s,e!==n?(r.setValue(e),!0):!1}function ii(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 qs(e,r){var n=r.checked;return q({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nc(e,r){var n=r.defaultValue==null?"":r.defaultValue,s=r.checked!=null?r.checked:r.defaultChecked;n=pe(r.value!=null?r.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function oc(e,r){r=r.checked,r!=null&&D(e,"checked",r,!1)}function Ys(e,r){oc(e,r);var n=pe(r.value),s=r.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}r.hasOwnProperty("value")?Xs(e,r.type,n):r.hasOwnProperty("defaultValue")&&Xs(e,r.type,pe(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(e.defaultChecked=!!r.defaultChecked)}function ic(e,r,n){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var s=r.type;if(!(s!=="submit"&&s!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+e._wrapperState.initialValue,n||r===e.value||(e.value=r),e.defaultValue=r}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Xs(e,r,n){(r!=="number"||ii(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Yn=Array.isArray;function nn(e,r,n,s){if(e=e.options,r){r={};for(var a=0;a<n.length;a++)r["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=r.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&s&&(e[n].defaultSelected=!0)}else{for(n=""+pe(n),r=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,s&&(e[a].defaultSelected=!0);return}r!==null||e[a].disabled||(r=e[a])}r!==null&&(r.selected=!0)}}function Zs(e,r){if(r.dangerouslySetInnerHTML!=null)throw Error(i(91));return q({},r,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function sc(e,r){var n=r.value;if(n==null){if(n=r.children,r=r.defaultValue,n!=null){if(r!=null)throw Error(i(92));if(Yn(n)){if(1<n.length)throw Error(i(93));n=n[0]}r=n}r==null&&(r=""),n=r}e._wrapperState={initialValue:pe(n)}}function lc(e,r){var n=pe(r.value),s=pe(r.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),r.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function ac(e){var r=e.textContent;r===e._wrapperState.initialValue&&r!==""&&r!==null&&(e.value=r)}function uc(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 el(e,r){return e==null||e==="http://www.w3.org/1999/xhtml"?uc(r):e==="http://www.w3.org/2000/svg"&&r==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var si,cc=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(r,n,s,a){MSApp.execUnsafeLocalFunction(function(){return e(r,n,s,a)})}:e}(function(e,r){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=r;else{for(si=si||document.createElement("div"),si.innerHTML="<svg>"+r.valueOf().toString()+"</svg>",r=si.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;r.firstChild;)e.appendChild(r.firstChild)}});function Xn(e,r){if(r){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=r;return}}e.textContent=r}var Zn={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},Ug=["Webkit","ms","Moz","O"];Object.keys(Zn).forEach(function(e){Ug.forEach(function(r){r=r+e.charAt(0).toUpperCase()+e.substring(1),Zn[r]=Zn[e]})});function dc(e,r,n){return r==null||typeof r=="boolean"||r===""?"":n||typeof r!="number"||r===0||Zn.hasOwnProperty(e)&&Zn[e]?(""+r).trim():r+"px"}function fc(e,r){e=e.style;for(var n in r)if(r.hasOwnProperty(n)){var s=n.indexOf("--")===0,a=dc(n,r[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,a):e[n]=a}}var Vg=q({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 tl(e,r){if(r){if(Vg[e]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(i(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(i(61))}if(r.style!=null&&typeof r.style!="object")throw Error(i(62))}}function rl(e,r){if(e.indexOf("-")===-1)return typeof r.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 nl=null;function ol(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var il=null,on=null,sn=null;function pc(e){if(e=ko(e)){if(typeof il!="function")throw Error(i(280));var r=e.stateNode;r&&(r=$i(r),il(e.stateNode,e.type,r))}}function hc(e){on?sn?sn.push(e):sn=[e]:on=e}function mc(){if(on){var e=on,r=sn;if(sn=on=null,pc(e),r)for(e=0;e<r.length;e++)pc(r[e])}}function gc(e,r){return e(r)}function vc(){}var sl=!1;function yc(e,r,n){if(sl)return e(r,n);sl=!0;try{return gc(e,r,n)}finally{sl=!1,(on!==null||sn!==null)&&(vc(),mc())}}function eo(e,r){var n=e.stateNode;if(n===null)return null;var s=$i(n);if(s===null)return null;n=s[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(i(231,r,typeof n));return n}var ll=!1;if(h)try{var to={};Object.defineProperty(to,"passive",{get:function(){ll=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{ll=!1}function Hg(e,r,n,s,a,c,m,w,C){var L=Array.prototype.slice.call(arguments,3);try{r.apply(n,L)}catch(B){this.onError(B)}}var ro=!1,li=null,ai=!1,al=null,Wg={onError:function(e){ro=!0,li=e}};function Gg(e,r,n,s,a,c,m,w,C){ro=!1,li=null,Hg.apply(Wg,arguments)}function Jg(e,r,n,s,a,c,m,w,C){if(Gg.apply(this,arguments),ro){if(ro){var L=li;ro=!1,li=null}else throw Error(i(198));ai||(ai=!0,al=L)}}function Mr(e){var r=e,n=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(n=r.return),e=r.return;while(e)}return r.tag===3?n:null}function xc(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function wc(e){if(Mr(e)!==e)throw Error(i(188))}function Kg(e){var r=e.alternate;if(!r){if(r=Mr(e),r===null)throw Error(i(188));return r!==e?null:e}for(var n=e,s=r;;){var a=n.return;if(a===null)break;var c=a.alternate;if(c===null){if(s=a.return,s!==null){n=s;continue}break}if(a.child===c.child){for(c=a.child;c;){if(c===n)return wc(a),e;if(c===s)return wc(a),r;c=c.sibling}throw Error(i(188))}if(n.return!==s.return)n=a,s=c;else{for(var m=!1,w=a.child;w;){if(w===n){m=!0,n=a,s=c;break}if(w===s){m=!0,s=a,n=c;break}w=w.sibling}if(!m){for(w=c.child;w;){if(w===n){m=!0,n=c,s=a;break}if(w===s){m=!0,s=c,n=a;break}w=w.sibling}if(!m)throw Error(i(189))}}if(n.alternate!==s)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:r}function Sc(e){return e=Kg(e),e!==null?kc(e):null}function kc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var r=kc(e);if(r!==null)return r;e=e.sibling}return null}var Cc=o.unstable_scheduleCallback,jc=o.unstable_cancelCallback,Qg=o.unstable_shouldYield,qg=o.unstable_requestPaint,Be=o.unstable_now,Yg=o.unstable_getCurrentPriorityLevel,ul=o.unstable_ImmediatePriority,Ec=o.unstable_UserBlockingPriority,ui=o.unstable_NormalPriority,Xg=o.unstable_LowPriority,bc=o.unstable_IdlePriority,ci=null,Jt=null;function Zg(e){if(Jt&&typeof Jt.onCommitFiberRoot=="function")try{Jt.onCommitFiberRoot(ci,e,void 0,(e.current.flags&128)===128)}catch{}}var Mt=Math.clz32?Math.clz32:rv,ev=Math.log,tv=Math.LN2;function rv(e){return e>>>=0,e===0?32:31-(ev(e)/tv|0)|0}var di=64,fi=4194304;function no(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 pi(e,r){var n=e.pendingLanes;if(n===0)return 0;var s=0,a=e.suspendedLanes,c=e.pingedLanes,m=n&268435455;if(m!==0){var w=m&~a;w!==0?s=no(w):(c&=m,c!==0&&(s=no(c)))}else m=n&~a,m!==0?s=no(m):c!==0&&(s=no(c));if(s===0)return 0;if(r!==0&&r!==s&&(r&a)===0&&(a=s&-s,c=r&-r,a>=c||a===16&&(c&4194240)!==0))return r;if((s&4)!==0&&(s|=n&16),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=s;0<r;)n=31-Mt(r),a=1<<n,s|=e[n],r&=~a;return s}function nv(e,r){switch(e){case 1:case 2:case 4:return r+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 r+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 ov(e,r){for(var n=e.suspendedLanes,s=e.pingedLanes,a=e.expirationTimes,c=e.pendingLanes;0<c;){var m=31-Mt(c),w=1<<m,C=a[m];C===-1?((w&n)===0||(w&s)!==0)&&(a[m]=nv(w,r)):C<=r&&(e.expiredLanes|=w),c&=~w}}function cl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Nc(){var e=di;return di<<=1,(di&4194240)===0&&(di=64),e}function dl(e){for(var r=[],n=0;31>n;n++)r.push(e);return r}function oo(e,r,n){e.pendingLanes|=r,r!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,r=31-Mt(r),e[r]=n}function iv(e,r){var n=e.pendingLanes&~r;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=r,e.mutableReadLanes&=r,e.entangledLanes&=r,r=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-Mt(n),c=1<<a;r[a]=0,s[a]=-1,e[a]=-1,n&=~c}}function fl(e,r){var n=e.entangledLanes|=r;for(e=e.entanglements;n;){var s=31-Mt(n),a=1<<s;a&r|e[s]&r&&(e[s]|=r),n&=~a}}var $e=0;function Rc(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var $c,pl,Tc,Pc,_c,hl=!1,hi=[],dr=null,fr=null,pr=null,io=new Map,so=new Map,hr=[],sv="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 Lc(e,r){switch(e){case"focusin":case"focusout":dr=null;break;case"dragenter":case"dragleave":fr=null;break;case"mouseover":case"mouseout":pr=null;break;case"pointerover":case"pointerout":io.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":so.delete(r.pointerId)}}function lo(e,r,n,s,a,c){return e===null||e.nativeEvent!==c?(e={blockedOn:r,domEventName:n,eventSystemFlags:s,nativeEvent:c,targetContainers:[a]},r!==null&&(r=ko(r),r!==null&&pl(r)),e):(e.eventSystemFlags|=s,r=e.targetContainers,a!==null&&r.indexOf(a)===-1&&r.push(a),e)}function lv(e,r,n,s,a){switch(r){case"focusin":return dr=lo(dr,e,r,n,s,a),!0;case"dragenter":return fr=lo(fr,e,r,n,s,a),!0;case"mouseover":return pr=lo(pr,e,r,n,s,a),!0;case"pointerover":var c=a.pointerId;return io.set(c,lo(io.get(c)||null,e,r,n,s,a)),!0;case"gotpointercapture":return c=a.pointerId,so.set(c,lo(so.get(c)||null,e,r,n,s,a)),!0}return!1}function Ic(e){var r=Dr(e.target);if(r!==null){var n=Mr(r);if(n!==null){if(r=n.tag,r===13){if(r=xc(n),r!==null){e.blockedOn=r,_c(e.priority,function(){Tc(n)});return}}else if(r===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function mi(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var n=gl(e.domEventName,e.eventSystemFlags,r[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);nl=s,n.target.dispatchEvent(s),nl=null}else return r=ko(n),r!==null&&pl(r),e.blockedOn=n,!1;r.shift()}return!0}function Oc(e,r,n){mi(e)&&n.delete(r)}function av(){hl=!1,dr!==null&&mi(dr)&&(dr=null),fr!==null&&mi(fr)&&(fr=null),pr!==null&&mi(pr)&&(pr=null),io.forEach(Oc),so.forEach(Oc)}function ao(e,r){e.blockedOn===r&&(e.blockedOn=null,hl||(hl=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,av)))}function uo(e){function r(a){return ao(a,e)}if(0<hi.length){ao(hi[0],e);for(var n=1;n<hi.length;n++){var s=hi[n];s.blockedOn===e&&(s.blockedOn=null)}}for(dr!==null&&ao(dr,e),fr!==null&&ao(fr,e),pr!==null&&ao(pr,e),io.forEach(r),so.forEach(r),n=0;n<hr.length;n++)s=hr[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<hr.length&&(n=hr[0],n.blockedOn===null);)Ic(n),n.blockedOn===null&&hr.shift()}var ln=U.ReactCurrentBatchConfig,gi=!0;function uv(e,r,n,s){var a=$e,c=ln.transition;ln.transition=null;try{$e=1,ml(e,r,n,s)}finally{$e=a,ln.transition=c}}function cv(e,r,n,s){var a=$e,c=ln.transition;ln.transition=null;try{$e=4,ml(e,r,n,s)}finally{$e=a,ln.transition=c}}function ml(e,r,n,s){if(gi){var a=gl(e,r,n,s);if(a===null)Ll(e,r,s,vi,n),Lc(e,s);else if(lv(a,e,r,n,s))s.stopPropagation();else if(Lc(e,s),r&4&&-1<sv.indexOf(e)){for(;a!==null;){var c=ko(a);if(c!==null&&$c(c),c=gl(e,r,n,s),c===null&&Ll(e,r,s,vi,n),c===a)break;a=c}a!==null&&s.stopPropagation()}else Ll(e,r,s,null,n)}}var vi=null;function gl(e,r,n,s){if(vi=null,e=ol(s),e=Dr(e),e!==null)if(r=Mr(e),r===null)e=null;else if(n=r.tag,n===13){if(e=xc(r),e!==null)return e;e=null}else if(n===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null);return vi=e,null}function Ac(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(Yg()){case ul:return 1;case Ec:return 4;case ui:case Xg:return 16;case bc:return 536870912;default:return 16}default:return 16}}var mr=null,vl=null,yi=null;function Mc(){if(yi)return yi;var e,r=vl,n=r.length,s,a="value"in mr?mr.value:mr.textContent,c=a.length;for(e=0;e<n&&r[e]===a[e];e++);var m=n-e;for(s=1;s<=m&&r[n-s]===a[c-s];s++);return yi=a.slice(e,1<s?1-s:void 0)}function xi(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function wi(){return!0}function Dc(){return!1}function xt(e){function r(n,s,a,c,m){this._reactName=n,this._targetInst=a,this.type=s,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var w in e)e.hasOwnProperty(w)&&(n=e[w],this[w]=n?n(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?wi:Dc,this.isPropagationStopped=Dc,this}return q(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=wi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=wi)},persist:function(){},isPersistent:wi}),r}var an={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yl=xt(an),co=q({},an,{view:0,detail:0}),dv=xt(co),xl,wl,fo,Si=q({},co,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:kl,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!==fo&&(fo&&e.type==="mousemove"?(xl=e.screenX-fo.screenX,wl=e.screenY-fo.screenY):wl=xl=0,fo=e),xl)},movementY:function(e){return"movementY"in e?e.movementY:wl}}),zc=xt(Si),fv=q({},Si,{dataTransfer:0}),pv=xt(fv),hv=q({},co,{relatedTarget:0}),Sl=xt(hv),mv=q({},an,{animationName:0,elapsedTime:0,pseudoElement:0}),gv=xt(mv),vv=q({},an,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),yv=xt(vv),xv=q({},an,{data:0}),Fc=xt(xv),wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sv={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"},kv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cv(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=kv[e])?!!r[e]:!1}function kl(){return Cv}var jv=q({},co,{key:function(e){if(e.key){var r=wv[e.key]||e.key;if(r!=="Unidentified")return r}return e.type==="keypress"?(e=xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Sv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:kl,charCode:function(e){return e.type==="keypress"?xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Ev=xt(jv),bv=q({},Si,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bc=xt(bv),Nv=q({},co,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:kl}),Rv=xt(Nv),$v=q({},an,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tv=xt($v),Pv=q({},Si,{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}),_v=xt(Pv),Lv=[9,13,27,32],Cl=h&&"CompositionEvent"in window,po=null;h&&"documentMode"in document&&(po=document.documentMode);var Iv=h&&"TextEvent"in window&&!po,Uc=h&&(!Cl||po&&8<po&&11>=po),Vc=" ",Hc=!1;function Wc(e,r){switch(e){case"keyup":return Lv.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var un=!1;function Ov(e,r){switch(e){case"compositionend":return Gc(r);case"keypress":return r.which!==32?null:(Hc=!0,Vc);case"textInput":return e=r.data,e===Vc&&Hc?null:e;default:return null}}function Av(e,r){if(un)return e==="compositionend"||!Cl&&Wc(e,r)?(e=Mc(),yi=vl=mr=null,un=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Uc&&r.locale!=="ko"?null:r.data;default:return null}}var Mv={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 Jc(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!Mv[e.type]:r==="textarea"}function Kc(e,r,n,s){hc(s),r=bi(r,"onChange"),0<r.length&&(n=new yl("onChange","change",null,n,s),e.push({event:n,listeners:r}))}var ho=null,mo=null;function Dv(e){fd(e,0)}function ki(e){var r=hn(e);if(At(r))return e}function zv(e,r){if(e==="change")return r}var Qc=!1;if(h){var jl;if(h){var El="oninput"in document;if(!El){var qc=document.createElement("div");qc.setAttribute("oninput","return;"),El=typeof qc.oninput=="function"}jl=El}else jl=!1;Qc=jl&&(!document.documentMode||9<document.documentMode)}function Yc(){ho&&(ho.detachEvent("onpropertychange",Xc),mo=ho=null)}function Xc(e){if(e.propertyName==="value"&&ki(mo)){var r=[];Kc(r,mo,e,ol(e)),yc(Dv,r)}}function Fv(e,r,n){e==="focusin"?(Yc(),ho=r,mo=n,ho.attachEvent("onpropertychange",Xc)):e==="focusout"&&Yc()}function Bv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ki(mo)}function Uv(e,r){if(e==="click")return ki(r)}function Vv(e,r){if(e==="input"||e==="change")return ki(r)}function Hv(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var Dt=typeof Object.is=="function"?Object.is:Hv;function go(e,r){if(Dt(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var n=Object.keys(e),s=Object.keys(r);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var a=n[s];if(!g.call(r,a)||!Dt(e[a],r[a]))return!1}return!0}function Zc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ed(e,r){var n=Zc(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=r&&s>=r)return{node:n,offset:r-e};e=s}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Zc(n)}}function td(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?td(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function rd(){for(var e=window,r=ii();r instanceof e.HTMLIFrameElement;){try{var n=typeof r.contentWindow.location.href=="string"}catch{n=!1}if(n)e=r.contentWindow;else break;r=ii(e.document)}return r}function bl(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}function Wv(e){var r=rd(),n=e.focusedElem,s=e.selectionRange;if(r!==n&&n&&n.ownerDocument&&td(n.ownerDocument.documentElement,n)){if(s!==null&&bl(n)){if(r=s.start,e=s.end,e===void 0&&(e=r),"selectionStart"in n)n.selectionStart=r,n.selectionEnd=Math.min(e,n.value.length);else if(e=(r=n.ownerDocument||document)&&r.defaultView||window,e.getSelection){e=e.getSelection();var a=n.textContent.length,c=Math.min(s.start,a);s=s.end===void 0?c:Math.min(s.end,a),!e.extend&&c>s&&(a=s,s=c,c=a),a=ed(n,c);var m=ed(n,s);a&&m&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==m.node||e.focusOffset!==m.offset)&&(r=r.createRange(),r.setStart(a.node,a.offset),e.removeAllRanges(),c>s?(e.addRange(r),e.extend(m.node,m.offset)):(r.setEnd(m.node,m.offset),e.addRange(r)))}}for(r=[],e=n;e=e.parentNode;)e.nodeType===1&&r.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<r.length;n++)e=r[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Gv=h&&"documentMode"in document&&11>=document.documentMode,cn=null,Nl=null,vo=null,Rl=!1;function nd(e,r,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rl||cn==null||cn!==ii(s)||(s=cn,"selectionStart"in s&&bl(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),vo&&go(vo,s)||(vo=s,s=bi(Nl,"onSelect"),0<s.length&&(r=new yl("onSelect","select",null,r,n),e.push({event:r,listeners:s}),r.target=cn)))}function Ci(e,r){var n={};return n[e.toLowerCase()]=r.toLowerCase(),n["Webkit"+e]="webkit"+r,n["Moz"+e]="moz"+r,n}var dn={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionend:Ci("Transition","TransitionEnd")},$l={},od={};h&&(od=document.createElement("div").style,"AnimationEvent"in window||(delete dn.animationend.animation,delete dn.animationiteration.animation,delete dn.animationstart.animation),"TransitionEvent"in window||delete dn.transitionend.transition);function ji(e){if($l[e])return $l[e];if(!dn[e])return e;var r=dn[e],n;for(n in r)if(r.hasOwnProperty(n)&&n in od)return $l[e]=r[n];return e}var id=ji("animationend"),sd=ji("animationiteration"),ld=ji("animationstart"),ad=ji("transitionend"),ud=new Map,cd="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 gr(e,r){ud.set(e,r),f(r,[e])}for(var Tl=0;Tl<cd.length;Tl++){var Pl=cd[Tl],Jv=Pl.toLowerCase(),Kv=Pl[0].toUpperCase()+Pl.slice(1);gr(Jv,"on"+Kv)}gr(id,"onAnimationEnd"),gr(sd,"onAnimationIteration"),gr(ld,"onAnimationStart"),gr("dblclick","onDoubleClick"),gr("focusin","onFocus"),gr("focusout","onBlur"),gr(ad,"onTransitionEnd"),p("onMouseEnter",["mouseout","mouseover"]),p("onMouseLeave",["mouseout","mouseover"]),p("onPointerEnter",["pointerout","pointerover"]),p("onPointerLeave",["pointerout","pointerover"]),f("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),f("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),f("onBeforeInput",["compositionend","keypress","textInput","paste"]),f("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),f("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),Qv=new Set("cancel close invalid load scroll toggle".split(" ").concat(yo));function dd(e,r,n){var s=e.type||"unknown-event";e.currentTarget=n,Jg(s,r,void 0,e),e.currentTarget=null}function fd(e,r){r=(r&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],a=s.event;s=s.listeners;e:{var c=void 0;if(r)for(var m=s.length-1;0<=m;m--){var w=s[m],C=w.instance,L=w.currentTarget;if(w=w.listener,C!==c&&a.isPropagationStopped())break e;dd(a,w,L),c=C}else for(m=0;m<s.length;m++){if(w=s[m],C=w.instance,L=w.currentTarget,w=w.listener,C!==c&&a.isPropagationStopped())break e;dd(a,w,L),c=C}}}if(ai)throw e=al,ai=!1,al=null,e}function Le(e,r){var n=r[zl];n===void 0&&(n=r[zl]=new Set);var s=e+"__bubble";n.has(s)||(pd(r,e,2,!1),n.add(s))}function _l(e,r,n){var s=0;r&&(s|=4),pd(n,e,s,r)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function xo(e){if(!e[Ei]){e[Ei]=!0,l.forEach(function(n){n!=="selectionchange"&&(Qv.has(n)||_l(n,!1,e),_l(n,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[Ei]||(r[Ei]=!0,_l("selectionchange",!1,r))}}function pd(e,r,n,s){switch(Ac(r)){case 1:var a=uv;break;case 4:a=cv;break;default:a=ml}n=a.bind(null,r,n,e),a=void 0,!ll||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(a=!0),s?a!==void 0?e.addEventListener(r,n,{capture:!0,passive:a}):e.addEventListener(r,n,!0):a!==void 0?e.addEventListener(r,n,{passive:a}):e.addEventListener(r,n,!1)}function Ll(e,r,n,s,a){var c=s;if((r&1)===0&&(r&2)===0&&s!==null)e:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var w=s.stateNode.containerInfo;if(w===a||w.nodeType===8&&w.parentNode===a)break;if(m===4)for(m=s.return;m!==null;){var C=m.tag;if((C===3||C===4)&&(C=m.stateNode.containerInfo,C===a||C.nodeType===8&&C.parentNode===a))return;m=m.return}for(;w!==null;){if(m=Dr(w),m===null)return;if(C=m.tag,C===5||C===6){s=c=m;continue e}w=w.parentNode}}s=s.return}yc(function(){var L=c,B=ol(n),V=[];e:{var F=ud.get(e);if(F!==void 0){var X=yl,te=e;switch(e){case"keypress":if(xi(n)===0)break e;case"keydown":case"keyup":X=Ev;break;case"focusin":te="focus",X=Sl;break;case"focusout":te="blur",X=Sl;break;case"beforeblur":case"afterblur":X=Sl;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":X=zc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=pv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=Rv;break;case id:case sd:case ld:X=gv;break;case ad:X=Tv;break;case"scroll":X=dv;break;case"wheel":X=_v;break;case"copy":case"cut":case"paste":X=yv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=Bc}var re=(r&4)!==0,Ue=!re&&e==="scroll",P=re?F!==null?F+"Capture":null:F;re=[];for(var b=L,_;b!==null;){_=b;var W=_.stateNode;if(_.tag===5&&W!==null&&(_=W,P!==null&&(W=eo(b,P),W!=null&&re.push(wo(b,W,_)))),Ue)break;b=b.return}0<re.length&&(F=new X(F,te,null,n,B),V.push({event:F,listeners:re}))}}if((r&7)===0){e:{if(F=e==="mouseover"||e==="pointerover",X=e==="mouseout"||e==="pointerout",F&&n!==nl&&(te=n.relatedTarget||n.fromElement)&&(Dr(te)||te[rr]))break e;if((X||F)&&(F=B.window===B?B:(F=B.ownerDocument)?F.defaultView||F.parentWindow:window,X?(te=n.relatedTarget||n.toElement,X=L,te=te?Dr(te):null,te!==null&&(Ue=Mr(te),te!==Ue||te.tag!==5&&te.tag!==6)&&(te=null)):(X=null,te=L),X!==te)){if(re=zc,W="onMouseLeave",P="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(re=Bc,W="onPointerLeave",P="onPointerEnter",b="pointer"),Ue=X==null?F:hn(X),_=te==null?F:hn(te),F=new re(W,b+"leave",X,n,B),F.target=Ue,F.relatedTarget=_,W=null,Dr(B)===L&&(re=new re(P,b+"enter",te,n,B),re.target=_,re.relatedTarget=Ue,W=re),Ue=W,X&&te)t:{for(re=X,P=te,b=0,_=re;_;_=fn(_))b++;for(_=0,W=P;W;W=fn(W))_++;for(;0<b-_;)re=fn(re),b--;for(;0<_-b;)P=fn(P),_--;for(;b--;){if(re===P||P!==null&&re===P.alternate)break t;re=fn(re),P=fn(P)}re=null}else re=null;X!==null&&hd(V,F,X,re,!1),te!==null&&Ue!==null&&hd(V,Ue,te,re,!0)}}e:{if(F=L?hn(L):window,X=F.nodeName&&F.nodeName.toLowerCase(),X==="select"||X==="input"&&F.type==="file")var oe=zv;else if(Jc(F))if(Qc)oe=Vv;else{oe=Bv;var le=Fv}else(X=F.nodeName)&&X.toLowerCase()==="input"&&(F.type==="checkbox"||F.type==="radio")&&(oe=Uv);if(oe&&(oe=oe(e,L))){Kc(V,oe,n,B);break e}le&&le(e,F,L),e==="focusout"&&(le=F._wrapperState)&&le.controlled&&F.type==="number"&&Xs(F,"number",F.value)}switch(le=L?hn(L):window,e){case"focusin":(Jc(le)||le.contentEditable==="true")&&(cn=le,Nl=L,vo=null);break;case"focusout":vo=Nl=cn=null;break;case"mousedown":Rl=!0;break;case"contextmenu":case"mouseup":case"dragend":Rl=!1,nd(V,n,B);break;case"selectionchange":if(Gv)break;case"keydown":case"keyup":nd(V,n,B)}var ae;if(Cl)e:{switch(e){case"compositionstart":var fe="onCompositionStart";break e;case"compositionend":fe="onCompositionEnd";break e;case"compositionupdate":fe="onCompositionUpdate";break e}fe=void 0}else un?Wc(e,n)&&(fe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(fe="onCompositionStart");fe&&(Uc&&n.locale!=="ko"&&(un||fe!=="onCompositionStart"?fe==="onCompositionEnd"&&un&&(ae=Mc()):(mr=B,vl="value"in mr?mr.value:mr.textContent,un=!0)),le=bi(L,fe),0<le.length&&(fe=new Fc(fe,e,null,n,B),V.push({event:fe,listeners:le}),ae?fe.data=ae:(ae=Gc(n),ae!==null&&(fe.data=ae)))),(ae=Iv?Ov(e,n):Av(e,n))&&(L=bi(L,"onBeforeInput"),0<L.length&&(B=new Fc("onBeforeInput","beforeinput",null,n,B),V.push({event:B,listeners:L}),B.data=ae))}fd(V,r)})}function wo(e,r,n){return{instance:e,listener:r,currentTarget:n}}function bi(e,r){for(var n=r+"Capture",s=[];e!==null;){var a=e,c=a.stateNode;a.tag===5&&c!==null&&(a=c,c=eo(e,n),c!=null&&s.unshift(wo(e,c,a)),c=eo(e,r),c!=null&&s.push(wo(e,c,a))),e=e.return}return s}function fn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function hd(e,r,n,s,a){for(var c=r._reactName,m=[];n!==null&&n!==s;){var w=n,C=w.alternate,L=w.stateNode;if(C!==null&&C===s)break;w.tag===5&&L!==null&&(w=L,a?(C=eo(n,c),C!=null&&m.unshift(wo(n,C,w))):a||(C=eo(n,c),C!=null&&m.push(wo(n,C,w)))),n=n.return}m.length!==0&&e.push({event:r,listeners:m})}var qv=/\r\n?/g,Yv=/\u0000|\uFFFD/g;function md(e){return(typeof e=="string"?e:""+e).replace(qv,`
30
- `).replace(Yv,"")}function Ni(e,r,n){if(r=md(r),md(e)!==r&&n)throw Error(i(425))}function Ri(){}var Il=null,Ol=null;function Al(e,r){return e==="textarea"||e==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Ml=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,gd=typeof Promise=="function"?Promise:void 0,Zv=typeof queueMicrotask=="function"?queueMicrotask:typeof gd<"u"?function(e){return gd.resolve(null).then(e).catch(ey)}:Ml;function ey(e){setTimeout(function(){throw e})}function Dl(e,r){var n=r,s=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(s===0){e.removeChild(a),uo(r);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=a}while(n);uo(r)}function vr(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?")break;if(r==="/$")return null}}return e}function vd(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(r===0)return e;r--}else n==="/$"&&r++}e=e.previousSibling}return null}var pn=Math.random().toString(36).slice(2),Kt="__reactFiber$"+pn,So="__reactProps$"+pn,rr="__reactContainer$"+pn,zl="__reactEvents$"+pn,ty="__reactListeners$"+pn,ry="__reactHandles$"+pn;function Dr(e){var r=e[Kt];if(r)return r;for(var n=e.parentNode;n;){if(r=n[rr]||n[Kt]){if(n=r.alternate,r.child!==null||n!==null&&n.child!==null)for(e=vd(e);e!==null;){if(n=e[Kt])return n;e=vd(e)}return r}e=n,n=e.parentNode}return null}function ko(e){return e=e[Kt]||e[rr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function hn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function $i(e){return e[So]||null}var Fl=[],mn=-1;function yr(e){return{current:e}}function Ie(e){0>mn||(e.current=Fl[mn],Fl[mn]=null,mn--)}function Pe(e,r){mn++,Fl[mn]=e.current,e.current=r}var xr={},rt=yr(xr),dt=yr(!1),zr=xr;function gn(e,r){var n=e.type.contextTypes;if(!n)return xr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===r)return s.__reactInternalMemoizedMaskedChildContext;var a={},c;for(c in n)a[c]=r[c];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=r,e.__reactInternalMemoizedMaskedChildContext=a),a}function ft(e){return e=e.childContextTypes,e!=null}function Ti(){Ie(dt),Ie(rt)}function yd(e,r,n){if(rt.current!==xr)throw Error(i(168));Pe(rt,r),Pe(dt,n)}function xd(e,r,n){var s=e.stateNode;if(r=r.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var a in s)if(!(a in r))throw Error(i(108,se(e)||"Unknown",a));return q({},n,s)}function Pi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||xr,zr=rt.current,Pe(rt,e),Pe(dt,dt.current),!0}function wd(e,r,n){var s=e.stateNode;if(!s)throw Error(i(169));n?(e=xd(e,r,zr),s.__reactInternalMemoizedMergedChildContext=e,Ie(dt),Ie(rt),Pe(rt,e)):Ie(dt),Pe(dt,n)}var nr=null,_i=!1,Bl=!1;function Sd(e){nr===null?nr=[e]:nr.push(e)}function ny(e){_i=!0,Sd(e)}function wr(){if(!Bl&&nr!==null){Bl=!0;var e=0,r=$e;try{var n=nr;for($e=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}nr=null,_i=!1}catch(a){throw nr!==null&&(nr=nr.slice(e+1)),Cc(ul,wr),a}finally{$e=r,Bl=!1}}return null}var vn=[],yn=0,Li=null,Ii=0,bt=[],Nt=0,Fr=null,or=1,ir="";function Br(e,r){vn[yn++]=Ii,vn[yn++]=Li,Li=e,Ii=r}function kd(e,r,n){bt[Nt++]=or,bt[Nt++]=ir,bt[Nt++]=Fr,Fr=e;var s=or;e=ir;var a=32-Mt(s)-1;s&=~(1<<a),n+=1;var c=32-Mt(r)+a;if(30<c){var m=a-a%5;c=(s&(1<<m)-1).toString(32),s>>=m,a-=m,or=1<<32-Mt(r)+a|n<<a|s,ir=c+e}else or=1<<c|n<<a|s,ir=e}function Ul(e){e.return!==null&&(Br(e,1),kd(e,1,0))}function Vl(e){for(;e===Li;)Li=vn[--yn],vn[yn]=null,Ii=vn[--yn],vn[yn]=null;for(;e===Fr;)Fr=bt[--Nt],bt[Nt]=null,ir=bt[--Nt],bt[Nt]=null,or=bt[--Nt],bt[Nt]=null}var wt=null,St=null,Ae=!1,zt=null;function Cd(e,r){var n=Pt(5,null,null,0);n.elementType="DELETED",n.stateNode=r,n.return=e,r=e.deletions,r===null?(e.deletions=[n],e.flags|=16):r.push(n)}function jd(e,r){switch(e.tag){case 5:var n=e.type;return r=r.nodeType!==1||n.toLowerCase()!==r.nodeName.toLowerCase()?null:r,r!==null?(e.stateNode=r,wt=e,St=vr(r.firstChild),!0):!1;case 6:return r=e.pendingProps===""||r.nodeType!==3?null:r,r!==null?(e.stateNode=r,wt=e,St=null,!0):!1;case 13:return r=r.nodeType!==8?null:r,r!==null?(n=Fr!==null?{id:or,overflow:ir}:null,e.memoizedState={dehydrated:r,treeContext:n,retryLane:1073741824},n=Pt(18,null,null,0),n.stateNode=r,n.return=e,e.child=n,wt=e,St=null,!0):!1;default:return!1}}function Hl(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Wl(e){if(Ae){var r=St;if(r){var n=r;if(!jd(e,r)){if(Hl(e))throw Error(i(418));r=vr(n.nextSibling);var s=wt;r&&jd(e,r)?Cd(s,n):(e.flags=e.flags&-4097|2,Ae=!1,wt=e)}}else{if(Hl(e))throw Error(i(418));e.flags=e.flags&-4097|2,Ae=!1,wt=e}}}function Ed(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;wt=e}function Oi(e){if(e!==wt)return!1;if(!Ae)return Ed(e),Ae=!0,!1;var r;if((r=e.tag!==3)&&!(r=e.tag!==5)&&(r=e.type,r=r!=="head"&&r!=="body"&&!Al(e.type,e.memoizedProps)),r&&(r=St)){if(Hl(e))throw bd(),Error(i(418));for(;r;)Cd(e,r),r=vr(r.nextSibling)}if(Ed(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(r===0){St=vr(e.nextSibling);break e}r--}else n!=="$"&&n!=="$!"&&n!=="$?"||r++}e=e.nextSibling}St=null}}else St=wt?vr(e.stateNode.nextSibling):null;return!0}function bd(){for(var e=St;e;)e=vr(e.nextSibling)}function xn(){St=wt=null,Ae=!1}function Gl(e){zt===null?zt=[e]:zt.push(e)}var oy=U.ReactCurrentBatchConfig;function Co(e,r,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(i(309));var s=n.stateNode}if(!s)throw Error(i(147,e));var a=s,c=""+e;return r!==null&&r.ref!==null&&typeof r.ref=="function"&&r.ref._stringRef===c?r.ref:(r=function(m){var w=a.refs;m===null?delete w[c]:w[c]=m},r._stringRef=c,r)}if(typeof e!="string")throw Error(i(284));if(!n._owner)throw Error(i(290,e))}return e}function Ai(e,r){throw e=Object.prototype.toString.call(r),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}function Nd(e){var r=e._init;return r(e._payload)}function Rd(e){function r(P,b){if(e){var _=P.deletions;_===null?(P.deletions=[b],P.flags|=16):_.push(b)}}function n(P,b){if(!e)return null;for(;b!==null;)r(P,b),b=b.sibling;return null}function s(P,b){for(P=new Map;b!==null;)b.key!==null?P.set(b.key,b):P.set(b.index,b),b=b.sibling;return P}function a(P,b){return P=Rr(P,b),P.index=0,P.sibling=null,P}function c(P,b,_){return P.index=_,e?(_=P.alternate,_!==null?(_=_.index,_<b?(P.flags|=2,b):_):(P.flags|=2,b)):(P.flags|=1048576,b)}function m(P){return e&&P.alternate===null&&(P.flags|=2),P}function w(P,b,_,W){return b===null||b.tag!==6?(b=Ma(_,P.mode,W),b.return=P,b):(b=a(b,_),b.return=P,b)}function C(P,b,_,W){var oe=_.type;return oe===K?B(P,b,_.props.children,W,_.key):b!==null&&(b.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&Nd(oe)===b.type)?(W=a(b,_.props),W.ref=Co(P,b,_),W.return=P,W):(W=ss(_.type,_.key,_.props,null,P.mode,W),W.ref=Co(P,b,_),W.return=P,W)}function L(P,b,_,W){return b===null||b.tag!==4||b.stateNode.containerInfo!==_.containerInfo||b.stateNode.implementation!==_.implementation?(b=Da(_,P.mode,W),b.return=P,b):(b=a(b,_.children||[]),b.return=P,b)}function B(P,b,_,W,oe){return b===null||b.tag!==7?(b=Qr(_,P.mode,W,oe),b.return=P,b):(b=a(b,_),b.return=P,b)}function V(P,b,_){if(typeof b=="string"&&b!==""||typeof b=="number")return b=Ma(""+b,P.mode,_),b.return=P,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case J:return _=ss(b.type,b.key,b.props,null,P.mode,_),_.ref=Co(P,null,b),_.return=P,_;case H:return b=Da(b,P.mode,_),b.return=P,b;case xe:var W=b._init;return V(P,W(b._payload),_)}if(Yn(b)||ee(b))return b=Qr(b,P.mode,_,null),b.return=P,b;Ai(P,b)}return null}function F(P,b,_,W){var oe=b!==null?b.key:null;if(typeof _=="string"&&_!==""||typeof _=="number")return oe!==null?null:w(P,b,""+_,W);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case J:return _.key===oe?C(P,b,_,W):null;case H:return _.key===oe?L(P,b,_,W):null;case xe:return oe=_._init,F(P,b,oe(_._payload),W)}if(Yn(_)||ee(_))return oe!==null?null:B(P,b,_,W,null);Ai(P,_)}return null}function X(P,b,_,W,oe){if(typeof W=="string"&&W!==""||typeof W=="number")return P=P.get(_)||null,w(b,P,""+W,oe);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case J:return P=P.get(W.key===null?_:W.key)||null,C(b,P,W,oe);case H:return P=P.get(W.key===null?_:W.key)||null,L(b,P,W,oe);case xe:var le=W._init;return X(P,b,_,le(W._payload),oe)}if(Yn(W)||ee(W))return P=P.get(_)||null,B(b,P,W,oe,null);Ai(b,W)}return null}function te(P,b,_,W){for(var oe=null,le=null,ae=b,fe=b=0,qe=null;ae!==null&&fe<_.length;fe++){ae.index>fe?(qe=ae,ae=null):qe=ae.sibling;var be=F(P,ae,_[fe],W);if(be===null){ae===null&&(ae=qe);break}e&&ae&&be.alternate===null&&r(P,ae),b=c(be,b,fe),le===null?oe=be:le.sibling=be,le=be,ae=qe}if(fe===_.length)return n(P,ae),Ae&&Br(P,fe),oe;if(ae===null){for(;fe<_.length;fe++)ae=V(P,_[fe],W),ae!==null&&(b=c(ae,b,fe),le===null?oe=ae:le.sibling=ae,le=ae);return Ae&&Br(P,fe),oe}for(ae=s(P,ae);fe<_.length;fe++)qe=X(ae,P,fe,_[fe],W),qe!==null&&(e&&qe.alternate!==null&&ae.delete(qe.key===null?fe:qe.key),b=c(qe,b,fe),le===null?oe=qe:le.sibling=qe,le=qe);return e&&ae.forEach(function($r){return r(P,$r)}),Ae&&Br(P,fe),oe}function re(P,b,_,W){var oe=ee(_);if(typeof oe!="function")throw Error(i(150));if(_=oe.call(_),_==null)throw Error(i(151));for(var le=oe=null,ae=b,fe=b=0,qe=null,be=_.next();ae!==null&&!be.done;fe++,be=_.next()){ae.index>fe?(qe=ae,ae=null):qe=ae.sibling;var $r=F(P,ae,be.value,W);if($r===null){ae===null&&(ae=qe);break}e&&ae&&$r.alternate===null&&r(P,ae),b=c($r,b,fe),le===null?oe=$r:le.sibling=$r,le=$r,ae=qe}if(be.done)return n(P,ae),Ae&&Br(P,fe),oe;if(ae===null){for(;!be.done;fe++,be=_.next())be=V(P,be.value,W),be!==null&&(b=c(be,b,fe),le===null?oe=be:le.sibling=be,le=be);return Ae&&Br(P,fe),oe}for(ae=s(P,ae);!be.done;fe++,be=_.next())be=X(ae,P,fe,be.value,W),be!==null&&(e&&be.alternate!==null&&ae.delete(be.key===null?fe:be.key),b=c(be,b,fe),le===null?oe=be:le.sibling=be,le=be);return e&&ae.forEach(function(My){return r(P,My)}),Ae&&Br(P,fe),oe}function Ue(P,b,_,W){if(typeof _=="object"&&_!==null&&_.type===K&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case J:e:{for(var oe=_.key,le=b;le!==null;){if(le.key===oe){if(oe=_.type,oe===K){if(le.tag===7){n(P,le.sibling),b=a(le,_.props.children),b.return=P,P=b;break e}}else if(le.elementType===oe||typeof oe=="object"&&oe!==null&&oe.$$typeof===xe&&Nd(oe)===le.type){n(P,le.sibling),b=a(le,_.props),b.ref=Co(P,le,_),b.return=P,P=b;break e}n(P,le);break}else r(P,le);le=le.sibling}_.type===K?(b=Qr(_.props.children,P.mode,W,_.key),b.return=P,P=b):(W=ss(_.type,_.key,_.props,null,P.mode,W),W.ref=Co(P,b,_),W.return=P,P=W)}return m(P);case H:e:{for(le=_.key;b!==null;){if(b.key===le)if(b.tag===4&&b.stateNode.containerInfo===_.containerInfo&&b.stateNode.implementation===_.implementation){n(P,b.sibling),b=a(b,_.children||[]),b.return=P,P=b;break e}else{n(P,b);break}else r(P,b);b=b.sibling}b=Da(_,P.mode,W),b.return=P,P=b}return m(P);case xe:return le=_._init,Ue(P,b,le(_._payload),W)}if(Yn(_))return te(P,b,_,W);if(ee(_))return re(P,b,_,W);Ai(P,_)}return typeof _=="string"&&_!==""||typeof _=="number"?(_=""+_,b!==null&&b.tag===6?(n(P,b.sibling),b=a(b,_),b.return=P,P=b):(n(P,b),b=Ma(_,P.mode,W),b.return=P,P=b),m(P)):n(P,b)}return Ue}var wn=Rd(!0),$d=Rd(!1),Mi=yr(null),Di=null,Sn=null,Jl=null;function Kl(){Jl=Sn=Di=null}function Ql(e){var r=Mi.current;Ie(Mi),e._currentValue=r}function ql(e,r,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,s!==null&&(s.childLanes|=r)):s!==null&&(s.childLanes&r)!==r&&(s.childLanes|=r),e===n)break;e=e.return}}function kn(e,r){Di=e,Jl=Sn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&r)!==0&&(pt=!0),e.firstContext=null)}function Rt(e){var r=e._currentValue;if(Jl!==e)if(e={context:e,memoizedValue:r,next:null},Sn===null){if(Di===null)throw Error(i(308));Sn=e,Di.dependencies={lanes:0,firstContext:e}}else Sn=Sn.next=e;return r}var Ur=null;function Yl(e){Ur===null?Ur=[e]:Ur.push(e)}function Td(e,r,n,s){var a=r.interleaved;return a===null?(n.next=n,Yl(r)):(n.next=a.next,a.next=n),r.interleaved=n,sr(e,s)}function sr(e,r){e.lanes|=r;var n=e.alternate;for(n!==null&&(n.lanes|=r),n=e,e=e.return;e!==null;)e.childLanes|=r,n=e.alternate,n!==null&&(n.childLanes|=r),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Sr=!1;function Xl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pd(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function lr(e,r){return{eventTime:e,lane:r,tag:0,payload:null,callback:null,next:null}}function kr(e,r,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Ce&2)!==0){var a=s.pending;return a===null?r.next=r:(r.next=a.next,a.next=r),s.pending=r,sr(e,n)}return a=s.interleaved,a===null?(r.next=r,Yl(s)):(r.next=a.next,a.next=r),s.interleaved=r,sr(e,n)}function zi(e,r,n){if(r=r.updateQueue,r!==null&&(r=r.shared,(n&4194240)!==0)){var s=r.lanes;s&=e.pendingLanes,n|=s,r.lanes=n,fl(e,n)}}function _d(e,r){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var a=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};c===null?a=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?a=c=r:c=c.next=r}else a=c=r;n={baseState:s.baseState,firstBaseUpdate:a,lastBaseUpdate:c,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=r:e.next=r,n.lastBaseUpdate=r}function Fi(e,r,n,s){var a=e.updateQueue;Sr=!1;var c=a.firstBaseUpdate,m=a.lastBaseUpdate,w=a.shared.pending;if(w!==null){a.shared.pending=null;var C=w,L=C.next;C.next=null,m===null?c=L:m.next=L,m=C;var B=e.alternate;B!==null&&(B=B.updateQueue,w=B.lastBaseUpdate,w!==m&&(w===null?B.firstBaseUpdate=L:w.next=L,B.lastBaseUpdate=C))}if(c!==null){var V=a.baseState;m=0,B=L=C=null,w=c;do{var F=w.lane,X=w.eventTime;if((s&F)===F){B!==null&&(B=B.next={eventTime:X,lane:0,tag:w.tag,payload:w.payload,callback:w.callback,next:null});e:{var te=e,re=w;switch(F=r,X=n,re.tag){case 1:if(te=re.payload,typeof te=="function"){V=te.call(X,V,F);break e}V=te;break e;case 3:te.flags=te.flags&-65537|128;case 0:if(te=re.payload,F=typeof te=="function"?te.call(X,V,F):te,F==null)break e;V=q({},V,F);break e;case 2:Sr=!0}}w.callback!==null&&w.lane!==0&&(e.flags|=64,F=a.effects,F===null?a.effects=[w]:F.push(w))}else X={eventTime:X,lane:F,tag:w.tag,payload:w.payload,callback:w.callback,next:null},B===null?(L=B=X,C=V):B=B.next=X,m|=F;if(w=w.next,w===null){if(w=a.shared.pending,w===null)break;F=w,w=F.next,F.next=null,a.lastBaseUpdate=F,a.shared.pending=null}}while(!0);if(B===null&&(C=V),a.baseState=C,a.firstBaseUpdate=L,a.lastBaseUpdate=B,r=a.shared.interleaved,r!==null){a=r;do m|=a.lane,a=a.next;while(a!==r)}else c===null&&(a.shared.lanes=0);Wr|=m,e.lanes=m,e.memoizedState=V}}function Ld(e,r,n){if(e=r.effects,r.effects=null,e!==null)for(r=0;r<e.length;r++){var s=e[r],a=s.callback;if(a!==null){if(s.callback=null,s=n,typeof a!="function")throw Error(i(191,a));a.call(s)}}}var jo={},Qt=yr(jo),Eo=yr(jo),bo=yr(jo);function Vr(e){if(e===jo)throw Error(i(174));return e}function Zl(e,r){switch(Pe(bo,r),Pe(Eo,e),Pe(Qt,jo),e=r.nodeType,e){case 9:case 11:r=(r=r.documentElement)?r.namespaceURI:el(null,"");break;default:e=e===8?r.parentNode:r,r=e.namespaceURI||null,e=e.tagName,r=el(r,e)}Ie(Qt),Pe(Qt,r)}function Cn(){Ie(Qt),Ie(Eo),Ie(bo)}function Id(e){Vr(bo.current);var r=Vr(Qt.current),n=el(r,e.type);r!==n&&(Pe(Eo,e),Pe(Qt,n))}function ea(e){Eo.current===e&&(Ie(Qt),Ie(Eo))}var De=yr(0);function Bi(e){for(var r=e;r!==null;){if(r.tag===13){var n=r.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var ta=[];function ra(){for(var e=0;e<ta.length;e++)ta[e]._workInProgressVersionPrimary=null;ta.length=0}var Ui=U.ReactCurrentDispatcher,na=U.ReactCurrentBatchConfig,Hr=0,ze=null,Ge=null,Ke=null,Vi=!1,No=!1,Ro=0,iy=0;function nt(){throw Error(i(321))}function oa(e,r){if(r===null)return!1;for(var n=0;n<r.length&&n<e.length;n++)if(!Dt(e[n],r[n]))return!1;return!0}function ia(e,r,n,s,a,c){if(Hr=c,ze=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,Ui.current=e===null||e.memoizedState===null?uy:cy,e=n(s,a),No){c=0;do{if(No=!1,Ro=0,25<=c)throw Error(i(301));c+=1,Ke=Ge=null,r.updateQueue=null,Ui.current=dy,e=n(s,a)}while(No)}if(Ui.current=Gi,r=Ge!==null&&Ge.next!==null,Hr=0,Ke=Ge=ze=null,Vi=!1,r)throw Error(i(300));return e}function sa(){var e=Ro!==0;return Ro=0,e}function qt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?ze.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function $t(){if(Ge===null){var e=ze.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var r=Ke===null?ze.memoizedState:Ke.next;if(r!==null)Ke=r,Ge=e;else{if(e===null)throw Error(i(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Ke===null?ze.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function $o(e,r){return typeof r=="function"?r(e):r}function la(e){var r=$t(),n=r.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=Ge,a=s.baseQueue,c=n.pending;if(c!==null){if(a!==null){var m=a.next;a.next=c.next,c.next=m}s.baseQueue=a=c,n.pending=null}if(a!==null){c=a.next,s=s.baseState;var w=m=null,C=null,L=c;do{var B=L.lane;if((Hr&B)===B)C!==null&&(C=C.next={lane:0,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null}),s=L.hasEagerState?L.eagerState:e(s,L.action);else{var V={lane:B,action:L.action,hasEagerState:L.hasEagerState,eagerState:L.eagerState,next:null};C===null?(w=C=V,m=s):C=C.next=V,ze.lanes|=B,Wr|=B}L=L.next}while(L!==null&&L!==c);C===null?m=s:C.next=w,Dt(s,r.memoizedState)||(pt=!0),r.memoizedState=s,r.baseState=m,r.baseQueue=C,n.lastRenderedState=s}if(e=n.interleaved,e!==null){a=e;do c=a.lane,ze.lanes|=c,Wr|=c,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[r.memoizedState,n.dispatch]}function aa(e){var r=$t(),n=r.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var s=n.dispatch,a=n.pending,c=r.memoizedState;if(a!==null){n.pending=null;var m=a=a.next;do c=e(c,m.action),m=m.next;while(m!==a);Dt(c,r.memoizedState)||(pt=!0),r.memoizedState=c,r.baseQueue===null&&(r.baseState=c),n.lastRenderedState=c}return[c,s]}function Od(){}function Ad(e,r){var n=ze,s=$t(),a=r(),c=!Dt(s.memoizedState,a);if(c&&(s.memoizedState=a,pt=!0),s=s.queue,ua(zd.bind(null,n,s,e),[e]),s.getSnapshot!==r||c||Ke!==null&&Ke.memoizedState.tag&1){if(n.flags|=2048,To(9,Dd.bind(null,n,s,a,r),void 0,null),Qe===null)throw Error(i(349));(Hr&30)!==0||Md(n,r,a)}return a}function Md(e,r,n){e.flags|=16384,e={getSnapshot:r,value:n},r=ze.updateQueue,r===null?(r={lastEffect:null,stores:null},ze.updateQueue=r,r.stores=[e]):(n=r.stores,n===null?r.stores=[e]:n.push(e))}function Dd(e,r,n,s){r.value=n,r.getSnapshot=s,Fd(r)&&Bd(e)}function zd(e,r,n){return n(function(){Fd(r)&&Bd(e)})}function Fd(e){var r=e.getSnapshot;e=e.value;try{var n=r();return!Dt(e,n)}catch{return!0}}function Bd(e){var r=sr(e,1);r!==null&&Vt(r,e,1,-1)}function Ud(e){var r=qt();return typeof e=="function"&&(e=e()),r.memoizedState=r.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$o,lastRenderedState:e},r.queue=e,e=e.dispatch=ay.bind(null,ze,e),[r.memoizedState,e]}function To(e,r,n,s){return e={tag:e,create:r,destroy:n,deps:s,next:null},r=ze.updateQueue,r===null?(r={lastEffect:null,stores:null},ze.updateQueue=r,r.lastEffect=e.next=e):(n=r.lastEffect,n===null?r.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,r.lastEffect=e)),e}function Vd(){return $t().memoizedState}function Hi(e,r,n,s){var a=qt();ze.flags|=e,a.memoizedState=To(1|r,n,void 0,s===void 0?null:s)}function Wi(e,r,n,s){var a=$t();s=s===void 0?null:s;var c=void 0;if(Ge!==null){var m=Ge.memoizedState;if(c=m.destroy,s!==null&&oa(s,m.deps)){a.memoizedState=To(r,n,c,s);return}}ze.flags|=e,a.memoizedState=To(1|r,n,c,s)}function Hd(e,r){return Hi(8390656,8,e,r)}function ua(e,r){return Wi(2048,8,e,r)}function Wd(e,r){return Wi(4,2,e,r)}function Gd(e,r){return Wi(4,4,e,r)}function Jd(e,r){if(typeof r=="function")return e=e(),r(e),function(){r(null)};if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function Kd(e,r,n){return n=n!=null?n.concat([e]):null,Wi(4,4,Jd.bind(null,r,e),n)}function ca(){}function Qd(e,r){var n=$t();r=r===void 0?null:r;var s=n.memoizedState;return s!==null&&r!==null&&oa(r,s[1])?s[0]:(n.memoizedState=[e,r],e)}function qd(e,r){var n=$t();r=r===void 0?null:r;var s=n.memoizedState;return s!==null&&r!==null&&oa(r,s[1])?s[0]:(e=e(),n.memoizedState=[e,r],e)}function Yd(e,r,n){return(Hr&21)===0?(e.baseState&&(e.baseState=!1,pt=!0),e.memoizedState=n):(Dt(n,r)||(n=Nc(),ze.lanes|=n,Wr|=n,e.baseState=!0),r)}function sy(e,r){var n=$e;$e=n!==0&&4>n?n:4,e(!0);var s=na.transition;na.transition={};try{e(!1),r()}finally{$e=n,na.transition=s}}function Xd(){return $t().memoizedState}function ly(e,r,n){var s=br(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Zd(e))ef(r,n);else if(n=Td(e,r,n,s),n!==null){var a=ut();Vt(n,e,s,a),tf(n,r,s)}}function ay(e,r,n){var s=br(e),a={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zd(e))ef(r,a);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=r.lastRenderedReducer,c!==null))try{var m=r.lastRenderedState,w=c(m,n);if(a.hasEagerState=!0,a.eagerState=w,Dt(w,m)){var C=r.interleaved;C===null?(a.next=a,Yl(r)):(a.next=C.next,C.next=a),r.interleaved=a;return}}catch{}finally{}n=Td(e,r,a,s),n!==null&&(a=ut(),Vt(n,e,s,a),tf(n,r,s))}}function Zd(e){var r=e.alternate;return e===ze||r!==null&&r===ze}function ef(e,r){No=Vi=!0;var n=e.pending;n===null?r.next=r:(r.next=n.next,n.next=r),e.pending=r}function tf(e,r,n){if((n&4194240)!==0){var s=r.lanes;s&=e.pendingLanes,n|=s,r.lanes=n,fl(e,n)}}var Gi={readContext:Rt,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useInsertionEffect:nt,useLayoutEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useMutableSource:nt,useSyncExternalStore:nt,useId:nt,unstable_isNewReconciler:!1},uy={readContext:Rt,useCallback:function(e,r){return qt().memoizedState=[e,r===void 0?null:r],e},useContext:Rt,useEffect:Hd,useImperativeHandle:function(e,r,n){return n=n!=null?n.concat([e]):null,Hi(4194308,4,Jd.bind(null,r,e),n)},useLayoutEffect:function(e,r){return Hi(4194308,4,e,r)},useInsertionEffect:function(e,r){return Hi(4,2,e,r)},useMemo:function(e,r){var n=qt();return r=r===void 0?null:r,e=e(),n.memoizedState=[e,r],e},useReducer:function(e,r,n){var s=qt();return r=n!==void 0?n(r):r,s.memoizedState=s.baseState=r,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},s.queue=e,e=e.dispatch=ly.bind(null,ze,e),[s.memoizedState,e]},useRef:function(e){var r=qt();return e={current:e},r.memoizedState=e},useState:Ud,useDebugValue:ca,useDeferredValue:function(e){return qt().memoizedState=e},useTransition:function(){var e=Ud(!1),r=e[0];return e=sy.bind(null,e[1]),qt().memoizedState=e,[r,e]},useMutableSource:function(){},useSyncExternalStore:function(e,r,n){var s=ze,a=qt();if(Ae){if(n===void 0)throw Error(i(407));n=n()}else{if(n=r(),Qe===null)throw Error(i(349));(Hr&30)!==0||Md(s,r,n)}a.memoizedState=n;var c={value:n,getSnapshot:r};return a.queue=c,Hd(zd.bind(null,s,c,e),[e]),s.flags|=2048,To(9,Dd.bind(null,s,c,n,r),void 0,null),n},useId:function(){var e=qt(),r=Qe.identifierPrefix;if(Ae){var n=ir,s=or;n=(s&~(1<<32-Mt(s)-1)).toString(32)+n,r=":"+r+"R"+n,n=Ro++,0<n&&(r+="H"+n.toString(32)),r+=":"}else n=iy++,r=":"+r+"r"+n.toString(32)+":";return e.memoizedState=r},unstable_isNewReconciler:!1},cy={readContext:Rt,useCallback:Qd,useContext:Rt,useEffect:ua,useImperativeHandle:Kd,useInsertionEffect:Wd,useLayoutEffect:Gd,useMemo:qd,useReducer:la,useRef:Vd,useState:function(){return la($o)},useDebugValue:ca,useDeferredValue:function(e){var r=$t();return Yd(r,Ge.memoizedState,e)},useTransition:function(){var e=la($o)[0],r=$t().memoizedState;return[e,r]},useMutableSource:Od,useSyncExternalStore:Ad,useId:Xd,unstable_isNewReconciler:!1},dy={readContext:Rt,useCallback:Qd,useContext:Rt,useEffect:ua,useImperativeHandle:Kd,useInsertionEffect:Wd,useLayoutEffect:Gd,useMemo:qd,useReducer:aa,useRef:Vd,useState:function(){return aa($o)},useDebugValue:ca,useDeferredValue:function(e){var r=$t();return Ge===null?r.memoizedState=e:Yd(r,Ge.memoizedState,e)},useTransition:function(){var e=aa($o)[0],r=$t().memoizedState;return[e,r]},useMutableSource:Od,useSyncExternalStore:Ad,useId:Xd,unstable_isNewReconciler:!1};function Ft(e,r){if(e&&e.defaultProps){r=q({},r),e=e.defaultProps;for(var n in e)r[n]===void 0&&(r[n]=e[n]);return r}return r}function da(e,r,n,s){r=e.memoizedState,n=n(s,r),n=n==null?r:q({},r,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Ji={isMounted:function(e){return(e=e._reactInternals)?Mr(e)===e:!1},enqueueSetState:function(e,r,n){e=e._reactInternals;var s=ut(),a=br(e),c=lr(s,a);c.payload=r,n!=null&&(c.callback=n),r=kr(e,c,a),r!==null&&(Vt(r,e,a,s),zi(r,e,a))},enqueueReplaceState:function(e,r,n){e=e._reactInternals;var s=ut(),a=br(e),c=lr(s,a);c.tag=1,c.payload=r,n!=null&&(c.callback=n),r=kr(e,c,a),r!==null&&(Vt(r,e,a,s),zi(r,e,a))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var n=ut(),s=br(e),a=lr(n,s);a.tag=2,r!=null&&(a.callback=r),r=kr(e,a,s),r!==null&&(Vt(r,e,s,n),zi(r,e,s))}};function rf(e,r,n,s,a,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,c,m):r.prototype&&r.prototype.isPureReactComponent?!go(n,s)||!go(a,c):!0}function nf(e,r,n){var s=!1,a=xr,c=r.contextType;return typeof c=="object"&&c!==null?c=Rt(c):(a=ft(r)?zr:rt.current,s=r.contextTypes,c=(s=s!=null)?gn(e,a):xr),r=new r(n,c),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Ji,e.stateNode=r,r._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=c),r}function of(e,r,n,s){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(n,s),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(n,s),r.state!==e&&Ji.enqueueReplaceState(r,r.state,null)}function fa(e,r,n,s){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Xl(e);var c=r.contextType;typeof c=="object"&&c!==null?a.context=Rt(c):(c=ft(r)?zr:rt.current,a.context=gn(e,c)),a.state=e.memoizedState,c=r.getDerivedStateFromProps,typeof c=="function"&&(da(e,r,c,n),a.state=e.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(r=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),r!==a.state&&Ji.enqueueReplaceState(a,a.state,null),Fi(e,n,a,s),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function jn(e,r){try{var n="",s=r;do n+=ve(s),s=s.return;while(s);var a=n}catch(c){a=`
31
- Error generating stack: `+c.message+`
32
- `+c.stack}return{value:e,source:r,stack:a,digest:null}}function pa(e,r,n){return{value:e,source:null,stack:n??null,digest:r??null}}function ha(e,r){try{console.error(r.value)}catch(n){setTimeout(function(){throw n})}}var fy=typeof WeakMap=="function"?WeakMap:Map;function sf(e,r,n){n=lr(-1,n),n.tag=3,n.payload={element:null};var s=r.value;return n.callback=function(){es||(es=!0,$a=s),ha(e,r)},n}function lf(e,r,n){n=lr(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var a=r.value;n.payload=function(){return s(a)},n.callback=function(){ha(e,r)}}var c=e.stateNode;return c!==null&&typeof c.componentDidCatch=="function"&&(n.callback=function(){ha(e,r),typeof s!="function"&&(jr===null?jr=new Set([this]):jr.add(this));var m=r.stack;this.componentDidCatch(r.value,{componentStack:m!==null?m:""})}),n}function af(e,r,n){var s=e.pingCache;if(s===null){s=e.pingCache=new fy;var a=new Set;s.set(r,a)}else a=s.get(r),a===void 0&&(a=new Set,s.set(r,a));a.has(n)||(a.add(n),e=by.bind(null,e,r,n),r.then(e,e))}function uf(e){do{var r;if((r=e.tag===13)&&(r=e.memoizedState,r=r!==null?r.dehydrated!==null:!0),r)return e;e=e.return}while(e!==null);return null}function cf(e,r,n,s,a){return(e.mode&1)===0?(e===r?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(r=lr(-1,1),r.tag=2,kr(n,r,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var py=U.ReactCurrentOwner,pt=!1;function at(e,r,n,s){r.child=e===null?$d(r,null,n,s):wn(r,e.child,n,s)}function df(e,r,n,s,a){n=n.render;var c=r.ref;return kn(r,a),s=ia(e,r,n,s,c,a),n=sa(),e!==null&&!pt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~a,ar(e,r,a)):(Ae&&n&&Ul(r),r.flags|=1,at(e,r,s,a),r.child)}function ff(e,r,n,s,a){if(e===null){var c=n.type;return typeof c=="function"&&!Aa(c)&&c.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(r.tag=15,r.type=c,pf(e,r,c,s,a)):(e=ss(n.type,null,s,r,r.mode,a),e.ref=r.ref,e.return=r,r.child=e)}if(c=e.child,(e.lanes&a)===0){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:go,n(m,s)&&e.ref===r.ref)return ar(e,r,a)}return r.flags|=1,e=Rr(c,s),e.ref=r.ref,e.return=r,r.child=e}function pf(e,r,n,s,a){if(e!==null){var c=e.memoizedProps;if(go(c,s)&&e.ref===r.ref)if(pt=!1,r.pendingProps=s=c,(e.lanes&a)!==0)(e.flags&131072)!==0&&(pt=!0);else return r.lanes=e.lanes,ar(e,r,a)}return ma(e,r,n,s,a)}function hf(e,r,n){var s=r.pendingProps,a=s.children,c=e!==null?e.memoizedState:null;if(s.mode==="hidden")if((r.mode&1)===0)r.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(bn,kt),kt|=n;else{if((n&1073741824)===0)return e=c!==null?c.baseLanes|n:n,r.lanes=r.childLanes=1073741824,r.memoizedState={baseLanes:e,cachePool:null,transitions:null},r.updateQueue=null,Pe(bn,kt),kt|=e,null;r.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=c!==null?c.baseLanes:n,Pe(bn,kt),kt|=s}else c!==null?(s=c.baseLanes|n,r.memoizedState=null):s=n,Pe(bn,kt),kt|=s;return at(e,r,a,n),r.child}function mf(e,r){var n=r.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(r.flags|=512,r.flags|=2097152)}function ma(e,r,n,s,a){var c=ft(n)?zr:rt.current;return c=gn(r,c),kn(r,a),n=ia(e,r,n,s,c,a),s=sa(),e!==null&&!pt?(r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~a,ar(e,r,a)):(Ae&&s&&Ul(r),r.flags|=1,at(e,r,n,a),r.child)}function gf(e,r,n,s,a){if(ft(n)){var c=!0;Pi(r)}else c=!1;if(kn(r,a),r.stateNode===null)Qi(e,r),nf(r,n,s),fa(r,n,s,a),s=!0;else if(e===null){var m=r.stateNode,w=r.memoizedProps;m.props=w;var C=m.context,L=n.contextType;typeof L=="object"&&L!==null?L=Rt(L):(L=ft(n)?zr:rt.current,L=gn(r,L));var B=n.getDerivedStateFromProps,V=typeof B=="function"||typeof m.getSnapshotBeforeUpdate=="function";V||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==s||C!==L)&&of(r,m,s,L),Sr=!1;var F=r.memoizedState;m.state=F,Fi(r,s,m,a),C=r.memoizedState,w!==s||F!==C||dt.current||Sr?(typeof B=="function"&&(da(r,n,B,s),C=r.memoizedState),(w=Sr||rf(r,n,w,s,F,C,L))?(V||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(r.flags|=4194308)):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=s,r.memoizedState=C),m.props=s,m.state=C,m.context=L,s=w):(typeof m.componentDidMount=="function"&&(r.flags|=4194308),s=!1)}else{m=r.stateNode,Pd(e,r),w=r.memoizedProps,L=r.type===r.elementType?w:Ft(r.type,w),m.props=L,V=r.pendingProps,F=m.context,C=n.contextType,typeof C=="object"&&C!==null?C=Rt(C):(C=ft(n)?zr:rt.current,C=gn(r,C));var X=n.getDerivedStateFromProps;(B=typeof X=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(w!==V||F!==C)&&of(r,m,s,C),Sr=!1,F=r.memoizedState,m.state=F,Fi(r,s,m,a);var te=r.memoizedState;w!==V||F!==te||dt.current||Sr?(typeof X=="function"&&(da(r,n,X,s),te=r.memoizedState),(L=Sr||rf(r,n,L,s,F,te,C)||!1)?(B||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(s,te,C),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(s,te,C)),typeof m.componentDidUpdate=="function"&&(r.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&F===e.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&F===e.memoizedState||(r.flags|=1024),r.memoizedProps=s,r.memoizedState=te),m.props=s,m.state=te,m.context=C,s=L):(typeof m.componentDidUpdate!="function"||w===e.memoizedProps&&F===e.memoizedState||(r.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||w===e.memoizedProps&&F===e.memoizedState||(r.flags|=1024),s=!1)}return ga(e,r,n,s,c,a)}function ga(e,r,n,s,a,c){mf(e,r);var m=(r.flags&128)!==0;if(!s&&!m)return a&&wd(r,n,!1),ar(e,r,c);s=r.stateNode,py.current=r;var w=m&&typeof n.getDerivedStateFromError!="function"?null:s.render();return r.flags|=1,e!==null&&m?(r.child=wn(r,e.child,null,c),r.child=wn(r,null,w,c)):at(e,r,w,c),r.memoizedState=s.state,a&&wd(r,n,!0),r.child}function vf(e){var r=e.stateNode;r.pendingContext?yd(e,r.pendingContext,r.pendingContext!==r.context):r.context&&yd(e,r.context,!1),Zl(e,r.containerInfo)}function yf(e,r,n,s,a){return xn(),Gl(a),r.flags|=256,at(e,r,n,s),r.child}var va={dehydrated:null,treeContext:null,retryLane:0};function ya(e){return{baseLanes:e,cachePool:null,transitions:null}}function xf(e,r,n){var s=r.pendingProps,a=De.current,c=!1,m=(r.flags&128)!==0,w;if((w=m)||(w=e!==null&&e.memoizedState===null?!1:(a&2)!==0),w?(c=!0,r.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Pe(De,a&1),e===null)return Wl(r),e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((r.mode&1)===0?r.lanes=1:e.data==="$!"?r.lanes=8:r.lanes=1073741824,null):(m=s.children,e=s.fallback,c?(s=r.mode,c=r.child,m={mode:"hidden",children:m},(s&1)===0&&c!==null?(c.childLanes=0,c.pendingProps=m):c=ls(m,s,0,null),e=Qr(e,s,n,null),c.return=r,e.return=r,c.sibling=e,r.child=c,r.child.memoizedState=ya(n),r.memoizedState=va,e):xa(r,m));if(a=e.memoizedState,a!==null&&(w=a.dehydrated,w!==null))return hy(e,r,m,s,w,a,n);if(c){c=s.fallback,m=r.mode,a=e.child,w=a.sibling;var C={mode:"hidden",children:s.children};return(m&1)===0&&r.child!==a?(s=r.child,s.childLanes=0,s.pendingProps=C,r.deletions=null):(s=Rr(a,C),s.subtreeFlags=a.subtreeFlags&14680064),w!==null?c=Rr(w,c):(c=Qr(c,m,n,null),c.flags|=2),c.return=r,s.return=r,s.sibling=c,r.child=s,s=c,c=r.child,m=e.child.memoizedState,m=m===null?ya(n):{baseLanes:m.baseLanes|n,cachePool:null,transitions:m.transitions},c.memoizedState=m,c.childLanes=e.childLanes&~n,r.memoizedState=va,s}return c=e.child,e=c.sibling,s=Rr(c,{mode:"visible",children:s.children}),(r.mode&1)===0&&(s.lanes=n),s.return=r,s.sibling=null,e!==null&&(n=r.deletions,n===null?(r.deletions=[e],r.flags|=16):n.push(e)),r.child=s,r.memoizedState=null,s}function xa(e,r){return r=ls({mode:"visible",children:r},e.mode,0,null),r.return=e,e.child=r}function Ki(e,r,n,s){return s!==null&&Gl(s),wn(r,e.child,null,n),e=xa(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function hy(e,r,n,s,a,c,m){if(n)return r.flags&256?(r.flags&=-257,s=pa(Error(i(422))),Ki(e,r,m,s)):r.memoizedState!==null?(r.child=e.child,r.flags|=128,null):(c=s.fallback,a=r.mode,s=ls({mode:"visible",children:s.children},a,0,null),c=Qr(c,a,m,null),c.flags|=2,s.return=r,c.return=r,s.sibling=c,r.child=s,(r.mode&1)!==0&&wn(r,e.child,null,m),r.child.memoizedState=ya(m),r.memoizedState=va,c);if((r.mode&1)===0)return Ki(e,r,m,null);if(a.data==="$!"){if(s=a.nextSibling&&a.nextSibling.dataset,s)var w=s.dgst;return s=w,c=Error(i(419)),s=pa(c,s,void 0),Ki(e,r,m,s)}if(w=(m&e.childLanes)!==0,pt||w){if(s=Qe,s!==null){switch(m&-m){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(s.suspendedLanes|m))!==0?0:a,a!==0&&a!==c.retryLane&&(c.retryLane=a,sr(e,a),Vt(s,e,a,-1))}return Oa(),s=pa(Error(i(421))),Ki(e,r,m,s)}return a.data==="$?"?(r.flags|=128,r.child=e.child,r=Ny.bind(null,e),a._reactRetry=r,null):(e=c.treeContext,St=vr(a.nextSibling),wt=r,Ae=!0,zt=null,e!==null&&(bt[Nt++]=or,bt[Nt++]=ir,bt[Nt++]=Fr,or=e.id,ir=e.overflow,Fr=r),r=xa(r,s.children),r.flags|=4096,r)}function wf(e,r,n){e.lanes|=r;var s=e.alternate;s!==null&&(s.lanes|=r),ql(e.return,r,n)}function wa(e,r,n,s,a){var c=e.memoizedState;c===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:a}:(c.isBackwards=r,c.rendering=null,c.renderingStartTime=0,c.last=s,c.tail=n,c.tailMode=a)}function Sf(e,r,n){var s=r.pendingProps,a=s.revealOrder,c=s.tail;if(at(e,r,s.children,n),s=De.current,(s&2)!==0)s=s&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wf(e,n,r);else if(e.tag===19)wf(e,n,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Pe(De,s),(r.mode&1)===0)r.memoizedState=null;else switch(a){case"forwards":for(n=r.child,a=null;n!==null;)e=n.alternate,e!==null&&Bi(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=r.child,r.child=null):(a=n.sibling,n.sibling=null),wa(r,!1,a,n,c);break;case"backwards":for(n=null,a=r.child,r.child=null;a!==null;){if(e=a.alternate,e!==null&&Bi(e)===null){r.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}wa(r,!0,n,null,c);break;case"together":wa(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Qi(e,r){(r.mode&1)===0&&e!==null&&(e.alternate=null,r.alternate=null,r.flags|=2)}function ar(e,r,n){if(e!==null&&(r.dependencies=e.dependencies),Wr|=r.lanes,(n&r.childLanes)===0)return null;if(e!==null&&r.child!==e.child)throw Error(i(153));if(r.child!==null){for(e=r.child,n=Rr(e,e.pendingProps),r.child=n,n.return=r;e.sibling!==null;)e=e.sibling,n=n.sibling=Rr(e,e.pendingProps),n.return=r;n.sibling=null}return r.child}function my(e,r,n){switch(r.tag){case 3:vf(r),xn();break;case 5:Id(r);break;case 1:ft(r.type)&&Pi(r);break;case 4:Zl(r,r.stateNode.containerInfo);break;case 10:var s=r.type._context,a=r.memoizedProps.value;Pe(Mi,s._currentValue),s._currentValue=a;break;case 13:if(s=r.memoizedState,s!==null)return s.dehydrated!==null?(Pe(De,De.current&1),r.flags|=128,null):(n&r.child.childLanes)!==0?xf(e,r,n):(Pe(De,De.current&1),e=ar(e,r,n),e!==null?e.sibling:null);Pe(De,De.current&1);break;case 19:if(s=(n&r.childLanes)!==0,(e.flags&128)!==0){if(s)return Sf(e,r,n);r.flags|=128}if(a=r.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pe(De,De.current),s)break;return null;case 22:case 23:return r.lanes=0,hf(e,r,n)}return ar(e,r,n)}var kf,Sa,Cf,jf;kf=function(e,r){for(var n=r.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===r)break;for(;n.sibling===null;){if(n.return===null||n.return===r)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Sa=function(){},Cf=function(e,r,n,s){var a=e.memoizedProps;if(a!==s){e=r.stateNode,Vr(Qt.current);var c=null;switch(n){case"input":a=qs(e,a),s=qs(e,s),c=[];break;case"select":a=q({},a,{value:void 0}),s=q({},s,{value:void 0}),c=[];break;case"textarea":a=Zs(e,a),s=Zs(e,s),c=[];break;default:typeof a.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=Ri)}tl(n,s);var m;n=null;for(L in a)if(!s.hasOwnProperty(L)&&a.hasOwnProperty(L)&&a[L]!=null)if(L==="style"){var w=a[L];for(m in w)w.hasOwnProperty(m)&&(n||(n={}),n[m]="")}else L!=="dangerouslySetInnerHTML"&&L!=="children"&&L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(u.hasOwnProperty(L)?c||(c=[]):(c=c||[]).push(L,null));for(L in s){var C=s[L];if(w=a!=null?a[L]:void 0,s.hasOwnProperty(L)&&C!==w&&(C!=null||w!=null))if(L==="style")if(w){for(m in w)!w.hasOwnProperty(m)||C&&C.hasOwnProperty(m)||(n||(n={}),n[m]="");for(m in C)C.hasOwnProperty(m)&&w[m]!==C[m]&&(n||(n={}),n[m]=C[m])}else n||(c||(c=[]),c.push(L,n)),n=C;else L==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,w=w?w.__html:void 0,C!=null&&w!==C&&(c=c||[]).push(L,C)):L==="children"?typeof C!="string"&&typeof C!="number"||(c=c||[]).push(L,""+C):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&(u.hasOwnProperty(L)?(C!=null&&L==="onScroll"&&Le("scroll",e),c||w===C||(c=[])):(c=c||[]).push(L,C))}n&&(c=c||[]).push("style",n);var L=c;(r.updateQueue=L)&&(r.flags|=4)}},jf=function(e,r,n,s){n!==s&&(r.flags|=4)};function Po(e,r){if(!Ae)switch(e.tailMode){case"hidden":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function ot(e){var r=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(r)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags&14680064,s|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,s|=a.subtreeFlags,s|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=s,e.childLanes=n,r}function gy(e,r,n){var s=r.pendingProps;switch(Vl(r),r.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(r),null;case 1:return ft(r.type)&&Ti(),ot(r),null;case 3:return s=r.stateNode,Cn(),Ie(dt),Ie(rt),ra(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Oi(r)?r.flags|=4:e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,zt!==null&&(_a(zt),zt=null))),Sa(e,r),ot(r),null;case 5:ea(r);var a=Vr(bo.current);if(n=r.type,e!==null&&r.stateNode!=null)Cf(e,r,n,s,a),e.ref!==r.ref&&(r.flags|=512,r.flags|=2097152);else{if(!s){if(r.stateNode===null)throw Error(i(166));return ot(r),null}if(e=Vr(Qt.current),Oi(r)){s=r.stateNode,n=r.type;var c=r.memoizedProps;switch(s[Kt]=r,s[So]=c,e=(r.mode&1)!==0,n){case"dialog":Le("cancel",s),Le("close",s);break;case"iframe":case"object":case"embed":Le("load",s);break;case"video":case"audio":for(a=0;a<yo.length;a++)Le(yo[a],s);break;case"source":Le("error",s);break;case"img":case"image":case"link":Le("error",s),Le("load",s);break;case"details":Le("toggle",s);break;case"input":nc(s,c),Le("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!c.multiple},Le("invalid",s);break;case"textarea":sc(s,c),Le("invalid",s)}tl(n,c),a=null;for(var m in c)if(c.hasOwnProperty(m)){var w=c[m];m==="children"?typeof w=="string"?s.textContent!==w&&(c.suppressHydrationWarning!==!0&&Ni(s.textContent,w,e),a=["children",w]):typeof w=="number"&&s.textContent!==""+w&&(c.suppressHydrationWarning!==!0&&Ni(s.textContent,w,e),a=["children",""+w]):u.hasOwnProperty(m)&&w!=null&&m==="onScroll"&&Le("scroll",s)}switch(n){case"input":tr(s),ic(s,c,!0);break;case"textarea":tr(s),ac(s);break;case"select":case"option":break;default:typeof c.onClick=="function"&&(s.onclick=Ri)}s=a,r.updateQueue=s,s!==null&&(r.flags|=4)}else{m=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=uc(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=m.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=m.createElement(n,{is:s.is}):(e=m.createElement(n),n==="select"&&(m=e,s.multiple?m.multiple=!0:s.size&&(m.size=s.size))):e=m.createElementNS(e,n),e[Kt]=r,e[So]=s,kf(e,r,!1,!1),r.stateNode=e;e:{switch(m=rl(n,s),n){case"dialog":Le("cancel",e),Le("close",e),a=s;break;case"iframe":case"object":case"embed":Le("load",e),a=s;break;case"video":case"audio":for(a=0;a<yo.length;a++)Le(yo[a],e);a=s;break;case"source":Le("error",e),a=s;break;case"img":case"image":case"link":Le("error",e),Le("load",e),a=s;break;case"details":Le("toggle",e),a=s;break;case"input":nc(e,s),a=qs(e,s),Le("invalid",e);break;case"option":a=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},a=q({},s,{value:void 0}),Le("invalid",e);break;case"textarea":sc(e,s),a=Zs(e,s),Le("invalid",e);break;default:a=s}tl(n,a),w=a;for(c in w)if(w.hasOwnProperty(c)){var C=w[c];c==="style"?fc(e,C):c==="dangerouslySetInnerHTML"?(C=C?C.__html:void 0,C!=null&&cc(e,C)):c==="children"?typeof C=="string"?(n!=="textarea"||C!=="")&&Xn(e,C):typeof C=="number"&&Xn(e,""+C):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(u.hasOwnProperty(c)?C!=null&&c==="onScroll"&&Le("scroll",e):C!=null&&D(e,c,C,m))}switch(n){case"input":tr(e),ic(e,s,!1);break;case"textarea":tr(e),ac(e);break;case"option":s.value!=null&&e.setAttribute("value",""+pe(s.value));break;case"select":e.multiple=!!s.multiple,c=s.value,c!=null?nn(e,!!s.multiple,c,!1):s.defaultValue!=null&&nn(e,!!s.multiple,s.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=Ri)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(r.flags|=4)}r.ref!==null&&(r.flags|=512,r.flags|=2097152)}return ot(r),null;case 6:if(e&&r.stateNode!=null)jf(e,r,e.memoizedProps,s);else{if(typeof s!="string"&&r.stateNode===null)throw Error(i(166));if(n=Vr(bo.current),Vr(Qt.current),Oi(r)){if(s=r.stateNode,n=r.memoizedProps,s[Kt]=r,(c=s.nodeValue!==n)&&(e=wt,e!==null))switch(e.tag){case 3:Ni(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Ni(s.nodeValue,n,(e.mode&1)!==0)}c&&(r.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[Kt]=r,r.stateNode=s}return ot(r),null;case 13:if(Ie(De),s=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ae&&St!==null&&(r.mode&1)!==0&&(r.flags&128)===0)bd(),xn(),r.flags|=98560,c=!1;else if(c=Oi(r),s!==null&&s.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=r.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[Kt]=r}else xn(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ot(r),c=!1}else zt!==null&&(_a(zt),zt=null),c=!0;if(!c)return r.flags&65536?r:null}return(r.flags&128)!==0?(r.lanes=n,r):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(r.child.flags|=8192,(r.mode&1)!==0&&(e===null||(De.current&1)!==0?Je===0&&(Je=3):Oa())),r.updateQueue!==null&&(r.flags|=4),ot(r),null);case 4:return Cn(),Sa(e,r),e===null&&xo(r.stateNode.containerInfo),ot(r),null;case 10:return Ql(r.type._context),ot(r),null;case 17:return ft(r.type)&&Ti(),ot(r),null;case 19:if(Ie(De),c=r.memoizedState,c===null)return ot(r),null;if(s=(r.flags&128)!==0,m=c.rendering,m===null)if(s)Po(c,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(m=Bi(e),m!==null){for(r.flags|=128,Po(c,!1),s=m.updateQueue,s!==null&&(r.updateQueue=s,r.flags|=4),r.subtreeFlags=0,s=n,n=r.child;n!==null;)c=n,e=s,c.flags&=14680066,m=c.alternate,m===null?(c.childLanes=0,c.lanes=e,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=m.childLanes,c.lanes=m.lanes,c.child=m.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=m.memoizedProps,c.memoizedState=m.memoizedState,c.updateQueue=m.updateQueue,c.type=m.type,e=m.dependencies,c.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Pe(De,De.current&1|2),r.child}e=e.sibling}c.tail!==null&&Be()>Nn&&(r.flags|=128,s=!0,Po(c,!1),r.lanes=4194304)}else{if(!s)if(e=Bi(m),e!==null){if(r.flags|=128,s=!0,n=e.updateQueue,n!==null&&(r.updateQueue=n,r.flags|=4),Po(c,!0),c.tail===null&&c.tailMode==="hidden"&&!m.alternate&&!Ae)return ot(r),null}else 2*Be()-c.renderingStartTime>Nn&&n!==1073741824&&(r.flags|=128,s=!0,Po(c,!1),r.lanes=4194304);c.isBackwards?(m.sibling=r.child,r.child=m):(n=c.last,n!==null?n.sibling=m:r.child=m,c.last=m)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Be(),r.sibling=null,n=De.current,Pe(De,s?n&1|2:n&1),r):(ot(r),null);case 22:case 23:return Ia(),s=r.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(r.flags|=8192),s&&(r.mode&1)!==0?(kt&1073741824)!==0&&(ot(r),r.subtreeFlags&6&&(r.flags|=8192)):ot(r),null;case 24:return null;case 25:return null}throw Error(i(156,r.tag))}function vy(e,r){switch(Vl(r),r.tag){case 1:return ft(r.type)&&Ti(),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return Cn(),Ie(dt),Ie(rt),ra(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 5:return ea(r),null;case 13:if(Ie(De),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(i(340));xn()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return Ie(De),null;case 4:return Cn(),null;case 10:return Ql(r.type._context),null;case 22:case 23:return Ia(),null;case 24:return null;default:return null}}var qi=!1,it=!1,yy=typeof WeakSet=="function"?WeakSet:Set,Z=null;function En(e,r){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){Fe(e,r,s)}else n.current=null}function ka(e,r,n){try{n()}catch(s){Fe(e,r,s)}}var Ef=!1;function xy(e,r){if(Il=gi,e=rd(),bl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var a=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,w=-1,C=-1,L=0,B=0,V=e,F=null;t:for(;;){for(var X;V!==n||a!==0&&V.nodeType!==3||(w=m+a),V!==c||s!==0&&V.nodeType!==3||(C=m+s),V.nodeType===3&&(m+=V.nodeValue.length),(X=V.firstChild)!==null;)F=V,V=X;for(;;){if(V===e)break t;if(F===n&&++L===a&&(w=m),F===c&&++B===s&&(C=m),(X=V.nextSibling)!==null)break;V=F,F=V.parentNode}V=X}n=w===-1||C===-1?null:{start:w,end:C}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ol={focusedElem:e,selectionRange:n},gi=!1,Z=r;Z!==null;)if(r=Z,e=r.child,(r.subtreeFlags&1028)!==0&&e!==null)e.return=r,Z=e;else for(;Z!==null;){r=Z;try{var te=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(te!==null){var re=te.memoizedProps,Ue=te.memoizedState,P=r.stateNode,b=P.getSnapshotBeforeUpdate(r.elementType===r.type?re:Ft(r.type,re),Ue);P.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var _=r.stateNode.containerInfo;_.nodeType===1?_.textContent="":_.nodeType===9&&_.documentElement&&_.removeChild(_.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(W){Fe(r,r.return,W)}if(e=r.sibling,e!==null){e.return=r.return,Z=e;break}Z=r.return}return te=Ef,Ef=!1,te}function _o(e,r,n){var s=r.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var a=s=s.next;do{if((a.tag&e)===e){var c=a.destroy;a.destroy=void 0,c!==void 0&&ka(r,n,c)}a=a.next}while(a!==s)}}function Yi(e,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var n=r=r.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==r)}}function Ca(e){var r=e.ref;if(r!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof r=="function"?r(e):r.current=e}}function bf(e){var r=e.alternate;r!==null&&(e.alternate=null,bf(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&(delete r[Kt],delete r[So],delete r[zl],delete r[ty],delete r[ry])),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 Nf(e){return e.tag===5||e.tag===3||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Nf(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 ja(e,r,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?n.nodeType===8?n.parentNode.insertBefore(e,r):n.insertBefore(e,r):(n.nodeType===8?(r=n.parentNode,r.insertBefore(e,n)):(r=n,r.appendChild(e)),n=n._reactRootContainer,n!=null||r.onclick!==null||(r.onclick=Ri));else if(s!==4&&(e=e.child,e!==null))for(ja(e,r,n),e=e.sibling;e!==null;)ja(e,r,n),e=e.sibling}function Ea(e,r,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,r?n.insertBefore(e,r):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(Ea(e,r,n),e=e.sibling;e!==null;)Ea(e,r,n),e=e.sibling}var et=null,Bt=!1;function Cr(e,r,n){for(n=n.child;n!==null;)$f(e,r,n),n=n.sibling}function $f(e,r,n){if(Jt&&typeof Jt.onCommitFiberUnmount=="function")try{Jt.onCommitFiberUnmount(ci,n)}catch{}switch(n.tag){case 5:it||En(n,r);case 6:var s=et,a=Bt;et=null,Cr(e,r,n),et=s,Bt=a,et!==null&&(Bt?(e=et,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):et.removeChild(n.stateNode));break;case 18:et!==null&&(Bt?(e=et,n=n.stateNode,e.nodeType===8?Dl(e.parentNode,n):e.nodeType===1&&Dl(e,n),uo(e)):Dl(et,n.stateNode));break;case 4:s=et,a=Bt,et=n.stateNode.containerInfo,Bt=!0,Cr(e,r,n),et=s,Bt=a;break;case 0:case 11:case 14:case 15:if(!it&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){a=s=s.next;do{var c=a,m=c.destroy;c=c.tag,m!==void 0&&((c&2)!==0||(c&4)!==0)&&ka(n,r,m),a=a.next}while(a!==s)}Cr(e,r,n);break;case 1:if(!it&&(En(n,r),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(w){Fe(n,r,w)}Cr(e,r,n);break;case 21:Cr(e,r,n);break;case 22:n.mode&1?(it=(s=it)||n.memoizedState!==null,Cr(e,r,n),it=s):Cr(e,r,n);break;default:Cr(e,r,n)}}function Tf(e){var r=e.updateQueue;if(r!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new yy),r.forEach(function(s){var a=Ry.bind(null,e,s);n.has(s)||(n.add(s),s.then(a,a))})}}function Ut(e,r){var n=r.deletions;if(n!==null)for(var s=0;s<n.length;s++){var a=n[s];try{var c=e,m=r,w=m;e:for(;w!==null;){switch(w.tag){case 5:et=w.stateNode,Bt=!1;break e;case 3:et=w.stateNode.containerInfo,Bt=!0;break e;case 4:et=w.stateNode.containerInfo,Bt=!0;break e}w=w.return}if(et===null)throw Error(i(160));$f(c,m,a),et=null,Bt=!1;var C=a.alternate;C!==null&&(C.return=null),a.return=null}catch(L){Fe(a,r,L)}}if(r.subtreeFlags&12854)for(r=r.child;r!==null;)Pf(r,e),r=r.sibling}function Pf(e,r){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ut(r,e),Yt(e),s&4){try{_o(3,e,e.return),Yi(3,e)}catch(re){Fe(e,e.return,re)}try{_o(5,e,e.return)}catch(re){Fe(e,e.return,re)}}break;case 1:Ut(r,e),Yt(e),s&512&&n!==null&&En(n,n.return);break;case 5:if(Ut(r,e),Yt(e),s&512&&n!==null&&En(n,n.return),e.flags&32){var a=e.stateNode;try{Xn(a,"")}catch(re){Fe(e,e.return,re)}}if(s&4&&(a=e.stateNode,a!=null)){var c=e.memoizedProps,m=n!==null?n.memoizedProps:c,w=e.type,C=e.updateQueue;if(e.updateQueue=null,C!==null)try{w==="input"&&c.type==="radio"&&c.name!=null&&oc(a,c),rl(w,m);var L=rl(w,c);for(m=0;m<C.length;m+=2){var B=C[m],V=C[m+1];B==="style"?fc(a,V):B==="dangerouslySetInnerHTML"?cc(a,V):B==="children"?Xn(a,V):D(a,B,V,L)}switch(w){case"input":Ys(a,c);break;case"textarea":lc(a,c);break;case"select":var F=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!c.multiple;var X=c.value;X!=null?nn(a,!!c.multiple,X,!1):F!==!!c.multiple&&(c.defaultValue!=null?nn(a,!!c.multiple,c.defaultValue,!0):nn(a,!!c.multiple,c.multiple?[]:"",!1))}a[So]=c}catch(re){Fe(e,e.return,re)}}break;case 6:if(Ut(r,e),Yt(e),s&4){if(e.stateNode===null)throw Error(i(162));a=e.stateNode,c=e.memoizedProps;try{a.nodeValue=c}catch(re){Fe(e,e.return,re)}}break;case 3:if(Ut(r,e),Yt(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{uo(r.containerInfo)}catch(re){Fe(e,e.return,re)}break;case 4:Ut(r,e),Yt(e);break;case 13:Ut(r,e),Yt(e),a=e.child,a.flags&8192&&(c=a.memoizedState!==null,a.stateNode.isHidden=c,!c||a.alternate!==null&&a.alternate.memoizedState!==null||(Ra=Be())),s&4&&Tf(e);break;case 22:if(B=n!==null&&n.memoizedState!==null,e.mode&1?(it=(L=it)||B,Ut(r,e),it=L):Ut(r,e),Yt(e),s&8192){if(L=e.memoizedState!==null,(e.stateNode.isHidden=L)&&!B&&(e.mode&1)!==0)for(Z=e,B=e.child;B!==null;){for(V=Z=B;Z!==null;){switch(F=Z,X=F.child,F.tag){case 0:case 11:case 14:case 15:_o(4,F,F.return);break;case 1:En(F,F.return);var te=F.stateNode;if(typeof te.componentWillUnmount=="function"){s=F,n=F.return;try{r=s,te.props=r.memoizedProps,te.state=r.memoizedState,te.componentWillUnmount()}catch(re){Fe(s,n,re)}}break;case 5:En(F,F.return);break;case 22:if(F.memoizedState!==null){If(V);continue}}X!==null?(X.return=F,Z=X):If(V)}B=B.sibling}e:for(B=null,V=e;;){if(V.tag===5){if(B===null){B=V;try{a=V.stateNode,L?(c=a.style,typeof c.setProperty=="function"?c.setProperty("display","none","important"):c.display="none"):(w=V.stateNode,C=V.memoizedProps.style,m=C!=null&&C.hasOwnProperty("display")?C.display:null,w.style.display=dc("display",m))}catch(re){Fe(e,e.return,re)}}}else if(V.tag===6){if(B===null)try{V.stateNode.nodeValue=L?"":V.memoizedProps}catch(re){Fe(e,e.return,re)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;B===V&&(B=null),V=V.return}B===V&&(B=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Ut(r,e),Yt(e),s&4&&Tf(e);break;case 21:break;default:Ut(r,e),Yt(e)}}function Yt(e){var r=e.flags;if(r&2){try{e:{for(var n=e.return;n!==null;){if(Nf(n)){var s=n;break e}n=n.return}throw Error(i(160))}switch(s.tag){case 5:var a=s.stateNode;s.flags&32&&(Xn(a,""),s.flags&=-33);var c=Rf(e);Ea(e,c,a);break;case 3:case 4:var m=s.stateNode.containerInfo,w=Rf(e);ja(e,w,m);break;default:throw Error(i(161))}}catch(C){Fe(e,e.return,C)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function wy(e,r,n){Z=e,_f(e)}function _f(e,r,n){for(var s=(e.mode&1)!==0;Z!==null;){var a=Z,c=a.child;if(a.tag===22&&s){var m=a.memoizedState!==null||qi;if(!m){var w=a.alternate,C=w!==null&&w.memoizedState!==null||it;w=qi;var L=it;if(qi=m,(it=C)&&!L)for(Z=a;Z!==null;)m=Z,C=m.child,m.tag===22&&m.memoizedState!==null?Of(a):C!==null?(C.return=m,Z=C):Of(a);for(;c!==null;)Z=c,_f(c),c=c.sibling;Z=a,qi=w,it=L}Lf(e)}else(a.subtreeFlags&8772)!==0&&c!==null?(c.return=a,Z=c):Lf(e)}}function Lf(e){for(;Z!==null;){var r=Z;if((r.flags&8772)!==0){var n=r.alternate;try{if((r.flags&8772)!==0)switch(r.tag){case 0:case 11:case 15:it||Yi(5,r);break;case 1:var s=r.stateNode;if(r.flags&4&&!it)if(n===null)s.componentDidMount();else{var a=r.elementType===r.type?n.memoizedProps:Ft(r.type,n.memoizedProps);s.componentDidUpdate(a,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var c=r.updateQueue;c!==null&&Ld(r,c,s);break;case 3:var m=r.updateQueue;if(m!==null){if(n=null,r.child!==null)switch(r.child.tag){case 5:n=r.child.stateNode;break;case 1:n=r.child.stateNode}Ld(r,m,n)}break;case 5:var w=r.stateNode;if(n===null&&r.flags&4){n=w;var C=r.memoizedProps;switch(r.type){case"button":case"input":case"select":case"textarea":C.autoFocus&&n.focus();break;case"img":C.src&&(n.src=C.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(r.memoizedState===null){var L=r.alternate;if(L!==null){var B=L.memoizedState;if(B!==null){var V=B.dehydrated;V!==null&&uo(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}it||r.flags&512&&Ca(r)}catch(F){Fe(r,r.return,F)}}if(r===e){Z=null;break}if(n=r.sibling,n!==null){n.return=r.return,Z=n;break}Z=r.return}}function If(e){for(;Z!==null;){var r=Z;if(r===e){Z=null;break}var n=r.sibling;if(n!==null){n.return=r.return,Z=n;break}Z=r.return}}function Of(e){for(;Z!==null;){var r=Z;try{switch(r.tag){case 0:case 11:case 15:var n=r.return;try{Yi(4,r)}catch(C){Fe(r,n,C)}break;case 1:var s=r.stateNode;if(typeof s.componentDidMount=="function"){var a=r.return;try{s.componentDidMount()}catch(C){Fe(r,a,C)}}var c=r.return;try{Ca(r)}catch(C){Fe(r,c,C)}break;case 5:var m=r.return;try{Ca(r)}catch(C){Fe(r,m,C)}}}catch(C){Fe(r,r.return,C)}if(r===e){Z=null;break}var w=r.sibling;if(w!==null){w.return=r.return,Z=w;break}Z=r.return}}var Sy=Math.ceil,Xi=U.ReactCurrentDispatcher,ba=U.ReactCurrentOwner,Tt=U.ReactCurrentBatchConfig,Ce=0,Qe=null,He=null,tt=0,kt=0,bn=yr(0),Je=0,Lo=null,Wr=0,Zi=0,Na=0,Io=null,ht=null,Ra=0,Nn=1/0,ur=null,es=!1,$a=null,jr=null,ts=!1,Er=null,rs=0,Oo=0,Ta=null,ns=-1,os=0;function ut(){return(Ce&6)!==0?Be():ns!==-1?ns:ns=Be()}function br(e){return(e.mode&1)===0?1:(Ce&2)!==0&&tt!==0?tt&-tt:oy.transition!==null?(os===0&&(os=Nc()),os):(e=$e,e!==0||(e=window.event,e=e===void 0?16:Ac(e.type)),e)}function Vt(e,r,n,s){if(50<Oo)throw Oo=0,Ta=null,Error(i(185));oo(e,n,s),((Ce&2)===0||e!==Qe)&&(e===Qe&&((Ce&2)===0&&(Zi|=n),Je===4&&Nr(e,tt)),mt(e,s),n===1&&Ce===0&&(r.mode&1)===0&&(Nn=Be()+500,_i&&wr()))}function mt(e,r){var n=e.callbackNode;ov(e,r);var s=pi(e,e===Qe?tt:0);if(s===0)n!==null&&jc(n),e.callbackNode=null,e.callbackPriority=0;else if(r=s&-s,e.callbackPriority!==r){if(n!=null&&jc(n),r===1)e.tag===0?ny(Mf.bind(null,e)):Sd(Mf.bind(null,e)),Zv(function(){(Ce&6)===0&&wr()}),n=null;else{switch(Rc(s)){case 1:n=ul;break;case 4:n=Ec;break;case 16:n=ui;break;case 536870912:n=bc;break;default:n=ui}n=Wf(n,Af.bind(null,e))}e.callbackPriority=r,e.callbackNode=n}}function Af(e,r){if(ns=-1,os=0,(Ce&6)!==0)throw Error(i(327));var n=e.callbackNode;if(Rn()&&e.callbackNode!==n)return null;var s=pi(e,e===Qe?tt:0);if(s===0)return null;if((s&30)!==0||(s&e.expiredLanes)!==0||r)r=is(e,s);else{r=s;var a=Ce;Ce|=2;var c=zf();(Qe!==e||tt!==r)&&(ur=null,Nn=Be()+500,Jr(e,r));do try{jy();break}catch(w){Df(e,w)}while(!0);Kl(),Xi.current=c,Ce=a,He!==null?r=0:(Qe=null,tt=0,r=Je)}if(r!==0){if(r===2&&(a=cl(e),a!==0&&(s=a,r=Pa(e,a))),r===1)throw n=Lo,Jr(e,0),Nr(e,s),mt(e,Be()),n;if(r===6)Nr(e,s);else{if(a=e.current.alternate,(s&30)===0&&!ky(a)&&(r=is(e,s),r===2&&(c=cl(e),c!==0&&(s=c,r=Pa(e,c))),r===1))throw n=Lo,Jr(e,0),Nr(e,s),mt(e,Be()),n;switch(e.finishedWork=a,e.finishedLanes=s,r){case 0:case 1:throw Error(i(345));case 2:Kr(e,ht,ur);break;case 3:if(Nr(e,s),(s&130023424)===s&&(r=Ra+500-Be(),10<r)){if(pi(e,0)!==0)break;if(a=e.suspendedLanes,(a&s)!==s){ut(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ml(Kr.bind(null,e,ht,ur),r);break}Kr(e,ht,ur);break;case 4:if(Nr(e,s),(s&4194240)===s)break;for(r=e.eventTimes,a=-1;0<s;){var m=31-Mt(s);c=1<<m,m=r[m],m>a&&(a=m),s&=~c}if(s=a,s=Be()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Sy(s/1960))-s,10<s){e.timeoutHandle=Ml(Kr.bind(null,e,ht,ur),s);break}Kr(e,ht,ur);break;case 5:Kr(e,ht,ur);break;default:throw Error(i(329))}}}return mt(e,Be()),e.callbackNode===n?Af.bind(null,e):null}function Pa(e,r){var n=Io;return e.current.memoizedState.isDehydrated&&(Jr(e,r).flags|=256),e=is(e,r),e!==2&&(r=ht,ht=n,r!==null&&_a(r)),e}function _a(e){ht===null?ht=e:ht.push.apply(ht,e)}function ky(e){for(var r=e;;){if(r.flags&16384){var n=r.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var a=n[s],c=a.getSnapshot;a=a.value;try{if(!Dt(c(),a))return!1}catch{return!1}}}if(n=r.child,r.subtreeFlags&16384&&n!==null)n.return=r,r=n;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Nr(e,r){for(r&=~Na,r&=~Zi,e.suspendedLanes|=r,e.pingedLanes&=~r,e=e.expirationTimes;0<r;){var n=31-Mt(r),s=1<<n;e[n]=-1,r&=~s}}function Mf(e){if((Ce&6)!==0)throw Error(i(327));Rn();var r=pi(e,0);if((r&1)===0)return mt(e,Be()),null;var n=is(e,r);if(e.tag!==0&&n===2){var s=cl(e);s!==0&&(r=s,n=Pa(e,s))}if(n===1)throw n=Lo,Jr(e,0),Nr(e,r),mt(e,Be()),n;if(n===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=r,Kr(e,ht,ur),mt(e,Be()),null}function La(e,r){var n=Ce;Ce|=1;try{return e(r)}finally{Ce=n,Ce===0&&(Nn=Be()+500,_i&&wr())}}function Gr(e){Er!==null&&Er.tag===0&&(Ce&6)===0&&Rn();var r=Ce;Ce|=1;var n=Tt.transition,s=$e;try{if(Tt.transition=null,$e=1,e)return e()}finally{$e=s,Tt.transition=n,Ce=r,(Ce&6)===0&&wr()}}function Ia(){kt=bn.current,Ie(bn)}function Jr(e,r){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Xv(n)),He!==null)for(n=He.return;n!==null;){var s=n;switch(Vl(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&Ti();break;case 3:Cn(),Ie(dt),Ie(rt),ra();break;case 5:ea(s);break;case 4:Cn();break;case 13:Ie(De);break;case 19:Ie(De);break;case 10:Ql(s.type._context);break;case 22:case 23:Ia()}n=n.return}if(Qe=e,He=e=Rr(e.current,null),tt=kt=r,Je=0,Lo=null,Na=Zi=Wr=0,ht=Io=null,Ur!==null){for(r=0;r<Ur.length;r++)if(n=Ur[r],s=n.interleaved,s!==null){n.interleaved=null;var a=s.next,c=n.pending;if(c!==null){var m=c.next;c.next=a,s.next=m}n.pending=s}Ur=null}return e}function Df(e,r){do{var n=He;try{if(Kl(),Ui.current=Gi,Vi){for(var s=ze.memoizedState;s!==null;){var a=s.queue;a!==null&&(a.pending=null),s=s.next}Vi=!1}if(Hr=0,Ke=Ge=ze=null,No=!1,Ro=0,ba.current=null,n===null||n.return===null){Je=1,Lo=r,He=null;break}e:{var c=e,m=n.return,w=n,C=r;if(r=tt,w.flags|=32768,C!==null&&typeof C=="object"&&typeof C.then=="function"){var L=C,B=w,V=B.tag;if((B.mode&1)===0&&(V===0||V===11||V===15)){var F=B.alternate;F?(B.updateQueue=F.updateQueue,B.memoizedState=F.memoizedState,B.lanes=F.lanes):(B.updateQueue=null,B.memoizedState=null)}var X=uf(m);if(X!==null){X.flags&=-257,cf(X,m,w,c,r),X.mode&1&&af(c,L,r),r=X,C=L;var te=r.updateQueue;if(te===null){var re=new Set;re.add(C),r.updateQueue=re}else te.add(C);break e}else{if((r&1)===0){af(c,L,r),Oa();break e}C=Error(i(426))}}else if(Ae&&w.mode&1){var Ue=uf(m);if(Ue!==null){(Ue.flags&65536)===0&&(Ue.flags|=256),cf(Ue,m,w,c,r),Gl(jn(C,w));break e}}c=C=jn(C,w),Je!==4&&(Je=2),Io===null?Io=[c]:Io.push(c),c=m;do{switch(c.tag){case 3:c.flags|=65536,r&=-r,c.lanes|=r;var P=sf(c,C,r);_d(c,P);break e;case 1:w=C;var b=c.type,_=c.stateNode;if((c.flags&128)===0&&(typeof b.getDerivedStateFromError=="function"||_!==null&&typeof _.componentDidCatch=="function"&&(jr===null||!jr.has(_)))){c.flags|=65536,r&=-r,c.lanes|=r;var W=lf(c,w,r);_d(c,W);break e}}c=c.return}while(c!==null)}Bf(n)}catch(oe){r=oe,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function zf(){var e=Xi.current;return Xi.current=Gi,e===null?Gi:e}function Oa(){(Je===0||Je===3||Je===2)&&(Je=4),Qe===null||(Wr&268435455)===0&&(Zi&268435455)===0||Nr(Qe,tt)}function is(e,r){var n=Ce;Ce|=2;var s=zf();(Qe!==e||tt!==r)&&(ur=null,Jr(e,r));do try{Cy();break}catch(a){Df(e,a)}while(!0);if(Kl(),Ce=n,Xi.current=s,He!==null)throw Error(i(261));return Qe=null,tt=0,Je}function Cy(){for(;He!==null;)Ff(He)}function jy(){for(;He!==null&&!Qg();)Ff(He)}function Ff(e){var r=Hf(e.alternate,e,kt);e.memoizedProps=e.pendingProps,r===null?Bf(e):He=r,ba.current=null}function Bf(e){var r=e;do{var n=r.alternate;if(e=r.return,(r.flags&32768)===0){if(n=gy(n,r,kt),n!==null){He=n;return}}else{if(n=vy(n,r),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,He=null;return}}if(r=r.sibling,r!==null){He=r;return}He=r=e}while(r!==null);Je===0&&(Je=5)}function Kr(e,r,n){var s=$e,a=Tt.transition;try{Tt.transition=null,$e=1,Ey(e,r,n,s)}finally{Tt.transition=a,$e=s}return null}function Ey(e,r,n,s){do Rn();while(Er!==null);if((Ce&6)!==0)throw Error(i(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var c=n.lanes|n.childLanes;if(iv(e,c),e===Qe&&(He=Qe=null,tt=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||ts||(ts=!0,Wf(ui,function(){return Rn(),null})),c=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||c){c=Tt.transition,Tt.transition=null;var m=$e;$e=1;var w=Ce;Ce|=4,ba.current=null,xy(e,n),Pf(n,e),Wv(Ol),gi=!!Il,Ol=Il=null,e.current=n,wy(n),qg(),Ce=w,$e=m,Tt.transition=c}else e.current=n;if(ts&&(ts=!1,Er=e,rs=a),c=e.pendingLanes,c===0&&(jr=null),Zg(n.stateNode),mt(e,Be()),r!==null)for(s=e.onRecoverableError,n=0;n<r.length;n++)a=r[n],s(a.value,{componentStack:a.stack,digest:a.digest});if(es)throw es=!1,e=$a,$a=null,e;return(rs&1)!==0&&e.tag!==0&&Rn(),c=e.pendingLanes,(c&1)!==0?e===Ta?Oo++:(Oo=0,Ta=e):Oo=0,wr(),null}function Rn(){if(Er!==null){var e=Rc(rs),r=Tt.transition,n=$e;try{if(Tt.transition=null,$e=16>e?16:e,Er===null)var s=!1;else{if(e=Er,Er=null,rs=0,(Ce&6)!==0)throw Error(i(331));var a=Ce;for(Ce|=4,Z=e.current;Z!==null;){var c=Z,m=c.child;if((Z.flags&16)!==0){var w=c.deletions;if(w!==null){for(var C=0;C<w.length;C++){var L=w[C];for(Z=L;Z!==null;){var B=Z;switch(B.tag){case 0:case 11:case 15:_o(8,B,c)}var V=B.child;if(V!==null)V.return=B,Z=V;else for(;Z!==null;){B=Z;var F=B.sibling,X=B.return;if(bf(B),B===L){Z=null;break}if(F!==null){F.return=X,Z=F;break}Z=X}}}var te=c.alternate;if(te!==null){var re=te.child;if(re!==null){te.child=null;do{var Ue=re.sibling;re.sibling=null,re=Ue}while(re!==null)}}Z=c}}if((c.subtreeFlags&2064)!==0&&m!==null)m.return=c,Z=m;else e:for(;Z!==null;){if(c=Z,(c.flags&2048)!==0)switch(c.tag){case 0:case 11:case 15:_o(9,c,c.return)}var P=c.sibling;if(P!==null){P.return=c.return,Z=P;break e}Z=c.return}}var b=e.current;for(Z=b;Z!==null;){m=Z;var _=m.child;if((m.subtreeFlags&2064)!==0&&_!==null)_.return=m,Z=_;else e:for(m=b;Z!==null;){if(w=Z,(w.flags&2048)!==0)try{switch(w.tag){case 0:case 11:case 15:Yi(9,w)}}catch(oe){Fe(w,w.return,oe)}if(w===m){Z=null;break e}var W=w.sibling;if(W!==null){W.return=w.return,Z=W;break e}Z=w.return}}if(Ce=a,wr(),Jt&&typeof Jt.onPostCommitFiberRoot=="function")try{Jt.onPostCommitFiberRoot(ci,e)}catch{}s=!0}return s}finally{$e=n,Tt.transition=r}}return!1}function Uf(e,r,n){r=jn(n,r),r=sf(e,r,1),e=kr(e,r,1),r=ut(),e!==null&&(oo(e,1,r),mt(e,r))}function Fe(e,r,n){if(e.tag===3)Uf(e,e,n);else for(;r!==null;){if(r.tag===3){Uf(r,e,n);break}else if(r.tag===1){var s=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(jr===null||!jr.has(s))){e=jn(n,e),e=lf(r,e,1),r=kr(r,e,1),e=ut(),r!==null&&(oo(r,1,e),mt(r,e));break}}r=r.return}}function by(e,r,n){var s=e.pingCache;s!==null&&s.delete(r),r=ut(),e.pingedLanes|=e.suspendedLanes&n,Qe===e&&(tt&n)===n&&(Je===4||Je===3&&(tt&130023424)===tt&&500>Be()-Ra?Jr(e,0):Na|=n),mt(e,r)}function Vf(e,r){r===0&&((e.mode&1)===0?r=1:(r=fi,fi<<=1,(fi&130023424)===0&&(fi=4194304)));var n=ut();e=sr(e,r),e!==null&&(oo(e,r,n),mt(e,n))}function Ny(e){var r=e.memoizedState,n=0;r!==null&&(n=r.retryLane),Vf(e,n)}function Ry(e,r){var n=0;switch(e.tag){case 13:var s=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(r),Vf(e,n)}var Hf;Hf=function(e,r,n){if(e!==null)if(e.memoizedProps!==r.pendingProps||dt.current)pt=!0;else{if((e.lanes&n)===0&&(r.flags&128)===0)return pt=!1,my(e,r,n);pt=(e.flags&131072)!==0}else pt=!1,Ae&&(r.flags&1048576)!==0&&kd(r,Ii,r.index);switch(r.lanes=0,r.tag){case 2:var s=r.type;Qi(e,r),e=r.pendingProps;var a=gn(r,rt.current);kn(r,n),a=ia(null,r,s,e,a,n);var c=sa();return r.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,ft(s)?(c=!0,Pi(r)):c=!1,r.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Xl(r),a.updater=Ji,r.stateNode=a,a._reactInternals=r,fa(r,s,e,n),r=ga(null,r,s,!0,c,n)):(r.tag=0,Ae&&c&&Ul(r),at(null,r,a,n),r=r.child),r;case 16:s=r.elementType;e:{switch(Qi(e,r),e=r.pendingProps,a=s._init,s=a(s._payload),r.type=s,a=r.tag=Ty(s),e=Ft(s,e),a){case 0:r=ma(null,r,s,e,n);break e;case 1:r=gf(null,r,s,e,n);break e;case 11:r=df(null,r,s,e,n);break e;case 14:r=ff(null,r,s,Ft(s.type,e),n);break e}throw Error(i(306,s,""))}return r;case 0:return s=r.type,a=r.pendingProps,a=r.elementType===s?a:Ft(s,a),ma(e,r,s,a,n);case 1:return s=r.type,a=r.pendingProps,a=r.elementType===s?a:Ft(s,a),gf(e,r,s,a,n);case 3:e:{if(vf(r),e===null)throw Error(i(387));s=r.pendingProps,c=r.memoizedState,a=c.element,Pd(e,r),Fi(r,s,null,n);var m=r.memoizedState;if(s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache,pendingSuspenseBoundaries:m.pendingSuspenseBoundaries,transitions:m.transitions},r.updateQueue.baseState=c,r.memoizedState=c,r.flags&256){a=jn(Error(i(423)),r),r=yf(e,r,s,n,a);break e}else if(s!==a){a=jn(Error(i(424)),r),r=yf(e,r,s,n,a);break e}else for(St=vr(r.stateNode.containerInfo.firstChild),wt=r,Ae=!0,zt=null,n=$d(r,null,s,n),r.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(xn(),s===a){r=ar(e,r,n);break e}at(e,r,s,n)}r=r.child}return r;case 5:return Id(r),e===null&&Wl(r),s=r.type,a=r.pendingProps,c=e!==null?e.memoizedProps:null,m=a.children,Al(s,a)?m=null:c!==null&&Al(s,c)&&(r.flags|=32),mf(e,r),at(e,r,m,n),r.child;case 6:return e===null&&Wl(r),null;case 13:return xf(e,r,n);case 4:return Zl(r,r.stateNode.containerInfo),s=r.pendingProps,e===null?r.child=wn(r,null,s,n):at(e,r,s,n),r.child;case 11:return s=r.type,a=r.pendingProps,a=r.elementType===s?a:Ft(s,a),df(e,r,s,a,n);case 7:return at(e,r,r.pendingProps,n),r.child;case 8:return at(e,r,r.pendingProps.children,n),r.child;case 12:return at(e,r,r.pendingProps.children,n),r.child;case 10:e:{if(s=r.type._context,a=r.pendingProps,c=r.memoizedProps,m=a.value,Pe(Mi,s._currentValue),s._currentValue=m,c!==null)if(Dt(c.value,m)){if(c.children===a.children&&!dt.current){r=ar(e,r,n);break e}}else for(c=r.child,c!==null&&(c.return=r);c!==null;){var w=c.dependencies;if(w!==null){m=c.child;for(var C=w.firstContext;C!==null;){if(C.context===s){if(c.tag===1){C=lr(-1,n&-n),C.tag=2;var L=c.updateQueue;if(L!==null){L=L.shared;var B=L.pending;B===null?C.next=C:(C.next=B.next,B.next=C),L.pending=C}}c.lanes|=n,C=c.alternate,C!==null&&(C.lanes|=n),ql(c.return,n,r),w.lanes|=n;break}C=C.next}}else if(c.tag===10)m=c.type===r.type?null:c.child;else if(c.tag===18){if(m=c.return,m===null)throw Error(i(341));m.lanes|=n,w=m.alternate,w!==null&&(w.lanes|=n),ql(m,n,r),m=c.sibling}else m=c.child;if(m!==null)m.return=c;else for(m=c;m!==null;){if(m===r){m=null;break}if(c=m.sibling,c!==null){c.return=m.return,m=c;break}m=m.return}c=m}at(e,r,a.children,n),r=r.child}return r;case 9:return a=r.type,s=r.pendingProps.children,kn(r,n),a=Rt(a),s=s(a),r.flags|=1,at(e,r,s,n),r.child;case 14:return s=r.type,a=Ft(s,r.pendingProps),a=Ft(s.type,a),ff(e,r,s,a,n);case 15:return pf(e,r,r.type,r.pendingProps,n);case 17:return s=r.type,a=r.pendingProps,a=r.elementType===s?a:Ft(s,a),Qi(e,r),r.tag=1,ft(s)?(e=!0,Pi(r)):e=!1,kn(r,n),nf(r,s,a),fa(r,s,a,n),ga(null,r,s,!0,e,n);case 19:return Sf(e,r,n);case 22:return hf(e,r,n)}throw Error(i(156,r.tag))};function Wf(e,r){return Cc(e,r)}function $y(e,r,n,s){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=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pt(e,r,n,s){return new $y(e,r,n,s)}function Aa(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ty(e){if(typeof e=="function")return Aa(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ge)return 11;if(e===Y)return 14}return 2}function Rr(e,r){var n=e.alternate;return n===null?(n=Pt(e.tag,r,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=r,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,r=e.dependencies,n.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ss(e,r,n,s,a,c){var m=2;if(s=e,typeof e=="function")Aa(e)&&(m=1);else if(typeof e=="string")m=5;else e:switch(e){case K:return Qr(n.children,a,c,r);case Q:m=8,a|=8;break;case ue:return e=Pt(12,n,r,a|2),e.elementType=ue,e.lanes=c,e;case Ee:return e=Pt(13,n,r,a),e.elementType=Ee,e.lanes=c,e;case Se:return e=Pt(19,n,r,a),e.elementType=Se,e.lanes=c,e;case ie:return ls(n,a,c,r);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case je:m=10;break e;case Ne:m=9;break e;case ge:m=11;break e;case Y:m=14;break e;case xe:m=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return r=Pt(m,n,r,a),r.elementType=e,r.type=s,r.lanes=c,r}function Qr(e,r,n,s){return e=Pt(7,e,s,r),e.lanes=n,e}function ls(e,r,n,s){return e=Pt(22,e,s,r),e.elementType=ie,e.lanes=n,e.stateNode={isHidden:!1},e}function Ma(e,r,n){return e=Pt(6,e,null,r),e.lanes=n,e}function Da(e,r,n){return r=Pt(4,e.children!==null?e.children:[],e.key,r),r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function Py(e,r,n,s,a){this.tag=r,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=s,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function za(e,r,n,s,a,c,m,w,C){return e=new Py(e,r,n,w,C),r===1?(r=1,c===!0&&(r|=8)):r=0,c=Pt(3,null,null,r),e.current=c,c.stateNode=e,c.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Xl(c),e}function _y(e,r,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:H,key:s==null?null:""+s,children:e,containerInfo:r,implementation:n}}function Gf(e){if(!e)return xr;e=e._reactInternals;e:{if(Mr(e)!==e||e.tag!==1)throw Error(i(170));var r=e;do{switch(r.tag){case 3:r=r.stateNode.context;break e;case 1:if(ft(r.type)){r=r.stateNode.__reactInternalMemoizedMergedChildContext;break e}}r=r.return}while(r!==null);throw Error(i(171))}if(e.tag===1){var n=e.type;if(ft(n))return xd(e,n,r)}return r}function Jf(e,r,n,s,a,c,m,w,C){return e=za(n,s,!0,e,a,c,m,w,C),e.context=Gf(null),n=e.current,s=ut(),a=br(n),c=lr(s,a),c.callback=r??null,kr(n,c,a),e.current.lanes=a,oo(e,a,s),mt(e,s),e}function as(e,r,n,s){var a=r.current,c=ut(),m=br(a);return n=Gf(n),r.context===null?r.context=n:r.pendingContext=n,r=lr(c,m),r.payload={element:e},s=s===void 0?null:s,s!==null&&(r.callback=s),e=kr(a,r,m),e!==null&&(Vt(e,a,m,c),zi(e,a,m)),m}function us(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 Kf(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<r?n:r}}function Fa(e,r){Kf(e,r),(e=e.alternate)&&Kf(e,r)}function Ly(){return null}var Qf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ba(e){this._internalRoot=e}cs.prototype.render=Ba.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(i(409));as(e,r,null,null)},cs.prototype.unmount=Ba.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Gr(function(){as(null,e,null,null)}),r[rr]=null}};function cs(e){this._internalRoot=e}cs.prototype.unstable_scheduleHydration=function(e){if(e){var r=Pc();e={blockedOn:null,target:e,priority:r};for(var n=0;n<hr.length&&r!==0&&r<hr[n].priority;n++);hr.splice(n,0,e),n===0&&Ic(e)}};function Ua(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ds(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qf(){}function Iy(e,r,n,s,a){if(a){if(typeof s=="function"){var c=s;s=function(){var L=us(m);c.call(L)}}var m=Jf(r,s,e,0,null,!1,!1,"",qf);return e._reactRootContainer=m,e[rr]=m.current,xo(e.nodeType===8?e.parentNode:e),Gr(),m}for(;a=e.lastChild;)e.removeChild(a);if(typeof s=="function"){var w=s;s=function(){var L=us(C);w.call(L)}}var C=za(e,0,!1,null,null,!1,!1,"",qf);return e._reactRootContainer=C,e[rr]=C.current,xo(e.nodeType===8?e.parentNode:e),Gr(function(){as(r,C,n,s)}),C}function fs(e,r,n,s,a){var c=n._reactRootContainer;if(c){var m=c;if(typeof a=="function"){var w=a;a=function(){var C=us(m);w.call(C)}}as(r,m,e,a)}else m=Iy(n,r,e,a,s);return us(m)}$c=function(e){switch(e.tag){case 3:var r=e.stateNode;if(r.current.memoizedState.isDehydrated){var n=no(r.pendingLanes);n!==0&&(fl(r,n|1),mt(r,Be()),(Ce&6)===0&&(Nn=Be()+500,wr()))}break;case 13:Gr(function(){var s=sr(e,1);if(s!==null){var a=ut();Vt(s,e,1,a)}}),Fa(e,1)}},pl=function(e){if(e.tag===13){var r=sr(e,134217728);if(r!==null){var n=ut();Vt(r,e,134217728,n)}Fa(e,134217728)}},Tc=function(e){if(e.tag===13){var r=br(e),n=sr(e,r);if(n!==null){var s=ut();Vt(n,e,r,s)}Fa(e,r)}},Pc=function(){return $e},_c=function(e,r){var n=$e;try{return $e=e,r()}finally{$e=n}},il=function(e,r,n){switch(r){case"input":if(Ys(e,n),r=n.name,n.type==="radio"&&r!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+r)+'][type="radio"]'),r=0;r<n.length;r++){var s=n[r];if(s!==e&&s.form===e.form){var a=$i(s);if(!a)throw Error(i(90));At(s),Ys(s,a)}}}break;case"textarea":lc(e,n);break;case"select":r=n.value,r!=null&&nn(e,!!n.multiple,r,!1)}},gc=La,vc=Gr;var Oy={usingClientEntryPoint:!1,Events:[ko,hn,$i,hc,mc,La]},Ao={findFiberByHostInstance:Dr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Ay={bundleType:Ao.bundleType,version:Ao.version,rendererPackageName:Ao.rendererPackageName,rendererConfig:Ao.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Sc(e),e===null?null:e.stateNode},findFiberByHostInstance:Ao.findFiberByHostInstance||Ly,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 ps=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ps.isDisabled&&ps.supportsFiber)try{ci=ps.inject(Ay),Jt=ps}catch{}}return gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Oy,gt.createPortal=function(e,r){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ua(r))throw Error(i(200));return _y(e,r,null,n)},gt.createRoot=function(e,r){if(!Ua(e))throw Error(i(299));var n=!1,s="",a=Qf;return r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(s=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),r=za(e,1,!1,null,null,n,!1,s,a),e[rr]=r.current,xo(e.nodeType===8?e.parentNode:e),new Ba(r)},gt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=Sc(r),e=e===null?null:e.stateNode,e},gt.flushSync=function(e){return Gr(e)},gt.hydrate=function(e,r,n){if(!ds(r))throw Error(i(200));return fs(null,e,r,!0,n)},gt.hydrateRoot=function(e,r,n){if(!Ua(e))throw Error(i(405));var s=n!=null&&n.hydratedSources||null,a=!1,c="",m=Qf;if(n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onRecoverableError!==void 0&&(m=n.onRecoverableError)),r=Jf(r,null,e,1,n??null,a,!1,c,m),e[rr]=r.current,xo(e),s)for(e=0;e<s.length;e++)n=s[e],a=n._getVersion,a=a(n._source),r.mutableSourceEagerHydrationData==null?r.mutableSourceEagerHydrationData=[n,a]:r.mutableSourceEagerHydrationData.push(n,a);return new cs(r)},gt.render=function(e,r,n){if(!ds(r))throw Error(i(200));return fs(null,e,r,!1,n)},gt.unmountComponentAtNode=function(e){if(!ds(e))throw Error(i(40));return e._reactRootContainer?(Gr(function(){fs(null,null,e,!1,function(){e._reactRootContainer=null,e[rr]=null})}),!0):!1},gt.unstable_batchedUpdates=La,gt.unstable_renderSubtreeIntoContainer=function(e,r,n,s){if(!ds(n))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return fs(e,r,n,!1,s)},gt.version="18.3.1-next-f1338f8080-20240426",gt}var rp;function Wy(){if(rp)return Ha.exports;rp=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(o){console.error(o)}}return t(),Ha.exports=Hy(),Ha.exports}var np;function Gy(){if(np)return hs;np=1;var t=Wy();return hs.createRoot=t.createRoot,hs.hydrateRoot=t.hydrateRoot,hs}var Jy=Gy(),Ja={exports:{}},Do={};/**
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 op;function Ky(){if(op)return Do;op=1;var t=_u(),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,f={key:!0,ref:!0,__self:!0,__source:!0};function p(h,g,v){var y,x={},S=null,$=null;v!==void 0&&(S=""+v),g.key!==void 0&&(S=""+g.key),g.ref!==void 0&&($=g.ref);for(y in g)l.call(g,y)&&!f.hasOwnProperty(y)&&(x[y]=g[y]);if(h&&h.defaultProps)for(y in g=h.defaultProps,g)x[y]===void 0&&(x[y]=g[y]);return{$$typeof:o,type:h,key:S,ref:$,props:x,_owner:u.current}}return Do.Fragment=i,Do.jsx=p,Do.jsxs=p,Do}var ip;function Qy(){return ip||(ip=1,Ja.exports=Ky()),Ja.exports}var d=Qy(),Xe=function(){return Xe=Object.assign||function(o){for(var i,l=1,u=arguments.length;l<u;l++){i=arguments[l];for(var f in i)Object.prototype.hasOwnProperty.call(i,f)&&(o[f]=i[f])}return o},Xe.apply(this,arguments)};function zn(t,o,i){if(i||arguments.length===2)for(var l=0,u=o.length,f;l<u;l++)(f||!(l in o))&&(f||(f=Array.prototype.slice.call(o,0,l)),f[l]=o[l]);return t.concat(f||Array.prototype.slice.call(o))}var Oe="-ms-",Ko="-moz-",Re="-webkit-",th="comm",Ms="rule",Lu="decl",qy="@import",rh="@keyframes",Yy="@layer",nh=Math.abs,Iu=String.fromCharCode,au=Object.assign;function Xy(t,o){return Ye(t,0)^45?(((o<<2^Ye(t,0))<<2^Ye(t,1))<<2^Ye(t,2))<<2^Ye(t,3):0}function oh(t){return t.trim()}function cr(t,o){return(t=o.exec(t))?t[0]:t}function ye(t,o,i){return t.replace(o,i)}function xs(t,o,i){return t.indexOf(o,i)}function Ye(t,o){return t.charCodeAt(o)|0}function Fn(t,o,i){return t.slice(o,i)}function er(t){return t.length}function ih(t){return t.length}function Go(t,o){return o.push(t),t}function Zy(t,o){return t.map(o).join("")}function sp(t,o){return t.filter(function(i){return!cr(i,o)})}var Ds=1,Bn=1,sh=0,It=0,We=0,Wn="";function zs(t,o,i,l,u,f,p,h){return{value:t,root:o,parent:i,type:l,props:u,children:f,line:Ds,column:Bn,length:p,return:"",siblings:h}}function Tr(t,o){return au(zs("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},o)}function $n(t){for(;t.root;)t=Tr(t.root,{children:[t]});Go(t,t.siblings)}function e0(){return We}function t0(){return We=It>0?Ye(Wn,--It):0,Bn--,We===10&&(Bn=1,Ds--),We}function Ht(){return We=It<sh?Ye(Wn,It++):0,Bn++,We===10&&(Bn=1,Ds++),We}function Xr(){return Ye(Wn,It)}function ws(){return It}function Fs(t,o){return Fn(Wn,t,o)}function uu(t){switch(t){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 r0(t){return Ds=Bn=1,sh=er(Wn=t),It=0,[]}function n0(t){return Wn="",t}function Ka(t){return oh(Fs(It-1,cu(t===91?t+2:t===40?t+1:t)))}function o0(t){for(;(We=Xr())&&We<33;)Ht();return uu(t)>2||uu(We)>3?"":" "}function i0(t,o){for(;--o&&Ht()&&!(We<48||We>102||We>57&&We<65||We>70&&We<97););return Fs(t,ws()+(o<6&&Xr()==32&&Ht()==32))}function cu(t){for(;Ht();)switch(We){case t:return It;case 34:case 39:t!==34&&t!==39&&cu(We);break;case 40:t===41&&cu(t);break;case 92:Ht();break}return It}function s0(t,o){for(;Ht()&&t+We!==57;)if(t+We===84&&Xr()===47)break;return"/*"+Fs(o,It-1)+"*"+Iu(t===47?t:Ht())}function l0(t){for(;!uu(Xr());)Ht();return Fs(t,It)}function a0(t){return n0(Ss("",null,null,null,[""],t=r0(t),0,[0],t))}function Ss(t,o,i,l,u,f,p,h,g){for(var v=0,y=0,x=p,S=0,$=0,E=0,N=1,T=1,I=1,M=0,D="",U=u,J=f,H=l,K=D;T;)switch(E=M,M=Ht()){case 40:if(E!=108&&Ye(K,x-1)==58){xs(K+=ye(Ka(M),"&","&\f"),"&\f",nh(v?h[v-1]:0))!=-1&&(I=-1);break}case 34:case 39:case 91:K+=Ka(M);break;case 9:case 10:case 13:case 32:K+=o0(E);break;case 92:K+=i0(ws()-1,7);continue;case 47:switch(Xr()){case 42:case 47:Go(u0(s0(Ht(),ws()),o,i,g),g);break;default:K+="/"}break;case 123*N:h[v++]=er(K)*I;case 125*N:case 59:case 0:switch(M){case 0:case 125:T=0;case 59+y:I==-1&&(K=ye(K,/\f/g,"")),$>0&&er(K)-x&&Go($>32?ap(K+";",l,i,x-1,g):ap(ye(K," ","")+";",l,i,x-2,g),g);break;case 59:K+=";";default:if(Go(H=lp(K,o,i,v,y,u,h,D,U=[],J=[],x,f),f),M===123)if(y===0)Ss(K,o,H,H,U,f,x,h,J);else switch(S===99&&Ye(K,3)===110?100:S){case 100:case 108:case 109:case 115:Ss(t,H,H,l&&Go(lp(t,H,H,0,0,u,h,D,u,U=[],x,J),J),u,J,x,h,l?U:J);break;default:Ss(K,H,H,H,[""],J,0,h,J)}}v=y=$=0,N=I=1,D=K="",x=p;break;case 58:x=1+er(K),$=E;default:if(N<1){if(M==123)--N;else if(M==125&&N++==0&&t0()==125)continue}switch(K+=Iu(M),M*N){case 38:I=y>0?1:(K+="\f",-1);break;case 44:h[v++]=(er(K)-1)*I,I=1;break;case 64:Xr()===45&&(K+=Ka(Ht())),S=Xr(),y=x=er(D=K+=l0(ws())),M++;break;case 45:E===45&&er(K)==2&&(N=0)}}return f}function lp(t,o,i,l,u,f,p,h,g,v,y,x){for(var S=u-1,$=u===0?f:[""],E=ih($),N=0,T=0,I=0;N<l;++N)for(var M=0,D=Fn(t,S+1,S=nh(T=p[N])),U=t;M<E;++M)(U=oh(T>0?$[M]+" "+D:ye(D,/&\f/g,$[M])))&&(g[I++]=U);return zs(t,o,i,u===0?Ms:h,g,v,y,x)}function u0(t,o,i,l){return zs(t,o,i,th,Iu(e0()),Fn(t,2,-2),0,l)}function ap(t,o,i,l,u){return zs(t,o,i,Lu,Fn(t,0,l),Fn(t,l+1,-1),l,u)}function lh(t,o,i){switch(Xy(t,o)){case 5103:return Re+"print-"+t+t;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 Re+t+t;case 4789:return Ko+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Re+t+Ko+t+Oe+t+t;case 5936:switch(Ye(t,o+11)){case 114:return Re+t+Oe+ye(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Re+t+Oe+ye(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Re+t+Oe+ye(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return Re+t+Oe+t+t;case 6165:return Re+t+Oe+"flex-"+t+t;case 5187:return Re+t+ye(t,/(\w+).+(:[^]+)/,Re+"box-$1$2"+Oe+"flex-$1$2")+t;case 5443:return Re+t+Oe+"flex-item-"+ye(t,/flex-|-self/g,"")+(cr(t,/flex-|baseline/)?"":Oe+"grid-row-"+ye(t,/flex-|-self/g,""))+t;case 4675:return Re+t+Oe+"flex-line-pack"+ye(t,/align-content|flex-|-self/g,"")+t;case 5548:return Re+t+Oe+ye(t,"shrink","negative")+t;case 5292:return Re+t+Oe+ye(t,"basis","preferred-size")+t;case 6060:return Re+"box-"+ye(t,"-grow","")+Re+t+Oe+ye(t,"grow","positive")+t;case 4554:return Re+ye(t,/([^-])(transform)/g,"$1"+Re+"$2")+t;case 6187:return ye(ye(ye(t,/(zoom-|grab)/,Re+"$1"),/(image-set)/,Re+"$1"),t,"")+t;case 5495:case 3959:return ye(t,/(image-set\([^]*)/,Re+"$1$`$1");case 4968:return ye(ye(t,/(.+:)(flex-)?(.*)/,Re+"box-pack:$3"+Oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Re+t+t;case 4200:if(!cr(t,/flex-|baseline/))return Oe+"grid-column-align"+Fn(t,o)+t;break;case 2592:case 3360:return Oe+ye(t,"template-","")+t;case 4384:case 3616:return i&&i.some(function(l,u){return o=u,cr(l.props,/grid-\w+-end/)})?~xs(t+(i=i[o].value),"span",0)?t:Oe+ye(t,"-start","")+t+Oe+"grid-row-span:"+(~xs(i,"span",0)?cr(i,/\d+/):+cr(i,/\d+/)-+cr(t,/\d+/))+";":Oe+ye(t,"-start","")+t;case 4896:case 4128:return i&&i.some(function(l){return cr(l.props,/grid-\w+-start/)})?t:Oe+ye(ye(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return ye(t,/(.+)-inline(.+)/,Re+"$1$2")+t;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(er(t)-1-o>6)switch(Ye(t,o+1)){case 109:if(Ye(t,o+4)!==45)break;case 102:return ye(t,/(.+:)(.+)-([^]+)/,"$1"+Re+"$2-$3$1"+Ko+(Ye(t,o+3)==108?"$3":"$2-$3"))+t;case 115:return~xs(t,"stretch",0)?lh(ye(t,"stretch","fill-available"),o,i)+t:t}break;case 5152:case 5920:return ye(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(l,u,f,p,h,g,v){return Oe+u+":"+f+v+(p?Oe+u+"-span:"+(h?g:+g-+f)+v:"")+t});case 4949:if(Ye(t,o+6)===121)return ye(t,":",":"+Re)+t;break;case 6444:switch(Ye(t,Ye(t,14)===45?18:11)){case 120:return ye(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Re+(Ye(t,14)===45?"inline-":"")+"box$3$1"+Re+"$2$3$1"+Oe+"$2box$3")+t;case 100:return ye(t,":",":"+Oe)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ye(t,"scroll-","scroll-snap-")+t}return t}function $s(t,o){for(var i="",l=0;l<t.length;l++)i+=o(t[l],l,t,o)||"";return i}function c0(t,o,i,l){switch(t.type){case Yy:if(t.children.length)break;case qy:case Lu:return t.return=t.return||t.value;case th:return"";case rh:return t.return=t.value+"{"+$s(t.children,l)+"}";case Ms:if(!er(t.value=t.props.join(",")))return""}return er(i=$s(t.children,l))?t.return=t.value+"{"+i+"}":""}function d0(t){var o=ih(t);return function(i,l,u,f){for(var p="",h=0;h<o;h++)p+=t[h](i,l,u,f)||"";return p}}function f0(t){return function(o){o.root||(o=o.return)&&t(o)}}function p0(t,o,i,l){if(t.length>-1&&!t.return)switch(t.type){case Lu:t.return=lh(t.value,t.length,i);return;case rh:return $s([Tr(t,{value:ye(t.value,"@","@"+Re)})],l);case Ms:if(t.length)return Zy(i=t.props,function(u){switch(cr(u,l=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$n(Tr(t,{props:[ye(u,/:(read-\w+)/,":"+Ko+"$1")]})),$n(Tr(t,{props:[u]})),au(t,{props:sp(i,l)});break;case"::placeholder":$n(Tr(t,{props:[ye(u,/:(plac\w+)/,":"+Re+"input-$1")]})),$n(Tr(t,{props:[ye(u,/:(plac\w+)/,":"+Ko+"$1")]})),$n(Tr(t,{props:[ye(u,/:(plac\w+)/,Oe+"input-$1")]})),$n(Tr(t,{props:[u]})),au(t,{props:sp(i,l)});break}return""})}}var h0={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},Ct={},Un=typeof process<"u"&&Ct!==void 0&&(Ct.REACT_APP_SC_ATTR||Ct.SC_ATTR)||"data-styled",ah="active",uh="data-styled-version",Bs="6.1.13",Ou=`/*!sc*/
41
- `,Ts=typeof window<"u"&&"HTMLElement"in window,m0=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&Ct!==void 0&&Ct.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&Ct.REACT_APP_SC_DISABLE_SPEEDY!==""?Ct.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&Ct.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&Ct!==void 0&&Ct.SC_DISABLE_SPEEDY!==void 0&&Ct.SC_DISABLE_SPEEDY!==""&&Ct.SC_DISABLE_SPEEDY!=="false"&&Ct.SC_DISABLE_SPEEDY),g0={},Us=Object.freeze([]),Vn=Object.freeze({});function ch(t,o,i){return i===void 0&&(i=Vn),t.theme!==i.theme&&t.theme||o||i.theme}var dh=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"]),v0=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,y0=/(^-|-$)/g;function up(t){return t.replace(v0,"-").replace(y0,"")}var x0=/(a)(d)/gi,ms=52,cp=function(t){return String.fromCharCode(t+(t>25?39:97))};function du(t){var o,i="";for(o=Math.abs(t);o>ms;o=o/ms|0)i=cp(o%ms)+i;return(cp(o%ms)+i).replace(x0,"$1-$2")}var Qa,fh=5381,Ln=function(t,o){for(var i=o.length;i;)t=33*t^o.charCodeAt(--i);return t},ph=function(t){return Ln(fh,t)};function Au(t){return du(ph(t)>>>0)}function w0(t){return t.displayName||t.name||"Component"}function qa(t){return typeof t=="string"&&!0}var hh=typeof Symbol=="function"&&Symbol.for,mh=hh?Symbol.for("react.memo"):60115,S0=hh?Symbol.for("react.forward_ref"):60112,k0={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},C0={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gh={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},j0=((Qa={})[S0]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qa[mh]=gh,Qa);function dp(t){return("type"in(o=t)&&o.type.$$typeof)===mh?gh:"$$typeof"in t?j0[t.$$typeof]:k0;var o}var E0=Object.defineProperty,b0=Object.getOwnPropertyNames,fp=Object.getOwnPropertySymbols,N0=Object.getOwnPropertyDescriptor,R0=Object.getPrototypeOf,pp=Object.prototype;function vh(t,o,i){if(typeof o!="string"){if(pp){var l=R0(o);l&&l!==pp&&vh(t,l,i)}var u=b0(o);fp&&(u=u.concat(fp(o)));for(var f=dp(t),p=dp(o),h=0;h<u.length;++h){var g=u[h];if(!(g in C0||i&&i[g]||p&&g in p||f&&g in f)){var v=N0(o,g);try{E0(t,g,v)}catch{}}}}return t}function en(t){return typeof t=="function"}function Mu(t){return typeof t=="object"&&"styledComponentId"in t}function qr(t,o){return t&&o?"".concat(t," ").concat(o):t||o||""}function Ps(t,o){if(t.length===0)return"";for(var i=t[0],l=1;l<t.length;l++)i+=t[l];return i}function Qo(t){return t!==null&&typeof t=="object"&&t.constructor.name===Object.name&&!("props"in t&&t.$$typeof)}function fu(t,o,i){if(i===void 0&&(i=!1),!i&&!Qo(t)&&!Array.isArray(t))return o;if(Array.isArray(o))for(var l=0;l<o.length;l++)t[l]=fu(t[l],o[l]);else if(Qo(o))for(var l in o)t[l]=fu(t[l],o[l]);return t}function Du(t,o){Object.defineProperty(t,"toString",{value:o})}function Lr(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(o.length>0?" Args: ".concat(o.join(", ")):""))}var $0=function(){function t(o){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=o}return t.prototype.indexOfGroup=function(o){for(var i=0,l=0;l<o;l++)i+=this.groupSizes[l];return i},t.prototype.insertRules=function(o,i){if(o>=this.groupSizes.length){for(var l=this.groupSizes,u=l.length,f=u;o>=f;)if((f<<=1)<0)throw Lr(16,"".concat(o));this.groupSizes=new Uint32Array(f),this.groupSizes.set(l),this.length=f;for(var p=u;p<f;p++)this.groupSizes[p]=0}for(var h=this.indexOfGroup(o+1),g=(p=0,i.length);p<g;p++)this.tag.insertRule(h,i[p])&&(this.groupSizes[o]++,h++)},t.prototype.clearGroup=function(o){if(o<this.length){var i=this.groupSizes[o],l=this.indexOfGroup(o),u=l+i;this.groupSizes[o]=0;for(var f=l;f<u;f++)this.tag.deleteRule(l)}},t.prototype.getGroup=function(o){var i="";if(o>=this.length||this.groupSizes[o]===0)return i;for(var l=this.groupSizes[o],u=this.indexOfGroup(o),f=u+l,p=u;p<f;p++)i+="".concat(this.tag.getRule(p)).concat(Ou);return i},t}(),ks=new Map,_s=new Map,Cs=1,gs=function(t){if(ks.has(t))return ks.get(t);for(;_s.has(Cs);)Cs++;var o=Cs++;return ks.set(t,o),_s.set(o,t),o},T0=function(t,o){Cs=o+1,ks.set(t,o),_s.set(o,t)},P0="style[".concat(Un,"][").concat(uh,'="').concat(Bs,'"]'),_0=new RegExp("^".concat(Un,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),L0=function(t,o,i){for(var l,u=i.split(","),f=0,p=u.length;f<p;f++)(l=u[f])&&t.registerName(o,l)},I0=function(t,o){for(var i,l=((i=o.textContent)!==null&&i!==void 0?i:"").split(Ou),u=[],f=0,p=l.length;f<p;f++){var h=l[f].trim();if(h){var g=h.match(_0);if(g){var v=0|parseInt(g[1],10),y=g[2];v!==0&&(T0(y,v),L0(t,y,g[3]),t.getTag().insertRules(v,u)),u.length=0}else u.push(h)}}},hp=function(t){for(var o=document.querySelectorAll(P0),i=0,l=o.length;i<l;i++){var u=o[i];u&&u.getAttribute(Un)!==ah&&(I0(t,u),u.parentNode&&u.parentNode.removeChild(u))}};function O0(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var yh=function(t){var o=document.head,i=t||o,l=document.createElement("style"),u=function(h){var g=Array.from(h.querySelectorAll("style[".concat(Un,"]")));return g[g.length-1]}(i),f=u!==void 0?u.nextSibling:null;l.setAttribute(Un,ah),l.setAttribute(uh,Bs);var p=O0();return p&&l.setAttribute("nonce",p),i.insertBefore(l,f),l},A0=function(){function t(o){this.element=yh(o),this.element.appendChild(document.createTextNode("")),this.sheet=function(i){if(i.sheet)return i.sheet;for(var l=document.styleSheets,u=0,f=l.length;u<f;u++){var p=l[u];if(p.ownerNode===i)return p}throw Lr(17)}(this.element),this.length=0}return t.prototype.insertRule=function(o,i){try{return this.sheet.insertRule(i,o),this.length++,!0}catch{return!1}},t.prototype.deleteRule=function(o){this.sheet.deleteRule(o),this.length--},t.prototype.getRule=function(o){var i=this.sheet.cssRules[o];return i&&i.cssText?i.cssText:""},t}(),M0=function(){function t(o){this.element=yh(o),this.nodes=this.element.childNodes,this.length=0}return t.prototype.insertRule=function(o,i){if(o<=this.length&&o>=0){var l=document.createTextNode(i);return this.element.insertBefore(l,this.nodes[o]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(o){this.element.removeChild(this.nodes[o]),this.length--},t.prototype.getRule=function(o){return o<this.length?this.nodes[o].textContent:""},t}(),D0=function(){function t(o){this.rules=[],this.length=0}return t.prototype.insertRule=function(o,i){return o<=this.length&&(this.rules.splice(o,0,i),this.length++,!0)},t.prototype.deleteRule=function(o){this.rules.splice(o,1),this.length--},t.prototype.getRule=function(o){return o<this.length?this.rules[o]:""},t}(),mp=Ts,z0={isServer:!Ts,useCSSOMInjection:!m0},Ls=function(){function t(o,i,l){o===void 0&&(o=Vn),i===void 0&&(i={});var u=this;this.options=Xe(Xe({},z0),o),this.gs=i,this.names=new Map(l),this.server=!!o.isServer,!this.server&&Ts&&mp&&(mp=!1,hp(this)),Du(this,function(){return function(f){for(var p=f.getTag(),h=p.length,g="",v=function(x){var S=function(I){return _s.get(I)}(x);if(S===void 0)return"continue";var $=f.names.get(S),E=p.getGroup(x);if($===void 0||!$.size||E.length===0)return"continue";var N="".concat(Un,".g").concat(x,'[id="').concat(S,'"]'),T="";$!==void 0&&$.forEach(function(I){I.length>0&&(T+="".concat(I,","))}),g+="".concat(E).concat(N,'{content:"').concat(T,'"}').concat(Ou)},y=0;y<h;y++)v(y);return g}(u)})}return t.registerId=function(o){return gs(o)},t.prototype.rehydrate=function(){!this.server&&Ts&&hp(this)},t.prototype.reconstructWithOptions=function(o,i){return i===void 0&&(i=!0),new t(Xe(Xe({},this.options),o),this.gs,i&&this.names||void 0)},t.prototype.allocateGSInstance=function(o){return this.gs[o]=(this.gs[o]||0)+1},t.prototype.getTag=function(){return this.tag||(this.tag=(o=function(i){var l=i.useCSSOMInjection,u=i.target;return i.isServer?new D0(u):l?new A0(u):new M0(u)}(this.options),new $0(o)));var o},t.prototype.hasNameForId=function(o,i){return this.names.has(o)&&this.names.get(o).has(i)},t.prototype.registerName=function(o,i){if(gs(o),this.names.has(o))this.names.get(o).add(i);else{var l=new Set;l.add(i),this.names.set(o,l)}},t.prototype.insertRules=function(o,i,l){this.registerName(o,i),this.getTag().insertRules(gs(o),l)},t.prototype.clearNames=function(o){this.names.has(o)&&this.names.get(o).clear()},t.prototype.clearRules=function(o){this.getTag().clearGroup(gs(o)),this.clearNames(o)},t.prototype.clearTag=function(){this.tag=void 0},t}(),F0=/&/g,B0=/^\s*\/\/.*$/gm;function xh(t,o){return t.map(function(i){return i.type==="rule"&&(i.value="".concat(o," ").concat(i.value),i.value=i.value.replaceAll(",",",".concat(o," ")),i.props=i.props.map(function(l){return"".concat(o," ").concat(l)})),Array.isArray(i.children)&&i.type!=="@keyframes"&&(i.children=xh(i.children,o)),i})}function U0(t){var o,i,l,u=Vn,f=u.options,p=f===void 0?Vn:f,h=u.plugins,g=h===void 0?Us:h,v=function(S,$,E){return E.startsWith(i)&&E.endsWith(i)&&E.replaceAll(i,"").length>0?".".concat(o):S},y=g.slice();y.push(function(S){S.type===Ms&&S.value.includes("&")&&(S.props[0]=S.props[0].replace(F0,i).replace(l,v))}),p.prefix&&y.push(p0),y.push(c0);var x=function(S,$,E,N){$===void 0&&($=""),E===void 0&&(E=""),N===void 0&&(N="&"),o=N,i=$,l=new RegExp("\\".concat(i,"\\b"),"g");var T=S.replace(B0,""),I=a0(E||$?"".concat(E," ").concat($," { ").concat(T," }"):T);p.namespace&&(I=xh(I,p.namespace));var M=[];return $s(I,d0(y.concat(f0(function(D){return M.push(D)})))),M};return x.hash=g.length?g.reduce(function(S,$){return $.name||Lr(15),Ln(S,$.name)},fh).toString():"",x}var V0=new Ls,pu=U0(),wh=ct.createContext({shouldForwardProp:void 0,styleSheet:V0,stylis:pu});wh.Consumer;ct.createContext(void 0);function hu(){return j.useContext(wh)}var Sh=function(){function t(o,i){var l=this;this.inject=function(u,f){f===void 0&&(f=pu);var p=l.name+f.hash;u.hasNameForId(l.id,p)||u.insertRules(l.id,p,f(l.rules,p,"@keyframes"))},this.name=o,this.id="sc-keyframes-".concat(o),this.rules=i,Du(this,function(){throw Lr(12,String(l.name))})}return t.prototype.getName=function(o){return o===void 0&&(o=pu),this.name+o.hash},t}(),H0=function(t){return t>="A"&&t<="Z"};function gp(t){for(var o="",i=0;i<t.length;i++){var l=t[i];if(i===1&&l==="-"&&t[0]==="-")return t;H0(l)?o+="-"+l.toLowerCase():o+=l}return o.startsWith("ms-")?"-"+o:o}var kh=function(t){return t==null||t===!1||t===""},Ch=function(t){var o,i,l=[];for(var u in t){var f=t[u];t.hasOwnProperty(u)&&!kh(f)&&(Array.isArray(f)&&f.isCss||en(f)?l.push("".concat(gp(u),":"),f,";"):Qo(f)?l.push.apply(l,zn(zn(["".concat(u," {")],Ch(f),!1),["}"],!1)):l.push("".concat(gp(u),": ").concat((o=u,(i=f)==null||typeof i=="boolean"||i===""?"":typeof i!="number"||i===0||o in h0||o.startsWith("--")?String(i).trim():"".concat(i,"px")),";")))}return l};function Pr(t,o,i,l){if(kh(t))return[];if(Mu(t))return[".".concat(t.styledComponentId)];if(en(t)){if(!en(f=t)||f.prototype&&f.prototype.isReactComponent||!o)return[t];var u=t(o);return Pr(u,o,i,l)}var f;return t instanceof Sh?i?(t.inject(i,l),[t.getName(l)]):[t]:Qo(t)?Ch(t):Array.isArray(t)?Array.prototype.concat.apply(Us,t.map(function(p){return Pr(p,o,i,l)})):[t.toString()]}function jh(t){for(var o=0;o<t.length;o+=1){var i=t[o];if(en(i)&&!Mu(i))return!1}return!0}var W0=ph(Bs),G0=function(){function t(o,i,l){this.rules=o,this.staticRulesId="",this.isStatic=(l===void 0||l.isStatic)&&jh(o),this.componentId=i,this.baseHash=Ln(W0,i),this.baseStyle=l,Ls.registerId(i)}return t.prototype.generateAndInjectStyles=function(o,i,l){var u=this.baseStyle?this.baseStyle.generateAndInjectStyles(o,i,l):"";if(this.isStatic&&!l.hash)if(this.staticRulesId&&i.hasNameForId(this.componentId,this.staticRulesId))u=qr(u,this.staticRulesId);else{var f=Ps(Pr(this.rules,o,i,l)),p=du(Ln(this.baseHash,f)>>>0);if(!i.hasNameForId(this.componentId,p)){var h=l(f,".".concat(p),void 0,this.componentId);i.insertRules(this.componentId,p,h)}u=qr(u,p),this.staticRulesId=p}else{for(var g=Ln(this.baseHash,l.hash),v="",y=0;y<this.rules.length;y++){var x=this.rules[y];if(typeof x=="string")v+=x;else if(x){var S=Ps(Pr(x,o,i,l));g=Ln(g,S+y),v+=S}}if(v){var $=du(g>>>0);i.hasNameForId(this.componentId,$)||i.insertRules(this.componentId,$,l(v,".".concat($),void 0,this.componentId)),u=qr(u,$)}}return u},t}(),Hn=ct.createContext(void 0);Hn.Consumer;function J0(){var t=j.useContext(Hn);if(!t)throw Lr(18);return t}function vp(t){var o=ct.useContext(Hn),i=j.useMemo(function(){return function(l,u){if(!l)throw Lr(14);if(en(l)){var f=l(u);return f}if(Array.isArray(l)||typeof l!="object")throw Lr(8);return u?Xe(Xe({},u),l):l}(t.theme,o)},[t.theme,o]);return t.children?ct.createElement(Hn.Provider,{value:i},t.children):null}var Ya={};function K0(t,o,i){var l=Mu(t),u=t,f=!qa(t),p=o.attrs,h=p===void 0?Us:p,g=o.componentId,v=g===void 0?function(U,J){var H=typeof U!="string"?"sc":up(U);Ya[H]=(Ya[H]||0)+1;var K="".concat(H,"-").concat(Au(Bs+H+Ya[H]));return J?"".concat(J,"-").concat(K):K}(o.displayName,o.parentComponentId):g,y=o.displayName,x=y===void 0?function(U){return qa(U)?"styled.".concat(U):"Styled(".concat(w0(U),")")}(t):y,S=o.displayName&&o.componentId?"".concat(up(o.displayName),"-").concat(o.componentId):o.componentId||v,$=l&&u.attrs?u.attrs.concat(h).filter(Boolean):h,E=o.shouldForwardProp;if(l&&u.shouldForwardProp){var N=u.shouldForwardProp;if(o.shouldForwardProp){var T=o.shouldForwardProp;E=function(U,J){return N(U,J)&&T(U,J)}}else E=N}var I=new G0(i,S,l?u.componentStyle:void 0);function M(U,J){return function(H,K,Q){var ue=H.attrs,je=H.componentStyle,Ne=H.defaultProps,ge=H.foldedComponentIds,Ee=H.styledComponentId,Se=H.target,Y=ct.useContext(Hn),xe=hu(),ie=H.shouldForwardProp||xe.shouldForwardProp,G=ch(K,Y,Ne)||Vn,ee=function(ve,de,se){for(var pe,he=Xe(Xe({},de),{className:void 0,theme:se}),Ze=0;Ze<ve.length;Ze+=1){var tr=en(pe=ve[Ze])?pe(he):pe;for(var At in tr)he[At]=At==="className"?qr(he[At],tr[At]):At==="style"?Xe(Xe({},he[At]),tr[At]):tr[At]}return de.className&&(he.className=qr(he.className,de.className)),he}(ue,K,G),q=ee.as||Se,R={};for(var z in ee)ee[z]===void 0||z[0]==="$"||z==="as"||z==="theme"&&ee.theme===G||(z==="forwardedAs"?R.as=ee.forwardedAs:ie&&!ie(z,q)||(R[z]=ee[z]));var ne=function(ve,de){var se=hu(),pe=ve.generateAndInjectStyles(de,se.styleSheet,se.stylis);return pe}(je,ee),ce=qr(ge,Ee);return ne&&(ce+=" "+ne),ee.className&&(ce+=" "+ee.className),R[qa(q)&&!dh.has(q)?"class":"className"]=ce,R.ref=Q,j.createElement(q,R)}(D,U,J)}M.displayName=x;var D=ct.forwardRef(M);return D.attrs=$,D.componentStyle=I,D.displayName=x,D.shouldForwardProp=E,D.foldedComponentIds=l?qr(u.foldedComponentIds,u.styledComponentId):"",D.styledComponentId=S,D.target=l?u.target:t,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(U){this._foldedDefaultProps=l?function(J){for(var H=[],K=1;K<arguments.length;K++)H[K-1]=arguments[K];for(var Q=0,ue=H;Q<ue.length;Q++)fu(J,ue[Q],!0);return J}({},u.defaultProps,U):U}}),Du(D,function(){return".".concat(D.styledComponentId)}),f&&vh(D,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function yp(t,o){for(var i=[t[0]],l=0,u=o.length;l<u;l+=1)i.push(o[l],t[l+1]);return i}var xp=function(t){return Object.assign(t,{isCss:!0})};function st(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(en(t)||Qo(t))return xp(Pr(yp(Us,zn([t],o,!0))));var l=t;return o.length===0&&l.length===1&&typeof l[0]=="string"?Pr(l):xp(Pr(yp(l,o)))}function mu(t,o,i){if(i===void 0&&(i=Vn),!o)throw Lr(1,o);var l=function(u){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];return t(o,i,st.apply(void 0,zn([u],f,!1)))};return l.attrs=function(u){return mu(t,o,Xe(Xe({},i),{attrs:Array.prototype.concat(i.attrs,u).filter(Boolean)}))},l.withConfig=function(u){return mu(t,o,Xe(Xe({},i),u))},l}var Eh=function(t){return mu(K0,t)},k=Eh;dh.forEach(function(t){k[t]=Eh(t)});var Q0=function(){function t(o,i){this.rules=o,this.componentId=i,this.isStatic=jh(o),Ls.registerId(this.componentId+1)}return t.prototype.createStyles=function(o,i,l,u){var f=u(Ps(Pr(this.rules,i,l,u)),""),p=this.componentId+o;l.insertRules(p,p,f)},t.prototype.removeStyles=function(o,i){i.clearRules(this.componentId+o)},t.prototype.renderStyles=function(o,i,l,u){o>2&&Ls.registerId(this.componentId+o),this.removeStyles(o,l),this.createStyles(o,i,l,u)},t}();function q0(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var l=st.apply(void 0,zn([t],o,!1)),u="sc-global-".concat(Au(JSON.stringify(l))),f=new Q0(l,u),p=function(g){var v=hu(),y=ct.useContext(Hn),x=ct.useRef(v.styleSheet.allocateGSInstance(u)).current;return v.styleSheet.server&&h(x,g,v.styleSheet,y,v.stylis),ct.useLayoutEffect(function(){if(!v.styleSheet.server)return h(x,g,v.styleSheet,y,v.stylis),function(){return f.removeStyles(x,v.styleSheet)}},[x,g,v.styleSheet,y,v.stylis]),null};function h(g,v,y,x,S){if(f.isStatic)f.renderStyles(g,g0,y,S);else{var $=Xe(Xe({},v),{theme:ch(v,x,p.defaultProps)});f.renderStyles(g,$,y,S)}}return ct.memo(p)}function Gn(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];var l=Ps(st.apply(void 0,zn([t],o,!1))),u=Au(l);return new Sh(u,l)}const Y0="/assets/logo-BGHkG1-J.png",X0="/assets/logo-dark-KAsU1C78.png",wp={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",menuBackdrop:"rgba(0, 0, 0, 0.5)",menuBackground:"#ffffff",menuHover:"#f6f8fa",menuBorder:"#e1e4e8",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",diffAddedText:"rgba(0, 128, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:Y0,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Sp={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",menuBackdrop:"rgba(0, 0, 0, 0.7)",menuBackground:"#1e1e1e",menuHover:"#2d333b",menuBorder:"#30363d",menuShadow:"0 4px 12px rgba(0, 0, 0, 0.3)",diffAddedText:"rgba(0, 255, 0, 0.7)",diffRemovedText:"rgba(255, 0, 0, 0.7)"},backgroundImage:X0,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},Z0=({usage:t})=>{const[o,i]=j.useState("total"),l=x=>{i(x.target.value)},u=t.usageMetrics[o],f=t.usageMetrics[o].cost||0,p=zo(f.toFixed(2)),h=zo(u.rpm),g=zo(u.rpd),v=zo(kp(u.tpm)),y=zo(kp(u.tpd));return d.jsx(tx,{children:d.jsxs(rx,{children:[d.jsx(nx,{onChange:l,value:o,children:Object.keys(t.usageMetrics).map(x=>d.jsx("option",{value:x,children:x},x))}),d.jsxs(Fo,{children:[d.jsx(Bo,{children:"Cost:"}),d.jsxs(Uo,{children:["$",p]},p)]}),d.jsxs(Fo,{children:[d.jsx(Bo,{children:"RPM:"}),d.jsx(Uo,{children:h},h)]}),d.jsxs(Fo,{children:[d.jsx(Bo,{children:"RPD:"}),d.jsx(Uo,{children:g},g)]}),d.jsxs(Fo,{children:[d.jsx(Bo,{children:"TPM:"}),d.jsx(Uo,{children:v},v)]}),d.jsxs(Fo,{children:[d.jsx(Bo,{children:"TPD:"}),d.jsx(Uo,{children:y},y)]})]})})},kp=t=>t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(0)+"K":t.toString(),zo=t=>{const[o,i]=j.useState(t),l=j.useRef(t);return j.useEffect(()=>{t!==l.current&&(i(t),l.current=t)},[t]),o},ex=Gn`
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
- `,tx=k.div`
55
- background-color: ${({theme:t})=>t.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
- `,rx=k.div`
62
- display: flex;
63
- flex-wrap: wrap;
64
- gap: 8px;
65
- align-items: center;
66
- `,nx=k.select`
67
- padding: 2px 4px;
68
- border-radius: 4px;
69
- border: 1px solid ${({theme:t})=>t.colors.border};
70
- background-color: ${({theme:t})=>t.colors.background};
71
- color: ${({theme:t})=>t.colors.text};
72
- font-size: 0.9em;
73
- `,Fo=k.div`
74
- display: flex;
75
- flex-direction: column;
76
- align-items: center;
77
- margin-left: 8px;
78
- `,Bo=k.span`
79
- font-size: 0.8em;
80
- color: ${({theme:t})=>t.colors.textSecondary};
81
- `,Uo=k.span`
82
- font-size: 0.9em;
83
- font-weight: bold;
84
- color: ${({theme:t})=>t.colors.text};
85
- animation: ${ex} 0.5s ease-in-out;
86
- `;function bh(t,o){return function(){return t.apply(o,arguments)}}const{toString:ox}=Object.prototype,{getPrototypeOf:zu}=Object,Vs=(t=>o=>{const i=ox.call(o);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())})(Object.create(null)),Wt=t=>(t=t.toLowerCase(),o=>Vs(o)===t),Hs=t=>o=>typeof o===t,{isArray:Jn}=Array,qo=Hs("undefined");function ix(t){return t!==null&&!qo(t)&&t.constructor!==null&&!qo(t.constructor)&&jt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Nh=Wt("ArrayBuffer");function sx(t){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(t):o=t&&t.buffer&&Nh(t.buffer),o}const lx=Hs("string"),jt=Hs("function"),Rh=Hs("number"),Ws=t=>t!==null&&typeof t=="object",ax=t=>t===!0||t===!1,js=t=>{if(Vs(t)!=="object")return!1;const o=zu(t);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},ux=Wt("Date"),cx=Wt("File"),dx=Wt("Blob"),fx=Wt("FileList"),px=t=>Ws(t)&&jt(t.pipe),hx=t=>{let o;return t&&(typeof FormData=="function"&&t instanceof FormData||jt(t.append)&&((o=Vs(t))==="formdata"||o==="object"&&jt(t.toString)&&t.toString()==="[object FormData]"))},mx=Wt("URLSearchParams"),[gx,vx,yx,xx]=["ReadableStream","Request","Response","Headers"].map(Wt),wx=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Zo(t,o,{allOwnKeys:i=!1}={}){if(t===null||typeof t>"u")return;let l,u;if(typeof t!="object"&&(t=[t]),Jn(t))for(l=0,u=t.length;l<u;l++)o.call(null,t[l],l,t);else{const f=i?Object.getOwnPropertyNames(t):Object.keys(t),p=f.length;let h;for(l=0;l<p;l++)h=f[l],o.call(null,t[h],h,t)}}function $h(t,o){o=o.toLowerCase();const i=Object.keys(t);let l=i.length,u;for(;l-- >0;)if(u=i[l],o===u.toLowerCase())return u;return null}const Yr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Th=t=>!qo(t)&&t!==Yr;function gu(){const{caseless:t}=Th(this)&&this||{},o={},i=(l,u)=>{const f=t&&$h(o,u)||u;js(o[f])&&js(l)?o[f]=gu(o[f],l):js(l)?o[f]=gu({},l):Jn(l)?o[f]=l.slice():o[f]=l};for(let l=0,u=arguments.length;l<u;l++)arguments[l]&&Zo(arguments[l],i);return o}const Sx=(t,o,i,{allOwnKeys:l}={})=>(Zo(o,(u,f)=>{i&&jt(u)?t[f]=bh(u,i):t[f]=u},{allOwnKeys:l}),t),kx=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Cx=(t,o,i,l)=>{t.prototype=Object.create(o.prototype,l),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:o.prototype}),i&&Object.assign(t.prototype,i)},jx=(t,o,i,l)=>{let u,f,p;const h={};if(o=o||{},t==null)return o;do{for(u=Object.getOwnPropertyNames(t),f=u.length;f-- >0;)p=u[f],(!l||l(p,t,o))&&!h[p]&&(o[p]=t[p],h[p]=!0);t=i!==!1&&zu(t)}while(t&&(!i||i(t,o))&&t!==Object.prototype);return o},Ex=(t,o,i)=>{t=String(t),(i===void 0||i>t.length)&&(i=t.length),i-=o.length;const l=t.indexOf(o,i);return l!==-1&&l===i},bx=t=>{if(!t)return null;if(Jn(t))return t;let o=t.length;if(!Rh(o))return null;const i=new Array(o);for(;o-- >0;)i[o]=t[o];return i},Nx=(t=>o=>t&&o instanceof t)(typeof Uint8Array<"u"&&zu(Uint8Array)),Rx=(t,o)=>{const l=(t&&t[Symbol.iterator]).call(t);let u;for(;(u=l.next())&&!u.done;){const f=u.value;o.call(t,f[0],f[1])}},$x=(t,o)=>{let i;const l=[];for(;(i=t.exec(o))!==null;)l.push(i);return l},Tx=Wt("HTMLFormElement"),Px=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,l,u){return l.toUpperCase()+u}),Cp=(({hasOwnProperty:t})=>(o,i)=>t.call(o,i))(Object.prototype),_x=Wt("RegExp"),Ph=(t,o)=>{const i=Object.getOwnPropertyDescriptors(t),l={};Zo(i,(u,f)=>{let p;(p=o(u,f,t))!==!1&&(l[f]=p||u)}),Object.defineProperties(t,l)},Lx=t=>{Ph(t,(o,i)=>{if(jt(t)&&["arguments","caller","callee"].indexOf(i)!==-1)return!1;const l=t[i];if(jt(l)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},Ix=(t,o)=>{const i={},l=u=>{u.forEach(f=>{i[f]=!0})};return Jn(t)?l(t):l(String(t).split(o)),i},Ox=()=>{},Ax=(t,o)=>t!=null&&Number.isFinite(t=+t)?t:o;function Mx(t){return!!(t&&jt(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const Dx=t=>{const o=new Array(10),i=(l,u)=>{if(Ws(l)){if(o.indexOf(l)>=0)return;if(!("toJSON"in l)){o[u]=l;const f=Jn(l)?[]:{};return Zo(l,(p,h)=>{const g=i(p,u+1);!qo(g)&&(f[h]=g)}),o[u]=void 0,f}}return l};return i(t,0)},zx=Wt("AsyncFunction"),Fx=t=>t&&(Ws(t)||jt(t))&&jt(t.then)&&jt(t.catch),_h=((t,o)=>t?setImmediate:o?((i,l)=>(Yr.addEventListener("message",({source:u,data:f})=>{u===Yr&&f===i&&l.length&&l.shift()()},!1),u=>{l.push(u),Yr.postMessage(i,"*")}))(`axios@${Math.random()}`,[]):i=>setTimeout(i))(typeof setImmediate=="function",jt(Yr.postMessage)),Bx=typeof queueMicrotask<"u"?queueMicrotask.bind(Yr):typeof process<"u"&&process.nextTick||_h,O={isArray:Jn,isArrayBuffer:Nh,isBuffer:ix,isFormData:hx,isArrayBufferView:sx,isString:lx,isNumber:Rh,isBoolean:ax,isObject:Ws,isPlainObject:js,isReadableStream:gx,isRequest:vx,isResponse:yx,isHeaders:xx,isUndefined:qo,isDate:ux,isFile:cx,isBlob:dx,isRegExp:_x,isFunction:jt,isStream:px,isURLSearchParams:mx,isTypedArray:Nx,isFileList:fx,forEach:Zo,merge:gu,extend:Sx,trim:wx,stripBOM:kx,inherits:Cx,toFlatObject:jx,kindOf:Vs,kindOfTest:Wt,endsWith:Ex,toArray:bx,forEachEntry:Rx,matchAll:$x,isHTMLForm:Tx,hasOwnProperty:Cp,hasOwnProp:Cp,reduceDescriptors:Ph,freezeMethods:Lx,toObjectSet:Ix,toCamelCase:Px,noop:Ox,toFiniteNumber:Ax,findKey:$h,global:Yr,isContextDefined:Th,isSpecCompliantForm:Mx,toJSONObject:Dx,isAsyncFn:zx,isThenable:Fx,setImmediate:_h,asap:Bx};function me(t,o,i,l,u){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",o&&(this.code=o),i&&(this.config=i),l&&(this.request=l),u&&(this.response=u,this.status=u.status?u.status:null)}O.inherits(me,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:O.toJSONObject(this.config),code:this.code,status:this.status}}});const Lh=me.prototype,Ih={};["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(t=>{Ih[t]={value:t}});Object.defineProperties(me,Ih);Object.defineProperty(Lh,"isAxiosError",{value:!0});me.from=(t,o,i,l,u,f)=>{const p=Object.create(Lh);return O.toFlatObject(t,p,function(g){return g!==Error.prototype},h=>h!=="isAxiosError"),me.call(p,t.message,o,i,l,u),p.cause=t,p.name=t.name,f&&Object.assign(p,f),p};const Ux=null;function vu(t){return O.isPlainObject(t)||O.isArray(t)}function Oh(t){return O.endsWith(t,"[]")?t.slice(0,-2):t}function jp(t,o,i){return t?t.concat(o).map(function(u,f){return u=Oh(u),!i&&f?"["+u+"]":u}).join(i?".":""):o}function Vx(t){return O.isArray(t)&&!t.some(vu)}const Hx=O.toFlatObject(O,{},null,function(o){return/^is[A-Z]/.test(o)});function Gs(t,o,i){if(!O.isObject(t))throw new TypeError("target must be an object");o=o||new FormData,i=O.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(N,T){return!O.isUndefined(T[N])});const l=i.metaTokens,u=i.visitor||y,f=i.dots,p=i.indexes,g=(i.Blob||typeof Blob<"u"&&Blob)&&O.isSpecCompliantForm(o);if(!O.isFunction(u))throw new TypeError("visitor must be a function");function v(E){if(E===null)return"";if(O.isDate(E))return E.toISOString();if(!g&&O.isBlob(E))throw new me("Blob is not supported. Use a Buffer instead.");return O.isArrayBuffer(E)||O.isTypedArray(E)?g&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function y(E,N,T){let I=E;if(E&&!T&&typeof E=="object"){if(O.endsWith(N,"{}"))N=l?N:N.slice(0,-2),E=JSON.stringify(E);else if(O.isArray(E)&&Vx(E)||(O.isFileList(E)||O.endsWith(N,"[]"))&&(I=O.toArray(E)))return N=Oh(N),I.forEach(function(D,U){!(O.isUndefined(D)||D===null)&&o.append(p===!0?jp([N],U,f):p===null?N:N+"[]",v(D))}),!1}return vu(E)?!0:(o.append(jp(T,N,f),v(E)),!1)}const x=[],S=Object.assign(Hx,{defaultVisitor:y,convertValue:v,isVisitable:vu});function $(E,N){if(!O.isUndefined(E)){if(x.indexOf(E)!==-1)throw Error("Circular reference detected in "+N.join("."));x.push(E),O.forEach(E,function(I,M){(!(O.isUndefined(I)||I===null)&&u.call(o,I,O.isString(M)?M.trim():M,N,S))===!0&&$(I,N?N.concat(M):[M])}),x.pop()}}if(!O.isObject(t))throw new TypeError("data must be an object");return $(t),o}function Ep(t){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(l){return o[l]})}function Fu(t,o){this._pairs=[],t&&Gs(t,this,o)}const Ah=Fu.prototype;Ah.append=function(o,i){this._pairs.push([o,i])};Ah.toString=function(o){const i=o?function(l){return o.call(this,l,Ep)}:Ep;return this._pairs.map(function(u){return i(u[0])+"="+i(u[1])},"").join("&")};function Wx(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mh(t,o,i){if(!o)return t;const l=i&&i.encode||Wx;O.isFunction(i)&&(i={serialize:i});const u=i&&i.serialize;let f;if(u?f=u(o,i):f=O.isURLSearchParams(o)?o.toString():new Fu(o,i).toString(l),f){const p=t.indexOf("#");p!==-1&&(t=t.slice(0,p)),t+=(t.indexOf("?")===-1?"?":"&")+f}return t}class bp{constructor(){this.handlers=[]}use(o,i,l){return this.handlers.push({fulfilled:o,rejected:i,synchronous:l?l.synchronous:!1,runWhen:l?l.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){O.forEach(this.handlers,function(l){l!==null&&o(l)})}}const Dh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gx=typeof URLSearchParams<"u"?URLSearchParams:Fu,Jx=typeof FormData<"u"?FormData:null,Kx=typeof Blob<"u"?Blob:null,Qx={isBrowser:!0,classes:{URLSearchParams:Gx,FormData:Jx,Blob:Kx},protocols:["http","https","file","blob","url","data"]},Bu=typeof window<"u"&&typeof document<"u",yu=typeof navigator=="object"&&navigator||void 0,qx=Bu&&(!yu||["ReactNative","NativeScript","NS"].indexOf(yu.product)<0),Yx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xx=Bu&&window.location.href||"http://localhost",Zx=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bu,hasStandardBrowserEnv:qx,hasStandardBrowserWebWorkerEnv:Yx,navigator:yu,origin:Xx},Symbol.toStringTag,{value:"Module"})),lt={...Zx,...Qx};function e1(t,o){return Gs(t,new lt.classes.URLSearchParams,Object.assign({visitor:function(i,l,u,f){return lt.isNode&&O.isBuffer(i)?(this.append(l,i.toString("base64")),!1):f.defaultVisitor.apply(this,arguments)}},o))}function t1(t){return O.matchAll(/\w+|\[(\w*)]/g,t).map(o=>o[0]==="[]"?"":o[1]||o[0])}function r1(t){const o={},i=Object.keys(t);let l;const u=i.length;let f;for(l=0;l<u;l++)f=i[l],o[f]=t[f];return o}function zh(t){function o(i,l,u,f){let p=i[f++];if(p==="__proto__")return!0;const h=Number.isFinite(+p),g=f>=i.length;return p=!p&&O.isArray(u)?u.length:p,g?(O.hasOwnProp(u,p)?u[p]=[u[p],l]:u[p]=l,!h):((!u[p]||!O.isObject(u[p]))&&(u[p]=[]),o(i,l,u[p],f)&&O.isArray(u[p])&&(u[p]=r1(u[p])),!h)}if(O.isFormData(t)&&O.isFunction(t.entries)){const i={};return O.forEachEntry(t,(l,u)=>{o(t1(l),u,i,0)}),i}return null}function n1(t,o,i){if(O.isString(t))try{return(o||JSON.parse)(t),O.trim(t)}catch(l){if(l.name!=="SyntaxError")throw l}return(i||JSON.stringify)(t)}const ei={transitional:Dh,adapter:["xhr","http","fetch"],transformRequest:[function(o,i){const l=i.getContentType()||"",u=l.indexOf("application/json")>-1,f=O.isObject(o);if(f&&O.isHTMLForm(o)&&(o=new FormData(o)),O.isFormData(o))return u?JSON.stringify(zh(o)):o;if(O.isArrayBuffer(o)||O.isBuffer(o)||O.isStream(o)||O.isFile(o)||O.isBlob(o)||O.isReadableStream(o))return o;if(O.isArrayBufferView(o))return o.buffer;if(O.isURLSearchParams(o))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),o.toString();let h;if(f){if(l.indexOf("application/x-www-form-urlencoded")>-1)return e1(o,this.formSerializer).toString();if((h=O.isFileList(o))||l.indexOf("multipart/form-data")>-1){const g=this.env&&this.env.FormData;return Gs(h?{"files[]":o}:o,g&&new g,this.formSerializer)}}return f||u?(i.setContentType("application/json",!1),n1(o)):o}],transformResponse:[function(o){const i=this.transitional||ei.transitional,l=i&&i.forcedJSONParsing,u=this.responseType==="json";if(O.isResponse(o)||O.isReadableStream(o))return o;if(o&&O.isString(o)&&(l&&!this.responseType||u)){const p=!(i&&i.silentJSONParsing)&&u;try{return JSON.parse(o)}catch(h){if(p)throw h.name==="SyntaxError"?me.from(h,me.ERR_BAD_RESPONSE,this,null,this.response):h}}return o}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:lt.classes.FormData,Blob:lt.classes.Blob},validateStatus:function(o){return o>=200&&o<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};O.forEach(["delete","get","head","post","put","patch"],t=>{ei.headers[t]={}});const o1=O.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"]),i1=t=>{const o={};let i,l,u;return t&&t.split(`
87
- `).forEach(function(p){u=p.indexOf(":"),i=p.substring(0,u).trim().toLowerCase(),l=p.substring(u+1).trim(),!(!i||o[i]&&o1[i])&&(i==="set-cookie"?o[i]?o[i].push(l):o[i]=[l]:o[i]=o[i]?o[i]+", "+l:l)}),o},Np=Symbol("internals");function Vo(t){return t&&String(t).trim().toLowerCase()}function Es(t){return t===!1||t==null?t:O.isArray(t)?t.map(Es):String(t)}function s1(t){const o=Object.create(null),i=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let l;for(;l=i.exec(t);)o[l[1]]=l[2];return o}const l1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Xa(t,o,i,l,u){if(O.isFunction(l))return l.call(this,o,i);if(u&&(o=i),!!O.isString(o)){if(O.isString(l))return o.indexOf(l)!==-1;if(O.isRegExp(l))return l.test(o)}}function a1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,i,l)=>i.toUpperCase()+l)}function u1(t,o){const i=O.toCamelCase(" "+o);["get","set","has"].forEach(l=>{Object.defineProperty(t,l+i,{value:function(u,f,p){return this[l].call(this,o,u,f,p)},configurable:!0})})}let vt=class{constructor(o){o&&this.set(o)}set(o,i,l){const u=this;function f(h,g,v){const y=Vo(g);if(!y)throw new Error("header name must be a non-empty string");const x=O.findKey(u,y);(!x||u[x]===void 0||v===!0||v===void 0&&u[x]!==!1)&&(u[x||g]=Es(h))}const p=(h,g)=>O.forEach(h,(v,y)=>f(v,y,g));if(O.isPlainObject(o)||o instanceof this.constructor)p(o,i);else if(O.isString(o)&&(o=o.trim())&&!l1(o))p(i1(o),i);else if(O.isHeaders(o))for(const[h,g]of o.entries())f(g,h,l);else o!=null&&f(i,o,l);return this}get(o,i){if(o=Vo(o),o){const l=O.findKey(this,o);if(l){const u=this[l];if(!i)return u;if(i===!0)return s1(u);if(O.isFunction(i))return i.call(this,u,l);if(O.isRegExp(i))return i.exec(u);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,i){if(o=Vo(o),o){const l=O.findKey(this,o);return!!(l&&this[l]!==void 0&&(!i||Xa(this,this[l],l,i)))}return!1}delete(o,i){const l=this;let u=!1;function f(p){if(p=Vo(p),p){const h=O.findKey(l,p);h&&(!i||Xa(l,l[h],h,i))&&(delete l[h],u=!0)}}return O.isArray(o)?o.forEach(f):f(o),u}clear(o){const i=Object.keys(this);let l=i.length,u=!1;for(;l--;){const f=i[l];(!o||Xa(this,this[f],f,o,!0))&&(delete this[f],u=!0)}return u}normalize(o){const i=this,l={};return O.forEach(this,(u,f)=>{const p=O.findKey(l,f);if(p){i[p]=Es(u),delete i[f];return}const h=o?a1(f):String(f).trim();h!==f&&delete i[f],i[h]=Es(u),l[h]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const i=Object.create(null);return O.forEach(this,(l,u)=>{l!=null&&l!==!1&&(i[u]=o&&O.isArray(l)?l.join(", "):l)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,i])=>o+": "+i).join(`
88
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...i){const l=new this(o);return i.forEach(u=>l.set(u)),l}static accessor(o){const l=(this[Np]=this[Np]={accessors:{}}).accessors,u=this.prototype;function f(p){const h=Vo(p);l[h]||(u1(u,p),l[h]=!0)}return O.isArray(o)?o.forEach(f):f(o),this}};vt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);O.reduceDescriptors(vt.prototype,({value:t},o)=>{let i=o[0].toUpperCase()+o.slice(1);return{get:()=>t,set(l){this[i]=l}}});O.freezeMethods(vt);function Za(t,o){const i=this||ei,l=o||i,u=vt.from(l.headers);let f=l.data;return O.forEach(t,function(h){f=h.call(i,f,u.normalize(),o?o.status:void 0)}),u.normalize(),f}function Fh(t){return!!(t&&t.__CANCEL__)}function Kn(t,o,i){me.call(this,t??"canceled",me.ERR_CANCELED,o,i),this.name="CanceledError"}O.inherits(Kn,me,{__CANCEL__:!0});function Bh(t,o,i){const l=i.config.validateStatus;!i.status||!l||l(i.status)?t(i):o(new me("Request failed with status code "+i.status,[me.ERR_BAD_REQUEST,me.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}function c1(t){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return o&&o[1]||""}function d1(t,o){t=t||10;const i=new Array(t),l=new Array(t);let u=0,f=0,p;return o=o!==void 0?o:1e3,function(g){const v=Date.now(),y=l[f];p||(p=v),i[u]=g,l[u]=v;let x=f,S=0;for(;x!==u;)S+=i[x++],x=x%t;if(u=(u+1)%t,u===f&&(f=(f+1)%t),v-p<o)return;const $=y&&v-y;return $?Math.round(S*1e3/$):void 0}}function f1(t,o){let i=0,l=1e3/o,u,f;const p=(v,y=Date.now())=>{i=y,u=null,f&&(clearTimeout(f),f=null),t.apply(null,v)};return[(...v)=>{const y=Date.now(),x=y-i;x>=l?p(v,y):(u=v,f||(f=setTimeout(()=>{f=null,p(u)},l-x)))},()=>u&&p(u)]}const Is=(t,o,i=3)=>{let l=0;const u=d1(50,250);return f1(f=>{const p=f.loaded,h=f.lengthComputable?f.total:void 0,g=p-l,v=u(g),y=p<=h;l=p;const x={loaded:p,total:h,progress:h?p/h:void 0,bytes:g,rate:v||void 0,estimated:v&&h&&y?(h-p)/v:void 0,event:f,lengthComputable:h!=null,[o?"download":"upload"]:!0};t(x)},i)},Rp=(t,o)=>{const i=t!=null;return[l=>o[0]({lengthComputable:i,total:t,loaded:l}),o[1]]},$p=t=>(...o)=>O.asap(()=>t(...o)),p1=lt.hasStandardBrowserEnv?((t,o)=>i=>(i=new URL(i,lt.origin),t.protocol===i.protocol&&t.host===i.host&&(o||t.port===i.port)))(new URL(lt.origin),lt.navigator&&/(msie|trident)/i.test(lt.navigator.userAgent)):()=>!0,h1=lt.hasStandardBrowserEnv?{write(t,o,i,l,u,f){const p=[t+"="+encodeURIComponent(o)];O.isNumber(i)&&p.push("expires="+new Date(i).toGMTString()),O.isString(l)&&p.push("path="+l),O.isString(u)&&p.push("domain="+u),f===!0&&p.push("secure"),document.cookie=p.join("; ")},read(t){const o=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function m1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function g1(t,o){return o?t.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):t}function Uh(t,o,i){let l=!m1(o);return t&&l||i==!1?g1(t,o):o}const Tp=t=>t instanceof vt?{...t}:t;function tn(t,o){o=o||{};const i={};function l(v,y,x,S){return O.isPlainObject(v)&&O.isPlainObject(y)?O.merge.call({caseless:S},v,y):O.isPlainObject(y)?O.merge({},y):O.isArray(y)?y.slice():y}function u(v,y,x,S){if(O.isUndefined(y)){if(!O.isUndefined(v))return l(void 0,v,x,S)}else return l(v,y,x,S)}function f(v,y){if(!O.isUndefined(y))return l(void 0,y)}function p(v,y){if(O.isUndefined(y)){if(!O.isUndefined(v))return l(void 0,v)}else return l(void 0,y)}function h(v,y,x){if(x in o)return l(v,y);if(x in t)return l(void 0,v)}const g={url:f,method:f,data:f,baseURL:p,transformRequest:p,transformResponse:p,paramsSerializer:p,timeout:p,timeoutMessage:p,withCredentials:p,withXSRFToken:p,adapter:p,responseType:p,xsrfCookieName:p,xsrfHeaderName:p,onUploadProgress:p,onDownloadProgress:p,decompress:p,maxContentLength:p,maxBodyLength:p,beforeRedirect:p,transport:p,httpAgent:p,httpsAgent:p,cancelToken:p,socketPath:p,responseEncoding:p,validateStatus:h,headers:(v,y,x)=>u(Tp(v),Tp(y),x,!0)};return O.forEach(Object.keys(Object.assign({},t,o)),function(y){const x=g[y]||u,S=x(t[y],o[y],y);O.isUndefined(S)&&x!==h||(i[y]=S)}),i}const Vh=t=>{const o=tn({},t);let{data:i,withXSRFToken:l,xsrfHeaderName:u,xsrfCookieName:f,headers:p,auth:h}=o;o.headers=p=vt.from(p),o.url=Mh(Uh(o.baseURL,o.url),t.params,t.paramsSerializer),h&&p.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?unescape(encodeURIComponent(h.password)):"")));let g;if(O.isFormData(i)){if(lt.hasStandardBrowserEnv||lt.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if((g=p.getContentType())!==!1){const[v,...y]=g?g.split(";").map(x=>x.trim()).filter(Boolean):[];p.setContentType([v||"multipart/form-data",...y].join("; "))}}if(lt.hasStandardBrowserEnv&&(l&&O.isFunction(l)&&(l=l(o)),l||l!==!1&&p1(o.url))){const v=u&&f&&h1.read(f);v&&p.set(u,v)}return o},v1=typeof XMLHttpRequest<"u",y1=v1&&function(t){return new Promise(function(i,l){const u=Vh(t);let f=u.data;const p=vt.from(u.headers).normalize();let{responseType:h,onUploadProgress:g,onDownloadProgress:v}=u,y,x,S,$,E;function N(){$&&$(),E&&E(),u.cancelToken&&u.cancelToken.unsubscribe(y),u.signal&&u.signal.removeEventListener("abort",y)}let T=new XMLHttpRequest;T.open(u.method.toUpperCase(),u.url,!0),T.timeout=u.timeout;function I(){if(!T)return;const D=vt.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),J={data:!h||h==="text"||h==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:D,config:t,request:T};Bh(function(K){i(K),N()},function(K){l(K),N()},J),T=null}"onloadend"in T?T.onloadend=I:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(I)},T.onabort=function(){T&&(l(new me("Request aborted",me.ECONNABORTED,t,T)),T=null)},T.onerror=function(){l(new me("Network Error",me.ERR_NETWORK,t,T)),T=null},T.ontimeout=function(){let U=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded";const J=u.transitional||Dh;u.timeoutErrorMessage&&(U=u.timeoutErrorMessage),l(new me(U,J.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,T)),T=null},f===void 0&&p.setContentType(null),"setRequestHeader"in T&&O.forEach(p.toJSON(),function(U,J){T.setRequestHeader(J,U)}),O.isUndefined(u.withCredentials)||(T.withCredentials=!!u.withCredentials),h&&h!=="json"&&(T.responseType=u.responseType),v&&([S,E]=Is(v,!0),T.addEventListener("progress",S)),g&&T.upload&&([x,$]=Is(g),T.upload.addEventListener("progress",x),T.upload.addEventListener("loadend",$)),(u.cancelToken||u.signal)&&(y=D=>{T&&(l(!D||D.type?new Kn(null,t,T):D),T.abort(),T=null)},u.cancelToken&&u.cancelToken.subscribe(y),u.signal&&(u.signal.aborted?y():u.signal.addEventListener("abort",y)));const M=c1(u.url);if(M&&lt.protocols.indexOf(M)===-1){l(new me("Unsupported protocol "+M+":",me.ERR_BAD_REQUEST,t));return}T.send(f||null)})},x1=(t,o)=>{const{length:i}=t=t?t.filter(Boolean):[];if(o||i){let l=new AbortController,u;const f=function(v){if(!u){u=!0,h();const y=v instanceof Error?v:this.reason;l.abort(y instanceof me?y:new Kn(y instanceof Error?y.message:y))}};let p=o&&setTimeout(()=>{p=null,f(new me(`timeout ${o} of ms exceeded`,me.ETIMEDOUT))},o);const h=()=>{t&&(p&&clearTimeout(p),p=null,t.forEach(v=>{v.unsubscribe?v.unsubscribe(f):v.removeEventListener("abort",f)}),t=null)};t.forEach(v=>v.addEventListener("abort",f));const{signal:g}=l;return g.unsubscribe=()=>O.asap(h),g}},w1=function*(t,o){let i=t.byteLength;if(i<o){yield t;return}let l=0,u;for(;l<i;)u=l+o,yield t.slice(l,u),l=u},S1=async function*(t,o){for await(const i of k1(t))yield*w1(i,o)},k1=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const o=t.getReader();try{for(;;){const{done:i,value:l}=await o.read();if(i)break;yield l}}finally{await o.cancel()}},Pp=(t,o,i,l)=>{const u=S1(t,o);let f=0,p,h=g=>{p||(p=!0,l&&l(g))};return new ReadableStream({async pull(g){try{const{done:v,value:y}=await u.next();if(v){h(),g.close();return}let x=y.byteLength;if(i){let S=f+=x;i(S)}g.enqueue(new Uint8Array(y))}catch(v){throw h(v),v}},cancel(g){return h(g),u.return()}},{highWaterMark:2})},Js=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Hh=Js&&typeof ReadableStream=="function",C1=Js&&(typeof TextEncoder=="function"?(t=>o=>t.encode(o))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Wh=(t,...o)=>{try{return!!t(...o)}catch{return!1}},j1=Hh&&Wh(()=>{let t=!1;const o=new Request(lt.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!o}),_p=64*1024,xu=Hh&&Wh(()=>O.isReadableStream(new Response("").body)),Os={stream:xu&&(t=>t.body)};Js&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!Os[o]&&(Os[o]=O.isFunction(t[o])?i=>i[o]():(i,l)=>{throw new me(`Response type '${o}' is not supported`,me.ERR_NOT_SUPPORT,l)})})})(new Response);const E1=async t=>{if(t==null)return 0;if(O.isBlob(t))return t.size;if(O.isSpecCompliantForm(t))return(await new Request(lt.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(O.isArrayBufferView(t)||O.isArrayBuffer(t))return t.byteLength;if(O.isURLSearchParams(t)&&(t=t+""),O.isString(t))return(await C1(t)).byteLength},b1=async(t,o)=>{const i=O.toFiniteNumber(t.getContentLength());return i??E1(o)},N1=Js&&(async t=>{let{url:o,method:i,data:l,signal:u,cancelToken:f,timeout:p,onDownloadProgress:h,onUploadProgress:g,responseType:v,headers:y,withCredentials:x="same-origin",fetchOptions:S}=Vh(t);v=v?(v+"").toLowerCase():"text";let $=x1([u,f&&f.toAbortSignal()],p),E;const N=$&&$.unsubscribe&&(()=>{$.unsubscribe()});let T;try{if(g&&j1&&i!=="get"&&i!=="head"&&(T=await b1(y,l))!==0){let J=new Request(o,{method:"POST",body:l,duplex:"half"}),H;if(O.isFormData(l)&&(H=J.headers.get("content-type"))&&y.setContentType(H),J.body){const[K,Q]=Rp(T,Is($p(g)));l=Pp(J.body,_p,K,Q)}}O.isString(x)||(x=x?"include":"omit");const I="credentials"in Request.prototype;E=new Request(o,{...S,signal:$,method:i.toUpperCase(),headers:y.normalize().toJSON(),body:l,duplex:"half",credentials:I?x:void 0});let M=await fetch(E);const D=xu&&(v==="stream"||v==="response");if(xu&&(h||D&&N)){const J={};["status","statusText","headers"].forEach(ue=>{J[ue]=M[ue]});const H=O.toFiniteNumber(M.headers.get("content-length")),[K,Q]=h&&Rp(H,Is($p(h),!0))||[];M=new Response(Pp(M.body,_p,K,()=>{Q&&Q(),N&&N()}),J)}v=v||"text";let U=await Os[O.findKey(Os,v)||"text"](M,t);return!D&&N&&N(),await new Promise((J,H)=>{Bh(J,H,{data:U,headers:vt.from(M.headers),status:M.status,statusText:M.statusText,config:t,request:E})})}catch(I){throw N&&N(),I&&I.name==="TypeError"&&/fetch/i.test(I.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,t,E),{cause:I.cause||I}):me.from(I,I&&I.code,t,E)}}),wu={http:Ux,xhr:y1,fetch:N1};O.forEach(wu,(t,o)=>{if(t){try{Object.defineProperty(t,"name",{value:o})}catch{}Object.defineProperty(t,"adapterName",{value:o})}});const Lp=t=>`- ${t}`,R1=t=>O.isFunction(t)||t===null||t===!1,Gh={getAdapter:t=>{t=O.isArray(t)?t:[t];const{length:o}=t;let i,l;const u={};for(let f=0;f<o;f++){i=t[f];let p;if(l=i,!R1(i)&&(l=wu[(p=String(i)).toLowerCase()],l===void 0))throw new me(`Unknown adapter '${p}'`);if(l)break;u[p||"#"+f]=l}if(!l){const f=Object.entries(u).map(([h,g])=>`adapter ${h} `+(g===!1?"is not supported by the environment":"is not available in the build"));let p=o?f.length>1?`since :
89
- `+f.map(Lp).join(`
90
- `):" "+Lp(f[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return l},adapters:wu};function eu(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Kn(null,t)}function Ip(t){return eu(t),t.headers=vt.from(t.headers),t.data=Za.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Gh.getAdapter(t.adapter||ei.adapter)(t).then(function(l){return eu(t),l.data=Za.call(t,t.transformResponse,l),l.headers=vt.from(l.headers),l},function(l){return Fh(l)||(eu(t),l&&l.response&&(l.response.data=Za.call(t,t.transformResponse,l.response),l.response.headers=vt.from(l.response.headers))),Promise.reject(l)})}const Jh="1.8.2",Ks={};["object","boolean","number","function","string","symbol"].forEach((t,o)=>{Ks[t]=function(l){return typeof l===t||"a"+(o<1?"n ":" ")+t}});const Op={};Ks.transitional=function(o,i,l){function u(f,p){return"[Axios v"+Jh+"] Transitional option '"+f+"'"+p+(l?". "+l:"")}return(f,p,h)=>{if(o===!1)throw new me(u(p," has been removed"+(i?" in "+i:"")),me.ERR_DEPRECATED);return i&&!Op[p]&&(Op[p]=!0,console.warn(u(p," has been deprecated since v"+i+" and will be removed in the near future"))),o?o(f,p,h):!0}};Ks.spelling=function(o){return(i,l)=>(console.warn(`${l} is likely a misspelling of ${o}`),!0)};function $1(t,o,i){if(typeof t!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const l=Object.keys(t);let u=l.length;for(;u-- >0;){const f=l[u],p=o[f];if(p){const h=t[f],g=h===void 0||p(h,f,t);if(g!==!0)throw new me("option "+f+" must be "+g,me.ERR_BAD_OPTION_VALUE);continue}if(i!==!0)throw new me("Unknown option "+f,me.ERR_BAD_OPTION)}}const bs={assertOptions:$1,validators:Ks},Xt=bs.validators;let Zr=class{constructor(o){this.defaults=o,this.interceptors={request:new bp,response:new bp}}async request(o,i){try{return await this._request(o,i)}catch(l){if(l instanceof Error){let u={};Error.captureStackTrace?Error.captureStackTrace(u):u=new Error;const f=u.stack?u.stack.replace(/^.+\n/,""):"";try{l.stack?f&&!String(l.stack).endsWith(f.replace(/^.+\n.+\n/,""))&&(l.stack+=`
91
- `+f):l.stack=f}catch{}}throw l}}_request(o,i){typeof o=="string"?(i=i||{},i.url=o):i=o||{},i=tn(this.defaults,i);const{transitional:l,paramsSerializer:u,headers:f}=i;l!==void 0&&bs.assertOptions(l,{silentJSONParsing:Xt.transitional(Xt.boolean),forcedJSONParsing:Xt.transitional(Xt.boolean),clarifyTimeoutError:Xt.transitional(Xt.boolean)},!1),u!=null&&(O.isFunction(u)?i.paramsSerializer={serialize:u}:bs.assertOptions(u,{encode:Xt.function,serialize:Xt.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),bs.assertOptions(i,{baseUrl:Xt.spelling("baseURL"),withXsrfToken:Xt.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let p=f&&O.merge(f.common,f[i.method]);f&&O.forEach(["delete","get","head","post","put","patch","common"],E=>{delete f[E]}),i.headers=vt.concat(p,f);const h=[];let g=!0;this.interceptors.request.forEach(function(N){typeof N.runWhen=="function"&&N.runWhen(i)===!1||(g=g&&N.synchronous,h.unshift(N.fulfilled,N.rejected))});const v=[];this.interceptors.response.forEach(function(N){v.push(N.fulfilled,N.rejected)});let y,x=0,S;if(!g){const E=[Ip.bind(this),void 0];for(E.unshift.apply(E,h),E.push.apply(E,v),S=E.length,y=Promise.resolve(i);x<S;)y=y.then(E[x++],E[x++]);return y}S=h.length;let $=i;for(x=0;x<S;){const E=h[x++],N=h[x++];try{$=E($)}catch(T){N.call(this,T);break}}try{y=Ip.call(this,$)}catch(E){return Promise.reject(E)}for(x=0,S=v.length;x<S;)y=y.then(v[x++],v[x++]);return y}getUri(o){o=tn(this.defaults,o);const i=Uh(o.baseURL,o.url,o.allowAbsoluteUrls);return Mh(i,o.params,o.paramsSerializer)}};O.forEach(["delete","get","head","options"],function(o){Zr.prototype[o]=function(i,l){return this.request(tn(l||{},{method:o,url:i,data:(l||{}).data}))}});O.forEach(["post","put","patch"],function(o){function i(l){return function(f,p,h){return this.request(tn(h||{},{method:o,headers:l?{"Content-Type":"multipart/form-data"}:{},url:f,data:p}))}}Zr.prototype[o]=i(),Zr.prototype[o+"Form"]=i(!0)});let T1=class Kh{constructor(o){if(typeof o!="function")throw new TypeError("executor must be a function.");let i;this.promise=new Promise(function(f){i=f});const l=this;this.promise.then(u=>{if(!l._listeners)return;let f=l._listeners.length;for(;f-- >0;)l._listeners[f](u);l._listeners=null}),this.promise.then=u=>{let f;const p=new Promise(h=>{l.subscribe(h),f=h}).then(u);return p.cancel=function(){l.unsubscribe(f)},p},o(function(f,p,h){l.reason||(l.reason=new Kn(f,p,h),i(l.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(o){if(this.reason){o(this.reason);return}this._listeners?this._listeners.push(o):this._listeners=[o]}unsubscribe(o){if(!this._listeners)return;const i=this._listeners.indexOf(o);i!==-1&&this._listeners.splice(i,1)}toAbortSignal(){const o=new AbortController,i=l=>{o.abort(l)};return this.subscribe(i),o.signal.unsubscribe=()=>this.unsubscribe(i),o.signal}static source(){let o;return{token:new Kh(function(u){o=u}),cancel:o}}};function P1(t){return function(i){return t.apply(null,i)}}function _1(t){return O.isObject(t)&&t.isAxiosError===!0}const Su={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(Su).forEach(([t,o])=>{Su[o]=t});function Qh(t){const o=new Zr(t),i=bh(Zr.prototype.request,o);return O.extend(i,Zr.prototype,o,{allOwnKeys:!0}),O.extend(i,o,null,{allOwnKeys:!0}),i.create=function(u){return Qh(tn(t,u))},i}const Me=Qh(ei);Me.Axios=Zr;Me.CanceledError=Kn;Me.CancelToken=T1;Me.isCancel=Fh;Me.VERSION=Jh;Me.toFormData=Gs;Me.AxiosError=me;Me.Cancel=Me.CanceledError;Me.all=function(o){return Promise.all(o)};Me.spread=P1;Me.isAxiosError=_1;Me.mergeConfig=tn;Me.AxiosHeaders=vt;Me.formToJSON=t=>zh(O.isHTMLForm(t)?new FormData(t):t);Me.getAdapter=Gh.getAdapter;Me.HttpStatusCode=Su;Me.default=Me;const{Axios:eE,AxiosError:tE,CanceledError:rE,isCancel:nE,CancelToken:oE,VERSION:iE,all:sE,Cancel:lE,isAxiosError:aE,spread:uE,toFormData:cE,AxiosHeaders:dE,HttpStatusCode:fE,formToJSON:pE,getAdapter:hE,mergeConfig:mE}=Me,L1="/api",Ve=Me.create({baseURL:L1,headers:{"Content-Type":"application/json"}}),I1=async()=>{try{const o=await(await fetch("/")).text();return new DOMParser().parseFromString(o,"text/html").body.getAttribute("data-security-token")}catch(t){return console.error("Error fetching security token:",t),null}};Ve.interceptors.request.use(t=>{var i;const o=(i=document.querySelector("body[data-security-token]"))==null?void 0:i.getAttribute("data-security-token");return o&&(t.headers.Authorization=`Bearer ${o}`),t},t=>Promise.reject(t));Ve.interceptors.response.use(t=>t,async t=>{var i;const o=t.config;if(t.response&&t.response.status===401&&!o._retry){o._retry=!0;const l=await I1();if(l)return o.headers.Authorization=`Bearer ${l}`,(i=document.querySelector("body[data-security-token]"))==null||i.setAttribute("data-security-token",l),Ve(o)}return Promise.reject(t)});const O1=async(t,o)=>{try{if(!t||!o.trim())throw new Error("Invalid message ID or content");if((await Ve.post("/edit-message",{messageId:t,newContent:o})).status!==200)throw new Error("Failed to edit message")}catch(i){throw Me.isAxiosError(i)?i.response?new Error(i.response.data.error||"Failed to edit message"):i.request?new Error("No response received from server"):new Error(`Error setting up request: ${i.message}`):i instanceof Error?i:new Error("An unexpected error occurred while editing the message")}},Ap=async()=>(await Ve.get("/content")).data.content,A1=async(t,o,i)=>{const l=new FormData;l.append("prompt",t),l.append("options",JSON.stringify(o)),i&&i.length>0&&i.forEach(u=>{l.append("images",u)});try{await Ve.post("/execute-codegen",l,{headers:{"Content-Type":"multipart/form-data"}})}catch(u){throw Me.isAxiosError(u)?u.response?new Error(`Server error: ${u.response.data.message||"Unknown error"}`):u.request?new Error("No response received from server"):new Error(`Error setting up request: ${u.message}`):new Error("An unexpected error occurred")}},qh=async(t,o,i,l)=>{try{if(!t||typeof t!="string")throw new Error("Prompt must be a string");if(typeof o!="number"||o<0||o>2)throw new Error("Temperature must be a number between 0 and 2");if(!["default","cheap","reasoning"].includes(i))throw new Error("Model type must be one of: default, cheap, reasoning");return(await Ve.post("/generate-content",{prompt:t,temperature:o,modelType:i,options:l})).data.result}catch(u){if(Me.isAxiosError(u))if(u.response){const f=u.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${f}`)}else throw u.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${u.message}`);throw u instanceof Error?u:new Error("An unexpected error occurred during content generation")}},ku=async()=>(await Ve.get("/execution-status")).data.status,M1=async()=>{await Ve.post("/interrupt-execution")},D1=async()=>{await Ve.post("/pause-execution")},z1=async()=>{await Ve.post("/resume-execution")},Cu=async()=>(await Ve.get("/current-question")).data.question,F1=async(t,o,i,l,u)=>{const f=new FormData;f.append("questionId",t),f.append("answer",o),i!==void 0&&f.append("confirmed",String(i)),l&&f.append("options",JSON.stringify(l)),u&&u.length>0&&u.forEach(p=>{f.append("images",p)}),await Ve.post("/answer-question",f,{headers:{"Content-Type":"multipart/form-data"}})},Mp=async()=>(await Ve.get("/usage")).data,B1=async()=>(await Ve.get("/default-codegen-options")).data.options,U1=async()=>(await Ve.get("/rcconfig")).data.rcConfig,V1=async t=>{await Ve.delete(`/delete-iteration/${t}`)},Uu=async()=>(await Ve.get("/available-ai-services")).data.services,Yh=async()=>{try{return(await Ve.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},H1=async t=>{await Ve.post("/service-configuration",t)};Ve.interceptors.response.use(t=>t,t=>(console.error("API request failed:",t),t.response?(console.error("Error data:",t.response.data),console.error("Error status:",t.response.status),console.error("Error headers:",t.response.headers)):t.request?console.error("No response received:",t.request):console.error("Error message:",t.message),Promise.reject(t)));function ti(t,o){const i=new CustomEvent(t,{bubbles:!0,detail:o});document.dispatchEvent(i)}function ri(t,o){j.useEffect(()=>{const i=l=>{o(l.detail)};return document.addEventListener(t,i,!1),()=>{document.removeEventListener(t,i,!1)}},[t,o])}function W1(t,o){if(!(o!=null&&o.modelOverrides))return t;const i=[];return o.modelOverrides.default&&i.push(o.modelOverrides.default),o.modelOverrides.cheap&&i.push(o.modelOverrides.cheap),i.length>0?`${t} (${i.join("/")})`:t}function Xh(){const[t,o]=j.useState([]),[i,l]=j.useState(null);return j.useEffect(()=>{(async()=>{try{const f=await Uu();o(f)}catch(f){console.error("Error fetching AI services:",f),l("Failed to fetch available AI services.")}})()},[]),[t,i]}function Zh(){const[t,o]=j.useState({services:[],isLoading:!0,error:null});return j.useEffect(()=>{(async()=>{try{const[l,u]=await Promise.all([Uu(),Yh()]),f=l.map(p=>({service:p,config:u[p],displayName:W1(p,u[p])}));o({services:f,isLoading:!1,error:null})}catch(l){console.error("Error fetching services with configurations:",l),o(u=>({...u,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),t}const Ir=k.button`
92
- background-color: transparent;
93
- color: ${({theme:t})=>t.colors.text};
94
- border: none;
95
- border-radius: 50%;
96
- width: 40px;
97
- height: 40px;
98
- font-size: 20px;
99
- cursor: pointer;
100
- display: flex;
101
- align-items: center;
102
- justify-content: center;
103
- transition: background-color 0.3s;
104
-
105
- &:hover {
106
- background-color: ${({theme:t})=>t.colors.buttonHoverBg};
107
- }
108
-
109
- &:focus {
110
- outline: none;
111
- box-shadow: 0 0 0 2px ${({theme:t})=>t.colors.primary};
112
- }
113
- `;function em(){ti("openContentGenerationModel")}function G1(){return d.jsx(Ir,{onClick:em,"aria-label":"Content generation modal",children:"✨"})}const J1=({currentService:t})=>{const[o,i]=j.useState(""),[l,u]=j.useState(t),[f,p]=j.useState(.7),[h,g]=j.useState("default"),[v,y]=j.useState(),[x,S]=j.useState(!1),[$,E]=j.useState(null),[N,T]=j.useState(null),[I,M]=j.useState(!1),D=()=>M(!1),[U]=Xh(),{services:J,isLoading:H}=Zh();if(ri("openContentGenerationModel",()=>M(!0)),j.useEffect(()=>{var ue;const Q=(ue=J.find(je=>je.service===l))==null?void 0:ue.config;Q!=null&&Q.modelOverrides?y(Q.modelOverrides[h]):y(void 0)},[l,h,J]),!I)return null;const K=async Q=>{Q.preventDefault(),S(!0),E(null),T(null);try{const ue=await qh(o,f,h,{aiService:l,askQuestion:!1});T(ue)}catch(ue){E(ue instanceof Error?ue.message:"An unexpected error occurred")}finally{S(!1)}};return d.jsx(K1,{onClick:Q=>Q.target===Q.currentTarget&&D(),children:d.jsxs(Q1,{children:[d.jsx(q1,{onClick:D,children:"×"}),d.jsx("h2",{children:"Generate Content"}),d.jsxs(Y1,{onSubmit:K,children:[d.jsxs(vs,{children:["Prompt",d.jsx(X1,{value:o,onChange:Q=>i(Q.target.value),placeholder:"Enter your prompt here...",required:!0})]}),d.jsxs(vs,{children:["AI Service",d.jsx(Dp,{value:l,onChange:Q=>u(Q.target.value),disabled:H,children:U.map(Q=>d.jsx("option",{value:Q,children:Q},Q))})]}),d.jsxs(vs,{children:["Temperature (",f,")",d.jsxs(Z1,{children:[d.jsx(ew,{type:"range",min:"0",max:"2",step:"0.1",value:f,onChange:Q=>p(Number(Q.target.value))}),d.jsx(tw,{children:f})]})]}),d.jsxs(vs,{children:["Model Type ",v?`(${v})`:"",d.jsxs(Dp,{value:h,onChange:Q=>g(Q.target.value),children:[d.jsx("option",{value:"default",children:"Default"}),d.jsx("option",{value:"cheap",children:"Cheap"}),d.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),d.jsx(rw,{type:"submit",disabled:x||!o,children:x?"Generating...":"Generate"})]}),$&&d.jsx(ow,{children:$}),N&&d.jsx(nw,{children:N.map((Q,ue)=>d.jsxs("div",{children:[d.jsx("strong",{children:Q.name}),d.jsx("pre",{children:JSON.stringify(Q,null,2)})]},ue))})]})})},K1=k.div`
114
- position: fixed;
115
- top: 0;
116
- left: 0;
117
- right: 0;
118
- bottom: 0;
119
- background-color: rgba(0, 0, 0, 0.5);
120
- display: flex;
121
- justify-content: center;
122
- align-items: center;
123
- z-index: 1000;
124
- `,Q1=k.div`
125
- background: ${({theme:t})=>t.colors.background};
126
- padding: 2rem;
127
- border-radius: 8px;
128
- width: 90%;
129
- max-width: 800px;
130
- max-height: 90vh;
131
- overflow-y: auto;
132
- position: relative;
133
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
134
- `,q1=k.button`
135
- position: absolute;
136
- top: 1rem;
137
- right: 1rem;
138
- background: none;
139
- border: none;
140
- font-size: 1.5rem;
141
- cursor: pointer;
142
- color: ${({theme:t})=>t.colors.text};
143
- &:hover {
144
- opacity: 0.8;
145
- }
146
- `,Y1=k.form`
147
- display: flex;
148
- flex-direction: column;
149
- gap: 1rem;
150
- `,vs=k.label`
151
- display: flex;
152
- flex-direction: column;
153
- gap: 0.5rem;
154
- color: ${({theme:t})=>t.colors.text};
155
- `,X1=k.textarea`
156
- padding: 0.5rem;
157
- border: 1px solid ${({theme:t})=>t.colors.border};
158
- border-radius: 4px;
159
- background: ${({theme:t})=>t.colors.background};
160
- color: ${({theme:t})=>t.colors.text};
161
- min-height: 100px;
162
- resize: vertical;
163
- `,Dp=k.select`
164
- padding: 0.5rem;
165
- border: 1px solid ${({theme:t})=>t.colors.border};
166
- border-radius: 4px;
167
- background: ${({theme:t})=>t.colors.background};
168
- color: ${({theme:t})=>t.colors.text};
169
- `,Z1=k.div`
170
- display: flex;
171
- align-items: center;
172
- gap: 1rem;
173
- `,ew=k.input`
174
- flex: 1;
175
- `,tw=k.span`
176
- min-width: 3rem;
177
- text-align: right;
178
- `,rw=k.button`
179
- padding: 0.5rem 1rem;
180
- background: ${({theme:t})=>t.colors.primary};
181
- color: white;
182
- border: none;
183
- border-radius: 4px;
184
- cursor: pointer;
185
- &:hover {
186
- opacity: 0.9;
187
- }
188
- &:disabled {
189
- opacity: 0.5;
190
- cursor: not-allowed;
191
- }
192
- `,nw=k.div`
193
- margin-top: 1rem;
194
- padding: 1rem;
195
- border: 1px solid ${({theme:t})=>t.colors.border};
196
- border-radius: 4px;
197
- background: ${({theme:t})=>t.colors.backgroundSecondary};
198
- white-space: pre-wrap;
199
-
200
- pre {
201
- white-space: pre-wrap;
202
- }
203
- `,ow=k.div`
204
- color: ${({theme:t})=>t.colors.error};
205
- margin-top: 1rem;
206
- padding: 0.5rem;
207
- border: 1px solid ${({theme:t})=>t.colors.error};
208
- border-radius: 4px;
209
- `;function tm(){ti("openHealthCheckModal")}function iw(){return d.jsx(Ir,{onClick:tm,"aria-label":"Health check modal",children:"🏥"})}async function sw(){const t=(await Uu()).map(o=>[o,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(t),timestamp:new Date().toISOString()}}async function lw(t){var o,i;try{const[l]=await qh("say: hello",.7,!0,{aiService:t,askQuestion:!1});return(i=(o=l==null?void 0:l.args)==null?void 0:o.message)!=null&&i.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const aw=()=>{const[t,o]=j.useState(!1),[i,l]=j.useState(!1),[u,f]=j.useState(null),[p,h]=j.useState(null),[g,v]=j.useState(null);ri("openHealthCheckModal",()=>o(!0));const y=()=>o(!1),x=async()=>{l(!0),f(null);try{const E=await sw();h(E),v(new Date);for(const[N,T]of Object.entries(E.services)){const I=Date.now(),M=await lw(N);T.status=M,T.responseTime=Date.now()-I,T.lastChecked=new Date().toISOString(),h(E),v(new Date)}}catch(E){f(E instanceof Error?E.message:"An unexpected error occurred")}finally{l(!1)}};if(j.useEffect(()=>{t&&x()},[t]),!t)return null;const S=E=>{switch(E){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},$=E=>{switch(E){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return d.jsx(uw,{onClick:E=>E.target===E.currentTarget&&y(),children:d.jsxs(cw,{children:[d.jsx(fw,{onClick:y,children:"×"}),d.jsxs(dw,{children:[d.jsx("h2",{children:"AI Services Health Check"}),d.jsx(pw,{onClick:x,disabled:i,children:i?"Checking...":"🔄 Refresh"})]}),u&&d.jsx(Cw,{children:u}),d.jsx(hw,{children:p&&Object.entries(p.services).map(([E,N])=>d.jsxs(mw,{children:[d.jsxs(gw,{children:[d.jsx(vw,{children:E}),d.jsx(yw,{children:S(N.status)})]}),d.jsxs(xw,{color:$(N.status),children:[d.jsxs("div",{children:["Status: ",N.status]}),N.responseTime&&d.jsxs("div",{children:["Response time: ",N.responseTime,"ms"]}),N.error&&d.jsx(ww,{children:N.error}),d.jsxs(Sw,{children:["Last checked: ",new Date(N.lastChecked).toLocaleTimeString()]})]})]},E))}),g&&d.jsxs(kw,{children:["Last updated: ",g.toLocaleTimeString()]}),i&&d.jsx(jw,{children:"Checking AI Services..."})]})})},uw=k.div`
210
- position: fixed;
211
- top: 0;
212
- left: 0;
213
- right: 0;
214
- bottom: 0;
215
- background-color: rgba(0, 0, 0, 0.5);
216
- display: flex;
217
- justify-content: center;
218
- align-items: center;
219
- z-index: 1000;
220
- `,cw=k.div`
221
- background: ${({theme:t})=>t.colors.background};
222
- padding: 2rem;
223
- border-radius: 8px;
224
- width: 90%;
225
- max-width: 800px;
226
- max-height: 90vh;
227
- overflow-y: auto;
228
- position: relative;
229
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
230
- `,dw=k.div`
231
- display: flex;
232
- justify-content: space-between;
233
- align-items: center;
234
- margin-bottom: 2rem;
235
-
236
- h2 {
237
- margin: 0;
238
- }
239
- `,fw=k.button`
240
- position: absolute;
241
- top: 1rem;
242
- right: 1rem;
243
- background: none;
244
- border: none;
245
- font-size: 1.5rem;
246
- cursor: pointer;
247
- color: ${({theme:t})=>t.colors.text};
248
- &:hover {
249
- opacity: 0.8;
250
- }
251
- `,pw=k.button`
252
- padding: 0.5rem 1rem;
253
- background: ${({theme:t})=>t.colors.primary};
254
- color: white;
255
- border: none;
256
- border-radius: 4px;
257
- cursor: pointer;
258
- &:hover {
259
- opacity: 0.9;
260
- }
261
- &:disabled {
262
- opacity: 0.5;
263
- cursor: not-allowed;
264
- }
265
- `,hw=k.div`
266
- display: grid;
267
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
268
- gap: 1rem;
269
- margin-bottom: 1rem;
270
- `,mw=k.div`
271
- border: 1px solid ${({theme:t})=>t.colors.border};
272
- border-radius: 4px;
273
- padding: 1rem;
274
- background: ${({theme:t})=>t.colors.backgroundSecondary};
275
- `,gw=k.div`
276
- display: flex;
277
- justify-content: space-between;
278
- align-items: center;
279
- margin-bottom: 0.5rem;
280
- `,vw=k.h3`
281
- margin: 0;
282
- font-size: 1.1rem;
283
- `,yw=k.span`
284
- font-size: 1.2rem;
285
- `,xw=k.div`
286
- color: ${({theme:t,color:o})=>{switch(o){case"success":return t.colors.success;case"error":return t.colors.error;case"warning":return t.colors.warning;default:return t.colors.text}}};
287
- font-size: 0.9rem;
288
- `,ww=k.div`
289
- color: ${({theme:t})=>t.colors.error};
290
- margin-top: 0.5rem;
291
- `,Sw=k.div`
292
- color: ${({theme:t})=>t.colors.textSecondary};
293
- font-size: 0.8rem;
294
- margin-top: 0.5rem;
295
- `,kw=k.div`
296
- text-align: right;
297
- color: ${({theme:t})=>t.colors.textSecondary};
298
- font-size: 0.8rem;
299
- margin-top: 1rem;
300
- `,Cw=k.div`
301
- color: ${({theme:t})=>t.colors.error};
302
- margin-bottom: 1rem;
303
- padding: 0.5rem;
304
- border: 1px solid ${({theme:t})=>t.colors.error};
305
- border-radius: 4px;
306
- `,jw=k.div`
307
- position: absolute;
308
- top: 0;
309
- left: 0;
310
- right: 0;
311
- bottom: 0;
312
- background: rgba(0, 0, 0, 0.3);
313
- display: flex;
314
- justify-content: center;
315
- align-items: center;
316
- border-radius: 8px;
317
- color: white;
318
- font-size: 1.2rem;
319
- `,rm=k.div`
320
- position: fixed;
321
- top: 0;
322
- left: 0;
323
- right: 0;
324
- bottom: 0;
325
- background-color: rgba(0, 0, 0, 0.5);
326
- display: flex;
327
- justify-content: center;
328
- align-items: center;
329
- z-index: 1000;
330
- `,nm=k.div`
331
- background: ${({theme:t})=>t.colors.background};
332
- padding: 2rem;
333
- border-radius: 8px;
334
- width: 90%;
335
- max-width: 800px;
336
- max-height: 90vh;
337
- overflow-y: auto;
338
- position: relative;
339
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
340
- `,om=k.div`
341
- display: flex;
342
- justify-content: space-between;
343
- align-items: center;
344
- margin-bottom: 2rem;
345
-
346
- h2 {
347
- margin: 0;
348
- }
349
- `,im=k.button`
350
- position: absolute;
351
- top: 1rem;
352
- right: 1rem;
353
- background: none;
354
- border: none;
355
- font-size: 1.5rem;
356
- cursor: pointer;
357
- color: ${({theme:t})=>t.colors.text};
358
- &:hover {
359
- opacity: 0.8;
360
- }
361
- `,Ew=k.div`
362
- display: grid;
363
- grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
364
- gap: 1rem;
365
- margin-bottom: 1rem;
366
- `,bw=k.div`
367
- border: 1px solid ${({theme:t})=>t.colors.border};
368
- border-radius: 4px;
369
- background: ${({theme:t})=>t.colors.backgroundSecondary};
370
- transition: box-shadow 0.2s ease;
371
-
372
- &:hover {
373
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
374
- }
375
- `,Nw=k.div`
376
- cursor: pointer;
377
- padding: 1rem;
378
- user-select: none;
379
- display: flex;
380
- justify-content: space-between;
381
- align-items: center;
382
- width: 100%;
383
- background: none;
384
- border: none;
385
- color: ${({theme:t})=>t.colors.text};
386
- transition: background-color 0.2s ease;
387
-
388
- &:hover {
389
- background-color: ${({theme:t})=>`${t.colors.border}20`};
390
- }
391
- `,Rw=k.div`
392
- display: flex;
393
- align-items: center;
394
- gap: 0.5rem;
395
- `,$w=k.h3`
396
- margin: 0;
397
- font-size: 1.1rem;
398
- `,Tw=k.span`
399
- display: inline-block;
400
- transition: transform 0.2s ease;
401
- transform: rotate(${({$isCollapsed:t})=>t?"0deg":"180deg"});
402
- font-size: 0.8rem;
403
- `,Pw=k.div`
404
- overflow: hidden;
405
- transition: height 0.3s ease;
406
- height: ${({$isCollapsed:t})=>t?"0":"auto"};
407
- padding: ${({$isCollapsed:t})=>t?"0 1rem":"0 1rem 1rem"};
408
- opacity: ${({$isCollapsed:t})=>t?"0":"1"};
409
- transition: all 0.3s ease;
410
- `,_w=k.form`
411
- display: flex;
412
- flex-direction: column;
413
- gap: 1rem;
414
- `,_t=k.div`
415
- display: flex;
416
- flex-direction: column;
417
- gap: 0.5rem;
418
- `,Lt=k.label`
419
- font-size: 0.9rem;
420
- color: ${({theme:t})=>t.colors.text};
421
- `,Tn=k.input`
422
- padding: 0.5rem;
423
- border: 1px solid ${({theme:t})=>t.colors.border};
424
- border-radius: 4px;
425
- background: ${({theme:t})=>t.colors.background};
426
- color: ${({theme:t})=>t.colors.text};
427
- font-size: 0.9rem;
428
-
429
- &:focus {
430
- outline: none;
431
- border-color: ${({theme:t})=>t.colors.primary};
432
- }
433
- `,Lw=k.button`
434
- padding: 0.5rem 1rem;
435
- background: ${({theme:t})=>t.colors.primary};
436
- color: white;
437
- border: none;
438
- border-radius: 4px;
439
- cursor: pointer;
440
- font-size: 0.9rem;
441
-
442
- &:hover {
443
- opacity: 0.9;
444
- }
445
-
446
- &:disabled {
447
- opacity: 0.5;
448
- cursor: not-allowed;
449
- }
450
- `,Iw=k.div`
451
- color: ${({theme:t})=>t.colors.error};
452
- margin-bottom: 1rem;
453
- padding: 0.5rem;
454
- border: 1px solid ${({theme:t})=>t.colors.error};
455
- border-radius: 4px;
456
- `,Ow=k.div`
457
- color: ${({theme:t})=>t.colors.success};
458
- margin-bottom: 1rem;
459
- padding: 0.5rem;
460
- border: 1px solid ${({theme:t})=>t.colors.success};
461
- border-radius: 4px;
462
- `,Aw=k.div`
463
- color: ${({theme:t})=>t.colors.error};
464
- `,Mw=k.div`
465
- position: absolute;
466
- top: 0;
467
- left: 0;
468
- right: 0;
469
- bottom: 0;
470
- background: rgba(0, 0, 0, 0.3);
471
- display: flex;
472
- justify-content: center;
473
- align-items: center;
474
- border-radius: 8px;
475
- color: white;
476
- font-size: 1.2rem;
477
- `,Pn=t=>t==="vertex-ai"||t==="vertex-ai-claude",tu=t=>t==="vertex-ai-claude",Dw=t=>t==="openai"||t==="local-llm",zw=({serviceType:t,config:o,onUpdate:i,isLoading:l,isExpanded:u,onCardClick:f})=>{var je,Ne;const[p,h]=j.useState(""),[g,v]=j.useState(!!(o!=null&&o.hasApiKey)),[y,x]=j.useState(((je=o==null?void 0:o.modelOverrides)==null?void 0:je.default)||""),[S,$]=j.useState(((Ne=o==null?void 0:o.modelOverrides)==null?void 0:Ne.cheap)||""),[E,N]=j.useState((o==null?void 0:o.googleCloudProjectId)||""),[T,I]=j.useState((o==null?void 0:o.googleCloudRegion)||""),[M,D]=j.useState((o==null?void 0:o.openaiBaseUrl)||""),[U,J]=j.useState(null);j.useEffect(()=>{var ge,Ee;v(!!(o!=null&&o.hasApiKey)),x(((ge=o==null?void 0:o.modelOverrides)==null?void 0:ge.default)||""),$(((Ee=o==null?void 0:o.modelOverrides)==null?void 0:Ee.cheap)||""),N((o==null?void 0:o.googleCloudProjectId)||""),I((o==null?void 0:o.googleCloudRegion)||""),D((o==null?void 0:o.openaiBaseUrl)||"")},[o]);const H=()=>{if(Pn(t)){if(!E)return J("GCP Project ID is required for Vertex AI services"),!1;if(tu(t)&&!T)return J("GCP Region is required for Vertex AI Claude"),!1}else if(!g&&!p)return J("API Key is required"),!1;return J(null),!0},K=ge=>{if(ge.preventDefault(),!H())return;const Ee={modelOverrides:{default:y||void 0,cheap:S||void 0}};Pn(t)?(Ee.googleCloudProjectId=E,tu(t)&&(Ee.googleCloudRegion=T)):(Ee.apiKey=p||void 0,Ee.openaiBaseUrl=M||void 0),i(Ee)},Q=j.useCallback(()=>{f&&f(t)},[f,t]),ue=ge=>{(ge.key==="Enter"||ge.key===" ")&&(ge.preventDefault(),Q())};return d.jsxs(bw,{children:[d.jsxs(Nw,{onClick:Q,onKeyDown:ue,role:"button",tabIndex:0,"aria-expanded":!!u,"aria-controls":`config-content-${t}`,children:[d.jsxs(Rw,{children:[d.jsx($w,{children:t}),!Pn(t)&&g&&d.jsx("span",{title:"API Key is set",children:"🔑"}),Pn(t)&&E&&d.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),d.jsx(Tw,{$isCollapsed:!u,children:"▼"})]}),d.jsx(Pw,{$isCollapsed:!u,id:`config-content-${t}`,"aria-hidden":!u,children:d.jsxs(_w,{onSubmit:K,children:[!Pn(t)&&d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`apiKey-${t}`,children:"API Key"}),d.jsx(Tn,{id:`apiKey-${t}`,type:"password",value:p,onChange:ge=>h(ge.target.value),placeholder:g?"API key is set":"Enter API key","aria-label":`API Key for ${t}`})]}),Dw(t)&&d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`baseUrl-${t}`,children:"Base URL"}),d.jsx(Tn,{id:`baseUrl-${t}`,type:"text",value:M,onChange:ge=>D(ge.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${t}`})]}),Pn(t)&&d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`projectId-${t}`,children:"GCP Project ID"}),d.jsx(Tn,{id:`projectId-${t}`,type:"text",value:E,onChange:ge=>N(ge.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${t}`,required:!0})]}),tu(t)&&d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`region-${t}`,children:"GCP Region"}),d.jsx(Tn,{id:`region-${t}`,type:"text",value:T,onChange:ge=>I(ge.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${t}`,required:!0})]}),d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`defaultModel-${t}`,children:"Default Model"}),d.jsx(Tn,{id:`defaultModel-${t}`,type:"text",value:y,onChange:ge=>x(ge.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${t}`})]}),d.jsxs(_t,{children:[d.jsx(Lt,{htmlFor:`cheapModel-${t}`,children:"Cheap Model"}),d.jsx(Tn,{id:`cheapModel-${t}`,type:"text",value:S,onChange:ge=>$(ge.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${t}`})]}),U&&d.jsx(Aw,{role:"alert","aria-live":"polite",children:U}),d.jsx(Lw,{type:"submit",disabled:l,"aria-busy":l,children:l?"Updating...":"Update Configuration"})]})})]})};function sm(){ti("openServiceConfigurationModal")}function Fw(){return d.jsx(Ir,{onClick:sm,"aria-label":"Open service configuration",children:"⚙️"})}const lm=t=>t==="vertex-ai"||t==="vertex-ai-claude",Bw=t=>t==="openai"||t==="local-llm",Uw=(t,o)=>{var l,u;const i=["Configuration updated successfully for "+t];return lm(t)?(o.googleCloudProjectId&&i.push(`GCP Project ID: ${o.googleCloudProjectId}`),t==="vertex-ai-claude"&&o.googleCloudRegion&&i.push(`GCP Region: ${o.googleCloudRegion}`)):o.apiKey&&i.push("API key has been updated"),(l=o.modelOverrides)!=null&&l.default&&i.push(`Default model: ${o.modelOverrides.default}`),(u=o.modelOverrides)!=null&&u.cheap&&i.push(`Cheap model: ${o.modelOverrides.cheap}`),Bw(t)&&"openaiBaseUrl"in o&&i.push(`OpenAI base URL: ${o.openaiBaseUrl}`),i.join(`
478
- `)},Vw=(t,o)=>{if(lm(t)){if(!o.googleCloudProjectId)return`GCP Project ID is required for ${t}`;if(t==="vertex-ai-claude"&&!o.googleCloudRegion)return"GCP Region is required for Vertex AI Claude"}return null},Hw=()=>{const[t,o]=j.useState(!1),[i,l]=j.useState(!1),[u,f]=j.useState(null),[p,h]=j.useState(null),[g,v]=j.useState(),[y]=Xh();ri("openServiceConfigurationModal",()=>o(!0));const x=()=>{o(!1),f(null),h(null)};j.useEffect(()=>{t&&S()},[t]);const S=async()=>{l(!0),f(null);try{const I=await Yh();v(I)}catch(I){f(I instanceof Error?I.message:"Failed to fetch configurations")}finally{l(!1)}},$=async(I,M)=>{l(!0),f(null),h(null);const D=Vw(I,M);if(D){f(D),l(!1);return}try{await H1({serviceType:I,config:M}),await S(),h(Uw(I,M))}catch(U){let J="Failed to update configuration";U instanceof Error&&(J=U.message,U.message.includes("auth")?J=`Authentication error for ${I}: ${U.message}`:U.message.includes("permission")&&(J=`Permission error for ${I}: ${U.message}`)),f(J)}finally{l(!1)}},[E,N]=j.useState(null),T=j.useCallback(I=>{N(M=>M===I?null:I)},[N]);return t?d.jsx(rm,{onClick:I=>I.target===I.currentTarget&&x(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:d.jsxs(nm,{children:[d.jsx(im,{onClick:x,"aria-label":"Close configuration modal",children:"×"}),d.jsx(om,{children:d.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),u&&d.jsx(Iw,{role:"alert","aria-live":"polite",children:u}),p&&d.jsx(Ow,{role:"status","aria-live":"polite",children:p.split(`
479
- `).map((I,M)=>d.jsx("div",{children:I},M))}),d.jsx(Ew,{children:g?y.map(I=>d.jsx(zw,{serviceType:I,config:g[I],onUpdate:M=>$(I,M),isLoading:i,isExpanded:E===I,onCardClick:T},I)):d.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),i&&d.jsx(Mw,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},am=Gn`
480
- from {
481
- opacity: 0;
482
- }
483
- to {
484
- opacity: 1;
485
- }
486
- `,Ww=Gn`
487
- from {
488
- transform: translateX(100%);
489
- }
490
- to {
491
- transform: translateX(0);
492
- }
493
- `,Gw=k.button`
494
- background: none;
495
- border: none;
496
- font-size: 1.5rem;
497
- cursor: pointer;
498
- padding: 8px;
499
- color: ${({theme:t})=>t.colors.text};
500
- transition: color 0.2s ease;
501
- display: flex;
502
- align-items: center;
503
- justify-content: center;
504
-
505
- &:hover {
506
- color: ${({theme:t})=>t.colors.primary};
507
- }
508
-
509
- &:focus {
510
- outline: 2px solid ${({theme:t})=>t.colors.primary};
511
- outline-offset: 2px;
512
- border-radius: 4px;
513
- }
514
- `,Jw=k.div`
515
- position: fixed;
516
- top: 0;
517
- left: 0;
518
- right: 0;
519
- bottom: 0;
520
- background-color: rgba(0, 0, 0, 0.5);
521
- z-index: 998;
522
- display: ${({isOpen:t})=>t?"block":"none"};
523
- animation: ${am} 0.2s ease;
524
- `,Kw=k.div`
525
- position: absolute;
526
- ${({position:t})=>t?st`
527
- top: ${t.top??"auto"};
528
- right: ${t.right??"auto"};
529
- left: ${t.left??"auto"};
530
- bottom: ${t.bottom??"auto"};
531
- `:st`
532
- top: 100%;
533
- right: 0;
534
- `}
535
- background-color: ${({theme:t})=>t.colors.pageBackground};
536
- border-radius: 8px;
537
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
538
- padding: 8px 0;
539
- min-width: 200px;
540
- z-index: 999;
541
- opacity: ${({isOpen:t})=>t?1:0};
542
- visibility: ${({isOpen:t})=>t?"visible":"hidden"};
543
- transform-origin: top right;
544
- animation: ${({isOpen:t})=>t?st`
545
- ${Ww} 0.2s ease,
546
- ${am} 0.2s ease
547
- `:"none"};
548
-
549
- @media (max-width: 576px) {
550
- position: fixed;
551
- top: 0;
552
- right: 0;
553
- bottom: 0;
554
- min-width: 250px;
555
- border-radius: 0;
556
- border-top-left-radius: 8px;
557
- border-bottom-left-radius: 8px;
558
- transform-origin: center right;
559
- }
560
- `,Qw=k.div`
561
- padding: 12px 16px;
562
- cursor: pointer;
563
- transition: background-color 0.2s ease;
564
- display: flex;
565
- align-items: center;
566
- gap: 8px;
567
- color: ${({theme:t})=>t.colors.text};
568
-
569
- &:hover {
570
- background-color: ${({theme:t})=>t.colors.backgroundSecondary};
571
- }
572
-
573
- &:focus-within {
574
- background-color: ${({theme:t})=>t.colors.backgroundSecondary};
575
- outline: 2px solid ${({theme:t})=>t.colors.primary};
576
- outline-offset: -2px;
577
- }
578
- `,qw=k.div`
579
- position: relative;
580
- display: inline-block;
581
- `,Yw=({menuItems:t,isOpen:o,onToggle:i,className:l,buttonAriaLabel:u="Toggle menu",menuAriaLabel:f="Navigation menu",position:p})=>{const h=j.useRef(null),g=j.useRef(null),v=j.useRef(null);j.useEffect(()=>{const S=E=>{var N;o&&h.current&&!h.current.contains(E.target)&&!((N=v.current)!=null&&N.contains(E.target))&&i()},$=E=>{var N;o&&E.key==="Escape"&&(i(),(N=v.current)==null||N.focus())};return document.addEventListener("mousedown",S),document.addEventListener("keydown",$),()=>{document.removeEventListener("mousedown",S),document.removeEventListener("keydown",$)}},[o,i]),j.useEffect(()=>{var S;o&&((S=g.current)==null||S.focus())},[o]);const y=S=>{var N,T;if(!o)return;const $=Array.from(((N=h.current)==null?void 0:N.querySelectorAll('[role="menuitem"]'))||[]),E=$.indexOf(document.activeElement);switch(S.key){case"ArrowDown":S.preventDefault(),E<$.length-1?$[E+1].focus():$[0].focus();break;case"ArrowUp":S.preventDefault(),E>0?$[E-1].focus():$[$.length-1].focus();break;case"Home":S.preventDefault(),$[0].focus();break;case"End":S.preventDefault(),$[$.length-1].focus();break;case"Enter":case" ":S.preventDefault(),E>=0&&(t[E].onClick(),i(),(T=v.current)==null||T.focus());break}},x=S=>{var $;S(),i(),($=v.current)==null||$.focus()};return d.jsxs(qw,{className:l,children:[d.jsx(Gw,{onClick:i,"aria-expanded":o,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":u,ref:v,children:"☰"}),d.jsx(Jw,{isOpen:o,onClick:i}),d.jsx(Kw,{isOpen:o,position:p,ref:h,role:"menu","aria-label":f,id:"menu-items",onKeyDown:y,children:t.map((S,$)=>d.jsxs(Qw,{onClick:()=>x(S.onClick),role:"menuitem",tabIndex:o?0:-1,ref:$===0?g:null,"aria-label":S.ariaLabel,children:[S.content," ",S.ariaLabel]},S.key||$))})]})};function um(){ti("openRcConfigModal")}const Xw=({rcConfig:t})=>{const[o,i]=j.useState(!1);ri("openRcConfigModal",()=>i(!0));const l=()=>{i(!1)};return!o||!t?null:d.jsx(rm,{onClick:u=>u.target===u.currentTarget&&l(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:d.jsxs(nm,{children:[d.jsx(im,{onClick:l,"aria-label":"Close RC configuration modal",children:"×"}),d.jsx(om,{children:d.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),d.jsxs(Zw,{children:[d.jsxs(_t,{children:[d.jsx(Lt,{children:"Root Directory"}),d.jsx(_n,{children:t.rootDir})]}),t.lintCommand&&d.jsxs(_t,{children:[d.jsx(Lt,{children:"Lint Command"}),d.jsx(_n,{children:t.lintCommand})]}),t.extensions&&t.extensions.length>0&&d.jsxs(_t,{children:[d.jsx(Lt,{children:"Extensions"}),d.jsx(_n,{children:t.extensions.join(", ")})]}),t.ignorePaths&&t.ignorePaths.length>0&&d.jsxs(_t,{children:[d.jsx(Lt,{children:"Ignore Paths"}),d.jsx(_n,{children:t.ignorePaths.join(", ")})]}),t.importantContext&&d.jsxs(_t,{children:[d.jsx(Lt,{children:"Important Context"}),d.jsx(_n,{children:t.importantContext.files?`Files: ${t.importantContext.files.join(", ")}`:"None"})]}),t.modelOverrides&&d.jsxs(_t,{children:[d.jsx(Lt,{children:"Model Overrides"}),d.jsx(_n,{children:d.jsx("pre",{children:JSON.stringify(t.modelOverrides,null,2)})})]})]})]})})},Zw=k.div`
582
- display: flex;
583
- flex-direction: column;
584
- gap: 1rem;
585
- margin-top: 1rem;
586
- `,_n=k.div`
587
- color: ${({theme:t})=>t.colors.text};
588
- font-family: monospace;
589
- background-color: ${({theme:t})=>t.colors.backgroundSecondary};
590
- padding: 0.5rem;
591
- border-radius: 4px;
592
- overflow-x: auto;
593
-
594
- pre {
595
- margin: 0;
596
- white-space: pre-wrap;
597
- }
598
- `,eS=()=>d.jsx(Ir,{onClick:um,children:"ℹ️"}),tS=k.div`
599
- position: fixed;
600
- top: 0;
601
- left: 0;
602
- right: 0;
603
- bottom: 0;
604
- background-color: rgba(0, 0, 0, 0.5);
605
- display: flex;
606
- justify-content: center;
607
- align-items: center;
608
- z-index: 1000;
609
- `,rS=k.div`
610
- background: ${({theme:t})=>t.colors.background};
611
- padding: 2rem;
612
- border-radius: 8px;
613
- width: 90%;
614
- max-width: 800px;
615
- max-height: 90vh;
616
- overflow-y: auto;
617
- position: relative;
618
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
619
- `,nS=k.div`
620
- display: flex;
621
- justify-content: space-between;
622
- align-items: center;
623
- margin-bottom: 2rem;
624
-
625
- h2 {
626
- margin: 0;
627
- }
628
- `,oS=k.button`
629
- position: absolute;
630
- top: 1rem;
631
- right: 1rem;
632
- background: none;
633
- border: none;
634
- font-size: 1.5rem;
635
- cursor: pointer;
636
- color: ${({theme:t})=>t.colors.text};
637
- &:hover {
638
- opacity: 0.8;
639
- }
640
- `,iS=k.div`
641
- display: flex;
642
- flex-direction: column;
643
- gap: 1rem;
644
- margin-bottom: 1rem;
645
- `,sS=k.div`
646
- color: ${({theme:t})=>t.colors.error};
647
- margin-bottom: 1rem;
648
- padding: 0.5rem;
649
- border: 1px solid ${({theme:t})=>t.colors.error};
650
- border-radius: 4px;
651
- `,lS=k.div`
652
- color: ${({theme:t})=>t.colors.success};
653
- margin-bottom: 1rem;
654
- padding: 0.5rem;
655
- border: 1px solid ${({theme:t})=>t.colors.success};
656
- border-radius: 4px;
657
- `,aS=k.div`
658
- position: absolute;
659
- top: 0;
660
- left: 0;
661
- right: 0;
662
- bottom: 0;
663
- background: rgba(0, 0, 0, 0.3);
664
- display: flex;
665
- justify-content: center;
666
- align-items: center;
667
- border-radius: 8px;
668
- color: white;
669
- font-size: 1.2rem;
670
- `,As=({value:t,onChange:o,disabled:i})=>{const{services:l,isLoading:u,error:f}=Zh(),p=h=>{o(h.target.value)};return d.jsxs(uS,{children:[d.jsxs(cS,{id:"aiService",value:t,onChange:p,disabled:i||u||f!==null,children:[d.jsx("option",{value:"",children:"Select AI Service"}),l.map(({service:h,displayName:g})=>d.jsx("option",{value:h,children:g},h))]}),u&&d.jsx(dS,{children:"Loading services..."}),f&&d.jsx(fS,{children:f})]})},uS=k.div`
671
- display: flex;
672
- flex-direction: column;
673
- gap: 4px;
674
- `,cS=k.select`
675
- padding: 8px;
676
- border: 1px solid ${({theme:t})=>t.colors.border};
677
- border-radius: 4px;
678
- background-color: ${({theme:t})=>t.colors.inputBg};
679
- color: ${({theme:t})=>t.colors.inputText};
680
- font-size: 14px;
681
- max-width: 200px; /* Ensure enough space for longer options */
682
-
683
- &:disabled {
684
- background-color: ${({theme:t})=>t.colors.disabled};
685
- cursor: not-allowed;
686
- }
687
-
688
- option {
689
- padding: 4px;
690
- background-color: ${({theme:t})=>t.colors.inputBg};
691
- color: ${({theme:t})=>t.colors.inputText};
692
- }
693
- `,dS=k.div`
694
- color: ${({theme:t})=>t.colors.text};
695
- font-size: 14px;
696
- font-style: italic;
697
- `,fS=k.div`
698
- color: ${({theme:t})=>t.colors.error};
699
- font-size: 14px;
700
- `;function cm(){ti("openGenaicodeConfigModal")}function pS(){return d.jsx(Ir,{onClick:cm,"aria-label":"Open Genaicode configuration",children:"🐺"})}const hS=({options:t,onOptionsChange:o})=>{const[i,l]=j.useState(!1),[u,f]=j.useState(!1),[p,h]=j.useState(null),[g,v]=j.useState(null);ri("openGenaicodeConfigModal",()=>l(!0));const y=()=>{l(!1),h(null),v(null)},x=async N=>{f(!0),h(null),v(null);try{o(N),v("Configuration updated successfully")}catch{h("Failed to update configuration")}finally{f(!1)}},S=N=>{const{name:T,value:I,type:M}=N.target,D=M==="checkbox"?N.target.checked:I;x({...t,[T]:D})},$=N=>{x({...t,aiService:N})},E=N=>{const T=N.target.value.split(",").map(I=>I.trim());x({...t,ignorePatterns:T})};return i?d.jsx(tS,{onClick:N=>N.target===N.currentTarget&&y(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:d.jsxs(rS,{children:[d.jsx(oS,{onClick:y,"aria-label":"Close configuration modal",children:"×"}),d.jsx(nS,{children:d.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),p&&d.jsx(sS,{role:"alert","aria-live":"polite",children:p}),g&&d.jsx(lS,{role:"status","aria-live":"polite",children:g}),d.jsxs(iS,{children:[d.jsxs(Ho,{children:[d.jsx(Zt,{htmlFor:"aiService",children:"Default AI Service:"}),d.jsx(As,{value:t.aiService,onChange:$,disabled:u})]}),d.jsxs(Ho,{children:[d.jsx(Zt,{htmlFor:"contentMask",children:"Content Mask:"}),d.jsx(zp,{type:"text",id:"contentMask",name:"contentMask",value:t.contentMask||"",onChange:S,disabled:u})]}),d.jsxs(Ho,{children:[d.jsx(Zt,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),d.jsx(zp,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:t.ignorePatterns?t.ignorePatterns.join(", "):"",onChange:E,disabled:u}),d.jsx("small",{children:"Comma-separated list of patterns"})]}),d.jsxs(Ho,{children:[d.jsx(Zt,{children:"File Operations:"}),d.jsxs(Zt,{htmlFor:"allowFileCreate",children:[d.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:t.allowFileCreate!==!1,onChange:S,disabled:u}),"Allow File Create"]}),d.jsxs(Zt,{htmlFor:"allowFileDelete",children:[d.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:t.allowFileDelete!==!1,onChange:S,disabled:u}),"Allow File Delete"]}),d.jsxs(Zt,{htmlFor:"allowDirectoryCreate",children:[d.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:t.allowDirectoryCreate!==!1,onChange:S,disabled:u}),"Allow Directory Create"]}),d.jsxs(Zt,{htmlFor:"allowFileMove",children:[d.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:t.allowFileMove!==!1,onChange:S,disabled:u}),"Allow File Move"]})]}),d.jsxs(Ho,{children:[d.jsx(Zt,{children:"Notification Settings:"}),d.jsxs(Zt,{htmlFor:"muteNotifications",children:[d.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:t.muteNotifications===!0,onChange:S,disabled:u}),"Mute Sound Notifications"]})]})]}),u&&d.jsx(aS,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},Ho=k.div`
701
- margin-bottom: 16px;
702
- `,Zt=k.label`
703
- display: block;
704
- margin-bottom: 4px;
705
- color: ${t=>t.theme.colors.text};
706
- `,zp=k.input`
707
- width: 100%;
708
- padding: 8px;
709
- border: 1px solid ${t=>t.theme.colors.border};
710
- border-radius: 4px;
711
- background-color: ${t=>t.theme.colors.inputBg};
712
- color: ${t=>t.theme.colors.inputText};
713
-
714
- &:disabled {
715
- background-color: ${t=>t.theme.colors.disabled};
716
- cursor: not-allowed;
717
- }
718
- `,mS="0.10.3",dm=()=>d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:d.jsx("path",{d:"M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3ZM19 19H5V5H19V19ZM13.96 12.29L11.21 15.83L9.25 13.47L6.5 17H17.5L13.96 12.29Z",fill:"currentColor"})}),gS=()=>d.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[d.jsx("path",{d:"M10 3H8C6.89543 3 6 3.89543 6 5V7M10 21H8C6.89543 21 6 20.1046 6 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("path",{d:"M14 3H16C17.1046 3 18 3.89543 18 5V7M14 21H16C17.1046 21 18 20.1046 18 19V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),d.jsx("rect",{x:"6",y:"10",width:"12",height:"4",rx:"1",stroke:"currentColor",strokeWidth:"2"}),d.jsx("path",{d:"M12 7V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),d.jsx("path",{d:"M12 14V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),vS=500,Qn=j.createContext({messages:[],executionStatus:"idle",currentQuestion:null,suggestions:[],currentPrompt:"",theme:"dark",usage:void 0,codegenOptions:void 0,rcConfig:null,lastFinishedExecutionId:null,initialDataLoaded:!1,conversationGraphState:null,isGraphVisualiserOpen:!1,setMessages:()=>{},setExecutionStatus:()=>{},setCurrentQuestion:()=>{},setSuggestions:()=>{},setCurrentPrompt:()=>{},toggleTheme:()=>{},setCodegenOptions:()=>{},setLastFinishedExecutionId:()=>{},startPolling:()=>{},stopPolling:()=>{},handlePauseExecution:async()=>{},handleResumeExecution:async()=>{},setConversationGraphState:()=>{},toggleGraphVisualiser:()=>{}}),yS=({children:t})=>{const[o,i]=j.useState([]),[l,u]=j.useState("idle"),[f,p]=j.useState(null),[h,g]=j.useState([]),[v,y]=j.useState(""),[x,S]=j.useState("dark"),[$,E]=j.useState(),[N,T]=j.useState(void 0),[I,M]=j.useState(null),[D,U]=j.useState(null),J=j.useRef(!1),[H,K]=j.useState(!1),Q=j.useRef(null),[ue,je]=j.useState(null),[Ne,ge]=j.useState(!1),Ee=j.useCallback(()=>{S(ne=>ne==="light"?"dark":"light")},[]),Se=j.useCallback(ne=>{T(ne)},[]),Y=j.useCallback(()=>{ge(ne=>!ne)},[]),xe=j.useCallback(async()=>{try{const[ne,ce,ve,de,se,pe]=await Promise.all([ku(),Cu(),Ap(),Mp(),B1(),U1()]);u(ne),p(ce),i(ve.filter(he=>!!he.message).map(he=>({...he.message,data:he.data}))),E(de),T(se),M(pe),K(!0)}catch(ne){console.error("Failed to fetch initial data:",ne),K(!1)}},[]);j.useEffect(()=>{xe()},[xe]);const ie=j.useCallback(async()=>{try{const[ne,ce,ve,de]=await Promise.all([ku(),Cu(),Ap(),Mp()]);u(se=>se!==ne?ne:se),p(se=>(se==null?void 0:se.id)!==(ce==null?void 0:ce.id)?ce:se),i(se=>{const pe=ve.filter(he=>!!he.message).map(he=>({...he.message,data:he.data}));return se.length!==pe.length||se.length>0&&pe.length>0&&se[se.length-1].id!==pe[pe.length-1].id?pe:se}),E(se=>(se==null?void 0:se.usageMetrics.total.cost)!==(de==null?void 0:de.usageMetrics.total.cost)||(se==null?void 0:se.usageMetrics.total.tpd)!==(de==null?void 0:de.usageMetrics.total.tpd)?de:se)}catch(ne){console.error("Failed to poll data:",ne)}Q.current&&clearTimeout(Q.current),J.current&&(Q.current=setTimeout(ie,vS))},[]),G=j.useCallback(()=>{J.current||(console.log("Starting polling..."),J.current=!0,Q.current&&clearTimeout(Q.current),requestAnimationFrame(()=>{ie()}))},[ie]),ee=j.useCallback(()=>{J.current&&(console.log("Stopping polling..."),J.current=!1,Q.current&&(clearTimeout(Q.current),Q.current=null))},[]);j.useEffect(()=>(H&&G(),()=>{ee()}),[H,G,ee]);const q=j.useCallback(async()=>{try{await D1(),u("paused")}catch(ne){console.error("Failed to pause execution:",ne)}},[]),R=j.useCallback(async()=>{try{await z1(),u("executing")}catch(ne){console.error("Failed to resume execution:",ne)}},[]),z=j.useMemo(()=>({messages:o,executionStatus:l,currentQuestion:f,suggestions:h,currentPrompt:v,theme:x,usage:$,codegenOptions:N,rcConfig:I,lastFinishedExecutionId:D,initialDataLoaded:H,conversationGraphState:ue,isGraphVisualiserOpen:Ne,setMessages:i,setExecutionStatus:u,setCurrentQuestion:p,setSuggestions:g,setCurrentPrompt:y,toggleTheme:Ee,setCodegenOptions:Se,setLastFinishedExecutionId:U,startPolling:G,stopPolling:ee,handlePauseExecution:q,handleResumeExecution:R,setConversationGraphState:je,toggleGraphVisualiser:Y}),[o,l,f,h,v,x,$,N,I,D,H,ue,Ne,Ee,Se,G,ee,q,R,Y]);return d.jsx(Qn.Provider,{value:z,children:t})},Vu=()=>{const t=ct.useContext(Qn);if(!t)throw new Error("useChatState must be used within a ChatStateProvider");return t},xS=Gn`
719
- 0% {
720
- transform: scale(1);
721
- box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7); // Use theme primary color ideally
722
- }
723
- 70% {
724
- transform: scale(1.05);
725
- box-shadow: 0 0 0 10px rgba(0, 123, 255, 0);
726
- }
727
- 100% {
728
- transform: scale(1);
729
- box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
730
- }
731
- `,wS=k.div`
732
- position: absolute; // Positioned relative to MainContent
733
- bottom: 40px;
734
- right: 30px;
735
- z-index: 1000; // Ensure it's above other content like scrollbars
736
- `,SS=k(Ir)`
737
- width: 50px; // Increased size
738
- height: 50px; // Increased size
739
- background-color: ${({theme:t})=>t.colors.primary};
740
- color: ${({theme:t})=>t.colors.buttonText||"#ffffff"}; // Ensure icon is visible
741
- border: none;
742
- animation: ${xS} 2s infinite;
743
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
744
-
745
- &:hover {
746
- background-color: ${({theme:t})=>t.colors.primaryHover};
747
- animation-play-state: paused; // Pause animation on hover
748
- }
749
-
750
- // Style when the visualiser panel is open (isActive prop)
751
- ${({isActive:t,theme:o})=>t&&st`
752
- background-color: ${o.colors.buttonHoverBg}; // Existing active style
753
- border: 1px solid ${o.colors.primary};
754
- animation: none; // Turn off animation when visualiser is open
755
- `}
756
- `,kS=()=>{const{toggleGraphVisualiser:t,isGraphVisualiserOpen:o,conversationGraphState:i}=Vu();return i!=null&&i.isActive?d.jsx(wS,{children:d.jsx(SS,{onClick:t,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:o,children:d.jsx(gS,{})})}):null},CS="https://github.com/gtanczyk/genaicode/issues",jS=({themeToggle:t,chatInterface:o,inputArea:i,usage:l,toggleTheme:u})=>{const[f,p]=j.useState(!1),h=[{content:d.jsx(Fw,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:sm},{content:d.jsx(iw,{}),ariaLabel:"Health Check",key:"health-check",onClick:tm},{content:d.jsx(G1,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:em},{content:d.jsx(pS,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:cm},{content:t,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:u},{content:d.jsx(eS,{}),ariaLabel:"Information",key:"info",onClick:um},{content:d.jsx(Ir,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(CS,"_blank","noopener,noreferrer")}];return d.jsxs(ES,{children:[d.jsxs(bS,{children:[d.jsx(NS,{children:d.jsxs(RS,{children:[d.jsx($S,{children:"GenAIcode"}),d.jsxs(TS,{children:["v",mS]})]})}),d.jsxs(PS,{children:[d.jsx(_S,{children:d.jsx(Z0,{usage:l})}),d.jsx(LS,{children:d.jsx(Yw,{menuItems:h,isOpen:f,onToggle:()=>p(!f),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),d.jsxs(IS,{children:[d.jsx(OS,{children:o}),d.jsx(AS,{children:i}),d.jsx(kS,{})]})]})},ES=k.div`
757
- display: flex;
758
- flex-direction: column;
759
- height: 100vh;
760
- max-width: 1200px;
761
- margin: 0 auto;
762
- padding: 0 10px;
763
- `,bS=k.header`
764
- position: relative;
765
- display: flex;
766
- justify-content: space-between;
767
- align-items: center;
768
- padding: 10px 0;
769
- flex-wrap: nowrap;
770
- gap: 10px;
771
- `,NS=k.div`
772
- display: flex;
773
- align-items: center;
774
- gap: 10px;
775
- `,RS=k.div`
776
- position: relative;
777
- `,$S=k.h1`
778
- text-transform: uppercase;
779
- font-family: 'Press Start 2P', system-ui;
780
- color: ${({theme:t})=>t.colors.primary};
781
- margin: 0;
782
- font-size: clamp(0.6rem, 2.5vw, 1.5rem);
783
- white-space: nowrap;
784
- overflow: hidden;
785
- text-overflow: ellipsis;
786
- `,TS=k.span`
787
- position: absolute;
788
- bottom: 0;
789
- right: 0;
790
- font-size: 0.6rem;
791
- color: ${({theme:t})=>t.colors.text};
792
- background-color: ${({theme:t})=>t.colors.backgroundAlt};
793
- padding: 2px 4px;
794
- border-radius: 3px;
795
- transform: translateY(100%);
796
- white-space: nowrap;
797
- `,PS=k.div`
798
- display: flex;
799
- align-items: center;
800
- gap: 16px;
801
- flex-wrap: nowrap;
802
- flex-shrink: 0;
803
-
804
- @media (max-width: 576px) {
805
- gap: 8px;
806
- }
807
- `,_S=k.div`
808
- flex-shrink: 1;
809
- min-width: 0;
810
- `,LS=k.div`
811
- display: flex;
812
- align-items: center;
813
-
814
- @media (max-width: 576px) {
815
- position: relative;
816
- }
817
- `,IS=k.main`
818
- display: flex;
819
- flex-direction: column;
820
- flex-grow: 1;
821
- min-height: 0;
822
- position: relative;
823
- z-index: 1;
824
- `,OS=k.div`
825
- flex-grow: 1;
826
- overflow: hidden;
827
- margin-bottom: 20px;
828
- `,AS=k.div`
829
- flex-shrink: 0;
830
- `,MS=({codegenOptions:t})=>{const{setCurrentPrompt:o,setExecutionStatus:i,setCurrentQuestion:l,setCodegenOptions:u,handlePauseExecution:f,handleResumeExecution:p}=j.useContext(Qn),h=async($,E)=>{o($),i("executing");try{if(await ku()==="executing"){console.warn("Execution is already executing"),i("executing");return}if(!t){console.error("Codegen options not available"),i("idle");return}await A1($,t,E.length>0?E:void 0),i("executing")}catch(N){console.error("Failed to execute codegen:",N),i("idle")}},g=async($,E,N,T)=>{const I=await Cu();if(I)try{if(l(null),t){const M={...t,aiService:T??t.aiService};u(M),await F1(I.id,$,N,M,E)}else console.error("Codegen options not available for submitting answer")}catch(M){console.error("Failed to submit answer:",M),l(I)}},v=async()=>{try{l(null),await M1()}catch($){console.error("Failed to interrupt execution:",$)}},y=j.useCallback($=>{u($)},[u]);return{handleExecute:h,handleQuestionSubmit:g,handleInterrupt:v,handleOptionsChange:y,handlePauseExecution:f,handleResumeExecution:p}};var _r=(t=>(t.USER="user",t.ASSISTANT="assistant",t.SYSTEM="system",t))(_r||{}),Hu=(t=>(t.CONVERSATION_SUMMARY="conversation-summary",t.MESSAGE_EDITABLE="editable",t))(Hu||{});function A(){return A=Object.assign?Object.assign.bind():function(t){for(var o=1;o<arguments.length;o++){var i=arguments[o];for(var l in i)({}).hasOwnProperty.call(i,l)&&(t[l]=i[l])}return t},A.apply(null,arguments)}function ke(t,o){if(t==null)return{};var i={};for(var l in t)if({}.hasOwnProperty.call(t,l)){if(o.indexOf(l)!==-1)continue;i[l]=t[l]}return i}var fm={},pm=j.createContext(fm),DS=(t,o)=>A({},t,o),zS=()=>j.useContext(pm),Wu=j.createContext(()=>{});Wu.displayName="JVR.DispatchShowTools";function FS(){return j.useReducer(DS,fm)}function hm(){return j.useContext(Wu)}var mm=t=>{var{initial:o,dispatch:i,children:l}=t;return d.jsx(pm.Provider,{value:o,children:d.jsx(Wu.Provider,{value:i,children:l})})};mm.displayName="JVR.ShowTools";var gm={},vm=j.createContext(gm),BS=(t,o)=>A({},t,o),Qs=()=>j.useContext(vm),Gu=j.createContext(()=>{});Gu.displayName="JVR.DispatchExpands";function US(){return j.useReducer(BS,gm)}function VS(){return j.useContext(Gu)}var ym=t=>{var{initial:o,dispatch:i,children:l}=t;return d.jsx(vm.Provider,{value:o,children:d.jsx(Gu.Provider,{value:i,children:l})})};ym.displayName="JVR.Expands";var xm={Str:{as:"span","data-type":"string",style:{color:"var(--w-rjv-type-string-color, #cb4b16)"},className:"w-rjv-type",children:"string"},Url:{as:"a",style:{color:"var(--w-rjv-type-url-color, #0969da)"},"data-type":"url",className:"w-rjv-type",children:"url"},Undefined:{style:{color:"var(--w-rjv-type-undefined-color, #586e75)"},as:"span","data-type":"undefined",className:"w-rjv-type",children:"undefined"},Null:{style:{color:"var(--w-rjv-type-null-color, #d33682)"},as:"span","data-type":"null",className:"w-rjv-type",children:"null"},Map:{style:{color:"var(--w-rjv-type-map-color, #268bd2)",marginRight:3},as:"span","data-type":"map",className:"w-rjv-type",children:"Map"},Nan:{style:{color:"var(--w-rjv-type-nan-color, #859900)"},as:"span","data-type":"nan",className:"w-rjv-type",children:"NaN"},Bigint:{style:{color:"var(--w-rjv-type-bigint-color, #268bd2)"},as:"span","data-type":"bigint",className:"w-rjv-type",children:"bigint"},Int:{style:{color:"var(--w-rjv-type-int-color, #268bd2)"},as:"span","data-type":"int",className:"w-rjv-type",children:"int"},Set:{style:{color:"var(--w-rjv-type-set-color, #268bd2)",marginRight:3},as:"span","data-type":"set",className:"w-rjv-type",children:"Set"},Float:{style:{color:"var(--w-rjv-type-float-color, #859900)"},as:"span","data-type":"float",className:"w-rjv-type",children:"float"},True:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},False:{style:{color:"var(--w-rjv-type-boolean-color, #2aa198)"},as:"span","data-type":"bool",className:"w-rjv-type",children:"bool"},Date:{style:{color:"var(--w-rjv-type-date-color, #268bd2)"},as:"span","data-type":"date",className:"w-rjv-type",children:"date"}},wm=j.createContext(xm),HS=(t,o)=>A({},t,o),_e=()=>j.useContext(wm),Ju=j.createContext(()=>{});Ju.displayName="JVR.DispatchTypes";function WS(){return j.useReducer(HS,xm)}function GS(){return j.useContext(Ju)}function Sm(t){var{initial:o,dispatch:i,children:l}=t;return d.jsx(wm.Provider,{value:o,children:d.jsx(Ju.Provider,{value:i,children:l})})}Sm.displayName="JVR.Types";var JS=["style"];function km(t){var{style:o}=t,i=ke(t,JS),l=A({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},o);return d.jsx("svg",A({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:l},i,{children:d.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}km.displayName="JVR.TriangleArrow";var Cm={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:d.jsx(km,{})},Colon:{as:"span",style:{color:"var(--w-rjv-colon-color, var(--w-rjv-color))",marginLeft:0,marginRight:2},className:"w-rjv-colon",children:":"},Quote:{as:"span",style:{color:"var(--w-rjv-quotes-color, #236a7c)"},className:"w-rjv-quotes",children:'"'},ValueQuote:{as:"span",style:{color:"var(--w-rjv-quotes-string-color, #cb4b16)"},className:"w-rjv-quotes",children:'"'},BracketsLeft:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-start",children:"["},BracketsRight:{as:"span",style:{color:"var(--w-rjv-brackets-color, #236a7c)"},className:"w-rjv-brackets-end",children:"]"},BraceLeft:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-start",children:"{"},BraceRight:{as:"span",style:{color:"var(--w-rjv-curlybraces-color, #236a7c)"},className:"w-rjv-curlybraces-end",children:"}"}},jm=j.createContext(Cm),KS=(t,o)=>A({},t,o),yt=()=>j.useContext(jm),Ku=j.createContext(()=>{});Ku.displayName="JVR.DispatchSymbols";function QS(){return j.useReducer(KS,Cm)}function qS(){return j.useContext(Ku)}var Em=t=>{var{initial:o,dispatch:i,children:l}=t;return d.jsx(jm.Provider,{value:o,children:d.jsx(Ku.Provider,{value:i,children:l})})};Em.displayName="JVR.Symbols";var bm={Copied:{className:"w-rjv-copied",style:{height:"1em",width:"1em",cursor:"pointer",verticalAlign:"middle",marginLeft:5}},CountInfo:{as:"span",className:"w-rjv-object-size",style:{color:"var(--w-rjv-info-color, #0000004d)",paddingLeft:8,fontStyle:"italic"}},CountInfoExtra:{as:"span",className:"w-rjv-object-extra",style:{paddingLeft:8}},Ellipsis:{as:"span",style:{cursor:"pointer",color:"var(--w-rjv-ellipsis-color, #cb4b16)",userSelect:"none"},className:"w-rjv-ellipsis",children:"..."},Row:{as:"div",className:"w-rjv-line"},KeyName:{as:"span",className:"w-rjv-object-key"}},Nm=j.createContext(bm),YS=(t,o)=>A({},t,o),Ot=()=>j.useContext(Nm),Qu=j.createContext(()=>{});Qu.displayName="JVR.DispatchSection";function XS(){return j.useReducer(YS,bm)}function ZS(){return j.useContext(Qu)}var Rm=t=>{var{initial:o,dispatch:i,children:l}=t;return d.jsx(Nm.Provider,{value:o,children:d.jsx(Qu.Provider,{value:i,children:l})})};Rm.displayName="JVR.Section";var $m={objectSortKeys:!1,indentWidth:15},qu=j.createContext($m);qu.displayName="JVR.Context";var Tm=j.createContext(()=>{});Tm.displayName="JVR.DispatchContext";function ek(t,o){return A({},t,o)}var rn=()=>j.useContext(qu),Pm=t=>{var{children:o,initialState:i,initialTypes:l}=t,[u,f]=j.useReducer(ek,Object.assign({},$m,i)),[p,h]=FS(),[g,v]=US(),[y,x]=WS(),[S,$]=QS(),[E,N]=XS();return j.useEffect(()=>f(A({},i)),[i]),d.jsx(qu.Provider,{value:u,children:d.jsx(Tm.Provider,{value:f,children:d.jsx(mm,{initial:p,dispatch:h,children:d.jsx(ym,{initial:g,dispatch:v,children:d.jsx(Sm,{initial:A({},y,l),dispatch:x,children:d.jsx(Em,{initial:S,dispatch:$,children:d.jsx(Rm,{initial:E,dispatch:N,children:o})})})})})})})};Pm.displayName="JVR.Provider";function tk(t){if(t==null)throw new TypeError("Cannot destructure "+t)}var rk=["isNumber","value","parentValue","keyName","keys"],nk=["as","render"],ok=["as","render"],ik=["as","render"],sk=["as","style","render"],lk=["as","render"],ak=["as","render"],uk=["as","render"],ck=["as","render"],ju=t=>{var{Quote:o={}}=yt(),{isNumber:i,value:l,parentValue:u,keyName:f,keys:p}=t,h=ke(t,rk);if(i)return null;var{as:g,render:v}=o,y=ke(o,nk),x=g||"span",S=A({},h,y),$={value:l,parentValue:u,keyName:f,keys:p||(f?[f]:[])},E=v&&typeof v=="function"&&v(S,$);return E||d.jsx(x,A({},S))};ju.displayName="JVR.Quote";var Yo=t=>{var{ValueQuote:o={}}=yt(),i=A({},(tk(t),t)),{as:l,render:u}=o,f=ke(o,ok),p=l||"span",h=A({},i,f),g=u&&typeof u=="function"&&u(h,{});return g||d.jsx(p,A({},h))};Yo.displayName="JVR.ValueQuote";var _m=t=>{var{value:o,parentValue:i,keyName:l,keys:u}=t,{Colon:f={}}=yt(),{as:p,render:h}=f,g=ke(f,ik),v=p||"span",y=h&&typeof h=="function"&&h(g,{value:o,parentValue:i,keyName:l,keys:u||(l?[l]:[])});return y||d.jsx(v,A({},g))};_m.displayName="JVR.Colon";var Lm=t=>{var{Arrow:o={}}=yt(),i=Qs(),{expandKey:l,style:u,value:f,parentValue:p,keyName:h,keys:g}=t,v=!!i[l],{as:y,style:x,render:S}=o,$=ke(o,sk),E=y||"span",N=S&&typeof S=="function",T=A({},$,{"data-expanded":v,style:A({},x,u)}),I={value:f,parentValue:p,keyName:h,keys:g||(h?[h]:[])},M=N&&S(T,I);return M||d.jsx(E,A({},$,{style:A({},x,u)}))};Lm.displayName="JVR.Arrow";var Im=t=>{var{isBrackets:o,value:i,parentValue:l,keyName:u,keys:f}=t,{BracketsLeft:p={},BraceLeft:h={}}=yt(),g={value:i,parentValue:l,keyName:u,keys:f||(u?[u]:[])};if(o){var{as:v,render:y}=p,x=ke(p,lk),S=v||"span",$=y&&typeof y=="function"&&y(x,g);return $||d.jsx(S,A({},x))}var{as:E,render:N}=h,T=ke(h,ak),I=E||"span",M=N&&typeof N=="function"&&N(T,g);return M||d.jsx(I,A({},T))};Im.displayName="JVR.BracketsOpen";var Yu=t=>{var{isBrackets:o,isVisiable:i,value:l,parentValue:u,keyName:f,keys:p}=t,h={value:l,parentValue:u,keyName:f,keys:p||(f?[f]:[])};if(!i)return null;var{BracketsRight:g={},BraceRight:v={}}=yt();if(o){var{as:y,render:x}=g,S=ke(g,uk),$=y||"span",E=x&&typeof x=="function"&&x(S,h);return E||d.jsx($,A({},S))}var{as:N,render:T}=v,I=ke(v,ck),M=N||"span",D=T&&typeof T=="function"&&T(I,h);return D||d.jsx(M,A({},I))};Yu.displayName="JVR.BracketsClose";var Om=t=>{var o,{value:i,expandKey:l,level:u,keys:f=[]}=t,p=Qs(),h=Array.isArray(i),{collapsed:g,shouldExpandNodeInitially:v}=rn(),y=i instanceof Set,x=typeof g=="boolean"?g:typeof g=="number"?u>g:!1,S=(o=p[l])!=null?o:x,$=Object.keys(i).length;if(p[l]===void 0&&v&&v(S,{value:i,keys:f,level:u})||S||$===0)return null;var E={paddingLeft:4};return d.jsx("div",{style:E,children:d.jsx(Yu,{isBrackets:h||y,isVisiable:!0})})};Om.displayName="JVR.NestedClose";var dk=["as","render"],fk=["as","render"],pk=["as","render"],hk=["as","render"],mk=["as","render"],gk=["as","render"],vk=["as","render"],yk=["as","render"],xk=["as","render"],wk=["as","render"],Sk=["as","render"],kk=["as","render"],Ck=["as","render"],Eu=t=>{if(t===void 0)return"0n";if(typeof t=="string")try{t=BigInt(t)}catch{return"0n"}return t?t.toString()+"n":"0n"},Am=t=>{var{value:o,keyName:i}=t,{Set:l={},displayDataTypes:u}=_e(),f=o instanceof Set;if(!f||!u)return null;var{as:p,render:h}=l,g=ke(l,dk),v=h&&typeof h=="function",y=v&&h(g,{type:"type",value:o,keyName:i});if(y)return y;var x=p||"span";return d.jsx(x,A({},g))};Am.displayName="JVR.SetComp";var Mm=t=>{var{value:o,keyName:i}=t,{Map:l={},displayDataTypes:u}=_e(),f=o instanceof Map;if(!f||!u)return null;var{as:p,render:h}=l,g=ke(l,fk),v=h&&typeof h=="function",y=v&&h(g,{type:"type",value:o,keyName:i});if(y)return y;var x=p||"span";return d.jsx(x,A({},g))};Mm.displayName="JVR.MapComp";var Gt={opacity:.75,paddingRight:4},Dm=t=>{var{children:o="",keyName:i}=t,{Str:l={},displayDataTypes:u}=_e(),{shortenTextAfterLength:f=30}=rn(),{as:p,render:h}=l,g=ke(l,pk),v=o,[y,x]=j.useState(f&&v.length>f);j.useEffect(()=>x(f&&v.length>f),[f]);var S=p||"span",$=A({},Gt,l.style||{});f>0&&(g.style=A({},g.style,{cursor:v.length<=f?"initial":"pointer"}),v.length>f&&(g.onClick=()=>{x(!y)}));var E=y?v.slice(0,f)+"...":v,N=h&&typeof h=="function",T=N&&h(A({},g,{style:$}),{type:"type",value:o,keyName:i}),I=N&&h(A({},g,{children:E,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(T||d.jsx(S,A({},g,{style:$}))),I||d.jsxs(j.Fragment,{children:[d.jsx(Yo,{}),d.jsx(S,A({},g,{className:"w-rjv-value",children:E})),d.jsx(Yo,{})]})]})};Dm.displayName="JVR.TypeString";var zm=t=>{var{children:o,keyName:i}=t,{True:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,hk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsx(g,A({},h,{className:"w-rjv-value",children:o==null?void 0:o.toString()}))]})};zm.displayName="JVR.TypeTrue";var Fm=t=>{var{children:o,keyName:i}=t,{False:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,mk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsx(g,A({},h,{className:"w-rjv-value",children:o==null?void 0:o.toString()}))]})};Fm.displayName="JVR.TypeFalse";var Bm=t=>{var{children:o,keyName:i}=t,{Float:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,gk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsx(g,A({},h,{className:"w-rjv-value",children:o==null?void 0:o.toString()}))]})};Bm.displayName="JVR.TypeFloat";var Um=t=>{var{children:o,keyName:i}=t,{Int:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,vk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsx(g,A({},h,{className:"w-rjv-value",children:o==null?void 0:o.toString()}))]})};Um.displayName="JVR.TypeInt";var Vm=t=>{var{children:o,keyName:i}=t,{Bigint:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,yk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsx(g,A({},h,{className:"w-rjv-value",children:Eu(o==null?void 0:o.toString())}))]})};Vm.displayName="JVR.TypeFloat";var Hm=t=>{var{children:o,keyName:i}=t,{Url:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,xk),g=f||"span",v=A({},Gt,l.style),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o==null?void 0:o.href,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S||d.jsxs("a",A({href:o==null?void 0:o.href,target:"_blank"},h,{className:"w-rjv-value",children:[d.jsx(Yo,{}),o==null?void 0:o.href,d.jsx(Yo,{})]}))]})};Hm.displayName="JVR.TypeUrl";var Wm=t=>{var{children:o,keyName:i}=t,{Date:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,wk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=o instanceof Date?o.toLocaleString():o,$=y&&p(A({},h,{children:S,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),$||d.jsx(g,A({},h,{className:"w-rjv-value",children:S}))]})};Wm.displayName="JVR.TypeDate";var Gm=t=>{var{children:o,keyName:i}=t,{Undefined:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,Sk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S]})};Gm.displayName="JVR.TypeUndefined";var Jm=t=>{var{children:o,keyName:i}=t,{Null:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,kk),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o,className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S]})};Jm.displayName="JVR.TypeNull";var Km=t=>{var{children:o,keyName:i}=t,{Nan:l={},displayDataTypes:u}=_e(),{as:f,render:p}=l,h=ke(l,Ck),g=f||"span",v=A({},Gt,l.style||{}),y=p&&typeof p=="function",x=y&&p(A({},h,{style:v}),{type:"type",value:o,keyName:i}),S=y&&p(A({},h,{children:o==null?void 0:o.toString(),className:"w-rjv-value"}),{type:"value",value:o,keyName:i});return d.jsxs(j.Fragment,{children:[u&&(x||d.jsx(g,A({},h,{style:v}))),S]})};Km.displayName="JVR.TypeNan";var jk=t=>Number(t)===t&&t%1!==0||isNaN(t),Qm=t=>{var{value:o,keyName:i}=t,l={keyName:i};return o instanceof URL?d.jsx(Hm,A({},l,{children:o})):typeof o=="string"?d.jsx(Dm,A({},l,{children:o})):o===!0?d.jsx(zm,A({},l,{children:o})):o===!1?d.jsx(Fm,A({},l,{children:o})):o===null?d.jsx(Jm,A({},l,{children:o})):o===void 0?d.jsx(Gm,A({},l,{children:o})):o instanceof Date?d.jsx(Wm,A({},l,{children:o})):typeof o=="number"&&isNaN(o)?d.jsx(Km,A({},l,{children:o})):typeof o=="number"&&jk(o)?d.jsx(Bm,A({},l,{children:o})):typeof o=="bigint"?d.jsx(Vm,A({},l,{children:o})):typeof o=="number"?d.jsx(Um,A({},l,{children:o})):null};Qm.displayName="JVR.Value";function Or(t,o,i){var l=qS(),u=[t.className,o.className].filter(Boolean).join(" "),f=A({},t,o,{className:u,style:A({},t.style,o.style),children:o.children||t.children});j.useEffect(()=>l({[i]:f}),[o])}function Et(t,o,i){var l=GS(),u=[t.className,o.className].filter(Boolean).join(" "),f=A({},t,o,{className:u,style:A({},t.style,o.style),children:o.children||t.children});j.useEffect(()=>l({[i]:f}),[o])}function qn(t,o,i){var l=ZS(),u=[t.className,o.className].filter(Boolean).join(" "),f=A({},t,o,{className:u,style:A({},t.style,o.style),children:o.children||t.children});j.useEffect(()=>l({[i]:f}),[o])}var Ek=["as","render"],qm=t=>{var{KeyName:o={}}=Ot();return qn(o,t,"KeyName"),null};qm.displayName="JVR.KeyName";var Ym=t=>{var{children:o,value:i,parentValue:l,keyName:u,keys:f}=t,p=typeof o=="number",h={color:p?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:g={}}=Ot(),{as:v,render:y}=g,x=ke(g,Ek);x.style=A({},x.style,h);var S=v||"span",$=y&&typeof y=="function"&&y(A({},x,{children:o}),{value:i,parentValue:l,keyName:u,keys:f||(u?[u]:[])});return $||d.jsx(S,A({},x,{children:o}))};Ym.displayName="JVR.KeyNameComp";var bk=["children","value","parentValue","keyName","keys"],Nk=["as","render","children"],Xm=t=>{var{Row:o={}}=Ot();return qn(o,t,"Row"),null};Xm.displayName="JVR.Row";var Zm=t=>{var{children:o,value:i,parentValue:l,keyName:u,keys:f}=t,p=ke(t,bk),{Row:h={}}=Ot(),{as:g,render:v}=h,y=ke(h,Nk),x=g||"div",S=v&&typeof v=="function"&&v(A({},p,y,{children:o}),{value:i,keyName:u,parentValue:l,keys:f});return S||d.jsx(x,A({},p,y,{children:o}))};Zm.displayName="JVR.RowComp";function Rk(t){var o=j.useRef();return j.useEffect(()=>{o.current=t}),o.current}function $k(t){var{value:o,highlightUpdates:i,highlightContainer:l}=t,u=Rk(o),f=j.useMemo(()=>{if(!i||u===void 0)return!1;if(typeof o!=typeof u)return!0;if(typeof o=="number")return isNaN(o)&&isNaN(u)?!1:o!==u;if(Array.isArray(o)!==Array.isArray(u))return!0;if(typeof o=="object"||typeof o=="function")return!1;if(o!==u)return!0},[i,o]);j.useEffect(()=>{l&&l.current&&f&&"animate"in l.current&&l.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[f,o,l])}var Tk=["keyName","value","parentValue","expandKey","keys"],Pk=["as","render"],Xu=t=>{var{keyName:o,value:i,parentValue:l,expandKey:u,keys:f}=t,p=ke(t,Tk),{onCopied:h,enableClipboard:g}=rn(),v=zS(),y=v[u],[x,S]=j.useState(!1),{Copied:$={}}=Ot();if(g===!1||!y)return null;var E=J=>{J.stopPropagation();var H="";typeof i=="number"&&i===1/0?H="Infinity":typeof i=="number"&&isNaN(i)?H="NaN":typeof i=="bigint"?H=Eu(i):i instanceof Date?H=i.toLocaleString():H=JSON.stringify(i,(Q,ue)=>typeof ue=="bigint"?Eu(ue):ue,2),h&&h(H,i),S(!0);var K=navigator.clipboard||{writeText(Q){return new Promise((ue,je)=>{var Ne=document.createElement("textarea");Ne.style.position="absolute",Ne.style.opacity="0",Ne.style.left="-99999999px",Ne.value=Q,document.body.appendChild(Ne),Ne.select(),document.execCommand("copy")?ue():je(),Ne.remove()})}};K.writeText(H).then(()=>{var Q=setTimeout(()=>{S(!1),clearTimeout(Q)},3e3)}).catch(Q=>{})},N={style:{display:"inline-flex"},fill:x?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:E},{render:T}=$,I=ke($,Pk),M=A({},I,p,N,{style:A({},I.style,p.style,N.style)}),D=T&&typeof T=="function",U=D&&T(A({},M,{"data-copied":x}),{value:i,keyName:o,keys:f,parentValue:l});return U||(x?d.jsx("svg",A({viewBox:"0 0 32 36"},M,{children:d.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,15.2249049 C29.1403264,13.8627542 29.9736597,13.1778155 30,13.1700887 C30,11.9705278 30,10.0804982 30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,26.1114493 L27.5,28.4926435 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M28.5589286,16 L32,19.6 L21.0160714,30.5382252 L13.5303571,24.2571429 L17.1303571,20.6571429 L21.0160714,24.5428571 L28.5589286,16 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})):d.jsx("svg",A({viewBox:"0 0 32 36"},M,{children:d.jsx("path",{d:"M27.5,33 L2.5,33 L2.5,12.5 L27.5,12.5 L27.5,20 L30,20 L30,7.5 C30,6.1 28.9,5 27.5,5 L20,5 C20,2.2 17.8,0 15,0 C12.2,0 10,2.2 10,5 L2.5,5 C1.1,5 0,6.1 0,7.5 L0,33 C0,34.4 1.1,36 2.5,36 L27.5,36 C28.9,36 30,34.4 30,33 L30,29 L27.5,29 L27.5,33 Z M7.5,7.5 L10,7.5 C10,7.5 12.5,6.4 12.5,5 C12.5,3.6 13.6,2.5 15,2.5 C16.4,2.5 17.5,3.6 17.5,5 C17.5,6.4 18.8,7.5 20,7.5 L22.5,7.5 C22.5,7.5 25,8.6 25,10 L5,10 C5,8.5 6.1,7.5 7.5,7.5 Z M5,27.5 L10,27.5 L10,25 L5,25 L5,27.5 Z M22.5,21.5 L22.5,16.5 L12.5,24 L22.5,31.5 L22.5,26.5 L32,26.5 L32,21.5 L22.5,21.5 Z M17.5,15 L5,15 L5,17.5 L17.5,17.5 L17.5,15 Z M10,20 L5,20 L5,22.5 L10,22.5 L10,20 Z"})})))};Xu.displayName="JVR.Copied";function eg(){var t=j.useRef(null);return t.current===null&&(t.current="custom-id-"+Math.random().toString(36).substr(2,9)),t.current}var tg=t=>{var o,{value:i,expandKey:l="",level:u,keys:f=[]}=t,p=Qs(),{objectSortKeys:h,indentWidth:g,collapsed:v,shouldExpandNodeInitially:y}=rn(),x=Array.isArray(i),S=typeof v=="boolean"?v:typeof v=="number"?u>v:!1,$=(o=p[l])!=null?o:S;if(p[l]===void 0&&y&&y($,{value:i,keys:f,level:u})||$)return null;var E=x?Object.entries(i).map(T=>[Number(T[0]),T[1]]):Object.entries(i);h&&(E=h===!0?E.sort((T,I)=>{var[M]=T,[D]=I;return typeof M=="string"&&typeof D=="string"?M.localeCompare(D):0}):E.sort((T,I)=>{var[M,D]=T,[U,J]=I;return typeof M=="string"&&typeof U=="string"?h(M,U,D,J):0}));var N={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:g,marginLeft:6};return d.jsx("div",{className:"w-rjv-wrap",style:N,children:E.map((T,I)=>{var[M,D]=T;return d.jsx(rg,{parentValue:i,keyName:M,keys:[...f,M],value:D,level:u},I)})})};tg.displayName="JVR.KeyValues";var Zu=t=>{var{keyName:o,parentValue:i,keys:l,value:u}=t,{highlightUpdates:f}=rn(),p=typeof o=="number",h=j.useRef(null);$k({value:u,highlightUpdates:f,highlightContainer:h});var g={keyName:o,value:u,keys:l,parentValue:i};return d.jsxs(j.Fragment,{children:[d.jsxs("span",{ref:h,children:[d.jsx(ju,A({isNumber:p,"data-placement":"left"},g)),d.jsx(Ym,A({},g,{children:o})),d.jsx(ju,A({isNumber:p,"data-placement":"right"},g))]}),d.jsx(_m,A({},g))]})};Zu.displayName="JVR.KayName";var rg=t=>{var{keyName:o,value:i,parentValue:l,level:u=0,keys:f=[]}=t,p=hm(),h=eg(),g=Array.isArray(i),v=i instanceof Set,y=i instanceof Map,x=i instanceof Date,S=i instanceof URL,$=i&&typeof i=="object"&&!g&&!v&&!y&&!x&&!S,E=$||g||v||y;if(E){var N=v?Array.from(i):y?Object.fromEntries(i):i;return d.jsx(ec,{keyName:o,value:N,parentValue:l,initialValue:i,keys:f,level:u+1})}var T={onMouseEnter:()=>p({[h]:!0}),onMouseLeave:()=>p({[h]:!1})};return d.jsxs(Zm,A({className:"w-rjv-line",value:i,keyName:o,keys:f,parentValue:l},T,{children:[d.jsx(Zu,{keyName:o,value:i,keys:f,parentValue:l}),d.jsx(Qm,{keyName:o,value:i}),d.jsx(Xu,{keyName:o,value:i,keys:f,parentValue:l,expandKey:h})]}))};rg.displayName="JVR.KeyValuesItem";var _k=["value","keyName"],Lk=["as","render"],ng=t=>{var{CountInfoExtra:o={}}=Ot();return qn(o,t,"CountInfoExtra"),null};ng.displayName="JVR.CountInfoExtra";var og=t=>{var{value:o={},keyName:i}=t,l=ke(t,_k),{CountInfoExtra:u={}}=Ot(),{as:f,render:p}=u,h=ke(u,Lk);if(!p&&!h.children)return null;var g=f||"span",v=p&&typeof p=="function",y=A({},h,l),x=v&&p(y,{value:o,keyName:i});return x||d.jsx(g,A({},y))};og.displayName="JVR.CountInfoExtraComps";var Ik=["value","keyName"],Ok=["as","render"],ig=t=>{var{CountInfo:o={}}=Ot();return qn(o,t,"CountInfo"),null};ig.displayName="JVR.CountInfo";var sg=t=>{var{value:o={},keyName:i}=t,l=ke(t,Ik),{displayObjectSize:u}=rn(),{CountInfo:f={}}=Ot();if(!u)return null;var{as:p,render:h}=f,g=ke(f,Ok),v=p||"span";g.style=A({},g.style,t.style);var y=Object.keys(o).length;g.children||(g.children=y+" item"+(y===1?"":"s"));var x=A({},g,l),S=h&&typeof h=="function",$=S&&h(A({},x,{"data-length":y}),{value:o,keyName:i});return $||d.jsx(v,A({},x))};sg.displayName="JVR.CountInfoComp";var Ak=["as","render"],lg=t=>{var{Ellipsis:o={}}=Ot();return qn(o,t,"Ellipsis"),null};lg.displayName="JVR.Ellipsis";var ag=t=>{var{isExpanded:o,value:i,keyName:l}=t,{Ellipsis:u={}}=Ot(),{as:f,render:p}=u,h=ke(u,Ak),g=f||"span",v=p&&typeof p=="function"&&p(A({},h,{"data-expanded":o}),{value:i,keyName:l});return v||(!o||typeof i=="object"&&Object.keys(i).length==0?null:d.jsx(g,A({},h)))};ag.displayName="JVR.EllipsisComp";var ug=t=>{var o,{keyName:i,expandKey:l,keys:u=[],initialValue:f,value:p,parentValue:h,level:g}=t,v=Qs(),y=VS(),{onExpand:x,collapsed:S,shouldExpandNodeInitially:$}=rn(),E=Array.isArray(p),N=p instanceof Set,T=typeof S=="boolean"?S:typeof S=="number"?g>S:!1,I=typeof p=="object",M=(o=v[l])!=null?o:T,D=$&&$(M,{value:p,keys:u,level:g});v[l]===void 0&&D!==void 0&&(M=D);var U=()=>{var Ne={expand:!M,value:p,keyid:l,keyName:i};x&&x(Ne),y({[l]:Ne.expand})},J={display:"inline-flex",alignItems:"center"},H={transform:"rotate("+(M?"-90":"0")+"deg)",transition:"all 0.3s"},K=Object.keys(p).length,Q=K!==0&&(E||N||I),ue={style:J};Q&&(ue.onClick=U);var je={keyName:i,value:p,keys:u,parentValue:h};return d.jsxs("span",A({},ue,{children:[Q&&d.jsx(Lm,A({style:H,expandKey:l},je)),(i||typeof i=="number")&&d.jsx(Zu,A({},je)),d.jsx(Am,{value:f,keyName:i}),d.jsx(Mm,{value:f,keyName:i}),d.jsx(Im,A({isBrackets:E||N},je)),d.jsx(ag,{keyName:i,value:p,isExpanded:M}),d.jsx(Yu,A({isVisiable:M||!Q,isBrackets:E||N},je)),d.jsx(sg,{value:p,keyName:i}),d.jsx(og,{value:p,keyName:i}),d.jsx(Xu,{keyName:i,value:p,expandKey:l,parentValue:h,keys:u})]}))};ug.displayName="JVR.NestedOpen";var Mk=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],ec=j.forwardRef((t,o)=>{var{className:i="",parentValue:l,level:u=1,value:f,initialValue:p,keys:h,keyName:g}=t,v=ke(t,Mk),y=hm(),x=eg(),S=[i,"w-rjv-inner"].filter(Boolean).join(" "),$={onMouseEnter:()=>y({[x]:!0}),onMouseLeave:()=>y({[x]:!1})};return d.jsxs("div",A({className:S,ref:o},v,$,{children:[d.jsx(ug,{expandKey:x,value:f,level:u,keys:h,parentValue:l,keyName:g,initialValue:p}),d.jsx(tg,{expandKey:x,value:f,level:u,keys:h,parentValue:l,keyName:g}),d.jsx(Om,{expandKey:x,value:f,level:u,keys:h})]}))});ec.displayName="JVR.Container";var cg=t=>{var{BraceLeft:o={}}=yt();return Or(o,t,"BraceLeft"),null};cg.displayName="JVR.BraceLeft";var dg=t=>{var{BraceRight:o={}}=yt();return Or(o,t,"BraceRight"),null};dg.displayName="JVR.BraceRight";var fg=t=>{var{BracketsLeft:o={}}=yt();return Or(o,t,"BracketsLeft"),null};fg.displayName="JVR.BracketsLeft";var pg=t=>{var{BracketsRight:o={}}=yt();return Or(o,t,"BracketsRight"),null};pg.displayName="JVR.BracketsRight";var hg=t=>{var{Arrow:o={}}=yt();return Or(o,t,"Arrow"),null};hg.displayName="JVR.Arrow";var mg=t=>{var{Colon:o={}}=yt();return Or(o,t,"Colon"),null};mg.displayName="JVR.Colon";var gg=t=>{var{Quote:o={}}=yt();return Or(o,t,"Quote"),null};gg.displayName="JVR.Quote";var vg=t=>{var{ValueQuote:o={}}=yt();return Or(o,t,"ValueQuote"),null};vg.displayName="JVR.ValueQuote";var yg=t=>{var{Bigint:o={}}=_e();return Et(o,t,"Bigint"),null};yg.displayName="JVR.Bigint";var xg=t=>{var{Date:o={}}=_e();return Et(o,t,"Date"),null};xg.displayName="JVR.Date";var wg=t=>{var{False:o={}}=_e();return Et(o,t,"False"),null};wg.displayName="JVR.False";var Sg=t=>{var{Float:o={}}=_e();return Et(o,t,"Float"),null};Sg.displayName="JVR.Float";var kg=t=>{var{Int:o={}}=_e();return Et(o,t,"Int"),null};kg.displayName="JVR.Int";var Cg=t=>{var{Map:o={}}=_e();return Et(o,t,"Map"),null};Cg.displayName="JVR.Map";var jg=t=>{var{Nan:o={}}=_e();return Et(o,t,"Nan"),null};jg.displayName="JVR.Nan";var Eg=t=>{var{Null:o={}}=_e();return Et(o,t,"Null"),null};Eg.displayName="JVR.Null";var bg=t=>{var{Set:o={}}=_e();return Et(o,t,"Set"),null};bg.displayName="JVR.Set";var Ng=t=>{var{Str:o={}}=_e();return Et(o,t,"Str"),null};Ng.displayName="JVR.StringText";var Rg=t=>{var{True:o={}}=_e();return Et(o,t,"True"),null};Rg.displayName="JVR.True";var $g=t=>{var{Undefined:o={}}=_e();return Et(o,t,"Undefined"),null};$g.displayName="JVR.Undefined";var Tg=t=>{var{Url:o={}}=_e();return Et(o,t,"Url"),null};Tg.displayName="JVR.Url";var Pg=t=>{var{Copied:o={}}=Ot();return qn(o,t,"Copied"),null};Pg.displayName="JVR.Copied";var Dk=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Te=j.forwardRef((t,o)=>{var{className:i="",style:l,value:u,children:f,collapsed:p,shouldExpandNodeInitially:h,indentWidth:g=15,displayObjectSize:v=!0,shortenTextAfterLength:y=30,highlightUpdates:x=!0,enableClipboard:S=!0,displayDataTypes:$=!0,objectSortKeys:E=!1,onExpand:N,onCopied:T}=t,I=ke(t,Dk),M=A({lineHeight:1.4,fontFamily:"var(--w-rjv-font-family, Menlo, monospace)",color:"var(--w-rjv-color, #002b36)",backgroundColor:"var(--w-rjv-background-color, #00000000)",fontSize:13},l),D=["w-json-view-container","w-rjv",i].filter(Boolean).join(" ");return d.jsxs(Pm,{initialState:{value:u,objectSortKeys:E,indentWidth:g,shouldExpandNodeInitially:h,displayObjectSize:v,collapsed:p,enableClipboard:S,shortenTextAfterLength:y,highlightUpdates:x,onCopied:T,onExpand:N},initialTypes:{displayDataTypes:$},children:[d.jsx(ec,A({value:u},I,{ref:o,className:D,style:M})),f]})});Te.Bigint=yg;Te.Date=xg;Te.False=wg;Te.Float=Sg;Te.Int=kg;Te.Map=Cg;Te.Nan=jg;Te.Null=Eg;Te.Set=bg;Te.String=Ng;Te.True=Rg;Te.Undefined=$g;Te.Url=Tg;Te.ValueQuote=vg;Te.Arrow=hg;Te.Colon=mg;Te.Quote=gg;Te.Ellipsis=lg;Te.BraceLeft=cg;Te.BraceRight=dg;Te.BracketsLeft=fg;Te.BracketsRight=pg;Te.Copied=Pg;Te.CountInfo=ig;Te.CountInfoExtra=ng;Te.KeyName=qm;Te.Row=Xm;Te.displayName="JVR.JsonView";var zk={"--w-rjv-font-family":"monospace","--w-rjv-color":"#0184a6","--w-rjv-key-string":"#0184a6","--w-rjv-background-color":"#202020","--w-rjv-line-color":"#323232","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#656565","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#0184a6","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#1896b6","--w-rjv-brackets-color":"#1896b6","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#649bd8","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#076678","--w-rjv-type-undefined-color":"#586e75"},Fk={"--w-rjv-font-family":"monospace","--w-rjv-color":"#002b36","--w-rjv-key-string":"#002b36","--w-rjv-background-color":"#ffffff","--w-rjv-line-color":"#ebebeb","--w-rjv-arrow-color":"var(--w-rjv-color)","--w-rjv-edit-color":"var(--w-rjv-color)","--w-rjv-info-color":"#0000004d","--w-rjv-update-color":"#ebcb8b","--w-rjv-copied-color":"#002b36","--w-rjv-copied-success-color":"#28a745","--w-rjv-curlybraces-color":"#236a7c","--w-rjv-colon-color":"#002b36","--w-rjv-brackets-color":"#236a7c","--w-rjv-quotes-color":"var(--w-rjv-key-string)","--w-rjv-quotes-string-color":"var(--w-rjv-type-string-color)","--w-rjv-type-string-color":"#cb4b16","--w-rjv-type-int-color":"#268bd2","--w-rjv-type-float-color":"#859900","--w-rjv-type-bigint-color":"#268bd2","--w-rjv-type-boolean-color":"#2aa198","--w-rjv-type-date-color":"#586e75","--w-rjv-type-url-color":"#0969da","--w-rjv-type-null-color":"#d33682","--w-rjv-type-nan-color":"#859900","--w-rjv-type-undefined-color":"#586e75"};const Bk=k.pre`
831
- margin-top: 8px;
832
- padding: 8px;
833
- background-color: ${t=>t.theme.colors.codeBackground};
834
- border-radius: 4px;
835
- font-size: 0.9em;
836
- overflow-x: auto;
837
- white-space: pre-wrap;
838
- word-wrap: break-word;
839
-
840
- .w-json-view-container {
841
- background: none !important;
842
- }
843
- `,_g=({data:t})=>{const o=J0();return d.jsx(Bk,{children:typeof t=="object"?d.jsx(Te,{value:t,shortenTextAfterLength:0,style:o.name==="dark"?zk:Fk}):JSON.stringify(t,null,2)})},ni=k.div`
844
- display: flex;
845
- &[data-type='user'] {
846
- justify-content: flex-end;
847
- }
848
-
849
- &[data-type='assistant'] {
850
- justify-content: flex-start;
851
- }
852
- `,Uk=k.div`
853
- color: ${t=>t.theme.colors.text};
854
- border-radius: 12px;
855
- padding: 8px 12px;
856
- max-width: 70%;
857
- background-color: ${t=>t.theme.colors.backgroundSecondary};
858
-
859
- ${ni}[data-type='user'] & {
860
- background-color: ${t=>t.theme.colors.userMessageBackground};
861
- color: ${t=>t.theme.colors.userMessageText};
862
- }
863
-
864
- /* Add subtle transition for edit mode */
865
- transition: box-shadow 0.2s ease-in-out;
866
-
867
- &[data-edit-mode='true'] {
868
- box-shadow: 0 0 0 2px ${t=>t.theme.colors.primary};
869
- }
870
- `,Vk=k.div`
871
- font-weight: bold;
872
- margin-bottom: 4px;
873
- display: flex;
874
- justify-content: space-between;
875
- align-items: center;
876
- `,Hk=k.pre`
877
- white-space: pre-wrap;
878
- word-wrap: break-word;
879
- font-family: inherit;
880
- margin: 0;
881
- `,Wk=k.textarea`
882
- width: 100%;
883
- min-height: 100px;
884
- padding: 8px;
885
- border: none;
886
- border-radius: 4px;
887
- background-color: ${t=>t.theme.colors.background};
888
- color: ${t=>t.theme.colors.text};
889
- font-family: inherit;
890
- font-size: inherit;
891
- resize: vertical;
892
- margin: 4px 0;
893
- field-sizing: content;
894
- box-sizing: border-box;
895
-
896
- &:focus {
897
- outline: none;
898
- box-shadow: 0 0 0 1px ${t=>t.theme.colors.primary};
899
- }
900
-
901
- ${ni}[data-type='user'] & {
902
- background-color: ${t=>t.theme.colors.userMessageBackground};
903
- color: ${t=>t.theme.colors.userMessageText};
904
- }
905
- `,Gk=k.div`
906
- display: flex;
907
- justify-content: space-between;
908
- align-items: center;
909
- margin-top: 4px;
910
- gap: 8px;
911
-
912
- > div {
913
- display: flex;
914
- align-items: center;
915
- gap: 8px;
916
- }
917
- `,Jk=k.div`
918
- font-size: 0.8em;
919
- color: ${t=>t.theme.colors.textSecondary};
920
-
921
- ${ni}[data-type='user'] & {
922
- color: ${t=>t.theme.colors.userMessageTimestamp};
923
- }
924
- `,Kk=k.span`
925
- font-size: 0.8em;
926
- color: ${t=>t.theme.colors.primary};
927
- cursor: pointer;
928
- text-decoration: underline;
929
-
930
- &:hover {
931
- color: ${t=>t.theme.colors.primaryHover};
932
- }
933
- `,Qk=k.div`
934
- display: flex;
935
- gap: 8px;
936
- margin-top: 8px;
937
- `,tc=k.button`
938
- padding: 4px 8px;
939
- border: none;
940
- border-radius: 4px;
941
- cursor: pointer;
942
- font-size: 0.8em;
943
- transition: background-color 0.2s ease-in-out;
944
-
945
- &:disabled {
946
- opacity: 0.5;
947
- cursor: not-allowed;
948
- }
949
- `,qk=k(tc)`
950
- background-color: transparent;
951
- color: ${t=>t.theme.colors.primary};
952
-
953
- &:hover:not(:disabled) {
954
- background-color: ${t=>t.theme.colors.primaryHover}20;
955
- }
956
-
957
- ${ni}[data-type='user'] & {
958
- color: ${t=>t.theme.colors.userMessageText};
959
- &:hover:not(:disabled) {
960
- background-color: ${t=>t.theme.colors.userMessageText}20;
961
- }
962
- }
963
- `,Yk=k(tc)`
964
- background-color: ${t=>t.theme.colors.primary};
965
- color: ${t=>t.theme.colors.buttonText};
966
-
967
- &:hover:not(:disabled) {
968
- background-color: ${t=>t.theme.colors.primaryHover};
969
- }
970
- `,Xk=k(tc)`
971
- background-color: transparent;
972
- color: ${t=>t.theme.colors.error};
973
-
974
- &:hover:not(:disabled) {
975
- background-color: ${t=>t.theme.colors.error}20;
976
- }
977
- `,Zk=k.div`
978
- width: 16px;
979
- height: 16px;
980
- border: 2px solid ${t=>t.theme.colors.primary};
981
- border-top-color: transparent;
982
- border-radius: 50%;
983
- animation: spin 1s linear infinite;
984
- margin: 0 8px;
985
-
986
- @keyframes spin {
987
- to {
988
- transform: rotate(360deg);
989
- }
990
- }
991
- `;k.span`
992
- font-size: 0.7em;
993
- color: ${t=>t.theme.colors.textSecondary};
994
- margin-left: 8px;
995
- font-style: italic;
996
- `;const eC=t=>t>=1e3?`Context size: ${(t/1e3).toFixed(1)}K tokens`:`Context size: ${t} tokens`,tC=t=>{var i;const o=t.filter(l=>{var u;return l.type===_r.ASSISTANT&&typeof((u=l.data)==null?void 0:u.contextSize)=="number"});if(o.length!==0)return(i=o[o.length-1].data)==null?void 0:i.contextSize},rC=t=>{const o=tC(t),i=o!==void 0?eC(o):"Context size N/A";return{contextSize:o,formattedSize:i}},nC=k.span`
997
- font-size: 12px;
998
- color: ${t=>t.theme.colors.textSecondary};
999
- white-space: nowrap;
1000
- `,Lg=({messages:t,className:o})=>{if(!t||t.length===0)return null;const{formattedSize:i}=rC(t);return d.jsx(nC,{className:o,children:i})},oC=k.div`
1001
- font-weight: bold;
1002
- font-size: 0.9em;
1003
- color: ${t=>t.theme.colors.text};
1004
- `;k.div`
1005
- font-size: 0.8em;
1006
- color: ${t=>t.theme.colors.textSecondary};
1007
- margin: 4px 0;
1008
- `;k.div`
1009
- font-size: 0.8em;
1010
- color: ${t=>t.theme.colors.textSecondary};
1011
- margin: 4px 0;
1012
- `;k.div`
1013
- display: inline-block;
1014
- padding: 2px 4px;
1015
- border-radius: 4px;
1016
- font-size: 0.8em;
1017
- font-weight: bold;
1018
- color: ${t=>t.theme.colors.text};
1019
- background-color: ${t=>t.variant==="updateFile"?t.theme.colors.primary:t.variant==="createFile"?t.theme.colors.success:(t.variant==="patchFile",t.theme.colors.warning)};
1020
- `;k.div`
1021
- display: flex;
1022
- gap: 8px;
1023
- `;k.button`
1024
- padding: 4px 8px;
1025
- border: 1px solid ${t=>t.theme.colors.border};
1026
- border-radius: 4px;
1027
- background-color: ${t=>t.theme.colors.background};
1028
- cursor: pointer;
1029
- font-size: 0.8em;
1030
- color: ${t=>t.theme.colors.text};
1031
-
1032
- &:hover {
1033
- background-color: ${t=>t.theme.colors.backgroundHover};
1034
- }
1035
- `;k.div`
1036
- margin: 16px 0;
1037
- `;k.div`
1038
- padding: 8px;
1039
- border: 1px solid ${t=>t.theme.colors.border};
1040
- border-radius: 4px;
1041
- background-color: ${t=>t.theme.colors.background};
1042
- font-size: 0.9em;
1043
- line-height: 1.5;
1044
- `;k.div`
1045
- margin: 16px 0;
1046
- `;function Ar(){}Ar.prototype={diff:function(o,i){var l,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},f=u.callback;typeof u=="function"&&(f=u,u={}),this.options=u;var p=this;function h(U){return f?(setTimeout(function(){f(void 0,U)},0),!0):U}o=this.castInput(o),i=this.castInput(i),o=this.removeEmpty(this.tokenize(o)),i=this.removeEmpty(this.tokenize(i));var g=i.length,v=o.length,y=1,x=g+v;u.maxEditLength&&(x=Math.min(x,u.maxEditLength));var S=(l=u.timeout)!==null&&l!==void 0?l:1/0,$=Date.now()+S,E=[{oldPos:-1,lastComponent:void 0}],N=this.extractCommon(E[0],i,o,0);if(E[0].oldPos+1>=v&&N+1>=g)return h([{value:this.join(i),count:i.length}]);var T=-1/0,I=1/0;function M(){for(var U=Math.max(T,-y);U<=Math.min(I,y);U+=2){var J=void 0,H=E[U-1],K=E[U+1];H&&(E[U-1]=void 0);var Q=!1;if(K){var ue=K.oldPos-U;Q=K&&0<=ue&&ue<g}var je=H&&H.oldPos+1<v;if(!Q&&!je){E[U]=void 0;continue}if(!je||Q&&H.oldPos+1<K.oldPos?J=p.addToPath(K,!0,void 0,0):J=p.addToPath(H,void 0,!0,1),N=p.extractCommon(J,i,o,U),J.oldPos+1>=v&&N+1>=g)return h(iC(p,J.lastComponent,i,o,p.useLongestToken));E[U]=J,J.oldPos+1>=v&&(I=Math.min(I,U-1)),N+1>=g&&(T=Math.max(T,U+1))}y++}if(f)(function U(){setTimeout(function(){if(y>x||Date.now()>$)return f();M()||U()},0)})();else for(;y<=x&&Date.now()<=$;){var D=M();if(D)return D}},addToPath:function(o,i,l,u){var f=o.lastComponent;return f&&f.added===i&&f.removed===l?{oldPos:o.oldPos+u,lastComponent:{count:f.count+1,added:i,removed:l,previousComponent:f.previousComponent}}:{oldPos:o.oldPos+u,lastComponent:{count:1,added:i,removed:l,previousComponent:f}}},extractCommon:function(o,i,l,u){for(var f=i.length,p=l.length,h=o.oldPos,g=h-u,v=0;g+1<f&&h+1<p&&this.equals(i[g+1],l[h+1]);)g++,h++,v++;return v&&(o.lastComponent={count:v,previousComponent:o.lastComponent}),o.oldPos=h,g},equals:function(o,i){return this.options.comparator?this.options.comparator(o,i):o===i||this.options.ignoreCase&&o.toLowerCase()===i.toLowerCase()},removeEmpty:function(o){for(var i=[],l=0;l<o.length;l++)o[l]&&i.push(o[l]);return i},castInput:function(o){return o},tokenize:function(o){return o.split("")},join:function(o){return o.join("")}};function iC(t,o,i,l,u){for(var f=[],p;o;)f.push(o),p=o.previousComponent,delete o.previousComponent,o=p;f.reverse();for(var h=0,g=f.length,v=0,y=0;h<g;h++){var x=f[h];if(x.removed){if(x.value=t.join(l.slice(y,y+x.count)),y+=x.count,h&&f[h-1].added){var $=f[h-1];f[h-1]=f[h],f[h]=$}}else{if(!x.added&&u){var S=i.slice(v,v+x.count);S=S.map(function(N,T){var I=l[y+T];return I.length>N.length?I:N}),x.value=t.join(S)}else x.value=t.join(i.slice(v,v+x.count));v+=x.count,x.added||(y+=x.count)}}var E=f[g-1];return g>1&&typeof E.value=="string"&&(E.added||E.removed)&&t.equals("",E.value)&&(f[g-2].value+=E.value,f.pop()),f}var Fp=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Bp=/\S/,Ig=new Ar;Ig.equals=function(t,o){return this.options.ignoreCase&&(t=t.toLowerCase(),o=o.toLowerCase()),t===o||this.options.ignoreWhitespace&&!Bp.test(t)&&!Bp.test(o)};Ig.tokenize=function(t){for(var o=t.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),i=0;i<o.length-1;i++)!o[i+1]&&o[i+2]&&Fp.test(o[i])&&Fp.test(o[i+2])&&(o[i]+=o[i+2],o.splice(i+1,2),i--);return o};var rc=new Ar;rc.tokenize=function(t){this.options.stripTrailingCr&&(t=t.replace(/\r\n/g,`
1047
- `));var o=[],i=t.split(/(\n|\r\n)/);i[i.length-1]||i.pop();for(var l=0;l<i.length;l++){var u=i[l];l%2&&!this.options.newlineIsToken?o[o.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),o.push(u))}return o};function sC(t,o,i){return rc.diff(t,o,i)}var lC=new Ar;lC.tokenize=function(t){return t.split(/(\S.+?[.!?])(?=\s+|$)/)};var aC=new Ar;aC.tokenize=function(t){return t.split(/([{}:;,]|\s+)/)};function Ns(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ns=function(o){return typeof o}:Ns=function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},Ns(t)}var uC=Object.prototype.toString,Xo=new Ar;Xo.useLongestToken=!0;Xo.tokenize=rc.tokenize;Xo.castInput=function(t){var o=this.options,i=o.undefinedReplacement,l=o.stringifyReplacer,u=l===void 0?function(f,p){return typeof p>"u"?i:p}:l;return typeof t=="string"?t:JSON.stringify(bu(t,null,null,u),u," ")};Xo.equals=function(t,o){return Ar.prototype.equals.call(Xo,t.replace(/,([\r\n])/g,"$1"),o.replace(/,([\r\n])/g,"$1"))};function bu(t,o,i,l,u){o=o||[],i=i||[],l&&(t=l(u,t));var f;for(f=0;f<o.length;f+=1)if(o[f]===t)return i[f];var p;if(uC.call(t)==="[object Array]"){for(o.push(t),p=new Array(t.length),i.push(p),f=0;f<t.length;f+=1)p[f]=bu(t[f],o,i,l,u);return o.pop(),i.pop(),p}if(t&&t.toJSON&&(t=t.toJSON()),Ns(t)==="object"&&t!==null){o.push(t),p={},i.push(p);var h=[],g;for(g in t)t.hasOwnProperty(g)&&h.push(g);for(h.sort(),f=0;f<h.length;f+=1)g=h[f],p[g]=bu(t[g],o,i,l,g);o.pop(),i.pop()}else p=t;return p}var Nu=new Ar;Nu.tokenize=function(t){return t.slice()};Nu.join=Nu.removeEmpty=function(t){return t};const Wo=({content:t})=>{const[o,i]=j.useState(null),l=async()=>{try{await navigator.clipboard.writeText(t),i("success"),setTimeout(()=>i(null),2e3)}catch{i("error"),setTimeout(()=>i(null),2e3)}};return d.jsxs(Og,{onClick:l,status:o,children:[o===null&&d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[d.jsx("path",{d:"M4 4v8h8V4H4zm1 1h6v6H5V5z"}),d.jsx("path",{d:"M3 3v9h9V3H3zm1 1h7v7H4V4z"})]}),o==="success"&&d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z"})}),o==="error"&&d.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:d.jsx("path",{d:"M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zm0 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13zM6.5 11a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0zm.75-6.5h1.5v4.5h-1.5V4.5z"})})]})},Og=k.button`
1048
- padding: 4px;
1049
- border: 1px solid ${t=>t.theme.colors.border};
1050
- border-radius: 4px;
1051
- background-color: ${t=>{switch(t.status){case"success":return t.theme.colors.diffAdded;case"error":return t.theme.colors.diffRemoved;default:return t.theme.colors.background}}};
1052
- color: ${t=>{switch(t.status){case"success":return t.theme.colors.diffAddedText;case"error":return t.theme.colors.diffRemovedText;default:return t.theme.colors.text}}};
1053
- cursor: pointer;
1054
- transition: background-color 0.2s ease-in-out;
1055
- display: flex;
1056
- align-items: center;
1057
- justify-content: center;
1058
- width: 24px;
1059
- height: 24px;
1060
-
1061
- &:hover {
1062
- background-color: ${t=>t.theme.colors.backgroundHover};
1063
- }
1064
-
1065
- svg {
1066
- width: 16px;
1067
- height: 16px;
1068
- }
1069
- `,cC=({oldContent:t,newContent:o})=>{const[i,l]=j.useState("unified"),u=sC(t??"",o),f=()=>d.jsxs(pC,{children:[d.jsx(Wo,{content:o}),u.map((v,y)=>d.jsx(ru,{added:v.added,removed:v.removed,children:v.value},y))]}),p=()=>d.jsxs(hC,{children:[d.jsxs(Up,{children:[t&&d.jsx(Wo,{content:t}),u.filter(v=>!v.added).map((v,y)=>d.jsx(ru,{removed:v.removed,children:v.value},y))]}),d.jsxs(Up,{children:[d.jsx(Wo,{content:o}),u.filter(v=>!v.removed).map((v,y)=>d.jsx(ru,{added:v.added,children:v.value},y))]})]}),h=()=>d.jsxs(Vp,{children:[t&&d.jsx(Wo,{content:t}),d.jsx(Hp,{children:t})]}),g=()=>d.jsxs(Vp,{children:[d.jsx(Wo,{content:o}),d.jsx(Hp,{children:o})]});return d.jsxs(dC,{children:[d.jsxs(fC,{children:[d.jsx(ys,{active:i==="unified",onClick:()=>l("unified"),children:"Unified"}),d.jsx(ys,{active:i==="sideBySide",onClick:()=>l("sideBySide"),children:"Side by Side"}),d.jsx(ys,{active:i==="old",onClick:()=>l("old"),children:"Old Content"}),d.jsx(ys,{active:i==="new",onClick:()=>l("new"),children:"New Content"})]}),i==="unified"&&f(),i==="sideBySide"&&p(),i==="old"&&h(),i==="new"&&g()]})},dC=k.div`
1070
- margin: 16px 0;
1071
- position: relative;
1072
-
1073
- ${Og} {
1074
- position: absolute;
1075
- right: 20px;
1076
- }
1077
- `,fC=k.div`
1078
- display: flex;
1079
- gap: 8px;
1080
- margin-bottom: 16px;
1081
- `,ys=k.button`
1082
- padding: 4px 8px;
1083
- border: 1px solid ${t=>t.theme.colors.border};
1084
- border-radius: 4px;
1085
- background-color: ${t=>t.active?t.theme.colors.primary:t.theme.colors.background};
1086
- color: ${t=>t.active?t.theme.colors.textOnPrimary:t.theme.colors.text};
1087
- cursor: pointer;
1088
- font-size: 0.8em;
1089
-
1090
- &:hover {
1091
- background-color: ${t=>t.theme.colors.primaryHover};
1092
- }
1093
- `,pC=k.div`
1094
- margin: 16px 0;
1095
- padding: 8px;
1096
- border: 1px solid ${t=>t.theme.colors.border};
1097
- border-radius: 4px;
1098
- background-color: ${t=>t.theme.colors.background};
1099
- max-height: 400px;
1100
- overflow-y: auto;
1101
- `,hC=k.div`
1102
- display: grid;
1103
- grid-template-columns: 1fr 1fr;
1104
- gap: 16px;
1105
- margin: 16px 0;
1106
- `,Up=k.div`
1107
- position: relative;
1108
- padding: 8px;
1109
- border: 1px solid ${t=>t.theme.colors.border};
1110
- border-radius: 4px;
1111
- background-color: ${t=>t.theme.colors.background};
1112
- max-height: 400px;
1113
- overflow-y: auto;
1114
- `,Vp=k.div`
1115
- margin: 16px 0;
1116
- padding: 8px;
1117
- border: 1px solid ${t=>t.theme.colors.border};
1118
- border-radius: 4px;
1119
- background-color: ${t=>t.theme.colors.background};
1120
- max-height: 400px;
1121
- overflow-y: auto;
1122
- `,Hp=k.div`
1123
- white-space: pre-wrap;
1124
- font-family: monospace;
1125
- font-size: 0.9em;
1126
- line-height: 1.5;
1127
- `,ru=k.div`
1128
- white-space: pre-wrap;
1129
- font-family: monospace;
1130
- font-size: 0.9em;
1131
- line-height: 1.5;
1132
- padding: 2px 4px;
1133
- margin: 2px 0;
1134
- background-color: ${t=>t.added?t.theme.colors.diffAdded:t.removed?t.theme.colors.diffRemoved:"transparent"};
1135
- color: ${t=>t.added?t.theme.colors.diffAddedText:t.removed?t.theme.colors.diffRemovedText:t.theme.colors.text};
1136
- `,Ag=k.div`
1137
- display: flex;
1138
- flex-direction: column;
1139
- gap: 12px;
1140
- width: 100%;
1141
- margin-top: 8px;
1142
- font-size: 0.95em;
1143
- `,In=k.div`
1144
- border: 1px solid ${t=>t.theme.colors.border};
1145
- border-radius: 6px;
1146
- overflow: hidden;
1147
- background: ${t=>t.theme.colors.backgroundSecondary}11;
1148
- transition: all 0.2s ease;
1149
-
1150
- &:hover {
1151
- border-color: ${t=>t.theme.colors.primary}66;
1152
- }
1153
- `,On=k.div`
1154
- padding: 10px 12px;
1155
- background: ${t=>t.theme.colors.backgroundSecondary}22;
1156
- cursor: pointer;
1157
- user-select: none;
1158
- transition: background-color 0.2s ease;
1159
-
1160
- &:hover {
1161
- background: ${t=>t.theme.colors.backgroundSecondary}44;
1162
- }
1163
- `,An=k.div`
1164
- padding: 12px;
1165
- border-top: 1px solid ${t=>t.theme.colors.border};
1166
- animation: slideDown 0.2s ease;
1167
- color: ${t=>t.theme.colors.textSecondary};
1168
- font-size: 0.95em;
1169
- white-space: pre-wrap;
1170
-
1171
- @keyframes slideDown {
1172
- from {
1173
- opacity: 0;
1174
- transform: translateY(-10px);
1175
- }
1176
- to {
1177
- opacity: 1;
1178
- transform: translateY(0);
1179
- }
1180
- }
1181
- `,Mn=k.div`
1182
- display: flex;
1183
- align-items: center;
1184
- gap: 8px;
1185
- color: ${t=>t.theme.colors.primary};
1186
- font-weight: 500;
1187
-
1188
- ${t=>t.expanded&&st`
1189
- margin-bottom: -1px;
1190
- `}
1191
- `,Dn=k.span`
1192
- display: inline-block;
1193
- width: 16px;
1194
- height: 16px;
1195
- line-height: 16px;
1196
- text-align: center;
1197
- font-size: 0.8em;
1198
- transition: transform 0.2s ease;
1199
- `,Ru=k.div`
1200
- display: flex;
1201
- flex-direction: column;
1202
- gap: 12px;
1203
- `,$u=k.div`
1204
- padding: 10px;
1205
- border-radius: 4px;
1206
- background: ${t=>t.theme.colors.backgroundSecondary}22;
1207
- border: 1px solid ${t=>t.theme.colors.border};
1208
-
1209
- &:hover {
1210
- border-color: ${t=>t.theme.colors.primary}66;
1211
- }
1212
- `,mC=k.div`
1213
- color: ${t=>t.theme.colors.textSecondary};
1214
- font-size: 0.95em;
1215
- font-weight: 500;
1216
- margin-bottom: 6px;
1217
- margin-top: 8px;
1218
- `,Tu=k.div`
1219
- font-family: monospace;
1220
- padding: 4px 8px;
1221
- padding-left: 0px;
1222
- background: ${t=>t.theme.colors.codeBackground};
1223
- border-radius: 3px;
1224
- color: ${t=>t.theme.colors.codeText};
1225
- word-break: break-all;
1226
- `,gC=k.div`
1227
- margin-top: 8px;
1228
- color: ${t=>t.theme.colors.textSecondary};
1229
- font-size: 0.95em;
1230
- line-height: 1.4;
1231
- white-space: pre-wrap;
1232
- `,vC=k.div`
1233
- font-size: 0.9em;
1234
- color: ${t=>t.theme.colors.textSecondary};
1235
- `,yC=k.div`
1236
- margin-top: 4px;
1237
- font-family: monospace;
1238
- color: ${t=>t.theme.colors.info};
1239
- `,xC=k.div`
1240
- display: inline-block;
1241
- margin-left: 8px;
1242
- padding: 2px 6px;
1243
- border-radius: 3px;
1244
- background: ${t=>t.theme.colors.backgroundSecondary}22;
1245
- border: 1px solid ${t=>t.theme.colors.border};
1246
- color: ${t=>t.theme.colors.textSecondary};
1247
- font-size: 0.85em;
1248
- cursor: pointer;
1249
- transition: all 0.2s ease;
1250
-
1251
- &:hover {
1252
- background: ${t=>t.theme.colors.backgroundSecondary}44;
1253
- border-color: ${t=>t.theme.colors.primary}66;
1254
- }
1255
- `,wC=k.div`
1256
- margin-top: 8px;
1257
- padding: 8px;
1258
- border-radius: 4px;
1259
- background: ${t=>t.theme.colors.backgroundSecondary}22;
1260
- border: 1px solid ${t=>t.theme.colors.border};
1261
- animation: slideDown 0.2s ease;
1262
- `;k.pre`
1263
- margin: 0;
1264
- padding: 12px;
1265
- background: ${t=>t.theme.colors.codeBackground};
1266
- border-radius: 4px;
1267
- color: ${t=>t.theme.colors.codeText};
1268
- font-family: monospace;
1269
- font-size: 0.9em;
1270
- line-height: 1.4;
1271
- overflow-x: auto;
1272
- white-space: pre-wrap;
1273
- word-wrap: break-word;
1274
- `;const SC=(t,o)=>{switch(t){case"createFile":return st`
1275
- background: ${o.colors.info}22;
1276
- color: ${o.colors.info};
1277
- border-color: ${o.colors.info}44;
1278
- `;case"updateFile":return st`
1279
- background: ${o.colors.primary}22;
1280
- color: ${o.colors.primary};
1281
- border-color: ${o.colors.primary}44;
1282
- `;case"deleteFile":return st`
1283
- background: ${o.colors.error}22;
1284
- color: ${o.colors.error};
1285
- border-color: ${o.colors.error}44;
1286
- `;case"moveFile":return st`
1287
- background: ${o.colors.warning}22;
1288
- color: ${o.colors.warning};
1289
- border-color: ${o.colors.warning}44;
1290
- `;case"temperature":return st`
1291
- background: ${o.colors.success}22;
1292
- color: ${o.colors.success};
1293
- border-color: ${o.colors.success}44;
1294
- margin-left: auto;
1295
- `;case"cheap":return st`
1296
- background: ${o.colors.secondary}22;
1297
- color: ${o.colors.secondary};
1298
- border-color: ${o.colors.secondary}44;
1299
- `;default:return st`
1300
- background: ${o.colors.secondary}22;
1301
- color: ${o.colors.secondary};
1302
- border-color: ${o.colors.secondary}44;
1303
- `}},Rs=k.div`
1304
- display: inline-block;
1305
- padding: 2px 8px;
1306
- border-radius: 3px;
1307
- font-size: 0.85em;
1308
- font-weight: 500;
1309
- margin-bottom: 6px;
1310
- border: 1px solid;
1311
- ${t=>SC(t.variant,t.theme)}
1312
- `;k.div`
1313
- margin-top: 8px;
1314
- font-size: 0.9em;
1315
- color: ${t=>t.theme.colors.textSecondary};
1316
- `;const kC=k.div`
1317
- display: flex;
1318
- gap: 8px;
1319
- align-items: center;
1320
- flex-wrap: wrap;
1321
- `,Mg=({data:{name:t,args:{filePath:o,explanation:i,oldContent:l,newContent:u}}})=>{const[f,p]=j.useState(!0),[h,g]=j.useState(!1);return d.jsxs(jC,{children:[d.jsxs(EC,{children:[d.jsx(Rs,{variant:t,children:t}),d.jsx(oC,{children:o}),d.jsxs(bC,{children:[d.jsx(Wp,{onClick:()=>p(!f),children:f?"Hide Explanation":"Explanation"}),(l||u)&&d.jsx(Wp,{onClick:()=>g(!h),children:h?"Hide Diff":"Show Diff"})]})]}),f&&i&&d.jsx(NC,{children:i}),h&&d.jsx(RC,{children:d.jsx(cC,{oldContent:l,newContent:u})})]})},CC=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function Pu(t){if(typeof t!="object"||t===null)return!1;const o=t;return typeof o.name!="string"||!CC.includes(o.name)?!1:typeof o.args.filePath=="string"}const jC=k.div`
1322
- margin: 16px 0;
1323
- padding: 16px;
1324
- border: 1px solid ${t=>t.theme.colors.border};
1325
- border-radius: 8px;
1326
- background-color: ${t=>t.theme.colors.background};
1327
- `,EC=k.div`
1328
- display: flex;
1329
- gap: 8px;
1330
- align-items: center;
1331
- `,bC=k.div`
1332
- display: flex;
1333
- gap: 8px;
1334
- margin-left: auto;
1335
- `,Wp=k.button`
1336
- padding: 4px 8px;
1337
- border: 1px solid ${t=>t.theme.colors.border};
1338
- border-radius: 4px;
1339
- background-color: ${t=>t.theme.colors.background};
1340
- cursor: pointer;
1341
- font-size: 0.8em;
1342
- color: ${t=>t.theme.colors.text};
1343
-
1344
- &:hover {
1345
- background-color: ${t=>t.theme.colors.backgroundHover};
1346
- }
1347
- `,NC=k.div`
1348
- margin-top: 8px;
1349
- padding: 8px;
1350
- border: 1px solid ${t=>t.theme.colors.border};
1351
- border-radius: 4px;
1352
- background-color: ${t=>t.theme.colors.background};
1353
- font-size: 0.9em;
1354
- line-height: 1.5;
1355
- `,RC=k.div`
1356
- margin: 16px 0;
1357
- `,$C=k.div`
1358
- display: grid;
1359
- grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
1360
- gap: 8px;
1361
- max-width: 800px;
1362
- margin: 8px 0;
1363
- `,TC=k.div`
1364
- position: relative;
1365
- width: 100%;
1366
- padding-bottom: 100%; /* Creates a square aspect ratio */
1367
- `,PC=k.img`
1368
- position: absolute;
1369
- top: 0;
1370
- left: 0;
1371
- width: 100%;
1372
- height: 100%;
1373
- object-fit: contain;
1374
- border-radius: 4px;
1375
- background-color: rgba(0, 0, 0, 0.05);
1376
- `,_C=({message:t,visibleDataIds:o,toggleDataVisibility:i})=>{var M;const[l,u]=j.useState(!1),[f,p]=j.useState(t.content),[h,g]=j.useState(!1),[v,y]=j.useState(null),x=j.useRef(null);j.useEffect(()=>{l&&x.current&&(x.current.focus(),x.current.selectionStart=x.current.value.length,x.current.selectionEnd=x.current.value.length)},[l]);const S=()=>{p(t.content),u(!0),y(null)},$=()=>{u(!1),p(t.content),y(null)},E=D=>D.trim()?D===t.content?(y("No changes made to the message"),!1):!0:(y("Message content cannot be empty"),!1),N=async()=>{if(E(f)){g(!0),y(null);try{await O1(t.id,f),u(!1)}catch(D){y(D instanceof Error?D.message:"Failed to save changes")}finally{g(!1)}}},T=D=>{D.key==="Enter"&&D.ctrlKey?N():D.key==="Escape"&&$()},I=t.type!=="system"&&((M=t.flags)==null?void 0:M.includes(Hu.MESSAGE_EDITABLE));return d.jsx(ni,{"data-type":t.type,children:d.jsxs(Uk,{"data-edit-mode":l,children:[d.jsxs(Vk,{children:[d.jsx("div",{children:t.type==="user"?"You":"Assistant"}),I&&!l&&d.jsx(qk,{onClick:S,title:"Edit message",children:"✎"})]}),l?d.jsxs(d.Fragment,{children:[d.jsx(Wk,{ref:x,value:f,onChange:D=>p(D.target.value),onKeyDown:T,placeholder:"Enter your message..."}),v&&d.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:v}),d.jsxs(Qk,{children:[d.jsx(Yk,{onClick:N,disabled:h,children:h?d.jsx(Zk,{}):"Save"}),d.jsx(Xk,{onClick:$,disabled:h,children:"Cancel"})]})]}):d.jsx(Hk,{children:t.content}),t.images&&t.images.length>0&&d.jsx($C,{children:t.images.map((D,U)=>d.jsx(TC,{children:d.jsx(PC,{src:`data:${D.mediaType};base64,${D.base64url}`,alt:D.originalName||`Image ${U+1}`,title:D.originalName||`Image ${U+1}`})},U))}),d.jsxs(Gk,{children:[d.jsx("div",{children:t.data?d.jsx(Kk,{onClick:()=>i(t.id),children:o.has(t.id)?"Hide data":"Show data"}):null}),d.jsxs("div",{children:[t.timestamp&&t.type==="assistant"&&t.data&&"contextSize"in t.data&&d.jsx(Lg,{messages:[t]}),d.jsx(Jk,{children:t.timestamp.toLocaleString()})]})]}),o.has(t.id)&&t.data?d.jsx(d.Fragment,{children:Pu(t.data)?d.jsx(Mg,{data:t.data}):d.jsx(_g,{data:t.data})}):null]})})},Gp=k.div`
1377
- background-color: ${t=>t.theme.colors.systemMessageBackground};
1378
- color: ${t=>t.theme.colors.systemMessageText};
1379
- border: 1px solid ${t=>t.theme.colors.systemMessageBorder};
1380
- border-radius: 8px;
1381
- padding: 8px 12px;
1382
- margin: 8px 0;
1383
- font-style: italic;
1384
- font-size: 0.9em;
1385
- opacity: 0.8;
1386
- transition: margin 0.2s ease-in-out;
1387
-
1388
- /* Increase bottom margin when followed by a codegen view */
1389
- & + div {\n margin-top: 16px;
1390
- }\n
1391
- ${t=>t.isExecutionEnd&&`
1392
- border-bottom: 3px solid ${t.theme.colors.primary};
1393
- `}\n`,Jp=k.div`
1394
- cursor: pointer;
1395
- font-weight: bold;
1396
- margin-bottom: 8px;
1397
- display: flex;
1398
- align-items: center;
1399
- gap: 4px;
1400
-
1401
- &:hover {\n opacity: 0.8;
1402
- }\n`,LC=k.div`
1403
- white-space: pre-wrap;
1404
- word-wrap: break-word;
1405
- font-family: inherit;
1406
- margin: 0;
1407
-
1408
- /* Add spacing between content sections */
1409
- & > *:not(:last-child) {\n margin-bottom: 12px;
1410
- }\n`,IC=k.div`
1411
- margin-bottom: 8px;
1412
- position: relative;
1413
- padding-right: 150px; /* Space for timestamp and data link */
1414
-
1415
- &:last-child {\n margin-bottom: 0;
1416
- }\n`,OC=k.div`
1417
- font-size: 0.8em;
1418
- color: ${t=>t.theme.colors.systemMessageTimestamp};
1419
- position: absolute;
1420
- right: 60px;
1421
- top: 0;
1422
- `,AC=k.span`
1423
- font-size: 0.8em;
1424
- color: ${t=>t.theme.colors.primary};
1425
- cursor: pointer;
1426
- text-decoration: underline;
1427
- position: absolute;
1428
- right: 0;
1429
- top: 0;
1430
-
1431
- &:hover {\n color: ${t=>t.theme.colors.primaryHover};\n }\n`,MC=({data:t})=>{const[o,i]=j.useState({analysis:!0,changes:!0,files:!0}),[l,u]=j.useState({}),f=h=>{i(g=>({...g,[h]:!g[h]}))},p=h=>{u(g=>({...g,[h]:!g[h]}))};return d.jsxs(Ag,{children:[d.jsxs(In,{children:[d.jsx(On,{onClick:()=>f("analysis"),children:d.jsxs(Mn,{expanded:o.analysis,children:[d.jsx(Dn,{children:o.analysis?"▼":"▶"}),"Problem Analysis"]})}),o.analysis&&d.jsx(An,{children:t.args.problemAnalysis})]}),d.jsxs(In,{children:[d.jsx(On,{onClick:()=>f("changes"),children:d.jsxs(Mn,{expanded:o.changes,children:[d.jsx(Dn,{children:o.changes?"▼":"▶"}),"Implementation Plan"]})}),o.changes&&d.jsx(An,{children:t.args.codeChanges})]}),d.jsxs(In,{children:[d.jsx(On,{onClick:()=>f("files"),children:d.jsxs(Mn,{expanded:o.files,children:[d.jsx(Dn,{children:o.files?"▼":"▶"}),"Affected Files"]})}),o.files&&d.jsx(An,{children:d.jsx(Ru,{children:t.args.affectedFiles.map((h,g)=>d.jsxs($u,{children:[d.jsxs(Tu,{children:[h.filePath,h.dependencies&&h.dependencies.length>0&&d.jsxs(xC,{onClick:()=>p(h.filePath),title:"Dependencies",children:["(",h.dependencies.length,")"]})]}),h.dependencies&&h.dependencies.length>0&&l[h.filePath]&&d.jsx(wC,{children:d.jsxs(vC,{children:["Dependencies:",h.dependencies.map((v,y)=>d.jsx(yC,{children:v},y))]})}),d.jsx(mC,{children:h.reason})]},g))})})]})]})};function Kp(t){if(typeof t!="object"||t===null)return!1;const o=t;if(!o.args||typeof o.args!="object"||o.args===null)return!1;const i=o.args;return typeof i.problemAnalysis=="string"&&typeof i.codeChanges=="string"&&Array.isArray(i.affectedFiles)&&i.affectedFiles.every(l=>typeof l=="object"&&l!==null&&typeof l.reason=="string"&&typeof l.filePath=="string")}const DC=({data:t})=>{const[o,i]=j.useState({explanation:!0,updates:!0,context:!1}),l=u=>{i(f=>({...f,[u]:!f[u]}))};return d.jsxs(Ag,{children:[d.jsxs(In,{children:[d.jsx(On,{onClick:()=>l("explanation"),children:d.jsxs(Mn,{expanded:o.explanation,children:[d.jsx(Dn,{children:o.explanation?"▼":"▶"}),"Explanation"]})}),o.explanation&&d.jsx(An,{children:t.args.explanation})]}),d.jsxs(In,{children:[d.jsx(On,{onClick:()=>l("updates"),children:d.jsxs(Mn,{expanded:o.updates,children:[d.jsx(Dn,{children:o.updates?"▼":"▶"}),"File Updates (",t.args.fileUpdates.length,")"]})}),o.updates&&d.jsx(An,{children:d.jsx(Ru,{children:t.args.fileUpdates.map((u,f)=>d.jsxs($u,{children:[d.jsxs(kC,{children:[d.jsx(Rs,{variant:u.updateToolName,children:u.updateToolName}),d.jsx(Tu,{children:u.filePath}),u.temperature&&d.jsx(Rs,{variant:"temperature",title:"Temperature",children:u.temperature}),u.cheap&&d.jsx(Rs,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),d.jsx(gC,{title:"Prompt",children:u.prompt})]},f))})})]}),d.jsxs(In,{children:[d.jsx(On,{onClick:()=>l("context"),children:d.jsxs(Mn,{expanded:o.context,children:[d.jsx(Dn,{children:o.context?"▼":"▶"}),"Context Paths (",t.args.contextPaths.length,")"]})}),o.context&&d.jsx(An,{children:d.jsx(Ru,{children:t.args.contextPaths.map((u,f)=>d.jsx($u,{children:d.jsx(Tu,{children:u})},f))})})]})]})};function Qp(t){if(typeof t!="object"||t===null)return!1;const o=t;if(!o.args||typeof o.args!="object"||o.args===null)return!1;const i=o.args;return typeof i.explanation=="string"&&Array.isArray(i.fileUpdates)&&Array.isArray(i.contextPaths)&&i.fileUpdates.every(l=>typeof l=="object"&&l!==null&&typeof l.prompt=="string"&&typeof l.filePath=="string"&&typeof l.updateToolName=="string")}const zC=({message:t,collapsedExecutions:o,toggleExecutionCollapse:i,visibleDataIds:l,toggleDataVisibility:u})=>o.has(t.id)?d.jsx(Gp,{isExecutionEnd:t.isExecutionEnd,children:d.jsxs(Jp,{onClick:()=>i(t.id),children:["▶ Execution ",t.id.split("_")[1]]})}):FC(t.parts).map((p,h)=>p.parts.length>0?d.jsxs(Gp,{isExecutionEnd:t.isExecutionEnd,children:[d.jsxs(Jp,{onClick:()=>i(t.id),children:["▼ Execution ",t.id.split("_")[1]]}),d.jsx(LC,{children:p.parts.map(g=>d.jsxs(IC,{children:[g.content,d.jsx(OC,{children:g.timestamp.toLocaleString()}),g.data?d.jsx(AC,{onClick:()=>u(g.id),children:l.has(g.id)?"Hide data":"Show data"}):null,l.has(g.id)&&g.data?d.jsx(_g,{data:g.data}):null]},g.id))})]},`section-${h}`):p.codegenView?d.jsx(ct.Fragment,{children:p.codegenView},`view-${h}`):null);function FC(t){const o=[];let i=[];return o.push({parts:i}),t.forEach(l=>{if(i.push(l),Kp(l.data)||Qp(l.data)||Pu(l.data)){const u=Kp(l.data)?d.jsx(MC,{data:l.data},`planning-${l.id}`):Qp(l.data)?d.jsx(DC,{data:l.data},`summary-${l.id}`):Pu(l.data)?d.jsx(Mg,{data:l.data},`file-update-${l.id}`):null;o.push({parts:[],codegenView:u}),i=[],o.push({parts:i})}}),o}const BC=k.div`
1432
- display: flex;
1433
- flex-direction: column;
1434
- height: 100%;
1435
- background-color: ${t=>t.theme.colors.background};
1436
- position: relative;
1437
- overflow: hidden;
1438
- `,UC=k.div`
1439
- display: flex;
1440
- flex-direction: column;
1441
- gap: 16px;
1442
- padding: 16px;
1443
- overflow-y: auto;
1444
- flex-grow: 1;
1445
- max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
1446
- margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
1447
- `,VC=k.div`
1448
- display: flex;
1449
- flex-direction: column;
1450
- gap: 8px;
1451
- border: 1px solid ${t=>t.theme.colors.border};
1452
- border-radius: 8px;
1453
- margin-bottom: 24px;
1454
- `,HC=k.div`
1455
- font-size: 16px;
1456
- font-weight: bold;
1457
- color: ${t=>t.theme.colors.text};
1458
- background-color: ${t=>t.theme.colors.backgroundSecondary};
1459
- padding: 12px 16px;
1460
- border-bottom: 1px solid ${t=>t.theme.colors.border};
1461
- border-top-left-radius: 8px;
1462
- border-top-right-radius: 8px;
1463
- display: flex;
1464
- justify-content: space-between;
1465
- align-items: center;
1466
- cursor: pointer;
1467
- position: sticky;
1468
- top: -22px;
1469
- z-index: 10;
1470
-
1471
- /* Wrap title in a div to control its layout */
1472
- > .title-wrapper {
1473
- display: flex;
1474
- align-items: start;
1475
- flex-grow: 1;
1476
- overflow: hidden; /* Ensure long text doesn't overflow */
1477
- }
1478
-
1479
- > .title {
1480
- display: flex;
1481
- align-items: start;
1482
- white-space: nowrap; /* Prevent text wrapping */
1483
- overflow: hidden; /* Hide overflowing text */
1484
- text-overflow: ellipsis; /* Add ellipsis for overflow */
1485
- }
1486
-
1487
- /* Wrap meta in a div for consistent layout */
1488
- > .meta-wrapper {
1489
- display: flex;
1490
- align-items: center; /* Align meta content vertically */
1491
- flex-shrink: 0; /* Prevent meta from shrinking */
1492
- margin-left: auto; /* Push meta to the right */
1493
- }
1494
-
1495
- > .meta {
1496
- font-size: 12px;
1497
- font-weight: normal;
1498
- color: ${t=>t.theme.colors.textSecondary};
1499
- display: flex;
1500
- flex-direction: row;
1501
- align-items: center;
1502
- gap: 10px;
1503
- white-space: nowrap;
1504
- overflow: visible;
1505
- text-overflow: ellipsis;
1506
- }
1507
- `,WC=k.button`
1508
- display: flex;
1509
- justify-content: center;
1510
- align-items: center;
1511
- background-color: transparent;
1512
- border: none;
1513
- color: ${t=>t.theme.colors.textSecondary};
1514
- cursor: pointer;
1515
- font-size: 16px;
1516
- padding: 4px 8px;
1517
- border-radius: 4px;
1518
- margin-left: 8px;
1519
- z-index: 11;
1520
- position: relative;
1521
- min-width: 24px;
1522
- flex-shrink: 0; /* Prevent the button from shrinking */
1523
-
1524
- &:hover {
1525
- background-color: ${t=>t.theme.colors.backgroundSecondary};
1526
- color: ${t=>t.theme.colors.error};
1527
- }
1528
- `,GC=k.div`
1529
- display: ${t=>t.isCollapsed?"none":"flex"};
1530
- flex-direction: column;
1531
- gap: 8px;
1532
- padding: 16px;
1533
- `,JC=k.p`
1534
- font-size: 14px;
1535
- color: ${t=>t.theme.colors.textSecondary};
1536
- background-color: ${t=>t.theme.colors.backgroundTertiary};
1537
- padding: 8px;
1538
- border-radius: 4px;
1539
- margin: 0 0 16px 0;
1540
- `;k.div`
1541
- margin-bottom: 16px;
1542
-
1543
- &:last-child {
1544
- margin-bottom: 0;
1545
- }
1546
- `;const KC=k.span`
1547
- &:before {
1548
- content: '▼';
1549
- margin-right: 8px;
1550
- }
1551
- `,QC=k.span`
1552
- &:before {
1553
- content: '▶';
1554
- margin-right: 8px;
1555
- }
1556
- `;k.span`
1557
- color: ${t=>t.theme.colors.primary};
1558
- cursor: pointer;
1559
- margin-right: 8px;
1560
-
1561
- &:hover {
1562
- text-decoration: underline;
1563
- }
1564
- `;function qC(t){return j.useMemo(()=>{const o=[];let i=null,l=null,u=0;return t.sort((f,p)=>f.iterationId<p.iterationId?-1:1).forEach((f,p)=>{var h;(!i||f.iterationId!==i.iterationId)&&(i&&(i.timestampEnd=new Date(f.timestamp),o.push(i)),i={iterationId:f.iterationId,timestampStart:new Date(f.timestamp),timestampEnd:new Date(f.timestamp),conversationSummaries:[],messages:[]}),(h=f.flags)!=null&&h.includes(Hu.CONVERSATION_SUMMARY)&&f.data&&(i.conversationSummaries.push(f.data),i.iterationTitle=f.data),f.type===_r.SYSTEM?l?l.parts.push(f):(u++,l={...f,type:_r.SYSTEM,parts:[f],id:`execution_${u}`,isExecutionEnd:p===t.length-1||t[p+1].type!==_r.SYSTEM},i.messages.push(l)):(l&&(l.isExecutionEnd=!0),l=null,i.messages.push(f)),i.timestampEnd=new Date(f.timestamp)}),i&&o.push(i),o.sort((f,p)=>f.timestampStart.getTime()-p.timestampStart.getTime())},[t])}const YC=({onClick:t})=>d.jsxs(ZC,{onClick:t,children:[d.jsx(ej,{children:"New messages"}),d.jsx(nu,{}),d.jsx(nu,{}),d.jsx(nu,{})]}),XC=Gn`
1565
- 0%, 80%, 100% {
1566
- transform: scale(0.8);
1567
- }
1568
- 40% {
1569
- transform: scale(1.2);
1570
- }
1571
- `,ZC=k.div`
1572
- display: flex;
1573
- justify-content: center;
1574
- align-items: center;
1575
- padding: 10px;
1576
- background-color: ${t=>t.theme.colors.primary};
1577
- color: ${t=>t.theme.colors.text};
1578
- border-radius: 20px;
1579
- position: absolute;
1580
- bottom: 20px;
1581
- left: 50%;
1582
- transform: translateX(-50%);
1583
- cursor: pointer;
1584
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
1585
- transition: all 0.3s ease;
1586
- z-index: 10;
1587
-
1588
- &:hover {
1589
- background-color: ${t=>t.theme.colors.primaryHover};
1590
- }
1591
- `,ej=k.span`
1592
- margin-right: 10px;
1593
- font-weight: bold;
1594
- `,nu=k.div`
1595
- width: 8px;
1596
- height: 8px;
1597
- background-color: ${t=>t.theme.colors.text};
1598
- border-radius: 50%;
1599
- margin: 0 2px;
1600
- animation: ${XC} 1.4s infinite ease-in-out both;
1601
-
1602
- &:nth-child(2) {
1603
- animation-delay: -0.32s;
1604
- }
1605
-
1606
- &:nth-child(3) {
1607
- animation-delay: -0.16s;
1608
- }
1609
- `,tj=k.div`
1610
- position: relative;
1611
- width: 100%;
1612
- `,rj=k.textarea`
1613
- width: 100%;
1614
- min-height: 60px;
1615
- resize: none;
1616
- padding: 8px;
1617
- border: 1px solid ${t=>t.theme.colors.border};
1618
- border-radius: 4px;
1619
- font-family: inherit;
1620
- font-size: 14px;
1621
- background-color: ${t=>t.theme.colors.inputBg};
1622
- color: ${t=>t.theme.colors.inputText};
1623
- box-sizing: border-box;
1624
- overflow: hidden;
1625
-
1626
- &:focus {
1627
- outline: none;
1628
- border-color: ${t=>t.theme.colors.primary};
1629
- }
1630
- `,Dg=({value:t,onChange:o,onKeyDown:i,onPaste:l,onImagePaste:u,maxViewportHeight:f=.5,...p})=>{const h=j.useRef(null);j.useEffect(()=>{if(h.current){h.current.style.height="auto";const y=h.current.scrollHeight,x=f*window.innerHeight,S=Math.min(y,x);h.current.style.height=`${S}px`}},[t,f]);const g=y=>{o(y.target.value)},v=y=>{var S;const x=(S=y.clipboardData)==null?void 0:S.items;if(x){for(let $=0;$<x.length;$++)if(x[$].type.indexOf("image")!==-1){y.preventDefault();const E=x[$].getAsFile();if(E){const N=new File([E],`pasted-image-${Date.now()}.png`,{type:"image/png"});u==null||u(N)}break}}l==null||l(y)};return d.jsx(tj,{children:d.jsx(rj,{ref:h,value:t,onChange:g,onKeyDown:i,onPaste:v,...p})})},nj=5*1024*1024,qp=["image/jpeg","image/png","image/gif","image/webp"],Yp=5,zg=({images:t,onImagesChange:o,error:i,setError:l,fileInputRef:u})=>{const f=h=>{const v=Array.from(h.target.files||[]).filter(y=>qp.includes(y.type)?y.size>nj?(l(`File too large: ${y.name}. Maximum size is 5MB.`),!1):!0:(l(`Invalid file type: ${y.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(v.length+t.length>Yp){l(`Too many images. Maximum ${Yp} images allowed.`);return}o([...t,...v]),l(null)},p=h=>{const g=t.filter((v,y)=>y!==h);o(g)};return d.jsxs(oj,{children:[i&&d.jsx(ij,{children:i}),d.jsx(sj,{children:t.map((h,g)=>d.jsxs(lj,{children:[d.jsx("img",{src:URL.createObjectURL(h),alt:`Uploaded ${g+1}`}),d.jsx(aj,{onClick:()=>p(g),children:"×"})]},g))}),d.jsx("input",{type:"file",ref:u,style:{display:"none"},onChange:f,accept:qp.join(","),multiple:!0})]})},oj=k.div`
1631
- margin-bottom: 8px;
1632
- `,ij=k.div`
1633
- color: ${t=>t.theme.colors.error};
1634
- font-size: 14px;
1635
- margin-bottom: 8px;
1636
- `,sj=k.div`
1637
- display: flex;
1638
- flex-wrap: wrap;
1639
- gap: 8px;
1640
- `,lj=k.div`
1641
- position: relative;
1642
- width: 60px;
1643
- height: 60px;
1644
-
1645
- img {
1646
- width: 100%;
1647
- height: 100%;
1648
- object-fit: cover;
1649
- border-radius: 4px;
1650
- }
1651
- `,aj=k.button`
1652
- position: absolute;
1653
- top: -8px;
1654
- right: -8px;
1655
- background-color: ${t=>t.theme.colors.error};
1656
- color: white;
1657
- border: none;
1658
- border-radius: 50%;
1659
- width: 20px;
1660
- height: 20px;
1661
- font-size: 14px;
1662
- line-height: 1;
1663
- cursor: pointer;
1664
- display: flex;
1665
- align-items: center;
1666
- justify-content: center;
1667
-
1668
- &:hover {
1669
- background-color: ${t=>t.theme.colors.errorHover};
1670
- }
1671
- `,Xp=({onSubmit:t,onInterrupt:o,onPauseResume:i,question:l,codegenOptions:u,executionStatus:f})=>{var ge,Ee;const[p,h]=j.useState(""),[g,v]=j.useState([]),[y,x]=j.useState(null),{suggestions:S}=j.useContext(Qn)??{suggestions:[]},[$,E]=j.useState(null),[N,T]=j.useState(u.aiService),[I,M]=j.useState(!1),D=j.useRef(null),U=j.useRef(null);j.useEffect(()=>{T(u.aiService)},[u.aiService]),j.useEffect(()=>{const Se=Y=>{D.current&&!D.current.contains(Y.target)&&M(!1)};return document.addEventListener("mousedown",Se),()=>{document.removeEventListener("mousedown",Se)}},[D]);const J=Se=>{v(Y=>[...Y,Se]),x(null)},H=async Se=>{if(Se.preventDefault(),(p.trim()||g.length>0)&&l)try{await t(p,g,void 0,N),h(""),v([]),E(null),x(null)}catch(Y){console.error("Error submitting answer:",Y),E("Failed to submit the answer. Please try again.")}},K=async Se=>{try{await t(p,g,Se,N),h(""),v([]),E(null),x(null)}catch(Y){console.error("Error submitting confirmation:",Y),E("Failed to submit the confirmation. Please try again.")}},Q=Se=>{h(Se),M(!1)},ue=()=>{M(!I)},je=()=>{var Se;(Se=U.current)==null||Se.click()},Ne=f==="paused";return d.jsxs(uj,{children:[l?d.jsxs(cj,{onSubmit:H,children:[l.confirmation&&d.jsx("p",{children:l.text}),((ge=l.confirmation)==null?void 0:ge.includeAnswer)!==!1&&d.jsx(Dg,{value:p,onChange:h,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:J}),((Ee=l.confirmation)==null?void 0:Ee.includeAnswer)!==!1&&d.jsx(zg,{images:g,onImagesChange:v,error:y,setError:x,fileInputRef:U}),!l.confirmation&&d.jsxs(ou,{children:[d.jsx(gj,{type:"submit",disabled:!p.trim()&&g.length===0,children:"Submit Answer"}),d.jsx(vj,{type:"button",onClick:je,title:"Upload Images",children:d.jsx(dm,{})}),d.jsx(As,{value:N,onChange:T,disabled:!1}),S&&S.length>0&&d.jsxs(dj,{ref:D,children:[d.jsxs(fj,{type:"button",onClick:ue,children:[S[0],S.length>1&&d.jsx(pj,{children:" ▼"})]}),I&&d.jsx(hj,{children:S.map((Se,Y)=>d.jsx(mj,{onClick:()=>Q(Se),children:Se},Y))})]}),d.jsx(iu,{onClick:o,children:"Interrupt"})]}),l.confirmation&&d.jsxs(ou,{children:[d.jsx(Zp,{onClick:()=>K(!0),children:l.confirmation.confirmLabel}),d.jsx(Zp,{onClick:()=>K(!1),"data-secondary":"true",children:l.confirmation.declineLabel}),d.jsx(As,{value:N,onChange:T,disabled:!1}),d.jsx(iu,{onClick:o,children:"Interrupt"})]})]}):d.jsxs(ou,{children:[d.jsx(yj,{onClick:i,isPaused:Ne,children:Ne?"Resume":"Pause"}),d.jsx(iu,{onClick:o,children:"Interrupt"})]}),$&&d.jsx(xj,{children:$})]})},uj=k.div`
1672
- background-color: ${({theme:t})=>t.colors.background};
1673
- border: 1px solid ${({theme:t})=>t.colors.border};
1674
- border-radius: 8px;
1675
- padding: 15px;
1676
- margin-top: 10px;
1677
- margin-bottom: 10px;
1678
- max-width: 70%;
1679
- width: 100%;
1680
- box-sizing: border-box;
1681
- `,cj=k.form`
1682
- display: flex;
1683
- flex-direction: column;
1684
-
1685
- > p {
1686
- margin-top: 0;
1687
- }
1688
- `,dj=k.div`
1689
- position: relative;
1690
- display: inline-block;
1691
- `,fj=k.button`
1692
- background-color: ${t=>t.theme.colors.backgroundSecondary};
1693
- color: ${t=>t.theme.colors.text};
1694
- border: 1px solid ${t=>t.theme.colors.border};
1695
- border-radius: 4px;
1696
- padding: 8px 12px;
1697
- font-size: 14px;
1698
- cursor: pointer;
1699
- transition: background-color 0.3s ease;
1700
- display: flex;
1701
- align-items: center;
1702
- white-space: nowrap;
1703
- overflow: hidden;
1704
- text-overflow: ellipsis;
1705
- max-width: 200px;
1706
-
1707
- &:hover {
1708
- background-color: ${t=>t.theme.colors.primary+"22"};
1709
- }
1710
- `,pj=k.span`
1711
- margin-left: 5px;
1712
- font-size: 0.8em;
1713
- `,hj=k.div`
1714
- position: absolute;
1715
- bottom: 100%;
1716
- left: 0;
1717
- background-color: ${({theme:t})=>t.colors.inputBg};
1718
- border: 1px solid ${({theme:t})=>t.colors.border};
1719
- border-radius: 4px;
1720
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
1721
- z-index: 1000;
1722
- max-width: 300px;
1723
- max-height: 200px;
1724
- overflow-y: auto;
1725
- margin-bottom: 5px;
1726
- `,mj=k.div`
1727
- padding: 8px 12px;
1728
- color: ${({theme:t})=>t.colors.inputText};
1729
- cursor: pointer;
1730
- white-space: nowrap;
1731
- overflow: hidden;
1732
- text-overflow: ellipsis;
1733
-
1734
- &:hover {
1735
- background-color: ${({theme:t})=>t.colors.primary+"22"};
1736
- }
1737
- `,ou=k.div`
1738
- display: flex;
1739
- align-items: center;
1740
- justify-content: flex-start;
1741
- gap: 10px;
1742
- margin-top: 10px;
1743
- flex-wrap: wrap;
1744
- `,oi=k.button`
1745
- color: #ffffff;
1746
- border: none;
1747
- border-radius: 4px;
1748
- padding: 8px 12px;
1749
- font-size: 14px;
1750
- cursor: pointer;
1751
- transition: background-color 0.3s ease;
1752
-
1753
- &:disabled {
1754
- background-color: ${({theme:t})=>t.colors.disabled};
1755
- cursor: not-allowed;
1756
- }
1757
- `,gj=k(oi)`
1758
- background-color: ${({theme:t})=>t.colors.primary};
1759
-
1760
- &:hover:not(:disabled) {
1761
- background-color: ${({theme:t})=>t.colors.primary}dd;
1762
- }
1763
- `,vj=k(oi)`
1764
- background-color: ${({theme:t})=>t.colors.buttonBg}; /* Or choose another appropriate color */
1765
-
1766
- &:hover {
1767
- background-color: ${({theme:t})=>t.colors.buttonHoverBg}dd;
1768
- }
1769
- `,Zp=k(oi)`
1770
- background-color: ${({theme:t})=>t.colors.primary};
1771
- &:hover {
1772
- background-color: ${({theme:t})=>t.colors.primary}dd;
1773
- }
1774
-
1775
- &[data-secondary='true'] {
1776
- background-color: ${({theme:t})=>t.colors.secondary};
1777
- &:hover {
1778
- background-color: ${({theme:t})=>t.colors.secondary}dd;
1779
- }
1780
- }
1781
- `,iu=k(oi)`
1782
- background-color: ${({theme:t})=>t.colors.error};
1783
- margin-left: auto;
1784
-
1785
- &:hover {
1786
- background-color: ${({theme:t})=>t.colors.error}dd;
1787
- }
1788
- `,yj=k(oi)`
1789
- background-color: ${({theme:t,isPaused:o})=>o?t.colors.warning:t.colors.info};
1790
-
1791
- &:hover {
1792
- background-color: ${({theme:t,isPaused:o})=>o?t.colors.warning:t.colors.info}dd;
1793
- }
1794
- `,xj=k.p`
1795
- color: ${({theme:t})=>t.colors.error};
1796
- font-weight: bold;
1797
- margin-top: 10px;
1798
- margin-bottom: 0;
1799
- `,wj=({isVisible:t,onInterrupt:o,onPauseResume:i,executionStatus:l})=>t?d.jsxs(kj,{children:[d.jsx(jj,{onClick:o,children:"Interrupt"}),d.jsxs(Cj,{"data-execution-status":l,children:[d.jsx(su,{}),d.jsx(su,{}),d.jsx(su,{})]}),d.jsx(Fg,{onClick:i,children:l==="paused"?"Resume":"Pause"})]}):null,Sj=Gn`
1800
- 0%, 80%, 100% {
1801
- transform: scale(0);
1802
- }
1803
- 40% {
1804
- transform: scale(1.0);
1805
- }
1806
- `,kj=k.div`
1807
- display: flex;
1808
- flex-direction: row;
1809
- align-items: center;
1810
- justify-content: center;
1811
- gap: 50px;
1812
- padding: 10px;
1813
- background-color: ${t=>t.theme.colors.background};
1814
- border-top: 1px solid ${t=>t.theme.colors.border};
1815
- `,Cj=k.div`
1816
- display: flex;
1817
- align-items: center;
1818
- justify-content: center;
1819
- align-items: center;
1820
- margin-bottom: 10px;
1821
- `,su=k.div`
1822
- width: 10px;
1823
- height: 10px;
1824
- background-color: ${t=>t.theme.colors.primary};
1825
- border-radius: 50%;
1826
- margin: 0 5px;
1827
-
1828
- [data-execution-status='executing'] & {
1829
- animation: ${Sj} 1.4s infinite ease-in-out both;
1830
- }
1831
-
1832
- &:nth-child(1) {
1833
- animation-delay: -0.32s;
1834
- }
1835
-
1836
- &:nth-child(2) {
1837
- animation-delay: -0.16s;
1838
- }
1839
- `,Fg=k.button`
1840
- padding: 8px 16px;
1841
- background-color: ${t=>t.theme.colors.primary};
1842
- color: #ffffff;
1843
- border: none;
1844
- border-radius: 4px;
1845
- cursor: pointer;
1846
- font-size: 14px;
1847
- font-weight: 600;
1848
- transition: background-color 0.3s, transform 0.1s;
1849
-
1850
- &:hover {
1851
- background-color: ${t=>t.theme.colors.primaryHover};
1852
- transform: translateY(-1px);
1853
- }
1854
-
1855
- &:active {
1856
- transform: translateY(0);
1857
- }
1858
- `,jj=k(Fg)`
1859
- background-color: ${({theme:t})=>t.colors.error};
1860
-
1861
- &:hover {
1862
- background-color: ${({theme:t})=>t.colors.errorHover};
1863
- }
1864
- `,Ej=({messages:t,currentQuestion:o,codegenOptions:i,onQuestionSubmit:l,onInterrupt:u,onPauseResume:f,executionStatus:p})=>{var Se;const[h,g]=j.useState(()=>new Set),[v,y]=j.useState(()=>new Set),[x,S]=j.useState(()=>new Set),[$]=j.useState(null),E=j.useRef(null),N=j.useRef(null),[T,I]=j.useState(!1),[M,D]=j.useState(!0),[U,J]=j.useState(null),H=qC(t),K=p!=="idle"?(Se=H[H.length-1])==null?void 0:Se.iterationId:null,Q=j.useCallback(()=>{if(!N.current)return!0;const{scrollTop:Y,scrollHeight:xe,clientHeight:ie}=N.current;return Math.abs(xe-ie-Y)<5||xe<=ie},[]);j.useEffect(()=>{const Y=N.current;if(!Y)return;const xe=()=>{const ie=Q();D(ie),ie&&I(!1)};return Y.addEventListener("scroll",xe),()=>Y.removeEventListener("scroll",xe)},[Q]),j.useEffect(()=>{M?ge():t.length>0&&I(!0)},[H,M,t.length]),j.useEffect(()=>{const Y=new Set(H.slice(0,-1).map(xe=>xe.iterationId));S(Y)},[H.length]);const ue=Y=>{g(xe=>{const ie=new Set(xe);return ie.has(Y)?ie.delete(Y):ie.add(Y),ie})},je=Y=>{y(xe=>{const ie=new Set(xe);return ie.has(Y)?ie.delete(Y):ie.add(Y),ie})},Ne=Y=>{var xe;$&&((xe=t.find(ie=>ie.id===$))==null?void 0:xe.iterationId)===Y||S(ie=>{const G=new Set(ie);return G.has(Y)?G.delete(Y):G.add(Y),G})},ge=()=>{requestAnimationFrame(()=>{var Y;(Y=N.current)==null||Y.scrollTo({top:N.current.scrollHeight,behavior:"smooth"})}),I(!1)},Ee=async Y=>{if(U===Y)try{await V1(Y),J(null)}catch(xe){console.error("Failed to delete iteration:",xe)}else J(Y)};return d.jsxs(BC,{children:[d.jsxs(UC,{ref:N,children:[H.map((Y,xe)=>d.jsxs(VC,{children:[d.jsxs(HC,{children:[d.jsxs("div",{className:"title",onClick:()=>Ne(Y.iterationId),children:[x.has(Y.iterationId)?d.jsx(QC,{}):d.jsx(KC,{}),d.jsx("span",{children:Y.iterationTitle??`Iteration ${Y.iterationId}`})]}),d.jsxs("span",{className:"meta",children:[Y.timestampStart.toLocaleString()," - ",Y.timestampEnd.toLocaleString(),d.jsx(Lg,{messages:Y.messages}),Y.iterationId!==K&&d.jsx(WC,{onClick:()=>Ee(Y.iterationId),title:U===Y.iterationId?"Confirm deletion":"Delete iteration",children:U===Y.iterationId?"🗑️ Confirm":"🗑️"})]})]}),d.jsxs(GC,{isCollapsed:x.has(Y.iterationId),children:[Y.conversationSummaries.length>0&&d.jsx(JC,{children:Y.conversationSummaries.join(" ")}),Y.messages.map((ie,G)=>d.jsxs(ct.Fragment,{children:[ie.type===_r.SYSTEM?d.jsx(zC,{message:ie,collapsedExecutions:v,toggleExecutionCollapse:je,visibleDataIds:h,toggleDataVisibility:ue}):d.jsx(_C,{message:ie,visibleDataIds:h,toggleDataVisibility:ue}),p!=="idle"&&o&&xe===H.length-1&&G===Y.messages.length-1&&d.jsx(Xp,{onSubmit:l,onInterrupt:u,onPauseResume:f,question:o,codegenOptions:i,executionStatus:p})]},ie.id))]})]},Y.iterationId)),p!=="idle"&&o&&H.length>0&&H[H.length-1].messages.length===0&&d.jsx(Xp,{onSubmit:l,onInterrupt:u,onPauseResume:f,question:o,codegenOptions:i,executionStatus:p}),d.jsx("div",{ref:E})]}),T&&!M&&d.jsx(YC,{onClick:ge}),d.jsx(wj,{isVisible:p!=="idle"&&!o,onInterrupt:u,onPauseResume:f,executionStatus:p})]})},bj=({onSubmit:t,onUploadClick:o,onAiServiceChange:i,options:l,disabled:u})=>d.jsxs(Rj,{children:[d.jsx(Nj,{onClick:t,disabled:u,children:"Submit"}),d.jsx(Bg,{onClick:o,title:"Upload Images",children:d.jsx(dm,{})}),d.jsx(As,{value:l.aiService,onChange:i})]}),Bg=k.button`
1865
- color: ${({theme:t})=>t.colors.buttonText};
1866
- background-color: ${({theme:t})=>t.colors.buttonBg};
1867
- border: none;
1868
- border-radius: 4px;
1869
- padding: 10px 15px;
1870
- font-size: 14px;
1871
- cursor: pointer;
1872
- transition: background-color 0.3s ease;
1873
- margin-right: 10px;
1874
-
1875
- &:hover {
1876
- background-color: ${({theme:t})=>t.colors.buttonHoverBg};
1877
- }
1878
-
1879
- &:disabled {
1880
- background-color: ${({theme:t})=>t.colors.disabled};
1881
- cursor: not-allowed;
1882
- }
1883
- `,Nj=k(Bg)`
1884
- background-color: ${({theme:t})=>t.colors.primary};
1885
- color: #ffffff;
1886
-
1887
- &:hover {
1888
- background-color: ${({theme:t})=>t.colors.primaryHover};
1889
- }
1890
-
1891
- &:disabled {
1892
- background-color: ${({theme:t})=>t.colors.disabled};
1893
- }
1894
- `,Rj=k.div`
1895
- display: flex;
1896
- justify-content: flex-start;
1897
- margin-top: 10px;
1898
- `,$j=t=>{const{onSubmit:o,isExecuting:i,codegenOptions:l,onOptionsChange:u}=t,[f,p]=j.useState(""),[h,g]=j.useState([]),[v,y]=j.useState(null),x=j.useRef(null);if(i)return null;const S=()=>{(f.trim()||h.length>0)&&(o(f.trim(),h),p(""),g([]))},$=I=>{g(I)},E=()=>{var I;(I=x.current)==null||I.click()},N=I=>{const M=[...h,I];$(M)},T=I=>{u({...l,aiService:I})};return d.jsxs(Tj,{children:[d.jsx(Pj,{children:d.jsx(Dg,{value:f,onChange:p,placeholder:"Enter your input here",onImagePaste:N})}),d.jsx(zg,{images:h,onImagesChange:$,error:v,setError:y,fileInputRef:x}),d.jsx(bj,{onSubmit:S,onUploadClick:E,onAiServiceChange:T,options:l,disabled:!f.trim()&&h.length===0})]})},Tj=k.div`
1899
- display: flex;
1900
- flex-direction: column;
1901
- background-color: ${t=>t.theme.colors.background};
1902
- border-top: 1px solid ${t=>t.theme.colors.border};
1903
- padding: 16px;
1904
- width: 100%;
1905
- box-sizing: border-box;
1906
- `,Pj=k.div`
1907
- margin-bottom: 16px;
1908
- width: 100%;
1909
- `,_j=({theme:t,toggleTheme:o})=>d.jsx(Ir,{onClick:o,"aria-label":`Switch to ${t==="light"?"dark":"light"} mode`,children:t==="light"?"🌙":"☀️"}),eh=q0`
1910
- body {
1911
- color: ${({theme:t})=>t.colors.text};
1912
- font-family: Arial, sans-serif;
1913
- margin: 0;
1914
- padding: 0;
1915
- background-color: ${({theme:t})=>t.colors.pageBackground};
1916
- }
1917
-
1918
- body::before {
1919
- content: '';
1920
- position: fixed;
1921
- top: 0;
1922
- left: 0;
1923
- right: 0;
1924
- bottom: 0;
1925
- transition: all 0.3s ease;
1926
- opacity: 0.1;
1927
- background-image: url(${t=>t.theme.backgroundImage});
1928
- background-size: cover;
1929
- background-position: center;
1930
- background-repeat: no-repeat;
1931
- background-attachment: fixed;
1932
- z-index: -1;
1933
- }
1934
- `;var Jo=(t=>(t.FOCUS="GENAICODE_FOCUS",t.BLUR="GENAICODE_BLUR",t.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",t.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",t))(Jo||{});const Lj=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class Ij{constructor(){Mo(this,"context");Mo(this,"bufferCache",new Map);Mo(this,"initialized",!1);Mo(this,"currentSources",[]);const o=window.AudioContext||window.webkitAudioContext;this.context=new o,this.initSounds()}async initSounds(){if(!this.initialized)try{const o=await this.loadAudioBuffer(Lj.href);this.bufferCache.set("bark",o),this.initialized=!0}catch(o){console.error("Failed to initialize sounds:",o)}}async loadAudioBuffer(o){const l=await(await fetch(o)).arrayBuffer();return await this.context.decodeAudioData(l)}async play(o,i=.5){this.initialized||await this.initSounds();const l=this.bufferCache.get(o);if(!l){console.warn(`Sound "${o}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const u=this.context.createBufferSource();u.buffer=l;const f=this.context.createGain();f.gain.value=Math.max(0,Math.min(1,i)),u.connect(f),f.connect(this.context.destination),u.start(0),this.currentSources.push(u)}catch(u){console.error(`Failed to play sound "${o}":`,u)}}async playBark(o=.5){return this.play("bark",o)}stop(){this.currentSources.forEach(o=>o.stop())}dispose(){this.context.close(),this.bufferCache.clear(),this.initialized=!1}}const lu=new Ij,Oj=({messages:t,muteNotifications:o=!1})=>{const i=j.useRef(t.length),l=j.useRef(document.hasFocus()),u=j.useRef(document.title),[f,p]=j.useState(0),h=window!==window.parent;j.useEffect(()=>(u.current=document.title,()=>{document.title=u.current}),[]);const g=v=>{if(h&&window.parent){const y={...v,source:"genaicode",origin:window.location.origin};window.parent.postMessage(y,"*")}};return j.useEffect(()=>{const v=()=>{const y=document.hasFocus()&&document.visibilityState==="visible";l.current=y,h?g({type:y?Jo.FOCUS:Jo.BLUR,payload:{isFocused:y,timestamp:Date.now()}}):y&&(document.title=u.current),y&&(p(0),document.title=u.current,lu.stop())};return window.addEventListener("focus",v),window.addEventListener("blur",v),document.addEventListener("visibilitychange",v,!1),h&&v(),()=>{window.removeEventListener("focus",v),window.removeEventListener("blur",v),document.removeEventListener("visibilitychange",v,!1)}},[]),j.useEffect(()=>{if(!h)return;const v=y=>{if(y.source===window.parent)try{const{type:x,source:S}=y.data;if(S!=="genaicode")return;switch(x){case Jo.RESET_NOTIFICATIONS:p(0),lu.stop();break}}catch(x){console.warn("Error handling notification message:",x)}};return window.addEventListener("message",v),()=>window.removeEventListener("message",v)},[]),j.useEffect(()=>{if(t.length>i.current){const v=t.length-i.current;if(h)g({type:Jo.NEW_MESSAGES,payload:{count:v,timestamp:Date.now()}});else if(!l.current){const y=f+v;p(y),document.title=`(${y}) ${u.current}`}!l.current&&!o&&lu.playBark(.5)}i.current=t.length},[t,f,o]),null};async function Aj(t){return[]}const Mj=()=>{const t=Vu();if(!t)return console.warn("SuggestionGenerator used outside of ChatStateProvider"),null;const{messages:o,executionStatus:i,currentQuestion:l,setSuggestions:u}=t;return j.useEffect(()=>{var g;if(!u)return;if(i!=="executing"||!l||l.confirmation){u([]);return}const f=o.length>0?(g=o[o.length-1])==null?void 0:g.iterationId:null;if(!f){u([]);return}o.filter(v=>v.iterationId===f).flatMap(v=>v.type===_r.SYSTEM&&"parts"in v&&Array.isArray(v.parts)?v.parts:[v]).length>0?(console.log("Attempting to generate suggestions using conversation context in SuggestionGenerator..."),Aj().then(v=>{v.length>0?(console.log("Suggestions generated by SuggestionGenerator:",v),u(v)):(console.log("No suggestions generated or generation failed in SuggestionGenerator."),u([]))}).catch(v=>{console.error("Error generating suggestions in SuggestionGenerator:",v),u([])})):u([])},[i,l,o,u]),null},Dj=k.div`
1935
- position: fixed;
1936
- bottom: 70px; /* Adjust as needed to not overlap input area */
1937
- right: 20px;
1938
- width: 400px;
1939
- max-height: 50vh;
1940
- background-color: ${({theme:t})=>t.colors.backgroundAlt};
1941
- border: 1px solid ${({theme:t})=>t.colors.border};
1942
- border-radius: 8px;
1943
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
1944
- z-index: 1000;
1945
- overflow: auto;
1946
- padding: 15px;
1947
- display: flex;
1948
- flex-direction: column;
1949
- `,zj=k.div`
1950
- display: flex;
1951
- justify-content: space-between;
1952
- align-items: center;
1953
- margin-bottom: 10px;
1954
- padding-bottom: 10px;
1955
- border-bottom: 1px solid ${({theme:t})=>t.colors.border};
1956
-
1957
- h3 {
1958
- margin: 0;
1959
- font-size: 1rem;
1960
- color: ${({theme:t})=>t.colors.text};
1961
- }
1962
- `,Fj=k.button`
1963
- background: none;
1964
- border: none;
1965
- color: ${({theme:t})=>t.colors.text};
1966
- font-size: 1.2rem;
1967
- cursor: pointer;
1968
- padding: 0;
1969
- line-height: 1;
1970
-
1971
- &:hover {
1972
- color: ${({theme:t})=>t.colors.primary};
1973
- }
1974
- `,Bj=k.div`
1975
- flex-grow: 1;
1976
- /* Basic layout for nodes and edges - consider using a graph library for actual rendering */
1977
- display: flex;
1978
- flex-direction: column;
1979
- gap: 10px;
1980
- `,Uj=k.div`
1981
- background-color: ${({theme:t})=>t.colors.inputBg};
1982
- border: 1px solid ${({theme:t})=>t.colors.border};
1983
- border-radius: 4px;
1984
- padding: 8px 12px;
1985
- font-size: 0.9rem;
1986
- color: ${({theme:t})=>t.colors.inputText};
1987
-
1988
- ${({isActive:t,theme:o})=>t&&st`
1989
- border-color: ${o.colors.primary};
1990
- box-shadow: 0 0 0 2px ${o.colors.primary}40;
1991
- font-weight: bold;
1992
- `}
1993
-
1994
- strong {
1995
- color: ${({theme:t})=>t.colors.primary};
1996
- }
1997
-
1998
- p {
1999
- margin: 5px 0 0 0;
2000
- font-size: 0.8rem;
2001
- color: ${({theme:t})=>t.colors.textSecondary};
2002
- }
2003
- `,Vj=k.div`
2004
- font-size: 0.8rem;
2005
- color: ${({theme:t})=>t.colors.textSecondary};
2006
- padding-left: 15px;
2007
- position: relative;
2008
-
2009
- &::before {
2010
- content: '->';
2011
- position: absolute;
2012
- left: 0;
2013
- color: ${({theme:t})=>t.colors.primary};
2014
- }
2015
- `,Hj=()=>{const{conversationGraphState:t,isGraphVisualiserOpen:o,toggleGraphVisualiser:i}=Vu();if(!o||!(t!=null&&t.isActive))return null;const{nodes:l=[],edges:u=[],currentNodeId:f}=t;return d.jsxs(Dj,{children:[d.jsxs(zj,{children:[d.jsx("h3",{children:"Conversation Flow"}),d.jsx(Fj,{onClick:i,"aria-label":"Close visualiser",children:"×"})]}),d.jsxs(Bj,{children:[d.jsx("h4",{children:"Nodes:"}),l.map(p=>d.jsxs(Uj,{isActive:p.id===f,children:[d.jsxs("strong",{children:["ID: ",p.id]})," (",p.actionType,")",d.jsx("p",{children:p.instruction})]},p.id)),d.jsx("h4",{children:"Edges:"}),u.map((p,h)=>d.jsxs(Vj,{children:[p.sourceNode," to ",p.targetNode,": ",p.instruction]},`${p.sourceNode}-${p.targetNode}-${h}`)),f&&d.jsxs("p",{children:[d.jsx("strong",{children:"Current Node:"})," ",f]})]})]})},Wj=t=>{var o;for(let i=t.length-1;i>=0;i--){const l=t[i];if(l.type===_r.SYSTEM&&((o=l.data)!=null&&o.conversationGraphState))return l.data.conversationGraphState}return null},Gj=()=>{const{messages:t,setConversationGraphState:o}=j.useContext(Qn);return j.useEffect(()=>{const i=Wj(t);o(l=>JSON.stringify(l)!==JSON.stringify(i)?i:l)},[t,o]),null},Jj=()=>{const{messages:t,executionStatus:o,currentQuestion:i,theme:l,usage:u,codegenOptions:f,rcConfig:p,toggleTheme:h,setCodegenOptions:g,handlePauseExecution:v,handleResumeExecution:y}=j.useContext(Qn),{handleExecute:x,handleQuestionSubmit:S,handleInterrupt:$}=MS({codegenOptions:f}),E=()=>{o==="paused"?y():v()};if(!u||!f)return d.jsxs(vp,{theme:l==="light"?wp:Sp,children:[d.jsx(eh,{}),d.jsx("div",{children:"Loading..."})," "]});const N=o!=="idle";return d.jsxs(vp,{theme:l==="light"?wp:Sp,children:[d.jsx(eh,{}),d.jsx(jS,{themeToggle:d.jsx(_j,{theme:l,toggleTheme:h}),toggleTheme:h,chatInterface:d.jsx(Ej,{messages:t,currentQuestion:i,codegenOptions:f,onQuestionSubmit:S,onInterrupt:$,onPauseResume:E,executionStatus:o}),inputArea:!N&&d.jsx($j,{onSubmit:x,isExecuting:N,onInterrupt:$,codegenOptions:f,onOptionsChange:g}),usage:u}),d.jsx(J1,{currentService:f.aiService}),d.jsx(aw,{}),d.jsx(Hw,{}),d.jsx(Xw,{rcConfig:p}),d.jsx(hS,{options:f,onOptionsChange:g}),d.jsx(Oj,{messages:t,muteNotifications:f.muteNotifications}),d.jsx(Hj,{}),d.jsx(Gj,{})]})};function Kj(){return d.jsxs(yS,{children:[d.jsx(Mj,{})," ",d.jsx(Jj,{})," "]})}const Qj=document.getElementById("root"),qj=Jy.createRoot(Qj);qj.render(ct.createElement(Kj,null));