kalvyr 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/index-B0gafzcp.js +684 -0
- package/dist/assets/index-Bvfsf5R4.css +1 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/server/agent-alerts.mjs +139 -0
- package/server/cli-alerts.mjs +35 -7
- package/server/cli.mjs +11 -7
- package/server/dependency-watch.mjs +151 -0
- package/server/events.mjs +3 -0
- package/server/fail-loops.mjs +61 -0
- package/server/index.mjs +238 -39
- package/server/live-work.mjs +2 -1
- package/server/npm-registry.mjs +162 -0
- package/server/observed-work.mjs +39 -4
- package/server/pending-edits.mjs +66 -15
- package/server/service-settings.mjs +24 -0
- package/server/work-events.mjs +51 -6
- package/server/work-tracker.mjs +3 -3
- package/dist/assets/index-BPfIoWwU.js +0 -673
- package/dist/assets/index-W9O9n7kL.css +0 -1
|
@@ -0,0 +1,684 @@
|
|
|
1
|
+
var vm=Object.defineProperty;var km=(e,n,r)=>n in e?vm(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r;var _r=(e,n,r)=>km(e,typeof n!="symbol"?n+"":n,r);(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function a(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function wm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kc={exports:{}},Ks={},Qc={exports:{}},qe={};/**
|
|
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 v2;function jm(){if(v2)return qe;v2=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),u=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.iterator;function y(F){return F===null||typeof F!="object"?null:(F=g&&F[g]||F["@@iterator"],typeof F=="function"?F:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function j(F,W,T){this.props=F,this.context=W,this.refs=S,this.updater=T||v}j.prototype.isReactComponent={},j.prototype.setState=function(F,W){if(typeof F!="object"&&typeof F!="function"&&F!=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,F,W,"setState")},j.prototype.forceUpdate=function(F){this.updater.enqueueForceUpdate(this,F,"forceUpdate")};function b(){}b.prototype=j.prototype;function P(F,W,T){this.props=F,this.context=W,this.refs=S,this.updater=T||v}var C=P.prototype=new b;C.constructor=P,w(C,j.prototype),C.isPureReactComponent=!0;var M=Array.isArray,z=Object.prototype.hasOwnProperty,N={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function V(F,W,T){var ve,te={},le=null,je=null;if(W!=null)for(ve in W.ref!==void 0&&(je=W.ref),W.key!==void 0&&(le=""+W.key),W)z.call(W,ve)&&!L.hasOwnProperty(ve)&&(te[ve]=W[ve]);var we=arguments.length-2;if(we===1)te.children=T;else if(1<we){for(var ce=Array(we),ge=0;ge<we;ge++)ce[ge]=arguments[ge+2];te.children=ce}if(F&&F.defaultProps)for(ve in we=F.defaultProps,we)te[ve]===void 0&&(te[ve]=we[ve]);return{$$typeof:e,type:F,key:le,ref:je,props:te,_owner:N.current}}function K(F,W){return{$$typeof:e,type:F.type,key:W,ref:F.ref,props:F.props,_owner:F._owner}}function D(F){return typeof F=="object"&&F!==null&&F.$$typeof===e}function I(F){var W={"=":"=0",":":"=2"};return"$"+F.replace(/[=:]/g,function(T){return W[T]})}var B=/\/+/g;function H(F,W){return typeof F=="object"&&F!==null&&F.key!=null?I(""+F.key):W.toString(36)}function Y(F,W,T,ve,te){var le=typeof F;(le==="undefined"||le==="boolean")&&(F=null);var je=!1;if(F===null)je=!0;else switch(le){case"string":case"number":je=!0;break;case"object":switch(F.$$typeof){case e:case n:je=!0}}if(je)return je=F,te=te(je),F=ve===""?"."+H(je,0):ve,M(te)?(T="",F!=null&&(T=F.replace(B,"$&/")+"/"),Y(te,W,T,"",function(ge){return ge})):te!=null&&(D(te)&&(te=K(te,T+(!te.key||je&&je.key===te.key?"":(""+te.key).replace(B,"$&/")+"/")+F)),W.push(te)),1;if(je=0,ve=ve===""?".":ve+":",M(F))for(var we=0;we<F.length;we++){le=F[we];var ce=ve+H(le,we);je+=Y(le,W,T,ce,te)}else if(ce=y(F),typeof ce=="function")for(F=ce.call(F),we=0;!(le=F.next()).done;)le=le.value,ce=ve+H(le,we++),je+=Y(le,W,T,ce,te);else if(le==="object")throw W=String(F),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(F).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.");return je}function ne(F,W,T){if(F==null)return F;var ve=[],te=0;return Y(F,ve,"","",function(le){return W.call(T,le,te++)}),ve}function ie(F){if(F._status===-1){var W=F._result;W=W(),W.then(function(T){(F._status===0||F._status===-1)&&(F._status=1,F._result=T)},function(T){(F._status===0||F._status===-1)&&(F._status=2,F._result=T)}),F._status===-1&&(F._status=0,F._result=W)}if(F._status===1)return F._result.default;throw F._result}var re={current:null},$={transition:null},G={ReactCurrentDispatcher:re,ReactCurrentBatchConfig:$,ReactCurrentOwner:N};function A(){throw Error("act(...) is not supported in production builds of React.")}return qe.Children={map:ne,forEach:function(F,W,T){ne(F,function(){W.apply(this,arguments)},T)},count:function(F){var W=0;return ne(F,function(){W++}),W},toArray:function(F){return ne(F,function(W){return W})||[]},only:function(F){if(!D(F))throw Error("React.Children.only expected to receive a single React element child.");return F}},qe.Component=j,qe.Fragment=r,qe.Profiler=o,qe.PureComponent=P,qe.StrictMode=a,qe.Suspense=p,qe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,qe.act=A,qe.cloneElement=function(F,W,T){if(F==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+F+".");var ve=w({},F.props),te=F.key,le=F.ref,je=F._owner;if(W!=null){if(W.ref!==void 0&&(le=W.ref,je=N.current),W.key!==void 0&&(te=""+W.key),F.type&&F.type.defaultProps)var we=F.type.defaultProps;for(ce in W)z.call(W,ce)&&!L.hasOwnProperty(ce)&&(ve[ce]=W[ce]===void 0&&we!==void 0?we[ce]:W[ce])}var ce=arguments.length-2;if(ce===1)ve.children=T;else if(1<ce){we=Array(ce);for(var ge=0;ge<ce;ge++)we[ge]=arguments[ge+2];ve.children=we}return{$$typeof:e,type:F.type,key:te,ref:le,props:ve,_owner:je}},qe.createContext=function(F){return F={$$typeof:u,_currentValue:F,_currentValue2:F,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},F.Provider={$$typeof:c,_context:F},F.Consumer=F},qe.createElement=V,qe.createFactory=function(F){var W=V.bind(null,F);return W.type=F,W},qe.createRef=function(){return{current:null}},qe.forwardRef=function(F){return{$$typeof:h,render:F}},qe.isValidElement=D,qe.lazy=function(F){return{$$typeof:m,_payload:{_status:-1,_result:F},_init:ie}},qe.memo=function(F,W){return{$$typeof:f,type:F,compare:W===void 0?null:W}},qe.startTransition=function(F){var W=$.transition;$.transition={};try{F()}finally{$.transition=W}},qe.unstable_act=A,qe.useCallback=function(F,W){return re.current.useCallback(F,W)},qe.useContext=function(F){return re.current.useContext(F)},qe.useDebugValue=function(){},qe.useDeferredValue=function(F){return re.current.useDeferredValue(F)},qe.useEffect=function(F,W){return re.current.useEffect(F,W)},qe.useId=function(){return re.current.useId()},qe.useImperativeHandle=function(F,W,T){return re.current.useImperativeHandle(F,W,T)},qe.useInsertionEffect=function(F,W){return re.current.useInsertionEffect(F,W)},qe.useLayoutEffect=function(F,W){return re.current.useLayoutEffect(F,W)},qe.useMemo=function(F,W){return re.current.useMemo(F,W)},qe.useReducer=function(F,W,T){return re.current.useReducer(F,W,T)},qe.useRef=function(F){return re.current.useRef(F)},qe.useState=function(F){return re.current.useState(F)},qe.useSyncExternalStore=function(F,W,T){return re.current.useSyncExternalStore(F,W,T)},qe.useTransition=function(){return re.current.useTransition()},qe.version="18.3.1",qe}var k2;function r1(){return k2||(k2=1,Qc.exports=jm()),Qc.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.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 w2;function bm(){if(w2)return Ks;w2=1;var e=r1(),n=Symbol.for("react.element"),r=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function u(h,p,f){var m,g={},y=null,v=null;f!==void 0&&(y=""+f),p.key!==void 0&&(y=""+p.key),p.ref!==void 0&&(v=p.ref);for(m in p)a.call(p,m)&&!c.hasOwnProperty(m)&&(g[m]=p[m]);if(h&&h.defaultProps)for(m in p=h.defaultProps,p)g[m]===void 0&&(g[m]=p[m]);return{$$typeof:n,type:h,key:y,ref:v,props:g,_owner:o.current}}return Ks.Fragment=r,Ks.jsx=u,Ks.jsxs=u,Ks}var j2;function _m(){return j2||(j2=1,Kc.exports=bm()),Kc.exports}var i=_m(),_=r1(),Nl={},Zc={exports:{}},fn={},Gc={exports:{}},Yc={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.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 b2;function Sm(){return b2||(b2=1,(function(e){function n($,G){var A=$.length;$.push(G);e:for(;0<A;){var F=A-1>>>1,W=$[F];if(0<o(W,G))$[F]=G,$[A]=W,A=F;else break e}}function r($){return $.length===0?null:$[0]}function a($){if($.length===0)return null;var G=$[0],A=$.pop();if(A!==G){$[0]=A;e:for(var F=0,W=$.length,T=W>>>1;F<T;){var ve=2*(F+1)-1,te=$[ve],le=ve+1,je=$[le];if(0>o(te,A))le<W&&0>o(je,te)?($[F]=je,$[le]=A,F=le):($[F]=te,$[ve]=A,F=ve);else if(le<W&&0>o(je,A))$[F]=je,$[le]=A,F=le;else break e}}return G}function o($,G){var A=$.sortIndex-G.sortIndex;return A!==0?A:$.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,h=u.now();e.unstable_now=function(){return u.now()-h}}var p=[],f=[],m=1,g=null,y=3,v=!1,w=!1,S=!1,j=typeof setTimeout=="function"?setTimeout:null,b=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 C($){for(var G=r(f);G!==null;){if(G.callback===null)a(f);else if(G.startTime<=$)a(f),G.sortIndex=G.expirationTime,n(p,G);else break;G=r(f)}}function M($){if(S=!1,C($),!w)if(r(p)!==null)w=!0,ie(z);else{var G=r(f);G!==null&&re(M,G.startTime-$)}}function z($,G){w=!1,S&&(S=!1,b(V),V=-1),v=!0;var A=y;try{for(C(G),g=r(p);g!==null&&(!(g.expirationTime>G)||$&&!I());){var F=g.callback;if(typeof F=="function"){g.callback=null,y=g.priorityLevel;var W=F(g.expirationTime<=G);G=e.unstable_now(),typeof W=="function"?g.callback=W:g===r(p)&&a(p),C(G)}else a(p);g=r(p)}if(g!==null)var T=!0;else{var ve=r(f);ve!==null&&re(M,ve.startTime-G),T=!1}return T}finally{g=null,y=A,v=!1}}var N=!1,L=null,V=-1,K=5,D=-1;function I(){return!(e.unstable_now()-D<K)}function B(){if(L!==null){var $=e.unstable_now();D=$;var G=!0;try{G=L(!0,$)}finally{G?H():(N=!1,L=null)}}else N=!1}var H;if(typeof P=="function")H=function(){P(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,ne=Y.port2;Y.port1.onmessage=B,H=function(){ne.postMessage(null)}}else H=function(){j(B,0)};function ie($){L=$,N||(N=!0,H())}function re($,G){V=j(function(){$(e.unstable_now())},G)}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($){$.callback=null},e.unstable_continueExecution=function(){w||v||(w=!0,ie(z))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_getFirstCallbackNode=function(){return r(p)},e.unstable_next=function($){switch(y){case 1:case 2:case 3:var G=3;break;default:G=y}var A=y;y=G;try{return $()}finally{y=A}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,G){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var A=y;y=$;try{return G()}finally{y=A}},e.unstable_scheduleCallback=function($,G,A){var F=e.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?F+A:F):A=F,$){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=A+W,$={id:m++,callback:G,priorityLevel:$,startTime:A,expirationTime:W,sortIndex:-1},A>F?($.sortIndex=A,n(f,$),r(p)===null&&$===r(f)&&(S?(b(V),V=-1):S=!0,re(M,A-F))):($.sortIndex=W,n(p,$),w||v||(w=!0,ie(z))),$},e.unstable_shouldYield=I,e.unstable_wrapCallback=function($){var G=y;return function(){var A=y;y=G;try{return $.apply(this,arguments)}finally{y=A}}}})(Yc)),Yc}var _2;function Nm(){return _2||(_2=1,Gc.exports=Sm()),Gc.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var S2;function Cm(){if(S2)return fn;S2=1;var e=r1(),n=Nm();function r(t){for(var s="https://reactjs.org/docs/error-decoder.html?invariant="+t,l=1;l<arguments.length;l++)s+="&args[]="+encodeURIComponent(arguments[l]);return"Minified React error #"+t+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,o={};function c(t,s){u(t,s),u(t+"Capture",s)}function u(t,s){for(o[t]=s,t=0;t<s.length;t++)a.add(s[t])}var h=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,f=/^[: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]*$/,m={},g={};function y(t){return p.call(g,t)?!0:p.call(m,t)?!1:f.test(t)?g[t]=!0:(m[t]=!0,!1)}function v(t,s,l,d){if(l!==null&&l.type===0)return!1;switch(typeof s){case"function":case"symbol":return!0;case"boolean":return d?!1:l!==null?!l.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function w(t,s,l,d){if(s===null||typeof s>"u"||v(t,s,l,d))return!0;if(d)return!1;if(l!==null)switch(l.type){case 3:return!s;case 4:return s===!1;case 5:return isNaN(s);case 6:return isNaN(s)||1>s}return!1}function S(t,s,l,d,x,k,E){this.acceptsBooleans=s===2||s===3||s===4,this.attributeName=d,this.attributeNamespace=x,this.mustUseProperty=l,this.propertyName=t,this.type=s,this.sanitizeURL=k,this.removeEmptyString=E}var j={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){j[t]=new S(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var s=t[0];j[s]=new S(s,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){j[t]=new S(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){j[t]=new S(t,2,!1,t,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(t){j[t]=new S(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){j[t]=new S(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){j[t]=new S(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){j[t]=new S(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){j[t]=new S(t,5,!1,t.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function P(t){return t[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(t){var s=t.replace(b,P);j[s]=new S(s,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var s=t.replace(b,P);j[s]=new S(s,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var s=t.replace(b,P);j[s]=new S(s,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){j[t]=new S(t,1,!1,t.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(t){j[t]=new S(t,1,!1,t.toLowerCase(),null,!0,!0)});function C(t,s,l,d){var x=j.hasOwnProperty(s)?j[s]:null;(x!==null?x.type!==0:d||!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(w(s,l,x,d)&&(l=null),d||x===null?y(s)&&(l===null?t.removeAttribute(s):t.setAttribute(s,""+l)):x.mustUseProperty?t[x.propertyName]=l===null?x.type===3?!1:"":l:(s=x.attributeName,d=x.attributeNamespace,l===null?t.removeAttribute(s):(x=x.type,l=x===3||x===4&&l===!0?"":""+l,d?t.setAttributeNS(d,s,l):t.setAttribute(s,l))))}var M=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,z=Symbol.for("react.element"),N=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),V=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),I=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),ie=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),$=Symbol.iterator;function G(t){return t===null||typeof t!="object"?null:(t=$&&t[$]||t["@@iterator"],typeof t=="function"?t:null)}var A=Object.assign,F;function W(t){if(F===void 0)try{throw Error()}catch(l){var s=l.stack.trim().match(/\n( *(at )?)/);F=s&&s[1]||""}return`
|
|
34
|
+
`+F+t}var T=!1;function ve(t,s){if(!t||T)return"";T=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(s)if(s=function(){throw Error()},Object.defineProperty(s.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(s,[])}catch(X){var d=X}Reflect.construct(t,[],s)}else{try{s.call()}catch(X){d=X}t.call(s.prototype)}else{try{throw Error()}catch(X){d=X}t()}}catch(X){if(X&&d&&typeof X.stack=="string"){for(var x=X.stack.split(`
|
|
35
|
+
`),k=d.stack.split(`
|
|
36
|
+
`),E=x.length-1,R=k.length-1;1<=E&&0<=R&&x[E]!==k[R];)R--;for(;1<=E&&0<=R;E--,R--)if(x[E]!==k[R]){if(E!==1||R!==1)do if(E--,R--,0>R||x[E]!==k[R]){var O=`
|
|
37
|
+
`+x[E].replace(" at new "," at ");return t.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",t.displayName)),O}while(1<=E&&0<=R);break}}}finally{T=!1,Error.prepareStackTrace=l}return(t=t?t.displayName||t.name:"")?W(t):""}function te(t){switch(t.tag){case 5:return W(t.type);case 16:return W("Lazy");case 13:return W("Suspense");case 19:return W("SuspenseList");case 0:case 2:case 15:return t=ve(t.type,!1),t;case 11:return t=ve(t.type.render,!1),t;case 1:return t=ve(t.type,!0),t;default:return""}}function le(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case L:return"Fragment";case N:return"Portal";case K:return"Profiler";case V:return"StrictMode";case H:return"Suspense";case Y:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case I:return(t.displayName||"Context")+".Consumer";case D:return(t._context.displayName||"Context")+".Provider";case B:var s=t.render;return t=t.displayName,t||(t=s.displayName||s.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ne:return s=t.displayName||null,s!==null?s:le(t.type)||"Memo";case ie:s=t._payload,t=t._init;try{return le(t(s))}catch{}}return null}function je(t){var s=t.type;switch(t.tag){case 24:return"Cache";case 9:return(s.displayName||"Context")+".Consumer";case 10:return(s._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=s.render,t=t.displayName||t.name||"",s.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return s;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return le(s);case 8:return s===V?"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 s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s}return null}function we(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ce(t){var s=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function ge(t){var s=ce(t)?"checked":"value",l=Object.getOwnPropertyDescriptor(t.constructor.prototype,s),d=""+t[s];if(!t.hasOwnProperty(s)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var x=l.get,k=l.set;return Object.defineProperty(t,s,{configurable:!0,get:function(){return x.call(this)},set:function(E){d=""+E,k.call(this,E)}}),Object.defineProperty(t,s,{enumerable:l.enumerable}),{getValue:function(){return d},setValue:function(E){d=""+E},stopTracking:function(){t._valueTracker=null,delete t[s]}}}}function ee(t){t._valueTracker||(t._valueTracker=ge(t))}function Ae(t){if(!t)return!1;var s=t._valueTracker;if(!s)return!0;var l=s.getValue(),d="";return t&&(d=ce(t)?t.checked?"true":"false":t.value),t=d,t!==l?(s.setValue(t),!0):!1}function Ze(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function mt(t,s){var l=s.checked;return A({},s,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:l??t._wrapperState.initialChecked})}function tt(t,s){var l=s.defaultValue==null?"":s.defaultValue,d=s.checked!=null?s.checked:s.defaultChecked;l=we(s.value!=null?s.value:l),t._wrapperState={initialChecked:d,initialValue:l,controlled:s.type==="checkbox"||s.type==="radio"?s.checked!=null:s.value!=null}}function xt(t,s){s=s.checked,s!=null&&C(t,"checked",s,!1)}function Xt(t,s){xt(t,s);var l=we(s.value),d=s.type;if(l!=null)d==="number"?(l===0&&t.value===""||t.value!=l)&&(t.value=""+l):t.value!==""+l&&(t.value=""+l);else if(d==="submit"||d==="reset"){t.removeAttribute("value");return}s.hasOwnProperty("value")?Jt(t,s.type,l):s.hasOwnProperty("defaultValue")&&Jt(t,s.type,we(s.defaultValue)),s.checked==null&&s.defaultChecked!=null&&(t.defaultChecked=!!s.defaultChecked)}function zn(t,s,l){if(s.hasOwnProperty("value")||s.hasOwnProperty("defaultValue")){var d=s.type;if(!(d!=="submit"&&d!=="reset"||s.value!==void 0&&s.value!==null))return;s=""+t._wrapperState.initialValue,l||s===t.value||(t.value=s),t.defaultValue=s}l=t.name,l!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,l!==""&&(t.name=l)}function Jt(t,s,l){(s!=="number"||Ze(t.ownerDocument)!==t)&&(l==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+l&&(t.defaultValue=""+l))}var Lt=Array.isArray;function rt(t,s,l,d){if(t=t.options,s){s={};for(var x=0;x<l.length;x++)s["$"+l[x]]=!0;for(l=0;l<t.length;l++)x=s.hasOwnProperty("$"+t[l].value),t[l].selected!==x&&(t[l].selected=x),x&&d&&(t[l].defaultSelected=!0)}else{for(l=""+we(l),s=null,x=0;x<t.length;x++){if(t[x].value===l){t[x].selected=!0,d&&(t[x].defaultSelected=!0);return}s!==null||t[x].disabled||(s=t[x])}s!==null&&(s.selected=!0)}}function Et(t,s){if(s.dangerouslySetInnerHTML!=null)throw Error(r(91));return A({},s,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function It(t,s){var l=s.value;if(l==null){if(l=s.children,s=s.defaultValue,l!=null){if(s!=null)throw Error(r(92));if(Lt(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),l=s}t._wrapperState={initialValue:we(l)}}function Rt(t,s){var l=we(s.value),d=we(s.defaultValue);l!=null&&(l=""+l,l!==t.value&&(t.value=l),s.defaultValue==null&&t.defaultValue!==l&&(t.defaultValue=l)),d!=null&&(t.defaultValue=""+d)}function Dt(t){var s=t.textContent;s===t._wrapperState.initialValue&&s!==""&&s!==null&&(t.value=s)}function ln(t){switch(t){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 J(t,s){return t==null||t==="http://www.w3.org/1999/xhtml"?ln(s):t==="http://www.w3.org/2000/svg"&&s==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var he,Se=(function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(s,l,d,x){MSApp.execUnsafeLocalFunction(function(){return t(s,l,d,x)})}:t})(function(t,s){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=s;else{for(he=he||document.createElement("div"),he.innerHTML="<svg>"+s.valueOf().toString()+"</svg>",s=he.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;s.firstChild;)t.appendChild(s.firstChild)}});function ze(t,s){if(s){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=s;return}}t.textContent=s}var Qe={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},Ke=["Webkit","ms","Moz","O"];Object.keys(Qe).forEach(function(t){Ke.forEach(function(s){s=s+t.charAt(0).toUpperCase()+t.substring(1),Qe[s]=Qe[t]})});function lt(t,s,l){return s==null||typeof s=="boolean"||s===""?"":l||typeof s!="number"||s===0||Qe.hasOwnProperty(t)&&Qe[t]?(""+s).trim():s+"px"}function yt(t,s){t=t.style;for(var l in s)if(s.hasOwnProperty(l)){var d=l.indexOf("--")===0,x=lt(l,s[l],d);l==="float"&&(l="cssFloat"),d?t.setProperty(l,x):t[l]=x}}var en=A({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 Vt(t,s){if(s){if(en[t]&&(s.children!=null||s.dangerouslySetInnerHTML!=null))throw Error(r(137,t));if(s.dangerouslySetInnerHTML!=null){if(s.children!=null)throw Error(r(60));if(typeof s.dangerouslySetInnerHTML!="object"||!("__html"in s.dangerouslySetInnerHTML))throw Error(r(61))}if(s.style!=null&&typeof s.style!="object")throw Error(r(62))}}function Ft(t,s){if(t.indexOf("-")===-1)return typeof s.is=="string";switch(t){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 se=null;function Be(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ie=null,Ve=null,Fe=null;function Xe(t){if(t=Ps(t)){if(typeof Ie!="function")throw Error(r(280));var s=t.stateNode;s&&(s=Ba(s),Ie(t.stateNode,t.type,s))}}function vt(t){Ve?Fe?Fe.push(t):Fe=[t]:Ve=t}function Q(){if(Ve){var t=Ve,s=Fe;if(Fe=Ve=null,Xe(t),s)for(t=0;t<s.length;t++)Xe(s[t])}}function oe(t,s){return t(s)}function me(){}var ye=!1;function Me(t,s,l){if(ye)return t(s,l);ye=!0;try{return oe(t,s,l)}finally{ye=!1,(Ve!==null||Fe!==null)&&(me(),Q())}}function Re(t,s){var l=t.stateNode;if(l===null)return null;var d=Ba(l);if(d===null)return null;l=d[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(t=t.type,d=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!d;break e;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(r(231,s,typeof l));return l}var De=!1;if(h)try{var St={};Object.defineProperty(St,"passive",{get:function(){De=!0}}),window.addEventListener("test",St,St),window.removeEventListener("test",St,St)}catch{De=!1}function yn(t,s,l,d,x,k,E,R,O){var X=Array.prototype.slice.call(arguments,3);try{s.apply(l,X)}catch(de){this.onError(de)}}var wt=!1,Mn=null,Nr=!1,Jn=null,po={onError:function(t){wt=!0,Mn=t}};function ds(t,s,l,d,x,k,E,R,O){wt=!1,Mn=null,yn.apply(po,arguments)}function vn(t,s,l,d,x,k,E,R,O){if(ds.apply(this,arguments),wt){if(wt){var X=Mn;wt=!1,Mn=null}else throw Error(r(198));Nr||(Nr=!0,Jn=X)}}function on(t){var s=t,l=t;if(t.alternate)for(;s.return;)s=s.return;else{t=s;do s=t,(s.flags&4098)!==0&&(l=s.return),t=s.return;while(t)}return s.tag===3?l:null}function Cr(t){if(t.tag===13){var s=t.memoizedState;if(s===null&&(t=t.alternate,t!==null&&(s=t.memoizedState)),s!==null)return s.dehydrated}return null}function Er(t){if(on(t)!==t)throw Error(r(188))}function ya(t){var s=t.alternate;if(!s){if(s=on(t),s===null)throw Error(r(188));return s!==t?null:t}for(var l=t,d=s;;){var x=l.return;if(x===null)break;var k=x.alternate;if(k===null){if(d=x.return,d!==null){l=d;continue}break}if(x.child===k.child){for(k=x.child;k;){if(k===l)return Er(x),t;if(k===d)return Er(x),s;k=k.sibling}throw Error(r(188))}if(l.return!==d.return)l=x,d=k;else{for(var E=!1,R=x.child;R;){if(R===l){E=!0,l=x,d=k;break}if(R===d){E=!0,d=x,l=k;break}R=R.sibling}if(!E){for(R=k.child;R;){if(R===l){E=!0,l=k,d=x;break}if(R===d){E=!0,d=k,l=x;break}R=R.sibling}if(!E)throw Error(r(189))}}if(l.alternate!==d)throw Error(r(190))}if(l.tag!==3)throw Error(r(188));return l.stateNode.current===l?t:s}function va(t){return t=ya(t),t!==null?ka(t):null}function ka(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var s=ka(t);if(s!==null)return s;t=t.sibling}return null}var wa=n.unstable_scheduleCallback,hs=n.unstable_cancelCallback,Bn=n.unstable_shouldYield,ke=n.unstable_requestPaint,Oe=n.unstable_now,tn=n.unstable_getCurrentPriorityLevel,er=n.unstable_ImmediatePriority,ps=n.unstable_UserBlockingPriority,Wt=n.unstable_NormalPriority,tr=n.unstable_LowPriority,ni=n.unstable_IdlePriority,ja=null,nr=null;function L3(t){if(nr&&typeof nr.onCommitFiberRoot=="function")try{nr.onCommitFiberRoot(ja,t,void 0,(t.current.flags&128)===128)}catch{}}var Hn=Math.clz32?Math.clz32:D3,I3=Math.log,R3=Math.LN2;function D3(t){return t>>>=0,t===0?32:31-(I3(t)/R3|0)|0}var ba=64,_a=4194304;function fs(t){switch(t&-t){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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Sa(t,s){var l=t.pendingLanes;if(l===0)return 0;var d=0,x=t.suspendedLanes,k=t.pingedLanes,E=l&268435455;if(E!==0){var R=E&~x;R!==0?d=fs(R):(k&=E,k!==0&&(d=fs(k)))}else E=l&~x,E!==0?d=fs(E):k!==0&&(d=fs(k));if(d===0)return 0;if(s!==0&&s!==d&&(s&x)===0&&(x=d&-d,k=s&-s,x>=k||x===16&&(k&4194240)!==0))return s;if((d&4)!==0&&(d|=l&16),s=t.entangledLanes,s!==0)for(t=t.entanglements,s&=d;0<s;)l=31-Hn(s),x=1<<l,d|=t[l],s&=~x;return d}function F3(t,s){switch(t){case 1:case 2:case 4:return s+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 s+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 $3(t,s){for(var l=t.suspendedLanes,d=t.pingedLanes,x=t.expirationTimes,k=t.pendingLanes;0<k;){var E=31-Hn(k),R=1<<E,O=x[E];O===-1?((R&l)===0||(R&d)!==0)&&(x[E]=F3(R,s)):O<=s&&(t.expiredLanes|=R),k&=~R}}function fo(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function G1(){var t=ba;return ba<<=1,(ba&4194240)===0&&(ba=64),t}function mo(t){for(var s=[],l=0;31>l;l++)s.push(t);return s}function ms(t,s,l){t.pendingLanes|=s,s!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,s=31-Hn(s),t[s]=l}function O3(t,s){var l=t.pendingLanes&~s;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=s,t.mutableReadLanes&=s,t.entangledLanes&=s,s=t.entanglements;var d=t.eventTimes;for(t=t.expirationTimes;0<l;){var x=31-Hn(l),k=1<<x;s[x]=0,d[x]=-1,t[x]=-1,l&=~k}}function go(t,s){var l=t.entangledLanes|=s;for(t=t.entanglements;l;){var d=31-Hn(l),x=1<<d;x&s|t[d]&s&&(t[d]|=s),l&=~x}}var nt=0;function Y1(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var X1,xo,J1,e0,t0,yo=!1,Na=[],zr=null,Mr=null,Ar=null,gs=new Map,xs=new Map,Pr=[],B3="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 n0(t,s){switch(t){case"focusin":case"focusout":zr=null;break;case"dragenter":case"dragleave":Mr=null;break;case"mouseover":case"mouseout":Ar=null;break;case"pointerover":case"pointerout":gs.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":xs.delete(s.pointerId)}}function ys(t,s,l,d,x,k){return t===null||t.nativeEvent!==k?(t={blockedOn:s,domEventName:l,eventSystemFlags:d,nativeEvent:k,targetContainers:[x]},s!==null&&(s=Ps(s),s!==null&&xo(s)),t):(t.eventSystemFlags|=d,s=t.targetContainers,x!==null&&s.indexOf(x)===-1&&s.push(x),t)}function H3(t,s,l,d,x){switch(s){case"focusin":return zr=ys(zr,t,s,l,d,x),!0;case"dragenter":return Mr=ys(Mr,t,s,l,d,x),!0;case"mouseover":return Ar=ys(Ar,t,s,l,d,x),!0;case"pointerover":var k=x.pointerId;return gs.set(k,ys(gs.get(k)||null,t,s,l,d,x)),!0;case"gotpointercapture":return k=x.pointerId,xs.set(k,ys(xs.get(k)||null,t,s,l,d,x)),!0}return!1}function r0(t){var s=ri(t.target);if(s!==null){var l=on(s);if(l!==null){if(s=l.tag,s===13){if(s=Cr(l),s!==null){t.blockedOn=s,t0(t.priority,function(){J1(l)});return}}else if(s===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ca(t){if(t.blockedOn!==null)return!1;for(var s=t.targetContainers;0<s.length;){var l=ko(t.domEventName,t.eventSystemFlags,s[0],t.nativeEvent);if(l===null){l=t.nativeEvent;var d=new l.constructor(l.type,l);se=d,l.target.dispatchEvent(d),se=null}else return s=Ps(l),s!==null&&xo(s),t.blockedOn=l,!1;s.shift()}return!0}function i0(t,s,l){Ca(t)&&l.delete(s)}function U3(){yo=!1,zr!==null&&Ca(zr)&&(zr=null),Mr!==null&&Ca(Mr)&&(Mr=null),Ar!==null&&Ca(Ar)&&(Ar=null),gs.forEach(i0),xs.forEach(i0)}function vs(t,s){t.blockedOn===s&&(t.blockedOn=null,yo||(yo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,U3)))}function ks(t){function s(x){return vs(x,t)}if(0<Na.length){vs(Na[0],t);for(var l=1;l<Na.length;l++){var d=Na[l];d.blockedOn===t&&(d.blockedOn=null)}}for(zr!==null&&vs(zr,t),Mr!==null&&vs(Mr,t),Ar!==null&&vs(Ar,t),gs.forEach(s),xs.forEach(s),l=0;l<Pr.length;l++)d=Pr[l],d.blockedOn===t&&(d.blockedOn=null);for(;0<Pr.length&&(l=Pr[0],l.blockedOn===null);)r0(l),l.blockedOn===null&&Pr.shift()}var Mi=M.ReactCurrentBatchConfig,Ea=!0;function V3(t,s,l,d){var x=nt,k=Mi.transition;Mi.transition=null;try{nt=1,vo(t,s,l,d)}finally{nt=x,Mi.transition=k}}function W3(t,s,l,d){var x=nt,k=Mi.transition;Mi.transition=null;try{nt=4,vo(t,s,l,d)}finally{nt=x,Mi.transition=k}}function vo(t,s,l,d){if(Ea){var x=ko(t,s,l,d);if(x===null)Do(t,s,d,za,l),n0(t,d);else if(H3(x,t,s,l,d))d.stopPropagation();else if(n0(t,d),s&4&&-1<B3.indexOf(t)){for(;x!==null;){var k=Ps(x);if(k!==null&&X1(k),k=ko(t,s,l,d),k===null&&Do(t,s,d,za,l),k===x)break;x=k}x!==null&&d.stopPropagation()}else Do(t,s,d,null,l)}}var za=null;function ko(t,s,l,d){if(za=null,t=Be(d),t=ri(t),t!==null)if(s=on(t),s===null)t=null;else if(l=s.tag,l===13){if(t=Cr(s),t!==null)return t;t=null}else if(l===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;t=null}else s!==t&&(t=null);return za=t,null}function s0(t){switch(t){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(tn()){case er:return 1;case ps:return 4;case Wt:case tr:return 16;case ni:return 536870912;default:return 16}default:return 16}}var Tr=null,wo=null,Ma=null;function a0(){if(Ma)return Ma;var t,s=wo,l=s.length,d,x="value"in Tr?Tr.value:Tr.textContent,k=x.length;for(t=0;t<l&&s[t]===x[t];t++);var E=l-t;for(d=1;d<=E&&s[l-d]===x[k-d];d++);return Ma=x.slice(t,1<d?1-d:void 0)}function Aa(t){var s=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&s===13&&(t=13)):t=s,t===10&&(t=13),32<=t||t===13?t:0}function Pa(){return!0}function l0(){return!1}function kn(t){function s(l,d,x,k,E){this._reactName=l,this._targetInst=x,this.type=d,this.nativeEvent=k,this.target=E,this.currentTarget=null;for(var R in t)t.hasOwnProperty(R)&&(l=t[R],this[R]=l?l(k):k[R]);return this.isDefaultPrevented=(k.defaultPrevented!=null?k.defaultPrevented:k.returnValue===!1)?Pa:l0,this.isPropagationStopped=l0,this}return A(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Pa)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Pa)},persist:function(){},isPersistent:Pa}),s}var Ai={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jo=kn(Ai),ws=A({},Ai,{view:0,detail:0}),q3=kn(ws),bo,_o,js,Ta=A({},ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:No,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==js&&(js&&t.type==="mousemove"?(bo=t.screenX-js.screenX,_o=t.screenY-js.screenY):_o=bo=0,js=t),bo)},movementY:function(t){return"movementY"in t?t.movementY:_o}}),o0=kn(Ta),K3=A({},Ta,{dataTransfer:0}),Q3=kn(K3),Z3=A({},ws,{relatedTarget:0}),So=kn(Z3),G3=A({},Ai,{animationName:0,elapsedTime:0,pseudoElement:0}),Y3=kn(G3),X3=A({},Ai,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),J3=kn(X3),e4=A({},Ai,{data:0}),c0=kn(e4),t4={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},n4={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"},r4={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i4(t){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(t):(t=r4[t])?!!s[t]:!1}function No(){return i4}var s4=A({},ws,{key:function(t){if(t.key){var s=t4[t.key]||t.key;if(s!=="Unidentified")return s}return t.type==="keypress"?(t=Aa(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?n4[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:No,charCode:function(t){return t.type==="keypress"?Aa(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Aa(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),a4=kn(s4),l4=A({},Ta,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),u0=kn(l4),o4=A({},ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:No}),c4=kn(o4),u4=A({},Ai,{propertyName:0,elapsedTime:0,pseudoElement:0}),d4=kn(u4),h4=A({},Ta,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),p4=kn(h4),f4=[9,13,27,32],Co=h&&"CompositionEvent"in window,bs=null;h&&"documentMode"in document&&(bs=document.documentMode);var m4=h&&"TextEvent"in window&&!bs,d0=h&&(!Co||bs&&8<bs&&11>=bs),h0=" ",p0=!1;function f0(t,s){switch(t){case"keyup":return f4.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function m0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Pi=!1;function g4(t,s){switch(t){case"compositionend":return m0(s);case"keypress":return s.which!==32?null:(p0=!0,h0);case"textInput":return t=s.data,t===h0&&p0?null:t;default:return null}}function x4(t,s){if(Pi)return t==="compositionend"||!Co&&f0(t,s)?(t=a0(),Ma=wo=Tr=null,Pi=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return d0&&s.locale!=="ko"?null:s.data;default:return null}}var y4={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 g0(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s==="input"?!!y4[t.type]:s==="textarea"}function x0(t,s,l,d){vt(d),s=Fa(s,"onChange"),0<s.length&&(l=new jo("onChange","change",null,l,d),t.push({event:l,listeners:s}))}var _s=null,Ss=null;function v4(t){I0(t,0)}function La(t){var s=Di(t);if(Ae(s))return t}function k4(t,s){if(t==="change")return s}var y0=!1;if(h){var Eo;if(h){var zo="oninput"in document;if(!zo){var v0=document.createElement("div");v0.setAttribute("oninput","return;"),zo=typeof v0.oninput=="function"}Eo=zo}else Eo=!1;y0=Eo&&(!document.documentMode||9<document.documentMode)}function k0(){_s&&(_s.detachEvent("onpropertychange",w0),Ss=_s=null)}function w0(t){if(t.propertyName==="value"&&La(Ss)){var s=[];x0(s,Ss,t,Be(t)),Me(v4,s)}}function w4(t,s,l){t==="focusin"?(k0(),_s=s,Ss=l,_s.attachEvent("onpropertychange",w0)):t==="focusout"&&k0()}function j4(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return La(Ss)}function b4(t,s){if(t==="click")return La(s)}function _4(t,s){if(t==="input"||t==="change")return La(s)}function S4(t,s){return t===s&&(t!==0||1/t===1/s)||t!==t&&s!==s}var Un=typeof Object.is=="function"?Object.is:S4;function Ns(t,s){if(Un(t,s))return!0;if(typeof t!="object"||t===null||typeof s!="object"||s===null)return!1;var l=Object.keys(t),d=Object.keys(s);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var x=l[d];if(!p.call(s,x)||!Un(t[x],s[x]))return!1}return!0}function j0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function b0(t,s){var l=j0(t);t=0;for(var d;l;){if(l.nodeType===3){if(d=t+l.textContent.length,t<=s&&d>=s)return{node:l,offset:s-t};t=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=j0(l)}}function _0(t,s){return t&&s?t===s?!0:t&&t.nodeType===3?!1:s&&s.nodeType===3?_0(t,s.parentNode):"contains"in t?t.contains(s):t.compareDocumentPosition?!!(t.compareDocumentPosition(s)&16):!1:!1}function S0(){for(var t=window,s=Ze();s instanceof t.HTMLIFrameElement;){try{var l=typeof s.contentWindow.location.href=="string"}catch{l=!1}if(l)t=s.contentWindow;else break;s=Ze(t.document)}return s}function Mo(t){var s=t&&t.nodeName&&t.nodeName.toLowerCase();return s&&(s==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||s==="textarea"||t.contentEditable==="true")}function N4(t){var s=S0(),l=t.focusedElem,d=t.selectionRange;if(s!==l&&l&&l.ownerDocument&&_0(l.ownerDocument.documentElement,l)){if(d!==null&&Mo(l)){if(s=d.start,t=d.end,t===void 0&&(t=s),"selectionStart"in l)l.selectionStart=s,l.selectionEnd=Math.min(t,l.value.length);else if(t=(s=l.ownerDocument||document)&&s.defaultView||window,t.getSelection){t=t.getSelection();var x=l.textContent.length,k=Math.min(d.start,x);d=d.end===void 0?k:Math.min(d.end,x),!t.extend&&k>d&&(x=d,d=k,k=x),x=b0(l,k);var E=b0(l,d);x&&E&&(t.rangeCount!==1||t.anchorNode!==x.node||t.anchorOffset!==x.offset||t.focusNode!==E.node||t.focusOffset!==E.offset)&&(s=s.createRange(),s.setStart(x.node,x.offset),t.removeAllRanges(),k>d?(t.addRange(s),t.extend(E.node,E.offset)):(s.setEnd(E.node,E.offset),t.addRange(s)))}}for(s=[],t=l;t=t.parentNode;)t.nodeType===1&&s.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<s.length;l++)t=s[l],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var C4=h&&"documentMode"in document&&11>=document.documentMode,Ti=null,Ao=null,Cs=null,Po=!1;function N0(t,s,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Po||Ti==null||Ti!==Ze(d)||(d=Ti,"selectionStart"in d&&Mo(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Cs&&Ns(Cs,d)||(Cs=d,d=Fa(Ao,"onSelect"),0<d.length&&(s=new jo("onSelect","select",null,s,l),t.push({event:s,listeners:d}),s.target=Ti)))}function Ia(t,s){var l={};return l[t.toLowerCase()]=s.toLowerCase(),l["Webkit"+t]="webkit"+s,l["Moz"+t]="moz"+s,l}var Li={animationend:Ia("Animation","AnimationEnd"),animationiteration:Ia("Animation","AnimationIteration"),animationstart:Ia("Animation","AnimationStart"),transitionend:Ia("Transition","TransitionEnd")},To={},C0={};h&&(C0=document.createElement("div").style,"AnimationEvent"in window||(delete Li.animationend.animation,delete Li.animationiteration.animation,delete Li.animationstart.animation),"TransitionEvent"in window||delete Li.transitionend.transition);function Ra(t){if(To[t])return To[t];if(!Li[t])return t;var s=Li[t],l;for(l in s)if(s.hasOwnProperty(l)&&l in C0)return To[t]=s[l];return t}var E0=Ra("animationend"),z0=Ra("animationiteration"),M0=Ra("animationstart"),A0=Ra("transitionend"),P0=new Map,T0="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(t,s){P0.set(t,s),c(s,[t])}for(var Lo=0;Lo<T0.length;Lo++){var Io=T0[Lo],E4=Io.toLowerCase(),z4=Io[0].toUpperCase()+Io.slice(1);Lr(E4,"on"+z4)}Lr(E0,"onAnimationEnd"),Lr(z0,"onAnimationIteration"),Lr(M0,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(A0,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Es="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(" "),M4=new Set("cancel close invalid load scroll toggle".split(" ").concat(Es));function L0(t,s,l){var d=t.type||"unknown-event";t.currentTarget=l,vn(d,s,void 0,t),t.currentTarget=null}function I0(t,s){s=(s&4)!==0;for(var l=0;l<t.length;l++){var d=t[l],x=d.event;d=d.listeners;e:{var k=void 0;if(s)for(var E=d.length-1;0<=E;E--){var R=d[E],O=R.instance,X=R.currentTarget;if(R=R.listener,O!==k&&x.isPropagationStopped())break e;L0(x,R,X),k=O}else for(E=0;E<d.length;E++){if(R=d[E],O=R.instance,X=R.currentTarget,R=R.listener,O!==k&&x.isPropagationStopped())break e;L0(x,R,X),k=O}}}if(Nr)throw t=Jn,Nr=!1,Jn=null,t}function ct(t,s){var l=s[Uo];l===void 0&&(l=s[Uo]=new Set);var d=t+"__bubble";l.has(d)||(R0(s,t,2,!1),l.add(d))}function Ro(t,s,l){var d=0;s&&(d|=4),R0(l,t,d,s)}var Da="_reactListening"+Math.random().toString(36).slice(2);function zs(t){if(!t[Da]){t[Da]=!0,a.forEach(function(l){l!=="selectionchange"&&(M4.has(l)||Ro(l,!1,t),Ro(l,!0,t))});var s=t.nodeType===9?t:t.ownerDocument;s===null||s[Da]||(s[Da]=!0,Ro("selectionchange",!1,s))}}function R0(t,s,l,d){switch(s0(s)){case 1:var x=V3;break;case 4:x=W3;break;default:x=vo}l=x.bind(null,s,l,t),x=void 0,!De||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(x=!0),d?x!==void 0?t.addEventListener(s,l,{capture:!0,passive:x}):t.addEventListener(s,l,!0):x!==void 0?t.addEventListener(s,l,{passive:x}):t.addEventListener(s,l,!1)}function Do(t,s,l,d,x){var k=d;if((s&1)===0&&(s&2)===0&&d!==null)e:for(;;){if(d===null)return;var E=d.tag;if(E===3||E===4){var R=d.stateNode.containerInfo;if(R===x||R.nodeType===8&&R.parentNode===x)break;if(E===4)for(E=d.return;E!==null;){var O=E.tag;if((O===3||O===4)&&(O=E.stateNode.containerInfo,O===x||O.nodeType===8&&O.parentNode===x))return;E=E.return}for(;R!==null;){if(E=ri(R),E===null)return;if(O=E.tag,O===5||O===6){d=k=E;continue e}R=R.parentNode}}d=d.return}Me(function(){var X=k,de=Be(l),pe=[];e:{var ue=P0.get(t);if(ue!==void 0){var be=jo,Ne=t;switch(t){case"keypress":if(Aa(l)===0)break e;case"keydown":case"keyup":be=a4;break;case"focusin":Ne="focus",be=So;break;case"focusout":Ne="blur",be=So;break;case"beforeblur":case"afterblur":be=So;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":be=o0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":be=Q3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":be=c4;break;case E0:case z0:case M0:be=Y3;break;case A0:be=d4;break;case"scroll":be=q3;break;case"wheel":be=p4;break;case"copy":case"cut":case"paste":be=J3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":be=u0}var Ce=(s&4)!==0,kt=!Ce&&t==="scroll",q=Ce?ue!==null?ue+"Capture":null:ue;Ce=[];for(var U=X,Z;U!==null;){Z=U;var xe=Z.stateNode;if(Z.tag===5&&xe!==null&&(Z=xe,q!==null&&(xe=Re(U,q),xe!=null&&Ce.push(Ms(U,xe,Z)))),kt)break;U=U.return}0<Ce.length&&(ue=new be(ue,Ne,null,l,de),pe.push({event:ue,listeners:Ce}))}}if((s&7)===0){e:{if(ue=t==="mouseover"||t==="pointerover",be=t==="mouseout"||t==="pointerout",ue&&l!==se&&(Ne=l.relatedTarget||l.fromElement)&&(ri(Ne)||Ne[gr]))break e;if((be||ue)&&(ue=de.window===de?de:(ue=de.ownerDocument)?ue.defaultView||ue.parentWindow:window,be?(Ne=l.relatedTarget||l.toElement,be=X,Ne=Ne?ri(Ne):null,Ne!==null&&(kt=on(Ne),Ne!==kt||Ne.tag!==5&&Ne.tag!==6)&&(Ne=null)):(be=null,Ne=X),be!==Ne)){if(Ce=o0,xe="onMouseLeave",q="onMouseEnter",U="mouse",(t==="pointerout"||t==="pointerover")&&(Ce=u0,xe="onPointerLeave",q="onPointerEnter",U="pointer"),kt=be==null?ue:Di(be),Z=Ne==null?ue:Di(Ne),ue=new Ce(xe,U+"leave",be,l,de),ue.target=kt,ue.relatedTarget=Z,xe=null,ri(de)===X&&(Ce=new Ce(q,U+"enter",Ne,l,de),Ce.target=Z,Ce.relatedTarget=kt,xe=Ce),kt=xe,be&&Ne)t:{for(Ce=be,q=Ne,U=0,Z=Ce;Z;Z=Ii(Z))U++;for(Z=0,xe=q;xe;xe=Ii(xe))Z++;for(;0<U-Z;)Ce=Ii(Ce),U--;for(;0<Z-U;)q=Ii(q),Z--;for(;U--;){if(Ce===q||q!==null&&Ce===q.alternate)break t;Ce=Ii(Ce),q=Ii(q)}Ce=null}else Ce=null;be!==null&&D0(pe,ue,be,Ce,!1),Ne!==null&&kt!==null&&D0(pe,kt,Ne,Ce,!0)}}e:{if(ue=X?Di(X):window,be=ue.nodeName&&ue.nodeName.toLowerCase(),be==="select"||be==="input"&&ue.type==="file")var Ee=k4;else if(g0(ue))if(y0)Ee=_4;else{Ee=j4;var Pe=w4}else(be=ue.nodeName)&&be.toLowerCase()==="input"&&(ue.type==="checkbox"||ue.type==="radio")&&(Ee=b4);if(Ee&&(Ee=Ee(t,X))){x0(pe,Ee,l,de);break e}Pe&&Pe(t,ue,X),t==="focusout"&&(Pe=ue._wrapperState)&&Pe.controlled&&ue.type==="number"&&Jt(ue,"number",ue.value)}switch(Pe=X?Di(X):window,t){case"focusin":(g0(Pe)||Pe.contentEditable==="true")&&(Ti=Pe,Ao=X,Cs=null);break;case"focusout":Cs=Ao=Ti=null;break;case"mousedown":Po=!0;break;case"contextmenu":case"mouseup":case"dragend":Po=!1,N0(pe,l,de);break;case"selectionchange":if(C4)break;case"keydown":case"keyup":N0(pe,l,de)}var Te;if(Co)e:{switch(t){case"compositionstart":var $e="onCompositionStart";break e;case"compositionend":$e="onCompositionEnd";break e;case"compositionupdate":$e="onCompositionUpdate";break e}$e=void 0}else Pi?f0(t,l)&&($e="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&($e="onCompositionStart");$e&&(d0&&l.locale!=="ko"&&(Pi||$e!=="onCompositionStart"?$e==="onCompositionEnd"&&Pi&&(Te=a0()):(Tr=de,wo="value"in Tr?Tr.value:Tr.textContent,Pi=!0)),Pe=Fa(X,$e),0<Pe.length&&($e=new c0($e,t,null,l,de),pe.push({event:$e,listeners:Pe}),Te?$e.data=Te:(Te=m0(l),Te!==null&&($e.data=Te)))),(Te=m4?g4(t,l):x4(t,l))&&(X=Fa(X,"onBeforeInput"),0<X.length&&(de=new c0("onBeforeInput","beforeinput",null,l,de),pe.push({event:de,listeners:X}),de.data=Te))}I0(pe,s)})}function Ms(t,s,l){return{instance:t,listener:s,currentTarget:l}}function Fa(t,s){for(var l=s+"Capture",d=[];t!==null;){var x=t,k=x.stateNode;x.tag===5&&k!==null&&(x=k,k=Re(t,l),k!=null&&d.unshift(Ms(t,k,x)),k=Re(t,s),k!=null&&d.push(Ms(t,k,x))),t=t.return}return d}function Ii(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function D0(t,s,l,d,x){for(var k=s._reactName,E=[];l!==null&&l!==d;){var R=l,O=R.alternate,X=R.stateNode;if(O!==null&&O===d)break;R.tag===5&&X!==null&&(R=X,x?(O=Re(l,k),O!=null&&E.unshift(Ms(l,O,R))):x||(O=Re(l,k),O!=null&&E.push(Ms(l,O,R)))),l=l.return}E.length!==0&&t.push({event:s,listeners:E})}var A4=/\r\n?/g,P4=/\u0000|\uFFFD/g;function F0(t){return(typeof t=="string"?t:""+t).replace(A4,`
|
|
38
|
+
`).replace(P4,"")}function $a(t,s,l){if(s=F0(s),F0(t)!==s&&l)throw Error(r(425))}function Oa(){}var Fo=null,$o=null;function Oo(t,s){return t==="textarea"||t==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Bo=typeof setTimeout=="function"?setTimeout:void 0,T4=typeof clearTimeout=="function"?clearTimeout:void 0,$0=typeof Promise=="function"?Promise:void 0,L4=typeof queueMicrotask=="function"?queueMicrotask:typeof $0<"u"?function(t){return $0.resolve(null).then(t).catch(I4)}:Bo;function I4(t){setTimeout(function(){throw t})}function Ho(t,s){var l=s,d=0;do{var x=l.nextSibling;if(t.removeChild(l),x&&x.nodeType===8)if(l=x.data,l==="/$"){if(d===0){t.removeChild(x),ks(s);return}d--}else l!=="$"&&l!=="$?"&&l!=="$!"||d++;l=x}while(l);ks(s)}function Ir(t){for(;t!=null;t=t.nextSibling){var s=t.nodeType;if(s===1||s===3)break;if(s===8){if(s=t.data,s==="$"||s==="$!"||s==="$?")break;if(s==="/$")return null}}return t}function O0(t){t=t.previousSibling;for(var s=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"){if(s===0)return t;s--}else l==="/$"&&s++}t=t.previousSibling}return null}var Ri=Math.random().toString(36).slice(2),rr="__reactFiber$"+Ri,As="__reactProps$"+Ri,gr="__reactContainer$"+Ri,Uo="__reactEvents$"+Ri,R4="__reactListeners$"+Ri,D4="__reactHandles$"+Ri;function ri(t){var s=t[rr];if(s)return s;for(var l=t.parentNode;l;){if(s=l[gr]||l[rr]){if(l=s.alternate,s.child!==null||l!==null&&l.child!==null)for(t=O0(t);t!==null;){if(l=t[rr])return l;t=O0(t)}return s}t=l,l=t.parentNode}return null}function Ps(t){return t=t[rr]||t[gr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Di(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(r(33))}function Ba(t){return t[As]||null}var Vo=[],Fi=-1;function Rr(t){return{current:t}}function ut(t){0>Fi||(t.current=Vo[Fi],Vo[Fi]=null,Fi--)}function ot(t,s){Fi++,Vo[Fi]=t.current,t.current=s}var Dr={},qt=Rr(Dr),cn=Rr(!1),ii=Dr;function $i(t,s){var l=t.type.contextTypes;if(!l)return Dr;var d=t.stateNode;if(d&&d.__reactInternalMemoizedUnmaskedChildContext===s)return d.__reactInternalMemoizedMaskedChildContext;var x={},k;for(k in l)x[k]=s[k];return d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=s,t.__reactInternalMemoizedMaskedChildContext=x),x}function un(t){return t=t.childContextTypes,t!=null}function Ha(){ut(cn),ut(qt)}function B0(t,s,l){if(qt.current!==Dr)throw Error(r(168));ot(qt,s),ot(cn,l)}function H0(t,s,l){var d=t.stateNode;if(s=s.childContextTypes,typeof d.getChildContext!="function")return l;d=d.getChildContext();for(var x in d)if(!(x in s))throw Error(r(108,je(t)||"Unknown",x));return A({},l,d)}function Ua(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Dr,ii=qt.current,ot(qt,t),ot(cn,cn.current),!0}function U0(t,s,l){var d=t.stateNode;if(!d)throw Error(r(169));l?(t=H0(t,s,ii),d.__reactInternalMemoizedMergedChildContext=t,ut(cn),ut(qt),ot(qt,t)):ut(cn),ot(cn,l)}var xr=null,Va=!1,Wo=!1;function V0(t){xr===null?xr=[t]:xr.push(t)}function F4(t){Va=!0,V0(t)}function Fr(){if(!Wo&&xr!==null){Wo=!0;var t=0,s=nt;try{var l=xr;for(nt=1;t<l.length;t++){var d=l[t];do d=d(!0);while(d!==null)}xr=null,Va=!1}catch(x){throw xr!==null&&(xr=xr.slice(t+1)),wa(er,Fr),x}finally{nt=s,Wo=!1}}return null}var Oi=[],Bi=0,Wa=null,qa=0,An=[],Pn=0,si=null,yr=1,vr="";function ai(t,s){Oi[Bi++]=qa,Oi[Bi++]=Wa,Wa=t,qa=s}function W0(t,s,l){An[Pn++]=yr,An[Pn++]=vr,An[Pn++]=si,si=t;var d=yr;t=vr;var x=32-Hn(d)-1;d&=~(1<<x),l+=1;var k=32-Hn(s)+x;if(30<k){var E=x-x%5;k=(d&(1<<E)-1).toString(32),d>>=E,x-=E,yr=1<<32-Hn(s)+x|l<<x|d,vr=k+t}else yr=1<<k|l<<x|d,vr=t}function qo(t){t.return!==null&&(ai(t,1),W0(t,1,0))}function Ko(t){for(;t===Wa;)Wa=Oi[--Bi],Oi[Bi]=null,qa=Oi[--Bi],Oi[Bi]=null;for(;t===si;)si=An[--Pn],An[Pn]=null,vr=An[--Pn],An[Pn]=null,yr=An[--Pn],An[Pn]=null}var wn=null,jn=null,dt=!1,Vn=null;function q0(t,s){var l=Rn(5,null,null,0);l.elementType="DELETED",l.stateNode=s,l.return=t,s=t.deletions,s===null?(t.deletions=[l],t.flags|=16):s.push(l)}function K0(t,s){switch(t.tag){case 5:var l=t.type;return s=s.nodeType!==1||l.toLowerCase()!==s.nodeName.toLowerCase()?null:s,s!==null?(t.stateNode=s,wn=t,jn=Ir(s.firstChild),!0):!1;case 6:return s=t.pendingProps===""||s.nodeType!==3?null:s,s!==null?(t.stateNode=s,wn=t,jn=null,!0):!1;case 13:return s=s.nodeType!==8?null:s,s!==null?(l=si!==null?{id:yr,overflow:vr}:null,t.memoizedState={dehydrated:s,treeContext:l,retryLane:1073741824},l=Rn(18,null,null,0),l.stateNode=s,l.return=t,t.child=l,wn=t,jn=null,!0):!1;default:return!1}}function Qo(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Zo(t){if(dt){var s=jn;if(s){var l=s;if(!K0(t,s)){if(Qo(t))throw Error(r(418));s=Ir(l.nextSibling);var d=wn;s&&K0(t,s)?q0(d,l):(t.flags=t.flags&-4097|2,dt=!1,wn=t)}}else{if(Qo(t))throw Error(r(418));t.flags=t.flags&-4097|2,dt=!1,wn=t}}}function Q0(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;wn=t}function Ka(t){if(t!==wn)return!1;if(!dt)return Q0(t),dt=!0,!1;var s;if((s=t.tag!==3)&&!(s=t.tag!==5)&&(s=t.type,s=s!=="head"&&s!=="body"&&!Oo(t.type,t.memoizedProps)),s&&(s=jn)){if(Qo(t))throw Z0(),Error(r(418));for(;s;)q0(t,s),s=Ir(s.nextSibling)}if(Q0(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,s=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"){if(s===0){jn=Ir(t.nextSibling);break e}s--}else l!=="$"&&l!=="$!"&&l!=="$?"||s++}t=t.nextSibling}jn=null}}else jn=wn?Ir(t.stateNode.nextSibling):null;return!0}function Z0(){for(var t=jn;t;)t=Ir(t.nextSibling)}function Hi(){jn=wn=null,dt=!1}function Go(t){Vn===null?Vn=[t]:Vn.push(t)}var $4=M.ReactCurrentBatchConfig;function Ts(t,s,l){if(t=l.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(l._owner){if(l=l._owner,l){if(l.tag!==1)throw Error(r(309));var d=l.stateNode}if(!d)throw Error(r(147,t));var x=d,k=""+t;return s!==null&&s.ref!==null&&typeof s.ref=="function"&&s.ref._stringRef===k?s.ref:(s=function(E){var R=x.refs;E===null?delete R[k]:R[k]=E},s._stringRef=k,s)}if(typeof t!="string")throw Error(r(284));if(!l._owner)throw Error(r(290,t))}return t}function Qa(t,s){throw t=Object.prototype.toString.call(s),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":t))}function G0(t){var s=t._init;return s(t._payload)}function Y0(t){function s(q,U){if(t){var Z=q.deletions;Z===null?(q.deletions=[U],q.flags|=16):Z.push(U)}}function l(q,U){if(!t)return null;for(;U!==null;)s(q,U),U=U.sibling;return null}function d(q,U){for(q=new Map;U!==null;)U.key!==null?q.set(U.key,U):q.set(U.index,U),U=U.sibling;return q}function x(q,U){return q=qr(q,U),q.index=0,q.sibling=null,q}function k(q,U,Z){return q.index=Z,t?(Z=q.alternate,Z!==null?(Z=Z.index,Z<U?(q.flags|=2,U):Z):(q.flags|=2,U)):(q.flags|=1048576,U)}function E(q){return t&&q.alternate===null&&(q.flags|=2),q}function R(q,U,Z,xe){return U===null||U.tag!==6?(U=Bc(Z,q.mode,xe),U.return=q,U):(U=x(U,Z),U.return=q,U)}function O(q,U,Z,xe){var Ee=Z.type;return Ee===L?de(q,U,Z.props.children,xe,Z.key):U!==null&&(U.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ie&&G0(Ee)===U.type)?(xe=x(U,Z.props),xe.ref=Ts(q,U,Z),xe.return=q,xe):(xe=yl(Z.type,Z.key,Z.props,null,q.mode,xe),xe.ref=Ts(q,U,Z),xe.return=q,xe)}function X(q,U,Z,xe){return U===null||U.tag!==4||U.stateNode.containerInfo!==Z.containerInfo||U.stateNode.implementation!==Z.implementation?(U=Hc(Z,q.mode,xe),U.return=q,U):(U=x(U,Z.children||[]),U.return=q,U)}function de(q,U,Z,xe,Ee){return U===null||U.tag!==7?(U=fi(Z,q.mode,xe,Ee),U.return=q,U):(U=x(U,Z),U.return=q,U)}function pe(q,U,Z){if(typeof U=="string"&&U!==""||typeof U=="number")return U=Bc(""+U,q.mode,Z),U.return=q,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case z:return Z=yl(U.type,U.key,U.props,null,q.mode,Z),Z.ref=Ts(q,null,U),Z.return=q,Z;case N:return U=Hc(U,q.mode,Z),U.return=q,U;case ie:var xe=U._init;return pe(q,xe(U._payload),Z)}if(Lt(U)||G(U))return U=fi(U,q.mode,Z,null),U.return=q,U;Qa(q,U)}return null}function ue(q,U,Z,xe){var Ee=U!==null?U.key:null;if(typeof Z=="string"&&Z!==""||typeof Z=="number")return Ee!==null?null:R(q,U,""+Z,xe);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case z:return Z.key===Ee?O(q,U,Z,xe):null;case N:return Z.key===Ee?X(q,U,Z,xe):null;case ie:return Ee=Z._init,ue(q,U,Ee(Z._payload),xe)}if(Lt(Z)||G(Z))return Ee!==null?null:de(q,U,Z,xe,null);Qa(q,Z)}return null}function be(q,U,Z,xe,Ee){if(typeof xe=="string"&&xe!==""||typeof xe=="number")return q=q.get(Z)||null,R(U,q,""+xe,Ee);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case z:return q=q.get(xe.key===null?Z:xe.key)||null,O(U,q,xe,Ee);case N:return q=q.get(xe.key===null?Z:xe.key)||null,X(U,q,xe,Ee);case ie:var Pe=xe._init;return be(q,U,Z,Pe(xe._payload),Ee)}if(Lt(xe)||G(xe))return q=q.get(Z)||null,de(U,q,xe,Ee,null);Qa(U,xe)}return null}function Ne(q,U,Z,xe){for(var Ee=null,Pe=null,Te=U,$e=U=0,At=null;Te!==null&&$e<Z.length;$e++){Te.index>$e?(At=Te,Te=null):At=Te.sibling;var Je=ue(q,Te,Z[$e],xe);if(Je===null){Te===null&&(Te=At);break}t&&Te&&Je.alternate===null&&s(q,Te),U=k(Je,U,$e),Pe===null?Ee=Je:Pe.sibling=Je,Pe=Je,Te=At}if($e===Z.length)return l(q,Te),dt&&ai(q,$e),Ee;if(Te===null){for(;$e<Z.length;$e++)Te=pe(q,Z[$e],xe),Te!==null&&(U=k(Te,U,$e),Pe===null?Ee=Te:Pe.sibling=Te,Pe=Te);return dt&&ai(q,$e),Ee}for(Te=d(q,Te);$e<Z.length;$e++)At=be(Te,q,$e,Z[$e],xe),At!==null&&(t&&At.alternate!==null&&Te.delete(At.key===null?$e:At.key),U=k(At,U,$e),Pe===null?Ee=At:Pe.sibling=At,Pe=At);return t&&Te.forEach(function(Kr){return s(q,Kr)}),dt&&ai(q,$e),Ee}function Ce(q,U,Z,xe){var Ee=G(Z);if(typeof Ee!="function")throw Error(r(150));if(Z=Ee.call(Z),Z==null)throw Error(r(151));for(var Pe=Ee=null,Te=U,$e=U=0,At=null,Je=Z.next();Te!==null&&!Je.done;$e++,Je=Z.next()){Te.index>$e?(At=Te,Te=null):At=Te.sibling;var Kr=ue(q,Te,Je.value,xe);if(Kr===null){Te===null&&(Te=At);break}t&&Te&&Kr.alternate===null&&s(q,Te),U=k(Kr,U,$e),Pe===null?Ee=Kr:Pe.sibling=Kr,Pe=Kr,Te=At}if(Je.done)return l(q,Te),dt&&ai(q,$e),Ee;if(Te===null){for(;!Je.done;$e++,Je=Z.next())Je=pe(q,Je.value,xe),Je!==null&&(U=k(Je,U,$e),Pe===null?Ee=Je:Pe.sibling=Je,Pe=Je);return dt&&ai(q,$e),Ee}for(Te=d(q,Te);!Je.done;$e++,Je=Z.next())Je=be(Te,q,$e,Je.value,xe),Je!==null&&(t&&Je.alternate!==null&&Te.delete(Je.key===null?$e:Je.key),U=k(Je,U,$e),Pe===null?Ee=Je:Pe.sibling=Je,Pe=Je);return t&&Te.forEach(function(ym){return s(q,ym)}),dt&&ai(q,$e),Ee}function kt(q,U,Z,xe){if(typeof Z=="object"&&Z!==null&&Z.type===L&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case z:e:{for(var Ee=Z.key,Pe=U;Pe!==null;){if(Pe.key===Ee){if(Ee=Z.type,Ee===L){if(Pe.tag===7){l(q,Pe.sibling),U=x(Pe,Z.props.children),U.return=q,q=U;break e}}else if(Pe.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===ie&&G0(Ee)===Pe.type){l(q,Pe.sibling),U=x(Pe,Z.props),U.ref=Ts(q,Pe,Z),U.return=q,q=U;break e}l(q,Pe);break}else s(q,Pe);Pe=Pe.sibling}Z.type===L?(U=fi(Z.props.children,q.mode,xe,Z.key),U.return=q,q=U):(xe=yl(Z.type,Z.key,Z.props,null,q.mode,xe),xe.ref=Ts(q,U,Z),xe.return=q,q=xe)}return E(q);case N:e:{for(Pe=Z.key;U!==null;){if(U.key===Pe)if(U.tag===4&&U.stateNode.containerInfo===Z.containerInfo&&U.stateNode.implementation===Z.implementation){l(q,U.sibling),U=x(U,Z.children||[]),U.return=q,q=U;break e}else{l(q,U);break}else s(q,U);U=U.sibling}U=Hc(Z,q.mode,xe),U.return=q,q=U}return E(q);case ie:return Pe=Z._init,kt(q,U,Pe(Z._payload),xe)}if(Lt(Z))return Ne(q,U,Z,xe);if(G(Z))return Ce(q,U,Z,xe);Qa(q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,U!==null&&U.tag===6?(l(q,U.sibling),U=x(U,Z),U.return=q,q=U):(l(q,U),U=Bc(Z,q.mode,xe),U.return=q,q=U),E(q)):l(q,U)}return kt}var Ui=Y0(!0),X0=Y0(!1),Za=Rr(null),Ga=null,Vi=null,Yo=null;function Xo(){Yo=Vi=Ga=null}function Jo(t){var s=Za.current;ut(Za),t._currentValue=s}function ec(t,s,l){for(;t!==null;){var d=t.alternate;if((t.childLanes&s)!==s?(t.childLanes|=s,d!==null&&(d.childLanes|=s)):d!==null&&(d.childLanes&s)!==s&&(d.childLanes|=s),t===l)break;t=t.return}}function Wi(t,s){Ga=t,Yo=Vi=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&s)!==0&&(dn=!0),t.firstContext=null)}function Tn(t){var s=t._currentValue;if(Yo!==t)if(t={context:t,memoizedValue:s,next:null},Vi===null){if(Ga===null)throw Error(r(308));Vi=t,Ga.dependencies={lanes:0,firstContext:t}}else Vi=Vi.next=t;return s}var li=null;function tc(t){li===null?li=[t]:li.push(t)}function J0(t,s,l,d){var x=s.interleaved;return x===null?(l.next=l,tc(s)):(l.next=x.next,x.next=l),s.interleaved=l,kr(t,d)}function kr(t,s){t.lanes|=s;var l=t.alternate;for(l!==null&&(l.lanes|=s),l=t,t=t.return;t!==null;)t.childLanes|=s,l=t.alternate,l!==null&&(l.childLanes|=s),l=t,t=t.return;return l.tag===3?l.stateNode:null}var $r=!1;function nc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ed(t,s){t=t.updateQueue,s.updateQueue===t&&(s.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function wr(t,s){return{eventTime:t,lane:s,tag:0,payload:null,callback:null,next:null}}function Or(t,s,l){var d=t.updateQueue;if(d===null)return null;if(d=d.shared,(Ge&2)!==0){var x=d.pending;return x===null?s.next=s:(s.next=x.next,x.next=s),d.pending=s,kr(t,l)}return x=d.interleaved,x===null?(s.next=s,tc(d)):(s.next=x.next,x.next=s),d.interleaved=s,kr(t,l)}function Ya(t,s,l){if(s=s.updateQueue,s!==null&&(s=s.shared,(l&4194240)!==0)){var d=s.lanes;d&=t.pendingLanes,l|=d,s.lanes=l,go(t,l)}}function td(t,s){var l=t.updateQueue,d=t.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var x=null,k=null;if(l=l.firstBaseUpdate,l!==null){do{var E={eventTime:l.eventTime,lane:l.lane,tag:l.tag,payload:l.payload,callback:l.callback,next:null};k===null?x=k=E:k=k.next=E,l=l.next}while(l!==null);k===null?x=k=s:k=k.next=s}else x=k=s;l={baseState:d.baseState,firstBaseUpdate:x,lastBaseUpdate:k,shared:d.shared,effects:d.effects},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=s:t.next=s,l.lastBaseUpdate=s}function Xa(t,s,l,d){var x=t.updateQueue;$r=!1;var k=x.firstBaseUpdate,E=x.lastBaseUpdate,R=x.shared.pending;if(R!==null){x.shared.pending=null;var O=R,X=O.next;O.next=null,E===null?k=X:E.next=X,E=O;var de=t.alternate;de!==null&&(de=de.updateQueue,R=de.lastBaseUpdate,R!==E&&(R===null?de.firstBaseUpdate=X:R.next=X,de.lastBaseUpdate=O))}if(k!==null){var pe=x.baseState;E=0,de=X=O=null,R=k;do{var ue=R.lane,be=R.eventTime;if((d&ue)===ue){de!==null&&(de=de.next={eventTime:be,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var Ne=t,Ce=R;switch(ue=s,be=l,Ce.tag){case 1:if(Ne=Ce.payload,typeof Ne=="function"){pe=Ne.call(be,pe,ue);break e}pe=Ne;break e;case 3:Ne.flags=Ne.flags&-65537|128;case 0:if(Ne=Ce.payload,ue=typeof Ne=="function"?Ne.call(be,pe,ue):Ne,ue==null)break e;pe=A({},pe,ue);break e;case 2:$r=!0}}R.callback!==null&&R.lane!==0&&(t.flags|=64,ue=x.effects,ue===null?x.effects=[R]:ue.push(R))}else be={eventTime:be,lane:ue,tag:R.tag,payload:R.payload,callback:R.callback,next:null},de===null?(X=de=be,O=pe):de=de.next=be,E|=ue;if(R=R.next,R===null){if(R=x.shared.pending,R===null)break;ue=R,R=ue.next,ue.next=null,x.lastBaseUpdate=ue,x.shared.pending=null}}while(!0);if(de===null&&(O=pe),x.baseState=O,x.firstBaseUpdate=X,x.lastBaseUpdate=de,s=x.shared.interleaved,s!==null){x=s;do E|=x.lane,x=x.next;while(x!==s)}else k===null&&(x.shared.lanes=0);ui|=E,t.lanes=E,t.memoizedState=pe}}function nd(t,s,l){if(t=s.effects,s.effects=null,t!==null)for(s=0;s<t.length;s++){var d=t[s],x=d.callback;if(x!==null){if(d.callback=null,d=l,typeof x!="function")throw Error(r(191,x));x.call(d)}}}var Ls={},ir=Rr(Ls),Is=Rr(Ls),Rs=Rr(Ls);function oi(t){if(t===Ls)throw Error(r(174));return t}function rc(t,s){switch(ot(Rs,s),ot(Is,t),ot(ir,Ls),t=s.nodeType,t){case 9:case 11:s=(s=s.documentElement)?s.namespaceURI:J(null,"");break;default:t=t===8?s.parentNode:s,s=t.namespaceURI||null,t=t.tagName,s=J(s,t)}ut(ir),ot(ir,s)}function qi(){ut(ir),ut(Is),ut(Rs)}function rd(t){oi(Rs.current);var s=oi(ir.current),l=J(s,t.type);s!==l&&(ot(Is,t),ot(ir,l))}function ic(t){Is.current===t&&(ut(ir),ut(Is))}var ht=Rr(0);function Ja(t){for(var s=t;s!==null;){if(s.tag===13){var l=s.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||l.data==="$?"||l.data==="$!"))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var sc=[];function ac(){for(var t=0;t<sc.length;t++)sc[t]._workInProgressVersionPrimary=null;sc.length=0}var el=M.ReactCurrentDispatcher,lc=M.ReactCurrentBatchConfig,ci=0,pt=null,Nt=null,zt=null,tl=!1,Ds=!1,Fs=0,O4=0;function Kt(){throw Error(r(321))}function oc(t,s){if(s===null)return!1;for(var l=0;l<s.length&&l<t.length;l++)if(!Un(t[l],s[l]))return!1;return!0}function cc(t,s,l,d,x,k){if(ci=k,pt=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,el.current=t===null||t.memoizedState===null?V4:W4,t=l(d,x),Ds){k=0;do{if(Ds=!1,Fs=0,25<=k)throw Error(r(301));k+=1,zt=Nt=null,s.updateQueue=null,el.current=q4,t=l(d,x)}while(Ds)}if(el.current=il,s=Nt!==null&&Nt.next!==null,ci=0,zt=Nt=pt=null,tl=!1,s)throw Error(r(300));return t}function uc(){var t=Fs!==0;return Fs=0,t}function sr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?pt.memoizedState=zt=t:zt=zt.next=t,zt}function Ln(){if(Nt===null){var t=pt.alternate;t=t!==null?t.memoizedState:null}else t=Nt.next;var s=zt===null?pt.memoizedState:zt.next;if(s!==null)zt=s,Nt=t;else{if(t===null)throw Error(r(310));Nt=t,t={memoizedState:Nt.memoizedState,baseState:Nt.baseState,baseQueue:Nt.baseQueue,queue:Nt.queue,next:null},zt===null?pt.memoizedState=zt=t:zt=zt.next=t}return zt}function $s(t,s){return typeof s=="function"?s(t):s}function dc(t){var s=Ln(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var d=Nt,x=d.baseQueue,k=l.pending;if(k!==null){if(x!==null){var E=x.next;x.next=k.next,k.next=E}d.baseQueue=x=k,l.pending=null}if(x!==null){k=x.next,d=d.baseState;var R=E=null,O=null,X=k;do{var de=X.lane;if((ci&de)===de)O!==null&&(O=O.next={lane:0,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null}),d=X.hasEagerState?X.eagerState:t(d,X.action);else{var pe={lane:de,action:X.action,hasEagerState:X.hasEagerState,eagerState:X.eagerState,next:null};O===null?(R=O=pe,E=d):O=O.next=pe,pt.lanes|=de,ui|=de}X=X.next}while(X!==null&&X!==k);O===null?E=d:O.next=R,Un(d,s.memoizedState)||(dn=!0),s.memoizedState=d,s.baseState=E,s.baseQueue=O,l.lastRenderedState=d}if(t=l.interleaved,t!==null){x=t;do k=x.lane,pt.lanes|=k,ui|=k,x=x.next;while(x!==t)}else x===null&&(l.lanes=0);return[s.memoizedState,l.dispatch]}function hc(t){var s=Ln(),l=s.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=t;var d=l.dispatch,x=l.pending,k=s.memoizedState;if(x!==null){l.pending=null;var E=x=x.next;do k=t(k,E.action),E=E.next;while(E!==x);Un(k,s.memoizedState)||(dn=!0),s.memoizedState=k,s.baseQueue===null&&(s.baseState=k),l.lastRenderedState=k}return[k,d]}function id(){}function sd(t,s){var l=pt,d=Ln(),x=s(),k=!Un(d.memoizedState,x);if(k&&(d.memoizedState=x,dn=!0),d=d.queue,pc(od.bind(null,l,d,t),[t]),d.getSnapshot!==s||k||zt!==null&&zt.memoizedState.tag&1){if(l.flags|=2048,Os(9,ld.bind(null,l,d,x,s),void 0,null),Mt===null)throw Error(r(349));(ci&30)!==0||ad(l,s,x)}return x}function ad(t,s,l){t.flags|=16384,t={getSnapshot:s,value:l},s=pt.updateQueue,s===null?(s={lastEffect:null,stores:null},pt.updateQueue=s,s.stores=[t]):(l=s.stores,l===null?s.stores=[t]:l.push(t))}function ld(t,s,l,d){s.value=l,s.getSnapshot=d,cd(s)&&ud(t)}function od(t,s,l){return l(function(){cd(s)&&ud(t)})}function cd(t){var s=t.getSnapshot;t=t.value;try{var l=s();return!Un(t,l)}catch{return!0}}function ud(t){var s=kr(t,1);s!==null&&Qn(s,t,1,-1)}function dd(t){var s=sr();return typeof t=="function"&&(t=t()),s.memoizedState=s.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:$s,lastRenderedState:t},s.queue=t,t=t.dispatch=U4.bind(null,pt,t),[s.memoizedState,t]}function Os(t,s,l,d){return t={tag:t,create:s,destroy:l,deps:d,next:null},s=pt.updateQueue,s===null?(s={lastEffect:null,stores:null},pt.updateQueue=s,s.lastEffect=t.next=t):(l=s.lastEffect,l===null?s.lastEffect=t.next=t:(d=l.next,l.next=t,t.next=d,s.lastEffect=t)),t}function hd(){return Ln().memoizedState}function nl(t,s,l,d){var x=sr();pt.flags|=t,x.memoizedState=Os(1|s,l,void 0,d===void 0?null:d)}function rl(t,s,l,d){var x=Ln();d=d===void 0?null:d;var k=void 0;if(Nt!==null){var E=Nt.memoizedState;if(k=E.destroy,d!==null&&oc(d,E.deps)){x.memoizedState=Os(s,l,k,d);return}}pt.flags|=t,x.memoizedState=Os(1|s,l,k,d)}function pd(t,s){return nl(8390656,8,t,s)}function pc(t,s){return rl(2048,8,t,s)}function fd(t,s){return rl(4,2,t,s)}function md(t,s){return rl(4,4,t,s)}function gd(t,s){if(typeof s=="function")return t=t(),s(t),function(){s(null)};if(s!=null)return t=t(),s.current=t,function(){s.current=null}}function xd(t,s,l){return l=l!=null?l.concat([t]):null,rl(4,4,gd.bind(null,s,t),l)}function fc(){}function yd(t,s){var l=Ln();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&oc(s,d[1])?d[0]:(l.memoizedState=[t,s],t)}function vd(t,s){var l=Ln();s=s===void 0?null:s;var d=l.memoizedState;return d!==null&&s!==null&&oc(s,d[1])?d[0]:(t=t(),l.memoizedState=[t,s],t)}function kd(t,s,l){return(ci&21)===0?(t.baseState&&(t.baseState=!1,dn=!0),t.memoizedState=l):(Un(l,s)||(l=G1(),pt.lanes|=l,ui|=l,t.baseState=!0),s)}function B4(t,s){var l=nt;nt=l!==0&&4>l?l:4,t(!0);var d=lc.transition;lc.transition={};try{t(!1),s()}finally{nt=l,lc.transition=d}}function wd(){return Ln().memoizedState}function H4(t,s,l){var d=Vr(t);if(l={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null},jd(t))bd(s,l);else if(l=J0(t,s,l,d),l!==null){var x=rn();Qn(l,t,d,x),_d(l,s,d)}}function U4(t,s,l){var d=Vr(t),x={lane:d,action:l,hasEagerState:!1,eagerState:null,next:null};if(jd(t))bd(s,x);else{var k=t.alternate;if(t.lanes===0&&(k===null||k.lanes===0)&&(k=s.lastRenderedReducer,k!==null))try{var E=s.lastRenderedState,R=k(E,l);if(x.hasEagerState=!0,x.eagerState=R,Un(R,E)){var O=s.interleaved;O===null?(x.next=x,tc(s)):(x.next=O.next,O.next=x),s.interleaved=x;return}}catch{}finally{}l=J0(t,s,x,d),l!==null&&(x=rn(),Qn(l,t,d,x),_d(l,s,d))}}function jd(t){var s=t.alternate;return t===pt||s!==null&&s===pt}function bd(t,s){Ds=tl=!0;var l=t.pending;l===null?s.next=s:(s.next=l.next,l.next=s),t.pending=s}function _d(t,s,l){if((l&4194240)!==0){var d=s.lanes;d&=t.pendingLanes,l|=d,s.lanes=l,go(t,l)}}var il={readContext:Tn,useCallback:Kt,useContext:Kt,useEffect:Kt,useImperativeHandle:Kt,useInsertionEffect:Kt,useLayoutEffect:Kt,useMemo:Kt,useReducer:Kt,useRef:Kt,useState:Kt,useDebugValue:Kt,useDeferredValue:Kt,useTransition:Kt,useMutableSource:Kt,useSyncExternalStore:Kt,useId:Kt,unstable_isNewReconciler:!1},V4={readContext:Tn,useCallback:function(t,s){return sr().memoizedState=[t,s===void 0?null:s],t},useContext:Tn,useEffect:pd,useImperativeHandle:function(t,s,l){return l=l!=null?l.concat([t]):null,nl(4194308,4,gd.bind(null,s,t),l)},useLayoutEffect:function(t,s){return nl(4194308,4,t,s)},useInsertionEffect:function(t,s){return nl(4,2,t,s)},useMemo:function(t,s){var l=sr();return s=s===void 0?null:s,t=t(),l.memoizedState=[t,s],t},useReducer:function(t,s,l){var d=sr();return s=l!==void 0?l(s):s,d.memoizedState=d.baseState=s,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:s},d.queue=t,t=t.dispatch=H4.bind(null,pt,t),[d.memoizedState,t]},useRef:function(t){var s=sr();return t={current:t},s.memoizedState=t},useState:dd,useDebugValue:fc,useDeferredValue:function(t){return sr().memoizedState=t},useTransition:function(){var t=dd(!1),s=t[0];return t=B4.bind(null,t[1]),sr().memoizedState=t,[s,t]},useMutableSource:function(){},useSyncExternalStore:function(t,s,l){var d=pt,x=sr();if(dt){if(l===void 0)throw Error(r(407));l=l()}else{if(l=s(),Mt===null)throw Error(r(349));(ci&30)!==0||ad(d,s,l)}x.memoizedState=l;var k={value:l,getSnapshot:s};return x.queue=k,pd(od.bind(null,d,k,t),[t]),d.flags|=2048,Os(9,ld.bind(null,d,k,l,s),void 0,null),l},useId:function(){var t=sr(),s=Mt.identifierPrefix;if(dt){var l=vr,d=yr;l=(d&~(1<<32-Hn(d)-1)).toString(32)+l,s=":"+s+"R"+l,l=Fs++,0<l&&(s+="H"+l.toString(32)),s+=":"}else l=O4++,s=":"+s+"r"+l.toString(32)+":";return t.memoizedState=s},unstable_isNewReconciler:!1},W4={readContext:Tn,useCallback:yd,useContext:Tn,useEffect:pc,useImperativeHandle:xd,useInsertionEffect:fd,useLayoutEffect:md,useMemo:vd,useReducer:dc,useRef:hd,useState:function(){return dc($s)},useDebugValue:fc,useDeferredValue:function(t){var s=Ln();return kd(s,Nt.memoizedState,t)},useTransition:function(){var t=dc($s)[0],s=Ln().memoizedState;return[t,s]},useMutableSource:id,useSyncExternalStore:sd,useId:wd,unstable_isNewReconciler:!1},q4={readContext:Tn,useCallback:yd,useContext:Tn,useEffect:pc,useImperativeHandle:xd,useInsertionEffect:fd,useLayoutEffect:md,useMemo:vd,useReducer:hc,useRef:hd,useState:function(){return hc($s)},useDebugValue:fc,useDeferredValue:function(t){var s=Ln();return Nt===null?s.memoizedState=t:kd(s,Nt.memoizedState,t)},useTransition:function(){var t=hc($s)[0],s=Ln().memoizedState;return[t,s]},useMutableSource:id,useSyncExternalStore:sd,useId:wd,unstable_isNewReconciler:!1};function Wn(t,s){if(t&&t.defaultProps){s=A({},s),t=t.defaultProps;for(var l in t)s[l]===void 0&&(s[l]=t[l]);return s}return s}function mc(t,s,l,d){s=t.memoizedState,l=l(d,s),l=l==null?s:A({},s,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var sl={isMounted:function(t){return(t=t._reactInternals)?on(t)===t:!1},enqueueSetState:function(t,s,l){t=t._reactInternals;var d=rn(),x=Vr(t),k=wr(d,x);k.payload=s,l!=null&&(k.callback=l),s=Or(t,k,x),s!==null&&(Qn(s,t,x,d),Ya(s,t,x))},enqueueReplaceState:function(t,s,l){t=t._reactInternals;var d=rn(),x=Vr(t),k=wr(d,x);k.tag=1,k.payload=s,l!=null&&(k.callback=l),s=Or(t,k,x),s!==null&&(Qn(s,t,x,d),Ya(s,t,x))},enqueueForceUpdate:function(t,s){t=t._reactInternals;var l=rn(),d=Vr(t),x=wr(l,d);x.tag=2,s!=null&&(x.callback=s),s=Or(t,x,d),s!==null&&(Qn(s,t,d,l),Ya(s,t,d))}};function Sd(t,s,l,d,x,k,E){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(d,k,E):s.prototype&&s.prototype.isPureReactComponent?!Ns(l,d)||!Ns(x,k):!0}function Nd(t,s,l){var d=!1,x=Dr,k=s.contextType;return typeof k=="object"&&k!==null?k=Tn(k):(x=un(s)?ii:qt.current,d=s.contextTypes,k=(d=d!=null)?$i(t,x):Dr),s=new s(l,k),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=sl,t.stateNode=s,s._reactInternals=t,d&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=x,t.__reactInternalMemoizedMaskedChildContext=k),s}function Cd(t,s,l,d){t=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(l,d),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(l,d),s.state!==t&&sl.enqueueReplaceState(s,s.state,null)}function gc(t,s,l,d){var x=t.stateNode;x.props=l,x.state=t.memoizedState,x.refs={},nc(t);var k=s.contextType;typeof k=="object"&&k!==null?x.context=Tn(k):(k=un(s)?ii:qt.current,x.context=$i(t,k)),x.state=t.memoizedState,k=s.getDerivedStateFromProps,typeof k=="function"&&(mc(t,s,k,l),x.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(s=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),s!==x.state&&sl.enqueueReplaceState(x,x.state,null),Xa(t,l,x,d),x.state=t.memoizedState),typeof x.componentDidMount=="function"&&(t.flags|=4194308)}function Ki(t,s){try{var l="",d=s;do l+=te(d),d=d.return;while(d);var x=l}catch(k){x=`
|
|
39
|
+
Error generating stack: `+k.message+`
|
|
40
|
+
`+k.stack}return{value:t,source:s,stack:x,digest:null}}function xc(t,s,l){return{value:t,source:null,stack:l??null,digest:s??null}}function yc(t,s){try{console.error(s.value)}catch(l){setTimeout(function(){throw l})}}var K4=typeof WeakMap=="function"?WeakMap:Map;function Ed(t,s,l){l=wr(-1,l),l.tag=3,l.payload={element:null};var d=s.value;return l.callback=function(){hl||(hl=!0,Tc=d),yc(t,s)},l}function zd(t,s,l){l=wr(-1,l),l.tag=3;var d=t.type.getDerivedStateFromError;if(typeof d=="function"){var x=s.value;l.payload=function(){return d(x)},l.callback=function(){yc(t,s)}}var k=t.stateNode;return k!==null&&typeof k.componentDidCatch=="function"&&(l.callback=function(){yc(t,s),typeof d!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var E=s.stack;this.componentDidCatch(s.value,{componentStack:E!==null?E:""})}),l}function Md(t,s,l){var d=t.pingCache;if(d===null){d=t.pingCache=new K4;var x=new Set;d.set(s,x)}else x=d.get(s),x===void 0&&(x=new Set,d.set(s,x));x.has(l)||(x.add(l),t=lm.bind(null,t,s,l),s.then(t,t))}function Ad(t){do{var s;if((s=t.tag===13)&&(s=t.memoizedState,s=s!==null?s.dehydrated!==null:!0),s)return t;t=t.return}while(t!==null);return null}function Pd(t,s,l,d,x){return(t.mode&1)===0?(t===s?t.flags|=65536:(t.flags|=128,l.flags|=131072,l.flags&=-52805,l.tag===1&&(l.alternate===null?l.tag=17:(s=wr(-1,1),s.tag=2,Or(l,s,1))),l.lanes|=1),t):(t.flags|=65536,t.lanes=x,t)}var Q4=M.ReactCurrentOwner,dn=!1;function nn(t,s,l,d){s.child=t===null?X0(s,null,l,d):Ui(s,t.child,l,d)}function Td(t,s,l,d,x){l=l.render;var k=s.ref;return Wi(s,x),d=cc(t,s,l,d,k,x),l=uc(),t!==null&&!dn?(s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~x,jr(t,s,x)):(dt&&l&&qo(s),s.flags|=1,nn(t,s,d,x),s.child)}function Ld(t,s,l,d,x){if(t===null){var k=l.type;return typeof k=="function"&&!Oc(k)&&k.defaultProps===void 0&&l.compare===null&&l.defaultProps===void 0?(s.tag=15,s.type=k,Id(t,s,k,d,x)):(t=yl(l.type,null,d,s,s.mode,x),t.ref=s.ref,t.return=s,s.child=t)}if(k=t.child,(t.lanes&x)===0){var E=k.memoizedProps;if(l=l.compare,l=l!==null?l:Ns,l(E,d)&&t.ref===s.ref)return jr(t,s,x)}return s.flags|=1,t=qr(k,d),t.ref=s.ref,t.return=s,s.child=t}function Id(t,s,l,d,x){if(t!==null){var k=t.memoizedProps;if(Ns(k,d)&&t.ref===s.ref)if(dn=!1,s.pendingProps=d=k,(t.lanes&x)!==0)(t.flags&131072)!==0&&(dn=!0);else return s.lanes=t.lanes,jr(t,s,x)}return vc(t,s,l,d,x)}function Rd(t,s,l){var d=s.pendingProps,x=d.children,k=t!==null?t.memoizedState:null;if(d.mode==="hidden")if((s.mode&1)===0)s.memoizedState={baseLanes:0,cachePool:null,transitions:null},ot(Zi,bn),bn|=l;else{if((l&1073741824)===0)return t=k!==null?k.baseLanes|l:l,s.lanes=s.childLanes=1073741824,s.memoizedState={baseLanes:t,cachePool:null,transitions:null},s.updateQueue=null,ot(Zi,bn),bn|=t,null;s.memoizedState={baseLanes:0,cachePool:null,transitions:null},d=k!==null?k.baseLanes:l,ot(Zi,bn),bn|=d}else k!==null?(d=k.baseLanes|l,s.memoizedState=null):d=l,ot(Zi,bn),bn|=d;return nn(t,s,x,l),s.child}function Dd(t,s){var l=s.ref;(t===null&&l!==null||t!==null&&t.ref!==l)&&(s.flags|=512,s.flags|=2097152)}function vc(t,s,l,d,x){var k=un(l)?ii:qt.current;return k=$i(s,k),Wi(s,x),l=cc(t,s,l,d,k,x),d=uc(),t!==null&&!dn?(s.updateQueue=t.updateQueue,s.flags&=-2053,t.lanes&=~x,jr(t,s,x)):(dt&&d&&qo(s),s.flags|=1,nn(t,s,l,x),s.child)}function Fd(t,s,l,d,x){if(un(l)){var k=!0;Ua(s)}else k=!1;if(Wi(s,x),s.stateNode===null)ll(t,s),Nd(s,l,d),gc(s,l,d,x),d=!0;else if(t===null){var E=s.stateNode,R=s.memoizedProps;E.props=R;var O=E.context,X=l.contextType;typeof X=="object"&&X!==null?X=Tn(X):(X=un(l)?ii:qt.current,X=$i(s,X));var de=l.getDerivedStateFromProps,pe=typeof de=="function"||typeof E.getSnapshotBeforeUpdate=="function";pe||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(R!==d||O!==X)&&Cd(s,E,d,X),$r=!1;var ue=s.memoizedState;E.state=ue,Xa(s,d,E,x),O=s.memoizedState,R!==d||ue!==O||cn.current||$r?(typeof de=="function"&&(mc(s,l,de,d),O=s.memoizedState),(R=$r||Sd(s,l,R,d,ue,O,X))?(pe||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount()),typeof E.componentDidMount=="function"&&(s.flags|=4194308)):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=d,s.memoizedState=O),E.props=d,E.state=O,E.context=X,d=R):(typeof E.componentDidMount=="function"&&(s.flags|=4194308),d=!1)}else{E=s.stateNode,ed(t,s),R=s.memoizedProps,X=s.type===s.elementType?R:Wn(s.type,R),E.props=X,pe=s.pendingProps,ue=E.context,O=l.contextType,typeof O=="object"&&O!==null?O=Tn(O):(O=un(l)?ii:qt.current,O=$i(s,O));var be=l.getDerivedStateFromProps;(de=typeof be=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(R!==pe||ue!==O)&&Cd(s,E,d,O),$r=!1,ue=s.memoizedState,E.state=ue,Xa(s,d,E,x);var Ne=s.memoizedState;R!==pe||ue!==Ne||cn.current||$r?(typeof be=="function"&&(mc(s,l,be,d),Ne=s.memoizedState),(X=$r||Sd(s,l,X,d,ue,Ne,O)||!1)?(de||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(d,Ne,O),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(d,Ne,O)),typeof E.componentDidUpdate=="function"&&(s.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof E.componentDidUpdate!="function"||R===t.memoizedProps&&ue===t.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&ue===t.memoizedState||(s.flags|=1024),s.memoizedProps=d,s.memoizedState=Ne),E.props=d,E.state=Ne,E.context=O,d=X):(typeof E.componentDidUpdate!="function"||R===t.memoizedProps&&ue===t.memoizedState||(s.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||R===t.memoizedProps&&ue===t.memoizedState||(s.flags|=1024),d=!1)}return kc(t,s,l,d,k,x)}function kc(t,s,l,d,x,k){Dd(t,s);var E=(s.flags&128)!==0;if(!d&&!E)return x&&U0(s,l,!1),jr(t,s,k);d=s.stateNode,Q4.current=s;var R=E&&typeof l.getDerivedStateFromError!="function"?null:d.render();return s.flags|=1,t!==null&&E?(s.child=Ui(s,t.child,null,k),s.child=Ui(s,null,R,k)):nn(t,s,R,k),s.memoizedState=d.state,x&&U0(s,l,!0),s.child}function $d(t){var s=t.stateNode;s.pendingContext?B0(t,s.pendingContext,s.pendingContext!==s.context):s.context&&B0(t,s.context,!1),rc(t,s.containerInfo)}function Od(t,s,l,d,x){return Hi(),Go(x),s.flags|=256,nn(t,s,l,d),s.child}var wc={dehydrated:null,treeContext:null,retryLane:0};function jc(t){return{baseLanes:t,cachePool:null,transitions:null}}function Bd(t,s,l){var d=s.pendingProps,x=ht.current,k=!1,E=(s.flags&128)!==0,R;if((R=E)||(R=t!==null&&t.memoizedState===null?!1:(x&2)!==0),R?(k=!0,s.flags&=-129):(t===null||t.memoizedState!==null)&&(x|=1),ot(ht,x&1),t===null)return Zo(s),t=s.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((s.mode&1)===0?s.lanes=1:t.data==="$!"?s.lanes=8:s.lanes=1073741824,null):(E=d.children,t=d.fallback,k?(d=s.mode,k=s.child,E={mode:"hidden",children:E},(d&1)===0&&k!==null?(k.childLanes=0,k.pendingProps=E):k=vl(E,d,0,null),t=fi(t,d,l,null),k.return=s,t.return=s,k.sibling=t,s.child=k,s.child.memoizedState=jc(l),s.memoizedState=wc,t):bc(s,E));if(x=t.memoizedState,x!==null&&(R=x.dehydrated,R!==null))return Z4(t,s,E,d,R,x,l);if(k){k=d.fallback,E=s.mode,x=t.child,R=x.sibling;var O={mode:"hidden",children:d.children};return(E&1)===0&&s.child!==x?(d=s.child,d.childLanes=0,d.pendingProps=O,s.deletions=null):(d=qr(x,O),d.subtreeFlags=x.subtreeFlags&14680064),R!==null?k=qr(R,k):(k=fi(k,E,l,null),k.flags|=2),k.return=s,d.return=s,d.sibling=k,s.child=d,d=k,k=s.child,E=t.child.memoizedState,E=E===null?jc(l):{baseLanes:E.baseLanes|l,cachePool:null,transitions:E.transitions},k.memoizedState=E,k.childLanes=t.childLanes&~l,s.memoizedState=wc,d}return k=t.child,t=k.sibling,d=qr(k,{mode:"visible",children:d.children}),(s.mode&1)===0&&(d.lanes=l),d.return=s,d.sibling=null,t!==null&&(l=s.deletions,l===null?(s.deletions=[t],s.flags|=16):l.push(t)),s.child=d,s.memoizedState=null,d}function bc(t,s){return s=vl({mode:"visible",children:s},t.mode,0,null),s.return=t,t.child=s}function al(t,s,l,d){return d!==null&&Go(d),Ui(s,t.child,null,l),t=bc(s,s.pendingProps.children),t.flags|=2,s.memoizedState=null,t}function Z4(t,s,l,d,x,k,E){if(l)return s.flags&256?(s.flags&=-257,d=xc(Error(r(422))),al(t,s,E,d)):s.memoizedState!==null?(s.child=t.child,s.flags|=128,null):(k=d.fallback,x=s.mode,d=vl({mode:"visible",children:d.children},x,0,null),k=fi(k,x,E,null),k.flags|=2,d.return=s,k.return=s,d.sibling=k,s.child=d,(s.mode&1)!==0&&Ui(s,t.child,null,E),s.child.memoizedState=jc(E),s.memoizedState=wc,k);if((s.mode&1)===0)return al(t,s,E,null);if(x.data==="$!"){if(d=x.nextSibling&&x.nextSibling.dataset,d)var R=d.dgst;return d=R,k=Error(r(419)),d=xc(k,d,void 0),al(t,s,E,d)}if(R=(E&t.childLanes)!==0,dn||R){if(d=Mt,d!==null){switch(E&-E){case 4:x=2;break;case 16:x=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:x=32;break;case 536870912:x=268435456;break;default:x=0}x=(x&(d.suspendedLanes|E))!==0?0:x,x!==0&&x!==k.retryLane&&(k.retryLane=x,kr(t,x),Qn(d,t,x,-1))}return $c(),d=xc(Error(r(421))),al(t,s,E,d)}return x.data==="$?"?(s.flags|=128,s.child=t.child,s=om.bind(null,t),x._reactRetry=s,null):(t=k.treeContext,jn=Ir(x.nextSibling),wn=s,dt=!0,Vn=null,t!==null&&(An[Pn++]=yr,An[Pn++]=vr,An[Pn++]=si,yr=t.id,vr=t.overflow,si=s),s=bc(s,d.children),s.flags|=4096,s)}function Hd(t,s,l){t.lanes|=s;var d=t.alternate;d!==null&&(d.lanes|=s),ec(t.return,s,l)}function _c(t,s,l,d,x){var k=t.memoizedState;k===null?t.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:x}:(k.isBackwards=s,k.rendering=null,k.renderingStartTime=0,k.last=d,k.tail=l,k.tailMode=x)}function Ud(t,s,l){var d=s.pendingProps,x=d.revealOrder,k=d.tail;if(nn(t,s,d.children,l),d=ht.current,(d&2)!==0)d=d&1|2,s.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=s.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Hd(t,l,s);else if(t.tag===19)Hd(t,l,s);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===s)break e;for(;t.sibling===null;){if(t.return===null||t.return===s)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}d&=1}if(ot(ht,d),(s.mode&1)===0)s.memoizedState=null;else switch(x){case"forwards":for(l=s.child,x=null;l!==null;)t=l.alternate,t!==null&&Ja(t)===null&&(x=l),l=l.sibling;l=x,l===null?(x=s.child,s.child=null):(x=l.sibling,l.sibling=null),_c(s,!1,x,l,k);break;case"backwards":for(l=null,x=s.child,s.child=null;x!==null;){if(t=x.alternate,t!==null&&Ja(t)===null){s.child=x;break}t=x.sibling,x.sibling=l,l=x,x=t}_c(s,!0,l,null,k);break;case"together":_c(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ll(t,s){(s.mode&1)===0&&t!==null&&(t.alternate=null,s.alternate=null,s.flags|=2)}function jr(t,s,l){if(t!==null&&(s.dependencies=t.dependencies),ui|=s.lanes,(l&s.childLanes)===0)return null;if(t!==null&&s.child!==t.child)throw Error(r(153));if(s.child!==null){for(t=s.child,l=qr(t,t.pendingProps),s.child=l,l.return=s;t.sibling!==null;)t=t.sibling,l=l.sibling=qr(t,t.pendingProps),l.return=s;l.sibling=null}return s.child}function G4(t,s,l){switch(s.tag){case 3:$d(s),Hi();break;case 5:rd(s);break;case 1:un(s.type)&&Ua(s);break;case 4:rc(s,s.stateNode.containerInfo);break;case 10:var d=s.type._context,x=s.memoizedProps.value;ot(Za,d._currentValue),d._currentValue=x;break;case 13:if(d=s.memoizedState,d!==null)return d.dehydrated!==null?(ot(ht,ht.current&1),s.flags|=128,null):(l&s.child.childLanes)!==0?Bd(t,s,l):(ot(ht,ht.current&1),t=jr(t,s,l),t!==null?t.sibling:null);ot(ht,ht.current&1);break;case 19:if(d=(l&s.childLanes)!==0,(t.flags&128)!==0){if(d)return Ud(t,s,l);s.flags|=128}if(x=s.memoizedState,x!==null&&(x.rendering=null,x.tail=null,x.lastEffect=null),ot(ht,ht.current),d)break;return null;case 22:case 23:return s.lanes=0,Rd(t,s,l)}return jr(t,s,l)}var Vd,Sc,Wd,qd;Vd=function(t,s){for(var l=s.child;l!==null;){if(l.tag===5||l.tag===6)t.appendChild(l.stateNode);else if(l.tag!==4&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===s)break;for(;l.sibling===null;){if(l.return===null||l.return===s)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},Sc=function(){},Wd=function(t,s,l,d){var x=t.memoizedProps;if(x!==d){t=s.stateNode,oi(ir.current);var k=null;switch(l){case"input":x=mt(t,x),d=mt(t,d),k=[];break;case"select":x=A({},x,{value:void 0}),d=A({},d,{value:void 0}),k=[];break;case"textarea":x=Et(t,x),d=Et(t,d),k=[];break;default:typeof x.onClick!="function"&&typeof d.onClick=="function"&&(t.onclick=Oa)}Vt(l,d);var E;l=null;for(X in x)if(!d.hasOwnProperty(X)&&x.hasOwnProperty(X)&&x[X]!=null)if(X==="style"){var R=x[X];for(E in R)R.hasOwnProperty(E)&&(l||(l={}),l[E]="")}else X!=="dangerouslySetInnerHTML"&&X!=="children"&&X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&X!=="autoFocus"&&(o.hasOwnProperty(X)?k||(k=[]):(k=k||[]).push(X,null));for(X in d){var O=d[X];if(R=x!=null?x[X]:void 0,d.hasOwnProperty(X)&&O!==R&&(O!=null||R!=null))if(X==="style")if(R){for(E in R)!R.hasOwnProperty(E)||O&&O.hasOwnProperty(E)||(l||(l={}),l[E]="");for(E in O)O.hasOwnProperty(E)&&R[E]!==O[E]&&(l||(l={}),l[E]=O[E])}else l||(k||(k=[]),k.push(X,l)),l=O;else X==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,R=R?R.__html:void 0,O!=null&&R!==O&&(k=k||[]).push(X,O)):X==="children"?typeof O!="string"&&typeof O!="number"||(k=k||[]).push(X,""+O):X!=="suppressContentEditableWarning"&&X!=="suppressHydrationWarning"&&(o.hasOwnProperty(X)?(O!=null&&X==="onScroll"&&ct("scroll",t),k||R===O||(k=[])):(k=k||[]).push(X,O))}l&&(k=k||[]).push("style",l);var X=k;(s.updateQueue=X)&&(s.flags|=4)}},qd=function(t,s,l,d){l!==d&&(s.flags|=4)};function Bs(t,s){if(!dt)switch(t.tailMode){case"hidden":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?s||t.tail===null?t.tail=null:t.tail.sibling=null:d.sibling=null}}function Qt(t){var s=t.alternate!==null&&t.alternate.child===t.child,l=0,d=0;if(s)for(var x=t.child;x!==null;)l|=x.lanes|x.childLanes,d|=x.subtreeFlags&14680064,d|=x.flags&14680064,x.return=t,x=x.sibling;else for(x=t.child;x!==null;)l|=x.lanes|x.childLanes,d|=x.subtreeFlags,d|=x.flags,x.return=t,x=x.sibling;return t.subtreeFlags|=d,t.childLanes=l,s}function Y4(t,s,l){var d=s.pendingProps;switch(Ko(s),s.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(s),null;case 1:return un(s.type)&&Ha(),Qt(s),null;case 3:return d=s.stateNode,qi(),ut(cn),ut(qt),ac(),d.pendingContext&&(d.context=d.pendingContext,d.pendingContext=null),(t===null||t.child===null)&&(Ka(s)?s.flags|=4:t===null||t.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Vn!==null&&(Rc(Vn),Vn=null))),Sc(t,s),Qt(s),null;case 5:ic(s);var x=oi(Rs.current);if(l=s.type,t!==null&&s.stateNode!=null)Wd(t,s,l,d,x),t.ref!==s.ref&&(s.flags|=512,s.flags|=2097152);else{if(!d){if(s.stateNode===null)throw Error(r(166));return Qt(s),null}if(t=oi(ir.current),Ka(s)){d=s.stateNode,l=s.type;var k=s.memoizedProps;switch(d[rr]=s,d[As]=k,t=(s.mode&1)!==0,l){case"dialog":ct("cancel",d),ct("close",d);break;case"iframe":case"object":case"embed":ct("load",d);break;case"video":case"audio":for(x=0;x<Es.length;x++)ct(Es[x],d);break;case"source":ct("error",d);break;case"img":case"image":case"link":ct("error",d),ct("load",d);break;case"details":ct("toggle",d);break;case"input":tt(d,k),ct("invalid",d);break;case"select":d._wrapperState={wasMultiple:!!k.multiple},ct("invalid",d);break;case"textarea":It(d,k),ct("invalid",d)}Vt(l,k),x=null;for(var E in k)if(k.hasOwnProperty(E)){var R=k[E];E==="children"?typeof R=="string"?d.textContent!==R&&(k.suppressHydrationWarning!==!0&&$a(d.textContent,R,t),x=["children",R]):typeof R=="number"&&d.textContent!==""+R&&(k.suppressHydrationWarning!==!0&&$a(d.textContent,R,t),x=["children",""+R]):o.hasOwnProperty(E)&&R!=null&&E==="onScroll"&&ct("scroll",d)}switch(l){case"input":ee(d),zn(d,k,!0);break;case"textarea":ee(d),Dt(d);break;case"select":case"option":break;default:typeof k.onClick=="function"&&(d.onclick=Oa)}d=x,s.updateQueue=d,d!==null&&(s.flags|=4)}else{E=x.nodeType===9?x:x.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=ln(l)),t==="http://www.w3.org/1999/xhtml"?l==="script"?(t=E.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof d.is=="string"?t=E.createElement(l,{is:d.is}):(t=E.createElement(l),l==="select"&&(E=t,d.multiple?E.multiple=!0:d.size&&(E.size=d.size))):t=E.createElementNS(t,l),t[rr]=s,t[As]=d,Vd(t,s,!1,!1),s.stateNode=t;e:{switch(E=Ft(l,d),l){case"dialog":ct("cancel",t),ct("close",t),x=d;break;case"iframe":case"object":case"embed":ct("load",t),x=d;break;case"video":case"audio":for(x=0;x<Es.length;x++)ct(Es[x],t);x=d;break;case"source":ct("error",t),x=d;break;case"img":case"image":case"link":ct("error",t),ct("load",t),x=d;break;case"details":ct("toggle",t),x=d;break;case"input":tt(t,d),x=mt(t,d),ct("invalid",t);break;case"option":x=d;break;case"select":t._wrapperState={wasMultiple:!!d.multiple},x=A({},d,{value:void 0}),ct("invalid",t);break;case"textarea":It(t,d),x=Et(t,d),ct("invalid",t);break;default:x=d}Vt(l,x),R=x;for(k in R)if(R.hasOwnProperty(k)){var O=R[k];k==="style"?yt(t,O):k==="dangerouslySetInnerHTML"?(O=O?O.__html:void 0,O!=null&&Se(t,O)):k==="children"?typeof O=="string"?(l!=="textarea"||O!=="")&&ze(t,O):typeof O=="number"&&ze(t,""+O):k!=="suppressContentEditableWarning"&&k!=="suppressHydrationWarning"&&k!=="autoFocus"&&(o.hasOwnProperty(k)?O!=null&&k==="onScroll"&&ct("scroll",t):O!=null&&C(t,k,O,E))}switch(l){case"input":ee(t),zn(t,d,!1);break;case"textarea":ee(t),Dt(t);break;case"option":d.value!=null&&t.setAttribute("value",""+we(d.value));break;case"select":t.multiple=!!d.multiple,k=d.value,k!=null?rt(t,!!d.multiple,k,!1):d.defaultValue!=null&&rt(t,!!d.multiple,d.defaultValue,!0);break;default:typeof x.onClick=="function"&&(t.onclick=Oa)}switch(l){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}}d&&(s.flags|=4)}s.ref!==null&&(s.flags|=512,s.flags|=2097152)}return Qt(s),null;case 6:if(t&&s.stateNode!=null)qd(t,s,t.memoizedProps,d);else{if(typeof d!="string"&&s.stateNode===null)throw Error(r(166));if(l=oi(Rs.current),oi(ir.current),Ka(s)){if(d=s.stateNode,l=s.memoizedProps,d[rr]=s,(k=d.nodeValue!==l)&&(t=wn,t!==null))switch(t.tag){case 3:$a(d.nodeValue,l,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&$a(d.nodeValue,l,(t.mode&1)!==0)}k&&(s.flags|=4)}else d=(l.nodeType===9?l:l.ownerDocument).createTextNode(d),d[rr]=s,s.stateNode=d}return Qt(s),null;case 13:if(ut(ht),d=s.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(dt&&jn!==null&&(s.mode&1)!==0&&(s.flags&128)===0)Z0(),Hi(),s.flags|=98560,k=!1;else if(k=Ka(s),d!==null&&d.dehydrated!==null){if(t===null){if(!k)throw Error(r(318));if(k=s.memoizedState,k=k!==null?k.dehydrated:null,!k)throw Error(r(317));k[rr]=s}else Hi(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Qt(s),k=!1}else Vn!==null&&(Rc(Vn),Vn=null),k=!0;if(!k)return s.flags&65536?s:null}return(s.flags&128)!==0?(s.lanes=l,s):(d=d!==null,d!==(t!==null&&t.memoizedState!==null)&&d&&(s.child.flags|=8192,(s.mode&1)!==0&&(t===null||(ht.current&1)!==0?Ct===0&&(Ct=3):$c())),s.updateQueue!==null&&(s.flags|=4),Qt(s),null);case 4:return qi(),Sc(t,s),t===null&&zs(s.stateNode.containerInfo),Qt(s),null;case 10:return Jo(s.type._context),Qt(s),null;case 17:return un(s.type)&&Ha(),Qt(s),null;case 19:if(ut(ht),k=s.memoizedState,k===null)return Qt(s),null;if(d=(s.flags&128)!==0,E=k.rendering,E===null)if(d)Bs(k,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=s.child;t!==null;){if(E=Ja(t),E!==null){for(s.flags|=128,Bs(k,!1),d=E.updateQueue,d!==null&&(s.updateQueue=d,s.flags|=4),s.subtreeFlags=0,d=l,l=s.child;l!==null;)k=l,t=d,k.flags&=14680066,E=k.alternate,E===null?(k.childLanes=0,k.lanes=t,k.child=null,k.subtreeFlags=0,k.memoizedProps=null,k.memoizedState=null,k.updateQueue=null,k.dependencies=null,k.stateNode=null):(k.childLanes=E.childLanes,k.lanes=E.lanes,k.child=E.child,k.subtreeFlags=0,k.deletions=null,k.memoizedProps=E.memoizedProps,k.memoizedState=E.memoizedState,k.updateQueue=E.updateQueue,k.type=E.type,t=E.dependencies,k.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),l=l.sibling;return ot(ht,ht.current&1|2),s.child}t=t.sibling}k.tail!==null&&Oe()>Gi&&(s.flags|=128,d=!0,Bs(k,!1),s.lanes=4194304)}else{if(!d)if(t=Ja(E),t!==null){if(s.flags|=128,d=!0,l=t.updateQueue,l!==null&&(s.updateQueue=l,s.flags|=4),Bs(k,!0),k.tail===null&&k.tailMode==="hidden"&&!E.alternate&&!dt)return Qt(s),null}else 2*Oe()-k.renderingStartTime>Gi&&l!==1073741824&&(s.flags|=128,d=!0,Bs(k,!1),s.lanes=4194304);k.isBackwards?(E.sibling=s.child,s.child=E):(l=k.last,l!==null?l.sibling=E:s.child=E,k.last=E)}return k.tail!==null?(s=k.tail,k.rendering=s,k.tail=s.sibling,k.renderingStartTime=Oe(),s.sibling=null,l=ht.current,ot(ht,d?l&1|2:l&1),s):(Qt(s),null);case 22:case 23:return Fc(),d=s.memoizedState!==null,t!==null&&t.memoizedState!==null!==d&&(s.flags|=8192),d&&(s.mode&1)!==0?(bn&1073741824)!==0&&(Qt(s),s.subtreeFlags&6&&(s.flags|=8192)):Qt(s),null;case 24:return null;case 25:return null}throw Error(r(156,s.tag))}function X4(t,s){switch(Ko(s),s.tag){case 1:return un(s.type)&&Ha(),t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 3:return qi(),ut(cn),ut(qt),ac(),t=s.flags,(t&65536)!==0&&(t&128)===0?(s.flags=t&-65537|128,s):null;case 5:return ic(s),null;case 13:if(ut(ht),t=s.memoizedState,t!==null&&t.dehydrated!==null){if(s.alternate===null)throw Error(r(340));Hi()}return t=s.flags,t&65536?(s.flags=t&-65537|128,s):null;case 19:return ut(ht),null;case 4:return qi(),null;case 10:return Jo(s.type._context),null;case 22:case 23:return Fc(),null;case 24:return null;default:return null}}var ol=!1,Zt=!1,J4=typeof WeakSet=="function"?WeakSet:Set,_e=null;function Qi(t,s){var l=t.ref;if(l!==null)if(typeof l=="function")try{l(null)}catch(d){gt(t,s,d)}else l.current=null}function Nc(t,s,l){try{l()}catch(d){gt(t,s,d)}}var Kd=!1;function em(t,s){if(Fo=Ea,t=S0(),Mo(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else e:{l=(l=t.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var x=d.anchorOffset,k=d.focusNode;d=d.focusOffset;try{l.nodeType,k.nodeType}catch{l=null;break e}var E=0,R=-1,O=-1,X=0,de=0,pe=t,ue=null;t:for(;;){for(var be;pe!==l||x!==0&&pe.nodeType!==3||(R=E+x),pe!==k||d!==0&&pe.nodeType!==3||(O=E+d),pe.nodeType===3&&(E+=pe.nodeValue.length),(be=pe.firstChild)!==null;)ue=pe,pe=be;for(;;){if(pe===t)break t;if(ue===l&&++X===x&&(R=E),ue===k&&++de===d&&(O=E),(be=pe.nextSibling)!==null)break;pe=ue,ue=pe.parentNode}pe=be}l=R===-1||O===-1?null:{start:R,end:O}}else l=null}l=l||{start:0,end:0}}else l=null;for($o={focusedElem:t,selectionRange:l},Ea=!1,_e=s;_e!==null;)if(s=_e,t=s.child,(s.subtreeFlags&1028)!==0&&t!==null)t.return=s,_e=t;else for(;_e!==null;){s=_e;try{var Ne=s.alternate;if((s.flags&1024)!==0)switch(s.tag){case 0:case 11:case 15:break;case 1:if(Ne!==null){var Ce=Ne.memoizedProps,kt=Ne.memoizedState,q=s.stateNode,U=q.getSnapshotBeforeUpdate(s.elementType===s.type?Ce:Wn(s.type,Ce),kt);q.__reactInternalSnapshotBeforeUpdate=U}break;case 3:var Z=s.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(xe){gt(s,s.return,xe)}if(t=s.sibling,t!==null){t.return=s.return,_e=t;break}_e=s.return}return Ne=Kd,Kd=!1,Ne}function Hs(t,s,l){var d=s.updateQueue;if(d=d!==null?d.lastEffect:null,d!==null){var x=d=d.next;do{if((x.tag&t)===t){var k=x.destroy;x.destroy=void 0,k!==void 0&&Nc(s,l,k)}x=x.next}while(x!==d)}}function cl(t,s){if(s=s.updateQueue,s=s!==null?s.lastEffect:null,s!==null){var l=s=s.next;do{if((l.tag&t)===t){var d=l.create;l.destroy=d()}l=l.next}while(l!==s)}}function Cc(t){var s=t.ref;if(s!==null){var l=t.stateNode;switch(t.tag){case 5:t=l;break;default:t=l}typeof s=="function"?s(t):s.current=t}}function Qd(t){var s=t.alternate;s!==null&&(t.alternate=null,Qd(s)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(s=t.stateNode,s!==null&&(delete s[rr],delete s[As],delete s[Uo],delete s[R4],delete s[D4])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Zd(t){return t.tag===5||t.tag===3||t.tag===4}function Gd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Zd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ec(t,s,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,s?l.nodeType===8?l.parentNode.insertBefore(t,s):l.insertBefore(t,s):(l.nodeType===8?(s=l.parentNode,s.insertBefore(t,l)):(s=l,s.appendChild(t)),l=l._reactRootContainer,l!=null||s.onclick!==null||(s.onclick=Oa));else if(d!==4&&(t=t.child,t!==null))for(Ec(t,s,l),t=t.sibling;t!==null;)Ec(t,s,l),t=t.sibling}function zc(t,s,l){var d=t.tag;if(d===5||d===6)t=t.stateNode,s?l.insertBefore(t,s):l.appendChild(t);else if(d!==4&&(t=t.child,t!==null))for(zc(t,s,l),t=t.sibling;t!==null;)zc(t,s,l),t=t.sibling}var $t=null,qn=!1;function Br(t,s,l){for(l=l.child;l!==null;)Yd(t,s,l),l=l.sibling}function Yd(t,s,l){if(nr&&typeof nr.onCommitFiberUnmount=="function")try{nr.onCommitFiberUnmount(ja,l)}catch{}switch(l.tag){case 5:Zt||Qi(l,s);case 6:var d=$t,x=qn;$t=null,Br(t,s,l),$t=d,qn=x,$t!==null&&(qn?(t=$t,l=l.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)):$t.removeChild(l.stateNode));break;case 18:$t!==null&&(qn?(t=$t,l=l.stateNode,t.nodeType===8?Ho(t.parentNode,l):t.nodeType===1&&Ho(t,l),ks(t)):Ho($t,l.stateNode));break;case 4:d=$t,x=qn,$t=l.stateNode.containerInfo,qn=!0,Br(t,s,l),$t=d,qn=x;break;case 0:case 11:case 14:case 15:if(!Zt&&(d=l.updateQueue,d!==null&&(d=d.lastEffect,d!==null))){x=d=d.next;do{var k=x,E=k.destroy;k=k.tag,E!==void 0&&((k&2)!==0||(k&4)!==0)&&Nc(l,s,E),x=x.next}while(x!==d)}Br(t,s,l);break;case 1:if(!Zt&&(Qi(l,s),d=l.stateNode,typeof d.componentWillUnmount=="function"))try{d.props=l.memoizedProps,d.state=l.memoizedState,d.componentWillUnmount()}catch(R){gt(l,s,R)}Br(t,s,l);break;case 21:Br(t,s,l);break;case 22:l.mode&1?(Zt=(d=Zt)||l.memoizedState!==null,Br(t,s,l),Zt=d):Br(t,s,l);break;default:Br(t,s,l)}}function Xd(t){var s=t.updateQueue;if(s!==null){t.updateQueue=null;var l=t.stateNode;l===null&&(l=t.stateNode=new J4),s.forEach(function(d){var x=cm.bind(null,t,d);l.has(d)||(l.add(d),d.then(x,x))})}}function Kn(t,s){var l=s.deletions;if(l!==null)for(var d=0;d<l.length;d++){var x=l[d];try{var k=t,E=s,R=E;e:for(;R!==null;){switch(R.tag){case 5:$t=R.stateNode,qn=!1;break e;case 3:$t=R.stateNode.containerInfo,qn=!0;break e;case 4:$t=R.stateNode.containerInfo,qn=!0;break e}R=R.return}if($t===null)throw Error(r(160));Yd(k,E,x),$t=null,qn=!1;var O=x.alternate;O!==null&&(O.return=null),x.return=null}catch(X){gt(x,s,X)}}if(s.subtreeFlags&12854)for(s=s.child;s!==null;)Jd(s,t),s=s.sibling}function Jd(t,s){var l=t.alternate,d=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Kn(s,t),ar(t),d&4){try{Hs(3,t,t.return),cl(3,t)}catch(Ce){gt(t,t.return,Ce)}try{Hs(5,t,t.return)}catch(Ce){gt(t,t.return,Ce)}}break;case 1:Kn(s,t),ar(t),d&512&&l!==null&&Qi(l,l.return);break;case 5:if(Kn(s,t),ar(t),d&512&&l!==null&&Qi(l,l.return),t.flags&32){var x=t.stateNode;try{ze(x,"")}catch(Ce){gt(t,t.return,Ce)}}if(d&4&&(x=t.stateNode,x!=null)){var k=t.memoizedProps,E=l!==null?l.memoizedProps:k,R=t.type,O=t.updateQueue;if(t.updateQueue=null,O!==null)try{R==="input"&&k.type==="radio"&&k.name!=null&&xt(x,k),Ft(R,E);var X=Ft(R,k);for(E=0;E<O.length;E+=2){var de=O[E],pe=O[E+1];de==="style"?yt(x,pe):de==="dangerouslySetInnerHTML"?Se(x,pe):de==="children"?ze(x,pe):C(x,de,pe,X)}switch(R){case"input":Xt(x,k);break;case"textarea":Rt(x,k);break;case"select":var ue=x._wrapperState.wasMultiple;x._wrapperState.wasMultiple=!!k.multiple;var be=k.value;be!=null?rt(x,!!k.multiple,be,!1):ue!==!!k.multiple&&(k.defaultValue!=null?rt(x,!!k.multiple,k.defaultValue,!0):rt(x,!!k.multiple,k.multiple?[]:"",!1))}x[As]=k}catch(Ce){gt(t,t.return,Ce)}}break;case 6:if(Kn(s,t),ar(t),d&4){if(t.stateNode===null)throw Error(r(162));x=t.stateNode,k=t.memoizedProps;try{x.nodeValue=k}catch(Ce){gt(t,t.return,Ce)}}break;case 3:if(Kn(s,t),ar(t),d&4&&l!==null&&l.memoizedState.isDehydrated)try{ks(s.containerInfo)}catch(Ce){gt(t,t.return,Ce)}break;case 4:Kn(s,t),ar(t);break;case 13:Kn(s,t),ar(t),x=t.child,x.flags&8192&&(k=x.memoizedState!==null,x.stateNode.isHidden=k,!k||x.alternate!==null&&x.alternate.memoizedState!==null||(Pc=Oe())),d&4&&Xd(t);break;case 22:if(de=l!==null&&l.memoizedState!==null,t.mode&1?(Zt=(X=Zt)||de,Kn(s,t),Zt=X):Kn(s,t),ar(t),d&8192){if(X=t.memoizedState!==null,(t.stateNode.isHidden=X)&&!de&&(t.mode&1)!==0)for(_e=t,de=t.child;de!==null;){for(pe=_e=de;_e!==null;){switch(ue=_e,be=ue.child,ue.tag){case 0:case 11:case 14:case 15:Hs(4,ue,ue.return);break;case 1:Qi(ue,ue.return);var Ne=ue.stateNode;if(typeof Ne.componentWillUnmount=="function"){d=ue,l=ue.return;try{s=d,Ne.props=s.memoizedProps,Ne.state=s.memoizedState,Ne.componentWillUnmount()}catch(Ce){gt(d,l,Ce)}}break;case 5:Qi(ue,ue.return);break;case 22:if(ue.memoizedState!==null){n2(pe);continue}}be!==null?(be.return=ue,_e=be):n2(pe)}de=de.sibling}e:for(de=null,pe=t;;){if(pe.tag===5){if(de===null){de=pe;try{x=pe.stateNode,X?(k=x.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none"):(R=pe.stateNode,O=pe.memoizedProps.style,E=O!=null&&O.hasOwnProperty("display")?O.display:null,R.style.display=lt("display",E))}catch(Ce){gt(t,t.return,Ce)}}}else if(pe.tag===6){if(de===null)try{pe.stateNode.nodeValue=X?"":pe.memoizedProps}catch(Ce){gt(t,t.return,Ce)}}else if((pe.tag!==22&&pe.tag!==23||pe.memoizedState===null||pe===t)&&pe.child!==null){pe.child.return=pe,pe=pe.child;continue}if(pe===t)break e;for(;pe.sibling===null;){if(pe.return===null||pe.return===t)break e;de===pe&&(de=null),pe=pe.return}de===pe&&(de=null),pe.sibling.return=pe.return,pe=pe.sibling}}break;case 19:Kn(s,t),ar(t),d&4&&Xd(t);break;case 21:break;default:Kn(s,t),ar(t)}}function ar(t){var s=t.flags;if(s&2){try{e:{for(var l=t.return;l!==null;){if(Zd(l)){var d=l;break e}l=l.return}throw Error(r(160))}switch(d.tag){case 5:var x=d.stateNode;d.flags&32&&(ze(x,""),d.flags&=-33);var k=Gd(t);zc(t,k,x);break;case 3:case 4:var E=d.stateNode.containerInfo,R=Gd(t);Ec(t,R,E);break;default:throw Error(r(161))}}catch(O){gt(t,t.return,O)}t.flags&=-3}s&4096&&(t.flags&=-4097)}function tm(t,s,l){_e=t,e2(t)}function e2(t,s,l){for(var d=(t.mode&1)!==0;_e!==null;){var x=_e,k=x.child;if(x.tag===22&&d){var E=x.memoizedState!==null||ol;if(!E){var R=x.alternate,O=R!==null&&R.memoizedState!==null||Zt;R=ol;var X=Zt;if(ol=E,(Zt=O)&&!X)for(_e=x;_e!==null;)E=_e,O=E.child,E.tag===22&&E.memoizedState!==null?r2(x):O!==null?(O.return=E,_e=O):r2(x);for(;k!==null;)_e=k,e2(k),k=k.sibling;_e=x,ol=R,Zt=X}t2(t)}else(x.subtreeFlags&8772)!==0&&k!==null?(k.return=x,_e=k):t2(t)}}function t2(t){for(;_e!==null;){var s=_e;if((s.flags&8772)!==0){var l=s.alternate;try{if((s.flags&8772)!==0)switch(s.tag){case 0:case 11:case 15:Zt||cl(5,s);break;case 1:var d=s.stateNode;if(s.flags&4&&!Zt)if(l===null)d.componentDidMount();else{var x=s.elementType===s.type?l.memoizedProps:Wn(s.type,l.memoizedProps);d.componentDidUpdate(x,l.memoizedState,d.__reactInternalSnapshotBeforeUpdate)}var k=s.updateQueue;k!==null&&nd(s,k,d);break;case 3:var E=s.updateQueue;if(E!==null){if(l=null,s.child!==null)switch(s.child.tag){case 5:l=s.child.stateNode;break;case 1:l=s.child.stateNode}nd(s,E,l)}break;case 5:var R=s.stateNode;if(l===null&&s.flags&4){l=R;var O=s.memoizedProps;switch(s.type){case"button":case"input":case"select":case"textarea":O.autoFocus&&l.focus();break;case"img":O.src&&(l.src=O.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(s.memoizedState===null){var X=s.alternate;if(X!==null){var de=X.memoizedState;if(de!==null){var pe=de.dehydrated;pe!==null&&ks(pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Zt||s.flags&512&&Cc(s)}catch(ue){gt(s,s.return,ue)}}if(s===t){_e=null;break}if(l=s.sibling,l!==null){l.return=s.return,_e=l;break}_e=s.return}}function n2(t){for(;_e!==null;){var s=_e;if(s===t){_e=null;break}var l=s.sibling;if(l!==null){l.return=s.return,_e=l;break}_e=s.return}}function r2(t){for(;_e!==null;){var s=_e;try{switch(s.tag){case 0:case 11:case 15:var l=s.return;try{cl(4,s)}catch(O){gt(s,l,O)}break;case 1:var d=s.stateNode;if(typeof d.componentDidMount=="function"){var x=s.return;try{d.componentDidMount()}catch(O){gt(s,x,O)}}var k=s.return;try{Cc(s)}catch(O){gt(s,k,O)}break;case 5:var E=s.return;try{Cc(s)}catch(O){gt(s,E,O)}}}catch(O){gt(s,s.return,O)}if(s===t){_e=null;break}var R=s.sibling;if(R!==null){R.return=s.return,_e=R;break}_e=s.return}}var nm=Math.ceil,ul=M.ReactCurrentDispatcher,Mc=M.ReactCurrentOwner,In=M.ReactCurrentBatchConfig,Ge=0,Mt=null,jt=null,Ot=0,bn=0,Zi=Rr(0),Ct=0,Us=null,ui=0,dl=0,Ac=0,Vs=null,hn=null,Pc=0,Gi=1/0,br=null,hl=!1,Tc=null,Hr=null,pl=!1,Ur=null,fl=0,Ws=0,Lc=null,ml=-1,gl=0;function rn(){return(Ge&6)!==0?Oe():ml!==-1?ml:ml=Oe()}function Vr(t){return(t.mode&1)===0?1:(Ge&2)!==0&&Ot!==0?Ot&-Ot:$4.transition!==null?(gl===0&&(gl=G1()),gl):(t=nt,t!==0||(t=window.event,t=t===void 0?16:s0(t.type)),t)}function Qn(t,s,l,d){if(50<Ws)throw Ws=0,Lc=null,Error(r(185));ms(t,l,d),((Ge&2)===0||t!==Mt)&&(t===Mt&&((Ge&2)===0&&(dl|=l),Ct===4&&Wr(t,Ot)),pn(t,d),l===1&&Ge===0&&(s.mode&1)===0&&(Gi=Oe()+500,Va&&Fr()))}function pn(t,s){var l=t.callbackNode;$3(t,s);var d=Sa(t,t===Mt?Ot:0);if(d===0)l!==null&&hs(l),t.callbackNode=null,t.callbackPriority=0;else if(s=d&-d,t.callbackPriority!==s){if(l!=null&&hs(l),s===1)t.tag===0?F4(s2.bind(null,t)):V0(s2.bind(null,t)),L4(function(){(Ge&6)===0&&Fr()}),l=null;else{switch(Y1(d)){case 1:l=er;break;case 4:l=ps;break;case 16:l=Wt;break;case 536870912:l=ni;break;default:l=Wt}l=p2(l,i2.bind(null,t))}t.callbackPriority=s,t.callbackNode=l}}function i2(t,s){if(ml=-1,gl=0,(Ge&6)!==0)throw Error(r(327));var l=t.callbackNode;if(Yi()&&t.callbackNode!==l)return null;var d=Sa(t,t===Mt?Ot:0);if(d===0)return null;if((d&30)!==0||(d&t.expiredLanes)!==0||s)s=xl(t,d);else{s=d;var x=Ge;Ge|=2;var k=l2();(Mt!==t||Ot!==s)&&(br=null,Gi=Oe()+500,hi(t,s));do try{sm();break}catch(R){a2(t,R)}while(!0);Xo(),ul.current=k,Ge=x,jt!==null?s=0:(Mt=null,Ot=0,s=Ct)}if(s!==0){if(s===2&&(x=fo(t),x!==0&&(d=x,s=Ic(t,x))),s===1)throw l=Us,hi(t,0),Wr(t,d),pn(t,Oe()),l;if(s===6)Wr(t,d);else{if(x=t.current.alternate,(d&30)===0&&!rm(x)&&(s=xl(t,d),s===2&&(k=fo(t),k!==0&&(d=k,s=Ic(t,k))),s===1))throw l=Us,hi(t,0),Wr(t,d),pn(t,Oe()),l;switch(t.finishedWork=x,t.finishedLanes=d,s){case 0:case 1:throw Error(r(345));case 2:pi(t,hn,br);break;case 3:if(Wr(t,d),(d&130023424)===d&&(s=Pc+500-Oe(),10<s)){if(Sa(t,0)!==0)break;if(x=t.suspendedLanes,(x&d)!==d){rn(),t.pingedLanes|=t.suspendedLanes&x;break}t.timeoutHandle=Bo(pi.bind(null,t,hn,br),s);break}pi(t,hn,br);break;case 4:if(Wr(t,d),(d&4194240)===d)break;for(s=t.eventTimes,x=-1;0<d;){var E=31-Hn(d);k=1<<E,E=s[E],E>x&&(x=E),d&=~k}if(d=x,d=Oe()-d,d=(120>d?120:480>d?480:1080>d?1080:1920>d?1920:3e3>d?3e3:4320>d?4320:1960*nm(d/1960))-d,10<d){t.timeoutHandle=Bo(pi.bind(null,t,hn,br),d);break}pi(t,hn,br);break;case 5:pi(t,hn,br);break;default:throw Error(r(329))}}}return pn(t,Oe()),t.callbackNode===l?i2.bind(null,t):null}function Ic(t,s){var l=Vs;return t.current.memoizedState.isDehydrated&&(hi(t,s).flags|=256),t=xl(t,s),t!==2&&(s=hn,hn=l,s!==null&&Rc(s)),t}function Rc(t){hn===null?hn=t:hn.push.apply(hn,t)}function rm(t){for(var s=t;;){if(s.flags&16384){var l=s.updateQueue;if(l!==null&&(l=l.stores,l!==null))for(var d=0;d<l.length;d++){var x=l[d],k=x.getSnapshot;x=x.value;try{if(!Un(k(),x))return!1}catch{return!1}}}if(l=s.child,s.subtreeFlags&16384&&l!==null)l.return=s,s=l;else{if(s===t)break;for(;s.sibling===null;){if(s.return===null||s.return===t)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Wr(t,s){for(s&=~Ac,s&=~dl,t.suspendedLanes|=s,t.pingedLanes&=~s,t=t.expirationTimes;0<s;){var l=31-Hn(s),d=1<<l;t[l]=-1,s&=~d}}function s2(t){if((Ge&6)!==0)throw Error(r(327));Yi();var s=Sa(t,0);if((s&1)===0)return pn(t,Oe()),null;var l=xl(t,s);if(t.tag!==0&&l===2){var d=fo(t);d!==0&&(s=d,l=Ic(t,d))}if(l===1)throw l=Us,hi(t,0),Wr(t,s),pn(t,Oe()),l;if(l===6)throw Error(r(345));return t.finishedWork=t.current.alternate,t.finishedLanes=s,pi(t,hn,br),pn(t,Oe()),null}function Dc(t,s){var l=Ge;Ge|=1;try{return t(s)}finally{Ge=l,Ge===0&&(Gi=Oe()+500,Va&&Fr())}}function di(t){Ur!==null&&Ur.tag===0&&(Ge&6)===0&&Yi();var s=Ge;Ge|=1;var l=In.transition,d=nt;try{if(In.transition=null,nt=1,t)return t()}finally{nt=d,In.transition=l,Ge=s,(Ge&6)===0&&Fr()}}function Fc(){bn=Zi.current,ut(Zi)}function hi(t,s){t.finishedWork=null,t.finishedLanes=0;var l=t.timeoutHandle;if(l!==-1&&(t.timeoutHandle=-1,T4(l)),jt!==null)for(l=jt.return;l!==null;){var d=l;switch(Ko(d),d.tag){case 1:d=d.type.childContextTypes,d!=null&&Ha();break;case 3:qi(),ut(cn),ut(qt),ac();break;case 5:ic(d);break;case 4:qi();break;case 13:ut(ht);break;case 19:ut(ht);break;case 10:Jo(d.type._context);break;case 22:case 23:Fc()}l=l.return}if(Mt=t,jt=t=qr(t.current,null),Ot=bn=s,Ct=0,Us=null,Ac=dl=ui=0,hn=Vs=null,li!==null){for(s=0;s<li.length;s++)if(l=li[s],d=l.interleaved,d!==null){l.interleaved=null;var x=d.next,k=l.pending;if(k!==null){var E=k.next;k.next=x,d.next=E}l.pending=d}li=null}return t}function a2(t,s){do{var l=jt;try{if(Xo(),el.current=il,tl){for(var d=pt.memoizedState;d!==null;){var x=d.queue;x!==null&&(x.pending=null),d=d.next}tl=!1}if(ci=0,zt=Nt=pt=null,Ds=!1,Fs=0,Mc.current=null,l===null||l.return===null){Ct=1,Us=s,jt=null;break}e:{var k=t,E=l.return,R=l,O=s;if(s=Ot,R.flags|=32768,O!==null&&typeof O=="object"&&typeof O.then=="function"){var X=O,de=R,pe=de.tag;if((de.mode&1)===0&&(pe===0||pe===11||pe===15)){var ue=de.alternate;ue?(de.updateQueue=ue.updateQueue,de.memoizedState=ue.memoizedState,de.lanes=ue.lanes):(de.updateQueue=null,de.memoizedState=null)}var be=Ad(E);if(be!==null){be.flags&=-257,Pd(be,E,R,k,s),be.mode&1&&Md(k,X,s),s=be,O=X;var Ne=s.updateQueue;if(Ne===null){var Ce=new Set;Ce.add(O),s.updateQueue=Ce}else Ne.add(O);break e}else{if((s&1)===0){Md(k,X,s),$c();break e}O=Error(r(426))}}else if(dt&&R.mode&1){var kt=Ad(E);if(kt!==null){(kt.flags&65536)===0&&(kt.flags|=256),Pd(kt,E,R,k,s),Go(Ki(O,R));break e}}k=O=Ki(O,R),Ct!==4&&(Ct=2),Vs===null?Vs=[k]:Vs.push(k),k=E;do{switch(k.tag){case 3:k.flags|=65536,s&=-s,k.lanes|=s;var q=Ed(k,O,s);td(k,q);break e;case 1:R=O;var U=k.type,Z=k.stateNode;if((k.flags&128)===0&&(typeof U.getDerivedStateFromError=="function"||Z!==null&&typeof Z.componentDidCatch=="function"&&(Hr===null||!Hr.has(Z)))){k.flags|=65536,s&=-s,k.lanes|=s;var xe=zd(k,R,s);td(k,xe);break e}}k=k.return}while(k!==null)}c2(l)}catch(Ee){s=Ee,jt===l&&l!==null&&(jt=l=l.return);continue}break}while(!0)}function l2(){var t=ul.current;return ul.current=il,t===null?il:t}function $c(){(Ct===0||Ct===3||Ct===2)&&(Ct=4),Mt===null||(ui&268435455)===0&&(dl&268435455)===0||Wr(Mt,Ot)}function xl(t,s){var l=Ge;Ge|=2;var d=l2();(Mt!==t||Ot!==s)&&(br=null,hi(t,s));do try{im();break}catch(x){a2(t,x)}while(!0);if(Xo(),Ge=l,ul.current=d,jt!==null)throw Error(r(261));return Mt=null,Ot=0,Ct}function im(){for(;jt!==null;)o2(jt)}function sm(){for(;jt!==null&&!Bn();)o2(jt)}function o2(t){var s=h2(t.alternate,t,bn);t.memoizedProps=t.pendingProps,s===null?c2(t):jt=s,Mc.current=null}function c2(t){var s=t;do{var l=s.alternate;if(t=s.return,(s.flags&32768)===0){if(l=Y4(l,s,bn),l!==null){jt=l;return}}else{if(l=X4(l,s),l!==null){l.flags&=32767,jt=l;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Ct=6,jt=null;return}}if(s=s.sibling,s!==null){jt=s;return}jt=s=t}while(s!==null);Ct===0&&(Ct=5)}function pi(t,s,l){var d=nt,x=In.transition;try{In.transition=null,nt=1,am(t,s,l,d)}finally{In.transition=x,nt=d}return null}function am(t,s,l,d){do Yi();while(Ur!==null);if((Ge&6)!==0)throw Error(r(327));l=t.finishedWork;var x=t.finishedLanes;if(l===null)return null;if(t.finishedWork=null,t.finishedLanes=0,l===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0;var k=l.lanes|l.childLanes;if(O3(t,k),t===Mt&&(jt=Mt=null,Ot=0),(l.subtreeFlags&2064)===0&&(l.flags&2064)===0||pl||(pl=!0,p2(Wt,function(){return Yi(),null})),k=(l.flags&15990)!==0,(l.subtreeFlags&15990)!==0||k){k=In.transition,In.transition=null;var E=nt;nt=1;var R=Ge;Ge|=4,Mc.current=null,em(t,l),Jd(l,t),N4($o),Ea=!!Fo,$o=Fo=null,t.current=l,tm(l),ke(),Ge=R,nt=E,In.transition=k}else t.current=l;if(pl&&(pl=!1,Ur=t,fl=x),k=t.pendingLanes,k===0&&(Hr=null),L3(l.stateNode),pn(t,Oe()),s!==null)for(d=t.onRecoverableError,l=0;l<s.length;l++)x=s[l],d(x.value,{componentStack:x.stack,digest:x.digest});if(hl)throw hl=!1,t=Tc,Tc=null,t;return(fl&1)!==0&&t.tag!==0&&Yi(),k=t.pendingLanes,(k&1)!==0?t===Lc?Ws++:(Ws=0,Lc=t):Ws=0,Fr(),null}function Yi(){if(Ur!==null){var t=Y1(fl),s=In.transition,l=nt;try{if(In.transition=null,nt=16>t?16:t,Ur===null)var d=!1;else{if(t=Ur,Ur=null,fl=0,(Ge&6)!==0)throw Error(r(331));var x=Ge;for(Ge|=4,_e=t.current;_e!==null;){var k=_e,E=k.child;if((_e.flags&16)!==0){var R=k.deletions;if(R!==null){for(var O=0;O<R.length;O++){var X=R[O];for(_e=X;_e!==null;){var de=_e;switch(de.tag){case 0:case 11:case 15:Hs(8,de,k)}var pe=de.child;if(pe!==null)pe.return=de,_e=pe;else for(;_e!==null;){de=_e;var ue=de.sibling,be=de.return;if(Qd(de),de===X){_e=null;break}if(ue!==null){ue.return=be,_e=ue;break}_e=be}}}var Ne=k.alternate;if(Ne!==null){var Ce=Ne.child;if(Ce!==null){Ne.child=null;do{var kt=Ce.sibling;Ce.sibling=null,Ce=kt}while(Ce!==null)}}_e=k}}if((k.subtreeFlags&2064)!==0&&E!==null)E.return=k,_e=E;else e:for(;_e!==null;){if(k=_e,(k.flags&2048)!==0)switch(k.tag){case 0:case 11:case 15:Hs(9,k,k.return)}var q=k.sibling;if(q!==null){q.return=k.return,_e=q;break e}_e=k.return}}var U=t.current;for(_e=U;_e!==null;){E=_e;var Z=E.child;if((E.subtreeFlags&2064)!==0&&Z!==null)Z.return=E,_e=Z;else e:for(E=U;_e!==null;){if(R=_e,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:cl(9,R)}}catch(Ee){gt(R,R.return,Ee)}if(R===E){_e=null;break e}var xe=R.sibling;if(xe!==null){xe.return=R.return,_e=xe;break e}_e=R.return}}if(Ge=x,Fr(),nr&&typeof nr.onPostCommitFiberRoot=="function")try{nr.onPostCommitFiberRoot(ja,t)}catch{}d=!0}return d}finally{nt=l,In.transition=s}}return!1}function u2(t,s,l){s=Ki(l,s),s=Ed(t,s,1),t=Or(t,s,1),s=rn(),t!==null&&(ms(t,1,s),pn(t,s))}function gt(t,s,l){if(t.tag===3)u2(t,t,l);else for(;s!==null;){if(s.tag===3){u2(s,t,l);break}else if(s.tag===1){var d=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Hr===null||!Hr.has(d))){t=Ki(l,t),t=zd(s,t,1),s=Or(s,t,1),t=rn(),s!==null&&(ms(s,1,t),pn(s,t));break}}s=s.return}}function lm(t,s,l){var d=t.pingCache;d!==null&&d.delete(s),s=rn(),t.pingedLanes|=t.suspendedLanes&l,Mt===t&&(Ot&l)===l&&(Ct===4||Ct===3&&(Ot&130023424)===Ot&&500>Oe()-Pc?hi(t,0):Ac|=l),pn(t,s)}function d2(t,s){s===0&&((t.mode&1)===0?s=1:(s=_a,_a<<=1,(_a&130023424)===0&&(_a=4194304)));var l=rn();t=kr(t,s),t!==null&&(ms(t,s,l),pn(t,l))}function om(t){var s=t.memoizedState,l=0;s!==null&&(l=s.retryLane),d2(t,l)}function cm(t,s){var l=0;switch(t.tag){case 13:var d=t.stateNode,x=t.memoizedState;x!==null&&(l=x.retryLane);break;case 19:d=t.stateNode;break;default:throw Error(r(314))}d!==null&&d.delete(s),d2(t,l)}var h2;h2=function(t,s,l){if(t!==null)if(t.memoizedProps!==s.pendingProps||cn.current)dn=!0;else{if((t.lanes&l)===0&&(s.flags&128)===0)return dn=!1,G4(t,s,l);dn=(t.flags&131072)!==0}else dn=!1,dt&&(s.flags&1048576)!==0&&W0(s,qa,s.index);switch(s.lanes=0,s.tag){case 2:var d=s.type;ll(t,s),t=s.pendingProps;var x=$i(s,qt.current);Wi(s,l),x=cc(null,s,d,t,x,l);var k=uc();return s.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(s.tag=1,s.memoizedState=null,s.updateQueue=null,un(d)?(k=!0,Ua(s)):k=!1,s.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,nc(s),x.updater=sl,s.stateNode=x,x._reactInternals=s,gc(s,d,t,l),s=kc(null,s,d,!0,k,l)):(s.tag=0,dt&&k&&qo(s),nn(null,s,x,l),s=s.child),s;case 16:d=s.elementType;e:{switch(ll(t,s),t=s.pendingProps,x=d._init,d=x(d._payload),s.type=d,x=s.tag=dm(d),t=Wn(d,t),x){case 0:s=vc(null,s,d,t,l);break e;case 1:s=Fd(null,s,d,t,l);break e;case 11:s=Td(null,s,d,t,l);break e;case 14:s=Ld(null,s,d,Wn(d.type,t),l);break e}throw Error(r(306,d,""))}return s;case 0:return d=s.type,x=s.pendingProps,x=s.elementType===d?x:Wn(d,x),vc(t,s,d,x,l);case 1:return d=s.type,x=s.pendingProps,x=s.elementType===d?x:Wn(d,x),Fd(t,s,d,x,l);case 3:e:{if($d(s),t===null)throw Error(r(387));d=s.pendingProps,k=s.memoizedState,x=k.element,ed(t,s),Xa(s,d,null,l);var E=s.memoizedState;if(d=E.element,k.isDehydrated)if(k={element:d,isDehydrated:!1,cache:E.cache,pendingSuspenseBoundaries:E.pendingSuspenseBoundaries,transitions:E.transitions},s.updateQueue.baseState=k,s.memoizedState=k,s.flags&256){x=Ki(Error(r(423)),s),s=Od(t,s,d,l,x);break e}else if(d!==x){x=Ki(Error(r(424)),s),s=Od(t,s,d,l,x);break e}else for(jn=Ir(s.stateNode.containerInfo.firstChild),wn=s,dt=!0,Vn=null,l=X0(s,null,d,l),s.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling;else{if(Hi(),d===x){s=jr(t,s,l);break e}nn(t,s,d,l)}s=s.child}return s;case 5:return rd(s),t===null&&Zo(s),d=s.type,x=s.pendingProps,k=t!==null?t.memoizedProps:null,E=x.children,Oo(d,x)?E=null:k!==null&&Oo(d,k)&&(s.flags|=32),Dd(t,s),nn(t,s,E,l),s.child;case 6:return t===null&&Zo(s),null;case 13:return Bd(t,s,l);case 4:return rc(s,s.stateNode.containerInfo),d=s.pendingProps,t===null?s.child=Ui(s,null,d,l):nn(t,s,d,l),s.child;case 11:return d=s.type,x=s.pendingProps,x=s.elementType===d?x:Wn(d,x),Td(t,s,d,x,l);case 7:return nn(t,s,s.pendingProps,l),s.child;case 8:return nn(t,s,s.pendingProps.children,l),s.child;case 12:return nn(t,s,s.pendingProps.children,l),s.child;case 10:e:{if(d=s.type._context,x=s.pendingProps,k=s.memoizedProps,E=x.value,ot(Za,d._currentValue),d._currentValue=E,k!==null)if(Un(k.value,E)){if(k.children===x.children&&!cn.current){s=jr(t,s,l);break e}}else for(k=s.child,k!==null&&(k.return=s);k!==null;){var R=k.dependencies;if(R!==null){E=k.child;for(var O=R.firstContext;O!==null;){if(O.context===d){if(k.tag===1){O=wr(-1,l&-l),O.tag=2;var X=k.updateQueue;if(X!==null){X=X.shared;var de=X.pending;de===null?O.next=O:(O.next=de.next,de.next=O),X.pending=O}}k.lanes|=l,O=k.alternate,O!==null&&(O.lanes|=l),ec(k.return,l,s),R.lanes|=l;break}O=O.next}}else if(k.tag===10)E=k.type===s.type?null:k.child;else if(k.tag===18){if(E=k.return,E===null)throw Error(r(341));E.lanes|=l,R=E.alternate,R!==null&&(R.lanes|=l),ec(E,l,s),E=k.sibling}else E=k.child;if(E!==null)E.return=k;else for(E=k;E!==null;){if(E===s){E=null;break}if(k=E.sibling,k!==null){k.return=E.return,E=k;break}E=E.return}k=E}nn(t,s,x.children,l),s=s.child}return s;case 9:return x=s.type,d=s.pendingProps.children,Wi(s,l),x=Tn(x),d=d(x),s.flags|=1,nn(t,s,d,l),s.child;case 14:return d=s.type,x=Wn(d,s.pendingProps),x=Wn(d.type,x),Ld(t,s,d,x,l);case 15:return Id(t,s,s.type,s.pendingProps,l);case 17:return d=s.type,x=s.pendingProps,x=s.elementType===d?x:Wn(d,x),ll(t,s),s.tag=1,un(d)?(t=!0,Ua(s)):t=!1,Wi(s,l),Nd(s,d,x),gc(s,d,x,l),kc(null,s,d,!0,t,l);case 19:return Ud(t,s,l);case 22:return Rd(t,s,l)}throw Error(r(156,s.tag))};function p2(t,s){return wa(t,s)}function um(t,s,l,d){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(t,s,l,d){return new um(t,s,l,d)}function Oc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dm(t){if(typeof t=="function")return Oc(t)?1:0;if(t!=null){if(t=t.$$typeof,t===B)return 11;if(t===ne)return 14}return 2}function qr(t,s){var l=t.alternate;return l===null?(l=Rn(t.tag,s,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=s,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&14680064,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,s=t.dependencies,l.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l}function yl(t,s,l,d,x,k){var E=2;if(d=t,typeof t=="function")Oc(t)&&(E=1);else if(typeof t=="string")E=5;else e:switch(t){case L:return fi(l.children,x,k,s);case V:E=8,x|=8;break;case K:return t=Rn(12,l,s,x|2),t.elementType=K,t.lanes=k,t;case H:return t=Rn(13,l,s,x),t.elementType=H,t.lanes=k,t;case Y:return t=Rn(19,l,s,x),t.elementType=Y,t.lanes=k,t;case re:return vl(l,x,k,s);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case D:E=10;break e;case I:E=9;break e;case B:E=11;break e;case ne:E=14;break e;case ie:E=16,d=null;break e}throw Error(r(130,t==null?t:typeof t,""))}return s=Rn(E,l,s,x),s.elementType=t,s.type=d,s.lanes=k,s}function fi(t,s,l,d){return t=Rn(7,t,d,s),t.lanes=l,t}function vl(t,s,l,d){return t=Rn(22,t,d,s),t.elementType=re,t.lanes=l,t.stateNode={isHidden:!1},t}function Bc(t,s,l){return t=Rn(6,t,null,s),t.lanes=l,t}function Hc(t,s,l){return s=Rn(4,t.children!==null?t.children:[],t.key,s),s.lanes=l,s.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},s}function hm(t,s,l,d,x){this.tag=s,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mo(0),this.expirationTimes=mo(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mo(0),this.identifierPrefix=d,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function Uc(t,s,l,d,x,k,E,R,O){return t=new hm(t,s,l,R,O),s===1?(s=1,k===!0&&(s|=8)):s=0,k=Rn(3,null,null,s),t.current=k,k.stateNode=t,k.memoizedState={element:d,isDehydrated:l,cache:null,transitions:null,pendingSuspenseBoundaries:null},nc(k),t}function pm(t,s,l){var d=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:N,key:d==null?null:""+d,children:t,containerInfo:s,implementation:l}}function f2(t){if(!t)return Dr;t=t._reactInternals;e:{if(on(t)!==t||t.tag!==1)throw Error(r(170));var s=t;do{switch(s.tag){case 3:s=s.stateNode.context;break e;case 1:if(un(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break e}}s=s.return}while(s!==null);throw Error(r(171))}if(t.tag===1){var l=t.type;if(un(l))return H0(t,l,s)}return s}function m2(t,s,l,d,x,k,E,R,O){return t=Uc(l,d,!0,t,x,k,E,R,O),t.context=f2(null),l=t.current,d=rn(),x=Vr(l),k=wr(d,x),k.callback=s??null,Or(l,k,x),t.current.lanes=x,ms(t,x,d),pn(t,d),t}function kl(t,s,l,d){var x=s.current,k=rn(),E=Vr(x);return l=f2(l),s.context===null?s.context=l:s.pendingContext=l,s=wr(k,E),s.payload={element:t},d=d===void 0?null:d,d!==null&&(s.callback=d),t=Or(x,s,E),t!==null&&(Qn(t,x,E,k),Ya(t,x,E)),E}function wl(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function g2(t,s){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<s?l:s}}function Vc(t,s){g2(t,s),(t=t.alternate)&&g2(t,s)}function fm(){return null}var x2=typeof reportError=="function"?reportError:function(t){console.error(t)};function Wc(t){this._internalRoot=t}jl.prototype.render=Wc.prototype.render=function(t){var s=this._internalRoot;if(s===null)throw Error(r(409));kl(t,s,null,null)},jl.prototype.unmount=Wc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var s=t.containerInfo;di(function(){kl(null,t,null,null)}),s[gr]=null}};function jl(t){this._internalRoot=t}jl.prototype.unstable_scheduleHydration=function(t){if(t){var s=e0();t={blockedOn:null,target:t,priority:s};for(var l=0;l<Pr.length&&s!==0&&s<Pr[l].priority;l++);Pr.splice(l,0,t),l===0&&r0(t)}};function qc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function bl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function y2(){}function mm(t,s,l,d,x){if(x){if(typeof d=="function"){var k=d;d=function(){var X=wl(E);k.call(X)}}var E=m2(s,d,t,0,null,!1,!1,"",y2);return t._reactRootContainer=E,t[gr]=E.current,zs(t.nodeType===8?t.parentNode:t),di(),E}for(;x=t.lastChild;)t.removeChild(x);if(typeof d=="function"){var R=d;d=function(){var X=wl(O);R.call(X)}}var O=Uc(t,0,!1,null,null,!1,!1,"",y2);return t._reactRootContainer=O,t[gr]=O.current,zs(t.nodeType===8?t.parentNode:t),di(function(){kl(s,O,l,d)}),O}function _l(t,s,l,d,x){var k=l._reactRootContainer;if(k){var E=k;if(typeof x=="function"){var R=x;x=function(){var O=wl(E);R.call(O)}}kl(s,E,t,x)}else E=mm(l,s,t,x,d);return wl(E)}X1=function(t){switch(t.tag){case 3:var s=t.stateNode;if(s.current.memoizedState.isDehydrated){var l=fs(s.pendingLanes);l!==0&&(go(s,l|1),pn(s,Oe()),(Ge&6)===0&&(Gi=Oe()+500,Fr()))}break;case 13:di(function(){var d=kr(t,1);if(d!==null){var x=rn();Qn(d,t,1,x)}}),Vc(t,1)}},xo=function(t){if(t.tag===13){var s=kr(t,134217728);if(s!==null){var l=rn();Qn(s,t,134217728,l)}Vc(t,134217728)}},J1=function(t){if(t.tag===13){var s=Vr(t),l=kr(t,s);if(l!==null){var d=rn();Qn(l,t,s,d)}Vc(t,s)}},e0=function(){return nt},t0=function(t,s){var l=nt;try{return nt=t,s()}finally{nt=l}},Ie=function(t,s,l){switch(s){case"input":if(Xt(t,l),s=l.name,l.type==="radio"&&s!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll("input[name="+JSON.stringify(""+s)+'][type="radio"]'),s=0;s<l.length;s++){var d=l[s];if(d!==t&&d.form===t.form){var x=Ba(d);if(!x)throw Error(r(90));Ae(d),Xt(d,x)}}}break;case"textarea":Rt(t,l);break;case"select":s=l.value,s!=null&&rt(t,!!l.multiple,s,!1)}},oe=Dc,me=di;var gm={usingClientEntryPoint:!1,Events:[Ps,Di,Ba,vt,Q,Dc]},qs={findFiberByHostInstance:ri,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},xm={bundleType:qs.bundleType,version:qs.version,rendererPackageName:qs.rendererPackageName,rendererConfig:qs.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:M.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=va(t),t===null?null:t.stateNode},findFiberByHostInstance:qs.findFiberByHostInstance||fm,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 Sl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sl.isDisabled&&Sl.supportsFiber)try{ja=Sl.inject(xm),nr=Sl}catch{}}return fn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gm,fn.createPortal=function(t,s){var l=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!qc(s))throw Error(r(200));return pm(t,s,null,l)},fn.createRoot=function(t,s){if(!qc(t))throw Error(r(299));var l=!1,d="",x=x2;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onRecoverableError!==void 0&&(x=s.onRecoverableError)),s=Uc(t,1,!1,null,null,l,!1,d,x),t[gr]=s.current,zs(t.nodeType===8?t.parentNode:t),new Wc(s)},fn.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var s=t._reactInternals;if(s===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=va(s),t=t===null?null:t.stateNode,t},fn.flushSync=function(t){return di(t)},fn.hydrate=function(t,s,l){if(!bl(s))throw Error(r(200));return _l(null,t,s,!0,l)},fn.hydrateRoot=function(t,s,l){if(!qc(t))throw Error(r(405));var d=l!=null&&l.hydratedSources||null,x=!1,k="",E=x2;if(l!=null&&(l.unstable_strictMode===!0&&(x=!0),l.identifierPrefix!==void 0&&(k=l.identifierPrefix),l.onRecoverableError!==void 0&&(E=l.onRecoverableError)),s=m2(s,null,t,1,l??null,x,!1,k,E),t[gr]=s.current,zs(t),d)for(t=0;t<d.length;t++)l=d[t],x=l._getVersion,x=x(l._source),s.mutableSourceEagerHydrationData==null?s.mutableSourceEagerHydrationData=[l,x]:s.mutableSourceEagerHydrationData.push(l,x);return new jl(s)},fn.render=function(t,s,l){if(!bl(s))throw Error(r(200));return _l(null,t,s,!1,l)},fn.unmountComponentAtNode=function(t){if(!bl(t))throw Error(r(40));return t._reactRootContainer?(di(function(){_l(null,null,t,!1,function(){t._reactRootContainer=null,t[gr]=null})}),!0):!1},fn.unstable_batchedUpdates=Dc,fn.unstable_renderSubtreeIntoContainer=function(t,s,l,d){if(!bl(l))throw Error(r(200));if(t==null||t._reactInternals===void 0)throw Error(r(38));return _l(t,s,l,!1,d)},fn.version="18.3.1-next-f1338f8080-20240426",fn}var N2;function lp(){if(N2)return Zc.exports;N2=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(n){console.error(n)}}return e(),Zc.exports=Cm(),Zc.exports}var C2;function Em(){if(C2)return Nl;C2=1;var e=lp();return Nl.createRoot=e.createRoot,Nl.hydrateRoot=e.hydrateRoot,Nl}var zm=Em();/**
|
|
41
|
+
* @license lucide-react v0.460.0 - ISC
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the ISC license.
|
|
44
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/const Mm=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),op=(...e)=>e.filter((n,r,a)=>!!n&&n.trim()!==""&&a.indexOf(n)===r).join(" ").trim();/**
|
|
46
|
+
* @license lucide-react v0.460.0 - ISC
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the ISC license.
|
|
49
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/var Am={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
51
|
+
* @license lucide-react v0.460.0 - ISC
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the ISC license.
|
|
54
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/const Pm=_.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:o="",children:c,iconNode:u,...h},p)=>_.createElement("svg",{ref:p,...Am,width:n,height:n,stroke:e,strokeWidth:a?Number(r)*24/Number(n):r,className:op("lucide",o),...h},[...u.map(([f,m])=>_.createElement(f,m)),...Array.isArray(c)?c:[c]]));/**
|
|
56
|
+
* @license lucide-react v0.460.0 - ISC
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the ISC license.
|
|
59
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/const ae=(e,n)=>{const r=_.forwardRef(({className:a,...o},c)=>_.createElement(Pm,{ref:c,iconNode:n,className:op(`lucide-${Mm(e)}`,a),...o}));return r.displayName=`${e}`,r};/**
|
|
61
|
+
* @license lucide-react v0.460.0 - ISC
|
|
62
|
+
*
|
|
63
|
+
* This source code is licensed under the ISC license.
|
|
64
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
+
*/const oa=ae("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
66
|
+
* @license lucide-react v0.460.0 - ISC
|
|
67
|
+
*
|
|
68
|
+
* This source code is licensed under the ISC license.
|
|
69
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
+
*/const Tm=ae("ArrowDownLeft",[["path",{d:"M17 7 7 17",key:"15tmo1"}],["path",{d:"M17 17H7V7",key:"1org7z"}]]);/**
|
|
71
|
+
* @license lucide-react v0.460.0 - ISC
|
|
72
|
+
*
|
|
73
|
+
* This source code is licensed under the ISC license.
|
|
74
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
+
*/const i1=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
|
|
76
|
+
* @license lucide-react v0.460.0 - ISC
|
|
77
|
+
*
|
|
78
|
+
* This source code is licensed under the ISC license.
|
|
79
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
+
*/const ea=ae("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
|
|
81
|
+
* @license lucide-react v0.460.0 - ISC
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the ISC license.
|
|
84
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
+
*/const cp=ae("ArrowUp",[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]);/**
|
|
86
|
+
* @license lucide-react v0.460.0 - ISC
|
|
87
|
+
*
|
|
88
|
+
* This source code is licensed under the ISC license.
|
|
89
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
+
*/const Lm=ae("Ban",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]]);/**
|
|
91
|
+
* @license lucide-react v0.460.0 - ISC
|
|
92
|
+
*
|
|
93
|
+
* This source code is licensed under the ISC license.
|
|
94
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
+
*/const E2=ae("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
96
|
+
* @license lucide-react v0.460.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const up=ae("Blocks",[["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["path",{d:"M10 21V8a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-5a1 1 0 0 0-1-1H3",key:"1fpvtg"}]]);/**
|
|
101
|
+
* @license lucide-react v0.460.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const dp=ae("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/**
|
|
106
|
+
* @license lucide-react v0.460.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const Zr=ae("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
|
111
|
+
* @license lucide-react v0.460.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const hp=ae("Box",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
|
|
116
|
+
* @license lucide-react v0.460.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const s1=ae("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
|
|
121
|
+
* @license lucide-react v0.460.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Im=ae("Braces",[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]]);/**
|
|
126
|
+
* @license lucide-react v0.460.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const pp=ae("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
|
131
|
+
* @license lucide-react v0.460.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const Rm=ae("CheckCheck",[["path",{d:"M18 6 7 17l-5-5",key:"116fxf"}],["path",{d:"m22 10-7.5 7.5L13 16",key:"ke71qq"}]]);/**
|
|
136
|
+
* @license lucide-react v0.460.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const pr=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
141
|
+
* @license lucide-react v0.460.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const On=ae("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
146
|
+
* @license lucide-react v0.460.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const fp=ae("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
|
151
|
+
* @license lucide-react v0.460.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Ni=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
156
|
+
* @license lucide-react v0.460.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const Mu=ae("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
161
|
+
* @license lucide-react v0.460.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const ss=ae("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
166
|
+
* @license lucide-react v0.460.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Ei=ae("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
171
|
+
* @license lucide-react v0.460.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const mp=ae("CircleDashed",[["path",{d:"M10.1 2.182a10 10 0 0 1 3.8 0",key:"5ilxe3"}],["path",{d:"M13.9 21.818a10 10 0 0 1-3.8 0",key:"11zvb9"}],["path",{d:"M17.609 3.721a10 10 0 0 1 2.69 2.7",key:"1iw5b2"}],["path",{d:"M2.182 13.9a10 10 0 0 1 0-3.8",key:"c0bmvh"}],["path",{d:"M20.279 17.609a10 10 0 0 1-2.7 2.69",key:"1ruxm7"}],["path",{d:"M21.818 10.1a10 10 0 0 1 0 3.8",key:"qkgqxc"}],["path",{d:"M3.721 6.391a10 10 0 0 1 2.7-2.69",key:"1mcia2"}],["path",{d:"M6.391 20.279a10 10 0 0 1-2.69-2.7",key:"1fvljs"}]]);/**
|
|
176
|
+
* @license lucide-react v0.460.0 - ISC
|
|
177
|
+
*
|
|
178
|
+
* This source code is licensed under the ISC license.
|
|
179
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
+
*/const gp=ae("CircleDot",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]]);/**
|
|
181
|
+
* @license lucide-react v0.460.0 - ISC
|
|
182
|
+
*
|
|
183
|
+
* This source code is licensed under the ISC license.
|
|
184
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
+
*/const xp=ae("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
186
|
+
* @license lucide-react v0.460.0 - ISC
|
|
187
|
+
*
|
|
188
|
+
* This source code is licensed under the ISC license.
|
|
189
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
+
*/const yp=ae("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
|
|
191
|
+
* @license lucide-react v0.460.0 - ISC
|
|
192
|
+
*
|
|
193
|
+
* This source code is licensed under the ISC license.
|
|
194
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
+
*/const Au=ae("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|
196
|
+
* @license lucide-react v0.460.0 - ISC
|
|
197
|
+
*
|
|
198
|
+
* This source code is licensed under the ISC license.
|
|
199
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
+
*/const Dm=ae("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/**
|
|
201
|
+
* @license lucide-react v0.460.0 - ISC
|
|
202
|
+
*
|
|
203
|
+
* This source code is licensed under the ISC license.
|
|
204
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
+
*/const Fm=ae("ClipboardCheck",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"m9 14 2 2 4-4",key:"df797q"}]]);/**
|
|
206
|
+
* @license lucide-react v0.460.0 - ISC
|
|
207
|
+
*
|
|
208
|
+
* This source code is licensed under the ISC license.
|
|
209
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
+
*/const Gr=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
211
|
+
* @license lucide-react v0.460.0 - ISC
|
|
212
|
+
*
|
|
213
|
+
* This source code is licensed under the ISC license.
|
|
214
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
+
*/const $m=ae("Cloud",[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]]);/**
|
|
216
|
+
* @license lucide-react v0.460.0 - ISC
|
|
217
|
+
*
|
|
218
|
+
* This source code is licensed under the ISC license.
|
|
219
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
+
*/const Om=ae("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
221
|
+
* @license lucide-react v0.460.0 - ISC
|
|
222
|
+
*
|
|
223
|
+
* This source code is licensed under the ISC license.
|
|
224
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
+
*/const Bm=ae("Code",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
|
|
226
|
+
* @license lucide-react v0.460.0 - ISC
|
|
227
|
+
*
|
|
228
|
+
* This source code is licensed under the ISC license.
|
|
229
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
+
*/const Hm=ae("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
231
|
+
* @license lucide-react v0.460.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const vp=ae("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
|
236
|
+
* @license lucide-react v0.460.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const Um=ae("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
|
|
241
|
+
* @license lucide-react v0.460.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const Wl=ae("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]);/**
|
|
246
|
+
* @license lucide-react v0.460.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const a1=ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
|
|
251
|
+
* @license lucide-react v0.460.0 - ISC
|
|
252
|
+
*
|
|
253
|
+
* This source code is licensed under the ISC license.
|
|
254
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
255
|
+
*/const Vm=ae("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
256
|
+
* @license lucide-react v0.460.0 - ISC
|
|
257
|
+
*
|
|
258
|
+
* This source code is licensed under the ISC license.
|
|
259
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
260
|
+
*/const pa=ae("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
261
|
+
* @license lucide-react v0.460.0 - ISC
|
|
262
|
+
*
|
|
263
|
+
* This source code is licensed under the ISC license.
|
|
264
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
265
|
+
*/const ro=ae("FileCode2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m5 12-3 3 3 3",key:"oke12k"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
|
|
266
|
+
* @license lucide-react v0.460.0 - ISC
|
|
267
|
+
*
|
|
268
|
+
* This source code is licensed under the ISC license.
|
|
269
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
270
|
+
*/const kp=ae("FileCog",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3.2 12.9-.9-.4",key:"1i3dj5"}],["path",{d:"m3.2 15.1-.9.4",key:"1fvgj0"}],["path",{d:"M4.677 21.5a2 2 0 0 0 1.313.5H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v2.5",key:"1yo3oz"}],["path",{d:"m4.9 11.2-.4-.9",key:"otmhb9"}],["path",{d:"m4.9 16.8-.4.9",key:"1b8z07"}],["path",{d:"m7.5 10.3-.4.9",key:"11k65u"}],["path",{d:"m7.5 17.7-.4-.9",key:"431x55"}],["path",{d:"m9.7 12.5-.9.4",key:"87sjan"}],["path",{d:"m9.7 15.5-.9-.4",key:"khqm91"}],["circle",{cx:"6",cy:"14",r:"3",key:"a1xfv6"}]]);/**
|
|
271
|
+
* @license lucide-react v0.460.0 - ISC
|
|
272
|
+
*
|
|
273
|
+
* This source code is licensed under the ISC license.
|
|
274
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
275
|
+
*/const Wm=ae("FileDiff",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]]);/**
|
|
276
|
+
* @license lucide-react v0.460.0 - ISC
|
|
277
|
+
*
|
|
278
|
+
* This source code is licensed under the ISC license.
|
|
279
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
280
|
+
*/const qm=ae("FileJson",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]]);/**
|
|
281
|
+
* @license lucide-react v0.460.0 - ISC
|
|
282
|
+
*
|
|
283
|
+
* This source code is licensed under the ISC license.
|
|
284
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
285
|
+
*/const Km=ae("FilePen",[["path",{d:"M12.5 22H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v9.5",key:"1couwa"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M13.378 15.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z",key:"1y4qbx"}]]);/**
|
|
286
|
+
* @license lucide-react v0.460.0 - ISC
|
|
287
|
+
*
|
|
288
|
+
* This source code is licensed under the ISC license.
|
|
289
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
290
|
+
*/const wp=ae("FilePlus",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M9 15h6",key:"cctwl0"}],["path",{d:"M12 18v-6",key:"17g6i2"}]]);/**
|
|
291
|
+
* @license lucide-react v0.460.0 - ISC
|
|
292
|
+
*
|
|
293
|
+
* This source code is licensed under the ISC license.
|
|
294
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
295
|
+
*/const Bl=ae("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
296
|
+
* @license lucide-react v0.460.0 - ISC
|
|
297
|
+
*
|
|
298
|
+
* This source code is licensed under the ISC license.
|
|
299
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
300
|
+
*/const Qm=ae("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
|
|
301
|
+
* @license lucide-react v0.460.0 - ISC
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the ISC license.
|
|
304
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/const io=ae("FlaskConical",[["path",{d:"M10 2v7.527a2 2 0 0 1-.211.896L4.72 20.55a1 1 0 0 0 .9 1.45h12.76a1 1 0 0 0 .9-1.45l-5.069-10.127A2 2 0 0 1 14 9.527V2",key:"pzvekw"}],["path",{d:"M8.5 2h7",key:"csnxdl"}],["path",{d:"M7 16h10",key:"wp8him"}]]);/**
|
|
306
|
+
* @license lucide-react v0.460.0 - ISC
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the ISC license.
|
|
309
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/const Zm=ae("FolderGit2",[["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["path",{d:"M18 19c-2.8 0-5-2.2-5-5v8",key:"pkpw2h"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]);/**
|
|
311
|
+
* @license lucide-react v0.460.0 - ISC
|
|
312
|
+
*
|
|
313
|
+
* This source code is licensed under the ISC license.
|
|
314
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
315
|
+
*/const Zn=ae("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
|
|
316
|
+
* @license lucide-react v0.460.0 - ISC
|
|
317
|
+
*
|
|
318
|
+
* This source code is licensed under the ISC license.
|
|
319
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
320
|
+
*/const jp=ae("Folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/**
|
|
321
|
+
* @license lucide-react v0.460.0 - ISC
|
|
322
|
+
*
|
|
323
|
+
* This source code is licensed under the ISC license.
|
|
324
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
325
|
+
*/const Gm=ae("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
|
326
|
+
* @license lucide-react v0.460.0 - ISC
|
|
327
|
+
*
|
|
328
|
+
* This source code is licensed under the ISC license.
|
|
329
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
330
|
+
*/const bp=ae("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
|
|
331
|
+
* @license lucide-react v0.460.0 - ISC
|
|
332
|
+
*
|
|
333
|
+
* This source code is licensed under the ISC license.
|
|
334
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
335
|
+
*/const Ym=ae("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
|
336
|
+
* @license lucide-react v0.460.0 - ISC
|
|
337
|
+
*
|
|
338
|
+
* This source code is licensed under the ISC license.
|
|
339
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
340
|
+
*/const Yr=ae("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
|
341
|
+
* @license lucide-react v0.460.0 - ISC
|
|
342
|
+
*
|
|
343
|
+
* This source code is licensed under the ISC license.
|
|
344
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
345
|
+
*/const Xm=ae("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
346
|
+
* @license lucide-react v0.460.0 - ISC
|
|
347
|
+
*
|
|
348
|
+
* This source code is licensed under the ISC license.
|
|
349
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
350
|
+
*/const _p=ae("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
351
|
+
* @license lucide-react v0.460.0 - ISC
|
|
352
|
+
*
|
|
353
|
+
* This source code is licensed under the ISC license.
|
|
354
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
355
|
+
*/const l1=ae("KeyRound",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
|
|
356
|
+
* @license lucide-react v0.460.0 - ISC
|
|
357
|
+
*
|
|
358
|
+
* This source code is licensed under the ISC license.
|
|
359
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
360
|
+
*/const Jm=ae("Layers",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
|
|
361
|
+
* @license lucide-react v0.460.0 - ISC
|
|
362
|
+
*
|
|
363
|
+
* This source code is licensed under the ISC license.
|
|
364
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
365
|
+
*/const e5=ae("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
|
366
|
+
* @license lucide-react v0.460.0 - ISC
|
|
367
|
+
*
|
|
368
|
+
* This source code is licensed under the ISC license.
|
|
369
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
370
|
+
*/const Sp=ae("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
|
|
371
|
+
* @license lucide-react v0.460.0 - ISC
|
|
372
|
+
*
|
|
373
|
+
* This source code is licensed under the ISC license.
|
|
374
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
375
|
+
*/const Np=ae("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
|
|
376
|
+
* @license lucide-react v0.460.0 - ISC
|
|
377
|
+
*
|
|
378
|
+
* This source code is licensed under the ISC license.
|
|
379
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
380
|
+
*/const o1=ae("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
|
|
381
|
+
* @license lucide-react v0.460.0 - ISC
|
|
382
|
+
*
|
|
383
|
+
* This source code is licensed under the ISC license.
|
|
384
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
385
|
+
*/const Ut=ae("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
386
|
+
* @license lucide-react v0.460.0 - ISC
|
|
387
|
+
*
|
|
388
|
+
* This source code is licensed under the ISC license.
|
|
389
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
390
|
+
*/const t5=ae("LocateFixed",[["line",{x1:"2",x2:"5",y1:"12",y2:"12",key:"bvdh0s"}],["line",{x1:"19",x2:"22",y1:"12",y2:"12",key:"1tbv5k"}],["line",{x1:"12",x2:"12",y1:"2",y2:"5",key:"11lu5j"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}],["circle",{cx:"12",cy:"12",r:"7",key:"fim9np"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
391
|
+
* @license lucide-react v0.460.0 - ISC
|
|
392
|
+
*
|
|
393
|
+
* This source code is licensed under the ISC license.
|
|
394
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
395
|
+
*/const z2=ae("MessageCircle",[["path",{d:"M7.9 20A9 9 0 1 0 4 16.1L2 22Z",key:"vv11sd"}]]);/**
|
|
396
|
+
* @license lucide-react v0.460.0 - ISC
|
|
397
|
+
*
|
|
398
|
+
* This source code is licensed under the ISC license.
|
|
399
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
400
|
+
*/const Pu=ae("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
401
|
+
* @license lucide-react v0.460.0 - ISC
|
|
402
|
+
*
|
|
403
|
+
* This source code is licensed under the ISC license.
|
|
404
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
405
|
+
*/const n5=ae("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
406
|
+
* @license lucide-react v0.460.0 - ISC
|
|
407
|
+
*
|
|
408
|
+
* This source code is licensed under the ISC license.
|
|
409
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
410
|
+
*/const ns=ae("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
411
|
+
* @license lucide-react v0.460.0 - ISC
|
|
412
|
+
*
|
|
413
|
+
* This source code is licensed under the ISC license.
|
|
414
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
415
|
+
*/const Cp=ae("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
416
|
+
* @license lucide-react v0.460.0 - ISC
|
|
417
|
+
*
|
|
418
|
+
* This source code is licensed under the ISC license.
|
|
419
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
420
|
+
*/const ql=ae("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
|
|
421
|
+
* @license lucide-react v0.460.0 - ISC
|
|
422
|
+
*
|
|
423
|
+
* This source code is licensed under the ISC license.
|
|
424
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
425
|
+
*/const r5=ae("PackagePlus",[["path",{d:"M16 16h6",key:"100bgy"}],["path",{d:"M19 13v6",key:"85cyf1"}],["path",{d:"M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]]);/**
|
|
426
|
+
* @license lucide-react v0.460.0 - ISC
|
|
427
|
+
*
|
|
428
|
+
* This source code is licensed under the ISC license.
|
|
429
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
430
|
+
*/const i5=ae("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
|
|
431
|
+
* @license lucide-react v0.460.0 - ISC
|
|
432
|
+
*
|
|
433
|
+
* This source code is licensed under the ISC license.
|
|
434
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
435
|
+
*/const s5=ae("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
|
|
436
|
+
* @license lucide-react v0.460.0 - ISC
|
|
437
|
+
*
|
|
438
|
+
* This source code is licensed under the ISC license.
|
|
439
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
440
|
+
*/const a5=ae("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
|
|
441
|
+
* @license lucide-react v0.460.0 - ISC
|
|
442
|
+
*
|
|
443
|
+
* This source code is licensed under the ISC license.
|
|
444
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
445
|
+
*/const l5=ae("PanelRight",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
|
|
446
|
+
* @license lucide-react v0.460.0 - ISC
|
|
447
|
+
*
|
|
448
|
+
* This source code is licensed under the ISC license.
|
|
449
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
450
|
+
*/const o5=ae("Paperclip",[["path",{d:"m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l8.57-8.57A4 4 0 1 1 18 8.84l-8.59 8.57a2 2 0 0 1-2.83-2.83l8.49-8.48",key:"1u3ebp"}]]);/**
|
|
451
|
+
* @license lucide-react v0.460.0 - ISC
|
|
452
|
+
*
|
|
453
|
+
* This source code is licensed under the ISC license.
|
|
454
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
455
|
+
*/const c5=ae("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
|
|
456
|
+
* @license lucide-react v0.460.0 - ISC
|
|
457
|
+
*
|
|
458
|
+
* This source code is licensed under the ISC license.
|
|
459
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
460
|
+
*/const c1=ae("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/**
|
|
461
|
+
* @license lucide-react v0.460.0 - ISC
|
|
462
|
+
*
|
|
463
|
+
* This source code is licensed under the ISC license.
|
|
464
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
465
|
+
*/const u5=ae("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
|
|
466
|
+
* @license lucide-react v0.460.0 - ISC
|
|
467
|
+
*
|
|
468
|
+
* This source code is licensed under the ISC license.
|
|
469
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
470
|
+
*/const ca=ae("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
|
471
|
+
* @license lucide-react v0.460.0 - ISC
|
|
472
|
+
*
|
|
473
|
+
* This source code is licensed under the ISC license.
|
|
474
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
475
|
+
*/const Tu=ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
|
|
476
|
+
* @license lucide-react v0.460.0 - ISC
|
|
477
|
+
*
|
|
478
|
+
* This source code is licensed under the ISC license.
|
|
479
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
480
|
+
*/const gn=ae("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
481
|
+
* @license lucide-react v0.460.0 - ISC
|
|
482
|
+
*
|
|
483
|
+
* This source code is licensed under the ISC license.
|
|
484
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
485
|
+
*/const u1=ae("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
|
|
486
|
+
* @license lucide-react v0.460.0 - ISC
|
|
487
|
+
*
|
|
488
|
+
* This source code is licensed under the ISC license.
|
|
489
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
490
|
+
*/const d5=ae("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
|
491
|
+
* @license lucide-react v0.460.0 - ISC
|
|
492
|
+
*
|
|
493
|
+
* This source code is licensed under the ISC license.
|
|
494
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
495
|
+
*/const h5=ae("Scan",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}]]);/**
|
|
496
|
+
* @license lucide-react v0.460.0 - ISC
|
|
497
|
+
*
|
|
498
|
+
* This source code is licensed under the ISC license.
|
|
499
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
500
|
+
*/const p5=ae("SearchX",[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
501
|
+
* @license lucide-react v0.460.0 - ISC
|
|
502
|
+
*
|
|
503
|
+
* This source code is licensed under the ISC license.
|
|
504
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
505
|
+
*/const ta=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
506
|
+
* @license lucide-react v0.460.0 - ISC
|
|
507
|
+
*
|
|
508
|
+
* This source code is licensed under the ISC license.
|
|
509
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
510
|
+
*/const f5=ae("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
|
511
|
+
* @license lucide-react v0.460.0 - ISC
|
|
512
|
+
*
|
|
513
|
+
* This source code is licensed under the ISC license.
|
|
514
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
515
|
+
*/const Lu=ae("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
516
|
+
* @license lucide-react v0.460.0 - ISC
|
|
517
|
+
*
|
|
518
|
+
* This source code is licensed under the ISC license.
|
|
519
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
520
|
+
*/const Ep=ae("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
521
|
+
* @license lucide-react v0.460.0 - ISC
|
|
522
|
+
*
|
|
523
|
+
* This source code is licensed under the ISC license.
|
|
524
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
525
|
+
*/const m5=ae("Shuffle",[["path",{d:"M2 18h1.4c1.3 0 2.5-.6 3.3-1.7l6.1-8.6c.7-1.1 2-1.7 3.3-1.7H22",key:"1wmou1"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 6h1.9c1.5 0 2.9.9 3.6 2.2",key:"10bdb2"}],["path",{d:"M22 18h-5.9c-1.3 0-2.6-.7-3.3-1.8l-.5-.8",key:"vgxac0"}],["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}]]);/**
|
|
526
|
+
* @license lucide-react v0.460.0 - ISC
|
|
527
|
+
*
|
|
528
|
+
* This source code is licensed under the ISC license.
|
|
529
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
530
|
+
*/const g5=ae("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
531
|
+
* @license lucide-react v0.460.0 - ISC
|
|
532
|
+
*
|
|
533
|
+
* This source code is licensed under the ISC license.
|
|
534
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
535
|
+
*/const Xn=ae("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
536
|
+
* @license lucide-react v0.460.0 - ISC
|
|
537
|
+
*
|
|
538
|
+
* This source code is licensed under the ISC license.
|
|
539
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
540
|
+
*/const M2=ae("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
541
|
+
* @license lucide-react v0.460.0 - ISC
|
|
542
|
+
*
|
|
543
|
+
* This source code is licensed under the ISC license.
|
|
544
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
545
|
+
*/const x5=ae("SquarePlus",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]]);/**
|
|
546
|
+
* @license lucide-react v0.460.0 - ISC
|
|
547
|
+
*
|
|
548
|
+
* This source code is licensed under the ISC license.
|
|
549
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
550
|
+
*/const zp=ae("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
|
|
551
|
+
* @license lucide-react v0.460.0 - ISC
|
|
552
|
+
*
|
|
553
|
+
* This source code is licensed under the ISC license.
|
|
554
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
555
|
+
*/const Mp=ae("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
556
|
+
* @license lucide-react v0.460.0 - ISC
|
|
557
|
+
*
|
|
558
|
+
* This source code is licensed under the ISC license.
|
|
559
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
560
|
+
*/const y5=ae("StickyNote",[["path",{d:"M16 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V8Z",key:"qazsjp"}],["path",{d:"M15 3v4a2 2 0 0 0 2 2h4",key:"40519r"}]]);/**
|
|
561
|
+
* @license lucide-react v0.460.0 - ISC
|
|
562
|
+
*
|
|
563
|
+
* This source code is licensed under the ISC license.
|
|
564
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
565
|
+
*/const v5=ae("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
|
|
566
|
+
* @license lucide-react v0.460.0 - ISC
|
|
567
|
+
*
|
|
568
|
+
* This source code is licensed under the ISC license.
|
|
569
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
570
|
+
*/const Iu=ae("Terminal",[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]]);/**
|
|
571
|
+
* @license lucide-react v0.460.0 - ISC
|
|
572
|
+
*
|
|
573
|
+
* This source code is licensed under the ISC license.
|
|
574
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
575
|
+
*/const d1=ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
576
|
+
* @license lucide-react v0.460.0 - ISC
|
|
577
|
+
*
|
|
578
|
+
* This source code is licensed under the ISC license.
|
|
579
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
580
|
+
*/const an=ae("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
|
581
|
+
* @license lucide-react v0.460.0 - ISC
|
|
582
|
+
*
|
|
583
|
+
* This source code is licensed under the ISC license.
|
|
584
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
585
|
+
*/const Ap=ae("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
586
|
+
* @license lucide-react v0.460.0 - ISC
|
|
587
|
+
*
|
|
588
|
+
* This source code is licensed under the ISC license.
|
|
589
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
590
|
+
*/const k5=ae("UserCheck",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["polyline",{points:"16 11 18 13 22 9",key:"1pwet4"}]]);/**
|
|
591
|
+
* @license lucide-react v0.460.0 - ISC
|
|
592
|
+
*
|
|
593
|
+
* This source code is licensed under the ISC license.
|
|
594
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
595
|
+
*/const Ru=ae("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
|
|
596
|
+
* @license lucide-react v0.460.0 - ISC
|
|
597
|
+
*
|
|
598
|
+
* This source code is licensed under the ISC license.
|
|
599
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
600
|
+
*/const Pp=ae("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
|
601
|
+
* @license lucide-react v0.460.0 - ISC
|
|
602
|
+
*
|
|
603
|
+
* This source code is licensed under the ISC license.
|
|
604
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
605
|
+
*/const Cn=ae("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
|
|
606
|
+
* @license lucide-react v0.460.0 - ISC
|
|
607
|
+
*
|
|
608
|
+
* This source code is licensed under the ISC license.
|
|
609
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
610
|
+
*/const w5=ae("ZoomIn",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]);/**
|
|
611
|
+
* @license lucide-react v0.460.0 - ISC
|
|
612
|
+
*
|
|
613
|
+
* This source code is licensed under the ISC license.
|
|
614
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
615
|
+
*/const j5=ae("ZoomOut",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),b5=["planned","in-progress","implemented","testing","completed","blocked","needs-rework","removed"],as={planned:"Planned","in-progress":"In progress",implemented:"Code detected",testing:"Testing",completed:"Completion reported",blocked:"Blocked","needs-rework":"Needs rework",removed:"Removed"},_5=["test-passed","build-passed"],cr={health:"/api/health",state:"/api/state",connect:"/api/projects/connect",browseFolders:"/api/folders/browse",events:"/api/events",settings:"/api/settings",assignComponent:"/api/components/assign",describe:"/api/describe",rescan:"/api/projects/rescan",visualizePlan:"/api/plans/visualize"},S5=4317,Kl=e=>e.source==="sample"?"Sample evidence":e.source==="check-runner"?"Run by Kalvyr":e.source==="local-session"?"Reported in an agent session":e.source==="agent-event"?"Reported by an integration":"Recorded by Kalvyr",ji=e=>e?`${e.id}:${e.observedAt}:${e.kind}`:"";function sn(e,n){return e.evidence.reduce((r,a)=>n.includes(a.kind)&&Number.isFinite(Date.parse(a.observedAt))&&(!r||Date.parse(a.observedAt)>=Date.parse(r.observedAt))?a:r,void 0)}const Tp=e=>e.checkScope==="package"||!e.checkScope&&/Package-wide result|may not exercise this component/i.test(e.summary);function Lp(e){const n=sn(e,["file-changed"]),r=Tp;return["test","build","typecheck"].flatMap(a=>[!1,!0].flatMap(o=>{const c=sn({...e,evidence:e.evidence.filter(p=>r(p)===o)},[`${a}-passed`,`${a}-failed`]);if(!c)return[];const u=!!n&&(Date.parse(n.observedAt)>Date.parse(c.observedAt)||Date.parse(n.observedAt)===Date.parse(c.observedAt)&&e.evidence.indexOf(n)>e.evidence.indexOf(c)),h=c.kind.endsWith("-passed");return[{kind:a,evidence:c,passed:h,stale:u,packageWide:o,label:`${o?"Package: ":""}${a==="test"?"Tests":a==="typecheck"?"Type check":"Build"} ${h?"passed":"failed"}`}]}))}function ua(e){const n=Lp(e),r=n.filter(y=>!y.stale&&!y.packageWide),a=r.find(y=>!y.passed),o=a??[...r].sort((y,v)=>v.evidence.observedAt.localeCompare(y.evidence.observedAt))[0],c=!!sn(e,["file-changed"]),u=e.filePaths.length>0||!!sn(e,["file-exists"]),h=e.status==="completed"||!!sn(e,["agent-claim"]),p=n.filter(y=>y.packageWide&&!y.stale&&y.evidence.source==="check-runner"),f=!a&&!o&&c&&p.length>0&&p.every(y=>y.passed),m=o?`${o.label} · ${o.evidence.source==="sample"?"sample":o.evidence.source==="check-runner"?"run by Kalvyr":"reported"}`:e.status==="removed"?"Removed":f?"Project checks passed · run by Kalvyr":c?"Changes awaiting checks":h?e.status==="completed"?"Completion reported":"Agent claim · unchecked":u?"Code detected":"No code detected",g=o?`${Kl(o.evidence)}. ${o.evidence.summary} Checks are recorded for this component; which parts they exercise is not established.`:f?"Kalvyr ran the whole project's checks after the latest change and they passed. None of the results name this component's own tests, so which of its parts they exercised is unknown.":c?"No check result is recorded after the latest observed file change.":h?"An agent statement is not proof that this feature works.":u?"Source files were found or reported. No test or build result is recorded for the current code.":"No implementation evidence is recorded yet.";return{label:m,detail:g,checks:n,failed:!!a,passed:!a&&r.some(y=>y.passed),projectPassed:f,awaiting:c&&r.length===0&&!f,tone:a?"bad":o||f?"ok":c||h?"warn":"muted"}}const Xr=e=>{var n;return(n=e.currentNodeIds)!=null&&n.length?e.currentNodeIds:e.currentNodeId?[e.currentNodeId]:[]},Ip=e=>[...new Set([...Xr(e),...e.workingNodeIds??[]])],A2={thinking:"Thinking",reading:"Reading",editing:"Editing",running:"Running a tool",testing:"Running checks",waiting:"Waiting for input",idle:"Idle",error:"Tool error",unknown:"Action unknown"},N5={reading:"Read",editing:"Edited",running:"Tool finished",testing:"Checks finished"};function fa(e){return e.state==="disconnected"?e.source==="local-session"?"No recent activity":"Disconnected":e.workPhase==="waiting"?e.waitReason==="tool-result"?"Waiting for result":e.waitReason==="approval"?"Waiting for your approval":e.waitReason==="possible-approval"?"May need your approval":A2.waiting:e.state==="idle"?e.workPhase==="unknown"?"No recent activity":"Idle":e.workPhase?e.workFinished&&N5[e.workPhase]||A2[e.workPhase]:"Working"}function Nn(e,n){var v,w;const r=Xr(e).includes(n),a=!r&&!!((v=e.workingNodeIds)!=null&&v.includes(n)),o=r&&!!e.locationIsHeld,c=(w=e.locationDetail)==null?void 0:w[n],u=!o&&((c==null?void 0:c.certain)??e.locationConfidence==="confirmed"),h=a?"Earlier work":fa(e),p=a?"earlier":e.state==="disconnected"||e.workPhase==="unknown"?"unknown":e.state==="idle"?e.workPhase==="waiting"?"waiting":"idle":e.workPhase==="error"?"error":e.workFinished?"finished":e.workPhase??"working",f=p==="finished"&&e.workPhase?e.workPhase:p,m=o?"Last location":u?"Observed location":"Inferred location",g=(c==null?void 0:c.evidence)??(u?"Component reported by an integration.":"Component inferred from the files named by the tool."),y=o?"The latest step names no component. This is the last observed location; the current action may be elsewhere.":a?"An edit targeted this component earlier in the turn. This is not the current action here.":"";return{current:r,earlier:a,held:o,certain:u,action:h,outlineState:p,colorState:f,locationLabel:m,reading:r&&e.workPhase==="reading",live:r&&!o&&e.state==="active"&&!e.workFinished,evidence:[y,g].filter(Boolean).join(" ")}}const C5=e=>e.split(/[\\/]/).pop()||e;function Ql(e,n){const r=e.readLoop;if(!(r!=null&&r.files.length)||e.state==="disconnected"||e.state==="idle"&&e.workPhase!=="waiting"||n&&!r.nodeIds.includes(n))return null;const[a]=r.files,o=r.files.length>1?` +${r.files.length-1}`:"";return{reads:a.reads,label:`Rereading ${C5(a.path)}${o}`,title:["Read again and again, with no edit in between:",...r.files.map(c=>`${c.path} · ${c.reads} times`),"It may be going in circles."].join(`
|
|
616
|
+
`)}}const Rp=e=>e.split("; ")[0].replace(/^(?:Requested · )?(?:MCP|Plugin|Skill(?: instructions)?|Tool) · /,"");function E5(e){const n=e.failLoop;return!n||e.state==="disconnected"||e.state==="idle"&&e.workPhase!=="waiting"?null:{kind:"fail",reads:n.failures,label:`${Rp(n.label)} failing`,title:`${n.label} failed ${n.failures} times in a row, with no success in between.
|
|
617
|
+
It may be retrying with arguments that don't work.`}}function z5(e){const n=e.signIn;return!n||e.state==="disconnected"||e.state==="idle"&&e.workPhase!=="waiting"?null:{kind:"sign-in",reads:1,label:`Sign-in needed · ${Rp(n.label)}`,title:`${n.label}: the server turned the call away as unauthorized.
|
|
618
|
+
Sign in to this MCP server (in Claude Code: /mcp), then the agent can retry.`}}const M5=e=>z5(e)??E5(e)??Ql(e),Dp=e=>e.kind==="sign-in"?e.label:`${e.label} · ${e.reads}×`;function Hl(e){var r;return e.state==="disconnected"||e.state!=="active"&&e.workPhase!=="waiting"||e.workPhase==="unknown"?"":(((r=e.toolUsage)==null?void 0:r.map(a=>a.label))??(e.toolName?[`Tool · ${e.toolName}`]:[])).join("; ")}function Fp(e,n,r,a=Date.now()){return e.filter(o=>o.state==="active"||o.state==="idle"&&o.workPhase==="waiting").sort((o,c)=>+(c.state==="active")-+(o.state==="active")||c.lastSeenAt.localeCompare(o.lastSeenAt)).map(o=>{const c=Xr(o).find(n)??null,u=Nn(o,c??""),h=c&&u.current&&!u.held?c:null,p=h&&o.workPhase==="editing"?r==null?void 0:r(h):void 0,f=p?$p(p,a):null,m=f!=null&&f.part&&f.evidence.agentId===o.id?f:null,g=M5(o);return{...g?{loop:g}:{},agent:o,state:u.colorState,action:fa(o),live:o.state==="active"&&!o.workFinished,nodeId:h,certain:!!h&&u.certain,...m?{part:m.part,...m.note?{note:m.note}:{}}:{}}})}const A5=1e4;function $p(e,n){const r=sn(e,["file-changed"]);if(!r||e.status==="removed")return null;const a=r.agentId?null:[...e.evidence].reverse().find(h=>h.kind==="file-changed"&&!!h.agentId),o=a&&Date.parse(r.observedAt)-Date.parse(a.observedAt)<A5?a:r,c=n-Date.parse(o.observedAt);if(c<0||c>=5*6e4)return null;const u=!!o.agentId&&(o.source==="local-session"||o.source==="agent-event");return{evidence:o,attributed:u,fresh:c<6e4,strength:Math.max(.2,1-c/3e5),part:o.part??null,note:o.editNote??null,detail:o.partDetail??null}}function P5(e,n=5){const r=[];for(const a of[...e.evidence].reverse()){if(a.kind!=="file-changed"||!a.part)continue;const o=r.at(-1);if(!(o&&o.part===a.part&&o.agentId===(a.agentId??null))&&(r.push({part:a.part,note:a.editNote??null,detail:a.partDetail??null,at:a.observedAt,agentId:a.agentId??null}),r.length>=n))break}return r}const h1="en",Xc=new Intl.RelativeTimeFormat(h1,{numeric:"auto"});function it(e,n=Date.now()){if(!e)return"—";const r=Date.parse(e);if(Number.isNaN(r))return"—";const a=Math.round((r-n)/1e3),o=Math.abs(a);return o<30?"just now":o<3600?Xc.format(Math.round(a/60),"minute"):o<86400?Xc.format(Math.round(a/3600),"hour"):o<7*86400?Xc.format(Math.round(a/86400),"day"):new Date(r).toLocaleDateString(h1,{month:"short",day:"numeric",year:"numeric"})}function _t(e){if(!e)return"—";const n=Date.parse(e);return Number.isNaN(n)?"—":new Date(n).toLocaleString(h1,{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})}const T5={confirmed:"Confirmed",inferred:"Inferred",unknown:"Unknown"},L5={confirmed:"Directly reported by an integration, or observed in files and test results.",inferred:"Derived from heuristics such as edited file paths — may be wrong.",unknown:"Kalvyr cannot tell from the information available."},Zl=(e,n,r=`${n}s`)=>`${e} ${e===1?n:r}`,I5=["file-exists","file-changed","test-passed","build-passed"],R5={"depends-on":"now uses",calls:"now calls","data-flow":"now sends data to",contains:"now contains"},Ji=e=>e.toLowerCase().replace(/[^a-z0-9]+/g,"");function bi(e){return e.origin==="agent-proposed"&&e.status==="planned"&&!e.evidence.some(n=>I5.includes(n.kind))}const P2=(e,n)=>!!e.plannedBy&&e.plannedBy.files.some(r=>n.filePaths.includes(r));function D5(e,n){const r=[...new Set(n.filter(a=>a.status!=="removed"&&a.filePaths.some(o=>e.filePaths.includes(o))).map(a=>a.name))];return r.length?`Regrouped: its files now belong to ${r.slice(0,3).join(", ")}${r.length>3?` and ${r.length-3} more`:""}.`:null}const Jc=e=>e.state!=="removed",T2=e=>`${e.source}>${e.target}`;function Op(e,n){const r=new Map(e.nodes.map(w=>[w.id,w])),a=new Map(n.nodes.map(w=>[w.id,w])),o=w=>{var S,j;return((S=a.get(w))==null?void 0:S.name)??((j=r.get(w))==null?void 0:j.name)??"a component"},c=w=>n.edges.filter(S=>Jc(S)&&(S.source===w||S.target===w)),u=(w,S,j)=>{const b=c(S.id);return{id:`${w}:${S.id}`,kind:w,nodeId:S.id,title:S.name,detail:j,connectedTo:[...new Set(b.map(P=>o(P.source===S.id?P.target:P.source)))],nodeIds:[S.id],edgeIds:b.map(P=>P.id)}},h=[],p=new Set,f=e.nodes.filter(w=>!a.has(w.id)&&(bi(w)||!!w.plannedBy)),m=new Set;for(const w of n.nodes){const S=r.get(w.id);if(S){bi(S)&&!bi(w)&&w.status!=="removed"&&(p.add(w.id),h.push(u("confirmed",w,"An agent proposed this component; implementation evidence now confirms it."))),S.status!=="removed"&&w.status==="removed"&&(p.add(w.id),h.push({...u("removed",w,w.removedReason??"No longer part of the architecture."),connectedTo:[]}));continue}if(w.status==="removed")continue;p.add(w.id);const j=f.find(b=>P2(b,w))??f.find(b=>Ji(b.name)===Ji(w.name)||Ji(b.name)===w.id);j&&m.add(j.id),j?h.push(u("confirmed",w,"An agent proposed this component; its code is now in the project.")):bi(w)?h.push(u("proposed",w,w.description)):h.push(u("added",w,w.description))}const g=new Set(h.filter(w=>w.kind==="confirmed").map(w=>Ji(w.title)));for(const w of e.nodes){if(a.has(w.id)||w.status==="removed"||m.has(w.id)||g.has(Ji(w.name)))continue;p.add(w.id);const S=w.plannedBy?n.nodes.find(j=>r.has(j.id)&&j.status!=="removed"&&P2(w,j)):void 0;if(S){h.push({...u("confirmed",S,`${w.name}, planned by an agent, was built into this component.`),id:`confirmed:${w.id}`});continue}h.push({id:`removed:${w.id}`,kind:"removed",nodeId:null,title:w.name,detail:w.plannedBy?"Withdrawn: the agent’s plan no longer includes it.":D5(w,n.nodes)??"No longer part of the architecture.",connectedTo:[],nodeIds:[],edgeIds:[]})}const y=new Map(e.edges.filter(Jc).map(w=>[T2(w),w])),v=new Map(n.edges.filter(Jc).map(w=>[T2(w),w]));for(const[w,S]of v)y.has(w)||p.has(S.source)||p.has(S.target)||h.push({id:`connected:${w}`,kind:"connected",nodeId:S.source,title:`${o(S.source)} → ${o(S.target)}`,detail:`${o(S.source)} ${R5[S.kind]} ${o(S.target)}${S.label?` (${S.label.toLowerCase()})`:""}.`,connectedTo:[],nodeIds:[S.source,S.target],edgeIds:[S.id]});for(const[w,S]of y)v.has(w)||p.has(S.source)||p.has(S.target)||!a.has(S.source)||!a.has(S.target)||h.push({id:`disconnected:${w}`,kind:"disconnected",nodeId:S.source,title:`${o(S.source)} → ${o(S.target)}`,detail:`${o(S.source)} no longer connects to ${o(S.target)}.`,connectedTo:[],nodeIds:[S.source,S.target],edgeIds:[]});return h}const Bp={added:"Added",proposed:"Proposed",confirmed:"Confirmed",removed:"Removed",connected:"New connection",disconnected:"Connection removed"},p1={reading:pa,editing:c1,running:Iu,testing:io,thinking:pp,waiting:c5,idle:Dm,error:an,unknown:xp,working:up,finished:Ei,earlier:Yr},F5=[{state:"reading",label:"Reading",onCard:!0},{state:"editing",label:"Editing",onCard:!0},{state:"running",label:"Running a tool",onCard:!0},{state:"testing",label:"Running checks",onCard:!0},{state:"error",label:"Tool error",onCard:!0},{state:"thinking",label:"Thinking",onCard:!1},{state:"waiting",label:"Waiting",onCard:!0},{state:"working",label:"Working (unspecified)",onCard:!1}],Du={feature:up,frontend:e5,backend:f5,auth:l1,data:Wl,payments:Um,integration:ca,infrastructure:$m,testing:io,other:hp},ts=268,Hp=196,Up=.3,Vp=2,$5=.6,O5=1,Xi=40,Fu=(e,n,r)=>Math.min(r,Math.max(n,e));function B5(e,n){const r=e.position;return r&&Number.isFinite(r.x)&&Number.isFinite(r.y)?r:{x:n%4*340,y:Math.floor(n/4)*240}}function H5(e,n){const r=n.trim().toLowerCase();return!r||e.name.toLowerCase().includes(r)||e.description.toLowerCase().includes(r)||e.features.some(a=>{var o;return a.name.toLowerCase().includes(r)||((o=a.symbols)==null?void 0:o.some(c=>c.name.toLowerCase().includes(r)))})?!0:e.filePaths.some(a=>a.toLowerCase().includes(r))}function U5(e){const n=ua(e);return{checked:n.passed,checkFailed:n.failed,unverifiedCompletion:e.status==="completed"}}const V5=["implemented","testing","completed"],W5=["in-progress","needs-rework","blocked"];function q5(e){var a;const n=e.features.filter(o=>o.status!=="removed"),r={total:n.length,built:0,inProgress:0,notStarted:0,noun:e.origin==="detected"?"part":"feature"};for(const o of n)(a=o.filePaths)!=null&&a.length||V5.includes(o.status)?r.built++:W5.includes(o.status)?r.inProgress++:r.notStarted++;return r}const K5=e=>e.built,Q5=(e,n)=>n.total>0&&(e.origin!=="detected"||n.built<n.total);function Z5(e){const n=`${e.noun}${e.total===1?"":"s"}`;return`Code detected for ${e.built} of ${e.total} ${n}. This is a source inventory, not a measure of working functionality.`}function Wp(e){if(e.length===0)return null;let n=1/0,r=1/0,a=-1/0,o=-1/0;for(const c of e)n=Math.min(n,c.x),r=Math.min(r,c.y),a=Math.max(a,c.x+c.w),o=Math.max(o,c.y+c.h);return{x:n,y:r,w:a-n,h:o-r}}function G5(e,n,r){const a=Fu(Math.min((n-Xi*2)/Math.max(e.w,1),(r-Xi*2)/Math.max(e.h,1)),$5,O5),o=e.w*a>n-Xi*2?Xi-e.x*a:n/2-(e.x+e.w/2)*a,c=e.h*a>r-Xi*2?Xi-e.y*a:r/2-(e.y+e.h/2)*a;return{k:a,x:o,y:c}}function Y5(e,n){const r=e.x+e.w/2,a=e.y+e.h/2,o=n.x+n.w/2,c=n.y+n.h/2,u=o-r,h=c-a;let p,f,m,g,y,v;if(Math.abs(u)>=e.w*.75){const M=Math.sign(u);p=M>0?e.x+e.w:e.x,f=a,m=M>0?n.x:n.x+n.w,g=c,y=M,v=0}else{const M=h>=0?1:-1;p=r,f=M>0?e.y+e.h:e.y,m=o,g=M>0?n.y:n.y+n.h,y=0,v=M}const w=Math.abs(y!==0?m-p:g-f),S=Math.max(40,w*.45),j=p+y*S,b=f+v*S,P=m-y*S,C=g-v*S;return{d:`M ${p} ${f} C ${j} ${b}, ${P} ${C}, ${m} ${g}`,mid:{x:(p+3*j+3*P+m)/8,y:(f+3*b+3*C+g)/8}}}const X5="m4.7144 15.9555 4.7174-2.6471.079-.2307-.079-.1275h-.2307l-.7893-.0486-2.6956-.0729-2.3375-.0971-2.2646-.1214-.5707-.1215-.5343-.7042.0546-.3522.4797-.3218.686.0608 1.5179.1032 2.2767.1578 1.6514.0972 2.4468.255h.3886l.0546-.1579-.1336-.0971-.1032-.0972L6.973 9.8356l-2.55-1.6879-1.3356-.9714-.7225-.4918-.3643-.4614-.1578-1.0078.6557-.7225.8803.0607.2246.0607.8925.686 1.9064 1.4754 2.4893 1.8336.3643.3035.1457-.1032.0182-.0728-.164-.2733-1.3539-2.4467-1.445-2.4893-.6435-1.032-.17-.6194c-.0607-.255-.1032-.4674-.1032-.7285L6.287.1335 6.6997 0l.9957.1336.419.3642.6192 1.4147 1.0018 2.2282 1.5543 3.0296.4553.8985.2429.8318.091.255h.1579v-.1457l.1275-1.706.2368-2.0947.2307-2.6957.0789-.7589.3764-.9107.7468-.4918.5828.2793.4797.686-.0668.4433-.2853 1.8517-.5586 2.9021-.3643 1.9429h.2125l.2429-.2429.9835-1.3053 1.6514-2.0643.7286-.8196.85-.9046.5464-.4311h1.0321l.759 1.1293-.34 1.1657-1.0625 1.3478-.8804 1.1414-1.2628 1.7-.7893 1.36.0729.1093.1882-.0183 2.8535-.607 1.5421-.2794 1.8396-.3157.8318.3886.091.3946-.3278.8075-1.967.4857-2.3072.4614-3.4364.8136-.0425.0304.0486.0607 1.5482.1457.6618.0364h1.621l3.0175.2247.7892.522.4736.6376-.079.4857-1.2142.6193-1.6393-.3886-3.825-.9107-1.3113-.3279h-.1822v.1093l1.0929 1.0686 2.0035 1.8092 2.5075 2.3314.1275.5768-.3218.4554-.34-.0486-2.2039-1.6575-.85-.7468-1.9246-1.621h-.1275v.17l.4432.6496 2.3436 3.5214.1214 1.0807-.17.3521-.6071.2125-.6679-.1214-1.3721-1.9246L14.38 17.959l-1.1414-1.9428-.1397.079-.674 7.2552-.3156.3703-.7286.2793-.6071-.4614-.3218-.7468.3218-1.4753.3886-1.9246.3157-1.53.2853-1.9004.17-.6314-.0121-.0425-.1397.0182-1.4328 1.9672-2.1796 2.9446-1.7243 1.8456-.4128.164-.7164-.3704.0667-.6618.4008-.5889 2.386-3.0357 1.4389-1.882.929-1.0868-.0062-.1579h-.0546l-6.3385 4.1164-1.1293.1457-.4857-.4554.0608-.7467.2307-.2429 1.9064-1.3114Z",qp="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z",J5="M11.04 19.32Q12 21.51 12 24q0-2.49.93-4.68.96-2.19 2.58-3.81t3.81-2.55Q21.51 12 24 12q-2.49 0-4.68-.93a12.3 12.3 0 0 1-3.81-2.58 12.3 12.3 0 0 1-2.58-3.81Q12 2.49 12 0q0 2.49-.96 4.68-.93 2.19-2.55 3.81a12.3 12.3 0 0 1-3.81 2.58Q2.49 12 0 12q2.49 0 4.68.96 2.19.93 3.81 2.55t2.55 3.81",e6="M11.503.131 1.891 5.678a.84.84 0 0 0-.42.726v11.188c0 .3.162.575.42.724l9.609 5.55a1 1 0 0 0 .998 0l9.61-5.55a.84.84 0 0 0 .42-.724V6.404a.84.84 0 0 0-.42-.726L12.497.131a1.01 1.01 0 0 0-.996 0M2.657 6.338h18.55c.263 0 .43.287.297.515L12.23 22.918c-.062.107-.229.064-.229-.06V12.335a.59.59 0 0 0-.295-.51l-9.11-5.257c-.109-.063-.064-.23.061-.23",t6="M23.922 16.997C23.061 18.492 18.063 22.02 12 22.02 5.937 22.02.939 18.492.078 16.997A.641.641 0 0 1 0 16.741v-2.869a.883.883 0 0 1 .053-.22c.372-.935 1.347-2.292 2.605-2.656.167-.429.414-1.055.644-1.517a10.098 10.098 0 0 1-.052-1.086c0-1.331.282-2.499 1.132-3.368.397-.406.89-.717 1.474-.952C7.255 2.937 9.248 1.98 11.978 1.98c2.731 0 4.767.957 6.166 2.093.584.235 1.077.546 1.474.952.85.869 1.132 2.037 1.132 3.368 0 .368-.014.733-.052 1.086.23.462.477 1.088.644 1.517 1.258.364 2.233 1.721 2.605 2.656a.841.841 0 0 1 .053.22v2.869a.641.641 0 0 1-.078.256Zm-11.75-5.992h-.344a4.359 4.359 0 0 1-.355.508c-.77.947-1.918 1.492-3.508 1.492-1.725 0-2.989-.359-3.782-1.259a2.137 2.137 0 0 1-.085-.104L4 11.746v6.585c1.435.779 4.514 2.179 8 2.179 3.486 0 6.565-1.4 8-2.179v-6.585l-.098-.104s-.033.045-.085.104c-.793.9-2.057 1.259-3.782 1.259-1.59 0-2.738-.545-3.508-1.492a4.359 4.359 0 0 1-.355-.508Zm2.328 3.25c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm-5 0c.549 0 1 .451 1 1v2c0 .549-.451 1-1 1-.549 0-1-.451-1-1v-2c0-.549.451-1 1-1Zm3.313-6.185c.136 1.057.403 1.913.878 2.497.442.544 1.134.938 2.344.938 1.573 0 2.292-.337 2.657-.751.384-.435.558-1.15.558-2.361 0-1.14-.243-1.847-.705-2.319-.477-.488-1.319-.862-2.824-1.025-1.487-.161-2.192.138-2.533.529-.269.307-.437.808-.438 1.578v.021c0 .265.021.562.063.893Zm-1.626 0c.042-.331.063-.628.063-.894v-.02c-.001-.77-.169-1.271-.438-1.578-.341-.391-1.046-.69-2.533-.529-1.505.163-2.347.537-2.824 1.025-.462.472-.705 1.179-.705 2.319 0 1.211.175 1.926.558 2.361.365.414 1.084.751 2.657.751 1.21 0 1.902-.394 2.344-.938.475-.584.742-1.44.878-2.497Z",Kp={"claude-code":{d:X5,fill:"#D97757"},codex:{d:qp,fill:"#ffffff"},gemini:{d:J5,fill:"#8ab4f8"},cursor:{d:e6,fill:"#ffffff"},copilot:{d:t6,fill:"#ffffff"},other:null},ls={"claude-code":"Claude Code",codex:"Codex",gemini:"Gemini CLI",cursor:"Cursor",copilot:"GitHub Copilot",other:null},n6={"claude-code":"#D97757",gemini:"#4f8df5"};function Gt({kind:e,size:n=16,className:r}){var a;return e==="other"?i.jsx(Zr,{size:n,className:r,"aria-hidden":!0}):i.jsx("svg",{viewBox:"0 0 24 24",width:n,height:n,className:r,"aria-hidden":!0,fill:n6[e]??"currentColor",children:i.jsx("path",{d:((a=Kp[e])==null?void 0:a.d)??qp})})}const L2=2;function f1(e,n){const r=e.map(u=>n.find(h=>h.id===u)).filter(u=>!!u),a=u=>r.filter(h=>h.kind===u.kind).length>1||!ls[u.kind]?u.name:ls[u.kind],o=r.length?r.map(a):["Two agents"],c=o.length>1?`${o.slice(0,-1).join(", ")} and ${o.at(-1)}`:o[0];return{names:c,who:`${c} ${o.length>2?"are all":o.length===2?"are both":"are"}`,list:r}}const r6=e=>e.split("/").at(-1)??e;function i6({conflicts:e,agents:n,nodes:r,onSelectNode:a}){if(!e.length)return null;const o=new Map(r.map(u=>[u.id,u.name])),c=e.slice(L2);return i.jsxs("ul",{className:"forma-canvas__conflicts","aria-label":"Agents editing the same files","aria-live":"polite",children:[e.slice(0,L2).map(u=>{const{who:h,list:p}=f1(u.agentIds,n),f=u.nodeId?o.get(u.nodeId):void 0;return i.jsxs("li",{className:"forma-canvas__conflict",title:`${u.file}
|
|
619
|
+
Their changes may overwrite each other. Shared since ${_t(u.since)}; last edit ${_t(u.lastAt)}.`,children:[i.jsx("span",{className:"forma-canvas__conflict-symbol","aria-hidden":!0,children:i.jsx(an,{size:15,strokeWidth:2})}),i.jsx("span",{className:"forma-canvas__conflict-logos","aria-hidden":!0,children:p.map(m=>i.jsx(Gt,{kind:m.kind,size:13},m.id))}),i.jsxs("span",{className:"forma-canvas__conflict-text",children:[h," editing ",i.jsx("code",{children:r6(u.file)}),u.nodeId&&f&&i.jsxs(i.Fragment,{children:[" ",i.jsxs("button",{type:"button",className:"forma-canvas__conflict-where",onClick:()=>a(u.nodeId),children:["in ",f]})]})]})]},u.file)}),c.length>0&&i.jsxs("li",{className:"forma-canvas__conflict forma-canvas__conflict--more",title:c.map(u=>u.file).join(`
|
|
620
|
+
`),children:["+",c.length," more shared file",c.length>1?"s":""]})]})}const s6={TypeScript:{title:"TypeScript",hex:"3178C6",path:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"},JavaScript:{title:"JavaScript",hex:"F7DF1E",path:"M0 0h24v24H0V0zm22.034 18.276c-.175-1.095-.888-2.015-3.003-2.873-.736-.345-1.554-.585-1.797-1.14-.091-.33-.105-.51-.046-.705.15-.646.915-.84 1.515-.66.39.12.75.42.976.9 1.034-.676 1.034-.676 1.755-1.125-.27-.42-.404-.601-.586-.78-.63-.705-1.469-1.065-2.834-1.034l-.705.089c-.676.165-1.32.525-1.71 1.005-1.14 1.291-.811 3.541.569 4.471 1.365 1.02 3.361 1.244 3.616 2.205.24 1.17-.87 1.545-1.966 1.41-.811-.18-1.26-.586-1.755-1.336l-1.83 1.051c.21.48.45.689.81 1.109 1.74 1.756 6.09 1.666 6.871-1.004.029-.09.24-.705.074-1.65l.046.067zm-8.983-7.245h-2.248c0 1.938-.009 3.864-.009 5.805 0 1.232.063 2.363-.138 2.711-.33.689-1.18.601-1.566.48-.396-.196-.597-.466-.83-.855-.063-.105-.11-.196-.127-.196l-1.825 1.125c.305.63.75 1.172 1.324 1.517.855.51 2.004.675 3.207.405.783-.226 1.458-.691 1.811-1.411.51-.93.402-2.07.397-3.346.012-2.054 0-4.109 0-6.179l.004-.056z"},Python:{title:"Python",hex:"3776AB",path:"M14.25.18l.9.2.73.26.59.3.45.32.34.34.25.34.16.33.1.3.04.26.02.2-.01.13V8.5l-.05.63-.13.55-.21.46-.26.38-.3.31-.33.25-.35.19-.35.14-.33.1-.3.07-.26.04-.21.02H8.77l-.69.05-.59.14-.5.22-.41.27-.33.32-.27.35-.2.36-.15.37-.1.35-.07.32-.04.27-.02.21v3.06H3.17l-.21-.03-.28-.07-.32-.12-.35-.18-.36-.26-.36-.36-.35-.46-.32-.59-.28-.73-.21-.88-.14-1.05-.05-1.23.06-1.22.16-1.04.24-.87.32-.71.36-.57.4-.44.42-.33.42-.24.4-.16.36-.1.32-.05.24-.01h.16l.06.01h8.16v-.83H6.18l-.01-2.75-.02-.37.05-.34.11-.31.17-.28.25-.26.31-.23.38-.2.44-.18.51-.15.58-.12.64-.1.71-.06.77-.04.84-.02 1.27.05zm-6.3 1.98l-.23.33-.08.41.08.41.23.34.33.22.41.09.41-.09.33-.22.23-.34.08-.41-.08-.41-.23-.33-.33-.22-.41-.09-.41.09zm13.09 3.95l.28.06.32.12.35.18.36.27.36.35.35.47.32.59.28.73.21.88.14 1.04.05 1.23-.06 1.23-.16 1.04-.24.86-.32.71-.36.57-.4.45-.42.33-.42.24-.4.16-.36.09-.32.05-.24.02-.16-.01h-8.22v.82h5.84l.01 2.76.02.36-.05.34-.11.31-.17.29-.25.25-.31.24-.38.2-.44.17-.51.15-.58.13-.64.09-.71.07-.77.04-.84.01-1.27-.04-1.07-.14-.9-.2-.73-.25-.59-.3-.45-.33-.34-.34-.25-.34-.16-.33-.1-.3-.04-.25-.02-.2.01-.13v-5.34l.05-.64.13-.54.21-.46.26-.38.3-.32.33-.24.35-.2.35-.14.33-.1.3-.06.26-.04.21-.02.13-.01h5.84l.69-.05.59-.14.5-.21.41-.28.33-.32.27-.35.2-.36.15-.36.1-.35.07-.32.04-.28.02-.21V6.07h2.09l.14.01zm-6.47 14.25l-.23.33-.08.41.08.41.23.33.33.23.41.08.41-.08.33-.23.23-.33.08-.41-.08-.41-.23-.33-.33-.23-.41-.08-.41.08z"},Go:{title:"Go",hex:"00ADD8",path:"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514-.176.046-.187.058-.34-.117-.174-.199-.303-.327-.548-.444-.737-.362-1.45-.257-2.115.175-.795.514-1.204 1.274-1.192 2.22.011.935.654 1.706 1.577 1.835.795.105 1.46-.175 1.987-.77.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35.152-.362.432-.97.596-1.274a.315.315 0 01.292-.187h4.253c-.023.316-.023.631-.07.947a4.983 4.983 0 01-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986-1.145.152-2.209-.07-3.143-.77-.865-.655-1.356-1.52-1.484-2.595-.152-1.274.222-2.419.993-3.424.83-1.086 1.928-1.776 3.272-2.02 1.098-.2 2.15-.07 3.096.571.62.41 1.063.97 1.356 1.648.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.665 3.665 0 01-1.262-2.255c-.21-1.32.152-2.489.947-3.529.853-1.122 1.881-1.706 3.272-1.95 1.192-.21 2.314-.095 3.33.595.923.63 1.496 1.484 1.648 2.605.198 1.578-.257 2.863-1.344 3.962-.771.783-1.718 1.273-2.805 1.495-.315.06-.63.07-.934.106zm2.78-4.72c-.011-.153-.011-.27-.034-.387-.21-1.157-1.274-1.81-2.384-1.554-1.087.245-1.788.935-2.045 2.033-.21.912.234 1.835 1.075 2.21.643.28 1.285.244 1.905-.07.923-.48 1.425-1.228 1.484-2.233z"},Rust:{title:"Rust",hex:"000000",path:"M23.8346 11.7033l-1.0073-.6236a13.7268 13.7268 0 00-.0283-.2936l.8656-.8069a.3483.3483 0 00-.1154-.578l-1.1066-.414a8.4958 8.4958 0 00-.087-.2856l.6904-.9587a.3462.3462 0 00-.2257-.5446l-1.1663-.1894a9.3574 9.3574 0 00-.1407-.2622l.49-1.0761a.3437.3437 0 00-.0274-.3361.3486.3486 0 00-.3006-.154l-1.1845.0416a6.7444 6.7444 0 00-.1873-.2268l.2723-1.153a.3472.3472 0 00-.417-.4172l-1.1532.2724a14.0183 14.0183 0 00-.2278-.1873l.0415-1.1845a.3442.3442 0 00-.49-.328l-1.076.491c-.0872-.0476-.1742-.0952-.2623-.1407l-.1903-1.1673A.3483.3483 0 0016.256.955l-.9597.6905a8.4867 8.4867 0 00-.2855-.086l-.414-1.1066a.3483.3483 0 00-.5781-.1154l-.8069.8666a9.2936 9.2936 0 00-.2936-.0284L12.2946.1683a.3462.3462 0 00-.5892 0l-.6236 1.0073a13.7383 13.7383 0 00-.2936.0284L9.9803.3374a.3462.3462 0 00-.578.1154l-.4141 1.1065c-.0962.0274-.1903.0567-.2855.086L7.744.955a.3483.3483 0 00-.5447.2258L7.009 2.348a9.3574 9.3574 0 00-.2622.1407l-1.0762-.491a.3462.3462 0 00-.49.328l.0416 1.1845a7.9826 7.9826 0 00-.2278.1873L3.8413 3.425a.3472.3472 0 00-.4171.4171l.2713 1.1531c-.0628.075-.1255.1509-.1863.2268l-1.1845-.0415a.3462.3462 0 00-.328.49l.491 1.0761a9.167 9.167 0 00-.1407.2622l-1.1662.1894a.3483.3483 0 00-.2258.5446l.6904.9587a13.303 13.303 0 00-.087.2855l-1.1065.414a.3483.3483 0 00-.1155.5781l.8656.807a9.2936 9.2936 0 00-.0283.2935l-1.0073.6236a.3442.3442 0 000 .5892l1.0073.6236c.008.0982.0182.1964.0283.2936l-.8656.8079a.3462.3462 0 00.1155.578l1.1065.4141c.0273.0962.0567.1914.087.2855l-.6904.9587a.3452.3452 0 00.2268.5447l1.1662.1893c.0456.088.0922.1751.1408.2622l-.491 1.0762a.3462.3462 0 00.328.49l1.1834-.0415c.0618.0769.1235.1528.1873.2277l-.2713 1.1541a.3462.3462 0 00.4171.4161l1.153-.2713c.075.0638.151.1255.2279.1863l-.0415 1.1845a.3442.3442 0 00.49.327l1.0761-.49c.087.0486.1741.0951.2622.1407l.1903 1.1662a.3483.3483 0 00.5447.2268l.9587-.6904a9.299 9.299 0 00.2855.087l.414 1.1066a.3452.3452 0 00.5781.1154l.8079-.8656c.0972.0111.1954.0203.2936.0294l.6236 1.0073a.3472.3472 0 00.5892 0l.6236-1.0073c.0982-.0091.1964-.0183.2936-.0294l.8069.8656a.3483.3483 0 00.578-.1154l.4141-1.1066a8.4626 8.4626 0 00.2855-.087l.9587.6904a.3452.3452 0 00.5447-.2268l.1903-1.1662c.088-.0456.1751-.0931.2622-.1407l1.0762.49a.3472.3472 0 00.49-.327l-.0415-1.1845a6.7267 6.7267 0 00.2267-.1863l1.1531.2713a.3472.3472 0 00.4171-.416l-.2713-1.1542c.0628-.0749.1255-.1508.1863-.2278l1.1845.0415a.3442.3442 0 00.328-.49l-.49-1.076c.0475-.0872.0951-.1742.1407-.2623l1.1662-.1893a.3483.3483 0 00.2258-.5447l-.6904-.9587.087-.2855 1.1066-.414a.3462.3462 0 00.1154-.5781l-.8656-.8079c.0101-.0972.0202-.1954.0283-.2936l1.0073-.6236a.3442.3442 0 000-.5892zm-6.7413 8.3551a.7138.7138 0 01.2986-1.396.714.714 0 11-.2997 1.396zm-.3422-2.3142a.649.649 0 00-.7715.5l-.3573 1.6685c-1.1035.501-2.3285.7795-3.6193.7795a8.7368 8.7368 0 01-3.6951-.814l-.3574-1.6684a.648.648 0 00-.7714-.499l-1.473.3158a8.7216 8.7216 0 01-.7613-.898h7.1676c.081 0 .1356-.0141.1356-.088v-2.536c0-.074-.0536-.0881-.1356-.0881h-2.0966v-1.6077h2.2677c.2065 0 1.1065.0587 1.394 1.2088.0901.3533.2875 1.5044.4232 1.8729.1346.413.6833 1.2381 1.2685 1.2381h3.5716a.7492.7492 0 00.1296-.0131 8.7874 8.7874 0 01-.8119.9526zM6.8369 20.024a.714.714 0 11-.2997-1.396.714.714 0 01.2997 1.396zM4.1177 8.9972a.7137.7137 0 11-1.304.5791.7137.7137 0 011.304-.579zm-.8352 1.9813l1.5347-.6824a.65.65 0 00.33-.8585l-.3158-.7147h1.2432v5.6025H3.5669a8.7753 8.7753 0 01-.2834-3.348zm6.7343-.5437V8.7836h2.9601c.153 0 1.0792.1772 1.0792.8697 0 .575-.7107.7815-1.2948.7815zm10.7574 1.4862c0 .2187-.008.4363-.0243.651h-.9c-.09 0-.1265.0586-.1265.1477v.413c0 .973-.5487 1.1846-1.0296 1.2382-.4576.0517-.9648-.1913-1.0275-.4717-.2704-1.5186-.7198-1.8436-1.4305-2.4034.8817-.5599 1.799-1.386 1.799-2.4915 0-1.1936-.819-1.9458-1.3769-2.3153-.7825-.5163-1.6491-.6195-1.883-.6195H5.4682a8.7651 8.7651 0 014.907-2.7699l1.0974 1.151a.648.648 0 00.9182.0213l1.227-1.1743a8.7753 8.7753 0 016.0044 4.2762l-.8403 1.8982a.652.652 0 00.33.8585l1.6178.7188c.0283.2875.0425.577.0425.8717zm-9.3006-9.5993a.7128.7128 0 11.984 1.0316.7137.7137 0 01-.984-1.0316zm8.3389 6.71a.7107.7107 0 01.9395-.3625.7137.7137 0 11-.9405.3635z"},Java:{title:"OpenJDK",hex:"000000",path:"M11.915 0 11.7.215C9.515 2.4 7.47 6.39 6.046 10.483c-1.064 1.024-3.633 2.81-3.711 3.551-.093.87 1.746 2.611 1.55 3.235-.198.625-1.304 1.408-1.014 1.939.1.188.823.011 1.277-.491a13.389 13.389 0 0 0-.017 2.14c.076.906.27 1.668.643 2.232.372.563.956.911 1.667.911.397 0 .727-.114 1.024-.264.298-.149.571-.33.91-.5.68-.34 1.634-.666 3.53-.604 1.903.062 2.872.39 3.559.704.687.314 1.15.664 1.925.664.767 0 1.395-.336 1.807-.9.412-.563.631-1.33.72-2.24.06-.623.055-1.32 0-2.066.454.45 1.117.604 1.213.424.29-.53-.816-1.314-1.013-1.937-.198-.624 1.642-2.366 1.549-3.236-.08-.748-2.707-2.568-3.748-3.586C16.428 6.374 14.308 2.394 12.13.215zm.175 6.038a2.95 2.95 0 0 1 2.943 2.942 2.95 2.95 0 0 1-2.943 2.943A2.95 2.95 0 0 1 9.148 8.98a2.95 2.95 0 0 1 2.942-2.942zM8.685 7.983a3.515 3.515 0 0 0-.145.997c0 1.951 1.6 3.55 3.55 3.55 1.95 0 3.55-1.598 3.55-3.55 0-.329-.046-.648-.132-.951.334.095.64.208.915.336a42.699 42.699 0 0 1 2.042 5.829c.678 2.545 1.01 4.92.846 6.607-.082.844-.29 1.51-.606 1.94-.315.431-.713.651-1.315.651-.593 0-.932-.27-1.673-.61-.741-.338-1.825-.694-3.792-.758-1.974-.064-3.073.293-3.821.669-.375.188-.659.373-.911.5s-.466.2-.752.2c-.53 0-.876-.209-1.16-.64-.285-.43-.474-1.101-.545-1.948-.141-1.693.176-4.069.823-6.614a43.155 43.155 0 0 1 1.934-5.783c.348-.167.749-.31 1.192-.425zm-3.382 4.362a.216.216 0 0 1 .13.031c-.166.56-.323 1.116-.463 1.665a33.849 33.849 0 0 0-.547 2.555 3.9 3.9 0 0 0-.2-.39c-.58-1.012-.914-1.642-1.16-2.08.315-.24 1.679-1.755 2.24-1.781zm13.394.01c.562.027 1.926 1.543 2.24 1.783-.246.438-.58 1.068-1.16 2.08a4.428 4.428 0 0 0-.163.309 32.354 32.354 0 0 0-.562-2.49 40.579 40.579 0 0 0-.482-1.652.216.216 0 0 1 .127-.03z"},Kotlin:{title:"Kotlin",hex:"7F52FF",path:"M24 24H0V0h24L12 12Z"},Swift:{title:"Swift",hex:"F05138",path:"M7.508 0c-.287 0-.573 0-.86.002-.241.002-.483.003-.724.01-.132.003-.263.009-.395.015A9.154 9.154 0 0 0 4.348.15 5.492 5.492 0 0 0 2.85.645 5.04 5.04 0 0 0 .645 2.848c-.245.48-.4.972-.495 1.5-.093.52-.122 1.05-.136 1.576a35.2 35.2 0 0 0-.012.724C0 6.935 0 7.221 0 7.508v8.984c0 .287 0 .575.002.862.002.24.005.481.012.722.014.526.043 1.057.136 1.576.095.528.25 1.02.495 1.5a5.03 5.03 0 0 0 2.205 2.203c.48.244.97.4 1.498.495.52.093 1.05.124 1.576.138.241.007.483.009.724.01.287.002.573.002.86.002h8.984c.287 0 .573 0 .86-.002.241-.001.483-.003.724-.01a10.523 10.523 0 0 0 1.578-.138 5.322 5.322 0 0 0 1.498-.495 5.035 5.035 0 0 0 2.203-2.203c.245-.48.4-.972.495-1.5.093-.52.124-1.05.138-1.576.007-.241.009-.481.01-.722.002-.287.002-.575.002-.862V7.508c0-.287 0-.573-.002-.86a33.662 33.662 0 0 0-.01-.724 10.5 10.5 0 0 0-.138-1.576 5.328 5.328 0 0 0-.495-1.5A5.039 5.039 0 0 0 21.152.645 5.32 5.32 0 0 0 19.654.15a10.493 10.493 0 0 0-1.578-.138 34.98 34.98 0 0 0-.722-.01C17.067 0 16.779 0 16.492 0H7.508zm6.035 3.41c4.114 2.47 6.545 7.162 5.549 11.131-.024.093-.05.181-.076.272l.002.001c2.062 2.538 1.5 5.258 1.236 4.745-1.072-2.086-3.066-1.568-4.088-1.043a6.803 6.803 0 0 1-.281.158l-.02.012-.002.002c-2.115 1.123-4.957 1.205-7.812-.022a12.568 12.568 0 0 1-5.64-4.838c.649.48 1.35.902 2.097 1.252 3.019 1.414 6.051 1.311 8.197-.002C9.651 12.73 7.101 9.67 5.146 7.191a10.628 10.628 0 0 1-1.005-1.384c2.34 2.142 6.038 4.83 7.365 5.576C8.69 8.408 6.208 4.743 6.324 4.86c4.436 4.47 8.528 6.996 8.528 6.996.154.085.27.154.36.213.085-.215.16-.437.224-.668.708-2.588-.09-5.548-1.893-7.992z"},Ruby:{title:"Ruby",hex:"CC342D",path:"M20.156.083c3.033.525 3.893 2.598 3.829 4.77L24 4.822 22.635 22.71 4.89 23.926h.016C3.433 23.864.15 23.729 0 19.139l1.645-3 2.819 6.586.503 1.172 2.805-9.144-.03.007.016-.03 9.255 2.956-1.396-5.431-.99-3.9 8.82-.569-.615-.51L16.5 2.114 20.159.073l-.003.01zM0 19.089zM5.13 5.073c3.561-3.533 8.157-5.621 9.922-3.84 1.762 1.777-.105 6.105-3.673 9.636-3.563 3.532-8.103 5.734-9.864 3.957-1.766-1.777.045-6.217 3.612-9.75l.003-.003z"},PHP:{title:"PHP",hex:"777BB4",path:"M7.01 10.207h-.944l-.515 2.648h.838c.556 0 .97-.105 1.242-.314.272-.21.455-.559.55-1.049.092-.47.05-.802-.124-.995-.175-.193-.523-.29-1.047-.29zM12 5.688C5.373 5.688 0 8.514 0 12s5.373 6.313 12 6.313S24 15.486 24 12c0-3.486-5.373-6.312-12-6.312zm-3.26 7.451c-.261.25-.575.438-.917.551-.336.108-.765.164-1.285.164H5.357l-.327 1.681H3.652l1.23-6.326h2.65c.797 0 1.378.209 1.744.628.366.418.476 1.002.33 1.752a2.836 2.836 0 0 1-.305.847c-.143.255-.33.49-.561.703zm4.024.715l.543-2.799c.063-.318.039-.536-.068-.651-.107-.116-.336-.174-.687-.174H11.46l-.704 3.625H9.388l1.23-6.327h1.367l-.327 1.682h1.218c.767 0 1.295.134 1.586.401s.378.7.263 1.299l-.572 2.944h-1.389zm7.597-2.265a2.782 2.782 0 0 1-.305.847c-.143.255-.33.49-.561.703a2.44 2.44 0 0 1-.917.551c-.336.108-.765.164-1.286.164h-1.18l-.327 1.682h-1.378l1.23-6.326h2.649c.797 0 1.378.209 1.744.628.366.417.477 1.001.331 1.751zM17.766 10.207h-.943l-.516 2.648h.838c.557 0 .971-.105 1.242-.314.272-.21.455-.559.551-1.049.092-.47.049-.802-.125-.995s-.524-.29-1.047-.29z"},Dart:{title:"Dart",hex:"0175C2",path:"M4.105 4.105S9.158 1.58 11.684.316a3.079 3.079 0 0 1 1.481-.315c.766.047 1.677.788 1.677.788L24 9.948v9.789h-4.263V24H9.789l-9-9C.303 14.5 0 13.795 0 13.105c0-.319.18-.818.316-1.105l3.789-7.895zm.679.679v11.787c.002.543.021 1.024.498 1.508L10.204 23h8.533v-4.263L4.784 4.784zm12.055-.678c-.899-.896-1.809-1.78-2.74-2.643-.302-.267-.567-.468-1.07-.462-.37.014-.87.195-.87.195L6.341 4.105l10.498.001z"},C:{title:"C",hex:"A8B9CC",path:"M16.5921 9.1962s-.354-3.298-3.627-3.39c-3.2741-.09-4.9552 2.474-4.9552 6.14 0 3.6651 1.858 6.5972 5.0451 6.5972 3.184 0 3.5381-3.665 3.5381-3.665l6.1041.365s.36 3.31-2.196 5.836c-2.552 2.5241-5.6901 2.9371-7.8762 2.9201-2.19-.017-5.2261.034-8.1602-2.97-2.938-3.0101-3.436-5.9302-3.436-8.8002 0-2.8701.556-6.6702 4.047-9.5502C7.444.72 9.849 0 12.254 0c10.0422 0 10.7172 9.2602 10.7172 9.2602z"},"C++":{title:"C++",hex:"00599C",path:"M22.394 6c-.167-.29-.398-.543-.652-.69L12.926.22c-.509-.294-1.34-.294-1.848 0L2.26 5.31c-.508.293-.923 1.013-.923 1.6v10.18c0 .294.104.62.271.91.167.29.398.543.652.69l8.816 5.09c.508.293 1.34.293 1.848 0l8.816-5.09c.254-.147.485-.4.652-.69.167-.29.27-.616.27-.91V6.91c.003-.294-.1-.62-.268-.91zM12 19.11c-3.92 0-7.109-3.19-7.109-7.11 0-3.92 3.19-7.11 7.11-7.11a7.133 7.133 0 016.156 3.553l-3.076 1.78a3.567 3.567 0 00-3.08-1.78A3.56 3.56 0 008.444 12 3.56 3.56 0 0012 15.555a3.57 3.57 0 003.08-1.778l3.078 1.78A7.135 7.135 0 0112 19.11zm7.11-6.715h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79zm2.962 0h-.79v.79h-.79v-.79h-.79v-.79h.79v-.79h.79v.79h.79z"},Vue:{title:"Vue.js",hex:"4FC08D",path:"M24,1.61H14.06L12,5.16,9.94,1.61H0L12,22.39ZM12,14.08,5.16,2.23H9.59L12,6.41l2.41-4.18h4.43Z"},Svelte:{title:"Svelte",hex:"FF3E00",path:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"},CSS:{title:"CSS",hex:"663399",path:"M0 0v20.16A3.84 3.84 0 0 0 3.84 24h16.32A3.84 3.84 0 0 0 24 20.16V3.84A3.84 3.84 0 0 0 20.16 0Zm14.256 13.08c1.56 0 2.28 1.08 2.304 2.64h-1.608c.024-.288-.048-.6-.144-.84-.096-.192-.288-.264-.552-.264-.456 0-.696.264-.696.84-.024.576.288.888.768 1.08.72.288 1.608.744 1.92 1.296q.432.648.432 1.656c0 1.608-.912 2.592-2.496 2.592-1.656 0-2.4-1.032-2.424-2.688h1.68c0 .792.264 1.176.792 1.176.264 0 .456-.072.552-.24.192-.312.24-1.176-.048-1.512-.312-.408-.912-.6-1.32-.816q-.828-.396-1.224-.936c-.24-.36-.36-.888-.36-1.536 0-1.44.936-2.472 2.424-2.448m5.4 0c1.584 0 2.304 1.08 2.328 2.64h-1.608c0-.288-.048-.6-.168-.84-.096-.192-.264-.264-.528-.264-.48 0-.72.264-.72.84s.288.888.792 1.08c.696.288 1.608.744 1.92 1.296.264.432.408.984.408 1.656.024 1.608-.888 2.592-2.472 2.592-1.68 0-2.424-1.056-2.448-2.688h1.68c0 .744.264 1.176.792 1.176.264 0 .456-.072.552-.24.216-.312.264-1.176-.048-1.512-.288-.408-.888-.6-1.32-.816-.552-.264-.96-.576-1.2-.936s-.36-.888-.36-1.536c-.024-1.44.912-2.472 2.4-2.448m-11.031.018c.711-.006 1.419.198 1.839.63.432.432.672 1.128.648 1.992H9.336c.024-.456-.096-.792-.432-.96-.312-.144-.768-.048-.888.24-.12.264-.192.576-.168.864v3.504c0 .744.264 1.128.768 1.128a.65.65 0 0 0 .552-.264c.168-.24.192-.552.168-.84h1.776c.096 1.632-.984 2.712-2.568 2.688-1.536 0-2.496-.864-2.472-2.472v-4.032c0-.816.24-1.44.696-1.848.432-.408 1.146-.624 1.857-.63"},Sass:{title:"Sass",hex:"CC6699",path:"M12 0c6.627 0 12 5.373 12 12s-5.373 12-12 12S0 18.627 0 12 5.373 0 12 0zM9.615 15.998c.175.645.156 1.248-.024 1.792l-.065.18c-.024.061-.052.12-.078.176-.14.29-.326.56-.555.81-.698.759-1.672 1.047-2.09.805-.45-.262-.226-1.335.584-2.19.871-.918 2.12-1.509 2.12-1.509v-.003l.108-.061zm9.911-10.861c-.542-2.133-4.077-2.834-7.422-1.645-1.989.707-4.144 1.818-5.693 3.267C4.568 8.48 4.275 9.98 4.396 10.607c.427 2.211 3.457 3.657 4.703 4.73v.006c-.367.18-3.056 1.529-3.686 2.925-.675 1.47.105 2.521.615 2.655 1.575.436 3.195-.36 4.065-1.649.84-1.261.766-2.881.404-3.676.496-.135 1.08-.195 1.83-.104 2.101.24 2.521 1.56 2.43 2.1-.09.539-.523.854-.674.944-.15.091-.195.12-.181.181.015.09.091.09.21.075.165-.03 1.096-.45 1.141-1.471.045-1.29-1.186-2.729-3.375-2.7-.9.016-1.471.091-1.875.256-.03-.045-.061-.075-.105-.105-1.35-1.455-3.855-2.475-3.75-4.41.03-.705.285-2.564 4.8-4.814 3.705-1.846 6.661-1.335 7.171-.21.733 1.604-1.576 4.59-5.431 5.024-1.47.165-2.235-.404-2.431-.615-.209-.225-.239-.24-.314-.194-.12.06-.045.255 0 .375.12.3.585.825 1.396 1.095.704.225 2.43.359 4.5-.45 2.324-.899 4.139-3.405 3.614-5.505l.073.067z"},Less:{title:"Less",hex:"1D365D",path:"M3.598 7.15a7.961 7.961 0 0 0-1.054.068c-.281.041-.52.124-.717.249a1.19 1.19 0 0 0-.45.497c-.098.208-.14.47-.14.802V10.3c0 .428-.084.732-.253.884-.169.166-.492.25-.984.25v1.16c.478 0 .815.083.984.249.169.166.253.47.253.912v1.548c0 .594.183 1.009.548 1.23.38.207.984.318 1.813.318v-1.078c-.393 0-.646-.07-.773-.194-.126-.124-.183-.373-.183-.746v-1.465c0-.373-.098-.663-.28-.87-.184-.208-.479-.374-.886-.484.393-.125.688-.29.871-.512.183-.22.281-.511.281-.87V9.167c0-.36.057-.608.183-.733.122-.12.412-.195.787-.2v4.547c0 .416.03.764.09 1.044.059.28.164.52.314.724.15.203.356.35.616.443.26.093.589.14.984.14.098 0 .205-.007.32-.02a5.336 5.336 0 0 0 .65-.107l-.036-.98c-.27.038-.492.057-.667.057-.353 0-.59-.092-.713-.276-.122-.183-.183-.534-.183-1.051V7.149H3.598zm16.818-.001v1.092c.393 0 .647.069.773.193.127.125.183.373.183.733v1.465c0 .359.098.65.28.87.184.222.479.387.872.512-.407.11-.702.276-.885.483-.183.208-.281.498-.281.871v1.465c0 .373-.057.622-.183.746-.126.125-.38.194-.773.194v1.078c.83 0 1.434-.11 1.813-.318.365-.221.548-.636.548-1.23v-1.548c0-.442.085-.746.253-.912.169-.166.506-.249.984-.249v-1.16c-.492 0-.815-.084-.984-.25-.168-.151-.253-.456-.253-.884V8.766c0-.332-.042-.594-.14-.801a1.19 1.19 0 0 0-.45-.498 1.828 1.828 0 0 0-.717-.249 7.252 7.252 0 0 0-1.04-.069zm-6.479 1.975c-.675 0-1.209.14-1.588.421-.38.281-.576.689-.576 1.209 0 .422.112.773.351 1.026s.618.478 1.152.688c.043.015.14.057.296.113.45.183.758.31.913.436a.592.592 0 0 1 .239.478c0 .224-.084.393-.253.506-.169.112-.408.168-.717.168-.295 0-.632-.056-.984-.155a3.901 3.901 0 0 1-.885-.337l-.14 1.04c.505.296 1.18.436 2.037.436.717 0 1.265-.155 1.659-.464.393-.309.59-.759.59-1.335 0-.436-.126-.787-.38-1.054-.252-.267-.632-.492-1.166-.689-.382-.15-.84-.277-1.209-.506a.465.465 0 0 1-.224-.421c0-.183.084-.324.239-.422.154-.098.365-.14.646-.14.506 0 1.026.126 1.574.379l.365-.956c-.562-.28-1.208-.421-1.939-.421zm4.512 0c-.675 0-1.21.14-1.589.421-.38.281-.576.689-.576 1.209 0 .422.112.773.351 1.026.24.253.619.478 1.153.688.042.015.14.057.295.113.45.183.759.31.914.436a.592.592 0 0 1 .238.478c0 .224-.084.393-.253.506-.168.112-.407.168-.716.168a3.72 3.72 0 0 1-.984-.155 3.904 3.904 0 0 1-.886-.337l-.14 1.04c.506.296 1.18.436 2.038.436.702 0 1.265-.155 1.686-.464.394-.309.59-.759.59-1.335 0-.436-.126-.787-.379-1.054s-.632-.492-1.166-.689c-.392-.153-.842-.277-1.209-.506a.465.465 0 0 1-.225-.421c0-.183.085-.324.24-.422.154-.098.364-.14.646-.14.506 0 1.026.126 1.574.379l.337-.956c-.562-.28-1.209-.421-1.94-.421zm-9.46.014c-.842 0-1.503.267-1.995.815-.492.548-.73 1.279-.73 2.192 0 .956.252 1.687.772 2.22.52.535 1.237.802 2.165.802.8 0 1.49-.183 2.08-.52l-.197-.984a3.66 3.66 0 0 1-1.813.492c-.492 0-.886-.155-1.167-.45-.28-.295-.435-.716-.45-1.25h3.852v-.591c0-.829-.225-1.49-.661-1.982-.45-.491-1.054-.744-1.855-.744zm-.013.983c.38 0 .674.127.885.38.211.253.323.618.323 1.082H7.67c.042-.492.182-.857.407-1.096.253-.239.548-.366.9-.366Z"},HTML:{title:"HTML5",hex:"E34F26",path:"M1.5 0h21l-1.91 21.563L11.977 24l-8.564-2.438L1.5 0zm7.031 9.75l-.232-2.718 10.059.003.23-2.622L5.412 4.41l.698 8.01h9.126l-.326 3.426-2.91.804-2.955-.81-.188-2.11H6.248l.33 4.171L12 19.351l5.379-1.443.744-8.157H8.531z"},Prisma:{title:"Prisma",hex:"2D3748",path:"M21.8068 18.2848L13.5528.7565c-.207-.4382-.639-.7273-1.1286-.7541-.5023-.0293-.9523.213-1.2062.6253L2.266 15.1271c-.2773.4518-.2718 1.0091.0158 1.4555l4.3759 6.7786c.2608.4046.7127.6388 1.1823.6388.1332 0 .267-.0188.3987-.0577l12.7019-3.7568c.3891-.1151.7072-.3904.8737-.7553s.1633-.7828-.0075-1.1454zm-1.8481.7519L9.1814 22.2242c-.3292.0975-.6448-.1873-.5756-.5194l3.8501-18.4386c.072-.3448.5486-.3996.699-.0803l7.1288 15.138c.1344.2856-.019.6224-.325.7128z"},GraphQL:{title:"GraphQL",hex:"E10098",path:"M12.002 0a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.54 4.931a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm0 9.862a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm-8.54 4.931a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.276zm-8.542-4.93a2.138 2.138 0 1 0 0 4.276 2.138 2.138 0 1 0 0-4.277zm0-9.863a2.138 2.138 0 1 0 0 4.277 2.138 2.138 0 1 0 0-4.277zm8.542-3.378L2.953 6.777v10.448l9.049 5.224 9.047-5.224V6.777zm0 1.601 7.66 13.27H4.34zm-1.387.371L3.97 15.037V7.363zm2.774 0 6.646 3.838v7.674zM5.355 17.44h13.293l-6.646 3.836z"},Shell:{title:"GNU Bash",hex:"4EAA25",path:"M21.038,4.9l-7.577-4.498C13.009,0.134,12.505,0,12,0c-0.505,0-1.009,0.134-1.462,0.403L2.961,4.9 C2.057,5.437,1.5,6.429,1.5,7.503v8.995c0,1.073,0.557,2.066,1.462,2.603l7.577,4.497C10.991,23.866,11.495,24,12,24 c0.505,0,1.009-0.134,1.461-0.402l7.577-4.497c0.904-0.537,1.462-1.529,1.462-2.603V7.503C22.5,6.429,21.943,5.437,21.038,4.9z M15.17,18.946l0.013,0.646c0.001,0.078-0.05,0.167-0.111,0.198l-0.383,0.22c-0.061,0.031-0.111-0.007-0.112-0.085L14.57,19.29 c-0.328,0.136-0.66,0.169-0.872,0.084c-0.04-0.016-0.057-0.075-0.041-0.142l0.139-0.584c0.011-0.046,0.036-0.092,0.069-0.121 c0.012-0.011,0.024-0.02,0.036-0.026c0.022-0.011,0.043-0.014,0.062-0.006c0.229,0.077,0.521,0.041,0.802-0.101 c0.357-0.181,0.596-0.545,0.592-0.907c-0.003-0.328-0.181-0.465-0.613-0.468c-0.55,0.001-1.064-0.107-1.072-0.917 c-0.007-0.667,0.34-1.361,0.889-1.8l-0.007-0.652c-0.001-0.08,0.048-0.168,0.111-0.2l0.37-0.236 c0.061-0.031,0.111,0.007,0.112,0.087l0.006,0.653c0.273-0.109,0.511-0.138,0.726-0.088c0.047,0.012,0.067,0.076,0.048,0.151 l-0.144,0.578c-0.011,0.044-0.036,0.088-0.065,0.116c-0.012,0.012-0.025,0.021-0.038,0.028c-0.019,0.01-0.038,0.013-0.057,0.009 c-0.098-0.022-0.332-0.073-0.699,0.113c-0.385,0.195-0.52,0.53-0.517,0.778c0.003,0.297,0.155,0.387,0.681,0.396 c0.7,0.012,1.003,0.318,1.01,1.023C16.105,17.747,15.736,18.491,15.17,18.946z M19.143,17.859c0,0.06-0.008,0.116-0.058,0.145 l-1.916,1.164c-0.05,0.029-0.09,0.004-0.09-0.056v-0.494c0-0.06,0.037-0.093,0.087-0.122l1.887-1.129 c0.05-0.029,0.09-0.004,0.09,0.056V17.859z M20.459,6.797l-7.168,4.427c-0.894,0.523-1.553,1.109-1.553,2.187v8.833 c0,0.645,0.26,1.063,0.66,1.184c-0.131,0.023-0.264,0.039-0.398,0.039c-0.42,0-0.833-0.114-1.197-0.33L3.226,18.64 c-0.741-0.44-1.201-1.261-1.201-2.142V7.503c0-0.881,0.46-1.702,1.201-2.142l7.577-4.498c0.363-0.216,0.777-0.33,1.197-0.33 c0.419,0,0.833,0.114,1.197,0.33l7.577,4.498c0.624,0.371,1.046,1.013,1.164,1.732C21.686,6.557,21.12,6.411,20.459,6.797z"},React:{title:"React",hex:"61DAFB",path:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"},"Next.js":{title:"Next.js",hex:"000000",path:"M18.665 21.978C16.758 23.255 14.465 24 12 24 5.377 24 0 18.623 0 12S5.377 0 12 0s12 5.377 12 12c0 3.583-1.574 6.801-4.067 9.001L9.219 7.2H7.2v9.596h1.615V9.251l9.85 12.727Zm-3.332-8.533 1.6 2.061V7.2h-1.6v6.245Z"},"React Native":{title:"React",hex:"61DAFB",path:"M14.23 12.004a2.236 2.236 0 0 1-2.235 2.236 2.236 2.236 0 0 1-2.236-2.236 2.236 2.236 0 0 1 2.235-2.236 2.236 2.236 0 0 1 2.236 2.236zm2.648-10.69c-1.346 0-3.107.96-4.888 2.622-1.78-1.653-3.542-2.602-4.887-2.602-.41 0-.783.093-1.106.278-1.375.793-1.683 3.264-.973 6.365C1.98 8.917 0 10.42 0 12.004c0 1.59 1.99 3.097 5.043 4.03-.704 3.113-.39 5.588.988 6.38.32.187.69.275 1.102.275 1.345 0 3.107-.96 4.888-2.624 1.78 1.654 3.542 2.603 4.887 2.603.41 0 .783-.09 1.106-.275 1.374-.792 1.683-3.263.973-6.365C22.02 15.096 24 13.59 24 12.004c0-1.59-1.99-3.097-5.043-4.032.704-3.11.39-5.587-.988-6.38-.318-.184-.688-.277-1.092-.278zm-.005 1.09v.006c.225 0 .406.044.558.127.666.382.955 1.835.73 3.704-.054.46-.142.945-.25 1.44-.96-.236-2.006-.417-3.107-.534-.66-.905-1.345-1.727-2.035-2.447 1.592-1.48 3.087-2.292 4.105-2.295zm-9.77.02c1.012 0 2.514.808 4.11 2.28-.686.72-1.37 1.537-2.02 2.442-1.107.117-2.154.298-3.113.538-.112-.49-.195-.964-.254-1.42-.23-1.868.054-3.32.714-3.707.19-.09.4-.127.563-.132zm4.882 3.05c.455.468.91.992 1.36 1.564-.44-.02-.89-.034-1.345-.034-.46 0-.915.01-1.36.034.44-.572.895-1.096 1.345-1.565zM12 8.1c.74 0 1.477.034 2.202.093.406.582.802 1.203 1.183 1.86.372.64.71 1.29 1.018 1.946-.308.655-.646 1.31-1.013 1.95-.38.66-.773 1.288-1.18 1.87-.728.063-1.466.098-2.21.098-.74 0-1.477-.035-2.202-.093-.406-.582-.802-1.204-1.183-1.86-.372-.64-.71-1.29-1.018-1.946.303-.657.646-1.313 1.013-1.954.38-.66.773-1.286 1.18-1.868.728-.064 1.466-.098 2.21-.098zm-3.635.254c-.24.377-.48.763-.704 1.16-.225.39-.435.782-.635 1.174-.265-.656-.49-1.31-.676-1.947.64-.15 1.315-.283 2.015-.386zm7.26 0c.695.103 1.365.23 2.006.387-.18.632-.405 1.282-.66 1.933-.2-.39-.41-.783-.64-1.174-.225-.392-.465-.774-.705-1.146zm3.063.675c.484.15.944.317 1.375.498 1.732.74 2.852 1.708 2.852 2.476-.005.768-1.125 1.74-2.857 2.475-.42.18-.88.342-1.355.493-.28-.958-.646-1.956-1.1-2.98.45-1.017.81-2.01 1.085-2.964zm-13.395.004c.278.96.645 1.957 1.1 2.98-.45 1.017-.812 2.01-1.086 2.964-.484-.15-.944-.318-1.37-.5-1.732-.737-2.852-1.706-2.852-2.474 0-.768 1.12-1.742 2.852-2.476.42-.18.88-.342 1.356-.494zm11.678 4.28c.265.657.49 1.312.676 1.948-.64.157-1.316.29-2.016.39.24-.375.48-.762.705-1.158.225-.39.435-.788.636-1.18zm-9.945.02c.2.392.41.783.64 1.175.23.39.465.772.705 1.143-.695-.102-1.365-.23-2.006-.386.18-.63.406-1.282.66-1.933zM17.92 16.32c.112.493.2.968.254 1.423.23 1.868-.054 3.32-.714 3.708-.147.09-.338.128-.563.128-1.012 0-2.514-.807-4.11-2.28.686-.72 1.37-1.536 2.02-2.44 1.107-.118 2.154-.3 3.113-.54zm-11.83.01c.96.234 2.006.415 3.107.532.66.905 1.345 1.727 2.035 2.446-1.595 1.483-3.092 2.295-4.11 2.295-.22-.005-.406-.05-.553-.132-.666-.38-.955-1.834-.73-3.703.054-.46.142-.944.25-1.438zm4.56.64c.44.02.89.034 1.345.034.46 0 .915-.01 1.36-.034-.44.572-.895 1.095-1.345 1.565-.455-.47-.91-.993-1.36-1.565z"},Nuxt:{title:"Nuxt",hex:"00DC82",path:"M13.4642 19.8295h8.9218c.2834 0 .5618-.0723.8072-.2098a1.5899 1.5899 0 0 0 .5908-.5732 1.5293 1.5293 0 0 0 .216-.783 1.529 1.529 0 0 0-.2167-.7828L17.7916 7.4142a1.5904 1.5904 0 0 0-.5907-.573 1.6524 1.6524 0 0 0-.807-.2099c-.2833 0-.5616.0724-.807.2098a1.5904 1.5904 0 0 0-.5907.5731L13.4642 9.99l-2.9954-5.0366a1.5913 1.5913 0 0 0-.591-.573 1.6533 1.6533 0 0 0-.8071-.2098c-.2834 0-.5617.0723-.8072.2097a1.5913 1.5913 0 0 0-.591.573L.2168 17.4808A1.5292 1.5292 0 0 0 0 18.2635c-.0001.2749.0744.545.216.783a1.59 1.59 0 0 0 .5908.5732c.2454.1375.5238.2098.8072.2098h5.6003c2.219 0 3.8554-.9454 4.9813-2.7899l2.7337-4.5922L16.3935 9.99l4.3944 7.382h-5.8586ZM7.123 17.3694l-3.9083-.0009 5.8586-9.8421 2.9232 4.921-1.9572 3.2892c-.7478 1.1967-1.5972 1.6328-2.9163 1.6328z"},SvelteKit:{title:"Svelte",hex:"FF3E00",path:"M10.354 21.125a4.44 4.44 0 0 1-4.765-1.767 4.109 4.109 0 0 1-.703-3.107 3.898 3.898 0 0 1 .134-.522l.105-.321.287.21a7.21 7.21 0 0 0 2.186 1.092l.208.063-.02.208a1.253 1.253 0 0 0 .226.83 1.337 1.337 0 0 0 1.435.533 1.231 1.231 0 0 0 .343-.15l5.59-3.562a1.164 1.164 0 0 0 .524-.778 1.242 1.242 0 0 0-.211-.937 1.338 1.338 0 0 0-1.435-.533 1.23 1.23 0 0 0-.343.15l-2.133 1.36a4.078 4.078 0 0 1-1.135.499 4.44 4.44 0 0 1-4.765-1.766 4.108 4.108 0 0 1-.702-3.108 3.855 3.855 0 0 1 1.742-2.582l5.589-3.563a4.072 4.072 0 0 1 1.135-.499 4.44 4.44 0 0 1 4.765 1.767 4.109 4.109 0 0 1 .703 3.107 3.943 3.943 0 0 1-.134.522l-.105.321-.286-.21a7.204 7.204 0 0 0-2.187-1.093l-.208-.063.02-.207a1.255 1.255 0 0 0-.226-.831 1.337 1.337 0 0 0-1.435-.532 1.231 1.231 0 0 0-.343.15L8.62 9.368a1.162 1.162 0 0 0-.524.778 1.24 1.24 0 0 0 .211.937 1.338 1.338 0 0 0 1.435.533 1.235 1.235 0 0 0 .344-.151l2.132-1.36a4.067 4.067 0 0 1 1.135-.498 4.44 4.44 0 0 1 4.765 1.766 4.108 4.108 0 0 1 .702 3.108 3.857 3.857 0 0 1-1.742 2.583l-5.589 3.562a4.072 4.072 0 0 1-1.135.499m10.358-17.95C18.484-.015 14.082-.96 10.9 1.068L5.31 4.63a6.412 6.412 0 0 0-2.896 4.295 6.753 6.753 0 0 0 .666 4.336 6.43 6.43 0 0 0-.96 2.396 6.833 6.833 0 0 0 1.168 5.167c2.229 3.19 6.63 4.135 9.812 2.108l5.59-3.562a6.41 6.41 0 0 0 2.896-4.295 6.756 6.756 0 0 0-.665-4.336 6.429 6.429 0 0 0 .958-2.396 6.831 6.831 0 0 0-1.167-5.168Z"},Angular:{title:"Angular",hex:"0F0F11",path:"M16.712 17.711H7.288l-1.204 2.916L12 24l5.916-3.373-1.204-2.916ZM14.692 0l7.832 16.855.814-12.856L14.692 0ZM9.308 0 .662 3.999l.814 12.856L9.308 0Zm-.405 13.93h6.198L12 6.396 8.903 13.93Z"},SolidJS:{title:"Solid",hex:"2C4F7C",path:"M11.558.788A9.082 9.082 0 0 0 9.776.99l-.453.15c-.906.303-1.656.755-2.1 1.348l-.301.452-2.035 3.528c.426-.387.974-.698 1.643-.894h.001l.613-.154h.001a8.82 8.82 0 0 1 1.777-.206c2.916-.053 6.033 1.148 8.423 2.36 2.317 1.175 3.888 2.32 3.987 2.39L24 5.518c-.082-.06-1.66-1.21-3.991-2.386-2.393-1.206-5.521-2.396-8.45-2.343zM8.924 5.366a8.634 8.634 0 0 0-1.745.203l-.606.151c-1.278.376-2.095 1.16-2.43 2.108-.334.948-.188 2.065.487 3.116.33.43.747.813 1.216 1.147L12.328 10h.001a6.943 6.943 0 0 1 6.013 1.013l2.844-.963c-.17-.124-1.663-1.2-3.91-2.34-2.379-1.206-5.479-2.396-8.352-2.344zm5.435 4.497a6.791 6.791 0 0 0-1.984.283L2.94 13.189 0 18.334l9.276-2.992a6.945 6.945 0 0 1 7.408 2.314v.001c.695.903.89 1.906.66 2.808l2.572-4.63c.595-1.041.45-2.225-.302-3.429a6.792 6.792 0 0 0-5.255-2.543zm-3.031 5.341a6.787 6.787 0 0 0-2.006.283L.008 18.492c.175.131 2.02 1.498 4.687 2.768 2.797 1.332 6.37 2.467 9.468 1.712l.454-.152h.002c1.278-.376 2.134-1.162 2.487-2.09.353-.93.207-2.004-.541-2.978a6.791 6.791 0 0 0-5.237-2.548z"},Preact:{title:"Preact",hex:"673AB8",path:"M 12,10.406 A 1.594,1.594 0 0 0 10.406,12 1.594,1.594 0 0 0 12,13.594 1.594,1.594 0 0 0 13.594,12 1.594,1.594 0 0 0 12,10.406 Z m 5.499,-4.33 a 2.998,2.998 0 0 1 0.643,0.054 1.668,1.668 0 0 1 0.48,0.172 1.085,1.085 0 0 1 0.29,0.235 1.032,1.032 0 0 1 0.185,0.315 1.454,1.454 0 0 1 0.084,0.452 c 0.007,0.195 -0.015,0.398 -0.058,0.603 -0.054,0.261 -0.14,0.521 -0.244,0.778 -0.137,0.334 -0.304,0.66 -0.49,0.978 -0.245,0.417 -0.52,0.818 -0.817,1.207 -0.145,0.191 -0.3,0.376 -0.455,0.561 -0.22,-0.238 -0.443,-0.472 -0.673,-0.7 a 23.61,23.61 0 0 0 -2.05,-1.797 l -0.23,0.296 0.23,-0.296 -0.018,-0.014 -0.461,0.592 0.018,0.014 a 22.864,22.864 0 0 1 1.984,1.74 c 0.241,0.237 0.475,0.48 0.703,0.73 -0.099,0.108 -0.194,0.22 -0.296,0.326 -0.099,0.104 -0.2,0.207 -0.301,0.308 l 0.53,0.53 c 0.106,-0.105 0.21,-0.212 0.313,-0.32 0.085,-0.088 0.164,-0.182 0.248,-0.272 0.065,0.078 0.135,0.152 0.198,0.231 a 13.317,13.317 0 0 1 0.909,1.262 c 0.211,0.336 0.404,0.681 0.564,1.036 a 5.23,5.23 0 0 1 0.293,0.806 3.019,3.019 0 0 1 0.102,0.637 c 0.008,0.178 -0.007,0.351 -0.05,0.508 -0.034,0.123 -0.087,0.239 -0.157,0.338 h -10e-4 c -0.068,0.098 -0.157,0.186 -0.26,0.256 -0.121,0.083 -0.264,0.146 -0.418,0.191 -0.188,0.054 -0.39,0.081 -0.6,0.09 -0.266,0.01 -0.538,-0.01 -0.814,-0.05 -0.357,-0.051 -0.713,-0.134 -1.067,-0.238 -0.464,-0.137 -0.92,-0.307 -1.369,-0.5 h -0.001 c -0.584,-0.253 -1.153,-0.543 -1.71,-0.86 L 12.708,16.26 c 0.578,-0.377 1.144,-0.77 1.686,-1.194 l -0.21,-0.27 0.211,0.27 0.018,-0.015 -0.463,-0.59 -0.017,0.014 c -0.695,0.542 -1.418,1.047 -2.168,1.505 A 18.53,18.53 0 0 1 9.938,16.963 C 9.465,17.182 8.984,17.378 8.494,17.539 A 8.68,8.68 0 0 1 7.352,17.835 C 7.066,17.887 6.781,17.921 6.499,17.925 6.277,17.928 6.061,17.912 5.856,17.87 5.681,17.834 5.518,17.778 5.376,17.698 5.265,17.635 5.166,17.556 5.086,17.464 5.007,17.373 4.944,17.265 4.901,17.149 4.85,17.012 4.823,16.857 4.817,16.696 a 2.54,2.54 0 0 1 0.058,-0.603 c 0.055,-0.261 0.14,-0.52 0.245,-0.777 a 7.704,7.704 0 0 1 0.49,-0.978 12.09,12.09 0 0 1 1.271,-1.767 c 0.232,0.251 0.469,0.497 0.712,0.737 a 23.645,23.645 0 0 0 2.02,1.765 l 0.461,-0.591 A 22.9,22.9 0 0 1 8.119,12.773 C 7.865,12.523 7.618,12.267 7.378,12.004 7.477,11.896 7.573,11.785 7.673,11.679 7.776,11.572 7.879,11.466 7.983,11.362 l -0.53,-0.53 C 7.345,10.94 7.238,11.05 7.132,11.16 7.047,11.249 6.967,11.343 6.884,11.433 6.829,11.367 6.77,11.305 6.715,11.238 6.386,10.832 6.077,10.411 5.799,9.975 5.585,9.637 5.391,9.292 5.228,8.935 5.102,8.66 4.995,8.38 4.92,8.097 4.863,7.882 4.826,7.669 4.818,7.46 A 1.67,1.67 0 0 1 4.868,6.953 C 4.902,6.829 4.955,6.714 5.025,6.614 H 5.026 C 5.094,6.516 5.184,6.428 5.286,6.358 A 1.446,1.446 0 0 1 5.705,6.168 C 5.892,6.113 6.094,6.086 6.304,6.078 a 4.545,4.545 0 0 1 0.814,0.048 7.708,7.708 0 0 1 1.067,0.24 12.092,12.092 0 0 1 1.369,0.5 17.248,17.248 0 0 1 1.736,0.874 24.003,24.003 0 0 0 -1.694,1.202 l 0.462,0.59 c 0.683,-0.534 1.393,-1.031 2.13,-1.484 0.594,-0.363 1.203,-0.697 1.83,-0.99 0.474,-0.222 0.956,-0.42 1.448,-0.583 A 8.816,8.816 0 0 1 16.612,6.172 C 16.91,6.116 17.207,6.08 17.499,6.076 Z m -0.01,-0.75 -0.001,0 C 17.142,5.331 16.804,5.373 16.474,5.434 A 9.546,9.546 0 0 0 15.229,5.763 14.202,14.202 0 0 0 13.7,6.379 C 13.117,6.651 12.554,6.961 12.004,7.289 11.883,7.216 11.761,7.144 11.637,7.074 11.06,6.745 10.466,6.442 9.852,6.177 9.38,5.974 8.897,5.792 8.397,5.646 8.017,5.534 7.625,5.442 7.225,5.384 6.916,5.34 6.599,5.316 6.275,5.329 6.021,5.339 5.759,5.372 5.499,5.446 5.281,5.51 5.063,5.602 4.863,5.74 A 1.774,1.774 0 0 0 4.146,6.754 C 4.078,7.001 4.059,7.251 4.069,7.491 a 3.728,3.728 0 0 0 0.127,0.798 6.016,6.016 0 0 0 0.351,0.959 9.548,9.548 0 0 0 0.62,1.128 14.203,14.203 0 0 0 0.967,1.335 c 0.08,0.098 0.166,0.19 0.248,0.286 C 6.193,12.219 6.007,12.443 5.83,12.676 5.519,13.084 5.226,13.51 4.963,13.958 A 8.44,8.44 0 0 0 4.425,15.033 5.28,5.28 0 0 0 4.142,15.941 C 4.089,16.19 4.059,16.453 4.069,16.723 a 2.182,2.182 0 0 0 0.13,0.688 v 10e-4 a 1.775,1.775 0 0 0 0.81,0.94 2.403,2.403 0 0 0 0.697,0.253 3.699,3.699 0 0 0 0.805,0.07 5.97,5.97 0 0 0 0.977,-0.102 l 10e-4,-0.001 a 9.412,9.412 0 0 0 1.24,-0.32 c 0.523,-0.173 1.031,-0.38 1.526,-0.61 0.599,-0.278 1.178,-0.593 1.742,-0.93 0.121,0.072 0.243,0.144 0.366,0.214 a 17.99,17.99 0 0 0 1.785,0.898 12.832,12.832 0 0 0 1.455,0.53 c 0.38,0.112 0.772,0.204 1.172,0.262 a 5.284,5.284 0 0 0 0.95,0.056 c 0.254,-0.01 0.516,-0.044 0.776,-0.118 0.218,-0.063 0.436,-0.156 0.636,-0.294 a 1.775,1.775 0 0 0 0.717,-1.014 c 0.068,-0.248 0.087,-0.497 0.077,-0.736 -0.011,-0.277 -0.06,-0.544 -0.127,-0.799 -0.085,-0.322 -0.202,-0.629 -0.335,-0.923 -0.178,-0.393 -0.387,-0.767 -0.612,-1.127 -0.294,-0.466 -0.618,-0.908 -0.959,-1.333 -0.09,-0.111 -0.188,-0.216 -0.28,-0.324 0.189,-0.222 0.374,-0.447 0.552,-0.679 0.311,-0.409 0.604,-0.835 0.867,-1.283 A 8.441,8.441 0 0 0 19.575,8.967 5.277,5.277 0 0 0 19.858,8.06 C 19.911,7.81 19.941,7.547 19.931,7.277 19.924,7.051 19.886,6.817 19.801,6.589 V 6.588 a 1.775,1.775 0 0 0 -0.81,-0.94 C 18.767,5.522 18.529,5.444 18.294,5.396 A 3.7,3.7 0 0 0 17.489,5.326 Z M 12,0 22.392,6 V 18 L 12,24 1.607,18 V 6 Z"},Electron:{title:"Electron",hex:"47848F",path:"M12.0111 0c-.85 0-1.5392.6891-1.5392 1.5392 0 .8501.6891 1.5393 1.5392 1.5393.595 0 1.11-.338 1.3662-.832 2.2208 1.2675 3.847 5.4728 3.847 10.3623 0 2.0715-.2891 4.056-.825 5.7685a.3215.3215 0 0 0 .2107.403.322.322 0 0 0 .4033-.2111c.5558-1.7763.8542-3.8251.8542-5.9604 0-5.1927-1.7717-9.686-4.3206-11.0027.001-.0223.0035-.0443.0035-.0669 0-.85-.6891-1.5392-1.5393-1.5392zm0 .6432a.896.896 0 1 1 0 1.792.896.896 0 1 1 0-1.792zm-5.486 4.3052c-2.067.0074-3.6473.6646-4.3885 1.9485-.7375 1.2774-.5267 2.971.5113 4.7813a.3217.3217 0 0 0 .558-.32C2.271 9.7274 2.089 8.266 2.6938 7.2185c.821-1.422 3.033-1.9552 5.9321-1.4271a.3216.3216 0 0 0 .1153-.6329c-.784-.1428-1.5271-.2125-2.216-.21zm11.0522.0176a.3216.3216 0 0 0-.0084.6432c1.8337.0239 3.1556.5956 3.7502 1.6256.8192 1.419.1798 3.5947-1.7182 5.837a.322.322 0 0 0 .0377.4535.3215.3215 0 0 0 .4532-.0377c2.0535-2.426 2.7708-4.8661 1.7845-6.5744-.7257-1.257-2.26-1.9207-4.299-1.9472zm-2.6984.2924a.3225.3225 0 0 0-.0647.0072c-1.8568.3979-3.8333 1.1755-5.7314 2.2714-4.5699 2.6384-7.5924 6.4948-7.3601 9.3717-.4726.2628-.7928.7664-.7928 1.3455 0 .85.6892 1.5392 1.5393 1.5392.85 0 1.5392-.6891 1.5392-1.5392 0-.8501-.6891-1.5393-1.5392-1.5393-.038 0-.0754.003-.1128.0057-.1002-2.5597 2.7434-6.1412 7.048-8.6265 1.8413-1.063 3.7551-1.8163 5.5445-2.1997a.3217.3217 0 0 0-.07-.636zm-2.8787 6.2364a1.1192 1.1192 0 0 0-.2243.0255c-.6012.1301-.983.7225-.8533 1.3238.1302.6012.7226.9832 1.3238.8533.6012-.1302.9832-.7226.8533-1.3238-.1139-.526-.5816-.8844-1.0995-.8788zM4.532 13.341a.321.321 0 0 0-.2318.0835.3214.3214 0 0 0-.0214.4542c1.2682 1.3936 2.9157 2.701 4.7946 3.7857 4.4146 2.5489 9.1056 3.2849 11.5608 1.8392a1.53 1.53 0 0 0 .8966.2899c.8501 0 1.5392-.6891 1.5392-1.5392 0-.8501-.689-1.5393-1.5392-1.5393-.85 0-1.5392.6892-1.5392 1.5393 0 .276.0737.5344.201.7584-2.2448 1.214-6.631.5002-10.7976-1.9054-1.8228-1.0524-3.418-2.3181-4.6404-3.6614a.3206.3206 0 0 0-.2226-.1049zm-2.0628 4.0172a.896.896 0 1 1 0 1.792.896.896 0 1 1 0-1.792zm19.0616 0a.896.896 0 1 1 0 1.792.891.891 0 0 1-.5864-.2194c-.0025-.004-.0039-.0083-.0066-.0123a.3195.3195 0 0 0-.0957-.0914.896.896 0 0 1 .6887-1.4689zm-14.0045 1.368a.3215.3215 0 0 0-.3207.4296C8.2793 22.154 10.036 24 12.0111 24c1.4406 0 2.7735-.9822 3.8128-2.711a.3215.3215 0 0 0-.11-.4413.3219.3219 0 0 0-.4415.11c-.934 1.5537-2.0812 2.399-3.2613 2.399-1.6407 0-3.2075-1.6465-4.2-4.4179a.3216.3216 0 0 0-.2848-.2126z"},Express:{title:"Express",hex:"0A0A0A",path:"M12.262 16.666h1.146l6.975-9.325H19.22zm9.778 1.441v.004l-4.334-5.706-.557.74 4.873 6.682H.945V4.173h9.505l5.026 6.7.574-.772-4.374-5.928h.003l-.719-.945H0v17.544h24zM10.917 8.705a3.8 3.8 0 0 0-1.292-1.183q-.796-.45-1.916-.45c-.746 0-1.37.14-1.906.424a3.76 3.76 0 0 0-1.31 1.12 4.9 4.9 0 0 0-.75 1.581 7.17 7.17 0 0 0 0 3.696c.148.567.402 1.101.75 1.573a3.5 3.5 0 0 0 1.31 1.066q.803.39 1.906.389 1.77 0 2.739-.868.966-.867 1.328-2.457h-1.139q-.271 1.084-.977 1.734-.704.651-1.952.65-.812 0-1.392-.342a3.1 3.1 0 0 1-.957-.869 3.5 3.5 0 0 1-.551-1.182 5 5 0 0 1-.17-1.133 9 9 0 0 0-.015-.286 4.5 4.5 0 0 1 .015-.829c.047-.418.147-.83.296-1.223A3.7 3.7 0 0 1 5.54 9.05a2.9 2.9 0 0 1 .922-.742q.541-.28 1.246-.28c.47 0 .869.093 1.23.28q.541.281.922.742.379.461.587 1.057t.225 1.246H5.625l.004.957h6.182a7.3 7.3 0 0 0-.18-1.924 4.9 4.9 0 0 0-.715-1.68z"},Fastify:{title:"Fastify",hex:"000000",path:"M23.245 6.49L24 4.533l-.031-.121-7.473 1.967c.797-1.153.523-2.078.523-2.078s-2.387 1.524-4.193 1.485c-1.804-.04-2.387-.52-5.155.362-2.768.882-3.551 3.59-4.351 4.173-.804.583-3.32 2.477-3.32 2.477l.006.034 2.27-.724s-.622.585-1.945 2.37l-.062-.057.002.011s1.064 1.626 2.107 1.324a2.14 2.14 0 0 0 .353-.147c.419.234.967.463 1.572.525 0 0-.41-.475-.752-1.017l.238-.154.865.318-.096-.812c.003-.003.006-.003.008-.006l.849.311-.105-.738a5.65 5.65 0 0 1 .322-.158l.885-3.345 3.662-2.497-.291.733c-.741 1.826-2.135 2.256-2.135 2.256l-.582.22c-.433.512-.614.637-.764 2.353.348-.088.682-.107.984-.028 1.564.421 2.107 2.307 1.685 2.827-.104.13-.356.354-.673.617H7.77l-.008.514-.065.051h-.645l-.009.504-.17.127c-.607.011-1.373-.518-1.373-.518 0 .481.401 1.225.401 1.225l.07-.034-.061.045s1.625 1.083 2.646.681c.91-.356 3.263-2.213 5.296-3.093l6.15-1.62.811-2.1-4.688 1.235v-1.889l5.5-1.448.811-2.1-6.31 1.662V8.367zm-11.163 4l1.459-.384.02.074-.455 1.179-1.513.398zm.503 2.526l-1.512.398.489-1.266 1.459-.385.02.074zm1.971-.424l-1.513.398.49-1.266 1.459-.385.02.073Z"},Koa:{title:"Koa",hex:"33333D",path:"M0 5.587v12.757h1.19v-4.099l.46-.527 3.147 4.626h1.19L2.33 12.97l2.773-3.13h-.17L1.19 14.058v-8.47zm11.039 4.185c-1.19 0-2.177.391-2.96 1.173-.77.783-1.156 1.883-1.156 3.3 0 1.418.374 2.467 1.122 3.147.749.68 1.718 1.02 2.909 1.02 1.202 0 2.188-.39 2.96-1.173.782-.783 1.173-1.883 1.173-3.3 0-1.417-.374-2.466-1.122-3.147-.749-.68-1.724-1.02-2.926-1.02zm8.896 0c-1.043 0-2.07.232-3.079.697l.068.12c.261-.148.67-.296 1.225-.443.567-.159 1.06-.238 1.48-.238.42 0 .76.057 1.02.17.26.102.442.227.545.374.102.148.18.3.238.46.068.147.09.272.068.374.007.97 0 1.988 0 2.976a9.269 9.269 0 00-.834-.034c-.306 0-.64.017-1.003.051-1.463.091-2.41.34-2.841.749-.215.204-.346.391-.391.561-.046.17-.068.329-.068.476 0 .136.011.273.034.409.193 1.292 1.003 1.939 2.432 1.939 1.225 0 2.115-.505 2.67-1.514v.357c0 .181.131.397.392.646.283.295.81.443 1.582.443H24v-.136h-.527l-.187-.034c-.136-.012-.272-.103-.409-.273-.124-.181-.187-.436-.187-.765v-5.698c0-.363-.147-.709-.442-1.038-.498-.557-1.564-.624-2.313-.63zm-8.862.136c.862 0 1.553.329 2.075.986.522.658.783 1.673.783 3.045 0 1.36-.284 2.427-.85 3.198-.568.76-1.282 1.14-2.144 1.14-.862 0-1.554-.33-2.075-.987-.522-.658-.783-1.667-.783-3.028 0-1.372.284-2.438.85-3.198.568-.77 1.282-1.156 2.144-1.156zm9.491 4.456c.318 0 .63.012.936.034v2.058c-.034.386-.295.789-.783 1.208a2.416 2.416 0 01-1.616.613c-.907 0-1.411-.601-1.513-1.803a3.155 3.155 0 01-.02-.307c0-.499.131-.89.392-1.173.26-.284.822-.477 1.684-.579.314-.038.64-.039.92-.05z"},Hono:{title:"Hono",hex:"E36002",path:"M12.445.002a45.529 45.529 0 0 0-5.252 8.146 8.595 8.595 0 0 1-.555-.53 27.796 27.796 0 0 0-1.205-1.542 8.762 8.762 0 0 0-1.251 2.12 20.743 20.743 0 0 0-1.448 5.88 8.867 8.867 0 0 0 .338 3.468c1.312 3.48 3.794 5.593 7.445 6.337 3.055.438 5.755-.333 8.097-2.312 2.677-2.59 3.359-5.634 2.047-9.132a33.287 33.287 0 0 0-2.988-5.59A91.34 91.34 0 0 0 12.615.053a.216.216 0 0 0-.17-.051Zm-.336 3.906a50.93 50.93 0 0 1 4.794 6.552c.448.767.817 1.57 1.108 2.41.606 2.386-.044 4.354-1.951 5.904-1.845 1.298-3.87 1.683-6.072 1.156-2.376-.737-3.75-2.335-4.121-4.794a5.107 5.107 0 0 1 .242-2.266c.358-.908.79-1.774 1.3-2.601l1.446-2.121a397.33 397.33 0 0 0 3.254-4.24Z"},NestJS:{title:"NestJS",hex:"E0234E",path:"M14.131.047c-.173 0-.334.037-.483.087.316.21.49.49.576.806.007.043.019.074.025.117a.681.681 0 0 1 .013.112c.024.545-.143.614-.26.936-.18.415-.13.861.086 1.22a.74.74 0 0 0 .074.137c-.235-1.568 1.073-1.803 1.314-2.293.019-.428-.334-.713-.613-.911a1.37 1.37 0 0 0-.732-.21zM16.102.4c-.024.143-.006.106-.012.18-.006.05-.006.112-.012.161-.013.05-.025.1-.044.149-.012.05-.03.1-.05.149l-.067.142c-.02.025-.031.05-.05.075l-.037.055a2.152 2.152 0 0 1-.093.124c-.037.038-.068.081-.112.112v.006c-.037.031-.074.068-.118.1-.13.099-.278.173-.415.266-.043.03-.087.056-.124.093a.906.906 0 0 0-.118.099c-.043.037-.074.074-.111.118-.031.037-.068.08-.093.124a1.582 1.582 0 0 0-.087.13c-.025.05-.043.093-.068.142-.019.05-.037.093-.05.143a2.007 2.007 0 0 0-.043.155c-.006.025-.006.056-.012.08-.007.025-.007.05-.013.075 0 .05-.006.105-.006.155 0 .037 0 .074.006.111 0 .05.006.1.019.155.006.05.018.1.03.15.02.049.032.098.05.148.013.03.031.062.044.087l-1.426-.552c-.241-.068-.477-.13-.719-.186l-.39-.093c-.372-.074-.75-.13-1.128-.167-.013 0-.019-.006-.031-.006A11.082 11.082 0 0 0 8.9 2.855c-.378.025-.756.074-1.134.136a12.45 12.45 0 0 0-.837.174l-.279.074c-.092.037-.18.08-.266.118l-.205.093c-.012.006-.024.006-.03.012-.063.031-.118.056-.174.087a2.738 2.738 0 0 0-.236.118c-.043.018-.086.043-.124.062a.559.559 0 0 1-.055.03c-.056.032-.112.063-.162.094a1.56 1.56 0 0 0-.148.093c-.044.03-.087.055-.124.086-.006.007-.013.007-.019.013-.037.025-.08.056-.118.087l-.012.012-.093.074c-.012.007-.025.019-.037.025-.031.025-.062.056-.093.08-.006.013-.019.02-.025.025-.037.038-.074.069-.111.106-.007 0-.007.006-.013.012a1.742 1.742 0 0 0-.111.106c-.007.006-.007.012-.013.012a1.454 1.454 0 0 0-.093.1c-.012.012-.03.024-.043.036a1.374 1.374 0 0 1-.106.112c-.006.012-.018.019-.024.03-.05.05-.093.1-.143.15l-.018.018c-.1.106-.205.211-.317.304-.111.1-.229.192-.347.273a3.777 3.777 0 0 1-.762.421c-.13.056-.267.106-.403.149-.26.056-.527.161-.756.18-.05 0-.105.012-.155.018l-.155.037-.149.056c-.05.019-.099.044-.148.068-.044.031-.093.056-.137.087a1.011 1.011 0 0 0-.124.106c-.043.03-.087.074-.124.111-.037.043-.074.08-.105.124-.031.05-.068.093-.093.143a1.092 1.092 0 0 0-.087.142c-.025.056-.05.106-.068.161-.019.05-.037.106-.056.161-.012.05-.025.1-.03.15 0 .005-.007.012-.007.018-.012.056-.012.13-.019.167C.006 7.95 0 7.986 0 8.03a.657.657 0 0 0 .074.31v.006c.019.037.044.075.069.112.024.037.05.074.08.111.031.031.068.069.106.1a.906.906 0 0 0 .117.099c.149.13.186.173.378.272.031.019.062.031.1.05.006 0 .012.006.018.006 0 .013 0 .019.006.031a1.272 1.272 0 0 0 .08.298c.02.037.032.074.05.111.007.013.013.025.02.031.024.05.049.093.073.137l.093.13c.031.037.069.08.106.118.037.037.074.068.118.105 0 0 .006.006.012.006.037.031.074.062.112.087a.986.986 0 0 0 .136.08c.043.025.093.05.142.069a.73.73 0 0 0 .124.043c.007.006.013.006.025.012.025.007.056.013.08.019-.018.335-.024.65.026.762.055.124.328-.254.6-.688-.036.428-.061.93 0 1.079.069.155.44-.329.763-.862 4.395-1.016 8.405 2.02 8.826 6.31-.08-.67-.905-1.041-1.283-.948-.186.458-.502 1.047-1.01 1.413.043-.41.025-.83-.062-1.24a4.009 4.009 0 0 1-.769 1.562c-.588.043-1.177-.242-1.487-.67-.025-.018-.031-.055-.05-.08-.018-.043-.037-.087-.05-.13a.515.515 0 0 1-.037-.13c-.006-.044-.006-.087-.006-.137v-.093a.992.992 0 0 1 .031-.13c.013-.043.025-.086.044-.13.024-.043.043-.087.074-.13.105-.298.105-.54-.087-.682a.706.706 0 0 0-.118-.062c-.024-.006-.055-.018-.08-.025l-.05-.018a.847.847 0 0 0-.13-.031.472.472 0 0 0-.13-.019 1.01 1.01 0 0 0-.136-.012c-.031 0-.062.006-.093.006a.484.484 0 0 0-.137.019c-.043.006-.086.012-.13.024a1.068 1.068 0 0 0-.13.044c-.043.018-.08.037-.124.056-.037.018-.074.043-.118.062-1.444.942-.582 3.148.403 3.787-.372.068-.75.148-.855.229l-.013.012c.267.161.546.298.837.416.397.13.818.247 1.004.297v.006a5.996 5.996 0 0 0 1.562.112c2.746-.192 4.996-2.281 5.405-5.033l.037.161c.019.112.043.23.056.347v.006c.012.056.018.112.025.162v.024c.006.056.012.112.012.162.006.068.012.136.012.204v.1c0 .03.007.067.007.098 0 .038-.007.075-.007.112v.087c0 .043-.006.08-.006.124 0 .025 0 .05-.006.08 0 .044-.006.087-.006.137-.006.018-.006.037-.006.055l-.02.143c0 .019 0 .037-.005.056-.007.062-.019.118-.025.18v.012l-.037.174v.018l-.037.167c0 .007-.007.02-.007.025a1.663 1.663 0 0 1-.043.168v.018c-.019.062-.037.118-.05.174-.006.006-.006.012-.006.012l-.056.186c-.024.062-.043.118-.068.18-.025.062-.043.124-.068.18-.025.062-.05.117-.074.18h-.007c-.024.055-.05.117-.08.173a.302.302 0 0 1-.019.043c-.006.006-.006.013-.012.019a5.867 5.867 0 0 1-1.742 2.082c-.05.031-.099.069-.149.106-.012.012-.03.018-.043.03a2.603 2.603 0 0 1-.136.094l.018.037h.007l.26-.037h.006c.161-.025.322-.056.483-.087.044-.006.093-.019.137-.031l.087-.019c.043-.006.086-.018.13-.024.037-.013.074-.02.111-.031.62-.15 1.221-.354 1.798-.595a9.926 9.926 0 0 1-3.85 3.142c.714-.05 1.426-.167 2.114-.366a9.903 9.903 0 0 0 5.857-4.68 9.893 9.893 0 0 1-1.667 3.986 9.758 9.758 0 0 0 1.655-1.376 9.824 9.824 0 0 0 2.61-5.268c.21.98.272 1.99.18 2.987 4.474-6.241.371-12.712-1.346-14.416-.006-.013-.012-.019-.012-.031-.006.006-.006.006-.006.012 0-.006 0-.006-.007-.012 0 .074-.006.148-.012.223a8.34 8.34 0 0 1-.062.415c-.03.136-.068.273-.105.41-.044.13-.093.266-.15.396a5.322 5.322 0 0 1-.185.378 4.735 4.735 0 0 1-.477.688c-.093.111-.192.21-.292.31a3.994 3.994 0 0 1-.18.155l-.142.124a3.459 3.459 0 0 1-.347.241 4.295 4.295 0 0 1-.366.211c-.13.062-.26.118-.39.174a4.364 4.364 0 0 1-.818.223c-.143.025-.285.037-.422.05a4.914 4.914 0 0 1-.297.012 4.66 4.66 0 0 1-.422-.025 3.137 3.137 0 0 1-.421-.062 3.136 3.136 0 0 1-.415-.105h-.007c.137-.013.273-.025.41-.05a4.493 4.493 0 0 0 .818-.223c.136-.05.266-.112.39-.174.13-.062.248-.13.372-.204.118-.08.235-.161.347-.248.112-.087.217-.18.316-.279.105-.093.198-.198.291-.304.093-.111.18-.223.26-.334.013-.019.026-.044.038-.062.062-.1.124-.199.18-.298a4.272 4.272 0 0 0 .334-.775c.044-.13.075-.266.106-.403.025-.142.05-.278.062-.415.012-.142.025-.285.025-.421 0-.1-.007-.199-.013-.298a6.726 6.726 0 0 0-.05-.415 4.493 4.493 0 0 0-.092-.415c-.044-.13-.087-.267-.137-.397-.05-.13-.111-.26-.173-.384-.069-.124-.137-.248-.211-.366a6.843 6.843 0 0 0-.248-.34c-.093-.106-.186-.212-.285-.317a3.878 3.878 0 0 0-.161-.155c-.28-.217-.57-.421-.862-.607a1.154 1.154 0 0 0-.124-.062 2.415 2.415 0 0 0-.589-.26Z"},"Node.js":{title:"Node.js",hex:"5FA04E",path:"M11.998,24c-0.321,0-0.641-0.084-0.922-0.247l-2.936-1.737c-0.438-0.245-0.224-0.332-0.08-0.383 c0.585-0.203,0.703-0.25,1.328-0.604c0.065-0.037,0.151-0.023,0.218,0.017l2.256,1.339c0.082,0.045,0.197,0.045,0.272,0l8.795-5.076 c0.082-0.047,0.134-0.141,0.134-0.238V6.921c0-0.099-0.053-0.192-0.137-0.242l-8.791-5.072c-0.081-0.047-0.189-0.047-0.271,0 L3.075,6.68C2.99,6.729,2.936,6.825,2.936,6.921v10.15c0,0.097,0.054,0.189,0.139,0.235l2.409,1.392 c1.307,0.654,2.108-0.116,2.108-0.89V7.787c0-0.142,0.114-0.253,0.256-0.253h1.115c0.139,0,0.255,0.112,0.255,0.253v10.021 c0,1.745-0.95,2.745-2.604,2.745c-0.508,0-0.909,0-2.026-0.551L2.28,18.675c-0.57-0.329-0.922-0.945-0.922-1.604V6.921 c0-0.659,0.353-1.275,0.922-1.603l8.795-5.082c0.557-0.315,1.296-0.315,1.848,0l8.794,5.082c0.57,0.329,0.924,0.944,0.924,1.603 v10.15c0,0.659-0.354,1.273-0.924,1.604l-8.794,5.078C12.643,23.916,12.324,24,11.998,24z M19.099,13.993 c0-1.9-1.284-2.406-3.987-2.763c-2.731-0.361-3.009-0.548-3.009-1.187c0-0.528,0.235-1.233,2.258-1.233 c1.807,0,2.473,0.389,2.747,1.607c0.024,0.115,0.129,0.199,0.247,0.199h1.141c0.071,0,0.138-0.031,0.186-0.081 c0.048-0.054,0.074-0.123,0.067-0.196c-0.177-2.098-1.571-3.076-4.388-3.076c-2.508,0-4.004,1.058-4.004,2.833 c0,1.925,1.488,2.457,3.895,2.695c2.88,0.282,3.103,0.703,3.103,1.269c0,0.983-0.789,1.402-2.642,1.402 c-2.327,0-2.839-0.584-3.011-1.742c-0.02-0.124-0.126-0.215-0.253-0.215h-1.137c-0.141,0-0.254,0.112-0.254,0.253 c0,1.482,0.806,3.248,4.655,3.248C17.501,17.007,19.099,15.91,19.099,13.993z"},"React Router":{title:"React Router",hex:"CA4245",path:"M12.118 5.466a2.306 2.306 0 00-.623.08c-.278.067-.702.332-.953.583-.41.423-.49.609-.662 1.469-.08.423.41 1.43.847 1.734.45.317 1.085.502 2.065.608 1.429.16 1.84.636 1.84 2.197 0 1.377-.385 1.747-1.96 1.906-1.707.172-2.58.834-2.765 2.117-.106.781.41 1.76 1.125 2.091 1.627.768 3.15-.198 3.467-2.196.211-1.284.622-1.642 1.998-1.747 1.588-.133 2.409-.675 2.713-1.787.278-1.02-.304-2.157-1.297-2.554-.264-.106-.873-.238-1.35-.291-1.495-.16-1.879-.424-2.038-1.39-.225-1.337-.317-1.562-.794-2.09a2.174 2.174 0 00-1.613-.73zm-4.785 4.36a2.145 2.145 0 00-.497.048c-1.469.318-2.17 2.051-1.35 3.295 1.178 1.774 3.944.953 3.97-1.177.012-1.193-.98-2.143-2.123-2.166zM2.089 14.19a2.22 2.22 0 00-.427.052c-2.158.476-2.237 3.626-.106 4.182.53.145.582.145 1.111.013 1.191-.318 1.866-1.456 1.549-2.607-.278-1.02-1.144-1.664-2.127-1.64zm19.824.008c-.233.002-.477.058-.784.162-1.39.477-1.866 2.092-.98 3.336.557.794 1.96 1.058 2.82.516 1.416-.874 1.363-3.057-.093-3.746-.38-.186-.663-.271-.963-.268z"},"TanStack Query":{title:"React Query",hex:"FF4154",path:"M6.9297 13.6875c.164-.0938.375-.0352.4687.1328l.0625.1055c.4805.8515.9805 1.6601 1.5 2.4258.6133.9023 1.3047 1.8164 2.0743 2.7421a.3455.3455 0 0 1-.0391.4844l-.0742.0664c-2.543 2.2227-4.1914 2.664-4.9532 1.332-.746-1.3046-.4765-3.6718.8086-7.1093a.3437.3437 0 0 1 .1524-.1797ZM17.75 16.3008c.1836-.0313.3594.086.3945.2695l.0196.1016c.6289 3.2851.1875 4.9297-1.3243 4.9297-1.4804 0-3.3593-1.4024-5.6484-4.2032a.3271.3271 0 0 1-.0742-.2226c0-.1875.1562-.3399.3437-.3399h.1211a32.9838 32.9838 0 0 0 2.8086-.0976c1.0703-.086 2.1914-.2305 3.3594-.4375zm.871-6.9766a.3528.3528 0 0 1 .4454-.211l.1016.0352c3.2617 1.1094 4.5039 2.332 3.7187 3.6641-.7656 1.3047-2.9922 2.254-6.6836 2.8477-.082.0117-.168-.004-.2383-.047-.168-.0976-.2265-.3085-.125-.4765l.0625-.1054c.504-.8438.957-1.6836 1.3672-2.5235.4766-.9883.9297-2.0508 1.3516-3.1836zM7.797 8.3398c.082-.0117.168.004.2383.047.168.0976.2265.3085.125.4765l-.0625.1054a34.0882 34.0882 0 0 0-1.3672 2.5235c-.4766.9883-.9297 2.0508-1.3516 3.1836a.3528.3528 0 0 1-.4453.211l-.1016-.0352c-3.2617-1.1094-4.5039-2.332-3.7187-3.6641.7656-1.3047 2.9922-2.254 6.6836-2.8477Zm5.2812-3.9843c2.543-2.2227 4.1914-2.664 4.9532-1.332.746 1.3046.4765 3.6718-.8086 7.1093a.3436.3436 0 0 1-.1524.1797c-.164.0938-.375.0352-.4687-.1328l-.0625-.1055c-.4805-.8515-.9805-1.6601-1.5-2.4258-.6133-.9023-1.3047-1.8164-2.0743-2.7421a.3455.3455 0 0 1 .0391-.4844Zm-5.793-2.082c1.4805 0 3.3633 1.4023 5.6485 4.203a.3488.3488 0 0 1 .0781.2188c-.0039.1914-.1562.3438-.3476.3438l-.1172-.004a34.5835 34.5835 0 0 0-2.8086.1016c-1.0742.086-2.1953.2305-3.3633.4375a.343.343 0 0 1-.3945-.2734l-.0196-.0977c-.629-3.2851-.1876-4.9297 1.3242-4.9297Zm2.8711 5.8124h3.6875a.638.638 0 0 1 .5508.3164l1.8477 3.2188a.6437.6437 0 0 1 0 .6289l-1.8477 3.2227a.638.638 0 0 1-.5507.3164h-3.6875c-.2266 0-.4375-.1211-.547-.3164L7.7579 12.25a.6437.6437 0 0 1 0-.629l1.8516-3.2187c.1093-.1953.3203-.3164.5468-.3164Zm3.2305.793a.638.638 0 0 1 .5508.3164l1.3906 2.4258a.6437.6437 0 0 1 0 .6289l-1.3906 2.4297a.638.638 0 0 1-.5508.3164h-2.7734c-.2266 0-.4375-.1211-.5469-.3164L8.672 12.25a.6437.6437 0 0 1 0-.629l1.3945-2.4257c.1094-.1953.3203-.3164.5469-.3164Zm-.4922.8672h-1.789c-.2266 0-.4336.1172-.547.3164l-.8983 1.5586a.6437.6437 0 0 0 0 .6289l.8984 1.5625a.6317.6317 0 0 0 .5469.3164h1.789a.6317.6317 0 0 0 .547-.3164l.8983-1.5625a.6437.6437 0 0 0 0-.629l-.8984-1.5585c-.1133-.1992-.3203-.3164-.5469-.3164Zm-.4765.8281c.2265 0 .4375.1211.5468.3164l.422.7305c.1132.1953.1132.4375 0 .6289l-.422.7344c-.1093.1953-.3203.3164-.5468.3164h-.836a.6317.6317 0 0 1-.5468-.3164l-.422-.7344c-.1132-.1914-.1132-.4336 0-.629l.422-.7304a.6317.6317 0 0 1 .5468-.3164zm-.418.8164a.548.548 0 0 0-.4727.2735c-.0976.168-.0976.375 0 .5468a.5444.5444 0 0 0 .4727.2696.5444.5444 0 0 0 .4727-.2696c.0976-.1718.0976-.3789 0-.5468A.548.548 0 0 0 12 11.3906Zm-4.4219.5469h.9805M18.9805 7.75c.3906-1.8945.4765-3.3438.2226-4.3984-.1484-.629-.4218-1.1368-.8398-1.5078-.4414-.3907-1-.582-1.625-.582-1.0352 0-2.1211.4726-3.2813 1.3671-.4726.3633-.9648.8047-1.4726 1.3164-.043-.0508-.086-.1015-.1367-.1445-1.4454-1.2852-2.6602-2.082-3.6993-2.3906-.6171-.1836-1.1953-.1993-1.7226-.0235-.5586.1875-1.004.5742-1.3164 1.1172-.5156.8945-.6524 2.0742-.461 3.5274.0782.5898.2149 1.2343.4024 1.9335a1.1187 1.1187 0 0 0-.2149.047C3.008 8.621 1.711 9.2694.9258 10.0155c-.4649.4414-.7695.9375-.8828 1.4805-.1133.5781 0 1.1562.3125 1.6992.5156.8945 1.4648 1.5977 2.8164 2.1563.543.2226 1.1562.4257 1.8437.6093a1.0227 1.0227 0 0 0-.0703.2266c-.3906 1.8906-.4765 3.3438-.2226 4.3945.1484.629.4257 1.1407.8398 1.5078.4414.3907 1 .582 1.625.582 1.0352 0 2.121-.4726 3.2813-1.3632.4765-.3711.9726-.8164 1.4882-1.336a1.2 1.2 0 0 0 .1953.2266c1.4454 1.2852 2.6602 2.082 3.6993 2.3906.6172.1836 1.1953.1993 1.7226.0235.5586-.1875 1.004-.5742 1.3164-1.1172.5157-.8945.6524-2.0742.461-3.5273-.082-.6133-.2227-1.2813-.4258-2.0118a1.2248 1.2248 0 0 0 .2383-.0468c1.828-.6094 3.125-1.2578 3.9101-2.004.4649-.4413.7696-.9374.8828-1.4804.1133-.5781 0-1.1563-.3125-1.6992-.5156-.8946-1.4648-1.5977-2.8164-2.1563-.5586-.2304-1.1953-.4414-1.9062-.625a.8647.8647 0 0 0 .0586-.1953z"},Redux:{title:"Redux",hex:"764ABC",path:"M16.634 16.504c.87-.075 1.543-.84 1.5-1.754-.047-.914-.796-1.648-1.709-1.648h-.061a1.71 1.71 0 00-1.648 1.769c.03.479.226.869.494 1.153-1.048 2.038-2.621 3.536-5.005 4.795-1.603.838-3.296 1.154-4.944.93-1.378-.195-2.456-.81-3.116-1.799-.988-1.499-1.078-3.116-.255-4.734.6-1.17 1.499-2.023 2.099-2.443a9.96 9.96 0 01-.42-1.543C-.868 14.408-.416 18.752.932 20.805c1.004 1.498 3.057 2.456 5.304 2.456.6 0 1.23-.044 1.843-.194 3.897-.749 6.848-3.086 8.541-6.532zm5.348-3.746c-2.32-2.728-5.738-4.226-9.634-4.226h-.51c-.253-.554-.837-.899-1.498-.899h-.045c-.943 0-1.678.81-1.647 1.753.03.898.794 1.648 1.708 1.648h.074a1.69 1.69 0 001.499-1.049h.555c2.309 0 4.495.674 6.488 1.992 1.527 1.005 2.622 2.323 3.237 3.897.538 1.288.509 2.547-.045 3.597-.855 1.647-2.294 2.517-4.196 2.517-1.199 0-2.367-.375-2.967-.644-.36.298-.96.793-1.394 1.093 1.318.598 2.652.943 3.94.943 2.922 0 5.094-1.647 5.919-3.236.898-1.798.824-4.824-1.47-7.416zM6.49 17.042c.03.899.793 1.648 1.708 1.648h.06a1.688 1.688 0 001.648-1.768c0-.9-.779-1.647-1.693-1.647h-.06c-.06 0-.15 0-.226.029-1.243-2.098-1.768-4.347-1.572-6.772.12-1.828.72-3.417 1.797-4.735.9-1.124 2.593-1.68 3.747-1.708 3.236-.061 4.585 3.971 4.689 5.574l1.498.45C17.741 3.197 14.686.62 11.764.62 9.02.62 6.49 2.613 5.47 5.535 4.077 9.43 4.991 13.177 6.7 16.174c-.15.195-.24.539-.21.868z"},Axios:{title:"Axios",hex:"5A29E4",path:"M11.0683 2.89968V22.2973l-2.11399 1.70265V7.8638H4.975l6.0933-4.96412zM14.93426 0v15.76724H19.025l-6.20044 5.08865V1.4689L14.93426 0z"},Zod:{title:"Zod",hex:"408AFF",path:"M2.584 3.582a2.247 2.247 0 0 1 2.112-1.479h14.617c.948 0 1.794.595 2.115 1.487l2.44 6.777a2.248 2.248 0 0 1-.624 2.443l-9.61 8.52a2.247 2.247 0 0 1-2.963.018L.776 12.773a2.248 2.248 0 0 1-.64-2.467Zm12.038 4.887-9.11 5.537 5.74 5.007c.456.399 1.139.396 1.593-.006l5.643-5.001H14.4l6.239-3.957c.488-.328.69-.947.491-1.5l-1.24-3.446a1.535 1.535 0 0 0-1.456-1.015H5.545a1.535 1.535 0 0 0-1.431 1.01l-1.228 3.37z"},"Lucide icons":{title:"Lucide",hex:"F56565",path:"M18.483 1.123a1.09 1.09 0 0 0-.752.362 1.09 1.09 0 0 0 .088 1.54 11.956 11.956 0 0 1 4 8.946 7.62 7.62 0 0 1-7.637 7.636 7.62 7.62 0 0 1-7.637-7.636 3.255 3.255 0 0 1 3.273-3.273c1.82 0 3.273 1.45 3.273 3.273a1.09 1.09 0 0 0 1.09 1.09 1.09 1.09 0 0 0 1.092-1.09c0-3-2.455-5.455-5.455-5.455s-5.454 2.455-5.454 5.455c0 5.408 4.408 9.818 9.818 9.818 5.41 0 9.818-4.41 9.818-9.818A14.16 14.16 0 0 0 19.272 1.4a1.09 1.09 0 0 0-.789-.277ZM9.818 2.15C4.408 2.151 0 6.561 0 11.97a14.16 14.16 0 0 0 4.8 10.637 1.09 1.09 0 0 0 1.54-.096 1.09 1.09 0 0 0-.095-1.54 11.957 11.957 0 0 1-4.063-9 7.62 7.62 0 0 1 7.636-7.637 7.62 7.62 0 0 1 7.637 7.636 3.256 3.256 0 0 1-3.273 3.273 3.256 3.256 0 0 1-3.273-3.273 1.09 1.09 0 0 0-1.09-1.09 1.09 1.09 0 0 0-1.092 1.09c0 3 2.455 5.455 5.455 5.455s5.454-2.455 5.454-5.455c0-5.408-4.408-9.818-9.818-9.818z"},Stripe:{title:"Stripe",hex:"635BFF",path:"M13.976 9.15c-2.172-.806-3.356-1.426-3.356-2.409 0-.831.683-1.305 1.901-1.305 2.227 0 4.515.858 6.09 1.631l.89-5.494C18.252.975 15.697 0 12.165 0 9.667 0 7.589.654 6.104 1.872 4.56 3.147 3.757 4.992 3.757 7.218c0 4.039 2.467 5.76 6.476 7.219 2.585.92 3.445 1.574 3.445 2.583 0 .98-.84 1.545-2.354 1.545-1.875 0-4.965-.921-6.99-2.109l-.9 5.555C5.175 22.99 8.385 24 11.714 24c2.641 0 4.843-.624 6.328-1.813 1.664-1.305 2.525-3.236 2.525-5.732 0-4.128-2.524-5.851-6.594-7.305h.003z"},"Anthropic SDK":{title:"Anthropic",hex:"191919",path:"M17.3041 3.541h-3.6718l6.696 16.918H24Zm-10.6082 0L0 20.459h3.7442l1.3693-3.5527h7.0052l1.3693 3.5528h3.7442L10.5363 3.5409Zm-.3712 10.2232 2.2914-5.9456 2.2914 5.9456Z"},"Drizzle ORM":{title:"Drizzle",hex:"C5F74F",path:"M5.353 11.823a1.036 1.036 0 0 0-.395-1.422 1.063 1.063 0 0 0-1.437.399L.138 16.702a1.035 1.035 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.398l3.383-5.903Zm11.216 0a1.036 1.036 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.399l-3.382 5.902a1.036 1.036 0 0 0 .394 1.422c.506.283 1.15.104 1.438-.398l3.382-5.903Zm7.293-4.525a1.036 1.036 0 0 0-.395-1.422 1.062 1.062 0 0 0-1.437.399l-3.383 5.902a1.036 1.036 0 0 0 .395 1.422 1.063 1.063 0 0 0 1.437-.399l3.383-5.902Zm-11.219 0a1.035 1.035 0 0 0-.394-1.422 1.064 1.064 0 0 0-1.438.398l-3.382 5.903a1.036 1.036 0 0 0 .394 1.422c.506.282 1.15.104 1.438-.399l3.382-5.902Z"},TypeORM:{title:"TypeORM",hex:"FE0803",path:"M22.593 6.863c0 .9-.008 1.742.004 2.583.006.355.07.708.21 1.038.133.306.35.544.652.692.153.075.314.131.47.204a.134.13 0 0 1 .066.099q.008.58 0 1.16c0 .039-.052.097-.093.11a1.818 1.82 0 0 0-1.178 1.22c-.125.387-.137.785-.137 1.187q.002 2.24-.006 4.48c0 .466-.07.926-.225 1.363-.087.241-.226.463-.347.69-.016.031-.05.052-.08.073-.185.137-.365.287-.56.407-.169.103-.354.177-.535.255-.114.048-.236.082-.352.121q-.025.01-.05.014c-.23.028-.46.062-.689.083q-.418.033-.834.052c-.061.003-.123-.02-.183-.026-.104-.01-.13-.07-.128-.168a31.962 32 0 0 0 0-1.017c0-.104.027-.15.139-.141.117.007.24.012.354-.004q.332-.047.655-.125a2.996 3 0 0 0 .44-.153.94.94 0 0 0 .456-.409c.125-.208.185-.437.236-.676.057-.263.036-.52.04-.78.007-1.485 0-2.97.008-4.456q.003-.47.078-.935a2.148 2.15 0 0 1 1.09-1.585l.25-.143c.061-.037.054-.107-.016-.144a2.797 2.8 0 0 1-.815-.646 2.097 2.1 0 0 1-.39-.711c-.18-.551-.205-1.12-.202-1.694.002-1.446-.01-2.892 0-4.337a2.996 3 0 0 0-.072-.666c-.08-.37-.24-.712-.59-.909a2.298 2.3 0 0 0-.467-.177 2.996 3 0 0 0-.503-.11 3.995 4 0 0 0-.54-.025c-.113.001-.153-.03-.15-.147.006-.364.003-.728.001-1.092 0-.089.03-.122.117-.119.196.005.39-.007.584.004.272.016.545.035.815.073a3.096 3.1 0 0 1 1.598.714c.252.215.408.479.534.772.15.346.226.71.275 1.082.13.99.03 1.986.072 2.918ZM1.421 6.715c0-.581-.006-1.163.002-1.745.006-.382.009-.77.049-1.149.027-.263.11-.52.18-.778a1.798 1.8 0 0 1 .366-.723 2.466 2.4 0 0 1 .508-.449c.194-.127.416-.208.629-.305.17-.076.348-.108.53-.141A8.29 8.3 0 0 1 5.258 1.3c.09 0 .122.027.12.117q-.004.558 0 1.118c0 .091-.028.126-.123.122a1.598 1.6 0 0 0-.321.003 7.99 8 0 0 0-.704.127c-.15.035-.291.094-.434.148a.94.94 0 0 0-.46.406c-.123.208-.183.44-.238.68-.067.3.008.588.002.882-.02 1.329-.006 2.658-.01 3.99a9.988 10 0 0 1-.051 1.098c-.08.724-.385 1.328-1.024 1.727q-.173.103-.345.209c-.023.014-.051.049-.047.068a.14.14 0 0 0 .058.084 2.897 2.9 0 0 1 .843.678c.19.23.311.494.4.78.15.496.159 1.006.164 1.516.008 1.298.002 2.597.003 3.896 0 .144.015.288.013.431 0 .072-.025.143-.027.215q-.004.126.005.253c.003.052.02.104.029.156.043.301.137.583.336.817.131.153.303.252.494.321.201.072.41.1.616.149.246.058.485.044.73.054.065.003.09.03.09.093 0 .392.002.784-.005 1.176 0 .029-.053.081-.082.081-.252.005-.503.01-.754-.002a4.994 5 0 0 1-.678-.069c-.234-.044-.46-.122-.69-.186a2.148 2.15 0 0 1-.955-.572 1.898 1.9 0 0 1-.376-.54 4.195 4.2 0 0 1-.292-.87 4.994 5 0 0 1-.103-.964c-.015-1.423-.013-2.846-.023-4.268-.002-.322-.004-.645-.039-.964-.04-.36-.12-.712-.342-1.013a1.498 1.5 0 0 0-.624-.487c-.11-.048-.226-.083-.334-.137-.037-.02-.077-.075-.077-.115q-.006-.56-.003-1.118c0-.1.088-.118.155-.141.372-.13.676-.348.891-.684a2.048 2.05 0 0 0 .344-1.087c.022-.92.03-1.841.044-2.76h-.016Zm6.035.98v-3.11c0-.295.175-.472.472-.472h5.152c.296 0 .473.177.473.472v6.2c0 .32-.17.49-.488.49-1.708 0-3.412-.002-5.12.004-.287 0-.494-.197-.49-.493.006-1.03.002-2.06.002-3.091m.245.002v3.091c0 .208.035.242.24.242h5.119c.214 0 .246-.03.246-.244V4.603c0-.213-.033-.245-.244-.245H7.945c-.21 0-.242.033-.242.247zm-.245 8.39v-3.1c0-.298.173-.474.471-.474h5.152c.3 0 .473.177.473.48v6.184q0 .499-.496.499h-5.11c-.32 0-.488-.17-.488-.489zm.245.006v3.109c0 .189.039.228.227.228h5.142c.202 0 .236-.035.236-.239v-6.197c0-.197-.038-.234-.233-.234H7.941c-.205 0-.24.035-.24.243zm8.741-4.058q-.002 2.09.002 4.184c0 .11-.03.143-.14.142a96.883 97 0 0 0-1.752 0c-.104 0-.12-.04-.12-.13 0-.093.03-.12.12-.12.5.004 1 0 1.499.004.108 0 .148-.031.148-.145q-.003-3.934 0-7.868c0-.112-.036-.147-.147-.146-.5.005-.999 0-1.498.004-.1 0-.123-.034-.123-.128 0-.09.024-.122.119-.121q.888.005 1.776 0c.096 0 .117.033.117.122q-.002 2.101 0 4.202m-5.9-6.336q-1.024 0-2.047-.002c-.04 0-.109-.01-.113-.028-.012-.061-.004-.127 0-.191 0-.01.031-.02.052-.023q.04-.004.082-.002h4.046c.133 0 .194.088.137.208-.01.024-.066.036-.1.036q-.846.002-1.691.001zm.273 1.413c-.585 0-1.17-.004-1.758.003-.13 0-.118-.068-.123-.153-.007-.102.055-.097.123-.097h3.526c.068 0 .13-.004.123.097-.005.086.006.154-.123.153-.59-.008-1.178-.003-1.766-.003Zm.005 1.307c.59 0 1.178.002 1.767-.002.103 0 .118.041.12.13 0 .093-.03.12-.12.12a737.113 738 0 0 0-3.536 0c-.092 0-.121-.029-.12-.121 0-.09.02-.13.121-.13q.886.005 1.768.003m-.009 1.797c-.585 0-1.173-.002-1.759.002-.093 0-.12-.03-.12-.122 0-.093.023-.128.123-.126q1.764.006 3.528 0c.098 0 .123.03.123.125.002.1-.03.124-.127.123q-.884-.003-1.768-.002M8.564 8.664H8.53c-.16 0-.202-.034-.147-.187.045-.129.185-.035.28-.055.027-.004.087.033.092.06.03.172.017.181-.19.181Zm.003-1.799h.034c.166 0 .206.031.148.19-.047.13-.187.034-.284.052-.023.006-.08-.038-.084-.064-.024-.177-.02-.177.185-.177Zm.002 3.351h-.051q-.206.001-.138-.2c.006-.02.038-.04.06-.042.06-.006.118-.002.176-.002.133 0 .19.086.135.208-.006.018-.041.03-.066.034-.038.006-.078.002-.117.002Zm1.973 3.638q1.025.001 2.047-.002c.092 0 .12.027.12.12 0 .09-.017.13-.119.128a878.942 880 0 0 0-4.093 0c-.096 0-.126-.027-.126-.124s.03-.125.125-.125q1.025.004 2.046.003m.272 1.658c-.585 0-1.171-.004-1.758.003-.134 0-.113-.076-.119-.156-.007-.097.051-.094.12-.094h3.533c.075 0 .126.005.12.103-.007.081.006.15-.12.148-.592-.006-1.184-.002-1.776-.002Zm0 1.551q-.88-.002-1.758.002c-.1 0-.12-.037-.121-.129 0-.091.029-.12.12-.12q1.768.004 3.535 0c.09 0 .121.027.12.12 0 .089-.016.13-.12.128q-.887-.004-1.775-.002Zm.009 1.309q.883.002 1.767-.002c.096 0 .12.033.12.122-.002.086-.015.127-.116.126a742.107 743 0 0 0-3.545 0c-.092 0-.116-.033-.113-.118.001-.08.005-.131.11-.13q.889.004 1.778.002m-2.257-3.108h.025c.177 0 .2.013.157.185-.033.13-.161.042-.246.06-.043.008-.117.033-.127-.06-.02-.179-.016-.184.192-.184Zm-.003 1.554h.046c.14 0 .19.07.141.204-.006.019-.039.036-.062.038-.062.005-.124-.003-.187.003-.1.012-.132-.026-.133-.13-.003-.187.133-.087.195-.115m.002 1.798h-.051c-.135 0-.184-.067-.136-.202.006-.018.038-.038.062-.04.054-.006.11-.002.165-.002.145 0 .192.062.146.2-.006.02-.038.038-.06.042-.042.005-.085.001-.125.001Z"},Sequelize:{title:"Sequelize",hex:"52B0E7",path:"M12.0264 0 1.5947 5.9922v12.0156L12.0264 24l10.3789-5.9922V5.9922L12.0264 0zm-.0274 3.4844 7.4297 4.2266v8.5781l-7.4297 4.2266-7.3476-4.1817-.0801-8.623 7.4277-4.2266zm.0489.5898c-.9765.5627-1.9519 1.1274-2.9277 1.6914v.2539l2.6074 1.5234v.4824c.1355-.0781.2616-.1511.4023-.2324l.2559.1504v-.3359c.8844-.5068 1.8073-1.0412 2.5684-1.4805.0035-.1232.0027-.2534.0039-.373-.9703-.5596-1.9403-1.1197-2.9102-1.6797zM8.335 6.1387c-.9705.553-1.9312 1.1228-2.8926 1.6914v3.4023c.965.5553 1.9287 1.1127 2.8926 1.6699l.4023-.2324v-2.916c.8561-.4945 1.7522-1.0126 2.4902-1.4395v-.4843L8.335 6.1387zm7.4433.0879-2.8926 1.6699v.3379l2.6367 1.541v3.0664c.0854.0494.1705.0991.2559.1484l2.8926-1.6699V7.918l-2.8926-1.6914zm-3.6484 2.1445c-.9636.5584-1.9281 1.1151-2.8926 1.6719v3.4238c.965.5553 1.9287 1.1127 2.8926 1.6699l2.8926-1.6719v-3.4023l-2.8926-1.6914zm-6.1973 3.7227c-.1627.0962-.3275.1889-.4902.2852v3.4023c.9643.5571 1.9284 1.1145 2.8926 1.6719l.4023-.2324v-2.918c.1625-.0939.3086-.1787.4727-.2734-.1629-.0945-.3047-.1763-.4727-.2734v-.508l-.4023.2325c-.8251-.4771-1.6902-.976-2.4024-1.3867zm12.2481.0859-2.4023 1.3887c-.088-.0509-.1672-.0972-.2559-.1484v.334l-.4922.2852.4922.2871v3.0664c.0854.0494.1705.0991.2559.1484l2.8926-1.6719v-3.4023l-.4903-.2872zm-8.4688 2.1387c-.1581.0913-.3165.1821-.4746.2734v3.4238c.9637.5575 1.9282 1.1136 2.8926 1.6699l2.8926-1.6699v-3.4023l-.4902-.2871-2.4023 1.3887c-.8307-.4804-1.7013-.9829-2.4181-1.3965z"},"Mongoose (MongoDB)":{title:"Mongoose",hex:"880000",path:"M14.014 7.37a9.162 9.162 0 0 0-.808.025c-.218.017-.434.072-.65.11.229.118.456.213.68.315.225.103.436.232.629.387-.253-.097-.499-.208-.752-.298a8.046 8.046 0 0 0-1.624-.421c-.273-.037-.546-.073-.819.005-.276.078-.354.18-.38.458-.04.46.098.887.281 1.298a4.432 4.432 0 0 0 1.185 1.573c.391.335.825.598 1.305.787.136.053.274.103.411.155l-.009.032c-.263-.072-.532-.126-.787-.22a4.14 4.14 0 0 1-1.222-.73 4.16 4.16 0 0 1-1.007-1.22 3.43 3.43 0 0 1-.43-1.609l-.012.005C4.891 7.488.402 11.595.035 11.94l-.034.014c-.002.005 0 .01.003.016L0 11.974l.005-.002c.004.008.01.016.013.024.087-.019.173-.042.26-.054l.069-.01c.324-.115.655-.205.997-.253.484-.069.985-.159 1.48-.156.468.002.943.074 1.402.153.129.022.255.052.38.087.335.075.65.21.933.391l.06.03c.403.19.758.47 1.038.811.052.057.141.116.187.178.096.114.142.236.303.363v-1.737h2.01l.939 1.733.942-1.733h2.07v3.357l.343-.226s.375-1 2.116-1.14l1.996-.064c-.308-.637-.307-.637-.159-.83.147-.19 1.28-.314 1.48-.433l2.912-.588c.007-.022.015.012.03.007.072-.022.147-.037.25-.061l.66-.16c.042-.025.093-.034.14-.05.308-.107.577-.245.726-.573.145-.319.339-.616.41-.967.022-.111.003-.208-.078-.288-.097-.096-.222-.138-.35-.171-.421-.173-.84-.35-1.264-.513-.261-.101-.529-.185-.795-.27a30.574 30.574 0 0 0-.794-.243c-.244-.072-.49-.138-.736-.205-.24-.066-.48-.133-.72-.192-.282-.07-.565-.13-.847-.195-.215-.05-.428-.102-.644-.146-.234-.047-.47-.089-.706-.13-.302-.053-.602-.112-.905-.153-.366-.05-.734-.082-1.101-.125-.345-.04-.691-.065-1.038-.07zm-3.303.767a.154.154 0 0 1 .056.007c.42.13.83.277 1.216.491.365.203.695.45.979.756.012.013.02.028.036.05l-.645-.293-.021.026.37.551-.022.022a1.986 1.986 0 0 0-.665-.322l-.02.02.633.74-.416-.136-.017.02c.163.27.376.505.58.775-.354-.2-.665-.42-.956-.669a4.488 4.488 0 0 1-1.01-1.185c-.107-.19-.201-.385-.222-.606a.468.468 0 0 1 .011-.15.123.123 0 0 1 .113-.097zm5.424.668c.154.002.311-.006.464.015.278.037.555.092.832.14.158.027.317.052.474.086.297.064.594.133.89.2.196.046.392.092.587.14l-.329.161c-.365.027-.731.055-1.097.057a3.268 3.268 0 0 1-.675-.074c-.28-.058-.514-.196-.652-.466-.02-.04-.09-.063-.14-.078-.18-.054-.362-.1-.544-.168.063-.005.126-.014.19-.013zm3.223 2.635.005.02c-.08.022-.16.042-.239.067-.455.14-.916.266-1.363.428-.28.101-.544.25-.81.388-.233.119-.315.322-.287.575.019.162.04.324.055.488a1.786 1.786 0 0 1-.288-.701c-.035-.169.058-.273.18-.365.238-.178.496-.318.777-.41.35-.117.702-.233 1.059-.325.251-.065.513-.09.77-.133.048-.008.094-.021.141-.032zM9.141 13.955v2.676h1.869l.064-.066v-2.61l-.97 1.495z"},MongoDB:{title:"MongoDB",hex:"47A248",path:"M17.193 9.555c-1.264-5.58-4.252-7.414-4.573-8.115-.28-.394-.53-.954-.735-1.44-.036.495-.055.685-.523 1.184-.723.566-4.438 3.682-4.74 10.02-.282 5.912 4.27 9.435 4.888 9.884l.07.05A73.49 73.49 0 0111.91 24h.481c.114-1.032.284-2.056.51-3.07.417-.296.604-.463.85-.693a11.342 11.342 0 003.639-8.464c.01-.814-.103-1.662-.197-2.218zm-5.336 8.195s0-8.291.275-8.29c.213 0 .49 10.695.49 10.695-.381-.045-.765-1.76-.765-2.405z"},PostgreSQL:{title:"PostgreSQL",hex:"4169E1",path:"M23.5594 14.7228a.5269.5269 0 0 0-.0563-.1191c-.139-.2632-.4768-.3418-1.0074-.2321-1.6533.3411-2.2935.1312-2.5256-.0191 1.342-2.0482 2.445-4.522 3.0411-6.8297.2714-1.0507.7982-3.5237.1222-4.7316a1.5641 1.5641 0 0 0-.1509-.235C21.6931.9086 19.8007.0248 17.5099.0005c-1.4947-.0158-2.7705.3461-3.1161.4794a9.449 9.449 0 0 0-.5159-.0816 8.044 8.044 0 0 0-1.3114-.1278c-1.1822-.0184-2.2038.2642-3.0498.8406-.8573-.3211-4.7888-1.645-7.2219.0788C.9359 2.1526.3086 3.8733.4302 6.3043c.0409.818.5069 3.334 1.2423 5.7436.4598 1.5065.9387 2.7019 1.4334 3.582.553.9942 1.1259 1.5933 1.7143 1.7895.4474.1491 1.1327.1441 1.8581-.7279.8012-.9635 1.5903-1.8258 1.9446-2.2069.4351.2355.9064.3625 1.39.3772a.0569.0569 0 0 0 .0004.0041 11.0312 11.0312 0 0 0-.2472.3054c-.3389.4302-.4094.5197-1.5002.7443-.3102.064-1.1344.2339-1.1464.8115-.0025.1224.0329.2309.0919.3268.2269.4231.9216.6097 1.015.6331 1.3345.3335 2.5044.092 3.3714-.6787-.017 2.231.0775 4.4174.3454 5.0874.2212.5529.7618 1.9045 2.4692 1.9043.2505 0 .5263-.0291.8296-.0941 1.7819-.3821 2.5557-1.1696 2.855-2.9059.1503-.8707.4016-2.8753.5388-4.1012.0169-.0703.0357-.1207.057-.1362.0007-.0005.0697-.0471.4272.0307a.3673.3673 0 0 0 .0443.0068l.2539.0223.0149.001c.8468.0384 1.9114-.1426 2.5312-.4308.6438-.2988 1.8057-1.0323 1.5951-1.6698zM2.371 11.8765c-.7435-2.4358-1.1779-4.8851-1.2123-5.5719-.1086-2.1714.4171-3.6829 1.5623-4.4927 1.8367-1.2986 4.8398-.5408 6.108-.13-.0032.0032-.0066.0061-.0098.0094-2.0238 2.044-1.9758 5.536-1.9708 5.7495-.0002.0823.0066.1989.0162.3593.0348.5873.0996 1.6804-.0735 2.9184-.1609 1.1504.1937 2.2764.9728 3.0892.0806.0841.1648.1631.2518.2374-.3468.3714-1.1004 1.1926-1.9025 2.1576-.5677.6825-.9597.5517-1.0886.5087-.3919-.1307-.813-.5871-1.2381-1.3223-.4796-.839-.9635-2.0317-1.4155-3.5126zm6.0072 5.0871c-.1711-.0428-.3271-.1132-.4322-.1772.0889-.0394.2374-.0902.4833-.1409 1.2833-.2641 1.4815-.4506 1.9143-1.0002.0992-.126.2116-.2687.3673-.4426a.3549.3549 0 0 0 .0737-.1298c.1708-.1513.2724-.1099.4369-.0417.156.0646.3078.26.3695.4752.0291.1016.0619.2945-.0452.4444-.9043 1.2658-2.2216 1.2494-3.1676 1.0128zm2.094-3.988-.0525.141c-.133.3566-.2567.6881-.3334 1.003-.6674-.0021-1.3168-.2872-1.8105-.8024-.6279-.6551-.9131-1.5664-.7825-2.5004.1828-1.3079.1153-2.4468.079-3.0586-.005-.0857-.0095-.1607-.0122-.2199.2957-.2621 1.6659-.9962 2.6429-.7724.4459.1022.7176.4057.8305.928.5846 2.7038.0774 3.8307-.3302 4.7363-.084.1866-.1633.3629-.2311.5454zm7.3637 4.5725c-.0169.1768-.0358.376-.0618.5959l-.146.4383a.3547.3547 0 0 0-.0182.1077c-.0059.4747-.054.6489-.115.8693-.0634.2292-.1353.4891-.1794 1.0575-.11 1.4143-.8782 2.2267-2.4172 2.5565-1.5155.3251-1.7843-.4968-2.0212-1.2217a6.5824 6.5824 0 0 0-.0769-.2266c-.2154-.5858-.1911-1.4119-.1574-2.5551.0165-.5612-.0249-1.9013-.3302-2.6462.0044-.2932.0106-.5909.019-.8918a.3529.3529 0 0 0-.0153-.1126 1.4927 1.4927 0 0 0-.0439-.208c-.1226-.4283-.4213-.7866-.7797-.9351-.1424-.059-.4038-.1672-.7178-.0869.067-.276.1831-.5875.309-.9249l.0529-.142c.0595-.16.134-.3257.213-.5012.4265-.9476 1.0106-2.2453.3766-5.1772-.2374-1.0981-1.0304-1.6343-2.2324-1.5098-.7207.0746-1.3799.3654-1.7088.5321a5.6716 5.6716 0 0 0-.1958.1041c.0918-1.1064.4386-3.1741 1.7357-4.4823a4.0306 4.0306 0 0 1 .3033-.276.3532.3532 0 0 0 .1447-.0644c.7524-.5706 1.6945-.8506 2.802-.8325.4091.0067.8017.0339 1.1742.081 1.939.3544 3.2439 1.4468 4.0359 2.3827.8143.9623 1.2552 1.9315 1.4312 2.4543-1.3232-.1346-2.2234.1268-2.6797.779-.9926 1.4189.543 4.1729 1.2811 5.4964.1353.2426.2522.4522.2889.5413.2403.5825.5515.9713.7787 1.2552.0696.087.1372.1714.1885.245-.4008.1155-1.1208.3825-1.0552 1.717-.0123.1563-.0423.4469-.0834.8148-.0461.2077-.0702.4603-.0994.7662zm.8905-1.6211c-.0405-.8316.2691-.9185.5967-1.0105a2.8566 2.8566 0 0 0 .135-.0406 1.202 1.202 0 0 0 .1342.103c.5703.3765 1.5823.4213 3.0068.1344-.2016.1769-.5189.3994-.9533.6011-.4098.1903-1.0957.333-1.7473.3636-.7197.0336-1.0859-.0807-1.1721-.151zm.5695-9.2712c-.0059.3508-.0542.6692-.1054 1.0017-.055.3576-.112.7274-.1264 1.1762-.0142.4368.0404.8909.0932 1.3301.1066.887.216 1.8003-.2075 2.7014a3.5272 3.5272 0 0 1-.1876-.3856c-.0527-.1276-.1669-.3326-.3251-.6162-.6156-1.1041-2.0574-3.6896-1.3193-4.7446.3795-.5427 1.3408-.5661 2.1781-.463zm.2284 7.0137a12.3762 12.3762 0 0 0-.0853-.1074l-.0355-.0444c.7262-1.1995.5842-2.3862.4578-3.4385-.0519-.4318-.1009-.8396-.0885-1.2226.0129-.4061.0666-.7543.1185-1.0911.0639-.415.1288-.8443.1109-1.3505.0134-.0531.0188-.1158.0118-.1902-.0457-.4855-.5999-1.938-1.7294-3.253-.6076-.7073-1.4896-1.4972-2.6889-2.0395.5251-.1066 1.2328-.2035 2.0244-.1859 2.0515.0456 3.6746.8135 4.8242 2.2824a.908.908 0 0 1 .0667.1002c.7231 1.3556-.2762 6.2751-2.9867 10.5405zm-8.8166-6.1162c-.025.1794-.3089.4225-.6211.4225a.5821.5821 0 0 1-.0809-.0056c-.1873-.026-.3765-.144-.5059-.3156-.0458-.0605-.1203-.178-.1055-.2844.0055-.0401.0261-.0985.0925-.1488.1182-.0894.3518-.1226.6096-.0867.3163.0441.6426.1938.6113.4186zm7.9305-.4114c.0111.0792-.049.201-.1531.3102-.0683.0717-.212.1961-.4079.2232a.5456.5456 0 0 1-.075.0052c-.2935 0-.5414-.2344-.5607-.3717-.024-.1765.2641-.3106.5611-.352.297-.0414.6111.0088.6356.1851z"},MySQL:{title:"MySQL",hex:"4479A1",path:"M16.405 5.501c-.115 0-.193.014-.274.033v.013h.014c.054.104.146.18.214.273.054.107.1.214.154.32l.014-.015c.094-.066.14-.172.14-.333-.04-.047-.046-.094-.08-.14-.04-.067-.126-.1-.18-.153zM5.77 18.695h-.927a50.854 50.854 0 00-.27-4.41h-.008l-1.41 4.41H2.45l-1.4-4.41h-.01a72.892 72.892 0 00-.195 4.41H0c.055-1.966.192-3.81.41-5.53h1.15l1.335 4.064h.008l1.347-4.064h1.095c.242 2.015.384 3.86.428 5.53zm4.017-4.08c-.378 2.045-.876 3.533-1.492 4.46-.482.716-1.01 1.073-1.583 1.073-.153 0-.34-.046-.566-.138v-.494c.11.017.24.026.386.026.268 0 .483-.075.647-.222.197-.18.295-.382.295-.605 0-.155-.077-.47-.23-.944L6.23 14.615h.91l.727 2.36c.164.536.233.91.205 1.123.4-1.064.678-2.227.835-3.483zm12.325 4.08h-2.63v-5.53h.885v4.85h1.745zm-3.32.135l-1.016-.5c.09-.076.177-.158.255-.25.433-.506.648-1.258.648-2.253 0-1.83-.718-2.746-2.155-2.746-.704 0-1.254.232-1.65.697-.43.508-.646 1.256-.646 2.245 0 .972.19 1.686.574 2.14.35.41.877.615 1.583.615.264 0 .506-.033.725-.098l1.325.772.36-.622zM15.5 17.588c-.225-.36-.337-.94-.337-1.736 0-1.393.424-2.09 1.27-2.09.443 0 .77.167.977.5.224.362.336.936.336 1.723 0 1.404-.424 2.108-1.27 2.108-.445 0-.77-.167-.978-.5zm-1.658-.425c0 .47-.172.856-.516 1.156-.344.3-.803.45-1.384.45-.543 0-1.064-.172-1.573-.515l.237-.476c.438.22.833.328 1.19.328.332 0 .593-.073.783-.22a.754.754 0 00.3-.615c0-.33-.23-.61-.648-.845-.388-.213-1.163-.657-1.163-.657-.422-.307-.632-.636-.632-1.177 0-.45.157-.81.47-1.085.315-.278.72-.415 1.22-.415.512 0 .98.136 1.4.41l-.213.476a2.726 2.726 0 00-1.064-.23c-.283 0-.502.068-.654.206a.685.685 0 00-.248.524c0 .328.234.61.666.85.393.215 1.187.67 1.187.67.433.305.648.63.648 1.168zm9.382-5.852c-.535-.014-.95.04-1.297.188-.1.04-.26.04-.274.167.055.053.063.14.11.214.08.134.218.313.346.407.14.11.28.216.427.31.26.16.555.255.81.416.145.094.293.213.44.313.073.05.12.14.214.172v-.02c-.046-.06-.06-.147-.105-.214-.067-.067-.134-.127-.2-.193a3.223 3.223 0 00-.695-.675c-.214-.146-.682-.35-.77-.595l-.013-.014c.146-.013.32-.066.46-.106.227-.06.435-.047.67-.106.106-.027.213-.06.32-.094v-.06c-.12-.12-.21-.283-.334-.395a8.867 8.867 0 00-1.104-.823c-.21-.134-.476-.22-.697-.334-.08-.04-.214-.06-.26-.127-.12-.146-.19-.34-.275-.514a17.69 17.69 0 01-.547-1.163c-.12-.262-.193-.523-.34-.763-.69-1.137-1.437-1.826-2.586-2.5-.247-.14-.543-.2-.856-.274-.167-.008-.334-.02-.5-.027-.11-.047-.216-.174-.31-.235-.38-.24-1.364-.76-1.644-.072-.18.434.267.862.422 1.082.115.153.26.328.34.5.047.116.06.235.107.356.106.294.207.622.347.897.073.14.153.287.247.413.054.073.146.107.167.227-.094.136-.1.334-.154.5-.24.757-.146 1.693.194 2.25.107.166.362.534.703.393.3-.12.234-.5.32-.835.02-.08.007-.133.048-.187v.015c.094.188.188.367.274.555.206.328.566.668.867.895.16.12.287.328.487.402v-.02h-.015c-.043-.058-.1-.086-.154-.133a3.445 3.445 0 01-.35-.4 8.76 8.76 0 01-.747-1.218c-.11-.21-.202-.436-.29-.643-.04-.08-.04-.2-.107-.24-.1.146-.247.273-.32.453-.127.288-.14.642-.188 1.01-.027.007-.014 0-.027.014-.214-.052-.287-.274-.367-.46-.2-.475-.233-1.238-.06-1.785.047-.14.247-.582.167-.716-.042-.127-.174-.2-.247-.303a2.478 2.478 0 01-.24-.427c-.16-.374-.24-.788-.414-1.162-.08-.173-.22-.354-.334-.513-.127-.18-.267-.307-.368-.52-.033-.073-.08-.194-.027-.274.014-.054.042-.075.094-.09.088-.072.335.022.422.062.247.1.455.194.662.334.094.066.195.193.315.226h.14c.214.047.455.014.655.073.355.114.675.28.962.46a5.953 5.953 0 012.085 2.286c.08.154.115.295.188.455.14.33.313.663.455.982.14.315.275.636.476.897.1.14.502.213.682.286.133.06.34.115.46.188.23.14.454.3.67.454.11.076.443.243.463.378z"},SQLite:{title:"SQLite",hex:"003B57",path:"M21.678.521c-1.032-.92-2.28-.55-3.513.544a8.71 8.71 0 0 0-.547.535c-2.109 2.237-4.066 6.38-4.674 9.544.237.48.422 1.093.544 1.561a13.044 13.044 0 0 1 .164.703s-.019-.071-.096-.296l-.05-.146a1.689 1.689 0 0 0-.033-.08c-.138-.32-.518-.995-.686-1.289-.143.423-.27.818-.376 1.176.484.884.778 2.4.778 2.4s-.025-.099-.147-.442c-.107-.303-.644-1.244-.772-1.464-.217.804-.304 1.346-.226 1.478.152.256.296.698.422 1.186.286 1.1.485 2.44.485 2.44l.017.224a22.41 22.41 0 0 0 .056 2.748c.095 1.146.273 2.13.5 2.657l.155-.084c-.334-1.038-.47-2.399-.41-3.967.09-2.398.642-5.29 1.661-8.304 1.723-4.55 4.113-8.201 6.3-9.945-1.993 1.8-4.692 7.63-5.5 9.788-.904 2.416-1.545 4.684-1.931 6.857.666-2.037 2.821-2.912 2.821-2.912s1.057-1.304 2.292-3.166c-.74.169-1.955.458-2.362.629-.6.251-.762.337-.762.337s1.945-1.184 3.613-1.72C21.695 7.9 24.195 2.767 21.678.521m-18.573.543A1.842 1.842 0 0 0 1.27 2.9v16.608a1.84 1.84 0 0 0 1.835 1.834h9.418a22.953 22.953 0 0 1-.052-2.707c-.006-.062-.011-.141-.016-.2a27.01 27.01 0 0 0-.473-2.378c-.121-.47-.275-.898-.369-1.057-.116-.197-.098-.31-.097-.432 0-.12.015-.245.037-.386a9.98 9.98 0 0 1 .234-1.045l.217-.028c-.017-.035-.014-.065-.031-.097l-.041-.381a32.8 32.8 0 0 1 .382-1.194l.2-.019c-.008-.016-.01-.038-.018-.053l-.043-.316c.63-3.28 2.587-7.443 4.8-9.791.066-.069.133-.128.198-.194Z"},Redis:{title:"Redis",hex:"FF4438",path:"M22.71 13.145c-1.66 2.092-3.452 4.483-7.038 4.483-3.203 0-4.397-2.825-4.48-5.12.701 1.484 2.073 2.685 4.214 2.63 4.117-.133 6.94-3.852 6.94-7.239 0-4.05-3.022-6.972-8.268-6.972-3.752 0-8.4 1.428-11.455 3.685C2.59 6.937 3.885 9.958 4.35 9.626c2.648-1.904 4.748-3.13 6.784-3.744C8.12 9.244.886 17.05 0 18.425c.1 1.261 1.66 4.648 2.424 4.648.232 0 .431-.133.664-.365a100.49 100.49 0 0 0 5.54-6.765c.222 3.104 1.748 6.898 6.014 6.898 3.819 0 7.604-2.756 9.33-8.965.2-.764-.73-1.361-1.261-.73zm-4.349-5.013c0 1.959-1.926 2.922-3.685 2.922-.941 0-1.664-.247-2.235-.568 1.051-1.592 2.092-3.225 3.21-4.973 1.972.334 2.71 1.43 2.71 2.619z"},Supabase:{title:"Supabase",hex:"3FCF8E",path:"M11.9 1.036c-.015-.986-1.26-1.41-1.874-.637L.764 12.05C-.33 13.427.65 15.455 2.409 15.455h9.579l.113 7.51c.014.985 1.259 1.408 1.873.636l9.262-11.653c1.093-1.375.113-3.403-1.645-3.403h-9.642z"},Firebase:{title:"Firebase",hex:"DD2C00",path:"M19.455 8.369c-.538-.748-1.778-2.285-3.681-4.569-.826-.991-1.535-1.832-1.884-2.245a146 146 0 0 0-.488-.576l-.207-.245-.113-.133-.022-.032-.01-.005L12.57 0l-.609.488c-1.555 1.246-2.828 2.851-3.681 4.64-.523 1.064-.864 2.105-1.043 3.176-.047.241-.088.489-.121.738-.209-.017-.421-.028-.632-.033-.018-.001-.035-.002-.059-.003a7.46 7.46 0 0 0-2.28.274l-.317.089-.163.286c-.765 1.342-1.198 2.869-1.252 4.416-.07 2.01.477 3.954 1.583 5.625 1.082 1.633 2.61 2.882 4.42 3.611l.236.095.071.025.003-.001a9.59 9.59 0 0 0 2.941.568q.171.006.342.006c1.273 0 2.513-.249 3.69-.742l.008.004.313-.145a9.63 9.63 0 0 0 3.927-3.335c1.01-1.49 1.577-3.234 1.641-5.042.075-2.161-.643-4.304-2.133-6.371m-7.083 6.695c.328 1.244.264 2.44-.191 3.558-1.135-1.12-1.967-2.352-2.475-3.665-.543-1.404-.87-2.74-.974-3.975.48.157.922.366 1.315.622 1.132.737 1.914 1.902 2.325 3.461zm.207 6.022c.482.368.99.712 1.513 1.028-.771.21-1.565.302-2.369.273a8 8 0 0 1-.373-.022c.458-.394.869-.823 1.228-1.279zm1.347-6.431c-.516-1.957-1.527-3.437-3.002-4.398-.647-.421-1.385-.741-2.194-.95.011-.134.026-.268.043-.4.014-.113.03-.216.046-.313.133-.689.332-1.37.589-2.025.099-.25.206-.499.321-.74l.004-.008c.177-.358.376-.719.61-1.105l.092-.152-.003-.001c.544-.851 1.197-1.627 1.942-2.311l.288.341c.672.796 1.304 1.548 1.878 2.237 1.291 1.549 2.966 3.583 3.612 4.48 1.277 1.771 1.893 3.579 1.83 5.375-.049 1.395-.461 2.755-1.195 3.933-.694 1.116-1.661 2.05-2.8 2.708-.636-.318-1.559-.839-2.539-1.599.79-1.575.952-3.28.479-5.072zm-2.575 5.397c-.725.939-1.587 1.55-2.09 1.856-.081-.029-.163-.06-.243-.093l-.065-.026c-1.49-.616-2.747-1.656-3.635-3.01-.907-1.384-1.356-2.993-1.298-4.653.041-1.19.338-2.327.882-3.379.316-.07.638-.114.96-.131l.084-.002c.162-.003.324-.003.478 0 .227.011.454.035.677.07.073 1.513.445 3.145 1.105 4.852.637 1.644 1.694 3.162 3.144 4.515z"},"Tailwind CSS":{title:"Tailwind CSS",hex:"06B6D4",path:"M12.001,4.8c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 C13.666,10.618,15.027,12,18.001,12c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C16.337,6.182,14.976,4.8,12.001,4.8z M6.001,12c-3.2,0-5.2,1.6-6,4.8c1.2-1.6,2.6-2.2,4.2-1.8c0.913,0.228,1.565,0.89,2.288,1.624 c1.177,1.194,2.538,2.576,5.512,2.576c3.2,0,5.2-1.6,6-4.8c-1.2,1.6-2.6,2.2-4.2,1.8c-0.913-0.228-1.565-0.89-2.288-1.624 C10.337,13.382,8.976,12,6.001,12z"},"styled-components":{title:"styled-components",hex:"DB7093",path:"M16.214 6.762l-.075.391c-.116.741-.074.953.244 1.228l.307.254-.318 1.418c-.19.846-.423 1.555-.571 1.788-.127.201-.275.497-.307.656-.053.19-.233.381-.508.55-.243.138-.72.508-1.058.805-.27.243-.456.392-.557.456l-.33.261c-.106.17-.166.307-.189.411-.023.107-.01.178.024.23.033.05.09.085.168.107a.954.954 0 00.282.023 3 3 0 00.632-.112c.07-.019.125-.037.173-.053.074-.091.245-.263.548-.562.804-.793 1.111-1.227.794-1.11-.117.042-.064-.064.137-.276.424-.413.667-1.037 1.175-2.994.402-1.545.402-1.567.698-1.567.139 0 .532.024.532.024V6.762h-.902zm3.839 3.165c-.064 0-.17.096-.233.202-.116.19.021.306 1.767 1.396 1.037.657 1.873 1.217 1.852 1.26-.021.031-.868.582-1.883 1.217-1.842 1.142-1.852 1.153-1.683 1.386.212.275 0 .37 2.391-1.122L24 13.155v-.836l-1.937-1.196c-1.047-.656-1.957-1.185-2.01-1.196zm-16.085.117c-.053 0-.963.54-2.01 1.185L0 12.425v.836l1.947 1.217c1.08.666 1.99 1.217 2.032 1.217.042 0 .127-.096.212-.212.127-.201.02-.286-1.768-1.418C.72 12.996.54 12.848.71 12.732c.106-.074.91-.572 1.778-1.111 1.979-1.217 1.873-1.133 1.714-1.387-.063-.105-.17-.2-.233-.19zm8.684.023c-.292-.002-.92.443-2.8 1.978-.081.193-.088.326-.051.412.024.059.068.1.129.13.06.03.138.048.224.055.171.015.373-.012.536-.044l.11-.025a.386.386 0 01.144-.118c.116-.064.603-.508 1.09-.984.857-.868 1.058-1.26.709-1.387a.24.24 0 00-.09-.017zm2.196.603c-.257.007-.72.305-1.513.938-.398.323-.65.497-.785.533l-.524.414c-.197.36-.226.583-.174.706a.25.25 0 00.138.134.644.644 0 00.24.045 2.18 2.18 0 00.58-.085 3.466 3.466 0 00.291-.092l.029-.012.053-.028c.1-.129.33-.372.618-.652.91-.878 1.375-1.502 1.28-1.735-.043-.113-.117-.17-.233-.166zm-2.424 1.08c-.074.008-.24.136-.539.398-.432.382-.903.602-1.066.504a3.97 3.97 0 01-.114.024c-.166.033-.373.06-.558.045a.708.708 0 01-.252-.063.337.337 0 01-.168-.17c-.037-.09-.037-.202.005-.345l-.65.534-1.471 1.217V15.867l4.82-3.797a.41.41 0 01.016-.123c.037-.134.035-.202-.023-.196zm2.074.639c-.073 0-.195.103-.39.31-.265.283-.682.557-.903.613l-.034.018a2.191 2.191 0 01-.11.042c-.06.02-.138.044-.228.068-.18.049-.404.094-.604.089a.732.732 0 01-.275-.054.344.344 0 01-.184-.18c-.058-.139-.035-.334.092-.611L7.61 16.033v1.205h1.868l3.962-3.112c.103-.114.258-.27.467-.465.56-.519.687-.698.687-.963 0-.206-.023-.31-.096-.31zm.943 1.95l-.339.338c-.19.18-.529.402-.761.497l-.046.02-.003.005-.01.01c-.009.007-.013.008-.02.011a3.432 3.432 0 01-.282.093 3.058 3.058 0 01-.65.115 1.035 1.035 0 01-.31-.027.364.364 0 01-.218-.144c-.048-.074-.062-.173-.035-.295a1.11 1.11 0 01.095-.25l-3.197 2.526h4.252l.508-.582c.698-.814 1.016-1.396 1.016-1.894z"},Jest:{title:"Jest",hex:"C21325",path:"M22.251 11.82a3.117 3.117 0 0 0-2.328-3.01L22.911 0H8.104L11.1 8.838a3.116 3.116 0 0 0-2.244 2.988c0 1.043.52 1.967 1.313 2.536a8.279 8.279 0 0 1-1.084 1.244 8.14 8.14 0 0 1-2.55 1.647c-.834-.563-1.195-1.556-.869-2.446a3.11 3.11 0 0 0-.91-6.08 3.117 3.117 0 0 0-3.113 3.113c0 .848.347 1.626.903 2.182-.048.097-.097.195-.146.299-.465.959-.993 2.043-1.195 3.259-.403 2.432.257 4.384 1.849 5.489A5.093 5.093 0 0 0 5.999 24c1.827 0 3.682-.917 5.475-1.807 1.279-.632 2.599-1.292 3.898-1.612.48-.118.98-.187 1.508-.264 1.07-.153 2.175-.312 3.168-.89a4.482 4.482 0 0 0 2.182-3.091c.174-.994 0-1.994-.444-2.87.298-.48.465-1.042.465-1.647zm-1.355 0c0 .965-.785 1.75-1.75 1.75a1.753 1.753 0 0 1-1.085-3.126l.007-.007c.056-.042.118-.084.18-.125 0 0 .008 0 .008-.007.028-.014.055-.035.083-.05.007 0 .014-.006.021-.006.028-.014.063-.028.097-.042.035-.014.07-.027.098-.041.007 0 .013-.007.02-.007.028-.007.056-.021.084-.028.007 0 .02-.007.028-.007.034-.007.062-.014.097-.02h.007l.104-.022c.007 0 .02 0 .028-.007.028 0 .055-.007.083-.007h.035c.035 0 .07-.007.111-.007h.09c.028 0 .05 0 .077.007h.014c.055.007.111.014.167.028a1.766 1.766 0 0 1 1.396 1.723zM10.043 1.39h10.93l-2.509 7.4c-.104.02-.208.055-.312.09l-2.64-5.385-2.648 5.35c-.104-.034-.216-.055-.327-.076l-2.494-7.38zm4.968 9.825a3.083 3.083 0 0 0-.938-1.668l1.438-2.904 1.452 2.967c-.43.43-.743.98-.868 1.605H15.01zm-3.481-1.098c.034-.007.062-.014.097-.02h.02c.029-.008.056-.008.084-.015h.028c.028 0 .049-.007.076-.007h.271c.028 0 .049.007.07.007.014 0 .02 0 .035.007.027.007.048.007.076.014.007 0 .014 0 .028.007l.097.02h.007c.028.008.056.015.083.029.007 0 .014.007.028.007.021.007.049.014.07.027.007 0 .014.007.02.007.028.014.056.021.084.035h.007a.374.374 0 0 1 .09.049h.007c.028.014.056.034.084.048.007 0 .007.007.013.007.028.014.05.035.077.049l.007.007c.083.062.16.132.236.201l.007.007a1.747 1.747 0 0 1 .48 1.209 1.752 1.752 0 0 1-3.502 0 1.742 1.742 0 0 1 1.32-1.695zm-6.838-.049c.966 0 1.751.786 1.751 1.751s-.785 1.751-1.75 1.751-1.752-.785-1.752-1.75.786-1.752 1.751-1.752zm16.163 6.025a3.07 3.07 0 0 1-1.508 2.133c-.758.438-1.689.577-2.669.716a17.29 17.29 0 0 0-1.64.291c-1.445.355-2.834 1.05-4.182 1.717-1.724.854-3.35 1.66-4.857 1.66a3.645 3.645 0 0 1-2.154-.688c-1.529-1.056-1.453-3.036-1.272-4.12.167-1.015.632-1.966 1.077-2.877.028-.055.049-.104.077-.16.152.056.312.098.479.126-.264 1.473.486 2.994 1.946 3.745l.264.139.284-.104c1.216-.431 2.342-1.133 3.336-2.071a9.334 9.334 0 0 0 1.445-1.716c.16.027.32.034.48.034a3.117 3.117 0 0 0 3.008-2.327h1.167a3.109 3.109 0 0 0 3.01 2.327c.576 0 1.11-.16 1.57-.43.18.52.236 1.063.139 1.605z"},Vitest:{title:"Vitest",hex:"00FF74",path:"M11.545 23.3a.613.613 0 0 1-.895.197L.252 15.936A.61.61 0 0 1 0 15.439V6.325c0-.502.569-.792.975-.497l6.358 4.624c.594.433 1.432.25 1.793-.39L14.393.7a.62.62 0 0 1 .535-.314h8.455a.613.613 0 0 1 .537.916z"},Mocha:{title:"Mocha",hex:"8D6748",path:"M13.325 0c-.907 1.116-2.442 2.302-.768 4.814.558.628.838 1.953.768 2.372 0 0 2.512-1.464.977-4.116-.907-1.395-1.326-2.582-.977-3.07zm-2.79 2.582c-.628.767-1.605 1.535-.489 3.279.35.349.489 1.256.489 1.535 0 0 1.673-.978.627-2.792-.628-.907-.906-1.743-.627-2.022zm-5.094 6a.699.699 0 0 0-.697.698c0 2.372.349 10.535 3.837 14.512.14.139.28.208.489.208h5.86c.21 0 .35-.069.489-.208 3.488-3.908 3.837-12.07 3.837-14.512a.7.7 0 0 0-.698-.699H12zm2.023 2.163h9.21c.349 0 .697.278.697.697 0 1.953-.348 7.465-2.72 10.326-.21.14-.35.208-.559.208H9.976a.633.633 0 0 1-.488-.208c-2.372-2.79-2.652-8.373-2.722-10.326 0-.35.28-.697.698-.697zm8.792 4.744s-.071.627-1.745 1.255c-2.303.837-6.348.28-6.348.28.349 1.465.906 2.86 1.743 3.907.07.14.28.209.419.209h3.489c.14 0 .279-.07.418-.209 1.186-1.395 1.745-3.558 2.024-5.442z"},Cypress:{title:"Cypress",hex:"69D3A7",path:"M11.998.0195c-.8642 0-1.6816.1101-2.1445.1934v.002C4.1731 1.2283 0 6.1368 0 12.0018c0 1.1265.1573 2.2328.4648 3.3028.0387.1453.0915.2993.1368.4473 1.607 4.865 6.2245 8.226 11.3925 8.2285.0651 0 .2518-.0003.502-.0118.8564-.0353 1.6228-.5734 1.9512-1.369l.4736-1.1544L20.4258 8.043H18.621l-2.3164 5.871-2.334-5.871h-1.9082l3.2734 8.0117c-.8115 1.9702-1.6252 3.9395-2.4355 5.9101-.0808.1945-.2655.3284-.4727.336-.144.005-.285.0098-.4316.0098-4.5848 0-8.6672-3.0695-9.9277-7.4649a10.3058 10.3058 0 0 1-.3985-2.8437c0-5.0887 3.6521-9.3404 8.6035-10.164.2214-.037.8885-.1446 1.7246-.1446 4.4166 0 8.269 2.732 9.7305 6.8476.0558.144.0977.293.1465.4395.299.9746.4531 1.9887.4531 3.0215 0 4.5696-2.9413 8.5326-7.3164 9.8613l.4863 1.5996c5.085-1.546 8.4995-6.1518 8.502-11.459 0-1.5491-.2983-2.8706-.6504-3.8926-.0432-.1212-.0873-.2422-.1309-.3633h-.002C21.4577 3.0954 17.0444.0195 11.998.0195ZM8.4336 7.8906c-1.1999 0-2.1747.3852-2.9805 1.1758-.8007.7856-1.205 1.7736-1.205 2.9356 0 1.1544.4068 2.1368 1.205 2.9199.8058.7906 1.7806 1.1738 2.9805 1.1738 1.705 0 3.1556-.955 3.7871-2.4883l.0332-.082-1.6289-.5547c-.168.4563-.7552 1.4883-2.1914 1.4883-.6745 0-1.2437-.2344-1.6934-.6992-.4572-.4699-.6875-1.0632-.6875-1.7578 0-.6998.2253-1.2809.6875-1.7735.4522-.4648 1.019-.7012 1.6934-.7012 1.438 0 2.0238 1.0815 2.1934 1.4883l1.627-.5527-.0333-.084c-.629-1.5358-2.082-2.4883-3.7871-2.4883Z"},"Testing Library":{title:"Testing Library",hex:"E33332",path:"M23.447 9.756c.028.05.053.113.078.186-.028-.06-.047-.129-.078-.186.592 2.304-1.95 5.003-5.13 4.239h.001c4.596-3.01 2.332-6.772.19-8.58-1.762-1.49-.721-1.95.021-1.95.237 0 .443.046.519.121l-.005-.004.006.004c-.018-1.433-5.066-1.11-.65 3.494 2.268 2.365-.408 7.596-3.596 3.618a.974.974 0 0 1-.071-.113c.515-.214.937-.795.937-1.753a2.383 2.383 0 0 0-.197-.986c.368-.75.707-1.647.707-2.77 0-2.684-1.742-5.076-4.18-5.076s-4.18 2.392-4.18 5.076c0 1.123.339 2.02.707 2.771a2.374 2.374 0 0 0-.197.988c0 .958.421 1.54.937 1.753a.985.985 0 0 1-.072.113C6.006 14.679 3.33 9.447 5.598 7.083c4.417-4.604-.633-4.926-.651-3.494l.008-.004c.078-.074.28-.12.515-.12.742 0 1.783.46.021 1.95-2.133 1.8-4.383 5.538.139 8.542.018.013.03.027.049.04-3.176.764-5.714-1.928-5.131-4.232l.004-.01c-.001.002-.002.005-.004.006l.001-.003-.003.007c-1.174 1.61-.606 5.779 3.778 6.168.019.003.035.009.054.012-4.36 1-3.048 7.02.021 6.056L4.388 22l.016-.003C2.27 21.652 2.11 19 3.176 18.087c1.172-1.006 2.519-.137 5.302-.932l.03-.004c-.03 2.446 2.352 3.76 1.103 5.16-1.316 1.473-3.112-.1-2.858-1.55l.006-.029-.004.008v-.004l-.004.012C5.65 22.598 7.044 24 8.61 24c.899 0 1.855-.462 2.429-1.567 1.214-2.337-2.385-6.432.96-6.432 3.344 0-.255 4.095.959 6.432.574 1.105 1.53 1.567 2.43 1.567 1.571 0 2.97-1.411 1.85-3.268l.005.021-.006-.017c.276 1.457-1.533 3.057-2.855 1.575-1.244-1.404 1.131-2.718 1.106-5.163 2.806.812 4.157-.072 5.334.94 1.066.911.906 3.564-1.228 3.91h.007c3.07.958 4.377-5.054.018-6.057l.005-.001c4.44-.362 5.009-4.573 3.822-6.184zm-20.238.39C3.072 7.9 5.019 6.073 5.62 5.565c.838-.707 1.165-1.272.998-1.727a.809.809 0 0 0-.656-.512 1.411 1.411 0 0 0-.573.03c.169-.082.365-.13.574-.13.475 0 .866.223.995.569.117.313.12 1.007-1.174 2.133-2.047 1.783-2.213 3.922-1.685 5.33.458 1.223 1.47 2.014 2.58 2.014.177 0 .355-.02.533-.057-.54.46-1.16.61-1.412.656-1.494-1.045-2.512-2.419-2.591-3.727zm5.208 6.873c-1.135.302-2.295.319-3.038.323-.924.006-1.655.01-2.333.593-.617.528-.873 1.594-.609 2.536.091.325.19.656.426.857.178.153.482.37.787.522l-.016-.004c.019.01.033.023.052.033-.993-.212-1.572-1.18-1.642-2.134-.088-1.205.602-2.728 2.832-3.055.354-.052.728-.083 1.101-.114.91-.076 1.85-.155 2.497-.54-.024.38-.046.788-.057.983zm.25-2.684c-.65.998-1.936 1.153-3.07 1.29-.32.038-.613.083-.883.138l-.356-.024c-1.801-.156-3.141-1.006-3.775-2.396a4.068 4.068 0 0 1-.353-2.055s.038-.376.108-.77c-.087 1.095.207 2.138.88 2.997a4.649 4.649 0 0 0 3.636 1.762c1.33 0 2.588-.59 3.545-1.663.33-.37.478-.398.516-.398.128.186.019.708-.247 1.119zm6.372-5.503c0 1.347-1.527 1.347-1.527 0s1.527-1.347 1.527 0zM13.234 3.34c0 .741-1.235.741-1.235 0 0-.74 1.235-.74 1.235 0zm-.258 8.156c0 .749-.06 1.356-.133 1.356s-.126-.605-.125-1.355c0-.75.062-1.356.133-1.356.07 0 .128.606.125 1.355zm-.952-1.614c.056 0 .1.73.1 1.631s-.044 1.631-.1 1.631-.1-.73-.1-1.63c0-.902.045-1.632.1-1.632zm-.193-8.21c0 .511-.849.511-.849 0s.85-.506.85 0zm-.587 4.22c0-.354.587-.351.587 0 0 .354-.587.354-.587 0zm.046 5.622c0 .768-.064 1.39-.137 1.39-.073 0-.132-.622-.131-1.389s.064-1.389.138-1.389c.074 0 .132.62.13 1.388zm0-7.495c0 .51-.849.51-.849 0s.849-.51.849 0zm-1.147-1.234c0 .353-.587.353-.587 0s.587-.353.587 0zm-.08 2.508c0 .255-.425.255-.425 0 0-.256.424-.256.424 0zm-1.1 3.54c0-1.347 1.528-1.347 1.528 0s-1.528 1.347-1.528 0zm5.327 9.088c-.078.74-.273 1.38-.446 1.946-.347 1.138-.622 2.036.242 3.002.363.407.829.622 1.346.622.64 0 1.278-.34 1.664-.889a1.97 1.97 0 0 0 .325-.844c.017.16.026.31.015.417a1.623 1.623 0 0 1-.197.646c-.336.595-1.063.98-1.85.98-.95 0-1.77-.532-2.253-1.459-.481-.927-.132-2.214.177-3.35.302-1.115.564-2.077.104-2.678-.263-.345-.727-.512-1.417-.512-.691 0-1.155.167-1.418.512-.46.6-.198 1.563.104 2.678.309 1.136.658 2.423.177 3.35-.482.927-1.303 1.459-2.252 1.459-.788 0-1.515-.385-1.851-.98a1.623 1.623 0 0 1-.182-1.058c.048.296.142.582.323.84.387.547 1.025.888 1.665.888.518 0 .984-.215 1.348-.622.862-.966.588-1.862.24-2.998-.173-.567-.369-1.21-.445-1.95-.1-.966.119-1.827.6-2.36.399-.441.967-.666 1.69-.666s1.293.224 1.69.665c.48.533.7 1.393.6 2.36zm3.029-4.647c1.11 0 2.122-.79 2.579-2.014.526-1.408.36-3.547-1.69-5.33-1.295-1.127-1.292-1.82-1.175-2.134.13-.345.52-.569.994-.569.193 0 .372.045.532.115l.011.004a1.466 1.466 0 0 0-.533-.018.809.809 0 0 0-.656.512c-.166.455.16 1.02.998 1.728.6.507 2.548 2.334 2.411 4.578-.08 1.308-1.097 2.682-2.591 3.727a3.072 3.072 0 0 1-1.412-.656c.177.038.356.057.532.057zm4.635 6.469c-.07.956-.65 1.922-1.645 2.134.015-.008.028-.018.042-.027.305-.153.608-.368.785-.52.235-.202.335-.533.426-.858.264-.942.008-2.008-.609-2.536-.678-.582-1.409-.587-2.333-.593-.743-.004-1.903-.021-3.04-.323-.01-.196-.03-.602-.054-.983.647.386 1.589.465 2.5.542.373.031.744.062 1.097.113 2.23.327 2.919 1.848 2.83 3.05zm-2.666-3.979c-.271-.056-.565-.1-.886-.14-1.135-.136-2.421-.291-3.07-1.29-.268-.41-.38-.93-.292-1.09a.145.145 0 0 1 .048-.009c.09 0 .238.073.511.379.957 1.073 2.217 1.663 3.546 1.663 1.414 0 2.774-.66 3.637-1.763.672-.858.965-1.9.88-2.994.07.393.107.77.107.77a4.068 4.068 0 0 1-.353 2.054c-.634 1.39-1.974 2.24-3.775 2.396l-.353.024zm-9.69-7.495a.236.236 0 0 1 .11.221.236.236 0 1 1-.47 0 .235.235 0 0 1 .36-.221zm4.295.443a.235.235 0 0 1-.11-.222.235.235 0 1 1 .469 0 .236.236 0 0 1-.359.222z"},Vite:{title:"Vite",hex:"9135FF",path:"M13.056 23.238a.57.57 0 0 1-1.02-.355v-5.202c0-.63-.512-1.143-1.144-1.143H5.148a.57.57 0 0 1-.464-.903l3.777-5.29c.54-.753 0-1.804-.93-1.804H.57a.574.574 0 0 1-.543-.746.6.6 0 0 1 .08-.157L5.008.78a.57.57 0 0 1 .467-.24h14.589a.57.57 0 0 1 .466.903l-3.778 5.29c-.54.755 0 1.806.93 1.806h5.745c.238 0 .424.138.513.322a.56.56 0 0 1-.063.603z"},webpack:{title:"Webpack",hex:"8DD6F9",path:"M22.1987 18.498l-9.7699 5.5022v-4.2855l6.0872-3.3338 3.6826 2.117zm.6683-.6026V6.3884l-3.5752 2.0544v7.396zm-21.0657.6026l9.7699 5.5022v-4.2855L5.484 16.3809l-3.6826 2.117zm-.6683-.6026V6.3884l3.5751 2.0544v7.396zm.4183-12.2515l10.0199-5.644v4.1434L5.152 7.6586l-.0489.028zm20.8975 0l-10.02-5.644v4.1434l6.4192 3.5154.0489.028 3.5518-2.0427zm-10.8775 13.096l-6.0056-3.2873V8.9384l6.0054 3.4525v6.349zm.8575 0l6.0053-3.2873V8.9384l-6.0053 3.4525zM5.9724 8.1845l6.0287-3.3015L18.03 8.1845l-6.0288 3.4665z"},esbuild:{title:"esbuild",hex:"FFCF00",path:"M12 0A12 12 0 000 12a12 12 0 0012 12 12 12 0 0012-12A12 12 0 0012 0zM6.718 5.282L13.436 12l-6.718 6.718-2.036-2.036L9.364 12 4.682 7.318zm7.2 0L20.636 12l-6.718 6.718-2.036-2.036L16.564 12l-4.682-4.682z"},"TypeScript compiler":{title:"TypeScript",hex:"3178C6",path:"M1.125 0C.502 0 0 .502 0 1.125v21.75C0 23.498.502 24 1.125 24h21.75c.623 0 1.125-.502 1.125-1.125V1.125C24 .502 23.498 0 22.875 0zm17.363 9.75c.612 0 1.154.037 1.627.111a6.38 6.38 0 0 1 1.306.34v2.458a3.95 3.95 0 0 0-.643-.361 5.093 5.093 0 0 0-.717-.26 5.453 5.453 0 0 0-1.426-.2c-.3 0-.573.028-.819.086a2.1 2.1 0 0 0-.623.242c-.17.104-.3.229-.393.374a.888.888 0 0 0-.14.49c0 .196.053.373.156.529.104.156.252.304.443.444s.423.276.696.41c.273.135.582.274.926.416.47.197.892.407 1.266.628.374.222.695.473.963.753.268.279.472.598.614.957.142.359.214.776.214 1.253 0 .657-.125 1.21-.373 1.656a3.033 3.033 0 0 1-1.012 1.085 4.38 4.38 0 0 1-1.487.596c-.566.12-1.163.18-1.79.18a9.916 9.916 0 0 1-1.84-.164 5.544 5.544 0 0 1-1.512-.493v-2.63a5.033 5.033 0 0 0 3.237 1.2c.333 0 .624-.03.872-.09.249-.06.456-.144.623-.25.166-.108.29-.234.373-.38a1.023 1.023 0 0 0-.074-1.089 2.12 2.12 0 0 0-.537-.5 5.597 5.597 0 0 0-.807-.444 27.72 27.72 0 0 0-1.007-.436c-.918-.383-1.602-.852-2.053-1.405-.45-.553-.676-1.222-.676-2.005 0-.614.123-1.141.369-1.582.246-.441.58-.804 1.004-1.089a4.494 4.494 0 0 1 1.47-.629 7.536 7.536 0 0 1 1.77-.201zm-15.113.188h9.563v2.166H9.506v9.646H6.789v-9.646H3.375z"}},a6={framework:Jm,language:Om,runtime:vp,data:Wl,library:hp,styling:i5,testing:io,tooling:Pp};function l6(e){const[n,r,a]=[0,2,4].map(o=>{const c=parseInt(e.slice(o,o+2),16)/255;return c<=.03928?c/12.92:((c+.055)/1.055)**2.4});return .2126*n+.7152*r+.0722*a}function Qp({item:e,size:n=12}){const r=s6[e.name];if(!r){const c=a6[e.kind];return i.jsx(c,{size:n,className:"stack-logo stack-logo--generic","aria-hidden":!0})}const a=l6(r.hex),o=a<.06?"dark":a>.45?"light":"mid";return i.jsx("svg",{viewBox:"0 0 24 24",width:n,height:n,className:"stack-logo","data-tone":o,style:o==="dark"?void 0:{color:`#${r.hex}`},fill:"currentColor","aria-hidden":!0,children:i.jsx("path",{d:r.path})})}const o6={framework:"Frameworks",language:"Languages",runtime:"Runtime",data:"Data",library:"Libraries",styling:"Styling",testing:"Testing",tooling:"Tooling"};function c6(e,n=3){const r=(e??[]).filter(a=>a.kind!=="tooling").slice(0,n);return{shown:r,more:((e==null?void 0:e.length)??0)-r.length}}function u6({node:e,position:n,agents:r,rereading:a=r,conflicts:o=[],allAgents:c=r,now:u,selected:h,dimmed:p,matched:f,change:m,onSelect:g,onHover:y,onFocusCard:v}){var W;const w=Du[e.category]??Du.other,S=ua(e),j=e.status==="removed",b=bi(e),P=c6(e.stack,6),C=r.filter(T=>{const ve=Nn(T,e.id);return ve.current&&!ve.held&&T.state!=="disconnected"}),M=C[0],z=M?Nn(M,e.id):null,N=z?p1[z.colorState]:null,L=$p(e,u),V=j||(W=sn(e,["file-changed"]))==null?void 0:W.observedAt,K=V?`Changed ${it(V,u)}`:"",D=L?`${L.attributed?"Edited":"Files changed"}${L.part?` ${L.part}`:""} · ${_t(L.evidence.observedAt)}`:"",I=L?[L.note,L.detail,D].filter(Boolean).join(`
|
|
621
|
+
`):"",B=S.failed?an:S.passed||S.projectPassed?Ei:S.awaiting?Gr:xp,H=z&&M.workPhase==="editing"&&(L!=null&&L.part)&&L.evidence.agentId===M.id?L:null,Y=z?`${M.name}: ${z.action}${H?` ${H.part}`:""}${z.certain?"":" · location inferred"}`:"",ne=a.find(T=>Ql(T,e.id)),ie=ne?Ql(ne,e.id):null,re=ie&&ne?`${ne.name}
|
|
622
|
+
${ie.title}`:"",$=new Set(o.flatMap(T=>T.agentIds)).size,G=o.length?`${f1([...new Set(o.flatMap(T=>T.agentIds))],c).who} editing ${o.map(T=>T.file).join(", ")}. Their changes may overwrite each other.`:"",A=b||["removed","blocked","needs-rework","planned"].includes(e.status),F={width:ts,transform:`translate(${n.x}px, ${n.y}px)`,"--status-color":`var(--status-${e.status})`,...z?{"--activity-color":`var(--activity-${z.colorState})`}:{},"--trail-strength":(L==null?void 0:L.strength)??0};return i.jsxs("div",{className:["forma-canvas__card","forma-canvas__card--visual",h&&"is-selected",p&&"is-dimmed",f&&"is-match",j&&"is-removed",b&&"is-proposed",m&&"is-changed"].filter(Boolean).join(" "),style:F,"data-node-id":e.id,"data-status":e.status,"data-change":m,"data-agent-state":z==null?void 0:z.outlineState,"data-agent-current":(z==null?void 0:z.live)||void 0,"data-agent-location":z?z.certain?"observed":"inferred":void 0,"data-edit-trail":L?L.fresh?"fresh":"fading":void 0,"data-conflict":o.length?!0:void 0,onPointerEnter:()=>y(e.id),onPointerLeave:()=>y(null),children:[m&&i.jsx("span",{className:"forma-canvas__change","data-kind":m,"aria-live":"polite",children:Bp[m]}),i.jsxs("button",{type:"button",className:"forma-canvas__card-main","aria-pressed":h,"aria-label":[e.name,G,Y,ie&&ne?`${ne.name} reread its files ${ie.reads} times without editing`:"",D||K,S.label].filter(Boolean).join(", "),"aria-description":e.description,onClick:T=>{T.stopPropagation(),g(e.id)},onFocus:()=>v(e.id),children:[i.jsxs("span",{className:"forma-canvas__card-head",children:[i.jsx("span",{className:"forma-canvas__icon","aria-hidden":!0,children:i.jsx(w,{size:20,strokeWidth:1.75})}),i.jsx("span",{className:"forma-canvas__name",children:e.name}),o.length>0&&i.jsxs("span",{className:"forma-canvas__conflict-tag",title:G,children:[i.jsx(an,{size:13,strokeWidth:2.2,"aria-hidden":!0}),$," agents"]}),ie&&i.jsxs("span",{className:"forma-canvas__loop forma-canvas__loop--card",title:re,children:[i.jsx(u1,{size:13,strokeWidth:2.2,"aria-hidden":!0}),ie.reads,"×"]})]}),(z||!P.shown.length)&&i.jsx("span",{className:"forma-canvas__scene","data-live":(z==null?void 0:z.live)||void 0,children:z&&N?i.jsxs(i.Fragment,{children:[i.jsxs("span",{className:"forma-canvas__action-symbol",title:`${Y}. ${z.evidence}`,children:[i.jsx(N,{size:28,strokeWidth:1.7,"aria-hidden":!0}),i.jsx("span",{className:"forma-canvas__action-agent",children:i.jsx(Gt,{kind:M.kind,size:15})})]}),i.jsxs("span",{className:"forma-canvas__action-caption",children:[z.action,H&&i.jsx("span",{className:"forma-canvas__action-part",children:H.part}),(H==null?void 0:H.note)&&i.jsx("span",{className:"forma-canvas__action-note",title:H.detail??void 0,children:H.note}),!z.certain&&i.jsx("span",{className:"forma-canvas__uncertain",children:"Location inferred"})]}),C.length>1&&i.jsxs("span",{title:C.map(T=>`${T.name}: ${Nn(T,e.id).action}`).join(`
|
|
623
|
+
`),children:["+",C.length-1]})]}):i.jsx("span",{className:"forma-canvas__quiet","aria-hidden":!0,children:i.jsx(w,{size:30,strokeWidth:1})})}),!j&&P.shown.length>0&&i.jsxs("span",{className:"forma-canvas__stack forma-canvas__stack--logos","aria-label":"Technology stack",children:[P.shown.map(T=>i.jsx("span",{className:"forma-canvas__stack-item",title:`${T.name}${T.version?` ${T.version}`:""}: ${T.evidence}`,children:i.jsx(Qp,{item:T,size:16})},T.name)),P.more>0&&i.jsxs("span",{className:"forma-canvas__stack-more",title:"Select the component to see its full stack",children:["+",P.more]})]}),i.jsxs("span",{className:"forma-canvas__visual-footer",children:[L?i.jsxs("span",{className:"forma-canvas__edit-trace",title:I,children:[i.jsx(c1,{size:14,"aria-hidden":!0}),i.jsxs("span",{className:"forma-canvas__edit-text",children:[L.attributed?"Edited":"Changed",L.part&&i.jsxs(i.Fragment,{children:[" · ",i.jsx("b",{children:L.part})]})]}),!L.part&&i.jsxs("span",{className:"forma-canvas__trail-dots","aria-hidden":!0,children:[i.jsx("i",{}),i.jsx("i",{}),i.jsx("i",{})]})]}):i.jsx("span",{className:"forma-canvas__quiet-label",children:A?b?"Proposed":as[e.status]:""}),V&&i.jsx("time",{className:"forma-canvas__changed-at",dateTime:V,title:`Files last changed ${_t(V)}`,children:it(V,u)}),!j&&i.jsx("span",{className:"forma-canvas__verification-icon","data-tone":S.tone,title:`${S.label}. ${S.detail}`,"aria-label":S.label,children:i.jsx(B,{size:17,"aria-hidden":!0})})]})]})]})}const d6=_.memo(u6),Cl=3;function h6({agents:e,nodes:n,onSelectNode:r}){const a=new Map(n.map(h=>[h.id,h.name])),o=new Map(n.map(h=>[h.id,h])),c=Fp(e,h=>a.has(h),h=>o.get(h));if(!c.length)return null;const u=h=>c.filter(p=>p.agent.kind===h.kind).length>1;return i.jsxs("ul",{className:"forma-canvas__doing","aria-label":"What agents are doing now",children:[c.slice(0,Cl).map(({agent:h,state:p,action:f,live:m,nodeId:g,certain:y,part:v,note:w,loop:S})=>{var M,z;const j=p1[p],b=u(h)||!ls[h.kind]?h.name:ls[h.kind],P=(z=(M=h.plan)==null?void 0:M.find(N=>N.status==="in_progress"))==null?void 0:z.step,C=[w,P?`Task: ${P}`:"",h.activity].filter(Boolean).join(`
|
|
624
|
+
`);return i.jsxs("li",{className:"forma-canvas__doing-agent","data-agent-state":p,"data-live":m||void 0,title:C,children:[i.jsx("span",{className:"forma-canvas__doing-agent-symbol","aria-hidden":!0,children:i.jsx(j,{size:15,strokeWidth:1.9})}),i.jsx("span",{className:"forma-canvas__doing-agent-logo","aria-hidden":!0,children:i.jsx(Gt,{kind:h.kind,size:13})}),i.jsxs("span",{className:"forma-canvas__doing-agent-text",children:[i.jsx("span",{className:"forma-canvas__doing-agent-name",children:b}),i.jsx("span",{className:"forma-canvas__doing-agent-action",children:f}),Hl(h)&&i.jsx("span",{className:"agent-tool-usage",title:Hl(h),children:Hl(h)}),v&&i.jsx("span",{className:"forma-canvas__doing-agent-part",children:v}),g?i.jsxs("button",{type:"button",className:"forma-canvas__doing-agent-where",onClick:()=>r(g),title:`Select ${a.get(g)}${y?"":" (location inferred)"}`,children:[y?"in":"probably in"," ",a.get(g)]}):h.outsideMap?i.jsxs("span",{className:"forma-canvas__doing-agent-where",children:["· ",h.outsideMap]}):null]}),S&&i.jsxs("span",{className:"forma-canvas__loop","data-kind":S.kind??"read",title:S.title,children:[S.kind==="sign-in"?i.jsx(l1,{size:13,strokeWidth:2.2,"aria-hidden":!0}):S.kind==="fail"?i.jsx(an,{size:13,strokeWidth:2.2,"aria-hidden":!0}):i.jsx(u1,{size:13,strokeWidth:2.2,"aria-hidden":!0}),Dp(S)]})]},h.id)}),c.length>Cl&&i.jsxs("li",{className:"forma-canvas__doing-agent forma-canvas__doing-agent--more",title:c.slice(Cl).map(h=>`${h.agent.name}: ${fa(h.agent)}`).join(`
|
|
625
|
+
`),children:["+",c.length-Cl]})]})}const I2=3,p6=["not-found","deprecated","checking","unchecked","off","ok"],R2={"not-found":"not on npm",deprecated:"deprecated",checking:"checking npm…",unchecked:"not checked",off:"",ok:"on npm"},f6=e=>e.split("/").at(-1)??e;function m6(e){const n=new Map;for(const r of e){const a=r.kind==="dependency"?`dep|${r.agentId}|${r.file}`:`cfg|${r.agentId}|${r.file}`,o=n.get(a)??{key:a,first:r,alerts:[]};o.alerts.push(r),n.set(a,o)}for(const r of n.values()){const a=r.alerts.map(o=>{var c;return(c=o.dependency)==null?void 0:c.check}).filter(o=>!!o);a.length&&(r.worst=p6.find(o=>a.includes(o)))}return[...n.values()]}function g6(e){return e.first.kind==="agent-config"?`${e.first.file}
|
|
626
|
+
An agent config file: the instructions, MCP servers or permissions later sessions use. Kalvyr doesn't read its contents.
|
|
627
|
+
Edited ${_t(e.first.at)}.`:[e.first.file,...e.alerts.map(n=>{const r=n.dependency,a=r.change==="changed"?`${r.previous} → ${r.spec}`:r.spec,o=r.check==="not-found"?`not published on npm${r.version?` (${r.version})`:""}`:r.check==="deprecated"?`deprecated${r.version?` (${r.version})`:""}${r.note?`: ${r.note}`:""}`:r.check==="ok"?`on npm${r.version?`, ${r.version}`:""}`:r.check==="checking"?"checking npm…":r.check==="unchecked"?`not checked${r.note?`: ${r.note}`:""}`:"";return`${r.name} ${a}${r.dev?" (dev)":""}${o?` · ${o}`:""}`})].join(`
|
|
628
|
+
`)}function x6({alerts:e,agents:n,nodes:r,onSelectNode:a}){const[o,c]=_.useState({}),u=m6(e).filter(f=>o[f.key]!==f.alerts.map(m=>{var g;return`${m.id}:${((g=m.dependency)==null?void 0:g.check)??""}`}).join(","));if(!u.length)return null;const h=new Map(r.map(f=>[f.id,f.name])),p=u.slice(I2);return i.jsxs("ul",{className:"forma-canvas__conflicts forma-canvas__alerts","aria-label":"Agent config and dependency changes","aria-live":"polite",children:[u.slice(0,I2).map(f=>{const{names:m,list:g}=f1([f.first.agentId],n),y=f.first.nodeId?h.get(f.first.nodeId):void 0,v=f.first.kind==="dependency",w=f.worst==="not-found"||f.worst==="deprecated"?"danger":"notice",S=f.alerts.map(P=>P.dependency).filter(Boolean),j=S.every(P=>P.change==="added"),b=v?r5:kp;return i.jsxs("li",{className:"forma-canvas__conflict forma-canvas__alert","data-tone":w,title:g6(f),children:[i.jsx("span",{className:"forma-canvas__conflict-symbol","aria-hidden":!0,children:i.jsx(b,{size:15,strokeWidth:2})}),i.jsx("span",{className:"forma-canvas__conflict-logos","aria-hidden":!0,children:g.map(P=>i.jsx(Gt,{kind:P.kind,size:13},P.id))}),i.jsxs("span",{className:"forma-canvas__conflict-text",children:[v?i.jsxs(i.Fragment,{children:[m," ",j?"added":"changed"," ",i.jsx("code",{children:S[0].name}),S.length===1&&i.jsxs(i.Fragment,{children:[" ",i.jsx("span",{className:"forma-canvas__alert-spec",children:S[0].spec})]}),S.length>1&&i.jsxs(i.Fragment,{children:[" +",S.length-1]})]}):i.jsxs(i.Fragment,{children:[m," edited ",i.jsx("code",{children:f6(f.first.file)})]}),f.first.nodeId&&y&&i.jsxs(i.Fragment,{children:[" ",i.jsxs("button",{type:"button",className:"forma-canvas__conflict-where",onClick:()=>a(f.first.nodeId),children:["in ",y]})]})]}),f.worst&&R2[f.worst]&&i.jsx("span",{className:"forma-canvas__alert-tag","data-check":f.worst,children:R2[f.worst]}),i.jsx("button",{type:"button",className:"forma-canvas__alert-dismiss","aria-label":"Hide this alert",onClick:()=>c(P=>({...P,[f.key]:f.alerts.map(C=>{var M;return`${C.id}:${((M=C.dependency)==null?void 0:M.check)??""}`}).join(",")})),children:i.jsx(Cn,{size:13,"aria-hidden":!0})})]},f.key)}),p.length>0&&i.jsxs("li",{className:"forma-canvas__conflict forma-canvas__conflict--more",title:p.map(f=>f.first.file).join(`
|
|
629
|
+
`),children:["+",p.length," more change",p.length>1?"s":""," to agent config and dependencies"]})]})}const y6={"depends-on":"depends on",calls:"calls","data-flow":"sends data to",contains:"contains"};function v6({edges:e,rects:n,focusId:r,changedIds:a,dimmedIds:o,removedIds:c}){return i.jsxs("svg",{className:"forma-canvas__edges","aria-hidden":!0,width:"1",height:"1",children:[i.jsx("defs",{children:["active","planned","removed","focus"].map(u=>i.jsx("marker",{id:`forma-canvas-arrow-${u}`,viewBox:"0 0 10 10",refX:"9",refY:"5",markerWidth:"7",markerHeight:"7",markerUnits:"userSpaceOnUse",orient:"auto-start-reverse",children:i.jsx("path",{d:"M 0 1 L 9 5 L 0 9 z",className:`forma-canvas__arrow is-${u}`})},u))}),e.map(u=>{const h=n.get(u.source),p=n.get(u.target);if(!h||!p||u.source===u.target)return null;const{d:f,mid:m}=Y5(h,p),g=u.state==="removed"||c.has(u.source)||c.has(u.target),y=!g&&r!==null&&(u.source===r||u.target===r),v=!y&&(o.has(u.source)||o.has(u.target)),w=y?"focus":g?"removed":u.state==="planned"?"planned":"active",S=u.label??y6[u.kind];return i.jsxs("g",{className:["forma-canvas__edge",`is-${u.state}`,`kind-${u.kind}`,g&&"is-removed",y&&"is-focused",v&&"is-dimmed",!g&&(a==null?void 0:a.has(u.id))&&"is-changed"].filter(Boolean).join(" "),"data-edge-id":u.id,children:[i.jsx("path",{d:f,className:"forma-canvas__edge-path",markerEnd:u.kind==="contains"?void 0:`url(#forma-canvas-arrow-${w})`}),y&&i.jsx("text",{x:m.x,y:m.y-7,className:"forma-canvas__edge-label",textAnchor:"middle",children:S})]},u.id)})]})}const k6=_.memo(v6),El=168,zl=108,Ml=40;function w6({nodes:e,rects:n,view:r,viewport:a,dimmedIds:o,selectedNodeId:c,onCenter:u}){const h=_.useRef(!1),p=Wp(e.map(P=>n.get(P.id)).filter(P=>!!P));if(!p)return null;const f={x:p.x-Ml,y:p.y-Ml,w:p.w+Ml*2,h:p.h+Ml*2},m=Math.min(El/f.w,zl/f.h),g=(El-f.w*m)/2,y=(zl-f.h*m)/2,v=(P,C)=>({x:g+(P-f.x)*m,y:y+(C-f.y)*m}),w=v(-r.x/r.k,-r.y/r.k),S=a.w/r.k*m,j=a.h/r.k*m,b=P=>{const C=P.currentTarget.getBoundingClientRect();u(f.x+(P.clientX-C.left-g)/m,f.y+(P.clientY-C.top-y)/m)};return i.jsx("div",{className:"forma-canvas__minimap","aria-hidden":!0,children:i.jsxs("svg",{width:El,height:zl,onPointerDown:P=>{P.stopPropagation(),h.current=!0,P.currentTarget.setPointerCapture(P.pointerId),b(P)},onPointerMove:P=>h.current&&b(P),onPointerUp:()=>h.current=!1,onPointerCancel:()=>h.current=!1,children:[e.map(P=>{const C=n.get(P.id);if(!C)return null;const M=v(C.x,C.y);return i.jsx("rect",{x:M.x,y:M.y,width:Math.max(2,C.w*m),height:Math.max(2,C.h*m),rx:2,className:["forma-canvas__mini-node",o.has(P.id)&&"is-dimmed",P.id===c&&"is-selected"].filter(Boolean).join(" "),style:{fill:U5(P).unverifiedCompletion?"var(--text-secondary)":`var(--status-${P.status})`}},P.id)}),i.jsx("rect",{x:Math.max(0,w.x),y:Math.max(0,w.y),width:Math.max(0,Math.min(El,w.x+S)-Math.max(0,w.x)),height:Math.max(0,Math.min(zl,w.y+j)-Math.max(0,w.y)),className:"forma-canvas__mini-viewport"})]})})}function j6({zoom:e,onZoomIn:n,onZoomOut:r,onReset:a,onFit:o}){return i.jsxs("div",{className:"forma-canvas__controls",role:"toolbar","aria-label":"Map zoom",children:[i.jsx("button",{type:"button",className:"forma-canvas__ctrl",onClick:r,disabled:e<=Up+.001,"aria-label":"Zoom out",title:"Zoom out (−)",children:i.jsx(j5,{size:15,"aria-hidden":!0})}),i.jsxs("button",{type:"button",className:"forma-canvas__ctrl forma-canvas__zoom-value",onClick:a,"aria-label":`Zoom ${Math.round(e*100)} percent. Reset to 100 percent`,title:"Reset to 100%",children:[Math.round(e*100),"%"]}),i.jsx("button",{type:"button",className:"forma-canvas__ctrl",onClick:n,disabled:e>=Vp-.001,"aria-label":"Zoom in",title:"Zoom in (+)",children:i.jsx(w5,{size:15,"aria-hidden":!0})}),i.jsx("span",{className:"forma-canvas__ctrl-sep","aria-hidden":!0}),i.jsx("button",{type:"button",className:"forma-canvas__ctrl",onClick:o,"aria-label":"Fit map to view",title:"Fit to view (0)",children:i.jsx(h5,{size:15,"aria-hidden":!0})})]})}function b6({on:e,onToggle:n}){return i.jsxs("button",{type:"button",className:"forma-canvas__follow forma-canvas__animate","aria-pressed":e,onClick:n,title:e?"Hide the agent robots":"Show each working agent as an animated robot that grabs the component it works on",children:[i.jsx(Zr,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"forma-canvas__follow-label",children:"Animate"})]})}function _6({following:e,target:n,onToggle:r}){const a=e?n?`Following ${n.name}${n.likely?" (component location inferred)":""}. Click to stop (F)`:"Waiting for an active agent with a known location. Click to stop (F)":"Keep the component an agent is working on in view (F)";return i.jsxs("button",{type:"button",className:"forma-canvas__follow","aria-pressed":e,onClick:r,title:a,style:n?{"--follow-color":n.color}:void 0,children:[i.jsx(t5,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"forma-canvas__follow-label",children:e&&n?`Following ${n.name}`:"Follow agent"}),e&&!n&&i.jsx("span",{className:"forma-canvas__follow-state",children:"waiting"})]})}const S6=[["planned","Planned"],["in-progress","In progress"],["implemented","Code detected"],["testing","Testing"],["completed","Completion reported"],["blocked","Blocked"],["needs-rework","Needs rework"]];function N6({defaultOpen:e}){const[n,r]=_.useState(e);return i.jsxs("div",{className:["forma-canvas__legend",n&&"is-open"].filter(Boolean).join(" "),children:[i.jsxs("button",{type:"button",className:"forma-canvas__legend-toggle","aria-expanded":n,"aria-controls":"forma-canvas-legend-body",onClick:()=>r(a=>!a),children:["Legend",i.jsx(On,{size:13,"aria-hidden":!0,className:"forma-canvas__chevron"})]}),n&&i.jsxs("div",{className:"forma-canvas__legend-body",id:"forma-canvas-legend-body",children:[i.jsxs("section",{className:"forma-canvas__legend-section","aria-label":"Agent activity",children:[i.jsx("h3",{children:"Agent activity · badge and card outline"}),i.jsx("ul",{className:"forma-canvas__legend-list forma-canvas__legend-actions",children:F5.map(({state:a,label:o,onCard:c})=>{const u=p1[a];return i.jsxs("li",{title:c?"On the agent’s badge, and on the card whose files it names":"Only on the agent’s badge: it names no component",children:[i.jsx("span",{className:"forma-canvas__legend-ring","data-agent-state":a,"aria-hidden":!0,children:i.jsx(u,{size:12})}),o,!c&&i.jsx("span",{className:"forma-canvas__legend-where",children:" · badge only"})]},a)})}),i.jsxs("p",{className:"forma-canvas__legend-note",children:["Each working agent has a badge at the top left showing what it is doing now. When the action names a component’s files, that card gets the same outline: solid when observed, dashed when inferred.",i.jsx("br",{}),"A pencil trail marks files changed in the last five minutes; it fades as they age.",i.jsx("br",{}),"Clock: changes await checks. Question mark: no component result. A finished tool does not mean checks passed."]})]}),i.jsxs("section",{className:"forma-canvas__legend-section","aria-label":"Component status and connections",children:[i.jsx("h3",{children:"Component status · label"}),i.jsxs("ul",{className:"forma-canvas__legend-list forma-canvas__legend-statuses",children:[S6.map(([a,o])=>i.jsxs("li",{children:[i.jsx("span",{className:"forma-canvas__legend-dot",style:{background:`var(--status-${a})`},"aria-hidden":!0}),o]},a)),i.jsxs("li",{children:[i.jsx("svg",{width:"26",height:"8","aria-hidden":!0,children:i.jsx("line",{x1:"1",y1:"4",x2:"25",y2:"4",className:"forma-canvas__legend-line"})}),"Dependency"]}),i.jsxs("li",{children:[i.jsx("svg",{width:"26",height:"8","aria-hidden":!0,children:i.jsx("line",{x1:"1",y1:"4",x2:"25",y2:"4",className:"forma-canvas__legend-line is-planned"})}),"Planned link"]})]})]})]})]})}const m1="forma:";function fr(e,n){try{const r=window.localStorage.getItem(m1+e);return r===null?n:JSON.parse(r)}catch{return n}}function En(e,n){try{window.localStorage.setItem(m1+e,JSON.stringify(n))}catch{}}function D2(){try{const e=Object.keys(window.localStorage).filter(n=>n.startsWith(m1));return e.forEach(n=>window.localStorage.removeItem(n)),e.length}catch{return 0}}function C6(e,n){switch(e){case"editing":return n&&/^New file\b/.test(n)?"creating":n&&/^(?:Deleted the file|Removed )/.test(n)?"deleting":"editing";case"reading":case"running":case"testing":case"thinking":case"waiting":case"error":return e;case"working":return"running";case"unknown":return"thinking";default:return"idle"}}function Zp(e,n){switch(e){case"reading":case"editing":case"creating":case"deleting":return n??"Files";case"running":return n??"Terminal";case"testing":return n??"Checks";case"error":return n??null;default:return null}}const da=220,g1=240,E6=216,Gp=104,$u=6,Yp=3,z6={x:110,y:166},x1={reading:{x:54,y:134,w:112,h:70},editing:{x:64,y:136,w:100,h:62},creating:{x:58,y:134,w:104,h:66},deleting:{x:64,y:136,w:100,h:62},running:{x:58,y:134,w:104,h:66},testing:{x:58,y:132,w:104,h:70},error:{x:66,y:136,w:88,h:64}};function M6(e){const n=x1[e];return n?{x:n.x+n.w/2,y:n.y+n.h/2}:z6}const $n=12;function A6(e,n){const r=Math.min(Math.max(e,1),Yp),a=r===1?1:r===2?.8:.66,o=(n-2*$n-(r-1)*$u-r*Gp)/(r*g1);return Math.max(.35,Math.min(a,o))}function P6(e){return{w:Math.max(da*e,E6),h:g1*e+Gp}}function T6(e,n,r,a){const o=n*a.h+Math.max(0,n-1)*$u,c=Math.max($n,(r.h-o)/2);return{x:Math.max($n,r.w-a.w-$n),y:Math.min(c+e*(a.h+$u),Math.max($n,r.h-a.h-$n))}}const Gl=e=>Math.min(1,Math.max(0,Number.isFinite(e)?e:0)),Xp=(e,n)=>({w:Math.max(0,e.w-n.w-2*$n),h:Math.max(0,e.h-n.h-2*$n)});function L6(e,n,r){const a=Xp(n,r);return{x:$n+Gl(e.fx)*a.w,y:$n+Gl(e.fy)*a.h}}function F2(e,n,r,a){const o=Xp(r,a);return{fx:o.w?Gl((e-$n)/o.w):1,fy:o.h?Gl((n-$n)/o.h):.5}}function eu(e,n){return{x:n.x+e.x*n.k,y:n.y+e.y*n.k,w:e.w*n.k,h:e.h*n.k}}function I6(e,n){const r=n.x+n.w/2<e.x,a={x:r?n.x+n.w:n.x,y:n.y+n.h/2},o=Math.max(40,Math.abs(a.x-e.x)*.45),c={x:e.x+(r?-o:o),y:e.y},u={x:a.x+(r?o:-o),y:a.y},h=p=>Math.round(p*10)/10;return{d:`M${h(e.x)} ${h(e.y)} C${h(c.x)} ${h(c.y)} ${h(u.x)} ${h(u.y)} ${h(a.x)} ${h(a.y)}`,end:a}}const R6=10*6e4,$2=420,Jp="canvas:robotPlaces",D6=4,F6={id:"kalvyr-resting",name:"Kalvyr",kind:"other",color:"#9d86ff",state:"idle",lastSeenAt:new Date(0).toISOString()};function $6(){const e=fr(Jp,{});return!e||typeof e!="object"||Array.isArray(e)?{}:Object.fromEntries(Object.entries(e).filter(([,n])=>!!n&&typeof n=="object"&&Number.isFinite(n.fx)&&Number.isFinite(n.fy)))}function O6({agents:e,nodes:n,rects:r,view:a,size:o,now:c,onSelectNode:u}){const h=new Map(n.map(I=>[I.id,I])),p=Fp(e,I=>r.has(I),I=>h.get(I),c),f=new Set(p.map(I=>I.agent.id)),m=e.filter(I=>!f.has(I.id)&&I.state==="idle"&&!I.isSample&&c-Date.parse(I.lastSeenAt)<R6),g=[...p.map(I=>({agent:I.agent,pose:C6(I.state,I.note),cardId:I.nodeId??void 0,action:I.action,part:I.part,loop:I.loop})),...m.map(I=>({agent:I,pose:"idle",cardId:void 0,action:"Resting",part:void 0,loop:void 0}))].slice(0,Yp);g.length||g.push({agent:F6,pose:"idle",cardId:void 0,action:"Waiting for an agent",part:void 0,loop:void 0});const[y,v]=_.useState($6),w=_.useRef(null),[S,j]=_.useState(null),b=I=>g.filter(B=>B.agent.kind===I.kind).length>1,P=A6(g.length,o.h),C=P6(P),M=g.map((I,B)=>y[I.agent.id]?L6(y[I.agent.id],o,C):T6(B,g.length,o,C)),z=(C.w-da*P)/2,N=I=>M[I].x+C.w/2>o.w/2,L=(I,B)=>{v(H=>{const Y={...Object.fromEntries(Object.entries(H).filter(([ne])=>ne!==I).slice(-23)),[I]:B};return En(Jp,Y),Y})},V=(I,B)=>H=>{H.button===0&&(H.preventDefault(),w.current={id:I,x:H.clientX,y:H.clientY,from:B,moved:!1,target:H.target},H.currentTarget.setPointerCapture(H.pointerId))},K=I=>{const B=w.current;if(!B)return;const H=I.clientX-B.x,Y=I.clientY-B.y;if(!B.moved&&Math.hypot(H,Y)<D6)return;B.moved=!0,j(B.id);const ne=F2(B.from.x+H,B.from.y+Y,o,C);v(ie=>({...ie,[B.id]:ne}))},D=I=>{var Y;const B=w.current;if(w.current=null,j(null),I.currentTarget.hasPointerCapture(I.pointerId)&&I.currentTarget.releasePointerCapture(I.pointerId),!B)return;if(B.moved){L(B.id,F2(B.from.x+I.clientX-B.x,B.from.y+I.clientY-B.y,o,C));return}const H=B.target instanceof Element?(Y=B.target.closest("[data-node-id]"))==null?void 0:Y.dataset.nodeId:void 0;H&&u(H)};return i.jsxs(i.Fragment,{children:[i.jsx("svg",{className:"robot-tethers","aria-hidden":!0,children:g.map((I,B)=>{const H=I.cardId?r.get(I.cardId):void 0;if(!H||!Zp(I.pose,"x"))return null;const Y=M6(I.pose),ne=N(B)?da-Y.x:Y.x,ie=I6({x:M[B].x+z+ne*P,y:M[B].y+Y.y*P},eu(H,a));return i.jsxs("g",{style:{"--robot-color":I.agent.color},"data-pose":I.pose,children:[i.jsx("path",{className:"robot-tether",d:ie.d}),i.jsx("circle",{className:"robot-tether__end",cx:ie.end.x,cy:ie.end.y,r:5})]},I.agent.id)})}),g.map((I,B)=>{var ne,ie,re,$;const H=I.cardId?r.get(I.cardId):void 0,Y=(b(I.agent)?null:ls[I.agent.kind])??I.agent.name;return i.jsx("div",{className:"robot-dock",role:"group","aria-label":`${Y} robot`,"data-dragging":S===I.agent.id||void 0,title:"Drag to move",style:{transform:`translate(${M[B].x}px, ${M[B].y}px)`,width:C.w,height:C.h},onPointerDown:V(I.agent.id,M[B]),onPointerMove:K,onPointerUp:D,onPointerCancel:D,children:i.jsx(q6,{pose:I.pose,kind:I.agent.kind,color:I.agent.color,name:Y,action:I.action,part:I.part,loop:I.loop,toolLabel:Hl(I.agent),toolKind:(ie=(ne=I.agent.toolUsage)==null?void 0:ne[0])==null?void 0:ie.kind,cardId:H?I.cardId:void 0,cardName:H?(re=h.get(I.cardId))==null?void 0:re.name:void 0,category:H?($=h.get(I.cardId))==null?void 0:$.category:void 0,grabFrom:H?eu(H,a):void 0,look:H?B6(eu(H,a),M[B].x+C.w/2)*(N(B)?-1:1):0,faceLeft:N(B),scale:P,onSelectNode:u})},I.agent.id)})]})}const B6=(e,n)=>Math.max(-1,Math.min(1,(e.x+e.w/2-n)/300)),H6=460,O2=()=>typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches,Qs=(e,n,r)=>`M${e} ${n-r} Q${e+r*.18} ${n-r*.18} ${e+r} ${n} Q${e+r*.18} ${n+r*.18} ${e} ${n+r} Q${e-r*.18} ${n+r*.18} ${e-r} ${n} Q${e-r*.18} ${n-r*.18} ${e} ${n-r}Z`,tu={reading:{label:"Files",icon:Bl},editing:{label:"Files",icon:Bl},creating:{label:"New file",icon:wp},deleting:{label:"Files",icon:Bl},running:{label:"Terminal",icon:zp},testing:{label:"Checks",icon:o1},thinking:{label:"Thinking",icon:pp},waiting:{label:"Approval",icon:k5},error:{label:"Tool error",icon:an},idle:{label:"Resting",icon:Cp}},U6={reading:dp,editing:Bm,creating:wp,deleting:d1,running:zp,testing:o1};function ur({x:e,y:n,small:r=!1,fill:a}){return i.jsx("circle",{className:"robot__hand",cx:e,cy:n,r:r?9.5:11,fill:a.replace("-limb)","-hand)")})}function dr({d:e,fill:n}){return i.jsxs(i.Fragment,{children:[i.jsx("path",{className:"robot__limb-edge",d:e}),i.jsx("path",{className:"robot__limb",d:e,stroke:n})]})}function B2({pose:e,front:n,fill:r}){const a=x1[e];if(!a)return null;const o=Math.round(a.y+a.h*.62),c=a.x+3,u=a.x+a.w-3;return n?i.jsxs(i.Fragment,{children:[i.jsx(ur,{x:c,y:o,fill:r}),i.jsx(ur,{x:u,y:o,fill:r})]}):i.jsxs(i.Fragment,{children:[i.jsx(dr,{d:`M80 148 Q${c-17} 148 ${c} ${o}`,fill:r}),i.jsx(dr,{d:`M140 148 Q${u+17} 148 ${u} ${o}`,fill:r})]})}function V6({pose:e,fill:n,asking:r}){return e==="thinking"?i.jsxs("g",{className:"robot__free-pose",children:[i.jsx(dr,{d:"M81 148 Q68 170 98 174",fill:n}),i.jsx(ur,{x:101,y:174,fill:n}),i.jsx(dr,{d:"M139 148 Q162 142 138 124",fill:n}),i.jsx(ur,{x:135,y:122,small:!0,fill:n})]}):e==="waiting"&&r?i.jsxs("g",{className:"robot__free-pose",children:[i.jsx(dr,{d:"M81 148 Q68 156 70 170",fill:n}),i.jsx(ur,{x:70,y:173,fill:n}),i.jsx(dr,{d:"M139 148 Q160 146 172 124",fill:n}),i.jsx(ur,{x:174,y:121,fill:n})]}):e==="waiting"?i.jsxs("g",{className:"robot__free-pose",children:[i.jsx(dr,{d:"M81 148 Q64 172 96 177",fill:n}),i.jsx(ur,{x:99,y:177,fill:n}),i.jsx(dr,{d:"M139 148 Q156 172 124 177",fill:n}),i.jsx(ur,{x:121,y:177,fill:n})]}):i.jsxs("g",{className:"robot__free-pose",children:[i.jsx(dr,{d:"M81 148 Q68 156 70 170",fill:n}),i.jsx(ur,{x:70,y:173,fill:n}),i.jsx(dr,{d:"M139 148 Q152 156 150 170",fill:n}),i.jsx(ur,{x:150,y:173,fill:n})]})}const W6={"claude-code":["#ffc4a8","#e07b54","#a8502f"],codex:["#9af0d6","#19b38c","#0b6e57"],gemini:["#b9d3ff","#4f8df5","#2456b3"],cursor:["#e2e8f0","#94a3b8","#475569"],copilot:["#b7f5d9","#34d399","#0f7a55"],other:["#b9a8ff","#7b62f0","#4a33b8"]};function q6({pose:e,kind:n="other",color:r,name:a,action:o,toolLabel:c,toolKind:u,part:h,loop:p,cardId:f,cardName:m,category:g,grabFrom:y,look:v=0,faceLeft:w=!1,scale:S=1,onSelectNode:j}){const b=Zp(e,m),P=x1[e],C=e==="waiting"&&/input|clarification|question/i.test(o),M=_.useRef(null),z=_.useRef(null),N=_.useRef(null),L=_.useRef(null),V=_.useRef(y);V.current=y;const[K,D]=_.useState(!1),I=_.useId().replace(/[^a-zA-Z0-9_-]/g,""),B=Kp[n],H=W6[n],Y=W=>`url(#${I}-${W})`;_.useLayoutEffect(()=>{const W=L.current;L.current=e,!(!W||W===e||!z.current||O2())&&z.current.animate([{transform:"none"},{transform:"translateY(5px) scale(1.07, .9)",offset:.25},{transform:"translateY(-9px) scale(.95, 1.06)",offset:.6},{transform:"none"}],{duration:H6,easing:"ease-out"})},[e]),_.useLayoutEffect(()=>{const W=b&&f?f:null;if(!W||N.current===W)return;N.current=W;const T=M.current,ve=T==null?void 0:T.closest(".forma-canvas"),te=V.current;if(!W||!T||!ve||!te||O2())return;const le=T.getBoundingClientRect(),je=ve.getBoundingClientRect(),we=te.x+te.w/2-(le.left-je.left+le.width/2),ce=te.y+te.h/2-(le.top-je.top+le.height/2),ge=Math.min(3,Math.max(.4,te.w/Math.max(1,le.width)));T.animate([{transform:`translate(${(w?-we:we)/S}px, ${ce/S}px) scale(${ge}) rotate(-8deg)`,opacity:.35},{transform:"translate(0, -10px) scale(1.04) rotate(3deg)",opacity:1,offset:.8},{transform:"translate(0, 0) scale(1)",opacity:1}],{duration:$2,easing:"cubic-bezier(.2, .8, .2, 1)"}),D(!0);const ee=setTimeout(()=>D(!1),$2);return()=>clearTimeout(ee)},[f,b,S]);const ne=(m&&g?Du[g]:null)??tu[e].icon,ie=U6[e]??ne,re=c&&u&&["reading","running"].includes(e)?{label:{mcp:"MCP",plugin:"Plugin",skill:"Skill",tool:"Tool"}[u],Icon:u==="skill"?dp:u==="tool"?Pp:ca}:null,$=m?{label:m,Icon:ne}:re??{label:b??tu[e].label,Icon:tu[e].icon},G=h?`${o} ${h}`:o,A=m?`in ${m}`:"",F=i.jsxs(i.Fragment,{children:[e==="reading"&&i.jsxs("svg",{className:"robot__book",viewBox:"0 0 112 76",preserveAspectRatio:"none","aria-hidden":!0,children:[i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:`${I}-book-left`,children:[i.jsx("stop",{stopColor:"#7d6bc8"}),i.jsx("stop",{offset:"1",stopColor:"#332769"})]}),i.jsxs("linearGradient",{id:`${I}-book-right`,children:[i.jsx("stop",{stopColor:"#4b3689"}),i.jsx("stop",{offset:"1",stopColor:"#8b68d2"})]})]}),i.jsx("path",{d:"M3 3 Q30 0 56 13 Q82 0 109 3 L107 61 Q79 59 56 72 Q31 60 5 61Z",fill:"#f5efff",stroke:"#c3b5ed",strokeWidth:"1"}),i.jsx("path",{d:"M7 0 Q32 2 56 13 Q82 2 105 0",fill:"none",stroke:"#fff",strokeWidth:"2"}),i.jsx("path",{d:"M1 7 Q29 7 56 17 L56 75 Q30 67 6 67 Q0 65 1 60Z",fill:Y("book-left"),stroke:"#aa8eed",strokeWidth:"1.3"}),i.jsx("path",{d:"M56 17 Q84 7 111 7 L110 61 Q110 66 105 67 Q77 67 56 75Z",fill:Y("book-right"),stroke:"#bb9aff",strokeWidth:"1.3"}),i.jsx("path",{d:"M56 18 L56 73",stroke:"#c4a6ff",strokeWidth:"2"}),i.jsxs("g",{fill:"#dbcaff",children:[i.jsx("path",{d:"M83 27 l13 7 -13 7 -13 -7Z"}),i.jsx("path",{d:"M70 40 l13 7 13 -7 v5 l-13 7 -13 -7Z"}),i.jsx("path",{d:"M70 50 l13 7 13 -7 v5 l-13 7 -13 -7Z"})]})]}),i.jsx("span",{className:"robot__tablet-icon",children:i.jsx(ie,{size:24,strokeWidth:2,"aria-hidden":!0})}),i.jsxs("span",{className:"robot__tablet-lines",children:[i.jsx("i",{}),i.jsx("i",{}),i.jsx("i",{})]}),i.jsx("span",{className:"robot__scan"}),i.jsxs("span",{className:"robot__prompt",children:[">",i.jsx("i",{children:"_"})]}),i.jsx("span",{className:"robot__ticks",children:[0,1,2].map(W=>i.jsx("i",{children:i.jsx(pr,{size:8,strokeWidth:4,"aria-hidden":!0})},W))}),i.jsx("span",{className:"robot__warn",children:i.jsx(an,{size:16,"aria-hidden":!0})}),i.jsx("span",{className:"robot__sparkle",children:i.jsx(Xn,{size:14,"aria-hidden":!0})}),i.jsx("span",{className:"robot__glare"})]});return i.jsxs("div",{className:"robot","data-kind":n,"data-face-left":w||void 0,"data-pose":e,"data-asking":C||void 0,"data-holding":b?"":void 0,"data-grabbing":K||void 0,"aria-label":`${a}: ${G} ${A}`.trim(),style:{"--agent-color":r,"--look":Math.max(-1,Math.min(1,v))},children:[i.jsx("div",{className:"robot__stage-box",style:{width:da*S,height:g1*S},children:i.jsx("div",{className:"robot__stage-scale",style:w?{transform:`translateX(${da*S}px) scale(${-S}, ${S})`}:S===1?void 0:{transform:`scale(${S})`},children:i.jsxs("div",{className:"robot__stage",ref:z,children:[i.jsx("div",{className:"robot__shadow"}),i.jsxs("svg",{className:"robot__bin",viewBox:"0 0 34 40","aria-hidden":!0,children:[i.jsx("path",{d:"M5 12 h24 l-3 25 q-.4 3 -3.4 3 h-11.2 q-3 0 -3.4 -3z"}),i.jsx("path",{className:"robot__bin-ribs",d:"M13 16 v19 M17 16 v19 M21 16 v19"}),i.jsxs("g",{className:"robot__bin-lid",children:[i.jsx("rect",{x:"2",y:"6",width:"30",height:"5",rx:"2.5"}),i.jsx("rect",{x:"13",y:"2",width:"8",height:"5",rx:"2"})]})]}),i.jsxs("div",{className:"robot__float",children:[i.jsxs("svg",{className:"robot__svg",viewBox:"0 0 220 240","aria-hidden":!0,children:[i.jsxs("defs",{children:[i.jsxs("radialGradient",{id:`${I}-shell`,cx:".36",cy:".24",r:".95",children:[i.jsx("stop",{offset:"0",stopColor:"#ffffff"}),i.jsx("stop",{offset:".5",stopColor:"#f0edfa"}),i.jsx("stop",{offset:".82",stopColor:"#d3cdea"}),i.jsx("stop",{offset:"1",stopColor:"#b4acd4"})]}),i.jsxs("linearGradient",{id:`${I}-limb`,gradientUnits:"userSpaceOnUse",x1:"0",y1:"120",x2:"0",y2:"196",children:[i.jsx("stop",{offset:"0",stopColor:"#ffffff"}),i.jsx("stop",{offset:"1",stopColor:"#d2cce9"})]}),i.jsxs("radialGradient",{id:`${I}-hand`,cx:".38",cy:".3",r:".8",children:[i.jsx("stop",{offset:"0",stopColor:"#ffffff"}),i.jsx("stop",{offset:".6",stopColor:"#f0edfa"}),i.jsx("stop",{offset:"1",stopColor:"#cbc4e3"})]}),i.jsxs("linearGradient",{id:`${I}-visor`,x1:"0",y1:"0",x2:"0",y2:"1",children:[i.jsx("stop",{offset:"0",stopColor:"#262038"}),i.jsx("stop",{offset:".5",stopColor:"#0f0c1a"}),i.jsx("stop",{offset:"1",stopColor:"#17122a"})]}),i.jsxs("radialGradient",{id:`${I}-ear`,cx:".4",cy:".35",r:".8",children:[i.jsx("stop",{offset:"0",stopColor:H[0]}),i.jsx("stop",{offset:".55",stopColor:H[1]}),i.jsx("stop",{offset:"1",stopColor:H[2]})]}),i.jsxs("radialGradient",{id:`${I}-glow`,cx:".5",cy:".5",r:".5",children:[i.jsx("stop",{offset:"0",stopColor:H[1],stopOpacity:".8"}),i.jsx("stop",{offset:"1",stopColor:H[1],stopOpacity:"0"})]}),i.jsxs("filter",{id:`${I}-bloom`,x:"-60%",y:"-60%",width:"220%",height:"220%",children:[i.jsx("feGaussianBlur",{stdDeviation:"2.6",result:"b"}),i.jsxs("feMerge",{children:[i.jsx("feMergeNode",{in:"b"}),i.jsx("feMergeNode",{in:"b"}),i.jsx("feMergeNode",{in:"SourceGraphic"})]})]})]}),i.jsx("ellipse",{cx:"110",cy:"214",rx:"46",ry:"14",fill:Y("glow"),className:"robot__aura"}),i.jsx("ellipse",{className:"robot__ring",cx:"110",cy:"206",rx:"15",ry:"4.5",filter:Y("bloom")}),i.jsx("path",{d:"M110 117 C132 117 147 133 147 159 C147 186 131 202 110 202 C89 202 73 186 73 159 C73 133 88 117 110 117Z",fill:Y("shell"),className:"robot__body"}),i.jsxs("g",{className:"robot__badge",children:[i.jsx("rect",{x:"96",y:"139",width:"28",height:"25",rx:"8",fill:Y("visor")}),B?i.jsx("g",{className:"robot__badge-mark",children:i.jsx("path",{d:B.d,fill:B.fill,transform:"translate(101.5 143) scale(.708)"})}):i.jsx("text",{x:"110",y:"157",textAnchor:"middle",fill:"#c7a5ff",fontSize:"16",fontWeight:"800",fontStyle:"italic",children:"K"})]}),i.jsx("ellipse",{cx:"110",cy:"119",rx:"17",ry:"5",className:"robot__neck"}),i.jsxs("g",{className:"robot__head",children:[i.jsxs("g",{className:"robot__antenna",children:[i.jsx("line",{className:"robot__antenna-stem",x1:"110",y1:"29",x2:"110",y2:"15"}),i.jsx("circle",{className:"robot__antenna-glow",cx:"110",cy:"10",r:"11"}),i.jsx("circle",{className:"robot__antenna-bulb",cx:"110",cy:"10",r:"6.5"}),i.jsx("circle",{cx:"108",cy:"8",r:"1.8",fill:"#fff",opacity:".8"})]}),i.jsx("ellipse",{cx:"44",cy:"76",rx:"9",ry:"17",fill:Y("ear"),className:"robot__ear"}),i.jsx("ellipse",{cx:"176",cy:"76",rx:"9",ry:"17",fill:Y("ear"),className:"robot__ear"}),i.jsx("ellipse",{cx:"39.5",cy:"75",rx:"2.5",ry:"9",className:"robot__ear-core"}),i.jsx("ellipse",{cx:"180.5",cy:"75",rx:"2.5",ry:"9",className:"robot__ear-core"}),i.jsx("rect",{x:"46",y:"27",width:"128",height:"94",rx:"45",fill:Y("shell"),className:"robot__head-shell"}),i.jsx("rect",{x:"61",y:"47",width:"98",height:"58",rx:"27",fill:Y("visor"),className:"robot__visor"}),i.jsxs("g",{transform:"translate(-2 7)",children:[i.jsxs("g",{className:"robot__face",filter:Y("bloom"),children:[i.jsxs("g",{className:"robot__eyes",children:[i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--open",children:[i.jsx("ellipse",{cx:"94",cy:"70",rx:"7",ry:"10"}),i.jsx("ellipse",{cx:"130",cy:"70",rx:"7",ry:"10"})]}),i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--happy",children:[i.jsx("path",{d:"M85 74 q9 -13 18 0"}),i.jsx("path",{d:"M121 74 q9 -13 18 0"})]}),i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--fierce",children:[i.jsx("path",{d:"M86 64 Q95 66 103 71 Q102 80 94 80 Q86 79 86 64Z"}),i.jsx("path",{d:"M138 64 Q129 66 121 71 Q122 80 130 80 Q138 79 138 64Z"})]}),i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--closed",children:[i.jsx("path",{d:"M85 70 q9 7 18 0"}),i.jsx("path",{d:"M121 70 q9 7 18 0"})]}),i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--x",children:[i.jsx("path",{d:"M88 64 l12 12 M100 64 l-12 12"}),i.jsx("path",{d:"M124 64 l12 12 M136 64 l-12 12"})]}),i.jsxs("g",{className:"robot__eye-pair robot__eye-pair--checks",children:[i.jsx("path",{d:"M86 70 l6 6 11 -13"}),i.jsx("path",{d:"M122 70 l6 6 11 -13"})]})]}),i.jsx("circle",{className:"robot__glint",cx:"92",cy:"65",r:"2.2"}),i.jsx("circle",{className:"robot__glint",cx:"128",cy:"65",r:"2.2"})]}),i.jsx("path",{className:"robot__smile",d:"M105 87 Q112 93 119 87"})]})]}),i.jsx("g",{className:"robot__accent",children:i.jsx("path",{d:"M178 28 l6 -9 M186 38 l10 -4"})}),i.jsxs("g",{className:"robot__bubble",children:[i.jsx("ellipse",{cx:"192",cy:"22",rx:"22",ry:"16"}),i.jsx("circle",{cx:"180",cy:"44",r:"4.5"}),i.jsx("circle",{cx:"174",cy:"53",r:"2.6"}),i.jsxs("g",{className:"robot__dots",children:[i.jsx("circle",{cx:"183",cy:"22",r:"3"}),i.jsx("circle",{cx:"192",cy:"22",r:"3"}),i.jsx("circle",{cx:"201",cy:"22",r:"3"})]})]}),i.jsxs("text",{className:"robot__zzz",x:"170",y:"32",children:["z",i.jsx("tspan",{dy:"-9",fontSize:"14",children:"z"}),i.jsx("tspan",{dy:"-8",fontSize:"10",children:"z"})]}),i.jsx("g",{className:"robot__stars-head",children:i.jsx("path",{d:Qs(188,26,9)})}),i.jsxs("g",{className:"robot__smoke",children:[i.jsx("circle",{cx:"96",cy:"22",r:"7"}),i.jsx("circle",{cx:"122",cy:"18",r:"8"}),i.jsx("circle",{cx:"108",cy:"12",r:"6"})]}),i.jsxs("g",{className:"robot__steam",children:[i.jsx("circle",{cx:"40",cy:"46",r:"5"}),i.jsx("circle",{cx:"180",cy:"46",r:"5"}),i.jsx("circle",{cx:"36",cy:"38",r:"3.5"}),i.jsx("circle",{cx:"184",cy:"38",r:"3.5"})]}),i.jsxs("g",{className:"robot__sign",children:[i.jsx("line",{className:"robot__antenna-stem",x1:"175",y1:"120",x2:"186",y2:"76"}),i.jsx("rect",{x:"164",y:"32",width:"50",height:"44",rx:"12",transform:"rotate(8 189 54)"}),i.jsx("text",{x:"189",y:"65",textAnchor:"middle",transform:"rotate(8 189 54)",children:"?"})]})]}),b&&i.jsxs("div",{className:"robot__grip",children:[i.jsx("svg",{className:"robot__svg robot__grip-back",viewBox:"0 0 220 240","aria-hidden":!0,children:i.jsx(B2,{pose:e,fill:Y("limb")})}),i.jsx("div",{className:"robot__held",style:P?{left:P.x,top:P.y,width:P.w,height:P.h}:void 0,children:i.jsx("div",{className:"robot__held-fly",ref:M,children:f?i.jsx("button",{type:"button",className:"robot__tablet","data-node-id":f,title:`Select ${m}`,onClick:W=>{W.detail===0&&(j==null||j(f))},children:F}):i.jsx("div",{className:"robot__tablet",children:F})})}),i.jsx("svg",{className:"robot__svg robot__grip-front",viewBox:"0 0 220 240","aria-hidden":!0,children:i.jsx(B2,{pose:e,fill:Y("limb"),front:!0})})]}),i.jsxs("svg",{className:"robot__svg robot__svg--arms",viewBox:"0 0 220 240","aria-hidden":!0,children:[!b&&i.jsx(V6,{pose:e,fill:Y("limb"),asking:C}),i.jsxs("g",{className:"robot__stars",children:[i.jsx("path",{d:Qs(36,126,9)}),i.jsx("path",{d:Qs(190,118,7)}),i.jsx("path",{d:Qs(30,196,6)}),i.jsx("path",{d:Qs(194,196,10)})]}),i.jsxs("g",{className:"robot__dust",children:[i.jsx("circle",{cx:"196",cy:"198",r:"5"}),i.jsx("circle",{cx:"206",cy:"194",r:"4"}),i.jsx("circle",{cx:"188",cy:"194",r:"3.5"})]})]})]})]})})}),i.jsxs("div",{className:"robot__caption",children:[i.jsxs("span",{className:"robot__chip",children:[i.jsx($.Icon,{size:13,"aria-hidden":!0}),i.jsx("span",{children:$.label})]}),i.jsx("span",{className:"robot__action",children:G}),c&&i.jsx("span",{className:"agent-tool-usage",title:c,children:c}),p?i.jsxs("span",{className:"robot__loop","data-kind":p.kind??"read",title:p.title,children:[p.kind==="sign-in"?i.jsx(l1,{size:12,strokeWidth:2.2,"aria-hidden":!0}):p.kind==="fail"?i.jsx(an,{size:12,strokeWidth:2.2,"aria-hidden":!0}):i.jsx(u1,{size:12,strokeWidth:2.2,"aria-hidden":!0}),Dp(p)]}):A&&i.jsx("span",{className:"robot__where",children:A}),i.jsxs("span",{className:"robot__name",children:[i.jsx("i",{}),B&&i.jsx(Gt,{kind:n,size:12}),a]})]})]})}const K6=["interface","api","data","application"],Q6=[{id:"use",title:"Features",roles:["feature"],categories:["feature","frontend","auth","payments","integration","backend","data","other"]},{id:"foundation",title:"Technical foundation",roles:["foundation"],categories:[],ids:K6},{id:"ship",title:"Quality & delivery",roles:["quality"],categories:["testing","infrastructure"],ids:["delivery"]}],Z6=4,Zs=48,G6=.8,Y6=44,X6=28,nu=28,J6=58,e7=24;function t7(e,n,r,a,o=1/0){const c=Math.max(1,Math.min(Z6,Math.floor((o/G6-2*nu+Zs)/(ts+Zs)))),u=a.findIndex(M=>M.categories.includes("other")),h=M=>{const z=a.findIndex(V=>{var K;return(K=V.ids)==null?void 0:K.includes(M.id)});if(z>=0)return z;const N=M.role?a.findIndex(V=>{var K;return(K=V.roles)==null?void 0:K.includes(M.role)}):-1;if(N>=0)return N;const L=a.findIndex(V=>V.categories.includes(M.category));return L>=0?L:Math.max(u,0)},p=[...e].sort((M,z)=>M.position.y-z.position.y||M.position.x-z.position.x),f=a.map(()=>[]);for(const M of p)f[h(M)].push(M);const m=new Map;for(const M of n)M.source!==M.target&&(m.set(M.source,[...m.get(M.source)??[],M.target]),m.set(M.target,[...m.get(M.target)??[],M.source]));const g=new Map,y=()=>f.forEach((M,z)=>M.forEach((N,L)=>g.set(N.id,{lane:z,at:L/Math.max(M.length-1,1)})));y();const v=(M,z)=>{const N=f[M],L=new Map;N.forEach((V,K)=>{const D=(m.get(V.id)??[]).map(I=>g.get(I)).filter(I=>I&&z(I.lane)).map(I=>I.at);L.set(V.id,D.length?D.reduce((I,B)=>I+B,0)/D.length:K/Math.max(N.length-1,1))}),N.sort((V,K)=>L.get(V.id)-L.get(K.id)),y()};for(const M of[!0,!1,!0]){const z=a.map((N,L)=>L);for(const N of M?z.slice(1):z.reverse().slice(1))v(N,L=>M?L<N:L>N)}const w=f.map(M=>{const z=[];for(let N=0;N<M.length;N+=c)z.push(M.slice(N,N+c));return z}),S=Math.max(1,...w.flat().map(M=>M.length)),j=S*ts+(S-1)*Zs,b=new Map,P=[];let C=0;return a.forEach((M,z)=>{if(!f[z].length)return;const N=C;C+=J6,w[z].forEach((L,V)=>{const K=L.length*ts+(L.length-1)*Zs,D=(j-K)/2;L.forEach((I,B)=>b.set(I.id,{x:Math.round(D+B*(ts+Zs)),y:Math.round(C)})),C+=Math.max(...L.map(I=>r.get(I.id)??Hp)),V<w[z].length-1&&(C+=Y6)}),C+=e7,P.push({id:M.id,title:M.title,count:f[z].length,x:-nu,y:N,w:j+nu*2,h:C-N}),C+=X6}),{positions:b,bands:P}}const Al=1.2,Pl=80,n7=260,r7=[],H2=[],U2=[],i7=[],V2="canvas:followAgent",W2="canvas:animateAgents",s7="Watch work happen. Select a component for details.",a7=44;function l7({nodes:e,edges:n,agents:r,selectedNodeId:a,onSelectNode:o,searchQuery:c,showRemoved:u=!0,statusFilter:h=r7,className:p,recentChanges:f,focusNodeIds:m,revealNodeId:g,checkRun:y,onRunChecks:v,editConflicts:w=U2,agentAlerts:S=i7}){const[j,b]=_.useState(Date.now);_.useEffect(()=>{const Q=window.setInterval(()=>b(Date.now()),5e3);return()=>window.clearInterval(Q)},[]);const P=_.useRef(null),[C,M]=_.useState({x:0,y:0,k:1}),z=_.useRef(C),[N,L]=_.useState(null),V=_.useRef(N),[K,D]=_.useState(()=>new Map),[I,B]=_.useState(null),[H,Y]=_.useState(!1),ne=_.useRef(null),ie=_.useRef(!1),re=_.useRef(!1),$=_.useRef(),G=_.useCallback((Q,oe=!1)=>{z.current=Q,M(Q),window.clearTimeout($.current),Y(oe),oe&&($.current=window.setTimeout(()=>Y(!1),n7))},[]);_.useEffect(()=>()=>window.clearTimeout($.current),[]);const A=_.useMemo(()=>u?e:e.filter(Q=>Q.status!=="removed"),[e,u]),F=_.useMemo(()=>{const Q=new Set(A.map(me=>me.id)),oe=n.filter(me=>Q.has(me.source)&&Q.has(me.target)&&me.state!=="removed");return t7(A,oe,K,Q6,N==null?void 0:N.w)},[A,n,K,N==null?void 0:N.w]),W=_.useMemo(()=>{const Q=new Map;return e.forEach((oe,me)=>Q.set(oe.id,F.positions.get(oe.id)??B5(oe,me))),Q},[e,F]),T=_.useMemo(()=>{const Q=new Map;for(const oe of A){const me=W.get(oe.id);Q.set(oe.id,{x:me.x,y:me.y,w:ts,h:K.get(oe.id)??Hp})}return Q},[A,W,K]),ve=_.useMemo(()=>new Set(e.filter(Q=>Q.status==="removed").map(Q=>Q.id)),[e]),te=_.useMemo(()=>n.filter(Q=>T.has(Q.source)&&T.has(Q.target)&&(u||Q.state!=="removed")),[n,T,u]),le=c.trim().length>0,je=h.length>0,{dimmedIds:we,matchedIds:ce}=_.useMemo(()=>{const Q=new Set,oe=new Set,me=m!=null&&m.length?new Set(m):null;for(const ye of A){if(me){me.has(ye.id)?oe.add(ye.id):Q.add(ye.id);continue}const Me=!le||H5(ye,c),Re=!je||h.includes(ye.status);!Me||!Re?Q.add(ye.id):le&&oe.add(ye.id)}return{dimmedIds:Q,matchedIds:oe}},[A,le,je,c,h,m]),ge=_.useMemo(()=>{const Q=new Map,oe=(ye,Me,Re)=>ye.set(Me,[...ye.get(Me)??[],Re]);for(const ye of r)if(!(ye.state==="disconnected"||!ye.workingNodeIds&&(!Xr(ye).length||ye.locationConfidence==="unknown")))for(const Re of Ip(ye)){const De=Nn(ye,Re);De.current&&!De.held&&oe(Q,Re,ye)}const me=(ye,Me)=>+(Me.state==="active")-+(ye.state==="active")||+!Me.workFinished-+!ye.workFinished||+(Me.locationConfidence==="confirmed")-+(ye.locationConfidence==="confirmed")||Date.parse(Me.lastSeenAt)-Date.parse(ye.lastSeenAt);for(const[ye,Me]of Q)Me.sort((Re,De)=>Number(Nn(De,ye).current)-Number(Nn(Re,ye).current)||Number(Nn(De,ye).live)-Number(Nn(Re,ye).live)||me(Re,De));return Q},[r]),ee=_.useMemo(()=>{var oe;const Q=new Map;for(const me of r)for(const ye of((oe=me.readLoop)==null?void 0:oe.nodeIds)??[])Ql(me,ye)&&Q.set(ye,[...Q.get(ye)??[],me]);return Q},[r]),Ae=_.useMemo(()=>{const Q=new Map;for(const oe of w)oe.nodeId&&Q.set(oe.nodeId,[...Q.get(oe.nodeId)??[],oe]);return Q},[w]),Ze=_.useMemo(()=>[...ge].some(([Q,oe])=>T.has(Q)&&oe.some(me=>Nn(me,Q).live)),[ge,T]),[mt,tt]=_.useState(()=>fr(V2,!1)),xt=_.useCallback(()=>{tt(Q=>(En(V2,!Q),!Q))},[]),[Xt,zn]=_.useState(()=>fr(W2,!1)),Jt=_.useCallback(()=>{zn(Q=>(En(W2,!Q),!Q))},[]),Lt=_.useRef(null),rt=_.useMemo(()=>r.filter(oe=>oe.state==="active"&&!oe.locationIsHeld).map(oe=>({agent:oe,nodeId:Xr(oe).find(me=>T.has(me))??null})).filter(oe=>oe.nodeId!==null).sort((oe,me)=>+(me.agent.id===Lt.current)-+(oe.agent.id===Lt.current)||Date.parse(me.agent.lastSeenAt)-Date.parse(oe.agent.lastSeenAt)||+(me.agent.locationConfidence==="confirmed")-+(oe.agent.locationConfidence==="confirmed"))[0]??null,[r,T]);Lt.current=(rt==null?void 0:rt.agent.id)??null;const Et=_.useMemo(()=>e.some(Q=>Q.origin==="sample")||r.some(Q=>Q.isSample),[e,r]);_.useLayoutEffect(()=>{const Q=P.current;if(!Q)return;const oe=new ResizeObserver(([me])=>{const ye=Math.round(me.contentRect.width),Me=Math.round(me.contentRect.height),Re=V.current;if(!(Re&&Re.w===ye&&Re.h===Me)&&(V.current={w:ye,h:Me},L({w:ye,h:Me}),Re&&ie.current)){const De=z.current;G({...De,x:De.x+(ye-Re.w)/2,y:De.y+(Me-Re.h)/2})}});return oe.observe(Q),()=>oe.disconnect()},[G]);const It=_.useMemo(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(Q=>{D(oe=>{let me=null;for(const ye of Q){const Me=ye.target,Re=Me.dataset.nodeId;if(!Re)continue;const De=Me.offsetHeight;oe.get(Re)!==De&&(me??(me=new Map(oe)),me.set(Re,De))}return me??oe})}),[]);_.useEffect(()=>()=>It==null?void 0:It.disconnect(),[It]);const Rt=_.useRef(null);_.useLayoutEffect(()=>{const Q=Rt.current;!Q||!It||Q.querySelectorAll("[data-node-id]").forEach(oe=>It.observe(oe))},[A,It]);const Dt=_.useCallback(Q=>{const oe=V.current,me=Wp([...T.values(),...(F==null?void 0:F.bands)??[]]);if(!oe||!me||oe.w===0||oe.h===0)return;const ye=a7;G(G5({...me,y:me.y-ye,h:me.h+ye},oe.w,oe.h),Q)},[T,F,G]),ln=_.useRef(Dt);ln.current=Dt;const J=_.useMemo(()=>A.map(Q=>Q.id).sort().join("|"),[A]),he=_.useRef(!1);_.useLayoutEffect(()=>{!N||!J||(ie.current=!1,re.current=!0,ln.current(he.current),he.current=!0)},[J,N!==null]),_.useLayoutEffect(()=>{N&&!ie.current&&he.current&&ln.current(!1)},[N]),_.useLayoutEffect(()=>{!re.current||ie.current||A.every(Q=>K.has(Q.id))&&(re.current=!1,ln.current(!1))},[K,A]);const Se=_.useCallback((Q,oe,me,ye=!1)=>{const Me=z.current,Re=V.current,De=oe??(Re?Re.w/2:0),St=me??(Re?Re.h/2:0),yn=Fu(Me.k*Q,Up,Vp);yn!==Me.k&&(ie.current=!0,G({k:yn,x:De-(De-Me.x)*(yn/Me.k),y:St-(St-Me.y)*(yn/Me.k)},ye))},[G]),ze=_.useCallback((Q,oe,me)=>{const ye=V.current;if(!ye)return;const Me=z.current;ie.current=!0,G({k:Me.k,x:ye.w/2-Q*Me.k,y:ye.h/2-oe*Me.k},me)},[G]),Qe=_.useCallback(Q=>{const oe=T.get(Q),me=V.current;if(!oe||!me)return;const ye=z.current,Me=32,Re=oe.x*ye.k+ye.x,De=(oe.y-16)*ye.k+ye.y,St=(oe.x+oe.w)*ye.k+ye.x,yn=(oe.y+oe.h)*ye.k+ye.y;let wt=0,Mn=0;Re<Me?wt=Me-Re:St>me.w-Me&&(wt=Math.max(Me-Re,me.w-Me-St)),De<Me?Mn=Me-De:yn>me.h-Me&&(Mn=Math.max(Me-De,me.h-Me-yn)),(wt||Mn)&&G({...ye,x:ye.x+wt,y:ye.y+Mn},!0)},[T,G]),Ke=_.useRef(T);Ke.current=T;const lt=mt&&N?(rt==null?void 0:rt.nodeId)??null:null;_.useEffect(()=>{const Q=lt?Ke.current.get(lt):void 0;Q&&ze(Q.x+Q.w/2,Q.y+Q.h/2,!0)},[lt,J,ze]),_.useEffect(()=>{a&&Qe(a)},[a]),_.useEffect(()=>{g&&Qe(g)},[g]),_.useEffect(()=>{const Q=P.current;if(!Q)return;const oe=me=>{me.preventDefault();const ye=Q.getBoundingClientRect(),Me=me.deltaMode===1?16:me.deltaMode===2?ye.height:1,Re=Fu(me.deltaY*Me,-120,120);Se(Math.exp(-Re*(me.ctrlKey?.01:.0018)),me.clientX-ye.left,me.clientY-ye.top)};return Q.addEventListener("wheel",oe,{passive:!1}),()=>Q.removeEventListener("wheel",oe)},[Se]);const yt=Q=>{Q.button===0&&(Q.target.closest("[data-node-id]")||(Q.preventDefault(),Q.currentTarget.focus({preventScroll:!0}),Q.currentTarget.setPointerCapture(Q.pointerId),ne.current={pointerId:Q.pointerId,startX:Q.clientX,startY:Q.clientY,origin:z.current,moved:!1}))},en=Q=>{const oe=ne.current;if(!oe||oe.pointerId!==Q.pointerId)return;const me=Q.clientX-oe.startX,ye=Q.clientY-oe.startY;!oe.moved&&Math.hypot(me,ye)<3||(oe.moved=!0,ie.current=!0,G({...oe.origin,x:oe.origin.x+me,y:oe.origin.y+ye}))},Vt=Q=>{const oe=ne.current;!oe||oe.pointerId!==Q.pointerId||(ne.current=null,oe.moved||o(null))},Ft=()=>{const Q=P.current;if(!Q||!Q.scrollLeft&&!Q.scrollTop)return;const oe=z.current,me={...oe,x:oe.x-Q.scrollLeft,y:oe.y-Q.scrollTop};Q.scrollLeft=0,Q.scrollTop=0,G(me)},se=Q=>{if(Q.key==="Escape"){a!==null&&(Q.stopPropagation(),o(null));return}if(Q.target!==P.current||Q.metaKey||Q.ctrlKey||Q.altKey)return;const oe=z.current,me=(ye,Me)=>{ie.current=!0,G({...oe,x:oe.x+ye,y:oe.y+Me},!0)};switch(Q.key){case"ArrowLeft":me(Pl,0);break;case"ArrowRight":me(-Pl,0);break;case"ArrowUp":me(0,Pl);break;case"ArrowDown":me(0,-Pl);break;case"+":case"=":Se(Al,void 0,void 0,!0);break;case"-":case"_":Se(1/Al,void 0,void 0,!0);break;case"0":Dt(!0);break;case"f":case"F":xt();break;default:return}Q.preventDefault()},Be=A.length-we.size,Ie=I??a,Ve=N!==null,Fe=_.useMemo(()=>{const Q=new Set(Ie?[Ie]:[]);for(const[me,ye]of ge)ye.some(Me=>Nn(Me,me).live)&&Q.add(me);const oe=new Set((f==null?void 0:f.edges)??[]);return te.filter(me=>Q.has(me.source)||Q.has(me.target)||oe.has(me.id))},[te,Ie,ge,f]),Xe=_.useMemo(()=>new Set((f==null?void 0:f.edges)??[]),[f]);let vt=null;return e.length>0&&A.length===0?vt={title:"All components are hidden",body:'Every component here is removed. Turn on "Show removed" to see them.'}:A.length>0&&Be===0&&(vt=le?{title:`No components match “${c.trim()}”`,body:"Search covers names, descriptions, features and file paths. Clear the search to see everything."}:{title:"No components with the selected status",body:"Change or clear the status filter to see components."}),i.jsxs("div",{className:["forma-canvas",H&&"is-animating",Ze&&"has-live-agent",p].filter(Boolean).join(" "),"data-testid":"architecture-canvas",onKeyDown:se,children:[i.jsx("div",{ref:P,className:"forma-canvas__viewport",tabIndex:0,role:"application","aria-roledescription":"architecture map","aria-label":"Architecture map. Drag or use arrow keys to pan, plus and minus to zoom, 0 to fit, F to follow the working agent. Tab to move between components.",onPointerDown:yt,onPointerMove:en,onPointerUp:Vt,onPointerCancel:()=>ne.current=null,onScroll:Ft,style:{backgroundPosition:`${C.x}px ${C.y}px`,backgroundSize:`${22*C.k}px ${22*C.k}px`},children:i.jsxs("div",{ref:Rt,className:"forma-canvas__world",style:{transform:`translate(${C.x}px, ${C.y}px) scale(${C.k})`,visibility:Ve?void 0:"hidden"},children:[F.bands.map(Q=>i.jsx("div",{className:"forma-canvas__lane",style:{transform:`translate(${Q.x}px, ${Q.y}px)`,width:Q.w,height:Q.h},"aria-hidden":!0,children:i.jsxs("span",{className:"forma-canvas__lane-title",children:[Q.title,i.jsx("span",{className:"forma-canvas__lane-count",children:Q.count})]})},Q.id)),i.jsx(k6,{edges:Fe,rects:T,focusId:Ie,changedIds:Xe,dimmedIds:we,removedIds:ve}),A.map(Q=>i.jsx(d6,{node:Q,position:W.get(Q.id),agents:ge.get(Q.id)??H2,rereading:ee.get(Q.id)??H2,conflicts:Ae.get(Q.id)??U2,allAgents:r,now:j,selected:Q.id===a,dimmed:we.has(Q.id),matched:ce.has(Q.id),change:f==null?void 0:f.nodes[Q.id],onSelect:o,onHover:B,onFocusCard:Qe},Q.id))]})}),Xt&&N&&i.jsx(O6,{agents:r,nodes:A,rects:T,view:C,size:N,now:j,onSelectNode:o}),y&&i.jsxs("button",{type:"button",className:"forma-canvas__package-check",onClick:v,"data-running":!y.finishedAt||void 0,title:"These commands run against packages. They do not establish which individual components passed or failed.",children:[y.finishedAt?y.stale?i.jsx(Gr,{size:19,"aria-hidden":!0}):y.status==="failed"?i.jsx(an,{size:19,"aria-hidden":!0}):y.status==="passed"?i.jsx(Ei,{size:19,"aria-hidden":!0}):i.jsx(Gr,{size:19,"aria-hidden":!0}):i.jsx(io,{size:19,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:y.finishedAt?y.stale?"Package results outdated":`Package checks ${y.status}`:"Package checks running"}),i.jsx("small",{children:"Component coverage unknown"})]})]}),e.length===0&&i.jsxs("div",{className:"forma-canvas__empty",role:"status",children:[i.jsx("span",{className:"forma-canvas__empty-icon","aria-hidden":!0,children:i.jsx(s1,{size:26,strokeWidth:1.5})}),i.jsx("p",{className:"forma-canvas__empty-title",children:"No architecture yet"}),i.jsx("p",{className:"forma-canvas__empty-body",children:"Connect a local project or describe the product you want to build, and its components will appear here."})]}),vt&&i.jsxs("div",{className:"forma-canvas__notice",role:"status",children:[i.jsx(p5,{size:16,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:vt.title}),i.jsx("span",{children:vt.body})]})]}),i.jsx("span",{className:"forma-canvas__sr","aria-live":"polite",children:le||je?`${Be} of ${A.length} components match.`:""}),e.length>0&&i.jsxs("div",{className:"forma-canvas__topleft",children:[i.jsxs("div",{className:"forma-canvas__topleft-row",children:[Et&&i.jsx("span",{className:"forma-canvas__sample",title:"This map shows bundled sample data, not a real project.",children:"Sample data"}),N&&N.w>=640&&i.jsx("p",{className:"forma-canvas__view-hint",children:s7})]}),i.jsx(i6,{conflicts:w,agents:r,nodes:e,onSelectNode:o}),i.jsx(x6,{alerts:S,agents:r,nodes:e,onSelectNode:o}),i.jsx(h6,{agents:r,nodes:e,onSelectNode:o})]}),N&&A.length>0&&i.jsxs(i.Fragment,{children:[i.jsx(N6,{defaultOpen:!1}),i.jsxs("div",{className:"forma-canvas__dock",children:[N.w>=720&&N.h>=420&&A.length>1&&i.jsx(w6,{nodes:A,rects:T,view:C,viewport:N,dimmedIds:we,selectedNodeId:a,onCenter:(Q,oe)=>ze(Q,oe,!1)}),i.jsx(b6,{on:Xt,onToggle:Jt}),i.jsx(_6,{following:mt,target:rt&&{name:rt.agent.name,color:rt.agent.color,likely:!Nn(rt.agent,rt.nodeId).certain},onToggle:xt}),i.jsx(j6,{zoom:C.k,onZoomIn:()=>Se(Al,void 0,void 0,!0),onZoomOut:()=>Se(1/Al,void 0,void 0,!0),onReset:()=>Se(1/C.k,void 0,void 0,!0),onFit:()=>{ie.current=!1,Dt(!0)}})]})]})]})}const o7=["M433 741 Q450 733 468 742 L604 813 Q625 824 646 813 L780 742 Q795 733 812 742 L909 791 Q933 803 927 823 Q924 837 908 845 L651 972 Q625 987 600 972 L340 844 Q320 835 320 815 Q320 798 340 787 Z","M435 559 Q454 549 471 559 L605 632 Q625 644 644 632 L778 559 Q795 550 812 559 L906 609 Q925 618 925 636 Q925 652 907 661 L652 794 Q626 809 604 794 L344 660 Q324 650 324 636 Q324 620 343 609 Z","M601 290 Q625 277 647 290 L893 425 Q923 441 901 461 Q898 465 890 469 L654 603 Q625 620 597 603 L352 468 Q331 456 340 437 Q343 430 352 425 Z"],c7=["M625 447 V657","M586 676 H550 Q472 676 472 750 V812","M661 676 H698 Q778 676 778 750 V812"],u7=[[587,390,75,74,21],[581,625,87,89,23],[435,792,72,68,23],[742,792,72,68,23]];function ef({size:e=28}){const n=_.useId().replace(/:/g,"");return i.jsxs("svg",{width:e,height:e,viewBox:"261 267 730 730","aria-hidden":!0,focusable:"false",style:{flex:"none",display:"block"},children:[i.jsxs("defs",{children:[i.jsxs("linearGradient",{id:`${n}l`,x1:"0",y1:"0",x2:"1",y2:"1",children:[i.jsx("stop",{offset:"0",style:{stopColor:"var(--brand-layer-from)"}}),i.jsx("stop",{offset:"1",style:{stopColor:"var(--brand-layer-to)"}})]}),i.jsxs("linearGradient",{id:`${n}c`,gradientUnits:"userSpaceOnUse",x1:"420",y1:"400",x2:"800",y2:"840",children:[i.jsx("stop",{offset:"0",style:{stopColor:"var(--brand-node-from)"}}),i.jsx("stop",{offset:"1",style:{stopColor:"var(--brand-node-to)"}})]})]}),o7.map(r=>i.jsx("path",{fill:`url(#${n}l)`,d:r},r)),i.jsx("g",{fill:"none",stroke:`url(#${n}c)`,strokeWidth:"21",strokeLinecap:"round",strokeLinejoin:"round",children:c7.map(r=>i.jsx("path",{d:r},r))}),i.jsx("g",{fill:`url(#${n}c)`,children:u7.map(([r,a,o,c,u])=>i.jsx("rect",{x:r,y:a,width:o,height:c,rx:u},`${r},${a}`))})]})}const d7=[{id:"architecture",label:"Map",icon:ql},{id:"activity",label:"Activity",icon:oa},{id:"history",label:"History",icon:Yr},{id:"integrations",label:"Agents",icon:ca}],tf={architecture:"Architecture",activity:"Activity",history:"History",integrations:"Integrations",settings:"Settings"};function h7({view:e,onNavigate:n,unseenActivity:r,pro:a,onEdition:o}){const c=({id:u,label:h,icon:p})=>i.jsxs("button",{type:"button",className:"nav-item","aria-current":e===u?"page":void 0,title:tf[u],onClick:()=>n(u),children:[i.jsxs("span",{className:"nav-item__icon",children:[i.jsx(p,{size:18,"aria-hidden":!0}),u==="activity"&&r>0&&i.jsx("span",{className:"nav-item__badge","aria-label":`${r} new`,children:r>9?"9+":r})]}),i.jsx("span",{className:"nav-item__label",children:h})]},u);return i.jsxs("nav",{className:"sidebar","aria-label":"Main",children:[i.jsx("div",{className:"sidebar__logo","aria-label":"Kalvyr",children:i.jsx(ef,{})}),i.jsx("div",{className:"sidebar__group",children:d7.map(c)}),i.jsxs("div",{className:"sidebar__group sidebar__group--end",children:[i.jsxs("button",{type:"button",className:"nav-item",title:a?"Kalvyr Pro · manage edition":"Explore Kalvyr Pro",onClick:o,"aria-label":a?"Manage Pro edition":"Explore Kalvyr Pro",children:[i.jsx("span",{className:"nav-item__icon",children:i.jsx(Xn,{size:18})}),i.jsx("span",{className:"nav-item__label",children:a?"Pro":"Go Pro"})]}),c({id:"settings",label:"Settings",icon:Lu})]})]})}const ru=280,Gs=200,iu=480,su="proSidebarWidth";function p7(){const e=_.useRef(null),n=_.useRef(null),[r,a]=_.useState(()=>{const g=fr(su,ru);return Number.isFinite(g)?Math.max(Gs,Math.min(iu,g)):ru}),o=_.useRef(r),[c,u]=_.useState(0),h=c?Math.max(Gs,Math.min(iu,c-480)):iu,p=Math.min(h,r);_.useLayoutEffect(()=>{var w;const g=(w=e.current)==null?void 0:w.closest(".app");if(!g)return;const y=()=>u(g.clientWidth),v=new ResizeObserver(y);return v.observe(g),y(),()=>{v.disconnect(),g.style.removeProperty("--pro-sidebar-width"),delete g.dataset.sidebarResizing}},[]),_.useLayoutEffect(()=>{var g,y;(y=(g=e.current)==null?void 0:g.closest(".app"))==null||y.style.setProperty("--pro-sidebar-width",`${p}px`)},[p]);const f=(g,y=!1)=>{const v=Math.round(Math.max(Gs,Math.min(h,g)));o.current=v,a(v),y&&En(su,v)},m=()=>{var y;if(!n.current)return;n.current=null;const g=(y=e.current)==null?void 0:y.closest(".app");g&&delete g.dataset.sidebarResizing,En(su,o.current)};return i.jsx("div",{ref:e,className:"sidebar-divider",role:"separator",tabIndex:0,"aria-label":"Resize left sidebar","aria-orientation":"vertical","aria-controls":"pro-project-sidebar","aria-valuemin":Gs,"aria-valuemax":h,"aria-valuenow":p,"aria-valuetext":`${p} pixels wide`,title:"Drag to resize · Arrow keys to adjust · Double-click to reset",onPointerDown:g=>{if(g.button!==0||n.current)return;g.preventDefault(),g.currentTarget.focus(),n.current={id:g.pointerId,startX:g.clientX,width:p},g.currentTarget.setPointerCapture(g.pointerId);const y=g.currentTarget.closest(".app");y&&(y.dataset.sidebarResizing="true")},onPointerMove:g=>{var y;((y=n.current)==null?void 0:y.id)===g.pointerId&&f(n.current.width+g.clientX-n.current.startX)},onPointerUp:g=>{var y;((y=n.current)==null?void 0:y.id)===g.pointerId&&(m(),g.currentTarget.releasePointerCapture(g.pointerId))},onPointerCancel:m,onLostPointerCapture:m,onDoubleClick:()=>f(ru,!0),onKeyDown:g=>{const y=g.shiftKey?40:10,v=g.key==="ArrowLeft"?p-y:g.key==="ArrowRight"?p+y:g.key==="Home"?Gs:g.key==="End"?h:null;v!==null&&(g.preventDefault(),f(v,!0))},children:i.jsx("span",{})})}function y1(){const[e,n]=_.useState(!1),r=_.useRef(null);return _.useEffect(()=>{if(!e)return;const a=c=>{r.current&&!r.current.contains(c.target)&&n(!1)},o=c=>{var u,h;c.key==="Escape"&&(n(!1),(h=(u=r.current)==null?void 0:u.querySelector("[aria-haspopup]"))==null||h.focus())};return document.addEventListener("mousedown",a),document.addEventListener("keydown",o),()=>{document.removeEventListener("mousedown",a),document.removeEventListener("keydown",o)}},[e]),{open:e,setOpen:n,ref:r}}const q2="kalvyr.local-session";let na="";if(typeof window<"u"){const e=()=>{const n=new URLSearchParams(window.location.hash.slice(1)).get("kalvyr-session");if(n===null)return!1;if(window.history.replaceState(null,"",window.location.pathname+window.location.search),/^[A-Za-z0-9_-]{43}$/.test(n)){na=n;try{window.sessionStorage.setItem(q2,na)}catch{}return!0}return!1};if(!e())try{na=window.sessionStorage.getItem(q2)??""}catch{}window.addEventListener("hashchange",()=>{e()&&window.location.reload()})}function nf(e,n={}){const r=new URL(e,window.location.origin);if(r.origin!==window.location.origin||!r.pathname.startsWith("/api/"))throw new Error("Local API requests must stay on this origin.");const a=new Headers(n.headers);return na&&a.set("Authorization",`Bearer ${na}`),fetch(e,{...n,headers:a,credentials:"omit",redirect:"error"})}const la=class la extends EventTarget{constructor(r){super();_r(this,"readyState",0);_r(this,"onopen",null);_r(this,"onerror",null);_r(this,"controller",new AbortController);this.consume(r)}close(){this.readyState=la.CLOSED,this.controller.abort()}async consume(r){var o,c,u,h;let a;try{const p=await nf(r,{headers:{Accept:"text/event-stream"},signal:this.controller.signal});if(!p.ok||!p.body||!((o=p.headers.get("content-type"))!=null&&o.includes("text/event-stream")))throw new Error("Local event stream unavailable");if(this.controller.signal.aborted)return;this.readyState=1,(c=this.onopen)==null||c.call(this),a=p.body.getReader();const f=new TextDecoder;let m="";for(;;){const g=await a.read();if(g.done)break;m+=f.decode(g.value,{stream:!0});let y;for(;(y=m.indexOf(`
|
|
630
|
+
|
|
631
|
+
`))>=0;){const v=m.slice(0,y);m=m.slice(y+2);const w=((u=/^event: ?(.+)$/m.exec(v))==null?void 0:u[1])??"message",S=v.split(`
|
|
632
|
+
`).filter(j=>j.startsWith("data:")).map(j=>j.slice(5).replace(/^ /,"")).join(`
|
|
633
|
+
`);S&&!this.controller.signal.aborted&&this.dispatchEvent(new MessageEvent(w,{data:S}))}}}catch{}finally{await(a==null?void 0:a.cancel().catch(()=>{})),this.readyState=la.CLOSED,this.controller.signal.aborted||(h=this.onerror)==null||h.call(this)}}};_r(la,"CLOSED",2);let Yl=la;class wi extends Error{constructor(r,a,o=0,c){super(a);_r(this,"code");_r(this,"status");_r(this,"field");this.name="FormaApiError",this.code=r,this.status=o,this.field=c}}const Tl="The local Kalvyr service is not reachable.";function f7(e){var n;return typeof e=="object"&&e!==null&&e.ok===!1&&typeof((n=e.error)==null?void 0:n.message)=="string"}async function Ye(e,n){const r=new AbortController,a=window.setTimeout(()=>r.abort(),(n==null?void 0:n.timeoutMs)??15e3);let o;try{o=await nf(e,{...n,signal:r.signal,headers:{Accept:"application/json",...n!=null&&n.body?{"Content-Type":"application/json"}:{}}})}catch(h){const p=h instanceof DOMException&&h.name==="AbortError";throw new wi("NETWORK",p?"The local Kalvyr service did not respond in time.":Tl)}finally{window.clearTimeout(a)}const c=await o.text();let u;if(c)try{u=JSON.parse(c)}catch{throw new wi("NETWORK",Tl,o.status)}if(!o.ok)throw f7(u)?new wi(u.error.code,u.error.message,o.status,u.error.field):new wi(o.status>=500?"NETWORK":"BAD_RESPONSE",o.status>=500?Tl:`Request failed (HTTP ${o.status}).`,o.status);if(u===void 0)throw new wi("NETWORK",Tl,o.status);return u}function Ou(e){const n=e;return typeof n=="object"&&n!==null&&n.schemaVersion===1&&typeof n.project=="object"&&Array.isArray(n.nodes)&&Array.isArray(n.edges)&&Array.isArray(n.agents)&&Array.isArray(n.activities)&&Array.isArray(n.snapshots)}const Ue={reviewChanges:e=>Ye("/api/review/changes",{method:"POST",body:JSON.stringify({projectId:e}),timeoutMs:12e4}),reviewDiff:(e,n)=>Ye("/api/review/diff",{method:"POST",body:JSON.stringify({projectId:e,id:n}),timeoutMs:12e4}),checks:e=>Ye(`/api/checks?projectId=${encodeURIComponent(e)}`),runChecks:(e,n)=>Ye("/api/checks/run",{method:"POST",body:JSON.stringify({projectId:e,checkIds:n}),timeoutMs:6e4}),stopChecks:(e,n)=>Ye("/api/checks/stop",{method:"POST",body:JSON.stringify({projectId:e,runId:n})}),edition:()=>Ye("/api/edition"),setEdition:e=>Ye("/api/edition",{method:"POST",body:JSON.stringify({edition:e})}),signIn:()=>Ye("/api/account/sign-in",{method:"POST",body:"{}"}),refreshAccount:()=>Ye("/api/account/refresh",{method:"POST",body:"{}",timeoutMs:2e4}),signOut:()=>Ye("/api/account/sign-out",{method:"POST",body:"{}",timeoutMs:2e4}),proAccounts:()=>Ye("/api/pro/accounts",{timeoutMs:25e3}),connectAgent:(e,n)=>Ye(`/api/pro/accounts/${n}`,{method:"POST",body:JSON.stringify({agent:e}),timeoutMs:2e4}),proLibrary:()=>Ye("/api/pro/library"),manageChat:(e,n,r)=>Ye("/api/pro/chat/manage",{method:"POST",body:JSON.stringify({projectId:e,sessionId:n,...r})}),startLivePreview:(e,n="")=>Ye("/api/preview/app",{method:"POST",body:JSON.stringify({projectId:e,...n?{app:n}:{}}),timeoutMs:12e4}),stopLivePreview:e=>Ye("/api/preview/stop",{method:"POST",body:JSON.stringify({projectId:e})}),chatModels:(e,n,r=!1)=>Ye(`/api/${r?"pro/":""}chat/models?projectId=${encodeURIComponent(e)}&agent=${n}`,{timeoutMs:16e3}),chatUsage:(e,n,r=!1)=>Ye(`/api/${r?"pro/":""}chat/usage?projectId=${encodeURIComponent(e)}&agent=${n}`,{timeoutMs:2e4}),chat:(e,n=!1)=>Ye(`/api/${n?"pro/":""}chat?projectId=${encodeURIComponent(e)}`),sendChat:(e,n=!1)=>Ye(`/api/${n?"pro/":""}chat/send`,{method:"POST",body:JSON.stringify(e)}),stopChat:(e,n,r=!1)=>Ye(`/api/${r?"pro/":""}chat/stop`,{method:"POST",body:JSON.stringify({projectId:e,sessionId:n})}),approveChat:(e,n,r,a,o=!1)=>Ye(`/api/${o?"pro/":""}chat/approve`,{method:"POST",body:JSON.stringify({projectId:e,sessionId:n,approvalId:r,allow:a})}),renderPreview:(e,n,r,a)=>Ye("/api/components/render",{method:"POST",body:JSON.stringify({projectId:e,nodeId:n,file:r.file,exportName:r.exportName,context:a&&{file:a.file,exportName:a.exportName}}),timeoutMs:6e4}),preview:(e,n)=>Ye("/api/components/preview",{method:"POST",body:JSON.stringify({projectId:e,nodeId:n})}),browseFolders:e=>Ye(cr.browseFolders,{method:"POST",body:JSON.stringify({path:e})}),health:()=>Ye(cr.health,{timeoutMs:4e3}),assignComponent:(e,n)=>Ye(cr.assignComponent,{method:"POST",body:JSON.stringify({path:e,componentId:n}),timeoutMs:12e4}),describe:e=>Ye(cr.describe,{method:"POST",body:JSON.stringify(e),timeoutMs:6e4}),rescan:()=>Ye(cr.rescan,{method:"POST",body:JSON.stringify({}),timeoutMs:12e4}),visualizePlan:(e,n=!1)=>Ye(cr.visualizePlan,{method:"POST",body:JSON.stringify({agentId:e,...n?{cancel:n}:{}})}),settings:e=>Ye(cr.settings,{method:"POST",body:JSON.stringify(e)}),async state(){const e=await Ye(cr.state,{timeoutMs:6e3});if(!Ou(e))throw new wi("BAD_RESPONSE","The local service returned state in an unexpected shape.");return e},connect:e=>Ye(cr.connect,{method:"POST",body:JSON.stringify({...e,light:!0}),timeoutMs:12e4})};function ft(e){return e instanceof Error?e.message:"Something went wrong."}const rf={"claude-code":"Claude Code",codex:"Codex",gemini:"Gemini CLI",cursor:"Cursor",copilot:"GitHub Copilot"},m7={"claude-code":"Claude",codex:"Codex",gemini:"Gemini",cursor:"Cursor",copilot:"Copilot"},v1=e=>rf[e]??"Agent",mi={"claude-code":"Claude Code",codex:"Codex"};function K2(e){if(!e)return"";const n=Math.max(0,Math.round((Date.now()-Date.parse(e))/1e3));return`${Math.floor(n/60)}:${String(n%60).padStart(2,"0")}`}function g7({state:e,pro:n=!1}){const{open:r,setOpen:a,ref:o}=y1(),[c,u]=_.useState(!1),[h,p]=_.useState(null),[,f]=_.useState(0),m=e.integration.describe,g=e.project.describedBy,y=(m==null?void 0:m.status)==="running",v=e.agents.filter(M=>M.state==="active"&&!M.isSample),w=[...new Set(v.map(M=>M.kind))];if(_.useEffect(()=>{if(!y)return;const M=window.setInterval(()=>f(z=>z+1),1e3);return()=>window.clearInterval(M)},[y]),e.project.mode!=="local")return null;const S=async M=>{u(!0),p(null);try{await Ue.describe(M)}catch(z){p(ft(z))}finally{u(!1)}},j=(m==null?void 0:m.available)??[],b=y?`${mi[m.agent]} · ${K2(m==null?void 0:m.startedAt)}`:g?`By ${mi[g.agent]}`:n?"Analyze with AI":"Describe with AI",P=v.length?`${v.length} ${v.length===1?"agent":"agents"}`:b,C=w.map(v1).join(", ");return i.jsxs("div",{className:"popover-anchor",ref:o,children:[i.jsxs("button",{type:"button",className:"describe-btn","data-state":v.length?"working":y?"running":g?"described":"idle","aria-haspopup":"dialog","aria-expanded":r,onClick:()=>a(M=>!M),title:v.length?`${P} working: ${C}. ${y?`${b}. `:""}Open architecture menu.`:n?"Use your connected Claude or Codex account to analyze this project":"Use Claude Code or Codex to name this project's features","aria-label":v.length?`${P} working: ${C}. Open architecture menu`:void 0,children:[v.length?i.jsxs("span",{className:"describe-btn__agents","aria-hidden":!0,children:[w.slice(0,3).map(M=>i.jsx("span",{className:"describe-btn__agent",children:i.jsx(Gt,{kind:M,size:14})},M)),w.length>3&&i.jsxs("span",{className:"describe-btn__agent-more",children:["+",w.length-3]})]}):y?i.jsx(Ut,{size:14,className:"spin","aria-hidden":!0}):g?i.jsx(Gt,{kind:g.agent,size:14}):i.jsx(Xn,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"describe-btn__label",children:P}),v.length>0&&y&&i.jsx(Ut,{size:12,className:"spin","aria-hidden":!0})]}),r&&i.jsxs("div",{className:"popover describe-pop",role:"dialog","aria-label":n?"Analyze this project with your connected account":"Describe this project with an AI agent",children:[i.jsxs("div",{className:"describe-pop__head",children:[i.jsx(Xn,{size:15,"aria-hidden":!0}),i.jsx("strong",{children:n?"Analyze this project with your connected account":"Describe this project with an AI agent"})]}),y?i.jsxs("div",{className:"describe-pop__status",role:"status",children:[i.jsx(Ut,{size:14,className:"spin","aria-hidden":!0}),i.jsxs("span",{children:[(m==null?void 0:m.message)??"Reading the project…"," ",i.jsx("span",{className:"mono",children:K2(m==null?void 0:m.startedAt)}),i.jsx("span",{className:"muted-text",children:" Usually takes a few minutes. You can keep working."})]}),i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:()=>S({cancel:!0}),disabled:c,children:[i.jsx(Cn,{size:12,"aria-hidden":!0})," Cancel"]})]}):i.jsxs(i.Fragment,{children:[g&&i.jsxs("p",{className:"describe-pop__done",children:[i.jsx(Gt,{kind:g.agent,size:14})," The map uses ",mi[g.agent],"'s grouping from"," ",it(g.createdAt),". It's the agent's interpretation, not verified; correct it with Move… on any file."]}),g&&n&&i.jsxs("label",{className:"toggle-row describe-pop__auto",children:[i.jsx("input",{type:"checkbox",checked:!!g.autoUpdate,disabled:c,onChange:M=>S({autoUpdate:M.target.checked})}),i.jsxs("span",{children:[i.jsx("strong",{children:"Update after agent work"}),i.jsxs("span",{className:"muted-text",children:["When an agent changes files, ",mi[g.agent]," checks those files and updates the names and descriptions they affect, at most every 5 minutes. Each check uses your plan's usage."]})]})]}),!y&&(m==null?void 0:m.status)==="done"&&(g==null?void 0:g.autoUpdate)&&m.message&&i.jsxs("p",{className:"muted-text describe-pop__last",children:[m.message,m.finishedAt?` ${it(m.finishedAt)}.`:""]}),(m==null?void 0:m.warning)&&i.jsxs("p",{className:"callout callout--warn describe-pop__error",children:[i.jsx(ss,{size:14,"aria-hidden":!0})," ",m.warning]}),(m==null?void 0:m.status)==="failed"&&m.message&&!(m.warning&&/can't reach/i.test(m.message))&&i.jsxs("p",{className:"callout callout--warn describe-pop__error",children:[i.jsx(ss,{size:14,"aria-hidden":!0})," ",m.message]}),i.jsx("p",{className:"describe-pop__body",children:n?"Uses the account connected under Pro, separately from your conversations, to read the project: better names, specific descriptions, and how the parts work together. Plan layouts use the same account.":"Uses the Claude Code or Codex already signed in on this computer to read the project and name its features in plain words. No credentials are entered in Kalvyr."}),i.jsxs("ul",{className:"describe-pop__facts",children:[i.jsxs("li",{children:[i.jsx("strong",{children:"Your code goes to the agent's provider"})," (Anthropic for Claude Code, OpenAI for Codex) through your own login, as when you use the agent yourself."]}),i.jsx("li",{children:"It uses your plan's usage and takes a few minutes."}),i.jsx("li",{children:"This runs by itself the first time you connect a project: with Claude Code if it's available, otherwise Codex. You can cancel it here."}),i.jsx("li",{children:"Read-only: the agent can look at files but cannot run commands or change anything."})]}),i.jsx("div",{className:"describe-pop__agents",children:["claude-code","codex"].map(M=>{const z=j.find(N=>N.agent===M);return i.jsxs("button",{type:"button",className:"btn btn--ghost describe-pop__agent",disabled:!z||c,title:z?z.version:`${mi[M]} is not installed on this computer`,onClick:()=>S({agent:M}),children:[i.jsx(Gt,{kind:M,size:15}),i.jsxs("span",{className:"describe-pop__agent-label",children:[(g==null?void 0:g.agent)===M?`Refresh with ${mi[M]}`:`Use ${mi[M]}`,!z&&i.jsx("small",{className:"muted-text",children:"Not installed"})]})]},M)})}),g&&i.jsxs("button",{type:"button",className:"link-btn describe-pop__reset",onClick:()=>S({agent:null}),disabled:c,children:[i.jsx(d5,{size:12,"aria-hidden":!0})," Use Kalvyr's own grouping"]})]}),h&&i.jsx("p",{className:"form-error",children:h})]})]})}function x7({state:e,source:n,emptyProjectLabel:r}){const a=(e==null?void 0:e.project.name)??r??"Loading…",o=e?e.project.rootPath??(n==="offline-demo"?"Bundled sample data":void 0):void 0;return i.jsx("span",{className:"project-name",title:o,children:a})}function y7({value:e,onChange:n,showRemoved:r,onShowRemovedChange:a,counts:o}){const{open:c,setOpen:u,ref:h}=y1(),p=e.length>0||!r,f=m=>n(e.includes(m)?e.filter(g=>g!==m):[...e,m]);return i.jsxs("div",{className:"popover-anchor",ref:h,children:[i.jsxs("button",{type:"button",className:`btn btn--ghost btn--sm${p?" is-active":""}`,"aria-haspopup":"dialog","aria-expanded":c,onClick:()=>u(m=>!m),children:[i.jsx(Qm,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"hide-sm",children:"Status"}),e.length>0&&i.jsx("span",{className:"count-pill",children:e.length})]}),c&&i.jsxs("div",{className:"popover filter-pop",role:"dialog","aria-label":"Filter by status",children:[i.jsx("div",{className:"menu__label",children:"Highlight statuses"}),b5.map(m=>i.jsxs("label",{className:"check-row",children:[i.jsx("input",{type:"checkbox",checked:e.includes(m),onChange:()=>f(m)}),i.jsx("span",{className:"status-dot","data-status":m,"aria-hidden":!0}),i.jsx("span",{className:"check-row__label",children:as[m]}),i.jsx("span",{className:"check-row__count",children:o[m]})]},m)),i.jsx("div",{className:"menu__sep",role:"separator"}),i.jsxs("label",{className:"check-row",children:[i.jsx("input",{type:"checkbox",checked:r,onChange:m=>a(m.target.checked)}),i.jsx("span",{className:"check-row__label",children:"Show removed components"})]}),p&&i.jsx("button",{type:"button",className:"btn btn--ghost btn--sm filter-pop__reset",onClick:()=>{n([]),a(!0)},children:"Reset filters"})]})]})}function v7(e){const n=_.useRef(null);_.useEffect(()=>{const a=o=>{var h;const u=o.target.closest('input, textarea, select, [contenteditable="true"]');o.key==="/"&&!u&&!document.querySelector("dialog[open]")&&(o.preventDefault(),(h=n.current)==null||h.focus())};return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[]);const r=e.view==="architecture"&&!!e.state;return i.jsxs("header",{className:"topbar",children:[i.jsxs("div",{className:"topbar__crumbs",children:[i.jsx(x7,{...e}),i.jsx(Ni,{size:14,className:"crumb-sep","aria-hidden":!0}),i.jsx("span",{className:"crumb",children:tf[e.view]}),e.crumb&&i.jsxs(i.Fragment,{children:[i.jsx(Ni,{size:14,className:"crumb-sep","aria-hidden":!0}),i.jsx("span",{className:"crumb crumb--current",children:e.crumb})]})]}),i.jsxs("div",{className:"topbar__tools",children:[e.state&&i.jsx(g7,{state:e.state,pro:e.pro}),r&&i.jsxs(i.Fragment,{children:[i.jsxs("form",{className:"search",role:"search",onSubmit:a=>{a.preventDefault(),e.onSearchSubmit()},children:[i.jsx(ta,{size:14,className:"search__icon","aria-hidden":!0}),i.jsx("input",{ref:n,className:"search__input",type:"search",value:e.searchQuery,onChange:a=>e.onSearchChange(a.target.value),onKeyDown:a=>{a.key==="Escape"&&(e.onSearchChange(""),a.currentTarget.blur())},placeholder:"Search features","aria-label":"Search components and features"}),e.searchQuery?i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"search__count","aria-live":"polite",children:e.matchCount??0}),i.jsx("button",{type:"button",className:"search__clear","aria-label":"Clear search",onClick:()=>e.onSearchChange(""),children:i.jsx(Cn,{size:13})})]}):i.jsx("kbd",{className:"search__kbd","aria-hidden":!0,children:"/"})]}),i.jsx(y7,{value:e.statusFilter,onChange:e.onStatusFilterChange,showRemoved:e.showRemoved,onShowRemovedChange:e.onShowRemovedChange,counts:e.counts}),i.jsx("button",{type:"button",className:`icon-btn${e.previewOpen?" is-active":""}`,"aria-pressed":e.previewOpen,"aria-label":e.pro?e.previewOpen?"Hide live preview":"Open live preview":"Live preview, a Pro feature",title:e.pro?"Live preview · start the project's Vite app":"Live preview is part of Pro",disabled:!e.previewAvailable,onClick:e.onTogglePreview,children:i.jsx(ns,{size:16})}),i.jsx("button",{type:"button",className:`icon-btn${e.panelOpen?" is-active":""}`,"aria-pressed":e.panelOpen,"aria-label":e.panelOpen?"Hide details panel":"Show details panel",title:"Details panel",onClick:e.onTogglePanel,children:i.jsx(l5,{size:16})})]}),i.jsx("button",{type:"button",className:"icon-btn","aria-label":e.theme==="dark"?"Switch to light theme":"Switch to dark theme",title:e.theme==="dark"?"Light theme":"Dark theme",onClick:e.onToggleTheme,children:e.theme==="dark"?i.jsx(v5,{size:16}):i.jsx(Cp,{size:16})})]})]})}function k7({status:e,size:n="md"}){return i.jsxs("span",{className:`status-chip status-chip--${n}`,"data-status":e,children:[i.jsx("span",{className:"status-chip__dot","aria-hidden":!0}),as[e]]})}function k1({confidence:e,prefix:n}){return i.jsxs("span",{className:"confidence-tag","data-confidence":e,title:L5[e],children:[n?`${n} `:"",T5[e].toLowerCase()]})}function Tt({children:e,aside:n}){return i.jsxs("div",{className:"section-title",children:[i.jsx("h3",{children:e}),n]})}function w1({icon:e,title:n,children:r}){return i.jsxs("div",{className:"empty-state",children:[i.jsx("div",{className:"empty-state__icon","aria-hidden":!0,children:e}),i.jsx("p",{className:"empty-state__title",children:n}),r&&i.jsx("div",{className:"empty-state__body",children:r})]})}function ei({open:e,title:n,description:r,onClose:a,children:o,footer:c,busy:u,wide:h}){const p=_.useRef(null),f=_.useId(),m=_.useId(),g=_.useRef(null);return _.useEffect(()=>{var v,w,S;const y=p.current;y&&(e&&!y.open?(g.current=document.activeElement,y.showModal(),(v=y.querySelector("[data-autofocus]"))==null||v.focus()):!e&&y.open&&(y.close(),(S=(w=g.current)==null?void 0:w.focus)==null||S.call(w)))},[e]),i.jsx("dialog",{ref:p,className:`dialog${h?" dialog--wide":""}`,"aria-labelledby":f,"aria-describedby":r?m:void 0,onCancel:y=>{y.preventDefault(),u||a()},onMouseDown:y=>{y.target===p.current&&!u&&a()},children:e&&i.jsxs("div",{className:"dialog__surface",children:[i.jsxs("header",{className:"dialog__header",children:[i.jsxs("div",{children:[i.jsx("h2",{id:f,children:n}),r&&i.jsx("p",{id:m,children:r})]}),i.jsx("button",{type:"button",className:"icon-btn",onClick:a,disabled:u,"aria-label":"Close dialog",children:i.jsx(Cn,{size:16})})]}),i.jsx("div",{className:"dialog__body",children:o}),c&&i.jsx("footer",{className:"dialog__footer",children:c})]})})}function w7({projectId:e,projectName:n,open:r,onClose:a,onRunChange:o}){const[c,u]=_.useState(null),[h,p]=_.useState([]),[f,m]=_.useState(""),[g,y]=_.useState(!1),v=_.useRef(0),w=_.useRef(!1),S=_.useRef(0);_.useEffect(()=>{const M=++v.current;let z,N=!0,L=1200;u(null),m(""),y(!1),w.current=!1;const V=async()=>{try{if(!w.current){const K=S.current,D=await Ue.checks(e);if(M!==v.current)return;!w.current&&S.current===K&&(u(D),m(""),o==null||o(D.run),L=D.run&&!D.run.finishedAt?1200:r?4e3:1e4,N&&(p(D.checks.filter(I=>I.script==="test"||I.script==="build").map(I=>I.id)),N=!1))}}catch(K){M===v.current&&m(K instanceof Error?K.message:"Could not load checks.")}M===v.current&&(z=setTimeout(V,w.current?1200:L))};return V(),()=>{v.current++,clearTimeout(z)}},[e,r,o]);const j=c==null?void 0:c.run,b=!!j&&!j.finishedAt,P=async()=>{const M=v.current;S.current++,w.current=!0,y(!0),m("");try{const z=await Ue.runChecks(e,h);v.current===M&&(u(z),o==null||o(z.run))}catch(z){v.current===M&&m(z instanceof Error?z.message:"Could not start checks.")}finally{v.current===M&&(y(!1),w.current=!1)}},C=async()=>{if(!j)return;const M=v.current;S.current++,w.current=!0,y(!0),m("");try{const z=await Ue.stopChecks(e,j.id);v.current===M&&u(N=>N&&{...N,run:z.run})}catch(z){v.current===M&&m(z instanceof Error?z.message:"Could not stop checks.")}finally{v.current===M&&(y(!1),w.current=!1)}};return i.jsxs(ei,{open:r,onClose:a,title:"Run checks",description:`Check ${n} using its own project scripts.`,wide:!0,footer:i.jsxs(i.Fragment,{children:[i.jsx("span",{className:"fine-print",children:b?"You can close this window while checks run.":"Results are recorded on the project map."}),b?i.jsxs("button",{className:"btn",type:"button",disabled:g||j.status==="cancelled",onClick:()=>void C(),children:[i.jsx(Mp,{size:14}),j.status==="cancelled"?"Stopping…":"Stop checks"]}):i.jsxs("button",{className:"btn btn--primary",type:"button",disabled:g||!c||!h.length||h.some(M=>!c.checks.some(z=>z.id===M)),onClick:()=>void P(),children:[i.jsx(u5,{size:14}),g?"Starting…":"Run selected checks"]})]}),children:[f&&i.jsx("p",{className:"callout callout--warn",role:"alert",children:f}),!c&&!f&&i.jsx("p",{role:"status",children:"Finding project checks…"}),c&&c.checks.length===0&&i.jsx("p",{className:"callout",children:"No supported scripts found. Add a test, build, or typecheck script to a package.json in this project. Detection includes the first 16 nested packages when no root checks are available."}),!!(c!=null&&c.checks.length)&&i.jsxs("fieldset",{className:"checks-options",disabled:g||b,children:[i.jsx("legend",{children:"Choose checks"}),c.checks.map(M=>i.jsxs("label",{className:"checks-option",children:[i.jsx("input",{type:"checkbox",checked:h.includes(M.id),onChange:z=>p(N=>z.target.checked?[...N,M.id]:N.filter(L=>L!==M.id))}),i.jsxs("span",{children:[i.jsxs("strong",{children:[M.command,M.directory!=="."&&i.jsxs("small",{children:[" · ",M.directory]})]}),i.jsx("code",{children:M.definition})]})]},M.id)),i.jsx("p",{className:"fine-print",children:"Runs scripts and their package-manager hooks in this project folder. Dependencies must already be installed. Checks run one at a time, with a 15-minute limit each."})]}),j&&i.jsxs("section",{className:"checks-results","aria-label":"Check results",children:[i.jsxs("p",{role:"status",children:[i.jsx("strong",{children:b?j.status==="cancelled"?"Stopping checks…":"Checks running…":`Checks ${j.status}`}),j.stale&&" · Outdated — project files changed or could not be fully compared."]}),j.results.map(M=>i.jsxs("details",{open:M.status==="running"||M.status==="failed"||M.status==="timed-out",children:[i.jsxs("summary",{children:[i.jsx("code",{children:M.command}),M.directory!=="."&&i.jsxs("small",{children:[" · ",M.directory]}),i.jsxs("span",{"data-status":M.status,children:[M.status,M.exitCode!==null?` · exit ${M.exitCode}`:""]})]}),i.jsx("pre",{"aria-label":`${M.command} output`,children:M.output||(M.status==="queued"?"Waiting for the previous check.":"No output yet.")})]},M.id)),i.jsx("p",{className:"fine-print",children:"Output shows the last 64K characters per check. Passing scripts do not establish coverage of every component or feature. Results remain in the map; terminal output is kept until the next run or project switch."})]})]})}const j7={live:"Live",connecting:"Connecting…",offline:"Offline"};function b7({state:e,source:n,connection:r,stale:a,lastSyncedAt:o,onRetry:c,onRescan:u,rescanBusy:h,rescanError:p}){var v,w;const f=e==null?void 0:e.integration,m=r==="live"&&((v=f==null?void 0:f.workTracking)==null?void 0:v.checkedAt)&&Date.now()-Date.parse(f.workTracking.checkedAt)<3e4,g=(e==null?void 0:e.agents.filter(S=>!S.isSample&&S.source==="local-session"&&S.state==="active").length)??0,y=n==="offline-demo"||!f?"No agent events":m&&["watching","partial"].includes(((w=f.workTracking)==null?void 0:w.status)??"")?`Tracking work · ${g} active session${g===1?"":"s"}`:f.agentEvents==="receiving"?`Agent events · ${it(f.lastAgentEventAt)}`:f.agentEvents==="stale"?`Agent events quiet since ${it(f.lastAgentEventAt)}`:"No agent events yet";return i.jsxs("footer",{className:"statusbar","aria-label":"Local status",children:[i.jsxs("span",{className:"statusbar__item","data-conn":r,role:"status",children:[i.jsx("span",{className:"conn-dot","aria-hidden":!0}),j7[r],r==="offline"&&i.jsxs("button",{type:"button",className:"statusbar__link",onClick:c,children:[i.jsx(gn,{size:11,"aria-hidden":!0})," Retry"]})]}),e&&n==="offline-demo"&&i.jsx("span",{className:"statusbar__item statusbar__warn",children:"Offline demo data"}),a&&i.jsx("span",{className:"statusbar__item statusbar__warn",children:"Showing last known state"}),(e==null?void 0:e.project.mode)==="sample"&&n==="service"&&i.jsx("span",{className:"statusbar__item statusbar__warn",children:"Sample project"}),(e==null?void 0:e.project.rootPath)&&i.jsxs("span",{className:"statusbar__item statusbar__path hide-sm",title:e.project.rootPath,children:[i.jsx(Ym,{size:12,"aria-hidden":!0})," ",e.project.rootPath]}),n==="service"&&f&&(e==null?void 0:e.project.mode)==="local"&&i.jsxs("span",{className:"statusbar__item hide-sm",children:[f.watcher==="watching"?i.jsx(pa,{size:12,"aria-hidden":!0}):i.jsx(Vm,{size:12,"aria-hidden":!0}),f.watcher==="watching"?"Watching files":f.watcher==="error"?"Watcher error":"Not watching"]}),i.jsxs("span",{className:"statusbar__item hide-sm",children:[i.jsx(Zr,{size:12,"aria-hidden":!0})," ",y]}),(e==null?void 0:e.project.rescan)&&u&&i.jsxs("span",{className:"statusbar__item statusbar__warn statusbar__rescan",title:e.project.rescan.error?p??e.project.rescan.error:"Your saved map is open. Changes are being refreshed automatically in the background.",children:[e.project.rescan.error?i.jsx(Yr,{size:12,"aria-hidden":!0}):i.jsx(Ut,{size:12,className:"spin","aria-hidden":!0}),e.project.rescan.error?"Saved map · refresh failed":"Updating saved map…",e.project.rescan.error&&i.jsxs("button",{type:"button",className:"statusbar__link",onClick:u,disabled:h,children:[h?i.jsx(Ut,{size:11,className:"spin","aria-hidden":!0}):i.jsx(gn,{size:11,"aria-hidden":!0})," Retry refresh"]})]}),i.jsx("span",{className:"statusbar__spacer"}),e&&i.jsx("span",{className:"statusbar__item hide-sm",children:Zl(e.nodes.length,"component")}),o&&i.jsxs("span",{className:"statusbar__item hide-sm",title:new Date(o).toLocaleString("en"),children:["Synced ",it(new Date(o).toISOString())]}),i.jsxs("span",{className:"statusbar__item",title:"Kalvyr stores the map on this computer. Agent chats and AI descriptions use your selected agent's provider.",children:[i.jsx(Ep,{size:12,"aria-hidden":!0})," Local service"]})]})}var os=lp();const au=e=>e.split(/[\\/]/).filter(Boolean).at(-1)||e,lr=e=>/^[a-z]:|^\\\\/i.test(e)?e.replace(/\\/g,"/").toLowerCase():e;function _7({root:e,recentPaths:n,library:r,selection:a,available:o,error:c,workspaceView:u,unseenActivity:h,onNewChat:p,onOpenProject:f,onOpenSession:m,onConnect:g,onEdition:y,onNavigate:v,onAccounts:w,onCollapse:S,collapsed:j,onExpand:b}){const[P,C]=_.useState(!1),[M,z]=_.useState(""),N=_.useRef(null),L=y1();_.useEffect(()=>{var B;P&&!j&&((B=N.current)==null||B.focus())},[P,j]);const V=[...new Map([...n,...r.map(B=>B.root),...e?[e]:[]].map(B=>[lr(B),B])).values()],K=M.trim().toLowerCase(),D=V.map(B=>({path:B,sessions:r.filter(H=>lr(H.root)===lr(B)).sort((H,Y)=>Y.updatedAt.localeCompare(H.updatedAt)).filter(H=>!K||au(B).toLowerCase().includes(K)||`${H.title} ${H.agent}`.toLowerCase().includes(K))})).filter(B=>!K||au(B.path).toLowerCase().includes(K)||B.sessions.length),I=v;return j?i.jsxs("aside",{id:"pro-project-sidebar",className:"pro-library pro-library--rail","aria-label":"Sidebar shortcuts",children:[i.jsx("button",{className:"pro-rail-action","aria-label":"Show left sidebar",title:"Show left sidebar","aria-expanded":!1,"aria-controls":"pro-project-sidebar",onClick:b,children:i.jsx(a5,{size:18,"aria-hidden":!0})}),i.jsxs("nav",{className:"pro-rail-group","aria-label":"Project shortcuts",children:[i.jsx("button",{className:"pro-rail-action","aria-label":"New chat",title:"New chat",disabled:!o,onClick:e?p:g,children:i.jsx(M2,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Projects and chats",title:"Projects and chats",onClick:b,children:i.jsx(Zn,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Search projects and chats",title:"Search projects and chats",onClick:()=>{C(!0),b()},children:i.jsx(ta,{size:18,"aria-hidden":!0})})]}),i.jsx("nav",{className:"pro-rail-group","aria-label":"Workspace shortcuts",children:[{view:"architecture",label:"Map",icon:ql},{view:"activity",label:"Activity",icon:oa}].map(({view:B,label:H,icon:Y})=>i.jsxs("button",{className:"pro-rail-action","aria-label":H,title:H,"aria-current":u===B?"page":void 0,onClick:()=>I(B),children:[i.jsx(Y,{size:18,"aria-hidden":!0}),B==="activity"&&h>0&&i.jsx("span",{className:"pro-activity-dot","aria-label":`${h} new updates`})]},B))}),i.jsxs("nav",{className:"pro-rail-group pro-rail-group--end","aria-label":"Account shortcuts",children:[c&&i.jsx("button",{className:"pro-rail-action pro-rail-error","aria-label":"Show sidebar error",title:c,onClick:b,children:i.jsx(E2,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Agent accounts",title:"Agent accounts",onClick:w,children:i.jsx(ca,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Project history",title:"Project history","aria-current":u==="history"?"page":void 0,onClick:()=>I("history"),children:i.jsx(Yr,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Manage Pro edition",title:"Manage Pro edition",onClick:y,children:i.jsx(Xn,{size:18,"aria-hidden":!0})}),i.jsx("button",{className:"pro-rail-action","aria-label":"Settings",title:"Settings","aria-current":u==="settings"?"page":void 0,onClick:()=>I("settings"),children:i.jsx(Lu,{size:18,"aria-hidden":!0})})]})]}):i.jsxs("aside",{id:"pro-project-sidebar",className:"pro-library","aria-label":"Projects and sessions",children:[i.jsxs("div",{className:"pro-library__header",ref:L.ref,children:[i.jsxs("button",{className:"pro-brand","aria-label":"Kalvyr menu","aria-haspopup":"menu","aria-expanded":L.open,"aria-controls":L.open?"pro-edition-menu":void 0,onClick:()=>L.setOpen(!L.open),children:[i.jsx(ef,{size:22}),i.jsx("span",{children:"Kalvyr"}),i.jsx(On,{size:12,"aria-hidden":!0})]}),i.jsxs("div",{className:"pro-library__tools",children:[i.jsxs("button",{className:"pro-header-action","aria-label":h?`Activity, ${h} new updates`:"Activity",title:"Activity",onClick:()=>v("activity"),children:[i.jsx(E2,{size:15,"aria-hidden":!0}),h>0&&i.jsx("span",{className:"pro-activity-dot"})]}),i.jsx("button",{className:"pro-header-action","aria-label":"Search projects and chats",title:"Search projects and chats","aria-expanded":P,onClick:()=>{C(B=>!B),z("")},children:i.jsx(ta,{size:15,"aria-hidden":!0})}),i.jsx("button",{className:"pro-header-action","aria-label":"Collapse left sidebar",title:"Collapse left sidebar","aria-expanded":!0,"aria-controls":"pro-project-sidebar",onClick:()=>{L.setOpen(!1),S()},children:i.jsx(s5,{size:16,"aria-hidden":!0})})]}),L.open&&i.jsx("div",{id:"pro-edition-menu",className:"pro-edition-menu",role:"menu","aria-label":"Kalvyr menu",children:i.jsxs("button",{autoFocus:!0,role:"menuitem","aria-label":"Manage Pro edition",onClick:()=>{L.setOpen(!1),y()},children:[i.jsx(Xn,{size:15,"aria-hidden":!0}),"Manage Pro edition"]})})]}),i.jsx("nav",{id:"pro-navigation",className:"pro-navigation","aria-label":"Workspace navigation",children:[{view:"architecture",label:"Map",icon:ql},{view:"activity",label:"Activity",icon:oa},{view:"settings",label:"Settings",icon:Lu}].map(({view:B,label:H,icon:Y})=>i.jsxs("button",{"aria-current":u===B?"page":void 0,onClick:()=>I(B),children:[i.jsx(Y,{size:15,"aria-hidden":!0}),H]},B))}),i.jsxs("button",{className:"pro-new",disabled:!o,onClick:e?p:g,children:[i.jsx(M2,{size:15,"aria-hidden":!0}),"New chat"]}),P&&i.jsxs("label",{className:"pro-search",children:[i.jsx(ta,{size:14,"aria-hidden":!0}),i.jsx("input",{ref:N,"aria-label":"Search saved sessions",placeholder:"Search projects and chats",value:M,onChange:B=>z(B.target.value),onKeyDown:B=>{B.key==="Escape"&&(z(""),C(!1))}}),i.jsx("button",{className:"pro-header-action","aria-label":"Close sidebar search",onClick:()=>{z(""),C(!1)},children:i.jsx(Cn,{size:13})})]}),i.jsxs("div",{className:"pro-library__heading",children:["Projects",i.jsx("button",{className:"pro-header-action","aria-label":"Add project",title:"Add project",onClick:g,disabled:!o,children:i.jsx(Tu,{size:15,"aria-hidden":!0})})]}),i.jsxs("nav",{className:"pro-project-tree","aria-label":"Projects and conversations",children:[D.map(({path:B,sessions:H})=>i.jsxs("div",{className:"pro-project-group",children:[i.jsxs("button",{className:"pro-project",title:B,"aria-current":e&&lr(e)===lr(B)?"true":void 0,disabled:!o,onClick:()=>f(B),children:[i.jsx(Zn,{size:15,"aria-hidden":!0}),i.jsx("span",{children:au(B)})]}),i.jsx("div",{className:"pro-project-chats",children:H.map(Y=>i.jsxs("button",{className:"pro-session",title:Y.title||"Untitled conversation",disabled:!o,"aria-current":e&&lr(e)===lr(Y.root)&&(a==null?void 0:a.id)===Y.id&&lr(a.root)===lr(Y.root)?"page":void 0,onClick:()=>m(Y),children:[i.jsx("span",{children:Y.title||"Untitled conversation"}),["running","starting"].includes(Y.status)&&i.jsx("span",{className:"pro-session__running",role:"status","aria-label":"Working"})]},Y.id))})]},lr(B))),!D.length&&i.jsx("p",{className:"pro-library__empty",children:K?"No matching projects or chats.":"Connect a project to begin."})]}),c&&i.jsx("p",{className:"form-error",role:"alert",children:c}),i.jsxs("div",{className:"pro-library__footer",children:[i.jsxs("button",{onClick:w,children:[i.jsx(ca,{size:15,"aria-hidden":!0}),"Agent accounts"]}),i.jsxs("button",{"aria-current":u==="history"?"page":void 0,onClick:()=>I("history"),children:[i.jsx(Yr,{size:15,"aria-hidden":!0}),"Project history"]})]})]})}const S7=1568,Q2=5*1024*1024,N7=["image/png","image/jpeg","image/gif","image/webp"],Z2=e=>Math.ceil(e/3)*4;function lu(e){return new Promise((n,r)=>{const a=new FileReader;a.onload=()=>n(String(a.result).split(",")[1]??""),a.onerror=()=>r(new Error("The image could not be read.")),a.readAsDataURL(e)})}function G2(e,n,r){return new Promise((a,o)=>e.toBlob(c=>c?a(c):o(new Error("The image could not be read.")),n,r))}async function C7(e){const n=await createImageBitmap(e);try{const r=Math.min(1,S7/Math.max(n.width,n.height));if(r===1&&N7.includes(e.type)&&Z2(e.size)<=Q2)return{data:await lu(e),mediaType:e.type};const a=document.createElement("canvas");a.width=Math.round(n.width*r),a.height=Math.round(n.height*r);const o=a.getContext("2d");if(!o)throw new Error("The image could not be read.");o.drawImage(n,0,0,a.width,a.height);const c=await G2(a,"image/png");return Z2(c.size)<=Q2?{data:await lu(c),mediaType:"image/png"}:(o.globalCompositeOperation="destination-over",o.fillStyle="#fff",o.fillRect(0,0,a.width,a.height),{data:await lu(await G2(a,"image/jpeg",.85)),mediaType:"image/jpeg"})}finally{n.close()}}const E7="high",z7=["none","minimal","low","medium","high","xhigh","max","ultra"],M7=["auto","manual","acceptEdits","plan","bypassPermissions"],sf=e=>`chat:choices:${e}`;function af(e){const n=fr(sf(e),null);return{...n&&z7.includes(n.effort)?{effort:n.effort}:{},...n&&M7.includes(n.mode)?{mode:n.mode}:{}}}function A7(e,n){const r=e?af(e):{};return{model:(n==null?void 0:n.model)??"",mode:r.mode??(n==null?void 0:n.mode)??"agent",effort:r.effort??((n==null?void 0:n.effort)||E7)}}function P7(e,n){const r=af(e),a=n.effort||r.effort,o=n.mode&&n.mode!=="agent"?n.mode:r.mode;En(sf(e),{...a?{effort:a}:{},...o?{mode:o}:{}})}const ou=e=>v1(e);function Y2({chat:e,value:n,disabled:r,onChange:a}){const[o,c]=_.useState(!1),[u,h]=_.useState({left:0,top:0,maxHeight:320,width:300}),p=_.useRef(null),f=_.useRef(null),m=_.useId(),g=e==null?void 0:e.sessions.find(j=>j.id===n),y=(g==null?void 0:g.agent)??(n.startsWith("new:")?n.slice(4):null),v=g?`${ou(g.agent)} · ${g.id.slice(0,6)} · ${g.status}`:y?`${ou(y)} · new chat`:"Choose an agent…";_.useLayoutEffect(()=>{if(!o)return;const j=()=>{var K,D;const P=(K=p.current)==null?void 0:K.getBoundingClientRect();if(!P)return;const C=Math.min(300,window.innerWidth-24),M=P.top-20,z=window.innerHeight-P.bottom-20,N=M>=Math.min(320,z),L=Math.max(60,Math.min(320,N?M:z)),V=Math.min(((D=f.current)==null?void 0:D.scrollHeight)??320,L);h({left:Math.max(12,Math.min(P.right-C,window.innerWidth-C-12)),top:N?P.top-V-8:P.bottom+8,maxHeight:L,width:C})};j();const b=new ResizeObserver(j);return p.current&&b.observe(p.current),f.current&&b.observe(f.current),window.addEventListener("resize",j),window.addEventListener("scroll",j,!0),()=>{b.disconnect(),window.removeEventListener("resize",j),window.removeEventListener("scroll",j,!0)}},[o]),_.useEffect(()=>{var P,C,M;if(!o)return;(M=((P=f.current)==null?void 0:P.querySelector('[aria-checked="true"]:not(:disabled)'))??((C=f.current)==null?void 0:C.querySelector("button:not(:disabled)")))==null||M.focus();const j=z=>{var N,L;!((N=f.current)!=null&&N.contains(z.target))&&!((L=p.current)!=null&&L.contains(z.target))&&c(!1)},b=z=>{var N;z.key==="Escape"&&(z.preventDefault(),c(!1),(N=p.current)==null||N.focus())};return document.addEventListener("pointerdown",j),document.addEventListener("focusin",j),document.addEventListener("keydown",b),()=>{document.removeEventListener("pointerdown",j),document.removeEventListener("focusin",j),document.removeEventListener("keydown",b)}},[o]),_.useEffect(()=>{r&&c(!1)},[r]);function w(j){var M,z;if(j.key==="Tab"){c(!1),(M=p.current)==null||M.focus();return}const b=[...((z=f.current)==null?void 0:z.querySelectorAll("button:not(:disabled)"))??[]];if(!b.length||!["ArrowDown","ArrowUp","Home","End"].includes(j.key))return;j.preventDefault();const P=b.indexOf(document.activeElement),C=j.key==="Home"?0:j.key==="End"?b.length-1:(P+(j.key==="ArrowDown"?1:-1)+b.length)%b.length;b[C].focus()}function S(j,b,P,C=!1){return i.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":n===j,tabIndex:-1,className:"menu__item chat-agent-menu__item",disabled:C,onClick:()=>{var M;a(j),c(!1),(M=p.current)==null||M.focus()},children:[i.jsx("span",{className:"chat-agent-menu__logo",children:i.jsx(Gt,{kind:b,size:17})}),i.jsxs("span",{className:"chat-agent-menu__text",children:[i.jsx("strong",{children:ou(b)}),i.jsx("span",{children:P})]}),n===j&&i.jsx(pr,{size:15,className:"chat-agent-menu__check","aria-hidden":!0})]},j)}return i.jsxs("div",{className:"agent-chat__target",children:[i.jsxs("button",{ref:p,type:"button",className:"agent-chat__target-button",value:n,"aria-label":"Send requests to","aria-haspopup":"menu","aria-expanded":o,"aria-controls":o?m:void 0,disabled:r,onClick:()=>c(j=>!j),onKeyDown:j=>{(j.key==="ArrowDown"||j.key==="ArrowUp")&&(j.preventDefault(),c(!0))},children:[i.jsx(Gt,{kind:y??"other",size:15}),i.jsx("span",{children:v}),i.jsx(On,{size:13,"aria-hidden":!0})]}),o&&os.createPortal(i.jsxs("div",{ref:f,id:m,role:"menu","aria-label":"Choose a chat agent",className:"popover chat-agent-menu",style:u,onKeyDown:w,children:[!!(e!=null&&e.sessions.length)&&i.jsxs(i.Fragment,{children:[i.jsxs("div",{role:"group","aria-label":"Kalvyr conversations",children:[i.jsx("div",{className:"menu__label",children:"Kalvyr conversations"}),e.sessions.map(j=>S(j.id,j.agent,`${j.id.slice(0,6)} · ${j.status}`))]}),i.jsx("div",{className:"menu__sep",role:"separator"})]}),i.jsxs("div",{role:"group","aria-label":"Start a new conversation",children:[i.jsx("div",{className:"menu__label",children:"Start a new conversation"}),["codex","claude-code"].map(j=>{const b=e==null?void 0:e.available.some(P=>P.agent===j);return S(`new:${j}`,j,b?"New chat in this project":"CLI unavailable · install and sign in",!b)})]})]}),document.body)]})}const Ll={none:"None",minimal:"Minimal",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Max",ultra:"Ultra"};function T7({models:e,selectedModel:n,options:r,disabled:a,locked:o,message:c,failed:u,onOpen:h,onRetry:p,onChange:f}){const[m,g]=_.useState(!1),[y,v]=_.useState(null),[w,S]=_.useState({left:12,top:12,width:280,maxHeight:320,subLeft:12,subTop:12,stacked:!1}),j=_.useRef(null),b=_.useRef(null),P=_.useRef(null),C=_.useRef(null),M=_.useRef(null),z=_.useRef(!1),N=_.useId(),L=e.find($=>$.id===n),V=(L==null?void 0:L.efforts)??[],K=r.effort||(L==null?void 0:L.defaultEffort)||"",D=e.slice(0,4),I=e.slice(4),B=()=>{var $;g(!1),v(null),($=j.current)==null||$.focus()},H=($,G=!1)=>{var A,F,W;z.current=G,v($),G&&y===$&&((W=((A=P.current)==null?void 0:A.querySelector('[aria-checked="true"]'))??((F=P.current)==null?void 0:F.querySelector("button")))==null||W.focus())},Y=$=>{var G;f({...r,model:$.id,effort:r.effort&&((G=$.efforts)!=null&&G.includes(r.effort))?r.effort:""}),B()};_.useEffect(()=>{a&&(g(!1),v(null))},[a]),_.useLayoutEffect(()=>{if(!m)return;const $=()=>{var ee,Ae,Ze,mt;const A=(ee=j.current)==null?void 0:ee.getBoundingClientRect();if(!A)return;const F=Math.min(280,window.innerWidth-24),W=Math.max(12,Math.min(A.left,window.innerWidth-F-12)),T=Math.max(80,Math.min(400,window.innerHeight-24)),ve=Math.min(((Ae=b.current)==null?void 0:Ae.offsetHeight)||220,T),te=Math.max(12,Math.min(A.top-ve-8,window.innerHeight-ve-12)),le=window.innerWidth<F*2+36,je=(Ze=(y==="effort"?C:M).current)==null?void 0:Ze.getBoundingClientRect(),we=Math.min(((mt=P.current)==null?void 0:mt.offsetHeight)||220,T),ce=le?W:W+F*2+20<=window.innerWidth?W+F+4:Math.max(12,W-F-4),ge=le?Math.max(12,Math.min(A.top-we-8,window.innerHeight-we-12)):Math.max(12,Math.min((je==null?void 0:je.top)??te,window.innerHeight-we-12));S(tt=>{const xt={left:W,top:te,width:F,maxHeight:T,subLeft:ce,subTop:ge,stacked:le};return JSON.stringify(tt)===JSON.stringify(xt)?tt:xt})};$();const G=new ResizeObserver($);for(const A of[b.current,P.current,j.current])A&&G.observe(A);return window.addEventListener("resize",$),window.addEventListener("scroll",$,!0),()=>{G.disconnect(),window.removeEventListener("resize",$),window.removeEventListener("scroll",$,!0)}},[m,y]),_.useEffect(()=>{var G,A,F;if(!m)return;(F=((G=b.current)==null?void 0:G.querySelector('[aria-checked="true"]'))??((A=b.current)==null?void 0:A.querySelector("button")))==null||F.focus({preventScroll:!0});const $=W=>{const T=W.target;[b.current,P.current,j.current].some(ve=>ve==null?void 0:ve.contains(T))||(g(!1),v(null))};return document.addEventListener("pointerdown",$),document.addEventListener("focusin",$),()=>{document.removeEventListener("pointerdown",$),document.removeEventListener("focusin",$)}},[m]),_.useEffect(()=>{var $,G,A;y&&(z.current||w.stacked)&&((A=(($=P.current)==null?void 0:$.querySelector('[aria-checked="true"]'))??((G=P.current)==null?void 0:G.querySelector("button")))==null||A.focus({preventScroll:!0}),z.current=!1)},[y,w.stacked]);const ne=()=>{const $=y==="effort"?C:M;v(null),requestAnimationFrame(()=>{var G;return(G=$.current)==null?void 0:G.focus()})};function ie($,G=!1){if($.key==="Escape"||G&&$.key==="ArrowLeft"){$.preventDefault(),$.stopPropagation(),y?ne():B();return}if($.key==="Tab"){B();return}if(!G&&/^[1-4]$/.test($.key)&&!$.ctrlKey&&!$.metaKey&&!$.altKey){const W=D[Number($.key)-1];W&&($.preventDefault(),Y(W));return}if(!G&&$.key==="ArrowRight"){const W=document.activeElement;(W===C.current||W===M.current)&&($.preventDefault(),H(W===C.current?"effort":"models",!0));return}const A=Array.from($.currentTarget.querySelectorAll("button")),F=A.indexOf(document.activeElement);if(["ArrowDown","ArrowUp","Home","End"].includes($.key)&&A.length){$.preventDefault();const W=$.key==="Home"?0:$.key==="End"?A.length-1:(F+($.key==="ArrowDown"?1:-1)+A.length)%A.length;A[W].focus()}}const re=($,G)=>i.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":$.id===n,"data-label":$.name,tabIndex:-1,className:"chat-model-menu__row",onPointerEnter:()=>{G!==void 0&&v(null)},onFocus:()=>{G!==void 0&&v(null)},onClick:()=>Y($),children:[i.jsx("span",{children:$.name}),$.id===n?i.jsx(pr,{size:16,className:"chat-composer-menu__check","aria-hidden":!0}):G!==void 0&&i.jsx("small",{"aria-hidden":!0,children:G+1})]},$.id);return i.jsxs(i.Fragment,{children:[i.jsxs("button",{ref:j,type:"button",className:"agent-chat__tool agent-chat__select","aria-label":"Choose model",title:o?"Wait for the current turn to finish to change model or effort":"Choose model and effort",value:n,disabled:a,"aria-haspopup":"menu","aria-expanded":m,"aria-controls":m?N:void 0,onClick:()=>{m?B():(h(),g(!0))},onKeyDown:$=>{["ArrowDown","ArrowUp"].includes($.key)&&($.preventDefault(),m||(h(),g(!0)))},children:[i.jsx(vp,{size:14,"aria-hidden":!0}),i.jsxs("span",{children:[(L==null?void 0:L.name)||n||"Choose model",K&&i.jsx("span",{className:"chat-model-menu__trigger-effort",children:Ll[K]})]}),i.jsx(On,{size:12,"aria-hidden":!0})]}),m&&os.createPortal(i.jsxs(i.Fragment,{children:[i.jsxs("div",{ref:b,id:N,role:"menu","aria-label":"Choose model",className:"popover chat-composer-menu chat-model-menu",style:{left:w.left,top:w.top,width:w.width,maxHeight:w.maxHeight,visibility:w.stacked&&y?"hidden":void 0},onKeyDown:$=>ie($),children:[c&&i.jsxs("div",{className:"chat-composer-menu__status",role:"status",children:[c,u&&i.jsx("button",{type:"button",role:"menuitem",onClick:p,children:"Retry"})]}),D.map(($,G)=>re($,G)),i.jsx("div",{role:"separator",className:"chat-model-menu__separator"}),i.jsxs("button",{ref:C,type:"button",role:"menuitem",className:"chat-model-menu__row",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y==="effort","aria-controls":y==="effort"?`${N}-effort`:void 0,onPointerEnter:()=>H("effort"),onClick:()=>H("effort",!0),children:[i.jsx("span",{children:"Effort"}),i.jsx("small",{children:K?Ll[K]:"Auto"}),i.jsx(Ni,{size:14,"aria-hidden":!0})]}),i.jsx("div",{role:"separator",className:"chat-model-menu__separator"}),i.jsxs("button",{ref:M,type:"button",role:"menuitem",className:"chat-model-menu__row",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":y==="models","aria-controls":y==="models"?`${N}-models`:void 0,onPointerEnter:()=>H("models"),onClick:()=>H("models",!0),children:[i.jsx("span",{children:"More models"}),i.jsx(Ni,{size:14,"aria-hidden":!0})]})]}),y&&i.jsxs("div",{ref:P,id:`${N}-${y}`,role:"menu","aria-label":y==="effort"?"Effort":"More models",className:"popover chat-composer-menu chat-model-menu chat-model-menu--flyout",style:{left:w.subLeft,top:w.subTop,width:w.width,maxHeight:w.maxHeight},onKeyDown:$=>ie($,!0),children:[w.stacked&&i.jsxs("button",{type:"button",role:"menuitem",className:"chat-model-menu__row",onClick:ne,children:[i.jsx(fp,{size:14}),i.jsx("span",{children:"Back"})]}),y==="models"?I.length?I.map($=>re($)):i.jsx("p",{className:"chat-model-menu__explanation",children:"All available models are shown in the main menu."}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"chat-model-menu__explanation",children:V.length?"Higher effort allows deeper reasoning, but can take longer and use more of your limits.":L?"This model does not report adjustable effort levels.":"Choose a model to see its effort levels."}),!!V.length&&i.jsx(i.Fragment,{children:V.map($=>i.jsxs("button",{type:"button",role:"menuitemradio","aria-checked":K===$,"data-label":Ll[$],tabIndex:-1,className:"chat-model-menu__row",onClick:()=>{f({...r,model:n,effort:$}),B()},children:[i.jsx("span",{children:Ll[$]}),$===(L==null?void 0:L.defaultEffort)&&i.jsx("small",{className:"chat-model-menu__badge",children:"Recommended"}),K===$&&i.jsx(pr,{size:16,className:"chat-composer-menu__check","aria-hidden":!0})]},$))})]})]})]}),document.body)]})}function L7({label:e,title:n,value:r,icon:a,options:o,disabled:c,showOptionIcons:u=!0,compact:h=!1,message:p,displayLabel:f,heading:m,permissionMenu:g=!1,onOpen:y,onChange:v}){const[w,S]=_.useState(!1),[j,b]=_.useState({left:0,top:0,width:280,maxHeight:320}),P=_.useRef(null),C=_.useRef(null),M=_.useId(),z=o.find(L=>!L.action&&L.value===r);_.useLayoutEffect(()=>{if(!w)return;const L=()=>{var ie,re;const K=(ie=P.current)==null?void 0:ie.getBoundingClientRect();if(!K)return;const D=Math.min(g?320:280,window.innerWidth-24),I=K.top-20,B=window.innerHeight-K.bottom-20,H=I>=Math.min(320,B),Y=Math.max(40,Math.min(320,H?I:B)),ne=Math.min(((re=C.current)==null?void 0:re.offsetHeight)||320,Y);b({left:Math.max(12,Math.min(K.left,window.innerWidth-D-12)),top:H?Math.max(12,K.top-ne-8):K.bottom+8,width:D,maxHeight:Y})};L();const V=new ResizeObserver(L);return P.current&&V.observe(P.current),C.current&&V.observe(C.current),window.addEventListener("resize",L),window.addEventListener("scroll",L,!0),()=>{V.disconnect(),window.removeEventListener("resize",L),window.removeEventListener("scroll",L,!0)}},[w,g]),_.useEffect(()=>{var V,K,D;if(!w)return;(D=((V=C.current)==null?void 0:V.querySelector('[aria-checked="true"]'))??((K=C.current)==null?void 0:K.querySelector("button")))==null||D.focus({preventScroll:!0});const L=I=>{var B,H;!((B=C.current)!=null&&B.contains(I.target))&&!((H=P.current)!=null&&H.contains(I.target))&&S(!1)};return document.addEventListener("pointerdown",L),document.addEventListener("focusin",L),()=>{document.removeEventListener("pointerdown",L),document.removeEventListener("focusin",L)}},[w]),_.useEffect(()=>{c&&S(!1)},[c]);function N(L){var I,B,H,Y;if(L.key==="Escape"){L.preventDefault(),L.stopPropagation(),S(!1),(I=P.current)==null||I.focus();return}if(L.key==="Tab"){S(!1),(B=P.current)==null||B.focus();return}const V=!L.ctrlKey&&!L.altKey&&!L.metaKey&&o.find(ne=>ne.shortcut===L.key);if(V){L.preventDefault(),S(!1),(H=P.current)==null||H.focus(),v(V.value);return}const K=Array.from(((Y=C.current)==null?void 0:Y.querySelectorAll("button"))??[]),D=K.indexOf(document.activeElement);if(K.length){if(["ArrowDown","ArrowUp","Home","End"].includes(L.key)){L.preventDefault();const ne=L.key==="Home"?0:L.key==="End"?K.length-1:(D+(L.key==="ArrowDown"?1:-1)+K.length)%K.length;K[ne].focus()}else if(L.key.length===1&&!L.ctrlKey&&!L.altKey&&!L.metaKey&&L.key!==" "){const ne=[...K.slice(D+1),...K.slice(0,D+1)].find(ie=>{var re;return(re=ie.dataset.label)==null?void 0:re.toLowerCase().startsWith(L.key.toLowerCase())});ne&&(L.preventDefault(),ne.focus())}}}return i.jsxs(i.Fragment,{children:[i.jsxs("button",{ref:P,type:"button",className:"agent-chat__tool agent-chat__select",title:n,"aria-label":e,value:r,disabled:c,"aria-haspopup":"menu","aria-expanded":w,"aria-controls":w?M:void 0,onClick:()=>{w||y==null||y(),S(L=>!L)},onKeyDown:L=>{(L.key==="ArrowDown"||L.key==="ArrowUp")&&(L.preventDefault(),w||y==null||y(),S(!0))},children:[a,i.jsx("span",{children:f??((z==null?void 0:z.label)||r)}),!g&&i.jsx(On,{size:12,"aria-hidden":!0})]}),w&&os.createPortal(i.jsxs("div",{ref:C,id:M,role:"menu","aria-label":e,className:`popover chat-composer-menu${h?" chat-composer-menu--compact":""}${g?" chat-permission-menu":""}`,style:j,onKeyDown:N,children:[!h&&i.jsx("div",{className:"chat-composer-menu__heading",children:m??e}),p&&i.jsx("div",{className:"chat-composer-menu__status",role:"status",children:p}),o.map(L=>i.jsxs("button",{type:"button",role:L.action?"menuitem":"menuitemradio","aria-checked":L.action?void 0:L.value===r,"data-label":L.label,tabIndex:-1,className:`chat-composer-menu__item${L.action?" chat-composer-menu__item--action":""}`,onClick:()=>{var V;S(!1),(V=P.current)==null||V.focus(),v(L.value)},children:[u&&i.jsx("span",{className:"chat-composer-menu__icon",children:L.icon||a}),i.jsxs("span",{className:"chat-composer-menu__text",children:[i.jsx("strong",{children:L.label}),L.description&&i.jsx("span",{children:L.description})]}),!L.action&&L.value===r&&i.jsx(pr,{size:15,className:"chat-composer-menu__check","aria-hidden":!0}),(L.shortcut||L.hint)&&i.jsx("span",{className:"chat-composer-menu__hint","aria-hidden":!0,children:L.shortcut||L.hint})]},L.value))]}),document.body)]})}const lf={"claude-code":"https://claude.ai/settings/usage"};function of(e){const n=new Date(Math.round(e/60)*6e4),r=new Date,a=n.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"});return n.toDateString()===r.toDateString()?`Resets at ${a}`:n.getTime()-r.getTime()<6.5*864e5?`Resets ${n.toLocaleDateString("en-GB",{weekday:"short"})} ${a}`:`Resets ${n.toLocaleDateString("en-GB",{day:"numeric",month:"short"})}`}function cf(e,n=Date.now()){return e.filter(r=>r.usedPercent>=100&&(!r.resetsAt||r.resetsAt*1e3>n))}const I7=e=>!!e&&/usage limit|limit reached|hit your (?:\S+ )?limit|rate limit/i.test(e),X2=e=>e>=90?" is-high":e>=75?" is-warn":"";function R7({agent:e,sessionUsage:n,usage:r,onRefresh:a,onRetry:o}){var b,P;const[c,u]=_.useState(!1),[h,p]=_.useState({left:12,top:12,width:340}),f=_.useRef(null),m=_.useRef(null),g=_.useId();_.useLayoutEffect(()=>{if(!c)return;const C=()=>{var V,K;const z=(V=f.current)==null?void 0:V.getBoundingClientRect();if(!z)return;const N=Math.min(340,window.innerWidth-24),L=((K=m.current)==null?void 0:K.offsetHeight)??160;p({width:N,left:Math.max(12,Math.min(z.right-N,window.innerWidth-N-12)),top:Math.max(12,z.top-L-8)})};C();const M=new ResizeObserver(C);return m.current&&M.observe(m.current),window.addEventListener("resize",C),window.addEventListener("scroll",C,!0),()=>{M.disconnect(),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0)}},[c]),_.useEffect(()=>{if(!c)return;const C=z=>{[m.current,f.current].some(N=>N==null?void 0:N.contains(z.target))||u(!1)},M=z=>{var N;z.key==="Escape"&&(u(!1),(N=f.current)==null||N.focus())};return document.addEventListener("pointerdown",C),document.addEventListener("keydown",M),()=>{document.removeEventListener("pointerdown",C),document.removeEventListener("keydown",M)}},[c]);const y=((b=r==null?void 0:r.data)==null?void 0:b.windows)??[],v=y.length?y:(n==null?void 0:n.filter(C=>Number.isFinite(C.usedPercent)))??[],w=v.length?Math.max(...v.map(C=>Math.max(0,Math.min(100,C.usedPercent)))):null,S=e&&lf[e],j=w===null?"Usage limits unavailable":`Usage limits: ${Math.round(w)}% used`;return i.jsxs(i.Fragment,{children:[i.jsx("button",{ref:f,type:"button",className:`agent-chat__tool agent-chat__usage${w===null?"":X2(w)}`,"aria-label":j,"aria-expanded":c,"aria-controls":c?g:void 0,title:j,onClick:()=>{c||a(),u(C=>!C)},children:i.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 24 24","aria-hidden":!0,children:[i.jsx("circle",{className:"agent-chat__gauge-track",cx:"12",cy:"12",r:"9"}),i.jsx("circle",{className:"agent-chat__gauge-value",cx:"12",cy:"12",r:"9",pathLength:"100",strokeDasharray:`${w??0} 100`,transform:"rotate(-90 12 12)"})]})}),c&&os.createPortal(i.jsxs("div",{ref:m,id:g,role:"dialog","aria-label":"Usage limits",className:"popover agent-chat__usage-details",style:h,children:[i.jsxs("div",{className:"agent-chat__usage-heading",children:[i.jsxs("span",{children:["Plan usage limits",((P=r==null?void 0:r.data)==null?void 0:P.plan)&&` · ${r.data.plan}`]}),S&&i.jsxs("a",{href:S,target:"_blank",rel:"noreferrer",children:["See all ",i.jsx(i1,{size:13,"aria-hidden":!0})]})]}),v.length?v.map((C,M)=>{const z=Math.round(Math.max(0,Math.min(100,C.usedPercent)));return i.jsxs("div",{className:`agent-chat__usage-row${X2(z)}`,children:[i.jsxs("div",{children:[i.jsx("strong",{children:C.label??"Usage limit"}),i.jsxs("span",{children:[!!C.resetsAt&&i.jsx("small",{children:of(C.resetsAt)}),i.jsxs("b",{children:[z,"%"]})]})]}),i.jsx("span",{className:"agent-chat__usage-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":z,"aria-label":C.label??"Usage limit",children:i.jsx("i",{style:{width:`${z}%`}})})]},C.label??M)}):i.jsx("p",{children:e?r!=null&&r.failed?i.jsxs(i.Fragment,{children:["Usage limits couldn’t be loaded. ",i.jsx("button",{type:"button",onClick:o,children:"Retry"})]}):r?"This account doesn’t report plan limits.":"Loading usage…":"Choose an agent to view usage."})]}),document.body)]})}function D7({projectId:e,pro:n,agent:r,options:a,permissionMode:o,models:c,usage:u,accountUsage:h,onRefreshUsage:p,onRetryUsage:f,disabled:m,locked:g,onChange:y}){var K;const[v,w]=_.useState(),[S,j]=_.useState(0),b=`${e}:${n}:${r}`;_.useEffect(()=>{if(!r)return;let D=!1;return Ue.chatModels(e,r,n).then(I=>{D||w({key:b,data:I})}).catch(()=>{D||w({key:b,failed:!0})}),()=>{D=!0}},[b,e,n,r,S]);const P=(v==null?void 0:v.key)===b?v:void 0,C=((K=P==null?void 0:P.data)==null?void 0:K.models)??(c.length?c:r==="claude-code"?[{id:"opus",name:"Opus"},{id:"sonnet",name:"Sonnet"},{id:"haiku",name:"Haiku"}]:[]),M=C.find(D=>{var I;return D.id===((I=P==null?void 0:P.data)==null?void 0:I.defaultModel)}),z=a.model||(M==null?void 0:M.id)||"",N=C.find(D=>D.id===z),L=!!(P!=null&&P.data)&&!!N&&!!a.effort&&!(N.efforts??[]).includes(a.effort);_.useEffect(()=>{L&&y({...a,effort:""},!1)},[L,a,y]);const V=o??(a.mode==="agent"?r==="codex"?"acceptEdits":"manual":a.mode??"manual");return i.jsx(i.Fragment,{children:i.jsxs("div",{className:"agent-chat__tools",children:[i.jsx(T7,{models:C,selectedModel:z,options:a,disabled:m||g||!r,locked:g,message:P!=null&&P.failed?"Couldn’t load the model list.":P?C.length?void 0:"No models reported by this agent.":"Loading models…",failed:P==null?void 0:P.failed,onOpen:()=>j(D=>D+1),onRetry:()=>{w(void 0),j(D=>D+1)},onChange:y},b),i.jsx(L7,{label:"Choose mode",heading:"Mode",permissionMenu:!0,title:g?"Wait for the current turn to finish to change permissions":"Choose a permission mode",icon:null,showOptionIcons:!1,value:V,disabled:m||g||!r,options:[{value:"auto",label:"Auto",description:`${r==="codex"?"Codex":"Claude"} reviews permission requests automatically`,shortcut:"1"},{value:"manual",label:"Manual",description:"Ask before making changes",shortcut:"2"},{value:"acceptEdits",label:"Accept edits",description:r==="codex"?"Allow workspace edits; ask for extra access":"Automatically accept file edits",shortcut:"3"},{value:"plan",label:"Plan",description:"Create a plan before making changes",shortcut:"4"},{value:"bypassPermissions",label:"Bypass permissions",hint:V==="bypassPermissions"?void 0:"Enable"}],onChange:D=>y({...a,mode:D})}),i.jsx(R7,{agent:r,sessionUsage:u,usage:h,onRefresh:p,onRetry:f})]})})}const F7=e=>e==="codex"?"Codex":"Claude Code",$7=e=>e?e[0].toLowerCase()+e.slice(1):"usage limit";function O7({agent:e,plan:n,reached:r,message:a,onCheck:o,onClose:c}){const u=F7(e),h=r.map(m=>$7(m.label)),p=r.every(m=>m.resetsAt)&&r.length?Math.max(...r.map(m=>m.resetsAt)):void 0,f=lf[e];return i.jsxs("div",{className:"agent-chat__limit",role:"status",children:[i.jsxs("div",{className:"agent-chat__limit-title",children:[i.jsxs("strong",{children:[i.jsx(Gm,{size:15,"aria-hidden":!0}),u," usage limit reached"]}),i.jsx("button",{type:"button",className:"icon-btn agent-chat__limit-close","aria-label":"Close usage limit message",title:"Close",onClick:c,children:i.jsx(Cn,{size:14})})]}),i.jsx("p",{children:r.length?i.jsxs(i.Fragment,{children:["Your ",h.join(" and ")," ",h.length>1?"are":"is"," used up",n&&` on the ${n} plan`,". Requests to ",u," will fail until ",h.length>1?"they reset":"it resets","."]}):a}),i.jsxs("div",{className:"agent-chat__limit-actions",children:[p&&i.jsx("span",{children:of(p)}),i.jsx("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:o,children:"Check again"}),f&&i.jsxs("a",{href:f,target:"_blank",rel:"noreferrer",children:["See usage ",i.jsx(i1,{size:13,"aria-hidden":!0})]})]})]})}const B7=5*6e4,H7=2**31-1;function U7(e,n,r,a){var y;const[o,c]=_.useState(),[u,h]=_.useState(0),p=_.useRef(a),f=`${e}:${n}:${r}`;_.useEffect(()=>{if(!r)return;let v=!1;return Ue.chatUsage(e,r,n).then(w=>{v||c({key:f,data:w})}).catch(()=>{v||c(w=>(w==null?void 0:w.key)===f&&w.data?w:{key:f,failed:!0})}),()=>{v=!0}},[f,e,n,r,u]),_.useEffect(()=>{const v=setInterval(()=>h(w=>w+1),B7);return()=>clearInterval(v)},[]),_.useEffect(()=>{p.current&&!a&&h(v=>v+1),p.current=a},[a]);const m=(o==null?void 0:o.key)===f?o:void 0,g=Math.min(...cf(((y=m==null?void 0:m.data)==null?void 0:y.windows)??[]).map(v=>v.resetsAt??1/0));return _.useEffect(()=>{if(!Number.isFinite(g))return;const v=Math.max(5e3,g*1e3-Date.now()+5e3);if(v>H7)return;const w=setTimeout(()=>h(S=>S+1),v);return()=>clearTimeout(w)},[g]),{usage:m,refresh:()=>h(v=>v+1),retry:()=>{c(void 0),h(v=>v+1)}}}function V7(e,n){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const W7=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,q7=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,K7={};function J2(e,n){return(K7.jsx?q7:W7).test(e)}const Q7=/[ \t\n\f\r]/g;function Z7(e){return typeof e=="object"?e.type==="text"?eh(e.value):!1:eh(e)}function eh(e){return e.replace(Q7,"")===""}class ma{constructor(n,r,a){this.normal=r,this.property=n,a&&(this.space=a)}}ma.prototype.normal={};ma.prototype.property={};ma.prototype.space=void 0;function uf(e,n){const r={},a={};for(const o of e)Object.assign(r,o.property),Object.assign(a,o.normal);return new ma(r,a,n)}function Bu(e){return e.toLowerCase()}class xn{constructor(n,r){this.attribute=r,this.property=n}}xn.prototype.attribute="";xn.prototype.booleanish=!1;xn.prototype.boolean=!1;xn.prototype.commaOrSpaceSeparated=!1;xn.prototype.commaSeparated=!1;xn.prototype.defined=!1;xn.prototype.mustUseProperty=!1;xn.prototype.number=!1;xn.prototype.overloadedBoolean=!1;xn.prototype.property="";xn.prototype.spaceSeparated=!1;xn.prototype.space=void 0;let G7=0;const He=zi(),bt=zi(),Hu=zi(),fe=zi(),st=zi(),_i=zi(),Sn=zi();function zi(){return 2**++G7}const Uu=Object.freeze(Object.defineProperty({__proto__:null,boolean:He,booleanish:bt,commaOrSpaceSeparated:Sn,commaSeparated:_i,number:fe,overloadedBoolean:Hu,spaceSeparated:st},Symbol.toStringTag,{value:"Module"})),cu=Object.keys(Uu);class j1 extends xn{constructor(n,r,a,o){let c=-1;if(super(n,r),th(this,"space",o),typeof a=="number")for(;++c<cu.length;){const u=cu[c];th(this,cu[c],(a&Uu[u])===Uu[u])}}}j1.prototype.defined=!0;function th(e,n,r){r&&(e[n]=r)}function cs(e){const n={},r={};for(const[a,o]of Object.entries(e.properties)){const c=new j1(a,e.transform(e.attributes||{},a),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(a)&&(c.mustUseProperty=!0),n[a]=c,r[Bu(a)]=a,r[Bu(c.attribute)]=a}return new ma(n,r,e.space)}const df=cs({properties:{ariaActiveDescendant:null,ariaAtomic:bt,ariaAutoComplete:null,ariaBusy:bt,ariaChecked:bt,ariaColCount:fe,ariaColIndex:fe,ariaColSpan:fe,ariaControls:st,ariaCurrent:null,ariaDescribedBy:st,ariaDetails:null,ariaDisabled:bt,ariaDropEffect:st,ariaErrorMessage:null,ariaExpanded:bt,ariaFlowTo:st,ariaGrabbed:bt,ariaHasPopup:null,ariaHidden:bt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:st,ariaLevel:fe,ariaLive:null,ariaModal:bt,ariaMultiLine:bt,ariaMultiSelectable:bt,ariaOrientation:null,ariaOwns:st,ariaPlaceholder:null,ariaPosInSet:fe,ariaPressed:bt,ariaReadOnly:bt,ariaRelevant:null,ariaRequired:bt,ariaRoleDescription:st,ariaRowCount:fe,ariaRowIndex:fe,ariaRowSpan:fe,ariaSelected:bt,ariaSetSize:fe,ariaSort:null,ariaValueMax:fe,ariaValueMin:fe,ariaValueNow:fe,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function hf(e,n){return n in e?e[n]:n}function pf(e,n){return hf(e,n.toLowerCase())}const Y7=cs({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:_i,acceptCharset:st,accessKey:st,action:null,allow:null,allowFullScreen:He,allowPaymentRequest:He,allowUserMedia:He,alpha:He,alt:null,as:null,async:He,autoCapitalize:null,autoComplete:st,autoFocus:He,autoPlay:He,blocking:st,capture:null,charSet:null,checked:He,cite:null,className:st,closedBy:null,colorSpace:null,cols:fe,colSpan:fe,command:null,commandFor:null,content:null,contentEditable:bt,controls:He,controlsList:st,coords:fe|_i,crossOrigin:null,data:null,dateTime:null,decoding:null,default:He,defer:He,dir:null,dirName:null,disabled:He,download:Hu,draggable:bt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:He,formTarget:null,headers:st,height:fe,hidden:Hu,high:fe,href:null,hrefLang:null,htmlFor:st,httpEquiv:st,id:null,imageSizes:null,imageSrcSet:null,inert:He,inputMode:null,integrity:null,is:null,isMap:He,itemId:null,itemProp:st,itemRef:st,itemScope:He,itemType:st,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:He,low:fe,manifest:null,max:null,maxLength:fe,media:null,method:null,min:null,minLength:fe,multiple:He,muted:He,name:null,nonce:null,noModule:He,noValidate:He,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:He,optimum:fe,pattern:null,ping:st,placeholder:null,playsInline:He,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:He,referrerPolicy:null,rel:st,required:He,reversed:He,rows:fe,rowSpan:fe,sandbox:st,scope:null,scoped:He,seamless:He,selected:He,shadowRootClonable:He,shadowRootCustomElementRegistry:He,shadowRootDelegatesFocus:He,shadowRootMode:null,shadowRootSerializable:He,shape:null,size:fe,sizes:null,slot:null,span:fe,spellCheck:bt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:fe,step:null,style:null,tabIndex:fe,target:null,title:null,translate:null,type:null,typeMustMatch:He,useMap:null,value:bt,width:fe,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:st,axis:null,background:null,bgColor:null,border:fe,borderColor:null,bottomMargin:fe,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:He,declare:He,event:null,face:null,frame:null,frameBorder:null,hSpace:fe,leftMargin:fe,link:null,longDesc:null,lowSrc:null,marginHeight:fe,marginWidth:fe,noResize:He,noHref:He,noShade:He,noWrap:He,object:null,profile:null,prompt:null,rev:null,rightMargin:fe,rules:null,scheme:null,scrolling:bt,standby:null,summary:null,text:null,topMargin:fe,valueType:null,version:null,vAlign:null,vLink:null,vSpace:fe,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:He,disablePictureInPicture:He,disableRemotePlayback:He,exportParts:_i,part:st,prefix:null,property:null,results:fe,security:null,unselectable:null},space:"html",transform:pf}),X7=cs({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",maskType:"mask-type",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:Sn,accentHeight:fe,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:fe,amplitude:fe,arabicForm:null,ascent:fe,attributeName:null,attributeType:null,azimuth:fe,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:fe,by:null,calcMode:null,capHeight:fe,className:st,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:fe,diffuseConstant:fe,direction:null,display:null,dur:null,divisor:fe,dominantBaseline:null,download:He,dx:null,dy:null,edgeMode:null,editable:null,elevation:fe,enableBackground:null,end:null,event:null,exponent:fe,externalResourcesRequired:null,fill:null,fillOpacity:fe,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:_i,g2:_i,glyphName:_i,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:fe,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:fe,horizOriginX:fe,horizOriginY:fe,id:null,ideographic:fe,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:fe,k:fe,k1:fe,k2:fe,k3:fe,k4:fe,kernelMatrix:Sn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:fe,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:fe,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:fe,overlineThickness:fe,paintOrder:null,panose1:null,path:null,pathLength:fe,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:st,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:fe,pointsAtY:fe,pointsAtZ:fe,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sn,rev:Sn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sn,requiredFeatures:Sn,requiredFonts:Sn,requiredFormats:Sn,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:fe,specularExponent:fe,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:fe,strikethroughThickness:fe,string:null,stroke:null,strokeDashArray:Sn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:fe,strokeOpacity:fe,strokeWidth:null,style:null,surfaceScale:fe,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sn,tabIndex:fe,tableValues:null,target:null,targetX:fe,targetY:fe,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:fe,underlineThickness:fe,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:fe,values:null,vAlphabetic:fe,vMathematical:fe,vectorEffect:null,vHanging:fe,vIdeographic:fe,version:null,vertAdvY:fe,vertOriginX:fe,vertOriginY:fe,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:fe,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:hf}),ff=cs({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),mf=cs({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:pf}),gf=cs({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),J7={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"},e8=/[A-Z]/g,nh=/-[a-z]/g,t8=/^data[-\w.:]+$/i;function n8(e,n){const r=Bu(n);let a=n,o=xn;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&t8.test(n)){if(n.charAt(4)==="-"){const c=n.slice(5).replace(nh,i8);a="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=n.slice(4);if(!nh.test(c)){let u=c.replace(e8,r8);u.charAt(0)!=="-"&&(u="-"+u),n="data"+u}}o=j1}return new o(a,n)}function r8(e){return"-"+e.toLowerCase()}function i8(e){return e.charAt(1).toUpperCase()}const s8=uf([df,Y7,ff,mf,gf],"html"),b1=uf([df,X7,ff,mf,gf],"svg");function a8(e){return e.join(" ").trim()}var rh=/\/\*(?:[^*]|\*(?!\/))*\*\//g,l8=/\n/g,o8=/^\s*/,c8=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,u8=/^:\s*/,d8=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,h8=/^[;\s]*/,p8=`
|
|
634
|
+
`,ih="/",sh="*",Ys="",f8="comment",m8="declaration";function g8(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var r=1,a=1;function o(w){var S=w.match(l8);S&&(r+=S.length);var j=w.lastIndexOf(p8);a=~j?w.length-j:a+w.length}function c(){var w={line:r,column:a};return function(S){return S.position=new u(w),f(),S}}function u(w){this.start=w,this.end={line:r,column:a},this.source=n.source}u.prototype.content=e;function h(w){var S=new Error(n.source+":"+r+":"+a+": "+w);if(S.reason=w,S.filename=n.source,S.line=r,S.column=a,S.source=e,!n.silent)throw S}function p(w){var S=w.exec(e);if(S){var j=S[0];return o(j),e=e.slice(j.length),S}}function f(){p(o8)}function m(w){for(var S;S=g();)w.push(S);return w}function g(){var w=c();if(!(ih!=e.charAt(0)||sh!=e.charAt(1))){for(var S=2;Ys!=e.charAt(S)&&(sh!=e.charAt(S)||ih!=e.charAt(S+1));)++S;if(S+=2,Ys===e.charAt(S-1))return h("End of comment missing");var j=e.slice(2,S-2);return a+=2,o(j),e=e.slice(S),a+=2,w({type:f8,comment:j})}}function y(){var w=c(),S=p(c8);if(S){if(g(),!p(u8))return h("property missing ':'");var j=p(d8),b=w({type:m8,property:S[0].replace(rh,Ys).trim(),value:j?j[0].replace(rh,Ys).trim():Ys});return p(h8),b}}function v(){var w=[];m(w);for(var S;S=y();)w.push(S),m(w);return w}return f(),v()}function x8(e,n){let r=null;if(!e||typeof e!="string")return r;const a=g8(e),o=typeof n=="function";return a.forEach(c=>{if(c.type!=="declaration")return;const{property:u,value:h}=c;o?n(u,h,c):h&&(r=r??{},r[u]=h)}),r}const xf=yf("end"),_1=yf("start");function yf(e){return n;function n(r){const a=r&&r.position&&r.position[e]||{};if(typeof a.line=="number"&&a.line>0&&typeof a.column=="number"&&a.column>0)return{line:a.line,column:a.column,offset:typeof a.offset=="number"&&a.offset>-1?a.offset:void 0}}}function y8(e){const n=_1(e),r=xf(e);if(n&&r)return{start:n,end:r}}function ra(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ah(e.position):"start"in e||"end"in e?ah(e):"line"in e||"column"in e?Vu(e):""}function Vu(e){return lh(e&&e.line)+":"+lh(e&&e.column)}function ah(e){return Vu(e&&e.start)+"-"+Vu(e&&e.end)}function lh(e){return e&&typeof e=="number"?e:1}class Yt extends Error{constructor(n,r,a){super(),typeof r=="string"&&(a=r,r=void 0);let o="",c={},u=!1;if(r&&("line"in r&&"column"in r?c={place:r}:"start"in r&&"end"in r?c={place:r}:"type"in r?c={ancestors:[r],place:r.position}:c={...r}),typeof n=="string"?o=n:!c.cause&&n&&(u=!0,o=n.message,c.cause=n),!c.ruleId&&!c.source&&typeof a=="string"){const p=a.indexOf(":");p===-1?c.ruleId=a:(c.source=a.slice(0,p),c.ruleId=a.slice(p+1))}if(!c.place&&c.ancestors&&c.ancestors){const p=c.ancestors[c.ancestors.length-1];p&&(c.place=p.position)}const h=c.place&&"start"in c.place?c.place.start:c.place;this.ancestors=c.ancestors||void 0,this.cause=c.cause||void 0,this.column=h?h.column:void 0,this.fatal=void 0,this.file="",this.message=o,this.line=h?h.line:void 0,this.name=ra(c.place)||"1:1",this.place=c.place||void 0,this.reason=this.message,this.ruleId=c.ruleId||void 0,this.source=c.source||void 0,this.stack=u&&c.cause&&typeof c.cause.stack=="string"?c.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Yt.prototype.file="";Yt.prototype.name="";Yt.prototype.reason="";Yt.prototype.message="";Yt.prototype.stack="";Yt.prototype.column=void 0;Yt.prototype.line=void 0;Yt.prototype.ancestors=void 0;Yt.prototype.cause=void 0;Yt.prototype.fatal=void 0;Yt.prototype.place=void 0;Yt.prototype.ruleId=void 0;Yt.prototype.source=void 0;const S1={}.hasOwnProperty,v8=new Map,k8=/[A-Z]/g,w8=/-([a-z])/g,j8=new Set(["table","tbody","thead","tfoot","tr"]),b8=new Set(["td","th"]),vf="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function _8(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=n.filePath||void 0;let a;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");a=P8(r,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");a=A8(r,n.jsx,n.jsxs)}const o={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:a,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?b1:s8,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},c=kf(o,e,void 0);return c&&typeof c!="string"?c:o.create(e,o.Fragment,{children:c||void 0},void 0)}function kf(e,n,r){if(n.type==="element")return S8(e,n,r);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return N8(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return E8(e,n,r);if(n.type==="mdxjsEsm")return C8(e,n);if(n.type==="root")return z8(e,n,r);if(n.type==="text")return M8(e,n)}function S8(e,n,r){const a=e.schema;let o=a;n.tagName.toLowerCase()==="svg"&&a.space==="html"&&(o=b1,e.schema=o),e.ancestors.push(n);const c=jf(e,n.tagName,!1),u=T8(e,n);let h=C1(e,n);return j8.has(n.tagName)&&(h=h.filter(function(p){return typeof p=="string"?!Z7(p):!0})),wf(e,u,c,n),N1(u,h),e.ancestors.pop(),e.schema=a,e.create(n,c,u,r)}function N8(e,n){if(n.data&&n.data.estree&&e.evaluater){const a=n.data.estree.body[0];return a.type,e.evaluater.evaluateExpression(a.expression)}ha(e,n.position)}function C8(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);ha(e,n.position)}function E8(e,n,r){const a=e.schema;let o=a;n.name==="svg"&&a.space==="html"&&(o=b1,e.schema=o),e.ancestors.push(n);const c=n.name===null?e.Fragment:jf(e,n.name,!0),u=L8(e,n),h=C1(e,n);return wf(e,u,c,n),N1(u,h),e.ancestors.pop(),e.schema=a,e.create(n,c,u,r)}function z8(e,n,r){const a={};return N1(a,C1(e,n)),e.create(n,e.Fragment,a,r)}function M8(e,n){return n.value}function wf(e,n,r,a){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(n.node=a)}function N1(e,n){if(n.length>0){const r=n.length>1?n:n[0];r&&(e.children=r)}}function A8(e,n,r){return a;function a(o,c,u,h){const f=Array.isArray(u.children)?r:n;return h?f(c,u,h):f(c,u)}}function P8(e,n){return r;function r(a,o,c,u){const h=Array.isArray(c.children),p=_1(a);return n(o,c,u,h,{columnNumber:p?p.column-1:void 0,fileName:e,lineNumber:p?p.line:void 0},void 0)}}function T8(e,n){const r={};let a,o;for(o in n.properties)if(o!=="children"&&S1.call(n.properties,o)){const c=I8(e,o,n.properties[o]);if(c){const[u,h]=c;e.tableCellAlignToStyle&&u==="align"&&typeof h=="string"&&b8.has(n.tagName)?a=h:r[u]=h}}if(a){const c=r.style||(r.style={});c[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}return r}function L8(e,n){const r={};for(const a of n.attributes)if(a.type==="mdxJsxExpressionAttribute")if(a.data&&a.data.estree&&e.evaluater){const c=a.data.estree.body[0];c.type;const u=c.expression;u.type;const h=u.properties[0];h.type,Object.assign(r,e.evaluater.evaluateExpression(h.argument))}else ha(e,n.position);else{const{name:o}=a;let c;if(a.value&&typeof a.value=="object")if(a.value.data&&a.value.data.estree&&e.evaluater){const h=a.value.data.estree.body[0];h.type,c=e.evaluater.evaluateExpression(h.expression)}else ha(e,n.position);else c=a.value===null?!0:a.value;r[o]=c}return r}function C1(e,n){const r=[];let a=-1;const o=e.passKeys?new Map:v8;for(;++a<n.children.length;){const c=n.children[a];let u;if(e.passKeys){const p=c.type==="element"?c.tagName:c.type==="mdxJsxFlowElement"||c.type==="mdxJsxTextElement"?c.name:void 0;if(p){const f=o.get(p)||0;u=p+"-"+f,o.set(p,f+1)}}const h=kf(e,c,u);h!==void 0&&r.push(h)}return r}function I8(e,n,r){if(r==null||typeof r=="number"&&Number.isNaN(r))return;const a=n8(e.schema,n);return Array.isArray(r)&&(r=a.commaSeparated?V7(r):a8(r)),a.property==="style"?["style",typeof r=="object"?e.stylePropertyNameCase==="dom"?r:D8(r):R8(e,String(r))]:[e.elementAttributeNameCase==="react"&&a.space?J7[a.property]||a.property:a.attribute,r]}function R8(e,n){const r={};try{x8(n,function(a,o){if(a&&o){let c=a;c.slice(0,2)!=="--"&&(c=c.toLowerCase(),e.stylePropertyNameCase==="dom"&&(c.slice(0,4)==="-ms-"&&(c=c.slice(1)),c=c.replace(w8,O8))),r[c]=o}})}catch(a){if(e.ignoreInvalidStyle)return{};const o=a,c=new Yt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:o,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw c.file=e.filePath||void 0,c.url=vf+"#cannot-parse-style-attribute",c}return r}function jf(e,n,r){let a;if(!r)a={type:"Literal",value:n};else if(n.includes(".")){const o=n.split(".");let c=-1,u;for(;++c<o.length;){const h=J2(o[c])?{type:"Identifier",name:o[c]}:{type:"Literal",value:o[c]};u=u?{type:"MemberExpression",object:u,property:h,computed:!!(c&&h.type==="Literal"),optional:!1}:h}a=u}else a=J2(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(a.type==="Literal"){const o=a.value;return S1.call(e.components,o)?e.components[o]:o}if(e.evaluater)return e.evaluater.evaluateExpression(a);ha(e)}function ha(e,n){const r=new Yt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=vf+"#cannot-handle-mdx-estrees-without-createevaluater",r}function D8(e){const n={};let r;for(r in e)S1.call(e,r)&&(n[F8(r)]=e[r]);return n}function F8(e){if(e.slice(0,2)==="--")return e;let n=e.replace(k8,$8);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function $8(e){return"-"+e.toLowerCase()}function O8(e,n){return n.toUpperCase()}const uu={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"]},B8={};function E1(e,n){const r=B8,a=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,o=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return bf(e,a,o)}function bf(e,n,r){if(H8(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return oh(e.children,n,r)}return Array.isArray(e)?oh(e,n,r):""}function oh(e,n,r){const a=[];let o=-1;for(;++o<e.length;)a[o]=bf(e[o],n,r);return a.join("")}function H8(e){return!!(e&&typeof e=="object")}const ch=document.createElement("i");function z1(e){const n="&"+e+";";ch.innerHTML=n;const r=ch.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===n?!1:r}function Gn(e,n,r,a){const o=e.length;let c=0,u;if(n<0?n=-n>o?0:o+n:n=n>o?o:n,r=r>0?r:0,a.length<1e4)u=Array.from(a),u.unshift(n,r),e.splice(...u);else for(r&&e.splice(n,r);c<a.length;)u=a.slice(c,c+1e4),u.unshift(n,0),e.splice(...u),c+=1e4,n+=1e4}function Fn(e,n){return e.length>0?(Gn(e,e.length,0,n),e):n}const uh={}.hasOwnProperty;function _f(e){const n={};let r=-1;for(;++r<e.length;)U8(n,e[r]);return n}function U8(e,n){let r;for(r in n){const o=(uh.call(e,r)?e[r]:void 0)||(e[r]={}),c=n[r];let u;if(c)for(u in c){uh.call(o,u)||(o[u]=[]);const h=c[u];V8(o[u],Array.isArray(h)?h:h?[h]:[])}}}function V8(e,n){let r=-1;const a=[];for(;++r<n.length;)(n[r].add==="after"?e:a).push(n[r]);Gn(e,0,0,a)}function Sf(e,n){const r=Number.parseInt(e,n);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 Yn(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Bt=ti(/[A-Za-z]/),Ht=ti(/[\dA-Za-z]/),W8=ti(/[#-'*+\--9=?A-Z^-~]/);function Xl(e){return e!==null&&(e<32||e===127)}const Wu=ti(/\d/),q8=ti(/[\dA-Fa-f]/),Nf=ti(/[!-/:-@[-`{-~]/);function Le(e){return e!==null&&e<-2}function at(e){return e!==null&&(e<0||e===32)}function We(e){return e===-2||e===-1||e===32}const so=ti(new RegExp("\\p{P}|\\p{S}","u")),Ci=ti(/\s/);function ti(e){return n;function n(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function us(e){const n=[];let r=-1,a=0,o=0;for(;++r<e.length;){const c=e.charCodeAt(r);let u="";if(c===37&&Ht(e.charCodeAt(r+1))&&Ht(e.charCodeAt(r+2)))o=2;else if(c<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(c))||(u=String.fromCharCode(c));else if(c>55295&&c<57344){const h=e.charCodeAt(r+1);c<56320&&h>56319&&h<57344?(u=String.fromCharCode(c,h),o=1):u="�"}else u=String.fromCharCode(c);u&&(n.push(e.slice(a,r),encodeURIComponent(u)),a=r+o+1,u=""),o&&(r+=o,o=0)}return n.join("")+e.slice(a)}function et(e,n,r,a){const o=a?a-1:1/0;let c=0;return u;function u(p){return We(p)?(e.enter(r),h(p)):n(p)}function h(p){return We(p)&&c++<o?(e.consume(p),h):(e.exit(r),n(p))}}function Cf(e,n,r,a,o,c){let u=0;return h;function h(m){return We(m)?(e.enter(a),p(m)):f(m)}function p(m){return We(m)&&u<c?(e.consume(m),u++,p):(e.exit(a),f(m))}function f(m){return u>=o?n(m):r(m)}}const K8={tokenize:Q8};function Q8(e){const n=e.attempt(this.parser.constructs.contentInitial,a,o);let r;return n;function a(h){if(h===null){e.consume(h);return}return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),et(e,n,"linePrefix")}function o(h){return e.enter("paragraph"),c(h)}function c(h){const p=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=p),r=p,u(h)}function u(h){if(h===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(h);return}return Le(h)?(e.consume(h),e.exit("chunkText"),c):(e.consume(h),u)}}let Jl=class{constructor(){this.index=new Map,this.map=[]}add(n,r,a){dh(this,n,r,a,!1)}addBefore(n,r,a){dh(this,n,r,a,!0)}consume(n){if(this.map.sort(function(c,u){return c[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];a.push(n.slice()),n.length=0;let o=a.pop();for(;o;){for(const c of o)n.push(c);o=a.pop()}this.map.length=0,this.index.clear()}};function dh(e,n,r,a,o){if(r===0&&a.length===0)return;const c=e.index.get(n);if(c){c[1]+=r,o?(a.push(...c[2]),c[2]=a):c[2].push(...a);return}const u=[n,r,a];e.map.push(u),e.index.set(n,u)}const Z8={tokenize:G8},hh={tokenize:Y8};function G8(e){const n=this,r=[];let a=0,o,c,u;return h;function h(C){if(a<r.length){const M=r[a];return n.containerState=M[1],e.attempt(M[0].continuation,p,f)(C)}return f(C)}function p(C){if(a++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,o&&P();const M=n.events.length;let z=M,N;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){N=n.events[z][1].end;break}b(a);let L=M;for(;L<n.events.length;)n.events[L][1].end={...N},L++;const V=new Jl;return V.add(z+1,0,n.events.slice(M)),V.add(M,L-M,[]),V.consume(n.events),f(C)}return h(C)}function f(C){if(a===r.length){if(!o)return y(C);if(o.currentConstruct&&o.currentConstruct.concrete)return w(C);n.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(hh,m,g)(C)}function m(C){return o&&P(),b(a),y(C)}function g(C){return n.parser.lazy[n.now().line]=a!==r.length,u=n.now().offset,w(C)}function y(C){return n.containerState={},e.attempt(hh,v,w)(C)}function v(C){return a++,r.push([n.currentConstruct,n.containerState]),y(C)}function w(C){if(C===null){o&&P(),b(0),e.consume(C);return}return o=o||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:c}),S(C)}function S(C){if(C===null){j(e.exit("chunkFlow"),!0),b(0),e.consume(C);return}return Le(C)?(e.consume(C),j(e.exit("chunkFlow")),a=0,n.interrupt=void 0,h):(e.consume(C),S)}function j(C,M){const z=n.sliceStream(C);if(M&&z.push(null),C.previous=c,c&&(c.next=C),c=C,o.defineSkip(C.start),o.write(z),n.parser.lazy[C.start.line]){let N=o.events.length;for(;N--;)if(o.events[N][1].start.offset<u&&(!o.events[N][1].end||o.events[N][1].end.offset>u))return;const L=n.events.length;let V=L,K,D;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(K){D=n.events[V][1].end;break}K=!0}for(b(a),N=L;N<n.events.length;)n.events[N][1].end={...D},N++;const I=new Jl;I.add(V+1,0,n.events.slice(L)),I.add(L,N-L,[]),I.consume(n.events)}}function b(C){let M=r.length;for(;M-- >C;){const z=r[M];n.containerState=z[1],z[0].exit.call(n,e)}r.length=C}function P(){o.write([null]),c=void 0,o=void 0,n.containerState._closeFlow=void 0}}function Y8(e,n,r){return et(e,e.attempt(this.parser.constructs.document,n,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Jr(e){if(e===null||at(e)||Ci(e))return 1;if(so(e))return 2}function ao(e,n,r){const a=[];let o=-1;for(;++o<e.length;){const c=e[o].resolveAll;c&&!a.includes(c)&&(n=c(n,r),a.push(c))}return n}const qu={name:"attention",resolveAll:X8,tokenize:J8};function X8(e,n){let r=-1,a;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){let o=r;for(;o--;)if(e[o][0]==="exit"&&e[o][1].type==="attentionSequence"&&e[o][1]._open&&n.sliceSerialize(e[o][1]).charCodeAt(0)===n.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[o][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[o][1].end.offset-e[o][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;const c=e[o][1].end.offset-e[o][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1,u={...e[o][1].end},h={...e[r][1].start};ph(u,-c),ph(h,c);const p={type:c>1?"strongSequence":"emphasisSequence",start:u,end:{...e[o][1].end}},f={type:c>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:h},m={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[r][1].start}},g={type:c>1?"strong":"emphasis",start:{...p.start},end:{...f.end}};e[o][1].end={...p.start},e[r][1].start={...f.end},a=[],e[o][1].end.offset-e[o][1].start.offset&&(a=Fn(a,[["enter",e[o][1],n],["exit",e[o][1],n]])),a=Fn(a,[["enter",g,n],["enter",p,n],["exit",p,n],["enter",m,n]]),a=Fn(a,ao(n.parser.constructs.insideSpan.null,e.slice(o+1,r),n)),a=Fn(a,[["exit",m,n],["enter",f,n],["exit",f,n],["exit",g,n]]);let y=0;e[r][1].end.offset-e[r][1].start.offset&&(y=2,a=Fn(a,[["enter",e[r][1],n],["exit",e[r][1],n]])),Gn(e,o-1,r-o+3,a),r=o+a.length-y-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function J8(e,n){const r=this.parser.constructs.attentionMarkers.null,a=this.previous,o=Jr(a);let c;return u;function u(p){return c=p,e.enter("attentionSequence"),h(p)}function h(p){if(p===c)return e.consume(p),h;const f=e.exit("attentionSequence"),m=Jr(p),g=!m||m===2&&o||r.includes(p)&&p!==42&&p!==95,y=!o||o===2&&m||r.includes(a)&&a!==42&&a!==95;return f._open=!!(c===42?g:g&&(o||!y)),f._close=!!(c===42?y:y&&(m||!g)),n(p)}}function ph(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const eg={name:"autolink",tokenize:tg};function tg(e,n,r){let a=0;return o;function o(v){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),c}function c(v){return Bt(v)?(e.consume(v),u):v===64?r(v):f(v)}function u(v){return v===43||v===45||v===46||Ht(v)?(a=1,h(v)):f(v)}function h(v){return v===58?(e.consume(v),a=0,p):(v===43||v===45||v===46||Ht(v))&&a++<32?(e.consume(v),h):(a=0,f(v))}function p(v){return v===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):v===null||v===32||v===60||Xl(v)?r(v):(e.consume(v),p)}function f(v){return v===64?(e.consume(v),m):W8(v)?(e.consume(v),f):r(v)}function m(v){return Ht(v)?g(v):r(v)}function g(v){return v===46?(e.consume(v),a=0,m):v===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(v),e.exit("autolinkMarker"),e.exit("autolink"),n):y(v)}function y(v){if((v===45||Ht(v))&&a++<63){const w=v===45?y:g;return e.consume(v),w}return r(v)}}const ga={partial:!0,tokenize:ng};function ng(e,n,r){return a;function a(c){return We(c)?et(e,o,"linePrefix")(c):o(c)}function o(c){return c===null||Le(c)?n(c):r(c)}}const Ef={continuation:{tokenize:ig},exit:sg,name:"blockQuote",tokenize:rg};function rg(e,n,r){const a=this;return o;function o(u){if(u===62){const h=a.containerState;return h.open||(e.enter("blockQuote",{_container:!0}),h.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(u),e.exit("blockQuoteMarker"),c}return r(u)}function c(u){return We(u)?(e.enter("blockQuotePrefixWhitespace"),e.consume(u),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(u))}}function ig(e,n,r){const a=this;return o;function o(u){return We(u)?et(e,c,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u):c(u)}function c(u){return e.attempt(Ef,n,r)(u)}}function sg(e){e.exit("blockQuote")}const zf={name:"characterEscape",tokenize:ag};function ag(e,n,r){return a;function a(c){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(c),e.exit("escapeMarker"),o}function o(c){return Nf(c)?(e.enter("characterEscapeValue"),e.consume(c),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):r(c)}}const Mf={name:"characterReference",tokenize:lg};function lg(e,n,r){const a=this;let o=0,c,u;return h;function h(g){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),p}function p(g){return g===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(g),e.exit("characterReferenceMarkerNumeric"),f):(e.enter("characterReferenceValue"),c=31,u=Ht,m(g))}function f(g){return g===88||g===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(g),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),c=6,u=q8,m):(e.enter("characterReferenceValue"),c=7,u=Wu,m(g))}function m(g){if(g===59&&o){const y=e.exit("characterReferenceValue");return u===Ht&&!z1(a.sliceSerialize(y))?r(g):(e.enter("characterReferenceMarker"),e.consume(g),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return u(g)&&o++<c?(e.consume(g),m):r(g)}}const Ku={partial:!0,tokenize:og};function og(e,n,r){const a=this;return o;function o(u){return u===null?r(u):(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),c)}function c(u){return a.parser.lazy[a.now().line]?r(u):n(u)}}const fh={concrete:!0,name:"codeFenced",tokenize:cg};function cg(e,n,r){const a=this,o={partial:!0,tokenize:z};let c=0,u=0,h;return p;function p(N){return f(N)}function f(N){const L=a.events[a.events.length-1];return c=L&&L[1].type==="linePrefix"?L[2].sliceSerialize(L[1],!0).length:0,h=N,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),m(N)}function m(N){return N===h?(u++,e.consume(N),m):u<3?r(N):(e.exit("codeFencedFenceSequence"),We(N)?et(e,g,"whitespace")(N):g(N))}function g(N){return N===null||Le(N)?(e.exit("codeFencedFence"),a.interrupt?n(N):e.check(Ku,S,M)(N)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),y(N))}function y(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),g(N)):We(N)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),et(e,v,"whitespace")(N)):N===96&&N===h?r(N):(e.consume(N),y)}function v(N){return N===null||Le(N)?g(N):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),w(N))}function w(N){return N===null||Le(N)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),g(N)):N===96&&N===h?r(N):(e.consume(N),w)}function S(N){return e.attempt(o,M,j)(N)}function j(N){return e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),b}function b(N){return c>0&&We(N)?et(e,P,"linePrefix",c+1)(N):P(N)}function P(N){return N===null||Le(N)?e.check(Ku,S,M)(N):(e.enter("codeFlowValue"),C(N))}function C(N){return N===null||Le(N)?(e.exit("codeFlowValue"),P(N)):(e.consume(N),C)}function M(N){return e.exit("codeFenced"),n(N)}function z(N,L,V){let K=0;return D;function D(ne){return N.enter("lineEnding"),N.consume(ne),N.exit("lineEnding"),I}function I(ne){return N.enter("codeFencedFence"),We(ne)?et(N,B,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ne):B(ne)}function B(ne){return ne===h?(N.enter("codeFencedFenceSequence"),H(ne)):V(ne)}function H(ne){return ne===h?(K++,N.consume(ne),H):K>=u?(N.exit("codeFencedFenceSequence"),We(ne)?et(N,Y,"whitespace")(ne):Y(ne)):V(ne)}function Y(ne){return ne===null||Le(ne)?(N.exit("codeFencedFence"),L(ne)):V(ne)}}}const du={name:"codeIndented",tokenize:dg},ug={partial:!0,tokenize:hg};function dg(e,n,r){return a;function a(h){return e.enter("codeIndented"),Cf(e,o,r,"linePrefix",4,4)(h)}function o(h){return h===null?u(h):Le(h)?e.attempt(ug,o,u)(h):(e.enter("codeFlowValue"),c(h))}function c(h){return h===null||Le(h)?(e.exit("codeFlowValue"),o(h)):(e.consume(h),c)}function u(h){return e.exit("codeIndented"),n(h)}}function hg(e,n,r){const a=this;return o;function o(u){return a.parser.lazy[a.now().line]?r(u):Le(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),o):Cf(e,n,c,"linePrefix",4,4)(u)}function c(u){return Le(u)?o(u):r(u)}}const pg={name:"codeText",previous:mg,resolve:fg,tokenize:gg};function fg(e){let n=e.length-4,r=3,a,o;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(a=r;++a<n;)if(e[a][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[n][1].type="codeTextPadding",r+=2,n-=2;break}}for(a=r-1,n++;++a<=n;)o===void 0?a!==n&&e[a][1].type!=="lineEnding"&&(o=a):(a===n||e[a][1].type==="lineEnding")&&(e[o][1].type="codeTextData",a!==o+2&&(e[o][1].end=e[a-1][1].end,e.splice(o+2,a-o-2),n-=a-o-2,a=o+2),o=void 0);return e}function mg(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gg(e,n,r){let a=0,o,c;return u;function u(g){return e.enter("codeText"),e.enter("codeTextSequence"),h(g)}function h(g){return g===96?(e.consume(g),a++,h):(e.exit("codeTextSequence"),p(g))}function p(g){return g===null?r(g):g===32?(e.enter("space"),e.consume(g),e.exit("space"),p):g===96?(c=e.enter("codeTextSequence"),o=0,m(g)):Le(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),p):(e.enter("codeTextData"),f(g))}function f(g){return g===null||g===32||g===96||Le(g)?(e.exit("codeTextData"),p(g)):(e.consume(g),f)}function m(g){return g===96?(e.consume(g),o++,m):o===a?(e.exit("codeTextSequence"),e.exit("codeText"),n(g)):(c.type="codeTextData",f(g))}}class xg{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,r){const a=r??Number.POSITIVE_INFINITY;return a<this.left.length?this.left.slice(n,a):n>this.left.length?this.right.slice(this.right.length-a+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-a+this.left.length).reverse())}splice(n,r,a){const o=r||0;this.setCursor(Math.trunc(n));const c=this.right.splice(this.right.length-o,Number.POSITIVE_INFINITY);return a&&Xs(this.left,a),c.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Xs(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Xs(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const r=this.left.splice(n,Number.POSITIVE_INFINITY);Xs(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Xs(this.left,r.reverse())}}}function Xs(e,n){let r=0;if(n.length<1e4)e.push(...n);else for(;r<n.length;)e.push(...n.slice(r,r+1e4)),r+=1e4}function Af(e){const n={};let r=-1,a,o,c,u,h,p,f;const m=new xg(e);for(;++r<m.length;){for(;r in n;)r=n[r];if(a=m.get(r),r&&a[1].type==="chunkFlow"&&m.get(r-1)[1].type==="listItemPrefix"&&(p=a[1]._tokenizer.events,c=0,c<p.length&&p[c][1].type==="lineEndingBlank"&&(c+=2),c<p.length&&p[c][1].type==="content"))for(;++c<p.length&&p[c][1].type!=="content";)p[c][1].type==="chunkText"&&(p[c][1]._isInFirstContentOfListItem=!0,c++);if(a[0]==="enter")a[1].contentType&&(Object.assign(n,yg(m,r)),r=n[r],f=!0);else if(a[1]._container){for(c=r,o=void 0;c--;)if(u=m.get(c),u[1].type==="lineEnding"||u[1].type==="lineEndingBlank")u[0]==="enter"&&(o&&(m.get(o)[1].type="lineEndingBlank"),u[1].type="lineEnding",o=c);else if(!(u[1].type==="linePrefix"||u[1].type==="listItemIndent"))break;o&&(a[1].end={...m.get(o)[1].start},h=m.slice(o,r),h.unshift(a),m.splice(o,r-o+1,h))}}return Gn(e,0,Number.POSITIVE_INFINITY,m.slice(0)),!f}function yg(e,n){const r=e.get(n)[1],a=e.get(n)[2];let o=n-1;const c=[];let u=r._tokenizer;u||(u=a.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(u._contentTypeTextTrailing=!0));const h=u.events,p=[],f={};let m,g,y=-1,v=r,w=0,S=0;const j=[S];for(;v;){for(;e.get(++o)[1]!==v;);c.push(o),v._tokenizer||(m=a.sliceStream(v),v.next||m.push(null),g&&u.defineSkip(v.start),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=!0),u.write(m),v._isInFirstContentOfListItem&&(u._gfmTasklistFirstContentOfListItem=void 0)),g=v,v=v.next}for(v=r;++y<h.length;)h[y][0]==="exit"&&h[y-1][0]==="enter"&&h[y][1].type===h[y-1][1].type&&h[y][1].start.line!==h[y][1].end.line&&(S=y+1,j.push(S),v._tokenizer=void 0,v.previous=void 0,v=v.next);for(u.events=[],v?(v._tokenizer=void 0,v.previous=void 0):j.pop(),y=j.length;y--;){const b=h.slice(j[y],j[y+1]),P=c.pop();p.push([P,P+b.length-1]),e.splice(P,2,b)}for(p.reverse(),y=-1;++y<p.length;)f[w+p[y][0]]=w+p[y][1],w+=p[y][1]-p[y][0]-1;return f}const vg={resolve:wg,tokenize:jg},kg={partial:!0,tokenize:bg};function wg(e){return Af(e),e}function jg(e,n){let r;return a;function a(h){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),o(h)}function o(h){return h===null?c(h):Le(h)?e.check(kg,u,c)(h):(e.consume(h),o)}function c(h){return e.exit("chunkContent"),e.exit("content"),n(h)}function u(h){return e.consume(h),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,o}}function bg(e,n,r){const a=this;return o;function o(u){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),et(e,c,"linePrefix")}function c(u){if(u===null||Le(u))return r(u);const h=a.events[a.events.length-1];return!a.parser.constructs.disable.null.includes("codeIndented")&&h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?n(u):e.interrupt(a.parser.constructs.flow,r,n)(u)}}function Pf(e,n,r,a,o,c,u,h,p){const f=p||Number.POSITIVE_INFINITY;let m=0;return g;function g(b){return b===60?(e.enter(a),e.enter(o),e.enter(c),e.consume(b),e.exit(c),y):b===null||b===32||b===41||Xl(b)?r(b):(e.enter(a),e.enter(u),e.enter(h),e.enter("chunkString",{contentType:"string"}),S(b))}function y(b){return b===62?(e.enter(c),e.consume(b),e.exit(c),e.exit(o),e.exit(a),n):(e.enter(h),e.enter("chunkString",{contentType:"string"}),v(b))}function v(b){return b===62?(e.exit("chunkString"),e.exit(h),y(b)):b===null||b===60||Le(b)?r(b):(e.consume(b),b===92?w:v)}function w(b){return b===60||b===62||b===92?(e.consume(b),v):v(b)}function S(b){return!m&&(b===null||b===41||at(b))?(e.exit("chunkString"),e.exit(h),e.exit(u),e.exit(a),n(b)):m<f&&b===40?(e.consume(b),m++,S):b===41?(e.consume(b),m--,S):b===null||b===32||b===40||Xl(b)?r(b):(e.consume(b),b===92?j:S)}function j(b){return b===40||b===41||b===92?(e.consume(b),S):S(b)}}function Tf(e,n,r,a,o,c){const u=this;let h=0,p;return f;function f(v){return e.enter(a),e.enter(o),e.consume(v),e.exit(o),e.enter(c),m}function m(v){return h>999||v===null||v===91||v===93&&!p||v===94&&!h&&"_hiddenFootnoteSupport"in u.parser.constructs?r(v):v===93?(e.exit(c),e.enter(o),e.consume(v),e.exit(o),e.exit(a),n):Le(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),m):(e.enter("chunkString",{contentType:"string"}),g(v))}function g(v){return v===null||v===91||v===93||Le(v)||h++>999?(e.exit("chunkString"),m(v)):(e.consume(v),p||(p=!We(v)),v===92?y:g)}function y(v){return v===91||v===92||v===93?(e.consume(v),h++,g):g(v)}}function Lf(e,n,r,a,o,c){let u;return h;function h(y){return y===34||y===39||y===40?(e.enter(a),e.enter(o),e.consume(y),e.exit(o),u=y===40?41:y,p):r(y)}function p(y){return y===u?(e.enter(o),e.consume(y),e.exit(o),e.exit(a),n):(e.enter(c),f(y))}function f(y){return y===u?(e.exit(c),p(u)):y===null?r(y):Le(y)?(e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),et(e,f,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),m(y))}function m(y){return y===u||y===null||Le(y)?(e.exit("chunkString"),f(y)):(e.consume(y),y===92?g:m)}function g(y){return y===u||y===92?(e.consume(y),m):m(y)}}function ia(e,n){let r;return a;function a(o){return Le(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r=!0,a):We(o)?et(e,a,r?"linePrefix":"lineSuffix")(o):n(o)}}const _g={name:"definition",tokenize:Ng},Sg={partial:!0,tokenize:Cg};function Ng(e,n,r){const a=this;let o;return c;function c(v){return e.enter("definition"),u(v)}function u(v){return Tf.call(a,e,h,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function h(v){return o=Yn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),p):r(v)}function p(v){return at(v)?ia(e,f)(v):f(v)}function f(v){return Pf(e,m,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function m(v){return e.attempt(Sg,g,g)(v)}function g(v){return We(v)?et(e,y,"whitespace")(v):y(v)}function y(v){return v===null||Le(v)?(e.exit("definition"),a.parser.defined.push(o),n(v)):r(v)}}function Cg(e,n,r){return a;function a(h){return at(h)?ia(e,o)(h):r(h)}function o(h){return Lf(e,c,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(h)}function c(h){return We(h)?et(e,u,"whitespace")(h):u(h)}function u(h){return h===null||Le(h)?n(h):r(h)}}const Eg={name:"hardBreakEscape",tokenize:zg};function zg(e,n,r){return a;function a(c){return e.enter("hardBreakEscape"),e.consume(c),o}function o(c){return Le(c)?(e.exit("hardBreakEscape"),n(c)):r(c)}}const Mg={name:"headingAtx",resolve:Ag,tokenize:Pg};function Ag(e,n){let r=e.length-2,a=3;if(e[a][1].type==="whitespace"&&(a+=2),r-2>a&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(a===r-1||r-4>a&&e[r-2][1].type==="whitespace")&&(r-=a+1===r?2:4),r>a){const o={type:"atxHeadingText",start:e[a][1].start,end:e[r][1].end},c={type:"chunkText",start:e[a][1].start,end:e[r][1].end,contentType:"text"};Gn(e,a,r-a+1,[["enter",o,n],["enter",c,n],["exit",c,n],["exit",o,n]])}return e}function Pg(e,n,r){let a=0;return o;function o(m){return e.enter("atxHeading"),c(m)}function c(m){return e.enter("atxHeadingSequence"),u(m)}function u(m){return m===35&&a++<6?(e.consume(m),u):m===null||at(m)?(e.exit("atxHeadingSequence"),h(m)):r(m)}function h(m){return m===35?(e.enter("atxHeadingSequence"),p(m)):m===null||Le(m)?(e.exit("atxHeading"),n(m)):We(m)?et(e,h,"whitespace")(m):(e.enter("atxHeadingText"),f(m))}function p(m){return m===35?(e.consume(m),p):(e.exit("atxHeadingSequence"),h(m))}function f(m){return m===null||m===35||at(m)?(e.exit("atxHeadingText"),h(m)):(e.consume(m),f)}}const If=["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"],Qu=["pre","script","style","textarea"],Tg={concrete:!0,name:"htmlFlow",resolveTo:Ig,tokenize:Rg},Lg={partial:!0,tokenize:Dg};function Ig(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function Rg(e,n,r){const a=this;let o,c,u,h,p;return f;function f(T){return m(T)}function m(T){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(T),g}function g(T){return T===33?(e.consume(T),y):T===47?(e.consume(T),c=!0,S):T===63?(e.consume(T),o=3,a.interrupt?n:A):Bt(T)?(e.consume(T),u=String.fromCharCode(T),j):r(T)}function y(T){return T===45?(e.consume(T),o=2,v):T===91?(e.consume(T),o=5,h=0,w):Bt(T)?(e.consume(T),o=4,a.interrupt?n:A):r(T)}function v(T){return T===45?(e.consume(T),a.interrupt?n:A):r(T)}function w(T){const ve="CDATA[";return T===ve.charCodeAt(h++)?(e.consume(T),h===ve.length?a.interrupt?n:B:w):r(T)}function S(T){return Bt(T)?(e.consume(T),u=String.fromCharCode(T),j):r(T)}function j(T){if(T===null||T===47||T===62||at(T)){const ve=T===47,te=u.toLowerCase();return!ve&&!c&&Qu.includes(te)?(o=1,a.interrupt?n(T):B(T)):If.includes(u.toLowerCase())?(o=6,ve?(e.consume(T),b):a.interrupt?n(T):B(T)):(o=7,a.interrupt&&!a.parser.lazy[a.now().line]?r(T):c?P(T):C(T))}return T===45||Ht(T)?(e.consume(T),u+=String.fromCharCode(T),j):r(T)}function b(T){return T===62?(e.consume(T),a.interrupt?n:B):r(T)}function P(T){return We(T)?(e.consume(T),P):D(T)}function C(T){return T===47?(e.consume(T),D):T===58||T===95||Bt(T)?(e.consume(T),M):We(T)?(e.consume(T),C):D(T)}function M(T){return T===45||T===46||T===58||T===95||Ht(T)?(e.consume(T),M):z(T)}function z(T){return T===61?(e.consume(T),N):We(T)?(e.consume(T),z):C(T)}function N(T){return T===null||T===60||T===61||T===62||T===96?r(T):T===34||T===39?(e.consume(T),p=T,L):We(T)?(e.consume(T),N):V(T)}function L(T){return T===p?(e.consume(T),p=null,K):T===null||Le(T)?r(T):(e.consume(T),L)}function V(T){return T===null||T===34||T===39||T===47||T===60||T===61||T===62||T===96||at(T)?z(T):(e.consume(T),V)}function K(T){return T===47||T===62||We(T)?C(T):r(T)}function D(T){return T===62?(e.consume(T),I):r(T)}function I(T){return T===null||Le(T)?B(T):We(T)?(e.consume(T),I):r(T)}function B(T){return T===45&&o===2?(e.consume(T),ie):T===60&&o===1?(e.consume(T),re):T===62&&o===4?(e.consume(T),F):T===63&&o===3?(e.consume(T),A):T===93&&o===5?(e.consume(T),G):Le(T)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(Lg,W,H)(T)):T===null||Le(T)?(e.exit("htmlFlowData"),H(T)):(e.consume(T),B)}function H(T){return e.check(Ku,Y,W)(T)}function Y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),ne}function ne(T){return T===null||Le(T)?H(T):(e.enter("htmlFlowData"),B(T))}function ie(T){return T===45?(e.consume(T),A):B(T)}function re(T){return T===47?(e.consume(T),u="",$):B(T)}function $(T){if(T===62){const ve=u.toLowerCase();return Qu.includes(ve)?(e.consume(T),F):B(T)}return Bt(T)&&u.length<8?(e.consume(T),u+=String.fromCharCode(T),$):B(T)}function G(T){return T===93?(e.consume(T),A):B(T)}function A(T){return T===62?(e.consume(T),F):T===45&&o===2?(e.consume(T),A):B(T)}function F(T){return T===null||Le(T)?(e.exit("htmlFlowData"),W(T)):(e.consume(T),F)}function W(T){return e.exit("htmlFlow"),n(T)}}function Dg(e,n,r){return a;function a(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(ga,n,r)}}const Fg={name:"htmlText",tokenize:$g};function $g(e,n,r){const a=this;let o,c,u;return h;function h(A){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(A),p}function p(A){return A===33?(e.consume(A),f):A===47?(e.consume(A),z):A===63?(e.consume(A),C):Bt(A)?(e.consume(A),V):r(A)}function f(A){return A===45?(e.consume(A),m):A===91?(e.consume(A),c=0,w):Bt(A)?(e.consume(A),P):r(A)}function m(A){return A===45?(e.consume(A),v):r(A)}function g(A){return A===null?r(A):A===45?(e.consume(A),y):Le(A)?(u=g,re(A)):(e.consume(A),g)}function y(A){return A===45?(e.consume(A),v):g(A)}function v(A){return A===62?ie(A):A===45?y(A):g(A)}function w(A){const F="CDATA[";return A===F.charCodeAt(c++)?(e.consume(A),c===F.length?S:w):r(A)}function S(A){return A===null?r(A):A===93?(e.consume(A),j):Le(A)?(u=S,re(A)):(e.consume(A),S)}function j(A){return A===93?(e.consume(A),b):S(A)}function b(A){return A===62?ie(A):A===93?(e.consume(A),b):S(A)}function P(A){return A===null||A===62?ie(A):Le(A)?(u=P,re(A)):(e.consume(A),P)}function C(A){return A===null?r(A):A===63?(e.consume(A),M):Le(A)?(u=C,re(A)):(e.consume(A),C)}function M(A){return A===62?ie(A):C(A)}function z(A){return Bt(A)?(e.consume(A),N):r(A)}function N(A){return A===45||Ht(A)?(e.consume(A),N):L(A)}function L(A){return Le(A)?(u=L,re(A)):We(A)?(e.consume(A),L):ie(A)}function V(A){return A===45||Ht(A)?(e.consume(A),V):A===47||A===62||at(A)?K(A):r(A)}function K(A){return A===47?(e.consume(A),ie):A===58||A===95||Bt(A)?(e.consume(A),D):Le(A)?(u=K,re(A)):We(A)?(e.consume(A),K):ie(A)}function D(A){return A===45||A===46||A===58||A===95||Ht(A)?(e.consume(A),D):I(A)}function I(A){return A===61?(e.consume(A),B):Le(A)?(u=I,re(A)):We(A)?(e.consume(A),I):K(A)}function B(A){return A===null||A===60||A===61||A===62||A===96?r(A):A===34||A===39?(e.consume(A),o=A,H):Le(A)?(u=B,re(A)):We(A)?(e.consume(A),B):(e.consume(A),Y)}function H(A){return A===o?(e.consume(A),o=void 0,ne):A===null?r(A):Le(A)?(u=H,re(A)):(e.consume(A),H)}function Y(A){return A===null||A===34||A===39||A===60||A===61||A===96?r(A):A===47||A===62||at(A)?K(A):(e.consume(A),Y)}function ne(A){return A===47||A===62||at(A)?K(A):r(A)}function ie(A){return A===62?(e.consume(A),e.exit("htmlTextData"),e.exit("htmlText"),n):r(A)}function re(A){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(A),e.exit("lineEnding"),$}function $(A){return We(A)?et(e,G,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):G(A)}function G(A){return e.enter("htmlTextData"),u(A)}}const M1={name:"labelEnd",resolveAll:Ug,resolveTo:Vg,tokenize:Wg},Og={tokenize:qg},Bg={tokenize:Kg},Hg={tokenize:Qg};function Ug(e){let n=-1;const r=[];for(;++n<e.length;){const a=e[n][1];if(r.push(e[n]),a.type==="labelImage"||a.type==="labelLink"||a.type==="labelEnd"){const o=a.type==="labelImage"?4:2;a.type="data",n+=o}}return e.length!==r.length&&Gn(e,0,e.length,r),e}function Vg(e,n){let r=e.length,a=0,o,c,u;for(;r--;){const m=e[r][1];if(o){if(m.type==="link"||m.type==="labelLink"&&m._inactive)break;e[r][0]==="enter"&&m.type==="labelLink"&&(m._inactive=!0)}else if(c){if(e[r][0]==="enter"&&(m.type==="labelImage"||m.type==="labelLink")&&!m._balanced&&(o=r,m.type!=="labelLink")){a=2;break}}else m.type==="labelEnd"&&(c=r)}const h={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},p={type:"label",start:{...e[o][1].start},end:{...e[c][1].end}},f={type:"labelText",start:{...e[o+a+2][1].end},end:{...e[c-2][1].start}};return u=[["enter",h,n],["enter",p,n]],u=Fn(u,e.slice(o+1,o+a+3)),u=Fn(u,[["enter",f,n]]),u=Fn(u,ao(n.parser.constructs.insideSpan.null,e.slice(o+a+4,c-3),n)),u=Fn(u,[["exit",f,n],e[c-2],e[c-1],["exit",p,n]]),u=Fn(u,e.slice(c+1)),u=Fn(u,[["exit",h,n]]),Gn(e,o,e.length,u),e}function Wg(e,n,r){const a=this,o=a._labelStarts;let c,u;if(o){for(;o.length>0&&o[o.length-1]._balanced;)o.pop();c=o[o.length-1]}return h;function h(y){return c?c._inactive?g(y):(u=a.parser.defined.includes(Yn(a.sliceSerialize({start:c.end,end:a.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(y),e.exit("labelMarker"),e.exit("labelEnd"),p):r(y)}function p(y){return y===40?e.attempt(Og,m,u?m:g)(y):y===91?e.attempt(Bg,m,u?f:g)(y):u?m(y):g(y)}function f(y){return e.attempt(Hg,m,g)(y)}function m(y){return o.pop(),n(y)}function g(y){return c._balanced=!0,r(y)}}function qg(e,n,r){return a;function a(g){return e.enter("resource"),e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),o}function o(g){return at(g)?ia(e,c)(g):c(g)}function c(g){return g===41?m(g):Pf(e,u,h,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(g)}function u(g){return at(g)?ia(e,p)(g):m(g)}function h(g){return r(g)}function p(g){return g===34||g===39||g===40?Lf(e,f,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(g):m(g)}function f(g){return at(g)?ia(e,m)(g):m(g)}function m(g){return g===41?(e.enter("resourceMarker"),e.consume(g),e.exit("resourceMarker"),e.exit("resource"),n):r(g)}}function Kg(e,n,r){const a=this;return o;function o(h){return Tf.call(a,e,c,u,"reference","referenceMarker","referenceString")(h)}function c(h){return a.parser.defined.includes(Yn(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)))?n(h):r(h)}function u(h){return r(h)}}function Qg(e,n,r){return a;function a(c){return e.enter("reference"),e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),o}function o(c){return c===93?(e.enter("referenceMarker"),e.consume(c),e.exit("referenceMarker"),e.exit("reference"),n):r(c)}}const Zg={name:"labelStartImage",resolveAll:M1.resolveAll,tokenize:Gg};function Gg(e,n,r){const a=this;let o;return c;function c(p){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(p),e.exit("labelImageMarker"),u}function u(p){return p===91?(e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),o=e.exit("labelImage"),h):r(p)}function h(p){return p===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(p):(a._labelStarts=a._labelStarts||[],a._labelStarts.push(o),n(p))}}const Yg={name:"labelStartLink",resolveAll:M1.resolveAll,tokenize:Xg};function Xg(e,n,r){const a=this;let o;return c;function c(h){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),o=e.exit("labelLink"),u}function u(h){return h===94&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):(a._labelStarts=a._labelStarts||[],a._labelStarts.push(o),n(h))}}const hu={name:"lineEnding",tokenize:Jg};function Jg(e,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),et(e,n,"linePrefix")}}const Ul={name:"thematicBreak",tokenize:e9};function e9(e,n,r){let a=0,o;return c;function c(f){return e.enter("thematicBreak"),u(f)}function u(f){return o=f,h(f)}function h(f){return f===o?(e.enter("thematicBreakSequence"),p(f)):a>=3&&(f===null||Le(f))?(e.exit("thematicBreak"),n(f)):r(f)}function p(f){return f===o?(e.consume(f),a++,p):(e.exit("thematicBreakSequence"),We(f)?et(e,h,"whitespace")(f):h(f))}}const mn={continuation:{tokenize:i9},exit:a9,name:"list",tokenize:r9},t9={partial:!0,tokenize:l9},n9={partial:!0,tokenize:s9};function r9(e,n,r){const a=this,o=a.events[a.events.length-1];let c=o&&o[1].type==="linePrefix"?o[2].sliceSerialize(o[1],!0).length:0,u=0;return h;function h(v){const w=a.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(w==="listUnordered"?!a.containerState.marker||v===a.containerState.marker:Wu(v)){if(a.containerState.type||(a.containerState.type=w,e.enter(w,{_container:!0})),w==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(Ul,r,f)(v):f(v);if(!a.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),p(v)}return r(v)}function p(v){return Wu(v)&&++u<10?(e.consume(v),p):(!a.interrupt||u<2)&&(a.containerState.marker?v===a.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),f(v)):r(v)}function f(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),a.containerState.marker=a.containerState.marker||v,e.check(ga,a.interrupt?r:m,e.attempt(t9,y,g))}function m(v){return a.containerState.initialBlankLine=!0,c++,y(v)}function g(v){return We(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),y):r(v)}function y(v){return a.containerState.size=c+a.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function i9(e,n,r){const a=this;return a.containerState._closeFlow=void 0,e.check(ga,o,c);function o(h){return a.containerState.furtherBlankLines=a.containerState.furtherBlankLines||a.containerState.initialBlankLine,et(e,n,"listItemIndent",a.containerState.size+1)(h)}function c(h){return a.containerState.furtherBlankLines||!We(h)?(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,u(h)):(a.containerState.furtherBlankLines=void 0,a.containerState.initialBlankLine=void 0,e.attempt(n9,n,u)(h))}function u(h){return a.containerState._closeFlow=!0,a.interrupt=void 0,et(e,e.attempt(mn,n,r),"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h)}}function s9(e,n,r){const a=this;return et(e,o,"listItemIndent",a.containerState.size+1);function o(c){const u=a.events[a.events.length-1];return u&&u[1].type==="listItemIndent"&&u[2].sliceSerialize(u[1],!0).length===a.containerState.size?n(c):r(c)}}function a9(e){e.exit(this.containerState.type)}function l9(e,n,r){const a=this;return et(e,o,"listItemPrefixWhitespace",a.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(c){const u=a.events[a.events.length-1];return!We(c)&&u&&u[1].type==="listItemPrefixWhitespace"?n(c):r(c)}}const mh={name:"setextUnderline",resolveTo:o9,tokenize:c9};function o9(e,n){const r=new Jl;let a=e.length,o,c,u;for(;a--;)if(e[a][0]==="enter"){if(e[a][1].type==="content"){o=a;break}e[a][1].type==="paragraph"&&(c=a)}else e[a][1].type==="content"&&r.add(a,1,[]),!u&&e[a][1].type==="definition"&&(u=a);const h={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[c][1].type="setextHeadingText",u?(r.add(c,0,[["enter",h,n]]),r.add(u+1,0,[["exit",e[o][1],n]]),e[o][1].end={...e[u][1].end}):e[o][1]=h,r.add(e.length,0,[["exit",h,n]]),r.consume(e),e}function c9(e,n,r){const a=this;let o;return c;function c(f){let m=a.events.length,g;for(;m--;)if(a.events[m][1].type!=="lineEnding"&&a.events[m][1].type!=="linePrefix"&&a.events[m][1].type!=="content"){g=a.events[m][1].type==="paragraph";break}return!a.parser.lazy[a.now().line]&&(a.interrupt||g)?(e.enter("setextHeadingLine"),o=f,u(f)):r(f)}function u(f){return e.enter("setextHeadingLineSequence"),h(f)}function h(f){return f===o?(e.consume(f),h):(e.exit("setextHeadingLineSequence"),We(f)?et(e,p,"lineSuffix")(f):p(f))}function p(f){return f===null||Le(f)?(e.exit("setextHeadingLine"),n(f)):r(f)}}const u9={tokenize:d9};function d9(e){const n=this,r=e.attempt(ga,a,e.attempt(this.parser.constructs.flowInitial,o,et(e,e.attempt(this.parser.constructs.flow,o,e.attempt(vg,o)),"linePrefix")));return r;function a(c){if(c===null){e.consume(c);return}return e.enter("lineEndingBlank"),e.consume(c),e.exit("lineEndingBlank"),n.currentConstruct=void 0,r}function o(c){if(c===null){e.consume(c);return}return e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),n.currentConstruct=void 0,r}}const h9={resolveAll:Df()},p9=Rf("string"),f9=Rf("text");function Rf(e){return{resolveAll:Df(e==="text"?m9:void 0),tokenize:n};function n(r){const a=this,o=this.parser.constructs[e],c=r.attempt(o,u,h);return u;function u(m){return f(m)?c(m):h(m)}function h(m){if(m===null){r.consume(m);return}return r.enter("data"),r.consume(m),p}function p(m){return f(m)?(r.exit("data"),c(m)):(r.consume(m),p)}function f(m){if(m===null)return!0;const g=o[m];let y=-1;if(g)for(;++y<g.length;){const v=g[y];if(!v.previous||v.previous.call(a,a.previous))return!0}return!1}}}function Df(e){return n;function n(r,a){let o=-1,c;for(;++o<=r.length;)c===void 0?r[o]&&r[o][1].type==="data"&&(c=o,o++):(!r[o]||r[o][1].type!=="data")&&(o!==c+2&&(r[c][1].end=r[o-1][1].end,r.splice(c+2,o-c-2),o=c+2),c=void 0);return e?e(r,a):r}}function m9(e,n){const r=new Jl;let a=0;for(;++a<=e.length;)if((a===e.length||e[a][1].type==="lineEnding")&&e[a-1][1].type==="data"){const o=e[a-1][1],c=n.sliceStream(o);let u=c.length,h=-1,p=0,f;for(;u--;){const m=c[u];if(typeof m=="string"){for(h=m.length;m.charCodeAt(h-1)===32;)p++,h--;if(h)break;h=-1}else if(m===-2)f=!0,p++;else if(m!==-1){u++;break}}if(n._contentTypeTextTrailing&&a===e.length&&(p=0),p){const m={type:a===e.length||f||p<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:u?h:o.start._bufferIndex+h,_index:o.start._index+u,line:o.end.line,column:o.end.column-p,offset:o.end.offset-p},end:{...o.end}};o.end={...m.start},o.start.offset===o.end.offset?Object.assign(o,m):r.add(a,0,[["enter",m,n],["exit",m,n]])}a++}return r.consume(e),e}const g9={42:mn,43:mn,45:mn,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,62:Ef},x9={91:_g},y9={[-2]:du,[-1]:du,32:du},v9={35:Mg,42:Ul,45:[mh,Ul],60:Tg,61:mh,95:Ul,96:fh,126:fh},k9={38:Mf,92:zf},w9={[-5]:hu,[-4]:hu,[-3]:hu,33:Zg,38:Mf,42:qu,60:[eg,Fg],91:Yg,92:[Eg,zf],93:M1,95:qu,96:pg},j9={null:[qu,h9]},b9={null:[42,95]},_9={null:[]},S9=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:b9,contentInitial:x9,disable:_9,document:g9,flow:v9,flowInitial:y9,insideSpan:j9,string:k9,text:w9},Symbol.toStringTag,{value:"Module"}));function N9(e,n,r){let a={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const o={},c=[];let u=[],h=[];const p={attempt:L(z),check:L(N),consume:P,enter:C,exit:M,interrupt:L(N,{interrupt:!0})},f={code:null,containerState:{},defineSkip:S,events:[],now:w,parser:e,previous:null,sliceSerialize:y,sliceStream:v,write:g};let m=n.tokenize.call(f,p);return n.resolveAll&&c.push(n),f;function g(I){return u=Fn(u,I),j(),u[u.length-1]!==null?[]:(V(n,0),f.events=ao(c,f.events,f),f.events)}function y(I,B){return E9(v(I),B)}function v(I){return C9(u,I)}function w(){const{_bufferIndex:I,_index:B,line:H,column:Y,offset:ne}=a;return{_bufferIndex:I,_index:B,line:H,column:Y,offset:ne}}function S(I){o[I.line]=I.column,D()}function j(){for(;a._index<u.length;){const I=u[a._index];if(typeof I=="string"){const B=a._index;for(a._bufferIndex<0&&(a._bufferIndex=0);a._index===B&&a._bufferIndex<I.length;)b(I.charCodeAt(a._bufferIndex))}else b(I)}}function b(I){m=m(I)}function P(I){Le(I)?(a.line++,a.column=1,a.offset+=I===-3?2:1,D()):I!==-1&&(a.column++,a.offset++),a._bufferIndex<0?a._index++:(a._bufferIndex++,a._bufferIndex===u[a._index].length&&(a._bufferIndex=-1,a._index++)),f.previous=I}function C(I,B){const H=B||{};return H.type=I,H.start=w(),f.events.push(["enter",H,f]),h.push(H),H}function M(I){const B=h.pop();return B.end=w(),f.events.push(["exit",B,f]),B}function z(I,B){V(I,B.from)}function N(I,B){B.restore()}function L(I,B){return H;function H(Y,ne,ie){let re,$,G,A;return Array.isArray(Y)?W(Y):"tokenize"in Y?W([Y]):F(Y);function F(le){return je;function je(we){const ce=we!==null&&le[we],ge=we!==null&&le.null,ee=[...Array.isArray(ce)?ce:ce?[ce]:[],...Array.isArray(ge)?ge:ge?[ge]:[]];return W(ee)(we)}}function W(le){return re=le,$=0,le.length===0?ie:T(le[$])}function T(le){return je;function je(we){return A=K(),G=le,le.partial||(f.currentConstruct=le),le.name&&f.parser.constructs.disable.null.includes(le.name)?te():le.tokenize.call(B?Object.assign(Object.create(f),B):f,p,ve,te)(we)}}function ve(le){return I(G,A),ne}function te(le){return A.restore(),++$<re.length?T(re[$]):ie}}}function V(I,B){I.resolveAll&&!c.includes(I)&&c.push(I),I.resolve&&Gn(f.events,B,f.events.length-B,I.resolve(f.events.slice(B),f)),I.resolveTo&&(f.events=I.resolveTo(f.events,f))}function K(){const I=w(),B=f.previous,H=f.currentConstruct,Y=f.events.length,ne=Array.from(h);return{from:Y,restore:ie};function ie(){a=I,f.previous=B,f.currentConstruct=H,f.events.length=Y,h=ne,D()}}function D(){a.line in o&&a.column<2&&(a.column=o[a.line],a.offset+=o[a.line]-1)}}function C9(e,n){const r=n.start._index,a=n.start._bufferIndex,o=n.end._index,c=n.end._bufferIndex;let u;if(r===o)u=[e[r].slice(a,c)];else{if(u=e.slice(r,o),a>-1){const h=u[0];typeof h=="string"?u[0]=h.slice(a):u.shift()}c>0&&u.push(e[o].slice(0,c))}return u}function E9(e,n){let r=-1;const a=[];let o;for(;++r<e.length;){const c=e[r];let u;if(typeof c=="string")u=c;else switch(c){case-5:{u="\r";break}case-4:{u=`
|
|
635
|
+
`;break}case-3:{u=`\r
|
|
636
|
+
`;break}case-2:{u=n?" ":" ";break}case-1:{if(!n&&o)continue;u=" ";break}default:u=String.fromCharCode(c)}o=c===-2,a.push(u)}return a.join("")}function z9(e){const a={constructs:_f([S9,...(e||{}).extensions||[]]),content:o(K8),defined:[],document:o(Z8),flow:o(u9),lazy:{},string:o(p9),text:o(f9)};return a;function o(c){return u;function u(h){return N9(a,c,h)}}}function M9(e){for(;!Af(e););return e}const gh=/[\0\t\n\r]/g;function A9(){let e=1,n="",r=!0,a;return o;function o(c,u,h){c=n+(typeof c=="string"?c.toString():new TextDecoder(u||void 0).decode(c));const p=[];let f=0;for(n="",r&&(c.charCodeAt(0)===65279&&f++,r=void 0);f<c.length;){gh.lastIndex=f;const m=gh.exec(c),g=m&&m.index!==void 0?m.index:c.length,y=c.charCodeAt(g);if(!m){n=c.slice(f);break}if(y===10&&f===g&&a)p.push(-3),a=void 0;else switch(a&&(p.push(-5),a=void 0),f<g&&(p.push(c.slice(f,g)),e+=g-f),y){case 0:{p.push(65533),e++;break}case 9:{const v=Math.ceil(e/4)*4;for(p.push(-2);e++<v;)p.push(-1);break}case 10:{p.push(-4),e=1;break}default:a=!0,e=1}f=g+1}return h&&(a&&p.push(-5),n&&p.push(n),p.push(null)),p}}const P9=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function T9(e){return e.replace(P9,L9)}function L9(e,n,r){if(n)return n;if(r.charCodeAt(0)===35){const o=r.charCodeAt(1),c=o===120||o===88;return Sf(r.slice(c?2:1),c?16:10)}return z1(r)||e}const Ff={}.hasOwnProperty;function I9(e,n,r){return n&&typeof n=="object"&&(r=n,n=void 0),R9(r)(M9(z9(r).document().write(A9()(e,n,!0))))}function R9(e){const n={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(Lt),autolinkProtocol:D,autolinkEmail:D,atxHeading:u(xt),blockQuote:u(ee),characterEscape:D,characterReference:D,codeFenced:u(Ae),codeFencedFenceInfo:h,codeFencedFenceMeta:h,codeIndented:u(Ae,h),codeText:u(Ze,h),codeTextData:D,data:D,codeFlowValue:D,definition:u(mt),definitionDestinationString:h,definitionLabelString:h,definitionTitleString:h,emphasis:u(tt),hardBreakEscape:u(Xt),hardBreakTrailing:u(Xt),htmlFlow:u(zn,h),htmlFlowData:D,htmlText:u(zn,h),htmlTextData:D,image:u(Jt),label:h,link:u(Lt),listItem:u(Et),listItemValue:v,listOrdered:u(rt,y),listUnordered:u(rt),paragraph:u(It),reference:ve,referenceString:h,resourceDestinationString:h,resourceTitleString:h,setextHeading:u(xt),strong:u(Rt),thematicBreak:u(ln)},exit:{atxHeading:f(),atxHeadingSequence:N,autolink:f(),autolinkEmail:ge,autolinkProtocol:ce,blockQuote:f(),characterEscapeValue:I,characterReferenceMarkerHexadecimal:le,characterReferenceMarkerNumeric:le,characterReferenceValue:je,characterReference:we,codeFenced:f(b),codeFencedFence:j,codeFencedFenceInfo:w,codeFencedFenceMeta:S,codeFlowValue:I,codeIndented:f(P),codeText:f(ie),codeTextData:I,data:I,definition:f(),definitionDestinationString:z,definitionLabelString:C,definitionTitleString:M,emphasis:f(),hardBreakEscape:f(H),hardBreakTrailing:f(H),htmlFlow:f(Y),htmlFlowData:I,htmlText:f(ne),htmlTextData:I,image:f($),label:A,labelText:G,lineEnding:B,link:f(re),listItem:f(),listOrdered:f(),listUnordered:f(),paragraph:f(),referenceString:te,resourceDestinationString:F,resourceTitleString:W,resource:T,setextHeading:f(K),setextHeadingLineSequence:V,setextHeadingText:L,strong:f(),thematicBreak:f()}};$f(n,(e||{}).mdastExtensions||[]);const r={};return a;function a(J){let he={type:"root",children:[],position:void 0};const Se={stack:[he],tokenStack:[],config:n,enter:p,exit:m,buffer:h,resume:g,data:r},ze=[],Qe=[];let Ke=-1;for(;++Ke<J.length;)if(Qe.push(J[Ke]),J[Ke][1].type==="listOrdered"||J[Ke][1].type==="listUnordered")if(J[Ke][0]==="enter")ze.push(Qe.length-1);else{const lt=ze.pop();c(Qe,lt)}for(J=Qe,Ke=-1;++Ke<J.length;){const lt=n[J[Ke][0]];J[Ke][0]==="enter"&&n.beforeEnter.length>0&&o(n.beforeEnter,{...Se,sliceSerialize:J[Ke][2].sliceSerialize},J[Ke][1]),Ff.call(lt,J[Ke][1].type)&<[J[Ke][1].type].call({...Se,sliceSerialize:J[Ke][2].sliceSerialize},J[Ke][1]),J[Ke][0]==="exit"&&n.afterExit.length>0&&o(n.afterExit,{...Se,sliceSerialize:J[Ke][2].sliceSerialize},J[Ke][1])}if(Se.tokenStack.length>0){const lt=Se.tokenStack[Se.tokenStack.length-1];(lt[1]||xh).call(Se,void 0,lt[0])}for(he.position={start:Qr(J.length>0?J[0][1].start:{line:1,column:1,offset:0}),end:Qr(J.length>0?J[J.length-2][1].end:{line:1,column:1,offset:0})},Ke=-1;++Ke<n.transforms.length;)he=n.transforms[Ke](he)||he;return he}function o(J,he,Se){let ze=-1;for(;++ze<J.length;)J[ze].call(he,Se)}function c(J,he){const Se=J.length-1;let ze=he-1,Qe=-1,Ke=!1,lt,yt,en,Vt;const Ft=[];for(;++ze<=Se;){const Ie=J[ze];switch(Ie[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ie[0]==="enter"?Qe++:Qe--,Vt=void 0;break}case"lineEndingBlank":{Ie[0]==="enter"&&(lt&&!Vt&&!Qe&&!en&&(en=ze),Vt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Vt=void 0}if(!Qe&&Ie[0]==="enter"&&Ie[1].type==="listItemPrefix"||Qe===-1&&Ie[0]==="exit"&&(Ie[1].type==="listUnordered"||Ie[1].type==="listOrdered")){if(lt){let Ve=ze;for(yt=void 0;Ve--;){const Fe=J[Ve];if(Fe[1].type==="lineEnding"||Fe[1].type==="lineEndingBlank"){if(Fe[0]==="exit")continue;yt&&(J[yt][1].type="lineEndingBlank",Ke=!0),Fe[1].type="lineEnding",yt=Ve}else if(!(Fe[1].type==="linePrefix"||Fe[1].type==="blockQuotePrefix"||Fe[1].type==="blockQuotePrefixWhitespace"||Fe[1].type==="blockQuoteMarker"||Fe[1].type==="listItemIndent"))break}en&&(!yt||en<yt)&&(lt._spread=!0),lt.end=Object.assign({},yt?J[yt][1].start:Ie[1].end),Ft.push({at:yt||ze,event:["exit",lt,Ie[2]]})}if(Ie[1].type==="listItemPrefix"){const Ve={type:"listItem",_spread:!1,start:Object.assign({},Ie[1].start),end:void 0};lt=Ve,Ft.push({at:ze,event:["enter",Ve,Ie[2]]}),en=void 0,Vt=!0}}}const se=J.splice(he);let Be=0;for(ze=-1;++ze<se.length;){for(;Be<Ft.length&&Ft[Be].at===he+ze;)J.push(Ft[Be++].event);J.push(se[ze])}J[he][1]._spread=Ke}function u(J,he){return Se;function Se(ze){p.call(this,J(ze),ze),he&&he.call(this,ze)}}function h(){this.stack.push({type:"fragment",children:[]})}function p(J,he,Se){this.stack[this.stack.length-1].children.push(J),this.stack.push(J),this.tokenStack.push([he,Se||void 0]),J.position={start:Qr(he.start),end:void 0}}function f(J){return he;function he(Se){J&&J.call(this,Se),m.call(this,Se)}}function m(J,he){const Se=this.stack.pop(),ze=this.tokenStack.pop();if(!ze)throw new Error("Cannot close `"+J.type+"` ("+ra({start:J.start,end:J.end})+"): it’s not open");ze[0].type!==J.type&&(he?he.call(this,J,ze[0]):(ze[1]||xh).call(this,J,ze[0])),Se.position.end=Qr(J.end)}function g(){return E1(this.stack.pop())}function y(){this.data.expectingFirstListItemValue=!0}function v(J){if(this.data.expectingFirstListItemValue){const he=this.stack[this.stack.length-2];he.start=Number.parseInt(this.sliceSerialize(J),10),this.data.expectingFirstListItemValue=void 0}}function w(){const J=this.resume(),he=this.stack[this.stack.length-1];he.lang=J}function S(){const J=this.resume(),he=this.stack[this.stack.length-1];he.meta=J}function j(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const J=this.resume(),he=this.stack[this.stack.length-1];he.value=J.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function P(){const J=this.resume(),he=this.stack[this.stack.length-1];he.value=J.replace(/(\r?\n|\r)$/g,"")}function C(J){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yn(this.sliceSerialize(J)).toLowerCase()}function M(){const J=this.resume(),he=this.stack[this.stack.length-1];he.title=J}function z(){const J=this.resume(),he=this.stack[this.stack.length-1];he.url=J}function N(J){const he=this.stack[this.stack.length-1];if(!he.depth){const Se=this.sliceSerialize(J).length;he.depth=Se}}function L(){this.data.setextHeadingSlurpLineEnding=!0}function V(J){const he=this.stack[this.stack.length-1];he.depth=this.sliceSerialize(J).codePointAt(0)===61?1:2}function K(){this.data.setextHeadingSlurpLineEnding=void 0}function D(J){const Se=this.stack[this.stack.length-1].children;let ze=Se[Se.length-1];(!ze||ze.type!=="text")&&(ze=Dt(),ze.position={start:Qr(J.start),end:void 0},Se.push(ze)),this.stack.push(ze)}function I(J){const he=this.stack.pop();he.value+=this.sliceSerialize(J),he.position.end=Qr(J.end)}function B(J){const he=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Se=he.children[he.children.length-1];Se.position.end=Qr(J.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(he.type)&&(D.call(this,J),I.call(this,J))}function H(){this.data.atHardBreak=!0}function Y(){const J=this.resume(),he=this.stack[this.stack.length-1];he.value=J}function ne(){const J=this.resume(),he=this.stack[this.stack.length-1];he.value=J}function ie(){const J=this.resume(),he=this.stack[this.stack.length-1];he.value=J}function re(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=he,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function $(){const J=this.stack[this.stack.length-1];if(this.data.inReference){const he=this.data.referenceType||"shortcut";J.type+="Reference",J.referenceType=he,delete J.url,delete J.title}else delete J.identifier,delete J.label;this.data.referenceType=void 0}function G(J){const he=this.sliceSerialize(J),Se=this.stack[this.stack.length-2];Se.label=T9(he),Se.identifier=Yn(he).toLowerCase()}function A(){const J=this.stack[this.stack.length-1],he=this.resume(),Se=this.stack[this.stack.length-1];if(this.data.inReference=!0,Se.type==="link"){const ze=J.children;Se.children=ze}else Se.alt=he}function F(){const J=this.resume(),he=this.stack[this.stack.length-1];he.url=J}function W(){const J=this.resume(),he=this.stack[this.stack.length-1];he.title=J}function T(){this.data.inReference=void 0}function ve(){this.data.referenceType="collapsed"}function te(J){const he=this.resume(),Se=this.stack[this.stack.length-1];Se.label=he,Se.identifier=Yn(this.sliceSerialize(J)).toLowerCase(),this.data.referenceType="full"}function le(J){this.data.characterReferenceType=J.type}function je(J){const he=this.sliceSerialize(J),Se=this.data.characterReferenceType;let ze;Se?(ze=Sf(he,Se==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ze=z1(he);const Qe=this.stack[this.stack.length-1];Qe.value+=ze}function we(J){const he=this.stack.pop();he.position.end=Qr(J.end)}function ce(J){I.call(this,J);const he=this.stack[this.stack.length-1];he.url=this.sliceSerialize(J)}function ge(J){I.call(this,J);const he=this.stack[this.stack.length-1];he.url="mailto:"+this.sliceSerialize(J)}function ee(){return{type:"blockquote",children:[],position:void 0}}function Ae(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function Ze(){return{type:"inlineCode",value:"",position:void 0}}function mt(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function tt(){return{type:"emphasis",children:[],position:void 0}}function xt(){return{type:"heading",depth:0,children:[],position:void 0}}function Xt(){return{type:"break",position:void 0}}function zn(){return{type:"html",value:"",position:void 0}}function Jt(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function Lt(){return{type:"link",title:null,url:"",children:[],position:void 0}}function rt(J){return{type:"list",ordered:J.type==="listOrdered",start:null,spread:J._spread,children:[],position:void 0}}function Et(J){return{type:"listItem",spread:J._spread,checked:null,children:[],position:void 0}}function It(){return{type:"paragraph",children:[],position:void 0}}function Rt(){return{type:"strong",children:[],position:void 0}}function Dt(){return{type:"text",value:"",position:void 0}}function ln(){return{type:"thematicBreak",position:void 0}}}function Qr(e){return{line:e.line,column:e.column,offset:e.offset}}function $f(e,n){let r=-1;for(;++r<n.length;){const a=n[r];Array.isArray(a)?$f(e,a):D9(e,a)}}function D9(e,n){let r;for(r in n)if(Ff.call(n,r))switch(r){case"canContainEols":{const a=n[r];a&&e[r].push(...a);break}case"transforms":{const a=n[r];a&&e[r].push(...a);break}case"afterExit":case"beforeEnter":{const a=n[r];a&&e[r].push(a);break}case"enter":case"exit":{const a=n[r];a&&Object.assign(e[r],a);break}}}function xh(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ra({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ra({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ra({start:n.start,end:n.end})+") is still open")}function F9(e){const n=this;n.parser=r;function r(a){return I9(a,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function $9(e,n){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,r),e.applyData(n,r)}function O9(e,n){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,r),[e.applyData(n,r),{type:"text",value:`
|
|
637
|
+
`}]}function B9(e,n){const r=n.value?n.value+`
|
|
638
|
+
`:"",a={},o=n.lang?n.lang.split(/\s+/):[];o.length>0&&(a.className=["language-"+o[0]]);let c={type:"element",tagName:"code",properties:a,children:[{type:"text",value:r}]};return n.meta&&(c.data={meta:n.meta}),e.patch(n,c),c=e.applyData(n,c),c={type:"element",tagName:"pre",properties:{},children:[c]},e.patch(n,c),c}function H9(e,n){const r={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function U9(e,n){const r={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function V9(e,n){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",a=String(n.identifier).toUpperCase(),o=us(a.toLowerCase()),c=e.footnoteOrder.indexOf(a);let u,h=e.footnoteCounts.get(a);h===void 0?(h=0,e.footnoteOrder.push(a),u=e.footnoteOrder.length):u=c+1,h+=1,e.footnoteCounts.set(a,h);const p={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+o,id:r+"fnref-"+o+(h>1?"-"+h:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(u)}]};e.patch(n,p);const f={type:"element",tagName:"sup",properties:{},children:[p]};return e.patch(n,f),e.applyData(n,f)}function W9(e,n){const r={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function q9(e,n){if(e.options.allowDangerousHtml){const r={type:"raw",value:n.value};return e.patch(n,r),e.applyData(n,r)}}function Of(e,n){const r=n.referenceType;let a="]";if(r==="collapsed"?a+="[]":r==="full"&&(a+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+a}];const o=e.all(n),c=o[0];c&&c.type==="text"?c.value="["+c.value:o.unshift({type:"text",value:"["});const u=o[o.length-1];return u&&u.type==="text"?u.value+=a:o.push({type:"text",value:a}),o}function K9(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Of(e,n);const o={src:us(a.url||""),alt:n.alt};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"img",properties:o,children:[]};return e.patch(n,c),e.applyData(n,c)}function Q9(e,n){const r={src:us(n.url)};n.alt!==null&&n.alt!==void 0&&(r.alt=n.alt),n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function Z9(e,n){const r={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,r);const a={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(n,a),e.applyData(n,a)}function G9(e,n){const r=String(n.identifier).toUpperCase(),a=e.definitionById.get(r);if(!a)return Of(e,n);const o={href:us(a.url||"")};a.title!==null&&a.title!==void 0&&(o.title=a.title);const c={type:"element",tagName:"a",properties:o,children:e.all(n)};return e.patch(n,c),e.applyData(n,c)}function Y9(e,n){const r={href:us(n.url)};n.title!==null&&n.title!==void 0&&(r.title=n.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function X9(e,n,r){const a=e.all(n),o=r?J9(r):Bf(n),c={},u=[];if(typeof n.checked=="boolean"){const m=a[0];let g;m&&m.type==="element"&&m.tagName==="p"?g=m:(g={type:"element",tagName:"p",properties:{},children:[]},a.unshift(g)),g.children.length>0&&g.children.unshift({type:"text",value:" "}),g.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),c.className=["task-list-item"]}let h=-1;for(;++h<a.length;){const m=a[h];(o||h!==0||m.type!=="element"||m.tagName!=="p")&&u.push({type:"text",value:`
|
|
639
|
+
`}),m.type==="element"&&m.tagName==="p"&&!o?u.push(...m.children):u.push(m)}const p=a[a.length-1];p&&(o||p.type!=="element"||p.tagName!=="p")&&u.push({type:"text",value:`
|
|
640
|
+
`});const f={type:"element",tagName:"li",properties:c,children:u};return e.patch(n,f),e.applyData(n,f)}function J9(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const r=e.children;let a=-1;for(;!n&&++a<r.length;)n=Bf(r[a])}return n}function Bf(e){const n=e.spread;return n??e.children.length>1}function ex(e,n){const r={},a=e.all(n);let o=-1;for(typeof n.start=="number"&&n.start!==1&&(r.start=n.start);++o<a.length;){const u=a[o];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 c={type:"element",tagName:n.ordered?"ol":"ul",properties:r,children:e.wrap(a,!0)};return e.patch(n,c),e.applyData(n,c)}function tx(e,n){const r={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function nx(e,n){const r={type:"root",children:e.wrap(e.all(n))};return e.patch(n,r),e.applyData(n,r)}function rx(e,n){const r={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ix(e,n){const r=e.all(n),a=r.shift(),o=[];if(a){const u={type:"element",tagName:"thead",properties:{},children:e.wrap([a],!0)};e.patch(n.children[0],u),o.push(u)}if(r.length>0){const u={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},h=_1(n.children[1]),p=xf(n.children[n.children.length-1]);h&&p&&(u.position={start:h,end:p}),o.push(u)}const c={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(n,c),e.applyData(n,c)}function sx(e,n,r){const a=r?r.children:void 0,c=(a?a.indexOf(n):1)===0?"th":"td",u=r&&r.type==="table"?r.align:void 0,h=u?u.length:n.children.length;let p=-1;const f=[];for(;++p<h;){const g=n.children[p],y={},v=u?u[p]:void 0;v&&(y.align=v);let w={type:"element",tagName:c,properties:y,children:[]};g&&(w.children=e.all(g),e.patch(g,w),w=e.applyData(g,w)),f.push(w)}const m={type:"element",tagName:"tr",properties:{},children:e.wrap(f,!0)};return e.patch(n,m),e.applyData(n,m)}function ax(e,n){const r={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}const yh=9,vh=32;function lx(e){const n=String(e),r=/\r?\n|\r/g;let a=r.exec(n),o=0;const c=[];for(;a;)c.push(kh(n.slice(o,a.index),o>0,!0),a[0]),o=a.index+a[0].length,a=r.exec(n);return c.push(kh(n.slice(o),o>0,!1)),c.join("")}function kh(e,n,r){let a=0,o=e.length;if(n){let c=e.codePointAt(a);for(;c===yh||c===vh;)a++,c=e.codePointAt(a)}if(r){let c=e.codePointAt(o-1);for(;c===yh||c===vh;)o--,c=e.codePointAt(o-1)}return o>a?e.slice(a,o):""}function ox(e,n){const r={type:"text",value:lx(String(n.value))};return e.patch(n,r),e.applyData(n,r)}function cx(e,n){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,r),e.applyData(n,r)}const ux={blockquote:$9,break:O9,code:B9,delete:H9,emphasis:U9,footnoteReference:V9,heading:W9,html:q9,imageReference:K9,image:Q9,inlineCode:Z9,linkReference:G9,link:Y9,listItem:X9,list:ex,paragraph:tx,root:nx,strong:rx,table:ix,tableCell:ax,tableRow:sx,text:ox,thematicBreak:cx,toml:Il,yaml:Il,definition:Il,footnoteDefinition:Il};function Il(){}const Hf=-1,lo=0,sa=1,eo=2,A1=3,P1=4,T1=5,L1=6,Uf=7,Vf=8,{defineProperty:dx}=Object,Wf=typeof self=="object"?self:globalThis,wh=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Wf[e](n)},hx=(e,n)=>{const r=(o,c)=>(e.set(c,o),o),a=o=>{if(e.has(o))return e.get(o);const[c,u]=n[o];switch(c){case lo:case Hf:return r(u,o);case sa:{const h=r([],o);for(const p of u)h.push(a(p));return h}case eo:{const h=r({},o);for(const[p,f]of u){const m=a(p),g=a(f);m==="__proto__"?dx(h,m,{value:g,configurable:!0,enumerable:!0,writable:!0}):h[m]=g}return h}case A1:return r(new Date(u),o);case P1:{const{source:h,flags:p}=u;return r(new RegExp(h,p),o)}case T1:{const h=r(new Map,o);for(const[p,f]of u)h.set(a(p),a(f));return h}case L1:{const h=r(new Set,o);for(const p of u)h.add(a(p));return h}case Uf:{const{name:h,message:p}=u;return r(typeof Wf[h]=="function"?wh(h,p):new Error(p),o)}case Vf:return r(BigInt(u),o);case"BigInt":return r(Object(BigInt(u)),o);case"ArrayBuffer":return r(new Uint8Array(u).buffer,u);case"DataView":{const{buffer:h}=new Uint8Array(u);return r(new DataView(h),u)}case"-0":return-0}return r(wh(c,u),o)};return a},jh=e=>hx(new Map,e)(0),ki="",{toString:px}={},{keys:fx,is:mx}=Object,Js=e=>{const n=typeof e;if(n!=="object"||!e)return[lo,n];const r=px.call(e).slice(8,-1);switch(r){case"Array":return[sa,ki];case"Object":return[eo,ki];case"Date":return[A1,ki];case"RegExp":return[P1,ki];case"Map":return[T1,ki];case"Set":return[L1,ki];case"DataView":return[sa,r]}return r.includes("Array")?[sa,r]:e instanceof Error?[Uf,e.name||"Error"]:[eo,r]},Rl=([e,n])=>e===lo&&(n==="function"||n==="symbol"),gx=(e,n,r,a)=>{const o=(u,h)=>{const p=a.push(u)-1;return r.set(h,p),p},c=u=>{if(r.has(u))return r.get(u);let[h,p]=Js(u);switch(h){case lo:{let m=u;switch(p){case"bigint":h=Vf,m=u.toString();break;case"number":if(!u&&mx(u,-0))return a.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+p);m=null;break;case"undefined":return o([Hf],u)}return o([h,m],u)}case sa:{if(p){let y=u;return p==="DataView"?y=new Uint8Array(u.buffer):p==="ArrayBuffer"&&(y=new Uint8Array(u)),o([p,[...y]],u)}const m=[],g=o([h,m],u);for(const y of u)m.push(c(y));return g}case eo:{if(p)switch(p){case"BigInt":return o([p,u.toString()],u);case"Boolean":case"Number":case"String":return o([p,u.valueOf()],u)}if(n&&"toJSON"in u)return c(u.toJSON());const m=[],g=o([h,m],u);for(const y of fx(u))(e||!Rl(Js(u[y])))&&m.push([c(y),c(u[y])]);return g}case A1:return o([h,isNaN(u.getTime())?ki:u.toISOString()],u);case P1:{const{source:m,flags:g}=u;return o([h,{source:m,flags:g}],u)}case T1:{const m=[],g=o([h,m],u);for(const[y,v]of u)(e||!(Rl(Js(y))||Rl(Js(v))))&&m.push([c(y),c(v)]);return g}case L1:{const m=[],g=o([h,m],u);for(const y of u)(e||!Rl(Js(y)))&&m.push(c(y));return g}}const{message:f}=u;return o([h,{name:p,message:f}],u)};return c},bh=(e,{json:n,lossy:r}={})=>{const a=[];return gx(!(n||r),!!n,new Map,a)(e),a},to=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?jh(bh(e,n)):structuredClone(e):(e,n)=>jh(bh(e,n));function xx(e,n){const r=[{type:"text",value:"↩"}];return n>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),r}function yx(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function vx(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||xx,a=e.options.footnoteBackLabel||yx,o=e.options.footnoteLabel||"Footnotes",c=e.options.footnoteLabelTagName||"h2",u=e.options.footnoteLabelProperties||{className:["sr-only"]},h=[];let p=-1;for(;++p<e.footnoteOrder.length;){const f=e.footnoteById.get(e.footnoteOrder[p]);if(!f)continue;const m=e.all(f),g=String(f.identifier).toUpperCase(),y=us(g.toLowerCase());let v=0;const w=[],S=e.footnoteCounts.get(g);for(;S!==void 0&&++v<=S;){w.length>0&&w.push({type:"text",value:" "});let P=typeof r=="string"?r:r(p,v);typeof P=="string"&&(P={type:"text",value:P}),w.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+y+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof a=="string"?a:a(p,v),className:["data-footnote-backref"]},children:Array.isArray(P)?P:[P]})}const j=m[m.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(...w)}else m.push(...w);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+y},children:e.wrap(m,!0)};e.patch(f,b),h.push(b)}if(h.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:c,properties:{...to(u),id:"footnote-label"},children:[{type:"text",value:o}]},{type:"text",value:`
|
|
641
|
+
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(h,!0)},{type:"text",value:`
|
|
642
|
+
`}]}}const oo=(function(e){if(e==null)return bx;if(typeof e=="function")return co(e);if(typeof e=="object")return Array.isArray(e)?kx(e):wx(e);if(typeof e=="string")return jx(e);throw new Error("Expected function, string, or object as test")});function kx(e){const n=[];let r=-1;for(;++r<e.length;)n[r]=oo(e[r]);return co(a);function a(...o){let c=-1;for(;++c<n.length;)if(n[c].apply(this,o))return!0;return!1}}function wx(e){const n=e;return co(r);function r(a){const o=a;let c;for(c in e)if(o[c]!==n[c])return!1;return!0}}function jx(e){return co(n);function n(r){return r&&r.type===e}}function co(e){return n;function n(r,a,o){return!!(_x(r)&&e.call(this,r,typeof a=="number"?a:void 0,o||void 0))}}function bx(){return!0}function _x(e){return e!==null&&typeof e=="object"&&"type"in e}const qf=[],Sx=!0,Vl=!1,Zu="skip";function Gu(e,n,r,a){if(!e||typeof e!="object")throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let o=!0,c,u,h,p;if(typeof r=="function"||r&&typeof r=="object"?(c=n,u=r,a&&(o=!1)):(u=n,r&&(o=!1)),typeof u=="function")h=u;else if(u&&typeof u=="object"){if(!(u.enter===null||u.enter===void 0))if(typeof u.enter=="function")h=u.enter;else throw new Error("Unexpected value `"+u.enter+"` for `visitors.enter`, expected optional visitor");if(typeof u.exit=="function")p=u.exit;else throw new Error("Unexpected value `"+u.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw new Error("Unexpected value `"+u+"` for `enter` or `visitors`, expected visitor or object with visitors");const f=oo(c),m=o?1:-1;g(e,void 0,[])();function g(y,v,w){const S=y&&typeof y=="object"?y:{};if(typeof S.type=="string"){const b=typeof S.tagName=="string"?S.tagName:typeof S.name=="string"?S.name:void 0;Object.defineProperty(j,"name",{value:"node ("+(y.type+(b?"<"+b+">":""))+")"})}return j;function j(){const b=!c||f(y,v,w[w.length-1]||void 0);let P=qf;if(h&&b&&(P=_h(h(y,w,v)),P[0]===Vl))return P;if("children"in y&&y.children){const C=y;if(C.children&&P[0]!==Zu){let M=(o?-1:C.children.length)+m;const z=[...w,C];for(;M>-1&&M<C.children.length;){const N=C.children[M],L=g(N,M,z)();if(L[0]===Vl)return L;M=typeof L[1]=="number"?L[1]:M+m}}}if(p&&b){const C=_h(p(y,w,v));if(C[0]===Zu)throw new Error("Unexpected value `"+C[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(C[0]===Vl||typeof C[1]=="number")return C}return P}}}function _h(e){return Array.isArray(e)?e:typeof e=="number"?[Sx,e]:e==null?qf:[e]}function I1(e,n,r,a){let o,c,u;c=n,u=r,typeof c=="function"?Gu(e,o,Yu(c),u):Gu(e,o,Nx(c),u)}function Nx(e){return!e||typeof e!="object"?e:{enter:typeof e.enter=="function"?Yu(e.enter):e.enter,exit:typeof e.exit=="function"?Yu(e.exit):e.exit}}function Yu(e){return n;function n(r,a,o){return e(r,o,a[a.length-1])}}const Xu={}.hasOwnProperty,Cx={};function Ex(e,n){const r=n||Cx,a=new Map,o=new Map,c=new Map,u={...ux,...r.handlers},h={all:f,applyData:Mx,definitionById:a,footnoteById:o,footnoteCounts:c,footnoteOrder:[],handlers:u,one:p,options:r,patch:zx,wrap:Px};return I1(e,function(m){if(m.type==="definition"||m.type==="footnoteDefinition"){const g=m.type==="definition"?a:o,y=String(m.identifier).toUpperCase();g.has(y)||g.set(y,m)}}),h;function p(m,g){const y=m.type,v=h.handlers[y];if(Xu.call(h.handlers,y)&&v)return v(h,m,g);if(h.options.passThrough&&h.options.passThrough.includes(y)){if("children"in m){const{children:S,...j}=m,b=to(j);return b.children=h.all(m),b}return to(m)}return(h.options.unknownHandler||Ax)(h,m,g)}function f(m){const g=[];if("children"in m){const y=m.children;let v=-1;for(;++v<y.length;){const w=h.one(y[v],m);if(w){if(v&&y[v-1].type==="break"&&(!Array.isArray(w)&&w.type==="text"&&(w.value=Sh(w.value)),!Array.isArray(w)&&w.type==="element")){const S=w.children[0];S&&S.type==="text"&&(S.value=Sh(S.value))}Array.isArray(w)?g.push(...w):g.push(w)}}}return g}}function zx(e,n){e.position&&(n.position=y8(e))}function Mx(e,n){let r=n;if(e&&e.data){const a=e.data.hName,o=e.data.hChildren,c=e.data.hProperties;if(typeof a=="string")if(r.type==="element")r.tagName=a;else{const u="children"in r?r.children:[r];r={type:"element",tagName:a,properties:{},children:u}}r.type==="element"&&c&&Object.assign(r.properties,to(c)),"children"in r&&r.children&&o!==null&&o!==void 0&&(r.children=o)}return r}function Ax(e,n){const r=n.data||{},a="value"in n&&!(Xu.call(r,"hProperties")||Xu.call(r,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Px(e,n){const r=[];let a=-1;for(n&&r.push({type:"text",value:`
|
|
643
|
+
`});++a<e.length;)a&&r.push({type:"text",value:`
|
|
644
|
+
`}),r.push(e[a]);return n&&e.length>0&&r.push({type:"text",value:`
|
|
645
|
+
`}),r}function Sh(e){let n=0,r=e.charCodeAt(n);for(;r===9||r===32;)n++,r=e.charCodeAt(n);return e.slice(n)}function Nh(e,n){const r=Ex(e,n),a=r.one(e,void 0),o=vx(r),c=Array.isArray(a)?{type:"root",children:a}:a||{type:"root",children:[]};return o&&c.children.push({type:"text",value:`
|
|
646
|
+
`},o),c}function Tx(e,n){return e&&"run"in e?async function(r,a){const o=Nh(r,{file:a,...n});await e.run(o,a)}:function(r,a){return Nh(r,{file:a,...e||n})}}function Ch(e){if(e)throw e}var pu,Eh;function Lx(){if(Eh)return pu;Eh=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=function(f){return typeof Array.isArray=="function"?Array.isArray(f):n.call(f)==="[object Array]"},c=function(f){if(!f||n.call(f)!=="[object Object]")return!1;var m=e.call(f,"constructor"),g=f.constructor&&f.constructor.prototype&&e.call(f.constructor.prototype,"isPrototypeOf");if(f.constructor&&!m&&!g)return!1;var y;for(y in f);return typeof y>"u"||e.call(f,y)},u=function(f,m){r&&m.name==="__proto__"?r(f,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):f[m.name]=m.newValue},h=function(f,m){if(m==="__proto__")if(e.call(f,m)){if(a)return a(f,m).value}else return;return f[m]};return pu=function p(){var f,m,g,y,v,w,S=arguments[0],j=1,b=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<b;++j)if(f=arguments[j],f!=null)for(m in f)g=h(S,m),y=h(f,m),S!==y&&(P&&y&&(c(y)||(v=o(y)))?(v?(v=!1,w=g&&o(g)?g:[]):w=g&&c(g)?g:{},u(S,{name:m,newValue:p(P,w,y)})):typeof y<"u"&&u(S,{name:m,newValue:y}));return S},pu}var Ix=Lx();const fu=wm(Ix);function Ju(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Rx(){const e=[],n={run:r,use:a};return n;function r(...o){let c=-1;const u=o.pop();if(typeof u!="function")throw new TypeError("Expected function as last argument, not "+u);h(null,...o);function h(p,...f){const m=e[++c];let g=-1;if(p){u(p);return}for(;++g<o.length;)(f[g]===null||f[g]===void 0)&&(f[g]=o[g]);o=f,m?Dx(m,h)(...f):u(null,...f)}}function a(o){if(typeof o!="function")throw new TypeError("Expected `middelware` to be a function, not "+o);return e.push(o),n}}function Dx(e,n){let r;return a;function a(...u){const h=e.length>u.length;let p;h&&u.push(o);try{p=e.apply(this,u)}catch(f){const m=f;if(h&&r)throw m;return o(m)}h||(p&&p.then&&typeof p.then=="function"?p.then(c,o):p instanceof Error?o(p):c(p))}function o(u,...h){r||(r=!0,n(u,...h))}function c(u){o(null,u)}}const hr={basename:Fx,dirname:$x,extname:Ox,join:Bx,sep:"/"};function Fx(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');xa(e);let r=0,a=-1,o=e.length,c;if(n===void 0||n.length===0||n.length>e.length){for(;o--;)if(e.codePointAt(o)===47){if(c){r=o+1;break}}else a<0&&(c=!0,a=o+1);return a<0?"":e.slice(r,a)}if(n===e)return"";let u=-1,h=n.length-1;for(;o--;)if(e.codePointAt(o)===47){if(c){r=o+1;break}}else u<0&&(c=!0,u=o+1),h>-1&&(e.codePointAt(o)===n.codePointAt(h--)?h<0&&(a=o):(h=-1,a=u));return r===a?a=u:a<0&&(a=e.length),e.slice(r,a)}function $x(e){if(xa(e),e.length===0)return".";let n=-1,r=e.length,a;for(;--r;)if(e.codePointAt(r)===47){if(a){n=r;break}}else a||(a=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Ox(e){xa(e);let n=e.length,r=-1,a=0,o=-1,c=0,u;for(;n--;){const h=e.codePointAt(n);if(h===47){if(u){a=n+1;break}continue}r<0&&(u=!0,r=n+1),h===46?o<0?o=n:c!==1&&(c=1):o>-1&&(c=-1)}return o<0||r<0||c===0||c===1&&o===r-1&&o===a+1?"":e.slice(o,r)}function Bx(...e){let n=-1,r;for(;++n<e.length;)xa(e[n]),e[n]&&(r=r===void 0?e[n]:r+"/"+e[n]);return r===void 0?".":Hx(r)}function Hx(e){xa(e);const n=e.codePointAt(0)===47;let r=Ux(e,!n);return r.length===0&&!n&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),n?"/"+r:r}function Ux(e,n){let r="",a=0,o=-1,c=0,u=-1,h,p;for(;++u<=e.length;){if(u<e.length)h=e.codePointAt(u);else{if(h===47)break;h=47}if(h===47){if(!(o===u-1||c===1))if(o!==u-1&&c===2){if(r.length<2||a!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",a=0):(r=r.slice(0,p),a=r.length-1-r.lastIndexOf("/")),o=u,c=0;continue}}else if(r.length>0){r="",a=0,o=u,c=0;continue}}n&&(r=r.length>0?r+"/..":"..",a=2)}else r.length>0?r+="/"+e.slice(o+1,u):r=e.slice(o+1,u),a=u-o-1;o=u,c=0}else h===46&&c>-1?c++:c=-1}return r}function xa(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Vx={cwd:Wx};function Wx(){return"/"}function e1(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qx(e){if(typeof e=="string")e=new URL(e);else if(!e1(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Kx(e)}function Kx(e){if(e.hostname!==""){const a=new TypeError('File URL host must be "localhost" or empty on darwin');throw a.code="ERR_INVALID_FILE_URL_HOST",a}const n=e.pathname;let r=-1;for(;++r<n.length;)if(n.codePointAt(r)===37&&n.codePointAt(r+1)===50){const a=n.codePointAt(r+2);if(a===70||a===102){const o=new TypeError("File URL path must not include encoded / characters");throw o.code="ERR_INVALID_FILE_URL_PATH",o}}return decodeURIComponent(n)}const mu=["history","path","basename","stem","extname","dirname"];class Kf{constructor(n){let r;n?e1(n)?r={path:n}:typeof n=="string"||Qx(n)?r={value:n}:r=n:r={},this.cwd="cwd"in r?"":Vx.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let a=-1;for(;++a<mu.length;){const c=mu[a];c in r&&r[c]!==void 0&&r[c]!==null&&(this[c]=c==="history"?[...r[c]]:r[c])}let o;for(o in r)mu.includes(o)||(this[o]=r[o])}get basename(){return typeof this.path=="string"?hr.basename(this.path):void 0}set basename(n){xu(n,"basename"),gu(n,"basename"),this.path=hr.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?hr.dirname(this.path):void 0}set dirname(n){zh(this.basename,"dirname"),this.path=hr.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?hr.extname(this.path):void 0}set extname(n){if(gu(n,"extname"),zh(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=hr.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){e1(n)&&(n=qx(n)),xu(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?hr.basename(this.path,this.extname):void 0}set stem(n){xu(n,"stem"),gu(n,"stem"),this.path=hr.join(this.dirname||"",n+(this.extname||""))}fail(n,r,a){const o=this.message(n,r,a);throw o.fatal=!0,o}info(n,r,a){const o=this.message(n,r,a);return o.fatal=void 0,o}message(n,r,a){const o=new Yt(n,r,a);return this.path&&(o.name=this.path+":"+o.name,o.file=this.path),o.fatal=!1,this.messages.push(o),o}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function gu(e,n){if(e&&e.includes(hr.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+hr.sep+"`")}function xu(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function zh(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Qx(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Zx=(function(e){const a=this.constructor.prototype,o=a[e],c=function(){return o.apply(c,arguments)};return Object.setPrototypeOf(c,a),c}),Gx={}.hasOwnProperty;class R1 extends Zx{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=Rx()}copy(){const n=new R1;let r=-1;for(;++r<this.attachers.length;){const a=this.attachers[r];n.use(...a)}return n.data(fu(!0,{},this.namespace)),n}data(n,r){return typeof n=="string"?arguments.length===2?(ku("data",this.frozen),this.namespace[n]=r,this):Gx.call(this.namespace,n)&&this.namespace[n]||void 0:n?(ku("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...a]=this.attachers[this.freezeIndex];if(a[0]===!1)continue;a[0]===!0&&(a[0]=void 0);const o=r.call(n,...a);typeof o=="function"&&this.transformers.use(o)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const r=Dl(n),a=this.parser||this.Parser;return yu("parse",a),a(String(r),r)}process(n,r){const a=this;return this.freeze(),yu("process",this.parser||this.Parser),vu("process",this.compiler||this.Compiler),r?o(void 0,r):new Promise(o);function o(c,u){const h=Dl(n),p=a.parse(h);a.run(p,h,function(m,g,y){if(m||!g||!y)return f(m);const v=g,w=a.stringify(v,y);Jx(w)?y.value=w:y.result=w,f(m,y)});function f(m,g){m||!g?u(m):c?c(g):r(void 0,g)}}}processSync(n){let r=!1,a;return this.freeze(),yu("processSync",this.parser||this.Parser),vu("processSync",this.compiler||this.Compiler),this.process(n,o),Ah("processSync","process",r),a;function o(c,u){r=!0,Ch(c),a=u}}run(n,r,a){Mh(n),this.freeze();const o=this.transformers;return!a&&typeof r=="function"&&(a=r,r=void 0),a?c(void 0,a):new Promise(c);function c(u,h){const p=Dl(r);o.run(n,p,f);function f(m,g,y){const v=g||n;m?h(m):u?u(v):a(void 0,v,y)}}}runSync(n,r){let a=!1,o;return this.run(n,r,c),Ah("runSync","run",a),o;function c(u,h){Ch(u),o=h,a=!0}}stringify(n,r){this.freeze();const a=Dl(r),o=this.compiler||this.Compiler;return vu("stringify",o),Mh(n),o(n,a)}use(n,...r){const a=this.attachers,o=this.namespace;if(ku("use",this.frozen),n!=null)if(typeof n=="function")p(n,r);else if(typeof n=="object")Array.isArray(n)?h(n):u(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function c(f){if(typeof f=="function")p(f,[]);else if(typeof f=="object")if(Array.isArray(f)){const[m,...g]=f;p(m,g)}else u(f);else throw new TypeError("Expected usable value, not `"+f+"`")}function u(f){if(!("plugins"in f)&&!("settings"in f))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");h(f.plugins),f.settings&&(o.settings=fu(!0,o.settings,f.settings))}function h(f){let m=-1;if(f!=null)if(Array.isArray(f))for(;++m<f.length;){const g=f[m];c(g)}else throw new TypeError("Expected a list of plugins, not `"+f+"`")}function p(f,m){let g=-1,y=-1;for(;++g<a.length;)if(a[g][0]===f){y=g;break}if(y===-1)a.push([f,...m]);else if(m.length>0){let[v,...w]=m;const S=a[y][1];Ju(S)&&Ju(v)&&(v=fu(!0,S,v)),a[y]=[f,v,...w]}}}}const Yx=new R1().freeze();function yu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function vu(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ku(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Mh(e){if(!Ju(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ah(e,n,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Dl(e){return Xx(e)?e:new Kf(e)}function Xx(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Jx(e){return typeof e=="string"||ey(e)}function ey(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ty="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ph=[],Th={allowDangerousHtml:!0},ny=/^(https?|ircs?|mailto|xmpp)$/i,ry=[{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 Lh(e){const n=iy(e),r=sy(e);return ay(n.runSync(n.parse(r),r),e)}function iy(e){const n=e.rehypePlugins||Ph,r=e.remarkPlugins||Ph,a=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Th}:Th;return Yx().use(F9).use(r).use(Tx,a).use(n)}function sy(e){const n=e.children||"",r=new Kf;return typeof n=="string"&&(r.value=n),r}function ay(e,n){const r=n.allowedElements,a=n.allowElement,o=n.components,c=n.disallowedElements,u=n.skipHtml,h=n.unwrapDisallowed,p=n.urlTransform||ly;for(const m of ry)Object.hasOwn(n,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+ty+m.id,void 0);return I1(e,f),_8(e,{Fragment:i.Fragment,components:o,ignoreInvalidStyle:!0,jsx:i.jsx,jsxs:i.jsxs,passKeys:!0,passNode:!0});function f(m,g,y){if(m.type==="raw"&&y&&typeof g=="number")return u?y.children.splice(g,1):y.children[g]={type:"text",value:m.value},g;if(m.type==="element"){let v;for(v in uu)if(Object.hasOwn(uu,v)&&Object.hasOwn(m.properties,v)){const w=m.properties[v],S=uu[v];(S===null||S.includes(m.tagName))&&(m.properties[v]=p(String(w||""),v,m))}}if(m.type==="element"){let v=r?!r.includes(m.tagName):c?c.includes(m.tagName):!1;if(!v&&a&&typeof g=="number"&&(v=!a(m,g,y)),v&&y&&typeof g=="number")return h&&m.children?y.children.splice(g,1,...m.children):y.children.splice(g,1),g}}}function ly(e){const n=e.indexOf(":"),r=e.indexOf("?"),a=e.indexOf("#"),o=e.indexOf("/");return n===-1||o!==-1&&n>o||r!==-1&&n>r||a!==-1&&n>a||ny.test(e.slice(0,n))?e:""}function Ih(e,n){const r=String(e);if(typeof n!="string")throw new TypeError("Expected character");let a=0,o=r.indexOf(n);for(;o!==-1;)a++,o=r.indexOf(n,o+n.length);return a}function oy(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cy(e,n,r){const o=oo((r||{}).ignore||[]),c=uy(n);let u=-1;for(;++u<c.length;)Gu(e,h);function h(f,m,g){if(f.type==="text"&&typeof g=="number")return p(f,m,g);if(o(f,g,m[m.length-1]))return Zu}function p(f,m,g){const y=m[m.length-1],v=c[u][0],w=c[u][1];let S=0,j=!1,b=[];v.lastIndex=0;let P=v.exec(f.value);for(;P;){const M=P.index,z={index:P.index,input:P.input,stack:[...m,f]};let N=w(...P,z);if(typeof N=="string"&&(N=N.length>0?{type:"text",value:N}:void 0),N===!1)v.lastIndex=M+1;else{if(S!==M&&C({type:"text",value:f.value.slice(S,M)}),Array.isArray(N))for(const L of N)C(L);else N&&C(N);S=M+P[0].length,j=!0}if(!v.global)break;P=v.exec(f.value)}return j?(S<f.value.length&&C({type:"text",value:f.value.slice(S)}),y.children.splice(g,1,...b)):b=[f],g+b.length;function C(M){const z=b[b.length-1];z&&z.type==="text"&&M.type==="text"?z.value+=M.value:b.push(M)}}}function uy(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=[],r=!e[0]||Array.isArray(e[0])?e:[e];let a=-1;for(;++a<r.length;){const o=r[a];n.push([dy(o[0]),hy(o[1])])}return n}function dy(e){return typeof e=="string"?new RegExp(oy(e),"g"):e}function hy(e){return typeof e=="function"?e:function(){return e}}const wu="phrasing",ju=["autolink","link","image","label"];function py(){return{transforms:[ky],enter:{literalAutolink:my,literalAutolinkEmail:bu,literalAutolinkHttp:bu,literalAutolinkWww:bu},exit:{literalAutolink:vy,literalAutolinkEmail:yy,literalAutolinkHttp:gy,literalAutolinkWww:xy}}}function fy(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:ju},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:wu,notInConstruct:ju},{character:":",before:"[ps]",after:"\\/",inConstruct:wu,notInConstruct:ju}]}}function my(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function bu(e){this.config.enter.autolinkProtocol.call(this,e)}function gy(e){this.config.exit.autolinkProtocol.call(this,e)}function xy(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function yy(e){this.config.exit.autolinkEmail.call(this,e)}function vy(e){this.exit(e)}function ky(e){cy(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,wy],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),jy]],{ignore:["link","linkReference"]})}function wy(e,n,r,a,o){let c="";if(!Qf(o)||(/^w/i.test(n)&&(r=n+r,n="",c="http://"),!by(r)))return!1;const u=_y(r+a);if(!u[0])return!1;const h={type:"link",title:null,url:c+n+u[0],children:[{type:"text",value:n+u[0]}]};return u[1]?[h,{type:"text",value:u[1]}]:h}function jy(e,n,r,a){return!Qf(a,!0)||/[-\d_]$/.test(r)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+r,children:[{type:"text",value:n+"@"+r}]}}function by(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function _y(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let r=n[0],a=r.indexOf(")");const o=Ih(e,"(");let c=Ih(e,")");for(;a!==-1&&o>c;)e+=r.slice(0,a+1),r=r.slice(a+1),a=r.indexOf(")"),c++;return[e,r]}function Qf(e,n){const r=e.input.charCodeAt(e.index-1);return(e.index===0||Ci(r)||so(r))&&(!n||r!==47)}Zf.peek=Ty;function Sy(){this.buffer()}function Ny(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cy(){this.buffer()}function Ey(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function zy(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function My(e){this.exit(e)}function Ay(e){const n=this.resume(),r=this.stack[this.stack.length-1];r.type,r.identifier=Yn(this.sliceSerialize(e)).toLowerCase(),r.label=n}function Py(e){this.exit(e)}function Ty(){return"["}function Zf(e,n,r,a){const o=r.createTracker(a);let c=o.move("[^");const u=r.enter("footnoteReference"),h=r.enter("reference");return c+=o.move(r.safe(r.associationId(e),{after:"]",before:c})),h(),u(),c+=o.move("]"),c}function Ly(){return{enter:{gfmFootnoteCallString:Sy,gfmFootnoteCall:Ny,gfmFootnoteDefinitionLabelString:Cy,gfmFootnoteDefinition:Ey},exit:{gfmFootnoteCallString:zy,gfmFootnoteCall:My,gfmFootnoteDefinitionLabelString:Ay,gfmFootnoteDefinition:Py}}}function Iy(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:r,footnoteReference:Zf},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function r(a,o,c,u){const h=c.createTracker(u);let p=h.move("[^");const f=c.enter("footnoteDefinition"),m=c.enter("label");return p+=h.move(c.safe(c.associationId(a),{before:p,after:"]"})),m(),p+=h.move("]:"),a.children&&a.children.length>0&&(h.shift(4),p+=h.move((n?`
|
|
647
|
+
`:" ")+c.indentLines(c.containerFlow(a,h.current()),n?Gf:Ry))),f(),p}}function Ry(e,n,r){return n===0?e:Gf(e,n,r)}function Gf(e,n,r){return(r?"":" ")+e}const Dy=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];D1.attention=Hy;D1.peek=Uy;function Fy(){return{canContainEols:["delete"],enter:{strikethrough:Oy},exit:{strikethrough:By}}}function $y(){return{handlers:{delete:D1},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Dy}]}}function Oy(e){this.enter({type:"delete",children:[],position:void 0},e)}function By(e){this.exit(e)}function D1(e,n,r,a){const o=r.createTracker(a),c=r.stack.includes("strikethrough")?"~":"~~",u=r.enter("strikethrough");let h=o.move(c);return h+=r.containerPhrasing(e,{...o.current(),before:h,after:"~"}),h+=o.move(c),u(),h}function Hy(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function Uy(){return"~"}function Vy(e){return e.length}function Wy(e,n){const r=n||{},a=(r.align||[]).concat(),o=r.stringLength||Vy,c=[],u=[],h=[],p=[];let f=0,m=-1;for(;++m<e.length;){const S=[],j=[];let b=-1;for(e[m].length>f&&(f=e[m].length);++b<e[m].length;){const P=qy(e[m][b]);if(r.alignDelimiters!==!1){const C=o(P);j[b]=C,(p[b]===void 0||C>p[b])&&(p[b]=C)}S.push(P)}u[m]=S,h[m]=j}let g=-1;if(typeof a=="object"&&"length"in a)for(;++g<f;)c[g]=Rh(a[g]);else{const S=Rh(a);for(;++g<f;)c[g]=S}g=-1;const y=[],v=[];for(;++g<f;){const S=c[g];let j="",b="";S===99?(j=":",b=":"):S===108?j=":":S===114&&(b=":");let P=r.alignDelimiters===!1?1:Math.max(1,p[g]-j.length-b.length);const C=j+"-".repeat(P)+b;r.alignDelimiters!==!1&&(P=j.length+P+b.length,P>p[g]&&(p[g]=P),v[g]=P),y[g]=C}u.splice(1,0,y),h.splice(1,0,v),m=-1;const w=[];for(;++m<u.length;){const S=u[m],j=h[m];g=-1;const b=[];for(;++g<f;){const P=S[g]||"";let C="",M="";if(r.alignDelimiters!==!1){const z=p[g]-(j[g]||0),N=c[g];N===114?C=" ".repeat(z):N===99?z%2?(C=" ".repeat(z/2+.5),M=" ".repeat(z/2-.5)):(C=" ".repeat(z/2),M=C):M=" ".repeat(z)}r.delimiterStart!==!1&&!g&&b.push("|"),r.padding!==!1&&!(r.alignDelimiters===!1&&P==="")&&(r.delimiterStart!==!1||g)&&b.push(" "),r.alignDelimiters!==!1&&b.push(C),b.push(P),r.alignDelimiters!==!1&&b.push(M),r.padding!==!1&&b.push(" "),(r.delimiterEnd!==!1||g!==f-1)&&b.push("|")}w.push(r.delimiterEnd===!1?b.join("").replace(/ +$/,""):b.join(""))}return w.join(`
|
|
648
|
+
`)}function qy(e){return e==null?"":String(e)}function Rh(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const Ky=oo(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Qy(e,n,r,a){const o=r.enter("blockquote"),c=r.createTracker(a);c.move("> "),c.shift(2);const u=r.indentLines(r.containerFlow(e,c.current()),Zy);return o(),u}function Zy(e,n,r){return">"+(r?"":" ")+e}function Gy(e,n){return Dh(e,n.inConstruct,!0)&&!Dh(e,n.notInConstruct,!1)}function Dh(e,n,r){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return r;let a=-1;for(;++a<n.length;)if(e.includes(n[a]))return!0;return!1}function Fh(e,n,r,a){let o=-1;for(;++o<r.unsafe.length;){const c=r.unsafe[o];if(c.character===`
|
|
649
|
+
`&&!c.before&&!c.after&&Gy(r.stack,c))return/[\t ]/.test(a.before)?"":" "}return`\\
|
|
650
|
+
`}function Yy(e,n){const r=String(e);let a=r.indexOf(n),o=a,c=0,u=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;a!==-1;)a===o?++c>u&&(u=c):c=1,o=a+n.length,a=r.indexOf(n,o);return u}function Xy(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Jy(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ev(e,n,r,a){const o=Jy(r),c=e.value||"";if(Xy(e,r)){const g=r.enter("codeIndented"),y=r.indentLines(c,tv);return g(),y}const u=r.createTracker(a),h=o.repeat(Math.max(Yy(c,o)+1,3)),p=r.enter("codeFenced"),f=o==="`"?"GraveAccent":"Tilde";let m=u.move(h);if(e.lang){const g=r.enter(`codeFencedLang${f}`);m+=u.move(r.safe(e.lang,{before:m,after:" ",encode:["`"],...u.current()})),g()}if(e.lang&&e.meta){const g=r.enter(`codeFencedMeta${f}`);m+=u.move(" "),m+=u.move(r.safe(e.meta,{before:m,after:`
|
|
651
|
+
`,encode:["`"],...u.current()})),g()}return m+=u.move(`
|
|
652
|
+
`),c&&(m+=u.move(c+`
|
|
653
|
+
`)),m+=u.move(h),p(),m}function tv(e,n,r){return(r?"":" ")+e}function F1(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function nv(e,n,r,a){const o=F1(r),c=o==='"'?"Quote":"Apostrophe",u=r.enter("definition");let h=r.enter("label");const p=r.createTracker(a);let f=p.move("[");return f+=p.move(r.safe(r.associationId(e),{before:f,after:"]",...p.current()})),f+=p.move("]: "),h(),!e.url||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(e.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(h=r.enter("destinationRaw"),f+=p.move(r.safe(e.url,{before:f,after:e.title?" ":`
|
|
654
|
+
`,...p.current()}))),h(),e.title&&(h=r.enter(`title${c}`),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),h()),u(),f}function rv(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function no(e){const n=e.codePointAt(0);return n===void 0?"":String.fromCodePoint(n)}function rs(e){const n=e.codePointAt(e.length-2);return n!==void 0&&n>65535?e.slice(-2):e.slice(-1)}function Yf(e){return"&#x"+e.toString(16).toUpperCase()+";"}function $h(e,n,r){const a=Jr(e),o=Jr(n);return a===void 0?o===void 0?r==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:a===1?o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:o===void 0?{inside:!1,outside:!1}:o===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function iv(e){if(e.charCodeAt(0)!==60)return;const n=e.charCodeAt(1);if(n===33){const h=e.charCodeAt(2);return h===45?2:h===91?5:Bt(h)?4:void 0}if(n===63)return 3;const r=n===47,a=r?2:1;let o=a,c=e.charCodeAt(o);if(!Bt(c))return;for(;c===45||Ht(c);)c=e.charCodeAt(++o);const u=e.slice(a,o).toLowerCase();return!r&&c!==47&&Qu.includes(u)?1:If.includes(u)?6:7}const sv=new Map([["*",!1],["_",!0]]);function av(e,n,r){const a=new Set;for(const c of e){const u=r.get(c);if(u&&c.attention&&n.some(h=>h.attention===c.attention))for(const h of u.tokens)a.add(h.attention)}const o=[];for(const c of e)c.attention&&a.delete(c.attention)&&o.push(c.attention);return o.reverse(),o}function Xf(e,n,r){const a=[],o=new Map,c=new Map;let u=0;for(;u<e.length;){if(!e[u].attention){u++;continue}const h=e[u].value.charAt(0),p=sv.get(h);let f=u+1;for(;f<e.length&&e[f].attention&&e[f].value.charAt(0)===h;)f++;const m=u?e[u-1].value:n,g=Jr(m.charCodeAt(m.length-1)),y=Jr((f<e.length?e[f].value:r).charCodeAt(0)),v=!y||y===2&&!!g,w=!g||g===2&&!!y,S={tokens:e.slice(u,f),markers:[],start:0,end:0,open:p?v&&(!!g||!w):v,close:p?w&&(!!y||!v):w,split:p!==void 0};for(const j of S.tokens){o.set(j,[...S.tokens]),c.set(j,S);let b=j.value.length;for(;b--;)S.markers.push(j)}S.end=S.markers.length,a.push(S),u=f}for(ov(a,o),u=-1;++u<e.length;){const h=o.get(e[u]);if(h)return{attention:av(e,h,c),index:u}}}function Fl(e,n){const r=e[n?0:e.length-1];if(!r||r.attention)return;const a=n?no(r.value):rs(r.value),o=Yf(a.codePointAt(0));if(n)r.value=o+r.value.slice(a.length);else{let c=r.value.slice(0,r.value.length-a.length),u=0;for(;c.charCodeAt(c.length-1-u)===92;)u++;u%2&&(c+="\\"),r.value=c+o}}function lv(e,n,r,a,o){for(const c of r.attention){const u=n.get(c)||c.sequences[0];for(const h of c.sequences){if(h===u)continue;const p=new Map(n);p.set(c,h);const f=O1(e,p,a,o),m=Xf(f,a,o);if(!m||m.index>r.index)return{chosen:p,mistake:m,tokens:f}}}}function ov(e,n){const r=new Map;for(const a of e){const o=a.tokens[0].value.charAt(0);let c=r.get(o);c||(c=[],r.set(o,c));let u=a.close?c.length:0;for(;u--&&a.start<a.end;){const h=c[u],p=h.end-h.start,f=a.end-a.start;if(a.split?(h.close||a.open)&&f%3&&!((p+f)%3):p!==h.markers.length||p!==f)continue;const m=a.split?p>1&&f>1?2:1:f,g=h.markers.slice(h.end-m,h.end),y=a.markers.slice(a.start,a.start+m),v=g[0],w=y[0];if(v===g[m-1]&&v.value.length===m&&w===y[m-1]&&w.value.length===m&&v.attention===w.attention)n.delete(v),n.delete(w);else{const S=[...new Set([...g,...y])];for(const j of S){const b=n.get(j);b&&b.push(...S)}}h.end-=m,a.start+=m,h.start===h.end&&c.splice(u,1),u=c.length}a.open&&a.start<a.end&&c.push(a)}}function cv(e,n,r){if(n.length===0)throw new Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(r.length===0)throw new Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(const o of r)if(!Number.isSafeInteger(o)||o<1)throw new Error("Cannot serialize `"+e+"` as attention with `"+o+"` as size, expected positive integer");const a=[];for(const o of n){if(o.length!==1)throw new Error("Cannot serialize `"+e+"` as attention with `"+o+"` as marker, expected a single ascii character");if(!Nf(o.charCodeAt(0)))throw new Error("Cannot serialize `"+e+"` as attention with `"+o+"` as marker, expected ascii punctuation");for(const c of r)a.push(o.repeat(c))}return a}function uv(e,n,r){const a=n.indexStack,o=e.children||[],c=[];let u=-1,h=r.before;a.push(-1);let p=n.createTracker(r);for(;++u<o.length;){const f=o[u];let m;if(a[a.length-1]=u,u+1<o.length){let v=n.handle.handlers[o[u+1].type];v&&v.peek&&(v=v.peek),m=v?no(v(o[u+1],e,n,{before:"",after:"",...p.current()})):""}else m=r.after;const g=c[c.length-1];typeof g=="string"&&(h==="\r"||h===`
|
|
655
|
+
`)&&f.type==="html"&&iv(f.value)!==7&&(c[c.length-1]=g.replace(/(\r?\n|\r)$/," "),h=" ",p=n.createTracker(r),p.move(uo(c,r.before,r.after)));const y=n.handle.handlers[f.type];if(y&&y.attention){const v=$1(f,y.attention,n,p);c.push(v),h=rs(v.sequences[0])}else{const v=n.handle(f,e,n,{...p.current(),after:m,before:h});if(!v)continue;p.move(v),c.push(v),h=rs(v)}}return a.pop(),c}function $1(e,n,r,a){const{construct:o,markers:c,sizes:u}=n(e,r),h=cv(e.type,c,u),p=h[0],f=r.enter(o);a.move(p);const m=uv(e,r,{...a.current(),before:p,after:p});return a.move(uo(m,p,p)),a.move(p),f(),{children:m,sequences:h}}function O1(e,n,r,a){const o=[];let c,u=rs(r),h=-1;for(;++h<e.length;){const p=e[h];if(typeof p=="string"){const C={value:p,attention:void 0};c&&c===no(p)&&Fl([C],!0),c=void 0,o.push(C),C.value&&(u=rs(C.value));continue}const f=n.get(p)||p.sequences[0],m=f.charAt(0),g=e[h+1],y=u,v=no(g===void 0?a:typeof g=="string"?g:n.get(g)||g.sequences[0]),w=O1(p.children,n,f,f),S=w.length>0?w[0].value:"",j=$h(y.charCodeAt(y.length-1),S.charCodeAt(0),m);j.inside&&Fl(w,!0);const b=w.length>0?rs(w[w.length-1].value):"",P=$h(v.charCodeAt(0),b.charCodeAt(b.length-1),m);P.inside&&Fl(w,!1),j.outside&&y!==`
|
|
656
|
+
`&&y!=="\r"&&Fl(o,!1),P.outside&&(c=v),o.push({value:f,attention:p},...w,{value:f,attention:p}),u=f.charAt(f.length-1)}return o}function uo(e,n,r){let a=new Map;const o=O1(e,a,n,r);let c=o,u=Xf(c,n,r);for(;u;){const p=lv(e,a,u,n,r);if(!p){c=o;break}a=p.chosen,c=p.tokens,u=p.mistake}let h="";for(const p of c)h+=p.value;return h}B1.attention=Jf;B1.peek=dv;function B1(e,n,r,a){const o=r.enter("phrasing"),c=$1(e,Jf,r,r.createTracker(a)),u=uo([c],a.before,a.after);return o(),u}function Jf(e,n){return{construct:"emphasis",markers:rv(n)==="*"?["*","_"]:["_","*"],sizes:[1]}}function dv(e,n,r){return r.options.emphasis||"*"}function hv(e,n){let r=!1;return I1(e,function(a){if("value"in a&&/\r?\n|\r/.test(a.value)||a.type==="break")return r=!0,Vl}),!!((!e.depth||e.depth<3)&&E1(e)&&(n.options.setext||r))}function pv(e,n,r,a){const o=Math.max(Math.min(6,e.depth||1),1),c=r.createTracker(a);if(hv(e,r)){const g=r.enter("headingSetext"),y=r.enter("phrasing"),v=r.containerPhrasing(e,{...c.current(),before:`
|
|
657
|
+
`,after:`
|
|
658
|
+
`});return y(),g(),v+`
|
|
659
|
+
`+(o===1?"=":"-").repeat(v.length-(Math.max(v.lastIndexOf("\r"),v.lastIndexOf(`
|
|
660
|
+
`))+1))}const u="#".repeat(o),h=r.enter("headingAtx"),p=r.enter("phrasing");c.move(u+" ");let f=r.containerPhrasing(e,{before:"# ",after:`
|
|
661
|
+
`,...c.current()});const m=f.charCodeAt(0);return(m===9||m===32)&&(f=Yf(m)+f.slice(1)),f=f?u+" "+f:u,r.options.closeAtx&&(f+=" "+u),p(),h(),f}e3.peek=fv;function e3(e){return e.value||""}function fv(){return"<"}t3.peek=mv;function t3(e,n,r,a){const o=F1(r),c=o==='"'?"Quote":"Apostrophe",u=r.enter("image");let h=r.enter("label");const p=r.createTracker(a);let f=p.move("![");return f+=p.move(r.safe(e.alt,{before:f,after:"]",...p.current()})),f+=p.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=r.enter("destinationLiteral"),f+=p.move("<"),f+=p.move(r.safe(e.url,{before:f,after:">",...p.current()})),f+=p.move(">")):(h=r.enter("destinationRaw"),f+=p.move(r.safe(e.url,{before:f,after:e.title?" ":")",...p.current()}))),h(),e.title&&(h=r.enter(`title${c}`),f+=p.move(" "+o),f+=p.move(r.safe(e.title,{before:f,after:o,...p.current()})),f+=p.move(o),h()),f+=p.move(")"),u(),f}function mv(){return"!"}n3.peek=gv;function n3(e,n,r,a){const o=e.referenceType,c=r.enter("imageReference");let u=r.enter("label");const h=r.createTracker(a);let p=h.move("![");const f=r.safe(e.alt,{before:p,after:"]",...h.current()});p+=h.move(f+"]["),u();const m=r.stack;r.stack=m.filter(function(y){return y!=="phrasing"}),u=r.enter("reference");const g=r.safe(r.associationId(e),{before:p,after:"]",...h.current()});return u(),r.stack=m,c(),o==="full"||!f||f!==g?p+=h.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function gv(){return"!"}r3.peek=xv;function r3(e,n,r){let a=e.value||"",o="`",c=-1;for(;new RegExp("(^|[^`])"+o+"([^`]|$)").test(a);)o+="`";for(/[^\n\r ]/.test(a)&&(/^[\n\r ]/.test(a)&&/[\n\r ]$/.test(a)||/^`|`$/.test(a))&&(a=" "+a+" ");++c<r.unsafe.length;){const u=r.unsafe[c],h=r.compilePattern(u);if(!u.atBreak)continue;let p;for(;p=h.exec(a);){let f=p.index;a.charCodeAt(f)===10&&a.charCodeAt(f-1)===13&&f--,a=a.slice(0,f)+" "+a.slice(p.index+1)}}return o+a+o}function xv(){return"`"}function i3(e,n){const r=E1(e);return!!(!n.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))}s3.peek=yv;function s3(e,n,r,a){const o=F1(r),c=o==='"'?"Quote":"Apostrophe",u=r.createTracker(a);if(i3(e,r)){const w=r.stack;r.stack=w.filter(function(b){return b!=="phrasing"});const S=r.enter("autolink");let j=u.move("<");return j+=u.move(r.containerPhrasing(e,{before:j,after:">",...u.current()})),j+=u.move(">"),S(),r.stack=w,j}const h=r.enter("link");let p=r.enter("label"),f=u.move("[");const m=r.containerPhrasing(e,{before:f,after:"](",...u.current()});f+=u.move(m),p(),f+=u.move("](");const g=/[\0- \u007F]/.test(e.url),y=a.before.charAt(a.before.length-1);let v=e.title||void 0;if(!v&&!g&&(y===`
|
|
662
|
+
`||y==="\r")){let w=0;for(;w<m.length&&m.charCodeAt(w)!==93;)w+=m.charCodeAt(w)===92?2:1;m.charCodeAt(w+1)===58&&(v="")}return!e.url&&typeof v=="string"||g?(p=r.enter("destinationLiteral"),f+=u.move("<"),f+=u.move(r.safe(e.url,{before:f,after:">",...u.current()})),f+=u.move(">")):(p=r.enter("destinationRaw"),f+=u.move(r.safe(e.url,{before:f,after:typeof v=="string"?" ":")",...u.current()}))),p(),typeof v=="string"&&(p=r.enter(`title${c}`),f+=u.move(" "+o),f+=u.move(r.safe(v,{before:f,after:o,...u.current()})),f+=u.move(o),p()),f+=u.move(")"),h(),f}function yv(e,n,r){return i3(e,r)?"<":"["}a3.peek=vv;function a3(e,n,r,a){const o=e.referenceType,c=r.enter("linkReference");let u=r.enter("label");const h=r.createTracker(a);let p=h.move("[");const f=r.containerPhrasing(e,{before:p,after:"]",...h.current()});p+=h.move(f+"]["),u();const m=r.stack;r.stack=m.filter(function(y){return y!=="phrasing"}),u=r.enter("reference");const g=r.safe(r.associationId(e),{before:p,after:"]",...h.current()});return u(),r.stack=m,c(),o==="full"||!f||f!==g?p+=h.move(g+"]"):o==="shortcut"?p=p.slice(0,-1):p+=h.move("]"),p}function vv(){return"["}function H1(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function kv(e){const n=H1(e),r=e.options.bulletOther;if(!r)return n==="*"?"-":"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(r===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+r+"`) to be different");return r}function wv(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function l3(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function jv(e,n,r,a){const o=r.enter("list"),c=r.bulletCurrent;let u=e.ordered?wv(r):H1(r);const h=e.ordered?u==="."?")":".":kv(r);let p=n&&r.bulletLastUsed?u===r.bulletLastUsed:!1;if(!e.ordered){const m=e.children?e.children[0]:void 0;if((u==="*"||u==="-")&&m&&(!m.children||!m.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&&(p=!0),l3(r)===u&&m){let g=-1;for(;++g<e.children.length;){const y=e.children[g];if(y&&y.type==="listItem"&&y.children&&y.children[0]&&y.children[0].type==="thematicBreak"){p=!0;break}}}}p&&(u=h),r.bulletCurrent=u;const f=r.containerFlow(e,a);return r.bulletLastUsed=u,r.bulletCurrent=c,o(),f}function bv(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function _v(e,n,r,a){const o=bv(r);let c=r.bulletCurrent||H1(r);n&&n.type==="list"&&n.ordered&&(c=(typeof n.start=="number"&&n.start>-1?n.start:1)+(r.options.incrementListMarker===!1?0:n.children.indexOf(e))+c);let u=c.length+1;(o==="tab"||o==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(u=Math.ceil(u/4)*4);const h=r.createTracker(a);h.move(c+" ".repeat(u-c.length)),h.shift(u);const p=r.enter("listItem"),f=r.indentLines(r.containerFlow(e,h.current()),m);return p(),f;function m(g,y,v){return y?(v?"":" ".repeat(u))+g:(v?c:c+" ".repeat(u-c.length))+g}}function Sv(e,n,r,a){const o=r.enter("paragraph"),c=r.enter("phrasing"),u=r.containerPhrasing(e,a);return c(),o(),u}function Nv(e,n,r,a){if(!e.children.some(function(h){return Ky(h)}))return r.containerFlow(e,a);const c=r.enter("phrasing"),u=r.containerPhrasing(e,a);return c(),u}function Cv(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}U1.attention=o3;U1.peek=Ev;function U1(e,n,r,a){const o=r.enter("phrasing"),c=$1(e,o3,r,r.createTracker(a)),u=uo([c],a.before,a.after);return o(),u}function o3(e,n){return{construct:"strong",markers:Cv(n)==="*"?["*","_"]:["_","*"],sizes:[2]}}function Ev(e,n,r){return r.options.strong||"*"}function zv(e,n,r,a){const o=n?n.children:[],c=r.indexStack[r.indexStack.length-1];return r.safe(e.value,{...a,afterNode:o[c+1],beforeNode:o[c-1]})}function Mv(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Av(e,n,r){const a=(l3(r)+(r.options.ruleSpaces?" ":"")).repeat(Mv(r));return r.options.ruleSpaces?a.slice(0,-1):a}const c3={blockquote:Qy,break:Fh,code:ev,definition:nv,emphasis:B1,hardBreak:Fh,heading:pv,html:e3,image:t3,imageReference:n3,inlineCode:r3,link:s3,linkReference:a3,list:jv,listItem:_v,paragraph:Sv,root:Nv,strong:U1,text:zv,thematicBreak:Av};function Pv(){return{enter:{table:Tv,tableData:Oh,tableHeader:Oh,tableRow:Iv},exit:{codeText:Rv,table:Lv,tableData:_u,tableHeader:_u,tableRow:_u}}}function Tv(e){const n=e._align;this.enter({type:"table",align:n.map(function(r){return r==="none"?null:r}),children:[]},e),this.data.inTable=!0}function Lv(e){this.exit(e),this.data.inTable=void 0}function Iv(e){this.enter({type:"tableRow",children:[]},e)}function _u(e){this.exit(e)}function Oh(e){this.enter({type:"tableCell",children:[]},e)}function Rv(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Dv));const r=this.stack[this.stack.length-1];r.type,r.value=n,this.exit(e)}function Dv(e,n){return n==="|"?n:e}function Fv(e){const n=e||{},r=n.tableCellPadding,a=n.tablePipeAlign,o=n.stringLength,c=r?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
663
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:y,table:u,tableCell:p,tableRow:h}};function u(v,w,S,j){return f(m(v,S,j),v.align)}function h(v,w,S,j){const b=g(v,S,j),P=f([b]);return P.slice(0,P.indexOf(`
|
|
664
|
+
`))}function p(v,w,S,j){const b=S.enter("tableCell"),P=S.enter("phrasing"),C=S.containerPhrasing(v,{...j,before:c,after:c});return P(),b(),C}function f(v,w){return Wy(v,{align:w,alignDelimiters:a,padding:r,stringLength:o})}function m(v,w,S){const j=v.children;let b=-1;const P=[],C=w.enter("table");for(;++b<j.length;)P[b]=g(j[b],w,S);return C(),P}function g(v,w,S){const j=v.children;let b=-1;const P=[],C=w.enter("tableRow");for(;++b<j.length;)P[b]=p(j[b],v,w,S);return C(),P}function y(v,w,S){let j=c3.inlineCode(v,w,S);return S.stack.includes("tableCell")&&(j=j.replace(/\|/g,"\\$&")),j}}function $v(){return{exit:{taskListCheckValueChecked:Bh,taskListCheckValueUnchecked:Bh,paragraph:Bv}}}function Ov(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Hv}}}function Bh(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Bv(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const r=this.stack[this.stack.length-1];r.type;const a=r.children[0];if(a&&a.type==="text"){const o=n.children;let c=-1,u;for(;++c<o.length;){const h=o[c];if(h.type==="paragraph"){u=h;break}}u===r&&(a.value=a.value.slice(1),a.value.length===0?r.children.shift():r.position&&a.position&&typeof a.position.start.offset=="number"&&(a.position.start.column++,a.position.start.offset++,r.position.start=Object.assign({},a.position.start)))}}this.exit(e)}function Hv(e,n,r,a){const o=e.children[0],c=typeof e.checked=="boolean"&&o&&o.type==="paragraph",u="["+(e.checked?"x":" ")+"] ",h=r.createTracker(a);c&&h.move(u);let p=c3.listItem(e,n,r,{...a,...h.current()});return c&&(p=p.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,f)),p;function f(m){return m+u}}function Uv(){return[py(),Ly(),Fy(),Pv(),$v()]}function Vv(e){return{extensions:[fy(),Iy(e),$y(),Fv(e),Ov()]}}const Wv={tokenize:Yv,partial:!0},u3={tokenize:Xv,partial:!0},d3={tokenize:Jv,partial:!0},h3={tokenize:ek,partial:!0},qv={tokenize:tk,partial:!0},p3={name:"wwwAutolink",tokenize:Zv,previous:m3},f3={name:"protocolAutolink",tokenize:Gv,previous:g3},Sr={name:"emailAutolink",tokenize:Qv,previous:x3},mr={};function Kv(){return{text:mr}}let gi=48;for(;gi<123;)mr[gi]=Sr,gi++,gi===58?gi=65:gi===91&&(gi=97);mr[43]=Sr;mr[45]=Sr;mr[46]=Sr;mr[95]=Sr;mr[72]=[Sr,f3];mr[104]=[Sr,f3];mr[87]=[Sr,p3];mr[119]=[Sr,p3];function Qv(e,n,r){const a=this;let o,c;return u;function u(g){return!t1(g)||!x3.call(a,a.previous)||V1(a.events)?r(g):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),h(g))}function h(g){return t1(g)?(e.consume(g),h):g===64?(e.consume(g),p):r(g)}function p(g){return g===46?e.check(qv,m,f)(g):g===45||g===95||Ht(g)?(c=!0,e.consume(g),p):m(g)}function f(g){return e.consume(g),o=!0,p}function m(g){return c&&o&&Bt(a.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(g)):r(g)}}function Zv(e,n,r){const a=this;return o;function o(u){return u!==87&&u!==119||!m3.call(a,a.previous)||V1(a.events)?r(u):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Wv,e.attempt(u3,e.attempt(d3,c),r),r)(u))}function c(u){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(u)}}function Gv(e,n,r){const a=this;let o="",c=!1;return u;function u(g){return(g===72||g===104)&&g3.call(a,a.previous)&&!V1(a.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(g),e.consume(g),h):r(g)}function h(g){if(Bt(g)&&o.length<5)return o+=String.fromCodePoint(g),e.consume(g),h;if(g===58){const y=o.toLowerCase();if(y==="http"||y==="https")return e.consume(g),p}return r(g)}function p(g){return g===47?(e.consume(g),c?f:(c=!0,p)):r(g)}function f(g){return g===null||Xl(g)||at(g)||Ci(g)||so(g)?r(g):e.attempt(u3,e.attempt(d3,m),r)(g)}function m(g){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(g)}}function Yv(e,n,r){let a=0;return o;function o(u){return(u===87||u===119)&&a<3?(a++,e.consume(u),o):u===46&&a===3?(e.consume(u),c):r(u)}function c(u){return u===null?r(u):n(u)}}function Xv(e,n,r){let a,o,c;return u;function u(f){return f===46||f===95?e.check(h3,p,h)(f):f===null||at(f)||Ci(f)||f!==45&&so(f)?p(f):(c=!0,e.consume(f),u)}function h(f){return f===95?a=!0:(o=a,a=void 0),e.consume(f),u}function p(f){return o||a||!c?r(f):n(f)}}function Jv(e,n){let r=0,a=0;return o;function o(u){return u===40?(r++,e.consume(u),o):u===41&&a<r?c(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(h3,n,c)(u):u===null||at(u)||Ci(u)?n(u):(e.consume(u),o)}function c(u){return u===41&&a++,e.consume(u),o}}function ek(e,n,r){return a;function a(h){return h===33||h===34||h===39||h===41||h===42||h===44||h===46||h===58||h===59||h===63||h===95||h===126?(e.consume(h),a):h===38?(e.consume(h),c):h===93?(e.consume(h),o):h===60||h===null||at(h)||Ci(h)?n(h):r(h)}function o(h){return h===null||h===40||h===91||at(h)||Ci(h)?n(h):a(h)}function c(h){return Bt(h)?u(h):r(h)}function u(h){return h===59?(e.consume(h),a):Bt(h)?(e.consume(h),u):r(h)}}function tk(e,n,r){return a;function a(c){return e.consume(c),o}function o(c){return Ht(c)?r(c):n(c)}}function m3(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||at(e)}function g3(e){return!Bt(e)}function x3(e){return!(e===47||t1(e))}function t1(e){return e===43||e===45||e===46||e===95||Ht(e)}function V1(e){let n=e.length,r=!1;for(;n--;){const a=e[n][1];if((a.type==="labelLink"||a.type==="labelImage")&&!a._balanced){r=!0;break}if(a._gfmAutolinkLiteralWalkedInto){r=!1;break}}return e.length>0&&!r&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),r}const nk={tokenize:uk,partial:!0};function rk(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lk,continuation:{tokenize:ok},exit:ck}},text:{91:{name:"gfmFootnoteCall",tokenize:ak},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:ik,resolveTo:sk}}}}function ik(e,n,r){const a=this;let o=a.events.length;const c=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let u;for(;o--;){const p=a.events[o][1];if(p.type==="labelImage"){u=p;break}if(p.type==="gfmFootnoteCall"||p.type==="labelLink"||p.type==="label"||p.type==="image"||p.type==="link")break}return h;function h(p){if(!u||!u._balanced)return r(p);const f=Yn(a.sliceSerialize({start:u.end,end:a.now()}));return f.codePointAt(0)!==94||!c.includes(f.slice(1))?r(p):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),n(p))}}function sk(e,n){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 a={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const c={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},u={type:"chunkString",contentType:"string",start:Object.assign({},c.start),end:Object.assign({},c.end)},h=[e[r+1],e[r+2],["enter",a,n],e[r+3],e[r+4],["enter",o,n],["exit",o,n],["enter",c,n],["enter",u,n],["exit",u,n],["exit",c,n],e[e.length-2],e[e.length-1],["exit",a,n]];return e.splice(r,e.length-r+1,...h),e}function ak(e,n,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c=0,u;return h;function h(g){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),p}function p(g){return g!==94?r(g):(e.enter("gfmFootnoteCallMarker"),e.consume(g),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",f)}function f(g){if(c>999||g===93&&!u||g===null||g===91||at(g))return r(g);if(g===93){e.exit("chunkString");const y=e.exit("gfmFootnoteCallString");return o.includes(Yn(a.sliceSerialize(y)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(g),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):r(g)}return at(g)||(u=!0),c++,e.consume(g),g===92?m:f}function m(g){return g===91||g===92||g===93?(e.consume(g),c++,f):f(g)}}function lk(e,n,r){const a=this,o=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);let c,u=0,h;return p;function p(w){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),f}function f(w){return w===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",m):r(w)}function m(w){if(u>999||w===93&&!h||w===null||w===91||at(w))return r(w);if(w===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return c=Yn(a.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(w),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),y}return at(w)||(h=!0),u++,e.consume(w),w===92?g:m}function g(w){return w===91||w===92||w===93?(e.consume(w),u++,m):m(w)}function y(w){return w===58?(e.enter("definitionMarker"),e.consume(w),e.exit("definitionMarker"),o.includes(c)||o.push(c),et(e,v,"gfmFootnoteDefinitionWhitespace")):r(w)}function v(w){return n(w)}}function ok(e,n,r){return e.check(ga,n,e.attempt(nk,n,r))}function ck(e){e.exit("gfmFootnoteDefinition")}function uk(e,n,r){const a=this;return et(e,o,"gfmFootnoteDefinitionIndent",5);function o(c){const u=a.events[a.events.length-1];return u&&u[1].type==="gfmFootnoteDefinitionIndent"&&u[2].sliceSerialize(u[1],!0).length===4?n(c):r(c)}}function dk(e){let r=(e||{}).singleTilde;const a={name:"strikethrough",tokenize:c,resolveAll:o};return r==null&&(r=!0),{text:{126:a},insideSpan:{null:[a]},attentionMarkers:{null:[126]}};function o(u,h){let p=-1;for(;++p<u.length;)if(u[p][0]==="enter"&&u[p][1].type==="strikethroughSequenceTemporary"&&u[p][1]._close){let f=p;for(;f--;)if(u[f][0]==="exit"&&u[f][1].type==="strikethroughSequenceTemporary"&&u[f][1]._open&&u[p][1].end.offset-u[p][1].start.offset===u[f][1].end.offset-u[f][1].start.offset){u[p][1].type="strikethroughSequence",u[f][1].type="strikethroughSequence";const m={type:"strikethrough",start:Object.assign({},u[f][1].start),end:Object.assign({},u[p][1].end)},g={type:"strikethroughText",start:Object.assign({},u[f][1].end),end:Object.assign({},u[p][1].start)},y=[["enter",m,h],["enter",u[f][1],h],["exit",u[f][1],h],["enter",g,h]],v=h.parser.constructs.insideSpan.null;v&&Gn(y,y.length,0,ao(v,u.slice(f+1,p),h)),Gn(y,y.length,0,[["exit",g,h],["enter",u[p][1],h],["exit",u[p][1],h],["exit",m,h]]),Gn(u,f-1,p-f+3,y),p=f+y.length-2;break}}for(p=-1;++p<u.length;)u[p][1].type==="strikethroughSequenceTemporary"&&(u[p][1].type="data");return u}function c(u,h,p){const f=this.previous,m=this.events;let g=0;return y;function y(w){return f===126&&m[m.length-1][1].type!=="characterEscape"?p(w):(u.enter("strikethroughSequenceTemporary"),v(w))}function v(w){const S=Jr(f);if(w===126)return g>1?p(w):(u.consume(w),g++,v);if(g<2&&!r)return p(w);const j=u.exit("strikethroughSequenceTemporary"),b=Jr(w);return j._open=!b||b===2&&!!S,j._close=!S||S===2&&!!b,h(w)}}}class hk{constructor(){this.map=[],this.index=new Map}add(n,r,a){pk(this,n,r,a)}consume(n){if(this.map.sort(function(c,u){return c[0]-u[0]}),this.map.length===0)return;let r=this.map.length;const a=[];for(;r>0;)r-=1,a.push(n.slice(this.map[r][0]+this.map[r][1]),this.map[r][2]),n.length=this.map[r][0];a.push(n.slice()),n.length=0;let o=a.pop();for(;o;){for(const c of o)n.push(c);o=a.pop()}this.map.length=0,this.index.clear()}}function pk(e,n,r,a){if(r===0&&a.length===0)return;const o=e.index.get(n);if(o){o[1]+=r,o[2].push(...a);return}const c=[n,r,a];e.map.push(c),e.index.set(n,c)}function fk(e,n){let r=!1;const a=[];for(;n<e.length;){const o=e[n];if(r){if(o[0]==="enter")o[1].type==="tableContent"&&a.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(o[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const c=a.length-1;a[c]=a[c]==="left"?"center":"right"}}else if(o[1].type==="tableDelimiterRow")break}else o[0]==="enter"&&o[1].type==="tableDelimiterRow"&&(r=!0);n+=1}return a}function mk(){return{flow:{null:{name:"table",tokenize:gk,resolveAll:xk}}}}function gk(e,n,r){const a=this;let o=0,c=0,u;return h;function h(D){let I=a.events.length-1;for(;I>-1;){const{type:Y}=a.events[I][1];if(Y==="lineEnding"||Y==="linePrefix")I--;else break}const B=I>-1?a.events[I][1].type:null,H=B==="tableHead"||B==="tableRow"?N:p;return H===N&&a.parser.lazy[a.now().line]?r(D):H(D)}function p(D){return e.enter("tableHead"),e.enter("tableRow"),f(D)}function f(D){return D===124||(u=!0,c+=1),m(D)}function m(D){return D===null?r(D):Le(D)?c>1?(c=0,a.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),v):r(D):We(D)?et(e,m,"whitespace")(D):(c+=1,u&&(u=!1,o+=1),D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),u=!0,m):(e.enter("data"),g(D)))}function g(D){return D===null||D===124||at(D)?(e.exit("data"),m(D)):(e.consume(D),D===92?y:g)}function y(D){return D===92||D===124?(e.consume(D),g):g(D)}function v(D){return a.interrupt=!1,a.parser.lazy[a.now().line]?r(D):(e.enter("tableDelimiterRow"),u=!1,We(D)?et(e,w,"linePrefix",a.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):w(D))}function w(D){return D===45||D===58?j(D):D===124?(u=!0,e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),S):z(D)}function S(D){return We(D)?et(e,j,"whitespace")(D):j(D)}function j(D){return D===58?(c+=1,u=!0,e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),b):D===45?(c+=1,b(D)):D===null||Le(D)?M(D):z(D)}function b(D){return D===45?(e.enter("tableDelimiterFiller"),P(D)):z(D)}function P(D){return D===45?(e.consume(D),P):D===58?(u=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(D),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(D))}function C(D){return We(D)?et(e,M,"whitespace")(D):M(D)}function M(D){return D===124?w(D):D===null||Le(D)?!u||o!==c?z(D):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(D)):z(D)}function z(D){return r(D)}function N(D){return e.enter("tableRow"),L(D)}function L(D){return D===124?(e.enter("tableCellDivider"),e.consume(D),e.exit("tableCellDivider"),L):D===null||Le(D)?(e.exit("tableRow"),n(D)):We(D)?et(e,L,"whitespace")(D):(e.enter("data"),V(D))}function V(D){return D===null||D===124||at(D)?(e.exit("data"),L(D)):(e.consume(D),D===92?K:V)}function K(D){return D===92||D===124?(e.consume(D),V):V(D)}}function xk(e,n){let r=-1,a=!0,o=0,c=[0,0,0,0],u=[0,0,0,0],h=!1,p=0,f,m,g;const y=new hk;for(;++r<e.length;){const v=e[r],w=v[1];v[0]==="enter"?w.type==="tableHead"?(h=!1,p!==0&&(Hh(y,n,p,f,m),m=void 0,p=0),f={type:"table",start:Object.assign({},w.start),end:Object.assign({},w.end)},y.add(r,0,[["enter",f,n]])):w.type==="tableRow"||w.type==="tableDelimiterRow"?(a=!0,g=void 0,c=[0,0,0,0],u=[0,r+1,0,0],h&&(h=!1,m={type:"tableBody",start:Object.assign({},w.start),end:Object.assign({},w.end)},y.add(r,0,[["enter",m,n]])),o=w.type==="tableDelimiterRow"?2:m?3:1):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")?(a=!1,u[2]===0&&(c[1]!==0&&(u[0]=u[1],g=$l(y,n,c,o,void 0,g),c=[0,0,0,0]),u[2]=r)):w.type==="tableCellDivider"&&(a?a=!1:(c[1]!==0&&(u[0]=u[1],g=$l(y,n,c,o,void 0,g)),c=u,u=[c[1],r,0,0])):w.type==="tableHead"?(h=!0,p=r):w.type==="tableRow"||w.type==="tableDelimiterRow"?(p=r,c[1]!==0?(u[0]=u[1],g=$l(y,n,c,o,r,g)):u[1]!==0&&(g=$l(y,n,u,o,r,g)),o=0):o&&(w.type==="data"||w.type==="tableDelimiterMarker"||w.type==="tableDelimiterFiller")&&(u[3]=r)}for(p!==0&&Hh(y,n,p,f,m),y.consume(n.events),r=-1;++r<n.events.length;){const v=n.events[r];v[0]==="enter"&&v[1].type==="table"&&(v[1]._align=fk(n.events,r))}return e}function $l(e,n,r,a,o,c){const u=a===1?"tableHeader":a===2?"tableDelimiter":"tableData",h="tableContent";r[0]!==0&&(c.end=Object.assign({},es(n.events,r[0])),e.add(r[0],0,[["exit",c,n]]));const p=es(n.events,r[1]);if(c={type:u,start:Object.assign({},p),end:Object.assign({},p)},e.add(r[1],0,[["enter",c,n]]),r[2]!==0){const f=es(n.events,r[2]),m=es(n.events,r[3]),g={type:h,start:Object.assign({},f),end:Object.assign({},m)};if(e.add(r[2],0,[["enter",g,n]]),a!==2){const y=n.events[r[2]],v=n.events[r[3]];if(y[1].end=Object.assign({},v[1].end),y[1].type="chunkText",y[1].contentType="text",r[3]>r[2]+1){const w=r[2]+1,S=r[3]-r[2]-1;e.add(w,S,[])}}e.add(r[3]+1,0,[["exit",g,n]])}return o!==void 0&&(c.end=Object.assign({},es(n.events,o)),e.add(o,0,[["exit",c,n]]),c=void 0),c}function Hh(e,n,r,a,o){const c=[],u=es(n.events,r);o&&(o.end=Object.assign({},u),c.push(["exit",o,n])),a.end=Object.assign({},u),c.push(["exit",a,n]),e.add(r+1,0,c)}function es(e,n){const r=e[n],a=r[0]==="enter"?"start":"end";return r[1][a]}const yk={name:"tasklistCheck",tokenize:kk};function vk(){return{text:{91:yk}}}function kk(e,n,r){const a=this;return o;function o(p){return a.previous!==null||!a._gfmTasklistFirstContentOfListItem?r(p):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),c)}function c(p){return at(p)?(e.enter("taskListCheckValueUnchecked"),e.consume(p),e.exit("taskListCheckValueUnchecked"),u):p===88||p===120?(e.enter("taskListCheckValueChecked"),e.consume(p),e.exit("taskListCheckValueChecked"),u):r(p)}function u(p){return p===93?(e.enter("taskListCheckMarker"),e.consume(p),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),h):r(p)}function h(p){return Le(p)?n(p):We(p)?e.check({tokenize:wk},n,r)(p):r(p)}}function wk(e,n,r){return et(e,a,"whitespace");function a(o){return o===null?r(o):n(o)}}function jk(e){return _f([Kv(),rk(),dk(e),mk(),vk()])}const bk={};function _k(e){const n=this,r=e||bk,a=n.data(),o=a.micromarkExtensions||(a.micromarkExtensions=[]),c=a.fromMarkdownExtensions||(a.fromMarkdownExtensions=[]),u=a.toMarkdownExtensions||(a.toMarkdownExtensions=[]);o.push(jk(r)),c.push(Uv()),u.push(Vv(r))}const Uh=[_k],Sk=["strong","em","del","code"],Nk={a:({href:e,children:n})=>i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:n}),img:({src:e,alt:n})=>i.jsx("a",{href:e,target:"_blank",rel:"noreferrer",children:n||e})};function Su({text:e,inline:n=!1}){return n?i.jsx(Lh,{remarkPlugins:Uh,allowedElements:Sk,unwrapDisallowed:!0,children:e}):i.jsx("div",{className:"agent-chat__text agent-chat__markdown",children:i.jsx(Lh,{remarkPlugins:Uh,components:Nk,children:e})})}const xi=e=>e==="codex"?"Codex":"Claude Code";function Ck(e){const n=e.trimEnd().split(`
|
|
665
|
+
`);let r=n.length-1;for(;r>=0&&!n[r].trim();)r--;if(r<1)return null;const a=/^\s*(?:(\d+|[a-zA-Z])[.)]\s+|[-•]\s+)(.+)/,o=[];let c=r;for(;c>=0&&a.test(n[c]);){const h=n[c].match(a),p=h[1]?`${h[1]}. `:"";o.unshift({label:h[2].trim(),value:`${p}${h[2].trim()}`}),c--}if(o.length<2)return null;const u=n.slice(0,c+1).join(`
|
|
666
|
+
`).trimEnd();return u.endsWith("?")?{preamble:u,choices:o}:null}function Ek({projectId:e,projectName:n,available:r,pro:a=!1,selectedSession:o,onSelectSession:c,condensed:u,onCondensedChange:h}){var en,Vt,Ft;const[p,f]=_.useState(null),[m,g]=_.useState(""),[y,v]=_.useState(""),[w,S]=_.useState([]),[j,b]=_.useState({model:"",mode:"agent"}),[P,C]=_.useState(!1),M=_.useRef(null),z=_.useRef(new Map),[N,L]=_.useState(a),[V,K]=_.useState(!a),D=u??V,I=a?!D:N,B=_.useCallback(se=>{K(se),L(!se),h==null||h(se)},[h]),[H,Y]=_.useState(null),[ne,ie]=_.useState(""),[re,$]=_.useState(!1),[G,A]=_.useState(!1),[F,W]=_.useState(""),[T,ve]=_.useState(""),te=_.useRef(!0),le=_.useRef(0),je=_.useRef(!1),we=_.useRef(null),ce=_.useRef(!0),ge=_.useRef(null);_.useEffect(()=>{o!==void 0&&(g(o),W(""),ce.current=!0)},[o]),_.useEffect(()=>{m&&(c==null||c(m))},[m,c]),_.useEffect(()=>{te.current=!0;let se=!1,Be;const Ie=async()=>{const Ve=++le.current;try{if(r&&!je.current){const Fe=await Ue.chat(e,a);!se&&Ve===le.current&&(f(Fe),ve(""),g(Xe=>{if(Xe)return Xe;const vt=Fe.sessions.filter(me=>me.status==="running"||me.status==="starting");if(vt.length===1)return vt[0].id;if(vt.length>1)return"";const Q=Fe.sessions.filter(me=>me.status!=="error"||me.resumable).at(-1);if(Q)return Q.id;const oe=[...new Set(Fe.observed.filter(me=>me.active).map(me=>me.agent))];return oe.length===1&&Fe.available.some(me=>me.agent===oe[0])?`new:${oe[0]}`:!oe.length&&Fe.available.length===1?`new:${Fe.available[0].agent}`:""}))}}catch(Fe){!se&&Ve===le.current&&ve(ft(Fe))}se||(Be=setTimeout(()=>void Ie(),1200))};return Ie(),()=>{se=!0,te.current=!1,clearTimeout(Be),++le.current}},[e,r,a]);const ee=p==null?void 0:p.sessions.find(se=>se.id===m);_.useEffect(()=>{b(A7((ee==null?void 0:ee.agent)??(m.startsWith("new:")?m.slice(4):null),ee==null?void 0:ee.options))},[m,ee==null?void 0:ee.id]),_.useEffect(()=>{ee!=null&&ee.approvals.length&&B(!1)},[ee==null?void 0:ee.approvals.length,B]);const Ae=(ee==null?void 0:ee.agent)??(m.startsWith("new:")?m.slice(4):null),Ze=(ee==null?void 0:ee.status)==="running"||(ee==null?void 0:ee.status)==="starting",mt=(p==null?void 0:p.observed.filter(se=>se.active&&se.agent===Ae))??[],{usage:tt,refresh:xt,retry:Xt}=U7(e,a,Ae,Ze),zn=cf(((en=tt==null?void 0:tt.data)==null?void 0:en.windows)??[]),Jt=I7(ee==null?void 0:ee.error)?ee==null?void 0:ee.error:void 0,[Lt,rt]=_.useState(!1);_.useEffect(()=>{Jt&&xt()},[Jt]);const Et=(ee==null?void 0:ee.messages)??[],It=(Vt=Et.at(-1))==null?void 0:Vt.text;_.useEffect(()=>{I&&ce.current&&we.current&&(we.current.scrollTop=we.current.scrollHeight)},[I,Et.length,It,m]);async function Rt(se){if(!je.current){je.current=!0,++le.current,$(!0),W("");try{const Be=await se();return te.current&&(++le.current,f(Be)),Be}catch(Be){te.current&&W(ft(Be))}finally{je.current=!1,te.current&&$(!1)}}}async function Dt(se){if(!(P||re)){C(!0),W(""),se.length>5-w.length&&W("You can attach up to 5 images per message.");try{const Be=await Promise.allSettled(se.slice(0,5-w.length).map(C7));if(!te.current)return;S(Ie=>[...Ie,...Be.flatMap(Ve=>Ve.status==="fulfilled"?[Ve.value]:[])].slice(0,5)),Be.some(Ie=>Ie.status==="rejected")&&W("That image could not be read. Try a PNG or JPEG.")}finally{te.current&&C(!1)}}}function ln(se){var Ve;const Be=(Ve=se.clipboardData)==null?void 0:Ve.items;if(!Be)return;const Ie=[];for(const Fe of Be)if(Fe.type.startsWith("image/")){const Xe=Fe.getAsFile();Xe&&Ie.push(Xe)}Ie.length&&(se.preventDefault(),Dt(Ie))}async function J(){var vt;if(!y.trim()&&!w.length||!Ae||!r||re||P||Ze||G)return;rt(!1);const Be=y.trim()||(w.length?"(image attached)":""),Ie=w.length?[...w]:void 0;(((vt=ge.current)==null?void 0:vt.text)!==Be||ge.current.target!==m)&&(ge.current={text:Be,target:m,id:crypto.randomUUID()});const Ve=ge.current.id;Ie&&(z.current.set(Ve,Ie),z.current.size>10&&z.current.delete(z.current.keys().next().value)),A(!0);const Fe=await Rt(()=>Ue.sendChat({projectId:e,agent:Ae,sessionId:ee==null?void 0:ee.id,text:Be,images:Ie,options:j,requestId:Ve},a));if(te.current&&A(!1),!te.current||!Fe)return;const Xe=Fe.sessions.find(Q=>Q.messages.some(oe=>oe.id===Ve));Xe&&(g(Xe.id),v(""),S([]),ge.current=null,L(!0),ce.current=!0)}async function he(se){if(!Ae||!r||re||Ze||G)return;rt(!1);const Be=crypto.randomUUID(),Ie=await Rt(()=>Ue.sendChat({projectId:e,agent:Ae,sessionId:ee==null?void 0:ee.id,text:se,options:j,requestId:Be},a));if(!te.current||!Ie)return;const Ve=Ie.sessions.find(Fe=>Fe.messages.some(Xe=>Xe.id===Be));Ve&&(g(Ve.id),ce.current=!0)}const Se=F||(Jt||ee==null?void 0:ee.error)||T||(p==null?void 0:p.storageError),ze=Ae&&!Lt&&(zn.length||Jt)?i.jsx(O7,{agent:Ae,plan:(Ft=tt==null?void 0:tt.data)==null?void 0:Ft.plan,reached:zn,message:Jt,onCheck:xt,onClose:()=>rt(!0)}):null,Qe=!a&&!N&&!D&&!(ee!=null&&ee.approvals.length)&&!Se&&!ze,Ke=i.jsx("button",{type:"button",className:"agent-chat__tool agent-chat__attach","aria-label":"Attach images",title:`Attach images (${w.length}/5)`,disabled:!r||re||P||w.length>=5,onClick:()=>{var se;return(se=M.current)==null?void 0:se.click()},children:i.jsx(o5,{size:16})}),lt=Ze||G?i.jsx("button",{type:"button",className:"agent-chat__send agent-chat__send--stop","aria-label":"Stop agent",title:"Stop agent","aria-busy":re||G,disabled:re||G||!r||!ee,onClick:()=>{ee&&Rt(()=>Ue.stopChat(e,ee.id,a))},children:i.jsx(Mp,{size:14,fill:"currentColor"})}):i.jsx("button",{type:"submit",className:"agent-chat__send",disabled:!r||!y.trim()&&!w.length||!Ae||re||P||(ee==null?void 0:ee.status)==="error"&&!ee.resumable,"aria-label":"Send message",title:"Send message",children:re?i.jsx(Ut,{size:17,className:"spin"}):i.jsx(cp,{size:18})}),yt=i.jsx(D7,{projectId:e,pro:a,agent:Ae,options:j,permissionMode:Ze?ee==null?void 0:ee.permissionMode:void 0,onChange:(se,Be=!0)=>{b(se),Be&&Ae&&P7(Ae,se)},models:(ee==null?void 0:ee.models)??[],usage:ee==null?void 0:ee.usage,accountUsage:tt,onRefreshUsage:xt,onRetryUsage:Xt,disabled:!r||re||P,locked:Ze});return i.jsxs("section",{className:`agent-chat${Qe?" is-compact":""}${D?" is-condensed":""}${a&&!D?" agent-chat--pro":""}`,"aria-label":`Agent chat for ${n}`,children:[i.jsx("input",{ref:M,type:"file",hidden:!0,multiple:!0,accept:"image/png,image/jpeg,image/gif,image/webp","aria-label":"Choose image attachments",onChange:se=>{Dt(Array.from(se.target.files??[])),se.target.value=""}}),D?i.jsxs(i.Fragment,{children:[ze,i.jsxs("form",{className:"agent-chat__composer",onSubmit:se=>{se.preventDefault(),J()},children:[i.jsx(Y2,{chat:p,value:m,disabled:!r||re,onChange:se=>{g(se),W("")}}),i.jsxs("div",{className:"agent-chat__message-input",children:[Ke,i.jsx("textarea",{"aria-label":"Message to agent",title:"Enter to send · Shift + Enter for a new line · Paste images",placeholder:Ae?`Ask ${xi(Ae)} for a change…`:"Choose an agent first…",value:y,onChange:se=>v(se.target.value),maxLength:16e3,rows:1,disabled:!r||re,onPaste:ln,onKeyDown:se=>{se.key==="Enter"&&!se.shiftKey&&!se.nativeEvent.isComposing&&!Ze&&!G&&(se.preventDefault(),J())}}),lt]}),i.jsx("button",{type:"button",className:"agent-chat__expand-btn",onClick:()=>B(!1),"aria-label":"Expand chat","aria-expanded":!1,title:"Expand chat",children:i.jsx(Mu,{size:16})}),yt]}),!!w.length&&i.jsx("div",{className:"agent-chat__images",children:w.map((se,Be)=>i.jsxs("div",{className:"agent-chat__image-thumb",children:[i.jsx("img",{src:`data:${se.mediaType};base64,${se.data}`,alt:`Attachment ${Be+1}`}),i.jsx("button",{type:"button",className:"agent-chat__image-remove","aria-label":"Remove image",onClick:()=>S(Ie=>Ie.filter((Ve,Fe)=>Fe!==Be)),children:i.jsx(Cn,{size:12})})]},Be))}),Se&&i.jsx("p",{className:"agent-chat__error",role:"alert",children:Se})]}):i.jsxs(i.Fragment,{children:[a&&i.jsxs("div",{className:"pro-chat-title",children:[i.jsxs("div",{children:[i.jsxs("span",{className:"pro-chat-title__eyebrow",children:["CONVERSATION",Ae&&i.jsx("span",{className:"pro-chat-title__agent",role:"img","aria-label":xi(Ae),title:xi(Ae),children:i.jsx(Gt,{kind:Ae,size:13})})]}),i.jsx("h2",{children:(ee==null?void 0:ee.title)||"What shall we build?"})]}),ee&&i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"icon-btn","aria-label":"Rename session",onClick:()=>{ie(ee.title||""),Y("rename")},children:i.jsx(c1,{size:14})}),i.jsx("button",{className:"icon-btn","aria-label":"Delete session",disabled:Ze,title:Ze?"Stop the session before deleting":"Delete saved session",onClick:()=>Y("delete"),children:i.jsx(d1,{size:14})})]}),i.jsx("button",{type:"button",className:"agent-chat__condense-btn",disabled:!!(ee!=null&&ee.approvals.length),onClick:()=>B(!0),"aria-label":"Condense chat","aria-expanded":!0,title:ee!=null&&ee.approvals.length?"Respond to the pending permission request first":"Condense to input only",children:i.jsx(On,{size:14})})]}),i.jsxs("div",{className:"agent-chat__bar",children:[!a&&i.jsxs("button",{type:"button",className:"agent-chat__toggle",onClick:()=>L(se=>!se),"aria-expanded":N,"aria-controls":"agent-chat-history",title:N?"Hide the conversation":"Show the conversation",children:[i.jsx(Pu,{size:15,"aria-hidden":!0}),i.jsx("strong",{className:Qe?"sr-only":void 0,children:"Agent chat"}),N?i.jsx(On,{size:14}):i.jsx(Mu,{size:14})]}),i.jsx(Y2,{chat:p,value:m,disabled:!r||re,onChange:se=>{g(se),W("")}}),Ze&&i.jsxs("span",{className:"agent-chat__working",role:"status",children:[i.jsx(Ut,{size:13,className:"spin"}),ee.status==="starting"?"Connecting…":"Working"]}),i.jsx("span",{className:"agent-chat__project",title:n,children:n}),!a&&i.jsx("button",{type:"button",className:"agent-chat__condense-btn",disabled:!!(ee!=null&&ee.approvals.length),onClick:()=>{B(!0),L(!1)},"aria-label":"Condense chat",title:ee!=null&&ee.approvals.length?"Respond to the pending permission request first":"Condense to input only",children:i.jsx(On,{size:14})})]}),I&&i.jsxs("div",{className:"agent-chat__history",id:"agent-chat-history",ref:we,role:"log","aria-label":"Conversation",onScroll:()=>{const se=we.current;se&&(ce.current=se.scrollHeight-se.scrollTop-se.clientHeight<60)},children:[!Et.length&&i.jsx("div",{className:"agent-chat__empty",children:a?i.jsxs(i.Fragment,{children:[i.jsx(Pu,{size:28}),i.jsx("h3",{children:"From an idea to a working app."}),i.jsx("p",{children:"Chat with your agent and watch your project take shape on the map and in the preview."}),i.jsx("p",{children:"Choose Claude Code or Codex below to get started. Conversations are saved on this computer."})]}):"Ask for a change, explain an issue, or guide the next step. Replies appear here. Chat history lasts until Kalvyr closes."}),Et.map((se,Be)=>{var Fe;const Ve=se.role==="assistant"&&se.status==="done"&&Be===Et.length-1&&!Ze?Ck(se.text):null;return i.jsxs("div",{className:`agent-chat__message agent-chat__message--${se.role}`,children:[(se.role!=="assistant"||se.status==="failed")&&i.jsxs("div",{className:"agent-chat__who",children:[se.role==="user"?"You":se.role==="assistant"?null:"Kalvyr",se.role==="user"&&i.jsx("span",{children:se.status==="queued"?"Queued":se.status==="failed"?"Not delivered":"Sent"}),se.role==="assistant"&&i.jsx("span",{children:"Interrupted"})]}),z.current.has(se.id)?i.jsx("div",{className:"agent-chat__msg-images",children:(Fe=z.current.get(se.id))==null?void 0:Fe.map((Xe,vt)=>i.jsx("img",{src:`data:${Xe.mediaType};base64,${Xe.data}`,alt:`Attachment ${vt+1}`},vt))}):!!se.imageCount&&i.jsx("div",{className:"agent-chat__msg-attachment",children:se.imageCount===1?"1 image attached":`${se.imageCount} images attached`}),Ve?i.jsxs(i.Fragment,{children:[i.jsx(Su,{text:Ve.preamble}),i.jsx("div",{className:"agent-chat__choices",children:Ve.choices.map((Xe,vt)=>i.jsx("button",{type:"button",className:"agent-chat__choice",disabled:re||!r,onClick:()=>void he(Xe.value),children:i.jsx("span",{children:i.jsx(Su,{text:Xe.label,inline:!0})})},vt))})]}):se.role==="assistant"?i.jsx(Su,{text:se.text}):i.jsx("div",{className:"agent-chat__text",children:se.text})]},se.id)})]}),!!(ee!=null&&ee.approvals.length)&&i.jsx("div",{className:"agent-chat__approvals",children:ee.approvals.slice(0,1).map(se=>i.jsxs("div",{className:"agent-chat__approval",children:[i.jsxs("strong",{children:[xi(ee.agent)," needs your permission",ee.approvals.length>1&&i.jsxs("span",{children:[" · ",ee.approvals.length-1," more waiting"]})]}),i.jsx("pre",{tabIndex:0,children:se.description}),i.jsxs("div",{className:"agent-chat__approval-actions",children:[i.jsx("button",{type:"button",className:"btn btn--primary btn--xs",disabled:re||!r,onClick:()=>void Rt(()=>Ue.approveChat(e,ee.id,se.id,!0,a)),children:"Allow once"}),i.jsx("button",{type:"button",className:"btn btn--ghost btn--xs",disabled:re||!r,onClick:()=>void Rt(()=>Ue.approveChat(e,ee.id,se.id,!1,a)),children:"Decline"})]})]},se.id))}),ze,Se&&i.jsx("p",{className:"agent-chat__error",role:"alert",children:Se}),!!w.length&&i.jsx("div",{className:"agent-chat__images",children:w.map((se,Be)=>i.jsxs("div",{className:"agent-chat__image-thumb",children:[i.jsx("img",{src:`data:${se.mediaType};base64,${se.data}`,alt:`Attachment ${Be+1}`}),i.jsx("button",{type:"button",className:"agent-chat__image-remove","aria-label":"Remove image",onClick:()=>S(Ie=>Ie.filter((Ve,Fe)=>Fe!==Be)),children:i.jsx(Cn,{size:12})})]},Be))}),i.jsxs("form",{className:"agent-chat__composer",onSubmit:se=>{se.preventDefault(),J()},children:[i.jsxs("div",{className:"agent-chat__message-input",children:[Ke,i.jsx("textarea",{"aria-label":"Message to agent",title:"Enter to send · Shift + Enter for a new line · Paste images",placeholder:Ae?Qe?`Ask ${xi(Ae)} for a change…`:`Ask ${xi(Ae)} to work on ${n}…`:Qe?"Choose an agent first…":"Choose an agent, then describe what you want…",value:y,onChange:se=>v(se.target.value),maxLength:16e3,rows:1,disabled:!r||re,onPaste:ln,onKeyDown:se=>{if(se.key==="Escape"&&N&&!a&&!(ee!=null&&ee.approvals.length)){B(!0),L(!1);return}se.key==="Enter"&&!se.shiftKey&&!se.nativeEvent.isComposing&&!Ze&&!G&&(se.preventDefault(),J())}}),lt]}),Qe&&yt]}),!Qe&&i.jsx("div",{className:"agent-chat__composer-footer",children:yt}),i.jsxs("div",{className:"agent-chat__hint",children:[i.jsx("span",{children:r?p!=null&&p.available.length?!ee&&mt.length?`${Ae&&xi(Ae)} is active in another app. Sending here starts a separate Kalvyr conversation.`:ee!=null&&ee.resumable?"Send a message to pick up where the last run stopped.":ee?Ze?"The agent is working. Draft your next message, or stop this turn.":"Messages stay in this Kalvyr conversation.":"Starts a new conversation in this project using your agent’s existing sign-in.":"Install and sign in to the Codex or Claude Code CLI to send requests.":"Reconnect to send messages."}),i.jsx("span",{children:"Enter to send · Shift + Enter for a new line"})]})]}),i.jsxs(ei,{open:!!H,title:H==="rename"?"Rename session":"Delete saved session?",onClose:()=>Y(null),busy:re,footer:i.jsx("button",{className:"btn btn--primary",disabled:re||H==="rename"&&!ne.trim(),onClick:async()=>{if(!ee)return;await Rt(()=>Ue.manageChat(e,ee.id,H==="rename"?{title:ne}:{remove:!0}))&&(H==="delete"&&g(`new:${ee.agent}`),Y(null))},children:H==="rename"?"Save name":"Delete session"}),children:[H==="rename"?i.jsx("input",{"aria-label":"Session name","data-autofocus":!0,value:ne,maxLength:100,onChange:se=>ie(se.target.value)}):i.jsx("p",{children:"This removes this conversation from Kalvyr. Project files and the agent’s own history remain."}),F&&i.jsx("p",{role:"alert",children:F})]})]})}function zk({open:e,edition:n,available:r,onClose:a,onChange:o}){return(n==null?void 0:n.billing)==="account"?i.jsx(Mk,{open:e,edition:n,available:r,onClose:a,onChange:o}):i.jsxs(ei,{open:e,title:"Kalvyr, with room to build.",description:"Your map is just the beginning.",onClose:a,footer:i.jsx("button",{className:"btn btn--ghost",onClick:a,children:"Keep Free"}),children:[i.jsxs("div",{className:"edition-options",children:[i.jsxs("div",{children:[i.jsx("span",{className:"pro-eyebrow",children:"FREE"}),i.jsx("h3",{children:"Your project, in view."}),i.jsx("p",{children:"The live architecture map, agent activity, history, and component previews."})]}),i.jsxs("div",{children:[i.jsx("span",{className:"pro-eyebrow",children:"PRO"}),i.jsx("h3",{children:"Your place to build."}),i.jsx("p",{children:"Everything in Free, plus chat with Claude Code or Codex, live preview of your running app, saved conversations, project navigation, and session history."})]})]}),i.jsxs("p",{className:"form-note",children:[n?"Pro isn’t available in this build yet.":"Connect to the local service to check Pro availability."," Agent usage uses your own connected account and its plan limits."]}),i.jsx("p",{className:"form-note",children:"Pro saves your prompts and replies on this computer."}),(n==null?void 0:n.storageError)&&i.jsx("p",{className:"form-error",role:"alert",children:n.storageError})]})}const Vh=e=>new Date(e).toLocaleDateString("en",{year:"numeric",month:"long",day:"numeric"});function Mk({open:e,edition:n,available:r,onClose:a,onChange:o}){const[c,u]=_.useState(""),[h,p]=_.useState(""),[f,m]=_.useState(!1),g=n.account,y=!!(g!=null&&g.signedIn),v=!!(g!=null&&g.active),w=n.price??"$9/month";_.useEffect(()=>{e?p(""):m(!1)},[e]),_.useEffect(()=>{if(!e||!y||!r)return;let M=!0;return Ue.refreshAccount().then(z=>{M&&o(z)}).catch(()=>{}),()=>{M=!1}},[e]),_.useEffect(()=>{if(!f)return;if(y){m(!1);return}const M=Date.now(),z=window.setInterval(()=>{if(Date.now()-M>10*6e4){m(!1);return}Ue.edition().then(o).catch(()=>{})},2e3);return()=>window.clearInterval(z)},[f,y,o]);const S=async(M,z)=>{u(M),p("");try{await z()}catch(N){p(ft(N))}finally{u("")}},j=()=>{n.accountUrl&&window.open(n.accountUrl,"_blank","noopener")},b=()=>S("sign-in",async()=>{const{url:M}=await Ue.signIn();window.open(M,"_blank","noopener"),m(!0)}),P=i.jsx("button",{className:"btn btn--sm btn--ghost",disabled:!r||!!c,onClick:()=>void S("sign-out",async()=>{o(await Ue.signOut())}),children:c==="sign-out"?"Signing out…":"Sign out on this computer"}),C=v?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:n.edition==="pro"?"btn btn--primary":"btn btn--ghost",onClick:a,disabled:!!c,children:"Close"}),n.edition!=="pro"&&i.jsx("button",{className:"btn btn--primary",disabled:!r||!!c,onClick:()=>void S("switch",async()=>{o(await Ue.setEdition("pro")),a()}),children:c==="switch"?"Turning on…":"Turn Pro on"})]}):y?i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"btn btn--ghost",onClick:a,disabled:!!c,children:"Keep Free"}),i.jsxs("button",{className:"btn btn--primary",disabled:!n.accountUrl,onClick:j,children:["Get Pro · ",w]})]}):i.jsxs(i.Fragment,{children:[i.jsx("button",{className:"btn btn--ghost",onClick:a,disabled:!!c,children:"Keep Free"}),i.jsx("button",{className:"btn btn--primary",disabled:!r||!!c,onClick:()=>void b(),children:c==="sign-in"?"Opening…":f?"Open sign-in again":"Sign in"})]});return i.jsxs(ei,{open:e,title:"Kalvyr, with room to build.",description:"Your map is just the beginning.",onClose:a,busy:!!c,footer:C,children:[i.jsxs("div",{className:"edition-options",children:[i.jsxs("div",{children:[i.jsx("span",{className:"pro-eyebrow",children:"FREE"}),i.jsx("h3",{children:"Your project, in view."}),i.jsx("p",{children:"The live architecture map, agent activity, history, and component previews. No account needed."})]}),i.jsxs("div",{children:[i.jsxs("span",{className:"pro-eyebrow",children:["PRO · ",w.toUpperCase()]}),i.jsx("h3",{children:"Your place to build."}),i.jsx("p",{children:"Everything in Free, plus chat with Claude Code or Codex, live preview of your running app, saved conversations, project navigation, and session history."})]})]}),v?i.jsxs("div",{className:"edition-license",children:[i.jsxs("p",{children:[i.jsx(pr,{size:14})," ",i.jsx("strong",{children:"Kalvyr Pro is active on your account"})]}),(g==null?void 0:g.until)&&i.jsx("p",{className:"form-note",children:g.cancelAtPeriodEnd?`Cancelled: Pro ends on ${Vh(g.until)}.`:`Renews on ${Vh(g.until)}.`}),i.jsxs("div",{className:"edition-license__actions",children:[i.jsx("button",{className:"btn btn--sm",disabled:!n.accountUrl,onClick:j,children:"Manage subscription"}),P]})]}):y?i.jsxs("div",{className:"edition-license",children:[i.jsx("p",{children:i.jsx("strong",{children:"You’re signed in. This account doesn’t have Pro yet."})}),i.jsx("p",{className:"form-note",children:"Subscribe on your account page, then come back and check again."}),i.jsxs("div",{className:"edition-license__actions",children:[i.jsx("button",{className:"btn btn--sm",disabled:!r||!!c,onClick:()=>void S("refresh",async()=>{o(await Ue.refreshAccount())}),children:c==="refresh"?"Checking…":"I’ve subscribed, check again"}),P]})]}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"form-note",children:f?"Finish signing in in your browser. Kalvyr will update when you’re done.":"Sign in with your Kalvyr account in your browser. New to Kalvyr? Create an account and subscribe on the website first."}),!f&&i.jsx("p",{className:"form-note",children:i.jsx("button",{className:"btn btn--sm btn--ghost",disabled:!n.accountUrl,onClick:j,children:"Create an account"})})]}),i.jsx("p",{className:"form-note",children:"Agent usage uses your own connected account and its plan limits. Pro saves your prompts and replies on this computer."}),(h||(g==null?void 0:g.message)||n.storageError)&&i.jsx("p",{className:"form-error",role:"alert",children:h||(g==null?void 0:g.message)||n.storageError})]})}function Ak({state:e,available:n,recentPaths:r,onOpenProject:a,onConnect:o,onShowMap:c,onNavigate:u,onEdition:h,children:p,workspaceView:f,previewOpen:m,projectError:g,sidebarHost:y,unseenActivity:v,sidebarCollapsed:w,onCollapseSidebar:S,onExpandSidebar:j}){const[b,P]=_.useState([]),[C,M]=_.useState(""),[z,N]=_.useState(null),[L,V]=_.useState(!1),[K,D]=_.useState(null),[I,B]=_.useState(""),[H,Y]=_.useState(!1),[ne,ie]=_.useState(null),[re,$]=_.useState("chat"),[G,A]=_.useState(!0),F=_.useCallback(ce=>{A(ce),$(ce?"map":"chat")},[]);_.useEffect(()=>{(m||f!=="architecture")&&$("map")},[m,f]);const W=(e==null?void 0:e.project.mode)==="local"?e.project.rootPath:null,T=_.useCallback(ce=>{W&&N(ge=>(ge==null?void 0:ge.root)===W&&ge.id===ce?ge:{root:W,id:ce})},[W]);_.useEffect(()=>{let ce=!1,ge;const ee=async()=>{try{if(n){const Ae=await Ue.proLibrary();ce||(P(Ae),M(""))}}catch(Ae){ce||M(ft(Ae))}ce||(ge=setTimeout(()=>void ee(),1800))};return ee(),()=>{ce=!0,clearTimeout(ge)}},[n]);const ve=async()=>{Y(!0),B("");try{D(await Ue.proAccounts())}catch(ce){B(ft(ce))}finally{Y(!1)}},te=async(ce,ge)=>{ie(ce),B("");try{await Ue.connectAgent(ce,ge),await ve()}catch(ee){B(ft(ee))}finally{ie(null)}};_.useEffect(()=>{if(!L||!n||!(K!=null&&K.some(Ae=>Ae.pending))||ne)return;let ce=!1,ge;const ee=async()=>{try{const Ae=await Ue.proAccounts();ce||(D(Ae),B(""))}catch(Ae){ce||B(ft(Ae))}ce||(ge=setTimeout(()=>void ee(),2e3))};return ge=setTimeout(()=>void ee(),2e3),()=>{ce=!0,clearTimeout(ge)}},[L,n,K==null?void 0:K.some(ce=>ce.pending),ne]);const le=_.useRef(null),je=_.useRef(null),we=_.useRef(null);return _.useLayoutEffect(()=>{var mt;const ce=le.current,ge=((mt=je.current)==null?void 0:mt.querySelector(".map__canvas"))??je.current,ee=we.current;if(!G||!ce||!ge||!ee)return;const Ae=()=>{const tt=ce.getBoundingClientRect(),xt=ge.getBoundingClientRect();ce.style.setProperty("--chat-map-left",`${xt.left-tt.left}px`),ce.style.setProperty("--chat-map-width",`${xt.width}px`),ce.style.setProperty("--chat-map-bottom",`${Math.max(0,tt.bottom-xt.bottom)+16}px`),ce.style.setProperty("--chat-overlay-height",`${ee.getBoundingClientRect().height}px`)};Ae();const Ze=new ResizeObserver(Ae);return Ze.observe(ce),Ze.observe(ge),Ze.observe(ee),()=>Ze.disconnect()},[G,f,m,W,w]),i.jsxs("div",{ref:le,className:`pro-workspace pro-workspace--${re}${G&&W?" is-chat-condensed":""}`,children:[y&&os.createPortal(i.jsx(_7,{root:W,recentPaths:r,library:b,selection:z,available:n,error:C||g,workspaceView:f,unseenActivity:v,onCollapse:S,collapsed:w,onExpand:j,onNewChat:()=>{var ce,ge;T(`new:${((ge=(ce=e==null?void 0:e.integration.describe)==null?void 0:ce.available[0])==null?void 0:ge.agent)??"codex"}`),c(),$("chat")},onOpenProject:ce=>{ce!==W&&a(ce),c()},onOpenSession:ce=>{N({root:ce.root,id:ce.id}),ce.root!==W&&a(ce.root),c(),F(!1)},onConnect:o,onEdition:h,onNavigate:ce=>{ce==="architecture"?c():u(ce),$("map")},onAccounts:()=>{V(!0),ve()}}),y),i.jsxs("div",{className:"pro-pane-switch",children:[i.jsxs("button",{"aria-pressed":re==="chat",onClick:()=>$("chat"),children:[i.jsx(Pu,{size:14})," Chat"]}),i.jsxs("button",{"aria-pressed":re==="map",onClick:()=>$("map"),children:[i.jsx(ql,{size:14})," Workspace"]})]}),i.jsx("div",{ref:we,className:"pro-conversation",children:W&&e?i.jsx(Ek,{projectId:e.project.id,projectName:e.project.name,available:n,pro:!0,selectedSession:(z==null?void 0:z.root)===W?z.id:void 0,onSelectSession:T,condensed:G,onCondensedChange:F},e.project.id):i.jsxs("div",{className:"pro-welcome",children:[i.jsx(Xn,{size:30}),i.jsx("h2",{children:"A space for your next idea."}),i.jsx("p",{children:"Connect a local project, choose your agent, and start building."}),i.jsxs("button",{className:"btn btn--primary",onClick:o,disabled:!n,children:[i.jsx(Zn,{size:16})," Connect project"]})]})}),i.jsx("div",{ref:je,className:"pro-visuals",children:p}),i.jsxs(ei,{open:L,title:"Your agents. Your accounts.",description:"Connect in your browser, or use your existing terminal login.",onClose:()=>V(!1),footer:i.jsxs("button",{className:"btn",disabled:H||!!ne||!n,onClick:()=>void ve(),children:[i.jsx(gn,{size:14,className:H?"spin":""})," ",H?"Checking…":"Refresh connection status"]}),children:[i.jsx("p",{children:"A browser-connected account takes priority in Pro. Without one, Kalvyr uses your terminal login. Each provider manages its OAuth credentials separately from your terminal account."}),["codex","claude-code"].map(ce=>{const ge=K==null?void 0:K.find(ee=>ee.agent===ce);return i.jsxs("div",{className:"pro-account",children:[i.jsx(Gt,{kind:ce,size:24}),i.jsxs("div",{children:[i.jsx("h3",{children:ce==="codex"?"Codex · ChatGPT":"Claude Code · Claude"}),i.jsx("p",{role:"status",children:H?"Checking account…":(ge==null?void 0:ge.message)??"Connection not checked yet."}),(ge==null?void 0:ge.connected)&&!ge.pending&&i.jsxs("span",{className:"pro-account__connected",children:[i.jsx(pr,{size:14})," ",ge.source==="oauth"?"Browser account":"Terminal account"]}),i.jsx("div",{className:"pro-account__actions",children:ge!=null&&ge.pending?i.jsxs(i.Fragment,{children:[ge.loginUrl&&i.jsx("a",{className:"btn",href:ge.loginUrl,target:"_blank",rel:"noreferrer",children:"Open sign-in page"}),i.jsx("button",{className:"btn",disabled:!!ne||!n,onClick:()=>void te(ce,"cancel"),children:"Cancel sign-in"})]}):(ge==null?void 0:ge.source)==="oauth"?i.jsx("button",{className:"btn",disabled:!!ne||H||!n,onClick:()=>void te(ce,"disconnect"),children:"Disconnect browser account"}):i.jsx("button",{className:"btn btn--primary",disabled:!!ne||H||!n||!ge,onClick:()=>void te(ce,"start"),children:ne===ce?"Connecting…":"Connect in browser"})}),!(ge!=null&&ge.connected)&&!(ge!=null&&ge.pending)&&(ge==null?void 0:ge.source)!=="oauth"&&i.jsxs("p",{children:["Or sign in from a terminal: ",i.jsx("code",{children:ce==="codex"?"codex login":"claude auth login"})]})]})]},ce)}),I&&i.jsx("p",{className:"form-error",role:"alert",children:I}),i.jsx("p",{className:"form-note",children:"The native Codex or Claude Code CLI must be installed to run tasks. Stop running chats before changing accounts, then start a new chat. Your provider’s subscription, permissions, and usage limits still apply."})]})]})}const Pk=e=>"choose"in e,Tk=e=>`livePreview:app:${e??""}`;function Lk(e,n,r,a=""){const o=c=>c.map(u=>u.replaceAll("\\","/")).filter(u=>!a||u.startsWith(`${a}/`)).map(u=>a?u.slice(a.length+1):u).filter(u=>/\.(jsx|tsx)$/.test(u)).slice(0,100);if(!n){const c=e.nodes.find(u=>u.id===r&&u.status!=="removed");return c?[{label:c.name,files:o(c.filePaths),color:"#6366f1"}]:[]}return e.agents.filter(c=>!c.isSample&&c.state==="active"&&!["idle","waiting","unknown"].includes(c.workPhase??"")).slice(0,12).flatMap(c=>{var h,p;const u=[];if(!c.locationIsHeld){const f=Xr(c),m=(h=c.recentFilePaths)==null?void 0:h.length,g=m?c.recentFilePaths:e.nodes.filter(y=>f.includes(y.id)&&y.status!=="removed").flatMap(y=>y.filePaths);u.push({label:`${c.name} · ${fa(c)}${m?"":" · component files"}`,files:o(g),color:c.workPhase==="editing"?"#b77b20":c.workPhase==="reading"?"#397caf":"#6366f1"})}return(p=c.workingFilePaths)!=null&&p.length&&u.push({label:`${c.name} · Edited this turn`,files:o(c.workingFilePaths),color:"#b77b20"}),u}).filter(c=>c.files.length)}function Ik({state:e,selectedNodeId:n,onClose:r}){const[a,o]=_.useState(null),[c,u]=_.useState(""),[h,p]=_.useState(0),[f,m]=_.useState(0),[g,y]=_.useState(!0),[v,w]=_.useState(!1),[S,j]=_.useState("Starting the app…"),[b,P]=_.useState([]),C=Tk(e.project.rootPath),[M,z]=_.useState({}),N=M[C]??fr(C,""),[L,V]=_.useState(null),K=ie=>{En(C,ie),z(re=>({...re,[C]:ie}))},D=_.useRef(null),I=(a==null?void 0:a.mode)==="vite",[B,H]=c.split(`
|
|
667
|
+
|
|
668
|
+
Last output:
|
|
669
|
+
`),Y=JSON.stringify(I?Lk(e,g,n,a==null?void 0:a.sourcePrefix):[]),ne=_.useCallback(()=>{var ie,re;a&&((re=(ie=D.current)==null?void 0:ie.contentWindow)==null||re.postMessage({type:"forma:preview-focus",token:a.token,items:JSON.parse(Y)},new URL(a.url).origin))},[a,Y]);return _.useEffect(()=>{let ie=!0;return o(null),V(null),u(""),j("Starting the app…"),Ue.startLivePreview(e.project.id,N).then(re=>{ie&&(Pk(re)?(V(re.choose),j("Choose an app")):(o(re),j("Loading the page…")))}).catch(re=>{ie&&u(ft(re))}),()=>{ie=!1}},[e.project.id,h,N]),_.useEffect(()=>{P([]),ne()},[ne]),_.useEffect(()=>{const ie=re=>{var $,G;!a||re.source!==(($=D.current)==null?void 0:$.contentWindow)||re.origin!==new URL(a.url).origin||((G=re.data)==null?void 0:G.token)!==a.token||(re.data.type==="forma:preview-ready"&&(j("Live updates on"),ne()),re.data.type==="forma:preview-updating"&&j("Applying changes…"),re.data.type==="forma:preview-updated"&&j("Changes applied"),re.data.type==="forma:preview-error"&&j("Build error · see preview"),re.data.type==="forma:preview-matches"&&Array.isArray(re.data.files)&&P(re.data.files.filter(A=>typeof A=="string").slice(0,100)))};return window.addEventListener("message",ie),()=>window.removeEventListener("message",ie)},[a,ne]),i.jsxs("aside",{className:"live-preview","aria-label":"Live app preview",children:[i.jsxs("header",{className:"live-preview__header",children:[i.jsx(ns,{size:16}),i.jsx("strong",{children:"Live preview"}),i.jsx("span",{className:"live-preview__status",role:"status",children:!c&&S}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Close live preview",onClick:r,children:i.jsx(Cn,{size:16})})]}),i.jsxs("div",{className:"live-preview__toolbar",children:[!a||I?i.jsxs("label",{className:"live-preview__follow",children:[i.jsx("input",{type:"checkbox",checked:g,onChange:ie=>y(ie.target.checked),disabled:!a})," Follow agents"]}):i.jsx("span",{className:"live-preview__mode",title:a.reused?`Showing the dev server already running for ${a.rootLabel}`:a.mode==="script"?`Running “${a.command}” in ${a.rootLabel}`:`Plain HTML from ${a.rootLabel}`,children:a.reused?"Already running":a.mode==="script"?a.command:"Static site"}),N&&!L&&i.jsxs("button",{type:"button",className:"live-preview__app",title:"Choose another app to preview",onClick:()=>{K(""),p(ie=>ie+1)},children:[(a==null?void 0:a.rootLabel)??N,i.jsx(On,{size:13,"aria-hidden":!0})]}),i.jsx("button",{type:"button",className:`icon-btn icon-btn--sm${v?" is-active":""}`,"aria-label":"Mobile preview","aria-pressed":v,onClick:()=>w(ie=>!ie),children:i.jsx(g5,{size:15})}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Reload live preview",disabled:!a,onClick:()=>{j("Loading the page…"),m(ie=>ie+1)},children:i.jsx(gn,{size:15})}),a&&i.jsx("a",{className:"icon-btn icon-btn--sm",href:a.url,target:"_blank",rel:"noreferrer","aria-label":"Open live app in browser",children:i.jsx(a1,{size:15})})]}),i.jsx("div",{className:"live-preview__stage",children:L?i.jsxs("div",{className:"live-preview__empty",role:"group","aria-label":"Choose an app to preview",children:[i.jsx(ns,{size:26}),i.jsx("h3",{children:"Which app should run?"}),i.jsxs("p",{children:[L.message," Kalvyr remembers your choice for this project."]}),i.jsx("div",{className:"live-preview__apps",children:L.choices.map(ie=>i.jsx("button",{type:"button",className:"btn",onClick:()=>K(ie.id),children:ie.label},ie.id))})]}):c?i.jsxs("div",{className:"live-preview__empty",role:"alert",children:[i.jsx(ns,{size:26}),i.jsx("h3",{children:"Preview could not start"}),i.jsx("p",{children:B}),i.jsxs("button",{className:"btn",onClick:()=>p(ie=>ie+1),children:[i.jsx(gn,{size:14})," Retry"]}),H&&i.jsxs("details",{className:"live-preview__details",children:[i.jsx("summary",{children:"Technical details"}),i.jsx("pre",{children:H})]})]}):a?i.jsx("iframe",{ref:D,title:`${e.project.name} live app`,src:a.url,className:v?"live-preview__frame is-mobile":"live-preview__frame",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals",referrerPolicy:"no-referrer",onLoad:()=>{ne(),I||j(a.mode==="static"?"Page loaded · reload for changes":"Running")}},`${a.url}:${f}`):i.jsxs("div",{className:"live-preview__empty",role:"status",children:[i.jsx(Ut,{size:25,className:"spin"}),i.jsx("h3",{children:"Starting your app…"}),i.jsx("p",{children:"Finding the app and starting its development server. The first start can take a minute."})]})}),!L&&i.jsx("footer",{className:"live-preview__footer",children:a&&!I?i.jsxs(i.Fragment,{children:[i.jsx("span",{children:"Highlighting the UI an agent works on is available for Vite apps."}),i.jsx("span",{children:a.reused?`Real app · the dev server that was already running for ${a.rootLabel} (${new URL(a.url).host}). It keeps running when you close this.`:a.mode==="script"?`Real app · its own dev server and updates (“${a.command}” in ${a.rootLabel}). Uses the project’s config and services.`:`Plain HTML from ${a.rootLabel}, served read-only. Reload to see changes.`})]}):i.jsxs(i.Fragment,{children:[i.jsx("span",{children:b.length?`${b.length} visible source ${b.length===1?"file":"files"} highlighted`:JSON.parse(Y).length?"Working files have no visible JSX elements on this screen.":g?"Waiting for agent work on a frontend component.":"Select a component on the map to highlight its UI."}),i.jsx("span",{children:"Real app · live Vite updates · JSX source highlights. Uses the project’s config and services."})]})})]})}const Nu=48,Cu="livePreviewWidth";function Rk(){const e=_.useRef(null),n=_.useRef(null),[r,a]=_.useState(()=>{const y=fr(Cu,Nu);return Number.isFinite(y)?Math.max(10,Math.min(90,y)):Nu}),o=_.useRef(r),[c,u]=_.useState(0),h=c?Math.min(320/c*100,45):25,p=c?100-Math.min(280/c*100,45):75,f=Math.max(h,Math.min(p,r));_.useEffect(()=>{var S;const y=(S=e.current)==null?void 0:S.parentElement;if(!y)return;const v=()=>u(Math.max(1,y.clientWidth-8)),w=new ResizeObserver(v);return w.observe(y),v(),()=>{w.disconnect(),y.style.removeProperty("--preview-width"),delete y.dataset.previewResizing}},[]),_.useEffect(()=>{var y,v;(v=(y=e.current)==null?void 0:y.parentElement)==null||v.style.setProperty("--preview-width",`${c*f/100}px`)},[c,f]);const m=(y,v=!1)=>{const w=Math.max(h,Math.min(p,y));o.current=w,a(w),v&&En(Cu,w)},g=()=>{var v;if(n.current===null)return;n.current=null;const y=(v=e.current)==null?void 0:v.parentElement;y&&delete y.dataset.previewResizing,En(Cu,o.current)};return i.jsx("div",{ref:e,className:"preview-divider",role:"separator",tabIndex:0,"aria-label":"Resize live preview","aria-orientation":"vertical","aria-valuemin":Math.round(h),"aria-valuemax":Math.round(p),"aria-valuenow":Math.round(f),"aria-valuetext":`${Math.round(f)} percent preview width`,title:"Drag to resize · Arrow keys to adjust · Double-click to reset",onPointerDown:y=>{y.button!==0||n.current!==null||(y.preventDefault(),y.currentTarget.focus(),n.current=y.pointerId,y.currentTarget.setPointerCapture(y.pointerId),y.currentTarget.parentElement&&(y.currentTarget.parentElement.dataset.previewResizing="true"))},onPointerMove:y=>{if(n.current!==y.pointerId||!c)return;const v=y.currentTarget.parentElement.getBoundingClientRect();m((v.right-y.clientX-4)/c*100)},onPointerUp:y=>{n.current===y.pointerId&&(g(),y.currentTarget.releasePointerCapture(y.pointerId))},onPointerCancel:g,onLostPointerCapture:g,onDoubleClick:()=>m(Nu,!0),onKeyDown:y=>{const v=y.shiftKey?10:2,w=y.key==="ArrowLeft"?f+v:y.key==="ArrowRight"?f-v:y.key==="Home"?h:y.key==="End"?p:null;w!==null&&(y.preventDefault(),m(w,!0))},children:i.jsx("span",{})})}function Dk(e,n){const r=n.trim().toLowerCase();return r?e.name.toLowerCase().includes(r)||e.description.toLowerCase().includes(r)||e.features.some(a=>{var o;return a.name.toLowerCase().includes(r)||((o=a.symbols)==null?void 0:o.some(c=>c.name.toLowerCase().includes(r)))})||e.filePaths.some(a=>a.toLowerCase().includes(r)):!0}function y3(e,n,r,a){const o=new Map(n.map(u=>[u.id,u])),c=[];for(const u of r){if(u.kind==="contains"||u.state==="removed")continue;const[h,p]=a==="in"?[u.target,u.source]:[u.source,u.target];if(h!==e)continue;const f=o.get(p);f&&c.push({edge:u,node:f})}return c}const Fk=(e,n,r)=>y3(e,n,r,"in"),$k=(e,n,r)=>y3(e,n,r,"out"),Ok=e=>_5.includes(e.kind),Bk=(e,n)=>n.filter(r=>r.state!=="disconnected"&&Ip(r).includes(e));function Hk(e){const n={planned:0,"in-progress":0,implemented:0,testing:0,completed:0,blocked:0,"needs-rework":0,removed:0};for(const r of e)n[r.status]+=1;return n}function Uk({node:e}){const n=e.stack;if(e.origin!=="detected"||!n)return null;const r=new Map;for(const a of n)r.set(a.kind,[...r.get(a.kind)??[],a]);return i.jsxs("section",{className:"details__section stack","data-tone":"built","aria-label":"Built with",children:[i.jsx(Tt,{children:"Built with"}),n.length===0?i.jsx("p",{className:"muted-text",children:"No languages or packages recognised in its files."}):i.jsx("dl",{className:"stack__list",children:[...r].map(([a,o])=>i.jsxs("div",{className:"stack__group",children:[i.jsx("dt",{children:o6[a]}),i.jsx("dd",{children:o.map(c=>i.jsxs("span",{className:"stack__item","data-kind":c.kind,title:c.evidence,children:[i.jsx(Qp,{item:c,size:14}),c.name,c.version&&i.jsx("span",{className:"stack__version",children:c.version})]},c.name))})]},a))}),i.jsx("p",{className:"fine-print",children:"From its files: file types, packages its code imports, and versions declared in package.json. Hover an item for what was seen."})]})}function Vk({node:e,onRunChecks:n}){const r=ua(e),a=sn(e,["file-changed"]);return i.jsxs("div",{className:"check-evidence",children:[i.jsxs("div",{className:`verify-row verify-row--${r.tone}`,children:[r.failed?i.jsx(ss,{size:15,"aria-hidden":!0}):i.jsx(Fm,{size:15,"aria-hidden":!0}),i.jsx("strong",{children:r.label})]}),r.checks.length===0&&i.jsx("p",{className:"muted-text",children:r.detail}),n&&i.jsx("button",{type:"button",className:"btn btn--sm",onClick:n,children:"Run checks"}),r.checks.map(o=>i.jsxs("details",{className:"check-evidence__result",children:[i.jsxs("summary",{children:[i.jsx("span",{children:o.label}),i.jsx("span",{className:"check-evidence__provenance",children:o.stale?"Outdated":o.evidence.source==="sample"?"Sample":o.evidence.source==="check-runner"?"Run by Kalvyr":"Reported"})]}),i.jsx("p",{children:o.evidence.summary}),i.jsxs("p",{className:"fine-print",children:[Kl(o.evidence)," · ",i.jsx("time",{dateTime:o.evidence.observedAt,children:_t(o.evidence.observedAt)})]}),i.jsx("p",{className:"fine-print",children:o.stale?"Files changed after this result. It does not describe the current code.":o.evidence.source==="check-runner"?"Kalvyr observed the command exit. No later file change is recorded.":"No later file change is recorded. This result is not an independent verification by Kalvyr."}),i.jsxs("p",{className:"fine-print",children:[o.packageWide?"This command checked the package. It does not establish whether this component passed or failed. ":"","Coverage of individual features and parts is unknown. A passing build shows that the build succeeded; it does not prove user behavior works."]})]},`${o.kind}-${o.packageWide}`)),a&&i.jsxs("p",{className:"fine-print",children:[i.jsx(Gr,{size:12,"aria-hidden":!0})," Last observed file change: ",i.jsx("time",{dateTime:a.observedAt,title:_t(a.observedAt),children:it(a.observedAt)}),"."]}),e.status==="completed"&&i.jsx("p",{className:"fine-print",children:"Completion was reported by an agent or integration. Defined feature completion criteria are not tracked yet."})]})}const Wh=4,v3=e=>/^(?:Removed from the map|No longer on the map)/.test(e)?"removed":/^(?:New component detected|Returned to the map)/.test(e)?"added":/^(?:Added to the plan|Agent update|Agent report|Completion reported)/.test(e)?"report":/^(?:Component connections|Connection to|Renamed from|Check results)/.test(e)?"connections":/^(?:Work needs attention|Marked blocked|Marked as needing rework)/.test(e)?"removed":/changed\.$/.test(e)?"edited":void 0,n1=({path:e})=>i.jsx("code",{className:"catch-up__path",children:e.split(new RegExp("(?<=\\/)")).map((n,r)=>i.jsxs(_.Fragment,{children:[r>0&&i.jsx("wbr",{}),n]},r))}),Wk=e=>/^(?:Package: )?(?:Tests|Build|Type check) failed/.test(e)?"bad":/^(?:Package: )?(?:Tests|Build|Type check) passed\.$/.test(e)?"good":/^(?:Package: )?(?:Tests|Build|Type check) passed/.test(e)?"stale":v3(e);function Ol({kind:e,label:n,time:r,files:a}){if(!a.length)return null;const o=a.slice(Wh);return i.jsxs("div",{className:"catch-up__files","data-kind":e,children:[i.jsxs("div",{className:"catch-up__files-label",children:[i.jsx("span",{children:n}),r&&i.jsx("time",{dateTime:r,title:_t(r),children:it(r)})]}),a.slice(0,Wh).map(c=>i.jsx(n1,{path:c},c)),o.length>0&&i.jsxs("details",{className:"catch-up__more",children:[i.jsxs("summary",{children:[o.length," more"]}),o.map(c=>i.jsx(n1,{path:c},c))]})]})}const Eu=4;function qk({lines:e,onShowOutput:n}){return e.length?i.jsxs("section",{className:"catch-up__project-checks","aria-label":"Project checks",children:[i.jsx("h3",{children:"Project checks"}),e.map(r=>{const a=r.passed?"good":"bad";return i.jsxs("div",{className:"catch-up__project-check","data-tone":a,"data-stale":r.stale||void 0,children:[i.jsxs("p",{className:"catch-up__project-check-head",children:[a==="bad"?i.jsx(an,{size:14,"aria-hidden":!0}):i.jsx(Ei,{size:14,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:r.where})," · ",r.label]}),i.jsx("time",{dateTime:r.at,title:_t(r.at),children:it(r.at)})]}),i.jsxs("p",{className:"catch-up__project-check-meta",children:[r.stale&&i.jsxs("span",{className:"catch-up__project-check-stale",title:"Files changed after this run, so the result may be out of date. Run checks again to update it.",children:[i.jsx(Gr,{size:11,"aria-hidden":!0}),"Files changed since"]}),r.commands.map(o=>i.jsx("code",{children:o},o)),i.jsx("span",{children:r.by===r.where?"Reported in the agent session":`Run by ${r.by}`})]}),r.failing.length>0&&i.jsxs("ul",{className:"catch-up__failing","aria-label":"Failing tests",children:[r.failing.slice(0,Eu).map(o=>i.jsx("li",{children:o},o)),r.failing.length>Eu&&i.jsxs("li",{children:["and ",r.failing.length-Eu," more"]})]})]},r.id)}),i.jsx("p",{className:"fine-print",children:"These run on a whole app, so they are listed once here, not on each component. They do not show which components they cover."}),n&&e.some(r=>r.by==="Kalvyr"&&!r.passed)&&i.jsxs("button",{type:"button",className:"catch-up__request-link",onClick:n,children:["See the full output",i.jsx(ea,{size:12,"aria-hidden":!0})]})]}):null}function Kk(e){const n=e.filter(r=>r.unchecked).length;return n?n===e.length?"No checks recorded since these changes.":`${n} of ${e.length} have no checks recorded since their changes.`:null}function Qk({baseline:e,items:n,projectChecks:r=[],requests:a=[],projectCheckFailure:o,onMarkReviewed:c,onOpenNode:u,unavailable:h,rescanPending:p,onRunChecks:f}){const m=Kk(n),g=n.length>0&&n.every(y=>y.unchecked);return i.jsxs("section",{className:"catch-up","aria-labelledby":"catch-up-title",children:[i.jsxs("header",{className:"catch-up__head",children:[i.jsxs("span",{className:"catch-up__eyebrow",children:[i.jsx(Yr,{size:14,"aria-hidden":!0})," PROJECT RECAP"]}),i.jsx("h2",{id:"catch-up-title",children:"Since you last looked"}),i.jsx("p",{children:e?i.jsxs(i.Fragment,{children:["Compared with your review ",i.jsx("time",{dateTime:e.reviewedAt,title:_t(e.reviewedAt),children:it(e.reviewedAt)}),"."]}):"Open a connected project to start a recap."})]}),p&&i.jsx("p",{className:"callout callout--warn",children:"Changes since your last visit are being refreshed. If the refresh fails, use Retry refresh in the status bar."}),o&&!r.some(y=>y.by==="Kalvyr"&&!y.passed)&&i.jsxs("section",{className:"catch-up__check-notice","aria-label":"Project check results",children:[i.jsxs("div",{className:"catch-up__check-notice-heading",children:[i.jsx("span",{className:"catch-up__check-notice-icon",children:i.jsx(an,{size:17,"aria-hidden":!0})}),i.jsxs("div",{children:[i.jsx("span",{className:"catch-up__check-notice-label",children:"Last project check"}),i.jsx("h3",{children:"Checks need attention"})]})]}),i.jsx("p",{children:"See which checks failed and read their output."}),o.includes("source changed during the run")&&i.jsx("p",{className:"catch-up__check-notice-stale",children:"Files changed during this run. Check the latest changes again."}),f&&i.jsxs("button",{type:"button",className:"btn btn--sm",disabled:h,onClick:f,children:["View check results",i.jsx(ea,{size:14,"aria-hidden":!0})]})]}),h&&i.jsx("p",{className:"callout callout--warn",children:"Showing the last received state. Reconnect before marking changes reviewed."}),e&&i.jsxs(i.Fragment,{children:[a.length>0&&i.jsxs("section",{className:"catch-up__requests","aria-label":"Requests for you",children:[i.jsxs("h3",{children:[i.jsx(z2,{size:15,"aria-hidden":!0})," ",h?"Last recorded requests":"Needs you now"]}),a.map(y=>i.jsxs("div",{className:"catch-up__request",children:[i.jsx("strong",{children:y.agent}),i.jsx("span",{children:y.label}),y.nodeId&&i.jsxs("button",{type:"button",className:"catch-up__request-link",onClick:()=>u(y.nodeId),children:[y.component,i.jsx(ea,{size:12,"aria-hidden":!0})]})]},y.id)),i.jsx("p",{className:"fine-print",children:"Respond in the agent’s interface."})]}),i.jsxs("div",{className:"catch-up__count",children:[i.jsx("strong",{children:n.length})," ",n.length===1?"component with updates":"components with updates"]}),m&&i.jsx("p",{className:"catch-up__summary",children:m}),f&&i.jsx("button",{type:"button",className:"btn btn--sm",onClick:f,disabled:h,children:"Run checks"}),i.jsx(qk,{lines:r,onShowOutput:f}),n.length===0?i.jsx("p",{className:"muted-text",children:"No new component changes are recorded since this review point. New edits, check results and connections will appear here."}):i.jsx("ul",{className:"catch-up__list",children:n.map(y=>i.jsxs("li",{className:"catch-up__item","data-update":v3(y.summary.headline),children:[y.nodeId?i.jsxs("button",{type:"button",className:"catch-up__link",onClick:()=>u(y.nodeId),children:[i.jsx("span",{children:y.name}),i.jsx(ea,{size:15,"aria-hidden":!0})]}):i.jsx("strong",{children:y.name}),i.jsx("p",{className:"catch-up__headline",children:y.summary.headline}),i.jsxs("div",{className:"catch-up__meta",children:[y.summary.fileCount>0&&i.jsxs("span",{children:[Zl(y.summary.fileCount,"file")," affected"]}),y.editedBy.length>0&&i.jsx("span",{children:y.editedBy.join(" · ")}),y.changedAt&&i.jsx("time",{dateTime:y.changedAt,title:_t(y.changedAt),children:it(y.changedAt)})]}),y.summary.reports.slice(0,2).map((v,w)=>i.jsxs("p",{className:"catch-up__report",children:[i.jsx(z2,{size:13,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsxs("strong",{children:[v.by," reports:"]})," ",v.text]})]},w)),!(g&&!y.summary.recordedChecks.length)&&i.jsxs("p",{className:"catch-up__check-summary","data-tone":y.summary.checkTone,children:[y.summary.checkTone==="bad"?i.jsx(an,{size:14,"aria-hidden":!0}):y.unchecked||!y.summary.recordedChecks.length||y.summary.checkTone==="stale"?i.jsx(Gr,{size:14,"aria-hidden":!0}):i.jsx(Ei,{size:14,"aria-hidden":!0}),i.jsx("span",{children:y.summary.checks})]}),y.summary.note&&!y.summary.needs&&i.jsx("p",{className:"catch-up__note",children:y.summary.note}),y.summary.needs&&!(g&&y.summary.needs==="Check the latest changes.")&&i.jsxs("p",{className:"catch-up__needs","data-tone":y.attention||y.summary.checkTone==="bad"?"bad":"stale",children:[i.jsx("strong",{children:"Still needs:"})," ",y.summary.needs]}),i.jsxs("details",{className:"catch-up__details",children:[i.jsx("summary",{children:"Files & evidence"}),i.jsx(Ol,{kind:"edited",label:`Edited by ${y.editedBy.join(" and ")||"an agent"}`,files:y.edited}),i.jsx(Ol,{kind:"disk",label:"Changed on disk",files:y.onDisk}),i.jsx(Ol,{kind:"added",label:"Added to component",files:y.added}),i.jsx(Ol,{kind:"removed",label:"Removed from component",files:y.removed}),y.changes.length>0&&i.jsx("ul",{className:"catch-up__changes",children:y.changes.map(v=>i.jsx("li",{"data-tone":Wk(v),children:v},v))}),y.summary.recordedChecks.map(v=>i.jsxs("div",{className:"catch-up__evidence",children:[i.jsxs("strong",{children:[v.label,v.stale?" · before later changes":""]}),i.jsxs("p",{children:[Kl(v.evidence)," · ",i.jsx("time",{dateTime:v.evidence.observedAt,children:it(v.evidence.observedAt)})]}),i.jsx("p",{children:v.evidence.summary})]},v.evidence.id)),y.summary.observations.filter(v=>v.kind==="file-changed"||v.kind==="agent-claim").map(v=>i.jsxs("div",{className:"catch-up__evidence",children:[i.jsx("strong",{children:v.kind==="agent-claim"?"Agent report":v.part??"Observed change"}),i.jsxs("p",{children:[Kl(v)," · ",it(v.observedAt)]}),i.jsx("p",{children:v.summary}),v.editNote&&i.jsxs("p",{children:["Recorded edit note: ",v.editNote]}),v.filePath&&i.jsx(n1,{path:v.filePath}),v.partDetail&&i.jsx("p",{children:v.partDetail})]},v.id)),y.summary.technical.map(v=>i.jsx("pre",{className:"catch-up__technical",children:v},v)),y.summary.recordedChecks.length>0&&i.jsx("p",{className:"fine-print",children:"Checks recorded on a component do not show which of its parts they exercise. Agent reports are not independent verification."})]}),!y.nodeId&&i.jsx("p",{className:"fine-print",children:"This component is no longer available on the current map."})]},y.id))}),n.length>0&&i.jsxs("button",{type:"button",className:"btn btn--primary catch-up__review",onClick:c,disabled:h||p,children:[i.jsx(Rm,{size:15,"aria-hidden":!0})," Mark ",Zl(n.length,"component")," reviewed"]}),i.jsx("p",{className:"fine-print",children:"Mark reviewed starts a new recap; it does not approve code or change component status. This browser remembers the review point for each project. The recap compares saved maps and retained observations; intermediate changes may be missing."})]})]})}function k3(e){let n=!1;return(e?e.replace(/\n$/,"").split(`
|
|
670
|
+
`):[]).map(r=>(r.startsWith("diff --git ")&&(n=!1),r.startsWith("@@")?(n=!0,{text:r,kind:"hunk"}):{text:r,kind:n&&r.startsWith("+")?"add":n&&r.startsWith("-")?"remove":void 0}))}function Zk(e,n=!1){const r=k3(e),a=r.findIndex(h=>h.kind==="hunk"),o=a>=0?r.slice(a):r,c=n||o.length>12||o.some(h=>h.text.length>160);return{lines:o.slice(0,12).map(h=>({...h,text:h.text.length>160?`${h.text.slice(0,160)}…`:h.text})),shortened:c,renamedOnly:a<0&&/^similarity index 100%$/m.test(e)&&/^rename to /m.test(e)}}const Gk={deleted:"Deleted file",renamed:"Renamed file",dependencies:"Dependency file",deployment:"Deployment configuration",authentication:"Authentication-related file"},qh=e=>e instanceof Error?e.message:"Could not read the local changes.",Kh={deleted:"Deleted",renamed:"Renamed",added:"Added",modified:"Modified"};function Yk(e,n){const r=n?" in the folders Git could read":"";return e>0?`${e} uncommitted file${e===1?"":"s"} changed${r}, but none were deleted, renamed, or touch dependency, deployment or sign-in files. Ordinary edits are in Catch up.`:`No uncommitted changes${r}.`}function w3({lines:e,file:n,inline:r=!1}){return i.jsx("pre",{className:`review-diff${r?" review-diff--inline":""}`,tabIndex:0,"aria-label":`Diff for ${n}`,children:i.jsx("code",{children:e.map((a,o)=>i.jsx("span",{"data-kind":a.kind,children:a.text||" "},o))})})}function Xk({item:e,loaded:n,unavailable:r,onDetails:a}){if(n!=null&&n.error)return i.jsxs("p",{className:"fine-print",role:"alert",children:[n.error," Use Refresh to try again."]});if(!(n!=null&&n.value))return i.jsx("p",{className:"fine-print",role:"status",children:r?"Reconnect to load changes.":"Loading changes…"});const o=Zk(n.value.text,n.value.limited);return i.jsxs(i.Fragment,{children:[o.renamedOnly?i.jsx("p",{className:"fine-print",children:"Renamed without content changes."}):o.lines.length?i.jsx(w3,{lines:o.lines,file:e.file,inline:!0}):i.jsx("p",{className:"fine-print",children:"No difference remains against the latest commit."}),o.shortened&&i.jsxs("div",{className:"review-changes__more",children:[i.jsx("span",{className:"fine-print",children:"Showing a shortened preview."}),i.jsx("button",{type:"button",className:"btn btn--sm",onClick:a,"aria-label":`Details for ${e.file}`,children:"Details"})]})]})}function Jk({projectId:e,unavailable:n}){var j;const[r,a]=_.useState(null),[o,c]=_.useState(!1),[u,h]=_.useState(""),[p,f]=_.useState(null),[m,g]=_.useState({}),y=_.useRef(0);_.useEffect(()=>()=>{y.current++},[]);const v=async()=>{const b=++y.current;c(!0),h("");try{const P=await Ue.reviewChanges(e);b===y.current&&(f(null),g({}),a(P))}catch(P){b===y.current&&h(qh(P))}finally{b===y.current&&c(!1)}};_.useEffect(()=>{n||v()},[e,n]),_.useEffect(()=>{if(!r||n)return;let b=!1,P=0;const C=async()=>{for(;!b&&P<r.items.length;){const M=r.items[P++];let z;try{z={value:await Ue.reviewDiff(e,M.id)}}catch(N){z={error:qh(N)}}b||g(N=>({...N,[M.id]:z}))}};return C(),C(),()=>{b=!0}},[r,e,n]);const w=p?(j=m[p.id])==null?void 0:j.value:void 0,S=new Map;for(const b of(r==null?void 0:r.items)??[])S.set(b.component,[...S.get(b.component)??[],b]);return i.jsxs("section",{className:"review-changes","aria-label":"Changes worth reviewing",children:[i.jsxs("div",{className:"review-changes__head",children:[i.jsxs("h2",{children:[i.jsx(Wm,{size:18,"aria-hidden":!0})," Worth reviewing"]}),i.jsxs("button",{type:"button",className:"btn btn--sm",disabled:o||n,onClick:()=>void v(),children:[i.jsx(gn,{size:12,"aria-hidden":!0}),o?"Checking…":r?"Refresh":"Check changes"]})]}),i.jsx("p",{className:"fine-print",children:"Current uncommitted Git changes, separate from your recap review point. Includes staged, unstaged and new files."}),!r&&!o&&!u&&i.jsx("p",{className:"muted-text",children:"Find deletions, renames and changes to dependency, deployment or authentication files."}),u&&i.jsx("p",{role:"alert",className:"callout callout--warn",children:u}),r&&i.jsxs(i.Fragment,{children:[i.jsxs("p",{className:"fine-print",children:["Checked ",it(r.checkedAt),u?" · showing the previous result":""]}),r.notes.map(b=>i.jsx("p",{className:"callout callout--warn",children:b},b)),r.limited&&i.jsx("p",{className:"fine-print",children:"This is a partial review; discovery or size limits were reached."}),!r.items.length&&r.readRepositories>0&&i.jsx("p",{className:"muted-text",children:Yk(r.otherChanges,r.notes.length>0)}),[...S].map(([b,P])=>i.jsxs("article",{className:"review-changes__group","aria-label":`${b} changes`,children:[i.jsx("h3",{children:b}),i.jsx("div",{className:"review-changes__types",children:Object.entries(Kh).map(([C,M])=>{const z=P.filter(N=>N.change===C).length;return z?i.jsxs("span",{"data-change":C,children:[z," ",M.toLowerCase()]},C):null})}),i.jsx("ul",{children:P.map(C=>i.jsxs("li",{children:[i.jsxs("div",{className:"review-changes__reasons",children:[i.jsx("span",{"data-reason":C.change,children:Kh[C.change]}),C.reasons.filter(M=>M!==C.change).map(M=>i.jsx("span",{"data-reason":M,children:Gk[M]},M))]}),i.jsxs("p",{className:"review-changes__file",children:[C.previousFile&&i.jsxs(i.Fragment,{children:[C.previousFile," → "]}),C.file]}),C.references.length>0&&i.jsxs("div",{className:"review-changes__references",children:[i.jsxs("p",{children:["Static references to ",C.previousFile?"the old path":"this deleted file"," still exist:"]}),i.jsx("ul",{children:C.references.map(M=>i.jsxs("li",{children:[i.jsxs("code",{children:[M.file,":",M.line]})," references ",i.jsx("code",{children:M.specifier})]},`${M.file}:${M.line}:${M.specifier}`))})]}),i.jsx(Xk,{item:C,loaded:m[C.id],unavailable:n,onDetails:()=>f(C)})]},C.id))})]},b)),r.items.length>0&&i.jsx("p",{className:"fine-print",children:"Categories use file paths. Reference checks cover literal relative JavaScript/TypeScript imports and asset URLs, not dynamic paths or aliases. These are review cues, not confirmed bugs."})]}),i.jsx(ei,{wide:!0,open:!!p,onClose:()=>f(null),title:"Change details",description:p!=null&&p.previousFile?`${p.previousFile} → ${p.file}`:p==null?void 0:p.file,children:w?i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"fine-print",children:w.note}),w.limited&&i.jsx("p",{className:"callout callout--warn",children:"Diff shortened because it exceeds the display limit. Review the full change in your Git client."}),w.text?i.jsx(w3,{lines:k3(w.text),file:w.file}):i.jsx("p",{children:"No difference remains against the latest commit."})]}):i.jsx("p",{role:"status",children:"Loading the current diff…"})})]})}const ew=[{phrase:"Waiting for result",label:"Waiting for result",tone:"waiting",family:"pending-result"},{phrase:"Waiting for your approval",label:"Waiting for your approval",tone:"waiting",family:"approval"},{phrase:"No result yet; may need your approval",label:"May need your approval",tone:"waiting",family:"approval"},{phrase:"Permission approved",label:"Permission approved",tone:"neutral",family:"permission-approved"},{phrase:"Approval refused",label:"Approval refused",tone:"neutral",family:"permission-refused"},{phrase:"Permission denied",label:"Permission denied",tone:"neutral",family:"permission-denied"},{phrase:"Reading files",label:"Reading",tone:"reading",family:"read"},{phrase:"Read files",label:"Read",tone:"reading",family:"read",done:!0},{phrase:"Editing files",label:"Editing",tone:"editing",family:"edit"},{phrase:"Edited files",label:"Edited",tone:"editing",family:"edit",done:!0},{phrase:"Running a tool",label:"Running a tool",tone:"running",family:"run"},{phrase:"Command finished",label:"Finished",tone:"finished",family:"run",done:!0},{phrase:"Running checks",label:"Running checks",tone:"testing",family:"check"},{phrase:"Check command finished; results not verified",label:"Checks finished",tone:"testing",family:"check",done:!0,note:"Results not verified"},{phrase:"Processing the turn",label:"Thinking",tone:"thinking",family:"think",note:"Processing the turn"},{phrase:"Waiting for input",label:"Waiting",tone:"waiting",family:"wait"},{phrase:"Turn ended; waiting for the next request",label:"Idle",tone:"idle",family:"idle",note:"Waiting for the next request"},{phrase:"Tool reported an error",label:"Error",tone:"error",family:"error"},{phrase:"Current work is unknown",label:"Unknown",tone:"idle",family:"unknown"}],tw={"project-connected":"Connected","plan-created":"Planned","agent-working":"Working","agent-session":"Session","file-change":"Changed","status-changed":"Status","node-added":"Added","node-removed":"Removed","node-restructured":"Regrouped",verification:"Check",note:"Note"};function nw(e){return e?e.kind!=="other"?m7[e.kind]:e.name.split(" · ")[0]:"Kalvyr"}function rw(e,n=new Date){const r=new Date(e);return Number.isNaN(r.getTime())?"":r.toDateString()===n.toDateString()?r.toLocaleTimeString("en-GB",{hour:"2-digit",minute:"2-digit"}):r.toLocaleDateString("en-GB",{day:"numeric",month:"short"})}const iw=e=>e.replace(/\.$/,"");function sw(e,n){let r=e.message;n&&r.startsWith(`${n.name}: `)&&(r=r.slice(n.name.length+2));const a=r.startsWith("Last observed: ");a&&(r=r.slice(15));const o=/^Check (passed|failed) (.*)$/s.exec(r);if(o)return{label:`Check ${o[1]}`,tone:o[1]==="passed"?"testing":"error",target:o[2]};const c=ew.find(p=>r===p.phrase||r===`${p.phrase}.`||r.startsWith(`${p.phrase}: `)||r.startsWith(`${p.phrase} in `));if(!c){const p=e.toStatus==="needs-rework"||e.toStatus==="blocked"||e.type==="verification"&&/\bfailed\b/i.test(r);return{label:tw[e.type]??"Event",tone:p?"error":e.type==="verification"?"testing":"neutral",target:r}}const h=iw(r.slice(c.phrase.length).replace(/^(: | in )/,"")).trim()||c.note||"";return{label:c.label,tone:c.tone,target:a?["Last observed",h].filter(Boolean).join(": "):h,step:c}}const aa=e=>{var n;return((n=e.technicalDetail)==null?void 0:n.split(`
|
|
671
|
+
`).filter(Boolean))??[]},Qh=3,aw=6e4;function lw(e,n){const r=new Set(n.filePaths),a=c=>aa(c).filter(u=>r.has(u)),o=e.filter(c=>c.type==="file-change"&&c.agentId);return e.filter(c=>{if(c.type==="file-change"){const u=a(c);if(!u.length)return c.nodeId===n.id;if(c.agentId)return!0;const h=Date.parse(c.timestamp);return!u.every(p=>o.some(f=>Math.abs(Date.parse(f.timestamp)-h)<aw&&aa(f).includes(p)))}return c.type==="verification"?c.nodeId===n.id?!0:c.source!=="check-runner"||c.nodeId?!1:aa(c).some(u=>{const h=u.split(":")[0];return h==="."||n.filePaths.some(p=>p.startsWith(`${h}/`))}):["node-added","node-removed","node-restructured","status-changed"].includes(c.type)&&c.nodeId===n.id})}function ow(e,n,r=1/0,a=new Date,o){const c=new Map(n.map(p=>[p.id,p])),u=[];let h=null;for(const p of e){if(u.length>=r)break;const f=p.agentId?c.get(p.agentId):void 0,{step:m,...g}=sw(p,f);if(o&&p.type==="file-change"){const v=aa(p).filter(S=>o.has(S)),w=v.length-Qh;v.length&&(g.target=v.slice(0,Qh).join(", ")+(w>0?` (+${w} more)`:""))}if(p.source==="check-runner"){const v=aa(p).map(w=>w.split(": ")).filter(w=>w.length===3).map(([,w,S])=>`${w} ${S.split(" ")[0]}`);v.length&&(g.target=v.join(", ")+(/source changed/.test(p.message)?" (files changed during the run, so not applied)":""))}const y=!!h&&!!m&&h.agentId===p.agentId&&h.family===m.family&&!!h.done&&!m.done&&h.target===g.target;h={agentId:p.agentId,family:m==null?void 0:m.family,done:m==null?void 0:m.done,target:g.target},!y&&u.push({id:p.id,timestamp:p.timestamp,time:rw(p.timestamp,a),agent:nw(f),source:[f==null?void 0:f.name,p.source==="local-session"?"Local session":null].filter(Boolean).join(" · "),nodeId:p.nodeId,confidence:p.confidence,technicalDetail:p.technicalDetail,...g})}return u}function j3({activities:e,nodes:n,agents:r,onSelectNode:a,limit:o,hideNode:c,files:u}){const h=new Map(n.map(p=>[p.id,p.name]));return i.jsx("ol",{className:"stream",children:ow(e,r,o,void 0,u&&new Set(u)).map(p=>{const f=!c&&p.nodeId?h.get(p.nodeId):void 0;return i.jsxs("li",{className:"stream__row","data-tone":p.tone,children:[i.jsx("time",{dateTime:p.timestamp,title:_t(p.timestamp),children:p.time}),i.jsx("span",{className:"stream__agent",title:p.source||void 0,children:p.agent}),i.jsx("span",{className:"stream__action",children:p.label}),p.target&&i.jsx("span",{className:"stream__target",children:p.target.split(new RegExp("(?<=\\/)")).map((m,g)=>i.jsxs(_.Fragment,{children:[g>0&&i.jsx("wbr",{}),m]},g))}),f&&i.jsxs("span",{className:"stream__meta",children:[p.nodeId&&a?i.jsx("button",{type:"button",className:"link-btn",onClick:()=>a(p.nodeId),children:f}):i.jsx("span",{children:f}),p.confidence!=="confirmed"&&i.jsx(k1,{confidence:p.confidence})]})]},p.id)})})}function is({value:e,options:n,onChange:r,label:a,className:o,disabled:c,size:u="md",menuWidth:h=420}){var P;const[p,f]=_.useState(!1),[m,g]=_.useState({left:0,top:0,maxHeight:320,width:240}),y=_.useRef(null),v=_.useRef(null),w=_.useId(),S=n.find(C=>C.value===e);_.useLayoutEffect(()=>{if(!p)return;const C=()=>{var H,Y,ne;const z=(H=y.current)==null?void 0:H.getBoundingClientRect();if(!z)return;const N=Math.min(Math.max(z.width,200,Math.min(h,((Y=v.current)==null?void 0:Y.scrollWidth)??0)),window.innerWidth-24),L=window.innerHeight-z.bottom-16,V=z.top-16,K=Math.min(((ne=v.current)==null?void 0:ne.scrollHeight)??320,320),D=L<K&&V>L,I=Math.max(80,Math.min(320,D?V:L)),B=Math.min(K,I);g({left:Math.max(12,Math.min(z.left,window.innerWidth-N-12)),top:D?z.top-B-6:z.bottom+6,maxHeight:I,width:N})};C();const M=new ResizeObserver(C);return y.current&&M.observe(y.current),window.addEventListener("resize",C),window.addEventListener("scroll",C,!0),()=>{M.disconnect(),window.removeEventListener("resize",C),window.removeEventListener("scroll",C,!0)}},[p,h]),_.useEffect(()=>{var N,L;if(!p)return;const C=((N=v.current)==null?void 0:N.querySelector('[aria-selected="true"]'))??((L=v.current)==null?void 0:L.querySelector('[role="option"]'));C==null||C.focus(),C==null||C.scrollIntoView({block:"nearest"});const M=V=>{var K,D;!((K=v.current)!=null&&K.contains(V.target))&&!((D=y.current)!=null&&D.contains(V.target))&&f(!1)},z=V=>{var K;V.key==="Escape"&&(V.preventDefault(),V.stopPropagation(),f(!1),(K=y.current)==null||K.focus())};return document.addEventListener("pointerdown",M),document.addEventListener("focusin",M),document.addEventListener("keydown",z,!0),()=>{document.removeEventListener("pointerdown",M),document.removeEventListener("focusin",M),document.removeEventListener("keydown",z,!0)}},[p]),_.useEffect(()=>{c&&f(!1)},[c]);const j=C=>{var M;f(!1),(M=y.current)==null||M.focus(),C!==e&&r(C)};function b(C){var L,V,K;if(C.key==="Tab"){f(!1);return}const M=[...((L=v.current)==null?void 0:L.querySelectorAll('[role="option"]'))??[]],z=M.indexOf(document.activeElement);let N=-1;if(C.key==="ArrowDown")N=Math.min(M.length-1,z+1);else if(C.key==="ArrowUp")N=Math.max(0,z-1);else if(C.key==="Home")N=0;else if(C.key==="End")N=M.length-1;else if(C.key.length===1&&/\S/.test(C.key)){const D=C.key.toLowerCase(),B=[...n.slice(z+1),...n.slice(0,z+1)].find(H=>H.label.toLowerCase().startsWith(D));N=B?n.indexOf(B):-1}else return;C.preventDefault(),N>=0&&((V=M[N])==null||V.focus(),(K=M[N])==null||K.scrollIntoView({block:"nearest"}))}return i.jsxs(i.Fragment,{children:[i.jsxs("button",{ref:y,type:"button",className:`select select--${u}${o?` ${o}`:""}`,"aria-label":a,"aria-haspopup":"listbox","aria-expanded":p,"aria-controls":p?w:void 0,disabled:c,title:S?[S.label,S.detail].filter(Boolean).join(" · "):void 0,onClick:()=>f(C=>!C),onKeyDown:C=>{["ArrowDown","ArrowUp"].includes(C.key)&&(C.preventDefault(),f(!0))},children:[(S==null?void 0:S.icon)&&i.jsx("span",{className:"select__icon","aria-hidden":!0,children:S.icon}),i.jsxs("span",{className:"select__value",children:[(S==null?void 0:S.label)??"Choose…",(S==null?void 0:S.detail)&&u==="md"&&i.jsx("span",{className:"select__detail",children:S.detail})]}),i.jsx(On,{size:u==="sm"?13:15,className:"select__chevron","aria-hidden":!0})]}),p&&os.createPortal(i.jsx("div",{ref:v,id:w,role:"listbox","aria-label":a,className:"popover select-menu",style:m,onKeyDown:b,children:n.map(C=>i.jsxs("button",{type:"button",role:"option","aria-selected":C.value===e,tabIndex:-1,className:"select-menu__option",onClick:()=>j(C.value),onKeyDown:M=>{(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),j(C.value))},children:[C.icon&&i.jsx("span",{className:"select-menu__icon","aria-hidden":!0,children:C.icon}),i.jsxs("span",{className:"select-menu__text",children:[i.jsx("span",{className:"select-menu__label",children:C.label}),C.detail&&i.jsx("span",{className:"select-menu__detail",children:C.detail})]}),i.jsx(pr,{size:14,className:"select-menu__check","aria-hidden":!0})]},C.value))}),((P=y.current)==null?void 0:P.closest("dialog"))??document.body)]})}function cw(e){const n=[];for(const a of[...new Set(e)].sort()){const o=a.replaceAll("\\","/").split("/").filter(Boolean);let c=n;for(let u=0;u<o.length;u++){const h=u<o.length-1;let p=c.find(f=>f.name===o[u]&&!!f.children===h);p||(p={name:o[u],path:h?o.slice(0,u+1).join("/"):a,count:0,...h?{children:[]}:{}},c.push(p)),p.count++,p.children&&(c=p.children)}}const r=a=>a.map(o=>{var c;if(!o.children)return o;for(;((c=o.children)==null?void 0:c.length)===1&&o.children[0].children;){const u=o.children[0];o={...u,name:`${o.name}/${u.name}`}}return{...o,children:r(o.children)}}).sort((o,c)=>+!!c.children-+!!o.children||o.name.localeCompare(c.name,void 0,{numeric:!0}));return r(n)}function uw({name:e}){var o;const n=((o=e.split(".").at(-1))==null?void 0:o.toLowerCase())??"",r=/^(tsx?|jsx?|mjs|cjs|py|go|rs|css|html|vue|svelte)$/.test(n)?"code":/^(json|ya?ml|toml)$/.test(n)?"config":/^(svg|png|jpe?g|webp|ico)$/.test(n)?"image":"text",a=r==="code"?ro:r==="config"?n==="json"?qm:kp:r==="image"?Xm:Bl;return i.jsx(a,{size:14,className:`component-tree__icon component-tree__icon--${r}`,"aria-hidden":!0})}function b3({entries:e,selected:n,onSelect:r,expanded:a,depth:o=0}){const[c,u]=_.useState(80);return i.jsxs("ul",{className:"component-tree__list",children:[e.slice(0,c).map(h=>h.children?i.jsx(dw,{entry:h,selected:n,onSelect:r,expanded:a,depth:o},h.path):i.jsx("li",{children:i.jsxs("button",{type:"button",className:"component-tree__row","aria-pressed":n===h.path,onClick:()=>r(h.path),title:h.path,children:[i.jsx("span",{className:"component-tree__spacer"}),i.jsx(uw,{name:h.name}),i.jsx("span",{className:"component-tree__name",children:h.name})]})},h.path)),e.length>c&&i.jsx("li",{children:i.jsxs("button",{type:"button",className:"link-btn component-tree__more",onClick:()=>u(h=>h+80),children:["Show more (",e.length-c,")"]})})]})}function dw({entry:e,selected:n,onSelect:r,expanded:a,depth:o}){const[c,u]=_.useState(a??o===0),h=c?Zn:jp;return i.jsxs("li",{children:[i.jsxs("button",{type:"button",className:"component-tree__row component-tree__folder","aria-expanded":c,onClick:p=>{p.detail<=1&&u(f=>!f)},onDoubleClick:p=>{p.preventDefault(),u(!0)},title:e.path,children:[c?i.jsx(On,{size:12,"aria-hidden":!0}):i.jsx(Ni,{size:12,"aria-hidden":!0}),i.jsx(h,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"component-tree__name",children:e.name}),i.jsx("span",{className:"component-tree__count",children:e.count})]}),c&&i.jsx(b3,{entries:e.children,selected:n,onSelect:r,expanded:a,depth:o+1})]})}function hw({files:e,selected:n,onSelect:r,searching:a}){const o=_.useMemo(()=>cw(e),[e]),c=a?e.join("|"):"",[u,h]=_.useState({key:"",expanded:null,revision:0}),p=u.key===c?u.expanded:a?!0:null;return i.jsxs("div",{className:"component-tree",children:[i.jsxs("div",{className:"component-tree__toolbar",children:[i.jsxs("span",{children:[e.length," ",e.length===1?"file":"files"]}),i.jsx("button",{type:"button",className:"link-btn",onClick:()=>h(f=>({key:c,expanded:!0,revision:f.revision+1})),children:"Expand all"}),i.jsx("button",{type:"button",className:"link-btn",onClick:()=>h(f=>({key:c,expanded:!1,revision:f.revision+1})),children:"Collapse all"})]}),i.jsx("nav",{className:"component-tree__scroll","aria-label":"Component files",children:i.jsx(b3,{entries:o,selected:n,onSelect:r,expanded:p},`${u.revision}:${a}:${c}`)})]})}function pw(e,n){return n.filter(r=>r.path===e||e.startsWith(`${r.path.replace(/\/?$/,"")}/`)).sort((r,a)=>a.path.length-r.path.length)[0]}function fw({file:e,targets:n,onDone:r}){var y;const a=e.includes("/")?e.slice(0,e.lastIndexOf("/")):null,[o,c]=_.useState("file"),[u,h]=_.useState(((y=n[0])==null?void 0:y.id)??""),[p,f]=_.useState(!1),[m,g]=_.useState(null);return i.jsxs("form",{className:"move-form",onSubmit:async v=>{v.preventDefault(),f(!0),g(null);try{await Ue.assignComponent(o==="folder"&&a?a:e,u),r()}catch(w){g(ft(w)),f(!1)}},children:[i.jsxs("div",{className:"move-form__scope",role:"radiogroup","aria-label":"What to move",children:[i.jsxs("label",{children:[i.jsx("input",{type:"radio",checked:o==="file",onChange:()=>c("file")})," This file"]}),a&&i.jsxs("label",{title:a,children:[i.jsx("input",{type:"radio",checked:o==="folder",onChange:()=>c("folder")})," Whole folder"," ",i.jsxs("code",{children:[a,"/"]})]})]}),i.jsxs("div",{className:"move-form__row",children:[i.jsx(is,{className:"move-form__target",label:"Move to component",value:u,onChange:h,options:n.map(v=>({value:v.id,label:v.name}))}),i.jsx("button",{type:"submit",className:"btn btn--primary btn--xs",disabled:p||!u,children:p?"Moving…":"Move"}),i.jsx("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:r,disabled:p,children:"Cancel"})]}),m&&i.jsx("p",{className:"form-error",children:m})]})}function mw({node:e,targets:n=[],overrides:r=[],readOnly:a=!1}){const[o,c]=_.useState(null),[u,h]=_.useState(null),[p,f]=_.useState(""),[m,g]=_.useState("files"),[y,v]=_.useState(null),[w,S]=_.useState(30),j=p.trim().toLowerCase(),b=e.features.filter(V=>V.filePaths),P=b.filter(V=>[V.name,...V.filePaths??[],...(V.symbols??[]).map(K=>K.name)].some(K=>K.toLowerCase().includes(j))).sort((V,K)=>{var D,I;return Number((D=K.symbols)==null?void 0:D.some(B=>B.kind==="endpoint"))-Number((I=V.symbols)==null?void 0:I.some(B=>B.kind==="endpoint"))||V.name.localeCompare(K.name)}),C=e.filePaths.filter(V=>V.toLowerCase().includes(j)),M=m==="features"?P.length:C.length,z=b.reduce((V,K)=>{var D;return V+(((D=K.symbols)==null?void 0:D.filter(I=>I.kind==="endpoint").length)??0)},0),N=y&&C.includes(y)?y:null,L=N?pw(N,r):void 0;return i.jsxs("section",{className:"details__section component-contents","data-tone":"contents","aria-label":"Component contents",children:[i.jsxs(Tt,{children:[i.jsx(ro,{size:13,"aria-hidden":!0})," Component explorer"]}),i.jsxs("div",{className:"contents-tabs","aria-label":"Explore contents",children:[i.jsxs("button",{type:"button",className:`btn btn--xs ${m==="files"?"btn--primary":"btn--ghost"}`,"aria-pressed":m==="files",onClick:()=>g("files"),children:["Files ",i.jsx("span",{className:"count-pill",children:e.filePaths.length})]}),b.length>0&&i.jsxs("button",{type:"button",className:`btn btn--xs ${m==="features"?"btn--primary":"btn--ghost"}`,"aria-pressed":m==="features",onClick:()=>{g("features"),S(30)},children:["Modules ",i.jsx("span",{className:"count-pill",children:b.length})]})]}),i.jsxs("label",{className:"contents-search",children:[i.jsx(ta,{size:14,"aria-hidden":!0}),i.jsx("input",{className:"input","aria-label":"Search component contents",placeholder:m==="files"?"Find a file or folder…":"Find a module or route…",value:p,onChange:V=>{f(V.target.value),S(30)}})]}),M===0&&i.jsx("p",{className:"muted-text",children:j?"No matching contents.":m==="features"?"No recognized source modules. Use All files to explore supporting files.":"No mapped files."}),m==="features"?i.jsx("div",{className:"contents-modules",children:P.slice(0,w).map(V=>{var K,D,I,B,H;return i.jsxs("details",{className:"contents-module",open:j?!0:((K=V.symbols)==null?void 0:K.some(Y=>Y.kind==="endpoint"))||void 0,children:[i.jsxs("summary",{children:[i.jsx("span",{className:"contents-module__name",children:V.name}),i.jsxs("span",{className:"contents-module__count",children:[((D=V.symbols)==null?void 0:D.length)??0," findings"]})]}),i.jsxs("div",{className:"contents-module__body",children:[(I=V.filePaths)==null?void 0:I.map(Y=>i.jsx("p",{className:"mono contents-path",children:Y},Y)),i.jsx("p",{className:"fine-print",children:V.description}),!!((B=V.symbols)!=null&&B.length)&&i.jsx("ul",{className:"contents-symbols",children:[...V.symbols].sort((Y,ne)=>+(ne.kind==="endpoint")-+(Y.kind==="endpoint")||Y.line-ne.line).map((Y,ne)=>i.jsxs("li",{children:[i.jsx("span",{className:"contents-symbol__kind",children:Y.kind==="endpoint"?"Route":Y.kind}),i.jsx("code",{children:Y.name}),i.jsxs("span",{className:"contents-symbol__line",title:`Line ${Y.line}`,children:["L",Y.line]})]},`${Y.line}:${ne}`))}),V.inspection==="parsed"&&!((H=V.symbols)!=null&&H.length)&&i.jsx("p",{className:"fine-print",children:"No named functions, classes or supported route declarations found."}),V.inspection==="unsupported"&&i.jsx("p",{className:"fine-print",children:"File inventory only; code inspection currently supports JavaScript and TypeScript."}),V.inspection==="limited"&&i.jsx("p",{className:"fine-print",children:"Inspection limited by file size or scan limits. More declarations may exist."}),V.inspection==="unreadable"&&i.jsx("p",{className:"fine-print",children:"This file could not be inspected. Its path remains available."})]})]},V.id)})}):i.jsxs(i.Fragment,{children:[i.jsx(hw,{files:C,selected:N,searching:!!j,onSelect:V=>{v(V),c(null)}}),N&&i.jsxs("div",{className:"component-file-selection","aria-label":"Selected file",children:[i.jsx("strong",{className:"component-file-selection__name",children:N.split(/[\\/]/).at(-1)}),i.jsx("p",{className:"mono component-file-selection__path",children:N}),i.jsxs("div",{className:"component-file-selection__actions",children:[L&&i.jsx("span",{className:"tag",title:`You grouped ${L.path} here`,children:"Grouped by you"}),!a&&L&&i.jsxs("button",{type:"button",className:"link-btn",onClick:async()=>{h(null);try{await Ue.assignComponent(L.path,null)}catch(V){h(ft(V))}},children:[i.jsx(Ap,{size:12,"aria-hidden":!0})," Undo grouping"]}),!a&&n.length>0&&o!==N&&i.jsx("button",{type:"button",className:"link-btn",onClick:()=>c(N),children:"Move to component…"})]}),!a&&o===N&&i.jsx(fw,{file:N,targets:n,onDone:()=>c(null)},N)]})]}),u&&i.jsx("p",{className:"form-error",children:u}),m==="features"&&M>w&&i.jsxs("button",{type:"button",className:"btn btn--ghost btn--sm",onClick:()=>S(V=>V+30),children:["Show more (",M-w," remaining)"]}),m==="features"&&i.jsxs("p",{className:"fine-print",children:[z>0?`${z} route declarations · `:"","Source declarations, not verified behavior."]})]})}function gw(e){return e.renderTargets.length?"component":e.tables.length?"schema":e.endpoints.length?"api":"structure"}function Zh(e){try{const n=new URL(e.trim());return!["http:","https:"].includes(n.protocol)||!["localhost","127.0.0.1","[::1]"].includes(n.hostname)||n.username||n.password?null:n.href}catch{return null}}function xw(e,n){return`forma:preview:${JSON.stringify([e,n])}`}const _3=[{value:"desktop",label:"Desktop"},{value:"mobile",label:"Mobile",detail:"390px wide"}];function yw({node:e,project:n,historical:r,offline:a}){const[o,c]=_.useState(!1),u=r?"Return to the current map to preview current files.":n.mode!=="local"?"Connect a local folder to preview its components.":e.status==="removed"?"This component was removed from the current map.":a?"Reconnect to the local service to inspect this component.":null;return i.jsxs("section",{className:"details__section",children:[i.jsxs("button",{className:"btn",type:"button",onClick:()=>c(!0),children:[i.jsx(pa,{size:15})," Preview component"]}),i.jsx("p",{className:"fine-print",children:"Automatically preview the UI, schema, routes or logic in this component."}),i.jsx(ei,{wide:!0,open:o,onClose:()=>c(!1),title:`Preview · ${e.name}`,description:"Explore the current implementation. A preview does not verify that a component is complete.",children:u?i.jsx("p",{className:"callout callout--muted",children:u}):o&&i.jsx(vw,{node:e,project:n},`${n.id}:${e.id}`)})]})}function vw({node:e,project:n}){const[r,a]=_.useState(null),[o,c]=_.useState(null),[u,h]=_.useState(!0),[p,f]=_.useState(0),[m,g]=_.useState("structure"),[y,v]=_.useState("");_.useEffect(()=>{let b=!0;return h(!0),c(null),a(null),Ue.preview(n.id,e.id).then(P=>{b&&(a(P),g(gw(P)))}).catch(P=>{b&&c(ft(P))}).finally(()=>{b&&h(!1)}),()=>{b=!1}},[n.id,e.id,p]);const w=y.trim().toLowerCase(),S=(r==null?void 0:r.tables.filter(b=>`${b.name} ${b.file} ${b.fields.map(P=>P.name).join(" ")}`.toLowerCase().includes(w)))??[],j=(r==null?void 0:r.endpoints.filter(b=>`${b.method} ${b.path} ${b.file}`.toLowerCase().includes(w)))??[];return i.jsxs("div",{className:"component-preview",children:[r&&i.jsxs("div",{className:"preview-tabs","aria-label":"Preview views",children:[[{id:"component",label:"Component",icon:ns,count:r.renderTargets.length},{id:"schema",label:"Database schema",icon:Wl,count:r.tables.length},{id:"api",label:"API routes",icon:Im,count:r.endpoints.length},{id:"structure",label:"Structure",icon:s1,count:-1}].filter(b=>b.count!==0).map(b=>i.jsxs("button",{className:"btn",type:"button","aria-pressed":m===b.id,onClick:()=>{g(b.id),v("")},children:[i.jsx(b.icon,{size:15}),b.label,b.count>0&&i.jsx("span",{className:"preview-count",children:b.count})]},b.id)),i.jsx("button",{className:"icon-btn",type:"button","aria-label":"Refresh file inspection",disabled:u,onClick:()=>f(b=>b+1),children:i.jsx(gn,{size:15})})]}),u&&i.jsxs("p",{className:"muted-text",role:"status",children:[i.jsx(Ut,{size:14,className:"spin"})," Inspecting component files…"]}),o&&i.jsxs("p",{className:"form-error",role:"alert",children:[o," ",i.jsx("button",{className:"link-btn",onClick:()=>f(b=>b+1),children:"Retry"})]}),r&&i.jsxs("p",{className:"fine-print",children:["Current files · inspected ",new Date(r.inspectedAt).toLocaleTimeString()," · ",r.inspectedFiles," files read.",r.limited&&" Inspection limits reached; results are partial.",r.skippedFiles>0&&` ${r.skippedFiles} files could not be read or exceeded 256 KiB.`]}),r&&(m==="component"?i.jsx(ww,{node:e,project:n,data:r},`${p}:${e.id}`):m==="structure"?i.jsx(kw,{node:e,data:r}):i.jsxs(i.Fragment,{children:[i.jsx("p",{className:"muted-text",children:m==="schema"?"Structure from SQL CREATE TABLE and Prisma model declarations. Migration files may describe different versions; this is not a live database or its records.":"Literal JavaScript/TypeScript route declarations. Mount prefixes, dynamic routes, request bodies and response shapes are not resolved. No requests are sent."}),i.jsx("input",{className:"input","aria-label":m==="schema"?"Filter tables and fields":"Filter API routes",placeholder:m==="schema"?"Filter tables or fields…":"Filter routes…",value:y,onChange:b=>v(b.target.value)}),m==="schema"?i.jsx("div",{className:"schema-grid",children:S.map((b,P)=>i.jsxs("article",{className:"schema-card",children:[i.jsxs("header",{children:[i.jsx(Wl,{size:16}),i.jsx("h3",{children:b.name}),i.jsx("span",{children:b.kind==="prisma"?"Model":"Table"})]}),i.jsxs("p",{className:"preview-source",children:[b.file,":",b.line]}),i.jsxs("table",{children:[i.jsxs("caption",{className:"sr-only",children:["Fields in ",b.name]}),i.jsx("thead",{children:i.jsxs("tr",{children:[i.jsx("th",{children:"Field"}),i.jsx("th",{children:"Type"}),i.jsx("th",{children:"Key / relation"})]})}),i.jsx("tbody",{children:b.fields.map((C,M)=>i.jsxs("tr",{children:[i.jsxs("td",{children:[C.name,C.optional&&i.jsx("span",{title:"Optional / nullable",children:" ?"})]}),i.jsx("td",{children:C.type}),i.jsxs("td",{children:[C.primary&&i.jsx("strong",{children:"PK "}),C.references&&i.jsxs("span",{children:["→ ",C.references]})]})]},M))})]}),b.fields.length===0&&i.jsx("p",{className:"muted-text",children:"No supported field declarations found."})]},`${b.file}:${b.line}:${P}`))}):i.jsx("div",{className:"endpoint-list",children:j.map((b,P)=>i.jsxs("article",{className:"endpoint-row",children:[i.jsxs("div",{children:[i.jsx("span",{className:"endpoint-method",children:b.method}),i.jsx("code",{children:b.path})]}),i.jsxs("p",{className:"preview-source",children:[b.file,":",b.line]})]},`${b.file}:${b.line}:${P}`))}),r&&(m==="schema"?S:j).length===0&&i.jsxs("div",{className:"preview-empty",children:[i.jsx("h3",{children:w?"No matches":m==="schema"?"No supported schema declarations found":"No supported API routes found"}),i.jsx("p",{children:w?"Try a different search.":m==="schema"?"Map your .sql or .prisma files to this component. Other ORM formats and live database connections need additional setup.":"Kalvyr currently reads literal app/router/server/api/fastify route calls in JavaScript and TypeScript. Other frameworks may not expose routes in this format."})]})]}))]})}function kw({node:e,data:n}){return i.jsxs("div",{className:"component-structure",children:[i.jsxs("div",{className:"preview-explanation",children:[i.jsx(s1,{size:24}),i.jsxs("div",{children:[i.jsx("h3",{children:n.frontendFiles.length?"Component structure":"Logic and supporting files"}),i.jsx("p",{children:n.frontendFiles.length?"These are the modules behind this component. Automatic rendering currently supports exported React components in TSX and JSX files.":"This component has no detected standalone screen. Its implementation is shown below automatically; there is no page URL to enter."})]})]}),i.jsx("p",{className:"muted-text",children:e.description}),n.modules.map(r=>i.jsxs("article",{className:"structure-module",children:[i.jsxs("header",{children:[i.jsx(ro,{size:16}),i.jsx("h3",{children:r.file})]}),i.jsx("div",{className:"structure-symbols",children:r.symbols.filter(a=>a.kind!=="endpoint").map((a,o)=>i.jsxs("span",{title:`Line ${a.line}`,children:[i.jsx("small",{children:a.kind})," ",a.name]},o))}),r.symbols.length===0&&i.jsx("p",{className:"fine-print",children:"No named functions, classes or routes were detected in this module."}),r.imports.length>0&&i.jsxs("details",{children:[i.jsxs("summary",{children:["Uses ",r.imports.length," local modules"]}),i.jsx("ul",{className:"path-list",children:r.imports.map(a=>i.jsxs("li",{children:["→ ",a]},a))})]})]},r.file)),i.jsxs("details",{open:!n.modules.length,children:[i.jsxs("summary",{children:["All mapped files (",e.filePaths.length,")"]}),i.jsx("ul",{className:"path-list",children:e.filePaths.map(r=>i.jsx("li",{children:r},r))}),!e.filePaths.length&&i.jsx("p",{className:"muted-text",children:"No implementation files are mapped yet."})]}),i.jsx("p",{className:"fine-print",children:"Structure comes from source declarations. This view does not execute backend functions."})]})}function ww({node:e,project:n,data:r}){var z;const[a,o]=_.useState(0),[c,u]=_.useState(""),[h,p]=_.useState(""),[f,m]=_.useState(!0),[g,y]=_.useState(0),[v,w]=_.useState("desktop"),[S,j]=_.useState([]),[b,P]=_.useState(((z=r.renderTargets[0])==null?void 0:z.defaultContext)??-1),C=r.renderTargets[a],M=C&&b>=0?C.contexts[b]??null:null;return _.useEffect(()=>{if(!C)return;let N=!0;m(!0),p(""),u(""),j([]);const L=document.documentElement.dataset.theme==="light"?"light":"dark";return Ue.renderPreview(n.id,e.id,C,M).then(V=>{N&&(u(`${V.url}?theme=${L}`),j(V.sampleProps??[]))}).catch(V=>{N&&p(ft(V))}).finally(()=>{N&&m(!1)}),()=>{N=!1}},[n.id,e.id,C,M,g]),i.jsxs("div",{className:"running-preview",children:[i.jsxs("div",{className:"preview-toolbar",children:[i.jsxs("label",{className:"preview-export",children:["Show ",i.jsx(is,{label:"Component to render",value:String(a),onChange:N=>{var V;const L=Number(N);o(L),P(((V=r.renderTargets[L])==null?void 0:V.defaultContext)??-1)},options:r.renderTargets.map((N,L)=>({value:String(L),label:N.name,detail:N.file}))})]}),C&&C.contexts.length>0&&i.jsxs("label",{children:["Screen ",i.jsx(is,{label:"Screen to show the component in",value:String(b),onChange:N=>P(Number(N)),options:[...C.contexts.map((N,L)=>({value:String(L),label:`Inside ${N.name}${L===C.contexts.length-1?" (app)":""}`,detail:N.file})),{value:"-1",label:`${C.name} alone`}]})]}),i.jsxs("label",{children:["Viewport ",i.jsx(is,{label:"Viewport",value:v,onChange:w,options:_3})]}),i.jsxs("button",{className:"btn",disabled:f,onClick:()=>y(N=>N+1),children:[i.jsx(gn,{size:14})," Reload"]}),c&&i.jsxs("a",{className:"btn",href:c,target:"_blank",rel:"noopener noreferrer",children:[i.jsx(a1,{size:14})," Open in new tab"]})]}),i.jsxs("p",{className:"fine-print",children:[M?i.jsxs(i.Fragment,{children:["Actual source code · ",i.jsx("strong",{children:C==null?void 0:C.name})," is outlined inside the ",M.name," screen, rendered with ",i.jsx("strong",{children:"sample values"})," generated from prop types. Text and lists are placeholders, not your app’s data."]}):S.length?i.jsxs(i.Fragment,{children:["Actual source component · rendered in isolation with ",i.jsx("strong",{children:"sample values"})," generated from its prop types (",S.join(", "),"). Text and lists are placeholders, not your app’s data; buttons that call back to a parent do nothing."]}):i.jsx(i.Fragment,{children:"Actual source component · rendered automatically in isolation. App providers are not supplied."})," This runs frontend code; interactions can call your app’s services."]}),f&&i.jsxs("div",{className:"preview-empty",role:"status",children:[i.jsx(Ut,{className:"spin",size:24}),i.jsxs("h3",{children:["Preparing ",C==null?void 0:C.name,"…"]}),i.jsx("p",{children:"Starting a temporary local renderer. No URL needed."})]}),h&&i.jsxs("p",{className:"form-error",role:"alert",children:[h," ",i.jsx("button",{className:"link-btn",onClick:()=>y(N=>N+1),children:"Retry"})]}),c&&i.jsx("div",{className:"preview-frame-stage",children:i.jsx("iframe",{className:`preview-frame preview-frame--${v}`,title:`${C==null?void 0:C.name} component preview`,src:c,sandbox:"allow-scripts allow-same-origin allow-forms",referrerPolicy:"no-referrer"},c)}),i.jsxs("details",{className:"preview-advanced",children:[i.jsx("summary",{children:"Advanced: use a running app page instead"}),i.jsx(jw,{node:e,project:n,files:r.frontendFiles})]})]})}function jw({node:e,project:n,files:r}){const a=xw(n.rootPath,e.id),[o,c]=_.useState(()=>{try{return Zh(localStorage.getItem(a)??"")??""}catch{return""}}),[u,h]=_.useState(""),[p,f]=_.useState(""),[m,g]=_.useState(0),[y,v]=_.useState("desktop");function w(S){S.preventDefault();const j=Zh(o);if(!j){f("Enter an http:// or https:// address on localhost, 127.0.0.1 or [::1], without credentials.");return}if(new URL(j).origin===window.location.origin){f("This is Kalvyr’s own address. Enter the port of the app you want to preview, or open it in a separate tab.");return}f(""),h(j),g(b=>b+1);try{localStorage.setItem(a,j)}catch{}}return i.jsxs("div",{className:"running-preview",children:[i.jsx("p",{className:"muted-text",children:"Start your project’s development server, then enter the page or component playground URL. Kalvyr remembers the address for this component. Individual UI pieces need a page or playground that renders them."}),i.jsxs("form",{className:"preview-address",onSubmit:w,children:[i.jsxs("label",{className:"field",children:[i.jsx("span",{className:"field__label",children:"Local preview address"}),i.jsx("input",{className:"input",type:"url",placeholder:"http://localhost:3000/dashboard",value:o,onChange:S=>c(S.target.value),required:!0})]}),i.jsxs("button",{className:"btn btn--primary",type:"submit",children:[i.jsx(pa,{size:15})," Load preview"]})]}),p&&i.jsx("p",{className:"form-error",role:"alert",children:p}),u?i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"preview-toolbar",children:[i.jsxs("label",{children:["Viewport ",i.jsx(is,{label:"Viewport",value:y,onChange:v,options:_3})]}),i.jsxs("button",{className:"btn",type:"button",onClick:()=>g(S=>S+1),children:[i.jsx(gn,{size:14})," Reload"]}),i.jsxs("a",{className:"btn",href:u,target:"_blank",rel:"noopener noreferrer",children:[i.jsx(a1,{size:14})," Open in new tab"]}),i.jsx("button",{className:"btn",type:"button",onClick:()=>h(""),children:"Stop"})]}),i.jsx("p",{className:"fine-print",children:"This is an interactive page; actions inside it can change your app’s data. If it is blank or refuses to load, check the server and address or open it in a new tab. Embedded pages may restrict framing, sign-in or browser storage."}),i.jsx("div",{className:"preview-frame-stage",children:i.jsx("iframe",{className:`preview-frame preview-frame--${y}`,title:`${e.name} running page`,src:u,sandbox:"allow-scripts allow-forms",referrerPolicy:"no-referrer"},`${u}:${m}`)})]}):i.jsxs("div",{className:"preview-empty",children:[i.jsx(ns,{size:28}),i.jsx("h3",{children:"Connect a running page"}),i.jsx("p",{children:"Use a route that shows this component, or a Storybook / component playground URL. Loading starts only when you choose Load preview."})]}),r.length>0&&i.jsxs("details",{children:[i.jsxs("summary",{children:["Frontend files in this component (",r.length,")"]}),i.jsx("ul",{className:"path-list",children:r.map(S=>i.jsx("li",{children:S},S))})]})]})}function bw(e){const{tab:n,onTabChange:r,state:a,nodes:o,selectedNodeId:c}=e,u=c?o.find(f=>f.id===c):void 0,h=u?["details","changes","review","activity"]:["changes","review","activity"],p=n==="details"&&!u?"changes":n;return i.jsxs("aside",{className:"panel","aria-label":"Details",children:[i.jsxs("div",{className:"panel__tabs",role:"tablist","aria-label":"Panel",children:[h.map(f=>i.jsx("button",{id:`panel-tab-${f}`,type:"button",role:"tab","aria-selected":p===f,"aria-controls":`panel-pane-${f}`,className:"panel__tab",onClick:()=>r(f),children:f==="details"?"Component":f==="changes"?"Catch up":f==="review"?"Review":"Activity"},f)),i.jsx("span",{className:"panel__tabs-spacer"}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Close panel",onClick:e.onClose,children:i.jsx(Cn,{size:15})})]}),i.jsx("div",{className:"panel__scroll",role:"tabpanel",id:`panel-pane-${p}`,"aria-labelledby":`panel-tab-${p}`,tabIndex:0,children:p==="changes"?e.viewingSnapshot?i.jsx("div",{className:"details",children:i.jsx("p",{className:"muted-text",children:"Return to the current map to review changes since your last visit."})}):i.jsx(Qk,{...e.recap}):p==="review"?e.viewingSnapshot?i.jsx("p",{className:"muted-text",children:"Return to the current map to review current Git changes."}):e.source==="service"&&a.project.mode==="local"?i.jsx(Jk,{projectId:a.project.id,unavailable:e.recap.unavailable},a.project.id):i.jsx("p",{className:"muted-text",children:"Connect a local project to review its Git changes."}):u&&p==="details"?i.jsx(Sw,{...e,node:u}):i.jsx(zw,{...e,activities:u?a.activities.filter(f=>f.nodeId===u.id):a.activities,nodeName:u==null?void 0:u.name})})]})}const _w={sample:"Sample data",detected:"Detected in your project files","agent-proposed":"Proposed by an agent — no code detected yet"};function Sw({node:e,nodes:n,edges:r,agents:a,state:o,onSelectNode:c,showTechnical:u,viewingSnapshot:h,recap:p,source:f}){const m=q5(e),g=N=>`${m.noun}${N===1?"":"s"}`,y=K5(m),v=Z5(m),w=Fk(e.id,n,r),S=$k(e.id,n,r),j=Bk(e.id,a),b=lw(o.activities,e),P=P5(e,5),C=N=>{var L;return N&&((L=a.find(V=>V.id===N))==null?void 0:L.name)||"An agent"},M=[...e.evidence].sort((N,L)=>L.observedAt.localeCompare(N.observedAt)),z=e.parentId?n.find(N=>N.id===e.parentId):void 0;return i.jsxs("div",{className:"details",children:[i.jsxs("header",{className:"details__head",children:[z&&i.jsxs("button",{type:"button",className:"link-btn details__parent",onClick:()=>c(z.id),children:[z.name," /"]}),i.jsx("h2",{className:"details__title",children:e.name}),i.jsxs("div",{className:"details__chips",children:[i.jsx(k7,{status:e.status}),i.jsx(k1,{confidence:e.statusConfidence,prefix:"Status"})]}),i.jsx("p",{className:"details__purpose",children:e.description}),e.parts&&e.parts.length>0&&i.jsx("ul",{className:"details__parts","aria-label":"Parts of this component",children:e.parts.map(N=>i.jsx("li",{title:[...N.functions??[],...N.files].join(`
|
|
672
|
+
`),children:N.name},N.name))}),e.describedBy&&i.jsxs("p",{className:"fine-print",children:["Description interpreted by ",e.describedBy==="codex"?"Codex":"Claude Code","; check it against your product."]}),e.status==="removed"&&e.removedReason&&i.jsxs("p",{className:"callout callout--muted",children:[i.jsx(_p,{size:14,"aria-hidden":!0})," Removed from the plan: ",e.removedReason]})]}),i.jsx(Uk,{node:e}),i.jsx(mw,{node:e,readOnly:h||o.project.mode!=="local"||e.origin!=="detected",overrides:o.project.overrides,targets:[...n.filter(N=>N.origin==="detected"&&N.status!=="removed"&&N.id!==e.id).map(N=>({id:N.id,name:N.name})),...(o.project.componentKinds??[]).filter(N=>N.id!==e.id&&!n.some(L=>L.id===N.id&&L.status!=="removed")).map(N=>({id:N.id,name:`New: ${N.name}`}))]},`contents:${o.project.id}:${e.id}`),i.jsx(yw,{node:e,project:o.project,historical:h,offline:f!=="service"},`preview:${o.project.id}:${e.id}`),i.jsxs("section",{className:"details__section","data-tone":"evidence",children:[i.jsx(Tt,{children:"What evidence exists?"}),i.jsx(Vk,{node:e,onRunChecks:h?void 0:p.onRunChecks}),Q5(e,m)&&i.jsxs("div",{className:"progress","aria-label":v,children:[[{key:"code",label:"Code detected",value:y}].map(N=>i.jsxs("div",{className:`progress__measure progress__measure--${N.key}`,children:[i.jsx("span",{className:"progress__label",children:N.label}),i.jsx("div",{className:"progress__bar",children:i.jsx("span",{style:{width:`${N.value/m.total*100}%`}})}),i.jsxs("span",{className:"progress__count",children:[N.value," / ",m.total]})]},N.key)),i.jsxs("span",{className:"progress__text",children:[v,m.notStarted>0&&` ${m.notStarted} ${g(m.notStarted)} not started.`]})]}),e.features.length>0&&e.origin!=="detected"&&i.jsx("ul",{className:"feature-list",children:e.features.map(N=>i.jsxs("li",{className:"feature-list__item","data-removed":N.status==="removed"||void 0,children:[i.jsx("span",{className:"status-dot","data-status":N.status,"aria-hidden":!0}),i.jsx("span",{className:"feature-list__name",children:N.name}),i.jsx("span",{className:"feature-list__status",children:as[N.status]})]},N.id))})]}),i.jsxs("section",{className:"details__section","data-tone":"agents",children:[i.jsx(Tt,{children:"Agents"}),h?i.jsx("p",{className:"muted-text",children:"Agent positions are not recorded in history snapshots."}):j.length===0?i.jsx("p",{className:"muted-text",children:"No agent is reported working here."}):i.jsx("ul",{className:"agent-list",children:j.map(N=>i.jsx(W1,{agent:N,nodeId:e.id},N.id))})]}),i.jsxs("div",{className:"details__split",children:[i.jsxs("section",{className:"details__section","data-tone":"code",children:[i.jsxs(Tt,{children:[i.jsx(Ei,{size:13,"aria-hidden":!0})," Code detected"]}),e.implemented.length?i.jsx("ul",{className:"bullet-list bullet-list--done",children:e.implemented.map(N=>i.jsx("li",{children:N},N))}):i.jsx("p",{className:"muted-text",children:"Nothing yet."})]}),i.jsxs("section",{className:"details__section","data-tone":"attention",children:[i.jsxs(Tt,{children:[i.jsx(o1,{size:13,"aria-hidden":!0})," Needs attention"]}),e.pending.length?i.jsx("ul",{className:"bullet-list",children:e.pending.map(N=>i.jsx("li",{children:N},N))}):i.jsx("p",{className:"muted-text",children:"No remaining work is recorded. This is not proof that the feature is complete."})]})]}),i.jsxs("section",{className:"details__section","data-tone":"connections",children:[i.jsx(Tt,{children:"Connections"}),i.jsx(Gh,{icon:i.jsx(Tm,{size:13,"aria-hidden":!0}),label:"Used by",empty:"Nothing depends on this yet.",items:w,onSelect:c}),i.jsx(Gh,{icon:i.jsx(ea,{size:13,"aria-hidden":!0}),label:"Relies on",empty:"No dependencies recorded.",items:S,onSelect:c})]}),i.jsxs("section",{className:"details__section","data-tone":"evidence",children:[i.jsx(Tt,{aside:i.jsx("span",{className:"muted-text",children:M.length}),children:"Evidence"}),M.length===0?i.jsx("p",{className:"muted-text",children:"No evidence yet — status is based on the plan only."}):i.jsx("ul",{className:"evidence-list",children:M.slice(0,u?void 0:5).map(N=>i.jsx(Cw,{e:N,showTechnical:u},N.id))}),!u&&M.length>5&&i.jsxs("p",{className:"muted-text",children:["+",M.length-5," more — enable technical details in Settings to see all."]}),i.jsx("p",{className:"fine-print",children:"Test and build results are reported evidence. They do not establish coverage of every part or prove that a feature meets its requirements."})]}),(b.length>0||P.length>0)&&i.jsxs("section",{className:"details__section","data-tone":"changes",children:[i.jsx(Tt,{children:"What changed?"}),P.length>0&&i.jsx("ul",{className:"edit-list","aria-label":"Recent edits",children:P.map(N=>i.jsxs("li",{className:"edit-list__item",children:[i.jsx("span",{className:"edit-list__part",title:N.detail??void 0,children:N.part}),N.note&&i.jsx("span",{className:"edit-list__note",children:N.note}),i.jsxs("span",{className:"edit-list__meta",children:[C(N.agentId)," · ",i.jsx("time",{dateTime:N.at,title:_t(N.at),children:it(N.at)})]})]},`${N.at}:${N.part}`))}),b.length>0&&i.jsx(j3,{activities:b,nodes:n,agents:a,limit:4,hideNode:!0,files:e.filePaths})]}),i.jsx("section",{className:"details__section details__section--meta",children:i.jsxs("dl",{className:"meta-grid",children:[i.jsx("dt",{children:"Origin"}),i.jsx("dd",{children:_w[e.origin]}),i.jsx("dt",{children:"Category"}),i.jsx("dd",{className:"cap",children:e.category}),i.jsx("dt",{children:"Updated"}),i.jsx("dd",{title:_t(e.updatedAt),children:it(e.updatedAt)})]})}),u&&i.jsxs("section",{className:"details__section",children:[i.jsxs(Tt,{children:[i.jsx(ro,{size:13,"aria-hidden":!0})," Technical details"]}),i.jsxs("dl",{className:"meta-grid",children:[i.jsx("dt",{children:"Node id"}),i.jsx("dd",{className:"mono",children:e.id}),i.jsx("dt",{children:"Created"}),i.jsx("dd",{children:_t(e.createdAt)})]})]})]})}function Gh({icon:e,label:n,empty:r,items:a,onSelect:o}){return i.jsxs("div",{className:"link-group",children:[i.jsxs("div",{className:"link-group__label",children:[e," ",n]}),a.length===0?i.jsx("p",{className:"muted-text",children:r}):i.jsx("ul",{className:"link-list",children:a.map(({edge:c,node:u})=>i.jsx("li",{children:i.jsxs("button",{type:"button",className:"link-row",onClick:()=>o(u.id),children:[i.jsx("span",{className:"status-dot","data-status":u.status,"aria-hidden":!0}),i.jsx("span",{className:"link-row__name",children:u.name}),i.jsxs("span",{className:"link-row__kind",children:[c.kind.replace("-"," "),c.state==="planned"?" · planned":""]})]})},c.id))})]})}const Nw={"file-exists":"Files found","file-changed":"Files changed","build-passed":"Build passed","build-failed":"Build failed","test-passed":"Tests passed","test-failed":"Tests failed","typecheck-passed":"Type check passed","typecheck-failed":"Type check failed","agent-claim":"Agent claim",plan:"Plan",sample:"Sample"};function Cw({e,showTechnical:n}){const r=Ok(e)?"ok":e.kind==="test-failed"||e.kind==="build-failed"||e.kind==="typecheck-failed"?"bad":e.kind==="agent-claim"?"claim":"neutral";return i.jsxs("li",{className:"evidence","data-tone":r,"data-kind":e.kind,children:[i.jsx("span",{className:"evidence__kind",children:Nw[e.kind]}),i.jsx("span",{className:"evidence__summary",children:e.summary}),i.jsxs("span",{className:"evidence__meta",children:[i.jsx("time",{dateTime:e.observedAt,title:_t(e.observedAt),children:it(e.observedAt)}),e.kind==="agent-claim"&&i.jsx("span",{title:"Agent statements are not proof of completion.",children:"unverified"}),n&&e.filePath&&i.jsx("span",{className:"mono",children:e.filePath})]})]})}function Ew(e,n){const r=u=>u.map(h=>n.get(h)??"an unknown component").join(", "),a=Xr(e),o=(e.workingNodeIds??[]).filter(u=>!a.includes(u));return`${a.length?`${e.locationIsHeld?"Last location":"Current component"}: ${r(a)}`:e.outsideMap??"Location not determined"}${o.length?` · Earlier work: ${r(o)}`:""}`}function W1({agent:e,names:n,nodeId:r}){var c,u;const a=r??Xr(e)[0],o=a?Nn(e,a):null;return i.jsxs("li",{className:"agent-row",style:{"--agent-color":e.color},children:[i.jsx("span",{className:"agent-row__avatar","aria-hidden":!0,children:i.jsx(Gt,{kind:e.kind,size:15})}),i.jsxs("div",{className:"agent-row__body",children:[i.jsxs("div",{className:"agent-row__top",children:[i.jsx("span",{className:"agent-row__name",children:e.name}),i.jsx("span",{className:"agent-row__state","data-state":e.state,children:o!=null&&o.earlier?o.action:fa(e)}),e.isSample&&i.jsx("span",{className:"mode-badge mode-badge--sample",children:"sample"})]}),i.jsxs("p",{className:"agent-row__activity",children:[(o==null?void 0:o.earlier)&&"Current activity elsewhere: ",e.activity]}),e.message&&i.jsxs("blockquote",{className:"agent-row__message",title:"The agent's latest narration from its session log; not verified.",children:[e.message,e.messageAt&&i.jsx("span",{className:"agent-row__message-time",children:it(e.messageAt)})]}),!!((c=e.plan)!=null&&c.length)&&i.jsx("ol",{className:"agent-plan","aria-label":"The agent's plan",children:e.plan.map((h,p)=>i.jsx("li",{"data-status":h.status,children:h.step},p))}),e.toolName&&i.jsxs("p",{className:"fine-print",children:["Tool: ",e.toolName]}),!!((u=e.recentFilePaths)!=null&&u.length)&&i.jsxs("details",{className:"work-files",children:[i.jsxs("summary",{children:["Last observed files (",e.recentFilePaths.length,")"]}),i.jsx("ul",{className:"path-list",children:e.recentFilePaths.map(h=>i.jsx("li",{className:"mono",children:h},h))})]}),i.jsxs("div",{className:"agent-row__meta",children:[n&&e.state!=="disconnected"&&i.jsx("span",{children:Ew(e,n)}),o&&e.state!=="disconnected"&&i.jsx("span",{title:o.evidence,children:o.locationLabel}),i.jsxs("span",{children:[i.jsx(Gr,{size:11,"aria-hidden":!0})," ",it(e.lastSeenAt)]}),e.source==="local-session"&&i.jsx("span",{children:"Local session"})]})]})]})}function zw({activities:e,nodes:n,agents:r,onSelectNode:a,nodeName:o}){return i.jsxs("div",{className:"details",children:[o&&i.jsxs("p",{className:"muted-text panel__context",children:["Showing activity for ",o]}),e.length===0?i.jsx(w1,{icon:i.jsx(Gr,{size:18}),title:"No activity yet",children:"Changes appear here as your project and agents report them."}):i.jsx(j3,{activities:e,nodes:n,agents:r,onSelectNode:a,limit:60,hideNode:!!o})]})}function Mw({initialPath:e,onNavigate:n,disabled:r}){const[a,o]=_.useState(null),[c,u]=_.useState(!1),[h,p]=_.useState(null),[f,m]=_.useState(""),g=_.useRef(0),y=_.useRef(e),v=_.useRef(n);v.current=n;async function w(j){const b=++g.current;u(!0),p(null);try{const P=await Ue.browseFolders(j);if(b!==g.current)return;o(P),m(""),v.current(P.path)}catch(P){b===g.current&&p(ft(P))}finally{b===g.current&&u(!1)}}_.useEffect(()=>(w(y.current.trim()||void 0),()=>{g.current++}),[]);const S=(a==null?void 0:a.folders.filter(j=>j.name.toLowerCase().includes(f.toLowerCase())))??[];return i.jsxs("section",{className:"folder-browser","aria-label":"Browse project folders","aria-busy":c,children:[i.jsxs("div",{className:"folder-browser__toolbar",children:[i.jsxs("button",{type:"button",className:"btn btn--ghost",disabled:c||r||!(a!=null&&a.parent),onClick:()=>void w((a==null?void 0:a.parent)??void 0),"aria-label":"Go to parent folder",children:[i.jsx(cp,{size:15,"aria-hidden":!0})," Up"]}),((a==null?void 0:a.locations)??[{name:"Home",path:void 0}]).map(j=>i.jsx("button",{type:"button",className:"chip",disabled:c||r,onClick:()=>void w(j.path),children:j.name},j.name))]}),a&&i.jsx("p",{className:"folder-browser__path",children:a.path}),i.jsxs("label",{className:"field",children:[i.jsx("span",{className:"field__label",children:"Find a folder here"}),i.jsx("input",{className:"input",placeholder:"Filter folders in this location…",value:f,onChange:j=>m(j.target.value),onKeyDown:j=>{j.key==="Enter"&&j.preventDefault()},disabled:c||r||!a})]}),h&&i.jsx("p",{className:"form-error",role:"alert",children:h}),i.jsxs("div",{className:"folder-browser__list","aria-label":"Folders",children:[c?i.jsxs("p",{role:"status",children:[i.jsx(Ut,{size:15,className:"spin","aria-hidden":!0})," Opening folder…"]}):S.map(j=>i.jsxs("button",{type:"button",className:"folder-browser__folder",disabled:r,onClick:()=>void w(j.path),children:[i.jsx(jp,{size:16,"aria-hidden":!0}),i.jsx("span",{children:j.name}),i.jsx(Ni,{size:14,"aria-hidden":!0})]},j.path)),!c&&a&&!S.length&&i.jsx("p",{role:"status",children:f?"No matching folders.":"No subfolders. You can connect this folder."})]}),(a==null?void 0:a.truncated)&&i.jsx("p",{className:"field__hint",children:"This large folder is only partly listed. Enter a full path above to reach another folder."}),i.jsx("p",{className:"field__hint",children:"Open a folder to select it, then choose Connect & scan."})]})}function Aw(){return i.jsxs("p",{className:"form-note form-note--warn",role:"note",children:[i.jsx(ss,{size:14,"aria-hidden":!0})," The local Kalvyr service is not running. Start it with"," ",i.jsx("code",{children:"npm run dev"}),", then try again."]})}function Pw({message:e}){return e?i.jsxs("p",{className:"form-error",role:"alert",children:[i.jsx(ss,{size:14,"aria-hidden":!0})," ",e]}):null}function Tw({open:e,onClose:n,onSuccess:r,serviceAvailable:a,recentPaths:o,initialPath:c}){const[u,h]=_.useState(""),[p,f]=_.useState(!1),[m,g]=_.useState(!1),[y,v]=_.useState(null);_.useEffect(()=>{e&&(f(!1),v(null),g(!1),c&&h(c))},[e,c]);async function w(S){S.preventDefault();const j=u.trim();if(!j){v("Enter the folder path of a local project.");return}g(!0),v(null);try{const b=await Ue.connect({path:j});r(b.state)}catch(b){v(b instanceof wi&&b.code==="PATH_NOT_FOUND"?`${b.message} Check the path and that the folder exists on this computer.`:ft(b))}finally{g(!1)}}return i.jsx(ei,{open:e,onClose:n,busy:m,title:"Connect a local project",description:"Kalvyr scans the folder on this computer to map its features. Nothing is uploaded.",footer:i.jsxs(i.Fragment,{children:[i.jsx("button",{type:"button",className:"btn btn--ghost",onClick:n,disabled:m,children:"Cancel"}),i.jsxs("button",{type:"submit",form:"connect-form",className:"btn btn--primary",disabled:m||!a,children:[m?i.jsx(Ut,{size:15,className:"spin","aria-hidden":!0}):i.jsx(Zn,{size:15,"aria-hidden":!0}),m?"Scanning…":"Connect & scan"]})]}),children:i.jsxs("form",{id:"connect-form",onSubmit:w,className:"form",children:[i.jsxs("label",{className:"field",children:[i.jsx("span",{className:"field__label",children:"Project folder"}),i.jsx("input",{className:"input input--mono",value:u,onChange:S=>{h(S.target.value),f(!1)},placeholder:"C:\\Projects\\my-app or ~/code/my-app","data-autofocus":!0,spellCheck:!1,autoComplete:"off",disabled:m,"aria-invalid":!!y}),i.jsx("span",{className:"field__hint",children:"Absolute path, or one starting with ~. Large repositories can take a moment."})]}),i.jsxs("button",{type:"button",className:"btn folder-browse-toggle","aria-expanded":p,onClick:()=>f(!p),disabled:m||!a,children:[i.jsx(Zn,{size:15,"aria-hidden":!0})," ",p?"Hide folder browser":"Browse folders…"]}),p&&i.jsx(Mw,{initialPath:u,disabled:m,onNavigate:S=>{h(S),v(null)}}),o.length>0&&i.jsxs("div",{className:"field",children:[i.jsx("span",{className:"field__label",children:"Recent"}),i.jsx("div",{className:"chip-row",children:o.map(S=>i.jsx("button",{type:"button",className:"chip chip--mono",onClick:()=>{h(S),f(!1)},disabled:m,children:S},S))})]}),!a&&i.jsx(Aw,{}),i.jsx(Pw,{message:y})]})})}const Lw={"project-connected":Zm,"plan-created":Xn,"agent-working":Zr,"agent-session":Zr,"file-change":Km,"status-changed":gp,"node-added":Au,"node-removed":yp,"node-restructured":bp,verification:Ei,note:y5};function Iw(e,n){const r=`${n}: `;if(!e.startsWith(r))return e;const a=e.slice(r.length);return a.charAt(0).toUpperCase()+a.slice(1)}function Rw({activities:e,nodes:n,agents:r,onSelectNode:a,limit:o,dense:c}){const u=new Map(n.map(f=>[f.id,f.name])),h=new Map(r.map(f=>[f.id,f])),p=o?e.slice(0,o):e;return i.jsx("ol",{className:`feed${c?" feed--dense":""}`,children:p.map(f=>{const m=Lw[f.type]??gp,g=f.agentId?h.get(f.agentId):void 0,y=f.nodeId?u.get(f.nodeId):void 0,v=f.type==="verification"&&f.toStatus==="completed"?"ok":f.toStatus==="needs-rework"||f.toStatus==="blocked"?"warn":f.agentId?"agent":"neutral";return i.jsxs("li",{className:"feed__item","data-tone":v,children:[i.jsx("span",{className:"feed__icon","aria-hidden":!0,style:g?{"--agent-color":g.color}:void 0,children:i.jsx(m,{size:14})}),i.jsxs("div",{className:"feed__body",children:[i.jsx("p",{className:"feed__msg",children:g?Iw(f.message,g.name):f.message}),i.jsxs("div",{className:"feed__meta",children:[i.jsx("time",{dateTime:f.timestamp,title:_t(f.timestamp),children:it(f.timestamp)}),g&&i.jsx("span",{className:"feed__agent",children:g.name}),f.source==="local-session"&&i.jsx("span",{children:"Local session"}),y&&f.nodeId&&a?i.jsx("button",{type:"button",className:"link-btn",onClick:()=>a(f.nodeId),children:y}):y&&i.jsx("span",{children:y}),y&&f.confidence!=="confirmed"&&i.jsx(k1,{confidence:f.confidence})]})]})]},f.id)})})}const Yh=[{id:"all",label:"Everything",match:()=>!0},{id:"agents",label:"Agent work",match:e=>e.agentId!==null||e.type==="agent-working"},{id:"progress",label:"Progress & verification",match:e=>e.type==="status-changed"||e.type==="verification"},{id:"structure",label:"Architecture changes",match:e=>["node-added","node-removed","node-restructured","plan-created","project-connected"].includes(e.type)}];function Dw({state:e,onOpenNode:n}){const[r,a]=_.useState("all"),o=_.useMemo(()=>e.activities.filter(Yh.find(u=>u.id===r).match),[e.activities,r]),c=new Map(e.nodes.map(u=>[u.id,u.name]));return i.jsxs("div",{className:"page",children:[i.jsxs("div",{className:"page__main",children:[i.jsx("header",{className:"page__header",children:i.jsxs("div",{children:[i.jsx("h1",{children:"Activity"}),i.jsx("p",{children:"What changed in your project, in plain language. Newest first."})]})}),i.jsx("div",{className:"segmented",role:"group","aria-label":"Filter activity",children:Yh.map(u=>i.jsx("button",{type:"button",className:"segmented__btn","aria-pressed":r===u.id,onClick:()=>a(u.id),children:u.label},u.id))}),o.length===0?i.jsx(w1,{icon:i.jsx(oa,{size:18}),title:"Nothing here yet",children:"Activity appears as Kalvyr scans your project and agents report their work."}):i.jsx("div",{className:"card",children:i.jsx(Rw,{activities:o,nodes:e.nodes,agents:e.agents,onSelectNode:n})})]}),i.jsxs("aside",{className:"page__aside",children:[i.jsx(Tt,{children:"Agents"}),e.agents.length===0?i.jsx("p",{className:"muted-text",children:"No agent has reported activity. Set up an integration under Agents to see where your AI is working."}):i.jsx("ul",{className:"agent-list",children:e.agents.map(u=>i.jsx(W1,{agent:u,names:c},u.id))})]})]})}const Fw={added:Tu,proposed:Xn,confirmed:Tu,removed:n5,connected:Np,disconnected:Sp},$w={added:"added",proposed:"proposed — awaiting implementation evidence",confirmed:"confirmed by implementation evidence",removed:"removed",connected:"connected",disconnected:"disconnected"};function Ow(e,n){const r=Op(e??{nodes:[],edges:[]},n),a=new Set(r.flatMap(u=>u.kind==="connected"||u.kind==="disconnected"?[]:u.nodeIds)),o=new Map(((e==null?void 0:e.nodes)??[]).map(u=>[u.id,u])),c=n.nodes.filter(u=>o.has(u.id)&&o.get(u.id).status!==u.status&&!a.has(u.id)).map(u=>({name:u.name,from:o.get(u.id).status,to:u.status}));return{structure:r,changed:c}}function Bw({state:e,viewingSnapshotId:n,onViewSnapshot:r,highlightSnapshotId:a}){const o=e.snapshots,c=o.map((h,p)=>({snap:h,diff:Ow(o[p-1],h)})).reverse(),u=_.useRef(null);return _.useEffect(()=>{var h;(h=u.current)==null||h.scrollIntoView({block:"nearest",behavior:"smooth"})},[a]),i.jsx("div",{className:"page page--single",children:i.jsxs("div",{className:"page__main",children:[i.jsx("header",{className:"page__header",children:i.jsxs("div",{children:[i.jsx("h1",{children:"History"}),i.jsx("p",{children:"Meaningful moments in your architecture — components added, removed, completed or reopened. Open any moment on the map and compare it with today."})]})}),c.length===0?i.jsx(w1,{icon:i.jsx(Yr,{size:18}),title:"No history yet",children:"Snapshots are saved when a project is connected or planned, and whenever its architecture changes."}):i.jsx("ol",{className:"timeline",children:c.map(({snap:h,diff:p},f)=>{const m=f===0,g=h.id===n,y=p.structure.length+p.changed.length,v=h.id===a;return i.jsxs("li",{ref:v?u:void 0,className:"timeline__item","data-viewing":g||void 0,"data-recent":v||void 0,children:[i.jsx("span",{className:"timeline__dot","aria-hidden":!0}),i.jsxs("div",{className:"timeline__card card",children:[i.jsxs("div",{className:"timeline__head",children:[i.jsxs("div",{children:[i.jsx("h2",{className:"timeline__label",children:h.label}),i.jsx("p",{className:"timeline__reason",children:h.reason})]}),i.jsxs("button",{type:"button",className:`btn btn--sm ${g?"btn--primary":"btn--ghost"}`,onClick:()=>r(h.id),"aria-label":`View “${h.label}” on the map`,children:[i.jsx(pa,{size:14,"aria-hidden":!0})," ",g?"Viewing":"View on map"]})]}),i.jsxs("div",{className:"timeline__meta",children:[i.jsx("time",{dateTime:h.createdAt,title:_t(h.createdAt),children:it(h.createdAt)}),i.jsx("span",{children:Zl(h.nodes.length,"component")}),m&&i.jsx("span",{className:"tag",children:"Latest snapshot"})]}),y>0&&i.jsxs("ul",{className:"diff-list",children:[p.structure.slice(0,10).map(w=>{const S=Fw[w.kind];return i.jsxs("li",{"data-kind":w.kind==="removed"||w.kind==="disconnected"?"removed":"added",children:[i.jsx(S,{size:12,"aria-hidden":!0})," ",w.title," ",$w[w.kind],w.connectedTo.length>0&&i.jsxs("span",{className:"diff-list__links",children:[" · connected to ",w.connectedTo.slice(0,3).join(", ")]})]},w.id)}),p.structure.length>10&&i.jsxs("li",{"data-kind":"more",children:["+",p.structure.length-10," more architecture changes"]}),p.changed.slice(0,6).map(w=>i.jsxs("li",{"data-kind":"changed",children:[i.jsx("span",{className:"diff-list__name",children:w.name}),i.jsx("span",{className:"status-dot","data-status":w.from,"aria-hidden":!0}),as[w.from],i.jsx(i1,{size:11,"aria-hidden":!0}),i.jsx("span",{className:"status-dot","data-status":w.to,"aria-hidden":!0}),as[w.to]]},`c-${w.name}`)),p.changed.length>6&&i.jsxs("li",{"data-kind":"more",children:["+",p.changed.length-6," more status changes"]})]})]})]},h.id)})})]})})}const Hw={added:Au,proposed:Xn,confirmed:Au,removed:yp,connected:Np,disconnected:Sp},Uw=3,Vw=15e3;function Ww({changes:e,onShowNode:n,onViewChanges:r,onDismiss:a}){const[o,c]=_.useState(!1),u=_.useRef(a);u.current=a,_.useEffect(()=>{if(o)return;const f=window.setTimeout(()=>u.current(),Vw);return()=>window.clearTimeout(f)},[o,e]);const h=e.slice(0,Uw),p=e.length-h.length;return i.jsxs("section",{className:"arch-notice","aria-label":"Architecture changed",onPointerEnter:()=>c(!0),onPointerLeave:()=>c(!1),onFocus:()=>c(!0),onBlur:()=>c(!1),children:[i.jsxs("header",{className:"arch-notice__head",children:[i.jsx("span",{className:"arch-notice__icon","aria-hidden":!0,children:i.jsx(bp,{size:14})}),i.jsx("h2",{className:"arch-notice__title",children:"Architecture changed"}),i.jsx("button",{type:"button",className:"icon-btn arch-notice__close",onClick:a,"aria-label":"Dismiss",children:i.jsx(Cn,{size:14})})]}),i.jsx("ul",{className:"arch-notice__list",children:h.map(f=>{const m=Hw[f.kind];return i.jsxs("li",{className:"arch-notice__item","data-kind":f.kind,children:[i.jsx(m,{size:15,className:"arch-notice__kind-icon","aria-hidden":!0}),i.jsxs("div",{className:"arch-notice__body",children:[i.jsxs("div",{className:"arch-notice__row",children:[f.nodeId&&f.kind!=="removed"?i.jsx("button",{type:"button",className:"arch-notice__name",onClick:()=>n(f.nodeId),children:f.title}):i.jsx("span",{className:"arch-notice__name",children:f.title}),i.jsx("span",{className:"arch-notice__badge","data-kind":f.kind,children:Bp[f.kind]})]}),i.jsx("p",{className:"arch-notice__detail",children:f.detail}),f.kind==="proposed"&&i.jsx("p",{className:"arch-notice__hint",children:"Shown as Proposed until implementation evidence confirms it."}),f.connectedTo.length>0&&i.jsxs("p",{className:"arch-notice__links",children:["Connected to: ",f.connectedTo.slice(0,4).join(", "),f.connectedTo.length>4?` and ${f.connectedTo.length-4} more`:""]})]})]},f.id)})}),i.jsxs("footer",{className:"arch-notice__foot",children:[p>0&&i.jsxs("span",{className:"arch-notice__more",children:["+",p," more ",p===1?"change":"changes"]}),i.jsx("button",{type:"button",className:"btn btn--sm btn--ghost",onClick:r,children:"View changes"})]})]})}const S3=(e,n)=>JSON.stringify([e,n.agentId,n.detectedAt]);function qw(e,n,r){return n.filter(a=>a.status!=="detected"&&!r.includes(S3(e,a)))}function Kw(e){var c;const n=new Map,r=new Map(e.map(u=>[u.id,u])),a=(u,h)=>{const p=n.get(u.id);if(p!==void 0)return p;if(h.has(u.id))return 0;h.add(u.id);const f=Math.max(-1,...u.dependsOn.map(m=>r.has(m)?a(r.get(m),h):-1))+1;return n.set(u.id,f),f},o=[];for(const u of e)(o[c=a(u,new Set)]??(o[c]=[])).push(u);return o.filter(Boolean)}const N3={pending:"Not started",in_progress:"In progress",done:"Done",changed:"Changed from plan",skipped:"Skipped"};function Qw(e){return e.status==="changed"?"The agent changed this part of its plan after it was visualized.":e.status==="skipped"?"The agent finished its work without ever starting this step: it was skipped, or done without being ticked off.":e.status==="done"?e.statusSource==="turn-end"?"The agent’s turn ended with this as its only open step. It didn’t tick the step off itself, and the work is not independently verified.":"The agent marked its task done (its own report; not independently verified).":e.status==="in_progress"?e.statusSource==="agent"?"The agent’s task list shows this step under way.":"Edits to this step’s files or components were observed.":"No work on this step has been observed yet."}const Zw={"plan-mode":"Plan-mode plan","task-list":"Task list","plan-mode+task-list":"Plan-mode plan + task list"};function Gw(e){const n=r=>e.steps.filter(a=>a.status===r).length;return{total:e.steps.length,done:n("done"),inProgress:n("in_progress"),changed:n("changed"),diverging:e.steps.filter(r=>r.divergence.length).length+(e.unplanned.length?1:0)}}const Yw={pending:mp,in_progress:Ut,done:pr,changed:m5,skipped:Lm};function Xw({plans:e,agents:n,nodes:r,onFocusNodes:a,onRevealNode:o,onSelectNode:c,serviceAvailable:u,onClose:h}){var T,ve;const[p,f]=_.useState(null),[m,g]=_.useState(!0),[y,v]=_.useState(null),[w,S]=_.useState(null),[j,b]=_.useState(null),[P,C]=_.useState(!1),M=te=>n.some(le=>le.id===te&&le.state==="active"),z=e.find(te=>te.agentId===p)??e.find(te=>M(te.agentId))??e[0],N=_.useMemo(()=>new Map(r.map(te=>[te.id,te.name])),[r]),L=_.useMemo(()=>new Set(r.filter(bi).map(te=>te.id)),[r]),[V,K]=_.useState(null),D=_.useMemo(()=>z?Kw(z.steps):[],[z]),I=_.useMemo(()=>new Map((z==null?void 0:z.steps.map((te,le)=>[te.id,le+1]))??[]),[z]),B=w??y,H=V??((T=z==null?void 0:z.steps.find(te=>te.id===B))==null?void 0:T.nodeIds.join(" "))??"";_.useEffect(()=>{a(H?H.split(" "):null)},[H,a]),_.useEffect(()=>()=>a(null),[a]),_.useEffect(()=>v(null),[z==null?void 0:z.id]);const Y=((ve=z==null?void 0:z.steps.find(te=>te.id===y))==null?void 0:ve.nodeIds[0])??null;if(_.useEffect(()=>o(Y),[Y,o]),!z)return null;const ne=n.find(te=>te.id===z.agentId),ie=ls[z.agentKind]??"Agent",re=Gw(z),$=z.status==="waiting"||z.status==="running",G=!!z.provisional,A=z.status==="ready"||G,F=(ne==null?void 0:ne.state)==="active",W=async te=>{C(!0),b(null);try{await Ue.visualizePlan(z.agentId,te)}catch(le){b(ft(le))}finally{C(!1)}};return i.jsxs("section",{className:`plan-board${m?" is-collapsed":""}`,"aria-label":"Agent plan",children:[i.jsxs("header",{className:"plan-board__head",children:[i.jsx("span",{className:"plan-board__logo","aria-hidden":!0,children:i.jsx(Gt,{kind:z.agentKind,size:15})}),i.jsxs("div",{className:"plan-board__heading",children:[i.jsxs("h2",{className:"plan-board__title",children:[ie,"'s plan",A&&re.total>0&&i.jsxs("span",{className:"plan-board__count",children:[re.done,"/",re.total," done"]})]}),i.jsxs("p",{className:"plan-board__sub",children:[Zw[z.source]," · ",(ne==null?void 0:ne.name)??z.agentId," · ",F?"working now":`last active ${it(z.lastActiveAt)}`]})]}),e.length>1&&i.jsx(is,{className:"plan-board__picker",size:"sm",menuWidth:300,value:z.agentId,onChange:f,label:"Choose which agent's plan to show",options:e.map(te=>{var le;return{value:te.agentId,label:((le=n.find(je=>je.id===te.agentId))==null?void 0:le.name)??te.agentId,detail:M(te.agentId)?"Working now":`Last active ${it(te.lastActiveAt)}`,icon:i.jsx(Gt,{kind:te.agentKind,size:14})}})}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm",onClick:()=>g(te=>!te),"aria-label":m?"Expand plan":"Collapse plan","aria-expanded":!m,children:m?i.jsx(On,{size:15}):i.jsx(Mu,{size:15})}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Close plan visualization",title:"Close plan visualization",onClick:h,children:i.jsx(Cn,{size:15,"aria-hidden":!0})})]}),!m&&i.jsxs("div",{className:"plan-board__body",children:[A&&re.total>0&&i.jsx("div",{className:"plan-board__progress",role:"img","aria-label":`${re.done} of ${re.total} steps done, ${re.inProgress} in progress`,children:z.steps.map(te=>i.jsx("span",{"data-status":te.status,title:`${I.get(te.id)}. ${te.title}: ${N3[te.status]}`},te.id))}),(z.message||$||z.revised||z.status==="detected")&&i.jsxs("p",{className:"plan-board__message","data-status":z.status,children:[$&&i.jsx(Ut,{size:13,className:"spin","aria-hidden":!0}),z.status==="failed"&&i.jsx(an,{size:13,"aria-hidden":!0}),i.jsxs("span",{children:[G&&$?`Steps from ${ie}'s task list. Linking them to the map…`:z.status==="waiting"&&!z.message?`${ie} made a plan. Asking it to lay out the steps…`:z.status==="detected"&&!z.message?`From a ${ie} session that isn't working on this project now. It's laid out automatically when that session works again.`:z.message,z.revised&&!G&&" The agent has changed its plan since; an updated layout follows."]})]}),j&&i.jsx("p",{className:"plan-board__message","data-status":"failed",children:j}),i.jsxs("div",{className:"plan-board__actions",children:[$?i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",disabled:P||!u,onClick:()=>void W(!0),children:[i.jsx(Cn,{size:12,"aria-hidden":!0})," Cancel"]}):i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",disabled:P||!u,onClick:()=>void W(!1),children:[i.jsx(gn,{size:12,"aria-hidden":!0})," ",z.status==="detected"?`Ask ${ie} to lay it out`:z.status==="ready"?"Lay out again":"Try again"]}),y&&i.jsx("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:()=>v(null),children:"Clear highlight"})]}),z.steps.length>0&&i.jsx("ol",{className:"plan-board__stages","aria-label":"Plan steps in order",children:D.map((te,le)=>i.jsxs("li",{className:"plan-board__stage",children:[!G&&i.jsx("span",{className:"plan-board__stage-label",children:te.length>1?`Stage ${le+1} · side by side`:`Stage ${le+1}`}),i.jsx("ul",{className:"plan-board__steps",children:te.map(je=>i.jsx(tj,{step:je,number:I.get(je.id)??0,after:je.dependsOn.filter(we=>{var ce;return!((ce=D[le-1])!=null&&ce.some(ge=>ge.id===we))}).map(we=>I.get(we)??0),names:N,proposed:L,pinned:y===je.id,onHover:we=>S(we?je.id:null),onPin:()=>v(we=>we===je.id?null:je.id),onSelectNode:c},je.id))})]},le))}),z.newComponents.length>0&&i.jsxs("section",{className:"plan-board__new","aria-label":"Components this plan creates",children:[i.jsxs("h3",{className:"plan-board__section-title",children:[i.jsx(x5,{size:13,"aria-hidden":!0})," New components (",z.newComponents.length,")"]}),i.jsx("ul",{children:z.newComponents.map(te=>{const le=r.find(we=>we.id===te.nodeId),je=te.status==="withdrawn"?"withdrawn":te.status==="built"?"built":le&&!bi(le)?"building":"proposed";return i.jsxs("li",{"data-state":je,children:[i.jsx("button",{type:"button",className:"plan-board__new-name",disabled:!le,onClick:()=>le&&c(le.id),onPointerEnter:()=>le&&K(le.id),onPointerLeave:()=>K(null),onFocus:()=>le&&K(le.id),onBlur:()=>K(null),title:`${ej[je]}
|
|
673
|
+
Planned files: ${te.files.join(", ")}`,children:te.name}),i.jsx("span",{className:"plan-board__new-state",children:Jw[je]}),te.note&&i.jsxs("span",{className:"plan-board__muted",children:[" · ",te.note]})]},`${te.name}:${te.nodeId}`)})})]}),z.unplanned.length>0&&i.jsxs("details",{className:"plan-board__extra","data-tone":"warn",children:[i.jsxs("summary",{children:[i.jsx(an,{size:13,"aria-hidden":!0})," Work outside the plan (",z.unplanned.length,")"]}),i.jsx("ul",{children:z.unplanned.map(te=>i.jsxs("li",{children:[i.jsx("span",{className:"mono",children:te.file}),te.nodeIds.length>0&&i.jsxs("span",{className:"plan-board__muted",children:[" · ",te.nodeIds.map(le=>N.get(le)??le).join(", ")]}),i.jsxs("span",{className:"plan-board__muted",children:[" · ",it(te.at)]})]},te.file))})]}),z.issues.length>0&&i.jsxs("details",{className:"plan-board__extra",children:[i.jsxs("summary",{children:["Left out of the agent's answer (",z.issues.length,")"]}),i.jsx("ul",{children:z.issues.map(te=>i.jsx("li",{children:te},te))})]}),G?i.jsxs("p",{className:"plan-board__fine",children:["These are ",ie,"'s own task-list items and statuses. Which components each step touches appears once it lays them out."]}):z.status==="ready"&&i.jsxs("p",{className:"plan-board__fine",children:["Steps are ",ie,"'s own restatement of its plan, checked against this map. “Done” comes from its task list, or from its turn ending with only that step open; edits mark a step in progress."]})]})]})}const Jw={proposed:"Proposed",building:"Being built",built:"Built",withdrawn:"Withdrawn"},ej={proposed:"On the map as Proposed: none of its planned files exist yet.",building:"Edits to its planned files were observed; the scan confirms it once they exist.",built:"Its planned files exist now, in the component shown.",withdrawn:"The agent’s plan no longer includes it, and nothing had been built for it."};function tj({step:e,number:n,after:r,names:a,proposed:o,pinned:c,onHover:u,onPin:h,onSelectNode:p}){const f=Yw[e.status],m=e.files.length+e.newFiles.length;return i.jsxs("li",{className:`plan-step${c?" is-pinned":""}`,"data-status":e.status,onPointerEnter:()=>u(!0),onPointerLeave:()=>u(!1),children:[i.jsxs("button",{type:"button",className:"plan-step__main",onClick:h,onFocus:()=>u(!0),onBlur:()=>u(!1),"aria-pressed":c,title:`${Qw(e)}${e.nodeIds.length?" Click to keep its components highlighted.":""}`,children:[i.jsx("span",{className:"plan-step__icon","aria-hidden":!0,children:i.jsx(f,{size:13})}),i.jsxs("span",{className:"plan-step__text",children:[i.jsxs("span",{className:"plan-step__title",children:[i.jsxs("span",{className:"plan-step__num",children:[n,"."]})," ",e.title]}),e.detail&&i.jsx("span",{className:"plan-step__detail",children:e.detail}),i.jsxs("span",{className:"plan-step__meta",children:[i.jsx("span",{className:"plan-step__status",children:N3[e.status]}),e.statusSource==="turn-end"&&e.status==="done"&&i.jsx("span",{children:"when its turn ended"}),r.length>0&&i.jsxs("span",{children:["after ",r.map(g=>`#${g}`).join(", ")]}),e.edits.length>0&&i.jsxs("span",{title:e.edits.map(g=>g.file).join(`
|
|
674
|
+
`),children:[e.edits.length," file",e.edits.length===1?"":"s"," edited"]}),m>0&&e.edits.length===0&&i.jsxs("span",{children:[m," planned file",m===1?"":"s"]})]})]})]}),e.nodeIds.length>0&&i.jsx("span",{className:"plan-step__nodes",children:e.nodeIds.map(g=>i.jsxs("button",{type:"button",className:`plan-step__node${o.has(g)?" is-proposed":""}`,onClick:()=>p(g),title:o.has(g)?"A new component this plan creates (Proposed). Show it on the map.":"Show this component",children:[o.has(g)&&"+ ",a.get(g)??g]},g))}),e.divergence.length>0&&i.jsx("ul",{className:"plan-step__divergence","aria-label":"Departs from the plan",children:e.divergence.map(g=>i.jsxs("li",{children:[i.jsx(an,{size:11,"aria-hidden":!0})," ",g]},g))})]})}const nj="theme",C3="(prefers-color-scheme: light)";function Xh(e){var n;return e!=="system"?e:typeof window<"u"&&((n=window.matchMedia)!=null&&n.call(window,C3).matches)?"light":"dark"}function rj(e){const[n,r]=_.useState(()=>Xh(e));return _.useEffect(()=>{const a=()=>{const c=Xh(e);document.documentElement.dataset.theme=c,r(c)};if(a(),e!=="system"||!window.matchMedia)return;const o=window.matchMedia(C3);return o.addEventListener("change",a),()=>o.removeEventListener("change",a)},[e]),n}const Jh=e=>e.split(/[\\/]/).filter(Boolean).at(-1)??e;function ij(e){if(e.mode==="opening")return i.jsxs("div",{className:"start",role:"status",children:[i.jsx(Ut,{size:22,className:"spin","aria-hidden":!0}),i.jsxs("h1",{className:"start__title",children:["Reopening ",e.path?Jh(e.path):"your project","…"]}),e.path&&i.jsx("p",{className:"start__path mono",children:e.path})]});if(e.mode==="offline")return i.jsxs("div",{className:"start",children:[i.jsx("span",{className:"start__icon","aria-hidden":!0,children:i.jsx(Ru,{size:20})}),i.jsx("h1",{className:"start__title",children:"The local Kalvyr service isn't running"}),i.jsxs("p",{className:"start__body",children:["Start it with ",i.jsx("code",{children:"npm run dev"})," in the Kalvyr folder. This page reconnects on its own and reopens your last project."]}),i.jsx("div",{className:"btn-row",children:i.jsxs("button",{type:"button",className:"btn btn--primary",onClick:e.onRetry,children:[i.jsx(gn,{size:15,"aria-hidden":!0})," Retry now"]})}),i.jsx("button",{type:"button",className:"link-btn start__sample",onClick:e.onExploreSample,children:"Explore the offline demo instead"})]});const n=e.recentPaths.slice(0,5);return i.jsxs("div",{className:"start",children:[i.jsx("span",{className:"start__icon","aria-hidden":!0,children:i.jsx(Zn,{size:20})}),i.jsx("h1",{className:"start__title",children:"Open a project"}),i.jsx("p",{className:"start__body",children:"Connect a local folder to map its architecture and follow your agents."}),e.error&&i.jsxs("p",{className:"callout callout--warn start__error",children:[i.jsx(ss,{size:14,"aria-hidden":!0})," Couldn't reopen ",e.path?i.jsx("code",{children:e.path}):"your last project",":"," ",e.error]}),i.jsx("div",{className:"btn-row",children:i.jsxs("button",{type:"button",className:"btn btn--primary",onClick:e.onConnect,disabled:!e.serviceAvailable,children:[i.jsx(Zn,{size:15,"aria-hidden":!0})," Connect local folder"]})}),n.length>0&&i.jsxs("div",{className:"start__recents",children:[i.jsx("div",{className:"menu__label",children:"Recent folders"}),i.jsx("ul",{children:n.map(r=>i.jsx("li",{children:i.jsxs("button",{type:"button",className:"start__recent",onClick:()=>e.onOpenPath(r),disabled:!e.serviceAvailable,title:r,children:[i.jsx(Zn,{size:14,"aria-hidden":!0}),i.jsx("span",{className:"start__recent-name",children:Jh(r)}),i.jsx("span",{className:"start__recent-path mono",children:r})]})},r))})]}),i.jsx("button",{type:"button",className:"link-btn start__sample",onClick:e.onExploreSample,children:"Explore the sample project"})]})}function ep({label:e,text:n}){const[r,a]=_.useState(null);async function o(){try{await navigator.clipboard.writeText(n),a("ok")}catch{a("fail")}window.setTimeout(()=>a(null),1800)}return i.jsxs("div",{className:"codeblock",children:[i.jsxs("div",{className:"codeblock__bar",children:[i.jsx("span",{children:e}),i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:o,"aria-label":`Copy ${e}`,children:[r==="ok"?i.jsx(pr,{size:12,"aria-hidden":!0}):i.jsx(Hm,{size:12,"aria-hidden":!0}),r==="ok"?"Copied":r==="fail"?"Select & copy":"Copy"]})]}),i.jsx("pre",{tabIndex:0,children:i.jsx("code",{children:n})})]})}function sj({state:e,source:n,onSelectNode:r}){const[a,o]=_.useState(Date.now);_.useEffect(()=>{const z=window.setInterval(()=>o(Date.now()),5e3);return()=>window.clearInterval(z)},[]);const[c,u]=_.useState(()=>fr("formaDir","")),h=c.trim().replace(/\/+$/,"")||"/path/to/forma",p=typeof window<"u"?window.location.port:"",f=`node "${h}/server/hooks/claude-code-hook.mjs"`,m=_.useMemo(()=>{const z=[{hooks:[{type:"command",command:f}]}];return JSON.stringify({hooks:{SessionStart:z,PostToolUse:[{matcher:"Edit|Write|MultiEdit|Bash",hooks:z[0].hooks}],Stop:z,SessionEnd:z}},null,2)},[f]),g=`curl -s -X POST http://127.0.0.1:4317/api/agent-events \\
|
|
675
|
+
-H 'Content-Type: application/json' \\
|
|
676
|
+
-d '{"agent":{"id":"manual-test","name":"Manual test","kind":"other"},"type":"working","message":"Checking the Kalvyr connection"}'`,y=e.integration,v=y.runtimeDetection,S=n==="service"&&(v==null?void 0:v.checkedAt)!=null&&Math.max(a,Date.now())-Date.parse(v.checkedAt)<3e4&&(v==null?void 0:v.status)==="available",j=n==="service"&&y.agentEvents!=="none",b=y.workTracking,C=n==="service"&&(b==null?void 0:b.checkedAt)!=null&&Math.max(a,Date.now())-Date.parse(b.checkedAt)<3e4&&["watching","partial"].includes((b==null?void 0:b.status)??""),M=e.agents.filter(z=>!z.isSample).sort((z,N)=>N.lastSeenAt.localeCompare(z.lastSeenAt));return i.jsxs("div",{className:"page",children:[i.jsxs("div",{className:"page__main",children:[i.jsx("header",{className:"page__header",children:i.jsxs("div",{children:[i.jsx("h1",{children:"Agent work"}),i.jsx("p",{children:"Follow what Claude Code, Codex, Gemini CLI, Cursor and GitHub Copilot are doing in this project. Local session activity is tracked automatically—no hooks to configure."})]})}),i.jsxs("div",{className:"card integration-card",children:[i.jsxs("div",{className:"integration-card__head",children:[i.jsx("span",{className:"integration-card__icon","aria-hidden":!0,children:i.jsx(Zr,{size:18})}),i.jsxs("div",{children:[i.jsx("h2",{children:"Live work tracking"}),i.jsxs("p",{className:"muted-text",children:[e.project.name," · follows local session logs as they are written (WSL and extra folders included)"]})]}),i.jsx("span",{className:`tag ${C?"tag--ok":""}`,children:e.project.mode!=="local"?"Connect a project":n!=="service"?"Offline":C?"Tracking":b!=null&&b.checkedAt?"Unavailable":"Discovering…"})]}),i.jsx("p",{className:"muted-text",children:e.project.mode!=="local"?"Connect a local folder to follow its agent sessions.":(b==null?void 0:b.message)??"Waiting for the local service to discover project sessions."}),i.jsx("div",{className:"work-sources",children:b==null?void 0:b.sources.map(z=>i.jsxs("span",{className:"tag",title:z.label??"This computer",children:[v1(z.kind),z.label?` · ${z.label}`:""," · ",z.status==="watching"?`${z.sessions} session logs`:z.status==="not-found"?"No logs found":"Read unavailable"]},`${z.kind}:${z.label??"local"}`))}),M.length?i.jsxs(i.Fragment,{children:[!C&&i.jsx("p",{className:"fine-print",children:"Showing last observed session activity."}),i.jsx("ul",{className:"agent-list",children:M.map(z=>i.jsx(W1,{agent:z,names:new Map(e.nodes.map(N=>[N.id,N.name]))},z.id))}),i.jsx("div",{className:"work-sources",children:[...new Set(M.flatMap(z=>z.currentNodeIds??(z.currentNodeId?[z.currentNodeId]:[])))].map(z=>{var N;return i.jsxs("button",{type:"button",className:"btn btn--ghost btn--sm",onClick:()=>r(z),children:["View ",((N=e.nodes.find(L=>L.id===z))==null?void 0:N.name)??"component"," on map"]},z)})})]}):i.jsx("p",{className:"muted-text",children:"No project work observed yet. Start a turn in Codex or Claude Code with this folder as its working directory."}),i.jsx("p",{className:"fine-print",children:"Reads local session records for this project and displays activity metadata only. Prompts, responses, reasoning text and command output stay out of the feed. Updates depend on when the agent writes its log; unlogged work and permission waits may remain unknown."})]}),i.jsxs("div",{className:"card integration-card",children:[i.jsxs("div",{className:"integration-card__head",children:[i.jsx("span",{className:"integration-card__icon","aria-hidden":!0,children:i.jsx(Zr,{size:18})}),i.jsxs("div",{children:[i.jsx("h2",{children:"Running applications"}),i.jsx("p",{className:"muted-text",children:"This computer · refreshes about every 10 seconds"})]}),i.jsx("span",{className:`tag ${S?"tag--ok":""}`,children:n!=="service"?"Service offline":!v||v.status==="checking"?"Checking…":S?"Enabled":v.status==="available"?"Waiting for refresh":"Unavailable"})]}),S?v.runtimes.map(z=>i.jsxs("div",{className:"agent-row",children:[i.jsx("span",{className:"integration-card__icon","aria-hidden":!0,children:i.jsx(Iu,{size:18})}),i.jsxs("div",{className:"agent-row__body",children:[i.jsxs("div",{className:"agent-row__top",children:[i.jsx("strong",{className:"agent-row__name",children:z.name}),i.jsx("span",{className:`tag ${z.processCount?"tag--ok":""}`,children:z.processCount?"Running":"Not detected"})]}),i.jsx("p",{className:"agent-row__activity",children:z.processCount?`${z.processCount} local process${z.processCount===1?"":"es"} detected · project and activity unknown`:"No recognizable process found. Open the app or CLI to detect it."})]})]},z.id)):i.jsx("p",{className:"muted-text",role:"status",children:n!=="service"?"Start the local Kalvyr service to detect runtimes.":(v==null?void 0:v.message)??"Waiting for a fresh process check…"}),i.jsx("p",{className:"fine-print",children:"Detects common native apps and Node CLI launchers visible to Kalvyr. Process counts are not session counts. A running app may be idle; Claude may be the desktop app or Claude Code. Remote, container and WSL sessions may not be visible. No chat history or credentials are read, and no agent settings are changed."})]}),i.jsxs("details",{className:"runtime-details",children:[i.jsx("summary",{children:"Optional: hooks and custom event integrations"}),i.jsx("p",{className:"muted-text",children:"Use an explicit integration for agents without readable local logs or for additional reported evidence."}),i.jsxs("div",{className:"card integration-card",children:[i.jsxs("div",{className:"integration-card__head",children:[i.jsx("span",{className:"integration-card__icon","aria-hidden":!0,children:i.jsx(Iu,{size:18})}),i.jsxs("div",{children:[i.jsx("h2",{children:"Claude Code"}),i.jsx("p",{className:"muted-text",children:"Uses Claude Code hooks. Session start/end, file edits and test commands."})]}),i.jsx("span",{className:`tag ${j?"tag--ok":""}`,children:j?`Events received ${it(y.lastAgentEventAt)}`:"No events received yet"})]}),i.jsxs("ol",{className:"steps",children:[i.jsxs("li",{children:[i.jsx("h3",{children:"Where is Kalvyr on this computer?"}),i.jsx("p",{className:"muted-text",children:"Used only to fill in the commands below. Stored in this browser."}),i.jsx("input",{className:"input input--mono",value:c,onChange:z=>{u(z.target.value),En("formaDir",z.target.value)},placeholder:"/Users/you/tools/forma",spellCheck:!1,"aria-label":"Kalvyr folder path"})]}),i.jsxs("li",{children:[i.jsx("h3",{children:"Add the hook to Claude Code settings"}),i.jsxs("p",{className:"muted-text",children:["Put this in ",i.jsx("code",{children:".claude/settings.json"})," inside your project (or ",i.jsx("code",{children:"~/.claude/settings.json"})," ","for all projects). Merge with any hooks you already have."]}),i.jsx(ep,{label:"settings.json",text:m})]}),i.jsxs("li",{children:[i.jsx("h3",{children:"Run Kalvyr, then use Claude Code normally"}),i.jsxs("p",{className:"muted-text",children:["Start Kalvyr with ",i.jsx("code",{children:"npm run dev"})," and connect the same project folder. The hook always exits quietly when Kalvyr isn't running, so it never blocks your agent."]})]})]}),i.jsxs("div",{className:"callout callout--muted",children:[i.jsx(_p,{size:14,"aria-hidden":!0}),i.jsxs("div",{children:[i.jsx("strong",{children:"What Kalvyr can and can't know."})," Edited file paths are matched to components, so locations are usually shown as ",i.jsx("em",{children:"inferred"}),". Test commands are noted as “running tests”; a component is only completed when a verified test or build result is reported. Raw tool input stays in technical details and never leaves this computer."]})]})]}),i.jsxs("div",{className:"card integration-card",children:[i.jsxs("div",{className:"integration-card__head",children:[i.jsx("span",{className:"integration-card__icon","aria-hidden":!0,children:i.jsx(Zr,{size:18})}),i.jsxs("div",{children:[i.jsx("h2",{children:"Other agents (Codex and more)"}),i.jsxs("p",{className:"muted-text",children:["No built-in adapter yet. Any tool can report activity by POSTing JSON events to the local service — see ",i.jsx("code",{children:"docs/CONTRACT.md"}),"."]})]}),i.jsxs("span",{className:"tag",children:[i.jsx(mp,{size:11,"aria-hidden":!0})," Manual"]})]}),i.jsx(ep,{label:"Send a test event",text:g}),p&&p!=="4317"&&i.jsxs("p",{className:"fine-print",children:["The service listens on port 4317 by default (set ",i.jsx("code",{children:"FORMA_PORT"})," to change it); this page is served on ",p," and proxies to it."]})]})]})]}),i.jsxs("aside",{className:"page__aside",children:[i.jsx(Tt,{children:"Integration status"}),i.jsxs("dl",{className:"meta-grid",children:[i.jsx("dt",{children:"Local tracking"}),i.jsx("dd",{children:C?"Reading session activity":"Not receiving fresh activity checks"}),i.jsx("dt",{children:"Hook events"}),i.jsx("dd",{children:n!=="service"?"Service offline":y.agentEvents==="none"?"None received":y.agentEvents==="receiving"?"Receiving":"Quiet"}),i.jsx("dt",{children:"Last event"}),i.jsx("dd",{children:n==="service"?it(y.lastAgentEventAt):"—"}),i.jsx("dt",{children:"Agents reporting activity"}),i.jsx("dd",{children:e.agents.filter(z=>!z.isSample).length})]}),i.jsx("p",{className:"fine-print",children:"Work tracking reads project session activity. Running applications shows machine-wide process presence."})]})]})}function aj(){const[e,n]=_.useState(null),[r,a]=_.useState(!1),[o,c]=_.useState("");if(_.useEffect(()=>{const h=window.kalvyrUpdates;if(!h)return;let p=!0;const f=()=>h.getState().then(g=>{p&&n(g)}).catch(()=>{});f();const m=setInterval(f,1500);return()=>{p=!1,clearInterval(m)}},[]),!window.kalvyrUpdates||!e)return null;const u=async h=>{a(!0),c("");try{n(await(h?window.kalvyrUpdates.install():window.kalvyrUpdates.check()))}catch{c("Could not contact the updater. Please try again.")}finally{a(!1)}};return i.jsxs("section",{className:"card settings__card",children:[i.jsx(Tt,{children:"App updates"}),i.jsxs("p",{children:["Kalvyr ",e.currentVersion,e.version&&e.status==="ready"?` · Version ${e.version} is ready`:""]}),i.jsxs("p",{role:"status",children:[e.message,e.status==="downloading"?` ${Math.round(e.progress)}%`:""]}),e.status==="ready"&&i.jsx("p",{className:"fine-print",children:"Finish your current agent work before restarting."}),o&&i.jsx("p",{className:"form-error",role:"alert",children:o}),i.jsxs("div",{className:"btn-row",children:[e.supported&&i.jsx("button",{type:"button",className:"btn btn--ghost btn--sm",disabled:r||["checking","downloading"].includes(e.status),onClick:()=>void u(e.status==="ready"),children:e.status==="ready"?"Restart and update":"Check for updates"}),i.jsx("a",{className:"btn btn--ghost btn--sm",href:e.releasesUrl,target:"_blank",rel:"noreferrer",children:"Release downloads"})]})]})}function lj(e){const[n,r]=_.useState(null),[a,o]=_.useState(!1),[c,u]=_.useState(null),[h,p]=_.useState(!1),[f,m]=_.useState(null),g=e.state.integration.agentMessages??!1,y=e.state.integration.npmLookup??!1,[v,w]=_.useState(!1),[S,j]=_.useState(null),[b,P]=_.useState(!1);async function C(){o(!0),u(null);try{r(await Ue.health())}catch(z){r(null),u(ft(z))}finally{o(!1)}}const M=e.state.project;return i.jsx("div",{className:"page page--single",children:i.jsxs("div",{className:"page__main settings",children:[i.jsx("header",{className:"page__header",children:i.jsxs("div",{children:[i.jsx("h1",{children:"Settings"}),i.jsx("p",{children:"Local service, current project and display preferences."})]})}),i.jsx(aj,{}),i.jsxs("section",{className:"card settings__card",children:[i.jsx(Tt,{children:"Local service"}),i.jsxs("dl",{className:"meta-grid meta-grid--wide",children:[i.jsx("dt",{children:"Connection"}),i.jsxs("dd",{"data-conn":e.connection,className:"conn-inline",children:[i.jsx("span",{className:"conn-dot","aria-hidden":!0}),e.connection==="live"?"Live — event stream open":e.connection==="connecting"?"Connecting…":"Offline"]}),e.lastError&&e.connection!=="live"&&i.jsxs(i.Fragment,{children:[i.jsx("dt",{children:"Last error"}),i.jsx("dd",{children:e.lastError})]}),i.jsx("dt",{children:"API"}),i.jsxs("dd",{className:"mono",children:[window.location.origin,"/api → 127.0.0.1:",S5," (default; FORMA_PORT overrides)"]}),i.jsx("dt",{children:"Start command"}),i.jsx("dd",{className:"mono",children:"npm run dev"}),n&&i.jsxs(i.Fragment,{children:[i.jsx("dt",{children:"Service"}),i.jsxs("dd",{children:[n.service," ",n.version," · mode ",n.mode]})]})]}),c&&i.jsx("p",{className:"form-error",role:"alert",children:c}),i.jsxs("div",{className:"btn-row",children:[i.jsxs("button",{type:"button",className:"btn btn--ghost btn--sm",onClick:C,disabled:a,children:[a?i.jsx(Ut,{size:14,className:"spin","aria-hidden":!0}):i.jsx(oa,{size:14,"aria-hidden":!0}),"Check health"]}),e.connection!=="live"&&i.jsxs("button",{type:"button",className:"btn btn--ghost btn--sm",onClick:e.onRetry,children:[i.jsx(gn,{size:14,"aria-hidden":!0})," Reconnect"]})]})]}),i.jsxs("section",{className:"card settings__card",children:[i.jsx(Tt,{children:"Current project"}),i.jsxs("dl",{className:"meta-grid meta-grid--wide",children:[i.jsx("dt",{children:"Name"}),i.jsx("dd",{children:M.name}),i.jsx("dt",{children:"Source"}),i.jsx("dd",{children:e.source==="offline-demo"?"Offline demo (bundled in the app)":M.mode==="sample"?"Sample project from the local service":M.mode==="local"?"Local folder":"Planned from a description"}),i.jsx("dt",{children:"Folder"}),i.jsx("dd",{className:"mono",children:M.rootPath??"—"}),i.jsx("dt",{children:"Connected"}),i.jsx("dd",{children:_t(M.connectedAt)}),i.jsx("dt",{children:"File watcher"}),i.jsx("dd",{children:e.source==="service"?e.state.integration.watcher:"—"}),i.jsx("dt",{children:"Components"}),i.jsxs("dd",{children:[e.state.nodes.length," · ",e.state.snapshots.length," snapshots · ",e.state.activities.length," activities"]}),i.jsx("dt",{children:"Schema"}),i.jsxs("dd",{children:["v",e.state.schemaVersion]})]}),e.state.integration.notes.length>0&&i.jsxs(i.Fragment,{children:[i.jsx(Tt,{children:"Good to know"}),i.jsx("ul",{className:"bullet-list bullet-list--notes",children:e.state.integration.notes.map(z=>i.jsx("li",{children:z},z))})]})]}),i.jsxs("section",{className:"card settings__card",children:[i.jsx(Tt,{children:"Display"}),i.jsxs("div",{className:"setting-row",children:[i.jsxs("span",{children:[i.jsx("strong",{children:"Theme"}),i.jsx("span",{className:"muted-text",children:"System follows your operating system's light or dark setting."})]}),i.jsx("div",{className:"segmented",role:"group","aria-label":"Theme",children:["system","light","dark"].map(z=>i.jsx("button",{type:"button","aria-pressed":e.themePreference===z,className:"segmented__btn",onClick:()=>e.onThemePreferenceChange(z),children:z==="system"?"System":z==="light"?"Light":"Dark"},z))})]}),i.jsxs("label",{className:"toggle-row",children:[i.jsx("input",{type:"checkbox",checked:e.showTechnical,onChange:z=>e.onShowTechnicalChange(z.target.checked)}),i.jsxs("span",{children:[i.jsx("strong",{children:"Show technical details"}),i.jsx("span",{className:"muted-text",children:"File paths, ids, commands and every evidence item in panels."})]})]}),i.jsxs("label",{className:"toggle-row",children:[i.jsx("input",{type:"checkbox",checked:g,disabled:h||e.source!=="service"||e.connection==="offline",onChange:async z=>{const N=z.target.checked;p(!0),m(null);try{await e.onAgentMessagesChange(N)}catch(L){m(ft(L))}finally{p(!1)}}}),i.jsxs("span",{children:[i.jsx("strong",{children:"Show agent messages"}),i.jsx("span",{className:"muted-text",children:"What your agents say they are doing, and their plans, shown on the working card. Read from local session logs on this computer and kept in memory only; code blocks are removed and token-like text is masked. Prompts, reasoning and tool output are never read. Turning this off stops reading and clears what was shown."}),f&&i.jsx("span",{className:"form-error",children:f})]})]}),i.jsxs("label",{className:"toggle-row",children:[i.jsx("input",{type:"checkbox",checked:y,disabled:v||e.source!=="service"||e.connection==="offline",onChange:async z=>{const N=z.target.checked;w(!0),j(null);try{await e.onNpmLookupChange(N)}catch(L){j(ft(L))}finally{w(!1)}}}),i.jsxs("span",{children:[i.jsx("strong",{children:"Check new dependencies on npm"}),i.jsx("span",{className:"muted-text",children:"When an agent adds a package to a package.json, Kalvyr asks the public npm registry (registry.npmjs.org) whether it exists and whether its version is deprecated. Only the package name is sent, never code or the project's name. Packages from git, local files, workspaces or a private registry set in .npmrc are never looked up. Turning this off keeps the dependency alerts, without the check."}),S&&i.jsx("span",{className:"form-error",children:S})]})]}),i.jsxs("div",{className:"btn-row",children:[i.jsxs("button",{type:"button",className:"btn btn--ghost btn--sm",onClick:()=>{e.onClearPrefs(),P(!0)},children:[i.jsx(d1,{size:14,"aria-hidden":!0})," Clear saved preferences"]}),b&&i.jsx("span",{className:"muted-text",role:"status",children:"Preferences cleared."})]})]}),i.jsxs("section",{className:"card settings__card",children:[i.jsxs(Tt,{children:[i.jsx(Ep,{size:13,"aria-hidden":!0})," Privacy"]}),i.jsxs("ul",{className:"bullet-list",children:[i.jsx("li",{children:"Kalvyr runs entirely on this computer. The service binds to 127.0.0.1 only."}),i.jsxs("li",{children:['No source code or prompts are sent to any external service. The one exception to "nothing leaves this computer": with ',i.jsx("strong",{children:"Check new dependencies on npm"})," on, the names of packages agents add are looked up on registry.npmjs.org."]}),i.jsx("li",{children:"Architecture is derived with local rules — there is no cloud AI analysis in this version."}),i.jsx("li",{children:"Preferences (filters, card positions) live in this browser's local storage."})]})]})]})})}function q1(e){return!!e&&typeof e=="object"&&e.snapshotsUnchanged===!0}const oj=8;function cj(e=oj){const n=new Map;return{get(r){const a=n.get(r);return a&&(n.delete(r),n.set(r,a)),a},set(r,a){for(n.delete(r),n.set(r,a);n.size>e;)n.delete(n.keys().next().value)}}}function E3(e){const{snapshotsUnchanged:n,snapshots:r,...a}=e;return a}function uj(e,n){if(!q1(e))return n.set(e.project.id,e.snapshots),e;const r=n.get(e.project.id);return r?{...E3(e),snapshots:r}:null}function dj(e,n,r){if(e&&Date.parse(e.updatedAt)>Date.parse(n.updatedAt))return null;if(!q1(n))return r.set(n.project.id,n.snapshots),n;const a=(e==null?void 0:e.project.id)===n.project.id?e.snapshots:r.get(n.project.id);return{...E3(n),snapshots:a??[]}}const z3="2026-01-01T09:00:00.000Z",Si=e=>new Date(Date.parse(z3)+e*6e4).toISOString();let hj=0;const _n=(e,n,r,a)=>({id:`demo-ev-${++hj}`,kind:e,summary:n,source:"sample",observedAt:Si(r),...a?{filePath:a}:{}}),Pt=(e,n,r)=>({id:e,name:n,status:r}),or=e=>({id:e.id,name:e.name,description:e.description,category:e.category,status:e.status,statusConfidence:e.statusConfidence??"confirmed",position:{x:e.x,y:e.y},parentId:null,features:e.features??[],filePaths:e.filePaths??[],implemented:e.implemented??[],pending:e.pending??[],evidence:e.evidence??[],origin:e.origin??"sample",createdAt:z3,updatedAt:Si(240),...e.removedReason?{removedReason:e.removedReason}:{}}),K1=[or({id:"web-app",name:"Web App",description:"The public website and signed-in experience customers use in their browser.",category:"frontend",status:"implemented",x:80,y:60,features:[Pt("web-landing","Landing page","completed"),Pt("web-shell","App shell & navigation","implemented")],filePaths:["src/app/","src/pages/"],implemented:["Landing page","Navigation shell"],pending:["Verification of the navigation shell"],evidence:[_n("file-exists","14 files under src/app",10,"src/app/")]}),or({id:"dashboard",name:"Customer Dashboard",description:"Where customers see their usage, projects and account at a glance.",category:"frontend",status:"in-progress",statusConfidence:"inferred",x:420,y:60,features:[Pt("dash-overview","Overview cards","implemented"),Pt("dash-usage","Usage charts","in-progress"),Pt("dash-team","Team members","planned")],filePaths:["src/dashboard/"],implemented:["Overview cards"],pending:["Usage charts","Team members list"],evidence:[_n("file-changed","Usage chart component edited",200,"src/dashboard/UsageChart.tsx")]}),or({id:"admin",name:"Admin Console",description:"Internal tools for the team to manage customers and plans.",category:"frontend",status:"planned",statusConfidence:"inferred",x:760,y:60,features:[Pt("admin-users","User management","planned"),Pt("admin-plans","Plan overrides","planned")],pending:["User management","Plan overrides"],evidence:[_n("plan","Listed in the product description",0)]}),or({id:"auth",name:"Authentication",description:"Sign up, log in, password reset and session handling.",category:"auth",status:"completed",x:80,y:330,features:[Pt("auth-signup","Registration","completed"),Pt("auth-login","Login & sessions","completed"),Pt("auth-reset","Password reset","completed")],filePaths:["src/auth/","server/auth/"],implemented:["Registration","Login with sessions","Password reset emails"],evidence:[_n("file-changed","Session middleware updated",90,"server/auth/session.ts"),_n("test-passed","18 authentication tests passed",120)]}),or({id:"api",name:"Backend API",description:"The server the web app talks to for every action.",category:"backend",status:"implemented",x:420,y:330,features:[Pt("api-projects","Projects endpoints","implemented"),Pt("api-usage","Usage endpoints","in-progress")],filePaths:["server/routes/"],implemented:["Projects endpoints"],pending:["Usage endpoints","Integration tests"],evidence:[_n("file-exists","9 route files under server/routes",10,"server/routes/")]}),or({id:"billing",name:"Billing & Subscriptions",description:"Plans, checkout, invoices and subscription changes.",category:"payments",status:"needs-rework",x:760,y:330,features:[Pt("bill-checkout","Checkout","implemented"),Pt("bill-webhooks","Payment webhooks","needs-rework"),Pt("bill-invoices","Invoices","planned")],filePaths:["server/billing/"],implemented:["Checkout flow"],pending:["Fix webhook signature handling","Invoices"],evidence:[_n("file-changed","Webhook handler added",150,"server/billing/webhooks.ts"),_n("test-failed","2 of 7 webhook tests failed",170)]}),or({id:"analytics",name:"Analytics",description:"Collects product usage so customers and the team can see trends.",category:"backend",status:"planned",statusConfidence:"inferred",x:1100,y:330,features:[Pt("an-events","Event tracking","planned"),Pt("an-reports","Reports","planned")],pending:["Event tracking","Reports"],evidence:[_n("plan","Listed in the product description",0)]}),or({id:"database",name:"Database",description:"Stores accounts, projects, subscriptions and usage records.",category:"data",status:"completed",x:420,y:600,features:[Pt("db-schema","Schema & migrations","completed")],filePaths:["server/db/","migrations/"],implemented:["Schema","Migrations"],evidence:[_n("file-exists","6 migrations",10,"migrations/"),_n("build-passed","Migrations applied cleanly",60)]}),or({id:"notifications",name:"Notification Service",description:"Sends emails about billing events and account changes.",category:"integration",status:"planned",x:760,y:600,pending:["Email templates","Delivery queue"],evidence:[_n("agent-claim","Proposed because billing needs receipt emails",180)],origin:"agent-proposed"}),or({id:"cache",name:"Caching Layer",description:"A shared cache that was planned to speed up dashboard queries.",category:"infrastructure",status:"removed",x:1100,y:600,removedReason:"Database indexes were fast enough; a separate cache added complexity without benefit.",evidence:[_n("plan","Dropped from the plan",210)]})];let pj=0;const Dn=(e,n,r="depends-on",a="active")=>({id:`demo-edge-${++pj}`,source:e,target:n,kind:r,state:a}),Q1=[Dn("web-app","auth"),Dn("web-app","api","calls"),Dn("dashboard","api","calls"),Dn("admin","api","calls","planned"),Dn("api","database","data-flow"),Dn("auth","database","data-flow"),Dn("billing","database","data-flow"),Dn("api","billing","calls"),Dn("dashboard","analytics","depends-on","planned"),Dn("analytics","database","data-flow","planned"),Dn("billing","notifications","calls","planned"),Dn("dashboard","cache","depends-on","removed")],yi=(e,n,r,a,o,c={})=>({id:e,timestamp:Si(n),type:r,message:a,agentId:null,nodeId:o,confidence:"confirmed",source:"sample",...c}),fj=[yi("demo-act-7",210,"node-removed","Caching Layer was removed from the plan: database indexes were fast enough.","cache",{fromStatus:"planned",toStatus:"removed"}),yi("demo-act-6",200,"file-change","Customer Dashboard usage charts were edited.","dashboard",{confidence:"inferred",technicalDetail:"src/dashboard/UsageChart.tsx"}),yi("demo-act-5",180,"node-added","Notification Service was proposed so billing can send receipts.","notifications"),yi("demo-act-4",170,"verification","Billing webhook tests failed — billing needs rework.","billing",{fromStatus:"implemented",toStatus:"needs-rework",technicalDetail:"2 of 7 tests failed"}),yi("demo-act-3",120,"verification","Authentication passed its tests and is complete.","auth",{fromStatus:"implemented",toStatus:"completed"}),yi("demo-act-2",60,"status-changed","Database migrations verified.","database",{toStatus:"completed"}),yi("demo-act-1",0,"plan-created","Initial architecture created from the product description.",null)],tp=(e,n)=>e.map(r=>n[r.id]?{...r,status:n[r.id]}:r),np=K1.filter(e=>e.id!=="notifications"),rp=Q1.filter(e=>e.target!=="notifications").map(e=>e.target==="cache"?{...e,state:"planned"}:e),mj=[{id:"demo-snap-1",createdAt:Si(0),label:"Initial plan",reason:"Architecture generated from the product description.",nodes:tp(np,{"web-app":"planned",dashboard:"planned",auth:"planned",api:"planned",billing:"planned",database:"planned",cache:"planned"}),edges:rp},{id:"demo-snap-2",createdAt:Si(120),label:"Authentication completed",reason:"18 authentication tests passed.",nodes:tp(np,{billing:"in-progress",dashboard:"planned",cache:"planned"}),edges:rp},{id:"demo-snap-3",createdAt:Si(210),label:"Caching Layer removed",reason:"Dropped from the plan: not needed.",nodes:K1,edges:Q1}],gj={schemaVersion:1,project:{id:"offline-demo",name:"Sample SaaS",description:"A fictional SaaS used to preview Kalvyr while the local service is not running.",mode:"sample",rootPath:null,connectedAt:null},nodes:K1,edges:Q1,agents:[],activities:fj,snapshots:mj,integration:{agentEvents:"none",lastAgentEventAt:null,watcher:"off",notes:["Offline demo: the local Kalvyr service is not running, so this is bundled sample data.","No agents are shown because no agent events have been received."]},updatedAt:Si(240)},ip=[2e3,4e3,8e3,15e3,3e4],xj=1e4,yj=4e4;function vj(){const[e,n]=_.useState(null),[r,a]=_.useState(null),[o,c]=_.useState("connecting"),[u,h]=_.useState(null),[p,f]=_.useState(null),[m,g]=_.useState(null),[y,v]=_.useState(null),w=_.useRef(null),S=_.useRef(null),j=_.useRef(null),b=_.useRef(0),P=_.useRef(!1),C=_.useRef(!1),M=_.useRef(()=>{}),z=_.useRef(0),N=_.useRef(null),L=_.useRef(null),V=_.useRef(cj()),K=_.useRef(null),D=_.useCallback($=>{L.current=$,P.current=!0,n($),a("service"),f(Date.now()),h(null)},[]),I=_.useCallback(()=>{var $;($=w.current)==null||$.close(),w.current=null,S.current!==null&&window.clearInterval(S.current),S.current=null},[]),B=_.useCallback(()=>{j.current!==null&&window.clearTimeout(j.current),j.current=null,v(null)},[]),H=_.useCallback($=>{if(C.current)return;I(),c("offline"),h($),P.current||(n(gj),a("offline-demo"));const G=ip[Math.min(b.current,ip.length-1)];b.current+=1,j.current!==null&&window.clearTimeout(j.current),v(Date.now()+G),j.current=window.setTimeout(()=>M.current(),G)},[I]),Y=_.useCallback(()=>{I();const $=new Yl(cr.events);w.current=$;const G=()=>Ue.health().then(A=>{if(w.current!==$)return;const F=!!A.instance&&!!N.current&&A.instance!==N.current;N.current=A.instance??N.current,(F||Date.now()-z.current>yj)&&M.current()}).catch(()=>{w.current===$&&H("The local Kalvyr service stopped responding.")});K.current=()=>{w.current===$&&G()},$.onopen=()=>{w.current===$&&(b.current=0,z.current=Date.now(),c("live"),h(null),N.current=null,G(),S.current!==null&&window.clearInterval(S.current),S.current=window.setInterval(()=>void G(),xj))},$.addEventListener("ping",()=>{w.current===$&&(z.current=Date.now())}),$.addEventListener("state",A=>{if(w.current===$){z.current=Date.now();try{const F=JSON.parse(A.data),W=q1(F)||Ou(F)?F:null;if(!W||!Ou({...W,snapshots:W.snapshots??[]}))return;const T=uj(W,V.current);T?D(T):M.current()}catch{}}}),$.addEventListener("activity",A=>{if(w.current===$){z.current=Date.now();try{g(JSON.parse(A.data))}catch{}}}),$.onerror=()=>{if(w.current===$){if($.readyState===Yl.CLOSED){H("Lost the live connection to the local Kalvyr service.");return}c("connecting"),Ue.health().catch(()=>{w.current===$&&H("The local Kalvyr service stopped responding.")})}}},[I,H,D]),ne=_.useCallback(async()=>{B(),c("connecting");try{const $=await Ue.state();if(C.current)return;V.current.set($.project.id,$.snapshots),D($),Y()}catch($){H(ft($))}},[B,H,Y,D]);M.current=()=>void ne(),_.useEffect(()=>(C.current=!1,ne(),()=>{C.current=!0,I(),j.current!==null&&window.clearTimeout(j.current)}),[ne,I]),_.useEffect(()=>{const $=()=>{var G;document.visibilityState==="visible"&&((G=K.current)==null||G.call(K))};return document.addEventListener("visibilitychange",$),()=>document.removeEventListener("visibilitychange",$)},[]);const ie=_.useCallback(()=>{b.current=0,ne()},[ne]),re=_.useCallback($=>{const G=dj(L.current,$,V.current);G&&D(G)},[D]);return{state:e,source:r,connection:o,stale:r==="service"&&o==="offline",lastError:u,lastSyncedAt:p,latestActivity:m,nextRetryAt:y,retry:ie,applyState:re}}const zu=e=>Lp(e).filter(n=>!n.packageWide),kj=["file-change","node-added","node-removed","node-restructured"],Z1=rf;function wj(e,n=Date.now()){return(e.agents??[]).filter(r=>!r.isSample&&r.state!=="disconnected"&&r.workPhase==="waiting"&&r.waitReason!=="tool-result"&&(r.waitUntil?Date.parse(r.waitUntil)>n:n-Date.parse(r.lastSeenAt)<9e4)).map(r=>{const a=r.locationIsHeld?void 0:e.nodes.find(o=>o.id===r.currentNodeId);return{id:r.id,agent:Z1[r.kind]??r.name,label:r.waitReason==="approval"?"Waiting for your approval":r.waitReason==="possible-approval"?"May need your approval":"Waiting for your input",nodeId:(a==null?void 0:a.id)??null,component:(a==null?void 0:a.name)??null}})}function ho(e){var r;const n=(r=e.rootPath)==null?void 0:r.replaceAll("\\","/").replace(/\/$/,"");return e.mode==="local"&&n?`local:${/^(?:[a-z]:|\/\/)/i.test(n)?n.toLowerCase():n}`:`${e.mode}:${e.id}`}const M3=e=>({id:e.id,name:e.name,status:e.status,files:[...e.filePaths].sort(),change:ji(sn(e,["file-changed"])),test:ji(sn(e,["test-passed","test-failed"])),build:ji(sn(e,["build-passed","build-failed"])),typecheck:ji(sn(e,["typecheck-passed","typecheck-failed"]))}),A3=e=>e.edges.filter(n=>n.state!=="removed").map(n=>JSON.stringify([n.source,n.target,n.kind,n.state])).sort();function sp(e,n=new Date().toISOString()){return{version:1,projectKey:ho(e.project),reviewedAt:n,nodes:e.nodes.map(M3),edges:A3(e),activityIds:e.activities.map(r=>r.id),evidenceIds:e.nodes.flatMap(r=>r.evidence.map(a=>a.id))}}function ap(e,n){const r=e;return!!r&&r.version===1&&r.projectKey===n&&Number.isFinite(Date.parse(r.reviewedAt))&&Array.isArray(r.nodes)&&r.nodes.every(a=>a&&typeof a.id=="string"&&typeof a.name=="string"&&typeof a.status=="string"&&Array.isArray(a.files)&&a.files.every(o=>typeof o=="string")&&[a.change,a.test,a.build].every(o=>typeof o=="string"))&&Array.isArray(r.edges)&&r.edges.every(a=>typeof a=="string"&&(()=>{try{const o=JSON.parse(a);return Array.isArray(o)&&o.length===4&&o.every(c=>typeof c=="string")}catch{return!1}})())&&Array.isArray(r.activityIds)&&r.activityIds.every(a=>typeof a=="string")&&(r.evidenceIds===void 0||Array.isArray(r.evidenceIds)&&r.evidenceIds.every(a=>typeof a=="string"))}function jj(e,n){if(n.projectKey!==ho(e.project))return[];const r=new Map(n.nodes.map(j=>[j.id,j])),a=new Map(e.nodes.map(j=>[j.id,j])),o=new Map,c=j=>{const b=a.get(j),P=r.get(j);if(!b&&!P)return null;const C=b&&b.status!=="removed"?ua(b):null,M=o.get(j)??{id:j,nodeId:b?j:null,name:(b==null?void 0:b.name)??P.name,edited:[],editedBy:[],onDisk:[],added:[],removed:[],changedAt:null,changes:[],attention:C!=null&&C.failed?C.label:(b==null?void 0:b.status)==="blocked"?"Development is marked blocked.":(b==null?void 0:b.status)==="needs-rework"?"Marked as needing rework.":null,unchecked:!!(C!=null&&C.awaiting)};return o.set(j,M),M},u=(j,b)=>{const P=c(j);P&&!P.changes.includes(b)&&P.changes.push(b)},h=new Set(n.activityIds),p=e.activities.filter(j=>!h.has(j.id)&&j.timestamp>=n.reviewedAt),f=p.filter(j=>kj.includes(j.type)&&j.technicalDetail).map(j=>({activity:j,paths:j.technicalDetail.split(`
|
|
677
|
+
`)})),m=new Map((e.agents??[]).map(j=>[j.id,Z1[j.kind]??j.name.split(" · ")[0]])),g=new Set(n.evidenceIds??[]),y=j=>j.evidence.filter(b=>b.source!=="sample"&&!g.has(b.id)&&b.observedAt>=n.reviewedAt),v=(j,b)=>{const P={test:b.test!==ji(sn(j,["test-passed","test-failed"])),build:b.build!==ji(sn(j,["build-passed","build-failed"])),typecheck:(b.typecheck??"")!==ji(sn(j,["typecheck-passed","typecheck-failed"]))};return zu(j).filter(C=>P[C.kind]).map(C=>`${C.label}${C.stale?", before later edits":""}.`)};for(const j of e.nodes){const b=r.get(j.id),P=M3(j);if(y(j).some(I=>I.kind==="agent-claim")&&u(j.id,"Agent report recorded."),!b){j.status!=="removed"&&u(j.id,j.status==="planned"?"Added to the plan.":"New component detected."),j.status!=="removed"&&j.status!=="planned"&&(c(j.id).added=[...j.filePaths]);continue}if(j.status==="removed"){b.status!=="removed"&&(u(j.id,"Removed from the map."),c(j.id).removed=[...b.files]);continue}b.status==="removed"&&u(j.id,"Returned to the map."),b.name!==j.name&&u(j.id,`Renamed from ${b.name}.`);const C=new Set(b.files),M=new Set(P.files),z=P.files.filter(I=>!C.has(I)),N=b.files.filter(I=>!M.has(I)),L=new Set,V=new Set,K=new Set;let D=null;for(const{activity:I,paths:B}of f){const H=B.filter(ne=>M.has(ne)||C.has(ne));if(!H.length)continue;const Y=I.agentId?m.get(I.agentId):void 0;Y&&K.add(Y),H.forEach(ne=>(Y?L:V).add(ne)),(!D||I.timestamp>D)&&(D=I.timestamp)}L.forEach(I=>V.delete(I));for(const I of z.concat(N))L.delete(I),V.delete(I);L.size||V.size||z.length||N.length?Object.assign(c(j.id),{edited:[...L].sort(),onDisk:[...V].sort(),editedBy:L.size?[...K].sort():[],added:z,removed:N,changedAt:D}):b.change!==P.change&&P.change&&u(j.id,"Files changed."),v(j,b).forEach(I=>u(j.id,I)),b.status!==j.status&&["blocked","needs-rework","completed"].includes(j.status)&&u(j.id,j.status==="completed"?"Completion reported; inspect the check evidence.":j.status==="blocked"?"Marked blocked.":"Marked as needing rework.")}for(const j of n.nodes)!a.has(j.id)&&j.status!=="removed"&&u(j.id,"No longer on the map.");const w=new Set(n.edges),S=new Set(A3(e));for(const[j,b,P]of[[S,w,"added"],[w,S,"removed"]])for(const C of j)if(!b.has(C)){const[M,z]=JSON.parse(C);if(!r.has(M)||!r.has(z)||!a.has(M)||!a.has(z))continue;u(M,`Connection to ${a.get(z).name} ${P}.`)}for(const j of p)if(j.nodeId){const b=o.get(j.nodeId);j.type==="file-change"&&!(b!=null&&b.edited.length||b!=null&&b.onDisk.length||b!=null&&b.added.length||b!=null&&b.removed.length)&&u(j.nodeId,"Files changed.");const P=a.get(j.nodeId);j.type==="verification"&&P&&zu(P).length&&!(b!=null&&b.changes.some(C=>/^(?:Tests|Build) /.test(C)))&&u(j.nodeId,"Check results updated.")}return[...o.values()].map(j=>{const b=a.get(j.id),P=b?y(b):[],C=P.filter(H=>H.kind==="file-changed"),M=[...new Set(C.map(H=>{var Y;return(Y=H.part)==null?void 0:Y.trim()}).filter(H=>!!H))],z=new Set([...j.edited,...j.onDisk,...j.added,...j.removed,...C.flatMap(H=>H.filePath&&(b!=null&&b.filePaths.includes(H.filePath))?[H.filePath]:[])]).size,N=b&&b.status!=="removed"?zu(b):[],L=N.some(H=>!H.stale&&!H.passed),V=P.filter(H=>H.kind==="agent-claim").map(H=>({text:H.summary,by:m.get(H.agentId??"")??"Agent"}));!V.length&&j.changes.includes("Completion reported; inspect the check evidence.")&&V.push({text:"Completion reported; not independently verified.",by:"Agent"});const K=j.changes.find(H=>/^(?:New component|Added to the plan|Removed from|No longer|Returned to|Renamed from)/.test(H)),D=z>0||C.length>0||j.changes.includes("Files changed."),I=K??(D?M.length?`${M.slice(0,2).join(" and ")}${M.length>2?` and ${M.length-2} more parts`:""} changed.`:`${j.name} changed.`:j.changes.some(H=>H.startsWith("Connection to"))?"Component connections changed.":N.length?"Check results updated.":j.attention?"Work needs attention.":"Agent update recorded."),B=P.map(H=>H.observedAt).sort().at(-1);return{...j,changedAt:[j.changedAt,B].filter(H=>!!H).sort().at(-1)??null,summary:{headline:I,fileCount:z,checks:bj(N),checkTone:L?"bad":N.some(H=>H.stale)?"stale":"neutral",needs:L?"Investigate the failed checks.":j.attention??(j.unchecked?"Check the latest changes.":null),note:!L&&b&&b.status!=="removed"&&ua(b).projectPassed?"Checked by the whole-project run. None of its results name this component's own tests.":null,reports:V.filter((H,Y)=>V.findIndex(ne=>ne.by===H.by&&ne.text===H.text)===Y),observations:P,recordedChecks:N,technical:[...new Set(p.filter(H=>H.nodeId===j.id&&H.type==="verification"&&H.technicalDetail).map(H=>H.technicalDetail))]}}}).sort((j,b)=>+(!!b.attention||b.summary.checkTone==="bad")-+(!!j.attention||j.summary.checkTone==="bad")||+!!b.summary.needs-+!!j.summary.needs||(b.changedAt??"").localeCompare(j.changedAt??"")||j.name.localeCompare(b.name))}function bj(e){if(!e.length)return"No checks recorded.";const n=new Map;for(const r of e){const a=`${r.packageWide}:${r.passed}:${r.stale}:${r.evidence.source}`,o=n.get(a)??{names:[],check:r};o.names.push(r.kind==="test"?"Tests":r.kind==="build"?"Build":"Type check"),n.set(a,o)}return[...n.values()].sort((r,a)=>+(!a.check.passed&&!a.check.stale)-+(!r.check.passed&&!r.check.stale)).map(({names:r,check:a})=>{const o=a.evidence.source==="check-runner"?"":a.evidence.source==="sample"?" (sample)":" (reported)";return`${a.packageWide?"Package: ":""}${P3(r)} ${a.passed?"passed":"failed"}${a.stale?" before later changes":""}${o}.`}).join(" ")}const P3=e=>e.length===1?e[0]:`${e.slice(0,-1).map((n,r)=>r?n.toLowerCase():n).join(", ")} and ${e.at(-1).toLowerCase()}`,_j={test:"Tests",build:"Build",typecheck:"Type check"};function Sj(e){var r;const n=new Set;for(const a of e.split(/\r?\n/)){const o=(r=/^\s*(?:✖|×|✗|FAIL\s|●|\d+\)\s)\s*(.+?)\s*(?:\(\d+(?:\.\d+)?m?s\)|\d+(?:\.\d+)?m?s)?$/.exec(a))==null?void 0:r[1];o&&!/^(?:failing tests|console\b|\d+ (?:failing|failed|tests? failed))/i.test(o)&&n.add(o)}return[...n]}function Nj(e,n,r=null){var p,f,m;if(n.projectKey!==ho(e.project))return[];const a=new Set(n.evidenceIds??[]),o=new Map((e.agents??[]).map(g=>[g.id,Z1[g.kind]??g.name.split(" · ")[0]])),c=new Map;let u="";for(const g of e.nodes)for(const y of g.evidence){y.kind==="file-changed"&&y.observedAt>u&&(u=y.observedAt);const v=(p=/^(test|build|typecheck)-(?:passed|failed)$/.exec(y.kind))==null?void 0:p[1];if(!v||y.source==="sample"||a.has(y.id)||y.observedAt<n.reviewedAt||!Tp(y))continue;const w=y.source==="check-runner"?"Kalvyr":o.get(y.agentId??"")??"An agent",S=y.source==="check-runner"?[...y.summary.matchAll(/`([^`]+)` in (.+?) \(exit ([^)]+)\)/g)].map(j=>({command:j[1],where:j[2]==="the project folder"?"Project":j[2],passed:j[3]==="0"})):[{command:((f=/`([^`]+)`/.exec(y.summary))==null?void 0:f[1])??"",where:w,passed:y.kind.endsWith("-passed")}];S.length||S.push({command:"",where:"Project",passed:y.kind.endsWith("-passed")});for(const j of S){const b=`${w}
|
|
678
|
+
${j.where}
|
|
679
|
+
${j.command}
|
|
680
|
+
${v}`;(((m=c.get(b))==null?void 0:m.at)??"")<=y.observedAt&&c.set(b,{...j,kind:v,by:w,at:y.observedAt})}}const h=new Map;for(const g of c.values()){const y=u>g.at,v=`${g.by}
|
|
681
|
+
${g.where}
|
|
682
|
+
${g.passed}
|
|
683
|
+
${y}`,w=h.get(v)??{id:v,where:g.where,label:"",passed:g.passed,stale:y,by:g.by,at:g.at,commands:[],failing:[],kinds:[]};w.kinds.includes(g.kind)||w.kinds.push(g.kind),g.command&&!w.commands.includes(g.command)&&w.commands.push(g.command),g.at>w.at&&(w.at=g.at);const S=g.by==="Kalvyr"&&!g.passed&&r&&r.startedAt<=g.at?r.results.find(j=>j.kind===g.kind&&j.command===g.command&&(j.directory==="."?"Project":j.directory)===g.where):void 0;if(S)for(const j of Sj(S.output))w.failing.includes(j)||w.failing.push(j);h.set(v,w)}return[...h.values()].map(({kinds:g,...y})=>({...y,label:`${P3(["test","build","typecheck"].filter(v=>g.includes(v)).map(v=>_j[v]))} ${y.passed?"passed":"failed"}`})).sort((g,y)=>+(!y.passed&&!y.stale)-+(!g.passed&&!g.stale)||g.where.localeCompare(y.where)||Number(g.passed)-Number(y.passed))}function Cj(e,n,r=null){const a=e&&n&&e.project.mode!=="sample"?ho(e.project):null,[o,c]=_.useState(null);_.useEffect(()=>{if(!a||!e){c(null);return}if((o==null?void 0:o.projectKey)===a)return;const v=fr(`review:${a}`,null),w=ap(v,a)?v:sp(e);ap(v,a)||En(`review:${a}`,w),c(w)},[a,e,o]);const u=a&&(o==null?void 0:o.projectKey)===a?o:null,h=_.useMemo(()=>e&&u?jj(e,u):[],[e,u]),p=_.useMemo(()=>e&&u?Nj(e,u,r):[],[e,u,r]),f=_.useCallback(()=>{if(!e||!a||e.project.rescan)return;const v=sp(e);En(`review:${a}`,v),c(v)},[e,a]),m=_.useMemo(()=>e&&u?wj(e):[],[e,u]),g=e==null?void 0:e.activities.find(v=>v.type==="verification"&&v.source==="check-runner"&&!v.nodeId),y=g!=null&&g.message.startsWith("Project checks failed")?g.message:void 0;return{baseline:u,items:h,projectChecks:p,requests:m,markReviewed:f,projectCheckFailure:y}}const Ej="(min-width: 1100px)",zj=()=>typeof window<"u"&&window.matchMedia?window.matchMedia(Ej).matches:!0;function vi(e,n){const[r,a]=_.useState(()=>fr(e,n)),o=_.useCallback(c=>{a(c),En(e,c)},[e]);return[r,o]}const Mj=8e3,Aj=["node-added","node-removed","node-restructured"];function Pj(){const e=vj(),{state:n,source:r,connection:a}=e,[o,c]=_.useState(null),u=Cj(n,r==="service",n&&(o==null?void 0:o.projectId)===n.project.id?o:null),[h,p]=_.useState("architecture"),[f,m]=_.useState(null),[g,y]=_.useState(!1),[v,w]=_.useState(null),S=(f==null?void 0:f.edition)==="pro",[j,b]=_.useState(null),[P,C]=vi("proSidebarCollapsed",!1),M=_.useRef(!1),z=_.useCallback(ke=>{M.current=!0,C(ke)},[C]);_.useEffect(()=>{if(!M.current)return;const ke=P?j==null?void 0:j.querySelector('[aria-label="Show left sidebar"]'):(j==null?void 0:j.querySelector(".pro-search input"))??(j==null?void 0:j.querySelector('[aria-label="Collapse left sidebar"]'));ke&&(ke.focus(),M.current=!1)},[P,j]);const[N,L]=_.useState(zj),[V,K]=_.useState(!1),[D,I]=_.useState("details"),[B,H]=_.useState(null),[Y,ne]=_.useState(""),[ie,re]=_.useState([]),[$,G]=vi("showRemoved",!0),[A,F]=vi("showTechnical",!1),[W,T]=vi(nj,"system"),ve=rj(W),[te,le]=vi("recentPaths",[]),[je,we]=vi("lastProjectPath",null),[ce,ge]=_.useState(!1),[ee,Ae]=_.useState({status:"idle"}),Ze=_.useRef(null),[mt,tt]=_.useState(null),[xt,Xt]=_.useState(null),[zn,Jt]=_.useState(),[Lt,rt]=_.useState(0),[Et,It]=_.useState(null),[Rt,Dt]=_.useState(null),[ln,J]=_.useState(!1),[he,Se]=_.useState(null),[ze,Qe]=_.useState(),[Ke,lt]=_.useState(null),[yt,en]=_.useState(null),[Vt,Ft]=_.useState(null),[se,Be]=vi("dismissedPlans",[]),Ie=n?qw(n.project.id,n.plans??[],se).filter(ke=>n.agents.some(Oe=>Oe.id===ke.agentId&&Oe.state==="active")):[],Ve=_.useRef(null),Fe=(n==null?void 0:n.project.id)??null,Xe=r==="service"&&a!=="offline";_.useEffect(()=>{let ke=!1;const Oe=()=>{Xe&&Ue.edition().then(er=>{ke||m(er)}).catch(()=>{})};Oe();const tn=window.setInterval(Oe,5e3);return()=>{ke=!0,window.clearInterval(tn)}},[Xe]);const Q=!!n&&(r==="service"&&n.project.mode==="sample"||r==="offline-demo")&&!ce,oe=r==="service"&&(n==null?void 0:n.project.mode)==="local"?n.project.rescan:void 0,me=_.useCallback(async()=>{J(!0),Se(null);try{await Ue.rescan()}catch(ke){Se(ft(ke))}finally{J(!1)}},[]),ye=je??te[0];_.useEffect(()=>{K(!1)},[Fe]);const Me=(n==null?void 0:n.snapshots)??[],Re=mt?Me.findIndex(ke=>ke.id===mt):-1,De=Re>=0?Me[Re]:null,St=S&&V&&!De&&(n==null?void 0:n.project.mode)==="local",yn=()=>{K(!1),Fe&&Ue.stopLivePreview(Fe).catch(()=>{})};_.useEffect(()=>{mt&&Re<0&&tt(null)},[mt,Re]);const wt=De?De.nodes:(n==null?void 0:n.nodes)??[],Mn=De?De.edges:(n==null?void 0:n.edges)??[],Nr=_.useMemo(()=>De?[]:(n==null?void 0:n.agents)??[],[De,n==null?void 0:n.agents]),Jn=_.useMemo(()=>Y.trim()?wt.filter(ke=>Dk(ke,Y)):null,[wt,Y]),po=_.useMemo(()=>Hk(wt),[wt]),ds=B?wt.find(ke=>ke.id===B):void 0;_.useEffect(()=>{const ke=r==="service"&&(n==null?void 0:n.project.mode)==="local"?n.project.rootPath:null;ke&&ke!==je&&we(ke)},[r,n==null?void 0:n.project.mode,n==null?void 0:n.project.rootPath,je,we]),_.useEffect(()=>{!n||r!=="service"||n.project.mode!=="sample"||ce||!ye||Ze.current!==n.project.id&&(Ze.current=n.project.id,Ae({status:"opening",path:ye}),Ue.connect({path:ye}).then(ke=>{e.applyState(ke.state),Ae({status:"idle"})}).catch(ke=>Ae({status:"failed",path:ye,error:ft(ke)})))},[n,r,ce,ye,e]),_.useEffect(()=>{var ps;if(!n||r!=="service"){Ve.current=null;return}const ke=Ve.current;if(Ve.current={projectId:n.project.id,nodes:n.nodes,edges:n.edges,refreshing:!!n.project.rescan},!ke||ke.projectId!==n.project.id){Dt(null),Se(null);return}if(ke.refreshing||n.project.rescan||ke.nodes===n.nodes&&ke.edges===n.edges)return;const Oe=Op(ke,n);if(!Oe.length)return;const tn=Wt=>Wt.kind==="connected"||Wt.kind==="disconnected"?Wt.id:`component:${Ji(Wt.title)}`;Dt(Wt=>[...Oe,...(Wt??[]).filter(tr=>!Oe.some(ni=>tn(ni)===tn(tr)))].slice(0,12)),lt(((ps=n.snapshots.at(-1))==null?void 0:ps.id)??null);const er={};for(const Wt of[...Oe].sort((tr,ni)=>+(tr.kind==="connected"||tr.kind==="disconnected")-+(ni.kind==="connected"||ni.kind==="disconnected")))for(const tr of Wt.nodeIds)er[tr]??(er[tr]=Wt.kind);Qe({nodes:er,edges:Oe.flatMap(Wt=>Wt.edgeIds)})},[n,r]),_.useEffect(()=>{if(!ze)return;const ke=window.setTimeout(()=>Qe(void 0),Mj);return()=>window.clearTimeout(ke)},[ze]),_.useEffect(()=>{const ke=e.latestActivity;if(!ke||(h!=="activity"&&rt(tn=>tn+1),Aj.includes(ke.type)))return;const Oe=window.setTimeout(()=>It(tn=>(tn==null?void 0:tn.id)===ke.id?null:tn),6e3);return()=>window.clearTimeout(Oe)},[e.latestActivity]);const vn=_.useCallback(ke=>{p(ke),ke==="activity"&&rt(0)},[]),on=_.useCallback(ke=>{H(ke),ke&&(I("details"),L(!0))},[]),Cr=_.useCallback(ke=>{tt(null),ne(""),re([]),G(!0),vn("architecture"),on(ke)},[vn,on,G]),Er=_.useCallback(ke=>{Jt(ke),Xt("connect")},[]),ya=_.useCallback(ke=>{if(e.applyState(ke),Xt(null),tt(null),H(null),ne(""),re([]),vn("architecture"),ke.project.mode==="local"&&ke.project.rootPath){const Oe=ke.project.rootPath;le([Oe,...te.filter(tn=>tn!==Oe)].slice(0,S?50:6))}},[e,vn,te,le,S]),va=_.useCallback(ke=>{tt(ke),vn("architecture")},[vn]),ka=_.useCallback(()=>tt(null),[]),wa=h==="architecture"?De?`Snapshot · ${De.label}`:ds==null?void 0:ds.name:void 0,hs=ke=>{Ae({status:"opening",path:ke}),Ue.connect({path:ke}).then(Oe=>{Ae({status:"idle"}),ya(Oe.state)}).catch(Oe=>Ae({status:"failed",path:ke,error:ft(Oe)}))};let Bn;return n?Q&&h!=="settings"?Bn=i.jsx(ij,{mode:r==="offline-demo"?"offline":ee.status==="opening"?"opening":"choose",path:ee.path,error:ee.status==="failed"?ee.error:void 0,recentPaths:te,serviceAvailable:Xe,onConnect:()=>Er(),onOpenPath:hs,onExploreSample:()=>ge(!0),onRetry:e.retry}):h==="architecture"?Bn=i.jsxs("div",{className:`workspace${St?" workspace--preview":N?" workspace--panel":""}`,children:[i.jsxs("section",{className:"map","aria-label":"Architecture map",children:[i.jsxs("div",{className:"map__banners",children:[r==="offline-demo"&&i.jsxs("div",{className:"banner banner--offline",role:"status",children:[i.jsx(Ru,{size:15,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:"Offline demo."})," The local service isn't running, so this is bundled sample data. Run ",i.jsx("code",{children:"npm run dev"})," to see your project."]}),i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:e.retry,children:[i.jsx(gn,{size:12,"aria-hidden":!0})," Retry now"]})]}),e.stale&&i.jsxs("div",{className:"banner banner--offline",role:"status",children:[i.jsx(Ru,{size:15,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:"Connection lost."})," Showing the last state received"," ",e.lastSyncedAt?it(new Date(e.lastSyncedAt).toISOString()):"",". Reconnecting automatically."]}),i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:e.retry,children:[i.jsx(gn,{size:12,"aria-hidden":!0})," Retry now"]})]}),r==="service"&&n.project.mode==="sample"&&!De&&i.jsxs("div",{className:"banner banner--sample",role:"note",children:[i.jsx(Xn,{size:15,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:"Sample project."})," This is example data, not your code."]}),i.jsxs("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:()=>Er(),children:[i.jsx(Zn,{size:12,"aria-hidden":!0})," Connect folder"]}),i.jsx("button",{type:"button",className:"btn btn--ghost btn--xs",onClick:()=>ge(!1),children:"Close sample"})]}),De&&i.jsxs("div",{className:"banner banner--history",role:"status",children:[i.jsx(Yr,{size:15,"aria-hidden":!0}),i.jsxs("span",{children:[i.jsx("strong",{children:"Viewing history:"})," ",De.label," · ",_t(De.createdAt),i.jsx("span",{className:"banner__sub",children:" Read-only. Agents aren't shown in past snapshots."})]}),i.jsxs("div",{className:"banner__actions",children:[i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Older snapshot",disabled:Re<=0,onClick:()=>tt(Me[Re-1].id),children:i.jsx(fp,{size:15})}),i.jsxs("span",{className:"banner__count",children:[Re+1,"/",Me.length]}),i.jsx("button",{type:"button",className:"icon-btn icon-btn--sm","aria-label":"Newer snapshot",disabled:Re>=Me.length-1,onClick:()=>tt(Me[Re+1].id),children:i.jsx(Ni,{size:15})}),i.jsxs("button",{type:"button",className:"btn btn--primary btn--xs",onClick:ka,children:[i.jsx(Ap,{size:12,"aria-hidden":!0})," Return to current"]})]})]})]}),i.jsxs("div",{className:"map__canvas",children:[i.jsx(l7,{nodes:wt,checkRun:!De&&(o==null?void 0:o.projectId)===n.project.id?o:null,onRunChecks:()=>w(n.project.id),edges:Mn,agents:Nr,selectedNodeId:B,onSelectNode:on,searchQuery:Y,showRemoved:$,statusFilter:ie,recentChanges:De?void 0:ze,focusNodeIds:De?null:yt,revealNodeId:De?null:Vt,editConflicts:De?void 0:n.editConflicts,agentAlerts:De?void 0:n.agentAlerts}),!De&&r==="service"&&Ie.length>0&&i.jsx(Xw,{plans:Ie,agents:Nr,nodes:wt,onFocusNodes:en,onRevealNode:Ft,onSelectNode:on,serviceAvailable:Xe,onClose:()=>{Be([...new Set([...se,...Ie.map(ke=>S3(n.project.id,ke))])].slice(-100)),en(null),Ft(null)}}),wt.length===0&&!De&&i.jsxs("div",{className:"map__empty card",children:[i.jsx("h2",{children:"No components yet"}),i.jsx("p",{children:"Connect a local project to map its architecture."}),i.jsx("div",{className:"btn-row",children:i.jsxs("button",{type:"button",className:"btn btn--primary",onClick:()=>Er(),disabled:!Xe,children:[i.jsx(Zn,{size:15,"aria-hidden":!0})," Connect folder"]})})]})]})]}),St?i.jsxs(i.Fragment,{children:[i.jsx(Rk,{}),i.jsx(Ik,{state:n,selectedNodeId:B,onClose:yn},n.project.id)]}):N&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"panel-scrim",onClick:()=>L(!1),"aria-hidden":!0}),i.jsx(bw,{tab:D,onTabChange:I,state:n,source:r,nodes:wt,edges:Mn,agents:Nr,selectedNodeId:B,onSelectNode:on,showTechnical:A,viewingSnapshot:!!De,recap:{...u,onMarkReviewed:u.markReviewed,onOpenNode:Cr,unavailable:a!=="live",rescanPending:!!n.project.rescan,onRunChecks:Xe&&n.project.mode==="local"?()=>w(n.project.id):void 0},onClose:()=>L(!1)})]})]}):h==="activity"?Bn=i.jsx(Dw,{state:n,onOpenNode:Cr}):h==="history"?Bn=i.jsx(Bw,{state:n,viewingSnapshotId:mt,onViewSnapshot:va,highlightSnapshotId:Ke}):h==="integrations"?Bn=i.jsx(sj,{state:n,source:r,onSelectNode:Cr}):Bn=i.jsx(lj,{state:n,source:r,connection:a,lastError:e.lastError,onRetry:e.retry,showTechnical:A,onShowTechnicalChange:F,themePreference:W,onAgentMessagesChange:async ke=>{const Oe=await Ue.settings({agentMessages:ke});e.applyState(Oe.state)},onNpmLookupChange:async ke=>{const Oe=await Ue.settings({npmLookup:ke});e.applyState(Oe.state)},onThemePreferenceChange:T,onClearPrefs:()=>{D2(),le([]),G(!0),F(!1),T("system"),C(!1),D2()}}):Bn=i.jsxs("div",{className:"loading-screen",role:"status",children:[i.jsx(Ut,{size:22,className:"spin","aria-hidden":!0}),i.jsx("p",{children:"Connecting to the local Kalvyr service…"})]}),i.jsxs("div",{className:`app${S?" app--pro":""}${S&&P?" is-sidebar-collapsed":""}`,children:[S?i.jsx("div",{className:"pro-sidebar-host",ref:b,children:i.jsx(p7,{})}):i.jsx(h7,{view:h,onNavigate:vn,unseenActivity:Lt,onEdition:()=>y(!0)}),i.jsxs("div",{className:"app__body",children:[i.jsx(v7,{view:h,pro:S,state:Q?null:n,emptyProjectLabel:Q?ee.status==="opening"?"Reopening…":"No project open":void 0,source:r,recentPaths:te,onConnect:Er,searchQuery:Y,onSearchChange:ne,onSearchSubmit:()=>(Jn==null?void 0:Jn[0])&&on(Jn[0].id),matchCount:Jn?Jn.length:null,statusFilter:ie,onStatusFilterChange:re,showRemoved:$,onShowRemovedChange:G,counts:po,panelOpen:N&&!St,onTogglePanel:()=>{St?(yn(),L(!0)):L(ke=>!ke)},previewOpen:St,previewAvailable:Xe&&(n==null?void 0:n.project.mode)==="local"&&!De,onTogglePreview:()=>{S?St?yn():K(!0):y(!0)},crumb:wa,theme:ve,onToggleTheme:()=>T(ve==="dark"?"light":"dark")}),i.jsx("main",{className:"app__main",id:"main",children:S?i.jsx(Ak,{state:Q?null:n,available:Xe,recentPaths:te,onOpenProject:hs,onConnect:()=>Er(),onShowMap:()=>{tt(null),vn("architecture")},onNavigate:vn,onEdition:()=>y(!0),workspaceView:h,previewOpen:!!St,projectError:ee.status==="failed"?ee.error:void 0,sidebarHost:j,unseenActivity:Lt,sidebarCollapsed:P,onCollapseSidebar:()=>z(!0),onExpandSidebar:()=>z(!1),children:Bn}):Bn}),i.jsx(b7,{state:Q?null:n,source:r,connection:a,stale:e.stale,lastSyncedAt:e.lastSyncedAt,onRetry:e.retry,onRescan:oe?()=>{me()}:void 0,rescanBusy:ln,rescanError:he})]}),i.jsxs("div",{className:"toast-region","aria-live":"polite",children:[Rt&&i.jsx(Ww,{changes:Rt,onShowNode:ke=>Cr(ke),onViewChanges:()=>{vn("history"),Dt(null)},onDismiss:()=>Dt(null)}),Et&&i.jsxs("div",{className:"toast",children:[i.jsx("span",{className:"toast__dot","aria-hidden":!0}),i.jsx("span",{className:"toast__msg",children:Et.message}),Et.nodeId&&i.jsx("button",{type:"button",className:"link-btn",onClick:()=>{Cr(Et.nodeId),It(null)},children:"Show"})]})]}),i.jsx(zk,{open:g,edition:f,available:Xe,onClose:()=>y(!1),onChange:ke=>{m(ke),L(!1),K(!1),vn("architecture")}}),(n==null?void 0:n.project.mode)==="local"&&i.jsx(w7,{projectId:n.project.id,projectName:n.project.name,open:v===n.project.id,onClose:()=>w(null),onRunChange:c},n.project.id),i.jsx(Tw,{open:xt==="connect",onClose:()=>Xt(null),onSuccess:ya,serviceAvailable:Xe,recentPaths:te,initialPath:zn})]})}const T3=document.getElementById("root");if(!T3)throw new Error("Kalvyr: #root element missing from index.html");zm.createRoot(T3).render(i.jsx(_.StrictMode,{children:i.jsx(Pj,{})}));
|
|
684
|
+
//# sourceMappingURL=index-B0gafzcp.js.map
|