genaicode 0.13.2 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/ai-service/ai-studio.js +2 -0
  2. package/dist/ai-service/ai-studio.js.map +1 -1
  3. package/dist/main/common/console-types.d.ts +23 -0
  4. package/dist/main/common/console-types.js +8 -0
  5. package/dist/main/common/console-types.js.map +1 -0
  6. package/dist/main/common/user-actions.d.ts +4 -1
  7. package/dist/main/common/user-actions.js +10 -0
  8. package/dist/main/common/user-actions.js.map +1 -1
  9. package/dist/main/ui/backend/endpoints/console-logs-endpoint.d.ts +1 -0
  10. package/dist/main/ui/backend/endpoints/console-logs-endpoint.js +19 -0
  11. package/dist/main/ui/backend/endpoints/console-logs-endpoint.js.map +1 -0
  12. package/dist/main/ui/backend/endpoints/question-endpoint.js +4 -1
  13. package/dist/main/ui/backend/endpoints/question-endpoint.js.map +1 -1
  14. package/dist/main/ui/backend/service.d.ts +3 -2
  15. package/dist/main/ui/backend/service.js +19 -1
  16. package/dist/main/ui/backend/service.js.map +1 -1
  17. package/dist/main/ui/common/api-types.d.ts +2 -0
  18. package/dist/main/ui/common/api-types.js.map +1 -1
  19. package/dist/main/ui/frontend/assets/index-5-emJmrg.js +2881 -0
  20. package/dist/main/ui/frontend/index.html +1 -1
  21. package/dist/main/ui/user-action-handlers.js +13 -1
  22. package/dist/main/ui/user-action-handlers.js.map +1 -1
  23. package/dist/prompt/function-calling.js +4 -0
  24. package/dist/prompt/function-calling.js.map +1 -1
  25. package/dist/prompt/function-defs/ask-question.js +4 -38
  26. package/dist/prompt/function-defs/ask-question.js.map +1 -1
  27. package/dist/prompt/function-defs/pull-console-logs.d.ts +2 -0
  28. package/dist/prompt/function-defs/pull-console-logs.js +29 -0
  29. package/dist/prompt/function-defs/pull-console-logs.js.map +1 -0
  30. package/dist/prompt/function-defs/structured-question.d.ts +2 -0
  31. package/dist/prompt/function-defs/structured-question.js +64 -0
  32. package/dist/prompt/function-defs/structured-question.js.map +1 -0
  33. package/dist/prompt/steps/step-ask-question/ask-question-handler.d.ts +2 -1
  34. package/dist/prompt/steps/step-ask-question/ask-question-handler.js +1 -0
  35. package/dist/prompt/steps/step-ask-question/ask-question-handler.js.map +1 -1
  36. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.d.ts +2 -0
  37. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js +174 -0
  38. package/dist/prompt/steps/step-ask-question/handlers/handle-pull-console-logs.js.map +1 -0
  39. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.d.ts +1 -0
  40. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js +72 -0
  41. package/dist/prompt/steps/step-ask-question/handlers/handle-structured-question.js.map +1 -0
  42. package/dist/prompt/steps/step-ask-question/step-ask-question-types.d.ts +44 -3
  43. package/dist/prompt/steps/step-ask-question/step-ask-question.d.ts +7 -5
  44. package/dist/prompt/steps/step-ask-question/step-ask-question.js +7 -5
  45. package/dist/prompt/steps/step-ask-question/step-ask-question.js.map +1 -1
  46. package/dist/prompt/systemprompt.js +29 -1
  47. package/dist/prompt/systemprompt.js.map +1 -1
  48. package/dist/vite-genaicode/console-interceptor.d.ts +40 -0
  49. package/dist/vite-genaicode/console-interceptor.js +85 -0
  50. package/dist/vite-genaicode/console-interceptor.js.map +1 -0
  51. package/dist/vite-genaicode/vite-genaicode-frontend.js +11 -0
  52. package/dist/vite-genaicode/vite-genaicode-frontend.js.map +1 -1
  53. package/dist/vite-genaicode/vite-genaicode-plugin.d.ts +1 -0
  54. package/dist/vite-genaicode/vite-genaicode-plugin.js +3 -1
  55. package/dist/vite-genaicode/vite-genaicode-plugin.js.map +1 -1
  56. package/dist/vite-genaicode/vite-genaicode-types.d.ts +2 -0
  57. package/dist/vite-genaicode/vite-genaicode-types.js.map +1 -1
  58. package/package.json +3 -5
  59. package/dist/main/ui/frontend/assets/index-D7POc8gK.js +0 -2694
@@ -0,0 +1,2881 @@
1
+ var nk=Object.defineProperty;var rk=(e,t,r)=>t in e?nk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var wr=(e,t,r)=>rk(e,typeof t!="symbol"?t+"":t,r);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const a of l)if(a.type==="childList")for(const u of a.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function r(l){const a={};return l.integrity&&(a.integrity=l.integrity),l.referrerPolicy&&(a.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?a.credentials="include":l.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(l){if(l.ep)return;l.ep=!0;const a=r(l);fetch(l.href,a)}})();function Ad(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var xc={exports:{}},$e={};/**
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 am;function ok(){if(am)return $e;am=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.iterator;function v(_){return _===null||typeof _!="object"?null:(_=m&&_[m]||_["@@iterator"],typeof _=="function"?_:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,S={};function j(_,q,R){this.props=_,this.context=q,this.refs=S,this.updater=R||w}j.prototype.isReactComponent={},j.prototype.setState=function(_,q){if(typeof _!="object"&&typeof _!="function"&&_!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,_,q,"setState")},j.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function E(){}E.prototype=j.prototype;function P(_,q,R){this.props=_,this.context=q,this.refs=S,this.updater=R||w}var $=P.prototype=new E;$.constructor=P,k($,j.prototype),$.isPureReactComponent=!0;var D=Array.isArray,W=Object.prototype.hasOwnProperty,A={current:null},H={key:!0,ref:!0,__self:!0,__source:!0};function K(_,q,R){var ae,ge={},ye=null,Ee=null;if(q!=null)for(ae in q.ref!==void 0&&(Ee=q.ref),q.key!==void 0&&(ye=""+q.key),q)W.call(q,ae)&&!H.hasOwnProperty(ae)&&(ge[ae]=q[ae]);var be=arguments.length-2;if(be===1)ge.children=R;else if(1<be){for(var je=Array(be),Ve=0;Ve<be;Ve++)je[Ve]=arguments[Ve+2];ge.children=je}if(_&&_.defaultProps)for(ae in be=_.defaultProps,be)ge[ae]===void 0&&(ge[ae]=be[ae]);return{$$typeof:e,type:_,key:ye,ref:Ee,props:ge,_owner:A.current}}function le(_,q){return{$$typeof:e,type:_.type,key:q,ref:_.ref,props:_.props,_owner:_._owner}}function O(_){return typeof _=="object"&&_!==null&&_.$$typeof===e}function ee(_){var q={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(R){return q[R]})}var se=/\/+/g;function ne(_,q){return typeof _=="object"&&_!==null&&_.key!=null?ee(""+_.key):q.toString(36)}function re(_,q,R,ae,ge){var ye=typeof _;(ye==="undefined"||ye==="boolean")&&(_=null);var Ee=!1;if(_===null)Ee=!0;else switch(ye){case"string":case"number":Ee=!0;break;case"object":switch(_.$$typeof){case e:case t:Ee=!0}}if(Ee)return Ee=_,ge=ge(Ee),_=ae===""?"."+ne(Ee,0):ae,D(ge)?(R="",_!=null&&(R=_.replace(se,"$&/")+"/"),re(ge,q,R,"",function(Ve){return Ve})):ge!=null&&(O(ge)&&(ge=le(ge,R+(!ge.key||Ee&&Ee.key===ge.key?"":(""+ge.key).replace(se,"$&/")+"/")+_)),q.push(ge)),1;if(Ee=0,ae=ae===""?".":ae+":",D(_))for(var be=0;be<_.length;be++){ye=_[be];var je=ae+ne(ye,be);Ee+=re(ye,q,R,je,ge)}else if(je=v(_),typeof je=="function")for(_=je.call(_),be=0;!(ye=_.next()).done;)ye=ye.value,je=ae+ne(ye,be++),Ee+=re(ye,q,R,je,ge);else if(ye==="object")throw q=String(_),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.");return Ee}function U(_,q,R){if(_==null)return _;var ae=[],ge=0;return re(_,ae,"","",function(ye){return q.call(R,ye,ge++)}),ae}function de(_){if(_._status===-1){var q=_._result;q=q(),q.then(function(R){(_._status===0||_._status===-1)&&(_._status=1,_._result=R)},function(R){(_._status===0||_._status===-1)&&(_._status=2,_._result=R)}),_._status===-1&&(_._status=0,_._result=q)}if(_._status===1)return _._result.default;throw _._result}var ie={current:null},Q={transition:null},ce={ReactCurrentDispatcher:ie,ReactCurrentBatchConfig:Q,ReactCurrentOwner:A};function C(){throw Error("act(...) is not supported in production builds of React.")}return $e.Children={map:U,forEach:function(_,q,R){U(_,function(){q.apply(this,arguments)},R)},count:function(_){var q=0;return U(_,function(){q++}),q},toArray:function(_){return U(_,function(q){return q})||[]},only:function(_){if(!O(_))throw Error("React.Children.only expected to receive a single React element child.");return _}},$e.Component=j,$e.Fragment=r,$e.Profiler=l,$e.PureComponent=P,$e.StrictMode=i,$e.Suspense=f,$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ce,$e.act=C,$e.cloneElement=function(_,q,R){if(_==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+_+".");var ae=k({},_.props),ge=_.key,ye=_.ref,Ee=_._owner;if(q!=null){if(q.ref!==void 0&&(ye=q.ref,Ee=A.current),q.key!==void 0&&(ge=""+q.key),_.type&&_.type.defaultProps)var be=_.type.defaultProps;for(je in q)W.call(q,je)&&!H.hasOwnProperty(je)&&(ae[je]=q[je]===void 0&&be!==void 0?be[je]:q[je])}var je=arguments.length-2;if(je===1)ae.children=R;else if(1<je){be=Array(je);for(var Ve=0;Ve<je;Ve++)be[Ve]=arguments[Ve+2];ae.children=be}return{$$typeof:e,type:_.type,key:ge,ref:ye,props:ae,_owner:Ee}},$e.createContext=function(_){return _={$$typeof:u,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},_.Provider={$$typeof:a,_context:_},_.Consumer=_},$e.createElement=K,$e.createFactory=function(_){var q=K.bind(null,_);return q.type=_,q},$e.createRef=function(){return{current:null}},$e.forwardRef=function(_){return{$$typeof:d,render:_}},$e.isValidElement=O,$e.lazy=function(_){return{$$typeof:g,_payload:{_status:-1,_result:_},_init:de}},$e.memo=function(_,q){return{$$typeof:p,type:_,compare:q===void 0?null:q}},$e.startTransition=function(_){var q=Q.transition;Q.transition={};try{_()}finally{Q.transition=q}},$e.unstable_act=C,$e.useCallback=function(_,q){return ie.current.useCallback(_,q)},$e.useContext=function(_){return ie.current.useContext(_)},$e.useDebugValue=function(){},$e.useDeferredValue=function(_){return ie.current.useDeferredValue(_)},$e.useEffect=function(_,q){return ie.current.useEffect(_,q)},$e.useId=function(){return ie.current.useId()},$e.useImperativeHandle=function(_,q,R){return ie.current.useImperativeHandle(_,q,R)},$e.useInsertionEffect=function(_,q){return ie.current.useInsertionEffect(_,q)},$e.useLayoutEffect=function(_,q){return ie.current.useLayoutEffect(_,q)},$e.useMemo=function(_,q){return ie.current.useMemo(_,q)},$e.useReducer=function(_,q,R){return ie.current.useReducer(_,q,R)},$e.useRef=function(_){return ie.current.useRef(_)},$e.useState=function(_){return ie.current.useState(_)},$e.useSyncExternalStore=function(_,q,R){return ie.current.useSyncExternalStore(_,q,R)},$e.useTransition=function(){return ie.current.useTransition()},$e.version="18.3.1",$e}var um;function Ld(){return um||(um=1,xc.exports=ok()),xc.exports}var N=Ld();const Pt=Ad(N);var Is={},vc={exports:{}},Wt={},wc={exports:{}},kc={};/**
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 cm;function ik(){return cm||(cm=1,function(e){function t(Q,ce){var C=Q.length;Q.push(ce);e:for(;0<C;){var _=C-1>>>1,q=Q[_];if(0<l(q,ce))Q[_]=ce,Q[C]=q,C=_;else break e}}function r(Q){return Q.length===0?null:Q[0]}function i(Q){if(Q.length===0)return null;var ce=Q[0],C=Q.pop();if(C!==ce){Q[0]=C;e:for(var _=0,q=Q.length,R=q>>>1;_<R;){var ae=2*(_+1)-1,ge=Q[ae],ye=ae+1,Ee=Q[ye];if(0>l(ge,C))ye<q&&0>l(Ee,ge)?(Q[_]=Ee,Q[ye]=C,_=ye):(Q[_]=ge,Q[ae]=C,_=ae);else if(ye<q&&0>l(Ee,C))Q[_]=Ee,Q[ye]=C,_=ye;else break e}}return ce}function l(Q,ce){var C=Q.sortIndex-ce.sortIndex;return C!==0?C:Q.id-ce.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var u=Date,d=u.now();e.unstable_now=function(){return u.now()-d}}var f=[],p=[],g=1,m=null,v=3,w=!1,k=!1,S=!1,j=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function $(Q){for(var ce=r(p);ce!==null;){if(ce.callback===null)i(p);else if(ce.startTime<=Q)i(p),ce.sortIndex=ce.expirationTime,t(f,ce);else break;ce=r(p)}}function D(Q){if(S=!1,$(Q),!k)if(r(f)!==null)k=!0,de(W);else{var ce=r(p);ce!==null&&ie(D,ce.startTime-Q)}}function W(Q,ce){k=!1,S&&(S=!1,E(K),K=-1),w=!0;var C=v;try{for($(ce),m=r(f);m!==null&&(!(m.expirationTime>ce)||Q&&!ee());){var _=m.callback;if(typeof _=="function"){m.callback=null,v=m.priorityLevel;var q=_(m.expirationTime<=ce);ce=e.unstable_now(),typeof q=="function"?m.callback=q:m===r(f)&&i(f),$(ce)}else i(f);m=r(f)}if(m!==null)var R=!0;else{var ae=r(p);ae!==null&&ie(D,ae.startTime-ce),R=!1}return R}finally{m=null,v=C,w=!1}}var A=!1,H=null,K=-1,le=5,O=-1;function ee(){return!(e.unstable_now()-O<le)}function se(){if(H!==null){var Q=e.unstable_now();O=Q;var ce=!0;try{ce=H(!0,Q)}finally{ce?ne():(A=!1,H=null)}}else A=!1}var ne;if(typeof P=="function")ne=function(){P(se)};else if(typeof MessageChannel<"u"){var re=new MessageChannel,U=re.port2;re.port1.onmessage=se,ne=function(){U.postMessage(null)}}else ne=function(){j(se,0)};function de(Q){H=Q,A||(A=!0,ne())}function ie(Q,ce){K=j(function(){Q(e.unstable_now())},ce)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(Q){Q.callback=null},e.unstable_continueExecution=function(){k||w||(k=!0,de(W))},e.unstable_forceFrameRate=function(Q){0>Q||125<Q?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):le=0<Q?Math.floor(1e3/Q):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(f)},e.unstable_next=function(Q){switch(v){case 1:case 2:case 3:var ce=3;break;default:ce=v}var C=v;v=ce;try{return Q()}finally{v=C}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(Q,ce){switch(Q){case 1:case 2:case 3:case 4:case 5:break;default:Q=3}var C=v;v=Q;try{return ce()}finally{v=C}},e.unstable_scheduleCallback=function(Q,ce,C){var _=e.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?_+C:_):C=_,Q){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=C+q,Q={id:g++,callback:ce,priorityLevel:Q,startTime:C,expirationTime:q,sortIndex:-1},C>_?(Q.sortIndex=C,t(p,Q),r(f)===null&&Q===r(p)&&(S?(E(K),K=-1):S=!0,ie(D,C-_))):(Q.sortIndex=q,t(f,Q),k||w||(k=!0,de(W))),Q},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(Q){var ce=v;return function(){var C=v;v=ce;try{return Q.apply(this,arguments)}finally{v=C}}}}(kc)),kc}var dm;function lk(){return dm||(dm=1,wc.exports=ik()),wc.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 fm;function sk(){if(fm)return Wt;fm=1;var e=Ld(),t=lk();function r(n){for(var o="https://reactjs.org/docs/error-decoder.html?invariant="+n,s=1;s<arguments.length;s++)o+="&args[]="+encodeURIComponent(arguments[s]);return"Minified React error #"+n+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,l={};function a(n,o){u(n,o),u(n+"Capture",o)}function u(n,o){for(l[n]=o,n=0;n<o.length;n++)i.add(o[n])}var d=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f=Object.prototype.hasOwnProperty,p=/^[: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]*$/,g={},m={};function v(n){return f.call(m,n)?!0:f.call(g,n)?!1:p.test(n)?m[n]=!0:(g[n]=!0,!1)}function w(n,o,s,c){if(s!==null&&s.type===0)return!1;switch(typeof o){case"function":case"symbol":return!0;case"boolean":return c?!1:s!==null?!s.acceptsBooleans:(n=n.toLowerCase().slice(0,5),n!=="data-"&&n!=="aria-");default:return!1}}function k(n,o,s,c){if(o===null||typeof o>"u"||w(n,o,s,c))return!0;if(c)return!1;if(s!==null)switch(s.type){case 3:return!o;case 4:return o===!1;case 5:return isNaN(o);case 6:return isNaN(o)||1>o}return!1}function S(n,o,s,c,h,x,b){this.acceptsBooleans=o===2||o===3||o===4,this.attributeName=c,this.attributeNamespace=h,this.mustUseProperty=s,this.propertyName=n,this.type=o,this.sanitizeURL=x,this.removeEmptyString=b}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(n){j[n]=new S(n,0,!1,n,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(n){var o=n[0];j[o]=new S(o,1,!1,n[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(n){j[n]=new S(n,2,!1,n.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(n){j[n]=new S(n,2,!1,n,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(n){j[n]=new S(n,3,!1,n.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(n){j[n]=new S(n,3,!0,n,null,!1,!1)}),["capture","download"].forEach(function(n){j[n]=new S(n,4,!1,n,null,!1,!1)}),["cols","rows","size","span"].forEach(function(n){j[n]=new S(n,6,!1,n,null,!1,!1)}),["rowSpan","start"].forEach(function(n){j[n]=new S(n,5,!1,n.toLowerCase(),null,!1,!1)});var E=/[\-:]([a-z])/g;function P(n){return n[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(n){var o=n.replace(E,P);j[o]=new S(o,1,!1,n,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(n){var o=n.replace(E,P);j[o]=new S(o,1,!1,n,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(n){var o=n.replace(E,P);j[o]=new S(o,1,!1,n,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(n){j[n]=new S(n,1,!1,n.toLowerCase(),null,!1,!1)}),j.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(n){j[n]=new S(n,1,!1,n.toLowerCase(),null,!0,!0)});function $(n,o,s,c){var h=j.hasOwnProperty(o)?j[o]:null;(h!==null?h.type!==0:c||!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(k(o,s,h,c)&&(s=null),c||h===null?v(o)&&(s===null?n.removeAttribute(o):n.setAttribute(o,""+s)):h.mustUseProperty?n[h.propertyName]=s===null?h.type===3?!1:"":s:(o=h.attributeName,c=h.attributeNamespace,s===null?n.removeAttribute(o):(h=h.type,s=h===3||h===4&&s===!0?"":""+s,c?n.setAttributeNS(c,o,s):n.setAttribute(o,s))))}var D=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,W=Symbol.for("react.element"),A=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),le=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),ee=Symbol.for("react.context"),se=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),re=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),de=Symbol.for("react.lazy"),ie=Symbol.for("react.offscreen"),Q=Symbol.iterator;function ce(n){return n===null||typeof n!="object"?null:(n=Q&&n[Q]||n["@@iterator"],typeof n=="function"?n:null)}var C=Object.assign,_;function q(n){if(_===void 0)try{throw Error()}catch(s){var o=s.stack.trim().match(/\n( *(at )?)/);_=o&&o[1]||""}return`
26
+ `+_+n}var R=!1;function ae(n,o){if(!n||R)return"";R=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(o)if(o=function(){throw Error()},Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(B){var c=B}Reflect.construct(n,[],o)}else{try{o.call()}catch(B){c=B}n.call(o.prototype)}else{try{throw Error()}catch(B){c=B}n()}}catch(B){if(B&&c&&typeof B.stack=="string"){for(var h=B.stack.split(`
27
+ `),x=c.stack.split(`
28
+ `),b=h.length-1,I=x.length-1;1<=b&&0<=I&&h[b]!==x[I];)I--;for(;1<=b&&0<=I;b--,I--)if(h[b]!==x[I]){if(b!==1||I!==1)do if(b--,I--,0>I||h[b]!==x[I]){var L=`
29
+ `+h[b].replace(" at new "," at ");return n.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",n.displayName)),L}while(1<=b&&0<=I);break}}}finally{R=!1,Error.prepareStackTrace=s}return(n=n?n.displayName||n.name:"")?q(n):""}function ge(n){switch(n.tag){case 5:return q(n.type);case 16:return q("Lazy");case 13:return q("Suspense");case 19:return q("SuspenseList");case 0:case 2:case 15:return n=ae(n.type,!1),n;case 11:return n=ae(n.type.render,!1),n;case 1:return n=ae(n.type,!0),n;default:return""}}function ye(n){if(n==null)return null;if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case H:return"Fragment";case A:return"Portal";case le:return"Profiler";case K:return"StrictMode";case ne:return"Suspense";case re:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case ee:return(n.displayName||"Context")+".Consumer";case O:return(n._context.displayName||"Context")+".Provider";case se:var o=n.render;return n=n.displayName,n||(n=o.displayName||o.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case U:return o=n.displayName||null,o!==null?o:ye(n.type)||"Memo";case de:o=n._payload,n=n._init;try{return ye(n(o))}catch{}}return null}function Ee(n){var o=n.type;switch(n.tag){case 24:return"Cache";case 9:return(o.displayName||"Context")+".Consumer";case 10:return(o._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return n=o.render,n=n.displayName||n.name||"",o.displayName||(n!==""?"ForwardRef("+n+")":"ForwardRef");case 7:return"Fragment";case 5:return o;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ye(o);case 8:return o===K?"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 o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o}return null}function be(n){switch(typeof n){case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function je(n){var o=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Ve(n){var o=je(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,o),c=""+n[o];if(!n.hasOwnProperty(o)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var h=s.get,x=s.set;return Object.defineProperty(n,o,{configurable:!0,get:function(){return h.call(this)},set:function(b){c=""+b,x.call(this,b)}}),Object.defineProperty(n,o,{enumerable:s.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){n._valueTracker=null,delete n[o]}}}}function Ct(n){n._valueTracker||(n._valueTracker=Ve(n))}function Ne(n){if(!n)return!1;var o=n._valueTracker;if(!o)return!0;var s=o.getValue(),c="";return n&&(c=je(n)?n.checked?"true":"false":n.value),n=c,n!==s?(o.setValue(n),!0):!1}function Lt(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}function Pn(n,o){var s=o.checked;return C({},o,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:s??n._wrapperState.initialChecked})}function _t(n,o){var s=o.defaultValue==null?"":o.defaultValue,c=o.checked!=null?o.checked:o.defaultChecked;s=be(o.value!=null?o.value:s),n._wrapperState={initialChecked:c,initialValue:s,controlled:o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null}}function _e(n,o){o=o.checked,o!=null&&$(n,"checked",o,!1)}function st(n,o){_e(n,o);var s=be(o.value),c=o.type;if(s!=null)c==="number"?(s===0&&n.value===""||n.value!=s)&&(n.value=""+s):n.value!==""+s&&(n.value=""+s);else if(c==="submit"||c==="reset"){n.removeAttribute("value");return}o.hasOwnProperty("value")?xt(n,o.type,s):o.hasOwnProperty("defaultValue")&&xt(n,o.type,be(o.defaultValue)),o.checked==null&&o.defaultChecked!=null&&(n.defaultChecked=!!o.defaultChecked)}function Et(n,o,s){if(o.hasOwnProperty("value")||o.hasOwnProperty("defaultValue")){var c=o.type;if(!(c!=="submit"&&c!=="reset"||o.value!==void 0&&o.value!==null))return;o=""+n._wrapperState.initialValue,s||o===n.value||(n.value=o),n.defaultValue=o}s=n.name,s!==""&&(n.name=""),n.defaultChecked=!!n._wrapperState.initialChecked,s!==""&&(n.name=s)}function xt(n,o,s){(o!=="number"||Lt(n.ownerDocument)!==n)&&(s==null?n.defaultValue=""+n._wrapperState.initialValue:n.defaultValue!==""+s&&(n.defaultValue=""+s))}var Ye=Array.isArray;function ot(n,o,s,c){if(n=n.options,o){o={};for(var h=0;h<s.length;h++)o["$"+s[h]]=!0;for(s=0;s<n.length;s++)h=o.hasOwnProperty("$"+n[s].value),n[s].selected!==h&&(n[s].selected=h),h&&c&&(n[s].defaultSelected=!0)}else{for(s=""+be(s),o=null,h=0;h<n.length;h++){if(n[h].value===s){n[h].selected=!0,c&&(n[h].defaultSelected=!0);return}o!==null||n[h].disabled||(o=n[h])}o!==null&&(o.selected=!0)}}function Ft(n,o){if(o.dangerouslySetInnerHTML!=null)throw Error(r(91));return C({},o,{value:void 0,defaultValue:void 0,children:""+n._wrapperState.initialValue})}function un(n,o){var s=o.value;if(s==null){if(s=o.children,o=o.defaultValue,s!=null){if(o!=null)throw Error(r(92));if(Ye(s)){if(1<s.length)throw Error(r(93));s=s[0]}o=s}o==null&&(o=""),s=o}n._wrapperState={initialValue:be(s)}}function wl(n,o){var s=be(o.value),c=be(o.defaultValue);s!=null&&(s=""+s,s!==n.value&&(n.value=s),o.defaultValue==null&&n.defaultValue!==s&&(n.defaultValue=s)),c!=null&&(n.defaultValue=""+c)}function kl(n){var o=n.textContent;o===n._wrapperState.initialValue&&o!==""&&o!==null&&(n.value=o)}function J(n){switch(n){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 ue(n,o){return n==null||n==="http://www.w3.org/1999/xhtml"?J(o):n==="http://www.w3.org/2000/svg"&&o==="foreignObject"?"http://www.w3.org/1999/xhtml":n}var Se,Pe=function(n){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(o,s,c,h){MSApp.execUnsafeLocalFunction(function(){return n(o,s,c,h)})}:n}(function(n,o){if(n.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in n)n.innerHTML=o;else{for(Se=Se||document.createElement("div"),Se.innerHTML="<svg>"+o.valueOf().toString()+"</svg>",o=Se.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;o.firstChild;)n.appendChild(o.firstChild)}});function De(n,o){if(o){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=o;return}}n.textContent=o}var vt={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},Vn=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(n){Vn.forEach(function(o){o=o+n.charAt(0).toUpperCase()+n.substring(1),vt[o]=vt[n]})});function cn(n,o,s){return o==null||typeof o=="boolean"||o===""?"":s||typeof o!="number"||o===0||vt.hasOwnProperty(n)&&vt[n]?(""+o).trim():o+"px"}function er(n,o){n=n.style;for(var s in o)if(o.hasOwnProperty(s)){var c=s.indexOf("--")===0,h=cn(s,o[s],c);s==="float"&&(s="cssFloat"),c?n.setProperty(s,h):n[s]=h}}var Pr=C({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 wt(n,o){if(o){if(Pr[n]&&(o.children!=null||o.dangerouslySetInnerHTML!=null))throw Error(r(137,n));if(o.dangerouslySetInnerHTML!=null){if(o.children!=null)throw Error(r(60));if(typeof o.dangerouslySetInnerHTML!="object"||!("__html"in o.dangerouslySetInnerHTML))throw Error(r(61))}if(o.style!=null&&typeof o.style!="object")throw Error(r(62))}}function $n(n,o){if(n.indexOf("-")===-1)return typeof o.is=="string";switch(n){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 Yt=null;function Aa(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var La=null,so=null,ao=null;function Ef(n){if(n=Ei(n)){if(typeof La!="function")throw Error(r(280));var o=n.stateNode;o&&(o=Hl(o),La(n.stateNode,n.type,o))}}function jf(n){so?ao?ao.push(n):ao=[n]:so=n}function Tf(){if(so){var n=so,o=ao;if(ao=so=null,Ef(n),o)for(n=0;n<o.length;n++)Ef(o[n])}}function Rf(n,o){return n(o)}function If(){}var _a=!1;function Nf(n,o,s){if(_a)return n(o,s);_a=!0;try{return Rf(n,o,s)}finally{_a=!1,(so!==null||ao!==null)&&(If(),Tf())}}function oi(n,o){var s=n.stateNode;if(s===null)return null;var c=Hl(s);if(c===null)return null;s=c[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(n=n.type,c=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!c;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,o,typeof s));return s}var za=!1;if(d)try{var ii={};Object.defineProperty(ii,"passive",{get:function(){za=!0}}),window.addEventListener("test",ii,ii),window.removeEventListener("test",ii,ii)}catch{za=!1}function a1(n,o,s,c,h,x,b,I,L){var B=Array.prototype.slice.call(arguments,3);try{o.apply(s,B)}catch(X){this.onError(X)}}var li=!1,bl=null,Sl=!1,Da=null,u1={onError:function(n){li=!0,bl=n}};function c1(n,o,s,c,h,x,b,I,L){li=!1,bl=null,a1.apply(u1,arguments)}function d1(n,o,s,c,h,x,b,I,L){if(c1.apply(this,arguments),li){if(li){var B=bl;li=!1,bl=null}else throw Error(r(198));Sl||(Sl=!0,Da=B)}}function $r(n){var o=n,s=n;if(n.alternate)for(;o.return;)o=o.return;else{n=o;do o=n,(o.flags&4098)!==0&&(s=o.return),n=o.return;while(n)}return o.tag===3?s:null}function Pf(n){if(n.tag===13){var o=n.memoizedState;if(o===null&&(n=n.alternate,n!==null&&(o=n.memoizedState)),o!==null)return o.dehydrated}return null}function $f(n){if($r(n)!==n)throw Error(r(188))}function f1(n){var o=n.alternate;if(!o){if(o=$r(n),o===null)throw Error(r(188));return o!==n?null:n}for(var s=n,c=o;;){var h=s.return;if(h===null)break;var x=h.alternate;if(x===null){if(c=h.return,c!==null){s=c;continue}break}if(h.child===x.child){for(x=h.child;x;){if(x===s)return $f(h),n;if(x===c)return $f(h),o;x=x.sibling}throw Error(r(188))}if(s.return!==c.return)s=h,c=x;else{for(var b=!1,I=h.child;I;){if(I===s){b=!0,s=h,c=x;break}if(I===c){b=!0,c=h,s=x;break}I=I.sibling}if(!b){for(I=x.child;I;){if(I===s){b=!0,s=x,c=h;break}if(I===c){b=!0,c=x,s=h;break}I=I.sibling}if(!b)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:o}function Af(n){return n=f1(n),n!==null?Lf(n):null}function Lf(n){if(n.tag===5||n.tag===6)return n;for(n=n.child;n!==null;){var o=Lf(n);if(o!==null)return o;n=n.sibling}return null}var _f=t.unstable_scheduleCallback,zf=t.unstable_cancelCallback,p1=t.unstable_shouldYield,h1=t.unstable_requestPaint,it=t.unstable_now,m1=t.unstable_getCurrentPriorityLevel,Oa=t.unstable_ImmediatePriority,Df=t.unstable_UserBlockingPriority,Cl=t.unstable_NormalPriority,g1=t.unstable_LowPriority,Of=t.unstable_IdlePriority,El=null,An=null;function y1(n){if(An&&typeof An.onCommitFiberRoot=="function")try{An.onCommitFiberRoot(El,n,void 0,(n.current.flags&128)===128)}catch{}}var wn=Math.clz32?Math.clz32:w1,x1=Math.log,v1=Math.LN2;function w1(n){return n>>>=0,n===0?32:31-(x1(n)/v1|0)|0}var jl=64,Tl=4194304;function si(n){switch(n&-n){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 n&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return n&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return n}}function Rl(n,o){var s=n.pendingLanes;if(s===0)return 0;var c=0,h=n.suspendedLanes,x=n.pingedLanes,b=s&268435455;if(b!==0){var I=b&~h;I!==0?c=si(I):(x&=b,x!==0&&(c=si(x)))}else b=s&~h,b!==0?c=si(b):x!==0&&(c=si(x));if(c===0)return 0;if(o!==0&&o!==c&&(o&h)===0&&(h=c&-c,x=o&-o,h>=x||h===16&&(x&4194240)!==0))return o;if((c&4)!==0&&(c|=s&16),o=n.entangledLanes,o!==0)for(n=n.entanglements,o&=c;0<o;)s=31-wn(o),h=1<<s,c|=n[s],o&=~h;return c}function k1(n,o){switch(n){case 1:case 2:case 4:return o+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 o+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 b1(n,o){for(var s=n.suspendedLanes,c=n.pingedLanes,h=n.expirationTimes,x=n.pendingLanes;0<x;){var b=31-wn(x),I=1<<b,L=h[b];L===-1?((I&s)===0||(I&c)!==0)&&(h[b]=k1(I,o)):L<=o&&(n.expiredLanes|=I),x&=~I}}function Fa(n){return n=n.pendingLanes&-1073741825,n!==0?n:n&1073741824?1073741824:0}function Ff(){var n=jl;return jl<<=1,(jl&4194240)===0&&(jl=64),n}function Ma(n){for(var o=[],s=0;31>s;s++)o.push(n);return o}function ai(n,o,s){n.pendingLanes|=o,o!==536870912&&(n.suspendedLanes=0,n.pingedLanes=0),n=n.eventTimes,o=31-wn(o),n[o]=s}function S1(n,o){var s=n.pendingLanes&~o;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.expiredLanes&=o,n.mutableReadLanes&=o,n.entangledLanes&=o,o=n.entanglements;var c=n.eventTimes;for(n=n.expirationTimes;0<s;){var h=31-wn(s),x=1<<h;o[h]=0,c[h]=-1,n[h]=-1,s&=~x}}function Ba(n,o){var s=n.entangledLanes|=o;for(n=n.entanglements;s;){var c=31-wn(s),h=1<<c;h&o|n[c]&o&&(n[c]|=o),s&=~h}}var Be=0;function Mf(n){return n&=-n,1<n?4<n?(n&268435455)!==0?16:536870912:4:1}var Bf,Ua,Uf,Vf,Hf,Va=!1,Il=[],tr=null,nr=null,rr=null,ui=new Map,ci=new Map,or=[],C1="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 Wf(n,o){switch(n){case"focusin":case"focusout":tr=null;break;case"dragenter":case"dragleave":nr=null;break;case"mouseover":case"mouseout":rr=null;break;case"pointerover":case"pointerout":ui.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":ci.delete(o.pointerId)}}function di(n,o,s,c,h,x){return n===null||n.nativeEvent!==x?(n={blockedOn:o,domEventName:s,eventSystemFlags:c,nativeEvent:x,targetContainers:[h]},o!==null&&(o=Ei(o),o!==null&&Ua(o)),n):(n.eventSystemFlags|=c,o=n.targetContainers,h!==null&&o.indexOf(h)===-1&&o.push(h),n)}function E1(n,o,s,c,h){switch(o){case"focusin":return tr=di(tr,n,o,s,c,h),!0;case"dragenter":return nr=di(nr,n,o,s,c,h),!0;case"mouseover":return rr=di(rr,n,o,s,c,h),!0;case"pointerover":var x=h.pointerId;return ui.set(x,di(ui.get(x)||null,n,o,s,c,h)),!0;case"gotpointercapture":return x=h.pointerId,ci.set(x,di(ci.get(x)||null,n,o,s,c,h)),!0}return!1}function qf(n){var o=Ar(n.target);if(o!==null){var s=$r(o);if(s!==null){if(o=s.tag,o===13){if(o=Pf(s),o!==null){n.blockedOn=o,Hf(n.priority,function(){Uf(s)});return}}else if(o===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Nl(n){if(n.blockedOn!==null)return!1;for(var o=n.targetContainers;0<o.length;){var s=Wa(n.domEventName,n.eventSystemFlags,o[0],n.nativeEvent);if(s===null){s=n.nativeEvent;var c=new s.constructor(s.type,s);Yt=c,s.target.dispatchEvent(c),Yt=null}else return o=Ei(s),o!==null&&Ua(o),n.blockedOn=s,!1;o.shift()}return!0}function Gf(n,o,s){Nl(n)&&s.delete(o)}function j1(){Va=!1,tr!==null&&Nl(tr)&&(tr=null),nr!==null&&Nl(nr)&&(nr=null),rr!==null&&Nl(rr)&&(rr=null),ui.forEach(Gf),ci.forEach(Gf)}function fi(n,o){n.blockedOn===o&&(n.blockedOn=null,Va||(Va=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,j1)))}function pi(n){function o(h){return fi(h,n)}if(0<Il.length){fi(Il[0],n);for(var s=1;s<Il.length;s++){var c=Il[s];c.blockedOn===n&&(c.blockedOn=null)}}for(tr!==null&&fi(tr,n),nr!==null&&fi(nr,n),rr!==null&&fi(rr,n),ui.forEach(o),ci.forEach(o),s=0;s<or.length;s++)c=or[s],c.blockedOn===n&&(c.blockedOn=null);for(;0<or.length&&(s=or[0],s.blockedOn===null);)qf(s),s.blockedOn===null&&or.shift()}var uo=D.ReactCurrentBatchConfig,Pl=!0;function T1(n,o,s,c){var h=Be,x=uo.transition;uo.transition=null;try{Be=1,Ha(n,o,s,c)}finally{Be=h,uo.transition=x}}function R1(n,o,s,c){var h=Be,x=uo.transition;uo.transition=null;try{Be=4,Ha(n,o,s,c)}finally{Be=h,uo.transition=x}}function Ha(n,o,s,c){if(Pl){var h=Wa(n,o,s,c);if(h===null)au(n,o,c,$l,s),Wf(n,c);else if(E1(h,n,o,s,c))c.stopPropagation();else if(Wf(n,c),o&4&&-1<C1.indexOf(n)){for(;h!==null;){var x=Ei(h);if(x!==null&&Bf(x),x=Wa(n,o,s,c),x===null&&au(n,o,c,$l,s),x===h)break;h=x}h!==null&&c.stopPropagation()}else au(n,o,c,null,s)}}var $l=null;function Wa(n,o,s,c){if($l=null,n=Aa(c),n=Ar(n),n!==null)if(o=$r(n),o===null)n=null;else if(s=o.tag,s===13){if(n=Pf(o),n!==null)return n;n=null}else if(s===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null);return $l=n,null}function Jf(n){switch(n){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(m1()){case Oa:return 1;case Df:return 4;case Cl:case g1:return 16;case Of:return 536870912;default:return 16}default:return 16}}var ir=null,qa=null,Al=null;function Kf(){if(Al)return Al;var n,o=qa,s=o.length,c,h="value"in ir?ir.value:ir.textContent,x=h.length;for(n=0;n<s&&o[n]===h[n];n++);var b=s-n;for(c=1;c<=b&&o[s-c]===h[x-c];c++);return Al=h.slice(n,1<c?1-c:void 0)}function Ll(n){var o=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&o===13&&(n=13)):n=o,n===10&&(n=13),32<=n||n===13?n:0}function _l(){return!0}function Qf(){return!1}function Xt(n){function o(s,c,h,x,b){this._reactName=s,this._targetInst=h,this.type=c,this.nativeEvent=x,this.target=b,this.currentTarget=null;for(var I in n)n.hasOwnProperty(I)&&(s=n[I],this[I]=s?s(x):x[I]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?_l:Qf,this.isPropagationStopped=Qf,this}return C(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=_l)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=_l)},persist:function(){},isPersistent:_l}),o}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ga=Xt(co),hi=C({},co,{view:0,detail:0}),I1=Xt(hi),Ja,Ka,mi,zl=C({},hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ya,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==mi&&(mi&&n.type==="mousemove"?(Ja=n.screenX-mi.screenX,Ka=n.screenY-mi.screenY):Ka=Ja=0,mi=n),Ja)},movementY:function(n){return"movementY"in n?n.movementY:Ka}}),Yf=Xt(zl),N1=C({},zl,{dataTransfer:0}),P1=Xt(N1),$1=C({},hi,{relatedTarget:0}),Qa=Xt($1),A1=C({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),L1=Xt(A1),_1=C({},co,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),z1=Xt(_1),D1=C({},co,{data:0}),Xf=Xt(D1),O1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},F1={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"},M1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function B1(n){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(n):(n=M1[n])?!!o[n]:!1}function Ya(){return B1}var U1=C({},hi,{key:function(n){if(n.key){var o=O1[n.key]||n.key;if(o!=="Unidentified")return o}return n.type==="keypress"?(n=Ll(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?F1[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ya,charCode:function(n){return n.type==="keypress"?Ll(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ll(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),V1=Xt(U1),H1=C({},zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zf=Xt(H1),W1=C({},hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ya}),q1=Xt(W1),G1=C({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),J1=Xt(G1),K1=C({},zl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),Q1=Xt(K1),Y1=[9,13,27,32],Xa=d&&"CompositionEvent"in window,gi=null;d&&"documentMode"in document&&(gi=document.documentMode);var X1=d&&"TextEvent"in window&&!gi,ep=d&&(!Xa||gi&&8<gi&&11>=gi),tp=" ",np=!1;function rp(n,o){switch(n){case"keyup":return Y1.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function op(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var fo=!1;function Z1(n,o){switch(n){case"compositionend":return op(o);case"keypress":return o.which!==32?null:(np=!0,tp);case"textInput":return n=o.data,n===tp&&np?null:n;default:return null}}function ew(n,o){if(fo)return n==="compositionend"||!Xa&&rp(n,o)?(n=Kf(),Al=qa=ir=null,fo=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return ep&&o.locale!=="ko"?null:o.data;default:return null}}var tw={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 ip(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o==="input"?!!tw[n.type]:o==="textarea"}function lp(n,o,s,c){jf(c),o=Bl(o,"onChange"),0<o.length&&(s=new Ga("onChange","change",null,s,c),n.push({event:s,listeners:o}))}var yi=null,xi=null;function nw(n){Cp(n,0)}function Dl(n){var o=yo(n);if(Ne(o))return n}function rw(n,o){if(n==="change")return o}var sp=!1;if(d){var Za;if(d){var eu="oninput"in document;if(!eu){var ap=document.createElement("div");ap.setAttribute("oninput","return;"),eu=typeof ap.oninput=="function"}Za=eu}else Za=!1;sp=Za&&(!document.documentMode||9<document.documentMode)}function up(){yi&&(yi.detachEvent("onpropertychange",cp),xi=yi=null)}function cp(n){if(n.propertyName==="value"&&Dl(xi)){var o=[];lp(o,xi,n,Aa(n)),Nf(nw,o)}}function ow(n,o,s){n==="focusin"?(up(),yi=o,xi=s,yi.attachEvent("onpropertychange",cp)):n==="focusout"&&up()}function iw(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Dl(xi)}function lw(n,o){if(n==="click")return Dl(o)}function sw(n,o){if(n==="input"||n==="change")return Dl(o)}function aw(n,o){return n===o&&(n!==0||1/n===1/o)||n!==n&&o!==o}var kn=typeof Object.is=="function"?Object.is:aw;function vi(n,o){if(kn(n,o))return!0;if(typeof n!="object"||n===null||typeof o!="object"||o===null)return!1;var s=Object.keys(n),c=Object.keys(o);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var h=s[c];if(!f.call(o,h)||!kn(n[h],o[h]))return!1}return!0}function dp(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function fp(n,o){var s=dp(n);n=0;for(var c;s;){if(s.nodeType===3){if(c=n+s.textContent.length,n<=o&&c>=o)return{node:s,offset:o-n};n=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=dp(s)}}function pp(n,o){return n&&o?n===o?!0:n&&n.nodeType===3?!1:o&&o.nodeType===3?pp(n,o.parentNode):"contains"in n?n.contains(o):n.compareDocumentPosition?!!(n.compareDocumentPosition(o)&16):!1:!1}function hp(){for(var n=window,o=Lt();o instanceof n.HTMLIFrameElement;){try{var s=typeof o.contentWindow.location.href=="string"}catch{s=!1}if(s)n=o.contentWindow;else break;o=Lt(n.document)}return o}function tu(n){var o=n&&n.nodeName&&n.nodeName.toLowerCase();return o&&(o==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||o==="textarea"||n.contentEditable==="true")}function uw(n){var o=hp(),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&pp(s.ownerDocument.documentElement,s)){if(c!==null&&tu(s)){if(o=c.start,n=c.end,n===void 0&&(n=o),"selectionStart"in s)s.selectionStart=o,s.selectionEnd=Math.min(n,s.value.length);else if(n=(o=s.ownerDocument||document)&&o.defaultView||window,n.getSelection){n=n.getSelection();var h=s.textContent.length,x=Math.min(c.start,h);c=c.end===void 0?x:Math.min(c.end,h),!n.extend&&x>c&&(h=c,c=x,x=h),h=fp(s,x);var b=fp(s,c);h&&b&&(n.rangeCount!==1||n.anchorNode!==h.node||n.anchorOffset!==h.offset||n.focusNode!==b.node||n.focusOffset!==b.offset)&&(o=o.createRange(),o.setStart(h.node,h.offset),n.removeAllRanges(),x>c?(n.addRange(o),n.extend(b.node,b.offset)):(o.setEnd(b.node,b.offset),n.addRange(o)))}}for(o=[],n=s;n=n.parentNode;)n.nodeType===1&&o.push({element:n,left:n.scrollLeft,top:n.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<o.length;s++)n=o[s],n.element.scrollLeft=n.left,n.element.scrollTop=n.top}}var cw=d&&"documentMode"in document&&11>=document.documentMode,po=null,nu=null,wi=null,ru=!1;function mp(n,o,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ru||po==null||po!==Lt(c)||(c=po,"selectionStart"in c&&tu(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),wi&&vi(wi,c)||(wi=c,c=Bl(nu,"onSelect"),0<c.length&&(o=new Ga("onSelect","select",null,o,s),n.push({event:o,listeners:c}),o.target=po)))}function Ol(n,o){var s={};return s[n.toLowerCase()]=o.toLowerCase(),s["Webkit"+n]="webkit"+o,s["Moz"+n]="moz"+o,s}var ho={animationend:Ol("Animation","AnimationEnd"),animationiteration:Ol("Animation","AnimationIteration"),animationstart:Ol("Animation","AnimationStart"),transitionend:Ol("Transition","TransitionEnd")},ou={},gp={};d&&(gp=document.createElement("div").style,"AnimationEvent"in window||(delete ho.animationend.animation,delete ho.animationiteration.animation,delete ho.animationstart.animation),"TransitionEvent"in window||delete ho.transitionend.transition);function Fl(n){if(ou[n])return ou[n];if(!ho[n])return n;var o=ho[n],s;for(s in o)if(o.hasOwnProperty(s)&&s in gp)return ou[n]=o[s];return n}var yp=Fl("animationend"),xp=Fl("animationiteration"),vp=Fl("animationstart"),wp=Fl("transitionend"),kp=new Map,bp="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 lr(n,o){kp.set(n,o),a(o,[n])}for(var iu=0;iu<bp.length;iu++){var lu=bp[iu],dw=lu.toLowerCase(),fw=lu[0].toUpperCase()+lu.slice(1);lr(dw,"on"+fw)}lr(yp,"onAnimationEnd"),lr(xp,"onAnimationIteration"),lr(vp,"onAnimationStart"),lr("dblclick","onDoubleClick"),lr("focusin","onFocus"),lr("focusout","onBlur"),lr(wp,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ki="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(" "),pw=new Set("cancel close invalid load scroll toggle".split(" ").concat(ki));function Sp(n,o,s){var c=n.type||"unknown-event";n.currentTarget=s,d1(c,o,void 0,n),n.currentTarget=null}function Cp(n,o){o=(o&4)!==0;for(var s=0;s<n.length;s++){var c=n[s],h=c.event;c=c.listeners;e:{var x=void 0;if(o)for(var b=c.length-1;0<=b;b--){var I=c[b],L=I.instance,B=I.currentTarget;if(I=I.listener,L!==x&&h.isPropagationStopped())break e;Sp(h,I,B),x=L}else for(b=0;b<c.length;b++){if(I=c[b],L=I.instance,B=I.currentTarget,I=I.listener,L!==x&&h.isPropagationStopped())break e;Sp(h,I,B),x=L}}}if(Sl)throw n=Da,Sl=!1,Da=null,n}function Je(n,o){var s=o[hu];s===void 0&&(s=o[hu]=new Set);var c=n+"__bubble";s.has(c)||(Ep(o,n,2,!1),s.add(c))}function su(n,o,s){var c=0;o&&(c|=4),Ep(s,n,c,o)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function bi(n){if(!n[Ml]){n[Ml]=!0,i.forEach(function(s){s!=="selectionchange"&&(pw.has(s)||su(s,!1,n),su(s,!0,n))});var o=n.nodeType===9?n:n.ownerDocument;o===null||o[Ml]||(o[Ml]=!0,su("selectionchange",!1,o))}}function Ep(n,o,s,c){switch(Jf(o)){case 1:var h=T1;break;case 4:h=R1;break;default:h=Ha}s=h.bind(null,o,s,n),h=void 0,!za||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(h=!0),c?h!==void 0?n.addEventListener(o,s,{capture:!0,passive:h}):n.addEventListener(o,s,!0):h!==void 0?n.addEventListener(o,s,{passive:h}):n.addEventListener(o,s,!1)}function au(n,o,s,c,h){var x=c;if((o&1)===0&&(o&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var I=c.stateNode.containerInfo;if(I===h||I.nodeType===8&&I.parentNode===h)break;if(b===4)for(b=c.return;b!==null;){var L=b.tag;if((L===3||L===4)&&(L=b.stateNode.containerInfo,L===h||L.nodeType===8&&L.parentNode===h))return;b=b.return}for(;I!==null;){if(b=Ar(I),b===null)return;if(L=b.tag,L===5||L===6){c=x=b;continue e}I=I.parentNode}}c=c.return}Nf(function(){var B=x,X=Aa(s),Z=[];e:{var Y=kp.get(n);if(Y!==void 0){var fe=Ga,he=n;switch(n){case"keypress":if(Ll(s)===0)break e;case"keydown":case"keyup":fe=V1;break;case"focusin":he="focus",fe=Qa;break;case"focusout":he="blur",fe=Qa;break;case"beforeblur":case"afterblur":fe=Qa;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":fe=Yf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":fe=P1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":fe=q1;break;case yp:case xp:case vp:fe=L1;break;case wp:fe=J1;break;case"scroll":fe=I1;break;case"wheel":fe=Q1;break;case"copy":case"cut":case"paste":fe=z1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":fe=Zf}var me=(o&4)!==0,lt=!me&&n==="scroll",F=me?Y!==null?Y+"Capture":null:Y;me=[];for(var z=B,M;z!==null;){M=z;var oe=M.stateNode;if(M.tag===5&&oe!==null&&(M=oe,F!==null&&(oe=oi(z,F),oe!=null&&me.push(Si(z,oe,M)))),lt)break;z=z.return}0<me.length&&(Y=new fe(Y,he,null,s,X),Z.push({event:Y,listeners:me}))}}if((o&7)===0){e:{if(Y=n==="mouseover"||n==="pointerover",fe=n==="mouseout"||n==="pointerout",Y&&s!==Yt&&(he=s.relatedTarget||s.fromElement)&&(Ar(he)||he[Hn]))break e;if((fe||Y)&&(Y=X.window===X?X:(Y=X.ownerDocument)?Y.defaultView||Y.parentWindow:window,fe?(he=s.relatedTarget||s.toElement,fe=B,he=he?Ar(he):null,he!==null&&(lt=$r(he),he!==lt||he.tag!==5&&he.tag!==6)&&(he=null)):(fe=null,he=B),fe!==he)){if(me=Yf,oe="onMouseLeave",F="onMouseEnter",z="mouse",(n==="pointerout"||n==="pointerover")&&(me=Zf,oe="onPointerLeave",F="onPointerEnter",z="pointer"),lt=fe==null?Y:yo(fe),M=he==null?Y:yo(he),Y=new me(oe,z+"leave",fe,s,X),Y.target=lt,Y.relatedTarget=M,oe=null,Ar(X)===B&&(me=new me(F,z+"enter",he,s,X),me.target=M,me.relatedTarget=lt,oe=me),lt=oe,fe&&he)t:{for(me=fe,F=he,z=0,M=me;M;M=mo(M))z++;for(M=0,oe=F;oe;oe=mo(oe))M++;for(;0<z-M;)me=mo(me),z--;for(;0<M-z;)F=mo(F),M--;for(;z--;){if(me===F||F!==null&&me===F.alternate)break t;me=mo(me),F=mo(F)}me=null}else me=null;fe!==null&&jp(Z,Y,fe,me,!1),he!==null&&lt!==null&&jp(Z,lt,he,me,!0)}}e:{if(Y=B?yo(B):window,fe=Y.nodeName&&Y.nodeName.toLowerCase(),fe==="select"||fe==="input"&&Y.type==="file")var xe=rw;else if(ip(Y))if(sp)xe=sw;else{xe=iw;var ve=ow}else(fe=Y.nodeName)&&fe.toLowerCase()==="input"&&(Y.type==="checkbox"||Y.type==="radio")&&(xe=lw);if(xe&&(xe=xe(n,B))){lp(Z,xe,s,X);break e}ve&&ve(n,Y,B),n==="focusout"&&(ve=Y._wrapperState)&&ve.controlled&&Y.type==="number"&&xt(Y,"number",Y.value)}switch(ve=B?yo(B):window,n){case"focusin":(ip(ve)||ve.contentEditable==="true")&&(po=ve,nu=B,wi=null);break;case"focusout":wi=nu=po=null;break;case"mousedown":ru=!0;break;case"contextmenu":case"mouseup":case"dragend":ru=!1,mp(Z,s,X);break;case"selectionchange":if(cw)break;case"keydown":case"keyup":mp(Z,s,X)}var we;if(Xa)e:{switch(n){case"compositionstart":var Ce="onCompositionStart";break e;case"compositionend":Ce="onCompositionEnd";break e;case"compositionupdate":Ce="onCompositionUpdate";break e}Ce=void 0}else fo?rp(n,s)&&(Ce="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(Ce="onCompositionStart");Ce&&(ep&&s.locale!=="ko"&&(fo||Ce!=="onCompositionStart"?Ce==="onCompositionEnd"&&fo&&(we=Kf()):(ir=X,qa="value"in ir?ir.value:ir.textContent,fo=!0)),ve=Bl(B,Ce),0<ve.length&&(Ce=new Xf(Ce,n,null,s,X),Z.push({event:Ce,listeners:ve}),we?Ce.data=we:(we=op(s),we!==null&&(Ce.data=we)))),(we=X1?Z1(n,s):ew(n,s))&&(B=Bl(B,"onBeforeInput"),0<B.length&&(X=new Xf("onBeforeInput","beforeinput",null,s,X),Z.push({event:X,listeners:B}),X.data=we))}Cp(Z,o)})}function Si(n,o,s){return{instance:n,listener:o,currentTarget:s}}function Bl(n,o){for(var s=o+"Capture",c=[];n!==null;){var h=n,x=h.stateNode;h.tag===5&&x!==null&&(h=x,x=oi(n,s),x!=null&&c.unshift(Si(n,x,h)),x=oi(n,o),x!=null&&c.push(Si(n,x,h))),n=n.return}return c}function mo(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5);return n||null}function jp(n,o,s,c,h){for(var x=o._reactName,b=[];s!==null&&s!==c;){var I=s,L=I.alternate,B=I.stateNode;if(L!==null&&L===c)break;I.tag===5&&B!==null&&(I=B,h?(L=oi(s,x),L!=null&&b.unshift(Si(s,L,I))):h||(L=oi(s,x),L!=null&&b.push(Si(s,L,I)))),s=s.return}b.length!==0&&n.push({event:o,listeners:b})}var hw=/\r\n?/g,mw=/\u0000|\uFFFD/g;function Tp(n){return(typeof n=="string"?n:""+n).replace(hw,`
30
+ `).replace(mw,"")}function Ul(n,o,s){if(o=Tp(o),Tp(n)!==o&&s)throw Error(r(425))}function Vl(){}var uu=null,cu=null;function du(n,o){return n==="textarea"||n==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var fu=typeof setTimeout=="function"?setTimeout:void 0,gw=typeof clearTimeout=="function"?clearTimeout:void 0,Rp=typeof Promise=="function"?Promise:void 0,yw=typeof queueMicrotask=="function"?queueMicrotask:typeof Rp<"u"?function(n){return Rp.resolve(null).then(n).catch(xw)}:fu;function xw(n){setTimeout(function(){throw n})}function pu(n,o){var s=o,c=0;do{var h=s.nextSibling;if(n.removeChild(s),h&&h.nodeType===8)if(s=h.data,s==="/$"){if(c===0){n.removeChild(h),pi(o);return}c--}else s!=="$"&&s!=="$?"&&s!=="$!"||c++;s=h}while(s);pi(o)}function sr(n){for(;n!=null;n=n.nextSibling){var o=n.nodeType;if(o===1||o===3)break;if(o===8){if(o=n.data,o==="$"||o==="$!"||o==="$?")break;if(o==="/$")return null}}return n}function Ip(n){n=n.previousSibling;for(var o=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(o===0)return n;o--}else s==="/$"&&o++}n=n.previousSibling}return null}var go=Math.random().toString(36).slice(2),Ln="__reactFiber$"+go,Ci="__reactProps$"+go,Hn="__reactContainer$"+go,hu="__reactEvents$"+go,vw="__reactListeners$"+go,ww="__reactHandles$"+go;function Ar(n){var o=n[Ln];if(o)return o;for(var s=n.parentNode;s;){if(o=s[Hn]||s[Ln]){if(s=o.alternate,o.child!==null||s!==null&&s.child!==null)for(n=Ip(n);n!==null;){if(s=n[Ln])return s;n=Ip(n)}return o}n=s,s=n.parentNode}return null}function Ei(n){return n=n[Ln]||n[Hn],!n||n.tag!==5&&n.tag!==6&&n.tag!==13&&n.tag!==3?null:n}function yo(n){if(n.tag===5||n.tag===6)return n.stateNode;throw Error(r(33))}function Hl(n){return n[Ci]||null}var mu=[],xo=-1;function ar(n){return{current:n}}function Ke(n){0>xo||(n.current=mu[xo],mu[xo]=null,xo--)}function We(n,o){xo++,mu[xo]=n.current,n.current=o}var ur={},jt=ar(ur),Mt=ar(!1),Lr=ur;function vo(n,o){var s=n.type.contextTypes;if(!s)return ur;var c=n.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===o)return c.__reactInternalMemoizedMaskedChildContext;var h={},x;for(x in s)h[x]=o[x];return c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=o,n.__reactInternalMemoizedMaskedChildContext=h),h}function Bt(n){return n=n.childContextTypes,n!=null}function Wl(){Ke(Mt),Ke(jt)}function Np(n,o,s){if(jt.current!==ur)throw Error(r(168));We(jt,o),We(Mt,s)}function Pp(n,o,s){var c=n.stateNode;if(o=o.childContextTypes,typeof c.getChildContext!="function")return s;c=c.getChildContext();for(var h in c)if(!(h in o))throw Error(r(108,Ee(n)||"Unknown",h));return C({},s,c)}function ql(n){return n=(n=n.stateNode)&&n.__reactInternalMemoizedMergedChildContext||ur,Lr=jt.current,We(jt,n),We(Mt,Mt.current),!0}function $p(n,o,s){var c=n.stateNode;if(!c)throw Error(r(169));s?(n=Pp(n,o,Lr),c.__reactInternalMemoizedMergedChildContext=n,Ke(Mt),Ke(jt),We(jt,n)):Ke(Mt),We(Mt,s)}var Wn=null,Gl=!1,gu=!1;function Ap(n){Wn===null?Wn=[n]:Wn.push(n)}function kw(n){Gl=!0,Ap(n)}function cr(){if(!gu&&Wn!==null){gu=!0;var n=0,o=Be;try{var s=Wn;for(Be=1;n<s.length;n++){var c=s[n];do c=c(!0);while(c!==null)}Wn=null,Gl=!1}catch(h){throw Wn!==null&&(Wn=Wn.slice(n+1)),_f(Oa,cr),h}finally{Be=o,gu=!1}}return null}var wo=[],ko=0,Jl=null,Kl=0,dn=[],fn=0,_r=null,qn=1,Gn="";function zr(n,o){wo[ko++]=Kl,wo[ko++]=Jl,Jl=n,Kl=o}function Lp(n,o,s){dn[fn++]=qn,dn[fn++]=Gn,dn[fn++]=_r,_r=n;var c=qn;n=Gn;var h=32-wn(c)-1;c&=~(1<<h),s+=1;var x=32-wn(o)+h;if(30<x){var b=h-h%5;x=(c&(1<<b)-1).toString(32),c>>=b,h-=b,qn=1<<32-wn(o)+h|s<<h|c,Gn=x+n}else qn=1<<x|s<<h|c,Gn=n}function yu(n){n.return!==null&&(zr(n,1),Lp(n,1,0))}function xu(n){for(;n===Jl;)Jl=wo[--ko],wo[ko]=null,Kl=wo[--ko],wo[ko]=null;for(;n===_r;)_r=dn[--fn],dn[fn]=null,Gn=dn[--fn],dn[fn]=null,qn=dn[--fn],dn[fn]=null}var Zt=null,en=null,Xe=!1,bn=null;function _p(n,o){var s=gn(5,null,null,0);s.elementType="DELETED",s.stateNode=o,s.return=n,o=n.deletions,o===null?(n.deletions=[s],n.flags|=16):o.push(s)}function zp(n,o){switch(n.tag){case 5:var s=n.type;return o=o.nodeType!==1||s.toLowerCase()!==o.nodeName.toLowerCase()?null:o,o!==null?(n.stateNode=o,Zt=n,en=sr(o.firstChild),!0):!1;case 6:return o=n.pendingProps===""||o.nodeType!==3?null:o,o!==null?(n.stateNode=o,Zt=n,en=null,!0):!1;case 13:return o=o.nodeType!==8?null:o,o!==null?(s=_r!==null?{id:qn,overflow:Gn}:null,n.memoizedState={dehydrated:o,treeContext:s,retryLane:1073741824},s=gn(18,null,null,0),s.stateNode=o,s.return=n,n.child=s,Zt=n,en=null,!0):!1;default:return!1}}function vu(n){return(n.mode&1)!==0&&(n.flags&128)===0}function wu(n){if(Xe){var o=en;if(o){var s=o;if(!zp(n,o)){if(vu(n))throw Error(r(418));o=sr(s.nextSibling);var c=Zt;o&&zp(n,o)?_p(c,s):(n.flags=n.flags&-4097|2,Xe=!1,Zt=n)}}else{if(vu(n))throw Error(r(418));n.flags=n.flags&-4097|2,Xe=!1,Zt=n}}}function Dp(n){for(n=n.return;n!==null&&n.tag!==5&&n.tag!==3&&n.tag!==13;)n=n.return;Zt=n}function Ql(n){if(n!==Zt)return!1;if(!Xe)return Dp(n),Xe=!0,!1;var o;if((o=n.tag!==3)&&!(o=n.tag!==5)&&(o=n.type,o=o!=="head"&&o!=="body"&&!du(n.type,n.memoizedProps)),o&&(o=en)){if(vu(n))throw Op(),Error(r(418));for(;o;)_p(n,o),o=sr(o.nextSibling)}if(Dp(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,o=0;n;){if(n.nodeType===8){var s=n.data;if(s==="/$"){if(o===0){en=sr(n.nextSibling);break e}o--}else s!=="$"&&s!=="$!"&&s!=="$?"||o++}n=n.nextSibling}en=null}}else en=Zt?sr(n.stateNode.nextSibling):null;return!0}function Op(){for(var n=en;n;)n=sr(n.nextSibling)}function bo(){en=Zt=null,Xe=!1}function ku(n){bn===null?bn=[n]:bn.push(n)}var bw=D.ReactCurrentBatchConfig;function ji(n,o,s){if(n=s.ref,n!==null&&typeof n!="function"&&typeof n!="object"){if(s._owner){if(s=s._owner,s){if(s.tag!==1)throw Error(r(309));var c=s.stateNode}if(!c)throw Error(r(147,n));var h=c,x=""+n;return o!==null&&o.ref!==null&&typeof o.ref=="function"&&o.ref._stringRef===x?o.ref:(o=function(b){var I=h.refs;b===null?delete I[x]:I[x]=b},o._stringRef=x,o)}if(typeof n!="string")throw Error(r(284));if(!s._owner)throw Error(r(290,n))}return n}function Yl(n,o){throw n=Object.prototype.toString.call(o),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":n))}function Fp(n){var o=n._init;return o(n._payload)}function Mp(n){function o(F,z){if(n){var M=F.deletions;M===null?(F.deletions=[z],F.flags|=16):M.push(z)}}function s(F,z){if(!n)return null;for(;z!==null;)o(F,z),z=z.sibling;return null}function c(F,z){for(F=new Map;z!==null;)z.key!==null?F.set(z.key,z):F.set(z.index,z),z=z.sibling;return F}function h(F,z){return F=xr(F,z),F.index=0,F.sibling=null,F}function x(F,z,M){return F.index=M,n?(M=F.alternate,M!==null?(M=M.index,M<z?(F.flags|=2,z):M):(F.flags|=2,z)):(F.flags|=1048576,z)}function b(F){return n&&F.alternate===null&&(F.flags|=2),F}function I(F,z,M,oe){return z===null||z.tag!==6?(z=fc(M,F.mode,oe),z.return=F,z):(z=h(z,M),z.return=F,z)}function L(F,z,M,oe){var xe=M.type;return xe===H?X(F,z,M.props.children,oe,M.key):z!==null&&(z.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===de&&Fp(xe)===z.type)?(oe=h(z,M.props),oe.ref=ji(F,z,M),oe.return=F,oe):(oe=ks(M.type,M.key,M.props,null,F.mode,oe),oe.ref=ji(F,z,M),oe.return=F,oe)}function B(F,z,M,oe){return z===null||z.tag!==4||z.stateNode.containerInfo!==M.containerInfo||z.stateNode.implementation!==M.implementation?(z=pc(M,F.mode,oe),z.return=F,z):(z=h(z,M.children||[]),z.return=F,z)}function X(F,z,M,oe,xe){return z===null||z.tag!==7?(z=Hr(M,F.mode,oe,xe),z.return=F,z):(z=h(z,M),z.return=F,z)}function Z(F,z,M){if(typeof z=="string"&&z!==""||typeof z=="number")return z=fc(""+z,F.mode,M),z.return=F,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case W:return M=ks(z.type,z.key,z.props,null,F.mode,M),M.ref=ji(F,null,z),M.return=F,M;case A:return z=pc(z,F.mode,M),z.return=F,z;case de:var oe=z._init;return Z(F,oe(z._payload),M)}if(Ye(z)||ce(z))return z=Hr(z,F.mode,M,null),z.return=F,z;Yl(F,z)}return null}function Y(F,z,M,oe){var xe=z!==null?z.key:null;if(typeof M=="string"&&M!==""||typeof M=="number")return xe!==null?null:I(F,z,""+M,oe);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case W:return M.key===xe?L(F,z,M,oe):null;case A:return M.key===xe?B(F,z,M,oe):null;case de:return xe=M._init,Y(F,z,xe(M._payload),oe)}if(Ye(M)||ce(M))return xe!==null?null:X(F,z,M,oe,null);Yl(F,M)}return null}function fe(F,z,M,oe,xe){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return F=F.get(M)||null,I(z,F,""+oe,xe);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case W:return F=F.get(oe.key===null?M:oe.key)||null,L(z,F,oe,xe);case A:return F=F.get(oe.key===null?M:oe.key)||null,B(z,F,oe,xe);case de:var ve=oe._init;return fe(F,z,M,ve(oe._payload),xe)}if(Ye(oe)||ce(oe))return F=F.get(M)||null,X(z,F,oe,xe,null);Yl(z,oe)}return null}function he(F,z,M,oe){for(var xe=null,ve=null,we=z,Ce=z=0,mt=null;we!==null&&Ce<M.length;Ce++){we.index>Ce?(mt=we,we=null):mt=we.sibling;var Fe=Y(F,we,M[Ce],oe);if(Fe===null){we===null&&(we=mt);break}n&&we&&Fe.alternate===null&&o(F,we),z=x(Fe,z,Ce),ve===null?xe=Fe:ve.sibling=Fe,ve=Fe,we=mt}if(Ce===M.length)return s(F,we),Xe&&zr(F,Ce),xe;if(we===null){for(;Ce<M.length;Ce++)we=Z(F,M[Ce],oe),we!==null&&(z=x(we,z,Ce),ve===null?xe=we:ve.sibling=we,ve=we);return Xe&&zr(F,Ce),xe}for(we=c(F,we);Ce<M.length;Ce++)mt=fe(we,F,Ce,M[Ce],oe),mt!==null&&(n&&mt.alternate!==null&&we.delete(mt.key===null?Ce:mt.key),z=x(mt,z,Ce),ve===null?xe=mt:ve.sibling=mt,ve=mt);return n&&we.forEach(function(vr){return o(F,vr)}),Xe&&zr(F,Ce),xe}function me(F,z,M,oe){var xe=ce(M);if(typeof xe!="function")throw Error(r(150));if(M=xe.call(M),M==null)throw Error(r(151));for(var ve=xe=null,we=z,Ce=z=0,mt=null,Fe=M.next();we!==null&&!Fe.done;Ce++,Fe=M.next()){we.index>Ce?(mt=we,we=null):mt=we.sibling;var vr=Y(F,we,Fe.value,oe);if(vr===null){we===null&&(we=mt);break}n&&we&&vr.alternate===null&&o(F,we),z=x(vr,z,Ce),ve===null?xe=vr:ve.sibling=vr,ve=vr,we=mt}if(Fe.done)return s(F,we),Xe&&zr(F,Ce),xe;if(we===null){for(;!Fe.done;Ce++,Fe=M.next())Fe=Z(F,Fe.value,oe),Fe!==null&&(z=x(Fe,z,Ce),ve===null?xe=Fe:ve.sibling=Fe,ve=Fe);return Xe&&zr(F,Ce),xe}for(we=c(F,we);!Fe.done;Ce++,Fe=M.next())Fe=fe(we,F,Ce,Fe.value,oe),Fe!==null&&(n&&Fe.alternate!==null&&we.delete(Fe.key===null?Ce:Fe.key),z=x(Fe,z,Ce),ve===null?xe=Fe:ve.sibling=Fe,ve=Fe);return n&&we.forEach(function(tk){return o(F,tk)}),Xe&&zr(F,Ce),xe}function lt(F,z,M,oe){if(typeof M=="object"&&M!==null&&M.type===H&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case W:e:{for(var xe=M.key,ve=z;ve!==null;){if(ve.key===xe){if(xe=M.type,xe===H){if(ve.tag===7){s(F,ve.sibling),z=h(ve,M.props.children),z.return=F,F=z;break e}}else if(ve.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===de&&Fp(xe)===ve.type){s(F,ve.sibling),z=h(ve,M.props),z.ref=ji(F,ve,M),z.return=F,F=z;break e}s(F,ve);break}else o(F,ve);ve=ve.sibling}M.type===H?(z=Hr(M.props.children,F.mode,oe,M.key),z.return=F,F=z):(oe=ks(M.type,M.key,M.props,null,F.mode,oe),oe.ref=ji(F,z,M),oe.return=F,F=oe)}return b(F);case A:e:{for(ve=M.key;z!==null;){if(z.key===ve)if(z.tag===4&&z.stateNode.containerInfo===M.containerInfo&&z.stateNode.implementation===M.implementation){s(F,z.sibling),z=h(z,M.children||[]),z.return=F,F=z;break e}else{s(F,z);break}else o(F,z);z=z.sibling}z=pc(M,F.mode,oe),z.return=F,F=z}return b(F);case de:return ve=M._init,lt(F,z,ve(M._payload),oe)}if(Ye(M))return he(F,z,M,oe);if(ce(M))return me(F,z,M,oe);Yl(F,M)}return typeof M=="string"&&M!==""||typeof M=="number"?(M=""+M,z!==null&&z.tag===6?(s(F,z.sibling),z=h(z,M),z.return=F,F=z):(s(F,z),z=fc(M,F.mode,oe),z.return=F,F=z),b(F)):s(F,z)}return lt}var So=Mp(!0),Bp=Mp(!1),Xl=ar(null),Zl=null,Co=null,bu=null;function Su(){bu=Co=Zl=null}function Cu(n){var o=Xl.current;Ke(Xl),n._currentValue=o}function Eu(n,o,s){for(;n!==null;){var c=n.alternate;if((n.childLanes&o)!==o?(n.childLanes|=o,c!==null&&(c.childLanes|=o)):c!==null&&(c.childLanes&o)!==o&&(c.childLanes|=o),n===s)break;n=n.return}}function Eo(n,o){Zl=n,bu=Co=null,n=n.dependencies,n!==null&&n.firstContext!==null&&((n.lanes&o)!==0&&(Ut=!0),n.firstContext=null)}function pn(n){var o=n._currentValue;if(bu!==n)if(n={context:n,memoizedValue:o,next:null},Co===null){if(Zl===null)throw Error(r(308));Co=n,Zl.dependencies={lanes:0,firstContext:n}}else Co=Co.next=n;return o}var Dr=null;function ju(n){Dr===null?Dr=[n]:Dr.push(n)}function Up(n,o,s,c){var h=o.interleaved;return h===null?(s.next=s,ju(o)):(s.next=h.next,h.next=s),o.interleaved=s,Jn(n,c)}function Jn(n,o){n.lanes|=o;var s=n.alternate;for(s!==null&&(s.lanes|=o),s=n,n=n.return;n!==null;)n.childLanes|=o,s=n.alternate,s!==null&&(s.childLanes|=o),s=n,n=n.return;return s.tag===3?s.stateNode:null}var dr=!1;function Tu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Vp(n,o){n=n.updateQueue,o.updateQueue===n&&(o.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,effects:n.effects})}function Kn(n,o){return{eventTime:n,lane:o,tag:0,payload:null,callback:null,next:null}}function fr(n,o,s){var c=n.updateQueue;if(c===null)return null;if(c=c.shared,(Oe&2)!==0){var h=c.pending;return h===null?o.next=o:(o.next=h.next,h.next=o),c.pending=o,Jn(n,s)}return h=c.interleaved,h===null?(o.next=o,ju(c)):(o.next=h.next,h.next=o),c.interleaved=o,Jn(n,s)}function es(n,o,s){if(o=o.updateQueue,o!==null&&(o=o.shared,(s&4194240)!==0)){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Ba(n,s)}}function Hp(n,o){var s=n.updateQueue,c=n.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var h=null,x=null;if(s=s.firstBaseUpdate,s!==null){do{var b={eventTime:s.eventTime,lane:s.lane,tag:s.tag,payload:s.payload,callback:s.callback,next:null};x===null?h=x=b:x=x.next=b,s=s.next}while(s!==null);x===null?h=x=o:x=x.next=o}else h=x=o;s={baseState:c.baseState,firstBaseUpdate:h,lastBaseUpdate:x,shared:c.shared,effects:c.effects},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=o:n.next=o,s.lastBaseUpdate=o}function ts(n,o,s,c){var h=n.updateQueue;dr=!1;var x=h.firstBaseUpdate,b=h.lastBaseUpdate,I=h.shared.pending;if(I!==null){h.shared.pending=null;var L=I,B=L.next;L.next=null,b===null?x=B:b.next=B,b=L;var X=n.alternate;X!==null&&(X=X.updateQueue,I=X.lastBaseUpdate,I!==b&&(I===null?X.firstBaseUpdate=B:I.next=B,X.lastBaseUpdate=L))}if(x!==null){var Z=h.baseState;b=0,X=B=L=null,I=x;do{var Y=I.lane,fe=I.eventTime;if((c&Y)===Y){X!==null&&(X=X.next={eventTime:fe,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var he=n,me=I;switch(Y=o,fe=s,me.tag){case 1:if(he=me.payload,typeof he=="function"){Z=he.call(fe,Z,Y);break e}Z=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=me.payload,Y=typeof he=="function"?he.call(fe,Z,Y):he,Y==null)break e;Z=C({},Z,Y);break e;case 2:dr=!0}}I.callback!==null&&I.lane!==0&&(n.flags|=64,Y=h.effects,Y===null?h.effects=[I]:Y.push(I))}else fe={eventTime:fe,lane:Y,tag:I.tag,payload:I.payload,callback:I.callback,next:null},X===null?(B=X=fe,L=Z):X=X.next=fe,b|=Y;if(I=I.next,I===null){if(I=h.shared.pending,I===null)break;Y=I,I=Y.next,Y.next=null,h.lastBaseUpdate=Y,h.shared.pending=null}}while(!0);if(X===null&&(L=Z),h.baseState=L,h.firstBaseUpdate=B,h.lastBaseUpdate=X,o=h.shared.interleaved,o!==null){h=o;do b|=h.lane,h=h.next;while(h!==o)}else x===null&&(h.shared.lanes=0);Mr|=b,n.lanes=b,n.memoizedState=Z}}function Wp(n,o,s){if(n=o.effects,o.effects=null,n!==null)for(o=0;o<n.length;o++){var c=n[o],h=c.callback;if(h!==null){if(c.callback=null,c=s,typeof h!="function")throw Error(r(191,h));h.call(c)}}}var Ti={},_n=ar(Ti),Ri=ar(Ti),Ii=ar(Ti);function Or(n){if(n===Ti)throw Error(r(174));return n}function Ru(n,o){switch(We(Ii,o),We(Ri,n),We(_n,Ti),n=o.nodeType,n){case 9:case 11:o=(o=o.documentElement)?o.namespaceURI:ue(null,"");break;default:n=n===8?o.parentNode:o,o=n.namespaceURI||null,n=n.tagName,o=ue(o,n)}Ke(_n),We(_n,o)}function jo(){Ke(_n),Ke(Ri),Ke(Ii)}function qp(n){Or(Ii.current);var o=Or(_n.current),s=ue(o,n.type);o!==s&&(We(Ri,n),We(_n,s))}function Iu(n){Ri.current===n&&(Ke(_n),Ke(Ri))}var tt=ar(0);function ns(n){for(var o=n;o!==null;){if(o.tag===13){var s=o.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var Nu=[];function Pu(){for(var n=0;n<Nu.length;n++)Nu[n]._workInProgressVersionPrimary=null;Nu.length=0}var rs=D.ReactCurrentDispatcher,$u=D.ReactCurrentBatchConfig,Fr=0,nt=null,dt=null,pt=null,os=!1,Ni=!1,Pi=0,Sw=0;function Tt(){throw Error(r(321))}function Au(n,o){if(o===null)return!1;for(var s=0;s<o.length&&s<n.length;s++)if(!kn(n[s],o[s]))return!1;return!0}function Lu(n,o,s,c,h,x){if(Fr=x,nt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,rs.current=n===null||n.memoizedState===null?Tw:Rw,n=s(c,h),Ni){x=0;do{if(Ni=!1,Pi=0,25<=x)throw Error(r(301));x+=1,pt=dt=null,o.updateQueue=null,rs.current=Iw,n=s(c,h)}while(Ni)}if(rs.current=ss,o=dt!==null&&dt.next!==null,Fr=0,pt=dt=nt=null,os=!1,o)throw Error(r(300));return n}function _u(){var n=Pi!==0;return Pi=0,n}function zn(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pt===null?nt.memoizedState=pt=n:pt=pt.next=n,pt}function hn(){if(dt===null){var n=nt.alternate;n=n!==null?n.memoizedState:null}else n=dt.next;var o=pt===null?nt.memoizedState:pt.next;if(o!==null)pt=o,dt=n;else{if(n===null)throw Error(r(310));dt=n,n={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},pt===null?nt.memoizedState=pt=n:pt=pt.next=n}return pt}function $i(n,o){return typeof o=="function"?o(n):o}function zu(n){var o=hn(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=dt,h=c.baseQueue,x=s.pending;if(x!==null){if(h!==null){var b=h.next;h.next=x.next,x.next=b}c.baseQueue=h=x,s.pending=null}if(h!==null){x=h.next,c=c.baseState;var I=b=null,L=null,B=x;do{var X=B.lane;if((Fr&X)===X)L!==null&&(L=L.next={lane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),c=B.hasEagerState?B.eagerState:n(c,B.action);else{var Z={lane:X,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null};L===null?(I=L=Z,b=c):L=L.next=Z,nt.lanes|=X,Mr|=X}B=B.next}while(B!==null&&B!==x);L===null?b=c:L.next=I,kn(c,o.memoizedState)||(Ut=!0),o.memoizedState=c,o.baseState=b,o.baseQueue=L,s.lastRenderedState=c}if(n=s.interleaved,n!==null){h=n;do x=h.lane,nt.lanes|=x,Mr|=x,h=h.next;while(h!==n)}else h===null&&(s.lanes=0);return[o.memoizedState,s.dispatch]}function Du(n){var o=hn(),s=o.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var c=s.dispatch,h=s.pending,x=o.memoizedState;if(h!==null){s.pending=null;var b=h=h.next;do x=n(x,b.action),b=b.next;while(b!==h);kn(x,o.memoizedState)||(Ut=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),s.lastRenderedState=x}return[x,c]}function Gp(){}function Jp(n,o){var s=nt,c=hn(),h=o(),x=!kn(c.memoizedState,h);if(x&&(c.memoizedState=h,Ut=!0),c=c.queue,Ou(Yp.bind(null,s,c,n),[n]),c.getSnapshot!==o||x||pt!==null&&pt.memoizedState.tag&1){if(s.flags|=2048,Ai(9,Qp.bind(null,s,c,h,o),void 0,null),ht===null)throw Error(r(349));(Fr&30)!==0||Kp(s,o,h)}return h}function Kp(n,o,s){n.flags|=16384,n={getSnapshot:o,value:s},o=nt.updateQueue,o===null?(o={lastEffect:null,stores:null},nt.updateQueue=o,o.stores=[n]):(s=o.stores,s===null?o.stores=[n]:s.push(n))}function Qp(n,o,s,c){o.value=s,o.getSnapshot=c,Xp(o)&&Zp(n)}function Yp(n,o,s){return s(function(){Xp(o)&&Zp(n)})}function Xp(n){var o=n.getSnapshot;n=n.value;try{var s=o();return!kn(n,s)}catch{return!0}}function Zp(n){var o=Jn(n,1);o!==null&&jn(o,n,1,-1)}function eh(n){var o=zn();return typeof n=="function"&&(n=n()),o.memoizedState=o.baseState=n,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$i,lastRenderedState:n},o.queue=n,n=n.dispatch=jw.bind(null,nt,n),[o.memoizedState,n]}function Ai(n,o,s,c){return n={tag:n,create:o,destroy:s,deps:c,next:null},o=nt.updateQueue,o===null?(o={lastEffect:null,stores:null},nt.updateQueue=o,o.lastEffect=n.next=n):(s=o.lastEffect,s===null?o.lastEffect=n.next=n:(c=s.next,s.next=n,n.next=c,o.lastEffect=n)),n}function th(){return hn().memoizedState}function is(n,o,s,c){var h=zn();nt.flags|=n,h.memoizedState=Ai(1|o,s,void 0,c===void 0?null:c)}function ls(n,o,s,c){var h=hn();c=c===void 0?null:c;var x=void 0;if(dt!==null){var b=dt.memoizedState;if(x=b.destroy,c!==null&&Au(c,b.deps)){h.memoizedState=Ai(o,s,x,c);return}}nt.flags|=n,h.memoizedState=Ai(1|o,s,x,c)}function nh(n,o){return is(8390656,8,n,o)}function Ou(n,o){return ls(2048,8,n,o)}function rh(n,o){return ls(4,2,n,o)}function oh(n,o){return ls(4,4,n,o)}function ih(n,o){if(typeof o=="function")return n=n(),o(n),function(){o(null)};if(o!=null)return n=n(),o.current=n,function(){o.current=null}}function lh(n,o,s){return s=s!=null?s.concat([n]):null,ls(4,4,ih.bind(null,o,n),s)}function Fu(){}function sh(n,o){var s=hn();o=o===void 0?null:o;var c=s.memoizedState;return c!==null&&o!==null&&Au(o,c[1])?c[0]:(s.memoizedState=[n,o],n)}function ah(n,o){var s=hn();o=o===void 0?null:o;var c=s.memoizedState;return c!==null&&o!==null&&Au(o,c[1])?c[0]:(n=n(),s.memoizedState=[n,o],n)}function uh(n,o,s){return(Fr&21)===0?(n.baseState&&(n.baseState=!1,Ut=!0),n.memoizedState=s):(kn(s,o)||(s=Ff(),nt.lanes|=s,Mr|=s,n.baseState=!0),o)}function Cw(n,o){var s=Be;Be=s!==0&&4>s?s:4,n(!0);var c=$u.transition;$u.transition={};try{n(!1),o()}finally{Be=s,$u.transition=c}}function ch(){return hn().memoizedState}function Ew(n,o,s){var c=gr(n);if(s={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null},dh(n))fh(o,s);else if(s=Up(n,o,s,c),s!==null){var h=Dt();jn(s,n,c,h),ph(s,o,c)}}function jw(n,o,s){var c=gr(n),h={lane:c,action:s,hasEagerState:!1,eagerState:null,next:null};if(dh(n))fh(o,h);else{var x=n.alternate;if(n.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var b=o.lastRenderedState,I=x(b,s);if(h.hasEagerState=!0,h.eagerState=I,kn(I,b)){var L=o.interleaved;L===null?(h.next=h,ju(o)):(h.next=L.next,L.next=h),o.interleaved=h;return}}catch{}finally{}s=Up(n,o,h,c),s!==null&&(h=Dt(),jn(s,n,c,h),ph(s,o,c))}}function dh(n){var o=n.alternate;return n===nt||o!==null&&o===nt}function fh(n,o){Ni=os=!0;var s=n.pending;s===null?o.next=o:(o.next=s.next,s.next=o),n.pending=o}function ph(n,o,s){if((s&4194240)!==0){var c=o.lanes;c&=n.pendingLanes,s|=c,o.lanes=s,Ba(n,s)}}var ss={readContext:pn,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useInsertionEffect:Tt,useLayoutEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useMutableSource:Tt,useSyncExternalStore:Tt,useId:Tt,unstable_isNewReconciler:!1},Tw={readContext:pn,useCallback:function(n,o){return zn().memoizedState=[n,o===void 0?null:o],n},useContext:pn,useEffect:nh,useImperativeHandle:function(n,o,s){return s=s!=null?s.concat([n]):null,is(4194308,4,ih.bind(null,o,n),s)},useLayoutEffect:function(n,o){return is(4194308,4,n,o)},useInsertionEffect:function(n,o){return is(4,2,n,o)},useMemo:function(n,o){var s=zn();return o=o===void 0?null:o,n=n(),s.memoizedState=[n,o],n},useReducer:function(n,o,s){var c=zn();return o=s!==void 0?s(o):o,c.memoizedState=c.baseState=o,n={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:o},c.queue=n,n=n.dispatch=Ew.bind(null,nt,n),[c.memoizedState,n]},useRef:function(n){var o=zn();return n={current:n},o.memoizedState=n},useState:eh,useDebugValue:Fu,useDeferredValue:function(n){return zn().memoizedState=n},useTransition:function(){var n=eh(!1),o=n[0];return n=Cw.bind(null,n[1]),zn().memoizedState=n,[o,n]},useMutableSource:function(){},useSyncExternalStore:function(n,o,s){var c=nt,h=zn();if(Xe){if(s===void 0)throw Error(r(407));s=s()}else{if(s=o(),ht===null)throw Error(r(349));(Fr&30)!==0||Kp(c,o,s)}h.memoizedState=s;var x={value:s,getSnapshot:o};return h.queue=x,nh(Yp.bind(null,c,x,n),[n]),c.flags|=2048,Ai(9,Qp.bind(null,c,x,s,o),void 0,null),s},useId:function(){var n=zn(),o=ht.identifierPrefix;if(Xe){var s=Gn,c=qn;s=(c&~(1<<32-wn(c)-1)).toString(32)+s,o=":"+o+"R"+s,s=Pi++,0<s&&(o+="H"+s.toString(32)),o+=":"}else s=Sw++,o=":"+o+"r"+s.toString(32)+":";return n.memoizedState=o},unstable_isNewReconciler:!1},Rw={readContext:pn,useCallback:sh,useContext:pn,useEffect:Ou,useImperativeHandle:lh,useInsertionEffect:rh,useLayoutEffect:oh,useMemo:ah,useReducer:zu,useRef:th,useState:function(){return zu($i)},useDebugValue:Fu,useDeferredValue:function(n){var o=hn();return uh(o,dt.memoizedState,n)},useTransition:function(){var n=zu($i)[0],o=hn().memoizedState;return[n,o]},useMutableSource:Gp,useSyncExternalStore:Jp,useId:ch,unstable_isNewReconciler:!1},Iw={readContext:pn,useCallback:sh,useContext:pn,useEffect:Ou,useImperativeHandle:lh,useInsertionEffect:rh,useLayoutEffect:oh,useMemo:ah,useReducer:Du,useRef:th,useState:function(){return Du($i)},useDebugValue:Fu,useDeferredValue:function(n){var o=hn();return dt===null?o.memoizedState=n:uh(o,dt.memoizedState,n)},useTransition:function(){var n=Du($i)[0],o=hn().memoizedState;return[n,o]},useMutableSource:Gp,useSyncExternalStore:Jp,useId:ch,unstable_isNewReconciler:!1};function Sn(n,o){if(n&&n.defaultProps){o=C({},o),n=n.defaultProps;for(var s in n)o[s]===void 0&&(o[s]=n[s]);return o}return o}function Mu(n,o,s,c){o=n.memoizedState,s=s(c,o),s=s==null?o:C({},o,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var as={isMounted:function(n){return(n=n._reactInternals)?$r(n)===n:!1},enqueueSetState:function(n,o,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.payload=o,s!=null&&(x.callback=s),o=fr(n,x,h),o!==null&&(jn(o,n,h,c),es(o,n,h))},enqueueReplaceState:function(n,o,s){n=n._reactInternals;var c=Dt(),h=gr(n),x=Kn(c,h);x.tag=1,x.payload=o,s!=null&&(x.callback=s),o=fr(n,x,h),o!==null&&(jn(o,n,h,c),es(o,n,h))},enqueueForceUpdate:function(n,o){n=n._reactInternals;var s=Dt(),c=gr(n),h=Kn(s,c);h.tag=2,o!=null&&(h.callback=o),o=fr(n,h,c),o!==null&&(jn(o,n,c,s),es(o,n,c))}};function hh(n,o,s,c,h,x,b){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(c,x,b):o.prototype&&o.prototype.isPureReactComponent?!vi(s,c)||!vi(h,x):!0}function mh(n,o,s){var c=!1,h=ur,x=o.contextType;return typeof x=="object"&&x!==null?x=pn(x):(h=Bt(o)?Lr:jt.current,c=o.contextTypes,x=(c=c!=null)?vo(n,h):ur),o=new o(s,x),n.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,o.updater=as,n.stateNode=o,o._reactInternals=n,c&&(n=n.stateNode,n.__reactInternalMemoizedUnmaskedChildContext=h,n.__reactInternalMemoizedMaskedChildContext=x),o}function gh(n,o,s,c){n=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(s,c),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(s,c),o.state!==n&&as.enqueueReplaceState(o,o.state,null)}function Bu(n,o,s,c){var h=n.stateNode;h.props=s,h.state=n.memoizedState,h.refs={},Tu(n);var x=o.contextType;typeof x=="object"&&x!==null?h.context=pn(x):(x=Bt(o)?Lr:jt.current,h.context=vo(n,x)),h.state=n.memoizedState,x=o.getDerivedStateFromProps,typeof x=="function"&&(Mu(n,o,x,s),h.state=n.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(o=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),o!==h.state&&as.enqueueReplaceState(h,h.state,null),ts(n,s,h,c),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308)}function To(n,o){try{var s="",c=o;do s+=ge(c),c=c.return;while(c);var h=s}catch(x){h=`
31
+ Error generating stack: `+x.message+`
32
+ `+x.stack}return{value:n,source:o,stack:h,digest:null}}function Uu(n,o,s){return{value:n,source:null,stack:s??null,digest:o??null}}function Vu(n,o){try{console.error(o.value)}catch(s){setTimeout(function(){throw s})}}var Nw=typeof WeakMap=="function"?WeakMap:Map;function yh(n,o,s){s=Kn(-1,s),s.tag=3,s.payload={element:null};var c=o.value;return s.callback=function(){ms||(ms=!0,oc=c),Vu(n,o)},s}function xh(n,o,s){s=Kn(-1,s),s.tag=3;var c=n.type.getDerivedStateFromError;if(typeof c=="function"){var h=o.value;s.payload=function(){return c(h)},s.callback=function(){Vu(n,o)}}var x=n.stateNode;return x!==null&&typeof x.componentDidCatch=="function"&&(s.callback=function(){Vu(n,o),typeof c!="function"&&(hr===null?hr=new Set([this]):hr.add(this));var b=o.stack;this.componentDidCatch(o.value,{componentStack:b!==null?b:""})}),s}function vh(n,o,s){var c=n.pingCache;if(c===null){c=n.pingCache=new Nw;var h=new Set;c.set(o,h)}else h=c.get(o),h===void 0&&(h=new Set,c.set(o,h));h.has(s)||(h.add(s),n=Hw.bind(null,n,o,s),o.then(n,n))}function wh(n){do{var o;if((o=n.tag===13)&&(o=n.memoizedState,o=o!==null?o.dehydrated!==null:!0),o)return n;n=n.return}while(n!==null);return null}function kh(n,o,s,c,h){return(n.mode&1)===0?(n===o?n.flags|=65536:(n.flags|=128,s.flags|=131072,s.flags&=-52805,s.tag===1&&(s.alternate===null?s.tag=17:(o=Kn(-1,1),o.tag=2,fr(s,o,1))),s.lanes|=1),n):(n.flags|=65536,n.lanes=h,n)}var Pw=D.ReactCurrentOwner,Ut=!1;function zt(n,o,s,c){o.child=n===null?Bp(o,null,s,c):So(o,n.child,s,c)}function bh(n,o,s,c,h){s=s.render;var x=o.ref;return Eo(o,h),c=Lu(n,o,s,c,x,h),s=_u(),n!==null&&!Ut?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Qn(n,o,h)):(Xe&&s&&yu(o),o.flags|=1,zt(n,o,c,h),o.child)}function Sh(n,o,s,c,h){if(n===null){var x=s.type;return typeof x=="function"&&!dc(x)&&x.defaultProps===void 0&&s.compare===null&&s.defaultProps===void 0?(o.tag=15,o.type=x,Ch(n,o,x,c,h)):(n=ks(s.type,null,c,o,o.mode,h),n.ref=o.ref,n.return=o,o.child=n)}if(x=n.child,(n.lanes&h)===0){var b=x.memoizedProps;if(s=s.compare,s=s!==null?s:vi,s(b,c)&&n.ref===o.ref)return Qn(n,o,h)}return o.flags|=1,n=xr(x,c),n.ref=o.ref,n.return=o,o.child=n}function Ch(n,o,s,c,h){if(n!==null){var x=n.memoizedProps;if(vi(x,c)&&n.ref===o.ref)if(Ut=!1,o.pendingProps=c=x,(n.lanes&h)!==0)(n.flags&131072)!==0&&(Ut=!0);else return o.lanes=n.lanes,Qn(n,o,h)}return Hu(n,o,s,c,h)}function Eh(n,o,s){var c=o.pendingProps,h=c.children,x=n!==null?n.memoizedState:null;if(c.mode==="hidden")if((o.mode&1)===0)o.memoizedState={baseLanes:0,cachePool:null,transitions:null},We(Io,tn),tn|=s;else{if((s&1073741824)===0)return n=x!==null?x.baseLanes|s:s,o.lanes=o.childLanes=1073741824,o.memoizedState={baseLanes:n,cachePool:null,transitions:null},o.updateQueue=null,We(Io,tn),tn|=n,null;o.memoizedState={baseLanes:0,cachePool:null,transitions:null},c=x!==null?x.baseLanes:s,We(Io,tn),tn|=c}else x!==null?(c=x.baseLanes|s,o.memoizedState=null):c=s,We(Io,tn),tn|=c;return zt(n,o,h,s),o.child}function jh(n,o){var s=o.ref;(n===null&&s!==null||n!==null&&n.ref!==s)&&(o.flags|=512,o.flags|=2097152)}function Hu(n,o,s,c,h){var x=Bt(s)?Lr:jt.current;return x=vo(o,x),Eo(o,h),s=Lu(n,o,s,c,x,h),c=_u(),n!==null&&!Ut?(o.updateQueue=n.updateQueue,o.flags&=-2053,n.lanes&=~h,Qn(n,o,h)):(Xe&&c&&yu(o),o.flags|=1,zt(n,o,s,h),o.child)}function Th(n,o,s,c,h){if(Bt(s)){var x=!0;ql(o)}else x=!1;if(Eo(o,h),o.stateNode===null)cs(n,o),mh(o,s,c),Bu(o,s,c,h),c=!0;else if(n===null){var b=o.stateNode,I=o.memoizedProps;b.props=I;var L=b.context,B=s.contextType;typeof B=="object"&&B!==null?B=pn(B):(B=Bt(s)?Lr:jt.current,B=vo(o,B));var X=s.getDerivedStateFromProps,Z=typeof X=="function"||typeof b.getSnapshotBeforeUpdate=="function";Z||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(I!==c||L!==B)&&gh(o,b,c,B),dr=!1;var Y=o.memoizedState;b.state=Y,ts(o,c,b,h),L=o.memoizedState,I!==c||Y!==L||Mt.current||dr?(typeof X=="function"&&(Mu(o,s,X,c),L=o.memoizedState),(I=dr||hh(o,s,I,c,Y,L,B))?(Z||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=c,o.memoizedState=L),b.props=c,b.state=L,b.context=B,c=I):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),c=!1)}else{b=o.stateNode,Vp(n,o),I=o.memoizedProps,B=o.type===o.elementType?I:Sn(o.type,I),b.props=B,Z=o.pendingProps,Y=b.context,L=s.contextType,typeof L=="object"&&L!==null?L=pn(L):(L=Bt(s)?Lr:jt.current,L=vo(o,L));var fe=s.getDerivedStateFromProps;(X=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(I!==Z||Y!==L)&&gh(o,b,c,L),dr=!1,Y=o.memoizedState,b.state=Y,ts(o,c,b,h);var he=o.memoizedState;I!==Z||Y!==he||Mt.current||dr?(typeof fe=="function"&&(Mu(o,s,fe,c),he=o.memoizedState),(B=dr||hh(o,s,B,c,Y,he,L)||!1)?(X||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(c,he,L),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(c,he,L)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||I===n.memoizedProps&&Y===n.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Y===n.memoizedState||(o.flags|=1024),o.memoizedProps=c,o.memoizedState=he),b.props=c,b.state=he,b.context=L,c=B):(typeof b.componentDidUpdate!="function"||I===n.memoizedProps&&Y===n.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||I===n.memoizedProps&&Y===n.memoizedState||(o.flags|=1024),c=!1)}return Wu(n,o,s,c,x,h)}function Wu(n,o,s,c,h,x){jh(n,o);var b=(o.flags&128)!==0;if(!c&&!b)return h&&$p(o,s,!1),Qn(n,o,x);c=o.stateNode,Pw.current=o;var I=b&&typeof s.getDerivedStateFromError!="function"?null:c.render();return o.flags|=1,n!==null&&b?(o.child=So(o,n.child,null,x),o.child=So(o,null,I,x)):zt(n,o,I,x),o.memoizedState=c.state,h&&$p(o,s,!0),o.child}function Rh(n){var o=n.stateNode;o.pendingContext?Np(n,o.pendingContext,o.pendingContext!==o.context):o.context&&Np(n,o.context,!1),Ru(n,o.containerInfo)}function Ih(n,o,s,c,h){return bo(),ku(h),o.flags|=256,zt(n,o,s,c),o.child}var qu={dehydrated:null,treeContext:null,retryLane:0};function Gu(n){return{baseLanes:n,cachePool:null,transitions:null}}function Nh(n,o,s){var c=o.pendingProps,h=tt.current,x=!1,b=(o.flags&128)!==0,I;if((I=b)||(I=n!==null&&n.memoizedState===null?!1:(h&2)!==0),I?(x=!0,o.flags&=-129):(n===null||n.memoizedState!==null)&&(h|=1),We(tt,h&1),n===null)return wu(o),n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null)?((o.mode&1)===0?o.lanes=1:n.data==="$!"?o.lanes=8:o.lanes=1073741824,null):(b=c.children,n=c.fallback,x?(c=o.mode,x=o.child,b={mode:"hidden",children:b},(c&1)===0&&x!==null?(x.childLanes=0,x.pendingProps=b):x=bs(b,c,0,null),n=Hr(n,c,s,null),x.return=o,n.return=o,x.sibling=n,o.child=x,o.child.memoizedState=Gu(s),o.memoizedState=qu,n):Ju(o,b));if(h=n.memoizedState,h!==null&&(I=h.dehydrated,I!==null))return $w(n,o,b,c,I,h,s);if(x){x=c.fallback,b=o.mode,h=n.child,I=h.sibling;var L={mode:"hidden",children:c.children};return(b&1)===0&&o.child!==h?(c=o.child,c.childLanes=0,c.pendingProps=L,o.deletions=null):(c=xr(h,L),c.subtreeFlags=h.subtreeFlags&14680064),I!==null?x=xr(I,x):(x=Hr(x,b,s,null),x.flags|=2),x.return=o,c.return=o,c.sibling=x,o.child=c,c=x,x=o.child,b=n.child.memoizedState,b=b===null?Gu(s):{baseLanes:b.baseLanes|s,cachePool:null,transitions:b.transitions},x.memoizedState=b,x.childLanes=n.childLanes&~s,o.memoizedState=qu,c}return x=n.child,n=x.sibling,c=xr(x,{mode:"visible",children:c.children}),(o.mode&1)===0&&(c.lanes=s),c.return=o,c.sibling=null,n!==null&&(s=o.deletions,s===null?(o.deletions=[n],o.flags|=16):s.push(n)),o.child=c,o.memoizedState=null,c}function Ju(n,o){return o=bs({mode:"visible",children:o},n.mode,0,null),o.return=n,n.child=o}function us(n,o,s,c){return c!==null&&ku(c),So(o,n.child,null,s),n=Ju(o,o.pendingProps.children),n.flags|=2,o.memoizedState=null,n}function $w(n,o,s,c,h,x,b){if(s)return o.flags&256?(o.flags&=-257,c=Uu(Error(r(422))),us(n,o,b,c)):o.memoizedState!==null?(o.child=n.child,o.flags|=128,null):(x=c.fallback,h=o.mode,c=bs({mode:"visible",children:c.children},h,0,null),x=Hr(x,h,b,null),x.flags|=2,c.return=o,x.return=o,c.sibling=x,o.child=c,(o.mode&1)!==0&&So(o,n.child,null,b),o.child.memoizedState=Gu(b),o.memoizedState=qu,x);if((o.mode&1)===0)return us(n,o,b,null);if(h.data==="$!"){if(c=h.nextSibling&&h.nextSibling.dataset,c)var I=c.dgst;return c=I,x=Error(r(419)),c=Uu(x,c,void 0),us(n,o,b,c)}if(I=(b&n.childLanes)!==0,Ut||I){if(c=ht,c!==null){switch(b&-b){case 4:h=2;break;case 16:h=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:h=32;break;case 536870912:h=268435456;break;default:h=0}h=(h&(c.suspendedLanes|b))!==0?0:h,h!==0&&h!==x.retryLane&&(x.retryLane=h,Jn(n,h),jn(c,n,h,-1))}return cc(),c=Uu(Error(r(421))),us(n,o,b,c)}return h.data==="$?"?(o.flags|=128,o.child=n.child,o=Ww.bind(null,n),h._reactRetry=o,null):(n=x.treeContext,en=sr(h.nextSibling),Zt=o,Xe=!0,bn=null,n!==null&&(dn[fn++]=qn,dn[fn++]=Gn,dn[fn++]=_r,qn=n.id,Gn=n.overflow,_r=o),o=Ju(o,c.children),o.flags|=4096,o)}function Ph(n,o,s){n.lanes|=o;var c=n.alternate;c!==null&&(c.lanes|=o),Eu(n.return,o,s)}function Ku(n,o,s,c,h){var x=n.memoizedState;x===null?n.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:h}:(x.isBackwards=o,x.rendering=null,x.renderingStartTime=0,x.last=c,x.tail=s,x.tailMode=h)}function $h(n,o,s){var c=o.pendingProps,h=c.revealOrder,x=c.tail;if(zt(n,o,c.children,s),c=tt.current,(c&2)!==0)c=c&1|2,o.flags|=128;else{if(n!==null&&(n.flags&128)!==0)e:for(n=o.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&Ph(n,s,o);else if(n.tag===19)Ph(n,s,o);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===o)break e;for(;n.sibling===null;){if(n.return===null||n.return===o)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}c&=1}if(We(tt,c),(o.mode&1)===0)o.memoizedState=null;else switch(h){case"forwards":for(s=o.child,h=null;s!==null;)n=s.alternate,n!==null&&ns(n)===null&&(h=s),s=s.sibling;s=h,s===null?(h=o.child,o.child=null):(h=s.sibling,s.sibling=null),Ku(o,!1,h,s,x);break;case"backwards":for(s=null,h=o.child,o.child=null;h!==null;){if(n=h.alternate,n!==null&&ns(n)===null){o.child=h;break}n=h.sibling,h.sibling=s,s=h,h=n}Ku(o,!0,s,null,x);break;case"together":Ku(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function cs(n,o){(o.mode&1)===0&&n!==null&&(n.alternate=null,o.alternate=null,o.flags|=2)}function Qn(n,o,s){if(n!==null&&(o.dependencies=n.dependencies),Mr|=o.lanes,(s&o.childLanes)===0)return null;if(n!==null&&o.child!==n.child)throw Error(r(153));if(o.child!==null){for(n=o.child,s=xr(n,n.pendingProps),o.child=s,s.return=o;n.sibling!==null;)n=n.sibling,s=s.sibling=xr(n,n.pendingProps),s.return=o;s.sibling=null}return o.child}function Aw(n,o,s){switch(o.tag){case 3:Rh(o),bo();break;case 5:qp(o);break;case 1:Bt(o.type)&&ql(o);break;case 4:Ru(o,o.stateNode.containerInfo);break;case 10:var c=o.type._context,h=o.memoizedProps.value;We(Xl,c._currentValue),c._currentValue=h;break;case 13:if(c=o.memoizedState,c!==null)return c.dehydrated!==null?(We(tt,tt.current&1),o.flags|=128,null):(s&o.child.childLanes)!==0?Nh(n,o,s):(We(tt,tt.current&1),n=Qn(n,o,s),n!==null?n.sibling:null);We(tt,tt.current&1);break;case 19:if(c=(s&o.childLanes)!==0,(n.flags&128)!==0){if(c)return $h(n,o,s);o.flags|=128}if(h=o.memoizedState,h!==null&&(h.rendering=null,h.tail=null,h.lastEffect=null),We(tt,tt.current),c)break;return null;case 22:case 23:return o.lanes=0,Eh(n,o,s)}return Qn(n,o,s)}var Ah,Qu,Lh,_h;Ah=function(n,o){for(var s=o.child;s!==null;){if(s.tag===5||s.tag===6)n.appendChild(s.stateNode);else if(s.tag!==4&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===o)break;for(;s.sibling===null;){if(s.return===null||s.return===o)return;s=s.return}s.sibling.return=s.return,s=s.sibling}},Qu=function(){},Lh=function(n,o,s,c){var h=n.memoizedProps;if(h!==c){n=o.stateNode,Or(_n.current);var x=null;switch(s){case"input":h=Pn(n,h),c=Pn(n,c),x=[];break;case"select":h=C({},h,{value:void 0}),c=C({},c,{value:void 0}),x=[];break;case"textarea":h=Ft(n,h),c=Ft(n,c),x=[];break;default:typeof h.onClick!="function"&&typeof c.onClick=="function"&&(n.onclick=Vl)}wt(s,c);var b;s=null;for(B in h)if(!c.hasOwnProperty(B)&&h.hasOwnProperty(B)&&h[B]!=null)if(B==="style"){var I=h[B];for(b in I)I.hasOwnProperty(b)&&(s||(s={}),s[b]="")}else B!=="dangerouslySetInnerHTML"&&B!=="children"&&B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&B!=="autoFocus"&&(l.hasOwnProperty(B)?x||(x=[]):(x=x||[]).push(B,null));for(B in c){var L=c[B];if(I=h!=null?h[B]:void 0,c.hasOwnProperty(B)&&L!==I&&(L!=null||I!=null))if(B==="style")if(I){for(b in I)!I.hasOwnProperty(b)||L&&L.hasOwnProperty(b)||(s||(s={}),s[b]="");for(b in L)L.hasOwnProperty(b)&&I[b]!==L[b]&&(s||(s={}),s[b]=L[b])}else s||(x||(x=[]),x.push(B,s)),s=L;else B==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,I=I?I.__html:void 0,L!=null&&I!==L&&(x=x||[]).push(B,L)):B==="children"?typeof L!="string"&&typeof L!="number"||(x=x||[]).push(B,""+L):B!=="suppressContentEditableWarning"&&B!=="suppressHydrationWarning"&&(l.hasOwnProperty(B)?(L!=null&&B==="onScroll"&&Je("scroll",n),x||I===L||(x=[])):(x=x||[]).push(B,L))}s&&(x=x||[]).push("style",s);var B=x;(o.updateQueue=B)&&(o.flags|=4)}},_h=function(n,o,s,c){s!==c&&(o.flags|=4)};function Li(n,o){if(!Xe)switch(n.tailMode){case"hidden":o=n.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?o||n.tail===null?n.tail=null:n.tail.sibling=null:c.sibling=null}}function Rt(n){var o=n.alternate!==null&&n.alternate.child===n.child,s=0,c=0;if(o)for(var h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags&14680064,c|=h.flags&14680064,h.return=n,h=h.sibling;else for(h=n.child;h!==null;)s|=h.lanes|h.childLanes,c|=h.subtreeFlags,c|=h.flags,h.return=n,h=h.sibling;return n.subtreeFlags|=c,n.childLanes=s,o}function Lw(n,o,s){var c=o.pendingProps;switch(xu(o),o.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Rt(o),null;case 1:return Bt(o.type)&&Wl(),Rt(o),null;case 3:return c=o.stateNode,jo(),Ke(Mt),Ke(jt),Pu(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(n===null||n.child===null)&&(Ql(o)?o.flags|=4:n===null||n.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,bn!==null&&(sc(bn),bn=null))),Qu(n,o),Rt(o),null;case 5:Iu(o);var h=Or(Ii.current);if(s=o.type,n!==null&&o.stateNode!=null)Lh(n,o,s,c,h),n.ref!==o.ref&&(o.flags|=512,o.flags|=2097152);else{if(!c){if(o.stateNode===null)throw Error(r(166));return Rt(o),null}if(n=Or(_n.current),Ql(o)){c=o.stateNode,s=o.type;var x=o.memoizedProps;switch(c[Ln]=o,c[Ci]=x,n=(o.mode&1)!==0,s){case"dialog":Je("cancel",c),Je("close",c);break;case"iframe":case"object":case"embed":Je("load",c);break;case"video":case"audio":for(h=0;h<ki.length;h++)Je(ki[h],c);break;case"source":Je("error",c);break;case"img":case"image":case"link":Je("error",c),Je("load",c);break;case"details":Je("toggle",c);break;case"input":_t(c,x),Je("invalid",c);break;case"select":c._wrapperState={wasMultiple:!!x.multiple},Je("invalid",c);break;case"textarea":un(c,x),Je("invalid",c)}wt(s,x),h=null;for(var b in x)if(x.hasOwnProperty(b)){var I=x[b];b==="children"?typeof I=="string"?c.textContent!==I&&(x.suppressHydrationWarning!==!0&&Ul(c.textContent,I,n),h=["children",I]):typeof I=="number"&&c.textContent!==""+I&&(x.suppressHydrationWarning!==!0&&Ul(c.textContent,I,n),h=["children",""+I]):l.hasOwnProperty(b)&&I!=null&&b==="onScroll"&&Je("scroll",c)}switch(s){case"input":Ct(c),Et(c,x,!0);break;case"textarea":Ct(c),kl(c);break;case"select":case"option":break;default:typeof x.onClick=="function"&&(c.onclick=Vl)}c=h,o.updateQueue=c,c!==null&&(o.flags|=4)}else{b=h.nodeType===9?h:h.ownerDocument,n==="http://www.w3.org/1999/xhtml"&&(n=J(s)),n==="http://www.w3.org/1999/xhtml"?s==="script"?(n=b.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild)):typeof c.is=="string"?n=b.createElement(s,{is:c.is}):(n=b.createElement(s),s==="select"&&(b=n,c.multiple?b.multiple=!0:c.size&&(b.size=c.size))):n=b.createElementNS(n,s),n[Ln]=o,n[Ci]=c,Ah(n,o,!1,!1),o.stateNode=n;e:{switch(b=$n(s,c),s){case"dialog":Je("cancel",n),Je("close",n),h=c;break;case"iframe":case"object":case"embed":Je("load",n),h=c;break;case"video":case"audio":for(h=0;h<ki.length;h++)Je(ki[h],n);h=c;break;case"source":Je("error",n),h=c;break;case"img":case"image":case"link":Je("error",n),Je("load",n),h=c;break;case"details":Je("toggle",n),h=c;break;case"input":_t(n,c),h=Pn(n,c),Je("invalid",n);break;case"option":h=c;break;case"select":n._wrapperState={wasMultiple:!!c.multiple},h=C({},c,{value:void 0}),Je("invalid",n);break;case"textarea":un(n,c),h=Ft(n,c),Je("invalid",n);break;default:h=c}wt(s,h),I=h;for(x in I)if(I.hasOwnProperty(x)){var L=I[x];x==="style"?er(n,L):x==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,L!=null&&Pe(n,L)):x==="children"?typeof L=="string"?(s!=="textarea"||L!=="")&&De(n,L):typeof L=="number"&&De(n,""+L):x!=="suppressContentEditableWarning"&&x!=="suppressHydrationWarning"&&x!=="autoFocus"&&(l.hasOwnProperty(x)?L!=null&&x==="onScroll"&&Je("scroll",n):L!=null&&$(n,x,L,b))}switch(s){case"input":Ct(n),Et(n,c,!1);break;case"textarea":Ct(n),kl(n);break;case"option":c.value!=null&&n.setAttribute("value",""+be(c.value));break;case"select":n.multiple=!!c.multiple,x=c.value,x!=null?ot(n,!!c.multiple,x,!1):c.defaultValue!=null&&ot(n,!!c.multiple,c.defaultValue,!0);break;default:typeof h.onClick=="function"&&(n.onclick=Vl)}switch(s){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}}c&&(o.flags|=4)}o.ref!==null&&(o.flags|=512,o.flags|=2097152)}return Rt(o),null;case 6:if(n&&o.stateNode!=null)_h(n,o,n.memoizedProps,c);else{if(typeof c!="string"&&o.stateNode===null)throw Error(r(166));if(s=Or(Ii.current),Or(_n.current),Ql(o)){if(c=o.stateNode,s=o.memoizedProps,c[Ln]=o,(x=c.nodeValue!==s)&&(n=Zt,n!==null))switch(n.tag){case 3:Ul(c.nodeValue,s,(n.mode&1)!==0);break;case 5:n.memoizedProps.suppressHydrationWarning!==!0&&Ul(c.nodeValue,s,(n.mode&1)!==0)}x&&(o.flags|=4)}else c=(s.nodeType===9?s:s.ownerDocument).createTextNode(c),c[Ln]=o,o.stateNode=c}return Rt(o),null;case 13:if(Ke(tt),c=o.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(Xe&&en!==null&&(o.mode&1)!==0&&(o.flags&128)===0)Op(),bo(),o.flags|=98560,x=!1;else if(x=Ql(o),c!==null&&c.dehydrated!==null){if(n===null){if(!x)throw Error(r(318));if(x=o.memoizedState,x=x!==null?x.dehydrated:null,!x)throw Error(r(317));x[Ln]=o}else bo(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;Rt(o),x=!1}else bn!==null&&(sc(bn),bn=null),x=!0;if(!x)return o.flags&65536?o:null}return(o.flags&128)!==0?(o.lanes=s,o):(c=c!==null,c!==(n!==null&&n.memoizedState!==null)&&c&&(o.child.flags|=8192,(o.mode&1)!==0&&(n===null||(tt.current&1)!==0?ft===0&&(ft=3):cc())),o.updateQueue!==null&&(o.flags|=4),Rt(o),null);case 4:return jo(),Qu(n,o),n===null&&bi(o.stateNode.containerInfo),Rt(o),null;case 10:return Cu(o.type._context),Rt(o),null;case 17:return Bt(o.type)&&Wl(),Rt(o),null;case 19:if(Ke(tt),x=o.memoizedState,x===null)return Rt(o),null;if(c=(o.flags&128)!==0,b=x.rendering,b===null)if(c)Li(x,!1);else{if(ft!==0||n!==null&&(n.flags&128)!==0)for(n=o.child;n!==null;){if(b=ns(n),b!==null){for(o.flags|=128,Li(x,!1),c=b.updateQueue,c!==null&&(o.updateQueue=c,o.flags|=4),o.subtreeFlags=0,c=s,s=o.child;s!==null;)x=s,n=c,x.flags&=14680066,b=x.alternate,b===null?(x.childLanes=0,x.lanes=n,x.child=null,x.subtreeFlags=0,x.memoizedProps=null,x.memoizedState=null,x.updateQueue=null,x.dependencies=null,x.stateNode=null):(x.childLanes=b.childLanes,x.lanes=b.lanes,x.child=b.child,x.subtreeFlags=0,x.deletions=null,x.memoizedProps=b.memoizedProps,x.memoizedState=b.memoizedState,x.updateQueue=b.updateQueue,x.type=b.type,n=b.dependencies,x.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext}),s=s.sibling;return We(tt,tt.current&1|2),o.child}n=n.sibling}x.tail!==null&&it()>No&&(o.flags|=128,c=!0,Li(x,!1),o.lanes=4194304)}else{if(!c)if(n=ns(b),n!==null){if(o.flags|=128,c=!0,s=n.updateQueue,s!==null&&(o.updateQueue=s,o.flags|=4),Li(x,!0),x.tail===null&&x.tailMode==="hidden"&&!b.alternate&&!Xe)return Rt(o),null}else 2*it()-x.renderingStartTime>No&&s!==1073741824&&(o.flags|=128,c=!0,Li(x,!1),o.lanes=4194304);x.isBackwards?(b.sibling=o.child,o.child=b):(s=x.last,s!==null?s.sibling=b:o.child=b,x.last=b)}return x.tail!==null?(o=x.tail,x.rendering=o,x.tail=o.sibling,x.renderingStartTime=it(),o.sibling=null,s=tt.current,We(tt,c?s&1|2:s&1),o):(Rt(o),null);case 22:case 23:return uc(),c=o.memoizedState!==null,n!==null&&n.memoizedState!==null!==c&&(o.flags|=8192),c&&(o.mode&1)!==0?(tn&1073741824)!==0&&(Rt(o),o.subtreeFlags&6&&(o.flags|=8192)):Rt(o),null;case 24:return null;case 25:return null}throw Error(r(156,o.tag))}function _w(n,o){switch(xu(o),o.tag){case 1:return Bt(o.type)&&Wl(),n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 3:return jo(),Ke(Mt),Ke(jt),Pu(),n=o.flags,(n&65536)!==0&&(n&128)===0?(o.flags=n&-65537|128,o):null;case 5:return Iu(o),null;case 13:if(Ke(tt),n=o.memoizedState,n!==null&&n.dehydrated!==null){if(o.alternate===null)throw Error(r(340));bo()}return n=o.flags,n&65536?(o.flags=n&-65537|128,o):null;case 19:return Ke(tt),null;case 4:return jo(),null;case 10:return Cu(o.type._context),null;case 22:case 23:return uc(),null;case 24:return null;default:return null}}var ds=!1,It=!1,zw=typeof WeakSet=="function"?WeakSet:Set,pe=null;function Ro(n,o){var s=n.ref;if(s!==null)if(typeof s=="function")try{s(null)}catch(c){rt(n,o,c)}else s.current=null}function Yu(n,o,s){try{s()}catch(c){rt(n,o,c)}}var zh=!1;function Dw(n,o){if(uu=Pl,n=hp(),tu(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var h=c.anchorOffset,x=c.focusNode;c=c.focusOffset;try{s.nodeType,x.nodeType}catch{s=null;break e}var b=0,I=-1,L=-1,B=0,X=0,Z=n,Y=null;t:for(;;){for(var fe;Z!==s||h!==0&&Z.nodeType!==3||(I=b+h),Z!==x||c!==0&&Z.nodeType!==3||(L=b+c),Z.nodeType===3&&(b+=Z.nodeValue.length),(fe=Z.firstChild)!==null;)Y=Z,Z=fe;for(;;){if(Z===n)break t;if(Y===s&&++B===h&&(I=b),Y===x&&++X===c&&(L=b),(fe=Z.nextSibling)!==null)break;Z=Y,Y=Z.parentNode}Z=fe}s=I===-1||L===-1?null:{start:I,end:L}}else s=null}s=s||{start:0,end:0}}else s=null;for(cu={focusedElem:n,selectionRange:s},Pl=!1,pe=o;pe!==null;)if(o=pe,n=o.child,(o.subtreeFlags&1028)!==0&&n!==null)n.return=o,pe=n;else for(;pe!==null;){o=pe;try{var he=o.alternate;if((o.flags&1024)!==0)switch(o.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var me=he.memoizedProps,lt=he.memoizedState,F=o.stateNode,z=F.getSnapshotBeforeUpdate(o.elementType===o.type?me:Sn(o.type,me),lt);F.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var M=o.stateNode.containerInfo;M.nodeType===1?M.textContent="":M.nodeType===9&&M.documentElement&&M.removeChild(M.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(oe){rt(o,o.return,oe)}if(n=o.sibling,n!==null){n.return=o.return,pe=n;break}pe=o.return}return he=zh,zh=!1,he}function _i(n,o,s){var c=o.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var h=c=c.next;do{if((h.tag&n)===n){var x=h.destroy;h.destroy=void 0,x!==void 0&&Yu(o,s,x)}h=h.next}while(h!==c)}}function fs(n,o){if(o=o.updateQueue,o=o!==null?o.lastEffect:null,o!==null){var s=o=o.next;do{if((s.tag&n)===n){var c=s.create;s.destroy=c()}s=s.next}while(s!==o)}}function Xu(n){var o=n.ref;if(o!==null){var s=n.stateNode;switch(n.tag){case 5:n=s;break;default:n=s}typeof o=="function"?o(n):o.current=n}}function Dh(n){var o=n.alternate;o!==null&&(n.alternate=null,Dh(o)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(o=n.stateNode,o!==null&&(delete o[Ln],delete o[Ci],delete o[hu],delete o[vw],delete o[ww])),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}function Oh(n){return n.tag===5||n.tag===3||n.tag===4}function Fh(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||Oh(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Zu(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.nodeType===8?s.parentNode.insertBefore(n,o):s.insertBefore(n,o):(s.nodeType===8?(o=s.parentNode,o.insertBefore(n,s)):(o=s,o.appendChild(n)),s=s._reactRootContainer,s!=null||o.onclick!==null||(o.onclick=Vl));else if(c!==4&&(n=n.child,n!==null))for(Zu(n,o,s),n=n.sibling;n!==null;)Zu(n,o,s),n=n.sibling}function ec(n,o,s){var c=n.tag;if(c===5||c===6)n=n.stateNode,o?s.insertBefore(n,o):s.appendChild(n);else if(c!==4&&(n=n.child,n!==null))for(ec(n,o,s),n=n.sibling;n!==null;)ec(n,o,s),n=n.sibling}var kt=null,Cn=!1;function pr(n,o,s){for(s=s.child;s!==null;)Mh(n,o,s),s=s.sibling}function Mh(n,o,s){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount(El,s)}catch{}switch(s.tag){case 5:It||Ro(s,o);case 6:var c=kt,h=Cn;kt=null,pr(n,o,s),kt=c,Cn=h,kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?n.parentNode.removeChild(s):n.removeChild(s)):kt.removeChild(s.stateNode));break;case 18:kt!==null&&(Cn?(n=kt,s=s.stateNode,n.nodeType===8?pu(n.parentNode,s):n.nodeType===1&&pu(n,s),pi(n)):pu(kt,s.stateNode));break;case 4:c=kt,h=Cn,kt=s.stateNode.containerInfo,Cn=!0,pr(n,o,s),kt=c,Cn=h;break;case 0:case 11:case 14:case 15:if(!It&&(c=s.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){h=c=c.next;do{var x=h,b=x.destroy;x=x.tag,b!==void 0&&((x&2)!==0||(x&4)!==0)&&Yu(s,o,b),h=h.next}while(h!==c)}pr(n,o,s);break;case 1:if(!It&&(Ro(s,o),c=s.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=s.memoizedProps,c.state=s.memoizedState,c.componentWillUnmount()}catch(I){rt(s,o,I)}pr(n,o,s);break;case 21:pr(n,o,s);break;case 22:s.mode&1?(It=(c=It)||s.memoizedState!==null,pr(n,o,s),It=c):pr(n,o,s);break;default:pr(n,o,s)}}function Bh(n){var o=n.updateQueue;if(o!==null){n.updateQueue=null;var s=n.stateNode;s===null&&(s=n.stateNode=new zw),o.forEach(function(c){var h=qw.bind(null,n,c);s.has(c)||(s.add(c),c.then(h,h))})}}function En(n,o){var s=o.deletions;if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];try{var x=n,b=o,I=b;e:for(;I!==null;){switch(I.tag){case 5:kt=I.stateNode,Cn=!1;break e;case 3:kt=I.stateNode.containerInfo,Cn=!0;break e;case 4:kt=I.stateNode.containerInfo,Cn=!0;break e}I=I.return}if(kt===null)throw Error(r(160));Mh(x,b,h),kt=null,Cn=!1;var L=h.alternate;L!==null&&(L.return=null),h.return=null}catch(B){rt(h,o,B)}}if(o.subtreeFlags&12854)for(o=o.child;o!==null;)Uh(o,n),o=o.sibling}function Uh(n,o){var s=n.alternate,c=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:if(En(o,n),Dn(n),c&4){try{_i(3,n,n.return),fs(3,n)}catch(me){rt(n,n.return,me)}try{_i(5,n,n.return)}catch(me){rt(n,n.return,me)}}break;case 1:En(o,n),Dn(n),c&512&&s!==null&&Ro(s,s.return);break;case 5:if(En(o,n),Dn(n),c&512&&s!==null&&Ro(s,s.return),n.flags&32){var h=n.stateNode;try{De(h,"")}catch(me){rt(n,n.return,me)}}if(c&4&&(h=n.stateNode,h!=null)){var x=n.memoizedProps,b=s!==null?s.memoizedProps:x,I=n.type,L=n.updateQueue;if(n.updateQueue=null,L!==null)try{I==="input"&&x.type==="radio"&&x.name!=null&&_e(h,x),$n(I,b);var B=$n(I,x);for(b=0;b<L.length;b+=2){var X=L[b],Z=L[b+1];X==="style"?er(h,Z):X==="dangerouslySetInnerHTML"?Pe(h,Z):X==="children"?De(h,Z):$(h,X,Z,B)}switch(I){case"input":st(h,x);break;case"textarea":wl(h,x);break;case"select":var Y=h._wrapperState.wasMultiple;h._wrapperState.wasMultiple=!!x.multiple;var fe=x.value;fe!=null?ot(h,!!x.multiple,fe,!1):Y!==!!x.multiple&&(x.defaultValue!=null?ot(h,!!x.multiple,x.defaultValue,!0):ot(h,!!x.multiple,x.multiple?[]:"",!1))}h[Ci]=x}catch(me){rt(n,n.return,me)}}break;case 6:if(En(o,n),Dn(n),c&4){if(n.stateNode===null)throw Error(r(162));h=n.stateNode,x=n.memoizedProps;try{h.nodeValue=x}catch(me){rt(n,n.return,me)}}break;case 3:if(En(o,n),Dn(n),c&4&&s!==null&&s.memoizedState.isDehydrated)try{pi(o.containerInfo)}catch(me){rt(n,n.return,me)}break;case 4:En(o,n),Dn(n);break;case 13:En(o,n),Dn(n),h=n.child,h.flags&8192&&(x=h.memoizedState!==null,h.stateNode.isHidden=x,!x||h.alternate!==null&&h.alternate.memoizedState!==null||(rc=it())),c&4&&Bh(n);break;case 22:if(X=s!==null&&s.memoizedState!==null,n.mode&1?(It=(B=It)||X,En(o,n),It=B):En(o,n),Dn(n),c&8192){if(B=n.memoizedState!==null,(n.stateNode.isHidden=B)&&!X&&(n.mode&1)!==0)for(pe=n,X=n.child;X!==null;){for(Z=pe=X;pe!==null;){switch(Y=pe,fe=Y.child,Y.tag){case 0:case 11:case 14:case 15:_i(4,Y,Y.return);break;case 1:Ro(Y,Y.return);var he=Y.stateNode;if(typeof he.componentWillUnmount=="function"){c=Y,s=Y.return;try{o=c,he.props=o.memoizedProps,he.state=o.memoizedState,he.componentWillUnmount()}catch(me){rt(c,s,me)}}break;case 5:Ro(Y,Y.return);break;case 22:if(Y.memoizedState!==null){Wh(Z);continue}}fe!==null?(fe.return=Y,pe=fe):Wh(Z)}X=X.sibling}e:for(X=null,Z=n;;){if(Z.tag===5){if(X===null){X=Z;try{h=Z.stateNode,B?(x=h.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none"):(I=Z.stateNode,L=Z.memoizedProps.style,b=L!=null&&L.hasOwnProperty("display")?L.display:null,I.style.display=cn("display",b))}catch(me){rt(n,n.return,me)}}}else if(Z.tag===6){if(X===null)try{Z.stateNode.nodeValue=B?"":Z.memoizedProps}catch(me){rt(n,n.return,me)}}else if((Z.tag!==22&&Z.tag!==23||Z.memoizedState===null||Z===n)&&Z.child!==null){Z.child.return=Z,Z=Z.child;continue}if(Z===n)break e;for(;Z.sibling===null;){if(Z.return===null||Z.return===n)break e;X===Z&&(X=null),Z=Z.return}X===Z&&(X=null),Z.sibling.return=Z.return,Z=Z.sibling}}break;case 19:En(o,n),Dn(n),c&4&&Bh(n);break;case 21:break;default:En(o,n),Dn(n)}}function Dn(n){var o=n.flags;if(o&2){try{e:{for(var s=n.return;s!==null;){if(Oh(s)){var c=s;break e}s=s.return}throw Error(r(160))}switch(c.tag){case 5:var h=c.stateNode;c.flags&32&&(De(h,""),c.flags&=-33);var x=Fh(n);ec(n,x,h);break;case 3:case 4:var b=c.stateNode.containerInfo,I=Fh(n);Zu(n,I,b);break;default:throw Error(r(161))}}catch(L){rt(n,n.return,L)}n.flags&=-3}o&4096&&(n.flags&=-4097)}function Ow(n,o,s){pe=n,Vh(n)}function Vh(n,o,s){for(var c=(n.mode&1)!==0;pe!==null;){var h=pe,x=h.child;if(h.tag===22&&c){var b=h.memoizedState!==null||ds;if(!b){var I=h.alternate,L=I!==null&&I.memoizedState!==null||It;I=ds;var B=It;if(ds=b,(It=L)&&!B)for(pe=h;pe!==null;)b=pe,L=b.child,b.tag===22&&b.memoizedState!==null?qh(h):L!==null?(L.return=b,pe=L):qh(h);for(;x!==null;)pe=x,Vh(x),x=x.sibling;pe=h,ds=I,It=B}Hh(n)}else(h.subtreeFlags&8772)!==0&&x!==null?(x.return=h,pe=x):Hh(n)}}function Hh(n){for(;pe!==null;){var o=pe;if((o.flags&8772)!==0){var s=o.alternate;try{if((o.flags&8772)!==0)switch(o.tag){case 0:case 11:case 15:It||fs(5,o);break;case 1:var c=o.stateNode;if(o.flags&4&&!It)if(s===null)c.componentDidMount();else{var h=o.elementType===o.type?s.memoizedProps:Sn(o.type,s.memoizedProps);c.componentDidUpdate(h,s.memoizedState,c.__reactInternalSnapshotBeforeUpdate)}var x=o.updateQueue;x!==null&&Wp(o,x,c);break;case 3:var b=o.updateQueue;if(b!==null){if(s=null,o.child!==null)switch(o.child.tag){case 5:s=o.child.stateNode;break;case 1:s=o.child.stateNode}Wp(o,b,s)}break;case 5:var I=o.stateNode;if(s===null&&o.flags&4){s=I;var L=o.memoizedProps;switch(o.type){case"button":case"input":case"select":case"textarea":L.autoFocus&&s.focus();break;case"img":L.src&&(s.src=L.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(o.memoizedState===null){var B=o.alternate;if(B!==null){var X=B.memoizedState;if(X!==null){var Z=X.dehydrated;Z!==null&&pi(Z)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}It||o.flags&512&&Xu(o)}catch(Y){rt(o,o.return,Y)}}if(o===n){pe=null;break}if(s=o.sibling,s!==null){s.return=o.return,pe=s;break}pe=o.return}}function Wh(n){for(;pe!==null;){var o=pe;if(o===n){pe=null;break}var s=o.sibling;if(s!==null){s.return=o.return,pe=s;break}pe=o.return}}function qh(n){for(;pe!==null;){var o=pe;try{switch(o.tag){case 0:case 11:case 15:var s=o.return;try{fs(4,o)}catch(L){rt(o,s,L)}break;case 1:var c=o.stateNode;if(typeof c.componentDidMount=="function"){var h=o.return;try{c.componentDidMount()}catch(L){rt(o,h,L)}}var x=o.return;try{Xu(o)}catch(L){rt(o,x,L)}break;case 5:var b=o.return;try{Xu(o)}catch(L){rt(o,b,L)}}}catch(L){rt(o,o.return,L)}if(o===n){pe=null;break}var I=o.sibling;if(I!==null){I.return=o.return,pe=I;break}pe=o.return}}var Fw=Math.ceil,ps=D.ReactCurrentDispatcher,tc=D.ReactCurrentOwner,mn=D.ReactCurrentBatchConfig,Oe=0,ht=null,at=null,bt=0,tn=0,Io=ar(0),ft=0,zi=null,Mr=0,hs=0,nc=0,Di=null,Vt=null,rc=0,No=1/0,Yn=null,ms=!1,oc=null,hr=null,gs=!1,mr=null,ys=0,Oi=0,ic=null,xs=-1,vs=0;function Dt(){return(Oe&6)!==0?it():xs!==-1?xs:xs=it()}function gr(n){return(n.mode&1)===0?1:(Oe&2)!==0&&bt!==0?bt&-bt:bw.transition!==null?(vs===0&&(vs=Ff()),vs):(n=Be,n!==0||(n=window.event,n=n===void 0?16:Jf(n.type)),n)}function jn(n,o,s,c){if(50<Oi)throw Oi=0,ic=null,Error(r(185));ai(n,s,c),((Oe&2)===0||n!==ht)&&(n===ht&&((Oe&2)===0&&(hs|=s),ft===4&&yr(n,bt)),Ht(n,c),s===1&&Oe===0&&(o.mode&1)===0&&(No=it()+500,Gl&&cr()))}function Ht(n,o){var s=n.callbackNode;b1(n,o);var c=Rl(n,n===ht?bt:0);if(c===0)s!==null&&zf(s),n.callbackNode=null,n.callbackPriority=0;else if(o=c&-c,n.callbackPriority!==o){if(s!=null&&zf(s),o===1)n.tag===0?kw(Jh.bind(null,n)):Ap(Jh.bind(null,n)),yw(function(){(Oe&6)===0&&cr()}),s=null;else{switch(Mf(c)){case 1:s=Oa;break;case 4:s=Df;break;case 16:s=Cl;break;case 536870912:s=Of;break;default:s=Cl}s=nm(s,Gh.bind(null,n))}n.callbackPriority=o,n.callbackNode=s}}function Gh(n,o){if(xs=-1,vs=0,(Oe&6)!==0)throw Error(r(327));var s=n.callbackNode;if(Po()&&n.callbackNode!==s)return null;var c=Rl(n,n===ht?bt:0);if(c===0)return null;if((c&30)!==0||(c&n.expiredLanes)!==0||o)o=ws(n,c);else{o=c;var h=Oe;Oe|=2;var x=Qh();(ht!==n||bt!==o)&&(Yn=null,No=it()+500,Ur(n,o));do try{Uw();break}catch(I){Kh(n,I)}while(!0);Su(),ps.current=x,Oe=h,at!==null?o=0:(ht=null,bt=0,o=ft)}if(o!==0){if(o===2&&(h=Fa(n),h!==0&&(c=h,o=lc(n,h))),o===1)throw s=zi,Ur(n,0),yr(n,c),Ht(n,it()),s;if(o===6)yr(n,c);else{if(h=n.current.alternate,(c&30)===0&&!Mw(h)&&(o=ws(n,c),o===2&&(x=Fa(n),x!==0&&(c=x,o=lc(n,x))),o===1))throw s=zi,Ur(n,0),yr(n,c),Ht(n,it()),s;switch(n.finishedWork=h,n.finishedLanes=c,o){case 0:case 1:throw Error(r(345));case 2:Vr(n,Vt,Yn);break;case 3:if(yr(n,c),(c&130023424)===c&&(o=rc+500-it(),10<o)){if(Rl(n,0)!==0)break;if(h=n.suspendedLanes,(h&c)!==c){Dt(),n.pingedLanes|=n.suspendedLanes&h;break}n.timeoutHandle=fu(Vr.bind(null,n,Vt,Yn),o);break}Vr(n,Vt,Yn);break;case 4:if(yr(n,c),(c&4194240)===c)break;for(o=n.eventTimes,h=-1;0<c;){var b=31-wn(c);x=1<<b,b=o[b],b>h&&(h=b),c&=~x}if(c=h,c=it()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*Fw(c/1960))-c,10<c){n.timeoutHandle=fu(Vr.bind(null,n,Vt,Yn),c);break}Vr(n,Vt,Yn);break;case 5:Vr(n,Vt,Yn);break;default:throw Error(r(329))}}}return Ht(n,it()),n.callbackNode===s?Gh.bind(null,n):null}function lc(n,o){var s=Di;return n.current.memoizedState.isDehydrated&&(Ur(n,o).flags|=256),n=ws(n,o),n!==2&&(o=Vt,Vt=s,o!==null&&sc(o)),n}function sc(n){Vt===null?Vt=n:Vt.push.apply(Vt,n)}function Mw(n){for(var o=n;;){if(o.flags&16384){var s=o.updateQueue;if(s!==null&&(s=s.stores,s!==null))for(var c=0;c<s.length;c++){var h=s[c],x=h.getSnapshot;h=h.value;try{if(!kn(x(),h))return!1}catch{return!1}}}if(s=o.child,o.subtreeFlags&16384&&s!==null)s.return=o,o=s;else{if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function yr(n,o){for(o&=~nc,o&=~hs,n.suspendedLanes|=o,n.pingedLanes&=~o,n=n.expirationTimes;0<o;){var s=31-wn(o),c=1<<s;n[s]=-1,o&=~c}}function Jh(n){if((Oe&6)!==0)throw Error(r(327));Po();var o=Rl(n,0);if((o&1)===0)return Ht(n,it()),null;var s=ws(n,o);if(n.tag!==0&&s===2){var c=Fa(n);c!==0&&(o=c,s=lc(n,c))}if(s===1)throw s=zi,Ur(n,0),yr(n,o),Ht(n,it()),s;if(s===6)throw Error(r(345));return n.finishedWork=n.current.alternate,n.finishedLanes=o,Vr(n,Vt,Yn),Ht(n,it()),null}function ac(n,o){var s=Oe;Oe|=1;try{return n(o)}finally{Oe=s,Oe===0&&(No=it()+500,Gl&&cr())}}function Br(n){mr!==null&&mr.tag===0&&(Oe&6)===0&&Po();var o=Oe;Oe|=1;var s=mn.transition,c=Be;try{if(mn.transition=null,Be=1,n)return n()}finally{Be=c,mn.transition=s,Oe=o,(Oe&6)===0&&cr()}}function uc(){tn=Io.current,Ke(Io)}function Ur(n,o){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;if(s!==-1&&(n.timeoutHandle=-1,gw(s)),at!==null)for(s=at.return;s!==null;){var c=s;switch(xu(c),c.tag){case 1:c=c.type.childContextTypes,c!=null&&Wl();break;case 3:jo(),Ke(Mt),Ke(jt),Pu();break;case 5:Iu(c);break;case 4:jo();break;case 13:Ke(tt);break;case 19:Ke(tt);break;case 10:Cu(c.type._context);break;case 22:case 23:uc()}s=s.return}if(ht=n,at=n=xr(n.current,null),bt=tn=o,ft=0,zi=null,nc=hs=Mr=0,Vt=Di=null,Dr!==null){for(o=0;o<Dr.length;o++)if(s=Dr[o],c=s.interleaved,c!==null){s.interleaved=null;var h=c.next,x=s.pending;if(x!==null){var b=x.next;x.next=h,c.next=b}s.pending=c}Dr=null}return n}function Kh(n,o){do{var s=at;try{if(Su(),rs.current=ss,os){for(var c=nt.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}os=!1}if(Fr=0,pt=dt=nt=null,Ni=!1,Pi=0,tc.current=null,s===null||s.return===null){ft=1,zi=o,at=null;break}e:{var x=n,b=s.return,I=s,L=o;if(o=bt,I.flags|=32768,L!==null&&typeof L=="object"&&typeof L.then=="function"){var B=L,X=I,Z=X.tag;if((X.mode&1)===0&&(Z===0||Z===11||Z===15)){var Y=X.alternate;Y?(X.updateQueue=Y.updateQueue,X.memoizedState=Y.memoizedState,X.lanes=Y.lanes):(X.updateQueue=null,X.memoizedState=null)}var fe=wh(b);if(fe!==null){fe.flags&=-257,kh(fe,b,I,x,o),fe.mode&1&&vh(x,B,o),o=fe,L=B;var he=o.updateQueue;if(he===null){var me=new Set;me.add(L),o.updateQueue=me}else he.add(L);break e}else{if((o&1)===0){vh(x,B,o),cc();break e}L=Error(r(426))}}else if(Xe&&I.mode&1){var lt=wh(b);if(lt!==null){(lt.flags&65536)===0&&(lt.flags|=256),kh(lt,b,I,x,o),ku(To(L,I));break e}}x=L=To(L,I),ft!==4&&(ft=2),Di===null?Di=[x]:Di.push(x),x=b;do{switch(x.tag){case 3:x.flags|=65536,o&=-o,x.lanes|=o;var F=yh(x,L,o);Hp(x,F);break e;case 1:I=L;var z=x.type,M=x.stateNode;if((x.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(hr===null||!hr.has(M)))){x.flags|=65536,o&=-o,x.lanes|=o;var oe=xh(x,I,o);Hp(x,oe);break e}}x=x.return}while(x!==null)}Xh(s)}catch(xe){o=xe,at===s&&s!==null&&(at=s=s.return);continue}break}while(!0)}function Qh(){var n=ps.current;return ps.current=ss,n===null?ss:n}function cc(){(ft===0||ft===3||ft===2)&&(ft=4),ht===null||(Mr&268435455)===0&&(hs&268435455)===0||yr(ht,bt)}function ws(n,o){var s=Oe;Oe|=2;var c=Qh();(ht!==n||bt!==o)&&(Yn=null,Ur(n,o));do try{Bw();break}catch(h){Kh(n,h)}while(!0);if(Su(),Oe=s,ps.current=c,at!==null)throw Error(r(261));return ht=null,bt=0,ft}function Bw(){for(;at!==null;)Yh(at)}function Uw(){for(;at!==null&&!p1();)Yh(at)}function Yh(n){var o=tm(n.alternate,n,tn);n.memoizedProps=n.pendingProps,o===null?Xh(n):at=o,tc.current=null}function Xh(n){var o=n;do{var s=o.alternate;if(n=o.return,(o.flags&32768)===0){if(s=Lw(s,o,tn),s!==null){at=s;return}}else{if(s=_w(s,o),s!==null){s.flags&=32767,at=s;return}if(n!==null)n.flags|=32768,n.subtreeFlags=0,n.deletions=null;else{ft=6,at=null;return}}if(o=o.sibling,o!==null){at=o;return}at=o=n}while(o!==null);ft===0&&(ft=5)}function Vr(n,o,s){var c=Be,h=mn.transition;try{mn.transition=null,Be=1,Vw(n,o,s,c)}finally{mn.transition=h,Be=c}return null}function Vw(n,o,s,c){do Po();while(mr!==null);if((Oe&6)!==0)throw Error(r(327));s=n.finishedWork;var h=n.finishedLanes;if(s===null)return null;if(n.finishedWork=null,n.finishedLanes=0,s===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0;var x=s.lanes|s.childLanes;if(S1(n,x),n===ht&&(at=ht=null,bt=0),(s.subtreeFlags&2064)===0&&(s.flags&2064)===0||gs||(gs=!0,nm(Cl,function(){return Po(),null})),x=(s.flags&15990)!==0,(s.subtreeFlags&15990)!==0||x){x=mn.transition,mn.transition=null;var b=Be;Be=1;var I=Oe;Oe|=4,tc.current=null,Dw(n,s),Uh(s,n),uw(cu),Pl=!!uu,cu=uu=null,n.current=s,Ow(s),h1(),Oe=I,Be=b,mn.transition=x}else n.current=s;if(gs&&(gs=!1,mr=n,ys=h),x=n.pendingLanes,x===0&&(hr=null),y1(s.stateNode),Ht(n,it()),o!==null)for(c=n.onRecoverableError,s=0;s<o.length;s++)h=o[s],c(h.value,{componentStack:h.stack,digest:h.digest});if(ms)throw ms=!1,n=oc,oc=null,n;return(ys&1)!==0&&n.tag!==0&&Po(),x=n.pendingLanes,(x&1)!==0?n===ic?Oi++:(Oi=0,ic=n):Oi=0,cr(),null}function Po(){if(mr!==null){var n=Mf(ys),o=mn.transition,s=Be;try{if(mn.transition=null,Be=16>n?16:n,mr===null)var c=!1;else{if(n=mr,mr=null,ys=0,(Oe&6)!==0)throw Error(r(331));var h=Oe;for(Oe|=4,pe=n.current;pe!==null;){var x=pe,b=x.child;if((pe.flags&16)!==0){var I=x.deletions;if(I!==null){for(var L=0;L<I.length;L++){var B=I[L];for(pe=B;pe!==null;){var X=pe;switch(X.tag){case 0:case 11:case 15:_i(8,X,x)}var Z=X.child;if(Z!==null)Z.return=X,pe=Z;else for(;pe!==null;){X=pe;var Y=X.sibling,fe=X.return;if(Dh(X),X===B){pe=null;break}if(Y!==null){Y.return=fe,pe=Y;break}pe=fe}}}var he=x.alternate;if(he!==null){var me=he.child;if(me!==null){he.child=null;do{var lt=me.sibling;me.sibling=null,me=lt}while(me!==null)}}pe=x}}if((x.subtreeFlags&2064)!==0&&b!==null)b.return=x,pe=b;else e:for(;pe!==null;){if(x=pe,(x.flags&2048)!==0)switch(x.tag){case 0:case 11:case 15:_i(9,x,x.return)}var F=x.sibling;if(F!==null){F.return=x.return,pe=F;break e}pe=x.return}}var z=n.current;for(pe=z;pe!==null;){b=pe;var M=b.child;if((b.subtreeFlags&2064)!==0&&M!==null)M.return=b,pe=M;else e:for(b=z;pe!==null;){if(I=pe,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:fs(9,I)}}catch(xe){rt(I,I.return,xe)}if(I===b){pe=null;break e}var oe=I.sibling;if(oe!==null){oe.return=I.return,pe=oe;break e}pe=I.return}}if(Oe=h,cr(),An&&typeof An.onPostCommitFiberRoot=="function")try{An.onPostCommitFiberRoot(El,n)}catch{}c=!0}return c}finally{Be=s,mn.transition=o}}return!1}function Zh(n,o,s){o=To(s,o),o=yh(n,o,1),n=fr(n,o,1),o=Dt(),n!==null&&(ai(n,1,o),Ht(n,o))}function rt(n,o,s){if(n.tag===3)Zh(n,n,s);else for(;o!==null;){if(o.tag===3){Zh(o,n,s);break}else if(o.tag===1){var c=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(hr===null||!hr.has(c))){n=To(s,n),n=xh(o,n,1),o=fr(o,n,1),n=Dt(),o!==null&&(ai(o,1,n),Ht(o,n));break}}o=o.return}}function Hw(n,o,s){var c=n.pingCache;c!==null&&c.delete(o),o=Dt(),n.pingedLanes|=n.suspendedLanes&s,ht===n&&(bt&s)===s&&(ft===4||ft===3&&(bt&130023424)===bt&&500>it()-rc?Ur(n,0):nc|=s),Ht(n,o)}function em(n,o){o===0&&((n.mode&1)===0?o=1:(o=Tl,Tl<<=1,(Tl&130023424)===0&&(Tl=4194304)));var s=Dt();n=Jn(n,o),n!==null&&(ai(n,o,s),Ht(n,s))}function Ww(n){var o=n.memoizedState,s=0;o!==null&&(s=o.retryLane),em(n,s)}function qw(n,o){var s=0;switch(n.tag){case 13:var c=n.stateNode,h=n.memoizedState;h!==null&&(s=h.retryLane);break;case 19:c=n.stateNode;break;default:throw Error(r(314))}c!==null&&c.delete(o),em(n,s)}var tm;tm=function(n,o,s){if(n!==null)if(n.memoizedProps!==o.pendingProps||Mt.current)Ut=!0;else{if((n.lanes&s)===0&&(o.flags&128)===0)return Ut=!1,Aw(n,o,s);Ut=(n.flags&131072)!==0}else Ut=!1,Xe&&(o.flags&1048576)!==0&&Lp(o,Kl,o.index);switch(o.lanes=0,o.tag){case 2:var c=o.type;cs(n,o),n=o.pendingProps;var h=vo(o,jt.current);Eo(o,s),h=Lu(null,o,c,n,h,s);var x=_u();return o.flags|=1,typeof h=="object"&&h!==null&&typeof h.render=="function"&&h.$$typeof===void 0?(o.tag=1,o.memoizedState=null,o.updateQueue=null,Bt(c)?(x=!0,ql(o)):x=!1,o.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,Tu(o),h.updater=as,o.stateNode=h,h._reactInternals=o,Bu(o,c,n,s),o=Wu(null,o,c,!0,x,s)):(o.tag=0,Xe&&x&&yu(o),zt(null,o,h,s),o=o.child),o;case 16:c=o.elementType;e:{switch(cs(n,o),n=o.pendingProps,h=c._init,c=h(c._payload),o.type=c,h=o.tag=Jw(c),n=Sn(c,n),h){case 0:o=Hu(null,o,c,n,s);break e;case 1:o=Th(null,o,c,n,s);break e;case 11:o=bh(null,o,c,n,s);break e;case 14:o=Sh(null,o,c,Sn(c.type,n),s);break e}throw Error(r(306,c,""))}return o;case 0:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Sn(c,h),Hu(n,o,c,h,s);case 1:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Sn(c,h),Th(n,o,c,h,s);case 3:e:{if(Rh(o),n===null)throw Error(r(387));c=o.pendingProps,x=o.memoizedState,h=x.element,Vp(n,o),ts(o,c,null,s);var b=o.memoizedState;if(c=b.element,x.isDehydrated)if(x={element:c,isDehydrated:!1,cache:b.cache,pendingSuspenseBoundaries:b.pendingSuspenseBoundaries,transitions:b.transitions},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){h=To(Error(r(423)),o),o=Ih(n,o,c,s,h);break e}else if(c!==h){h=To(Error(r(424)),o),o=Ih(n,o,c,s,h);break e}else for(en=sr(o.stateNode.containerInfo.firstChild),Zt=o,Xe=!0,bn=null,s=Bp(o,null,c,s),o.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(bo(),c===h){o=Qn(n,o,s);break e}zt(n,o,c,s)}o=o.child}return o;case 5:return qp(o),n===null&&wu(o),c=o.type,h=o.pendingProps,x=n!==null?n.memoizedProps:null,b=h.children,du(c,h)?b=null:x!==null&&du(c,x)&&(o.flags|=32),jh(n,o),zt(n,o,b,s),o.child;case 6:return n===null&&wu(o),null;case 13:return Nh(n,o,s);case 4:return Ru(o,o.stateNode.containerInfo),c=o.pendingProps,n===null?o.child=So(o,null,c,s):zt(n,o,c,s),o.child;case 11:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Sn(c,h),bh(n,o,c,h,s);case 7:return zt(n,o,o.pendingProps,s),o.child;case 8:return zt(n,o,o.pendingProps.children,s),o.child;case 12:return zt(n,o,o.pendingProps.children,s),o.child;case 10:e:{if(c=o.type._context,h=o.pendingProps,x=o.memoizedProps,b=h.value,We(Xl,c._currentValue),c._currentValue=b,x!==null)if(kn(x.value,b)){if(x.children===h.children&&!Mt.current){o=Qn(n,o,s);break e}}else for(x=o.child,x!==null&&(x.return=o);x!==null;){var I=x.dependencies;if(I!==null){b=x.child;for(var L=I.firstContext;L!==null;){if(L.context===c){if(x.tag===1){L=Kn(-1,s&-s),L.tag=2;var B=x.updateQueue;if(B!==null){B=B.shared;var X=B.pending;X===null?L.next=L:(L.next=X.next,X.next=L),B.pending=L}}x.lanes|=s,L=x.alternate,L!==null&&(L.lanes|=s),Eu(x.return,s,o),I.lanes|=s;break}L=L.next}}else if(x.tag===10)b=x.type===o.type?null:x.child;else if(x.tag===18){if(b=x.return,b===null)throw Error(r(341));b.lanes|=s,I=b.alternate,I!==null&&(I.lanes|=s),Eu(b,s,o),b=x.sibling}else b=x.child;if(b!==null)b.return=x;else for(b=x;b!==null;){if(b===o){b=null;break}if(x=b.sibling,x!==null){x.return=b.return,b=x;break}b=b.return}x=b}zt(n,o,h.children,s),o=o.child}return o;case 9:return h=o.type,c=o.pendingProps.children,Eo(o,s),h=pn(h),c=c(h),o.flags|=1,zt(n,o,c,s),o.child;case 14:return c=o.type,h=Sn(c,o.pendingProps),h=Sn(c.type,h),Sh(n,o,c,h,s);case 15:return Ch(n,o,o.type,o.pendingProps,s);case 17:return c=o.type,h=o.pendingProps,h=o.elementType===c?h:Sn(c,h),cs(n,o),o.tag=1,Bt(c)?(n=!0,ql(o)):n=!1,Eo(o,s),mh(o,c,h),Bu(o,c,h,s),Wu(null,o,c,!0,n,s);case 19:return $h(n,o,s);case 22:return Eh(n,o,s)}throw Error(r(156,o.tag))};function nm(n,o){return _f(n,o)}function Gw(n,o,s,c){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gn(n,o,s,c){return new Gw(n,o,s,c)}function dc(n){return n=n.prototype,!(!n||!n.isReactComponent)}function Jw(n){if(typeof n=="function")return dc(n)?1:0;if(n!=null){if(n=n.$$typeof,n===se)return 11;if(n===U)return 14}return 2}function xr(n,o){var s=n.alternate;return s===null?(s=gn(n.tag,o,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=o,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&14680064,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,o=n.dependencies,s.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s}function ks(n,o,s,c,h,x){var b=2;if(c=n,typeof n=="function")dc(n)&&(b=1);else if(typeof n=="string")b=5;else e:switch(n){case H:return Hr(s.children,h,x,o);case K:b=8,h|=8;break;case le:return n=gn(12,s,o,h|2),n.elementType=le,n.lanes=x,n;case ne:return n=gn(13,s,o,h),n.elementType=ne,n.lanes=x,n;case re:return n=gn(19,s,o,h),n.elementType=re,n.lanes=x,n;case ie:return bs(s,h,x,o);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case O:b=10;break e;case ee:b=9;break e;case se:b=11;break e;case U:b=14;break e;case de:b=16,c=null;break e}throw Error(r(130,n==null?n:typeof n,""))}return o=gn(b,s,o,h),o.elementType=n,o.type=c,o.lanes=x,o}function Hr(n,o,s,c){return n=gn(7,n,c,o),n.lanes=s,n}function bs(n,o,s,c){return n=gn(22,n,c,o),n.elementType=ie,n.lanes=s,n.stateNode={isHidden:!1},n}function fc(n,o,s){return n=gn(6,n,null,o),n.lanes=s,n}function pc(n,o,s){return o=gn(4,n.children!==null?n.children:[],n.key,o),o.lanes=s,o.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},o}function Kw(n,o,s,c,h){this.tag=o,this.containerInfo=n,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ma(0),this.expirationTimes=Ma(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ma(0),this.identifierPrefix=c,this.onRecoverableError=h,this.mutableSourceEagerHydrationData=null}function hc(n,o,s,c,h,x,b,I,L){return n=new Kw(n,o,s,I,L),o===1?(o=1,x===!0&&(o|=8)):o=0,x=gn(3,null,null,o),n.current=x,x.stateNode=n,x.memoizedState={element:c,isDehydrated:s,cache:null,transitions:null,pendingSuspenseBoundaries:null},Tu(x),n}function Qw(n,o,s){var c=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:A,key:c==null?null:""+c,children:n,containerInfo:o,implementation:s}}function rm(n){if(!n)return ur;n=n._reactInternals;e:{if($r(n)!==n||n.tag!==1)throw Error(r(170));var o=n;do{switch(o.tag){case 3:o=o.stateNode.context;break e;case 1:if(Bt(o.type)){o=o.stateNode.__reactInternalMemoizedMergedChildContext;break e}}o=o.return}while(o!==null);throw Error(r(171))}if(n.tag===1){var s=n.type;if(Bt(s))return Pp(n,s,o)}return o}function om(n,o,s,c,h,x,b,I,L){return n=hc(s,c,!0,n,h,x,b,I,L),n.context=rm(null),s=n.current,c=Dt(),h=gr(s),x=Kn(c,h),x.callback=o??null,fr(s,x,h),n.current.lanes=h,ai(n,h,c),Ht(n,c),n}function Ss(n,o,s,c){var h=o.current,x=Dt(),b=gr(h);return s=rm(s),o.context===null?o.context=s:o.pendingContext=s,o=Kn(x,b),o.payload={element:n},c=c===void 0?null:c,c!==null&&(o.callback=c),n=fr(h,o,b),n!==null&&(jn(n,h,b,x),es(n,h,b)),b}function Cs(n){if(n=n.current,!n.child)return null;switch(n.child.tag){case 5:return n.child.stateNode;default:return n.child.stateNode}}function im(n,o){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<o?s:o}}function mc(n,o){im(n,o),(n=n.alternate)&&im(n,o)}function Yw(){return null}var lm=typeof reportError=="function"?reportError:function(n){console.error(n)};function gc(n){this._internalRoot=n}Es.prototype.render=gc.prototype.render=function(n){var o=this._internalRoot;if(o===null)throw Error(r(409));Ss(n,o,null,null)},Es.prototype.unmount=gc.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var o=n.containerInfo;Br(function(){Ss(null,n,null,null)}),o[Hn]=null}};function Es(n){this._internalRoot=n}Es.prototype.unstable_scheduleHydration=function(n){if(n){var o=Vf();n={blockedOn:null,target:n,priority:o};for(var s=0;s<or.length&&o!==0&&o<or[s].priority;s++);or.splice(s,0,n),s===0&&qf(n)}};function yc(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function js(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11&&(n.nodeType!==8||n.nodeValue!==" react-mount-point-unstable "))}function sm(){}function Xw(n,o,s,c,h){if(h){if(typeof c=="function"){var x=c;c=function(){var B=Cs(b);x.call(B)}}var b=om(o,c,n,0,null,!1,!1,"",sm);return n._reactRootContainer=b,n[Hn]=b.current,bi(n.nodeType===8?n.parentNode:n),Br(),b}for(;h=n.lastChild;)n.removeChild(h);if(typeof c=="function"){var I=c;c=function(){var B=Cs(L);I.call(B)}}var L=hc(n,0,!1,null,null,!1,!1,"",sm);return n._reactRootContainer=L,n[Hn]=L.current,bi(n.nodeType===8?n.parentNode:n),Br(function(){Ss(o,L,s,c)}),L}function Ts(n,o,s,c,h){var x=s._reactRootContainer;if(x){var b=x;if(typeof h=="function"){var I=h;h=function(){var L=Cs(b);I.call(L)}}Ss(o,b,n,h)}else b=Xw(s,o,n,h,c);return Cs(b)}Bf=function(n){switch(n.tag){case 3:var o=n.stateNode;if(o.current.memoizedState.isDehydrated){var s=si(o.pendingLanes);s!==0&&(Ba(o,s|1),Ht(o,it()),(Oe&6)===0&&(No=it()+500,cr()))}break;case 13:Br(function(){var c=Jn(n,1);if(c!==null){var h=Dt();jn(c,n,1,h)}}),mc(n,1)}},Ua=function(n){if(n.tag===13){var o=Jn(n,134217728);if(o!==null){var s=Dt();jn(o,n,134217728,s)}mc(n,134217728)}},Uf=function(n){if(n.tag===13){var o=gr(n),s=Jn(n,o);if(s!==null){var c=Dt();jn(s,n,o,c)}mc(n,o)}},Vf=function(){return Be},Hf=function(n,o){var s=Be;try{return Be=n,o()}finally{Be=s}},La=function(n,o,s){switch(o){case"input":if(st(n,s),o=s.name,s.type==="radio"&&o!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),o=0;o<s.length;o++){var c=s[o];if(c!==n&&c.form===n.form){var h=Hl(c);if(!h)throw Error(r(90));Ne(c),st(c,h)}}}break;case"textarea":wl(n,s);break;case"select":o=s.value,o!=null&&ot(n,!!s.multiple,o,!1)}},Rf=ac,If=Br;var Zw={usingClientEntryPoint:!1,Events:[Ei,yo,Hl,jf,Tf,ac]},Fi={findFiberByHostInstance:Ar,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},ek={bundleType:Fi.bundleType,version:Fi.version,rendererPackageName:Fi.rendererPackageName,rendererConfig:Fi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:D.ReactCurrentDispatcher,findHostInstanceByFiber:function(n){return n=Af(n),n===null?null:n.stateNode},findFiberByHostInstance:Fi.findFiberByHostInstance||Yw,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 Rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rs.isDisabled&&Rs.supportsFiber)try{El=Rs.inject(ek),An=Rs}catch{}}return Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Zw,Wt.createPortal=function(n,o){var s=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yc(o))throw Error(r(200));return Qw(n,o,null,s)},Wt.createRoot=function(n,o){if(!yc(n))throw Error(r(299));var s=!1,c="",h=lm;return o!=null&&(o.unstable_strictMode===!0&&(s=!0),o.identifierPrefix!==void 0&&(c=o.identifierPrefix),o.onRecoverableError!==void 0&&(h=o.onRecoverableError)),o=hc(n,1,!1,null,null,s,!1,c,h),n[Hn]=o.current,bi(n.nodeType===8?n.parentNode:n),new gc(o)},Wt.findDOMNode=function(n){if(n==null)return null;if(n.nodeType===1)return n;var o=n._reactInternals;if(o===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=Af(o),n=n===null?null:n.stateNode,n},Wt.flushSync=function(n){return Br(n)},Wt.hydrate=function(n,o,s){if(!js(o))throw Error(r(200));return Ts(null,n,o,!0,s)},Wt.hydrateRoot=function(n,o,s){if(!yc(n))throw Error(r(405));var c=s!=null&&s.hydratedSources||null,h=!1,x="",b=lm;if(s!=null&&(s.unstable_strictMode===!0&&(h=!0),s.identifierPrefix!==void 0&&(x=s.identifierPrefix),s.onRecoverableError!==void 0&&(b=s.onRecoverableError)),o=om(o,null,n,1,s??null,h,!1,x,b),n[Hn]=o.current,bi(n),c)for(n=0;n<c.length;n++)s=c[n],h=s._getVersion,h=h(s._source),o.mutableSourceEagerHydrationData==null?o.mutableSourceEagerHydrationData=[s,h]:o.mutableSourceEagerHydrationData.push(s,h);return new Es(o)},Wt.render=function(n,o,s){if(!js(o))throw Error(r(200));return Ts(null,n,o,!1,s)},Wt.unmountComponentAtNode=function(n){if(!js(n))throw Error(r(40));return n._reactRootContainer?(Br(function(){Ts(null,null,n,!1,function(){n._reactRootContainer=null,n[Hn]=null})}),!0):!1},Wt.unstable_batchedUpdates=ac,Wt.unstable_renderSubtreeIntoContainer=function(n,o,s,c){if(!js(s))throw Error(r(200));if(n==null||n._reactInternals===void 0)throw Error(r(38));return Ts(n,o,s,!1,c)},Wt.version="18.3.1-next-f1338f8080-20240426",Wt}var pm;function ak(){if(pm)return vc.exports;pm=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),vc.exports=sk(),vc.exports}var hm;function uk(){if(hm)return Is;hm=1;var e=ak();return Is.createRoot=e.createRoot,Is.hydrateRoot=e.hydrateRoot,Is}var ck=uk(),bc={exports:{}},Mi={};/**
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 mm;function dk(){if(mm)return Mi;mm=1;var e=Ld(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function u(d,f,p){var g,m={},v=null,w=null;p!==void 0&&(v=""+p),f.key!==void 0&&(v=""+f.key),f.ref!==void 0&&(w=f.ref);for(g in f)i.call(f,g)&&!a.hasOwnProperty(g)&&(m[g]=f[g]);if(d&&d.defaultProps)for(g in f=d.defaultProps,f)m[g]===void 0&&(m[g]=f[g]);return{$$typeof:t,type:d,key:v,ref:w,props:m,_owner:l.current}}return Mi.Fragment=r,Mi.jsx=u,Mi.jsxs=u,Mi}var gm;function fk(){return gm||(gm=1,bc.exports=dk()),bc.exports}var y=fk(),yt=function(){return yt=Object.assign||function(t){for(var r,i=1,l=arguments.length;i<l;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},yt.apply(this,arguments)};function Bo(e,t,r){if(r||arguments.length===2)for(var i=0,l=t.length,a;i<l;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var Qe="-ms-",el="-moz-",Me="-webkit-",cy="comm",pa="rule",_d="decl",pk="@import",dy="@keyframes",hk="@layer",fy=Math.abs,zd=String.fromCharCode,Zc=Object.assign;function mk(e,t){return gt(e,0)^45?(((t<<2^gt(e,0))<<2^gt(e,1))<<2^gt(e,2))<<2^gt(e,3):0}function py(e){return e.trim()}function Xn(e,t){return(e=t.exec(e))?e[0]:e}function Ie(e,t,r){return e.replace(t,r)}function Us(e,t,r){return e.indexOf(t,r)}function gt(e,t){return e.charCodeAt(t)|0}function Uo(e,t,r){return e.slice(t,r)}function Bn(e){return e.length}function hy(e){return e.length}function Xi(e,t){return t.push(e),e}function gk(e,t){return e.map(t).join("")}function ym(e,t){return e.filter(function(r){return!Xn(r,t)})}var ha=1,Vo=1,my=0,xn=0,ct=0,Ko="";function ma(e,t,r,i,l,a,u,d){return{value:e,root:t,parent:r,type:i,props:l,children:a,line:ha,column:Vo,length:u,return:"",siblings:d}}function Sr(e,t){return Zc(ma("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function $o(e){for(;e.root;)e=Sr(e.root,{children:[e]});Xi(e,e.siblings)}function yk(){return ct}function xk(){return ct=xn>0?gt(Ko,--xn):0,Vo--,ct===10&&(Vo=1,ha--),ct}function Tn(){return ct=xn<my?gt(Ko,xn++):0,Vo++,ct===10&&(Vo=1,ha++),ct}function Kr(){return gt(Ko,xn)}function Vs(){return xn}function ga(e,t){return Uo(Ko,e,t)}function ed(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function vk(e){return ha=Vo=1,my=Bn(Ko=e),xn=0,[]}function wk(e){return Ko="",e}function Sc(e){return py(ga(xn-1,td(e===91?e+2:e===40?e+1:e)))}function kk(e){for(;(ct=Kr())&&ct<33;)Tn();return ed(e)>2||ed(ct)>3?"":" "}function bk(e,t){for(;--t&&Tn()&&!(ct<48||ct>102||ct>57&&ct<65||ct>70&&ct<97););return ga(e,Vs()+(t<6&&Kr()==32&&Tn()==32))}function td(e){for(;Tn();)switch(ct){case e:return xn;case 34:case 39:e!==34&&e!==39&&td(ct);break;case 40:e===41&&td(e);break;case 92:Tn();break}return xn}function Sk(e,t){for(;Tn()&&e+ct!==57;)if(e+ct===84&&Kr()===47)break;return"/*"+ga(t,xn-1)+"*"+zd(e===47?e:Tn())}function Ck(e){for(;!ed(Kr());)Tn();return ga(e,xn)}function Ek(e){return wk(Hs("",null,null,null,[""],e=vk(e),0,[0],e))}function Hs(e,t,r,i,l,a,u,d,f){for(var p=0,g=0,m=u,v=0,w=0,k=0,S=1,j=1,E=1,P=0,$="",D=l,W=a,A=i,H=$;j;)switch(k=P,P=Tn()){case 40:if(k!=108&&gt(H,m-1)==58){Us(H+=Ie(Sc(P),"&","&\f"),"&\f",fy(p?d[p-1]:0))!=-1&&(E=-1);break}case 34:case 39:case 91:H+=Sc(P);break;case 9:case 10:case 13:case 32:H+=kk(k);break;case 92:H+=bk(Vs()-1,7);continue;case 47:switch(Kr()){case 42:case 47:Xi(jk(Sk(Tn(),Vs()),t,r,f),f);break;default:H+="/"}break;case 123*S:d[p++]=Bn(H)*E;case 125*S:case 59:case 0:switch(P){case 0:case 125:j=0;case 59+g:E==-1&&(H=Ie(H,/\f/g,"")),w>0&&Bn(H)-m&&Xi(w>32?vm(H+";",i,r,m-1,f):vm(Ie(H," ","")+";",i,r,m-2,f),f);break;case 59:H+=";";default:if(Xi(A=xm(H,t,r,p,g,l,d,$,D=[],W=[],m,a),a),P===123)if(g===0)Hs(H,t,A,A,D,a,m,d,W);else switch(v===99&&gt(H,3)===110?100:v){case 100:case 108:case 109:case 115:Hs(e,A,A,i&&Xi(xm(e,A,A,0,0,l,d,$,l,D=[],m,W),W),l,W,m,d,i?D:W);break;default:Hs(H,A,A,A,[""],W,0,d,W)}}p=g=w=0,S=E=1,$=H="",m=u;break;case 58:m=1+Bn(H),w=k;default:if(S<1){if(P==123)--S;else if(P==125&&S++==0&&xk()==125)continue}switch(H+=zd(P),P*S){case 38:E=g>0?1:(H+="\f",-1);break;case 44:d[p++]=(Bn(H)-1)*E,E=1;break;case 64:Kr()===45&&(H+=Sc(Tn())),v=Kr(),g=m=Bn($=H+=Ck(Vs())),P++;break;case 45:k===45&&Bn(H)==2&&(S=0)}}return a}function xm(e,t,r,i,l,a,u,d,f,p,g,m){for(var v=l-1,w=l===0?a:[""],k=hy(w),S=0,j=0,E=0;S<i;++S)for(var P=0,$=Uo(e,v+1,v=fy(j=u[S])),D=e;P<k;++P)(D=py(j>0?w[P]+" "+$:Ie($,/&\f/g,w[P])))&&(f[E++]=D);return ma(e,t,r,l===0?pa:d,f,p,g,m)}function jk(e,t,r,i){return ma(e,t,r,cy,zd(yk()),Uo(e,2,-2),0,i)}function vm(e,t,r,i,l){return ma(e,t,r,_d,Uo(e,0,i),Uo(e,i+1,-1),i,l)}function gy(e,t,r){switch(mk(e,t)){case 5103:return Me+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Me+e+e;case 4789:return el+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Me+e+el+e+Qe+e+e;case 5936:switch(gt(e,t+11)){case 114:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Me+e+Qe+Ie(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return Me+e+Qe+e+e;case 6165:return Me+e+Qe+"flex-"+e+e;case 5187:return Me+e+Ie(e,/(\w+).+(:[^]+)/,Me+"box-$1$2"+Qe+"flex-$1$2")+e;case 5443:return Me+e+Qe+"flex-item-"+Ie(e,/flex-|-self/g,"")+(Xn(e,/flex-|baseline/)?"":Qe+"grid-row-"+Ie(e,/flex-|-self/g,""))+e;case 4675:return Me+e+Qe+"flex-line-pack"+Ie(e,/align-content|flex-|-self/g,"")+e;case 5548:return Me+e+Qe+Ie(e,"shrink","negative")+e;case 5292:return Me+e+Qe+Ie(e,"basis","preferred-size")+e;case 6060:return Me+"box-"+Ie(e,"-grow","")+Me+e+Qe+Ie(e,"grow","positive")+e;case 4554:return Me+Ie(e,/([^-])(transform)/g,"$1"+Me+"$2")+e;case 6187:return Ie(Ie(Ie(e,/(zoom-|grab)/,Me+"$1"),/(image-set)/,Me+"$1"),e,"")+e;case 5495:case 3959:return Ie(e,/(image-set\([^]*)/,Me+"$1$`$1");case 4968:return Ie(Ie(e,/(.+:)(flex-)?(.*)/,Me+"box-pack:$3"+Qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Me+e+e;case 4200:if(!Xn(e,/flex-|baseline/))return Qe+"grid-column-align"+Uo(e,t)+e;break;case 2592:case 3360:return Qe+Ie(e,"template-","")+e;case 4384:case 3616:return r&&r.some(function(i,l){return t=l,Xn(i.props,/grid-\w+-end/)})?~Us(e+(r=r[t].value),"span",0)?e:Qe+Ie(e,"-start","")+e+Qe+"grid-row-span:"+(~Us(r,"span",0)?Xn(r,/\d+/):+Xn(r,/\d+/)-+Xn(e,/\d+/))+";":Qe+Ie(e,"-start","")+e;case 4896:case 4128:return r&&r.some(function(i){return Xn(i.props,/grid-\w+-start/)})?e:Qe+Ie(Ie(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ie(e,/(.+)-inline(.+)/,Me+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Bn(e)-1-t>6)switch(gt(e,t+1)){case 109:if(gt(e,t+4)!==45)break;case 102:return Ie(e,/(.+:)(.+)-([^]+)/,"$1"+Me+"$2-$3$1"+el+(gt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Us(e,"stretch",0)?gy(Ie(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Ie(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(i,l,a,u,d,f,p){return Qe+l+":"+a+p+(u?Qe+l+"-span:"+(d?f:+f-+a)+p:"")+e});case 4949:if(gt(e,t+6)===121)return Ie(e,":",":"+Me)+e;break;case 6444:switch(gt(e,gt(e,14)===45?18:11)){case 120:return Ie(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Me+(gt(e,14)===45?"inline-":"")+"box$3$1"+Me+"$2$3$1"+Qe+"$2box$3")+e;case 100:return Ie(e,":",":"+Qe)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ie(e,"scroll-","scroll-snap-")+e}return e}function Xs(e,t){for(var r="",i=0;i<e.length;i++)r+=t(e[i],i,e,t)||"";return r}function Tk(e,t,r,i){switch(e.type){case hk:if(e.children.length)break;case pk:case _d:return e.return=e.return||e.value;case cy:return"";case dy:return e.return=e.value+"{"+Xs(e.children,i)+"}";case pa:if(!Bn(e.value=e.props.join(",")))return""}return Bn(r=Xs(e.children,i))?e.return=e.value+"{"+r+"}":""}function Rk(e){var t=hy(e);return function(r,i,l,a){for(var u="",d=0;d<t;d++)u+=e[d](r,i,l,a)||"";return u}}function Ik(e){return function(t){t.root||(t=t.return)&&e(t)}}function Nk(e,t,r,i){if(e.length>-1&&!e.return)switch(e.type){case _d:e.return=gy(e.value,e.length,r);return;case dy:return Xs([Sr(e,{value:Ie(e.value,"@","@"+Me)})],i);case pa:if(e.length)return gk(r=e.props,function(l){switch(Xn(l,i=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":$o(Sr(e,{props:[Ie(l,/:(read-\w+)/,":"+el+"$1")]})),$o(Sr(e,{props:[l]})),Zc(e,{props:ym(r,i)});break;case"::placeholder":$o(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+Me+"input-$1")]})),$o(Sr(e,{props:[Ie(l,/:(plac\w+)/,":"+el+"$1")]})),$o(Sr(e,{props:[Ie(l,/:(plac\w+)/,Qe+"input-$1")]})),$o(Sr(e,{props:[l]})),Zc(e,{props:ym(r,i)});break}return""})}}var Pk={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},rn={},Ho=typeof process<"u"&&rn!==void 0&&(rn.REACT_APP_SC_ATTR||rn.SC_ATTR)||"data-styled",yy="active",xy="data-styled-version",ya="6.1.13",Dd=`/*!sc*/
41
+ `,Zs=typeof window<"u"&&"HTMLElement"in window,$k=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&rn!==void 0&&rn.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&rn.REACT_APP_SC_DISABLE_SPEEDY!==""?rn.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&rn.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&rn!==void 0&&rn.SC_DISABLE_SPEEDY!==void 0&&rn.SC_DISABLE_SPEEDY!==""&&rn.SC_DISABLE_SPEEDY!=="false"&&rn.SC_DISABLE_SPEEDY),Ak={},xa=Object.freeze([]),Wo=Object.freeze({});function vy(e,t,r){return r===void 0&&(r=Wo),e.theme!==r.theme&&e.theme||t||r.theme}var wy=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"]),Lk=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,_k=/(^-|-$)/g;function wm(e){return e.replace(Lk,"-").replace(_k,"")}var zk=/(a)(d)/gi,Ns=52,km=function(e){return String.fromCharCode(e+(e>25?39:97))};function nd(e){var t,r="";for(t=Math.abs(e);t>Ns;t=t/Ns|0)r=km(t%Ns)+r;return(km(t%Ns)+r).replace(zk,"$1-$2")}var Cc,ky=5381,Do=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},by=function(e){return Do(ky,e)};function Od(e){return nd(by(e)>>>0)}function Dk(e){return e.displayName||e.name||"Component"}function Ec(e){return typeof e=="string"&&!0}var Sy=typeof Symbol=="function"&&Symbol.for,Cy=Sy?Symbol.for("react.memo"):60115,Ok=Sy?Symbol.for("react.forward_ref"):60112,Fk={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Mk={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ey={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Bk=((Cc={})[Ok]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Cc[Cy]=Ey,Cc);function bm(e){return("type"in(t=e)&&t.type.$$typeof)===Cy?Ey:"$$typeof"in e?Bk[e.$$typeof]:Fk;var t}var Uk=Object.defineProperty,Vk=Object.getOwnPropertyNames,Sm=Object.getOwnPropertySymbols,Hk=Object.getOwnPropertyDescriptor,Wk=Object.getPrototypeOf,Cm=Object.prototype;function jy(e,t,r){if(typeof t!="string"){if(Cm){var i=Wk(t);i&&i!==Cm&&jy(e,i,r)}var l=Vk(t);Sm&&(l=l.concat(Sm(t)));for(var a=bm(e),u=bm(t),d=0;d<l.length;++d){var f=l[d];if(!(f in Mk||r&&r[f]||u&&f in u||a&&f in a)){var p=Hk(t,f);try{Uk(e,f,p)}catch{}}}}return e}function eo(e){return typeof e=="function"}function Fd(e){return typeof e=="object"&&"styledComponentId"in e}function Gr(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ea(e,t){if(e.length===0)return"";for(var r=e[0],i=1;i<e.length;i++)r+=e[i];return r}function ol(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function rd(e,t,r){if(r===void 0&&(r=!1),!r&&!ol(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var i=0;i<t.length;i++)e[i]=rd(e[i],t[i]);else if(ol(t))for(var i in t)e[i]=rd(e[i],t[i]);return e}function Md(e,t){Object.defineProperty(e,"toString",{value:t})}function jr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var qk=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var r=0,i=0;i<t;i++)r+=this.groupSizes[i];return r},e.prototype.insertRules=function(t,r){if(t>=this.groupSizes.length){for(var i=this.groupSizes,l=i.length,a=l;t>=a;)if((a<<=1)<0)throw jr(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(i),this.length=a;for(var u=l;u<a;u++)this.groupSizes[u]=0}for(var d=this.indexOfGroup(t+1),f=(u=0,r.length);u<f;u++)this.tag.insertRule(d,r[u])&&(this.groupSizes[t]++,d++)},e.prototype.clearGroup=function(t){if(t<this.length){var r=this.groupSizes[t],i=this.indexOfGroup(t),l=i+r;this.groupSizes[t]=0;for(var a=i;a<l;a++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(t){var r="";if(t>=this.length||this.groupSizes[t]===0)return r;for(var i=this.groupSizes[t],l=this.indexOfGroup(t),a=l+i,u=l;u<a;u++)r+="".concat(this.tag.getRule(u)).concat(Dd);return r},e}(),Ws=new Map,ta=new Map,qs=1,Ps=function(e){if(Ws.has(e))return Ws.get(e);for(;ta.has(qs);)qs++;var t=qs++;return Ws.set(e,t),ta.set(t,e),t},Gk=function(e,t){qs=t+1,Ws.set(e,t),ta.set(t,e)},Jk="style[".concat(Ho,"][").concat(xy,'="').concat(ya,'"]'),Kk=new RegExp("^".concat(Ho,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qk=function(e,t,r){for(var i,l=r.split(","),a=0,u=l.length;a<u;a++)(i=l[a])&&e.registerName(t,i)},Yk=function(e,t){for(var r,i=((r=t.textContent)!==null&&r!==void 0?r:"").split(Dd),l=[],a=0,u=i.length;a<u;a++){var d=i[a].trim();if(d){var f=d.match(Kk);if(f){var p=0|parseInt(f[1],10),g=f[2];p!==0&&(Gk(g,p),Qk(e,g,f[3]),e.getTag().insertRules(p,l)),l.length=0}else l.push(d)}}},Em=function(e){for(var t=document.querySelectorAll(Jk),r=0,i=t.length;r<i;r++){var l=t[r];l&&l.getAttribute(Ho)!==yy&&(Yk(e,l),l.parentNode&&l.parentNode.removeChild(l))}};function Xk(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Ty=function(e){var t=document.head,r=e||t,i=document.createElement("style"),l=function(d){var f=Array.from(d.querySelectorAll("style[".concat(Ho,"]")));return f[f.length-1]}(r),a=l!==void 0?l.nextSibling:null;i.setAttribute(Ho,yy),i.setAttribute(xy,ya);var u=Xk();return u&&i.setAttribute("nonce",u),r.insertBefore(i,a),i},Zk=function(){function e(t){this.element=Ty(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(r){if(r.sheet)return r.sheet;for(var i=document.styleSheets,l=0,a=i.length;l<a;l++){var u=i[l];if(u.ownerNode===r)return u}throw jr(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,r){try{return this.sheet.insertRule(r,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var r=this.sheet.cssRules[t];return r&&r.cssText?r.cssText:""},e}(),eb=function(){function e(t){this.element=Ty(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,r){if(t<=this.length&&t>=0){var i=document.createTextNode(r);return this.element.insertBefore(i,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),tb=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,r){return t<=this.length&&(this.rules.splice(t,0,r),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),jm=Zs,nb={isServer:!Zs,useCSSOMInjection:!$k},na=function(){function e(t,r,i){t===void 0&&(t=Wo),r===void 0&&(r={});var l=this;this.options=yt(yt({},nb),t),this.gs=r,this.names=new Map(i),this.server=!!t.isServer,!this.server&&Zs&&jm&&(jm=!1,Em(this)),Md(this,function(){return function(a){for(var u=a.getTag(),d=u.length,f="",p=function(m){var v=function(E){return ta.get(E)}(m);if(v===void 0)return"continue";var w=a.names.get(v),k=u.getGroup(m);if(w===void 0||!w.size||k.length===0)return"continue";var S="".concat(Ho,".g").concat(m,'[id="').concat(v,'"]'),j="";w!==void 0&&w.forEach(function(E){E.length>0&&(j+="".concat(E,","))}),f+="".concat(k).concat(S,'{content:"').concat(j,'"}').concat(Dd)},g=0;g<d;g++)p(g);return f}(l)})}return e.registerId=function(t){return Ps(t)},e.prototype.rehydrate=function(){!this.server&&Zs&&Em(this)},e.prototype.reconstructWithOptions=function(t,r){return r===void 0&&(r=!0),new e(yt(yt({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(r){var i=r.useCSSOMInjection,l=r.target;return r.isServer?new tb(l):i?new Zk(l):new eb(l)}(this.options),new qk(t)));var t},e.prototype.hasNameForId=function(t,r){return this.names.has(t)&&this.names.get(t).has(r)},e.prototype.registerName=function(t,r){if(Ps(t),this.names.has(t))this.names.get(t).add(r);else{var i=new Set;i.add(r),this.names.set(t,i)}},e.prototype.insertRules=function(t,r,i){this.registerName(t,r),this.getTag().insertRules(Ps(t),i)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ps(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),rb=/&/g,ob=/^\s*\/\/.*$/gm;function Ry(e,t){return e.map(function(r){return r.type==="rule"&&(r.value="".concat(t," ").concat(r.value),r.value=r.value.replaceAll(",",",".concat(t," ")),r.props=r.props.map(function(i){return"".concat(t," ").concat(i)})),Array.isArray(r.children)&&r.type!=="@keyframes"&&(r.children=Ry(r.children,t)),r})}function ib(e){var t,r,i,l=Wo,a=l.options,u=a===void 0?Wo:a,d=l.plugins,f=d===void 0?xa:d,p=function(v,w,k){return k.startsWith(r)&&k.endsWith(r)&&k.replaceAll(r,"").length>0?".".concat(t):v},g=f.slice();g.push(function(v){v.type===pa&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(rb,r).replace(i,p))}),u.prefix&&g.push(Nk),g.push(Tk);var m=function(v,w,k,S){w===void 0&&(w=""),k===void 0&&(k=""),S===void 0&&(S="&"),t=S,r=w,i=new RegExp("\\".concat(r,"\\b"),"g");var j=v.replace(ob,""),E=Ek(k||w?"".concat(k," ").concat(w," { ").concat(j," }"):j);u.namespace&&(E=Ry(E,u.namespace));var P=[];return Xs(E,Rk(g.concat(Ik(function($){return P.push($)})))),P};return m.hash=f.length?f.reduce(function(v,w){return w.name||jr(15),Do(v,w.name)},ky).toString():"",m}var lb=new na,od=ib(),Iy=Pt.createContext({shouldForwardProp:void 0,styleSheet:lb,stylis:od});Iy.Consumer;Pt.createContext(void 0);function id(){return N.useContext(Iy)}var Ny=function(){function e(t,r){var i=this;this.inject=function(l,a){a===void 0&&(a=od);var u=i.name+a.hash;l.hasNameForId(i.id,u)||l.insertRules(i.id,u,a(i.rules,u,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=r,Md(this,function(){throw jr(12,String(i.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=od),this.name+t.hash},e}(),sb=function(e){return e>="A"&&e<="Z"};function Tm(e){for(var t="",r=0;r<e.length;r++){var i=e[r];if(r===1&&i==="-"&&e[0]==="-")return e;sb(i)?t+="-"+i.toLowerCase():t+=i}return t.startsWith("ms-")?"-"+t:t}var Py=function(e){return e==null||e===!1||e===""},$y=function(e){var t,r,i=[];for(var l in e){var a=e[l];e.hasOwnProperty(l)&&!Py(a)&&(Array.isArray(a)&&a.isCss||eo(a)?i.push("".concat(Tm(l),":"),a,";"):ol(a)?i.push.apply(i,Bo(Bo(["".concat(l," {")],$y(a),!1),["}"],!1)):i.push("".concat(Tm(l),": ").concat((t=l,(r=a)==null||typeof r=="boolean"||r===""?"":typeof r!="number"||r===0||t in Pk||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return i};function Cr(e,t,r,i){if(Py(e))return[];if(Fd(e))return[".".concat(e.styledComponentId)];if(eo(e)){if(!eo(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var l=e(t);return Cr(l,t,r,i)}var a;return e instanceof Ny?r?(e.inject(r,i),[e.getName(i)]):[e]:ol(e)?$y(e):Array.isArray(e)?Array.prototype.concat.apply(xa,e.map(function(u){return Cr(u,t,r,i)})):[e.toString()]}function Ay(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(eo(r)&&!Fd(r))return!1}return!0}var ab=by(ya),ub=function(){function e(t,r,i){this.rules=t,this.staticRulesId="",this.isStatic=(i===void 0||i.isStatic)&&Ay(t),this.componentId=r,this.baseHash=Do(ab,r),this.baseStyle=i,na.registerId(r)}return e.prototype.generateAndInjectStyles=function(t,r,i){var l=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,r,i):"";if(this.isStatic&&!i.hash)if(this.staticRulesId&&r.hasNameForId(this.componentId,this.staticRulesId))l=Gr(l,this.staticRulesId);else{var a=ea(Cr(this.rules,t,r,i)),u=nd(Do(this.baseHash,a)>>>0);if(!r.hasNameForId(this.componentId,u)){var d=i(a,".".concat(u),void 0,this.componentId);r.insertRules(this.componentId,u,d)}l=Gr(l,u),this.staticRulesId=u}else{for(var f=Do(this.baseHash,i.hash),p="",g=0;g<this.rules.length;g++){var m=this.rules[g];if(typeof m=="string")p+=m;else if(m){var v=ea(Cr(m,t,r,i));f=Do(f,v+g),p+=v}}if(p){var w=nd(f>>>0);r.hasNameForId(this.componentId,w)||r.insertRules(this.componentId,w,i(p,".".concat(w),void 0,this.componentId)),l=Gr(l,w)}}return l},e}(),qo=Pt.createContext(void 0);qo.Consumer;function cb(){var e=N.useContext(qo);if(!e)throw jr(18);return e}function Rm(e){var t=Pt.useContext(qo),r=N.useMemo(function(){return function(i,l){if(!i)throw jr(14);if(eo(i)){var a=i(l);return a}if(Array.isArray(i)||typeof i!="object")throw jr(8);return l?yt(yt({},l),i):i}(e.theme,t)},[e.theme,t]);return e.children?Pt.createElement(qo.Provider,{value:r},e.children):null}var jc={};function db(e,t,r){var i=Fd(e),l=e,a=!Ec(e),u=t.attrs,d=u===void 0?xa:u,f=t.componentId,p=f===void 0?function(D,W){var A=typeof D!="string"?"sc":wm(D);jc[A]=(jc[A]||0)+1;var H="".concat(A,"-").concat(Od(ya+A+jc[A]));return W?"".concat(W,"-").concat(H):H}(t.displayName,t.parentComponentId):f,g=t.displayName,m=g===void 0?function(D){return Ec(D)?"styled.".concat(D):"Styled(".concat(Dk(D),")")}(e):g,v=t.displayName&&t.componentId?"".concat(wm(t.displayName),"-").concat(t.componentId):t.componentId||p,w=i&&l.attrs?l.attrs.concat(d).filter(Boolean):d,k=t.shouldForwardProp;if(i&&l.shouldForwardProp){var S=l.shouldForwardProp;if(t.shouldForwardProp){var j=t.shouldForwardProp;k=function(D,W){return S(D,W)&&j(D,W)}}else k=S}var E=new ub(r,v,i?l.componentStyle:void 0);function P(D,W){return function(A,H,K){var le=A.attrs,O=A.componentStyle,ee=A.defaultProps,se=A.foldedComponentIds,ne=A.styledComponentId,re=A.target,U=Pt.useContext(qo),de=id(),ie=A.shouldForwardProp||de.shouldForwardProp,Q=vy(H,U,ee)||Wo,ce=function(ge,ye,Ee){for(var be,je=yt(yt({},ye),{className:void 0,theme:Ee}),Ve=0;Ve<ge.length;Ve+=1){var Ct=eo(be=ge[Ve])?be(je):be;for(var Ne in Ct)je[Ne]=Ne==="className"?Gr(je[Ne],Ct[Ne]):Ne==="style"?yt(yt({},je[Ne]),Ct[Ne]):Ct[Ne]}return ye.className&&(je.className=Gr(je.className,ye.className)),je}(le,H,Q),C=ce.as||re,_={};for(var q in ce)ce[q]===void 0||q[0]==="$"||q==="as"||q==="theme"&&ce.theme===Q||(q==="forwardedAs"?_.as=ce.forwardedAs:ie&&!ie(q,C)||(_[q]=ce[q]));var R=function(ge,ye){var Ee=id(),be=ge.generateAndInjectStyles(ye,Ee.styleSheet,Ee.stylis);return be}(O,ce),ae=Gr(se,ne);return R&&(ae+=" "+R),ce.className&&(ae+=" "+ce.className),_[Ec(C)&&!wy.has(C)?"class":"className"]=ae,_.ref=K,N.createElement(C,_)}($,D,W)}P.displayName=m;var $=Pt.forwardRef(P);return $.attrs=w,$.componentStyle=E,$.displayName=m,$.shouldForwardProp=k,$.foldedComponentIds=i?Gr(l.foldedComponentIds,l.styledComponentId):"",$.styledComponentId=v,$.target=i?l.target:e,Object.defineProperty($,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(D){this._foldedDefaultProps=i?function(W){for(var A=[],H=1;H<arguments.length;H++)A[H-1]=arguments[H];for(var K=0,le=A;K<le.length;K++)rd(W,le[K],!0);return W}({},l.defaultProps,D):D}}),Md($,function(){return".".concat($.styledComponentId)}),a&&jy($,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),$}function Im(e,t){for(var r=[e[0]],i=0,l=t.length;i<l;i+=1)r.push(t[i],e[i+1]);return r}var Nm=function(e){return Object.assign(e,{isCss:!0})};function St(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(eo(e)||ol(e))return Nm(Cr(Im(xa,Bo([e],t,!0))));var i=e;return t.length===0&&i.length===1&&typeof i[0]=="string"?Cr(i):Nm(Cr(Im(i,t)))}function ld(e,t,r){if(r===void 0&&(r=Wo),!t)throw jr(1,t);var i=function(l){for(var a=[],u=1;u<arguments.length;u++)a[u-1]=arguments[u];return e(t,r,St.apply(void 0,Bo([l],a,!1)))};return i.attrs=function(l){return ld(e,t,yt(yt({},r),{attrs:Array.prototype.concat(r.attrs,l).filter(Boolean)}))},i.withConfig=function(l){return ld(e,t,yt(yt({},r),l))},i}var Ly=function(e){return ld(db,e)},T=Ly;wy.forEach(function(e){T[e]=Ly(e)});var fb=function(){function e(t,r){this.rules=t,this.componentId=r,this.isStatic=Ay(t),na.registerId(this.componentId+1)}return e.prototype.createStyles=function(t,r,i,l){var a=l(ea(Cr(this.rules,r,i,l)),""),u=this.componentId+t;i.insertRules(u,u,a)},e.prototype.removeStyles=function(t,r){r.clearRules(this.componentId+t)},e.prototype.renderStyles=function(t,r,i,l){t>2&&na.registerId(this.componentId+t),this.removeStyles(t,i),this.createStyles(t,r,i,l)},e}();function pb(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=St.apply(void 0,Bo([e],t,!1)),l="sc-global-".concat(Od(JSON.stringify(i))),a=new fb(i,l),u=function(f){var p=id(),g=Pt.useContext(qo),m=Pt.useRef(p.styleSheet.allocateGSInstance(l)).current;return p.styleSheet.server&&d(m,f,p.styleSheet,g,p.stylis),Pt.useLayoutEffect(function(){if(!p.styleSheet.server)return d(m,f,p.styleSheet,g,p.stylis),function(){return a.removeStyles(m,p.styleSheet)}},[m,f,p.styleSheet,g,p.stylis]),null};function d(f,p,g,m,v){if(a.isStatic)a.renderStyles(f,Ak,g,v);else{var w=yt(yt({},p),{theme:vy(p,m,u.defaultProps)});a.renderStyles(f,w,g,v)}}return Pt.memo(u)}function Qo(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var i=ea(St.apply(void 0,Bo([e],t,!1))),l=Od(i);return new Ny(l,i)}const hb="/assets/logo-BGHkG1-J.png",mb="/assets/logo-dark-KAsU1C78.png",Pm={name:"light",colors:{background:"#ffffffaa",overlayBackground:"#ffffffdd",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:hb,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},$m={name:"dark",colors:{background:"#00000055",overlayBackground:"#000000cc",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:mb,zIndex:{modal:1e3,menuBackdrop:998,menu:999},transitions:{menuFade:"0.2s ease",menuSlide:"0.2s ease",menuHover:"0.2s ease"}},gb=({usage:e})=>{const[t,r]=N.useState("total"),i=m=>{r(m.target.value)},l=e.usageMetrics[t],a=e.usageMetrics[t].cost||0,u=Bi(a.toFixed(2)),d=Bi(l.rpm),f=Bi(l.rpd),p=Bi(Am(l.tpm)),g=Bi(Am(l.tpd));return y.jsx(xb,{children:y.jsxs(vb,{children:[y.jsx(wb,{onChange:i,value:t,children:Object.keys(e.usageMetrics).map(m=>y.jsx("option",{value:m,children:m},m))}),y.jsxs(Ui,{children:[y.jsx(Vi,{children:"Cost:"}),y.jsxs(Hi,{children:["$",u]},u)]}),y.jsxs(Ui,{children:[y.jsx(Vi,{children:"RPM:"}),y.jsx(Hi,{children:d},d)]}),y.jsxs(Ui,{children:[y.jsx(Vi,{children:"RPD:"}),y.jsx(Hi,{children:f},f)]}),y.jsxs(Ui,{children:[y.jsx(Vi,{children:"TPM:"}),y.jsx(Hi,{children:p},p)]}),y.jsxs(Ui,{children:[y.jsx(Vi,{children:"TPD:"}),y.jsx(Hi,{children:g},g)]})]})})},Am=e=>e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(0)+"K":e.toString(),Bi=e=>{const[t,r]=N.useState(e),i=N.useRef(e);return N.useEffect(()=>{e!==i.current&&(r(e),i.current=e)},[e]),t},yb=Qo`
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
+ `,xb=T.div`
55
+ background-color: ${({theme:e})=>e.colors.background};
56
+ border-radius: 4px;
57
+ padding: 4px 4px;
58
+ box-shadow:
59
+ 0 1px 3px rgba(0, 0, 0, 0.12),
60
+ 0 1px 2px rgba(0, 0, 0, 0.24);
61
+ `,vb=T.div`
62
+ display: flex;
63
+ flex-wrap: wrap;
64
+ gap: 8px;
65
+ align-items: center;
66
+ `,wb=T.select`
67
+ padding: 2px 4px;
68
+ border-radius: 4px;
69
+ border: 1px solid ${({theme:e})=>e.colors.border};
70
+ background-color: ${({theme:e})=>e.colors.background};
71
+ color: ${({theme:e})=>e.colors.text};
72
+ font-size: 0.9em;
73
+ `,Ui=T.div`
74
+ display: flex;
75
+ flex-direction: column;
76
+ align-items: center;
77
+ margin-left: 8px;
78
+ `,Vi=T.span`
79
+ font-size: 0.8em;
80
+ color: ${({theme:e})=>e.colors.textSecondary};
81
+ `,Hi=T.span`
82
+ font-size: 0.9em;
83
+ font-weight: bold;
84
+ color: ${({theme:e})=>e.colors.text};
85
+ animation: ${yb} 0.5s ease-in-out;
86
+ `;function _y(e,t){return function(){return e.apply(t,arguments)}}const{toString:kb}=Object.prototype,{getPrototypeOf:Bd}=Object,{iterator:va,toStringTag:zy}=Symbol,wa=(e=>t=>{const r=kb.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),In=e=>(e=e.toLowerCase(),t=>wa(t)===e),ka=e=>t=>typeof t===e,{isArray:Yo}=Array,Go=ka("undefined");function ul(e){return e!==null&&!Go(e)&&e.constructor!==null&&!Go(e.constructor)&&Gt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Dy=In("ArrayBuffer");function bb(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Dy(e.buffer),t}const Sb=ka("string"),Gt=ka("function"),Oy=ka("number"),cl=e=>e!==null&&typeof e=="object",Cb=e=>e===!0||e===!1,Gs=e=>{if(wa(e)!=="object")return!1;const t=Bd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(zy in e)&&!(va in e)},Eb=e=>{if(!cl(e)||ul(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},jb=In("Date"),Tb=In("File"),Rb=In("Blob"),Ib=In("FileList"),Nb=e=>cl(e)&&Gt(e.pipe),Pb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Gt(e.append)&&((t=wa(e))==="formdata"||t==="object"&&Gt(e.toString)&&e.toString()==="[object FormData]"))},$b=In("URLSearchParams"),[Ab,Lb,_b,zb]=["ReadableStream","Request","Response","Headers"].map(In),Db=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dl(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,l;if(typeof e!="object"&&(e=[e]),Yo(e))for(i=0,l=e.length;i<l;i++)t.call(null,e[i],i,e);else{if(ul(e))return;const a=r?Object.getOwnPropertyNames(e):Object.keys(e),u=a.length;let d;for(i=0;i<u;i++)d=a[i],t.call(null,e[d],d,e)}}function Fy(e,t){if(ul(e))return null;t=t.toLowerCase();const r=Object.keys(e);let i=r.length,l;for(;i-- >0;)if(l=r[i],t===l.toLowerCase())return l;return null}const Jr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,My=e=>!Go(e)&&e!==Jr;function sd(){const{caseless:e,skipUndefined:t}=My(this)&&this||{},r={},i=(l,a)=>{const u=e&&Fy(r,a)||a;Gs(r[u])&&Gs(l)?r[u]=sd(r[u],l):Gs(l)?r[u]=sd({},l):Yo(l)?r[u]=l.slice():(!t||!Go(l))&&(r[u]=l)};for(let l=0,a=arguments.length;l<a;l++)arguments[l]&&dl(arguments[l],i);return r}const Ob=(e,t,r,{allOwnKeys:i}={})=>(dl(t,(l,a)=>{r&&Gt(l)?e[a]=_y(l,r):e[a]=l},{allOwnKeys:i}),e),Fb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Mb=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},Bb=(e,t,r,i)=>{let l,a,u;const d={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),a=l.length;a-- >0;)u=l[a],(!i||i(u,e,t))&&!d[u]&&(t[u]=e[u],d[u]=!0);e=r!==!1&&Bd(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},Ub=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const i=e.indexOf(t,r);return i!==-1&&i===r},Vb=e=>{if(!e)return null;if(Yo(e))return e;let t=e.length;if(!Oy(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},Hb=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Bd(Uint8Array)),Wb=(e,t)=>{const i=(e&&e[va]).call(e);let l;for(;(l=i.next())&&!l.done;){const a=l.value;t.call(e,a[0],a[1])}},qb=(e,t)=>{let r;const i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},Gb=In("HTMLFormElement"),Jb=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,l){return i.toUpperCase()+l}),Lm=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),Kb=In("RegExp"),By=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),i={};dl(r,(l,a)=>{let u;(u=t(l,a,e))!==!1&&(i[a]=u||l)}),Object.defineProperties(e,i)},Qb=e=>{By(e,(t,r)=>{if(Gt(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const i=e[r];if(Gt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},Yb=(e,t)=>{const r={},i=l=>{l.forEach(a=>{r[a]=!0})};return Yo(e)?i(e):i(String(e).split(t)),r},Xb=()=>{},Zb=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function eS(e){return!!(e&&Gt(e.append)&&e[zy]==="FormData"&&e[va])}const tS=e=>{const t=new Array(10),r=(i,l)=>{if(cl(i)){if(t.indexOf(i)>=0)return;if(ul(i))return i;if(!("toJSON"in i)){t[l]=i;const a=Yo(i)?[]:{};return dl(i,(u,d)=>{const f=r(u,l+1);!Go(f)&&(a[d]=f)}),t[l]=void 0,a}}return i};return r(e,0)},nS=In("AsyncFunction"),rS=e=>e&&(cl(e)||Gt(e))&&Gt(e.then)&&Gt(e.catch),Uy=((e,t)=>e?setImmediate:t?((r,i)=>(Jr.addEventListener("message",({source:l,data:a})=>{l===Jr&&a===r&&i.length&&i.shift()()},!1),l=>{i.push(l),Jr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Gt(Jr.postMessage)),oS=typeof queueMicrotask<"u"?queueMicrotask.bind(Jr):typeof process<"u"&&process.nextTick||Uy,iS=e=>e!=null&&Gt(e[va]),V={isArray:Yo,isArrayBuffer:Dy,isBuffer:ul,isFormData:Pb,isArrayBufferView:bb,isString:Sb,isNumber:Oy,isBoolean:Cb,isObject:cl,isPlainObject:Gs,isEmptyObject:Eb,isReadableStream:Ab,isRequest:Lb,isResponse:_b,isHeaders:zb,isUndefined:Go,isDate:jb,isFile:Tb,isBlob:Rb,isRegExp:Kb,isFunction:Gt,isStream:Nb,isURLSearchParams:$b,isTypedArray:Hb,isFileList:Ib,forEach:dl,merge:sd,extend:Ob,trim:Db,stripBOM:Fb,inherits:Mb,toFlatObject:Bb,kindOf:wa,kindOfTest:In,endsWith:Ub,toArray:Vb,forEachEntry:Wb,matchAll:qb,isHTMLForm:Gb,hasOwnProperty:Lm,hasOwnProp:Lm,reduceDescriptors:By,freezeMethods:Qb,toObjectSet:Yb,toCamelCase:Jb,noop:Xb,toFiniteNumber:Zb,findKey:Fy,global:Jr,isContextDefined:My,isSpecCompliantForm:eS,toJSONObject:tS,isAsyncFn:nS,isThenable:rS,setImmediate:Uy,asap:oS,isIterable:iS};function Te(e,t,r,i,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),l&&(this.response=l,this.status=l.status?l.status:null)}V.inherits(Te,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:V.toJSONObject(this.config),code:this.code,status:this.status}}});const Vy=Te.prototype,Hy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Hy[e]={value:e}});Object.defineProperties(Te,Hy);Object.defineProperty(Vy,"isAxiosError",{value:!0});Te.from=(e,t,r,i,l,a)=>{const u=Object.create(Vy);V.toFlatObject(e,u,function(g){return g!==Error.prototype},p=>p!=="isAxiosError");const d=e&&e.message?e.message:"Error",f=t==null&&e?e.code:t;return Te.call(u,d,f,r,i,l),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",a&&Object.assign(u,a),u};const lS=null;function ad(e){return V.isPlainObject(e)||V.isArray(e)}function Wy(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function _m(e,t,r){return e?e.concat(t).map(function(l,a){return l=Wy(l),!r&&a?"["+l+"]":l}).join(r?".":""):t}function sS(e){return V.isArray(e)&&!e.some(ad)}const aS=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function ba(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,j){return!V.isUndefined(j[S])});const i=r.metaTokens,l=r.visitor||g,a=r.dots,u=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(l))throw new TypeError("visitor must be a function");function p(k){if(k===null)return"";if(V.isDate(k))return k.toISOString();if(V.isBoolean(k))return k.toString();if(!f&&V.isBlob(k))throw new Te("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(k)||V.isTypedArray(k)?f&&typeof Blob=="function"?new Blob([k]):Buffer.from(k):k}function g(k,S,j){let E=k;if(k&&!j&&typeof k=="object"){if(V.endsWith(S,"{}"))S=i?S:S.slice(0,-2),k=JSON.stringify(k);else if(V.isArray(k)&&sS(k)||(V.isFileList(k)||V.endsWith(S,"[]"))&&(E=V.toArray(k)))return S=Wy(S),E.forEach(function($,D){!(V.isUndefined($)||$===null)&&t.append(u===!0?_m([S],D,a):u===null?S:S+"[]",p($))}),!1}return ad(k)?!0:(t.append(_m(j,S,a),p(k)),!1)}const m=[],v=Object.assign(aS,{defaultVisitor:g,convertValue:p,isVisitable:ad});function w(k,S){if(!V.isUndefined(k)){if(m.indexOf(k)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(k),V.forEach(k,function(E,P){(!(V.isUndefined(E)||E===null)&&l.call(t,E,V.isString(P)?P.trim():P,S,v))===!0&&w(E,S?S.concat(P):[P])}),m.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function zm(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ud(e,t){this._pairs=[],e&&ba(e,this,t)}const qy=Ud.prototype;qy.append=function(t,r){this._pairs.push([t,r])};qy.toString=function(t){const r=t?function(i){return t.call(this,i,zm)}:zm;return this._pairs.map(function(l){return r(l[0])+"="+r(l[1])},"").join("&")};function uS(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Gy(e,t,r){if(!t)return e;const i=r&&r.encode||uS;V.isFunction(r)&&(r={serialize:r});const l=r&&r.serialize;let a;if(l?a=l(t,r):a=V.isURLSearchParams(t)?t.toString():new Ud(t,r).toString(i),a){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Dm{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(i){i!==null&&t(i)})}}const Jy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},cS=typeof URLSearchParams<"u"?URLSearchParams:Ud,dS=typeof FormData<"u"?FormData:null,fS=typeof Blob<"u"?Blob:null,pS={isBrowser:!0,classes:{URLSearchParams:cS,FormData:dS,Blob:fS},protocols:["http","https","file","blob","url","data"]},Vd=typeof window<"u"&&typeof document<"u",ud=typeof navigator=="object"&&navigator||void 0,hS=Vd&&(!ud||["ReactNative","NativeScript","NS"].indexOf(ud.product)<0),mS=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",gS=Vd&&window.location.href||"http://localhost",yS=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vd,hasStandardBrowserEnv:hS,hasStandardBrowserWebWorkerEnv:mS,navigator:ud,origin:gS},Symbol.toStringTag,{value:"Module"})),Nt={...yS,...pS};function xS(e,t){return ba(e,new Nt.classes.URLSearchParams,{visitor:function(r,i,l,a){return Nt.isNode&&V.isBuffer(r)?(this.append(i,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function vS(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function wS(e){const t={},r=Object.keys(e);let i;const l=r.length;let a;for(i=0;i<l;i++)a=r[i],t[a]=e[a];return t}function Ky(e){function t(r,i,l,a){let u=r[a++];if(u==="__proto__")return!0;const d=Number.isFinite(+u),f=a>=r.length;return u=!u&&V.isArray(l)?l.length:u,f?(V.hasOwnProp(l,u)?l[u]=[l[u],i]:l[u]=i,!d):((!l[u]||!V.isObject(l[u]))&&(l[u]=[]),t(r,i,l[u],a)&&V.isArray(l[u])&&(l[u]=wS(l[u])),!d)}if(V.isFormData(e)&&V.isFunction(e.entries)){const r={};return V.forEachEntry(e,(i,l)=>{t(vS(i),l,r,0)}),r}return null}function kS(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}const fl={transitional:Jy,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const i=r.getContentType()||"",l=i.indexOf("application/json")>-1,a=V.isObject(t);if(a&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return l?JSON.stringify(Ky(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let d;if(a){if(i.indexOf("application/x-www-form-urlencoded")>-1)return xS(t,this.formSerializer).toString();if((d=V.isFileList(t))||i.indexOf("multipart/form-data")>-1){const f=this.env&&this.env.FormData;return ba(d?{"files[]":t}:t,f&&new f,this.formSerializer)}}return a||l?(r.setContentType("application/json",!1),kS(t)):t}],transformResponse:[function(t){const r=this.transitional||fl.transitional,i=r&&r.forcedJSONParsing,l=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(i&&!this.responseType||l)){const u=!(r&&r.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(d){if(u)throw d.name==="SyntaxError"?Te.from(d,Te.ERR_BAD_RESPONSE,this,null,this.response):d}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{fl.headers[e]={}});const bS=V.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"]),SS=e=>{const t={};let r,i,l;return e&&e.split(`
87
+ `).forEach(function(u){l=u.indexOf(":"),r=u.substring(0,l).trim().toLowerCase(),i=u.substring(l+1).trim(),!(!r||t[r]&&bS[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},Om=Symbol("internals");function Wi(e){return e&&String(e).trim().toLowerCase()}function Js(e){return e===!1||e==null?e:V.isArray(e)?e.map(Js):String(e)}function CS(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}const ES=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Tc(e,t,r,i,l){if(V.isFunction(i))return i.call(this,t,r);if(l&&(t=r),!!V.isString(t)){if(V.isString(i))return t.indexOf(i)!==-1;if(V.isRegExp(i))return i.test(t)}}function jS(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function TS(e,t){const r=V.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(l,a,u){return this[i].call(this,t,l,a,u)},configurable:!0})})}let Jt=class{constructor(t){t&&this.set(t)}set(t,r,i){const l=this;function a(d,f,p){const g=Wi(f);if(!g)throw new Error("header name must be a non-empty string");const m=V.findKey(l,g);(!m||l[m]===void 0||p===!0||p===void 0&&l[m]!==!1)&&(l[m||f]=Js(d))}const u=(d,f)=>V.forEach(d,(p,g)=>a(p,g,f));if(V.isPlainObject(t)||t instanceof this.constructor)u(t,r);else if(V.isString(t)&&(t=t.trim())&&!ES(t))u(SS(t),r);else if(V.isObject(t)&&V.isIterable(t)){let d={},f,p;for(const g of t){if(!V.isArray(g))throw TypeError("Object iterator must return a key-value pair");d[p=g[0]]=(f=d[p])?V.isArray(f)?[...f,g[1]]:[f,g[1]]:g[1]}u(d,r)}else t!=null&&a(r,t,i);return this}get(t,r){if(t=Wi(t),t){const i=V.findKey(this,t);if(i){const l=this[i];if(!r)return l;if(r===!0)return CS(l);if(V.isFunction(r))return r.call(this,l,i);if(V.isRegExp(r))return r.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=Wi(t),t){const i=V.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||Tc(this,this[i],i,r)))}return!1}delete(t,r){const i=this;let l=!1;function a(u){if(u=Wi(u),u){const d=V.findKey(i,u);d&&(!r||Tc(i,i[d],d,r))&&(delete i[d],l=!0)}}return V.isArray(t)?t.forEach(a):a(t),l}clear(t){const r=Object.keys(this);let i=r.length,l=!1;for(;i--;){const a=r[i];(!t||Tc(this,this[a],a,t,!0))&&(delete this[a],l=!0)}return l}normalize(t){const r=this,i={};return V.forEach(this,(l,a)=>{const u=V.findKey(i,a);if(u){r[u]=Js(l),delete r[a];return}const d=t?jS(a):String(a).trim();d!==a&&delete r[a],r[d]=Js(l),i[d]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return V.forEach(this,(i,l)=>{i!=null&&i!==!1&&(r[l]=t&&V.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(`
88
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const i=new this(t);return r.forEach(l=>i.set(l)),i}static accessor(t){const i=(this[Om]=this[Om]={accessors:{}}).accessors,l=this.prototype;function a(u){const d=Wi(u);i[d]||(TS(l,u),i[d]=!0)}return V.isArray(t)?t.forEach(a):a(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(Jt.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});V.freezeMethods(Jt);function Rc(e,t){const r=this||fl,i=t||r,l=Jt.from(i.headers);let a=i.data;return V.forEach(e,function(d){a=d.call(r,a,l.normalize(),t?t.status:void 0)}),l.normalize(),a}function Qy(e){return!!(e&&e.__CANCEL__)}function Xo(e,t,r){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(Xo,Te,{__CANCEL__:!0});function Yy(e,t,r){const i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new Te("Request failed with status code "+r.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function RS(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function IS(e,t){e=e||10;const r=new Array(e),i=new Array(e);let l=0,a=0,u;return t=t!==void 0?t:1e3,function(f){const p=Date.now(),g=i[a];u||(u=p),r[l]=f,i[l]=p;let m=a,v=0;for(;m!==l;)v+=r[m++],m=m%e;if(l=(l+1)%e,l===a&&(a=(a+1)%e),p-u<t)return;const w=g&&p-g;return w?Math.round(v*1e3/w):void 0}}function NS(e,t){let r=0,i=1e3/t,l,a;const u=(p,g=Date.now())=>{r=g,l=null,a&&(clearTimeout(a),a=null),e(...p)};return[(...p)=>{const g=Date.now(),m=g-r;m>=i?u(p,g):(l=p,a||(a=setTimeout(()=>{a=null,u(l)},i-m)))},()=>l&&u(l)]}const ra=(e,t,r=3)=>{let i=0;const l=IS(50,250);return NS(a=>{const u=a.loaded,d=a.lengthComputable?a.total:void 0,f=u-i,p=l(f),g=u<=d;i=u;const m={loaded:u,total:d,progress:d?u/d:void 0,bytes:f,rate:p||void 0,estimated:p&&d&&g?(d-u)/p:void 0,event:a,lengthComputable:d!=null,[t?"download":"upload"]:!0};e(m)},r)},Fm=(e,t)=>{const r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},Mm=e=>(...t)=>V.asap(()=>e(...t)),PS=Nt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Nt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Nt.origin),Nt.navigator&&/(msie|trident)/i.test(Nt.navigator.userAgent)):()=>!0,$S=Nt.hasStandardBrowserEnv?{write(e,t,r,i,l,a){const u=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&u.push("expires="+new Date(r).toGMTString()),V.isString(i)&&u.push("path="+i),V.isString(l)&&u.push("domain="+l),a===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function AS(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LS(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Xy(e,t,r){let i=!AS(t);return e&&(i||r==!1)?LS(e,t):t}const Bm=e=>e instanceof Jt?{...e}:e;function to(e,t){t=t||{};const r={};function i(p,g,m,v){return V.isPlainObject(p)&&V.isPlainObject(g)?V.merge.call({caseless:v},p,g):V.isPlainObject(g)?V.merge({},g):V.isArray(g)?g.slice():g}function l(p,g,m,v){if(V.isUndefined(g)){if(!V.isUndefined(p))return i(void 0,p,m,v)}else return i(p,g,m,v)}function a(p,g){if(!V.isUndefined(g))return i(void 0,g)}function u(p,g){if(V.isUndefined(g)){if(!V.isUndefined(p))return i(void 0,p)}else return i(void 0,g)}function d(p,g,m){if(m in t)return i(p,g);if(m in e)return i(void 0,p)}const f={url:a,method:a,data:a,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:d,headers:(p,g,m)=>l(Bm(p),Bm(g),m,!0)};return V.forEach(Object.keys({...e,...t}),function(g){const m=f[g]||l,v=m(e[g],t[g],g);V.isUndefined(v)&&m!==d||(r[g]=v)}),r}const Zy=e=>{const t=to({},e);let{data:r,withXSRFToken:i,xsrfHeaderName:l,xsrfCookieName:a,headers:u,auth:d}=t;if(t.headers=u=Jt.from(u),t.url=Gy(Xy(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),d&&u.set("Authorization","Basic "+btoa((d.username||"")+":"+(d.password?unescape(encodeURIComponent(d.password)):""))),V.isFormData(r)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(V.isFunction(r.getHeaders)){const f=r.getHeaders(),p=["content-type","content-length"];Object.entries(f).forEach(([g,m])=>{p.includes(g.toLowerCase())&&u.set(g,m)})}}if(Nt.hasStandardBrowserEnv&&(i&&V.isFunction(i)&&(i=i(t)),i||i!==!1&&PS(t.url))){const f=l&&a&&$S.read(a);f&&u.set(l,f)}return t},_S=typeof XMLHttpRequest<"u",zS=_S&&function(e){return new Promise(function(r,i){const l=Zy(e);let a=l.data;const u=Jt.from(l.headers).normalize();let{responseType:d,onUploadProgress:f,onDownloadProgress:p}=l,g,m,v,w,k;function S(){w&&w(),k&&k(),l.cancelToken&&l.cancelToken.unsubscribe(g),l.signal&&l.signal.removeEventListener("abort",g)}let j=new XMLHttpRequest;j.open(l.method.toUpperCase(),l.url,!0),j.timeout=l.timeout;function E(){if(!j)return;const $=Jt.from("getAllResponseHeaders"in j&&j.getAllResponseHeaders()),W={data:!d||d==="text"||d==="json"?j.responseText:j.response,status:j.status,statusText:j.statusText,headers:$,config:e,request:j};Yy(function(H){r(H),S()},function(H){i(H),S()},W),j=null}"onloadend"in j?j.onloadend=E:j.onreadystatechange=function(){!j||j.readyState!==4||j.status===0&&!(j.responseURL&&j.responseURL.indexOf("file:")===0)||setTimeout(E)},j.onabort=function(){j&&(i(new Te("Request aborted",Te.ECONNABORTED,e,j)),j=null)},j.onerror=function(D){const W=D&&D.message?D.message:"Network Error",A=new Te(W,Te.ERR_NETWORK,e,j);A.event=D||null,i(A),j=null},j.ontimeout=function(){let D=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const W=l.transitional||Jy;l.timeoutErrorMessage&&(D=l.timeoutErrorMessage),i(new Te(D,W.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,j)),j=null},a===void 0&&u.setContentType(null),"setRequestHeader"in j&&V.forEach(u.toJSON(),function(D,W){j.setRequestHeader(W,D)}),V.isUndefined(l.withCredentials)||(j.withCredentials=!!l.withCredentials),d&&d!=="json"&&(j.responseType=l.responseType),p&&([v,k]=ra(p,!0),j.addEventListener("progress",v)),f&&j.upload&&([m,w]=ra(f),j.upload.addEventListener("progress",m),j.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(g=$=>{j&&(i(!$||$.type?new Xo(null,e,j):$),j.abort(),j=null)},l.cancelToken&&l.cancelToken.subscribe(g),l.signal&&(l.signal.aborted?g():l.signal.addEventListener("abort",g)));const P=RS(l.url);if(P&&Nt.protocols.indexOf(P)===-1){i(new Te("Unsupported protocol "+P+":",Te.ERR_BAD_REQUEST,e));return}j.send(a||null)})},DS=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,l;const a=function(p){if(!l){l=!0,d();const g=p instanceof Error?p:this.reason;i.abort(g instanceof Te?g:new Xo(g instanceof Error?g.message:g))}};let u=t&&setTimeout(()=>{u=null,a(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const d=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(a):p.removeEventListener("abort",a)}),e=null)};e.forEach(p=>p.addEventListener("abort",a));const{signal:f}=i;return f.unsubscribe=()=>V.asap(d),f}},OS=function*(e,t){let r=e.byteLength;if(r<t){yield e;return}let i=0,l;for(;i<r;)l=i+t,yield e.slice(i,l),i=l},FS=async function*(e,t){for await(const r of MS(e))yield*OS(r,t)},MS=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:r,value:i}=await t.read();if(r)break;yield i}}finally{await t.cancel()}},Um=(e,t,r,i)=>{const l=FS(e,t);let a=0,u,d=f=>{u||(u=!0,i&&i(f))};return new ReadableStream({async pull(f){try{const{done:p,value:g}=await l.next();if(p){d(),f.close();return}let m=g.byteLength;if(r){let v=a+=m;r(v)}f.enqueue(new Uint8Array(g))}catch(p){throw d(p),p}},cancel(f){return d(f),l.return()}},{highWaterMark:2})},Vm=64*1024,{isFunction:$s}=V,ex=(({fetch:e,Request:t,Response:r})=>({fetch:e,Request:t,Response:r}))(V.global),{ReadableStream:Hm,TextEncoder:Wm}=V.global,qm=(e,...t)=>{try{return!!e(...t)}catch{return!1}},BS=e=>{const{fetch:t,Request:r,Response:i}=Object.assign({},ex,e),l=$s(t),a=$s(r),u=$s(i);if(!l)return!1;const d=l&&$s(Hm),f=l&&(typeof Wm=="function"?(k=>S=>k.encode(S))(new Wm):async k=>new Uint8Array(await new r(k).arrayBuffer())),p=a&&d&&qm(()=>{let k=!1;const S=new r(Nt.origin,{body:new Hm,method:"POST",get duplex(){return k=!0,"half"}}).headers.has("Content-Type");return k&&!S}),g=u&&d&&qm(()=>V.isReadableStream(new i("").body)),m={stream:g&&(k=>k.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(k=>{!m[k]&&(m[k]=(S,j)=>{let E=S&&S[k];if(E)return E.call(S);throw new Te(`Response type '${k}' is not supported`,Te.ERR_NOT_SUPPORT,j)})});const v=async k=>{if(k==null)return 0;if(V.isBlob(k))return k.size;if(V.isSpecCompliantForm(k))return(await new r(Nt.origin,{method:"POST",body:k}).arrayBuffer()).byteLength;if(V.isArrayBufferView(k)||V.isArrayBuffer(k))return k.byteLength;if(V.isURLSearchParams(k)&&(k=k+""),V.isString(k))return(await f(k)).byteLength},w=async(k,S)=>{const j=V.toFiniteNumber(k.getContentLength());return j??v(S)};return async k=>{let{url:S,method:j,data:E,signal:P,cancelToken:$,timeout:D,onDownloadProgress:W,onUploadProgress:A,responseType:H,headers:K,withCredentials:le="same-origin",fetchOptions:O}=Zy(k);H=H?(H+"").toLowerCase():"text";let ee=DS([P,$&&$.toAbortSignal()],D),se=null;const ne=ee&&ee.unsubscribe&&(()=>{ee.unsubscribe()});let re;try{if(A&&p&&j!=="get"&&j!=="head"&&(re=await w(K,E))!==0){let C=new r(S,{method:"POST",body:E,duplex:"half"}),_;if(V.isFormData(E)&&(_=C.headers.get("content-type"))&&K.setContentType(_),C.body){const[q,R]=Fm(re,ra(Mm(A)));E=Um(C.body,Vm,q,R)}}V.isString(le)||(le=le?"include":"omit");const U=a&&"credentials"in r.prototype,de={...O,signal:ee,method:j.toUpperCase(),headers:K.normalize().toJSON(),body:E,duplex:"half",credentials:U?le:void 0};se=a&&new r(S,de);let ie=await(a?t(se,O):t(S,de));const Q=g&&(H==="stream"||H==="response");if(g&&(W||Q&&ne)){const C={};["status","statusText","headers"].forEach(ae=>{C[ae]=ie[ae]});const _=V.toFiniteNumber(ie.headers.get("content-length")),[q,R]=W&&Fm(_,ra(Mm(W),!0))||[];ie=new i(Um(ie.body,Vm,q,()=>{R&&R(),ne&&ne()}),C)}H=H||"text";let ce=await m[V.findKey(m,H)||"text"](ie,k);return!Q&&ne&&ne(),await new Promise((C,_)=>{Yy(C,_,{data:ce,headers:Jt.from(ie.headers),status:ie.status,statusText:ie.statusText,config:k,request:se})})}catch(U){throw ne&&ne(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,k,se),{cause:U.cause||U}):Te.from(U,U&&U.code,k,se)}}},US=new Map,tx=e=>{let t=V.merge.call({skipUndefined:!0},ex,e?e.env:null);const{fetch:r,Request:i,Response:l}=t,a=[i,l,r];let u=a.length,d=u,f,p,g=US;for(;d--;)f=a[d],p=g.get(f),p===void 0&&g.set(f,p=d?new Map:BS(t)),g=p;return p};tx();const cd={http:lS,xhr:zS,fetch:{get:tx}};V.forEach(cd,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Gm=e=>`- ${e}`,VS=e=>V.isFunction(e)||e===null||e===!1,nx={getAdapter:(e,t)=>{e=V.isArray(e)?e:[e];const{length:r}=e;let i,l;const a={};for(let u=0;u<r;u++){i=e[u];let d;if(l=i,!VS(i)&&(l=cd[(d=String(i)).toLowerCase()],l===void 0))throw new Te(`Unknown adapter '${d}'`);if(l&&(V.isFunction(l)||(l=l.get(t))))break;a[d||"#"+u]=l}if(!l){const u=Object.entries(a).map(([f,p])=>`adapter ${f} `+(p===!1?"is not supported by the environment":"is not available in the build"));let d=r?u.length>1?`since :
89
+ `+u.map(Gm).join(`
90
+ `):" "+Gm(u[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+d,"ERR_NOT_SUPPORT")}return l},adapters:cd};function Ic(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xo(null,e)}function Jm(e){return Ic(e),e.headers=Jt.from(e.headers),e.data=Rc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),nx.getAdapter(e.adapter||fl.adapter,e)(e).then(function(i){return Ic(e),i.data=Rc.call(e,e.transformResponse,i),i.headers=Jt.from(i.headers),i},function(i){return Qy(i)||(Ic(e),i&&i.response&&(i.response.data=Rc.call(e,e.transformResponse,i.response),i.response.headers=Jt.from(i.response.headers))),Promise.reject(i)})}const rx="1.12.0",Sa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Sa[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});const Km={};Sa.transitional=function(t,r,i){function l(a,u){return"[Axios v"+rx+"] Transitional option '"+a+"'"+u+(i?". "+i:"")}return(a,u,d)=>{if(t===!1)throw new Te(l(u," has been removed"+(r?" in "+r:"")),Te.ERR_DEPRECATED);return r&&!Km[u]&&(Km[u]=!0,console.warn(l(u," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,u,d):!0}};Sa.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function HS(e,t,r){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const i=Object.keys(e);let l=i.length;for(;l-- >0;){const a=i[l],u=t[a];if(u){const d=e[a],f=d===void 0||u(d,a,e);if(f!==!0)throw new Te("option "+a+" must be "+f,Te.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Te("Unknown option "+a,Te.ERR_BAD_OPTION)}}const Ks={assertOptions:HS,validators:Sa},On=Ks.validators;let Qr=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Dm,response:new Dm}}async request(t,r){try{return await this._request(t,r)}catch(i){if(i instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const a=l.stack?l.stack.replace(/^.+\n/,""):"";try{i.stack?a&&!String(i.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(i.stack+=`
91
+ `+a):i.stack=a}catch{}}throw i}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=to(this.defaults,r);const{transitional:i,paramsSerializer:l,headers:a}=r;i!==void 0&&Ks.assertOptions(i,{silentJSONParsing:On.transitional(On.boolean),forcedJSONParsing:On.transitional(On.boolean),clarifyTimeoutError:On.transitional(On.boolean)},!1),l!=null&&(V.isFunction(l)?r.paramsSerializer={serialize:l}:Ks.assertOptions(l,{encode:On.function,serialize:On.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ks.assertOptions(r,{baseUrl:On.spelling("baseURL"),withXsrfToken:On.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let u=a&&V.merge(a.common,a[r.method]);a&&V.forEach(["delete","get","head","post","put","patch","common"],k=>{delete a[k]}),r.headers=Jt.concat(u,a);const d=[];let f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(r)===!1||(f=f&&S.synchronous,d.unshift(S.fulfilled,S.rejected))});const p=[];this.interceptors.response.forEach(function(S){p.push(S.fulfilled,S.rejected)});let g,m=0,v;if(!f){const k=[Jm.bind(this),void 0];for(k.unshift(...d),k.push(...p),v=k.length,g=Promise.resolve(r);m<v;)g=g.then(k[m++],k[m++]);return g}v=d.length;let w=r;for(m=0;m<v;){const k=d[m++],S=d[m++];try{w=k(w)}catch(j){S.call(this,j);break}}try{g=Jm.call(this,w)}catch(k){return Promise.reject(k)}for(m=0,v=p.length;m<v;)g=g.then(p[m++],p[m++]);return g}getUri(t){t=to(this.defaults,t);const r=Xy(t.baseURL,t.url,t.allowAbsoluteUrls);return Gy(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Qr.prototype[t]=function(r,i){return this.request(to(i||{},{method:t,url:r,data:(i||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(i){return function(a,u,d){return this.request(to(d||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:a,data:u}))}}Qr.prototype[t]=r(),Qr.prototype[t+"Form"]=r(!0)});let WS=class ox{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(a){r=a});const i=this;this.promise.then(l=>{if(!i._listeners)return;let a=i._listeners.length;for(;a-- >0;)i._listeners[a](l);i._listeners=null}),this.promise.then=l=>{let a;const u=new Promise(d=>{i.subscribe(d),a=d}).then(l);return u.cancel=function(){i.unsubscribe(a)},u},t(function(a,u,d){i.reason||(i.reason=new Xo(a,u,d),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new ox(function(l){t=l}),cancel:t}}};function qS(e){return function(r){return e.apply(null,r)}}function GS(e){return V.isObject(e)&&e.isAxiosError===!0}const dd={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(dd).forEach(([e,t])=>{dd[t]=e});function ix(e){const t=new Qr(e),r=_y(Qr.prototype.request,t);return V.extend(r,Qr.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(l){return ix(to(e,l))},r}const Ze=ix(fl);Ze.Axios=Qr;Ze.CanceledError=Xo;Ze.CancelToken=WS;Ze.isCancel=Qy;Ze.VERSION=rx;Ze.toFormData=ba;Ze.AxiosError=Te;Ze.Cancel=Ze.CanceledError;Ze.all=function(t){return Promise.all(t)};Ze.spread=qS;Ze.isAxiosError=GS;Ze.mergeConfig=to;Ze.AxiosHeaders=Jt;Ze.formToJSON=e=>Ky(V.isHTMLForm(e)?new FormData(e):e);Ze.getAdapter=nx.getAdapter;Ze.HttpStatusCode=dd;Ze.default=Ze;const{Axios:NL,AxiosError:PL,CanceledError:$L,isCancel:AL,CancelToken:LL,VERSION:_L,all:zL,Cancel:DL,isAxiosError:OL,spread:FL,toFormData:ML,AxiosHeaders:BL,HttpStatusCode:UL,formToJSON:VL,getAdapter:HL,mergeConfig:WL}=Ze,JS="/api",et=Ze.create({baseURL:JS,headers:{"Content-Type":"application/json"}}),KS=async()=>{try{const t=await(await fetch("/")).text();return new DOMParser().parseFromString(t,"text/html").body.getAttribute("data-security-token")}catch(e){return console.error("Error fetching security token:",e),null}};et.interceptors.request.use(e=>{var r;const t=(r=document.querySelector("body[data-security-token]"))==null?void 0:r.getAttribute("data-security-token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));et.interceptors.response.use(e=>e,async e=>{var r;const t=e.config;if(e.response&&e.response.status===401&&!t._retry){t._retry=!0;const i=await KS();if(i)return t.headers.Authorization=`Bearer ${i}`,(r=document.querySelector("body[data-security-token]"))==null||r.setAttribute("data-security-token",i),et(t)}return Promise.reject(e)});const QS=async(e,t)=>{try{if(!e||!t.trim())throw new Error("Invalid message ID or content");if((await et.post("/edit-message",{messageId:e,newContent:t})).status!==200)throw new Error("Failed to edit message")}catch(r){throw Ze.isAxiosError(r)?r.response?new Error(r.response.data.error||"Failed to edit message"):r.request?new Error("No response received from server"):new Error(`Error setting up request: ${r.message}`):r instanceof Error?r:new Error("An unexpected error occurred while editing the message")}},Qm=async()=>(await et.get("/content")).data.content,YS=async(e,t,r)=>{const i=new FormData;i.append("prompt",e),i.append("options",JSON.stringify(t)),r&&r.length>0&&r.forEach(l=>{i.append("images",l)});try{await et.post("/execute-codegen",i,{headers:{"Content-Type":"multipart/form-data"}})}catch(l){throw Ze.isAxiosError(l)?l.response?new Error(`Server error: ${l.response.data.message||"Unknown error"}`):l.request?new Error("No response received from server"):new Error(`Error setting up request: ${l.message}`):new Error("An unexpected error occurred")}},lx=async(e,t,r,i)=>{try{if(!e||typeof e!="string")throw new Error("Prompt must be a string");if(typeof t!="number"||t<0||t>2)throw new Error("Temperature must be a number between 0 and 2");if(!["default","cheap","reasoning","lite"].includes(r))throw new Error("Model type must be one of: default, cheap, reasoning");return(await et.post("/generate-content",{prompt:e,temperature:t,modelType:r,options:i})).data.result}catch(l){if(Ze.isAxiosError(l))if(l.response){const a=l.response.data.error||"Unknown server error";throw new Error(`Content generation failed: ${a}`)}else throw l.request?new Error("No response received from server during content generation"):new Error(`Request setup failed: ${l.message}`);throw l instanceof Error?l:new Error("An unexpected error occurred during content generation")}},fd=async()=>(await et.get("/execution-status")).data.status,XS=async()=>{await et.post("/interrupt-execution")},sx=async()=>await et.post("/interrupt-execution",{scope:"container-command"}),ZS=async()=>{await et.post("/pause-execution")},eC=async()=>{await et.post("/resume-execution")},pd=async()=>(await et.get("/current-question")).data.question,tC=async(e,t,r,i,l,a,u)=>{const d=new FormData;d.append("questionId",e),d.append("answer",t),r!==void 0&&d.append("confirmed",String(r)),i&&d.append("options",JSON.stringify(i)),l&&l.length>0&&l.forEach(f=>{d.append("images",f)}),a&&d.append("selectedActionType",a),u&&d.append("structuredResponse",JSON.stringify(u)),await et.post("/answer-question",d,{headers:{"Content-Type":"multipart/form-data"}})},Ym=async()=>(await et.get("/usage")).data,nC=async()=>(await et.get("/default-codegen-options")).data.options,rC=async()=>(await et.get("/rcconfig")).data.rcConfig,oC=async(e,t)=>{await et.post(`/app-context/${e}`,{value:t})},iC=async e=>{await et.delete(`/delete-iteration/${e}`)},Hd=async()=>(await et.get("/available-ai-services")).data.services,lC=async()=>(await et.get("/action-type-options")).data.options,ax=async()=>{try{return(await et.get("/service-configurations")).data.configurations}catch{throw new Error("Failed to fetch service configurations")}},sC=async e=>{await et.post("/service-configuration",e)};et.interceptors.response.use(e=>e,e=>(console.error("API request failed:",e),e.response?(console.error("Error data:",e.response.data),console.error("Error status:",e.response.status),console.error("Error headers:",e.response.headers)):e.request?console.error("No response received:",e.request):console.error("Error message:",e.message),Promise.reject(e)));function pl(e,t){const r=new CustomEvent(e,{bubbles:!0,detail:t});document.dispatchEvent(r)}function hl(e,t){N.useEffect(()=>{const r=i=>{t(i.detail)};return document.addEventListener(e,r,!1),()=>{document.removeEventListener(e,r,!1)}},[e,t])}function aC(e,t){if(!(t!=null&&t.modelOverrides))return e;const r=[];return t.modelOverrides.default&&r.push(t.modelOverrides.default),t.modelOverrides.cheap&&r.push(t.modelOverrides.cheap),r.length>0?`${e} (${r.join("/")})`:e}function ux(){const[e,t]=N.useState([]),[r,i]=N.useState(null);return N.useEffect(()=>{(async()=>{try{const a=await Hd();t(a)}catch(a){console.error("Error fetching AI services:",a),i("Failed to fetch available AI services.")}})()},[]),[e,r]}function cx(){const[e,t]=N.useState({services:[],isLoading:!0,error:null});return N.useEffect(()=>{(async()=>{try{const[i,l]=await Promise.all([Hd(),ax()]),a=i.map(u=>({service:u,config:l[u],displayName:aC(u,l[u])}));t({services:a,isLoading:!1,error:null})}catch(i){console.error("Error fetching services with configurations:",i),t(l=>({...l,isLoading:!1,error:"Failed to fetch service configurations."}))}})()},[]),e}const Tr=T.button`
92
+ background-color: transparent;
93
+ color: ${({theme:e})=>e.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:e})=>e.colors.buttonHoverBg};
107
+ }
108
+
109
+ &:focus {
110
+ outline: none;
111
+ box-shadow: 0 0 0 2px ${({theme:e})=>e.colors.primary};
112
+ }
113
+ `;function dx(){pl("openContentGenerationModel")}function uC(){return y.jsx(Tr,{onClick:dx,"aria-label":"Content generation modal",children:"✨"})}const cC=({currentService:e})=>{const[t,r]=N.useState(""),[i,l]=N.useState(e),[a,u]=N.useState(.7),[d,f]=N.useState("default"),[p,g]=N.useState(),[m,v]=N.useState(!1),[w,k]=N.useState(null),[S,j]=N.useState(null),[E,P]=N.useState(!1),$=()=>P(!1),[D]=ux(),{services:W,isLoading:A}=cx();if(hl("openContentGenerationModel",()=>P(!0)),N.useEffect(()=>{var le;const K=(le=W.find(O=>O.service===i))==null?void 0:le.config;K!=null&&K.modelOverrides?g(K.modelOverrides[d]):g(void 0)},[i,d,W]),!E)return null;const H=async K=>{K.preventDefault(),v(!0),k(null),j(null);try{const le=await lx(t,a,d,{aiService:i,askQuestion:!1});j(le)}catch(le){k(le instanceof Error?le.message:"An unexpected error occurred")}finally{v(!1)}};return y.jsx(dC,{onClick:K=>K.target===K.currentTarget&&$(),children:y.jsxs(fC,{children:[y.jsx(pC,{onClick:$,children:"×"}),y.jsx("h2",{children:"Generate Content"}),y.jsxs(hC,{onSubmit:H,children:[y.jsxs(As,{children:["Prompt",y.jsx(mC,{value:t,onChange:K=>r(K.target.value),placeholder:"Enter your prompt here...",required:!0})]}),y.jsxs(As,{children:["AI Service",y.jsx(Xm,{value:i,onChange:K=>l(K.target.value),disabled:A,children:D.map(K=>y.jsx("option",{value:K,children:K},K))})]}),y.jsxs(As,{children:["Temperature (",a,")",y.jsxs(gC,{children:[y.jsx(yC,{type:"range",min:"0",max:"2",step:"0.1",value:a,onChange:K=>u(Number(K.target.value))}),y.jsx(xC,{children:a})]})]}),y.jsxs(As,{children:["Model Type ",p?`(${p})`:"",y.jsxs(Xm,{value:d,onChange:K=>f(K.target.value),children:[y.jsx("option",{value:"default",children:"Default"}),y.jsx("option",{value:"cheap",children:"Cheap"}),y.jsx("option",{value:"lite",children:"Lite"}),y.jsx("option",{value:"reasoning",children:"Reasoning"})]})]}),y.jsx(vC,{type:"submit",disabled:m||!t,children:m?"Generating...":"Generate"})]}),w&&y.jsx(kC,{children:w}),S&&y.jsx(wC,{children:S.map((K,le)=>y.jsxs("div",{children:[y.jsx("strong",{children:K.name}),y.jsx("pre",{children:JSON.stringify(K,null,2)})]},le))})]})})},dC=T.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
+ `,fC=T.div`
125
+ background: ${({theme:e})=>e.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
+ `,pC=T.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:e})=>e.colors.text};
143
+ &:hover {
144
+ opacity: 0.8;
145
+ }
146
+ `,hC=T.form`
147
+ display: flex;
148
+ flex-direction: column;
149
+ gap: 1rem;
150
+ `,As=T.label`
151
+ display: flex;
152
+ flex-direction: column;
153
+ gap: 0.5rem;
154
+ color: ${({theme:e})=>e.colors.text};
155
+ `,mC=T.textarea`
156
+ padding: 0.5rem;
157
+ border: 1px solid ${({theme:e})=>e.colors.border};
158
+ border-radius: 4px;
159
+ background: ${({theme:e})=>e.colors.background};
160
+ color: ${({theme:e})=>e.colors.text};
161
+ min-height: 100px;
162
+ resize: vertical;
163
+ `,Xm=T.select`
164
+ padding: 0.5rem;
165
+ border: 1px solid ${({theme:e})=>e.colors.border};
166
+ border-radius: 4px;
167
+ background: ${({theme:e})=>e.colors.background};
168
+ color: ${({theme:e})=>e.colors.text};
169
+ `,gC=T.div`
170
+ display: flex;
171
+ align-items: center;
172
+ gap: 1rem;
173
+ `,yC=T.input`
174
+ flex: 1;
175
+ `,xC=T.span`
176
+ min-width: 3rem;
177
+ text-align: right;
178
+ `,vC=T.button`
179
+ padding: 0.5rem 1rem;
180
+ background: ${({theme:e})=>e.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
+ `,wC=T.div`
193
+ margin-top: 1rem;
194
+ padding: 1rem;
195
+ border: 1px solid ${({theme:e})=>e.colors.border};
196
+ border-radius: 4px;
197
+ background: ${({theme:e})=>e.colors.backgroundSecondary};
198
+ white-space: pre-wrap;
199
+
200
+ pre {
201
+ white-space: pre-wrap;
202
+ }
203
+ `,kC=T.div`
204
+ color: ${({theme:e})=>e.colors.error};
205
+ margin-top: 1rem;
206
+ padding: 0.5rem;
207
+ border: 1px solid ${({theme:e})=>e.colors.error};
208
+ border-radius: 4px;
209
+ `;function fx(){pl("openHealthCheckModal")}function bC(){return y.jsx(Tr,{onClick:fx,"aria-label":"Health check modal",children:"🏥"})}async function SC(){const e=(await Hd()).map(t=>[t,{status:void 0,lastChecked:new Date().toISOString()}]);return{services:Object.fromEntries(e),timestamp:new Date().toISOString()}}async function CC(e){var t,r;try{const[i]=await lx("say: hello",.7,!0,{aiService:e,askQuestion:!1});return(r=(t=i==null?void 0:i.args)==null?void 0:t.message)!=null&&r.toLowerCase().includes("hello")?"success":void 0}catch{return"error"}}const EC=()=>{const[e,t]=N.useState(!1),[r,i]=N.useState(!1),[l,a]=N.useState(null),[u,d]=N.useState(null),[f,p]=N.useState(null);hl("openHealthCheckModal",()=>t(!0));const g=()=>t(!1),m=async()=>{i(!0),a(null);try{const k=await SC();d(k),p(new Date);for(const[S,j]of Object.entries(k.services)){const E=Date.now(),P=await CC(S);j.status=P,j.responseTime=Date.now()-E,j.lastChecked=new Date().toISOString(),d(k),p(new Date)}}catch(k){a(k instanceof Error?k.message:"An unexpected error occurred")}finally{i(!1)}};if(N.useEffect(()=>{e&&m()},[e]),!e)return null;const v=k=>{switch(k){case"success":return"✅";case"error":return"❌";case"not_configured":return"⚠️";default:return"❓"}},w=k=>{switch(k){case"success":return"success";case"error":return"error";case"not_configured":return"warning";default:return"default"}};return y.jsx(jC,{onClick:k=>k.target===k.currentTarget&&g(),children:y.jsxs(TC,{children:[y.jsx(IC,{onClick:g,children:"×"}),y.jsxs(RC,{children:[y.jsx("h2",{children:"AI Services Health Check"}),y.jsx(NC,{onClick:m,disabled:r,children:r?"Checking...":"🔄 Refresh"})]}),l&&y.jsx(MC,{children:l}),y.jsx(PC,{children:u&&Object.entries(u.services).map(([k,S])=>y.jsxs($C,{children:[y.jsxs(AC,{children:[y.jsx(LC,{children:k}),y.jsx(_C,{children:v(S.status)})]}),y.jsxs(zC,{color:w(S.status),children:[y.jsxs("div",{children:["Status: ",S.status]}),S.responseTime&&y.jsxs("div",{children:["Response time: ",S.responseTime,"ms"]}),S.error&&y.jsx(DC,{children:S.error}),y.jsxs(OC,{children:["Last checked: ",new Date(S.lastChecked).toLocaleTimeString()]})]})]},k))}),f&&y.jsxs(FC,{children:["Last updated: ",f.toLocaleTimeString()]}),r&&y.jsx(BC,{children:"Checking AI Services..."})]})})},jC=T.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
+ `,TC=T.div`
221
+ background: ${({theme:e})=>e.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
+ `,RC=T.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
+ `,IC=T.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:e})=>e.colors.text};
248
+ &:hover {
249
+ opacity: 0.8;
250
+ }
251
+ `,NC=T.button`
252
+ padding: 0.5rem 1rem;
253
+ background: ${({theme:e})=>e.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
+ `,PC=T.div`
266
+ display: grid;
267
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
268
+ gap: 1rem;
269
+ margin-bottom: 1rem;
270
+ `,$C=T.div`
271
+ border: 1px solid ${({theme:e})=>e.colors.border};
272
+ border-radius: 4px;
273
+ padding: 1rem;
274
+ background: ${({theme:e})=>e.colors.backgroundSecondary};
275
+ `,AC=T.div`
276
+ display: flex;
277
+ justify-content: space-between;
278
+ align-items: center;
279
+ margin-bottom: 0.5rem;
280
+ `,LC=T.h3`
281
+ margin: 0;
282
+ font-size: 1.1rem;
283
+ `,_C=T.span`
284
+ font-size: 1.2rem;
285
+ `,zC=T.div`
286
+ color: ${({theme:e,color:t})=>{switch(t){case"success":return e.colors.success;case"error":return e.colors.error;case"warning":return e.colors.warning;default:return e.colors.text}}};
287
+ font-size: 0.9rem;
288
+ `,DC=T.div`
289
+ color: ${({theme:e})=>e.colors.error};
290
+ margin-top: 0.5rem;
291
+ `,OC=T.div`
292
+ color: ${({theme:e})=>e.colors.textSecondary};
293
+ font-size: 0.8rem;
294
+ margin-top: 0.5rem;
295
+ `,FC=T.div`
296
+ text-align: right;
297
+ color: ${({theme:e})=>e.colors.textSecondary};
298
+ font-size: 0.8rem;
299
+ margin-top: 1rem;
300
+ `,MC=T.div`
301
+ color: ${({theme:e})=>e.colors.error};
302
+ margin-bottom: 1rem;
303
+ padding: 0.5rem;
304
+ border: 1px solid ${({theme:e})=>e.colors.error};
305
+ border-radius: 4px;
306
+ `,BC=T.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
+ `,px=T.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
+ `,hx=T.div`
331
+ background: ${({theme:e})=>e.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
+ `,mx=T.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
+ `,gx=T.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:e})=>e.colors.text};
358
+ &:hover {
359
+ opacity: 0.8;
360
+ }
361
+ `,UC=T.div`
362
+ display: grid;
363
+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
364
+ gap: 1rem;
365
+ margin-bottom: 1rem;
366
+ `,VC=T.div`
367
+ border: 1px solid ${({theme:e})=>e.colors.border};
368
+ border-radius: 4px;
369
+ background: ${({theme:e})=>e.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
+ `,HC=T.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:e})=>e.colors.text};
386
+ transition: background-color 0.2s ease;
387
+
388
+ &:hover {
389
+ background-color: ${({theme:e})=>`${e.colors.border}20`};
390
+ }
391
+ `,WC=T.div`
392
+ display: flex;
393
+ align-items: center;
394
+ gap: 0.5rem;
395
+ `,qC=T.h3`
396
+ margin: 0;
397
+ font-size: 1.1rem;
398
+ `,GC=T.span`
399
+ display: inline-block;
400
+ transition: transform 0.2s ease;
401
+ transform: rotate(${({$isCollapsed:e})=>e?"0deg":"180deg"});
402
+ font-size: 0.8rem;
403
+ `,JC=T.div`
404
+ overflow: hidden;
405
+ transition: height 0.3s ease;
406
+ height: ${({$isCollapsed:e})=>e?"0":"auto"};
407
+ padding: ${({$isCollapsed:e})=>e?"0 1rem":"0 1rem 1rem"};
408
+ opacity: ${({$isCollapsed:e})=>e?"0":"1"};
409
+ transition: all 0.3s ease;
410
+ `,KC=T.form`
411
+ display: flex;
412
+ flex-direction: column;
413
+ gap: 1rem;
414
+ `,on=T.div`
415
+ display: flex;
416
+ flex-direction: column;
417
+ gap: 0.5rem;
418
+ `,ln=T.label`
419
+ font-size: 0.9rem;
420
+ color: ${({theme:e})=>e.colors.text};
421
+ `,Wr=T.input`
422
+ padding: 0.5rem;
423
+ border: 1px solid ${({theme:e})=>e.colors.border};
424
+ border-radius: 4px;
425
+ background: ${({theme:e})=>e.colors.background};
426
+ color: ${({theme:e})=>e.colors.text};
427
+ font-size: 0.9rem;
428
+
429
+ &:focus {
430
+ outline: none;
431
+ border-color: ${({theme:e})=>e.colors.primary};
432
+ }
433
+ `,QC=T.button`
434
+ padding: 0.5rem 1rem;
435
+ background: ${({theme:e})=>e.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
+ `,YC=T.div`
451
+ color: ${({theme:e})=>e.colors.error};
452
+ margin-bottom: 1rem;
453
+ padding: 0.5rem;
454
+ border: 1px solid ${({theme:e})=>e.colors.error};
455
+ border-radius: 4px;
456
+ `,XC=T.div`
457
+ color: ${({theme:e})=>e.colors.success};
458
+ margin-bottom: 1rem;
459
+ padding: 0.5rem;
460
+ border: 1px solid ${({theme:e})=>e.colors.success};
461
+ border-radius: 4px;
462
+ `,ZC=T.div`
463
+ color: ${({theme:e})=>e.colors.error};
464
+ `,eE=T.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
+ `,kr=e=>e==="vertex-ai",tE=e=>e==="openai"||e==="local-llm",nE=({serviceType:e,config:t,onUpdate:r,isLoading:i,isExpanded:l,onCardClick:a})=>{var se,ne,re;const[u,d]=N.useState(""),[f,p]=N.useState(!!(t!=null&&t.hasApiKey)),[g,m]=N.useState(((se=t==null?void 0:t.modelOverrides)==null?void 0:se.default)||""),[v,w]=N.useState(((ne=t==null?void 0:t.modelOverrides)==null?void 0:ne.cheap)||""),[k,S]=N.useState(((re=t==null?void 0:t.modelOverrides)==null?void 0:re.lite)||""),[j,E]=N.useState((t==null?void 0:t.googleCloudProjectId)||""),[P,$]=N.useState((t==null?void 0:t.googleCloudRegion)||""),[D,W]=N.useState((t==null?void 0:t.openaiBaseUrl)||""),[A,H]=N.useState(null);N.useEffect(()=>{var U,de,ie;p(!!(t!=null&&t.hasApiKey)),m(((U=t==null?void 0:t.modelOverrides)==null?void 0:U.default)||""),w(((de=t==null?void 0:t.modelOverrides)==null?void 0:de.cheap)||""),S(((ie=t==null?void 0:t.modelOverrides)==null?void 0:ie.lite)||""),E((t==null?void 0:t.googleCloudProjectId)||""),$((t==null?void 0:t.googleCloudRegion)||""),W((t==null?void 0:t.openaiBaseUrl)||"")},[t]);const K=()=>{if(kr(e)){if(!j)return H("GCP Project ID is required for Vertex AI services"),!1;if(kr(e)&&!P)return H("GCP Region is required for Vertex AI services"),!1}else if(!f&&!u)return H("API Key is required"),!1;return H(null),!0},le=U=>{if(U.preventDefault(),!K())return;const de={modelOverrides:{default:g||void 0,cheap:v||void 0,lite:k||void 0}};kr(e)?(de.googleCloudProjectId=j,de.googleCloudRegion=P):(de.apiKey=u||void 0,de.openaiBaseUrl=D||void 0),r(de)},O=N.useCallback(()=>{a&&a(e)},[a,e]),ee=U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),O())};return y.jsxs(VC,{children:[y.jsxs(HC,{onClick:O,onKeyDown:ee,role:"button",tabIndex:0,"aria-expanded":!!l,"aria-controls":`config-content-${e}`,children:[y.jsxs(WC,{children:[y.jsx(qC,{children:e}),!kr(e)&&f&&y.jsx("span",{title:"API Key is set",children:"🔑"}),kr(e)&&j&&y.jsx("span",{title:"GCP Project ID is set",children:"🌐"})]}),y.jsx(GC,{$isCollapsed:!l,children:"▼"})]}),y.jsx(JC,{$isCollapsed:!l,id:`config-content-${e}`,"aria-hidden":!l,children:y.jsxs(KC,{onSubmit:le,children:[!kr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`apiKey-${e}`,children:"API Key"}),y.jsx(Wr,{id:`apiKey-${e}`,type:"password",value:u,onChange:U=>d(U.target.value),placeholder:f?"API key is set":"Enter API key","aria-label":`API Key for ${e}`})]}),tE(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`baseUrl-${e}`,children:"Base URL"}),y.jsx(Wr,{id:`baseUrl-${e}`,type:"text",value:D,onChange:U=>W(U.target.value),placeholder:"Enter base URL","aria-label":`Base URL for ${e}`})]}),kr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`projectId-${e}`,children:"GCP Project ID"}),y.jsx(Wr,{id:`projectId-${e}`,type:"text",value:j,onChange:U=>E(U.target.value),placeholder:"Enter GCP Project ID","aria-label":`GCP Project ID for ${e}`,required:!0})]}),kr(e)&&y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`region-${e}`,children:"GCP Region"}),y.jsx(Wr,{id:`region-${e}`,type:"text",value:P,onChange:U=>$(U.target.value),placeholder:"Enter GCP Region","aria-label":`GCP Region for ${e}`,required:!0})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`defaultModel-${e}`,children:"Default Model"}),y.jsx(Wr,{id:`defaultModel-${e}`,type:"text",value:g,onChange:U=>m(U.target.value),placeholder:"Enter model name","aria-label":`Default Model for ${e}`})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`cheapModel-${e}`,children:"Cheap Model"}),y.jsx(Wr,{id:`cheapModel-${e}`,type:"text",value:v,onChange:U=>w(U.target.value),placeholder:"Enter model name","aria-label":`Cheap Model for ${e}`})]}),y.jsxs(on,{children:[y.jsx(ln,{htmlFor:`liteModel-${e}`,children:"Lite Model"}),y.jsx(Wr,{id:`liteModel-${e}`,type:"text",value:k,onChange:U=>S(U.target.value),placeholder:"Enter model name","aria-label":`Lite Model for ${e}`})]}),A&&y.jsx(ZC,{role:"alert","aria-live":"polite",children:A}),y.jsx(QC,{type:"submit",disabled:i,"aria-busy":i,children:i?"Updating...":"Update Configuration"})]})})]})};function yx(){pl("openServiceConfigurationModal")}function rE(){return y.jsx(Tr,{onClick:yx,"aria-label":"Open service configuration",children:"⚙️"})}const xx=e=>e==="vertex-ai",oE=e=>e==="openai"||e==="local-llm",iE=(e,t)=>{var i,l,a;const r=["Configuration updated successfully for "+e];return xx(e)?(t.googleCloudProjectId&&r.push(`GCP Project ID: ${t.googleCloudProjectId}`),t.googleCloudRegion&&r.push(`GCP Region: ${t.googleCloudRegion}`)):t.apiKey&&r.push("API key has been updated"),(i=t.modelOverrides)!=null&&i.default&&r.push(`Default model: ${t.modelOverrides.default}`),(l=t.modelOverrides)!=null&&l.cheap&&r.push(`Cheap model: ${t.modelOverrides.cheap}`),(a=t.modelOverrides)!=null&&a.lite&&r.push(`Lite model: ${t.modelOverrides.lite}`),oE(e)&&"openaiBaseUrl"in t&&r.push(`OpenAI base URL: ${t.openaiBaseUrl}`),r.join(`
478
+ `)},lE=(e,t)=>{if(xx(e)){if(!t.googleCloudProjectId)return`GCP Project ID is required for ${e}`;if(e==="vertex-ai"&&!t.googleCloudRegion)return"GCP Region is required for Vertex AI"}return null},sE=()=>{const[e,t]=N.useState(!1),[r,i]=N.useState(!1),[l,a]=N.useState(null),[u,d]=N.useState(null),[f,p]=N.useState(),[g]=ux();hl("openServiceConfigurationModal",()=>t(!0));const m=()=>{t(!1),a(null),d(null)};N.useEffect(()=>{e&&v()},[e]);const v=async()=>{i(!0),a(null);try{const E=await ax();p(E)}catch(E){a(E instanceof Error?E.message:"Failed to fetch configurations")}finally{i(!1)}},w=async(E,P)=>{i(!0),a(null),d(null);const $=lE(E,P);if($){a($),i(!1);return}try{await sC({serviceType:E,config:P}),await v(),d(iE(E,P))}catch(D){let W="Failed to update configuration";D instanceof Error&&(W=D.message,D.message.includes("auth")?W=`Authentication error for ${E}: ${D.message}`:D.message.includes("permission")&&(W=`Permission error for ${E}: ${D.message}`)),a(W)}finally{i(!1)}},[k,S]=N.useState(null),j=N.useCallback(E=>{S(P=>P===E?null:E)},[S]);return e?y.jsx(px,{onClick:E=>E.target===E.currentTarget&&m(),role:"dialog","aria-modal":"true","aria-labelledby":"service-config-title",children:y.jsxs(hx,{children:[y.jsx(gx,{onClick:m,"aria-label":"Close configuration modal",children:"×"}),y.jsx(mx,{children:y.jsx("h2",{id:"service-config-title",children:"AI Services Configuration"})}),l&&y.jsx(YC,{role:"alert","aria-live":"polite",children:l}),u&&y.jsx(XC,{role:"status","aria-live":"polite",children:u.split(`
479
+ `).map((E,P)=>y.jsx("div",{children:E},P))}),y.jsx(UC,{children:f?g.map(E=>y.jsx(nE,{serviceType:E,config:f[E],onUpdate:P=>w(E,P),isLoading:r,isExpanded:k===E,onCardClick:j},E)):y.jsx("div",{"aria-live":"polite",children:"Loading configurations..."})}),r&&y.jsx(eE,{role:"status","aria-live":"polite",children:"Updating configurations..."})]})}):null},vx=Qo`
480
+ from {
481
+ opacity: 0;
482
+ }
483
+ to {
484
+ opacity: 1;
485
+ }
486
+ `,aE=Qo`
487
+ from {
488
+ transform: translateX(100%);
489
+ }
490
+ to {
491
+ transform: translateX(0);
492
+ }
493
+ `,uE=T.button`
494
+ background: none;
495
+ border: none;
496
+ font-size: 1.5rem;
497
+ cursor: pointer;
498
+ padding: 8px;
499
+ color: ${({theme:e})=>e.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:e})=>e.colors.primary};
507
+ }
508
+
509
+ &:focus {
510
+ outline: 2px solid ${({theme:e})=>e.colors.primary};
511
+ outline-offset: 2px;
512
+ border-radius: 4px;
513
+ }
514
+ `,cE=T.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:e})=>e?"block":"none"};
523
+ animation: ${vx} 0.2s ease;
524
+ `,dE=T.div`
525
+ position: absolute;
526
+ ${({position:e})=>e?St`
527
+ top: ${e.top??"auto"};
528
+ right: ${e.right??"auto"};
529
+ left: ${e.left??"auto"};
530
+ bottom: ${e.bottom??"auto"};
531
+ `:St`
532
+ top: 100%;
533
+ right: 0;
534
+ `}
535
+ background-color: ${({theme:e})=>e.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:e})=>e?1:0};
542
+ visibility: ${({isOpen:e})=>e?"visible":"hidden"};
543
+ transform-origin: top right;
544
+ animation: ${({isOpen:e})=>e?St`
545
+ ${aE} 0.2s ease,
546
+ ${vx} 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
+ `,fE=T.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:e})=>e.colors.text};
568
+
569
+ &:hover {
570
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
571
+ }
572
+
573
+ &:focus-within {
574
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
575
+ outline: 2px solid ${({theme:e})=>e.colors.primary};
576
+ outline-offset: -2px;
577
+ }
578
+ `,pE=T.div`
579
+ position: relative;
580
+ display: inline-block;
581
+ `,hE=({menuItems:e,isOpen:t,onToggle:r,className:i,buttonAriaLabel:l="Toggle menu",menuAriaLabel:a="Navigation menu",position:u})=>{const d=N.useRef(null),f=N.useRef(null),p=N.useRef(null);N.useEffect(()=>{const v=k=>{var S;t&&d.current&&!d.current.contains(k.target)&&!((S=p.current)!=null&&S.contains(k.target))&&r()},w=k=>{var S;t&&k.key==="Escape"&&(r(),(S=p.current)==null||S.focus())};return document.addEventListener("mousedown",v),document.addEventListener("keydown",w),()=>{document.removeEventListener("mousedown",v),document.removeEventListener("keydown",w)}},[t,r]),N.useEffect(()=>{var v;t&&((v=f.current)==null||v.focus())},[t]);const g=v=>{var S,j;if(!t)return;const w=Array.from(((S=d.current)==null?void 0:S.querySelectorAll('[role="menuitem"]'))||[]),k=w.indexOf(document.activeElement);switch(v.key){case"ArrowDown":v.preventDefault(),k<w.length-1?w[k+1].focus():w[0].focus();break;case"ArrowUp":v.preventDefault(),k>0?w[k-1].focus():w[w.length-1].focus();break;case"Home":v.preventDefault(),w[0].focus();break;case"End":v.preventDefault(),w[w.length-1].focus();break;case"Enter":case" ":v.preventDefault(),k>=0&&(e[k].onClick(),r(),(j=p.current)==null||j.focus());break}},m=v=>{var w;v(),r(),(w=p.current)==null||w.focus()};return y.jsxs(pE,{className:i,children:[y.jsx(uE,{onClick:r,"aria-expanded":t,"aria-haspopup":"true","aria-controls":"menu-items","aria-label":l,ref:p,children:"☰"}),y.jsx(cE,{isOpen:t,onClick:r}),y.jsx(dE,{isOpen:t,position:u,ref:d,role:"menu","aria-label":a,id:"menu-items",onKeyDown:g,children:e.map((v,w)=>y.jsxs(fE,{onClick:()=>m(v.onClick),role:"menuitem",tabIndex:t?0:-1,ref:w===0?f:null,"aria-label":v.ariaLabel,children:[v.content," ",v.ariaLabel]},v.key||w))})]})};function wx(){pl("openRcConfigModal")}const mE=({rcConfig:e})=>{const[t,r]=N.useState(!1);hl("openRcConfigModal",()=>r(!0));const i=()=>{r(!1)};return!t||!e?null:y.jsx(px,{onClick:l=>l.target===l.currentTarget&&i(),role:"dialog","aria-modal":"true","aria-labelledby":"rc-config-title",children:y.jsxs(hx,{children:[y.jsx(gx,{onClick:i,"aria-label":"Close RC configuration modal",children:"×"}),y.jsx(mx,{children:y.jsx("h2",{id:"rc-config-title",children:"RC Configuration"})}),y.jsxs(gE,{children:[y.jsxs(on,{children:[y.jsx(ln,{children:"Root Directory"}),y.jsx(Ao,{children:e.rootDir})]}),e.lintCommand&&y.jsxs(on,{children:[y.jsx(ln,{children:"Lint Command"}),y.jsx(Ao,{children:e.lintCommand})]}),e.extensions&&e.extensions.length>0&&y.jsxs(on,{children:[y.jsx(ln,{children:"Extensions"}),y.jsx(Ao,{children:e.extensions.join(", ")})]}),e.ignorePaths&&e.ignorePaths.length>0&&y.jsxs(on,{children:[y.jsx(ln,{children:"Ignore Paths"}),y.jsx(Ao,{children:e.ignorePaths.join(", ")})]}),e.importantContext&&y.jsxs(on,{children:[y.jsx(ln,{children:"Important Context"}),y.jsx(Ao,{children:e.importantContext.files?`Files: ${e.importantContext.files.join(", ")}`:"None"})]}),e.modelOverrides&&y.jsxs(on,{children:[y.jsx(ln,{children:"Model Overrides"}),y.jsx(Ao,{children:y.jsx("pre",{children:JSON.stringify(e.modelOverrides,null,2)})})]})]})]})})},gE=T.div`
582
+ display: flex;
583
+ flex-direction: column;
584
+ gap: 1rem;
585
+ margin-top: 1rem;
586
+ `,Ao=T.div`
587
+ color: ${({theme:e})=>e.colors.text};
588
+ font-family: monospace;
589
+ background-color: ${({theme:e})=>e.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
+ `,yE=()=>y.jsx(Tr,{onClick:wx,children:"ℹ️"}),xE=T.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
+ `,vE=T.div`
610
+ background: ${({theme:e})=>e.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
+ `,wE=T.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
+ `,kE=T.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:e})=>e.colors.text};
637
+ &:hover {
638
+ opacity: 0.8;
639
+ }
640
+ `,bE=T.div`
641
+ display: flex;
642
+ flex-direction: column;
643
+ gap: 1rem;
644
+ margin-bottom: 1rem;
645
+ `,SE=T.div`
646
+ color: ${({theme:e})=>e.colors.error};
647
+ margin-bottom: 1rem;
648
+ padding: 0.5rem;
649
+ border: 1px solid ${({theme:e})=>e.colors.error};
650
+ border-radius: 4px;
651
+ `,CE=T.div`
652
+ color: ${({theme:e})=>e.colors.success};
653
+ margin-bottom: 1rem;
654
+ padding: 0.5rem;
655
+ border: 1px solid ${({theme:e})=>e.colors.success};
656
+ border-radius: 4px;
657
+ `,EE=T.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
+ `,oa=({value:e,onChange:t,disabled:r})=>{const{services:i,isLoading:l,error:a}=cx(),u=d=>{t(d.target.value)};return y.jsxs(jE,{children:[y.jsxs(TE,{id:"aiService",value:e,onChange:u,disabled:r||l||a!==null,children:[y.jsx("option",{value:"",children:"Select AI Service"}),i.map(({service:d,displayName:f})=>y.jsx("option",{value:d,children:f},d))]}),l&&y.jsx(RE,{children:"Loading services..."}),a&&y.jsx(IE,{children:a})]})},jE=T.div`
671
+ display: flex;
672
+ flex-direction: column;
673
+ gap: 4px;
674
+ `,TE=T.select`
675
+ padding: 8px;
676
+ border: 1px solid ${({theme:e})=>e.colors.border};
677
+ border-radius: 4px;
678
+ background-color: ${({theme:e})=>e.colors.inputBg};
679
+ color: ${({theme:e})=>e.colors.inputText};
680
+ font-size: 14px;
681
+ max-width: 200px; /* Ensure enough space for longer options */
682
+
683
+ &:disabled {
684
+ background-color: ${({theme:e})=>e.colors.disabled};
685
+ cursor: not-allowed;
686
+ }
687
+
688
+ option {
689
+ padding: 4px;
690
+ background-color: ${({theme:e})=>e.colors.inputBg};
691
+ color: ${({theme:e})=>e.colors.inputText};
692
+ }
693
+ `,RE=T.div`
694
+ color: ${({theme:e})=>e.colors.text};
695
+ font-size: 14px;
696
+ font-style: italic;
697
+ `,IE=T.div`
698
+ color: ${({theme:e})=>e.colors.error};
699
+ font-size: 14px;
700
+ `;function kx(){pl("openGenaicodeConfigModal")}function NE(){return y.jsx(Tr,{onClick:kx,"aria-label":"Open Genaicode configuration",children:"🐺"})}const PE=({options:e,onOptionsChange:t})=>{const[r,i]=N.useState(!1),[l,a]=N.useState(!1),[u,d]=N.useState(null),[f,p]=N.useState(null);hl("openGenaicodeConfigModal",()=>i(!0));const g=()=>{i(!1),d(null),p(null)},m=async S=>{a(!0),d(null),p(null);try{t(S),p("Configuration updated successfully")}catch{d("Failed to update configuration")}finally{a(!1)}},v=S=>{const{name:j,value:E,type:P}=S.target,$=P==="checkbox"?S.target.checked:E;m({...e,[j]:$})},w=S=>{m({...e,aiService:S})},k=S=>{const j=S.target.value.split(",").map(E=>E.trim());m({...e,ignorePatterns:j})};return r?y.jsx(xE,{onClick:S=>S.target===S.currentTarget&&g(),role:"dialog","aria-modal":"true","aria-labelledby":"genaicode-config-title",children:y.jsxs(vE,{children:[y.jsx(kE,{onClick:g,"aria-label":"Close configuration modal",children:"×"}),y.jsx(wE,{children:y.jsx("h2",{id:"genaicode-config-title",children:"Genaicode Configuration"})}),u&&y.jsx(SE,{role:"alert","aria-live":"polite",children:u}),f&&y.jsx(CE,{role:"status","aria-live":"polite",children:f}),y.jsxs(bE,{children:[y.jsxs(qi,{children:[y.jsx(Fn,{htmlFor:"aiService",children:"Default AI Service:"}),y.jsx(oa,{value:e.aiService,onChange:w,disabled:l})]}),y.jsxs(qi,{children:[y.jsx(Fn,{htmlFor:"contentMask",children:"Content Mask:"}),y.jsx(Zm,{type:"text",id:"contentMask",name:"contentMask",value:e.contentMask||"",onChange:v,disabled:l})]}),y.jsxs(qi,{children:[y.jsx(Fn,{htmlFor:"ignorePatterns",children:"Ignore Patterns:"}),y.jsx(Zm,{type:"text",id:"ignorePatterns",name:"ignorePatterns",value:e.ignorePatterns?e.ignorePatterns.join(", "):"",onChange:k,disabled:l}),y.jsx("small",{children:"Comma-separated list of patterns"})]}),y.jsxs(qi,{children:[y.jsx(Fn,{children:"File Operations:"}),y.jsxs(Fn,{htmlFor:"allowFileCreate",children:[y.jsx("input",{type:"checkbox",id:"allowFileCreate",name:"allowFileCreate",checked:e.allowFileCreate!==!1,onChange:v,disabled:l}),"Allow File Create"]}),y.jsxs(Fn,{htmlFor:"allowFileDelete",children:[y.jsx("input",{type:"checkbox",id:"allowFileDelete",name:"allowFileDelete",checked:e.allowFileDelete!==!1,onChange:v,disabled:l}),"Allow File Delete"]}),y.jsxs(Fn,{htmlFor:"allowDirectoryCreate",children:[y.jsx("input",{type:"checkbox",id:"allowDirectoryCreate",name:"allowDirectoryCreate",checked:e.allowDirectoryCreate!==!1,onChange:v,disabled:l}),"Allow Directory Create"]}),y.jsxs(Fn,{htmlFor:"allowFileMove",children:[y.jsx("input",{type:"checkbox",id:"allowFileMove",name:"allowFileMove",checked:e.allowFileMove!==!1,onChange:v,disabled:l}),"Allow File Move"]})]}),y.jsxs(qi,{children:[y.jsx(Fn,{children:"Notification Settings:"}),y.jsxs(Fn,{htmlFor:"muteNotifications",children:[y.jsx("input",{type:"checkbox",id:"muteNotifications",name:"muteNotifications",checked:e.muteNotifications===!0,onChange:v,disabled:l}),"Mute Sound Notifications"]})]})]}),l&&y.jsx(EE,{role:"status","aria-live":"polite",children:"Updating configuration..."})]})}):null},qi=T.div`
701
+ margin-bottom: 16px;
702
+ `,Fn=T.label`
703
+ display: block;
704
+ margin-bottom: 4px;
705
+ color: ${e=>e.theme.colors.text};
706
+ `,Zm=T.input`
707
+ width: 100%;
708
+ padding: 8px;
709
+ border: 1px solid ${e=>e.theme.colors.border};
710
+ border-radius: 4px;
711
+ background-color: ${e=>e.theme.colors.inputBg};
712
+ color: ${e=>e.theme.colors.inputText};
713
+
714
+ &:disabled {
715
+ background-color: ${e=>e.theme.colors.disabled};
716
+ cursor: not-allowed;
717
+ }
718
+ `,$E="0.14.1",bx=()=>y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:y.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"})}),AE=()=>y.jsxs("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[y.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"}),y.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"}),y.jsx("rect",{x:"6",y:"10",width:"12",height:"4",rx:"1",stroke:"currentColor",strokeWidth:"2"}),y.jsx("path",{d:"M12 7V10",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"}),y.jsx("path",{d:"M12 14V17",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})]}),LE=500,Ls=5e3,Zo=N.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,terminalEvents:{},isTerminalOpen:!1,setMessages:()=>{},setExecutionStatus:()=>{},setCurrentQuestion:()=>{},setSuggestions:()=>{},setCurrentPrompt:()=>{},toggleTheme:()=>{},setCodegenOptions:()=>{},setLastFinishedExecutionId:()=>{},startPolling:()=>{},stopPolling:()=>{},handlePauseExecution:async()=>{},handleResumeExecution:async()=>{},setConversationGraphState:()=>{},toggleGraphVisualiser:()=>{},toggleTerminal:()=>{},clearTerminalEvents:()=>{}}),_E=({children:e})=>{const[t,r]=N.useState([]),[i,l]=N.useState("idle"),[a,u]=N.useState(null),[d,f]=N.useState([]),[p,g]=N.useState(""),[m,v]=N.useState("dark"),[w,k]=N.useState(),[S,j]=N.useState(void 0),[E,P]=N.useState(null),[$,D]=N.useState(null),W=N.useRef(!1),[A,H]=N.useState(!1),K=N.useRef(null),[le,O]=N.useState(null),[ee,se]=N.useState(!1),[ne,re]=N.useState({}),[U,de]=N.useState(!1),[ie,Q]=N.useState(!0),ce=N.useCallback(()=>{v(Ne=>Ne==="light"?"dark":"light")},[]),C=N.useCallback(Ne=>{j(Ne)},[]),_=N.useCallback(()=>{se(Ne=>!Ne)},[]),q=N.useCallback(()=>{de(Ne=>!Ne)},[]),R=N.useCallback(()=>{Q(Ne=>!Ne)},[]),ae=N.useCallback(Ne=>{re(Lt=>({...Lt,[Ne]:[]}))},[]),ge=N.useCallback(async()=>{try{const[Ne,Lt,Pn,_t,_e,st]=await Promise.all([fd(),pd(),Qm(),Ym(),nC(),rC()]);l(Ne),u(Lt);const Et=[],xt={};for(const Ye of Pn)if(Ye.message&&Et.push({...Ye.message,timestamp:new Date(Ye.message.timestamp),data:Ye.data}),Ye.terminalEvent){const{iterationId:ot}=Ye.terminalEvent;xt[ot]||(xt[ot]=[]),xt[ot].push({...Ye.terminalEvent,timestamp:new Date(Ye.terminalEvent.timestamp).toString()})}for(const Ye in xt)xt[Ye].length>Ls&&(xt[Ye]=xt[Ye].slice(-Ls));r(Et),re(xt),k(_t),j(_e),P(st),H(!0)}catch(Ne){console.error("Failed to fetch initial data:",Ne),H(!1)}},[]);N.useEffect(()=>{ge()},[ge]);const ye=N.useCallback(async()=>{try{const[Ne,Lt,Pn,_t]=await Promise.all([fd(),pd(),Qm(),Ym()]);l(_e=>_e!==Ne?Ne:_e),u(_e=>(_e==null?void 0:_e.id)!==(Lt==null?void 0:Lt.id)?Lt:_e),r(_e=>{const st=Pn.filter(Et=>!!Et.message).map(Et=>({...Et.message,timestamp:new Date(Et.message.timestamp),data:Et.data}));return _e.length!==st.length||_e.length>0&&st.length>0&&_e[_e.length-1].id!==st[st.length-1].id?st:_e}),re(_e=>{const st={};let Et=!1;for(const ot of Pn)if(ot.terminalEvent){const{iterationId:Ft}=ot.terminalEvent;st[Ft]||(st[Ft]=[]),st[Ft].push({...ot.terminalEvent,timestamp:new Date(ot.terminalEvent.timestamp).toString()})}const xt=new Set([...Object.keys(_e),...Object.keys(st)]),Ye={..._e};for(const ot of xt){const Ft=_e[ot]||[],un=st[ot]||[];(Ft.length!==un.length||un.length>0&&Ft.length>0&&Ft[Ft.length-1].id!==un[un.length-1].id)&&(Et=!0,Ye[ot]=un.length>Ls?un.slice(-Ls):un)}return Et?Ye:_e}),k(_e=>(_e==null?void 0:_e.usageMetrics.total.cost)!==(_t==null?void 0:_t.usageMetrics.total.cost)||(_e==null?void 0:_e.usageMetrics.total.tpd)!==(_t==null?void 0:_t.usageMetrics.total.tpd)?_t:_e)}catch(Ne){console.error("Failed to poll data:",Ne)}K.current&&clearTimeout(K.current),W.current&&(K.current=setTimeout(ye,LE))},[]),Ee=N.useCallback(()=>{W.current||(console.log("Starting polling..."),W.current=!0,K.current&&clearTimeout(K.current),requestAnimationFrame(()=>{ye()}))},[ye]),be=N.useCallback(()=>{W.current&&(console.log("Stopping polling..."),W.current=!1,K.current&&(clearTimeout(K.current),K.current=null))},[]);N.useEffect(()=>(A&&Ee(),()=>{be()}),[A,Ee,be]);const je=N.useCallback(async()=>{try{await ZS(),l("paused")}catch(Ne){console.error("Failed to pause execution:",Ne)}},[]),Ve=N.useCallback(async()=>{try{await eC(),l("executing")}catch(Ne){console.error("Failed to resume execution:",Ne)}},[]),Ct=N.useMemo(()=>({messages:t,executionStatus:i,currentQuestion:a,suggestions:d,currentPrompt:p,theme:m,usage:w,codegenOptions:S,rcConfig:E,lastFinishedExecutionId:$,initialDataLoaded:A,conversationGraphState:le,isGraphVisualiserOpen:ee,terminalEvents:ne,isTerminalOpen:U,autoScrollTerminal:ie,setMessages:r,setExecutionStatus:l,setCurrentQuestion:u,setSuggestions:f,setCurrentPrompt:g,toggleTheme:ce,setCodegenOptions:C,setLastFinishedExecutionId:D,startPolling:Ee,stopPolling:be,handlePauseExecution:je,handleResumeExecution:Ve,setConversationGraphState:O,toggleGraphVisualiser:_,toggleTerminal:q,toggleAutoScrollTerminal:R,setAutoScrollTerminal:Q,clearTerminalEvents:ae}),[t,i,a,d,p,m,w,S,E,$,A,le,ee,ne,U,ie,ce,C,Ee,be,je,Ve,_,q,R,ae]);return y.jsx(Zo.Provider,{value:Ct,children:e})},ml=()=>{const e=Pt.useContext(Zo);if(!e)throw new Error("useChatState must be used within a ChatStateProvider");return e},zE=Qo`
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
+ `,DE=T.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
+ `,OE=T(Tr)`
737
+ width: 50px; // Increased size
738
+ height: 50px; // Increased size
739
+ background-color: ${({theme:e})=>e.colors.primary};
740
+ color: ${({theme:e})=>e.colors.buttonText||"#ffffff"}; // Ensure icon is visible
741
+ border: none;
742
+ animation: ${zE} 2s infinite;
743
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
744
+
745
+ &:hover {
746
+ background-color: ${({theme:e})=>e.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:e,theme:t})=>e&&St`
752
+ background-color: ${t.colors.buttonHoverBg}; // Existing active style
753
+ border: 1px solid ${t.colors.primary};
754
+ animation: none; // Turn off animation when visualiser is open
755
+ `}
756
+ `,FE=()=>{const{toggleGraphVisualiser:e,isGraphVisualiserOpen:t,conversationGraphState:r}=ml();return r!=null&&r.isActive?y.jsx(DE,{children:y.jsx(OE,{onClick:e,"aria-label":"Toggle Conversation Graph",title:"Toggle Conversation Graph",isActive:t,children:y.jsx(AE,{})})}):null},ME="https://github.com/gtanczyk/genaicode/issues",BE=({themeToggle:e,chatInterface:t,inputArea:r,usage:i,toggleTheme:l})=>{const[a,u]=N.useState(!1),d=[{content:y.jsx(rE,{}),ariaLabel:"Service Configuration",key:"service-config",onClick:yx},{content:y.jsx(bC,{}),ariaLabel:"Health Check",key:"health-check",onClick:fx},{content:y.jsx(uC,{}),ariaLabel:"Content Generation",key:"content-gen",onClick:dx},{content:y.jsx(NE,{}),ariaLabel:"Genaicode Config",key:"genaicode-config",onClick:kx},{content:e,ariaLabel:"Theme Toggle",key:"theme-toggle",onClick:l},{content:y.jsx(yE,{}),ariaLabel:"Information",key:"info",onClick:wx},{content:y.jsx(Tr,{children:"🐛"}),ariaLabel:"Report Bug",key:"report-bug",onClick:()=>window.open(ME,"_blank","noopener,noreferrer")}];return y.jsxs(UE,{children:[y.jsxs(VE,{children:[y.jsx(HE,{children:y.jsxs(WE,{children:[y.jsx(qE,{children:"GenAIcode"}),y.jsxs(GE,{children:["v",$E]})]})}),y.jsxs(JE,{children:[y.jsx(KE,{children:y.jsx(gb,{usage:i})}),y.jsx(QE,{children:y.jsx(hE,{menuItems:d,isOpen:a,onToggle:()=>u(!a),buttonAriaLabel:"Toggle navigation menu",menuAriaLabel:"Navigation menu",position:{top:"100%",right:0}})})]})]}),y.jsxs(YE,{children:[y.jsx(XE,{children:t}),y.jsx(ZE,{children:r}),y.jsx(FE,{})]})]})},UE=T.div`
757
+ display: flex;
758
+ flex-direction: column;
759
+ height: 100vh;
760
+ max-width: 1200px;
761
+ margin: 0 auto;
762
+ padding: 0 10px;
763
+ `,VE=T.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
+ `,HE=T.div`
772
+ display: flex;
773
+ align-items: center;
774
+ gap: 10px;
775
+ `,WE=T.div`
776
+ position: relative;
777
+ `,qE=T.h1`
778
+ text-transform: uppercase;
779
+ font-family: 'Press Start 2P', system-ui;
780
+ color: ${({theme:e})=>e.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
+ `,GE=T.span`
787
+ position: absolute;
788
+ bottom: 0;
789
+ right: 0;
790
+ font-size: 0.6rem;
791
+ color: ${({theme:e})=>e.colors.text};
792
+ background-color: ${({theme:e})=>e.colors.backgroundAlt};
793
+ padding: 2px 4px;
794
+ border-radius: 3px;
795
+ transform: translateY(100%);
796
+ white-space: nowrap;
797
+ `,JE=T.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
+ `,KE=T.div`
808
+ flex-shrink: 1;
809
+ min-width: 0;
810
+ `,QE=T.div`
811
+ display: flex;
812
+ align-items: center;
813
+
814
+ @media (max-width: 576px) {
815
+ position: relative;
816
+ }
817
+ `,YE=T.main`
818
+ display: flex;
819
+ flex-direction: column;
820
+ flex-grow: 1;
821
+ min-height: 0;
822
+ position: relative;
823
+ z-index: 1;
824
+ `,XE=T.div`
825
+ flex-grow: 1;
826
+ overflow: hidden;
827
+ margin-bottom: 20px;
828
+ `,ZE=T.div`
829
+ flex-shrink: 0;
830
+ `,ej=({codegenOptions:e})=>{const{setCurrentPrompt:t,setExecutionStatus:r,setCurrentQuestion:i,setCodegenOptions:l,handlePauseExecution:a,handleResumeExecution:u}=N.useContext(Zo),d=async(w,k)=>{t(w),r("executing");try{if(await fd()==="executing"){console.warn("Execution is already executing"),r("executing");return}if(!e){console.error("Codegen options not available"),r("idle");return}await YS(w,e,k.length>0?k:void 0),l({...e,initialActionType:void 0}),r("executing")}catch(S){console.error("Failed to execute codegen:",S),r("idle")}},f=async(w,k,S,j,E,P)=>{const $=await pd();if($)try{if(i(null),e){const D={...e,aiService:j??e.aiService};l(D),await tC($.id,w,S,D,k,E,P)}else console.error("Codegen options not available for submitting answer")}catch(D){console.error("Failed to submit answer:",D),i($)}},p=async()=>{try{i(null),await XS()}catch(w){console.error("Failed to interrupt execution:",w)}},g=N.useCallback(w=>{l(w)},[l]);return{handleExecute:d,handleQuestionSubmit:f,handleInterrupt:p,handleOptionsChange:g,handlePauseExecution:a,handleResumeExecution:u}};var Er=(e=>(e.USER="user",e.ASSISTANT="assistant",e.SYSTEM="system",e))(Er||{}),Wd=(e=>(e.CONVERSATION_SUMMARY="conversation-summary",e.MESSAGE_EDITABLE="editable",e))(Wd||{});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},G.apply(null,arguments)}function Le(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;r[i]=e[i]}return r}var Sx={},Cx=N.createContext(Sx),tj=(e,t)=>G({},e,t),nj=()=>N.useContext(Cx),qd=N.createContext(()=>{});qd.displayName="JVR.DispatchShowTools";function rj(){return N.useReducer(tj,Sx)}function Ex(){return N.useContext(qd)}var jx=e=>{var{initial:t,dispatch:r,children:i}=e;return y.jsx(Cx.Provider,{value:t,children:y.jsx(qd.Provider,{value:r,children:i})})};jx.displayName="JVR.ShowTools";var Tx={},Rx=N.createContext(Tx),oj=(e,t)=>G({},e,t),Ca=()=>N.useContext(Rx),Gd=N.createContext(()=>{});Gd.displayName="JVR.DispatchExpands";function ij(){return N.useReducer(oj,Tx)}function lj(){return N.useContext(Gd)}var Ix=e=>{var{initial:t,dispatch:r,children:i}=e;return y.jsx(Rx.Provider,{value:t,children:y.jsx(Gd.Provider,{value:r,children:i})})};Ix.displayName="JVR.Expands";var Nx={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"}},Px=N.createContext(Nx),sj=(e,t)=>G({},e,t),Ge=()=>N.useContext(Px),Jd=N.createContext(()=>{});Jd.displayName="JVR.DispatchTypes";function aj(){return N.useReducer(sj,Nx)}function uj(){return N.useContext(Jd)}function $x(e){var{initial:t,dispatch:r,children:i}=e;return y.jsx(Px.Provider,{value:t,children:y.jsx(Jd.Provider,{value:r,children:i})})}$x.displayName="JVR.Types";var cj=["style"];function Ax(e){var{style:t}=e,r=Le(e,cj),i=G({cursor:"pointer",height:"1em",width:"1em",userSelect:"none",display:"inline-flex"},t);return y.jsx("svg",G({viewBox:"0 0 24 24",fill:"var(--w-rjv-arrow-color, currentColor)",style:i},r,{children:y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})}))}Ax.displayName="JVR.TriangleArrow";var Lx={Arrow:{as:"span",className:"w-rjv-arrow",style:{transform:"rotate(0deg)",transition:"all 0.3s"},children:y.jsx(Ax,{})},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:"}"}},_x=N.createContext(Lx),dj=(e,t)=>G({},e,t),Kt=()=>N.useContext(_x),Kd=N.createContext(()=>{});Kd.displayName="JVR.DispatchSymbols";function fj(){return N.useReducer(dj,Lx)}function pj(){return N.useContext(Kd)}var zx=e=>{var{initial:t,dispatch:r,children:i}=e;return y.jsx(_x.Provider,{value:t,children:y.jsx(Kd.Provider,{value:r,children:i})})};zx.displayName="JVR.Symbols";var Dx={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"}},Ox=N.createContext(Dx),hj=(e,t)=>G({},e,t),vn=()=>N.useContext(Ox),Qd=N.createContext(()=>{});Qd.displayName="JVR.DispatchSection";function mj(){return N.useReducer(hj,Dx)}function gj(){return N.useContext(Qd)}var Fx=e=>{var{initial:t,dispatch:r,children:i}=e;return y.jsx(Ox.Provider,{value:t,children:y.jsx(Qd.Provider,{value:r,children:i})})};Fx.displayName="JVR.Section";var Mx={objectSortKeys:!1,indentWidth:15},Yd=N.createContext(Mx);Yd.displayName="JVR.Context";var Bx=N.createContext(()=>{});Bx.displayName="JVR.DispatchContext";function yj(e,t){return G({},e,t)}var io=()=>N.useContext(Yd),Ux=e=>{var{children:t,initialState:r,initialTypes:i}=e,[l,a]=N.useReducer(yj,Object.assign({},Mx,r)),[u,d]=rj(),[f,p]=ij(),[g,m]=aj(),[v,w]=fj(),[k,S]=mj();return N.useEffect(()=>a(G({},r)),[r]),y.jsx(Yd.Provider,{value:l,children:y.jsx(Bx.Provider,{value:a,children:y.jsx(jx,{initial:u,dispatch:d,children:y.jsx(Ix,{initial:f,dispatch:p,children:y.jsx($x,{initial:G({},g,i),dispatch:m,children:y.jsx(zx,{initial:v,dispatch:w,children:y.jsx(Fx,{initial:k,dispatch:S,children:t})})})})})})})};Ux.displayName="JVR.Provider";function xj(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var vj=["isNumber","value","parentValue","keyName","keys"],wj=["as","render"],kj=["as","render"],bj=["as","render"],Sj=["as","style","render"],Cj=["as","render"],Ej=["as","render"],jj=["as","render"],Tj=["as","render"],hd=e=>{var{Quote:t={}}=Kt(),{isNumber:r,value:i,parentValue:l,keyName:a,keys:u}=e,d=Le(e,vj);if(r)return null;var{as:f,render:p}=t,g=Le(t,wj),m=f||"span",v=G({},d,g),w={value:i,parentValue:l,keyName:a,keys:u||(a?[a]:[])},k=p&&typeof p=="function"&&p(v,w);return k||y.jsx(m,G({},v))};hd.displayName="JVR.Quote";var il=e=>{var{ValueQuote:t={}}=Kt(),r=G({},(xj(e),e)),{as:i,render:l}=t,a=Le(t,kj),u=i||"span",d=G({},r,a),f=l&&typeof l=="function"&&l(d,{});return f||y.jsx(u,G({},d))};il.displayName="JVR.ValueQuote";var Vx=e=>{var{value:t,parentValue:r,keyName:i,keys:l}=e,{Colon:a={}}=Kt(),{as:u,render:d}=a,f=Le(a,bj),p=u||"span",g=d&&typeof d=="function"&&d(f,{value:t,parentValue:r,keyName:i,keys:l||(i?[i]:[])});return g||y.jsx(p,G({},f))};Vx.displayName="JVR.Colon";var Hx=e=>{var{Arrow:t={}}=Kt(),r=Ca(),{expandKey:i,style:l,value:a,parentValue:u,keyName:d,keys:f}=e,p=!!r[i],{as:g,style:m,render:v}=t,w=Le(t,Sj),k=g||"span",S=v&&typeof v=="function",j=G({},w,{"data-expanded":p,style:G({},m,l)}),E={value:a,parentValue:u,keyName:d,keys:f||(d?[d]:[])},P=S&&v(j,E);return P||y.jsx(k,G({},w,{style:G({},m,l)}))};Hx.displayName="JVR.Arrow";var Wx=e=>{var{isBrackets:t,value:r,parentValue:i,keyName:l,keys:a}=e,{BracketsLeft:u={},BraceLeft:d={}}=Kt(),f={value:r,parentValue:i,keyName:l,keys:a||(l?[l]:[])};if(t){var{as:p,render:g}=u,m=Le(u,Cj),v=p||"span",w=g&&typeof g=="function"&&g(m,f);return w||y.jsx(v,G({},m))}var{as:k,render:S}=d,j=Le(d,Ej),E=k||"span",P=S&&typeof S=="function"&&S(j,f);return P||y.jsx(E,G({},j))};Wx.displayName="JVR.BracketsOpen";var Xd=e=>{var{isBrackets:t,isVisiable:r,value:i,parentValue:l,keyName:a,keys:u}=e,d={value:i,parentValue:l,keyName:a,keys:u||(a?[a]:[])};if(!r)return null;var{BracketsRight:f={},BraceRight:p={}}=Kt();if(t){var{as:g,render:m}=f,v=Le(f,jj),w=g||"span",k=m&&typeof m=="function"&&m(v,d);return k||y.jsx(w,G({},v))}var{as:S,render:j}=p,E=Le(p,Tj),P=S||"span",$=j&&typeof j=="function"&&j(E,d);return $||y.jsx(P,G({},E))};Xd.displayName="JVR.BracketsClose";var qx=e=>{var t,{value:r,expandKey:i,level:l,keys:a=[]}=e,u=Ca(),d=Array.isArray(r),{collapsed:f,shouldExpandNodeInitially:p}=io(),g=r instanceof Set,m=typeof f=="boolean"?f:typeof f=="number"?l>f:!1,v=(t=u[i])!=null?t:m,w=Object.keys(r).length;if(u[i]===void 0&&p&&p(v,{value:r,keys:a,level:l})||v||w===0)return null;var k={paddingLeft:4};return y.jsx("div",{style:k,children:y.jsx(Xd,{isBrackets:d||g,isVisiable:!0})})};qx.displayName="JVR.NestedClose";var Rj=["as","render"],Ij=["as","render"],Nj=["as","render"],Pj=["as","render"],$j=["as","render"],Aj=["as","render"],Lj=["as","render"],_j=["as","render"],zj=["as","render"],Dj=["as","render"],Oj=["as","render"],Fj=["as","render"],Mj=["as","render"],md=e=>{if(e===void 0)return"0n";if(typeof e=="string")try{e=BigInt(e)}catch{return"0n"}return e?e.toString()+"n":"0n"},Gx=e=>{var{value:t,keyName:r}=e,{Set:i={},displayDataTypes:l}=Ge(),a=t instanceof Set;if(!a||!l)return null;var{as:u,render:d}=i,f=Le(i,Rj),p=d&&typeof d=="function",g=p&&d(f,{type:"type",value:t,keyName:r});if(g)return g;var m=u||"span";return y.jsx(m,G({},f))};Gx.displayName="JVR.SetComp";var Jx=e=>{var{value:t,keyName:r}=e,{Map:i={},displayDataTypes:l}=Ge(),a=t instanceof Map;if(!a||!l)return null;var{as:u,render:d}=i,f=Le(i,Ij),p=d&&typeof d=="function",g=p&&d(f,{type:"type",value:t,keyName:r});if(g)return g;var m=u||"span";return y.jsx(m,G({},f))};Jx.displayName="JVR.MapComp";var Nn={opacity:.75,paddingRight:4},Kx=e=>{var{children:t="",keyName:r}=e,{Str:i={},displayDataTypes:l}=Ge(),{shortenTextAfterLength:a=30}=io(),{as:u,render:d}=i,f=Le(i,Nj),p=t,[g,m]=N.useState(a&&p.length>a);N.useEffect(()=>m(a&&p.length>a),[a]);var v=u||"span",w=G({},Nn,i.style||{});a>0&&(f.style=G({},f.style,{cursor:p.length<=a?"initial":"pointer"}),p.length>a&&(f.onClick=()=>{m(!g)}));var k=g?p.slice(0,a)+"...":p,S=d&&typeof d=="function",j=S&&d(G({},f,{style:w}),{type:"type",value:t,keyName:r}),E=S&&d(G({},f,{children:k,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(j||y.jsx(v,G({},f,{style:w}))),E||y.jsxs(N.Fragment,{children:[y.jsx(il,{}),y.jsx(v,G({},f,{className:"w-rjv-value",children:k})),y.jsx(il,{})]})]})};Kx.displayName="JVR.TypeString";var Qx=e=>{var{children:t,keyName:r}=e,{True:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Pj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsx(f,G({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Qx.displayName="JVR.TypeTrue";var Yx=e=>{var{children:t,keyName:r}=e,{False:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,$j),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsx(f,G({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Yx.displayName="JVR.TypeFalse";var Xx=e=>{var{children:t,keyName:r}=e,{Float:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Aj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsx(f,G({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Xx.displayName="JVR.TypeFloat";var Zx=e=>{var{children:t,keyName:r}=e,{Int:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Lj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsx(f,G({},d,{className:"w-rjv-value",children:t==null?void 0:t.toString()}))]})};Zx.displayName="JVR.TypeInt";var ev=e=>{var{children:t,keyName:r}=e,{Bigint:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,_j),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsx(f,G({},d,{className:"w-rjv-value",children:md(t==null?void 0:t.toString())}))]})};ev.displayName="JVR.TypeFloat";var tv=e=>{var{children:t,keyName:r}=e,{Url:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,zj),f=a||"span",p=G({},Nn,i.style),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t==null?void 0:t.href,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v||y.jsxs("a",G({href:t==null?void 0:t.href,target:"_blank"},d,{className:"w-rjv-value",children:[y.jsx(il,{}),t==null?void 0:t.href,y.jsx(il,{})]}))]})};tv.displayName="JVR.TypeUrl";var nv=e=>{var{children:t,keyName:r}=e,{Date:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Dj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=t instanceof Date?t.toLocaleString():t,w=g&&u(G({},d,{children:v,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),w||y.jsx(f,G({},d,{className:"w-rjv-value",children:v}))]})};nv.displayName="JVR.TypeDate";var rv=e=>{var{children:t,keyName:r}=e,{Undefined:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Oj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v]})};rv.displayName="JVR.TypeUndefined";var ov=e=>{var{children:t,keyName:r}=e,{Null:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Fj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t,className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v]})};ov.displayName="JVR.TypeNull";var iv=e=>{var{children:t,keyName:r}=e,{Nan:i={},displayDataTypes:l}=Ge(),{as:a,render:u}=i,d=Le(i,Mj),f=a||"span",p=G({},Nn,i.style||{}),g=u&&typeof u=="function",m=g&&u(G({},d,{style:p}),{type:"type",value:t,keyName:r}),v=g&&u(G({},d,{children:t==null?void 0:t.toString(),className:"w-rjv-value"}),{type:"value",value:t,keyName:r});return y.jsxs(N.Fragment,{children:[l&&(m||y.jsx(f,G({},d,{style:p}))),v]})};iv.displayName="JVR.TypeNan";var Bj=e=>Number(e)===e&&e%1!==0||isNaN(e),lv=e=>{var{value:t,keyName:r}=e,i={keyName:r};return t instanceof URL?y.jsx(tv,G({},i,{children:t})):typeof t=="string"?y.jsx(Kx,G({},i,{children:t})):t===!0?y.jsx(Qx,G({},i,{children:t})):t===!1?y.jsx(Yx,G({},i,{children:t})):t===null?y.jsx(ov,G({},i,{children:t})):t===void 0?y.jsx(rv,G({},i,{children:t})):t instanceof Date?y.jsx(nv,G({},i,{children:t})):typeof t=="number"&&isNaN(t)?y.jsx(iv,G({},i,{children:t})):typeof t=="number"&&Bj(t)?y.jsx(Xx,G({},i,{children:t})):typeof t=="bigint"?y.jsx(ev,G({},i,{children:t})):typeof t=="number"?y.jsx(Zx,G({},i,{children:t})):null};lv.displayName="JVR.Value";function Rr(e,t,r){var i=pj(),l=[e.className,t.className].filter(Boolean).join(" "),a=G({},e,t,{className:l,style:G({},e.style,t.style),children:t.children||e.children});N.useEffect(()=>i({[r]:a}),[t])}function an(e,t,r){var i=uj(),l=[e.className,t.className].filter(Boolean).join(" "),a=G({},e,t,{className:l,style:G({},e.style,t.style),children:t.children||e.children});N.useEffect(()=>i({[r]:a}),[t])}function ei(e,t,r){var i=gj(),l=[e.className,t.className].filter(Boolean).join(" "),a=G({},e,t,{className:l,style:G({},e.style,t.style),children:t.children||e.children});N.useEffect(()=>i({[r]:a}),[t])}var Uj=["as","render"],sv=e=>{var{KeyName:t={}}=vn();return ei(t,e,"KeyName"),null};sv.displayName="JVR.KeyName";var av=e=>{var{children:t,value:r,parentValue:i,keyName:l,keys:a}=e,u=typeof t=="number",d={color:u?"var(--w-rjv-key-number, #268bd2)":"var(--w-rjv-key-string, #002b36)"},{KeyName:f={}}=vn(),{as:p,render:g}=f,m=Le(f,Uj);m.style=G({},m.style,d);var v=p||"span",w=g&&typeof g=="function"&&g(G({},m,{children:t}),{value:r,parentValue:i,keyName:l,keys:a||(l?[l]:[])});return w||y.jsx(v,G({},m,{children:t}))};av.displayName="JVR.KeyNameComp";var Vj=["children","value","parentValue","keyName","keys"],Hj=["as","render","children"],uv=e=>{var{Row:t={}}=vn();return ei(t,e,"Row"),null};uv.displayName="JVR.Row";var cv=e=>{var{children:t,value:r,parentValue:i,keyName:l,keys:a}=e,u=Le(e,Vj),{Row:d={}}=vn(),{as:f,render:p}=d,g=Le(d,Hj),m=f||"div",v=p&&typeof p=="function"&&p(G({},u,g,{children:t}),{value:r,keyName:l,parentValue:i,keys:a});return v||y.jsx(m,G({},u,g,{children:t}))};cv.displayName="JVR.RowComp";function Wj(e){var t=N.useRef();return N.useEffect(()=>{t.current=e}),t.current}function qj(e){var{value:t,highlightUpdates:r,highlightContainer:i}=e,l=Wj(t),a=N.useMemo(()=>{if(!r||l===void 0)return!1;if(typeof t!=typeof l)return!0;if(typeof t=="number")return isNaN(t)&&isNaN(l)?!1:t!==l;if(Array.isArray(t)!==Array.isArray(l))return!0;if(typeof t=="object"||typeof t=="function")return!1;if(t!==l)return!0},[r,t]);N.useEffect(()=>{i&&i.current&&a&&"animate"in i.current&&i.current.animate([{backgroundColor:"var(--w-rjv-update-color, #ebcb8b)"},{backgroundColor:""}],{duration:1e3,easing:"ease-in"})},[a,t,i])}var Gj=["keyName","value","parentValue","expandKey","keys"],Jj=["as","render"],Zd=e=>{var{keyName:t,value:r,parentValue:i,expandKey:l,keys:a}=e,u=Le(e,Gj),{onCopied:d,enableClipboard:f}=io(),p=nj(),g=p[l],[m,v]=N.useState(!1),{Copied:w={}}=vn();if(f===!1||!g)return null;var k=W=>{W.stopPropagation();var A="";typeof r=="number"&&r===1/0?A="Infinity":typeof r=="number"&&isNaN(r)?A="NaN":typeof r=="bigint"?A=md(r):r instanceof Date?A=r.toLocaleString():A=JSON.stringify(r,(K,le)=>typeof le=="bigint"?md(le):le,2),d&&d(A,r),v(!0);var H=navigator.clipboard||{writeText(K){return new Promise((le,O)=>{var ee=document.createElement("textarea");ee.style.position="absolute",ee.style.opacity="0",ee.style.left="-99999999px",ee.value=K,document.body.appendChild(ee),ee.select(),document.execCommand("copy")?le():O(),ee.remove()})}};H.writeText(A).then(()=>{var K=setTimeout(()=>{v(!1),clearTimeout(K)},3e3)}).catch(K=>{})},S={style:{display:"inline-flex"},fill:m?"var(--w-rjv-copied-success-color, #28a745)":"var(--w-rjv-copied-color, currentColor)",onClick:k},{render:j}=w,E=Le(w,Jj),P=G({},E,u,S,{style:G({},E.style,u.style,S.style)}),$=j&&typeof j=="function",D=$&&j(G({},P,{"data-copied":m}),{value:r,keyName:t,keys:a,parentValue:i});return D||(m?y.jsx("svg",G({viewBox:"0 0 32 36"},P,{children:y.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"})})):y.jsx("svg",G({viewBox:"0 0 32 36"},P,{children:y.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"})})))};Zd.displayName="JVR.Copied";function dv(){var e=N.useRef(null);return e.current===null&&(e.current="custom-id-"+Math.random().toString(36).substr(2,9)),e.current}var fv=e=>{var t,{value:r,expandKey:i="",level:l,keys:a=[]}=e,u=Ca(),{objectSortKeys:d,indentWidth:f,collapsed:p,shouldExpandNodeInitially:g}=io(),m=Array.isArray(r),v=typeof p=="boolean"?p:typeof p=="number"?l>p:!1,w=(t=u[i])!=null?t:v;if(u[i]===void 0&&g&&g(w,{value:r,keys:a,level:l})||w)return null;var k=m?Object.entries(r).map(j=>[Number(j[0]),j[1]]):Object.entries(r);d&&(k=d===!0?k.sort((j,E)=>{var[P]=j,[$]=E;return typeof P=="string"&&typeof $=="string"?P.localeCompare($):0}):k.sort((j,E)=>{var[P,$]=j,[D,W]=E;return typeof P=="string"&&typeof D=="string"?d(P,D,$,W):0}));var S={borderLeft:"var(--w-rjv-border-left-width, 1px) var(--w-rjv-line-style, solid) var(--w-rjv-line-color, #ebebeb)",paddingLeft:f,marginLeft:6};return y.jsx("div",{className:"w-rjv-wrap",style:S,children:k.map((j,E)=>{var[P,$]=j;return y.jsx(pv,{parentValue:r,keyName:P,keys:[...a,P],value:$,level:l},E)})})};fv.displayName="JVR.KeyValues";var ef=e=>{var{keyName:t,parentValue:r,keys:i,value:l}=e,{highlightUpdates:a}=io(),u=typeof t=="number",d=N.useRef(null);qj({value:l,highlightUpdates:a,highlightContainer:d});var f={keyName:t,value:l,keys:i,parentValue:r};return y.jsxs(N.Fragment,{children:[y.jsxs("span",{ref:d,children:[y.jsx(hd,G({isNumber:u,"data-placement":"left"},f)),y.jsx(av,G({},f,{children:t})),y.jsx(hd,G({isNumber:u,"data-placement":"right"},f))]}),y.jsx(Vx,G({},f))]})};ef.displayName="JVR.KayName";var pv=e=>{var{keyName:t,value:r,parentValue:i,level:l=0,keys:a=[]}=e,u=Ex(),d=dv(),f=Array.isArray(r),p=r instanceof Set,g=r instanceof Map,m=r instanceof Date,v=r instanceof URL,w=r&&typeof r=="object"&&!f&&!p&&!g&&!m&&!v,k=w||f||p||g;if(k){var S=p?Array.from(r):g?Object.fromEntries(r):r;return y.jsx(tf,{keyName:t,value:S,parentValue:i,initialValue:r,keys:a,level:l+1})}var j={onMouseEnter:()=>u({[d]:!0}),onMouseLeave:()=>u({[d]:!1})};return y.jsxs(cv,G({className:"w-rjv-line",value:r,keyName:t,keys:a,parentValue:i},j,{children:[y.jsx(ef,{keyName:t,value:r,keys:a,parentValue:i}),y.jsx(lv,{keyName:t,value:r}),y.jsx(Zd,{keyName:t,value:r,keys:a,parentValue:i,expandKey:d})]}))};pv.displayName="JVR.KeyValuesItem";var Kj=["value","keyName"],Qj=["as","render"],hv=e=>{var{CountInfoExtra:t={}}=vn();return ei(t,e,"CountInfoExtra"),null};hv.displayName="JVR.CountInfoExtra";var mv=e=>{var{value:t={},keyName:r}=e,i=Le(e,Kj),{CountInfoExtra:l={}}=vn(),{as:a,render:u}=l,d=Le(l,Qj);if(!u&&!d.children)return null;var f=a||"span",p=u&&typeof u=="function",g=G({},d,i),m=p&&u(g,{value:t,keyName:r});return m||y.jsx(f,G({},g))};mv.displayName="JVR.CountInfoExtraComps";var Yj=["value","keyName"],Xj=["as","render"],gv=e=>{var{CountInfo:t={}}=vn();return ei(t,e,"CountInfo"),null};gv.displayName="JVR.CountInfo";var yv=e=>{var{value:t={},keyName:r}=e,i=Le(e,Yj),{displayObjectSize:l}=io(),{CountInfo:a={}}=vn();if(!l)return null;var{as:u,render:d}=a,f=Le(a,Xj),p=u||"span";f.style=G({},f.style,e.style);var g=Object.keys(t).length;f.children||(f.children=g+" item"+(g===1?"":"s"));var m=G({},f,i),v=d&&typeof d=="function",w=v&&d(G({},m,{"data-length":g}),{value:t,keyName:r});return w||y.jsx(p,G({},m))};yv.displayName="JVR.CountInfoComp";var Zj=["as","render"],xv=e=>{var{Ellipsis:t={}}=vn();return ei(t,e,"Ellipsis"),null};xv.displayName="JVR.Ellipsis";var vv=e=>{var{isExpanded:t,value:r,keyName:i}=e,{Ellipsis:l={}}=vn(),{as:a,render:u}=l,d=Le(l,Zj),f=a||"span",p=u&&typeof u=="function"&&u(G({},d,{"data-expanded":t}),{value:r,keyName:i});return p||(!t||typeof r=="object"&&Object.keys(r).length==0?null:y.jsx(f,G({},d)))};vv.displayName="JVR.EllipsisComp";var wv=e=>{var t,{keyName:r,expandKey:i,keys:l=[],initialValue:a,value:u,parentValue:d,level:f}=e,p=Ca(),g=lj(),{onExpand:m,collapsed:v,shouldExpandNodeInitially:w}=io(),k=Array.isArray(u),S=u instanceof Set,j=typeof v=="boolean"?v:typeof v=="number"?f>v:!1,E=typeof u=="object",P=(t=p[i])!=null?t:j,$=w&&w(P,{value:u,keys:l,level:f});p[i]===void 0&&$!==void 0&&(P=$);var D=()=>{var ee={expand:!P,value:u,keyid:i,keyName:r};m&&m(ee),g({[i]:ee.expand})},W={display:"inline-flex",alignItems:"center"},A={transform:"rotate("+(P?"-90":"0")+"deg)",transition:"all 0.3s"},H=Object.keys(u).length,K=H!==0&&(k||S||E),le={style:W};K&&(le.onClick=D);var O={keyName:r,value:u,keys:l,parentValue:d};return y.jsxs("span",G({},le,{children:[K&&y.jsx(Hx,G({style:A,expandKey:i},O)),(r||typeof r=="number")&&y.jsx(ef,G({},O)),y.jsx(Gx,{value:a,keyName:r}),y.jsx(Jx,{value:a,keyName:r}),y.jsx(Wx,G({isBrackets:k||S},O)),y.jsx(vv,{keyName:r,value:u,isExpanded:P}),y.jsx(Xd,G({isVisiable:P||!K,isBrackets:k||S},O)),y.jsx(yv,{value:u,keyName:r}),y.jsx(mv,{value:u,keyName:r}),y.jsx(Zd,{keyName:r,value:u,expandKey:i,parentValue:d,keys:l})]}))};wv.displayName="JVR.NestedOpen";var e2=["className","children","parentValue","keyid","level","value","initialValue","keys","keyName"],tf=N.forwardRef((e,t)=>{var{className:r="",parentValue:i,level:l=1,value:a,initialValue:u,keys:d,keyName:f}=e,p=Le(e,e2),g=Ex(),m=dv(),v=[r,"w-rjv-inner"].filter(Boolean).join(" "),w={onMouseEnter:()=>g({[m]:!0}),onMouseLeave:()=>g({[m]:!1})};return y.jsxs("div",G({className:v,ref:t},p,w,{children:[y.jsx(wv,{expandKey:m,value:a,level:l,keys:d,parentValue:i,keyName:f,initialValue:u}),y.jsx(fv,{expandKey:m,value:a,level:l,keys:d,parentValue:i,keyName:f}),y.jsx(qx,{expandKey:m,value:a,level:l,keys:d})]}))});tf.displayName="JVR.Container";var kv=e=>{var{BraceLeft:t={}}=Kt();return Rr(t,e,"BraceLeft"),null};kv.displayName="JVR.BraceLeft";var bv=e=>{var{BraceRight:t={}}=Kt();return Rr(t,e,"BraceRight"),null};bv.displayName="JVR.BraceRight";var Sv=e=>{var{BracketsLeft:t={}}=Kt();return Rr(t,e,"BracketsLeft"),null};Sv.displayName="JVR.BracketsLeft";var Cv=e=>{var{BracketsRight:t={}}=Kt();return Rr(t,e,"BracketsRight"),null};Cv.displayName="JVR.BracketsRight";var Ev=e=>{var{Arrow:t={}}=Kt();return Rr(t,e,"Arrow"),null};Ev.displayName="JVR.Arrow";var jv=e=>{var{Colon:t={}}=Kt();return Rr(t,e,"Colon"),null};jv.displayName="JVR.Colon";var Tv=e=>{var{Quote:t={}}=Kt();return Rr(t,e,"Quote"),null};Tv.displayName="JVR.Quote";var Rv=e=>{var{ValueQuote:t={}}=Kt();return Rr(t,e,"ValueQuote"),null};Rv.displayName="JVR.ValueQuote";var Iv=e=>{var{Bigint:t={}}=Ge();return an(t,e,"Bigint"),null};Iv.displayName="JVR.Bigint";var Nv=e=>{var{Date:t={}}=Ge();return an(t,e,"Date"),null};Nv.displayName="JVR.Date";var Pv=e=>{var{False:t={}}=Ge();return an(t,e,"False"),null};Pv.displayName="JVR.False";var $v=e=>{var{Float:t={}}=Ge();return an(t,e,"Float"),null};$v.displayName="JVR.Float";var Av=e=>{var{Int:t={}}=Ge();return an(t,e,"Int"),null};Av.displayName="JVR.Int";var Lv=e=>{var{Map:t={}}=Ge();return an(t,e,"Map"),null};Lv.displayName="JVR.Map";var _v=e=>{var{Nan:t={}}=Ge();return an(t,e,"Nan"),null};_v.displayName="JVR.Nan";var zv=e=>{var{Null:t={}}=Ge();return an(t,e,"Null"),null};zv.displayName="JVR.Null";var Dv=e=>{var{Set:t={}}=Ge();return an(t,e,"Set"),null};Dv.displayName="JVR.Set";var Ov=e=>{var{Str:t={}}=Ge();return an(t,e,"Str"),null};Ov.displayName="JVR.StringText";var Fv=e=>{var{True:t={}}=Ge();return an(t,e,"True"),null};Fv.displayName="JVR.True";var Mv=e=>{var{Undefined:t={}}=Ge();return an(t,e,"Undefined"),null};Mv.displayName="JVR.Undefined";var Bv=e=>{var{Url:t={}}=Ge();return an(t,e,"Url"),null};Bv.displayName="JVR.Url";var Uv=e=>{var{Copied:t={}}=vn();return ei(t,e,"Copied"),null};Uv.displayName="JVR.Copied";var t2=["className","style","value","children","collapsed","shouldExpandNodeInitially","indentWidth","displayObjectSize","shortenTextAfterLength","highlightUpdates","enableClipboard","displayDataTypes","objectSortKeys","onExpand","onCopied"],Ue=N.forwardRef((e,t)=>{var{className:r="",style:i,value:l,children:a,collapsed:u,shouldExpandNodeInitially:d,indentWidth:f=15,displayObjectSize:p=!0,shortenTextAfterLength:g=30,highlightUpdates:m=!0,enableClipboard:v=!0,displayDataTypes:w=!0,objectSortKeys:k=!1,onExpand:S,onCopied:j}=e,E=Le(e,t2),P=G({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},i),$=["w-json-view-container","w-rjv",r].filter(Boolean).join(" ");return y.jsxs(Ux,{initialState:{value:l,objectSortKeys:k,indentWidth:f,shouldExpandNodeInitially:d,displayObjectSize:p,collapsed:u,enableClipboard:v,shortenTextAfterLength:g,highlightUpdates:m,onCopied:j,onExpand:S},initialTypes:{displayDataTypes:w},children:[y.jsx(tf,G({value:l},E,{ref:t,className:$,style:P})),a]})});Ue.Bigint=Iv;Ue.Date=Nv;Ue.False=Pv;Ue.Float=$v;Ue.Int=Av;Ue.Map=Lv;Ue.Nan=_v;Ue.Null=zv;Ue.Set=Dv;Ue.String=Ov;Ue.True=Fv;Ue.Undefined=Mv;Ue.Url=Bv;Ue.ValueQuote=Rv;Ue.Arrow=Ev;Ue.Colon=jv;Ue.Quote=Tv;Ue.Ellipsis=xv;Ue.BraceLeft=kv;Ue.BraceRight=bv;Ue.BracketsLeft=Sv;Ue.BracketsRight=Cv;Ue.Copied=Uv;Ue.CountInfo=gv;Ue.CountInfoExtra=hv;Ue.KeyName=sv;Ue.Row=uv;Ue.displayName="JVR.JsonView";var n2={"--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"},r2={"--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 o2=T.pre`
831
+ margin-top: 8px;
832
+ padding: 8px;
833
+ background-color: ${e=>e.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
+ `,Vv=({data:e})=>{const t=cb();return y.jsx(o2,{children:typeof e=="object"?y.jsx(Ue,{value:e,shortenTextAfterLength:0,style:t.name==="dark"?n2:r2}):JSON.stringify(e,null,2)})};function i2(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const l2=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,s2=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,a2={};function eg(e,t){return(a2.jsx?s2:l2).test(e)}const u2=/[ \t\n\f\r]/g;function c2(e){return typeof e=="object"?e.type==="text"?tg(e.value):!1:tg(e)}function tg(e){return e.replace(u2,"")===""}class gl{constructor(t,r,i){this.normal=r,this.property=t,i&&(this.space=i)}}gl.prototype.normal={};gl.prototype.property={};gl.prototype.space=void 0;function Hv(e,t){const r={},i={};for(const l of e)Object.assign(r,l.property),Object.assign(i,l.normal);return new gl(r,i,t)}function gd(e){return e.toLowerCase()}class Qt{constructor(t,r){this.attribute=r,this.property=t}}Qt.prototype.attribute="";Qt.prototype.booleanish=!1;Qt.prototype.boolean=!1;Qt.prototype.commaOrSpaceSeparated=!1;Qt.prototype.commaSeparated=!1;Qt.prototype.defined=!1;Qt.prototype.mustUseProperty=!1;Qt.prototype.number=!1;Qt.prototype.overloadedBoolean=!1;Qt.prototype.property="";Qt.prototype.spaceSeparated=!1;Qt.prototype.space=void 0;let d2=0;const Re=lo(),ut=lo(),yd=lo(),te=lo(),qe=lo(),Oo=lo(),nn=lo();function lo(){return 2**++d2}const xd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Re,booleanish:ut,commaOrSpaceSeparated:nn,commaSeparated:Oo,number:te,overloadedBoolean:yd,spaceSeparated:qe},Symbol.toStringTag,{value:"Module"})),Nc=Object.keys(xd);class nf extends Qt{constructor(t,r,i,l){let a=-1;if(super(t,r),ng(this,"space",l),typeof i=="number")for(;++a<Nc.length;){const u=Nc[a];ng(this,Nc[a],(i&xd[u])===xd[u])}}}nf.prototype.defined=!0;function ng(e,t,r){r&&(e[t]=r)}function ti(e){const t={},r={};for(const[i,l]of Object.entries(e.properties)){const a=new nf(i,e.transform(e.attributes||{},i),l,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(a.mustUseProperty=!0),t[i]=a,r[gd(i)]=i,r[gd(a.attribute)]=i}return new gl(t,r,e.space)}const Wv=ti({properties:{ariaActiveDescendant:null,ariaAtomic:ut,ariaAutoComplete:null,ariaBusy:ut,ariaChecked:ut,ariaColCount:te,ariaColIndex:te,ariaColSpan:te,ariaControls:qe,ariaCurrent:null,ariaDescribedBy:qe,ariaDetails:null,ariaDisabled:ut,ariaDropEffect:qe,ariaErrorMessage:null,ariaExpanded:ut,ariaFlowTo:qe,ariaGrabbed:ut,ariaHasPopup:null,ariaHidden:ut,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:qe,ariaLevel:te,ariaLive:null,ariaModal:ut,ariaMultiLine:ut,ariaMultiSelectable:ut,ariaOrientation:null,ariaOwns:qe,ariaPlaceholder:null,ariaPosInSet:te,ariaPressed:ut,ariaReadOnly:ut,ariaRelevant:null,ariaRequired:ut,ariaRoleDescription:qe,ariaRowCount:te,ariaRowIndex:te,ariaRowSpan:te,ariaSelected:ut,ariaSetSize:te,ariaSort:null,ariaValueMax:te,ariaValueMin:te,ariaValueNow:te,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function qv(e,t){return t in e?e[t]:t}function Gv(e,t){return qv(e,t.toLowerCase())}const f2=ti({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Oo,acceptCharset:qe,accessKey:qe,action:null,allow:null,allowFullScreen:Re,allowPaymentRequest:Re,allowUserMedia:Re,alt:null,as:null,async:Re,autoCapitalize:null,autoComplete:qe,autoFocus:Re,autoPlay:Re,blocking:qe,capture:null,charSet:null,checked:Re,cite:null,className:qe,cols:te,colSpan:null,content:null,contentEditable:ut,controls:Re,controlsList:qe,coords:te|Oo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Re,defer:Re,dir:null,dirName:null,disabled:Re,download:yd,draggable:ut,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Re,formTarget:null,headers:qe,height:te,hidden:yd,high:te,href:null,hrefLang:null,htmlFor:qe,httpEquiv:qe,id:null,imageSizes:null,imageSrcSet:null,inert:Re,inputMode:null,integrity:null,is:null,isMap:Re,itemId:null,itemProp:qe,itemRef:qe,itemScope:Re,itemType:qe,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Re,low:te,manifest:null,max:null,maxLength:te,media:null,method:null,min:null,minLength:te,multiple:Re,muted:Re,name:null,nonce:null,noModule:Re,noValidate:Re,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Re,optimum:te,pattern:null,ping:qe,placeholder:null,playsInline:Re,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Re,referrerPolicy:null,rel:qe,required:Re,reversed:Re,rows:te,rowSpan:te,sandbox:qe,scope:null,scoped:Re,seamless:Re,selected:Re,shadowRootClonable:Re,shadowRootDelegatesFocus:Re,shadowRootMode:null,shape:null,size:te,sizes:null,slot:null,span:te,spellCheck:ut,src:null,srcDoc:null,srcLang:null,srcSet:null,start:te,step:null,style:null,tabIndex:te,target:null,title:null,translate:null,type:null,typeMustMatch:Re,useMap:null,value:ut,width:te,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:qe,axis:null,background:null,bgColor:null,border:te,borderColor:null,bottomMargin:te,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Re,declare:Re,event:null,face:null,frame:null,frameBorder:null,hSpace:te,leftMargin:te,link:null,longDesc:null,lowSrc:null,marginHeight:te,marginWidth:te,noResize:Re,noHref:Re,noShade:Re,noWrap:Re,object:null,profile:null,prompt:null,rev:null,rightMargin:te,rules:null,scheme:null,scrolling:ut,standby:null,summary:null,text:null,topMargin:te,valueType:null,version:null,vAlign:null,vLink:null,vSpace:te,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Re,disableRemotePlayback:Re,prefix:null,property:null,results:te,security:null,unselectable:null},space:"html",transform:Gv}),p2=ti({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:nn,accentHeight:te,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:te,amplitude:te,arabicForm:null,ascent:te,attributeName:null,attributeType:null,azimuth:te,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:te,by:null,calcMode:null,capHeight:te,className:qe,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:te,diffuseConstant:te,direction:null,display:null,dur:null,divisor:te,dominantBaseline:null,download:Re,dx:null,dy:null,edgeMode:null,editable:null,elevation:te,enableBackground:null,end:null,event:null,exponent:te,externalResourcesRequired:null,fill:null,fillOpacity:te,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Oo,g2:Oo,glyphName:Oo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:te,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:te,horizOriginX:te,horizOriginY:te,id:null,ideographic:te,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:te,k:te,k1:te,k2:te,k3:te,k4:te,kernelMatrix:nn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:te,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:te,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:te,overlineThickness:te,paintOrder:null,panose1:null,path:null,pathLength:te,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:qe,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:te,pointsAtY:te,pointsAtZ:te,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:nn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:nn,rev:nn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:nn,requiredFeatures:nn,requiredFonts:nn,requiredFormats:nn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:te,specularExponent:te,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:te,strikethroughThickness:te,string:null,stroke:null,strokeDashArray:nn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:te,strokeOpacity:te,strokeWidth:null,style:null,surfaceScale:te,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:nn,tabIndex:te,tableValues:null,target:null,targetX:te,targetY:te,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:nn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:te,underlineThickness:te,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:te,values:null,vAlphabetic:te,vMathematical:te,vectorEffect:null,vHanging:te,vIdeographic:te,version:null,vertAdvY:te,vertOriginX:te,vertOriginY:te,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:te,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:qv}),Jv=ti({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Kv=ti({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Gv}),Qv=ti({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),h2={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},m2=/[A-Z]/g,rg=/-[a-z]/g,g2=/^data[-\w.:]+$/i;function y2(e,t){const r=gd(t);let i=t,l=Qt;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&g2.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(rg,v2);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!rg.test(a)){let u=a.replace(m2,x2);u.charAt(0)!=="-"&&(u="-"+u),t="data"+u}}l=nf}return new l(i,t)}function x2(e){return"-"+e.toLowerCase()}function v2(e){return e.charAt(1).toUpperCase()}const w2=Hv([Wv,f2,Jv,Kv,Qv],"html"),rf=Hv([Wv,p2,Jv,Kv,Qv],"svg");function k2(e){return e.join(" ").trim()}var Lo={},Pc,og;function b2(){if(og)return Pc;og=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,u=/^[;\s]*/,d=/^\s+|\s+$/g,f=`
844
+ `,p="/",g="*",m="",v="comment",w="declaration";Pc=function(S,j){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];j=j||{};var E=1,P=1;function $(ne){var re=ne.match(t);re&&(E+=re.length);var U=ne.lastIndexOf(f);P=~U?ne.length-U:P+ne.length}function D(){var ne={line:E,column:P};return function(re){return re.position=new W(ne),K(),re}}function W(ne){this.start=ne,this.end={line:E,column:P},this.source=j.source}W.prototype.content=S;function A(ne){var re=new Error(j.source+":"+E+":"+P+": "+ne);if(re.reason=ne,re.filename=j.source,re.line=E,re.column=P,re.source=S,!j.silent)throw re}function H(ne){var re=ne.exec(S);if(re){var U=re[0];return $(U),S=S.slice(U.length),re}}function K(){H(r)}function le(ne){var re;for(ne=ne||[];re=O();)re!==!1&&ne.push(re);return ne}function O(){var ne=D();if(!(p!=S.charAt(0)||g!=S.charAt(1))){for(var re=2;m!=S.charAt(re)&&(g!=S.charAt(re)||p!=S.charAt(re+1));)++re;if(re+=2,m===S.charAt(re-1))return A("End of comment missing");var U=S.slice(2,re-2);return P+=2,$(U),S=S.slice(re),P+=2,ne({type:v,comment:U})}}function ee(){var ne=D(),re=H(i);if(re){if(O(),!H(l))return A("property missing ':'");var U=H(a),de=ne({type:w,property:k(re[0].replace(e,m)),value:U?k(U[0].replace(e,m)):m});return H(u),de}}function se(){var ne=[];le(ne);for(var re;re=ee();)re!==!1&&(ne.push(re),le(ne));return ne}return K(),se()};function k(S){return S?S.replace(d,m):m}return Pc}var ig;function S2(){if(ig)return Lo;ig=1;var e=Lo&&Lo.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.default=r;var t=e(b2());function r(i,l){var a=null;if(!i||typeof i!="string")return a;var u=(0,t.default)(i),d=typeof l=="function";return u.forEach(function(f){if(f.type==="declaration"){var p=f.property,g=f.value;d?l(p,g,f):g&&(a=a||{},a[p]=g)}}),a}return Lo}var Gi={},lg;function C2(){if(lg)return Gi;lg=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,l=/^-(ms)-/,a=function(p){return!p||r.test(p)||e.test(p)},u=function(p,g){return g.toUpperCase()},d=function(p,g){return"".concat(g,"-")},f=function(p,g){return g===void 0&&(g={}),a(p)?p:(p=p.toLowerCase(),g.reactCompat?p=p.replace(l,d):p=p.replace(i,d),p.replace(t,u))};return Gi.camelCase=f,Gi}var Ji,sg;function E2(){if(sg)return Ji;sg=1;var e=Ji&&Ji.__importDefault||function(l){return l&&l.__esModule?l:{default:l}},t=e(S2()),r=C2();function i(l,a){var u={};return!l||typeof l!="string"||(0,t.default)(l,function(d,f){d&&f&&(u[(0,r.camelCase)(d,a)]=f)}),u}return i.default=i,Ji=i,Ji}var j2=E2();const T2=Ad(j2),Yv=Xv("end"),of=Xv("start");function Xv(e){return t;function t(r){const i=r&&r.position&&r.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function R2(e){const t=of(e),r=Yv(e);if(t&&r)return{start:t,end:r}}function tl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ag(e.position):"start"in e||"end"in e?ag(e):"line"in e||"column"in e?vd(e):""}function vd(e){return ug(e&&e.line)+":"+ug(e&&e.column)}function ag(e){return vd(e&&e.start)+"-"+vd(e&&e.end)}function ug(e){return e&&typeof e=="number"?e:1}class At extends Error{constructor(t,r,i){super(),typeof r=="string"&&(i=r,r=void 0);let l="",a={},u=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?l=t:!a.cause&&t&&(u=!0,l=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?a.ruleId=i:(a.source=i.slice(0,f),a.ruleId=i.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const d=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=d?d.column:void 0,this.fatal=void 0,this.file,this.message=l,this.line=d?d.line:void 0,this.name=tl(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=u&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}At.prototype.file="";At.prototype.name="";At.prototype.reason="";At.prototype.message="";At.prototype.stack="";At.prototype.column=void 0;At.prototype.line=void 0;At.prototype.ancestors=void 0;At.prototype.cause=void 0;At.prototype.fatal=void 0;At.prototype.place=void 0;At.prototype.ruleId=void 0;At.prototype.source=void 0;const lf={}.hasOwnProperty,I2=new Map,N2=/[A-Z]/g,P2=new Set(["table","tbody","thead","tfoot","tr"]),$2=new Set(["td","th"]),Zv="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function A2(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=B2(r,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=M2(r,t.jsx,t.jsxs)}const l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?rf:w2,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=e0(l,e,void 0);return a&&typeof a!="string"?a:l.create(e,l.Fragment,{children:a||void 0},void 0)}function e0(e,t,r){if(t.type==="element")return L2(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return _2(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return D2(e,t,r);if(t.type==="mdxjsEsm")return z2(e,t);if(t.type==="root")return O2(e,t,r);if(t.type==="text")return F2(e,t)}function L2(e,t,r){const i=e.schema;let l=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(l=rf,e.schema=l),e.ancestors.push(t);const a=n0(e,t.tagName,!1),u=U2(e,t);let d=af(e,t);return P2.has(t.tagName)&&(d=d.filter(function(f){return typeof f=="string"?!c2(f):!0})),t0(e,u,a,t),sf(u,d),e.ancestors.pop(),e.schema=i,e.create(t,a,u,r)}function _2(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}ll(e,t.position)}function z2(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);ll(e,t.position)}function D2(e,t,r){const i=e.schema;let l=i;t.name==="svg"&&i.space==="html"&&(l=rf,e.schema=l),e.ancestors.push(t);const a=t.name===null?e.Fragment:n0(e,t.name,!0),u=V2(e,t),d=af(e,t);return t0(e,u,a,t),sf(u,d),e.ancestors.pop(),e.schema=i,e.create(t,a,u,r)}function O2(e,t,r){const i={};return sf(i,af(e,t)),e.create(t,e.Fragment,i,r)}function F2(e,t){return t.value}function t0(e,t,r,i){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=i)}function sf(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function M2(e,t,r){return i;function i(l,a,u,d){const p=Array.isArray(u.children)?r:t;return d?p(a,u,d):p(a,u)}}function B2(e,t){return r;function r(i,l,a,u){const d=Array.isArray(a.children),f=of(i);return t(l,a,u,d,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function U2(e,t){const r={};let i,l;for(l in t.properties)if(l!=="children"&&lf.call(t.properties,l)){const a=H2(e,l,t.properties[l]);if(a){const[u,d]=a;e.tableCellAlignToStyle&&u==="align"&&typeof d=="string"&&$2.has(t.tagName)?i=d:r[u]=d}}if(i){const a=r.style||(r.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return r}function V2(e,t){const r={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const u=a.expression;u.type;const d=u.properties[0];d.type,Object.assign(r,e.evaluater.evaluateExpression(d.argument))}else ll(e,t.position);else{const l=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const d=i.value.data.estree.body[0];d.type,a=e.evaluater.evaluateExpression(d.expression)}else ll(e,t.position);else a=i.value===null?!0:i.value;r[l]=a}return r}function af(e,t){const r=[];let i=-1;const l=e.passKeys?new Map:I2;for(;++i<t.children.length;){const a=t.children[i];let u;if(e.passKeys){const f=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(f){const p=l.get(f)||0;u=f+"-"+p,l.set(f,p+1)}}const d=e0(e,a,u);d!==void 0&&r.push(d)}return r}function H2(e,t,r){const i=y2(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?i2(r):k2(r)),i.property==="style"){let l=typeof r=="object"?r:W2(e,String(r));return e.stylePropertyNameCase==="css"&&(l=q2(l)),["style",l]}return[e.elementAttributeNameCase==="react"&&i.space?h2[i.property]||i.property:i.attribute,r]}}function W2(e,t){try{return T2(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,l=new At("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw l.file=e.filePath||void 0,l.url=Zv+"#cannot-parse-style-attribute",l}}function n0(e,t,r){let i;if(!r)i={type:"Literal",value:t};else if(t.includes(".")){const l=t.split(".");let a=-1,u;for(;++a<l.length;){const d=eg(l[a])?{type:"Identifier",name:l[a]}:{type:"Literal",value:l[a]};u=u?{type:"MemberExpression",object:u,property:d,computed:!!(a&&d.type==="Literal"),optional:!1}:d}i=u}else i=eg(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const l=i.value;return lf.call(e.components,l)?e.components[l]:l}if(e.evaluater)return e.evaluater.evaluateExpression(i);ll(e)}function ll(e,t){const r=new At("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=Zv+"#cannot-handle-mdx-estrees-without-createevaluater",r}function q2(e){const t={};let r;for(r in e)lf.call(e,r)&&(t[G2(r)]=e[r]);return t}function G2(e){let t=e.replace(N2,J2);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function J2(e){return"-"+e.toLowerCase()}const $c={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},K2={};function uf(e,t){const r=K2,i=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,l=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return r0(e,i,l)}function r0(e,t,r){if(Q2(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return cg(e.children,t,r)}return Array.isArray(e)?cg(e,t,r):""}function cg(e,t,r){const i=[];let l=-1;for(;++l<e.length;)i[l]=r0(e[l],t,r);return i.join("")}function Q2(e){return!!(e&&typeof e=="object")}const dg=document.createElement("i");function cf(e){const t="&"+e+";";dg.innerHTML=t;const r=dg.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function sn(e,t,r,i){const l=e.length;let a=0,u;if(t<0?t=-t>l?0:l+t:t=t>l?l:t,r=r>0?r:0,i.length<1e4)u=Array.from(i),u.unshift(t,r),e.splice(...u);else for(r&&e.splice(t,r);a<i.length;)u=i.slice(a,a+1e4),u.unshift(t,0),e.splice(...u),a+=1e4,t+=1e4}function yn(e,t){return e.length>0?(sn(e,e.length,0,t),e):t}const fg={}.hasOwnProperty;function o0(e){const t={};let r=-1;for(;++r<e.length;)Y2(t,e[r]);return t}function Y2(e,t){let r;for(r in t){const l=(fg.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let u;if(a)for(u in a){fg.call(l,u)||(l[u]=[]);const d=a[u];X2(l[u],Array.isArray(d)?d:d?[d]:[])}}}function X2(e,t){let r=-1;const i=[];for(;++r<t.length;)(t[r].add==="after"?e:i).push(t[r]);sn(e,0,0,i)}function i0(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Rn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ot=Ir(/[A-Za-z]/),$t=Ir(/[\dA-Za-z]/),Z2=Ir(/[#-'*+\--9=?A-Z^-~]/);function ia(e){return e!==null&&(e<32||e===127)}const wd=Ir(/\d/),eT=Ir(/[\dA-Fa-f]/),tT=Ir(/[!-/:-@[-`{-~]/);function ke(e){return e!==null&&e<-2}function He(e){return e!==null&&(e<0||e===32)}function Ae(e){return e===-2||e===-1||e===32}const Ea=Ir(new RegExp("\\p{P}|\\p{S}","u")),no=Ir(/\s/);function Ir(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function ni(e){const t=[];let r=-1,i=0,l=0;for(;++r<e.length;){const a=e.charCodeAt(r);let u="";if(a===37&&$t(e.charCodeAt(r+1))&&$t(e.charCodeAt(r+2)))l=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(u=String.fromCharCode(a));else if(a>55295&&a<57344){const d=e.charCodeAt(r+1);a<56320&&d>56319&&d<57344?(u=String.fromCharCode(a,d),l=1):u="�"}else u=String.fromCharCode(a);u&&(t.push(e.slice(i,r),encodeURIComponent(u)),i=r+l+1,u=""),l&&(r+=l,l=0)}return t.join("")+e.slice(i)}function ze(e,t,r,i){const l=i?i-1:Number.POSITIVE_INFINITY;let a=0;return u;function u(f){return Ae(f)?(e.enter(r),d(f)):t(f)}function d(f){return Ae(f)&&a++<l?(e.consume(f),d):(e.exit(r),t(f))}}const nT={tokenize:rT};function rT(e){const t=e.attempt(this.parser.constructs.contentInitial,i,l);let r;return t;function i(d){if(d===null){e.consume(d);return}return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ze(e,t,"linePrefix")}function l(d){return e.enter("paragraph"),a(d)}function a(d){const f=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=f),r=f,u(d)}function u(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return ke(d)?(e.consume(d),e.exit("chunkText"),a):(e.consume(d),u)}}const oT={tokenize:iT},pg={tokenize:lT};function iT(e){const t=this,r=[];let i=0,l,a,u;return d;function d($){if(i<r.length){const D=r[i];return t.containerState=D[1],e.attempt(D[0].continuation,f,p)($)}return p($)}function f($){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,l&&P();const D=t.events.length;let W=D,A;for(;W--;)if(t.events[W][0]==="exit"&&t.events[W][1].type==="chunkFlow"){A=t.events[W][1].end;break}E(i);let H=D;for(;H<t.events.length;)t.events[H][1].end={...A},H++;return sn(t.events,W+1,0,t.events.slice(D)),t.events.length=H,p($)}return d($)}function p($){if(i===r.length){if(!l)return v($);if(l.currentConstruct&&l.currentConstruct.concrete)return k($);t.interrupt=!!(l.currentConstruct&&!l._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(pg,g,m)($)}function g($){return l&&P(),E(i),v($)}function m($){return t.parser.lazy[t.now().line]=i!==r.length,u=t.now().offset,k($)}function v($){return t.containerState={},e.attempt(pg,w,k)($)}function w($){return i++,r.push([t.currentConstruct,t.containerState]),v($)}function k($){if($===null){l&&P(),E(0),e.consume($);return}return l=l||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:l,contentType:"flow",previous:a}),S($)}function S($){if($===null){j(e.exit("chunkFlow"),!0),E(0),e.consume($);return}return ke($)?(e.consume($),j(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume($),S)}function j($,D){const W=t.sliceStream($);if(D&&W.push(null),$.previous=a,a&&(a.next=$),a=$,l.defineSkip($.start),l.write(W),t.parser.lazy[$.start.line]){let A=l.events.length;for(;A--;)if(l.events[A][1].start.offset<u&&(!l.events[A][1].end||l.events[A][1].end.offset>u))return;const H=t.events.length;let K=H,le,O;for(;K--;)if(t.events[K][0]==="exit"&&t.events[K][1].type==="chunkFlow"){if(le){O=t.events[K][1].end;break}le=!0}for(E(i),A=H;A<t.events.length;)t.events[A][1].end={...O},A++;sn(t.events,K+1,0,t.events.slice(H)),t.events.length=A}}function E($){let D=r.length;for(;D-- >$;){const W=r[D];t.containerState=W[1],W[0].exit.call(t,e)}r.length=$}function P(){l.write([null]),a=void 0,l=void 0,t.containerState._closeFlow=void 0}}function lT(e,t,r){return ze(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jo(e){if(e===null||He(e)||no(e))return 1;if(Ea(e))return 2}function ja(e,t,r){const i=[];let l=-1;for(;++l<e.length;){const a=e[l].resolveAll;a&&!i.includes(a)&&(t=a(t,r),i.push(a))}return t}const kd={name:"attention",resolveAll:sT,tokenize:aT};function sT(e,t){let r=-1,i,l,a,u,d,f,p,g;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(i=r;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[i][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;f=e[i][1].end.offset-e[i][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const m={...e[i][1].end},v={...e[r][1].start};hg(m,-f),hg(v,f),u={type:f>1?"strongSequence":"emphasisSequence",start:m,end:{...e[i][1].end}},d={type:f>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},a={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[r][1].start}},l={type:f>1?"strong":"emphasis",start:{...u.start},end:{...d.end}},e[i][1].end={...u.start},e[r][1].start={...d.end},p=[],e[i][1].end.offset-e[i][1].start.offset&&(p=yn(p,[["enter",e[i][1],t],["exit",e[i][1],t]])),p=yn(p,[["enter",l,t],["enter",u,t],["exit",u,t],["enter",a,t]]),p=yn(p,ja(t.parser.constructs.insideSpan.null,e.slice(i+1,r),t)),p=yn(p,[["exit",a,t],["enter",d,t],["exit",d,t],["exit",l,t]]),e[r][1].end.offset-e[r][1].start.offset?(g=2,p=yn(p,[["enter",e[r][1],t],["exit",e[r][1],t]])):g=0,sn(e,i-1,r-i+3,p),r=i+p.length-g-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function aT(e,t){const r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=Jo(i);let a;return u;function u(f){return a=f,e.enter("attentionSequence"),d(f)}function d(f){if(f===a)return e.consume(f),d;const p=e.exit("attentionSequence"),g=Jo(f),m=!g||g===2&&l||r.includes(f),v=!l||l===2&&g||r.includes(i);return p._open=!!(a===42?m:m&&(l||!v)),p._close=!!(a===42?v:v&&(g||!m)),t(f)}}function hg(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const uT={name:"autolink",tokenize:cT};function cT(e,t,r){let i=0;return l;function l(w){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(w){return Ot(w)?(e.consume(w),u):w===64?r(w):p(w)}function u(w){return w===43||w===45||w===46||$t(w)?(i=1,d(w)):p(w)}function d(w){return w===58?(e.consume(w),i=0,f):(w===43||w===45||w===46||$t(w))&&i++<32?(e.consume(w),d):(i=0,p(w))}function f(w){return w===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):w===null||w===32||w===60||ia(w)?r(w):(e.consume(w),f)}function p(w){return w===64?(e.consume(w),g):Z2(w)?(e.consume(w),p):r(w)}function g(w){return $t(w)?m(w):r(w)}function m(w){return w===46?(e.consume(w),i=0,g):w===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(w),e.exit("autolinkMarker"),e.exit("autolink"),t):v(w)}function v(w){if((w===45||$t(w))&&i++<63){const k=w===45?v:m;return e.consume(w),k}return r(w)}}const yl={partial:!0,tokenize:dT};function dT(e,t,r){return i;function i(a){return Ae(a)?ze(e,l,"linePrefix")(a):l(a)}function l(a){return a===null||ke(a)?t(a):r(a)}}const l0={continuation:{tokenize:pT},exit:hT,name:"blockQuote",tokenize:fT};function fT(e,t,r){const i=this;return l;function l(u){if(u===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),a}return r(u)}function a(u){return Ae(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(u))}}function pT(e,t,r){const i=this;return l;function l(u){return Ae(u)?ze(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):a(u)}function a(u){return e.attempt(l0,t,r)(u)}}function hT(e){e.exit("blockQuote")}const s0={name:"characterEscape",tokenize:mT};function mT(e,t,r){return i;function i(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),l}function l(a){return tT(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const a0={name:"characterReference",tokenize:gT};function gT(e,t,r){const i=this;let l=0,a,u;return d;function d(m){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),f}function f(m){return m===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(m),e.exit("characterReferenceMarkerNumeric"),p):(e.enter("characterReferenceValue"),a=31,u=$t,g(m))}function p(m){return m===88||m===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(m),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,u=eT,g):(e.enter("characterReferenceValue"),a=7,u=wd,g(m))}function g(m){if(m===59&&l){const v=e.exit("characterReferenceValue");return u===$t&&!cf(i.sliceSerialize(v))?r(m):(e.enter("characterReferenceMarker"),e.consume(m),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return u(m)&&l++<a?(e.consume(m),g):r(m)}}const mg={partial:!0,tokenize:xT},gg={concrete:!0,name:"codeFenced",tokenize:yT};function yT(e,t,r){const i=this,l={partial:!0,tokenize:W};let a=0,u=0,d;return f;function f(A){return p(A)}function p(A){const H=i.events[i.events.length-1];return a=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,d=A,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),g(A)}function g(A){return A===d?(u++,e.consume(A),g):u<3?r(A):(e.exit("codeFencedFenceSequence"),Ae(A)?ze(e,m,"whitespace")(A):m(A))}function m(A){return A===null||ke(A)?(e.exit("codeFencedFence"),i.interrupt?t(A):e.check(mg,S,D)(A)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(A))}function v(A){return A===null||ke(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),m(A)):Ae(A)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ze(e,w,"whitespace")(A)):A===96&&A===d?r(A):(e.consume(A),v)}function w(A){return A===null||ke(A)?m(A):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),k(A))}function k(A){return A===null||ke(A)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),m(A)):A===96&&A===d?r(A):(e.consume(A),k)}function S(A){return e.attempt(l,D,j)(A)}function j(A){return e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),E}function E(A){return a>0&&Ae(A)?ze(e,P,"linePrefix",a+1)(A):P(A)}function P(A){return A===null||ke(A)?e.check(mg,S,D)(A):(e.enter("codeFlowValue"),$(A))}function $(A){return A===null||ke(A)?(e.exit("codeFlowValue"),P(A)):(e.consume(A),$)}function D(A){return e.exit("codeFenced"),t(A)}function W(A,H,K){let le=0;return O;function O(U){return A.enter("lineEnding"),A.consume(U),A.exit("lineEnding"),ee}function ee(U){return A.enter("codeFencedFence"),Ae(U)?ze(A,se,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):se(U)}function se(U){return U===d?(A.enter("codeFencedFenceSequence"),ne(U)):K(U)}function ne(U){return U===d?(le++,A.consume(U),ne):le>=u?(A.exit("codeFencedFenceSequence"),Ae(U)?ze(A,re,"whitespace")(U):re(U)):K(U)}function re(U){return U===null||ke(U)?(A.exit("codeFencedFence"),H(U)):K(U)}}}function xT(e,t,r){const i=this;return l;function l(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a)}function a(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}const Ac={name:"codeIndented",tokenize:wT},vT={partial:!0,tokenize:kT};function wT(e,t,r){const i=this;return l;function l(p){return e.enter("codeIndented"),ze(e,a,"linePrefix",5)(p)}function a(p){const g=i.events[i.events.length-1];return g&&g[1].type==="linePrefix"&&g[2].sliceSerialize(g[1],!0).length>=4?u(p):r(p)}function u(p){return p===null?f(p):ke(p)?e.attempt(vT,u,f)(p):(e.enter("codeFlowValue"),d(p))}function d(p){return p===null||ke(p)?(e.exit("codeFlowValue"),u(p)):(e.consume(p),d)}function f(p){return e.exit("codeIndented"),t(p)}}function kT(e,t,r){const i=this;return l;function l(u){return i.parser.lazy[i.now().line]?r(u):ke(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),l):ze(e,a,"linePrefix",5)(u)}function a(u){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):ke(u)?l(u):r(u)}}const bT={name:"codeText",previous:CT,resolve:ST,tokenize:ET};function ST(e){let t=e.length-4,r=3,i,l;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=r;++i<t;)if(e[i][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(i=r-1,t++;++i<=t;)l===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(l=i):(i===t||e[i][1].type==="lineEnding")&&(e[l][1].type="codeTextData",i!==l+2&&(e[l][1].end=e[i-1][1].end,e.splice(l+2,i-l-2),t-=i-l-2,i=l+2),l=void 0);return e}function CT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ET(e,t,r){let i=0,l,a;return u;function u(m){return e.enter("codeText"),e.enter("codeTextSequence"),d(m)}function d(m){return m===96?(e.consume(m),i++,d):(e.exit("codeTextSequence"),f(m))}function f(m){return m===null?r(m):m===32?(e.enter("space"),e.consume(m),e.exit("space"),f):m===96?(a=e.enter("codeTextSequence"),l=0,g(m)):ke(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),f):(e.enter("codeTextData"),p(m))}function p(m){return m===null||m===32||m===96||ke(m)?(e.exit("codeTextData"),f(m)):(e.consume(m),p)}function g(m){return m===96?(e.consume(m),l++,g):l===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(m)):(a.type="codeTextData",p(m))}}class jT{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,r){const i=r??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,r,i){const l=r||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-l,Number.POSITIVE_INFINITY);return i&&Ki(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ki(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ki(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const r=this.left.splice(t,Number.POSITIVE_INFINITY);Ki(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ki(this.left,r.reverse())}}}function Ki(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function u0(e){const t={};let r=-1,i,l,a,u,d,f,p;const g=new jT(e);for(;++r<g.length;){for(;r in t;)r=t[r];if(i=g.get(r),r&&i[1].type==="chunkFlow"&&g.get(r-1)[1].type==="listItemPrefix"&&(f=i[1]._tokenizer.events,a=0,a<f.length&&f[a][1].type==="lineEndingBlank"&&(a+=2),a<f.length&&f[a][1].type==="content"))for(;++a<f.length&&f[a][1].type!=="content";)f[a][1].type==="chunkText"&&(f[a][1]._isInFirstContentOfListItem=!0,a++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,TT(g,r)),r=t[r],p=!0);else if(i[1]._container){for(a=r,l=void 0;a--;)if(u=g.get(a),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(l&&(g.get(l)[1].type="lineEndingBlank"),u[1].type="lineEnding",l=a);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;l&&(i[1].end={...g.get(l)[1].start},d=g.slice(l,r),d.unshift(i),g.splice(l,r-l+1,d))}}return sn(e,0,Number.POSITIVE_INFINITY,g.slice(0)),!p}function TT(e,t){const r=e.get(t)[1],i=e.get(t)[2];let l=t-1;const a=[];let u=r._tokenizer;u||(u=i.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const d=u.events,f=[],p={};let g,m,v=-1,w=r,k=0,S=0;const j=[S];for(;w;){for(;e.get(++l)[1]!==w;);a.push(l),w._tokenizer||(g=i.sliceStream(w),w.next||g.push(null),m&&u.defineSkip(w.start),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(g),w._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),m=w,w=w.next}for(w=r;++v<d.length;)d[v][0]==="exit"&&d[v-1][0]==="enter"&&d[v][1].type===d[v-1][1].type&&d[v][1].start.line!==d[v][1].end.line&&(S=v+1,j.push(S),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(u.events=[],w?(w._tokenizer=void 0,w.previous=void 0):j.pop(),v=j.length;v--;){const E=d.slice(j[v],j[v+1]),P=a.pop();f.push([P,P+E.length-1]),e.splice(P,2,E)}for(f.reverse(),v=-1;++v<f.length;)p[k+f[v][0]]=k+f[v][1],k+=f[v][1]-f[v][0]-1;return p}const RT={resolve:NT,tokenize:PT},IT={partial:!0,tokenize:$T};function NT(e){return u0(e),e}function PT(e,t){let r;return i;function i(d){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),l(d)}function l(d){return d===null?a(d):ke(d)?e.check(IT,u,a)(d):(e.consume(d),l)}function a(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function u(d){return e.consume(d),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,l}}function $T(e,t,r){const i=this;return l;function l(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),ze(e,a,"linePrefix")}function a(u){if(u===null||ke(u))return r(u);const d=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(u):e.interrupt(i.parser.constructs.flow,r,t)(u)}}function c0(e,t,r,i,l,a,u,d,f){const p=f||Number.POSITIVE_INFINITY;let g=0;return m;function m(E){return E===60?(e.enter(i),e.enter(l),e.enter(a),e.consume(E),e.exit(a),v):E===null||E===32||E===41||ia(E)?r(E):(e.enter(i),e.enter(u),e.enter(d),e.enter("chunkString",{contentType:"string"}),S(E))}function v(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(l),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(E))}function w(E){return E===62?(e.exit("chunkString"),e.exit(d),v(E)):E===null||E===60||ke(E)?r(E):(e.consume(E),E===92?k:w)}function k(E){return E===60||E===62||E===92?(e.consume(E),w):w(E)}function S(E){return!g&&(E===null||E===41||He(E))?(e.exit("chunkString"),e.exit(d),e.exit(u),e.exit(i),t(E)):g<p&&E===40?(e.consume(E),g++,S):E===41?(e.consume(E),g--,S):E===null||E===32||E===40||ia(E)?r(E):(e.consume(E),E===92?j:S)}function j(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function d0(e,t,r,i,l,a){const u=this;let d=0,f;return p;function p(w){return e.enter(i),e.enter(l),e.consume(w),e.exit(l),e.enter(a),g}function g(w){return d>999||w===null||w===91||w===93&&!f||w===94&&!d&&"_hiddenFootnoteSupport"in u.parser.constructs?r(w):w===93?(e.exit(a),e.enter(l),e.consume(w),e.exit(l),e.exit(i),t):ke(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),g):(e.enter("chunkString",{contentType:"string"}),m(w))}function m(w){return w===null||w===91||w===93||ke(w)||d++>999?(e.exit("chunkString"),g(w)):(e.consume(w),f||(f=!Ae(w)),w===92?v:m)}function v(w){return w===91||w===92||w===93?(e.consume(w),d++,m):m(w)}}function f0(e,t,r,i,l,a){let u;return d;function d(v){return v===34||v===39||v===40?(e.enter(i),e.enter(l),e.consume(v),e.exit(l),u=v===40?41:v,f):r(v)}function f(v){return v===u?(e.enter(l),e.consume(v),e.exit(l),e.exit(i),t):(e.enter(a),p(v))}function p(v){return v===u?(e.exit(a),f(u)):v===null?r(v):ke(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),ze(e,p,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===u||v===null||ke(v)?(e.exit("chunkString"),p(v)):(e.consume(v),v===92?m:g)}function m(v){return v===u||v===92?(e.consume(v),g):g(v)}}function nl(e,t){let r;return i;function i(l){return ke(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),r=!0,i):Ae(l)?ze(e,i,r?"linePrefix":"lineSuffix")(l):t(l)}}const AT={name:"definition",tokenize:_T},LT={partial:!0,tokenize:zT};function _T(e,t,r){const i=this;let l;return a;function a(w){return e.enter("definition"),u(w)}function u(w){return d0.call(i,e,d,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return l=Rn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),f):r(w)}function f(w){return He(w)?nl(e,p)(w):p(w)}function p(w){return c0(e,g,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function g(w){return e.attempt(LT,m,m)(w)}function m(w){return Ae(w)?ze(e,v,"whitespace")(w):v(w)}function v(w){return w===null||ke(w)?(e.exit("definition"),i.parser.defined.push(l),t(w)):r(w)}}function zT(e,t,r){return i;function i(d){return He(d)?nl(e,l)(d):r(d)}function l(d){return f0(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function a(d){return Ae(d)?ze(e,u,"whitespace")(d):u(d)}function u(d){return d===null||ke(d)?t(d):r(d)}}const DT={name:"hardBreakEscape",tokenize:OT};function OT(e,t,r){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),l}function l(a){return ke(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const FT={name:"headingAtx",resolve:MT,tokenize:BT};function MT(e,t){let r=e.length-2,i=3,l,a;return e[i][1].type==="whitespace"&&(i+=2),r-2>i&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(i===r-1||r-4>i&&e[r-2][1].type==="whitespace")&&(r-=i+1===r?2:4),r>i&&(l={type:"atxHeadingText",start:e[i][1].start,end:e[r][1].end},a={type:"chunkText",start:e[i][1].start,end:e[r][1].end,contentType:"text"},sn(e,i,r-i+1,[["enter",l,t],["enter",a,t],["exit",a,t],["exit",l,t]])),e}function BT(e,t,r){let i=0;return l;function l(g){return e.enter("atxHeading"),a(g)}function a(g){return e.enter("atxHeadingSequence"),u(g)}function u(g){return g===35&&i++<6?(e.consume(g),u):g===null||He(g)?(e.exit("atxHeadingSequence"),d(g)):r(g)}function d(g){return g===35?(e.enter("atxHeadingSequence"),f(g)):g===null||ke(g)?(e.exit("atxHeading"),t(g)):Ae(g)?ze(e,d,"whitespace")(g):(e.enter("atxHeadingText"),p(g))}function f(g){return g===35?(e.consume(g),f):(e.exit("atxHeadingSequence"),d(g))}function p(g){return g===null||g===35||He(g)?(e.exit("atxHeadingText"),d(g)):(e.consume(g),p)}}const UT=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],yg=["pre","script","style","textarea"],VT={concrete:!0,name:"htmlFlow",resolveTo:qT,tokenize:GT},HT={partial:!0,tokenize:KT},WT={partial:!0,tokenize:JT};function qT(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function GT(e,t,r){const i=this;let l,a,u,d,f;return p;function p(R){return g(R)}function g(R){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(R),m}function m(R){return R===33?(e.consume(R),v):R===47?(e.consume(R),a=!0,S):R===63?(e.consume(R),l=3,i.interrupt?t:C):Ot(R)?(e.consume(R),u=String.fromCharCode(R),j):r(R)}function v(R){return R===45?(e.consume(R),l=2,w):R===91?(e.consume(R),l=5,d=0,k):Ot(R)?(e.consume(R),l=4,i.interrupt?t:C):r(R)}function w(R){return R===45?(e.consume(R),i.interrupt?t:C):r(R)}function k(R){const ae="CDATA[";return R===ae.charCodeAt(d++)?(e.consume(R),d===ae.length?i.interrupt?t:se:k):r(R)}function S(R){return Ot(R)?(e.consume(R),u=String.fromCharCode(R),j):r(R)}function j(R){if(R===null||R===47||R===62||He(R)){const ae=R===47,ge=u.toLowerCase();return!ae&&!a&&yg.includes(ge)?(l=1,i.interrupt?t(R):se(R)):UT.includes(u.toLowerCase())?(l=6,ae?(e.consume(R),E):i.interrupt?t(R):se(R)):(l=7,i.interrupt&&!i.parser.lazy[i.now().line]?r(R):a?P(R):$(R))}return R===45||$t(R)?(e.consume(R),u+=String.fromCharCode(R),j):r(R)}function E(R){return R===62?(e.consume(R),i.interrupt?t:se):r(R)}function P(R){return Ae(R)?(e.consume(R),P):O(R)}function $(R){return R===47?(e.consume(R),O):R===58||R===95||Ot(R)?(e.consume(R),D):Ae(R)?(e.consume(R),$):O(R)}function D(R){return R===45||R===46||R===58||R===95||$t(R)?(e.consume(R),D):W(R)}function W(R){return R===61?(e.consume(R),A):Ae(R)?(e.consume(R),W):$(R)}function A(R){return R===null||R===60||R===61||R===62||R===96?r(R):R===34||R===39?(e.consume(R),f=R,H):Ae(R)?(e.consume(R),A):K(R)}function H(R){return R===f?(e.consume(R),f=null,le):R===null||ke(R)?r(R):(e.consume(R),H)}function K(R){return R===null||R===34||R===39||R===47||R===60||R===61||R===62||R===96||He(R)?W(R):(e.consume(R),K)}function le(R){return R===47||R===62||Ae(R)?$(R):r(R)}function O(R){return R===62?(e.consume(R),ee):r(R)}function ee(R){return R===null||ke(R)?se(R):Ae(R)?(e.consume(R),ee):r(R)}function se(R){return R===45&&l===2?(e.consume(R),de):R===60&&l===1?(e.consume(R),ie):R===62&&l===4?(e.consume(R),_):R===63&&l===3?(e.consume(R),C):R===93&&l===5?(e.consume(R),ce):ke(R)&&(l===6||l===7)?(e.exit("htmlFlowData"),e.check(HT,q,ne)(R)):R===null||ke(R)?(e.exit("htmlFlowData"),ne(R)):(e.consume(R),se)}function ne(R){return e.check(WT,re,q)(R)}function re(R){return e.enter("lineEnding"),e.consume(R),e.exit("lineEnding"),U}function U(R){return R===null||ke(R)?ne(R):(e.enter("htmlFlowData"),se(R))}function de(R){return R===45?(e.consume(R),C):se(R)}function ie(R){return R===47?(e.consume(R),u="",Q):se(R)}function Q(R){if(R===62){const ae=u.toLowerCase();return yg.includes(ae)?(e.consume(R),_):se(R)}return Ot(R)&&u.length<8?(e.consume(R),u+=String.fromCharCode(R),Q):se(R)}function ce(R){return R===93?(e.consume(R),C):se(R)}function C(R){return R===62?(e.consume(R),_):R===45&&l===2?(e.consume(R),C):se(R)}function _(R){return R===null||ke(R)?(e.exit("htmlFlowData"),q(R)):(e.consume(R),_)}function q(R){return e.exit("htmlFlow"),t(R)}}function JT(e,t,r){const i=this;return l;function l(u){return ke(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):r(u)}function a(u){return i.parser.lazy[i.now().line]?r(u):t(u)}}function KT(e,t,r){return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),e.attempt(yl,t,r)}}const QT={name:"htmlText",tokenize:YT};function YT(e,t,r){const i=this;let l,a,u;return d;function d(C){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(C),f}function f(C){return C===33?(e.consume(C),p):C===47?(e.consume(C),W):C===63?(e.consume(C),$):Ot(C)?(e.consume(C),K):r(C)}function p(C){return C===45?(e.consume(C),g):C===91?(e.consume(C),a=0,k):Ot(C)?(e.consume(C),P):r(C)}function g(C){return C===45?(e.consume(C),w):r(C)}function m(C){return C===null?r(C):C===45?(e.consume(C),v):ke(C)?(u=m,ie(C)):(e.consume(C),m)}function v(C){return C===45?(e.consume(C),w):m(C)}function w(C){return C===62?de(C):C===45?v(C):m(C)}function k(C){const _="CDATA[";return C===_.charCodeAt(a++)?(e.consume(C),a===_.length?S:k):r(C)}function S(C){return C===null?r(C):C===93?(e.consume(C),j):ke(C)?(u=S,ie(C)):(e.consume(C),S)}function j(C){return C===93?(e.consume(C),E):S(C)}function E(C){return C===62?de(C):C===93?(e.consume(C),E):S(C)}function P(C){return C===null||C===62?de(C):ke(C)?(u=P,ie(C)):(e.consume(C),P)}function $(C){return C===null?r(C):C===63?(e.consume(C),D):ke(C)?(u=$,ie(C)):(e.consume(C),$)}function D(C){return C===62?de(C):$(C)}function W(C){return Ot(C)?(e.consume(C),A):r(C)}function A(C){return C===45||$t(C)?(e.consume(C),A):H(C)}function H(C){return ke(C)?(u=H,ie(C)):Ae(C)?(e.consume(C),H):de(C)}function K(C){return C===45||$t(C)?(e.consume(C),K):C===47||C===62||He(C)?le(C):r(C)}function le(C){return C===47?(e.consume(C),de):C===58||C===95||Ot(C)?(e.consume(C),O):ke(C)?(u=le,ie(C)):Ae(C)?(e.consume(C),le):de(C)}function O(C){return C===45||C===46||C===58||C===95||$t(C)?(e.consume(C),O):ee(C)}function ee(C){return C===61?(e.consume(C),se):ke(C)?(u=ee,ie(C)):Ae(C)?(e.consume(C),ee):le(C)}function se(C){return C===null||C===60||C===61||C===62||C===96?r(C):C===34||C===39?(e.consume(C),l=C,ne):ke(C)?(u=se,ie(C)):Ae(C)?(e.consume(C),se):(e.consume(C),re)}function ne(C){return C===l?(e.consume(C),l=void 0,U):C===null?r(C):ke(C)?(u=ne,ie(C)):(e.consume(C),ne)}function re(C){return C===null||C===34||C===39||C===60||C===61||C===96?r(C):C===47||C===62||He(C)?le(C):(e.consume(C),re)}function U(C){return C===47||C===62||He(C)?le(C):r(C)}function de(C){return C===62?(e.consume(C),e.exit("htmlTextData"),e.exit("htmlText"),t):r(C)}function ie(C){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),Q}function Q(C){return Ae(C)?ze(e,ce,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C):ce(C)}function ce(C){return e.enter("htmlTextData"),u(C)}}const df={name:"labelEnd",resolveAll:tR,resolveTo:nR,tokenize:rR},XT={tokenize:oR},ZT={tokenize:iR},eR={tokenize:lR};function tR(e){let t=-1;const r=[];for(;++t<e.length;){const i=e[t][1];if(r.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const l=i.type==="labelImage"?4:2;i.type="data",t+=l}}return e.length!==r.length&&sn(e,0,e.length,r),e}function nR(e,t){let r=e.length,i=0,l,a,u,d;for(;r--;)if(l=e[r][1],a){if(l.type==="link"||l.type==="labelLink"&&l._inactive)break;e[r][0]==="enter"&&l.type==="labelLink"&&(l._inactive=!0)}else if(u){if(e[r][0]==="enter"&&(l.type==="labelImage"||l.type==="labelLink")&&!l._balanced&&(a=r,l.type!=="labelLink")){i=2;break}}else l.type==="labelEnd"&&(u=r);const f={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[a][1].start},end:{...e[u][1].end}},g={type:"labelText",start:{...e[a+i+2][1].end},end:{...e[u-2][1].start}};return d=[["enter",f,t],["enter",p,t]],d=yn(d,e.slice(a+1,a+i+3)),d=yn(d,[["enter",g,t]]),d=yn(d,ja(t.parser.constructs.insideSpan.null,e.slice(a+i+4,u-3),t)),d=yn(d,[["exit",g,t],e[u-2],e[u-1],["exit",p,t]]),d=yn(d,e.slice(u+1)),d=yn(d,[["exit",f,t]]),sn(e,a,e.length,d),e}function rR(e,t,r){const i=this;let l=i.events.length,a,u;for(;l--;)if((i.events[l][1].type==="labelImage"||i.events[l][1].type==="labelLink")&&!i.events[l][1]._balanced){a=i.events[l][1];break}return d;function d(v){return a?a._inactive?m(v):(u=i.parser.defined.includes(Rn(i.sliceSerialize({start:a.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),f):r(v)}function f(v){return v===40?e.attempt(XT,g,u?g:m)(v):v===91?e.attempt(ZT,g,u?p:m)(v):u?g(v):m(v)}function p(v){return e.attempt(eR,g,m)(v)}function g(v){return t(v)}function m(v){return a._balanced=!0,r(v)}}function oR(e,t,r){return i;function i(m){return e.enter("resource"),e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),l}function l(m){return He(m)?nl(e,a)(m):a(m)}function a(m){return m===41?g(m):c0(e,u,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(m)}function u(m){return He(m)?nl(e,f)(m):g(m)}function d(m){return r(m)}function f(m){return m===34||m===39||m===40?f0(e,p,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(m):g(m)}function p(m){return He(m)?nl(e,g)(m):g(m)}function g(m){return m===41?(e.enter("resourceMarker"),e.consume(m),e.exit("resourceMarker"),e.exit("resource"),t):r(m)}}function iR(e,t,r){const i=this;return l;function l(d){return d0.call(i,e,a,u,"reference","referenceMarker","referenceString")(d)}function a(d){return i.parser.defined.includes(Rn(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):r(d)}function u(d){return r(d)}}function lR(e,t,r){return i;function i(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),l}function l(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const sR={name:"labelStartImage",resolveAll:df.resolveAll,tokenize:aR};function aR(e,t,r){const i=this;return l;function l(d){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(d),e.exit("labelImageMarker"),a}function a(d){return d===91?(e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelImage"),u):r(d)}function u(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(d):t(d)}}const uR={name:"labelStartLink",resolveAll:df.resolveAll,tokenize:cR};function cR(e,t,r){const i=this;return l;function l(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),e.exit("labelLink"),a}function a(u){return u===94&&"_hiddenFootnoteSupport"in i.parser.constructs?r(u):t(u)}}const Lc={name:"lineEnding",tokenize:dR};function dR(e,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ze(e,t,"linePrefix")}}const Qs={name:"thematicBreak",tokenize:fR};function fR(e,t,r){let i=0,l;return a;function a(p){return e.enter("thematicBreak"),u(p)}function u(p){return l=p,d(p)}function d(p){return p===l?(e.enter("thematicBreakSequence"),f(p)):i>=3&&(p===null||ke(p))?(e.exit("thematicBreak"),t(p)):r(p)}function f(p){return p===l?(e.consume(p),i++,f):(e.exit("thematicBreakSequence"),Ae(p)?ze(e,d,"whitespace")(p):d(p))}}const qt={continuation:{tokenize:gR},exit:xR,name:"list",tokenize:mR},pR={partial:!0,tokenize:vR},hR={partial:!0,tokenize:yR};function mR(e,t,r){const i=this,l=i.events[i.events.length-1];let a=l&&l[1].type==="linePrefix"?l[2].sliceSerialize(l[1],!0).length:0,u=0;return d;function d(w){const k=i.containerState.type||(w===42||w===43||w===45?"listUnordered":"listOrdered");if(k==="listUnordered"?!i.containerState.marker||w===i.containerState.marker:wd(w)){if(i.containerState.type||(i.containerState.type=k,e.enter(k,{_container:!0})),k==="listUnordered")return e.enter("listItemPrefix"),w===42||w===45?e.check(Qs,r,p)(w):p(w);if(!i.interrupt||w===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(w)}return r(w)}function f(w){return wd(w)&&++u<10?(e.consume(w),f):(!i.interrupt||u<2)&&(i.containerState.marker?w===i.containerState.marker:w===41||w===46)?(e.exit("listItemValue"),p(w)):r(w)}function p(w){return e.enter("listItemMarker"),e.consume(w),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||w,e.check(yl,i.interrupt?r:g,e.attempt(pR,v,m))}function g(w){return i.containerState.initialBlankLine=!0,a++,v(w)}function m(w){return Ae(w)?(e.enter("listItemPrefixWhitespace"),e.consume(w),e.exit("listItemPrefixWhitespace"),v):r(w)}function v(w){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(w)}}function gR(e,t,r){const i=this;return i.containerState._closeFlow=void 0,e.check(yl,l,a);function l(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ze(e,t,"listItemIndent",i.containerState.size+1)(d)}function a(d){return i.containerState.furtherBlankLines||!Ae(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,u(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(hR,t,u)(d))}function u(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,ze(e,e.attempt(qt,t,r),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function yR(e,t,r){const i=this;return ze(e,l,"listItemIndent",i.containerState.size+1);function l(a){const u=i.events[i.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===i.containerState.size?t(a):r(a)}}function xR(e){e.exit(this.containerState.type)}function vR(e,t,r){const i=this;return ze(e,l,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function l(a){const u=i.events[i.events.length-1];return!Ae(a)&&u&&u[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const xg={name:"setextUnderline",resolveTo:wR,tokenize:kR};function wR(e,t){let r=e.length,i,l,a;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(l=r)}else e[r][1].type==="content"&&e.splice(r,1),!a&&e[r][1].type==="definition"&&(a=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[l][1].type="setextHeadingText",a?(e.splice(l,0,["enter",u,t]),e.splice(a+1,0,["exit",e[i][1],t]),e[i][1].end={...e[a][1].end}):e[i][1]=u,e.push(["exit",u,t]),e}function kR(e,t,r){const i=this;let l;return a;function a(p){let g=i.events.length,m;for(;g--;)if(i.events[g][1].type!=="lineEnding"&&i.events[g][1].type!=="linePrefix"&&i.events[g][1].type!=="content"){m=i.events[g][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||m)?(e.enter("setextHeadingLine"),l=p,u(p)):r(p)}function u(p){return e.enter("setextHeadingLineSequence"),d(p)}function d(p){return p===l?(e.consume(p),d):(e.exit("setextHeadingLineSequence"),Ae(p)?ze(e,f,"lineSuffix")(p):f(p))}function f(p){return p===null||ke(p)?(e.exit("setextHeadingLine"),t(p)):r(p)}}const bR={tokenize:SR};function SR(e){const t=this,r=e.attempt(yl,i,e.attempt(this.parser.constructs.flowInitial,l,ze(e,e.attempt(this.parser.constructs.flow,l,e.attempt(RT,l)),"linePrefix")));return r;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function l(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const CR={resolveAll:h0()},ER=p0("string"),jR=p0("text");function p0(e){return{resolveAll:h0(e==="text"?TR:void 0),tokenize:t};function t(r){const i=this,l=this.parser.constructs[e],a=r.attempt(l,u,d);return u;function u(g){return p(g)?a(g):d(g)}function d(g){if(g===null){r.consume(g);return}return r.enter("data"),r.consume(g),f}function f(g){return p(g)?(r.exit("data"),a(g)):(r.consume(g),f)}function p(g){if(g===null)return!0;const m=l[g];let v=-1;if(m)for(;++v<m.length;){const w=m[v];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function h0(e){return t;function t(r,i){let l=-1,a;for(;++l<=r.length;)a===void 0?r[l]&&r[l][1].type==="data"&&(a=l,l++):(!r[l]||r[l][1].type!=="data")&&(l!==a+2&&(r[a][1].end=r[l-1][1].end,r.splice(a+2,l-a-2),l=a+2),a=void 0);return e?e(r,i):r}}function TR(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],l=t.sliceStream(i);let a=l.length,u=-1,d=0,f;for(;a--;){const p=l[a];if(typeof p=="string"){for(u=p.length;p.charCodeAt(u-1)===32;)d++,u--;if(u)break;u=-1}else if(p===-2)f=!0,d++;else if(p!==-1){a++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(d=0),d){const p={type:r===e.length||f||d<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?u:i.start._bufferIndex+u,_index:i.start._index+a,line:i.end.line,column:i.end.column-d,offset:i.end.offset-d},end:{...i.end}};i.end={...p.start},i.start.offset===i.end.offset?Object.assign(i,p):(e.splice(r,0,["enter",p,t],["exit",p,t]),r+=2)}r++}return e}const RR={42:qt,43:qt,45:qt,48:qt,49:qt,50:qt,51:qt,52:qt,53:qt,54:qt,55:qt,56:qt,57:qt,62:l0},IR={91:AT},NR={[-2]:Ac,[-1]:Ac,32:Ac},PR={35:FT,42:Qs,45:[xg,Qs],60:VT,61:xg,95:Qs,96:gg,126:gg},$R={38:a0,92:s0},AR={[-5]:Lc,[-4]:Lc,[-3]:Lc,33:sR,38:a0,42:kd,60:[uT,QT],91:uR,92:[DT,s0],93:df,95:kd,96:bT},LR={null:[kd,CR]},_R={null:[42,95]},zR={null:[]},DR=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:_R,contentInitial:IR,disable:zR,document:RR,flow:PR,flowInitial:NR,insideSpan:LR,string:$R,text:AR},Symbol.toStringTag,{value:"Module"}));function OR(e,t,r){let i={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const l={},a=[];let u=[],d=[];const f={attempt:H(W),check:H(A),consume:P,enter:$,exit:D,interrupt:H(A,{interrupt:!0})},p={code:null,containerState:{},defineSkip:S,events:[],now:k,parser:e,previous:null,sliceSerialize:v,sliceStream:w,write:m};let g=t.tokenize.call(p,f);return t.resolveAll&&a.push(t),p;function m(ee){return u=yn(u,ee),j(),u[u.length-1]!==null?[]:(K(t,0),p.events=ja(a,p.events,p),p.events)}function v(ee,se){return MR(w(ee),se)}function w(ee){return FR(u,ee)}function k(){const{_bufferIndex:ee,_index:se,line:ne,column:re,offset:U}=i;return{_bufferIndex:ee,_index:se,line:ne,column:re,offset:U}}function S(ee){l[ee.line]=ee.column,O()}function j(){let ee;for(;i._index<u.length;){const se=u[i._index];if(typeof se=="string")for(ee=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===ee&&i._bufferIndex<se.length;)E(se.charCodeAt(i._bufferIndex));else E(se)}}function E(ee){g=g(ee)}function P(ee){ke(ee)?(i.line++,i.column=1,i.offset+=ee===-3?2:1,O()):ee!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===u[i._index].length&&(i._bufferIndex=-1,i._index++)),p.previous=ee}function $(ee,se){const ne=se||{};return ne.type=ee,ne.start=k(),p.events.push(["enter",ne,p]),d.push(ne),ne}function D(ee){const se=d.pop();return se.end=k(),p.events.push(["exit",se,p]),se}function W(ee,se){K(ee,se.from)}function A(ee,se){se.restore()}function H(ee,se){return ne;function ne(re,U,de){let ie,Q,ce,C;return Array.isArray(re)?q(re):"tokenize"in re?q([re]):_(re);function _(ye){return Ee;function Ee(be){const je=be!==null&&ye[be],Ve=be!==null&&ye.null,Ct=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Ve)?Ve:Ve?[Ve]:[]];return q(Ct)(be)}}function q(ye){return ie=ye,Q=0,ye.length===0?de:R(ye[Q])}function R(ye){return Ee;function Ee(be){return C=le(),ce=ye,ye.partial||(p.currentConstruct=ye),ye.name&&p.parser.constructs.disable.null.includes(ye.name)?ge():ye.tokenize.call(se?Object.assign(Object.create(p),se):p,f,ae,ge)(be)}}function ae(ye){return ee(ce,C),U}function ge(ye){return C.restore(),++Q<ie.length?R(ie[Q]):de}}}function K(ee,se){ee.resolveAll&&!a.includes(ee)&&a.push(ee),ee.resolve&&sn(p.events,se,p.events.length-se,ee.resolve(p.events.slice(se),p)),ee.resolveTo&&(p.events=ee.resolveTo(p.events,p))}function le(){const ee=k(),se=p.previous,ne=p.currentConstruct,re=p.events.length,U=Array.from(d);return{from:re,restore:de};function de(){i=ee,p.previous=se,p.currentConstruct=ne,p.events.length=re,d=U,O()}}function O(){i.line in l&&i.column<2&&(i.column=l[i.line],i.offset+=l[i.line]-1)}}function FR(e,t){const r=t.start._index,i=t.start._bufferIndex,l=t.end._index,a=t.end._bufferIndex;let u;if(r===l)u=[e[r].slice(i,a)];else{if(u=e.slice(r,l),i>-1){const d=u[0];typeof d=="string"?u[0]=d.slice(i):u.shift()}a>0&&u.push(e[l].slice(0,a))}return u}function MR(e,t){let r=-1;const i=[];let l;for(;++r<e.length;){const a=e[r];let u;if(typeof a=="string")u=a;else switch(a){case-5:{u="\r";break}case-4:{u=`
845
+ `;break}case-3:{u=`\r
846
+ `;break}case-2:{u=t?" ":" ";break}case-1:{if(!t&&l)continue;u=" ";break}default:u=String.fromCharCode(a)}l=a===-2,i.push(u)}return i.join("")}function BR(e){const i={constructs:o0([DR,...(e||{}).extensions||[]]),content:l(nT),defined:[],document:l(oT),flow:l(bR),lazy:{},string:l(ER),text:l(jR)};return i;function l(a){return u;function u(d){return OR(i,a,d)}}}function UR(e){for(;!u0(e););return e}const vg=/[\0\t\n\r]/g;function VR(){let e=1,t="",r=!0,i;return l;function l(a,u,d){const f=[];let p,g,m,v,w;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(u||void 0).decode(a)),m=0,t="",r&&(a.charCodeAt(0)===65279&&m++,r=void 0);m<a.length;){if(vg.lastIndex=m,p=vg.exec(a),v=p&&p.index!==void 0?p.index:a.length,w=a.charCodeAt(v),!p){t=a.slice(m);break}if(w===10&&m===v&&i)f.push(-3),i=void 0;else switch(i&&(f.push(-5),i=void 0),m<v&&(f.push(a.slice(m,v)),e+=v-m),w){case 0:{f.push(65533),e++;break}case 9:{for(g=Math.ceil(e/4)*4,f.push(-2);e++<g;)f.push(-1);break}case 10:{f.push(-4),e=1;break}default:i=!0,e=1}m=v+1}return d&&(i&&f.push(-5),t&&f.push(t),f.push(null)),f}}const HR=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WR(e){return e.replace(HR,qR)}function qR(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const l=r.charCodeAt(1),a=l===120||l===88;return i0(r.slice(a?2:1),a?16:10)}return cf(r)||e}const m0={}.hasOwnProperty;function GR(e,t,r){return typeof t!="string"&&(r=t,t=void 0),JR(r)(UR(BR(r).document().write(VR()(e,t,!0))))}function JR(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(xt),autolinkProtocol:le,autolinkEmail:le,atxHeading:a(_t),blockQuote:a(Ve),characterEscape:le,characterReference:le,codeFenced:a(Ct),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:a(Ct,u),codeText:a(Ne,u),codeTextData:le,data:le,codeFlowValue:le,definition:a(Lt),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:a(Pn),hardBreakEscape:a(_e),hardBreakTrailing:a(_e),htmlFlow:a(st,u),htmlFlowData:le,htmlText:a(st,u),htmlTextData:le,image:a(Et),label:u,link:a(xt),listItem:a(ot),listItemValue:v,listOrdered:a(Ye,m),listUnordered:a(Ye),paragraph:a(Ft),reference:R,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:a(_t),strong:a(un),thematicBreak:a(kl)},exit:{atxHeading:f(),atxHeadingSequence:W,autolink:f(),autolinkEmail:je,autolinkProtocol:be,blockQuote:f(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:ye,characterReference:Ee,codeFenced:f(j),codeFencedFence:S,codeFencedFenceInfo:w,codeFencedFenceMeta:k,codeFlowValue:O,codeIndented:f(E),codeText:f(U),codeTextData:O,data:O,definition:f(),definitionDestinationString:D,definitionLabelString:P,definitionTitleString:$,emphasis:f(),hardBreakEscape:f(se),hardBreakTrailing:f(se),htmlFlow:f(ne),htmlFlowData:O,htmlText:f(re),htmlTextData:O,image:f(ie),label:ce,labelText:Q,lineEnding:ee,link:f(de),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:ae,resourceDestinationString:C,resourceTitleString:_,resource:q,setextHeading:f(K),setextHeadingLineSequence:H,setextHeadingText:A,strong:f(),thematicBreak:f()}};g0(t,(e||{}).mdastExtensions||[]);const r={};return i;function i(J){let ue={type:"root",children:[]};const Se={stack:[ue],tokenStack:[],config:t,enter:d,exit:p,buffer:u,resume:g,data:r},Pe=[];let De=-1;for(;++De<J.length;)if(J[De][1].type==="listOrdered"||J[De][1].type==="listUnordered")if(J[De][0]==="enter")Pe.push(De);else{const vt=Pe.pop();De=l(J,vt,De)}for(De=-1;++De<J.length;){const vt=t[J[De][0]];m0.call(vt,J[De][1].type)&&vt[J[De][1].type].call(Object.assign({sliceSerialize:J[De][2].sliceSerialize},Se),J[De][1])}if(Se.tokenStack.length>0){const vt=Se.tokenStack[Se.tokenStack.length-1];(vt[1]||wg).call(Se,void 0,vt[0])}for(ue.position={start:br(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:br(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},De=-1;++De<t.transforms.length;)ue=t.transforms[De](ue)||ue;return ue}function l(J,ue,Se){let Pe=ue-1,De=-1,vt=!1,Vn,cn,er,Pr;for(;++Pe<=Se;){const wt=J[Pe];switch(wt[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{wt[0]==="enter"?De++:De--,Pr=void 0;break}case"lineEndingBlank":{wt[0]==="enter"&&(Vn&&!Pr&&!De&&!er&&(er=Pe),Pr=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Pr=void 0}if(!De&&wt[0]==="enter"&&wt[1].type==="listItemPrefix"||De===-1&&wt[0]==="exit"&&(wt[1].type==="listUnordered"||wt[1].type==="listOrdered")){if(Vn){let $n=Pe;for(cn=void 0;$n--;){const Yt=J[$n];if(Yt[1].type==="lineEnding"||Yt[1].type==="lineEndingBlank"){if(Yt[0]==="exit")continue;cn&&(J[cn][1].type="lineEndingBlank",vt=!0),Yt[1].type="lineEnding",cn=$n}else if(!(Yt[1].type==="linePrefix"||Yt[1].type==="blockQuotePrefix"||Yt[1].type==="blockQuotePrefixWhitespace"||Yt[1].type==="blockQuoteMarker"||Yt[1].type==="listItemIndent"))break}er&&(!cn||er<cn)&&(Vn._spread=!0),Vn.end=Object.assign({},cn?J[cn][1].start:wt[1].end),J.splice(cn||Pe,0,["exit",Vn,wt[2]]),Pe++,Se++}if(wt[1].type==="listItemPrefix"){const $n={type:"listItem",_spread:!1,start:Object.assign({},wt[1].start),end:void 0};Vn=$n,J.splice(Pe,0,["enter",$n,wt[2]]),Pe++,Se++,er=void 0,Pr=!0}}}return J[ue][1]._spread=vt,Se}function a(J,ue){return Se;function Se(Pe){d.call(this,J(Pe),Pe),ue&&ue.call(this,Pe)}}function u(){this.stack.push({type:"fragment",children:[]})}function d(J,ue,Se){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([ue,Se||void 0]),J.position={start:br(ue.start),end:void 0}}function f(J){return ue;function ue(Se){J&&J.call(this,Se),p.call(this,Se)}}function p(J,ue){const Se=this.stack.pop(),Pe=this.tokenStack.pop();if(Pe)Pe[0].type!==J.type&&(ue?ue.call(this,J,Pe[0]):(Pe[1]||wg).call(this,J,Pe[0]));else throw new Error("Cannot close `"+J.type+"` ("+tl({start:J.start,end:J.end})+"): it’s not open");Se.position.end=br(J.end)}function g(){return uf(this.stack.pop())}function m(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const ue=this.stack[this.stack.length-2];ue.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.lang=J}function k(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.meta=J}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function j(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J.replace(/(\r?\n|\r)$/g,"")}function P(J){const ue=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ue,Se.identifier=Rn(this.sliceSerialize(J)).toLowerCase()}function $(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.title=J}function D(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.url=J}function W(J){const ue=this.stack[this.stack.length-1];if(!ue.depth){const Se=this.sliceSerialize(J).length;ue.depth=Se}}function A(){this.data.setextHeadingSlurpLineEnding=!0}function H(J){const ue=this.stack[this.stack.length-1];ue.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function le(J){const Se=this.stack[this.stack.length-1].children;let Pe=Se[Se.length-1];(!Pe||Pe.type!=="text")&&(Pe=wl(),Pe.position={start:br(J.start),end:void 0},Se.push(Pe)),this.stack.push(Pe)}function O(J){const ue=this.stack.pop();ue.value+=this.sliceSerialize(J),ue.position.end=br(J.end)}function ee(J){const ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=ue.children[ue.children.length-1];Se.position.end=br(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ue.type)&&(le.call(this,J),O.call(this,J))}function se(){this.data.atHardBreak=!0}function ne(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function re(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function U(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.value=J}function de(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ue,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function ie(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const ue=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=ue,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function Q(J){const ue=this.sliceSerialize(J),Se=this.stack[this.stack.length-2];Se.label=WR(ue),Se.identifier=Rn(ue).toLowerCase()}function ce(){const J=this.stack[this.stack.length-1],ue=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const Pe=J.children;Se.children=Pe}else Se.alt=ue}function C(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.url=J}function _(){const J=this.resume(),ue=this.stack[this.stack.length-1];ue.title=J}function q(){this.data.inReference=void 0}function R(){this.data.referenceType="collapsed"}function ae(J){const ue=this.resume(),Se=this.stack[this.stack.length-1];Se.label=ue,Se.identifier=Rn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function ge(J){this.data.characterReferenceType=J.type}function ye(J){const ue=this.sliceSerialize(J),Se=this.data.characterReferenceType;let Pe;Se?(Pe=i0(ue,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Pe=cf(ue);const De=this.stack[this.stack.length-1];De.value+=Pe}function Ee(J){const ue=this.stack.pop();ue.position.end=br(J.end)}function be(J){O.call(this,J);const ue=this.stack[this.stack.length-1];ue.url=this.sliceSerialize(J)}function je(J){O.call(this,J);const ue=this.stack[this.stack.length-1];ue.url="mailto:"+this.sliceSerialize(J)}function Ve(){return{type:"blockquote",children:[]}}function Ct(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Lt(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pn(){return{type:"emphasis",children:[]}}function _t(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function st(){return{type:"html",value:""}}function Et(){return{type:"image",title:null,url:"",alt:null}}function xt(){return{type:"link",title:null,url:"",children:[]}}function Ye(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[]}}function ot(J){return{type:"listItem",spread:J._spread,checked:null,children:[]}}function Ft(){return{type:"paragraph",children:[]}}function un(){return{type:"strong",children:[]}}function wl(){return{type:"text",value:""}}function kl(){return{type:"thematicBreak"}}}function br(e){return{line:e.line,column:e.column,offset:e.offset}}function g0(e,t){let r=-1;for(;++r<t.length;){const i=t[r];Array.isArray(i)?g0(e,i):KR(e,i)}}function KR(e,t){let r;for(r in t)if(m0.call(t,r))switch(r){case"canContainEols":{const i=t[r];i&&e[r].push(...i);break}case"transforms":{const i=t[r];i&&e[r].push(...i);break}case"enter":case"exit":{const i=t[r];i&&Object.assign(e[r],i);break}}}function wg(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+tl({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+tl({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+tl({start:t.start,end:t.end})+") is still open")}function QR(e){const t=this;t.parser=r;function r(i){return GR(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function YR(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function XR(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
847
+ `}]}function ZR(e,t){const r=t.value?t.value+`
848
+ `:"",i={};t.lang&&(i.className=["language-"+t.lang]);let l={type:"element",tagName:"code",properties:i,children:[{type:"text",value:r}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function eI(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function tI(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function nI(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=ni(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let u,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),u=e.footnoteOrder.length):u=a+1,d+=1,e.footnoteCounts.set(i,d);const f={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(d>1?"-"+d:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(t,f);const p={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(t,p),e.applyData(t,p)}function rI(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oI(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function y0(e,t){const r=t.referenceType;let i="]";if(r==="collapsed"?i+="[]":r==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const l=e.all(t),a=l[0];a&&a.type==="text"?a.value="["+a.value:l.unshift({type:"text",value:"["});const u=l[l.length-1];return u&&u.type==="text"?u.value+=i:l.push({type:"text",value:i}),l}function iI(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return y0(e,t);const l={src:ni(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"img",properties:l,children:[]};return e.patch(t,a),e.applyData(t,a)}function lI(e,t){const r={src:ni(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)}function sI(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const i={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,i),e.applyData(t,i)}function aI(e,t){const r=String(t.identifier).toUpperCase(),i=e.definitionById.get(r);if(!i)return y0(e,t);const l={href:ni(i.url||"")};i.title!==null&&i.title!==void 0&&(l.title=i.title);const a={type:"element",tagName:"a",properties:l,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function uI(e,t){const r={href:ni(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function cI(e,t,r){const i=e.all(t),l=r?dI(r):x0(t),a={},u=[];if(typeof t.checked=="boolean"){const g=i[0];let m;g&&g.type==="element"&&g.tagName==="p"?m=g:(m={type:"element",tagName:"p",properties:{},children:[]},i.unshift(m)),m.children.length>0&&m.children.unshift({type:"text",value:" "}),m.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let d=-1;for(;++d<i.length;){const g=i[d];(l||d!==0||g.type!=="element"||g.tagName!=="p")&&u.push({type:"text",value:`
849
+ `}),g.type==="element"&&g.tagName==="p"&&!l?u.push(...g.children):u.push(g)}const f=i[i.length-1];f&&(l||f.type!=="element"||f.tagName!=="p")&&u.push({type:"text",value:`
850
+ `});const p={type:"element",tagName:"li",properties:a,children:u};return e.patch(t,p),e.applyData(t,p)}function dI(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let i=-1;for(;!t&&++i<r.length;)t=x0(r[i])}return t}function x0(e){const t=e.spread;return t??e.children.length>1}function fI(e,t){const r={},i=e.all(t);let l=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++l<i.length;){const u=i[l];if(u.type==="element"&&u.tagName==="li"&&u.properties&&Array.isArray(u.properties.className)&&u.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function pI(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function hI(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function mI(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function gI(e,t){const r=e.all(t),i=r.shift(),l=[];if(i){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],u),l.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},d=of(t.children[1]),f=Yv(t.children[t.children.length-1]);d&&f&&(u.position={start:d,end:f}),l.push(u)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(l,!0)};return e.patch(t,a),e.applyData(t,a)}function yI(e,t,r){const i=r?r.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,d=u?u.length:t.children.length;let f=-1;const p=[];for(;++f<d;){const m=t.children[f],v={},w=u?u[f]:void 0;w&&(v.align=w);let k={type:"element",tagName:a,properties:v,children:[]};m&&(k.children=e.all(m),e.patch(m,k),k=e.applyData(m,k)),p.push(k)}const g={type:"element",tagName:"tr",properties:{},children:e.wrap(p,!0)};return e.patch(t,g),e.applyData(t,g)}function xI(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const kg=9,bg=32;function vI(e){const t=String(e),r=/\r?\n|\r/g;let i=r.exec(t),l=0;const a=[];for(;i;)a.push(Sg(t.slice(l,i.index),l>0,!0),i[0]),l=i.index+i[0].length,i=r.exec(t);return a.push(Sg(t.slice(l),l>0,!1)),a.join("")}function Sg(e,t,r){let i=0,l=e.length;if(t){let a=e.codePointAt(i);for(;a===kg||a===bg;)i++,a=e.codePointAt(i)}if(r){let a=e.codePointAt(l-1);for(;a===kg||a===bg;)l--,a=e.codePointAt(l-1)}return l>i?e.slice(i,l):""}function wI(e,t){const r={type:"text",value:vI(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function kI(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const bI={blockquote:YR,break:XR,code:ZR,delete:eI,emphasis:tI,footnoteReference:nI,heading:rI,html:oI,imageReference:iI,image:lI,inlineCode:sI,linkReference:aI,link:uI,listItem:cI,list:fI,paragraph:pI,root:hI,strong:mI,table:gI,tableCell:xI,tableRow:yI,text:wI,thematicBreak:kI,toml:_s,yaml:_s,definition:_s,footnoteDefinition:_s};function _s(){}const v0=-1,Ta=0,la=1,sa=2,ff=3,pf=4,hf=5,mf=6,w0=7,k0=8,Cg=typeof self=="object"?self:globalThis,SI=(e,t)=>{const r=(l,a)=>(e.set(a,l),l),i=l=>{if(e.has(l))return e.get(l);const[a,u]=t[l];switch(a){case Ta:case v0:return r(u,l);case la:{const d=r([],l);for(const f of u)d.push(i(f));return d}case sa:{const d=r({},l);for(const[f,p]of u)d[i(f)]=i(p);return d}case ff:return r(new Date(u),l);case pf:{const{source:d,flags:f}=u;return r(new RegExp(d,f),l)}case hf:{const d=r(new Map,l);for(const[f,p]of u)d.set(i(f),i(p));return d}case mf:{const d=r(new Set,l);for(const f of u)d.add(i(f));return d}case w0:{const{name:d,message:f}=u;return r(new Cg[d](f),l)}case k0:return r(BigInt(u),l);case"BigInt":return r(Object(BigInt(u)),l)}return r(new Cg[a](u),l)};return i},Eg=e=>SI(new Map,e)(0),_o="",{toString:CI}={},{keys:EI}=Object,Qi=e=>{const t=typeof e;if(t!=="object"||!e)return[Ta,t];const r=CI.call(e).slice(8,-1);switch(r){case"Array":return[la,_o];case"Object":return[sa,_o];case"Date":return[ff,_o];case"RegExp":return[pf,_o];case"Map":return[hf,_o];case"Set":return[mf,_o]}return r.includes("Array")?[la,r]:r.includes("Error")?[w0,r]:[sa,r]},zs=([e,t])=>e===Ta&&(t==="function"||t==="symbol"),jI=(e,t,r,i)=>{const l=(u,d)=>{const f=i.push(u)-1;return r.set(d,f),f},a=u=>{if(r.has(u))return r.get(u);let[d,f]=Qi(u);switch(d){case Ta:{let g=u;switch(f){case"bigint":d=k0,g=u.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);g=null;break;case"undefined":return l([v0],u)}return l([d,g],u)}case la:{if(f)return l([f,[...u]],u);const g=[],m=l([d,g],u);for(const v of u)g.push(a(v));return m}case sa:{if(f)switch(f){case"BigInt":return l([f,u.toString()],u);case"Boolean":case"Number":case"String":return l([f,u.valueOf()],u)}if(t&&"toJSON"in u)return a(u.toJSON());const g=[],m=l([d,g],u);for(const v of EI(u))(e||!zs(Qi(u[v])))&&g.push([a(v),a(u[v])]);return m}case ff:return l([d,u.toISOString()],u);case pf:{const{source:g,flags:m}=u;return l([d,{source:g,flags:m}],u)}case hf:{const g=[],m=l([d,g],u);for(const[v,w]of u)(e||!(zs(Qi(v))||zs(Qi(w))))&&g.push([a(v),a(w)]);return m}case mf:{const g=[],m=l([d,g],u);for(const v of u)(e||!zs(Qi(v)))&&g.push(a(v));return m}}const{message:p}=u;return l([d,{name:f,message:p}],u)};return a},jg=(e,{json:t,lossy:r}={})=>{const i=[];return jI(!(t||r),!!t,new Map,i)(e),i},aa=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Eg(jg(e,t)):structuredClone(e):(e,t)=>Eg(jg(e,t));function TI(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function RI(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function II(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||TI,i=e.options.footnoteBackLabel||RI,l=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},d=[];let f=-1;for(;++f<e.footnoteOrder.length;){const p=e.footnoteById.get(e.footnoteOrder[f]);if(!p)continue;const g=e.all(p),m=String(p.identifier).toUpperCase(),v=ni(m.toLowerCase());let w=0;const k=[],S=e.footnoteCounts.get(m);for(;S!==void 0&&++w<=S;){k.length>0&&k.push({type:"text",value:" "});let P=typeof r=="string"?r:r(f,w);typeof P=="string"&&(P={type:"text",value:P}),k.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(w>1?"-"+w:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,w),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const j=g[g.length-1];if(j&&j.type==="element"&&j.tagName==="p"){const P=j.children[j.children.length-1];P&&P.type==="text"?P.value+=" ":j.children.push({type:"text",value:" "}),j.children.push(...k)}else g.push(...k);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(g,!0)};e.patch(p,E),d.push(E)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...aa(u),id:"footnote-label"},children:[{type:"text",value:l}]},{type:"text",value:`
851
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(d,!0)},{type:"text",value:`
852
+ `}]}}const Ra=function(e){if(e==null)return AI;if(typeof e=="function")return Ia(e);if(typeof e=="object")return Array.isArray(e)?NI(e):PI(e);if(typeof e=="string")return $I(e);throw new Error("Expected function, string, or object as test")};function NI(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=Ra(e[r]);return Ia(i);function i(...l){let a=-1;for(;++a<t.length;)if(t[a].apply(this,l))return!0;return!1}}function PI(e){const t=e;return Ia(r);function r(i){const l=i;let a;for(a in e)if(l[a]!==t[a])return!1;return!0}}function $I(e){return Ia(t);function t(r){return r&&r.type===e}}function Ia(e){return t;function t(r,i,l){return!!(LI(r)&&e.call(this,r,typeof i=="number"?i:void 0,l||void 0))}}function AI(){return!0}function LI(e){return e!==null&&typeof e=="object"&&"type"in e}const b0=[],_I=!0,bd=!1,zI="skip";function S0(e,t,r,i){let l;typeof t=="function"&&typeof r!="function"?(i=r,r=t):l=t;const a=Ra(l),u=i?-1:1;d(e,void 0,[])();function d(f,p,g){const m=f&&typeof f=="object"?f:{};if(typeof m.type=="string"){const w=typeof m.tagName=="string"?m.tagName:typeof m.name=="string"?m.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(f.type+(w?"<"+w+">":""))+")"})}return v;function v(){let w=b0,k,S,j;if((!t||a(f,p,g[g.length-1]||void 0))&&(w=DI(r(f,g)),w[0]===bd))return w;if("children"in f&&f.children){const E=f;if(E.children&&w[0]!==zI)for(S=(i?E.children.length:-1)+u,j=g.concat(E);S>-1&&S<E.children.length;){const P=E.children[S];if(k=d(P,S,j)(),k[0]===bd)return k;S=typeof k[1]=="number"?k[1]:S+u}}return w}}}function DI(e){return Array.isArray(e)?e:typeof e=="number"?[_I,e]:e==null?b0:[e]}function gf(e,t,r,i){let l,a,u;typeof t=="function"?(a=void 0,u=t,l=r):(a=t,u=r,l=i),S0(e,a,d,l);function d(f,p){const g=p[p.length-1],m=g?g.children.indexOf(f):void 0;return u(f,m,g)}}const Sd={}.hasOwnProperty,OI={};function FI(e,t){const r=t||OI,i=new Map,l=new Map,a=new Map,u={...bI,...r.handlers},d={all:p,applyData:BI,definitionById:i,footnoteById:l,footnoteCounts:a,footnoteOrder:[],handlers:u,one:f,options:r,patch:MI,wrap:VI};return gf(e,function(g){if(g.type==="definition"||g.type==="footnoteDefinition"){const m=g.type==="definition"?i:l,v=String(g.identifier).toUpperCase();m.has(v)||m.set(v,g)}}),d;function f(g,m){const v=g.type,w=d.handlers[v];if(Sd.call(d.handlers,v)&&w)return w(d,g,m);if(d.options.passThrough&&d.options.passThrough.includes(v)){if("children"in g){const{children:S,...j}=g,E=aa(j);return E.children=d.all(g),E}return aa(g)}return(d.options.unknownHandler||UI)(d,g,m)}function p(g){const m=[];if("children"in g){const v=g.children;let w=-1;for(;++w<v.length;){const k=d.one(v[w],g);if(k){if(w&&v[w-1].type==="break"&&(!Array.isArray(k)&&k.type==="text"&&(k.value=Tg(k.value)),!Array.isArray(k)&&k.type==="element")){const S=k.children[0];S&&S.type==="text"&&(S.value=Tg(S.value))}Array.isArray(k)?m.push(...k):m.push(k)}}}return m}}function MI(e,t){e.position&&(t.position=R2(e))}function BI(e,t){let r=t;if(e&&e.data){const i=e.data.hName,l=e.data.hChildren,a=e.data.hProperties;if(typeof i=="string")if(r.type==="element")r.tagName=i;else{const u="children"in r?r.children:[r];r={type:"element",tagName:i,properties:{},children:u}}r.type==="element"&&a&&Object.assign(r.properties,aa(a)),"children"in r&&r.children&&l!==null&&l!==void 0&&(r.children=l)}return r}function UI(e,t){const r=t.data||{},i="value"in t&&!(Sd.call(r,"hProperties")||Sd.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function VI(e,t){const r=[];let i=-1;for(t&&r.push({type:"text",value:`
853
+ `});++i<e.length;)i&&r.push({type:"text",value:`
854
+ `}),r.push(e[i]);return t&&e.length>0&&r.push({type:"text",value:`
855
+ `}),r}function Tg(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function Rg(e,t){const r=FI(e,t),i=r.one(e,void 0),l=II(r),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return l&&a.children.push({type:"text",value:`
856
+ `},l),a}function HI(e,t){return e&&"run"in e?async function(r,i){const l=Rg(r,{file:i,...t});await e.run(l,i)}:function(r,i){return Rg(r,{file:i,...e||t})}}function Ig(e){if(e)throw e}var _c,Ng;function WI(){if(Ng)return _c;Ng=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(p){return typeof Array.isArray=="function"?Array.isArray(p):t.call(p)==="[object Array]"},a=function(p){if(!p||t.call(p)!=="[object Object]")return!1;var g=e.call(p,"constructor"),m=p.constructor&&p.constructor.prototype&&e.call(p.constructor.prototype,"isPrototypeOf");if(p.constructor&&!g&&!m)return!1;var v;for(v in p);return typeof v>"u"||e.call(p,v)},u=function(p,g){r&&g.name==="__proto__"?r(p,g.name,{enumerable:!0,configurable:!0,value:g.newValue,writable:!0}):p[g.name]=g.newValue},d=function(p,g){if(g==="__proto__")if(e.call(p,g)){if(i)return i(p,g).value}else return;return p[g]};return _c=function f(){var p,g,m,v,w,k,S=arguments[0],j=1,E=arguments.length,P=!1;for(typeof S=="boolean"&&(P=S,S=arguments[1]||{},j=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});j<E;++j)if(p=arguments[j],p!=null)for(g in p)m=d(S,g),v=d(p,g),S!==v&&(P&&v&&(a(v)||(w=l(v)))?(w?(w=!1,k=m&&l(m)?m:[]):k=m&&a(m)?m:{},u(S,{name:g,newValue:f(P,k,v)})):typeof v<"u"&&u(S,{name:g,newValue:v}));return S},_c}var qI=WI();const zc=Ad(qI);function Cd(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function GI(){const e=[],t={run:r,use:i};return t;function r(...l){let a=-1;const u=l.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);d(null,...l);function d(f,...p){const g=e[++a];let m=-1;if(f){u(f);return}for(;++m<l.length;)(p[m]===null||p[m]===void 0)&&(p[m]=l[m]);l=p,g?JI(g,d)(...p):u(null,...p)}}function i(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}function JI(e,t){let r;return i;function i(...u){const d=e.length>u.length;let f;d&&u.push(l);try{f=e.apply(this,u)}catch(p){const g=p;if(d&&r)throw g;return l(g)}d||(f&&f.then&&typeof f.then=="function"?f.then(a,l):f instanceof Error?l(f):a(f))}function l(u,...d){r||(r=!0,t(u,...d))}function a(u){l(null,u)}}const Mn={basename:KI,dirname:QI,extname:YI,join:XI,sep:"/"};function KI(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');xl(e);let r=0,i=-1,l=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else i<0&&(a=!0,i=l+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let u=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(a){r=l+1;break}}else u<0&&(a=!0,u=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(i=l):(d=-1,i=u));return r===i?i=u:i<0&&(i=e.length),e.slice(r,i)}function QI(e){if(xl(e),e.length===0)return".";let t=-1,r=e.length,i;for(;--r;)if(e.codePointAt(r)===47){if(i){t=r;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function YI(e){xl(e);let t=e.length,r=-1,i=0,l=-1,a=0,u;for(;t--;){const d=e.codePointAt(t);if(d===47){if(u){i=t+1;break}continue}r<0&&(u=!0,r=t+1),d===46?l<0?l=t:a!==1&&(a=1):l>-1&&(a=-1)}return l<0||r<0||a===0||a===1&&l===r-1&&l===i+1?"":e.slice(l,r)}function XI(...e){let t=-1,r;for(;++t<e.length;)xl(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ZI(r)}function ZI(e){xl(e);const t=e.codePointAt(0)===47;let r=eN(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function eN(e,t){let r="",i=0,l=-1,a=0,u=-1,d,f;for(;++u<=e.length;){if(u<e.length)d=e.codePointAt(u);else{if(d===47)break;d=47}if(d===47){if(!(l===u-1||a===1))if(l!==u-1&&a===2){if(r.length<2||i!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(f=r.lastIndexOf("/"),f!==r.length-1){f<0?(r="",i=0):(r=r.slice(0,f),i=r.length-1-r.lastIndexOf("/")),l=u,a=0;continue}}else if(r.length>0){r="",i=0,l=u,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",i=2)}else r.length>0?r+="/"+e.slice(l+1,u):r=e.slice(l+1,u),i=u-l-1;l=u,a=0}else d===46&&a>-1?a++:a=-1}return r}function xl(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const tN={cwd:nN};function nN(){return"/"}function Ed(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function rN(e){if(typeof e=="string")e=new URL(e);else if(!Ed(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return oN(e)}function oN(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const i=t.codePointAt(r+2);if(i===70||i===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}const Dc=["history","path","basename","stem","extname","dirname"];class C0{constructor(t){let r;t?Ed(t)?r={path:t}:typeof t=="string"||iN(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":tN.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Dc.length;){const a=Dc[i];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let l;for(l in r)Dc.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?Mn.basename(this.path):void 0}set basename(t){Fc(t,"basename"),Oc(t,"basename"),this.path=Mn.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Mn.dirname(this.path):void 0}set dirname(t){Pg(this.basename,"dirname"),this.path=Mn.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Mn.extname(this.path):void 0}set extname(t){if(Oc(t,"extname"),Pg(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Mn.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ed(t)&&(t=rN(t)),Fc(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Mn.basename(this.path,this.extname):void 0}set stem(t){Fc(t,"stem"),Oc(t,"stem"),this.path=Mn.join(this.dirname||"",t+(this.extname||""))}fail(t,r,i){const l=this.message(t,r,i);throw l.fatal=!0,l}info(t,r,i){const l=this.message(t,r,i);return l.fatal=void 0,l}message(t,r,i){const l=new At(t,r,i);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Oc(e,t){if(e&&e.includes(Mn.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Mn.sep+"`")}function Fc(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Pg(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function iN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const lN=function(e){const i=this.constructor.prototype,l=i[e],a=function(){return l.apply(a,arguments)};return Object.setPrototypeOf(a,i),a},sN={}.hasOwnProperty;class yf extends lN{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=GI()}copy(){const t=new yf;let r=-1;for(;++r<this.attachers.length;){const i=this.attachers[r];t.use(...i)}return t.data(zc(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(Uc("data",this.frozen),this.namespace[t]=r,this):sN.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Uc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const l=r.call(t,...i);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Ds(t),i=this.parser||this.Parser;return Mc("parse",i),i(String(r),r)}process(t,r){const i=this;return this.freeze(),Mc("process",this.parser||this.Parser),Bc("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(a,u){const d=Ds(t),f=i.parse(d);i.run(f,d,function(g,m,v){if(g||!m||!v)return p(g);const w=m,k=i.stringify(w,v);cN(k)?v.value=k:v.result=k,p(g,v)});function p(g,m){g||!m?u(g):a?a(m):r(void 0,m)}}}processSync(t){let r=!1,i;return this.freeze(),Mc("processSync",this.parser||this.Parser),Bc("processSync",this.compiler||this.Compiler),this.process(t,l),Ag("processSync","process",r),i;function l(a,u){r=!0,Ig(a),i=u}}run(t,r,i){$g(t),this.freeze();const l=this.transformers;return!i&&typeof r=="function"&&(i=r,r=void 0),i?a(void 0,i):new Promise(a);function a(u,d){const f=Ds(r);l.run(t,f,p);function p(g,m,v){const w=m||t;g?d(g):u?u(w):i(void 0,w,v)}}}runSync(t,r){let i=!1,l;return this.run(t,r,a),Ag("runSync","run",i),l;function a(u,d){Ig(u),l=d,i=!0}}stringify(t,r){this.freeze();const i=Ds(r),l=this.compiler||this.Compiler;return Bc("stringify",l),$g(t),l(t,i)}use(t,...r){const i=this.attachers,l=this.namespace;if(Uc("use",this.frozen),t!=null)if(typeof t=="function")f(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):u(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(p){if(typeof p=="function")f(p,[]);else if(typeof p=="object")if(Array.isArray(p)){const[g,...m]=p;f(g,m)}else u(p);else throw new TypeError("Expected usable value, not `"+p+"`")}function u(p){if(!("plugins"in p)&&!("settings"in p))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(p.plugins),p.settings&&(l.settings=zc(!0,l.settings,p.settings))}function d(p){let g=-1;if(p!=null)if(Array.isArray(p))for(;++g<p.length;){const m=p[g];a(m)}else throw new TypeError("Expected a list of plugins, not `"+p+"`")}function f(p,g){let m=-1,v=-1;for(;++m<i.length;)if(i[m][0]===p){v=m;break}if(v===-1)i.push([p,...g]);else if(g.length>0){let[w,...k]=g;const S=i[v][1];Cd(S)&&Cd(w)&&(w=zc(!0,S,w)),i[v]=[p,w,...k]}}}}const aN=new yf().freeze();function Mc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Bc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Uc(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function $g(e){if(!Cd(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ag(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ds(e){return uN(e)?e:new C0(e)}function uN(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function cN(e){return typeof e=="string"||dN(e)}function dN(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const fN="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Lg=[],_g={allowDangerousHtml:!0},pN=/^(https?|ircs?|mailto|xmpp)$/i,hN=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ro(e){const t=mN(e),r=gN(e);return yN(t.runSync(t.parse(r),r),e)}function mN(e){const t=e.rehypePlugins||Lg,r=e.remarkPlugins||Lg,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,..._g}:_g;return aN().use(QR).use(r).use(HI,i).use(t)}function gN(e){const t=e.children||"",r=new C0;return typeof t=="string"&&(r.value=t),r}function yN(e,t){const r=t.allowedElements,i=t.allowElement,l=t.components,a=t.disallowedElements,u=t.skipHtml,d=t.unwrapDisallowed,f=t.urlTransform||xN;for(const g of hN)Object.hasOwn(t,g.from)&&(""+g.from+(g.to?"use `"+g.to+"` instead":"remove it")+fN+g.id,void 0);return gf(e,p),A2(e,{Fragment:y.Fragment,components:l,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function p(g,m,v){if(g.type==="raw"&&v&&typeof m=="number")return u?v.children.splice(m,1):v.children[m]={type:"text",value:g.value},m;if(g.type==="element"){let w;for(w in $c)if(Object.hasOwn($c,w)&&Object.hasOwn(g.properties,w)){const k=g.properties[w],S=$c[w];(S===null||S.includes(g.tagName))&&(g.properties[w]=f(String(k||""),w,g))}}if(g.type==="element"){let w=r?!r.includes(g.tagName):a?a.includes(g.tagName):!1;if(!w&&i&&typeof m=="number"&&(w=!i(g,m,v)),w&&v&&typeof m=="number")return d&&g.children?v.children.splice(m,1,...g.children):v.children.splice(m,1),m}}}function xN(e){const t=e.indexOf(":"),r=e.indexOf("?"),i=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||i!==-1&&t>i||pN.test(e.slice(0,t))?e:""}function zg(e,t){const r=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,l=r.indexOf(t);for(;l!==-1;)i++,l=r.indexOf(t,l+t.length);return i}function vN(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function wN(e,t,r){const l=Ra((r||{}).ignore||[]),a=kN(t);let u=-1;for(;++u<a.length;)S0(e,"text",d);function d(p,g){let m=-1,v;for(;++m<g.length;){const w=g[m],k=v?v.children:void 0;if(l(w,k?k.indexOf(w):void 0,v))return;v=w}if(v)return f(p,g)}function f(p,g){const m=g[g.length-1],v=a[u][0],w=a[u][1];let k=0;const j=m.children.indexOf(p);let E=!1,P=[];v.lastIndex=0;let $=v.exec(p.value);for(;$;){const D=$.index,W={index:$.index,input:$.input,stack:[...g,p]};let A=w(...$,W);if(typeof A=="string"&&(A=A.length>0?{type:"text",value:A}:void 0),A===!1?v.lastIndex=D+1:(k!==D&&P.push({type:"text",value:p.value.slice(k,D)}),Array.isArray(A)?P.push(...A):A&&P.push(A),k=D+$[0].length,E=!0),!v.global)break;$=v.exec(p.value)}return E?(k<p.value.length&&P.push({type:"text",value:p.value.slice(k)}),m.children.splice(j,1,...P)):P=[p],j+P.length}}function kN(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const r=!e[0]||Array.isArray(e[0])?e:[e];let i=-1;for(;++i<r.length;){const l=r[i];t.push([bN(l[0]),SN(l[1])])}return t}function bN(e){return typeof e=="string"?new RegExp(vN(e),"g"):e}function SN(e){return typeof e=="function"?e:function(){return e}}const Vc="phrasing",Hc=["autolink","link","image","label"];function CN(){return{transforms:[PN],enter:{literalAutolink:jN,literalAutolinkEmail:Wc,literalAutolinkHttp:Wc,literalAutolinkWww:Wc},exit:{literalAutolink:NN,literalAutolinkEmail:IN,literalAutolinkHttp:TN,literalAutolinkWww:RN}}}function EN(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Vc,notInConstruct:Hc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Vc,notInConstruct:Hc},{character:":",before:"[ps]",after:"\\/",inConstruct:Vc,notInConstruct:Hc}]}}function jN(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Wc(e){this.config.enter.autolinkProtocol.call(this,e)}function TN(e){this.config.exit.autolinkProtocol.call(this,e)}function RN(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function IN(e){this.config.exit.autolinkEmail.call(this,e)}function NN(e){this.exit(e)}function PN(e){wN(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,$N],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),AN]],{ignore:["link","linkReference"]})}function $N(e,t,r,i,l){let a="";if(!E0(l)||(/^w/i.test(t)&&(r=t+r,t="",a="http://"),!LN(r)))return!1;const u=_N(r+i);if(!u[0])return!1;const d={type:"link",title:null,url:a+t+u[0],children:[{type:"text",value:t+u[0]}]};return u[1]?[d,{type:"text",value:u[1]}]:d}function AN(e,t,r,i){return!E0(i,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+r,children:[{type:"text",value:t+"@"+r}]}}function LN(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function _N(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let r=t[0],i=r.indexOf(")");const l=zg(e,"(");let a=zg(e,")");for(;i!==-1&&l>a;)e+=r.slice(0,i+1),r=r.slice(i+1),i=r.indexOf(")"),a++;return[e,r]}function E0(e,t){const r=e.input.charCodeAt(e.index-1);return(e.index===0||no(r)||Ea(r))&&(!t||r!==47)}j0.peek=HN;function zN(){this.buffer()}function DN(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ON(){this.buffer()}function FN(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function MN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function BN(e){this.exit(e)}function UN(e){const t=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Rn(this.sliceSerialize(e)).toLowerCase(),r.label=t}function VN(e){this.exit(e)}function HN(){return"["}function j0(e,t,r,i){const l=r.createTracker(i);let a=l.move("[^");const u=r.enter("footnoteReference"),d=r.enter("reference");return a+=l.move(r.safe(r.associationId(e),{after:"]",before:a})),d(),u(),a+=l.move("]"),a}function WN(){return{enter:{gfmFootnoteCallString:zN,gfmFootnoteCall:DN,gfmFootnoteDefinitionLabelString:ON,gfmFootnoteDefinition:FN},exit:{gfmFootnoteCallString:MN,gfmFootnoteCall:BN,gfmFootnoteDefinitionLabelString:UN,gfmFootnoteDefinition:VN}}}function qN(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:r,footnoteReference:j0},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(i,l,a,u){const d=a.createTracker(u);let f=d.move("[^");const p=a.enter("footnoteDefinition"),g=a.enter("label");return f+=d.move(a.safe(a.associationId(i),{before:f,after:"]"})),g(),f+=d.move("]:"),i.children&&i.children.length>0&&(d.shift(4),f+=d.move((t?`
857
+ `:" ")+a.indentLines(a.containerFlow(i,d.current()),t?T0:GN))),p(),f}}function GN(e,t,r){return t===0?e:T0(e,t,r)}function T0(e,t,r){return(r?"":" ")+e}const JN=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];R0.peek=ZN;function KN(){return{canContainEols:["delete"],enter:{strikethrough:YN},exit:{strikethrough:XN}}}function QN(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:JN}],handlers:{delete:R0}}}function YN(e){this.enter({type:"delete",children:[]},e)}function XN(e){this.exit(e)}function R0(e,t,r,i){const l=r.createTracker(i),a=r.enter("strikethrough");let u=l.move("~~");return u+=r.containerPhrasing(e,{...l.current(),before:u,after:"~"}),u+=l.move("~~"),a(),u}function ZN(){return"~"}function eP(e){return e.length}function tP(e,t){const r=t||{},i=(r.align||[]).concat(),l=r.stringLength||eP,a=[],u=[],d=[],f=[];let p=0,g=-1;for(;++g<e.length;){const S=[],j=[];let E=-1;for(e[g].length>p&&(p=e[g].length);++E<e[g].length;){const P=nP(e[g][E]);if(r.alignDelimiters!==!1){const $=l(P);j[E]=$,(f[E]===void 0||$>f[E])&&(f[E]=$)}S.push(P)}u[g]=S,d[g]=j}let m=-1;if(typeof i=="object"&&"length"in i)for(;++m<p;)a[m]=Dg(i[m]);else{const S=Dg(i);for(;++m<p;)a[m]=S}m=-1;const v=[],w=[];for(;++m<p;){const S=a[m];let j="",E="";S===99?(j=":",E=":"):S===108?j=":":S===114&&(E=":");let P=r.alignDelimiters===!1?1:Math.max(1,f[m]-j.length-E.length);const $=j+"-".repeat(P)+E;r.alignDelimiters!==!1&&(P=j.length+P+E.length,P>f[m]&&(f[m]=P),w[m]=P),v[m]=$}u.splice(1,0,v),d.splice(1,0,w),g=-1;const k=[];for(;++g<u.length;){const S=u[g],j=d[g];m=-1;const E=[];for(;++m<p;){const P=S[m]||"";let $="",D="";if(r.alignDelimiters!==!1){const W=f[m]-(j[m]||0),A=a[m];A===114?$=" ".repeat(W):A===99?W%2?($=" ".repeat(W/2+.5),D=" ".repeat(W/2-.5)):($=" ".repeat(W/2),D=$):D=" ".repeat(W)}r.delimiterStart!==!1&&!m&&E.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&P==="")&&(r.delimiterStart!==!1||m)&&E.push(" "),r.alignDelimiters!==!1&&E.push($),E.push(P),r.alignDelimiters!==!1&&E.push(D),r.padding!==!1&&E.push(" "),(r.delimiterEnd!==!1||m!==p-1)&&E.push("|")}k.push(r.delimiterEnd===!1?E.join("").replace(/ +$/,""):E.join(""))}return k.join(`
858
+ `)}function nP(e){return e==null?"":String(e)}function Dg(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function rP(e,t,r,i){const l=r.enter("blockquote"),a=r.createTracker(i);a.move("> "),a.shift(2);const u=r.indentLines(r.containerFlow(e,a.current()),oP);return l(),u}function oP(e,t,r){return">"+(r?"":" ")+e}function iP(e,t){return Og(e,t.inConstruct,!0)&&!Og(e,t.notInConstruct,!1)}function Og(e,t,r){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return r;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function Fg(e,t,r,i){let l=-1;for(;++l<r.unsafe.length;)if(r.unsafe[l].character===`
859
+ `&&iP(r.stack,r.unsafe[l]))return/[ \t]/.test(i.before)?"":" ";return`\\
860
+ `}function lP(e,t){const r=String(e);let i=r.indexOf(t),l=i,a=0,u=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===l?++a>u&&(u=a):a=1,l=i+t.length,i=r.indexOf(t,l);return u}function sP(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function aP(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uP(e,t,r,i){const l=aP(r),a=e.value||"",u=l==="`"?"GraveAccent":"Tilde";if(sP(e,r)){const m=r.enter("codeIndented"),v=r.indentLines(a,cP);return m(),v}const d=r.createTracker(i),f=l.repeat(Math.max(lP(a,l)+1,3)),p=r.enter("codeFenced");let g=d.move(f);if(e.lang){const m=r.enter(`codeFencedLang${u}`);g+=d.move(r.safe(e.lang,{before:g,after:" ",encode:["`"],...d.current()})),m()}if(e.lang&&e.meta){const m=r.enter(`codeFencedMeta${u}`);g+=d.move(" "),g+=d.move(r.safe(e.meta,{before:g,after:`
861
+ `,encode:["`"],...d.current()})),m()}return g+=d.move(`
862
+ `),a&&(g+=d.move(a+`
863
+ `)),g+=d.move(f),p(),g}function cP(e,t,r){return(r?"":" ")+e}function xf(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function dP(e,t,r,i){const l=xf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("definition");let d=r.enter("label");const f=r.createTracker(i);let p=f.move("[");return p+=f.move(r.safe(r.associationId(e),{before:p,after:"]",...f.current()})),p+=f.move("]: "),d(),!e.url||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":`
864
+ `,...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),u(),p}function fP(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function sl(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ua(e,t,r){const i=Jo(e),l=Jo(t);return i===void 0?l===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:l===void 0?{inside:!1,outside:!1}:l===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}I0.peek=pP;function I0(e,t,r,i){const l=fP(r),a=r.enter("emphasis"),u=r.createTracker(i),d=u.move(l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),g=ua(i.before.charCodeAt(i.before.length-1),p,l);g.inside&&(f=sl(p)+f.slice(1));const m=f.charCodeAt(f.length-1),v=ua(i.after.charCodeAt(0),m,l);v.inside&&(f=f.slice(0,-1)+sl(m));const w=u.move(l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:g.outside},d+f+w}function pP(e,t,r){return r.options.emphasis||"*"}function hP(e,t){let r=!1;return gf(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return r=!0,bd}),!!((!e.depth||e.depth<3)&&uf(e)&&(t.options.setext||r))}function mP(e,t,r,i){const l=Math.max(Math.min(6,e.depth||1),1),a=r.createTracker(i);if(hP(e,r)){const g=r.enter("headingSetext"),m=r.enter("phrasing"),v=r.containerPhrasing(e,{...a.current(),before:`
865
+ `,after:`
866
+ `});return m(),g(),v+`
867
+ `+(l===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
868
+ `))+1))}const u="#".repeat(l),d=r.enter("headingAtx"),f=r.enter("phrasing");a.move(u+" ");let p=r.containerPhrasing(e,{before:"# ",after:`
869
+ `,...a.current()});return/^[\t ]/.test(p)&&(p=sl(p.charCodeAt(0))+p.slice(1)),p=p?u+" "+p:u,r.options.closeAtx&&(p+=" "+u),f(),d(),p}N0.peek=gP;function N0(e){return e.value||""}function gP(){return"<"}P0.peek=yP;function P0(e,t,r,i){const l=xf(r),a=l==='"'?"Quote":"Apostrophe",u=r.enter("image");let d=r.enter("label");const f=r.createTracker(i);let p=f.move("![");return p+=f.move(r.safe(e.alt,{before:p,after:"]",...f.current()})),p+=f.move("]("),d(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(d=r.enter("destinationLiteral"),p+=f.move("<"),p+=f.move(r.safe(e.url,{before:p,after:">",...f.current()})),p+=f.move(">")):(d=r.enter("destinationRaw"),p+=f.move(r.safe(e.url,{before:p,after:e.title?" ":")",...f.current()}))),d(),e.title&&(d=r.enter(`title${a}`),p+=f.move(" "+l),p+=f.move(r.safe(e.title,{before:p,after:l,...f.current()})),p+=f.move(l),d()),p+=f.move(")"),u(),p}function yP(){return"!"}$0.peek=xP;function $0(e,t,r,i){const l=e.referenceType,a=r.enter("imageReference");let u=r.enter("label");const d=r.createTracker(i);let f=d.move("![");const p=r.safe(e.alt,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const g=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=g,a(),l==="full"||!p||p!==m?f+=d.move(m+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function xP(){return"!"}A0.peek=vP;function A0(e,t,r){let i=e.value||"",l="`",a=-1;for(;new RegExp("(^|[^`])"+l+"([^`]|$)").test(i);)l+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a<r.unsafe.length;){const u=r.unsafe[a],d=r.compilePattern(u);let f;if(u.atBreak)for(;f=d.exec(i);){let p=f.index;i.charCodeAt(p)===10&&i.charCodeAt(p-1)===13&&p--,i=i.slice(0,p)+" "+i.slice(f.index+1)}}return l+i+l}function vP(){return"`"}function L0(e,t){const r=uf(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(r===e.url||"mailto:"+r===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}_0.peek=wP;function _0(e,t,r,i){const l=xf(r),a=l==='"'?"Quote":"Apostrophe",u=r.createTracker(i);let d,f;if(L0(e,r)){const g=r.stack;r.stack=[],d=r.enter("autolink");let m=u.move("<");return m+=u.move(r.containerPhrasing(e,{before:m,after:">",...u.current()})),m+=u.move(">"),d(),r.stack=g,m}d=r.enter("link"),f=r.enter("label");let p=u.move("[");return p+=u.move(r.containerPhrasing(e,{before:p,after:"](",...u.current()})),p+=u.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=r.enter("destinationLiteral"),p+=u.move("<"),p+=u.move(r.safe(e.url,{before:p,after:">",...u.current()})),p+=u.move(">")):(f=r.enter("destinationRaw"),p+=u.move(r.safe(e.url,{before:p,after:e.title?" ":")",...u.current()}))),f(),e.title&&(f=r.enter(`title${a}`),p+=u.move(" "+l),p+=u.move(r.safe(e.title,{before:p,after:l,...u.current()})),p+=u.move(l),f()),p+=u.move(")"),d(),p}function wP(e,t,r){return L0(e,r)?"<":"["}z0.peek=kP;function z0(e,t,r,i){const l=e.referenceType,a=r.enter("linkReference");let u=r.enter("label");const d=r.createTracker(i);let f=d.move("[");const p=r.containerPhrasing(e,{before:f,after:"]",...d.current()});f+=d.move(p+"]["),u();const g=r.stack;r.stack=[],u=r.enter("reference");const m=r.safe(r.associationId(e),{before:f,after:"]",...d.current()});return u(),r.stack=g,a(),l==="full"||!p||p!==m?f+=d.move(m+"]"):l==="shortcut"?f=f.slice(0,-1):f+=d.move("]"),f}function kP(){return"["}function vf(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function bP(e){const t=vf(e),r=e.options.bulletOther;if(!r)return t==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+r+"`) to be different");return r}function SP(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function D0(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function CP(e,t,r,i){const l=r.enter("list"),a=r.bulletCurrent;let u=e.ordered?SP(r):vf(r);const d=e.ordered?u==="."?")":".":bP(r);let f=t&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const g=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&g&&(!g.children||!g.children[0])&&r.stack[r.stack.length-1]==="list"&&r.stack[r.stack.length-2]==="listItem"&&r.stack[r.stack.length-3]==="list"&&r.stack[r.stack.length-4]==="listItem"&&r.indexStack[r.indexStack.length-1]===0&&r.indexStack[r.indexStack.length-2]===0&&r.indexStack[r.indexStack.length-3]===0&&(f=!0),D0(r)===u&&g){let m=-1;for(;++m<e.children.length;){const v=e.children[m];if(v&&v.type==="listItem"&&v.children&&v.children[0]&&v.children[0].type==="thematicBreak"){f=!0;break}}}}f&&(u=d),r.bulletCurrent=u;const p=r.containerFlow(e,i);return r.bulletLastUsed=u,r.bulletCurrent=a,l(),p}function EP(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function jP(e,t,r,i){const l=EP(r);let a=r.bulletCurrent||vf(r);t&&t.type==="list"&&t.ordered&&(a=(typeof t.start=="number"&&t.start>-1?t.start:1)+(r.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let u=a.length+1;(l==="tab"||l==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(u=Math.ceil(u/4)*4);const d=r.createTracker(i);d.move(a+" ".repeat(u-a.length)),d.shift(u);const f=r.enter("listItem"),p=r.indentLines(r.containerFlow(e,d.current()),g);return f(),p;function g(m,v,w){return v?(w?"":" ".repeat(u))+m:(w?a:a+" ".repeat(u-a.length))+m}}function TP(e,t,r,i){const l=r.enter("paragraph"),a=r.enter("phrasing"),u=r.containerPhrasing(e,i);return a(),l(),u}const RP=Ra(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function IP(e,t,r,i){return(e.children.some(function(u){return RP(u)})?r.containerPhrasing:r.containerFlow).call(r,e,i)}function NP(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}O0.peek=PP;function O0(e,t,r,i){const l=NP(r),a=r.enter("strong"),u=r.createTracker(i),d=u.move(l+l);let f=u.move(r.containerPhrasing(e,{after:l,before:d,...u.current()}));const p=f.charCodeAt(0),g=ua(i.before.charCodeAt(i.before.length-1),p,l);g.inside&&(f=sl(p)+f.slice(1));const m=f.charCodeAt(f.length-1),v=ua(i.after.charCodeAt(0),m,l);v.inside&&(f=f.slice(0,-1)+sl(m));const w=u.move(l+l);return a(),r.attentionEncodeSurroundingInfo={after:v.outside,before:g.outside},d+f+w}function PP(e,t,r){return r.options.strong||"*"}function $P(e,t,r,i){return r.safe(e.value,i)}function AP(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function LP(e,t,r){const i=(D0(r)+(r.options.ruleSpaces?" ":"")).repeat(AP(r));return r.options.ruleSpaces?i.slice(0,-1):i}const F0={blockquote:rP,break:Fg,code:uP,definition:dP,emphasis:I0,hardBreak:Fg,heading:mP,html:N0,image:P0,imageReference:$0,inlineCode:A0,link:_0,linkReference:z0,list:CP,listItem:jP,paragraph:TP,root:IP,strong:O0,text:$P,thematicBreak:LP};function _P(){return{enter:{table:zP,tableData:Mg,tableHeader:Mg,tableRow:OP},exit:{codeText:FP,table:DP,tableData:qc,tableHeader:qc,tableRow:qc}}}function zP(e){const t=e._align;this.enter({type:"table",align:t.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function DP(e){this.exit(e),this.data.inTable=void 0}function OP(e){this.enter({type:"tableRow",children:[]},e)}function qc(e){this.exit(e)}function Mg(e){this.enter({type:"tableCell",children:[]},e)}function FP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,MP));const r=this.stack[this.stack.length-1];r.type,r.value=t,this.exit(e)}function MP(e,t){return t==="|"?t:e}function BP(e){const t=e||{},r=t.tableCellPadding,i=t.tablePipeAlign,l=t.stringLength,a=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
870
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:v,table:u,tableCell:f,tableRow:d}};function u(w,k,S,j){return p(g(w,S,j),w.align)}function d(w,k,S,j){const E=m(w,S,j),P=p([E]);return P.slice(0,P.indexOf(`
871
+ `))}function f(w,k,S,j){const E=S.enter("tableCell"),P=S.enter("phrasing"),$=S.containerPhrasing(w,{...j,before:a,after:a});return P(),E(),$}function p(w,k){return tP(w,{align:k,alignDelimiters:i,padding:r,stringLength:l})}function g(w,k,S){const j=w.children;let E=-1;const P=[],$=k.enter("table");for(;++E<j.length;)P[E]=m(j[E],k,S);return $(),P}function m(w,k,S){const j=w.children;let E=-1;const P=[],$=k.enter("tableRow");for(;++E<j.length;)P[E]=f(j[E],w,k,S);return $(),P}function v(w,k,S){let j=F0.inlineCode(w,k,S);return S.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function UP(){return{exit:{taskListCheckValueChecked:Bg,taskListCheckValueUnchecked:Bg,paragraph:HP}}}function VP(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:WP}}}function Bg(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function HP(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const i=r.children[0];if(i&&i.type==="text"){const l=t.children;let a=-1,u;for(;++a<l.length;){const d=l[a];if(d.type==="paragraph"){u=d;break}}u===r&&(i.value=i.value.slice(1),i.value.length===0?r.children.shift():r.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,r.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function WP(e,t,r,i){const l=e.children[0],a=typeof e.checked=="boolean"&&l&&l.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",d=r.createTracker(i);a&&d.move(u);let f=F0.listItem(e,t,r,{...i,...d.current()});return a&&(f=f.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,p)),f;function p(g){return g+u}}function qP(){return[CN(),WN(),KN(),_P(),UP()]}function GP(e){return{extensions:[EN(),qN(e),QN(),BP(e),VP()]}}const JP={tokenize:e4,partial:!0},M0={tokenize:t4,partial:!0},B0={tokenize:n4,partial:!0},U0={tokenize:r4,partial:!0},KP={tokenize:o4,partial:!0},V0={name:"wwwAutolink",tokenize:XP,previous:W0},H0={name:"protocolAutolink",tokenize:ZP,previous:q0},Zn={name:"emailAutolink",tokenize:YP,previous:G0},Un={};function QP(){return{text:Un}}let qr=48;for(;qr<123;)Un[qr]=Zn,qr++,qr===58?qr=65:qr===91&&(qr=97);Un[43]=Zn;Un[45]=Zn;Un[46]=Zn;Un[95]=Zn;Un[72]=[Zn,H0];Un[104]=[Zn,H0];Un[87]=[Zn,V0];Un[119]=[Zn,V0];function YP(e,t,r){const i=this;let l,a;return u;function u(m){return!jd(m)||!G0.call(i,i.previous)||wf(i.events)?r(m):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(m))}function d(m){return jd(m)?(e.consume(m),d):m===64?(e.consume(m),f):r(m)}function f(m){return m===46?e.check(KP,g,p)(m):m===45||m===95||$t(m)?(a=!0,e.consume(m),f):g(m)}function p(m){return e.consume(m),l=!0,f}function g(m){return a&&l&&Ot(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(m)):r(m)}}function XP(e,t,r){const i=this;return l;function l(u){return u!==87&&u!==119||!W0.call(i,i.previous)||wf(i.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(JP,e.attempt(M0,e.attempt(B0,a),r),r)(u))}function a(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(u)}}function ZP(e,t,r){const i=this;let l="",a=!1;return u;function u(m){return(m===72||m===104)&&q0.call(i,i.previous)&&!wf(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),l+=String.fromCodePoint(m),e.consume(m),d):r(m)}function d(m){if(Ot(m)&&l.length<5)return l+=String.fromCodePoint(m),e.consume(m),d;if(m===58){const v=l.toLowerCase();if(v==="http"||v==="https")return e.consume(m),f}return r(m)}function f(m){return m===47?(e.consume(m),a?p:(a=!0,f)):r(m)}function p(m){return m===null||ia(m)||He(m)||no(m)||Ea(m)?r(m):e.attempt(M0,e.attempt(B0,g),r)(m)}function g(m){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(m)}}function e4(e,t,r){let i=0;return l;function l(u){return(u===87||u===119)&&i<3?(i++,e.consume(u),l):u===46&&i===3?(e.consume(u),a):r(u)}function a(u){return u===null?r(u):t(u)}}function t4(e,t,r){let i,l,a;return u;function u(p){return p===46||p===95?e.check(U0,f,d)(p):p===null||He(p)||no(p)||p!==45&&Ea(p)?f(p):(a=!0,e.consume(p),u)}function d(p){return p===95?i=!0:(l=i,i=void 0),e.consume(p),u}function f(p){return l||i||!a?r(p):t(p)}}function n4(e,t){let r=0,i=0;return l;function l(u){return u===40?(r++,e.consume(u),l):u===41&&i<r?a(u):u===33||u===34||u===38||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===60||u===63||u===93||u===95||u===126?e.check(U0,t,a)(u):u===null||He(u)||no(u)?t(u):(e.consume(u),l)}function a(u){return u===41&&i++,e.consume(u),l}}function r4(e,t,r){return i;function i(d){return d===33||d===34||d===39||d===41||d===42||d===44||d===46||d===58||d===59||d===63||d===95||d===126?(e.consume(d),i):d===38?(e.consume(d),a):d===93?(e.consume(d),l):d===60||d===null||He(d)||no(d)?t(d):r(d)}function l(d){return d===null||d===40||d===91||He(d)||no(d)?t(d):i(d)}function a(d){return Ot(d)?u(d):r(d)}function u(d){return d===59?(e.consume(d),i):Ot(d)?(e.consume(d),u):r(d)}}function o4(e,t,r){return i;function i(a){return e.consume(a),l}function l(a){return $t(a)?r(a):t(a)}}function W0(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||He(e)}function q0(e){return!Ot(e)}function G0(e){return!(e===47||jd(e))}function jd(e){return e===43||e===45||e===46||e===95||$t(e)}function wf(e){let t=e.length,r=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){r=!0;break}if(i._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const i4={tokenize:p4,partial:!0};function l4(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:c4,continuation:{tokenize:d4},exit:f4}},text:{91:{name:"gfmFootnoteCall",tokenize:u4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:s4,resolveTo:a4}}}}function s4(e,t,r){const i=this;let l=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let u;for(;l--;){const f=i.events[l][1];if(f.type==="labelImage"){u=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return d;function d(f){if(!u||!u._balanced)return r(f);const p=Rn(i.sliceSerialize({start:u.end,end:i.now()}));return p.codePointAt(0)!==94||!a.includes(p.slice(1))?r(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),t(f))}}function a4(e,t){let r=e.length;for(;r--;)if(e[r][1].type==="labelImage"&&e[r][0]==="enter"){e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},l={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};l.end.column++,l.end.offset++,l.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},l.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},d=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",l,t],["exit",l,t],["enter",a,t],["enter",u,t],["exit",u,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...d),e}function u4(e,t,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,u;return d;function d(m){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),f}function f(m){return m!==94?r(m):(e.enter("gfmFootnoteCallMarker"),e.consume(m),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",p)}function p(m){if(a>999||m===93&&!u||m===null||m===91||He(m))return r(m);if(m===93){e.exit("chunkString");const v=e.exit("gfmFootnoteCallString");return l.includes(Rn(i.sliceSerialize(v)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(m),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):r(m)}return He(m)||(u=!0),a++,e.consume(m),m===92?g:p}function g(m){return m===91||m===92||m===93?(e.consume(m),a++,p):p(m)}}function c4(e,t,r){const i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,u=0,d;return f;function f(k){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),p}function p(k){return k===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",g):r(k)}function g(k){if(u>999||k===93&&!d||k===null||k===91||He(k))return r(k);if(k===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=Rn(i.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(k),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),v}return He(k)||(d=!0),u++,e.consume(k),k===92?m:g}function m(k){return k===91||k===92||k===93?(e.consume(k),u++,g):g(k)}function v(k){return k===58?(e.enter("definitionMarker"),e.consume(k),e.exit("definitionMarker"),l.includes(a)||l.push(a),ze(e,w,"gfmFootnoteDefinitionWhitespace")):r(k)}function w(k){return t(k)}}function d4(e,t,r){return e.check(yl,t,e.attempt(i4,t,r))}function f4(e){e.exit("gfmFootnoteDefinition")}function p4(e,t,r){const i=this;return ze(e,l,"gfmFootnoteDefinitionIndent",5);function l(a){const u=i.events[i.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?t(a):r(a)}}function h4(e){let r=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:l};return r==null&&(r=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function l(u,d){let f=-1;for(;++f<u.length;)if(u[f][0]==="enter"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._close){let p=f;for(;p--;)if(u[p][0]==="exit"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._open&&u[f][1].end.offset-u[f][1].start.offset===u[p][1].end.offset-u[p][1].start.offset){u[f][1].type="strikethroughSequence",u[p][1].type="strikethroughSequence";const g={type:"strikethrough",start:Object.assign({},u[p][1].start),end:Object.assign({},u[f][1].end)},m={type:"strikethroughText",start:Object.assign({},u[p][1].end),end:Object.assign({},u[f][1].start)},v=[["enter",g,d],["enter",u[p][1],d],["exit",u[p][1],d],["enter",m,d]],w=d.parser.constructs.insideSpan.null;w&&sn(v,v.length,0,ja(w,u.slice(p+1,f),d)),sn(v,v.length,0,[["exit",m,d],["enter",u[f][1],d],["exit",u[f][1],d],["exit",g,d]]),sn(u,p-1,f-p+3,v),f=p+v.length-2;break}}for(f=-1;++f<u.length;)u[f][1].type==="strikethroughSequenceTemporary"&&(u[f][1].type="data");return u}function a(u,d,f){const p=this.previous,g=this.events;let m=0;return v;function v(k){return p===126&&g[g.length-1][1].type!=="characterEscape"?f(k):(u.enter("strikethroughSequenceTemporary"),w(k))}function w(k){const S=Jo(p);if(k===126)return m>1?f(k):(u.consume(k),m++,w);if(m<2&&!r)return f(k);const j=u.exit("strikethroughSequenceTemporary"),E=Jo(k);return j._open=!E||E===2&&!!S,j._close=!S||S===2&&!!E,d(k)}}}class m4{constructor(){this.map=[]}add(t,r,i){g4(this,t,r,i)}consume(t){if(this.map.sort(function(a,u){return a[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const i=[];for(;r>0;)r-=1,i.push(t.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),t.length=this.map[r][0];i.push(t.slice()),t.length=0;let l=i.pop();for(;l;){for(const a of l)t.push(a);l=i.pop()}this.map.length=0}}function g4(e,t,r,i){let l=0;if(!(r===0&&i.length===0)){for(;l<e.map.length;){if(e.map[l][0]===t){e.map[l][1]+=r,e.map[l][2].push(...i);return}l+=1}e.map.push([t,r,i])}}function y4(e,t){let r=!1;const i=[];for(;t<e.length;){const l=e[t];if(r){if(l[0]==="enter")l[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(l[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const a=i.length-1;i[a]=i[a]==="left"?"center":"right"}}else if(l[1].type==="tableDelimiterRow")break}else l[0]==="enter"&&l[1].type==="tableDelimiterRow"&&(r=!0);t+=1}return i}function x4(){return{flow:{null:{name:"table",tokenize:v4,resolveAll:w4}}}}function v4(e,t,r){const i=this;let l=0,a=0,u;return d;function d(O){let ee=i.events.length-1;for(;ee>-1;){const re=i.events[ee][1].type;if(re==="lineEnding"||re==="linePrefix")ee--;else break}const se=ee>-1?i.events[ee][1].type:null,ne=se==="tableHead"||se==="tableRow"?A:f;return ne===A&&i.parser.lazy[i.now().line]?r(O):ne(O)}function f(O){return e.enter("tableHead"),e.enter("tableRow"),p(O)}function p(O){return O===124||(u=!0,a+=1),g(O)}function g(O){return O===null?r(O):ke(O)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),w):r(O):Ae(O)?ze(e,g,"whitespace")(O):(a+=1,u&&(u=!1,l+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),u=!0,g):(e.enter("data"),m(O)))}function m(O){return O===null||O===124||He(O)?(e.exit("data"),g(O)):(e.consume(O),O===92?v:m)}function v(O){return O===92||O===124?(e.consume(O),m):m(O)}function w(O){return i.interrupt=!1,i.parser.lazy[i.now().line]?r(O):(e.enter("tableDelimiterRow"),u=!1,Ae(O)?ze(e,k,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):k(O))}function k(O){return O===45||O===58?j(O):O===124?(u=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),S):W(O)}function S(O){return Ae(O)?ze(e,j,"whitespace")(O):j(O)}function j(O){return O===58?(a+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),E):O===45?(a+=1,E(O)):O===null||ke(O)?D(O):W(O)}function E(O){return O===45?(e.enter("tableDelimiterFiller"),P(O)):W(O)}function P(O){return O===45?(e.consume(O),P):O===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),$):(e.exit("tableDelimiterFiller"),$(O))}function $(O){return Ae(O)?ze(e,D,"whitespace")(O):D(O)}function D(O){return O===124?k(O):O===null||ke(O)?!u||l!==a?W(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(O)):W(O)}function W(O){return r(O)}function A(O){return e.enter("tableRow"),H(O)}function H(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),H):O===null||ke(O)?(e.exit("tableRow"),t(O)):Ae(O)?ze(e,H,"whitespace")(O):(e.enter("data"),K(O))}function K(O){return O===null||O===124||He(O)?(e.exit("data"),H(O)):(e.consume(O),O===92?le:K)}function le(O){return O===92||O===124?(e.consume(O),K):K(O)}}function w4(e,t){let r=-1,i=!0,l=0,a=[0,0,0,0],u=[0,0,0,0],d=!1,f=0,p,g,m;const v=new m4;for(;++r<e.length;){const w=e[r],k=w[1];w[0]==="enter"?k.type==="tableHead"?(d=!1,f!==0&&(Ug(v,t,f,p,g),g=void 0,f=0),p={type:"table",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",p,t]])):k.type==="tableRow"||k.type==="tableDelimiterRow"?(i=!0,m=void 0,a=[0,0,0,0],u=[0,r+1,0,0],d&&(d=!1,g={type:"tableBody",start:Object.assign({},k.start),end:Object.assign({},k.end)},v.add(r,0,[["enter",g,t]])),l=k.type==="tableDelimiterRow"?2:g?3:1):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")?(i=!1,u[2]===0&&(a[1]!==0&&(u[0]=u[1],m=Os(v,t,a,l,void 0,m),a=[0,0,0,0]),u[2]=r)):k.type==="tableCellDivider"&&(i?i=!1:(a[1]!==0&&(u[0]=u[1],m=Os(v,t,a,l,void 0,m)),a=u,u=[a[1],r,0,0])):k.type==="tableHead"?(d=!0,f=r):k.type==="tableRow"||k.type==="tableDelimiterRow"?(f=r,a[1]!==0?(u[0]=u[1],m=Os(v,t,a,l,r,m)):u[1]!==0&&(m=Os(v,t,u,l,r,m)),l=0):l&&(k.type==="data"||k.type==="tableDelimiterMarker"||k.type==="tableDelimiterFiller")&&(u[3]=r)}for(f!==0&&Ug(v,t,f,p,g),v.consume(t.events),r=-1;++r<t.events.length;){const w=t.events[r];w[0]==="enter"&&w[1].type==="table"&&(w[1]._align=y4(t.events,r))}return e}function Os(e,t,r,i,l,a){const u=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";r[0]!==0&&(a.end=Object.assign({},zo(t.events,r[0])),e.add(r[0],0,[["exit",a,t]]));const f=zo(t.events,r[1]);if(a={type:u,start:Object.assign({},f),end:Object.assign({},f)},e.add(r[1],0,[["enter",a,t]]),r[2]!==0){const p=zo(t.events,r[2]),g=zo(t.events,r[3]),m={type:d,start:Object.assign({},p),end:Object.assign({},g)};if(e.add(r[2],0,[["enter",m,t]]),i!==2){const v=t.events[r[2]],w=t.events[r[3]];if(v[1].end=Object.assign({},w[1].end),v[1].type="chunkText",v[1].contentType="text",r[3]>r[2]+1){const k=r[2]+1,S=r[3]-r[2]-1;e.add(k,S,[])}}e.add(r[3]+1,0,[["exit",m,t]])}return l!==void 0&&(a.end=Object.assign({},zo(t.events,l)),e.add(l,0,[["exit",a,t]]),a=void 0),a}function Ug(e,t,r,i,l){const a=[],u=zo(t.events,r);l&&(l.end=Object.assign({},u),a.push(["exit",l,t])),i.end=Object.assign({},u),a.push(["exit",i,t]),e.add(r+1,0,a)}function zo(e,t){const r=e[t],i=r[0]==="enter"?"start":"end";return r[1][i]}const k4={name:"tasklistCheck",tokenize:S4};function b4(){return{text:{91:k4}}}function S4(e,t,r){const i=this;return l;function l(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?r(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return He(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),u):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),u):r(f)}function u(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):r(f)}function d(f){return ke(f)?t(f):Ae(f)?e.check({tokenize:C4},t,r)(f):r(f)}}function C4(e,t,r){return ze(e,i,"whitespace");function i(l){return l===null?r(l):t(l)}}function E4(e){return o0([QP(),l4(),h4(e),x4(),b4()])}const j4={};function oo(e){const t=this,r=e||j4,i=t.data(),l=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),u=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);l.push(E4(r)),a.push(qP()),u.push(GP(r))}const ri=T.div`
872
+ display: flex;
873
+ &[data-type='user'] {
874
+ justify-content: flex-end;
875
+ }
876
+
877
+ &[data-type='assistant'] {
878
+ justify-content: flex-start;
879
+ }
880
+ `,J0=T.div`
881
+ color: ${e=>e.theme.colors.text};
882
+ border-radius: 12px;
883
+ padding: 8px 12px;
884
+ max-width: 70%;
885
+ background-color: ${e=>e.theme.colors.backgroundSecondary};
886
+
887
+ ${ri}[data-type='user'] & {
888
+ background-color: ${e=>e.theme.colors.userMessageBackground};
889
+ color: ${e=>e.theme.colors.userMessageText};
890
+ }
891
+
892
+ /* Add subtle transition for edit mode */
893
+ transition: box-shadow 0.2s ease-in-out;
894
+
895
+ &[data-edit-mode='true'] {
896
+ box-shadow: 0 0 0 2px ${e=>e.theme.colors.primary};
897
+ }
898
+ `,T4=T.div`
899
+ font-weight: bold;
900
+ margin-bottom: 4px;
901
+ display: flex;
902
+ justify-content: space-between;
903
+ align-items: center;
904
+ `,R4=T.div`
905
+ word-wrap: break-word;
906
+ font-family: inherit;
907
+ margin: 0;
908
+
909
+ > *:first-child {
910
+ margin-top: 0;
911
+ }
912
+
913
+ > *:last-child {
914
+ margin-bottom: 0;
915
+ }
916
+
917
+ p {
918
+ margin: 8px 0;
919
+ }
920
+
921
+ ul,
922
+ ol {
923
+ padding-left: 20px;
924
+ margin: 8px 0;
925
+ }
926
+
927
+ li {
928
+ margin-bottom: 4px;
929
+ }
930
+
931
+ pre {
932
+ background-color: ${e=>e.theme.colors.codeBackground};
933
+ padding: 10px;
934
+ border-radius: 4px;
935
+ font-family: 'Courier New', Courier, monospace;
936
+ white-space: pre-wrap;
937
+ word-wrap: break-word;
938
+ margin: 8px 0;
939
+ }
940
+
941
+ code {
942
+ font-family: 'Courier New', Courier, monospace;
943
+ background-color: ${e=>e.theme.colors.codeBackground};
944
+ padding: 2px 4px;
945
+ border-radius: 3px;
946
+ font-size: 0.9em;
947
+ }
948
+
949
+ pre > code {
950
+ background-color: transparent;
951
+ padding: 0;
952
+ border-radius: 0;
953
+ font-size: inherit;
954
+ }
955
+
956
+ blockquote {
957
+ border-left: 4px solid ${e=>e.theme.colors.border};
958
+ padding-left: 10px;
959
+ margin: 8px 0;
960
+ color: ${e=>e.theme.colors.textSecondary};
961
+ }
962
+ `,I4=T.textarea`
963
+ width: 100%;
964
+ min-height: 100px;
965
+ padding: 8px;
966
+ border: none;
967
+ border-radius: 4px;
968
+ background-color: ${e=>e.theme.colors.background};
969
+ color: ${e=>e.theme.colors.text};
970
+ font-family: inherit;
971
+ font-size: inherit;
972
+ resize: vertical;
973
+ margin: 4px 0;
974
+ field-sizing: content;
975
+ box-sizing: border-box;
976
+
977
+ &:focus {
978
+ outline: none;
979
+ box-shadow: 0 0 0 1px ${e=>e.theme.colors.primary};
980
+ }
981
+
982
+ ${ri}[data-type='user'] & {
983
+ background-color: ${e=>e.theme.colors.userMessageBackground};
984
+ color: ${e=>e.theme.colors.userMessageText};
985
+ }
986
+ `,N4=T.div`
987
+ display: flex;
988
+ justify-content: space-between;
989
+ align-items: center;
990
+ margin-top: 4px;
991
+ gap: 8px;
992
+
993
+ > div {
994
+ display: flex;
995
+ align-items: center;
996
+ gap: 8px;
997
+ }
998
+ `,P4=T.div`
999
+ font-size: 0.8em;
1000
+ color: ${e=>e.theme.colors.textSecondary};
1001
+
1002
+ ${ri}[data-type='user'] & {
1003
+ color: ${e=>e.theme.colors.userMessageTimestamp};
1004
+ }
1005
+ `,$4=T.span`
1006
+ font-size: 0.8em;
1007
+ color: ${e=>e.theme.colors.primary};
1008
+ cursor: pointer;
1009
+ text-decoration: underline;
1010
+
1011
+ &:hover {
1012
+ color: ${e=>e.theme.colors.primaryHover};
1013
+ }
1014
+ `,A4=T.div`
1015
+ display: flex;
1016
+ gap: 8px;
1017
+ margin-top: 8px;
1018
+ `,kf=T.button`
1019
+ padding: 4px 8px;
1020
+ border: none;
1021
+ border-radius: 4px;
1022
+ cursor: pointer;
1023
+ font-size: 0.8em;
1024
+ transition: background-color 0.2s ease-in-out;
1025
+
1026
+ &:disabled {
1027
+ opacity: 0.5;
1028
+ cursor: not-allowed;
1029
+ }
1030
+ `,L4=T(kf)`
1031
+ background-color: transparent;
1032
+ color: ${e=>e.theme.colors.primary};
1033
+
1034
+ &:hover:not(:disabled) {
1035
+ background-color: ${e=>e.theme.colors.primaryHover}20;
1036
+ }
1037
+
1038
+ ${ri}[data-type='user'] & {
1039
+ color: ${e=>e.theme.colors.userMessageText};
1040
+ &:hover:not(:disabled) {
1041
+ background-color: ${e=>e.theme.colors.userMessageText}20;
1042
+ }
1043
+ }
1044
+ `,_4=T(kf)`
1045
+ background-color: ${e=>e.theme.colors.primary};
1046
+ color: ${e=>e.theme.colors.buttonText};
1047
+
1048
+ &:hover:not(:disabled) {
1049
+ background-color: ${e=>e.theme.colors.primaryHover};
1050
+ }
1051
+ `,z4=T(kf)`
1052
+ background-color: transparent;
1053
+ color: ${e=>e.theme.colors.error};
1054
+
1055
+ &:hover:not(:disabled) {
1056
+ background-color: ${e=>e.theme.colors.error}20;
1057
+ }
1058
+ `,D4=T.div`
1059
+ width: 16px;
1060
+ height: 16px;
1061
+ border: 2px solid ${e=>e.theme.colors.primary};
1062
+ border-top-color: transparent;
1063
+ border-radius: 50%;
1064
+ animation: spin 1s linear infinite;
1065
+ margin: 0 8px;
1066
+
1067
+ @keyframes spin {
1068
+ to {
1069
+ transform: rotate(360deg);
1070
+ }
1071
+ }
1072
+ `;T.span`
1073
+ font-size: 0.7em;
1074
+ color: ${e=>e.theme.colors.textSecondary};
1075
+ margin-left: 8px;
1076
+ font-style: italic;
1077
+ `;const O4=e=>e>=1e3?`Context size: ${(e/1e3).toFixed(1)}K tokens`:`Context size: ${e} tokens`,F4=e=>{var r;const t=e.filter(i=>{var l;return i.type===Er.ASSISTANT&&typeof((l=i.data)==null?void 0:l.contextSize)=="number"});if(t.length!==0)return(r=t[t.length-1].data)==null?void 0:r.contextSize},M4=e=>{const t=F4(e),r=t!==void 0?O4(t):"Context size N/A";return{contextSize:t,formattedSize:r}},B4=T.span`
1078
+ font-size: 12px;
1079
+ color: ${e=>e.theme.colors.textSecondary};
1080
+ white-space: nowrap;
1081
+ `,K0=({messages:e,className:t})=>{if(!e||e.length===0)return null;const{formattedSize:r}=M4(e);return y.jsx(B4,{className:t,children:r})},Q0=T.div`
1082
+ font-weight: bold;
1083
+ font-size: 0.9em;
1084
+ color: ${e=>e.theme.colors.text};
1085
+ `;T.div`
1086
+ font-size: 0.8em;
1087
+ color: ${e=>e.theme.colors.textSecondary};
1088
+ margin: 4px 0;
1089
+ `;T.div`
1090
+ font-size: 0.8em;
1091
+ color: ${e=>e.theme.colors.textSecondary};
1092
+ margin: 4px 0;
1093
+ `;T.div`
1094
+ display: inline-block;
1095
+ padding: 2px 4px;
1096
+ border-radius: 4px;
1097
+ font-size: 0.8em;
1098
+ font-weight: bold;
1099
+ color: ${e=>e.theme.colors.text};
1100
+ background-color: ${e=>e.variant==="updateFile"?e.theme.colors.primary:e.variant==="createFile"?e.theme.colors.success:(e.variant==="patchFile",e.theme.colors.warning)};
1101
+ `;T.div`
1102
+ display: flex;
1103
+ gap: 8px;
1104
+ `;T.button`
1105
+ padding: 4px 8px;
1106
+ border: 1px solid ${e=>e.theme.colors.border};
1107
+ border-radius: 4px;
1108
+ background-color: ${e=>e.theme.colors.background};
1109
+ cursor: pointer;
1110
+ font-size: 0.8em;
1111
+ color: ${e=>e.theme.colors.text};
1112
+
1113
+ &:hover {
1114
+ background-color: ${e=>e.theme.colors.backgroundHover};
1115
+ }
1116
+ `;T.div`
1117
+ margin: 16px 0;
1118
+ `;T.div`
1119
+ padding: 8px;
1120
+ border: 1px solid ${e=>e.theme.colors.border};
1121
+ border-radius: 4px;
1122
+ background-color: ${e=>e.theme.colors.background};
1123
+ font-size: 0.9em;
1124
+ line-height: 1.5;
1125
+
1126
+ > *:first-child {
1127
+ margin-top: 0;
1128
+ }
1129
+
1130
+ > *:last-child {
1131
+ margin-bottom: 0;
1132
+ }
1133
+
1134
+ p {
1135
+ margin: 8px 0;
1136
+ }
1137
+
1138
+ ul,
1139
+ ol {
1140
+ padding-left: 20px;
1141
+ margin: 8px 0;
1142
+ }
1143
+
1144
+ li {
1145
+ margin-bottom: 4px;
1146
+ }
1147
+
1148
+ pre {
1149
+ background-color: ${e=>e.theme.colors.codeBackground};
1150
+ padding: 10px;
1151
+ border-radius: 4px;
1152
+ font-family: 'Courier New', Courier, monospace;
1153
+ white-space: pre-wrap;
1154
+ word-wrap: break-word;
1155
+ margin: 8px 0;
1156
+ }
1157
+
1158
+ code {
1159
+ font-family: 'Courier New', Courier, monospace;
1160
+ background-color: ${e=>e.theme.colors.codeBackground};
1161
+ padding: 2px 4px;
1162
+ border-radius: 3px;
1163
+ font-size: 0.9em;
1164
+ }
1165
+
1166
+ pre > code {
1167
+ background-color: transparent;
1168
+ padding: 0;
1169
+ border-radius: 0;
1170
+ font-size: inherit;
1171
+ }
1172
+
1173
+ blockquote {
1174
+ border-left: 4px solid ${e=>e.theme.colors.border};
1175
+ padding-left: 10px;
1176
+ margin: 8px 0;
1177
+ color: ${e=>e.theme.colors.textSecondary};
1178
+ }
1179
+ `;T.div`
1180
+ margin: 16px 0;
1181
+ `;function Nr(){}Nr.prototype={diff:function(t,r){var i,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=l.callback;typeof l=="function"&&(a=l,l={}),this.options=l;var u=this;function d(D){return a?(setTimeout(function(){a(void 0,D)},0),!0):D}t=this.castInput(t),r=this.castInput(r),t=this.removeEmpty(this.tokenize(t)),r=this.removeEmpty(this.tokenize(r));var f=r.length,p=t.length,g=1,m=f+p;l.maxEditLength&&(m=Math.min(m,l.maxEditLength));var v=(i=l.timeout)!==null&&i!==void 0?i:1/0,w=Date.now()+v,k=[{oldPos:-1,lastComponent:void 0}],S=this.extractCommon(k[0],r,t,0);if(k[0].oldPos+1>=p&&S+1>=f)return d([{value:this.join(r),count:r.length}]);var j=-1/0,E=1/0;function P(){for(var D=Math.max(j,-g);D<=Math.min(E,g);D+=2){var W=void 0,A=k[D-1],H=k[D+1];A&&(k[D-1]=void 0);var K=!1;if(H){var le=H.oldPos-D;K=H&&0<=le&&le<f}var O=A&&A.oldPos+1<p;if(!K&&!O){k[D]=void 0;continue}if(!O||K&&A.oldPos+1<H.oldPos?W=u.addToPath(H,!0,void 0,0):W=u.addToPath(A,void 0,!0,1),S=u.extractCommon(W,r,t,D),W.oldPos+1>=p&&S+1>=f)return d(U4(u,W.lastComponent,r,t,u.useLongestToken));k[D]=W,W.oldPos+1>=p&&(E=Math.min(E,D-1)),S+1>=f&&(j=Math.max(j,D+1))}g++}if(a)(function D(){setTimeout(function(){if(g>m||Date.now()>w)return a();P()||D()},0)})();else for(;g<=m&&Date.now()<=w;){var $=P();if($)return $}},addToPath:function(t,r,i,l){var a=t.lastComponent;return a&&a.added===r&&a.removed===i?{oldPos:t.oldPos+l,lastComponent:{count:a.count+1,added:r,removed:i,previousComponent:a.previousComponent}}:{oldPos:t.oldPos+l,lastComponent:{count:1,added:r,removed:i,previousComponent:a}}},extractCommon:function(t,r,i,l){for(var a=r.length,u=i.length,d=t.oldPos,f=d-l,p=0;f+1<a&&d+1<u&&this.equals(r[f+1],i[d+1]);)f++,d++,p++;return p&&(t.lastComponent={count:p,previousComponent:t.lastComponent}),t.oldPos=d,f},equals:function(t,r){return this.options.comparator?this.options.comparator(t,r):t===r||this.options.ignoreCase&&t.toLowerCase()===r.toLowerCase()},removeEmpty:function(t){for(var r=[],i=0;i<t.length;i++)t[i]&&r.push(t[i]);return r},castInput:function(t){return t},tokenize:function(t){return t.split("")},join:function(t){return t.join("")}};function U4(e,t,r,i,l){for(var a=[],u;t;)a.push(t),u=t.previousComponent,delete t.previousComponent,t=u;a.reverse();for(var d=0,f=a.length,p=0,g=0;d<f;d++){var m=a[d];if(m.removed){if(m.value=e.join(i.slice(g,g+m.count)),g+=m.count,d&&a[d-1].added){var w=a[d-1];a[d-1]=a[d],a[d]=w}}else{if(!m.added&&l){var v=r.slice(p,p+m.count);v=v.map(function(S,j){var E=i[g+j];return E.length>S.length?E:S}),m.value=e.join(v)}else m.value=e.join(r.slice(p,p+m.count));p+=m.count,m.added||(g+=m.count)}}var k=a[f-1];return f>1&&typeof k.value=="string"&&(k.added||k.removed)&&e.equals("",k.value)&&(a[f-2].value+=k.value,a.pop()),a}var Vg=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Hg=/\S/,Y0=new Nr;Y0.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Hg.test(e)&&!Hg.test(t)};Y0.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),r=0;r<t.length-1;r++)!t[r+1]&&t[r+2]&&Vg.test(t[r])&&Vg.test(t[r+2])&&(t[r]+=t[r+2],t.splice(r+1,2),r--);return t};var bf=new Nr;bf.tokenize=function(e){this.options.stripTrailingCr&&(e=e.replace(/\r\n/g,`
1182
+ `));var t=[],r=e.split(/(\n|\r\n)/);r[r.length-1]||r.pop();for(var i=0;i<r.length;i++){var l=r[i];i%2&&!this.options.newlineIsToken?t[t.length-1]+=l:(this.options.ignoreWhitespace&&(l=l.trim()),t.push(l))}return t};function V4(e,t,r){return bf.diff(e,t,r)}var H4=new Nr;H4.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var W4=new Nr;W4.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function Ys(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ys=function(t){return typeof t}:Ys=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ys(e)}var q4=Object.prototype.toString,al=new Nr;al.useLongestToken=!0;al.tokenize=bf.tokenize;al.castInput=function(e){var t=this.options,r=t.undefinedReplacement,i=t.stringifyReplacer,l=i===void 0?function(a,u){return typeof u>"u"?r:u}:i;return typeof e=="string"?e:JSON.stringify(Td(e,null,null,l),l," ")};al.equals=function(e,t){return Nr.prototype.equals.call(al,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};function Td(e,t,r,i,l){t=t||[],r=r||[],i&&(e=i(l,e));var a;for(a=0;a<t.length;a+=1)if(t[a]===e)return r[a];var u;if(q4.call(e)==="[object Array]"){for(t.push(e),u=new Array(e.length),r.push(u),a=0;a<e.length;a+=1)u[a]=Td(e[a],t,r,i,l);return t.pop(),r.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),Ys(e)==="object"&&e!==null){t.push(e),u={},r.push(u);var d=[],f;for(f in e)e.hasOwnProperty(f)&&d.push(f);for(d.sort(),a=0;a<d.length;a+=1)f=d[a],u[f]=Td(e[f],t,r,i,f);t.pop(),r.pop()}else u=e;return u}var Rd=new Nr;Rd.tokenize=function(e){return e.slice()};Rd.join=Rd.removeEmpty=function(e){return e};const Yi=({content:e})=>{const[t,r]=N.useState(null),i=async()=>{try{await navigator.clipboard.writeText(e),r("success"),setTimeout(()=>r(null),2e3)}catch{r("error"),setTimeout(()=>r(null),2e3)}};return y.jsxs(X0,{onClick:i,status:t,children:[t===null&&y.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:[y.jsx("path",{d:"M4 4v8h8V4H4zm1 1h6v6H5V5z"}),y.jsx("path",{d:"M3 3v9h9V3H3zm1 1h7v7H4V4z"})]}),t==="success"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.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"})}),t==="error"&&y.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",children:y.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"})})]})},X0=T.button`
1183
+ padding: 4px;
1184
+ border: 1px solid ${e=>e.theme.colors.border};
1185
+ border-radius: 4px;
1186
+ background-color: ${e=>{switch(e.status){case"success":return e.theme.colors.diffAdded;case"error":return e.theme.colors.diffRemoved;default:return e.theme.colors.background}}};
1187
+ color: ${e=>{switch(e.status){case"success":return e.theme.colors.diffAddedText;case"error":return e.theme.colors.diffRemovedText;default:return e.theme.colors.text}}};
1188
+ cursor: pointer;
1189
+ transition: background-color 0.2s ease-in-out;
1190
+ display: flex;
1191
+ align-items: center;
1192
+ justify-content: center;
1193
+ width: 24px;
1194
+ height: 24px;
1195
+
1196
+ &:hover {
1197
+ background-color: ${e=>e.theme.colors.backgroundHover};
1198
+ }
1199
+
1200
+ svg {
1201
+ width: 16px;
1202
+ height: 16px;
1203
+ }
1204
+ `,G4=({oldContent:e,newContent:t})=>{const[r,i]=N.useState("unified"),l=V4(e??"",t),a=()=>y.jsxs(Q4,{children:[y.jsx(Yi,{content:t}),l.map((p,g)=>y.jsx(Gc,{added:p.added,removed:p.removed,children:p.value},g))]}),u=()=>y.jsxs(Y4,{children:[y.jsxs(Wg,{children:[e&&y.jsx(Yi,{content:e}),l.filter(p=>!p.added).map((p,g)=>y.jsx(Gc,{removed:p.removed,children:p.value},g))]}),y.jsxs(Wg,{children:[y.jsx(Yi,{content:t}),l.filter(p=>!p.removed).map((p,g)=>y.jsx(Gc,{added:p.added,children:p.value},g))]})]}),d=()=>y.jsxs(qg,{children:[e&&y.jsx(Yi,{content:e}),y.jsx(Gg,{children:e})]}),f=()=>y.jsxs(qg,{children:[y.jsx(Yi,{content:t}),y.jsx(Gg,{children:t})]});return y.jsxs(J4,{children:[y.jsxs(K4,{children:[y.jsx(Fs,{active:r==="unified",onClick:()=>i("unified"),children:"Unified"}),y.jsx(Fs,{active:r==="sideBySide",onClick:()=>i("sideBySide"),children:"Side by Side"}),y.jsx(Fs,{active:r==="old",onClick:()=>i("old"),children:"Old Content"}),y.jsx(Fs,{active:r==="new",onClick:()=>i("new"),children:"New Content"})]}),r==="unified"&&a(),r==="sideBySide"&&u(),r==="old"&&d(),r==="new"&&f()]})},J4=T.div`
1205
+ margin: 16px 0;
1206
+ position: relative;
1207
+
1208
+ ${X0} {
1209
+ position: absolute;
1210
+ right: 20px;
1211
+ }
1212
+ `,K4=T.div`
1213
+ display: flex;
1214
+ gap: 8px;
1215
+ margin-bottom: 16px;
1216
+ `,Fs=T.button`
1217
+ padding: 4px 8px;
1218
+ border: 1px solid ${e=>e.theme.colors.border};
1219
+ border-radius: 4px;
1220
+ background-color: ${e=>e.active?e.theme.colors.primary:e.theme.colors.background};
1221
+ color: ${e=>e.active?e.theme.colors.textOnPrimary:e.theme.colors.text};
1222
+ cursor: pointer;
1223
+ font-size: 0.8em;
1224
+
1225
+ &:hover {
1226
+ background-color: ${e=>e.theme.colors.primaryHover};
1227
+ }
1228
+ `,Q4=T.div`
1229
+ margin: 16px 0;
1230
+ padding: 8px;
1231
+ border: 1px solid ${e=>e.theme.colors.border};
1232
+ border-radius: 4px;
1233
+ background-color: ${e=>e.theme.colors.background};
1234
+ max-height: 400px;
1235
+ overflow-y: auto;
1236
+ `,Y4=T.div`
1237
+ display: grid;
1238
+ grid-template-columns: 1fr 1fr;
1239
+ gap: 16px;
1240
+ margin: 16px 0;
1241
+ `,Wg=T.div`
1242
+ position: relative;
1243
+ padding: 8px;
1244
+ border: 1px solid ${e=>e.theme.colors.border};
1245
+ border-radius: 4px;
1246
+ background-color: ${e=>e.theme.colors.background};
1247
+ max-height: 400px;
1248
+ overflow-y: auto;
1249
+ `,qg=T.div`
1250
+ margin: 16px 0;
1251
+ padding: 8px;
1252
+ border: 1px solid ${e=>e.theme.colors.border};
1253
+ border-radius: 4px;
1254
+ background-color: ${e=>e.theme.colors.background};
1255
+ max-height: 400px;
1256
+ overflow-y: auto;
1257
+ `,Gg=T.div`
1258
+ white-space: pre-wrap;
1259
+ font-family: monospace;
1260
+ font-size: 0.9em;
1261
+ line-height: 1.5;
1262
+ `,Gc=T.div`
1263
+ white-space: pre-wrap;
1264
+ font-family: monospace;
1265
+ font-size: 0.9em;
1266
+ line-height: 1.5;
1267
+ padding: 2px 4px;
1268
+ margin: 2px 0;
1269
+ background-color: ${e=>e.added?e.theme.colors.diffAdded:e.removed?e.theme.colors.diffRemoved:"transparent"};
1270
+ color: ${e=>e.added?e.theme.colors.diffAddedText:e.removed?e.theme.colors.diffRemovedText:e.theme.colors.text};
1271
+ `,Sf=T.div`
1272
+ display: flex;
1273
+ flex-direction: column;
1274
+ gap: 12px;
1275
+ width: 100%;
1276
+ margin-top: 8px;
1277
+ font-size: 0.95em;
1278
+ `,Yr=T.div`
1279
+ border: 1px solid ${e=>e.theme.colors.border};
1280
+ border-radius: 6px;
1281
+ overflow: hidden;
1282
+ background: ${e=>e.theme.colors.backgroundSecondary}11;
1283
+ transition: all 0.2s ease;
1284
+
1285
+ &:hover {
1286
+ border-color: ${e=>e.theme.colors.primary}66;
1287
+ }
1288
+ `,Xr=T.div`
1289
+ padding: 10px 12px;
1290
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1291
+ cursor: pointer;
1292
+ user-select: none;
1293
+ transition: background-color 0.2s ease;
1294
+
1295
+ &:hover {
1296
+ background: ${e=>e.theme.colors.backgroundSecondary}44;
1297
+ }
1298
+ `,Zr=T.div`
1299
+ padding: 12px;
1300
+ border-top: 1px solid ${e=>e.theme.colors.border};
1301
+ animation: slideDown 0.2s ease;
1302
+ color: ${e=>e.theme.colors.textSecondary};
1303
+ font-size: 0.95em;
1304
+
1305
+ > *:first-child {
1306
+ margin-top: 0;
1307
+ }
1308
+
1309
+ > *:last-child {
1310
+ margin-bottom: 0;
1311
+ }
1312
+
1313
+ p {
1314
+ margin: 8px 0;
1315
+ }
1316
+
1317
+ ul,
1318
+ ol {
1319
+ padding-left: 20px;
1320
+ margin: 8px 0;
1321
+ }
1322
+
1323
+ li {
1324
+ margin-bottom: 4px;
1325
+ }
1326
+
1327
+ pre {
1328
+ background-color: ${e=>e.theme.colors.codeBackground};
1329
+ padding: 10px;
1330
+ border-radius: 4px;
1331
+ font-family: 'Courier New', Courier, monospace;
1332
+ white-space: pre-wrap;
1333
+ word-wrap: break-word;
1334
+ margin: 8px 0;
1335
+ }
1336
+
1337
+ code {
1338
+ font-family: 'Courier New', Courier, monospace;
1339
+ background-color: ${e=>e.theme.colors.codeBackground};
1340
+ padding: 2px 4px;
1341
+ border-radius: 3px;
1342
+ font-size: 0.9em;
1343
+ }
1344
+
1345
+ pre > code {
1346
+ background-color: transparent;
1347
+ padding: 0;
1348
+ border-radius: 0;
1349
+ font-size: inherit;
1350
+ }
1351
+
1352
+ blockquote {
1353
+ border-left: 4px solid ${e=>e.theme.colors.border};
1354
+ padding-left: 10px;
1355
+ margin: 8px 0;
1356
+ color: ${e=>e.theme.colors.textSecondary};
1357
+ }
1358
+
1359
+ @keyframes slideDown {
1360
+ from {
1361
+ opacity: 0;
1362
+ transform: translateY(-10px);
1363
+ }
1364
+ to {
1365
+ opacity: 1;
1366
+ transform: translateY(0);
1367
+ }
1368
+ }
1369
+ `,Fo=T.div`
1370
+ display: flex;
1371
+ align-items: center;
1372
+ gap: 8px;
1373
+ color: ${e=>e.theme.colors.primary};
1374
+ font-weight: 500;
1375
+
1376
+ ${e=>e.expanded&&St`
1377
+ margin-bottom: -1px;
1378
+ `}
1379
+ `,Mo=T.span`
1380
+ display: inline-block;
1381
+ width: 16px;
1382
+ height: 16px;
1383
+ line-height: 16px;
1384
+ text-align: center;
1385
+ font-size: 0.8em;
1386
+ transition: transform 0.2s ease;
1387
+ `,ca=T.div`
1388
+ display: flex;
1389
+ flex-direction: column;
1390
+ gap: 12px;
1391
+ `,da=T.div`
1392
+ padding: 10px;
1393
+ border-radius: 4px;
1394
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1395
+ border: 1px solid ${e=>e.theme.colors.border};
1396
+
1397
+ &:hover {
1398
+ border-color: ${e=>e.theme.colors.primary}66;
1399
+ }
1400
+ `,X4=T.div`
1401
+ color: ${e=>e.theme.colors.textSecondary};
1402
+ font-size: 0.95em;
1403
+ font-weight: 500;
1404
+ margin-bottom: 6px;
1405
+ margin-top: 8px;
1406
+ `,Id=T.div`
1407
+ font-family: monospace;
1408
+ padding: 4px 8px;
1409
+ padding-left: 0px;
1410
+ background: ${e=>e.theme.colors.codeBackground};
1411
+ border-radius: 3px;
1412
+ color: ${e=>e.theme.colors.codeText};
1413
+ word-break: break-all;
1414
+ `,Z4=T.div`
1415
+ margin-top: 8px;
1416
+ color: ${e=>e.theme.colors.textSecondary};
1417
+ font-size: 0.95em;
1418
+ line-height: 1.4;
1419
+
1420
+ > *:first-child {
1421
+ margin-top: 0;
1422
+ }
1423
+
1424
+ > *:last-child {
1425
+ margin-bottom: 0;
1426
+ }
1427
+
1428
+ p {
1429
+ margin: 8px 0;
1430
+ }
1431
+
1432
+ ul,
1433
+ ol {
1434
+ padding-left: 20px;
1435
+ margin: 8px 0;
1436
+ }
1437
+
1438
+ li {
1439
+ margin-bottom: 4px;
1440
+ }
1441
+
1442
+ pre {
1443
+ background-color: ${e=>e.theme.colors.codeBackground};
1444
+ padding: 10px;
1445
+ border-radius: 4px;
1446
+ font-family: 'Courier New', Courier, monospace;
1447
+ white-space: pre-wrap;
1448
+ word-wrap: break-word;
1449
+ margin: 8px 0;
1450
+ }
1451
+
1452
+ code {
1453
+ font-family: 'Courier New', Courier, monospace;
1454
+ background-color: ${e=>e.theme.colors.codeBackground};
1455
+ padding: 2px 4px;
1456
+ border-radius: 3px;
1457
+ font-size: 0.9em;
1458
+ }
1459
+
1460
+ pre > code {
1461
+ background-color: transparent;
1462
+ padding: 0;
1463
+ border-radius: 0;
1464
+ font-size: inherit;
1465
+ }
1466
+
1467
+ blockquote {
1468
+ border-left: 4px solid ${e=>e.theme.colors.border};
1469
+ padding-left: 10px;
1470
+ margin: 8px 0;
1471
+ color: ${e=>e.theme.colors.textSecondary};
1472
+ }
1473
+ `,e$=T.div`
1474
+ font-size: 0.9em;
1475
+ color: ${e=>e.theme.colors.textSecondary};
1476
+ `,t$=T.div`
1477
+ margin-top: 4px;
1478
+ font-family: monospace;
1479
+ color: ${e=>e.theme.colors.info};
1480
+ `,Nd=T.div`
1481
+ display: inline-block;
1482
+ margin-left: 8px;
1483
+ padding: 2px 6px;
1484
+ border-radius: 3px;
1485
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1486
+ border: 1px solid ${e=>e.theme.colors.border};
1487
+ color: ${e=>e.theme.colors.textSecondary};
1488
+ font-size: 0.85em;
1489
+ cursor: pointer;
1490
+ transition: all 0.2s ease;
1491
+
1492
+ &:hover {
1493
+ background: ${e=>e.theme.colors.backgroundSecondary}44;
1494
+ border-color: ${e=>e.theme.colors.primary}66;
1495
+ }
1496
+ `,Z0=T.div`
1497
+ margin-top: 8px;
1498
+ padding: 8px;
1499
+ border-radius: 4px;
1500
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1501
+ border: 1px solid ${e=>e.theme.colors.border};
1502
+ animation: slideDown 0.2s ease;
1503
+ `;T.pre`
1504
+ margin: 0;
1505
+ padding: 12px;
1506
+ background: ${e=>e.theme.colors.codeBackground};
1507
+ border-radius: 4px;
1508
+ color: ${e=>e.theme.colors.codeText};
1509
+ font-family: monospace;
1510
+ font-size: 0.9em;
1511
+ line-height: 1.4;
1512
+ overflow-x: auto;
1513
+ white-space: pre-wrap;
1514
+ word-wrap: break-word;
1515
+ `;const n$=(e,t)=>{switch(e){case"createFile":return St`
1516
+ background: ${t.colors.info}22;
1517
+ color: ${t.colors.info};
1518
+ border-color: ${t.colors.info}44;
1519
+ `;case"updateFile":return St`
1520
+ background: ${t.colors.primary}22;
1521
+ color: ${t.colors.primary};
1522
+ border-color: ${t.colors.primary}44;
1523
+ `;case"deleteFile":return St`
1524
+ background: ${t.colors.error}22;
1525
+ color: ${t.colors.error};
1526
+ border-color: ${t.colors.error}44;
1527
+ `;case"moveFile":return St`
1528
+ background: ${t.colors.warning}22;
1529
+ color: ${t.colors.warning};
1530
+ border-color: ${t.colors.warning}44;
1531
+ `;case"temperature":return St`
1532
+ background: ${t.colors.success}22;
1533
+ color: ${t.colors.success};
1534
+ border-color: ${t.colors.success}44;
1535
+ margin-left: auto;
1536
+ `;case"cheap":return St`
1537
+ background: ${t.colors.secondary}22;
1538
+ color: ${t.colors.secondary};
1539
+ border-color: ${t.colors.secondary}44;
1540
+ `;default:return St`
1541
+ background: ${t.colors.secondary}22;
1542
+ color: ${t.colors.secondary};
1543
+ border-color: ${t.colors.secondary}44;
1544
+ `}},rl=T.div`
1545
+ display: inline-block;
1546
+ padding: 2px 8px;
1547
+ border-radius: 3px;
1548
+ font-size: 0.85em;
1549
+ font-weight: 500;
1550
+ margin-bottom: 6px;
1551
+ border: 1px solid;
1552
+ ${e=>n$(e.variant,e.theme)}
1553
+ `;T.div`
1554
+ margin-top: 8px;
1555
+ font-size: 0.9em;
1556
+ color: ${e=>e.theme.colors.textSecondary};
1557
+ `;const e1=T.div`
1558
+ display: flex;
1559
+ gap: 8px;
1560
+ align-items: center;
1561
+ flex-wrap: wrap;
1562
+ `,r$=({data:{fileUpdates:e}})=>y.jsx("div",{children:e.map((t,r)=>y.jsx(Cf,{data:{name:t.name,args:t.args}},r))}),Cf=({data:{name:e,args:{filePath:t,explanation:r,oldContent:i,newContent:l}}})=>{const[a,u]=N.useState(!0),[d,f]=N.useState(!1);return y.jsxs(i$,{children:[y.jsxs(l$,{children:[y.jsx(rl,{variant:e,children:e}),y.jsx(Q0,{children:t}),y.jsxs(s$,{children:[y.jsx(Kg,{onClick:()=>u(!a),children:a?"Hide Explanation":"Explanation"}),(i||l)&&y.jsx(Kg,{onClick:()=>f(!d),children:d?"Hide Diff":"Show Diff"})]})]}),a&&r&&y.jsx(a$,{children:y.jsx(ro,{remarkPlugins:[oo],children:r})}),d&&y.jsx(u$,{children:y.jsx(G4,{oldContent:i,newContent:l})})]})},o$=["updateFile","createFile","patchFile","createDirectory","deleteFile","moveFile","downloadFile","splitImage","resizeImage","imglyRemoveBackground"];function fa(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.name!="string"||!o$.includes(t.name)?!1:typeof t.args.filePath=="string"}function Jg(e){if(typeof e!="object"||e===null)return!1;const t=e;return Array.isArray(t.fileUpdates)&&t.fileUpdates.every(fa)}const i$=T.div`
1563
+ margin: 16px 0;
1564
+ padding: 16px;
1565
+ border: 1px solid ${e=>e.theme.colors.border};
1566
+ border-radius: 8px;
1567
+ background-color: ${e=>e.theme.colors.background};
1568
+ `,l$=T.div`
1569
+ display: flex;
1570
+ gap: 8px;
1571
+ align-items: center;
1572
+ `,s$=T.div`
1573
+ display: flex;
1574
+ gap: 8px;
1575
+ margin-left: auto;
1576
+ `,Kg=T.button`
1577
+ padding: 4px 8px;
1578
+ border: 1px solid ${e=>e.theme.colors.border};
1579
+ border-radius: 4px;
1580
+ background-color: ${e=>e.theme.colors.background};
1581
+ cursor: pointer;
1582
+ font-size: 0.8em;
1583
+ color: ${e=>e.theme.colors.text};
1584
+
1585
+ &:hover {
1586
+ background-color: ${e=>e.theme.colors.backgroundHover};
1587
+ }
1588
+ `,a$=T.div`
1589
+ margin-top: 8px;
1590
+ padding: 8px;
1591
+ border: 1px solid ${e=>e.theme.colors.border};
1592
+ border-radius: 4px;
1593
+ background-color: ${e=>e.theme.colors.background};
1594
+ font-size: 0.9em;
1595
+ line-height: 1.5;
1596
+ `,u$=T.div`
1597
+ margin: 16px 0;
1598
+ `,c$=T.div`
1599
+ display: grid;
1600
+ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
1601
+ gap: 8px;
1602
+ max-width: 800px;
1603
+ margin: 8px 0;
1604
+ `,d$=T.div`
1605
+ position: relative;
1606
+ width: 100%;
1607
+ padding-bottom: 100%; /* Creates a square aspect ratio */
1608
+ `,f$=T.img`
1609
+ position: absolute;
1610
+ top: 0;
1611
+ left: 0;
1612
+ width: 100%;
1613
+ height: 100%;
1614
+ object-fit: contain;
1615
+ border-radius: 4px;
1616
+ background-color: rgba(0, 0, 0, 0.05);
1617
+ `,p$=({message:e,visibleDataIds:t,toggleDataVisibility:r})=>{var P;const[i,l]=N.useState(!1),[a,u]=N.useState(e.content),[d,f]=N.useState(!1),[p,g]=N.useState(null),m=N.useRef(null);N.useEffect(()=>{i&&m.current&&(m.current.focus(),m.current.selectionStart=m.current.value.length,m.current.selectionEnd=m.current.value.length)},[i]);const v=()=>{u(e.content),l(!0),g(null)},w=()=>{l(!1),u(e.content),g(null)},k=$=>$.trim()?$===e.content?(g("No changes made to the message"),!1):!0:(g("Message content cannot be empty"),!1),S=async()=>{if(k(a)){f(!0),g(null);try{await QS(e.id,a),l(!1)}catch($){g($ instanceof Error?$.message:"Failed to save changes")}finally{f(!1)}}},j=$=>{$.key==="Enter"&&$.ctrlKey?S():$.key==="Escape"&&w()},E=e.type!=="system"&&((P=e.flags)==null?void 0:P.includes(Wd.MESSAGE_EDITABLE));return y.jsx(ri,{"data-type":e.type,children:y.jsxs(J0,{"data-edit-mode":i,children:[y.jsxs(T4,{children:[y.jsx("div",{children:e.type==="user"?"You":"Assistant"}),E&&!i&&y.jsx(L4,{onClick:v,title:"Edit message",children:"✎"})]}),i?y.jsxs(y.Fragment,{children:[y.jsx(I4,{ref:m,value:a,onChange:$=>u($.target.value),onKeyDown:j,placeholder:"Enter your message..."}),p&&y.jsx("div",{style:{color:"red",fontSize:"0.8em",marginTop:"4px"},children:p}),y.jsxs(A4,{children:[y.jsx(_4,{onClick:S,disabled:d,children:d?y.jsx(D4,{}):"Save"}),y.jsx(z4,{onClick:w,disabled:d,children:"Cancel"})]})]}):y.jsx(R4,{children:y.jsx(ro,{remarkPlugins:[oo],children:e.content})}),e.images&&e.images.length>0&&y.jsx(c$,{children:e.images.map(($,D)=>y.jsx(d$,{children:y.jsx(f$,{src:`data:${$.mediaType};base64,${$.base64url}`,alt:$.originalName||`Image ${D+1}`,title:$.originalName||`Image ${D+1}`})},D))}),y.jsxs(N4,{children:[y.jsx("div",{children:e.data?y.jsx($4,{onClick:()=>r(e.id),children:t.has(e.id)?"Hide data":"Show data"}):null}),y.jsxs("div",{children:[e.timestamp&&e.type==="assistant"&&e.data&&"contextSize"in e.data&&y.jsx(K0,{messages:[e]}),y.jsx(P4,{children:e.timestamp.toLocaleString()})]})]}),t.has(e.id)&&e.data?y.jsx(y.Fragment,{children:fa(e.data)?y.jsx(Cf,{data:e.data}):y.jsx(Vv,{data:e.data})}):null]})})},Qg=T.div`
1618
+ background-color: ${e=>e.theme.colors.systemMessageBackground};
1619
+ color: ${e=>e.theme.colors.systemMessageText};
1620
+ border: 1px solid ${e=>e.theme.colors.systemMessageBorder};
1621
+ border-radius: 8px;
1622
+ padding: 8px 12px;
1623
+ margin: 8px 0;
1624
+ font-style: italic;
1625
+ font-size: 0.9em;
1626
+ opacity: 0.8;
1627
+ transition: margin 0.2s ease-in-out;
1628
+
1629
+ /* Increase bottom margin when followed by a codegen view */
1630
+ & + div {\n margin-top: 16px;
1631
+ }\n
1632
+ ${e=>e.isExecutionEnd&&`
1633
+ border-bottom: 3px solid ${e.theme.colors.primary};
1634
+ `}\n`,Yg=T.div`
1635
+ cursor: pointer;
1636
+ font-weight: bold;
1637
+ margin-bottom: 8px;
1638
+ display: flex;
1639
+ align-items: center;
1640
+ gap: 4px;
1641
+
1642
+ &:hover {\n opacity: 0.8;
1643
+ }\n`,h$=T.div`
1644
+ white-space: pre-wrap;
1645
+ word-wrap: break-word;
1646
+ font-family: inherit;
1647
+ margin: 0;
1648
+
1649
+ /* Add spacing between content sections */
1650
+ & > *:not(:last-child) {\n margin-bottom: 12px;
1651
+ }\n`,m$=T.div`
1652
+ margin-bottom: 8px;
1653
+ position: relative;
1654
+ padding-right: 150px; /* Space for timestamp and data link */
1655
+
1656
+ &:last-child {\n margin-bottom: 0;
1657
+ }\n`,g$=T.div`
1658
+ font-size: 0.8em;
1659
+ color: ${e=>e.theme.colors.systemMessageTimestamp};
1660
+ position: absolute;
1661
+ right: 60px;
1662
+ top: 0;
1663
+ `,y$=T.span`
1664
+ font-size: 0.8em;
1665
+ color: ${e=>e.theme.colors.primary};
1666
+ cursor: pointer;
1667
+ text-decoration: underline;
1668
+ position: absolute;
1669
+ right: 0;
1670
+ top: 0;
1671
+
1672
+ &:hover {\n color: ${e=>e.theme.colors.primaryHover};\n }\n`,x$=({data:e})=>{const[t,r]=N.useState({analysis:!0,changes:!0,files:!0}),[i,l]=N.useState({}),a=d=>{r(f=>({...f,[d]:!f[d]}))},u=d=>{l(f=>({...f,[d]:!f[d]}))};return y.jsxs(Sf,{children:[y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>a("analysis"),children:y.jsxs(Fo,{expanded:t.analysis,children:[y.jsx(Mo,{children:t.analysis?"▼":"▶"}),"Problem Analysis"]})}),t.analysis&&y.jsx(Zr,{children:y.jsx(ro,{remarkPlugins:[oo],children:e.args.problemAnalysis})})]}),y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>a("changes"),children:y.jsxs(Fo,{expanded:t.changes,children:[y.jsx(Mo,{children:t.changes?"▼":"▶"}),"Implementation Plan"]})}),t.changes&&y.jsx(Zr,{children:y.jsx(ro,{remarkPlugins:[oo],children:e.args.codeChanges})})]}),y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>a("files"),children:y.jsxs(Fo,{expanded:t.files,children:[y.jsx(Mo,{children:t.files?"▼":"▶"}),"Affected Files"]})}),t.files&&y.jsx(Zr,{children:y.jsx(ca,{children:e.args.affectedFiles.map((d,f)=>y.jsxs(da,{children:[y.jsxs(Id,{children:[d.filePath,d.dependencies&&d.dependencies.length>0&&y.jsxs(Nd,{onClick:()=>u(d.filePath),title:"Dependencies",children:["(",d.dependencies.length,")"]})]}),d.dependencies&&d.dependencies.length>0&&i[d.filePath]&&y.jsx(Z0,{children:y.jsxs(e$,{children:["Dependencies:",d.dependencies.map((p,g)=>y.jsx(t$,{children:p},g))]})}),y.jsx(X4,{children:d.reason})]},f))})})]})]})};function Xg(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const r=t.args;return typeof r.problemAnalysis=="string"&&typeof r.codeChanges=="string"&&Array.isArray(r.affectedFiles)&&r.affectedFiles.every(i=>typeof i=="object"&&i!==null&&typeof i.reason=="string"&&typeof i.filePath=="string")}const v$=({data:e})=>{const[t,r]=N.useState({explanation:!0,updates:!0,context:!1}),i=l=>{r(a=>({...a,[l]:!a[l]}))};return y.jsxs(Sf,{children:[y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>i("explanation"),children:y.jsxs(Fo,{expanded:t.explanation,children:[y.jsx(Mo,{children:t.explanation?"▼":"▶"}),"Explanation"]})}),t.explanation&&y.jsx(Zr,{children:y.jsx(ro,{remarkPlugins:[oo],children:e.args.explanation})})]}),y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>i("updates"),children:y.jsxs(Fo,{expanded:t.updates,children:[y.jsx(Mo,{children:t.updates?"▼":"▶"}),"File Updates (",e.args.fileUpdates.length,")"]})}),t.updates&&y.jsx(Zr,{children:y.jsx(ca,{children:e.args.fileUpdates.map((l,a)=>{var u;return y.jsxs(da,{id:"file-update-"+l.id,children:[y.jsxs(e1,{children:[y.jsx(rl,{variant:l.updateToolName,children:l.updateToolName}),y.jsx(Id,{children:l.filePath}),y.jsx(Nd,{onClick:()=>i(l.id),children:l.id}),l.temperature&&y.jsx(rl,{variant:"temperature",title:"Temperature",children:l.temperature}),l.cheap&&y.jsx(rl,{variant:"cheap",title:"Use cheaper model",children:"Cheap"})]}),l.dependsOn&&t[l.id]&&y.jsxs(Z0,{children:["Depends on:"," ",(u=l.dependsOn)==null?void 0:u.map(d=>y.jsx(Nd,{onClick:()=>{var f;return(f=document.getElementById("file-update-"+d))==null?void 0:f.scrollIntoView()},children:d},d))]}),y.jsx(Z4,{title:"Prompt",children:y.jsx(ro,{remarkPlugins:[oo],children:l.prompt})})]},a)})})})]}),y.jsxs(Yr,{children:[y.jsx(Xr,{onClick:()=>i("context"),children:y.jsxs(Fo,{expanded:t.context,children:[y.jsx(Mo,{children:t.context?"▼":"▶"}),"Context Paths (",e.args.contextPaths.length,")"]})}),t.context&&y.jsx(Zr,{children:y.jsx(ca,{children:e.args.contextPaths.map((l,a)=>y.jsx(da,{children:y.jsx(Id,{children:l})},a))})})]})]})};function Zg(e){if(typeof e!="object"||e===null)return!1;const t=e;if(!t.args||typeof t.args!="object"||t.args===null)return!1;const r=t.args;return typeof r.explanation=="string"&&Array.isArray(r.fileUpdates)&&Array.isArray(r.contextPaths)&&r.fileUpdates.every(i=>typeof i=="object"&&i!==null&&typeof i.prompt=="string"&&typeof i.filePath=="string"&&typeof i.updateToolName=="string")}const w$=T(rl)``;T.div`
1673
+ margin-top: 8px;
1674
+ padding: 12px;
1675
+ border-radius: 4px;
1676
+ background: ${e=>e.theme.colors.backgroundSecondary}22;
1677
+ border: 1px solid ${e=>e.theme.colors.border};
1678
+ animation: slideDown 0.2s ease;
1679
+
1680
+ pre {
1681
+ margin: 0;
1682
+ padding: 0;
1683
+ background: transparent;
1684
+ font-family: 'Courier New', Courier, monospace;
1685
+ font-size: 0.9em;
1686
+ white-space: pre-wrap;
1687
+ word-wrap: break-word;
1688
+ color: ${e=>e.theme.colors.textSecondary};
1689
+ }
1690
+
1691
+ @keyframes slideDown {
1692
+ from {
1693
+ opacity: 0;
1694
+ transform: translateY(-10px);
1695
+ }
1696
+ to {
1697
+ opacity: 1;
1698
+ transform: translateY(0);
1699
+ }
1700
+ }
1701
+ `;function ey(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.summary=="string"&&Array.isArray(t.actions)&&t.actions.every(r=>typeof r=="object"&&r!==null&&typeof r.name=="string"&&typeof r.filePath=="string")}const k$=({data:e})=>y.jsx(Sf,{children:y.jsxs(Yr,{children:[y.jsxs(Xr,{children:["Inferred Actions (",e.actions.length,")"]}),y.jsxs(Zr,{children:[e.summary&&y.jsx(ro,{remarkPlugins:[oo],children:e.summary}),y.jsx(ca,{children:e.actions.map((t,r)=>y.jsx(da,{children:y.jsxs(e1,{children:[y.jsx(w$,{variant:t.name,children:t.name}),y.jsx(Q0,{children:t.filePath})]})},r))})]})]})}),b$=({message:e,collapsedExecutions:t,toggleExecutionCollapse:r,visibleDataIds:i,toggleDataVisibility:l})=>t.has(e.id)?y.jsx(Qg,{isExecutionEnd:e.isExecutionEnd,children:y.jsxs(Yg,{onClick:()=>r(e.id),children:["▶ Execution ",e.id.split("_")[1]]})}):S$(e.parts).map((u,d)=>u.parts.length>0?y.jsxs(Qg,{isExecutionEnd:e.isExecutionEnd,children:[y.jsxs(Yg,{onClick:()=>r(e.id),children:["▼ Execution ",e.id.split("_")[1]]}),y.jsx(h$,{children:u.parts.map(f=>y.jsxs(m$,{children:[f.content,y.jsx(g$,{children:f.timestamp.toLocaleString()}),f.data?y.jsx(y$,{onClick:()=>l(f.id),children:i.has(f.id)?"Hide data":"Show data"}):null,i.has(f.id)&&f.data?y.jsx(Vv,{data:f.data}):null]},f.id))})]},`section-${d}`):u.codegenView?y.jsx(Pt.Fragment,{children:u.codegenView},`view-${d}`):null);function S$(e){const t=[];let r=[];return t.push({parts:r}),e.forEach(i=>{if(r.push(i),Xg(i.data)||Zg(i.data)||fa(i.data)||Jg(i.data)||ey(i.data)){const l=Xg(i.data)?y.jsx(x$,{data:i.data},`planning-${i.id}`):Zg(i.data)?y.jsx(v$,{data:i.data},`summary-${i.id}`):fa(i.data)?y.jsx(Cf,{data:i.data},`file-update-${i.id}`):Jg(i.data)?y.jsx(r$,{data:i.data}):ey(i.data)?y.jsx(k$,{data:i.data}):null;t.push({parts:[],codegenView:l}),r=[],t.push({parts:r})}}),t}const C$=T.div`
1702
+ display: flex;
1703
+ flex-direction: column;
1704
+ height: 100%;
1705
+ background-color: ${e=>e.theme.colors.background};
1706
+ position: relative;
1707
+ overflow: hidden;
1708
+ `,E$=T.div`
1709
+ display: flex;
1710
+ flex-direction: column;
1711
+ gap: 16px;
1712
+ padding: 16px;
1713
+ overflow-y: auto;
1714
+ flex-grow: 1;
1715
+ max-height: calc(100% - 60px); // Adjust this value based on the height of your UnreadMessagesNotification
1716
+ margin-bottom: 60px; // This should match the height of UnreadMessagesNotification plus its bottom margin
1717
+ `,j$=T.div`
1718
+ display: flex;
1719
+ flex-direction: column;
1720
+ gap: 8px;
1721
+ border: 1px solid ${e=>e.theme.colors.border};
1722
+ border-radius: 8px;
1723
+ margin-bottom: 24px;
1724
+ `,T$=T.div`
1725
+ font-size: 16px;
1726
+ font-weight: bold;
1727
+ color: ${e=>e.theme.colors.text};
1728
+ background-color: ${e=>e.theme.colors.backgroundSecondary};
1729
+ padding: 12px 16px;
1730
+ border-bottom: 1px solid ${e=>e.theme.colors.border};
1731
+ border-top-left-radius: 8px;
1732
+ border-top-right-radius: 8px;
1733
+ display: flex;
1734
+ justify-content: space-between;
1735
+ align-items: center;
1736
+ cursor: pointer;
1737
+ position: sticky;
1738
+ top: -22px;
1739
+ z-index: 10;
1740
+
1741
+ /* Wrap title in a div to control its layout */
1742
+ > .title-wrapper {
1743
+ display: flex;
1744
+ align-items: start;
1745
+ flex-grow: 1;
1746
+ overflow: hidden; /* Ensure long text doesn't overflow */
1747
+ }
1748
+
1749
+ > .title {
1750
+ display: flex;
1751
+ align-items: start;
1752
+ white-space: nowrap; /* Prevent text wrapping */
1753
+ overflow: hidden; /* Hide overflowing text */
1754
+ text-overflow: ellipsis; /* Add ellipsis for overflow */
1755
+ }
1756
+
1757
+ /* Wrap meta in a div for consistent layout */
1758
+ > .meta-wrapper {
1759
+ display: flex;
1760
+ align-items: center; /* Align meta content vertically */
1761
+ flex-shrink: 0; /* Prevent meta from shrinking */
1762
+ margin-left: auto; /* Push meta to the right */
1763
+ }
1764
+
1765
+ > .meta {
1766
+ font-size: 12px;
1767
+ font-weight: normal;
1768
+ color: ${e=>e.theme.colors.textSecondary};
1769
+ display: flex;
1770
+ flex-direction: row;
1771
+ align-items: center;
1772
+ gap: 10px;
1773
+ white-space: nowrap;
1774
+ overflow: visible;
1775
+ text-overflow: ellipsis;
1776
+ }
1777
+ `,R$=T.button`
1778
+ display: flex;
1779
+ justify-content: center;
1780
+ align-items: center;
1781
+ background-color: transparent;
1782
+ border: none;
1783
+ color: ${e=>e.theme.colors.textSecondary};
1784
+ cursor: pointer;
1785
+ font-size: 16px;
1786
+ padding: 4px 8px;
1787
+ border-radius: 4px;
1788
+ margin-left: 8px;
1789
+ z-index: 11;
1790
+ position: relative;
1791
+ min-width: 24px;
1792
+ flex-shrink: 0; /* Prevent the button from shrinking */
1793
+
1794
+ &:hover {
1795
+ background-color: ${e=>e.theme.colors.backgroundSecondary};
1796
+ color: ${e=>e.theme.colors.error};
1797
+ }
1798
+ `,I$=T.div`
1799
+ display: ${e=>e.isCollapsed?"none":"flex"};
1800
+ flex-direction: column;
1801
+ gap: 8px;
1802
+ padding: 16px;
1803
+ `,N$=T.p`
1804
+ font-size: 14px;
1805
+ color: ${e=>e.theme.colors.textSecondary};
1806
+ background-color: ${e=>e.theme.colors.backgroundTertiary};
1807
+ padding: 8px;
1808
+ border-radius: 4px;
1809
+ margin: 0 0 16px 0;
1810
+ `;T.div`
1811
+ margin-bottom: 16px;
1812
+
1813
+ &:last-child {
1814
+ margin-bottom: 0;
1815
+ }
1816
+ `;const P$=T.span`
1817
+ &:before {
1818
+ content: '▼';
1819
+ margin-right: 8px;
1820
+ }
1821
+ `,$$=T.span`
1822
+ &:before {
1823
+ content: '▶';
1824
+ margin-right: 8px;
1825
+ }
1826
+ `;T.span`
1827
+ color: ${e=>e.theme.colors.primary};
1828
+ cursor: pointer;
1829
+ margin-right: 8px;
1830
+
1831
+ &:hover {
1832
+ text-decoration: underline;
1833
+ }
1834
+ `;const A$=T.div`
1835
+ // TODO
1836
+ `;function L$(e){return N.useMemo(()=>{const t=[];let r=null,i=null,l=0;return e.sort((a,u)=>a.iterationId<u.iterationId?-1:1).forEach((a,u)=>{var d;(!r||a.iterationId!==r.iterationId)&&(r&&(r.timestampEnd=new Date(a.timestamp),t.push(r)),r={iterationId:a.iterationId,timestampStart:new Date(a.timestamp),timestampEnd:new Date(a.timestamp),conversationSummaries:[],messages:[]}),(d=a.flags)!=null&&d.includes(Wd.CONVERSATION_SUMMARY)&&a.data&&(r.conversationSummaries.push(a.data),r.iterationTitle=a.data),a.type===Er.SYSTEM?i?i.parts.push(a):(l++,i={...a,type:Er.SYSTEM,parts:[a],id:`execution_${l}`,isExecutionEnd:u===e.length-1||e[u+1].type!==Er.SYSTEM},r.messages.push(i)):(i&&(i.isExecutionEnd=!0),i=null,r.messages.push(a)),r.timestampEnd=new Date(a.timestamp)}),r&&t.push(r),t.sort((a,u)=>a.timestampStart.getTime()-u.timestampStart.getTime())},[e])}const _$=({onClick:e})=>y.jsxs(D$,{onClick:e,children:[y.jsx(O$,{children:"New messages"}),y.jsx(Jc,{}),y.jsx(Jc,{}),y.jsx(Jc,{})]}),z$=Qo`
1837
+ 0%, 80%, 100% {
1838
+ transform: scale(0.8);
1839
+ }
1840
+ 40% {
1841
+ transform: scale(1.2);
1842
+ }
1843
+ `,D$=T.div`
1844
+ display: flex;
1845
+ justify-content: center;
1846
+ align-items: center;
1847
+ padding: 10px;
1848
+ background-color: ${e=>e.theme.colors.primary};
1849
+ color: ${e=>e.theme.colors.text};
1850
+ border-radius: 20px;
1851
+ position: absolute;
1852
+ bottom: 20px;
1853
+ left: 50%;
1854
+ transform: translateX(-50%);
1855
+ cursor: pointer;
1856
+ box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
1857
+ transition: all 0.3s ease;
1858
+ z-index: 10;
1859
+
1860
+ &:hover {
1861
+ background-color: ${e=>e.theme.colors.primaryHover};
1862
+ }
1863
+ `,O$=T.span`
1864
+ margin-right: 10px;
1865
+ font-weight: bold;
1866
+ `,Jc=T.div`
1867
+ width: 8px;
1868
+ height: 8px;
1869
+ background-color: ${e=>e.theme.colors.text};
1870
+ border-radius: 50%;
1871
+ margin: 0 2px;
1872
+ animation: ${z$} 1.4s infinite ease-in-out both;
1873
+
1874
+ &:nth-child(2) {
1875
+ animation-delay: -0.32s;
1876
+ }
1877
+
1878
+ &:nth-child(3) {
1879
+ animation-delay: -0.16s;
1880
+ }
1881
+ `,F$=T.div`
1882
+ position: relative;
1883
+ width: 100%;
1884
+ `,M$=T.textarea`
1885
+ width: 100%;
1886
+ min-height: 60px;
1887
+ resize: none;
1888
+ padding: 8px;
1889
+ border: 1px solid ${e=>e.theme.colors.border};
1890
+ border-radius: 4px;
1891
+ font-family: inherit;
1892
+ font-size: 14px;
1893
+ background-color: ${e=>e.theme.colors.inputBg};
1894
+ color: ${e=>e.theme.colors.inputText};
1895
+ box-sizing: border-box;
1896
+ /* Allow vertical scrolling when content exceeds max height, keep horizontal hidden */
1897
+ overflow-x: hidden;
1898
+ overflow-y: auto;
1899
+ -webkit-overflow-scrolling: touch;
1900
+
1901
+ &:focus {
1902
+ outline: none;
1903
+ border-color: ${e=>e.theme.colors.primary};
1904
+ }
1905
+ `,t1=({value:e,onChange:t,onKeyDown:r,onPaste:i,onImagePaste:l,maxViewportHeight:a=.5,...u})=>{const d=N.useRef(null);N.useEffect(()=>{const g=d.current;if(!g)return;const m=()=>{g.style.height="auto";const w=g.scrollHeight,k=a*window.innerHeight,S=Math.min(w,k);g.style.height=`${S}px`,g.style.overflowY=w<=k?"hidden":"auto"};m();const v=()=>m();return window.addEventListener("resize",v),()=>{window.removeEventListener("resize",v)}},[e,a]);const f=g=>{t(g.target.value)},p=g=>{var v;const m=(v=g.clipboardData)==null?void 0:v.items;if(m){for(let w=0;w<m.length;w++)if(m[w].type.indexOf("image")!==-1){g.preventDefault();const k=m[w].getAsFile();if(k){const S=new File([k],`pasted-image-${Date.now()}.png`,{type:"image/png"});l==null||l(S)}break}}i==null||i(g)};return y.jsx(F$,{children:y.jsx(M$,{ref:d,value:e,onChange:f,onKeyDown:r,onPaste:p,...u})})},B$=5*1024*1024,ty=["image/jpeg","image/png","image/gif","image/webp"],ny=5,n1=({images:e,onImagesChange:t,error:r,setError:i,fileInputRef:l})=>{const a=d=>{const p=Array.from(d.target.files||[]).filter(g=>ty.includes(g.type)?g.size>B$?(i(`File too large: ${g.name}. Maximum size is 5MB.`),!1):!0:(i(`Invalid file type: ${g.name}. Allowed types are JPEG, PNG, GIF, and WebP.`),!1));if(p.length+e.length>ny){i(`Too many images. Maximum ${ny} images allowed.`);return}t([...e,...p]),i(null)},u=d=>{const f=e.filter((p,g)=>g!==d);t(f)};return y.jsxs(U$,{children:[r&&y.jsx(V$,{children:r}),y.jsx(H$,{children:e.map((d,f)=>y.jsxs(W$,{children:[y.jsx("img",{src:URL.createObjectURL(d),alt:`Uploaded ${f+1}`}),y.jsx(q$,{onClick:()=>u(f),children:"×"})]},f))}),y.jsx("input",{type:"file",ref:l,style:{display:"none"},onChange:a,accept:ty.join(","),multiple:!0})]})},U$=T.div`
1906
+ margin-bottom: 8px;
1907
+ `,V$=T.div`
1908
+ color: ${e=>e.theme.colors.error};
1909
+ font-size: 14px;
1910
+ margin-bottom: 8px;
1911
+ `,H$=T.div`
1912
+ display: flex;
1913
+ flex-wrap: wrap;
1914
+ gap: 8px;
1915
+ `,W$=T.div`
1916
+ position: relative;
1917
+ width: 60px;
1918
+ height: 60px;
1919
+
1920
+ img {
1921
+ width: 100%;
1922
+ height: 100%;
1923
+ object-fit: cover;
1924
+ border-radius: 4px;
1925
+ }
1926
+ `,q$=T.button`
1927
+ position: absolute;
1928
+ top: -8px;
1929
+ right: -8px;
1930
+ background-color: ${e=>e.theme.colors.error};
1931
+ color: white;
1932
+ border: none;
1933
+ border-radius: 50%;
1934
+ width: 20px;
1935
+ height: 20px;
1936
+ font-size: 14px;
1937
+ line-height: 1;
1938
+ cursor: pointer;
1939
+ display: flex;
1940
+ align-items: center;
1941
+ justify-content: center;
1942
+
1943
+ &:hover {
1944
+ background-color: ${e=>e.theme.colors.errorHover};
1945
+ }
1946
+ `,G$={sendMessage:"Send Message ✉️",updateFile:"Update File 📝",createFile:"Create File 📄",confirmCodeGeneration:"Generate Code 🚀",runProjectCommand:"Run Command ⚙️",runBashCommand:"Run Bash Command 셸",searchCode:"Search Code 🔍",requestFilesContent:"Request Files 📂",endConversation:"End Conversation 👋",compoundAction:"Compound Action 🧱",runContainerTask:"Run Container Task 🐳",requestPermissions:"Request Permissions 🔒",performAnalysis:"Perform Analysis 🔬",contextOptimization:"Optimize Context ✨",reasoningInference:"Reasoning Inference 🤔",genaicodeHelp:"GenAIcode Help ❓",conversationGraph:"Conversation Graph 📊",generateImage:"Generate Image 🎨",readExternalFiles:"Read External Files 📖",exploreExternalDirectories:"Explore External Dirs 🗺️",removeFilesFromContext:"Remove Files from Context 🗑️",requestGitContext:"Request Git Context 🐙",webSearch:"Web Search 🌐",codeGeneration:"Code Generation 💻",contextCompression:"Compress Context 📦",pullAppContext:"Pull App Context 🔽",pushAppContext:"Push App Context 🔼",requestFilesFragments:"Request Files Fragments 🧩",pullConsoleLogs:"Pull Console Logs 🖥️",structuredQuestion:"Structured Question ❓"},J$=e=>G$[e]||e,Pd=({value:e,onChange:t,disabled:r})=>{const[i,l]=N.useState([]),[a,u]=N.useState(!0),[d,f]=N.useState(null);N.useEffect(()=>{(async()=>{try{u(!0);const m=await lC();l(m),f(null)}catch(m){f("Failed to load action types."),console.error(m)}finally{u(!1)}})()},[]);const p=g=>{t(g.target.value)};return y.jsxs(K$,{children:[y.jsxs(Q$,{id:"promptActionType",value:e||"",onChange:p,disabled:r||a||d!==null,children:[y.jsx("option",{value:"",children:"Auto mode"}),i.map(g=>y.jsx("option",{value:g,children:J$(g)},g))]}),a&&y.jsx(Y$,{children:"Loading actions..."}),d&&y.jsx(X$,{children:d})]})},K$=T.div`
1947
+ display: flex;
1948
+ flex-direction: column;
1949
+ gap: 4px;
1950
+ `,Q$=T.select`
1951
+ padding: 8px;
1952
+ border: 1px solid ${({theme:e})=>e.colors.border};
1953
+ border-radius: 4px;
1954
+ background-color: ${({theme:e})=>e.colors.inputBg};
1955
+ color: ${({theme:e})=>e.colors.inputText};
1956
+ font-size: 14px;
1957
+ max-width: 200px;
1958
+
1959
+ &:disabled {
1960
+ background-color: ${({theme:e})=>e.colors.disabled};
1961
+ cursor: not-allowed;
1962
+ }
1963
+
1964
+ option {
1965
+ padding: 4px;
1966
+ background-color: ${({theme:e})=>e.colors.inputBg};
1967
+ color: ${({theme:e})=>e.colors.inputText};
1968
+ }
1969
+ `,Y$=T.div`
1970
+ color: ${({theme:e})=>e.colors.text};
1971
+ font-size: 14px;
1972
+ font-style: italic;
1973
+ `,X$=T.div`
1974
+ color: ${({theme:e})=>e.colors.error};
1975
+ font-size: 14px;
1976
+ `,Z$=T.form`
1977
+ display: flex;
1978
+ flex-direction: column;
1979
+ gap: 16px;
1980
+ padding: 24px;
1981
+ border: 1px solid ${({theme:e})=>e.colors.border};
1982
+ border-radius: 8px;
1983
+ background-color: ${({theme:e})=>e.colors.background};
1984
+ max-width: 70%;
1985
+ width: 100%;
1986
+ box-sizing: border-box;
1987
+ margin-top: 10px;
1988
+ margin-bottom: 10px;
1989
+ `,eA=T.h3`
1990
+ margin: 0 0 8px 0;
1991
+ color: ${({theme:e})=>e.colors.text};
1992
+ font-size: 1.5rem;
1993
+ font-weight: 600;
1994
+ `,tA=T.p`
1995
+ margin: 0 0 16px 0;
1996
+ color: ${({theme:e})=>e.colors.textSecondary};
1997
+ font-size: 0.95rem;
1998
+ line-height: 1.5;
1999
+ `,Na=T.div`
2000
+ display: flex;
2001
+ flex-direction: column;
2002
+ gap: 8px;
2003
+ `,Pa=T.label`
2004
+ font-weight: 600;
2005
+ color: ${({theme:e})=>e.colors.text};
2006
+ font-size: 0.95rem;
2007
+ `,nA=T.input`
2008
+ padding: 10px 12px;
2009
+ border: 1px solid ${({theme:e})=>e.colors.inputBorder};
2010
+ border-radius: 4px;
2011
+ background-color: ${({theme:e})=>e.colors.inputBg};
2012
+ color: ${({theme:e})=>e.colors.inputText};
2013
+ font-size: 0.95rem;
2014
+ font-family: inherit;
2015
+ transition:
2016
+ border-color 0.2s ease,
2017
+ box-shadow 0.2s ease;
2018
+
2019
+ &:focus {
2020
+ outline: none;
2021
+ border-color: ${({theme:e})=>e.colors.primary};
2022
+ box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.primary}22;
2023
+ }
2024
+
2025
+ &:disabled {
2026
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
2027
+ color: ${({theme:e})=>e.colors.disabled};
2028
+ cursor: not-allowed;
2029
+ }
2030
+ `,rA=T.textarea`
2031
+ padding: 10px 12px;
2032
+ border: 1px solid ${({theme:e})=>e.colors.inputBorder};
2033
+ border-radius: 4px;
2034
+ background-color: ${({theme:e})=>e.colors.inputBg};
2035
+ color: ${({theme:e})=>e.colors.inputText};
2036
+ font-size: 0.95rem;
2037
+ font-family: inherit;
2038
+ resize: vertical;
2039
+ min-height: 100px;
2040
+ line-height: 1.5;
2041
+ transition:
2042
+ border-color 0.2s ease,
2043
+ box-shadow 0.2s ease;
2044
+
2045
+ &:focus {
2046
+ outline: none;
2047
+ border-color: ${({theme:e})=>e.colors.primary};
2048
+ box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.primary}22;
2049
+ }
2050
+
2051
+ &:disabled {
2052
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
2053
+ color: ${({theme:e})=>e.colors.disabled};
2054
+ cursor: not-allowed;
2055
+ }
2056
+ `,oA=T.select`
2057
+ padding: 10px 12px;
2058
+ border: 1px solid ${({theme:e})=>e.colors.inputBorder};
2059
+ border-radius: 4px;
2060
+ background-color: ${({theme:e})=>e.colors.inputBg};
2061
+ color: ${({theme:e})=>e.colors.inputText};
2062
+ font-size: 0.95rem;
2063
+ font-family: inherit;
2064
+ cursor: pointer;
2065
+ transition:
2066
+ border-color 0.2s ease,
2067
+ box-shadow 0.2s ease;
2068
+
2069
+ &:focus {
2070
+ outline: none;
2071
+ border-color: ${({theme:e})=>e.colors.primary};
2072
+ box-shadow: 0 0 0 3px ${({theme:e})=>e.colors.primary}22;
2073
+ }
2074
+
2075
+ &:disabled {
2076
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
2077
+ color: ${({theme:e})=>e.colors.disabled};
2078
+ cursor: not-allowed;
2079
+ }
2080
+ `,r1=T.div`
2081
+ display: flex;
2082
+ flex-direction: column;
2083
+ gap: 10px;
2084
+ `,o1=T.label`
2085
+ display: flex;
2086
+ align-items: center;
2087
+ gap: 10px;
2088
+ cursor: pointer;
2089
+ color: ${({theme:e})=>e.colors.text};
2090
+ font-size: 0.95rem;
2091
+ transition: color 0.2s ease;
2092
+
2093
+ &:hover {
2094
+ color: ${({theme:e})=>e.colors.primary};
2095
+ }
2096
+
2097
+ input[type='checkbox'],
2098
+ input[type='radio'] {
2099
+ cursor: pointer;
2100
+ width: 16px;
2101
+ height: 16px;
2102
+ }
2103
+ `,iA=T.div`
2104
+ display: flex;
2105
+ justify-content: flex-end;
2106
+ gap: 12px;
2107
+ margin-top: 8px;
2108
+ `,ry=T.button`
2109
+ padding: 10px 20px;
2110
+ border: none;
2111
+ border-radius: 4px;
2112
+ font-size: 0.95rem;
2113
+ font-weight: 500;
2114
+ cursor: pointer;
2115
+ transition:
2116
+ background-color 0.2s ease,
2117
+ transform 0.1s ease;
2118
+ font-family: inherit;
2119
+
2120
+ &:active {
2121
+ transform: translateY(1px);
2122
+ }
2123
+
2124
+ &:disabled {
2125
+ background-color: ${({theme:e})=>e.colors.disabled};
2126
+ color: ${({theme:e})=>e.colors.textSecondary};
2127
+ cursor: not-allowed;
2128
+ opacity: 0.6;
2129
+ }
2130
+
2131
+ /* Default/Primary button */
2132
+ background-color: ${({theme:e})=>e.colors.primary};
2133
+ color: white;
2134
+
2135
+ &:hover:not(:disabled) {
2136
+ background-color: ${({theme:e})=>e.colors.primaryHover};
2137
+ }
2138
+
2139
+ /* Secondary button */
2140
+ &[data-secondary='true'] {
2141
+ background-color: ${({theme:e})=>e.colors.secondary};
2142
+ color: white;
2143
+
2144
+ &:hover:not(:disabled) {
2145
+ background-color: ${({theme:e})=>e.colors.secondaryHover};
2146
+ }
2147
+ }
2148
+
2149
+ /* Error/Cancel button */
2150
+ &[data-error='true'] {
2151
+ background-color: ${({theme:e})=>e.colors.error};
2152
+ color: white;
2153
+
2154
+ &:hover:not(:disabled) {
2155
+ background-color: ${({theme:e})=>e.colors.errorHover};
2156
+ }
2157
+ }
2158
+ `,$a=T.p`
2159
+ color: ${({theme:e})=>e.colors.error};
2160
+ font-size: 0.85rem;
2161
+ margin: 4px 0 0 0;
2162
+ font-weight: 500;
2163
+ `,lA=({field:e,value:t,onChange:r,error:i})=>{const{id:l,label:a,type:u,required:d,placeholder:f}=e,p=()=>{const g={id:l,name:l,value:t||"",onChange:m=>r(m.target.value),placeholder:f,required:d};switch(u){case"textarea":return y.jsx(rA,{...g,rows:4});case"number":case"email":case"text":default:return y.jsx(nA,{type:u,...g})}};return y.jsxs(Na,{children:[y.jsxs(Pa,{htmlFor:l,children:[a,d&&y.jsx("span",{style:{color:"var(--error-color, #f44336)",marginLeft:"4px"},children:"*"})]}),p(),i&&y.jsx($a,{children:i})]})},sA=({field:e,value:t,onChange:r,error:i})=>{var a;const l=u=>{const d=t.includes(u)?t.filter(f=>f!==u):[...t,u];r(d)};return y.jsxs(Na,{children:[y.jsxs(Pa,{children:[e.label,e.required&&y.jsx("span",{style:{color:"var(--error-color, #f44336)",marginLeft:"4px"},children:"*"})]}),y.jsx(r1,{children:(a=e.options)==null?void 0:a.map(u=>y.jsxs(o1,{children:[y.jsx("input",{type:"checkbox",value:u.value,checked:t.includes(u.value),onChange:()=>l(u.value)}),u.label]},u.value))}),i&&y.jsx($a,{children:i})]})},aA=({field:e,value:t,onChange:r,error:i})=>{var l;return y.jsxs(Na,{children:[y.jsxs(Pa,{children:[e.label,e.required&&y.jsx("span",{style:{color:"var(--error-color, #f44336)",marginLeft:"4px"},children:"*"})]}),y.jsx(r1,{children:(l=e.options)==null?void 0:l.map(a=>y.jsxs(o1,{children:[y.jsx("input",{type:"radio",id:`${e.id}-${a.value}`,name:e.id,value:a.value,checked:t===a.value,onChange:()=>r(a.value)}),a.label]},a.value))}),i&&y.jsx($a,{children:i})]})},uA=({field:e,value:t,onChange:r,error:i})=>{var l;return y.jsxs(Na,{children:[y.jsxs(Pa,{htmlFor:e.id,children:[e.label,e.required&&y.jsx("span",{style:{color:"var(--error-color, #f44336)",marginLeft:"4px"},children:"*"})]}),y.jsxs(oA,{id:e.id,value:t||"",onChange:a=>r(a.target.value),required:e.required,children:[e.placeholder&&y.jsx("option",{value:"",children:e.placeholder}),(l=e.options)==null?void 0:l.map(a=>y.jsx("option",{value:a.value,children:a.label},a.value))]}),i&&y.jsx($a,{children:i})]})},cA=({form:e,onSubmit:t,onCancel:r})=>{const[i,l]=N.useState(()=>{const m={};return e.fields.forEach(v=>{m[v.id]=v.defaultValue??""}),m}),[a,u]=N.useState({}),d=(m,v)=>{l(w=>({...w,[m]:v})),a[m]&&u(w=>{const k={...w};return delete k[m],k})},f=()=>{const m={};return e.fields.forEach(v=>{v.required&&(!i[v.id]||Array.isArray(i[v.id])&&i[v.id].length===0)&&(m[v.id]=`${v.label} is required.`)}),u(m),Object.keys(m).length===0},p=m=>{m.preventDefault(),f()&&t(i)},g=m=>{switch(m.type){case"checkbox":return y.jsx(sA,{field:m,value:i[m.id]||[],onChange:v=>d(m.id,v),error:a[m.id]},m.id);case"radio":return y.jsx(aA,{field:m,value:i[m.id]||"",onChange:v=>d(m.id,v),error:a[m.id]},m.id);case"select":return y.jsx(uA,{field:m,value:i[m.id]||"",onChange:v=>d(m.id,v),error:a[m.id]},m.id);case"text":case"textarea":case"number":case"email":default:return y.jsx(lA,{field:m,value:i[m.id]||"",onChange:v=>d(m.id,v),error:a[m.id]},m.id)}};return y.jsxs(Z$,{onSubmit:p,children:[e.title&&y.jsx(eA,{children:e.title}),e.description&&y.jsx(tA,{children:e.description}),e.fields.map(g),y.jsxs(iA,{children:[y.jsx(ry,{type:"submit",children:e.submitLabel||"Submit"}),e.cancelLabel&&y.jsx(ry,{type:"button",onClick:r,"data-secondary":"true",children:e.cancelLabel})]})]})},oy=({onSubmit:e,onInterrupt:t,onPauseResume:r,question:i,codegenOptions:l,executionStatus:a})=>{var ie,Q,ce,C,_,q,R;const[u,d]=N.useState(""),[f,p]=N.useState([]),[g,m]=N.useState(null),{suggestions:v}=N.useContext(Zo)??{suggestions:[]},[w,k]=N.useState(null),[S,j]=N.useState(l.aiService),[E,P]=N.useState(void 0),[$,D]=N.useState(!1),W=N.useRef(null),A=N.useRef(null);N.useEffect(()=>{j(l.aiService)},[l.aiService]),N.useEffect(()=>{const ae=ge=>{W.current&&!W.current.contains(ge.target)&&D(!1)};return document.addEventListener("mousedown",ae),()=>{document.removeEventListener("mousedown",ae)}},[W]);const H=ae=>{p(ge=>[...ge,ae]),m(null)},K=async ae=>{if(ae.preventDefault(),(u.trim()||f.length>0)&&i)try{await e(u,f,void 0,S,E),d(""),p([]),k(null),m(null)}catch(ge){console.error("Error submitting answer:",ge),k("Failed to submit the answer. Please try again.")}},le=async ae=>{try{await e(u,f,ae,S,E),d(""),p([]),k(null),m(null)}catch(ge){console.error("Error submitting confirmation:",ge),k("Failed to submit the confirmation. Please try again.")}},O=async ae=>{try{await e("",void 0,void 0,S,E,{submitted:!0,values:ae}),k(null)}catch(ge){console.error("Error submitting structured question:",ge),k("Failed to submit the form. Please try again.")}},ee=async()=>{try{await e("",void 0,void 0,S,E,{submitted:!1,values:{}}),k(null)}catch(ae){console.error("Error cancelling structured question:",ae),k("Failed to cancel the form. Please try again.")}},se=ae=>{d(ae),D(!1)},ne=()=>{D(!$)},re=()=>{var ae;(ae=A.current)==null||ae.click()},U=a==="paused",de=!(i!=null&&i.confirmation)||!i.confirmation.confirmLabel&&!i.confirmation.declineLabel&&!i.confirmation.secret;return i!=null&&i.structuredForm?y.jsxs(y.Fragment,{children:[y.jsx(cA,{form:i.structuredForm,onSubmit:O,onCancel:ee}),w&&y.jsx(ly,{children:w})]}):y.jsxs(dA,{children:[i?y.jsxs(fA,{onSubmit:K,children:[y.jsx("p",{children:i.text}),(ie=i.confirmation)!=null&&ie.secret?y.jsx(pA,{type:"password",value:u,onChange:ae=>d(ae.target.value),placeholder:"Enter secret",autoFocus:!0}):((Q=i.confirmation)==null?void 0:Q.includeAnswer)!==!1&&y.jsxs(y.Fragment,{children:[y.jsx(t1,{value:u,onChange:d,placeholder:"Enter your answer here or select a suggestion",maxViewportHeight:.3,onImagePaste:H}),y.jsx(n1,{images:f,onImagesChange:p,error:g,setError:m,fileInputRef:A})]}),(ce=i.confirmation)!=null&&ce.secret?y.jsxs(Ms,{children:[y.jsx(iy,{type:"submit",disabled:!u.trim(),children:"Submit"}),y.jsx(Kc,{onClick:()=>le(!1),"data-secondary":"true",children:"Decline"}),y.jsx(Bs,{onClick:t,children:"Interrupt"})]}):de?y.jsxs(Ms,{children:[y.jsx(iy,{type:"submit",disabled:!u.trim()&&f.length===0,children:"Submit Answer"}),y.jsx(vA,{type:"button",onClick:re,title:"Upload Images",children:y.jsx(bx,{})}),y.jsx(oa,{value:S,onChange:j,disabled:!1}),((C=i.confirmation)==null?void 0:C.promptActionType)&&y.jsx(Pd,{value:E,onChange:P,disabled:!1}),v&&v.length>0&&y.jsxs(hA,{ref:W,children:[y.jsxs(mA,{type:"button",onClick:ne,children:[v[0],v.length>1&&y.jsx(gA,{children:" ▼"})]}),$&&y.jsx(yA,{children:v.map((ae,ge)=>y.jsx(xA,{onClick:()=>se(ae),children:ae},ge))})]}),y.jsx(Bs,{onClick:t,children:"Interrupt"})]}):y.jsxs(Ms,{children:[y.jsx(Kc,{onClick:()=>le(!0),children:(_=i.confirmation)==null?void 0:_.confirmLabel}),y.jsx(Kc,{onClick:()=>le(!1),"data-secondary":"true",children:(q=i.confirmation)==null?void 0:q.declineLabel}),y.jsx(oa,{value:S,onChange:j,disabled:!1}),((R=i.confirmation)==null?void 0:R.promptActionType)&&y.jsx(Pd,{value:E,onChange:P,disabled:!1}),y.jsx(Bs,{onClick:t,children:"Interrupt"})]})]}):y.jsxs(Ms,{children:[y.jsx(wA,{onClick:r,isPaused:U,children:U?"Resume":"Pause"}),y.jsx(Bs,{onClick:t,children:"Interrupt"})]}),w&&y.jsx(ly,{children:w})]})},dA=T.div`
2164
+ background-color: ${({theme:e})=>e.colors.background};
2165
+ border: 1px solid ${({theme:e})=>e.colors.border};
2166
+ border-radius: 8px;
2167
+ padding: 15px;
2168
+ margin-top: 10px;
2169
+ margin-bottom: 10px;
2170
+ max-width: 70%;
2171
+ width: 100%;
2172
+ box-sizing: border-box;
2173
+ `,fA=T.form`
2174
+ display: flex;
2175
+ flex-direction: column;
2176
+
2177
+ > p {
2178
+ margin-top: 0;
2179
+ }
2180
+ `,pA=T.input`
2181
+ width: 100%;
2182
+ padding: 10px;
2183
+ border: 1px solid ${({theme:e})=>e.colors.inputBorder};
2184
+ border-radius: 4px;
2185
+ background-color: ${({theme:e})=>e.colors.inputBg};
2186
+ color: ${({theme:e})=>e.colors.inputText};
2187
+ font-family: inherit;
2188
+ font-size: 14px;
2189
+ box-sizing: border-box;
2190
+ margin-bottom: 10px;
2191
+ `,hA=T.div`
2192
+ position: relative;
2193
+ display: inline-block;
2194
+ `,mA=T.button`
2195
+ background-color: ${e=>e.theme.colors.backgroundSecondary};
2196
+ color: ${e=>e.theme.colors.text};
2197
+ border: 1px solid ${e=>e.theme.colors.border};
2198
+ border-radius: 4px;
2199
+ padding: 8px 12px;
2200
+ font-size: 14px;
2201
+ cursor: pointer;
2202
+ transition: background-color 0.3s ease;
2203
+ display: flex;
2204
+ align-items: center;
2205
+ white-space: nowrap;
2206
+ overflow: hidden;
2207
+ text-overflow: ellipsis;
2208
+ max-width: 200px;
2209
+
2210
+ &:hover {
2211
+ background-color: ${e=>e.theme.colors.primary+"22"};
2212
+ }
2213
+ `,gA=T.span`
2214
+ margin-left: 5px;
2215
+ font-size: 0.8em;
2216
+ `,yA=T.div`
2217
+ position: absolute;
2218
+ bottom: 100%;
2219
+ left: 0;
2220
+ background-color: ${({theme:e})=>e.colors.inputBg};
2221
+ border: 1px solid ${({theme:e})=>e.colors.border};
2222
+ border-radius: 4px;
2223
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
2224
+ z-index: 1000;
2225
+ max-width: 300px;
2226
+ max-height: 200px;
2227
+ overflow-y: auto;
2228
+ margin-bottom: 5px;
2229
+ `,xA=T.div`
2230
+ padding: 8px 12px;
2231
+ color: ${({theme:e})=>e.colors.inputText};
2232
+ cursor: pointer;
2233
+ white-space: nowrap;
2234
+ overflow: hidden;
2235
+ text-overflow: ellipsis;
2236
+
2237
+ &:hover {
2238
+ background-color: ${({theme:e})=>e.colors.primary+"22"};
2239
+ }
2240
+ `,Ms=T.div`
2241
+ display: flex;
2242
+ align-items: center;
2243
+ justify-content: flex-start;
2244
+ gap: 10px;
2245
+ margin-top: 10px;
2246
+ flex-wrap: wrap;
2247
+ `,vl=T.button`
2248
+ color: #ffffff;
2249
+ border: none;
2250
+ border-radius: 4px;
2251
+ padding: 8px 12px;
2252
+ font-size: 14px;
2253
+ cursor: pointer;
2254
+ transition: background-color 0.3s ease;
2255
+
2256
+ &:disabled {
2257
+ background-color: ${({theme:e})=>e.colors.disabled};
2258
+ cursor: not-allowed;
2259
+ }
2260
+ `,iy=T(vl)`
2261
+ background-color: ${({theme:e})=>e.colors.primary};
2262
+
2263
+ &:hover:not(:disabled) {
2264
+ background-color: ${({theme:e})=>e.colors.primary}dd;
2265
+ }
2266
+ `,vA=T(vl)`
2267
+ background-color: ${({theme:e})=>e.colors.buttonBg}; /* Or choose another appropriate color */
2268
+
2269
+ &:hover {
2270
+ background-color: ${({theme:e})=>e.colors.buttonHoverBg}dd;
2271
+ }
2272
+ `,Kc=T(vl)`
2273
+ background-color: ${({theme:e})=>e.colors.primary};
2274
+ &:hover {
2275
+ background-color: ${({theme:e})=>e.colors.primary}dd;
2276
+ }
2277
+
2278
+ &[data-secondary='true'] {
2279
+ background-color: ${({theme:e})=>e.colors.secondary};
2280
+ &:hover {
2281
+ background-color: ${({theme:e})=>e.colors.secondary}dd;
2282
+ }
2283
+ }
2284
+ `,Bs=T(vl)`
2285
+ background-color: ${({theme:e})=>e.colors.error};
2286
+ margin-left: auto;
2287
+
2288
+ &:hover {
2289
+ background-color: ${({theme:e})=>e.colors.error}dd;
2290
+ }
2291
+ `,wA=T(vl)`
2292
+ background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info};
2293
+
2294
+ &:hover {
2295
+ background-color: ${({theme:e,isPaused:t})=>t?e.colors.warning:e.colors.info}dd;
2296
+ }
2297
+ `,ly=T.p`
2298
+ color: ${({theme:e})=>e.colors.error};
2299
+ font-weight: bold;
2300
+ margin-top: 10px;
2301
+ margin-bottom: 0;
2302
+ `,kA=({isVisible:e,onInterrupt:t,onPauseResume:r,executionStatus:i})=>e?y.jsxs(SA,{children:[y.jsx(EA,{onClick:t,children:"Interrupt"}),y.jsxs(CA,{"data-execution-status":i,children:[y.jsx(Qc,{}),y.jsx(Qc,{}),y.jsx(Qc,{})]}),y.jsx(i1,{onClick:r,children:i==="paused"?"Resume":"Pause"})]}):null,bA=Qo`
2303
+ 0%, 80%, 100% {
2304
+ transform: scale(0);
2305
+ }
2306
+ 40% {
2307
+ transform: scale(1.0);
2308
+ }
2309
+ `,SA=T.div`
2310
+ display: flex;
2311
+ flex-direction: row;
2312
+ align-items: center;
2313
+ justify-content: center;
2314
+ gap: 50px;
2315
+ padding: 10px;
2316
+ background-color: ${e=>e.theme.colors.background};
2317
+ border-top: 1px solid ${e=>e.theme.colors.border};
2318
+ `,CA=T.div`
2319
+ display: flex;
2320
+ align-items: center;
2321
+ justify-content: center;
2322
+ align-items: center;
2323
+ margin-bottom: 10px;
2324
+ `,Qc=T.div`
2325
+ width: 10px;
2326
+ height: 10px;
2327
+ background-color: ${e=>e.theme.colors.primary};
2328
+ border-radius: 50%;
2329
+ margin: 0 5px;
2330
+
2331
+ [data-execution-status='executing'] & {
2332
+ animation: ${bA} 1.4s infinite ease-in-out both;
2333
+ }
2334
+
2335
+ &:nth-child(1) {
2336
+ animation-delay: -0.32s;
2337
+ }
2338
+
2339
+ &:nth-child(2) {
2340
+ animation-delay: -0.16s;
2341
+ }
2342
+ `,i1=T.button`
2343
+ padding: 8px 16px;
2344
+ background-color: ${e=>e.theme.colors.primary};
2345
+ color: #ffffff;
2346
+ border: none;
2347
+ border-radius: 4px;
2348
+ cursor: pointer;
2349
+ font-size: 14px;
2350
+ font-weight: 600;
2351
+ transition: background-color 0.3s, transform 0.1s;
2352
+
2353
+ &:hover {
2354
+ background-color: ${e=>e.theme.colors.primaryHover};
2355
+ transform: translateY(-1px);
2356
+ }
2357
+
2358
+ &:active {
2359
+ transform: translateY(0);
2360
+ }
2361
+ `,EA=T(i1)`
2362
+ background-color: ${({theme:e})=>e.colors.error};
2363
+
2364
+ &:hover {
2365
+ background-color: ${({theme:e})=>e.colors.errorHover};
2366
+ }
2367
+ `,l1={info:"#3498db",warn:"#f39c12",error:"#e74c3c",success:"#2ecc71",debug:"#9b59b6"},jA=T.div`
2368
+ position: fixed;
2369
+ bottom: 70px;
2370
+ right: 20px;
2371
+ width: clamp(750px, 50vw, 750px);
2372
+ height: 55vh;
2373
+ background-color: ${({theme:e})=>e.colors.backgroundAlt||e.colors.overlayBackground};
2374
+ border: 1px solid ${({theme:e})=>e.colors.border};
2375
+ border-radius: 8px;
2376
+ box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
2377
+ z-index: 1001;
2378
+ padding: 12px;
2379
+ display: flex;
2380
+ flex-direction: column;
2381
+ font-family: 'Courier New', Courier, monospace;
2382
+ `,TA=T.div`
2383
+ display: flex;
2384
+ align-items: center;
2385
+ margin-bottom: 10px;
2386
+ padding-bottom: 10px;
2387
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
2388
+ color: ${({theme:e})=>e.colors.text};
2389
+ gap: 16px;
2390
+ flex-wrap: wrap;
2391
+
2392
+ h4 {
2393
+ margin: 0;
2394
+ font-size: 1.1em;
2395
+ }
2396
+ `,RA=T.button`
2397
+ background: none;
2398
+ border: none;
2399
+ color: ${({theme:e})=>e.colors.text};
2400
+ font-size: 1.2rem;
2401
+ cursor: pointer;
2402
+ padding: 0;
2403
+ line-height: 1;
2404
+
2405
+ &:hover {
2406
+ color: ${({theme:e})=>e.colors.primary};
2407
+ }
2408
+ `,IA=T.div`
2409
+ display: flex;
2410
+ align-items: center;
2411
+ flex-wrap: wrap;
2412
+ gap: 8px;
2413
+ flex-grow: 1;
2414
+ justify-content: flex-end;
2415
+ `,NA=T.div`
2416
+ display: flex;
2417
+ gap: 5px;
2418
+ `,sy=T.button`
2419
+ background-color: ${({active:e,theme:t})=>e?t.colors.primary:"transparent"};
2420
+ color: ${({active:e,theme:t})=>e?"white":t.colors.text};
2421
+ border: 1px solid ${({active:e,theme:t})=>e?t.colors.primary:t.colors.border};
2422
+ border-radius: 6px;
2423
+ padding: 6px 12px;
2424
+ cursor: pointer;
2425
+ font-size: 0.9rem;
2426
+ font-weight: 500;
2427
+ transition: all 0.2s ease-in-out;
2428
+
2429
+ &:hover:not(:disabled) {
2430
+ background-color: ${({theme:e})=>e.colors.secondary};
2431
+ border-color: ${({theme:e})=>e.colors.secondary};
2432
+ color: white;
2433
+ }
2434
+ margin-left: auto; /* Pushes it to the right */
2435
+ `,Yc=T.button`
2436
+ background-color: ${({active:e,theme:t})=>e?t.colors.primary:t.colors.secondary};
2437
+ color: ${({active:e,theme:t})=>e?"white":t.colors.buttonText};
2438
+ border: 1px solid ${({theme:e})=>e.colors.border};
2439
+ border-radius: 6px;
2440
+ padding: 6px 10px;
2441
+ cursor: pointer;
2442
+ font-size: 0.85rem;
2443
+ transition: opacity 0.2s ease;
2444
+
2445
+ &:hover {
2446
+ opacity: 0.9;
2447
+ }
2448
+
2449
+ &:disabled {
2450
+ opacity: 0.6;
2451
+ cursor: not-allowed;
2452
+ }
2453
+
2454
+ &:focus-visible {
2455
+ outline: 2px solid ${({theme:e})=>e.colors.primary};
2456
+ outline-offset: 2px;
2457
+ }
2458
+ `,PA=T.div`
2459
+ flex-grow: 1;
2460
+ overflow-y: auto;
2461
+ background-color: ${({theme:e})=>e.colors.inputBackground};
2462
+ padding: 10px;
2463
+ border-radius: 6px;
2464
+ color: ${({theme:e})=>e.colors.text};
2465
+ font-size: 0.9em;
2466
+ white-space: pre-wrap;
2467
+ word-wrap: break-word;
2468
+
2469
+ &::-webkit-scrollbar {
2470
+ width: 8px;
2471
+ }
2472
+ &::-webkit-scrollbar-track {
2473
+ background: ${({theme:e})=>e.colors.background};
2474
+ }
2475
+ &::-webkit-scrollbar-thumb {
2476
+ background-color: ${({theme:e})=>e.colors.border};
2477
+ border-radius: 4px;
2478
+ }
2479
+ `,$A=T.div`
2480
+ display: grid;
2481
+ grid-template-columns: 80px 70px 90px 1fr;
2482
+ align-items: start;
2483
+ gap: 8px;
2484
+ padding-bottom: 6px;
2485
+ margin-bottom: 6px;
2486
+ border-bottom: 1px dashed ${({theme:e})=>e.colors.border};
2487
+ line-height: 1.4;
2488
+
2489
+ .timestamp {
2490
+ color: ${({theme:e})=>e.colors.textSecondary};
2491
+ font-size: 0.8em;
2492
+ white-space: nowrap;
2493
+ }
2494
+
2495
+ .source {
2496
+ color: ${({theme:e})=>e.colors.textSecondary};
2497
+ font-style: italic;
2498
+ word-break: break-word;
2499
+ }
2500
+
2501
+ @media (max-width: 520px) {
2502
+ grid-template-columns: 110px 1fr;
2503
+ .source {
2504
+ grid-column: 2;
2505
+ }
2506
+ }
2507
+ `,AA=T.span`
2508
+ background-color: ${({level:e})=>l1[e]||"#7f8c8d"};
2509
+ color: white;
2510
+ padding: 2px 6px;
2511
+ border-radius: 4px;
2512
+ font-size: 0.8em;
2513
+ font-weight: bold;
2514
+ text-transform: uppercase;
2515
+ flex-shrink: 0;
2516
+ justify-self: start;
2517
+ `,LA=T.div`
2518
+ word-wrap: break-word;
2519
+ white-space: pre-wrap;
2520
+ `,_A=T.button`
2521
+ background: none;
2522
+ border: none;
2523
+ color: ${({theme:e})=>e.colors.primary};
2524
+ cursor: pointer;
2525
+ font-size: 0.8rem;
2526
+ margin-left: 8px;
2527
+ padding: 0;
2528
+ text-decoration: underline;
2529
+
2530
+ &:hover {
2531
+ opacity: 0.8;
2532
+ }
2533
+ `,zA=T.div`
2534
+ grid-column: 1 / -1;
2535
+ background-color: ${({theme:e})=>e.colors.background};
2536
+ border: 1px solid ${({theme:e})=>e.colors.border};
2537
+ border-radius: 6px;
2538
+ margin-top: 8px;
2539
+ padding: 5px;
2540
+ `,DA=T.pre`
2541
+ margin: 0;
2542
+ padding: 8px;
2543
+ font-family: 'Courier New', Courier, monospace;
2544
+ font-size: 0.9em;
2545
+ white-space: pre-wrap;
2546
+ word-wrap: break-word;
2547
+ max-height: 220px;
2548
+ overflow-y: auto;
2549
+ background-color: ${({theme:e})=>e.colors.inputBackground};
2550
+ border-radius: 3px;
2551
+
2552
+ &::-webkit-scrollbar {
2553
+ width: 8px;
2554
+ }
2555
+ &::-webkit-scrollbar-track {
2556
+ background: ${({theme:e})=>e.colors.background};
2557
+ }
2558
+ &::-webkit-scrollbar-thumb {
2559
+ background-color: ${({theme:e})=>e.colors.border};
2560
+ border-radius: 4px;
2561
+ }
2562
+ `,OA=T(ri)`
2563
+ align-items: center;
2564
+ `,FA=T(J0).attrs({as:"button"})`
2565
+ display: flex;
2566
+ align-items: center;
2567
+ gap: 8px;
2568
+ width: 100%;
2569
+ cursor: pointer;
2570
+ border: 1px solid transparent;
2571
+ text-align: left;
2572
+ &:hover {
2573
+ border-color: ${({theme:e})=>e.colors.border};
2574
+ }
2575
+ position: relative;
2576
+ outline: none;
2577
+ ${({flashing:e})=>e&&St`
2578
+ @keyframes flash {
2579
+ 0%,
2580
+ 100% {
2581
+ box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
2582
+ }
2583
+ 50% {
2584
+ box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.35);
2585
+ }
2586
+ }
2587
+ animation: flash 1.2s ease-in-out infinite;
2588
+ `}
2589
+ `,MA=T.span`
2590
+ background-color: ${({level:e})=>l1[e]||"#7f8c8d"};
2591
+ color: #fff;
2592
+ padding: 2px 6px;
2593
+ border-radius: 6px;
2594
+ font-size: 0.75em;
2595
+ text-transform: uppercase;
2596
+ flex-shrink: 0;
2597
+ `,BA=T.span`
2598
+ flex: 1;
2599
+ min-width: 0;
2600
+ white-space: nowrap;
2601
+ overflow: hidden;
2602
+ text-overflow: ellipsis;
2603
+ color: ${({theme:e})=>e.colors.text};
2604
+ `,UA=T.span`
2605
+ color: ${({theme:e})=>e.colors.textSecondary};
2606
+ font-size: 0.75em;
2607
+ flex-shrink: 0;
2608
+ `,VA=T.span`
2609
+ width: 8px;
2610
+ height: 8px;
2611
+ border-radius: 50%;
2612
+ background-color: ${({theme:e})=>e.colors.error};
2613
+ flex-shrink: 0;
2614
+ `,HA=T.button`
2615
+ background-color: ${({theme:e})=>e.colors.buttonBg};
2616
+ color: ${({theme:e})=>e.colors.buttonText};
2617
+ border: none;
2618
+ border-radius: 50%;
2619
+ width: 24px;
2620
+ height: 24px;
2621
+ font-size: 14px;
2622
+ line-height: 24px;
2623
+ text-align: center;
2624
+ cursor: pointer;
2625
+ margin-right: 8px;
2626
+ flex-shrink: 0;
2627
+ display: flex;
2628
+ align-items: center;
2629
+ justify-content: center;
2630
+
2631
+ &:hover {
2632
+ background-color: ${({theme:e})=>e.colors.buttonHoverBg};
2633
+ }
2634
+ `,WA=T(HA)`
2635
+ background-color: ${({theme:e})=>e.colors.error||"#dc3545"};
2636
+ color: white;
2637
+
2638
+ &:hover {
2639
+ background-color: ${({theme:e})=>e.colors.errorHover||"#c82333"};
2640
+ }
2641
+ `,qA=({iterationId:e})=>{const{terminalEvents:t,isTerminalOpen:r,toggleTerminal:i}=ml(),l=N.useRef({}),a=N.useMemo(()=>!e||!t[e]?[]:t[e],[e,t]),u=a[a.length-1];if(N.useEffect(()=>{r&&e&&u&&(l.current[e]=u.id)},[r,e,u]),!e||a.length===0)return null;const d=!r&&u&&l.current[e]!==u.id,f=()=>{i(),e&&u&&(l.current[e]=u.id)},p=async g=>{g.stopPropagation();try{await sx()}catch(m){console.error("Failed to interrupt command:",m),alert(`Failed to interrupt command: ${m instanceof Error?m.message:"Unknown error"}`)}};return y.jsxs(OA,{"data-type":"assistant",children:[y.jsx(WA,{onClick:p,title:"Interrupt current command",children:"⏹"}),u&&y.jsxs(FA,{flashing:d,onClick:f,"aria-label":`Toggle terminal. Last log: ${u.text}`,title:`Toggle terminal. Last log: ${u.text}`,children:[y.jsx(MA,{level:u.level,children:u.level}),y.jsxs(BA,{children:["Container log: ",u.text]}),y.jsx(UA,{children:new Date(u.timestamp).toLocaleTimeString()}),d&&y.jsx(VA,{"aria-hidden":"true"})]})]})},GA=({messages:e,currentQuestion:t,codegenOptions:r,onQuestionSubmit:i,onInterrupt:l,onPauseResume:a,executionStatus:u})=>{var re;const[d,f]=N.useState(()=>new Set),[p,g]=N.useState(()=>new Set),[m,v]=N.useState(()=>new Set),[w]=N.useState(null),k=N.useRef(null),S=N.useRef(null),[j,E]=N.useState(!1),[P,$]=N.useState(!0),[D,W]=N.useState(null),A=L$(e),H=u!=="idle"?(re=A[A.length-1])==null?void 0:re.iterationId:null,K=N.useCallback(()=>{if(!S.current)return!0;const{scrollTop:U,scrollHeight:de,clientHeight:ie}=S.current;return Math.abs(de-ie-U)<5||de<=ie},[]);N.useEffect(()=>{const U=S.current;if(!U)return;const de=()=>{const ie=K();$(ie),ie&&E(!1)};return U.addEventListener("scroll",de),()=>U.removeEventListener("scroll",de)},[K]),N.useEffect(()=>{P?se():e.length>0&&E(!0)},[A,P,e.length]),N.useEffect(()=>{const U=new Set(A.slice(0,-1).map(de=>de.iterationId));v(U)},[A.length]);const le=U=>{f(de=>{const ie=new Set(de);return ie.has(U)?ie.delete(U):ie.add(U),ie})},O=U=>{g(de=>{const ie=new Set(de);return ie.has(U)?ie.delete(U):ie.add(U),ie})},ee=U=>{var de;w&&((de=e.find(ie=>ie.id===w))==null?void 0:de.iterationId)===U||v(ie=>{const Q=new Set(ie);return Q.has(U)?Q.delete(U):Q.add(U),Q})},se=()=>{requestAnimationFrame(()=>{var U;(U=S.current)==null||U.scrollTo({top:S.current.scrollHeight,behavior:"smooth"})}),E(!1)},ne=async U=>{if(D===U)try{await iC(U),W(null)}catch(de){console.error("Failed to delete iteration:",de)}else W(U)};return y.jsxs(C$,{children:[y.jsxs(E$,{ref:S,children:[A.map((U,de)=>y.jsxs(j$,{children:[y.jsxs(T$,{children:[y.jsxs("div",{className:"title",onClick:()=>ee(U.iterationId),children:[m.has(U.iterationId)?y.jsx($$,{}):y.jsx(P$,{}),y.jsx("span",{children:U.iterationTitle??`Iteration ${U.iterationId}`})]}),y.jsxs("span",{className:"meta",children:[U.timestampStart.toLocaleString()," - ",U.timestampEnd.toLocaleString(),y.jsx(K0,{messages:U.messages}),U.iterationId!==H&&y.jsx(R$,{onClick:()=>ne(U.iterationId),title:D===U.iterationId?"Confirm deletion":"Delete iteration",children:D===U.iterationId?"🗑️ Confirm":"🗑️"})]})]}),y.jsxs(I$,{isCollapsed:m.has(U.iterationId),children:[U.conversationSummaries.length>0&&y.jsx(N$,{children:U.conversationSummaries.join(" ")}),U.messages.map((ie,Q)=>y.jsxs(Pt.Fragment,{children:[ie.type===Er.SYSTEM?y.jsx(b$,{message:ie,collapsedExecutions:p,toggleExecutionCollapse:O,visibleDataIds:d,toggleDataVisibility:le}):y.jsx(p$,{message:ie,visibleDataIds:d,toggleDataVisibility:le}),u!=="idle"&&t&&de===A.length-1&&Q===U.messages.length-1&&y.jsx(oy,{onSubmit:i,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u})]},ie.id)),de===A.length-1&&y.jsx(A$,{children:y.jsx(qA,{iterationId:H})})]})]},U.iterationId)),u!=="idle"&&t&&A.length>0&&A[A.length-1].messages.length===0&&y.jsx(oy,{onSubmit:i,onInterrupt:l,onPauseResume:a,question:t,codegenOptions:r,executionStatus:u}),y.jsx("div",{ref:k})]}),j&&!P&&y.jsx(_$,{onClick:se}),y.jsx(kA,{isVisible:u!=="idle"&&!t,onInterrupt:l,onPauseResume:a,executionStatus:u})]})},JA=({onSubmit:e,onUploadClick:t,onAiServiceChange:r,onInitialActionTypeChange:i,options:l,disabled:a})=>y.jsxs(QA,{children:[y.jsx(KA,{onClick:e,disabled:a,children:"Submit"}),y.jsx(s1,{onClick:t,title:"Upload Images",children:y.jsx(bx,{})}),y.jsx(oa,{value:l.aiService,onChange:r}),y.jsx(Pd,{value:l.initialActionType,onChange:u=>i(u||void 0)})]}),s1=T.button`
2642
+ color: ${({theme:e})=>e.colors.buttonText};
2643
+ background-color: ${({theme:e})=>e.colors.buttonBg};
2644
+ border: none;
2645
+ border-radius: 4px;
2646
+ padding: 10px 15px;
2647
+ font-size: 14px;
2648
+ cursor: pointer;
2649
+ transition: background-color 0.3s ease;
2650
+
2651
+ &:hover {
2652
+ background-color: ${({theme:e})=>e.colors.buttonHoverBg};
2653
+ }
2654
+
2655
+ &:disabled {
2656
+ background-color: ${({theme:e})=>e.colors.disabled};
2657
+ cursor: not-allowed;
2658
+ }
2659
+ `,KA=T(s1)`
2660
+ background-color: ${({theme:e})=>e.colors.primary};
2661
+ color: #ffffff;
2662
+
2663
+ &:hover {
2664
+ background-color: ${({theme:e})=>e.colors.primaryHover};
2665
+ }
2666
+
2667
+ &:disabled {
2668
+ background-color: ${({theme:e})=>e.colors.disabled};
2669
+ }
2670
+ `,QA=T.div`
2671
+ display: flex;
2672
+ justify-content: flex-start;
2673
+ margin-top: 10px;
2674
+ gap: 10px;
2675
+ `,YA=e=>{const{onSubmit:t,isExecuting:r,codegenOptions:i,onOptionsChange:l}=e,[a,u]=N.useState(""),[d,f]=N.useState([]),[p,g]=N.useState(null),m=N.useRef(null);if(r)return null;const v=()=>{(a.trim()||d.length>0)&&(t(a.trim(),d),u(""),f([]))},w=P=>{f(P)},k=()=>{var P;(P=m.current)==null||P.click()},S=P=>{const $=[...d,P];w($)},j=P=>{l({...i,aiService:P})},E=P=>{l({...i,initialActionType:P})};return y.jsxs(XA,{children:[y.jsx(ZA,{children:y.jsx(t1,{value:a,onChange:u,placeholder:"Enter your input here",onImagePaste:S})}),y.jsx(n1,{images:d,onImagesChange:w,error:p,setError:g,fileInputRef:m}),y.jsx(JA,{onSubmit:v,onUploadClick:k,onAiServiceChange:j,onInitialActionTypeChange:E,options:i,disabled:!a.trim()&&d.length===0})]})},XA=T.div`
2676
+ display: flex;
2677
+ flex-direction: column;
2678
+ background-color: ${e=>e.theme.colors.background};
2679
+ border-top: 1px solid ${e=>e.theme.colors.border};
2680
+ padding: 16px;
2681
+ width: 100%;
2682
+ box-sizing: border-box;
2683
+ `,ZA=T.div`
2684
+ margin-bottom: 16px;
2685
+ width: 100%;
2686
+ `,eL=({theme:e,toggleTheme:t})=>y.jsx(Tr,{onClick:t,"aria-label":`Switch to ${e==="light"?"dark":"light"} mode`,children:e==="light"?"🌙":"☀️"}),ay=pb`
2687
+ body {
2688
+ color: ${({theme:e})=>e.colors.text};
2689
+ font-family: Arial, sans-serif;
2690
+ margin: 0;
2691
+ padding: 0;
2692
+ background-color: ${({theme:e})=>e.colors.pageBackground};
2693
+ }
2694
+
2695
+ body::before {
2696
+ content: '';
2697
+ position: fixed;
2698
+ top: 0;
2699
+ left: 0;
2700
+ right: 0;
2701
+ bottom: 0;
2702
+ transition: all 0.3s ease;
2703
+ opacity: 0.1;
2704
+ background-image: url(${e=>e.theme.backgroundImage});
2705
+ background-size: cover;
2706
+ background-position: center;
2707
+ background-repeat: no-repeat;
2708
+ background-attachment: fixed;
2709
+ z-index: -1;
2710
+ }
2711
+ `;var Zi=(e=>(e.FOCUS="GENAICODE_FOCUS",e.BLUR="GENAICODE_BLUR",e.NEW_MESSAGES="GENAICODE_NEW_MESSAGES",e.RESET_NOTIFICATIONS="GENAICODE_RESET_NOTIFICATIONS",e))(Zi||{});const tL=new URL("/assets/wolf-bark-Bl17CX4O.mp3",import.meta.url);class nL{constructor(){wr(this,"context");wr(this,"bufferCache",new Map);wr(this,"initialized",!1);wr(this,"currentSources",[]);const t=window.AudioContext||window.webkitAudioContext;this.context=new t,this.initSounds()}async initSounds(){if(!this.initialized)try{const t=await this.loadAudioBuffer(tL.href);this.bufferCache.set("bark",t),this.initialized=!0}catch(t){console.error("Failed to initialize sounds:",t)}}async loadAudioBuffer(t){const i=await(await fetch(t)).arrayBuffer();return await this.context.decodeAudioData(i)}async play(t,r=.5){this.initialized||await this.initSounds();const i=this.bufferCache.get(t);if(!i){console.warn(`Sound "${t}" not found in cache`);return}try{this.context.state==="suspended"&&await this.context.resume();const l=this.context.createBufferSource();l.buffer=i;const a=this.context.createGain();a.gain.value=Math.max(0,Math.min(1,r)),l.connect(a),a.connect(this.context.destination),l.start(0),this.currentSources.push(l)}catch(l){console.error(`Failed to play sound "${t}":`,l)}}async playBark(t=.5){return this.play("bark",t)}stop(){this.currentSources.forEach(t=>t.stop())}dispose(){this.context.close(),this.bufferCache.clear(),this.initialized=!1}}const Xc=new nL,rL=({messages:e,muteNotifications:t=!1})=>{const r=N.useRef(e.length),i=N.useRef(document.hasFocus()),l=N.useRef(document.title),[a,u]=N.useState(0),d=window!==window.parent;N.useEffect(()=>(l.current=document.title,()=>{document.title=l.current}),[]);const f=p=>{if(d&&window.parent){const g={...p,source:"genaicode",origin:window.location.origin};window.parent.postMessage(g,"*")}};return N.useEffect(()=>{const p=()=>{const g=document.hasFocus()&&document.visibilityState==="visible";i.current=g,d?f({type:g?Zi.FOCUS:Zi.BLUR,payload:{isFocused:g,timestamp:Date.now()}}):g&&(document.title=l.current),g&&(u(0),document.title=l.current,Xc.stop())};return window.addEventListener("focus",p),window.addEventListener("blur",p),document.addEventListener("visibilitychange",p,!1),d&&p(),()=>{window.removeEventListener("focus",p),window.removeEventListener("blur",p),document.removeEventListener("visibilitychange",p,!1)}},[]),N.useEffect(()=>{if(!d)return;const p=g=>{if(g.source===window.parent)try{const{type:m,source:v}=g.data;if(v!=="genaicode")return;switch(m){case Zi.RESET_NOTIFICATIONS:u(0),Xc.stop();break}}catch(m){console.warn("Error handling notification message:",m)}};return window.addEventListener("message",p),()=>window.removeEventListener("message",p)},[]),N.useEffect(()=>{if(e.length>r.current){const p=e.length-r.current;if(d)f({type:Zi.NEW_MESSAGES,payload:{count:p,timestamp:Date.now()}});else if(!i.current){const g=a+p;u(g),document.title=`(${g}) ${l.current}`}!i.current&&!t&&Xc.playBark(.5)}r.current=e.length},[e,a,t]),null};async function oL(e){return[]}const iL=()=>{const e=ml();if(!e)return console.warn("SuggestionGenerator used outside of ChatStateProvider"),null;const{messages:t,executionStatus:r,currentQuestion:i,setSuggestions:l}=e;return N.useEffect(()=>{var f;if(!l)return;if(r!=="executing"||!i||i.confirmation){l([]);return}const a=t.length>0?(f=t[t.length-1])==null?void 0:f.iterationId:null;if(!a){l([]);return}t.filter(p=>p.iterationId===a).flatMap(p=>p.type===Er.SYSTEM&&"parts"in p&&Array.isArray(p.parts)?p.parts:[p]).length>0?(console.log("Attempting to generate suggestions using conversation context in SuggestionGenerator..."),oL().then(p=>{p.length>0?(console.log("Suggestions generated by SuggestionGenerator:",p),l(p)):(console.log("No suggestions generated or generation failed in SuggestionGenerator."),l([]))}).catch(p=>{console.error("Error generating suggestions in SuggestionGenerator:",p),l([])})):l([])},[r,i,t,l]),null},lL=T.div`
2712
+ position: fixed;
2713
+ bottom: 70px; /* Adjust as needed to not overlap input area */
2714
+ right: 20px;
2715
+ width: 400px;
2716
+ max-height: 50vh;
2717
+ background-color: ${({theme:e})=>e.colors.backgroundAlt};
2718
+ border: 1px solid ${({theme:e})=>e.colors.border};
2719
+ border-radius: 8px;
2720
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
2721
+ z-index: 1000;
2722
+ overflow: auto;
2723
+ padding: 15px;
2724
+ display: flex;
2725
+ flex-direction: column;
2726
+ `,sL=T.div`
2727
+ display: flex;
2728
+ justify-content: space-between;
2729
+ align-items: center;
2730
+ margin-bottom: 10px;
2731
+ padding-bottom: 10px;
2732
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
2733
+
2734
+ h3 {
2735
+ margin: 0;
2736
+ font-size: 1rem;
2737
+ color: ${({theme:e})=>e.colors.text};
2738
+ }
2739
+ `,aL=T.button`
2740
+ background: none;
2741
+ border: none;
2742
+ color: ${({theme:e})=>e.colors.text};
2743
+ font-size: 1.2rem;
2744
+ cursor: pointer;
2745
+ padding: 0;
2746
+ line-height: 1;
2747
+
2748
+ &:hover {
2749
+ color: ${({theme:e})=>e.colors.primary};
2750
+ }
2751
+ `,uL=T.div`
2752
+ flex-grow: 1;
2753
+ /* Basic layout for nodes and edges - consider using a graph library for actual rendering */
2754
+ display: flex;
2755
+ flex-direction: column;
2756
+ gap: 10px;
2757
+ `,cL=T.div`
2758
+ background-color: ${({theme:e})=>e.colors.inputBg};
2759
+ border: 1px solid ${({theme:e})=>e.colors.border};
2760
+ border-radius: 4px;
2761
+ padding: 8px 12px;
2762
+ font-size: 0.9rem;
2763
+ color: ${({theme:e})=>e.colors.inputText};
2764
+
2765
+ ${({isActive:e,theme:t})=>e&&St`
2766
+ border-color: ${t.colors.primary};
2767
+ box-shadow: 0 0 0 2px ${t.colors.primary}40;
2768
+ font-weight: bold;
2769
+ `}
2770
+
2771
+ strong {
2772
+ color: ${({theme:e})=>e.colors.primary};
2773
+ }
2774
+
2775
+ p {
2776
+ margin: 5px 0 0 0;
2777
+ font-size: 0.8rem;
2778
+ color: ${({theme:e})=>e.colors.textSecondary};
2779
+ }
2780
+ `,dL=T.div`
2781
+ font-size: 0.8rem;
2782
+ color: ${({theme:e})=>e.colors.textSecondary};
2783
+ padding-left: 15px;
2784
+ position: relative;
2785
+
2786
+ &::before {
2787
+ content: '->';
2788
+ position: absolute;
2789
+ left: 0;
2790
+ color: ${({theme:e})=>e.colors.primary};
2791
+ }
2792
+ `,fL=()=>{const{conversationGraphState:e,isGraphVisualiserOpen:t,toggleGraphVisualiser:r}=ml();if(!t||!(e!=null&&e.isActive))return null;const{nodes:i=[],edges:l=[],currentNodeId:a}=e;return y.jsxs(lL,{children:[y.jsxs(sL,{children:[y.jsx("h3",{children:"Conversation Flow"}),y.jsx(aL,{onClick:r,"aria-label":"Close visualiser",children:"×"})]}),y.jsxs(uL,{children:[y.jsx("h4",{children:"Nodes:"}),i.map(u=>y.jsxs(cL,{isActive:u.id===a,children:[y.jsxs("strong",{children:["ID: ",u.id]})," (",u.actionType,")",y.jsx("p",{children:u.instruction})]},u.id)),y.jsx("h4",{children:"Edges:"}),l.map((u,d)=>y.jsxs(dL,{children:[u.sourceNode," to ",u.targetNode,": ",u.instruction]},`${u.sourceNode}-${u.targetNode}-${d}`)),a&&y.jsxs("p",{children:[y.jsx("strong",{children:"Current Node:"})," ",a]})]})]})},pL=e=>{var t;for(let r=e.length-1;r>=0;r--){const i=e[r];if(i.type===Er.SYSTEM&&((t=i.data)!=null&&t.conversationGraphState))return i.data.conversationGraphState}return null},hL=()=>{const{messages:e,setConversationGraphState:t}=N.useContext(Zo);return N.useEffect(()=>{const r=pL(e);t(i=>JSON.stringify(i)!==JSON.stringify(r)?r:i)},[e,t]),null};T.div`
2793
+ position: fixed;
2794
+ bottom: 70px; /* Adjust as needed to not overlap input area */
2795
+ right: 20px;
2796
+ width: 400px;
2797
+ max-height: 50vh;
2798
+ background-color: ${({theme:e})=>e.colors.backgroundSecondary};
2799
+ border: 1px solid ${({theme:e})=>e.colors.border};
2800
+ border-radius: 8px;
2801
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
2802
+ z-index: 1000;
2803
+ overflow: auto;
2804
+ padding: 15px;
2805
+ display: flex;
2806
+ flex-direction: column;
2807
+ `;T.div`
2808
+ display: flex;
2809
+ justify-content: space-between;
2810
+ align-items: center;
2811
+ margin-bottom: 10px;
2812
+ padding-bottom: 10px;
2813
+ border-bottom: 1px solid ${({theme:e})=>e.colors.border};
2814
+
2815
+ h3 {
2816
+ margin: 0;
2817
+ font-size: 1rem;
2818
+ color: ${({theme:e})=>e.colors.text};
2819
+ }
2820
+ `;T.button`
2821
+ background: none;
2822
+ border: none;
2823
+ color: ${({theme:e})=>e.colors.text};
2824
+ font-size: 1.2rem;
2825
+ cursor: pointer;
2826
+ padding: 0;
2827
+ line-height: 1;
2828
+
2829
+ &:hover {
2830
+ color: ${({theme:e})=>e.colors.primary};
2831
+ }
2832
+ `;const uy=T.div`
2833
+ flex-grow: 1;
2834
+ display: flex;
2835
+ flex-direction: column;
2836
+ gap: 10px;
2837
+ `,$d={pending:e=>e.colors.textSecondary,"in-progress":e=>e.colors.info,completed:e=>e.colors.success,failed:e=>e.colors.error,skipped:e=>e.colors.warning},mL=T.div`
2838
+ background-color: ${({theme:e})=>e.colors.inputBg};
2839
+ border: 1px solid ${({theme:e})=>e.colors.border};
2840
+ border-left: 4px solid ${({state:e,theme:t})=>$d[e](t)};
2841
+ border-radius: 4px;
2842
+ padding: 8px 12px;
2843
+ font-size: 0.9rem;
2844
+ color: ${({theme:e})=>e.colors.inputText};
2845
+ transition: border-color 0.3s ease;
2846
+ display: flex;
2847
+ align-items: center;
2848
+
2849
+ strong {
2850
+ color: ${({state:e,theme:t})=>$d[e](t)};
2851
+ }
2852
+
2853
+ p {
2854
+ margin: 5px 0 0 0;
2855
+ font-size: 0.8rem;
2856
+ color: ${({theme:e})=>e.colors.textSecondary};
2857
+ }
2858
+ `,gL=T.div`
2859
+ font-weight: bold;
2860
+ text-transform: capitalize;
2861
+ color: ${({state:e,theme:t})=>$d[e](t)};
2862
+ margin-right: 10px;
2863
+ flex-shrink: 0;
2864
+ width: 80px; /* Align states */
2865
+ `,yL=T.div`
2866
+ display: flex;
2867
+ flex-direction: column;
2868
+ flex-grow: 1;
2869
+
2870
+ small {
2871
+ margin-top: 4px;
2872
+ font-size: 0.8em;
2873
+ color: ${({theme:e})=>e.colors.textSecondary};
2874
+ }
2875
+ `;T.div`
2876
+ font-size: 0.8rem;
2877
+ color: ${({theme:e})=>e.colors.textSecondary};
2878
+ margin-top: 5px;
2879
+ padding-left: 10px;
2880
+ border-left: 2px solid ${({theme:e})=>e.colors.border};
2881
+ `;const xL=({executionPlan:e,planUpdates:t})=>{if(!e||!e.length)return y.jsx(uy,{children:"No execution plan available."});const r=JSON.parse(JSON.stringify(e));for(const i of t){const l=r.find(a=>a.id===i.id);l&&(l.statusUpdate=i.statusUpdate,l.state=i.state)}return y.jsx(uy,{children:r.map(i=>y.jsxs(mL,{state:i.state??"pending",children:[y.jsx(gL,{state:i.state??"pending",children:i.state??"pending"}),y.jsxs(yL,{children:[y.jsxs("strong",{children:["ID: ",i.id]}),y.jsx("p",{children:i.description}),i.statusUpdate&&y.jsxs("small",{children:["Update: ",i.statusUpdate]})]})]},i.id))})},vL=5e3,wL=16,kL=({events:e,onClear:t})=>{const r=N.useRef(null),[i,l]=N.useState(!1),[a,u]=N.useState(new Set),[d,f]=N.useState("logs"),{toggleTerminal:p}=ml(),g=N.useRef(!0),{executionPlan:m,planUpdates:v}=N.useMemo(()=>{var $;const j=[...e].reverse().find(D=>{var W;return(W=D.data)==null?void 0:W.plan}),E=($=j==null?void 0:j.data)==null?void 0:$.plan,P=e.filter(D=>{var W,A,H;return((W=D.data)==null?void 0:W.statusUpdate)&&((A=D.data)==null?void 0:A.id)&&((H=D.data)==null?void 0:H.state)}).map(D=>D.data);return{executionPlan:E,planUpdates:P}},[e]);N.useLayoutEffect(()=>{r.current&&d==="logs"&&g.current&&setTimeout(()=>{r.current&&(r.current.scrollTop=r.current.scrollHeight)},100)},[e,d]);const w=async()=>{try{await sx()}catch(j){console.error("Failed to interrupt command:",j)}},k=e.length>vL?e.slice(-5e3):e,S=()=>{r.current&&(g.current=r.current.scrollHeight-r.current.scrollTop<=r.current.clientHeight+wL)};return y.jsxs(jA,{children:[y.jsxs(TA,{children:[y.jsx("h4",{children:"Container Task"}),y.jsxs(NA,{children:[y.jsx(sy,{active:d==="logs",onClick:()=>f("logs"),children:"Logs"}),y.jsx(sy,{active:d==="plan",onClick:()=>f("plan"),disabled:!m,children:"Execution Plan"})]}),y.jsxs(IA,{children:[d==="logs"&&y.jsxs(y.Fragment,{children:[y.jsx(Yc,{active:!1,onClick:t,"aria-label":"Clear terminal log",children:"Clear"}),y.jsx(Yc,{active:i,onClick:()=>l(!i),"aria-label":i?"Hide all payloads":"Show all payloads",children:"Payloads"})]}),y.jsx(Yc,{active:!1,onClick:w,"aria-label":"Interrupt current container command",children:"Interrupt"}),y.jsx(RA,{onClick:p,"aria-label":"Close terminal",children:"×"})]})]}),y.jsx(PA,{ref:r,onScroll:S,children:d==="logs"?k.map(j=>{const E=!!(j.data&&Object.keys(j.data).length>0),P=i||a.has(j.id);let $="";if(E)try{$=JSON.stringify(j.data,null,2)}catch{$=String(j.data)}return y.jsxs(Pt.Fragment,{children:[y.jsxs($A,{children:[y.jsx("span",{className:"timestamp",children:new Date(j.timestamp).toLocaleTimeString()}),y.jsx(AA,{level:j.level,children:j.level}),y.jsxs("span",{className:"source",children:["[",j.source,"]"]}),y.jsxs(LA,{children:[j.text,E&&y.jsx(_A,{onClick:()=>{const D=new Set(a);P?D.delete(j.id):D.add(j.id),u(D)},children:P?"Hide payload":"Show payload"})]})]}),E&&P&&y.jsx(zA,{children:y.jsx(DA,{children:$})})]},j.id)}):y.jsx(xL,{executionPlan:m,planUpdates:v})})]})};class bL{constructor(t=1e3,r){wr(this,"buffer",[]);wr(this,"maxBufferSize");wr(this,"callback");this.maxBufferSize=t,this.callback=r,this._wrapConsoleMethods()}_wrapConsoleMethods(){["log","info","warn","error","debug","trace","assert"].forEach(r=>{const i=console[r];console[r]=(...l)=>{this._addToBuffer(r,l),i.apply(console,l)}})}_formatMessage(t){return t.map(r=>{if(typeof r=="string")return r;try{return JSON.stringify(r)}catch{return String(r)}}).join(" ")}_addToBuffer(t,r){const i={timestamp:Date.now(),level:t,message:this._formatMessage(r),args:r};this.buffer.push(i),this.buffer.length>this.maxBufferSize&&this.buffer.shift(),this.callback(this.buffer).catch(l=>{console.warn.call(console,"ConsoleInterceptor: Failed to execute callback:",l)})}getBuffer(){return[...this.buffer]}clearBuffer(){this.buffer=[]}}const SL=()=>{const{messages:e,executionStatus:t,currentQuestion:r,theme:i,usage:l,codegenOptions:a,rcConfig:u,toggleTheme:d,setCodegenOptions:f,handlePauseExecution:p,handleResumeExecution:g,isTerminalOpen:m,terminalEvents:v,clearTerminalEvents:w}=N.useContext(Zo),{handleExecute:k,handleQuestionSubmit:S,handleInterrupt:j}=ej({codegenOptions:a}),E=t!=="idle"&&e.length>0?e[e.length-1].iterationId:null,P=E&&v[E]||[];N.useEffect(()=>{if(!(a!=null&&a.isDev))return;const W=1e3;new bL(W,async A=>{try{await oC("__console_logs",A)}catch(H){console.warn("Failed to push console logs to app context:",H)}}),console.log("GenAIcode: Console log interception enabled in dev mode.")},[a==null?void 0:a.isDev]);const $=()=>{t==="paused"?g():p()};if(!l||!a)return y.jsxs(Rm,{theme:i==="light"?Pm:$m,children:[y.jsx(ay,{}),y.jsx("div",{children:"Loading..."})," "]});const D=t!=="idle";return y.jsxs(Rm,{theme:i==="light"?Pm:$m,children:[y.jsx(ay,{}),y.jsx(BE,{themeToggle:y.jsx(eL,{theme:i,toggleTheme:d}),toggleTheme:d,chatInterface:y.jsx(GA,{messages:e,currentQuestion:r,codegenOptions:a,onQuestionSubmit:S,onInterrupt:j,onPauseResume:$,executionStatus:t}),inputArea:!D&&y.jsx(YA,{onSubmit:k,isExecuting:D,onInterrupt:j,codegenOptions:a,onOptionsChange:f}),usage:l}),m&&E&&y.jsx(kL,{events:P,onClear:()=>w(E)}),y.jsx(cC,{currentService:a.aiService}),y.jsx(EC,{}),y.jsx(sE,{}),y.jsx(mE,{rcConfig:u}),y.jsx(PE,{options:a,onOptionsChange:f}),y.jsx(rL,{messages:e,muteNotifications:a.muteNotifications}),y.jsx(fL,{}),y.jsx(hL,{})]})};function CL(){return y.jsxs(_E,{children:[y.jsx(iL,{})," ",y.jsx(SL,{})," "]})}const EL=document.getElementById("root"),jL=ck.createRoot(EL);jL.render(Pt.createElement(CL,null));