@task-handoff/control-plane 0.0.41-alpha.6 → 0.0.41-alpha.7
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/README.md +7 -1
- package/dist/cli.js +1 -1
- package/package.json +13 -1
- package/ui/assets/{CodeBlockNode-DOdQ8VfA.js → CodeBlockNode-CHAHxNT_.js} +1 -1
- package/ui/assets/{Tooltip-C6GltrtF.js → Tooltip-CEGimxW1.js} +1 -1
- package/ui/assets/{abnfDiagram-VRR7QNED-BUtxSvHN.js → abnfDiagram-VRR7QNED-RjcEM65i.js} +1 -1
- package/ui/assets/{arc-ZZE6To1e.js → arc-Ued-zKli.js} +1 -1
- package/ui/assets/{architectureDiagram-ZJ3FMSHR-lNlBhVw0.js → architectureDiagram-ZJ3FMSHR-CBOoUy1i.js} +1 -1
- package/ui/assets/{blockDiagram-677ZJIJ3-Z7N-RV0O.js → blockDiagram-677ZJIJ3-DqK4V1G7.js} +1 -1
- package/ui/assets/{c4Diagram-LMCZKHZV-Dnnn8NSc.js → c4Diagram-LMCZKHZV-DCh09lVs.js} +1 -1
- package/ui/assets/channel-B1DIt_X8.js +1 -0
- package/ui/assets/{chunk-2Q5K7J3B-BZwP3-a5.js → chunk-2Q5K7J3B-Icr_zCaS.js} +1 -1
- package/ui/assets/{chunk-32BRIVSS-0h6Latlg.js → chunk-32BRIVSS-C43Qy-Q4.js} +1 -1
- package/ui/assets/{chunk-5VM5RSS4-D6oj4ER0.js → chunk-5VM5RSS4-CcM_DH1L.js} +1 -1
- package/ui/assets/{chunk-EX3LRPZG-GNnk5OzJ.js → chunk-EX3LRPZG-BWDiKE02.js} +1 -1
- package/ui/assets/{chunk-JWPE2WC7-B6Da71mz.js → chunk-JWPE2WC7-DjchIfIw.js} +1 -1
- package/ui/assets/{chunk-MOJQB5TN-rcYRcb01.js → chunk-MOJQB5TN-BKWbxOo9.js} +1 -1
- package/ui/assets/{chunk-RYQCIY6F-CTuH9ihh.js → chunk-RYQCIY6F-BwYFZojb.js} +1 -1
- package/ui/assets/{chunk-V7JOEXUC-B9Bvp9Sz.js → chunk-V7JOEXUC-BuQTwxTN.js} +1 -1
- package/ui/assets/{chunk-VR4S4FIN-LNurwWh_.js → chunk-VR4S4FIN-Cgwej8nL.js} +1 -1
- package/ui/assets/{chunk-XXDRQBXY-Cisb8pay.js → chunk-XXDRQBXY-DxyGoSLr.js} +1 -1
- package/ui/assets/classDiagram-OUVF2IWQ-BAX9RjkF.js +1 -0
- package/ui/assets/classDiagram-v2-EOCWNBFH-BAX9RjkF.js +1 -0
- package/ui/assets/{cose-bilkent-JH36ORCC-D5_4d5Ek.js → cose-bilkent-JH36ORCC-BaZ6bMhu.js} +1 -1
- package/ui/assets/{cynefin-VYW2F7L2-C_fFxzLn.js → cynefin-VYW2F7L2-_GYlwwem.js} +1 -1
- package/ui/assets/{cynefinDiagram-TSTJHNR4-DFbkl7dw.js → cynefinDiagram-TSTJHNR4-XltKdNuZ.js} +1 -1
- package/ui/assets/{dagre-VKFMJZFB-Bnp7Reop.js → dagre-VKFMJZFB-BeftKww1.js} +1 -1
- package/ui/assets/{diagram-FQU43EPY-gbi1_Oxc.js → diagram-FQU43EPY-CLUjl06r.js} +1 -1
- package/ui/assets/{diagram-G47NLZAW-cmkB2qht.js → diagram-G47NLZAW-CzB5k6Nd.js} +1 -1
- package/ui/assets/{diagram-NH7WQ7WH-DTVzSHsG.js → diagram-NH7WQ7WH-BNXKxK6u.js} +1 -1
- package/ui/assets/{diagram-OA4YK3LP-CyQmZqnY.js → diagram-OA4YK3LP-Dkpt2SsB.js} +1 -1
- package/ui/assets/{diagram-WEI45ONY-CTrWAOYH.js → diagram-WEI45ONY-C8ESoZR7.js} +1 -1
- package/ui/assets/{ebnfDiagram-CCIWWBDH-B_zlEDzp.js → ebnfDiagram-CCIWWBDH-DhwkGoaG.js} +1 -1
- package/ui/assets/{erDiagram-Q63AITRT-D-nqHcaD.js → erDiagram-Q63AITRT-BneVfdmd.js} +1 -1
- package/ui/assets/{flowDiagram-23GEKE2U-CCXwe3b0.js → flowDiagram-23GEKE2U-C39FYayE.js} +1 -1
- package/ui/assets/{ganttDiagram-NO4QXBWP-CHuT55C3.js → ganttDiagram-NO4QXBWP-RZoJfsZh.js} +1 -1
- package/ui/assets/{gitGraphDiagram-IHSO6WYX-ncl78D9q.js → gitGraphDiagram-IHSO6WYX-DWHu8-p4.js} +1 -1
- package/ui/assets/{index-ovTe1MUg.js → index-JY9qUPUu.js} +5 -5
- package/ui/assets/{index10-1z0pFUSE.js → index10-BltLRpQ1.js} +1 -1
- package/ui/assets/{index11-BAXLo3Nw.js → index11-CDnNw9tS.js} +1 -1
- package/ui/assets/{index5-DdvvE0or.js → index5-1jJwjiE_.js} +1 -1
- package/ui/assets/{index6-Dx5Bbdeo.js → index6-DPjClPCs.js} +1 -1
- package/ui/assets/{index7-BlrlSUXg.js → index7-gQz7OpQP.js} +1 -1
- package/ui/assets/{index8-D-78Cgdk.js → index8-BsiuzSsR.js} +1 -1
- package/ui/assets/{infoDiagram-FWYZ7A6U-CvxSu4py.js → infoDiagram-FWYZ7A6U-Bp8-n-0l.js} +1 -1
- package/ui/assets/{ishikawaDiagram-FXEZZL3T-DiP7b79B.js → ishikawaDiagram-FXEZZL3T-DHYESpW0.js} +1 -1
- package/ui/assets/{journeyDiagram-5HDEW3XC-Cl0_ypYj.js → journeyDiagram-5HDEW3XC-CkiOr7KZ.js} +1 -1
- package/ui/assets/{kanban-definition-HUTT4EX6-BP-goXOi.js → kanban-definition-HUTT4EX6-BU8Hvnkf.js} +1 -1
- package/ui/assets/{linear-CBKXmxu_.js → linear-Bu_sOJ5z.js} +1 -1
- package/ui/assets/{mermaid.core-DHBLTfQ8.js → mermaid.core-C59XQJ8w.js} +4 -4
- package/ui/assets/{mhchem-dPq08_XM.js → mhchem-CEGuP5Ts.js} +1 -1
- package/ui/assets/{mindmap-definition-LN4V7U3C-CWsCwVOn.js → mindmap-definition-LN4V7U3C-DEOlN82P.js} +1 -1
- package/ui/assets/{pegDiagram-2B236MQR-DEE-3eKI.js → pegDiagram-2B236MQR-Itv02SDC.js} +1 -1
- package/ui/assets/{pieDiagram-ENE6RG2P-BPl1BLLT.js → pieDiagram-ENE6RG2P-DUZTt3KC.js} +1 -1
- package/ui/assets/{quadrantDiagram-ABIIQ3AL-DbBXL0S1.js → quadrantDiagram-ABIIQ3AL-SPbSFzRi.js} +1 -1
- package/ui/assets/{railroadDiagram-RFXS5EU6-MpSsZ136.js → railroadDiagram-RFXS5EU6-By3tXDTm.js} +1 -1
- package/ui/assets/{requirementDiagram-TGXJPOKE-DNpDVNZ3.js → requirementDiagram-TGXJPOKE-D9qQvWcc.js} +1 -1
- package/ui/assets/{sankeyDiagram-HTMAVEWB-knkeOful.js → sankeyDiagram-HTMAVEWB-CJBbBnHY.js} +1 -1
- package/ui/assets/{sequenceDiagram-DBY2YBRQ-CQ2Q6Prm.js → sequenceDiagram-DBY2YBRQ-Ba-OPEMF.js} +1 -1
- package/ui/assets/{sizeCapture-X5ZJPWSS-8y-gNhIr.js → sizeCapture-X5ZJPWSS-hXBwNnIs.js} +1 -1
- package/ui/assets/{stateDiagram-2N3HPSRC-E9wqj4K2.js → stateDiagram-2N3HPSRC-KUrZ7v0P.js} +1 -1
- package/ui/assets/stateDiagram-v2-6OUMAXLB-CxOrSiBs.js +1 -0
- package/ui/assets/{swimlanes-5IMT3BWC-BcqDzlcF.js → swimlanes-5IMT3BWC-CHHUPsKd.js} +2 -2
- package/ui/assets/swimlanesDiagram-G3AALYLV-B7z5jzD8.js +8 -0
- package/ui/assets/{timeline-definition-FHXFAJF6-CDEyGb88.js → timeline-definition-FHXFAJF6-BNyxBRn6.js} +1 -1
- package/ui/assets/{vennDiagram-L72KCM5P-DcMUx_F3.js → vennDiagram-L72KCM5P-DeqAXMed.js} +1 -1
- package/ui/assets/{wardleyDiagram-EHGQE667-B_oGitOF.js → wardleyDiagram-EHGQE667-Dh_aRAA_.js} +1 -1
- package/ui/assets/{xychartDiagram-FW5EYKEG-DoZLTxNs.js → xychartDiagram-FW5EYKEG-TjXK1kVB.js} +1 -1
- package/ui/index.html +1 -1
- package/ui/assets/channel-D--_gjIF.js +0 -1
- package/ui/assets/classDiagram-OUVF2IWQ-CT97E4mV.js +0 -1
- package/ui/assets/classDiagram-v2-EOCWNBFH-CT97E4mV.js +0 -1
- package/ui/assets/stateDiagram-v2-6OUMAXLB-CsbUK3nh.js +0 -1
- package/ui/assets/swimlanesDiagram-G3AALYLV-Ca6pdBOx.js +0 -8
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xterm-C91wPeZQ.js","assets/xterm-Dv47L9lv.css","assets/mhchem-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xterm-C91wPeZQ.js","assets/xterm-Dv47L9lv.css","assets/mhchem-CEGuP5Ts.js","assets/ui-vendor-DlCfJccy.js","assets/Tooltip-CEGimxW1.js","assets/CodeBlockNode-CHAHxNT_.js","assets/safeRaf-DGuzXxDK.js","assets/index7-gQz7OpQP.js","assets/index6-DPjClPCs.js","assets/index5-1jJwjiE_.js","assets/index11-CDnNw9tS.js","assets/index10-BltLRpQ1.js","assets/index8-BsiuzSsR.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import{a$ as Sl,bz as i,aY as Bee,aZ as uo,bk as D,b4 as vn,bp as lz,bh as as,bV as ze,bc as Ec,bq as cz,bj as Ck,aD as E,bw as uz,br as gi,aS as R8,aR as st,aU as Nd,aX as jn,bb as xo,bd as WI,aO as m,at as Fee,aV as KI,U as Me,bf as h,aG as V,a4 as dz,b5 as At,bX as b,bm as gn,bP as pz,bY as fi,bS as Fr,aJ as C,bx as Qt,aF as d,bs as f,b_ as nn,aH as W,aN as j,b9 as qs,bi as Xs,bH as ri,h as zee,b3 as Un,C as Uee,q as Hee,b6 as oa,aW as Ma,i as Vee,k as fz,n as mz,j as qee,l as jee,m as Wee,o as Kee,p as Gee,r as Yee,u as Qee,s as Zee,bG as oc,t as Xee,v as Jee,O as ete,G as tte,I as hz,L as gz,H as nte,J as ste,K as ote,M as ite,N as ate,P as rte,S as lte,Q as cte,R as ute,T as dte,a9 as pte,aa as fte,a8 as mte,ab as hte,a7 as gte,az as vte,ax as yte,aw as bte,ay as kte,aA as KS,f as wte,A as Ste,a as _te,e as Ite,d as Ate,b as Cte,c as xte,g as Ete,bA as Ah,bW as Wp,bl as ft,b7 as Qn,bo as Ms,b0 as Y1,bu as Tte,aB as Wa,bg as si,by as Nte,b1 as yp,bn as GI,bT as xk,aQ as Jp,bZ as Go,B as vz,D as M8,z as yz,y as bz,w as kz,x as wz,E as Sz,F as Rte,a2 as Mte,a1 as $te,a0 as Ote,a3 as Pte,$ as $8,ba as Dte,be as Lte,bQ as _z,aT as Bte,bE as GS,ai as Fte,ah as zte,ac as Ute,an as Hte,ag as Vte,ae as qte,af as jte,aj as Wte,ak as Kte,al as Gte,ad as Yte,am as Qte,bK as YI,b2 as O8,aK as Zte,bv as ii,bN as Xte,b8 as Jte,a_ as ene,aP as tne,_ as nne,bF as sne,bI as Iz,Y as one,X as ine,W as ane,bB as rne,Z as lne,V as cne,aI as Az,aq as une,ao as dne,ap as pne,ar as fne,av as mne,au as hne,bR as gne,bC as vne,bJ as gb,as as w0,aC as zg,bD as yne,a6 as bne,a5 as kne,bO as wne,bM as Sne,bL as _ne,aE as Ine}from"./ui-vendor-DlCfJccy.js";import"./xterm-C91wPeZQ.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const r of a.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function s(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();var y1=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ane=class extends y1{#n;#t;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#n!==e&&(this.#n=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#n=="boolean"?this.#n:globalThis.document?.visibilityState!=="hidden"}},P8=new Ane,Cne={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},xne=class{#n=Cne;#t=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}},kg=new xne;function Ene(e){setTimeout(e,0)}var Tne=typeof window>"u"||"Deno"in globalThis;function bd(){}function Nne(e,t){return typeof e=="function"?e(t):e}function FE(e){return typeof e=="number"&&e>=0&&e!==1/0}function Cz(e,t){return Math.max(e+(t||0)-Date.now(),0)}function nh(e,t){return typeof e=="function"?e(t):e}function Lu(e,t){return typeof e=="function"?e(t):e}function NM(e,t){const{type:n="all",exact:s,fetchStatus:o,predicate:a,queryKey:r,stale:l}=e;if(r){if(s){if(t.queryHash!==D8(r,t.options))return!1}else if(!yb(t.queryKey,r))return!1}if(n!=="all"){const c=t.isActive();if(n==="active"&&!c||n==="inactive"&&c)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||a&&!a(t))}function RM(e,t){const{exact:n,status:s,predicate:o,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(vb(t.options.mutationKey)!==vb(a))return!1}else if(!yb(t.options.mutationKey,a))return!1}return!(s&&t.state.status!==s||o&&!o(t))}function D8(e,t){return(t?.queryKeyHashFn||vb)(e)}function vb(e){return JSON.stringify(e,(t,n)=>zE(n)?Object.keys(n).sort().reduce((s,o)=>(s[o]=n[o],s),{}):n)}function yb(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>yb(e[n],t[n])):!1}var Rne=Object.prototype.hasOwnProperty;function Ek(e,t,n=0){if(e===t)return e;if(n>500)return t;const s=MM(e)&&MM(t);if(!s&&!(zE(e)&&zE(t)))return t;const a=(s?e:Object.keys(e)).length,r=s?t:Object.keys(t),l=r.length,c=s?new Array(l):{};let u=0;for(let p=0;p<l;p++){const g=s?p:r[p],y=e[g],v=t[g];if(y===v){c[g]=y,(s?p<a:Rne.call(e,g))&&u++;continue}if(y===null||v===null||typeof y!="object"||typeof v!="object"){c[g]=v;continue}const w=Ek(y,v,n+1);c[g]=w,w===y&&u++}return a===l&&u===a?e:c}function V2(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function MM(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function zE(e){if(!$M(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!$M(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function $M(e){return Object.prototype.toString.call(e)==="[object Object]"}function Mne(e){return new Promise(t=>{kg.setTimeout(t,e)})}function UE(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Ek(e,t):t}function $ne(e,t,n=0){const s=[...e,t];return n&&s.length>n?s.slice(1):s}function One(e,t,n=0){const s=[t,...e];return n&&s.length>n?s.slice(0,-1):s}var L8=Symbol();function xz(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===L8?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function OM(e,t){return typeof e=="function"?e(...t):!!e}function Pne(e,t,n){let s=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),s||(s=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var bb=(()=>{let e=()=>Tne;return{isServer(){return e()},setIsServer(t){e=t}}})();function HE(){let e,t;const n=new Promise((o,a)=>{e=o,t=a});n.status="pending",n.catch(()=>{});function s(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{s({status:"fulfilled",value:o}),e(o)},n.reject=o=>{s({status:"rejected",reason:o}),t(o)},n}var Dne=Ene;function Lne(){let e=[],t=0,n=l=>{l()},s=l=>{l()},o=Dne;const a=l=>{t?e.push(l):o(()=>{n(l)})},r=()=>{const l=e;e=[],l.length&&o(()=>{s(()=>{l.forEach(c=>{n(c)})})})};return{batch:l=>{let c;t++;try{c=l()}finally{t--,t||r()}return c},batchCalls:l=>(...c)=>{a(()=>{l(...c)})},schedule:a,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{s=l},setScheduler:l=>{o=l}}}var kl=Lne(),Bne=class extends y1{#n=!0;#t;#s;constructor(){super(),this.#s=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#s)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#s=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#n!==e&&(this.#n=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#n}},q2=new Bne;function Fne(e){return Math.min(1e3*2**e,3e4)}function Ez(e){return(e??"online")==="online"?q2.isOnline():!0}var VE=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Tz(e){let t=!1,n=0,s;const o=HE(),a=()=>o.status!=="pending",r=k=>{if(!a()){const A=new VE(k);y(A),e.onCancel?.(A)}},l=()=>{t=!0},c=()=>{t=!1},u=()=>P8.isFocused()&&(e.networkMode==="always"||q2.isOnline())&&e.canRun(),p=()=>Ez(e.networkMode)&&e.canRun(),g=k=>{a()||(s?.(),o.resolve(k))},y=k=>{a()||(s?.(),o.reject(k))},v=()=>new Promise(k=>{s=A=>{(a()||u())&&k(A)},e.onPause?.()}).then(()=>{s=void 0,a()||e.onContinue?.()}),w=()=>{if(a())return;let k;const A=n===0?e.initialPromise:void 0;try{k=A??e.fn()}catch(_){k=Promise.reject(_)}Promise.resolve(k).then(g).catch(_=>{if(a())return;const S=e.retry??(bb.isServer()?0:3),I=e.retryDelay??Fne,x=typeof I=="function"?I(n,_):I,T=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,_);if(t||!T){y(_);return}n++,e.onFail?.(n,_),Mne(x).then(()=>u()?void 0:v()).then(()=>{t?y(_):w()})})};return{promise:o,status:()=>o.status,cancel:r,continue:()=>(s?.(),o),cancelRetry:l,continueRetry:c,canStart:p,start:()=>(p()?w():v().then(w),o)}}var Nz=class{#n;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),FE(this.gcTime)&&(this.#n=kg.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(bb.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#n!==void 0&&(kg.clearTimeout(this.#n),this.#n=void 0)}};function zne(e){return{onFetch:(t,n)=>{const s=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],r=t.state.data?.pageParams||[];let l={pages:[],pageParams:[]},c=0;const u=async()=>{let p=!1;const g=w=>{Pne(w,()=>t.signal,()=>p=!0)},y=xz(t.options,t.fetchOptions),v=async(w,k,A)=>{if(p)return Promise.reject(t.signal.reason);if(k==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const R={client:t.client,queryKey:t.queryKey,pageParam:k,direction:A?"backward":"forward",meta:t.options.meta};return g(R),R})(),I=await y(S),{maxPages:x}=t.options,T=A?One:$ne;return{pages:T(w.pages,I,x),pageParams:T(w.pageParams,k,x)}};if(o&&a.length){const w=o==="backward",k=w?Une:PM,A={pages:a,pageParams:r},_=k(s,A);l=await v(A,_,w)}else{const w=e??a.length;do{const k=c===0?r[0]??s.initialPageParam:PM(s,l);if(c>0&&k==null)break;l=await v(l,k),c++}while(c<w)}return l};t.options.persister?t.fetchFn=()=>t.options.persister?.(u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=u}}}function PM(e,{pages:t,pageParams:n}){const s=t.length-1;return t.length>0?e.getNextPageParam(t[s],t,n[s],n):void 0}function Une(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Hne=class extends Nz{#n;#t;#s;#o;#e;#i;#a;#r;constructor(e){super(),this.#r=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#e=e.client,this.#o=this.#e.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=LM(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#n}get promise(){return this.#i?.promise}setOptions(e){if(this.options={...this.#a,...e},e?._type&&(this.#n=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=LM(this.options);t.data!==void 0&&(this.setState(DM(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(e,t){const n=UE(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#i?.promise;return this.#i?.cancel(e),t?t.then(bd).catch(bd):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Lu(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===L8||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>nh(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!Cz(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#i?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#i?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#i&&(this.#r||this.#d()?this.#i.cancel({revert:!0}):this.#i.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#d(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#i?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#i)return this.#i.continueRetry(),this.#i.promise}if(e&&this.setOptions(e),!this.options.queryFn){const c=this.observers.find(u=>u.options.queryFn);c&&this.setOptions(c.options)}const n=new AbortController,s=c=>{Object.defineProperty(c,"signal",{enumerable:!0,get:()=>(this.#r=!0,n.signal)})},o=()=>{const c=xz(this.options,t),p=(()=>{const g={client:this.#e,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#r=!1,this.options.persister?this.options.persister(c,p,this):c(p)},r=(()=>{const c={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#e,state:this.state,fetchFn:o};return s(c),c})();(this.#n==="infinite"?zne(this.options.pages):this.options.behavior)?.onFetch(r,this),this.#s=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==r.fetchOptions?.meta)&&this.#l({type:"fetch",meta:r.fetchOptions?.meta}),this.#i=Tz({initialPromise:t?.initialPromise,fn:r.fetchFn,onCancel:c=>{c instanceof VE&&c.revert&&this.setState({...this.#s,fetchStatus:"idle"}),n.abort()},onFail:(c,u)=>{this.#l({type:"failed",failureCount:c,error:u})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:r.options.retry,retryDelay:r.options.retryDelay,networkMode:r.options.networkMode,canRun:()=>!0});try{const c=await this.#i.start();if(c===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(c),this.#o.config.onSuccess?.(c,this),this.#o.config.onSettled?.(c,this.state.error,this),c}catch(c){if(c instanceof VE){if(c.silent)return this.#i.promise;if(c.revert){if(this.state.data===void 0)throw c;return this.state.data}}throw this.#l({type:"error",error:c}),this.#o.config.onError?.(c,this),this.#o.config.onSettled?.(this.state.data,c,this),c}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...Rz(n.data,this.options),fetchMeta:e.meta??null};case"success":const s={...n,...DM(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#s=e.manual?s:void 0,s;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),kl.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:e})})}};function Rz(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ez(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function DM(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function LM(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,s=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Mz=class extends y1{constructor(e,t){super(),this.options=t,this.#n=e,this.#r=null,this.#a=HE(),this.bindMethods(),this.setOptions(t)}#n;#t=void 0;#s=void 0;#o=void 0;#e;#i;#a;#r;#d;#l;#m;#p;#c;#f;#h=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),BM(this.#t,this.options)?this.#u():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qE(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qE(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#k(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#n.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Lu(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!V2(this.options,t)&&this.#n.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&FM(this.#t,n,this.options,t)&&this.#u(),this.updateResult(),s&&(this.#t!==n||Lu(this.options.enabled,this.#t)!==Lu(t.enabled,this.#t)||nh(this.options.staleTime,this.#t)!==nh(t.staleTime,this.#t))&&this.#g();const o=this.#v();s&&(this.#t!==n||Lu(this.options.enabled,this.#t)!==Lu(t.enabled,this.#t)||o!==this.#f)&&this.#y(o)}getOptimisticResult(e){const t=this.#n.getQueryCache().build(this.#n,e),n=this.createResult(t,e);return qne(this,n)&&(this.#o=n,this.#i=this.options,this.#e=this.#t.state),n}getCurrentResult(){return this.#o}trackResult(e,t){return new Proxy(e,{get:(n,s)=>(this.trackProp(s),t?.(s),s==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#a.status==="pending"&&this.#a.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,s))})}trackProp(e){this.#h.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#n.defaultQueryOptions(e),n=this.#n.getQueryCache().build(this.#n,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#u({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#o))}#u(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(bd)),t}#g(){this.#k();const e=nh(this.options.staleTime,this.#t);if(bb.isServer()||this.#o.isStale||!FE(e))return;const n=Cz(this.#o.dataUpdatedAt,e)+1;this.#p=kg.setTimeout(()=>{this.#o.isStale||this.updateResult()},n)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(e){this.#w(),this.#f=e,!(bb.isServer()||Lu(this.options.enabled,this.#t)===!1||!FE(this.#f)||this.#f===0)&&(this.#c=kg.setInterval(()=>{(this.options.refetchIntervalInBackground||P8.isFocused())&&this.#u()},this.#f))}#b(){this.#g(),this.#y(this.#v())}#k(){this.#p!==void 0&&(kg.clearTimeout(this.#p),this.#p=void 0)}#w(){this.#c!==void 0&&(kg.clearInterval(this.#c),this.#c=void 0)}createResult(e,t){const n=this.#t,s=this.options,o=this.#o,a=this.#e,r=this.#i,c=e!==n?e.state:this.#s,{state:u}=e;let p={...u},g=!1,y;if(t._optimisticResults){const $=this.hasListeners(),O=!$&&BM(e,t),F=$&&FM(e,n,t,s);(O||F)&&(p={...p,...Rz(u.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:v,errorUpdatedAt:w,status:k}=p;y=p.data;let A=!1;if(t.placeholderData!==void 0&&y===void 0&&k==="pending"){let $;o?.isPlaceholderData&&t.placeholderData===r?.placeholderData?($=o.data,A=!0):$=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,$!==void 0&&(k="success",y=UE(o?.data,$,t),g=!0)}if(t.select&&y!==void 0&&!A)if(o&&y===a?.data&&t.select===this.#d)y=this.#l;else try{this.#d=t.select,y=t.select(y),y=UE(o?.data,y,t),this.#l=y,this.#r=null}catch($){this.#r=$}this.#r&&(v=this.#r,y=this.#l,w=Date.now(),k="error");const _=p.fetchStatus==="fetching",S=k==="pending",I=k==="error",x=S&&_,T=y!==void 0,M={status:k,fetchStatus:p.fetchStatus,isPending:S,isSuccess:k==="success",isError:I,isInitialLoading:x,isLoading:x,data:y,dataUpdatedAt:p.dataUpdatedAt,error:v,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:p.dataUpdateCount>c.dataUpdateCount||p.errorUpdateCount>c.errorUpdateCount,isFetching:_,isRefetching:_&&!S,isLoadingError:I&&!T,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:I&&T,isStale:B8(e,t),refetch:this.refetch,promise:this.#a,isEnabled:Lu(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const $=M.data!==void 0,O=M.status==="error"&&!$,F=z=>{O?z.reject(M.error):$&&z.resolve(M.data)},B=()=>{const z=this.#a=M.promise=HE();F(z)},N=this.#a;switch(N.status){case"pending":e.queryHash===n.queryHash&&F(N);break;case"fulfilled":(O||M.data!==N.value)&&B();break;case"rejected":(!O||M.error!==N.reason)&&B();break}}return M}updateResult(){const e=this.#o,t=this.createResult(this.#t,this.options);if(this.#e=this.#t.state,this.#i=this.options,this.#e.data!==void 0&&(this.#m=this.#t),V2(t,e))return;this.#o=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#h.size)return!0;const a=new Set(o??this.#h);return this.options.throwOnError&&a.add("error"),Object.keys(this.#o).some(r=>{const l=r;return this.#o[l]!==e[l]&&a.has(l)})};this.#_({listeners:n()})}#S(){const e=this.#n.getQueryCache().build(this.#n,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#s=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){kl.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#o)}),this.#n.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Vne(e,t){return Lu(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Lu(t.retryOnMount,e)===!1)}function BM(e,t){return Vne(e,t)||e.state.data!==void 0&&qE(e,t,t.refetchOnMount)}function qE(e,t,n){if(Lu(t.enabled,e)!==!1&&nh(t.staleTime,e)!=="static"){const s=typeof n=="function"?n(e):n;return s==="always"||s!==!1&&B8(e,t)}return!1}function FM(e,t,n,s){return(e!==t||Lu(s.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&B8(e,n)}function B8(e,t){return Lu(t.enabled,e)!==!1&&e.isStaleByTime(nh(t.staleTime,e))}function qne(e,t){return!V2(e.getCurrentResult(),t)}var jne=class extends Nz{#n;#t;#s;#o;constructor(e){super(),this.#n=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||Wne(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#s.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#e({type:"continue"})},n={client:this.#n,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Tz({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(a,r)=>{this.#e({type:"failed",failureCount:a,error:r})},onPause:()=>{this.#e({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});const s=this.state.status==="pending",o=!this.#o.canStart();try{if(s)t();else{this.#e({type:"pending",variables:e,isPaused:o}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,n);const r=await this.options.onMutate?.(e,n);r!==this.state.context&&this.#e({type:"pending",context:r,variables:e,isPaused:o})}const a=await this.#o.start();return await this.#s.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#s.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#e({type:"success",data:a}),a}catch(a){try{await this.#s.config.onError?.(a,e,this.state.context,this,n)}catch(r){Promise.reject(r)}try{await this.options.onError?.(a,e,this.state.context,n)}catch(r){Promise.reject(r)}try{await this.#s.config.onSettled?.(void 0,a,this.state.variables,this.state.context,this,n)}catch(r){Promise.reject(r)}try{await this.options.onSettled?.(void 0,a,e,this.state.context,n)}catch(r){Promise.reject(r)}throw this.#e({type:"error",error:a}),a}finally{this.#s.runNext(this)}}#e(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),kl.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function Wne(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $z=class extends y1{constructor(t={}){super(),this.config=t,this.#n=new Set,this.#t=new Map,this.#s=0}#n;#t;#s;build(t,n,s){const o=new jne({client:t,mutationCache:this,mutationId:++this.#s,options:t.defaultMutationOptions(n),state:s});return this.add(o),o}add(t){this.#n.add(t);const n=Sw(t);if(typeof n=="string"){const s=this.#t.get(n);s?s.push(t):this.#t.set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#n.delete(t)){const n=Sw(t);if(typeof n=="string"){const s=this.#t.get(n);if(s)if(s.length>1){const o=s.indexOf(t);o!==-1&&s.splice(o,1)}else s[0]===t&&this.#t.delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Sw(t);if(typeof n=="string"){const o=this.#t.get(n)?.find(a=>a.state.status==="pending");return!o||o===t}else return!0}runNext(t){const n=Sw(t);return typeof n=="string"?this.#t.get(n)?.find(o=>o!==t&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kl.batch(()=>{this.#n.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#n.clear(),this.#t.clear()})}getAll(){return Array.from(this.#n)}find(t){const n={exact:!0,...t};return this.getAll().find(s=>RM(n,s))}findAll(t={}){return this.getAll().filter(n=>RM(t,n))}notify(t){kl.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return kl.batch(()=>Promise.all(t.map(n=>n.continue().catch(bd))))}};function Sw(e){return e.options.scope?.id}function zM(e,t){const n=new Set(t);return e.filter(s=>!n.has(s))}function Kne(e,t,n){const s=e.slice(0);return s[t]=n,s}var Gne=class extends y1{#n;#t;#s;#o;#e;#i;#a;#r;#d;#l=[];constructor(e,t,n){super(),this.#n=e,this.#o=n,this.#s=[],this.#e=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#e.forEach(e=>{e.subscribe(t=>{this.#h(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#e.forEach(e=>{e.destroy()})}setQueries(e,t){this.#s=e,this.#o=t,kl.batch(()=>{const n=this.#e,s=this.#f(this.#s);s.forEach(p=>p.observer.setOptions(p.defaultedQueryOptions));const o=s.map(p=>p.observer),a=o.map(p=>p.getCurrentResult()),r=n.length!==o.length,l=o.some((p,g)=>p!==n[g]),c=r||l,u=c?!0:a.some((p,g)=>{const y=this.#t[g];return!y||!V2(p,y)});!c&&!u||(c&&(this.#l=s,this.#e=o),this.#t=a,this.hasListeners()&&(c&&(zM(n,o).forEach(p=>{p.destroy()}),zM(o,n).forEach(p=>{p.subscribe(g=>{this.#h(p,g)})})),this.#u()))})}getCurrentResult(){return this.#t}getQueries(){return this.#e.map(e=>e.getCurrentQuery())}getObservers(){return this.#e}getOptimisticResult(e,t){const n=this.#f(e),s=n.map(a=>a.observer.getOptimisticResult(a.defaultedQueryOptions)),o=n.map(a=>a.defaultedQueryOptions.queryHash);return[s,a=>this.#p(a??s,t,o),()=>this.#m(s,n)]}#m(e,t){return t.map((n,s)=>{const o=e[s];return n.defaultedQueryOptions.notifyOnChangeProps?o:n.observer.trackResult(o,a=>{t.forEach(r=>{r.observer.trackProp(a)})})})}#p(e,t,n){if(t){const s=this.#d,o=n!==void 0&&s!==void 0&&(s.length!==n.length||n.some((a,r)=>a!==s[r]));return(!this.#i||this.#t!==this.#r||o||t!==this.#a)&&(this.#a=t,this.#r=this.#t,n!==void 0&&(this.#d=n),this.#i=Ek(this.#i,t(e))),this.#i}return e}#c(){return this.#o?.combine!==void 0&&this.#e.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#f(e){const t=new Map;this.#e.forEach(s=>{const o=s.options.queryHash;if(!o)return;const a=t.get(o);a?a.push(s):t.set(o,[s])});const n=[];return e.forEach(s=>{const o=this.#n.defaultQueryOptions(s),r=t.get(o.queryHash)?.shift()??new Mz(this.#n,o);n.push({defaultedQueryOptions:o,observer:r})}),n}#h(e,t){const n=this.#e.indexOf(e);n!==-1&&(this.#t=Kne(this.#t,n,t),this.#u())}#u(){if(this.hasListeners()){const e=this.#m(this.#t,this.#l),t=this.#c(),n=this.#i,s=t?n:this.#p(e,this.#o?.combine);(t||n!==s)&&kl.batch(()=>{this.listeners.forEach(o=>{o(this.#t)})})}}},Oz=class extends y1{constructor(t={}){super(),this.config=t,this.#n=new Map}#n;build(t,n,s){const o=n.queryKey,a=n.queryHash??D8(o,n);let r=this.get(a);return r||(r=new Hne({client:t,queryKey:o,queryHash:a,options:t.defaultQueryOptions(n),state:s,defaultOptions:t.getQueryDefaults(o)}),this.add(r)),r}add(t){this.#n.has(t.queryHash)||(this.#n.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=this.#n.get(t.queryHash);n&&(t.destroy(),n===t&&this.#n.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){kl.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#n.get(t)}getAll(){return[...this.#n.values()]}find(t){const n={exact:!0,...t};return this.getAll().find(s=>NM(n,s))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(s=>NM(t,s)):n}notify(t){kl.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){kl.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){kl.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Yne=class{#n;#t;#s;#o;#e;#i;#a;#r;constructor(t={}){this.#n=t.queryCache||new Oz,this.#t=t.mutationCache||new $z,this.#s=t.defaultOptions||{},this.#o=new Map,this.#e=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#a=P8.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#r=q2.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#a?.(),this.#a=void 0,this.#r?.(),this.#r=void 0)}isFetching(t){return this.#n.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const n=this.defaultQueryOptions({queryKey:t});return this.#n.get(n.queryHash)?.state.data}ensureQueryData(t){const n=this.defaultQueryOptions(t),s=this.#n.build(this,n),o=s.state.data;return o===void 0?this.fetchQuery(t):(t.revalidateIfStale&&s.isStaleByTime(nh(n.staleTime,s))&&this.prefetchQuery(n),Promise.resolve(o))}getQueriesData(t){return this.#n.findAll(t).map(({queryKey:n,state:s})=>{const o=s.data;return[n,o]})}setQueryData(t,n,s){const o=this.defaultQueryOptions({queryKey:t}),r=this.#n.get(o.queryHash)?.state.data,l=Nne(n,r);if(l!==void 0)return this.#n.build(this,o).setData(l,{...s,manual:!0})}setQueriesData(t,n,s){return kl.batch(()=>this.#n.findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,n,s)]))}getQueryState(t){const n=this.defaultQueryOptions({queryKey:t});return this.#n.get(n.queryHash)?.state}removeQueries(t){const n=this.#n;kl.batch(()=>{n.findAll(t).forEach(s=>{n.remove(s)})})}resetQueries(t,n){const s=this.#n;return kl.batch(()=>(s.findAll(t).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...t},n)))}cancelQueries(t,n={}){const s={revert:!0,...n},o=kl.batch(()=>this.#n.findAll(t).map(a=>a.cancel(s)));return Promise.all(o).then(bd).catch(bd)}invalidateQueries(t,n={}){return kl.batch(()=>(this.#n.findAll(t).forEach(s=>{s.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},n)))}refetchQueries(t,n={}){const s={...n,cancelRefetch:n.cancelRefetch??!0},o=kl.batch(()=>this.#n.findAll(t).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let r=a.fetch(void 0,s);return s.throwOnError||(r=r.catch(bd)),a.state.fetchStatus==="paused"?Promise.resolve():r}));return Promise.all(o).then(bd)}fetchQuery(t){const n=this.defaultQueryOptions(t);n.retry===void 0&&(n.retry=!1);const s=this.#n.build(this,n);return s.isStaleByTime(nh(n.staleTime,s))?s.fetch(n):Promise.resolve(s.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(bd).catch(bd)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(bd).catch(bd)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return q2.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#t}getDefaultOptions(){return this.#s}setDefaultOptions(t){this.#s=t}setQueryDefaults(t,n){this.#o.set(vb(t),{queryKey:t,defaultOptions:n})}getQueryDefaults(t){const n=[...this.#o.values()],s={};return n.forEach(o=>{yb(t,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(t,n){this.#e.set(vb(t),{mutationKey:t,defaultOptions:n})}getMutationDefaults(t){const n=[...this.#e.values()],s={};return n.forEach(o=>{yb(t,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(t){if(t._defaulted)return t;const n={...this.#s.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return n.queryHash||(n.queryHash=D8(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===L8&&(n.enabled=!1),n}defaultMutationOptions(t){return t?._defaulted?t:{...this.#s.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#n.clear(),this.#t.clear()}},Qne="VUE_QUERY_CLIENT";function Pz(e){const t=e?`:${e}`:"";return`${Qne}${t}`}function UM(e,t){Object.keys(e).forEach(n=>{e[n]=t[n]})}function jE(e,t,n="",s=0){if(t){const o=t(e,n,s);if(o===void 0&&Sl(e)||o!==void 0)return o}if(Array.isArray(e))return e.map((o,a)=>jE(o,t,String(a),s+1));if(typeof e=="object"&&Xne(e)){const o=Object.entries(e).map(([a,r])=>[a,jE(r,t,a,s+1)]);return Object.fromEntries(o)}return e}function Zne(e,t){return jE(e,t)}function Ao(e,t=!1){return Zne(e,(n,s,o)=>{if(o===1&&s==="queryKey")return Ao(n,!0);if(t&&Jne(n))return Ao(n(),t);if(Sl(n))return Ao(i(n),t)})}function Xne(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Jne(e){return typeof e=="function"}function Ai(e=""){if(!Bee())throw new Error("vue-query hooks can only be used inside setup() function or functions that support injection context.");const t=Pz(e),n=uo(t);if(!n)throw new Error("No 'queryClient' found in Vue context, use 'VueQueryPlugin' to properly initialize the library.");return n}var ese=class extends Oz{find(e){return super.find(Ao(e))}findAll(e={}){return super.findAll(Ao(e))}},tse=class extends $z{find(e){return super.find(Ao(e))}findAll(e={}){return super.findAll(Ao(e))}},nse=class extends Yne{constructor(e={}){const t={defaultOptions:e.defaultOptions,queryCache:e.queryCache||new ese,mutationCache:e.mutationCache||new tse};super(t),this.isRestoring=D(!1)}isFetching(e={}){return super.isFetching(Ao(e))}isMutating(e={}){return super.isMutating(Ao(e))}getQueryData(e){return super.getQueryData(Ao(e))}ensureQueryData(e){return super.ensureQueryData(Ao(e))}getQueriesData(e){return super.getQueriesData(Ao(e))}setQueryData(e,t,n={}){return super.setQueryData(Ao(e),t,Ao(n))}setQueriesData(e,t,n={}){return super.setQueriesData(Ao(e),t,Ao(n))}getQueryState(e){return super.getQueryState(Ao(e))}removeQueries(e={}){return super.removeQueries(Ao(e))}resetQueries(e={},t={}){return super.resetQueries(Ao(e),Ao(t))}cancelQueries(e={},t={}){return super.cancelQueries(Ao(e),Ao(t))}invalidateQueries(e={},t={}){const n=Ao(e),s=Ao(t);if(super.invalidateQueries({...n,refetchType:"none"},s),n.refetchType==="none")return Promise.resolve();const o={...n,type:n.refetchType??n.type??"active"};return vn().then(()=>super.refetchQueries(o,s))}refetchQueries(e={},t={}){return super.refetchQueries(Ao(e),Ao(t))}fetchQuery(e){return super.fetchQuery(Ao(e))}prefetchQuery(e){return super.prefetchQuery(Ao(e))}fetchInfiniteQuery(e){return super.fetchInfiniteQuery(Ao(e))}prefetchInfiniteQuery(e){return super.prefetchInfiniteQuery(Ao(e))}setDefaultOptions(e){super.setDefaultOptions(Ao(e))}setQueryDefaults(e,t){super.setQueryDefaults(Ao(e),Ao(t))}getQueryDefaults(e){return super.getQueryDefaults(Ao(e))}setMutationDefaults(e,t){super.setMutationDefaults(Ao(e),Ao(t))}getMutationDefaults(e){return super.getMutationDefaults(Ao(e))}},sse={install:(e,t={})=>{const n=Pz(t.queryClientKey);let s;if("queryClient"in t&&t.queryClient)s=t.queryClient;else{const r="queryClientConfig"in t?t.queryClientConfig:void 0;s=new nse(r)}bb.isServer()||s.mount();let o=()=>{};if(t.clientPersister){s.isRestoring&&(s.isRestoring.value=!0);const[r,l]=t.clientPersister(s);o=r,l.then(()=>{s.isRestoring&&(s.isRestoring.value=!1),t.clientPersisterOnSuccess?.(s)})}const a=()=>{s.unmount(),o()};if(e.onUnmount)e.onUnmount(a);else{const r=e.unmount;e.unmount=function(){a(),r()}}e.provide(n,s)}};function ose(e,t,n){const s=Ai(),o=E(()=>{let v=t;typeof v=="function"&&(v=v());const w=Ao(v);typeof w.enabled=="function"&&(w.enabled=w.enabled());const k=s.defaultQueryOptions(w);return k._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",k}),a=new e(s,o.value),r=o.value.shallow?lz(a.getCurrentResult()):as(a.getCurrentResult());let l=()=>{};s.isRestoring&&ze(s.isRestoring,v=>{v||(l(),l=a.subscribe(w=>{UM(r,w)}))},{immediate:!0});const c=()=>{a.setOptions(o.value),UM(r,a.getCurrentResult())};ze(o,c),Ec(()=>{l()});const u=(...v)=>(c(),r.refetch(...v)),p=()=>new Promise((v,w)=>{let k=()=>{};const A=()=>{if(o.value.enabled!==!1){a.setOptions(o.value);const _=a.getOptimisticResult(o.value);_.isStale?(k(),a.fetchOptimistic(o.value).then(v,S=>{OM(o.value.throwOnError,[S,a.getCurrentQuery()])?w(S):v(a.getCurrentResult())})):(k(),v(_))}};A(),k=ze(o,A)});ze(()=>r.error,v=>{if(r.isError&&!r.isFetching&&OM(o.value.throwOnError,[v,a.getCurrentQuery()]))throw v});const g=o.value.shallow?cz(r):Ck(r),y=uz(g);for(const v in r)typeof r[v]=="function"&&(y[v]=r[v]);return y.suspense=p,y.refetch=u,y}function Bs(e,t){return ose(Mz,e)}function Wf({queries:e,...t},n){const s=Ai(),o=E(()=>{const u=typeof e=="function"?e():e;return i(u).map(g=>{const y=Ao(g);typeof y.enabled=="function"&&(y.enabled=g.enabled());const v=s.defaultQueryOptions(y);return v._optimisticResults=s.isRestoring?.value?"isRestoring":"optimistic",v})}),a=new Gne(s,o.value,t),r=()=>{const[u,p]=a.getOptimisticResult(o.value,t.combine);return p(u.map((g,y)=>({...g,refetch:async(...v)=>{const[{[y]:w}]=a.getOptimisticResult(o.value,t.combine);return w.refetch(...v)}})))},l=gi(r());let c=()=>{};return s.isRestoring&&ze(s.isRestoring,u=>{u||(c(),c=a.subscribe(()=>{l.value=r()}),l.value=r())},{immediate:!0}),ze(o,u=>{a.setQueries(u,t),l.value=r()}),Ec(()=>{c()}),t.shallow?cz(l):Ck(l)}const j2=typeof window<"u",Ch=(e,t=!1)=>t?Symbol.for(e):Symbol(e),ise=(e,t,n)=>ase({l:e,k:t,s:n}),ase=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Or=e=>typeof e=="number"&&isFinite(e),Dz=e=>z8(e)==="[object Date]",q0=e=>z8(e)==="[object RegExp]",F8=e=>Ni(e)&&Object.keys(e).length===0,zr=Object.assign,rse=Object.create,zi=(e=null)=>rse(e);let HM;const wg=()=>HM||(HM=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:zi()),lse=Object.prototype.hasOwnProperty;function xd(e,t){return lse.call(e,t)}const ar=Array.isArray,ka=e=>typeof e=="function",ps=e=>typeof e=="string",oi=e=>typeof e=="boolean",ai=e=>e!==null&&typeof e=="object",cse=e=>ai(e)&&ka(e.then)&&ka(e.catch),Lz=Object.prototype.toString,z8=e=>Lz.call(e),Ni=e=>z8(e)==="[object Object]",use=e=>e==null?"":ar(e)||Ni(e)&&e.toString===Lz?JSON.stringify(e,null,2):String(e);function U8(e,t=""){return e.reduce((n,s,o)=>o===0?n+s:n+t+s,"")}function dse(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}function VM(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/").replace(/=/g,"=")}function pse(e){return e.replace(/&(?![a-z0-9#]{2,6};)/gi,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}const fse=/^javascript:/i,mse=/^(?:href|src|action|formaction)$/i,hse=/&#(?:x([0-9a-f]+)|(\d+));?/gi,gse=/&(?:Tab|NewLine);/g,vse=/:?/gi,yse=/[\u0000-\u0020\u007f-\u009f]/g,bse=/(?:^|[\s"'<>/])on\w+\s*=\s*["']?[^"'>]+["']?/i,kse=/(^|[\s"'<>/])on(\w+\s*=)/gi,wse=/(^|[\s"'<>/])((?:href|src|action|formaction)\s*=\s*)([^\s"'=<>`]+)/gi;function Sse(e,t,n){const s=t||n;if(!s)return e;const o=Number.parseInt(s,t?16:10);return o<=127?String.fromCharCode(o):e}function H8(e){const t=e.replace(hse,Sse).replace(gse,"").replace(vse,":").replace(yse,"");return fse.test(t)}function _se(e){const t=/url\s*\(/gi;let n="",s=0,o;for(;(o=t.exec(e))!==null;){const a=o.index,r=t.lastIndex-1;let l=r+1,c=1,u=null;for(;l<e.length;l++){const y=e[l];if(u){y===u&&(u=null);continue}if(y==='"'||y==="'")u=y;else if(y==="(")c++;else if(y===")"&&(c--,c===0))break}if(c!==0)break;const p=e.slice(r+1,l).trim(),g=p.startsWith('"')&&p.endsWith('"')||p.startsWith("'")&&p.endsWith("'")?p.slice(1,-1).trim():p;n+=e.slice(s,a),n+=H8(g)?"url(about:blank)":e.slice(a,l+1),s=l+1}return n+e.slice(s)}function qM(e,t){if(mse.test(e)&&H8(t))return"about:blank";const n=e.toLowerCase()==="style"?_se(t):t;return pse(n)}function Ise(e){return e=e.replace(/([\w:-]+)\s*=\s*"([^"]*)"/g,(t,n,s)=>`${n}="${qM(n,s)}"`),e=e.replace(/([\w:-]+)\s*=\s*'([^']*)'/g,(t,n,s)=>`${n}='${qM(n,s)}'`),bse.test(e)&&(e=e.replace(kse,"$1on$2")),e=e.replace(wse,(t,n,s,o)=>H8(o)?`${n}${s}about:blank`:t),e}const _w=e=>!ai(e)||ar(e);function YS(e,t){if(_w(e)||_w(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:o}=n.pop();Object.keys(s).forEach(a=>{a!=="__proto__"&&(ai(s[a])&&!ai(o[a])&&(o[a]=Array.isArray(s[a])?[]:zi()),_w(o[a])||_w(s[a])?o[a]=s[a]:n.push({src:s[a],des:o[a]}))})}}function Ase(e,t,n){return{line:e,column:t,offset:n}}function WE(e,t,n){return{start:e,end:t}}const _i={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Cse=17;function QI(e,t,n={}){const{domain:s,messages:o,args:a}=n,r=e,l=new SyntaxError(String(r));return l.code=e,t&&(l.location=t),l.domain=s,l}function xse(e){throw e}const Bp=" ",Ese="\r",Yl=`
|
|
3
3
|
`,Tse="\u2028",Nse="\u2029";function Rse(e){const t=e;let n=0,s=1,o=1,a=0;const r=M=>t[M]===Ese&&t[M+1]===Yl,l=M=>t[M]===Yl,c=M=>t[M]===Nse,u=M=>t[M]===Tse,p=M=>r(M)||l(M)||c(M)||u(M),g=()=>n,y=()=>s,v=()=>o,w=()=>a,k=M=>r(M)||c(M)||u(M)?Yl:t[M],A=()=>k(n),_=()=>k(n+a);function S(){return a=0,p(n)&&(s++,o=0),r(n)&&n++,n++,o++,t[n]}function I(){return r(n+a)&&a++,a++,t[n+a]}function x(){n=0,s=1,o=1,a=0}function T(M=0){a=M}function R(){const M=n+a;for(;M!==n;)S();a=0}return{index:g,line:y,column:v,peekOffset:w,charAt:k,currentChar:A,currentPeek:_,next:S,peek:I,reset:x,resetPeek:T,skipToPeek:R}}const Pf=void 0,Mse=".",jM="'",$se="tokenizer";function Ose(e,t={}){const n=t.location!==!1,s=Rse(e),o=()=>s.index(),a=()=>Ase(s.line(),s.column(),s.index()),r=a(),l=o(),c={currentType:13,offset:l,startLoc:r,endLoc:r,lastType:13,lastOffset:l,lastStartLoc:r,lastEndLoc:r,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:p}=t;function g(se,de,De,...me){const Be=u();if(de.column+=De,de.offset+=De,p){const He=n?WE(Be.startLoc,de):null,Le=QI(se,He,{domain:$se,args:me});p(Le)}}function y(se,de,De){se.endLoc=a(),se.currentType=de;const me={type:de};return n&&(me.loc=WE(se.startLoc,se.endLoc)),De!=null&&(me.value=De),me}const v=se=>y(se,13);function w(se,de){return se.currentChar()===de?(se.next(),de):(g(_i.EXPECTED_TOKEN,a(),0,de),"")}function k(se){let de="";for(;se.currentPeek()===Bp||se.currentPeek()===Yl;)de+=se.currentPeek(),se.peek();return de}function A(se){const de=k(se);return se.skipToPeek(),de}function _(se){if(se===Pf)return!1;const de=se.charCodeAt(0);return de>=97&&de<=122||de>=65&&de<=90||de===95}function S(se){if(se===Pf)return!1;const de=se.charCodeAt(0);return de>=48&&de<=57}function I(se,de){const{currentType:De}=de;if(De!==2)return!1;k(se);const me=_(se.currentPeek());return se.resetPeek(),me}function x(se,de){const{currentType:De}=de;if(De!==2)return!1;k(se);const me=se.currentPeek()==="-"?se.peek():se.currentPeek(),Be=S(me);return se.resetPeek(),Be}function T(se,de){const{currentType:De}=de;if(De!==2)return!1;k(se);const me=se.currentPeek()===jM;return se.resetPeek(),me}function R(se,de){const{currentType:De}=de;if(De!==7)return!1;k(se);const me=se.currentPeek()===".";return se.resetPeek(),me}function M(se,de){const{currentType:De}=de;if(De!==8)return!1;k(se);const me=_(se.currentPeek());return se.resetPeek(),me}function $(se,de){const{currentType:De}=de;if(!(De===7||De===11))return!1;k(se);const me=se.currentPeek()===":";return se.resetPeek(),me}function O(se,de){const{currentType:De}=de;if(De!==9)return!1;const me=()=>{const He=se.currentPeek();return He==="{"?_(se.peek()):He==="@"||He==="|"||He===":"||He==="."||He===Bp||!He?!1:He===Yl?(se.peek(),me()):B(se,!1)},Be=me();return se.resetPeek(),Be}function F(se){k(se);const de=se.currentPeek()==="|";return se.resetPeek(),de}function B(se,de=!0){const De=(Be=!1,He="")=>{const Le=se.currentPeek();return Le==="{"||Le==="@"||!Le?Be:Le==="|"?!(He===Bp||He===Yl):Le===Bp?(se.peek(),De(!0,Bp)):Le===Yl?(se.peek(),De(!0,Yl)):!0},me=De();return de&&se.resetPeek(),me}function N(se,de){const De=se.currentChar();return De===Pf?Pf:de(De)?(se.next(),De):null}function z(se){const de=se.charCodeAt(0);return de>=97&&de<=122||de>=65&&de<=90||de>=48&&de<=57||de===95||de===36}function H(se){return N(se,z)}function U(se){const de=se.charCodeAt(0);return de>=97&&de<=122||de>=65&&de<=90||de>=48&&de<=57||de===95||de===36||de===45}function L(se){return N(se,U)}function K(se){const de=se.charCodeAt(0);return de>=48&&de<=57}function G(se){return N(se,K)}function Q(se){const de=se.charCodeAt(0);return de>=48&&de<=57||de>=65&&de<=70||de>=97&&de<=102}function J(se){return N(se,Q)}function ee(se){let de="",De="";for(;de=G(se);)De+=de;return De}function ie(se){let de="";for(;;){const De=se.currentChar();if(De==="\\"){const me=se.peek();me==="{"||me==="}"||me==="@"||me==="|"||me==="\\"?(de+=De+me,se.next(),se.next()):(se.resetPeek(),de+=De,se.next())}else{if(De==="{"||De==="}"||De==="@"||De==="|"||!De)break;if(De===Bp||De===Yl)if(B(se))de+=De,se.next();else{if(F(se))break;de+=De,se.next()}else de+=De,se.next()}}return de}function le(se){A(se);let de="",De="";for(;de=L(se);)De+=de;const me=se.currentChar();if(me&&me!=="}"&&me!==Pf&&me!==Bp&&me!==Yl&&me!==" "){const Be=Pe(se);return g(_i.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,De+Be),De+Be}return se.currentChar()===Pf&&g(_i.UNTERMINATED_CLOSING_BRACE,a(),0),De}function oe(se){A(se);let de="";return se.currentChar()==="-"?(se.next(),de+=`-${ee(se)}`):de+=ee(se),se.currentChar()===Pf&&g(_i.UNTERMINATED_CLOSING_BRACE,a(),0),de}function ae(se){return se!==jM&&se!==Yl}function te(se){A(se),w(se,"'");let de="",De="";for(;de=N(se,ae);)de==="\\"?De+=Z(se):De+=de;const me=se.currentChar();return me===Yl||me===Pf?(g(_i.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,a(),0),me===Yl&&(se.next(),w(se,"'")),De):(w(se,"'"),De)}function Z(se){const de=se.currentChar();switch(de){case"\\":case"'":return se.next(),`\\${de}`;case"u":return Ce(se,de,4);case"U":return Ce(se,de,6);default:return g(_i.UNKNOWN_ESCAPE_SEQUENCE,a(),0,de),""}}function Ce(se,de,De){w(se,de);let me="";for(let Be=0;Be<De;Be++){const He=J(se);if(!He){g(_i.INVALID_UNICODE_ESCAPE_SEQUENCE,a(),0,`\\${de}${me}${se.currentChar()}`);break}me+=He}return`\\${de}${me}`}function Fe(se){return se!=="{"&&se!=="}"&&se!==Bp&&se!==Yl}function Pe(se){A(se);let de="",De="";for(;de=N(se,Fe);)De+=de;return De}function fe(se){let de="",De="";for(;de=H(se);)De+=de;return De}function be(se){const de=De=>{const me=se.currentChar();return me==="{"||me==="@"||me==="|"||me==="("||me===")"||!me||me===Bp?De:(De+=me,se.next(),de(De))};return de("")}function ue(se){A(se);const de=w(se,"|");return A(se),de}function ye(se,de){let De=null;switch(se.currentChar()){case"{":return de.braceNest>=1&&g(_i.NOT_ALLOW_NEST_PLACEHOLDER,a(),0),se.next(),De=y(de,2,"{"),A(se),de.braceNest++,De;case"}":return de.braceNest>0&&de.currentType===2&&g(_i.EMPTY_PLACEHOLDER,a(),0),se.next(),De=y(de,3,"}"),de.braceNest--,de.braceNest>0&&A(se),de.inLinked&&de.braceNest===0&&(de.inLinked=!1),De;case"@":return de.braceNest>0&&g(_i.UNTERMINATED_CLOSING_BRACE,a(),0),De=ke(se,de)||v(de),de.braceNest=0,De;default:{let Be=!0,He=!0,Le=!0;if(F(se))return de.braceNest>0&&g(_i.UNTERMINATED_CLOSING_BRACE,a(),0),De=y(de,1,ue(se)),de.braceNest=0,de.inLinked=!1,De;if(de.braceNest>0&&(de.currentType===4||de.currentType===5||de.currentType===6))return g(_i.UNTERMINATED_CLOSING_BRACE,a(),0),de.braceNest=0,ve(se,de);if(Be=I(se,de))return De=y(de,4,le(se)),A(se),De;if(He=x(se,de))return De=y(de,5,oe(se)),A(se),De;if(Le=T(se,de))return De=y(de,6,te(se)),A(se),De;if(!Be&&!He&&!Le)return De=y(de,12,Pe(se)),g(_i.INVALID_TOKEN_IN_PLACEHOLDER,a(),0,De.value),A(se),De;break}}return De}function ke(se,de){const{currentType:De}=de;let me=null;const Be=se.currentChar();switch((De===7||De===8||De===11||De===9)&&(Be===Yl||Be===Bp)&&g(_i.INVALID_LINKED_FORMAT,a(),0),Be){case"@":return se.next(),me=y(de,7,"@"),de.inLinked=!0,me;case".":return A(se),se.next(),y(de,8,".");case":":return A(se),se.next(),y(de,9,":");default:return F(se)?(me=y(de,1,ue(se)),de.braceNest=0,de.inLinked=!1,me):R(se,de)||$(se,de)?(A(se),ke(se,de)):M(se,de)?(A(se),y(de,11,fe(se))):O(se,de)?(A(se),Be==="{"?ye(se,de)||me:y(de,10,be(se))):(De===7&&g(_i.INVALID_LINKED_FORMAT,a(),0),de.braceNest=0,de.inLinked=!1,ve(se,de))}}function ve(se,de){let De={type:13};if(de.braceNest>0)return ye(se,de)||v(de);if(de.inLinked)return ke(se,de)||v(de);switch(se.currentChar()){case"{":return ye(se,de)||v(de);case"}":return g(_i.UNBALANCED_CLOSING_BRACE,a(),0),se.next(),y(de,3,"}");case"@":return ke(se,de)||v(de);default:{if(F(se))return De=y(de,1,ue(se)),de.braceNest=0,de.inLinked=!1,De;if(B(se))return y(de,0,ie(se));break}}return De}function xe(){const{currentType:se,offset:de,startLoc:De,endLoc:me}=c;return c.lastType=se,c.lastOffset=de,c.lastStartLoc=De,c.lastEndLoc=me,c.offset=o(),c.startLoc=a(),s.currentChar()===Pf?y(c,13):ve(s,c)}return{nextToken:xe,currentOffset:o,currentPosition:a,context:u}}const Pse="parser",Dse=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g,Lse=/\\([\\@{}|])/g;function Bse(e,t){return t}function Fse(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"�"}}}function zse(e={}){const t=e.location!==!1,{onError:n}=e;function s(_,S,I,x,...T){const R=_.currentPosition();if(R.offset+=x,R.column+=x,n){const M=t?WE(I,R):null,$=QI(S,M,{domain:Pse,args:T});n($)}}function o(_,S,I){const x={type:_};return t&&(x.start=S,x.end=S,x.loc={start:I,end:I}),x}function a(_,S,I,x){t&&(_.end=S,_.loc&&(_.loc.end=I))}function r(_,S){const I=_.context(),x=o(3,I.offset,I.startLoc);return x.value=S.replace(Lse,Bse),a(x,_.currentOffset(),_.currentPosition()),x}function l(_,S){const I=_.context(),{lastOffset:x,lastStartLoc:T}=I,R=o(5,x,T);return R.index=parseInt(S,10),_.nextToken(),a(R,_.currentOffset(),_.currentPosition()),R}function c(_,S){const I=_.context(),{lastOffset:x,lastStartLoc:T}=I,R=o(4,x,T);return R.key=S,_.nextToken(),a(R,_.currentOffset(),_.currentPosition()),R}function u(_,S){const I=_.context(),{lastOffset:x,lastStartLoc:T}=I,R=o(9,x,T);return R.value=S.replace(Dse,Fse),_.nextToken(),a(R,_.currentOffset(),_.currentPosition()),R}function p(_){const S=_.nextToken(),I=_.context(),{lastOffset:x,lastStartLoc:T}=I,R=o(8,x,T);return S.type!==11?(s(_,_i.UNEXPECTED_EMPTY_LINKED_MODIFIER,I.lastStartLoc,0),R.value="",a(R,x,T),{nextConsumeToken:S,node:R}):(S.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,Fp(S)),R.value=S.value||"",a(R,_.currentOffset(),_.currentPosition()),{node:R})}function g(_,S){const I=_.context(),x=o(7,I.offset,I.startLoc);return x.value=S,a(x,_.currentOffset(),_.currentPosition()),x}function y(_){const S=_.context(),I=o(6,S.offset,S.startLoc);let x=_.nextToken();if(x.type===8){const T=p(_);I.modifier=T.node,x=T.nextConsumeToken||_.nextToken()}switch(x.type!==9&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(x)),x=_.nextToken(),x.type===2&&(x=_.nextToken()),x.type){case 10:x.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(x)),I.key=g(_,x.value||"");break;case 4:x.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(x)),I.key=c(_,x.value||"");break;case 5:x.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(x)),I.key=l(_,x.value||"");break;case 6:x.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(x)),I.key=u(_,x.value||"");break;default:{s(_,_i.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const T=_.context(),R=o(7,T.offset,T.startLoc);return R.value="",a(R,T.offset,T.startLoc),I.key=R,a(I,T.offset,T.startLoc),{nextConsumeToken:x,node:I}}}return a(I,_.currentOffset(),_.currentPosition()),{node:I}}function v(_){const S=_.context(),I=S.currentType===1?_.currentOffset():S.offset,x=S.currentType===1?S.endLoc:S.startLoc,T=o(2,I,x);T.items=[];let R=null;do{const O=R||_.nextToken();switch(R=null,O.type){case 0:O.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(O)),T.items.push(r(_,O.value||""));break;case 5:O.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(O)),T.items.push(l(_,O.value||""));break;case 4:O.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(O)),T.items.push(c(_,O.value||""));break;case 6:O.value==null&&s(_,_i.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,Fp(O)),T.items.push(u(_,O.value||""));break;case 7:{const F=y(_);T.items.push(F.node),R=F.nextConsumeToken||null;break}}}while(S.currentType!==13&&S.currentType!==1);const M=S.currentType===1?S.lastOffset:_.currentOffset(),$=S.currentType===1?S.lastEndLoc:_.currentPosition();return a(T,M,$),T}function w(_,S,I,x){const T=_.context();let R=x.items.length===0;const M=o(1,S,I);M.cases=[],M.cases.push(x);do{const $=v(_);R||(R=$.items.length===0),M.cases.push($)}while(T.currentType!==13);return R&&s(_,_i.MUST_HAVE_MESSAGES_IN_PLURAL,I,0),a(M,_.currentOffset(),_.currentPosition()),M}function k(_){const S=_.context(),{offset:I,startLoc:x}=S,T=v(_);return S.currentType===13?T:w(_,I,x,T)}function A(_){const S=Ose(_,zr({},e)),I=S.context(),x=o(0,I.offset,I.startLoc);return t&&x.loc&&(x.loc.source=_),x.body=k(S),e.onCacheKey&&(x.cacheKey=e.onCacheKey(_)),I.currentType!==13&&s(S,_i.UNEXPECTED_LEXICAL_ANALYSIS,I.lastStartLoc,0,_[I.offset]||""),a(x,S.currentOffset(),S.currentPosition()),x}return{parse:A}}function Fp(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function Use(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:a=>(n.helpers.add(a),a)}}function WM(e,t){for(let n=0;n<e.length;n++)V8(e[n],t)}function V8(e,t){switch(e.type){case 1:WM(e.cases,t),t.helper("plural");break;case 2:WM(e.items,t);break;case 6:{V8(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function Hse(e,t={}){const n=Use(e);n.helper("normalize"),e.body&&V8(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function Vse(e){const t=e.body;return t.type===2?KM(t):t.cases.forEach(n=>KM(n)),e}function KM(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=U8(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function t0(e){switch(e.t=e.type,e.type){case 0:{const t=e;t0(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)t0(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)t0(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;t0(t.key),t.k=t.key,delete t.key,t.modifier&&(t0(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function qse(e,t){const{filename:n,breakLineCode:s,needIndent:o}=t,a=t.location!==!1,r={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:o,indentLevel:0};a&&e.loc&&(r.source=e.loc.source);const l=()=>r;function c(k,A){r.code+=k}function u(k,A=!0){const _=A?s:"";c(o?_+" ".repeat(k):_)}function p(k=!0){const A=++r.indentLevel;k&&u(A)}function g(k=!0){const A=--r.indentLevel;k&&u(A)}function y(){u(r.indentLevel)}return{context:l,push:c,indent:p,deindent:g,newline:y,helper:k=>`_${k}`,needIndent:()=>r.needIndent}}function jse(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),j0(e,t.key),t.modifier?(e.push(", "),j0(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function Wse(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const o=t.items.length;for(let a=0;a<o&&(j0(e,t.items[a]),a!==o-1);a++)e.push(", ");e.deindent(s()),e.push("])")}function Kse(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const o=t.cases.length;for(let a=0;a<o&&(j0(e,t.cases[a]),a!==o-1);a++)e.push(", ");e.deindent(s()),e.push("])")}}function Gse(e,t){t.body?j0(e,t.body):e.push("null")}function j0(e,t){const{helper:n}=e;switch(t.type){case 0:Gse(e,t);break;case 1:Kse(e,t);break;case 2:Wse(e,t);break;case 6:jse(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const Yse=(e,t={})=>{const n=ps(t.mode)?t.mode:"normal",s=ps(t.filename)?t.filename:"message.intl";t.sourceMap;const o=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
|
|
4
4
|
`,a=t.needIndent?t.needIndent:n!=="arrow",r=e.helpers||[],l=qse(e,{filename:s,breakLineCode:o,needIndent:a});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),r.length>0&&(l.push(`const { ${U8(r.map(p=>`${p}: _${p}`),", ")} } = ctx`),l.newline()),l.push("return "),j0(l,e),l.deindent(a),l.push("}"),delete e.helpers;const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function Qse(e,t={}){const n=zr({},t),s=!!n.jit,o=!!n.minify,a=n.optimize==null?!0:n.optimize,l=zse(n).parse(e);return s?(a&&Vse(l),o&&t0(l),{ast:l,code:""}):(Hse(l,n),Yse(l,n))}function Zse(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wg().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(wg().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function of(e){return ai(e)&&q8(e)===0&&(xd(e,"b")||xd(e,"body"))}const Bz=["b","body"];function Xse(e){return xh(e,Bz)}const Fz=["c","cases"];function Jse(e){return xh(e,Fz,[])}const zz=["s","static"];function eoe(e){return xh(e,zz)}const Uz=["i","items"];function toe(e){return xh(e,Uz,[])}const Hz=["t","type"];function q8(e){return xh(e,Hz)}const Vz=["v","value"];function Iw(e,t){const n=xh(e,Vz);if(n!=null)return n;throw kb(t)}const qz=["m","modifier"];function noe(e){return xh(e,qz)}const jz=["k","key"];function soe(e){const t=xh(e,jz);if(t)return t;throw kb(6)}function xh(e,t,n){for(let s=0;s<t.length;s++){const o=t[s];if(xd(e,o)&&e[o]!=null)return e[o]}return n}const Wz=[...Bz,...Fz,...zz,...Uz,...jz,...qz,...Vz,...Hz];function kb(e){return new Error(`unhandled node type: ${e}`)}function sC(e){return n=>ooe(n,e)}function ooe(e,t){const n=Xse(t);if(n==null)throw kb(0);if(q8(n)===1){const a=Jse(n);return e.plural(a.reduce((r,l)=>[...r,GM(e,l)],[]))}else return GM(e,n)}function GM(e,t){const n=eoe(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=toe(t).reduce((o,a)=>[...o,KE(e,a)],[]);return e.normalize(s)}}function KE(e,t){const n=q8(t);switch(n){case 3:return Iw(t,n);case 9:return Iw(t,n);case 4:{const s=t;if(xd(s,"k")&&s.k)return e.interpolate(e.named(s.k));if(xd(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw kb(n)}case 5:{const s=t;if(xd(s,"i")&&Or(s.i))return e.interpolate(e.list(s.i));if(xd(s,"index")&&Or(s.index))return e.interpolate(e.list(s.index));throw kb(n)}case 6:{const s=t,o=noe(s),a=soe(s);return e.linked(KE(e,a),o?KE(e,o):void 0,e.type)}case 7:return Iw(t,n);case 8:return Iw(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const ioe=e=>e;let Aw=zi();function aoe(e,t={}){let n=!1;const s=t.onError||xse;return t.onError=o=>{n=!0,s(o)},{...Qse(e,t),detectError:n}}function roe(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&ps(e)){oi(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||ioe)(e),o=Aw[s];if(o)return o;const{ast:a,detectError:r}=aoe(e,{...t,location:!1,jit:!0}),l=sC(a);return r?l:Aw[s]=l}else{const n=e.cacheKey;if(n){const s=Aw[n];return s||(Aw[n]=sC(e))}else return sC(e)}}let wb=null;function loe(e){wb=e}function coe(e,t,n){wb&&wb.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const uoe=doe("function:translate");function doe(e){return t=>wb&&wb.emit(e,t)}const Kf={INVALID_ARGUMENT:Cse,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},poe=24;function Gf(e){return QI(e,null,void 0)}function j8(e,t){return t.locale!=null?YM(t.locale):YM(e.locale)}let oC;function YM(e){if(ps(e))return e;if(ka(e)){if(e.resolvedOnce&&oC!=null)return oC;if(e.constructor.name==="Function"){const t=e();if(cse(t))throw Gf(Kf.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return oC=t}else throw Gf(Kf.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw Gf(Kf.NOT_SUPPORT_LOCALE_TYPE)}function foe(e,t,n){return[...new Set([n,...ar(t)?t:ai(t)?Object.keys(t):ps(t)?[t]:[n]])]}function GE(e,t,n){const s=ps(n)?n:Sb,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let a=o.__localeChainCache.get(s);if(!a){a=[];let r=[n];for(;ar(r);)r=QM(a,r,t);const l=ar(t)||!Ni(t)?t:t.default?t.default:null;r=ps(l)?[l]:l,ar(r)&&QM(a,r,!1),o.__localeChainCache.set(s,a)}return a}function QM(e,t,n){let s=!0;for(let o=0;o<t.length&&oi(s);o++){const a=t[o];ps(a)&&(s=moe(e,t[o],n))}return s}function moe(e,t,n){let s;const o=t.split("-");do{const a=o.join("-");s=hoe(e,a,n),o.splice(-1,1)}while(o.length&&s===!0);return s}function hoe(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const o=t.replace(/!/g,"");e.push(o),(ar(n)||Ni(n))&&n[o]&&(s=n[o])}return s}const Eh=[];Eh[0]={w:[0],i:[3,0],"[":[4],o:[7]};Eh[1]={w:[1],".":[2],"[":[4],o:[7]};Eh[2]={w:[2],i:[3,0],0:[3,0]};Eh[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Eh[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Eh[5]={"'":[4,0],o:8,l:[5,0]};Eh[6]={'"':[4,0],o:8,l:[6,0]};const goe=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function voe(e){return goe.test(e)}function yoe(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function boe(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function koe(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:voe(t)?yoe(t):"*"+t}function woe(e){const t=[];let n=-1,s=0,o=0,a,r,l,c,u,p,g;const y=[];y[0]=()=>{r===void 0?r=l:r+=l},y[1]=()=>{r!==void 0&&(t.push(r),r=void 0)},y[2]=()=>{y[0](),o++},y[3]=()=>{if(o>0)o--,s=4,y[0]();else{if(o=0,r===void 0||(r=koe(r),r===!1))return!1;y[1]()}};function v(){const w=e[n+1];if(s===5&&w==="'"||s===6&&w==='"')return n++,l="\\"+w,y[0](),!0}for(;s!==null;)if(n++,a=e[n],!(a==="\\"&&v())){if(c=boe(a),g=Eh[s],u=g[c]||g.l||8,u===8||(s=u[0],u[1]!==void 0&&(p=y[u[1]],p&&(l=a,p()===!1))))return;if(s===7)return t}}const ZM=new Map;function Soe(e,t){return ai(e)?e[t]:null}function _oe(e,t){if(!ai(e))return null;let n=ZM.get(t);if(n||(n=woe(t),n&&ZM.set(t,n)),!n)return null;const s=n.length;let o=e,a=0;for(;a<s;){const r=n[a];if(Wz.includes(r)&&of(o)||!ai(o)||!xd(o,r))return null;const l=o[r];if(l===void 0||ka(o))return null;o=l,a++}return o}const Ioe="11.4.8",ZI=-1,Sb="en-US",W2="",XM=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function Aoe(){return{upper:(e,t)=>t==="text"&&ps(e)?e.toUpperCase():t==="vnode"&&ai(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&ps(e)?e.toLowerCase():t==="vnode"&&ai(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&ps(e)?XM(e):t==="vnode"&&ai(e)&&"__v_isVNode"in e?XM(e.children):e}}let Kz;function Coe(e){Kz=e}let Gz;function xoe(e){Gz=e}let Yz;function Eoe(e){Yz=e}let Qz=null;const Toe=e=>{Qz=e},Noe=()=>Qz;let Zz=null;const JM=e=>{Zz=e},Roe=()=>Zz;let e$=0;function Moe(e={}){const t=ka(e.onWarn)?e.onWarn:dse,n=ps(e.version)?e.version:Ioe,s=ps(e.locale)||ka(e.locale)?e.locale:Sb,o=ka(s)?Sb:s,a=ar(e.fallbackLocale)||Ni(e.fallbackLocale)||ps(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:o,r=Ni(e.messages)?e.messages:iC(o),l=Ni(e.datetimeFormats)?e.datetimeFormats:iC(o),c=Ni(e.numberFormats)?e.numberFormats:iC(o),u=zr(zi(),e.modifiers,Aoe()),p=e.pluralRules||zi(),g=ka(e.missing)?e.missing:null,y=oi(e.missingWarn)||q0(e.missingWarn)?e.missingWarn:!0,v=oi(e.fallbackWarn)||q0(e.fallbackWarn)?e.fallbackWarn:!0,w=!!e.fallbackFormat,k=!!e.unresolving,A=ka(e.postTranslation)?e.postTranslation:null,_=Ni(e.processor)?e.processor:null,S=oi(e.warnHtmlMessage)?e.warnHtmlMessage:!0,I=!!e.escapeParameter,x=ka(e.messageCompiler)?e.messageCompiler:Kz,T=ka(e.messageResolver)?e.messageResolver:Gz||Soe,R=ka(e.localeFallbacker)?e.localeFallbacker:Yz||foe,M=ai(e.fallbackContext)?e.fallbackContext:void 0,$=e,O=ai($.__datetimeFormatters)?$.__datetimeFormatters:new Map,F=ai($.__numberFormatters)?$.__numberFormatters:new Map,B=ai($.__meta)?$.__meta:{};e$++;const N={version:n,cid:e$,locale:s,fallbackLocale:a,messages:r,modifiers:u,pluralRules:p,missing:g,missingWarn:y,fallbackWarn:v,fallbackFormat:w,unresolving:k,postTranslation:A,processor:_,warnHtmlMessage:S,escapeParameter:I,messageCompiler:x,messageResolver:T,localeFallbacker:R,fallbackContext:M,onWarn:t,__meta:B};return N.datetimeFormats=l,N.numberFormats=c,N.__datetimeFormatters=O,N.__numberFormatters=F,__INTLIFY_PROD_DEVTOOLS__&&coe(N,n,B),N}const iC=e=>({[e]:zi()});function Xz(e,t,n,s,o){const{missing:a,onWarn:r}=e;if(a!==null){const l=a(e,n,t,o);return ps(l)?l:t}else return t}function Q1(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function $oe(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Ooe(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if($oe(e,t[s]))return!0;return!1}function Jz(e,t,n,s,o,a,r){const{fallbackLocale:l,localeFallbacker:c,onWarn:u}=e,p=c(e,l,n);for(let g=0;g<p.length;g++){const y=p[g],v=(s[y]||{})[t];if(Ni(v)&&ps(y))return y;Xz(e,t,y,o,r)}return null}function eU(e,t,n){let s=`${e}__${t}`;return Ni(n)&&!F8(n)&&(s=`${s}__${JSON.stringify(n)}`),s}function tU(e,t,n){for(const s in n){const o=`${t}__${s}`;for(const a of e.keys())(a===o||a.startsWith(`${o}__`))&&e.delete(a)}}function nU(e,t,n,s){const[,o,a,r]=e;let l=n;return ps(o)?t.key=o:Ni(o)&&Object.keys(o).forEach(c=>{s.includes(c)?l[c]=o[c]:t[c]=o[c]}),ps(a)?t.locale=a:Ni(a)&&(l=a),Ni(r)&&(l=r),l}function t$(e,...t){const{datetimeFormats:n,unresolving:s,onWarn:o}=e,{__datetimeFormatters:a}=e;if(!ps(t[0])&&!Dz(t[0])&&!Or(t[0]))return W2;const[r,l,c,u]=YE(...t),p=oi(c.missingWarn)?c.missingWarn:e.missingWarn,g=oi(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,y=!!c.part,v=j8(e,c);if(!ps(r)||r===""){const S=new Intl.DateTimeFormat(v.replace(/!/g,""),u);return y?S.formatToParts(l):S.format(l)}const w=Jz(e,r,v,n,p,g,"datetime format");if(!ps(w))return s?ZI:r;const k=n[w][r],A=eU(w,r,u);let _=a.get(A);return _||(_=new Intl.DateTimeFormat(w,zr({},k,u)),a.set(A,_)),y?_.formatToParts(l):_.format(l)}const sU=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function YE(...e){const[t]=e,n=zi(),s=zi();let o;if(ps(t)){const r=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!r)throw Gf(Kf.INVALID_ISO_DATE_ARGUMENT);const l=r[3]?r[3].trim().startsWith("T")?`${r[1].trim()}${r[3].trim()}`:`${r[1].trim()}T${r[3].trim()}`:r[1].trim();o=new Date(l);try{o.toISOString()}catch{throw Gf(Kf.INVALID_ISO_DATE_ARGUMENT)}}else if(Dz(t)){if(isNaN(t.getTime()))throw Gf(Kf.INVALID_DATE_ARGUMENT);o=t}else if(Or(t))o=t;else throw Gf(Kf.INVALID_ARGUMENT);const a=nU(e,n,s,sU);return[n.key||"",o,n,a]}function n$(e,t,n){tU(e.__datetimeFormatters,t,n)}function s$(e,...t){const{numberFormats:n,unresolving:s,onWarn:o}=e,{__numberFormatters:a}=e;if(!Or(t[0]))return W2;const[r,l,c,u]=QE(...t),p=oi(c.missingWarn)?c.missingWarn:e.missingWarn,g=oi(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,y=!!c.part,v=j8(e,c);if(!ps(r)||r===""){const S=new Intl.NumberFormat(v.replace(/!/g,""),u);return y?S.formatToParts(l):S.format(l)}const w=Jz(e,r,v,n,p,g,"number format");if(!ps(w))return s?ZI:r;const k=n[w][r],A=eU(w,r,u);let _=a.get(A);return _||(_=new Intl.NumberFormat(w,zr({},k,u)),a.set(A,_)),y?_.formatToParts(l):_.format(l)}const oU=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function QE(...e){const[t]=e,n=zi(),s=zi();if(!Or(t))throw Gf(Kf.INVALID_ARGUMENT);const o=t,a=nU(e,n,s,oU);return[n.key||"",o,n,a]}function o$(e,t,n){tU(e.__numberFormatters,t,n)}const Poe=e=>e,Doe=e=>"",Loe="text",Boe=e=>e.length===0?"":U8(e),Foe=use;function aC(e,t){return e=Math.abs(e),t===2?e===1?0:1:Math.min(e,2)}function zoe(e){const t=Or(e.pluralIndex)?e.pluralIndex:-1;return Or(e.named?.count)?e.named.count:Or(e.named?.n)?e.named.n:t}function Uoe(e={}){const t=e.locale,n=zoe(e),s=ps(t)&&ka(e.pluralRules?.[t])?e.pluralRules[t]:aC,o=s===aC?void 0:aC,a=_=>_[s(n,_.length,o)],r=e.list||[],l=_=>r[_],c=e.named||zi();Or(e.pluralIndex)&&(c.count||=e.pluralIndex,c.n||=e.pluralIndex);const u=_=>c[_];function p(_,S){const I=ka(e.messages)?e.messages(_,!!S):ai(e.messages)?e.messages[_]:!1;return I||(e.parent?e.parent.message(_):Doe)}const g=_=>e.modifiers?e.modifiers[_]:Poe,y=ka(e.processor?.normalize)?e.processor.normalize:Boe,v=ka(e.processor?.interpolate)?e.processor.interpolate:Foe,w=ps(e.processor?.type)?e.processor.type:Loe,A={list:l,named:u,plural:a,linked:(_,...S)=>{const[I,x]=S;let T="text",R="";S.length===1?ai(I)?(R=I.modifier||R,T=I.type||T):ps(I)&&(R=I||R):S.length===2&&(ps(I)&&(R=I||R),ps(x)&&(T=x||T));const M=p(_,!0)(A),$=M===""||M===void 0?_:M,O=T==="vnode"&&ar($)&&R?$[0]:$;return R?g(R)(O,T):O},message:p,type:w,interpolate:v,normalize:y,values:zr(zi(),r,c)};return A}const i$=()=>"",Sd=e=>ka(e);function a$(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:o,messageCompiler:a,fallbackLocale:r,messages:l}=e,[c,u]=ZE(...t),p=oi(u.missingWarn)?u.missingWarn:e.missingWarn,g=oi(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,y=oi(u.escapeParameter)?u.escapeParameter:e.escapeParameter,v=!!u.resolvedMessage,w=ps(u.default)||oi(u.default)?oi(u.default)?a?c:()=>c:u.default:n?a?c:()=>c:null,k=n||w!=null&&(ps(w)||ka(w)),A=j8(e,u);y&&Hoe(u);let[_,S,I]=v?[c,A,l[A]||zi()]:iU(e,c,A,r,g,p),x=_,T=c;if(!v&&!(ps(x)||of(x)||Sd(x))&&k&&(x=w,T=x),!v&&(!(ps(x)||of(x)||Sd(x))||!ps(S)))return o?ZI:c;let R=!1;const M=()=>{R=!0},$=Sd(x)?x:aU(e,c,S,x,T,M);if(R)return x;const O=joe(e,S,I,u),F=Uoe(O),B=Voe(e,$,F);let N=s?s(B,c):B;if(y&&ps(N)&&(N=Ise(N)),__INTLIFY_PROD_DEVTOOLS__){const z={timestamp:Date.now(),key:ps(c)?c:Sd(x)?x.key:"",locale:S||(Sd(x)?x.locale:""),format:ps(x)?x:Sd(x)?x.source:"",message:N};z.meta=zr({},e.__meta,Noe()||{}),uoe(z)}return N}function Hoe(e){ar(e.list)?e.list=e.list.map(t=>ps(t)?VM(t):t):ai(e.named)&&Object.keys(e.named).forEach(t=>{ps(e.named[t])&&(e.named[t]=VM(e.named[t]))})}function iU(e,t,n,s,o,a){const{messages:r,onWarn:l,messageResolver:c,localeFallbacker:u}=e,p=u(e,s,n);let g=zi(),y,v=null;const w="translate";for(let k=0;k<p.length&&(y=p[k],g=r[y]||zi(),(v=c(g,t))===null&&(v=g[t]),!(ps(v)||of(v)||Sd(v)));k++)if(!Ooe(y,p)){const A=Xz(e,t,y,a,w);A!==t&&(v=A)}return[v,y,g]}function aU(e,t,n,s,o,a){const{messageCompiler:r,warnHtmlMessage:l}=e;if(Sd(s)){const u=s;return u.locale=u.locale||n,u.key=u.key||t,u}if(r==null){const u=(()=>s);return u.locale=n,u.key=t,u}const c=r(s,qoe(e,n,o,s,l,a));return c.locale=n,c.key=t,c.source=s,c}function Voe(e,t,n){return t(n)}function ZE(...e){const[t,n,s]=e,o=zi();if(!ps(t)&&!Or(t)&&!Sd(t)&&!of(t))throw Gf(Kf.INVALID_ARGUMENT);const a=Or(t)?String(t):(Sd(t),t);return Or(n)?o.plural=n:ps(n)?o.default=n:Ni(n)&&!F8(n)?o.named=n:ar(n)&&(o.list=n),Or(s)?o.plural=s:ps(s)?o.default=s:Ni(s)&&zr(o,s),[a,o]}function qoe(e,t,n,s,o,a){return{locale:t,key:n,warnHtmlMessage:o,onError:r=>{throw a&&a(r),r},onCacheKey:r=>ise(t,n,r)}}function joe(e,t,n,s){const{modifiers:o,pluralRules:a,messageResolver:r,fallbackLocale:l,fallbackWarn:c,missingWarn:u,fallbackContext:p}=e,y={locale:t,modifiers:o,pluralRules:a,messages:(v,w)=>{let k=r(n,v);if(k==null&&(p||w)){const[A,,_]=iU(p||e,v,t,l,c,u);k=A??r(_,v)}if(ps(k)||of(k)){let A=!1;const S=aU(e,v,t,k,v,()=>{A=!0});return A?i$:S}else return Sd(k)?k:i$}};return e.processor&&(y.processor=e.processor),s.list&&(y.list=s.list),s.named&&(y.named=s.named),Or(s.plural)&&(y.pluralIndex=s.plural),y}Zse();const Woe="11.4.8";function Koe(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(wg().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(wg().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&(wg().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(wg().__INTLIFY_PROD_DEVTOOLS__=!1)}const Tc={UNEXPECTED_RETURN_TYPE:poe,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32,NOT_AVAILABLE_COMPOSITION_IN_LEGACY:34};function uu(e,...t){return QI(e,null,void 0)}const XE=Ch("__translateVNode"),JE=Ch("__datetimeParts"),eT=Ch("__numberParts"),rU=Ch("__setPluralRules"),lU=Ch("__injectWithOption"),c0=Ch("__dispose");function _b(e){if(!ai(e)||of(e))return e;for(const t in e)if(xd(e,t))if(!t.includes("."))ai(e[t])&&_b(e[t]);else{const n=t.split("."),s=n.length-1;let o=e,a=!1;for(let r=0;r<s;r++){if(n[r]==="__proto__")throw new Error(`unsafe key: ${n[r]}`);if(n[r]in o||(o[n[r]]=zi()),!ai(o[n[r]])){a=!0;break}o=o[n[r]]}if(a||(of(o)?Wz.includes(n[s])||delete e[t]:(o[n[s]]=e[t],delete e[t])),!of(o)){const r=o[n[s]];ai(r)&&_b(r)}}return e}function W8(e,t){const{messages:n,__i18n:s,messageResolver:o,flatJson:a}=t,r=Ni(n)?n:ar(s)?zi():{[e]:zi()};if(ar(s)&&s.forEach(l=>{if("locale"in l&&"resource"in l){const{locale:c,resource:u}=l;c?(r[c]=r[c]||zi(),YS(u,r[c])):YS(u,r)}else ps(l)&&YS(JSON.parse(l),r)}),o==null&&a)for(const l in r)xd(r,l)&&_b(r[l]);return r}function cU(e){return e.type}function uU(e,t,n){let s=ai(t.messages)?t.messages:zi();"__i18nGlobal"in n&&(s=W8(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const o=Object.keys(s);o.length&&o.forEach(a=>{e.mergeLocaleMessage(a,s[a])});{if(ai(t.datetimeFormats)){const a=Object.keys(t.datetimeFormats);a.length&&a.forEach(r=>{e.mergeDateTimeFormat(r,t.datetimeFormats[r])})}if(ai(t.numberFormats)){const a=Object.keys(t.numberFormats);a.length&&a.forEach(r=>{e.mergeNumberFormat(r,t.numberFormats[r])})}}}function r$(e){return m(Fee,null,e,0)}function Ib(){return Nd()}const l$="__INTLIFY_META__",c$=()=>[],Goe=()=>!1;let u$=0;function d$(e){return((t,n,s,o)=>e(n,s,Ib()||void 0,o))}const Yoe=()=>{const e=Ib();let t=null;return e&&(t=cU(e)[l$])?{[l$]:t}:null};function K2(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,o=e.flatJson,a=j2?D:gi;let r=oi(e.inheritLocale)?e.inheritLocale:!0;const l=a(t&&r?t.locale.value:ps(e.locale)?e.locale:Sb),c=a(t&&r?t.fallbackLocale.value:ps(e.fallbackLocale)||ar(e.fallbackLocale)||Ni(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:l.value),u=a(W8(l.value,e)),p=a(Ni(e.datetimeFormats)?e.datetimeFormats:{[l.value]:{}}),g=a(Ni(e.numberFormats)?e.numberFormats:{[l.value]:{}});let y=t?t.missingWarn:oi(e.missingWarn)||q0(e.missingWarn)?e.missingWarn:!0,v=t?t.fallbackWarn:oi(e.fallbackWarn)||q0(e.fallbackWarn)?e.fallbackWarn:!0,w=t?t.fallbackRoot:oi(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,A=ka(e.missing)?e.missing:null,_=ka(e.missing)?d$(e.missing):null,S=ka(e.postTranslation)?e.postTranslation:null,I=t?t.warnHtmlMessage:oi(e.warnHtmlMessage)?e.warnHtmlMessage:!0,x=!!e.escapeParameter;const T=t?t.modifiers:Ni(e.modifiers)?e.modifiers:{};let R=e.pluralRules||t&&t.pluralRules,M;M=(()=>{s&&JM(null);const Le={version:Woe,locale:l.value,fallbackLocale:c.value,messages:u.value,modifiers:T,pluralRules:R,missing:_===null?void 0:_,missingWarn:y,fallbackWarn:v,fallbackFormat:k,unresolving:!0,postTranslation:S===null?void 0:S,warnHtmlMessage:I,escapeParameter:x,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};Le.datetimeFormats=p.value,Le.numberFormats=g.value,Le.__datetimeFormatters=Ni(M)?M.__datetimeFormatters:void 0,Le.__numberFormatters=Ni(M)?M.__numberFormatters:void 0;const Ee=Moe(Le);return s&&JM(Ee),Ee})(),Q1(M,l.value,c.value);function O(){return[l.value,c.value,u.value,p.value,g.value]}const F=E({get:()=>l.value,set:Le=>{M.locale=Le,l.value=Le}}),B=E({get:()=>c.value,set:Le=>{M.fallbackLocale=Le,c.value=Le,Q1(M,l.value,Le)}}),N=E(()=>u.value),z=E(()=>p.value),H=E(()=>g.value);function U(){return ka(S)?S:null}function L(Le){S=Le,M.postTranslation=Le}function K(){return A}function G(Le){Le!==null&&(_=d$(Le)),A=Le,M.missing=_}const Q=(Le,Ee,kt,ot,We,vt)=>{O();let ct;try{__INTLIFY_PROD_DEVTOOLS__,s||(M.fallbackContext=t?Roe():void 0),ct=Le(M)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(M.fallbackContext=void 0)}if(kt!=="translate exists"&&Or(ct)&&ct===ZI||kt==="translate exists"&&!ct){const[sn,hn]=Ee();return t&&w?ot(t):We(sn)}else{if(vt(ct))return ct;throw uu(Tc.UNEXPECTED_RETURN_TYPE)}};function J(...Le){return Q(Ee=>Reflect.apply(a$,null,[Ee,...Le]),()=>ZE(...Le),"translate",Ee=>Reflect.apply(Ee.t,Ee,[...Le]),Ee=>Ee,Ee=>ps(Ee))}function ee(...Le){const[Ee,kt,ot]=Le;if(ot&&!ai(ot))throw uu(Tc.INVALID_ARGUMENT);return J(Ee,kt,zr({resolvedMessage:!0},ot||{}))}function ie(...Le){return Q(Ee=>Reflect.apply(t$,null,[Ee,...Le]),()=>YE(...Le),"datetime format",Ee=>Reflect.apply(Ee.d,Ee,[...Le]),()=>W2,Ee=>ps(Ee)||ar(Ee))}function le(...Le){return Q(Ee=>Reflect.apply(s$,null,[Ee,...Le]),()=>QE(...Le),"number format",Ee=>Reflect.apply(Ee.n,Ee,[...Le]),()=>W2,Ee=>ps(Ee)||ar(Ee))}function oe(Le){return Le.map(Ee=>ps(Ee)||Or(Ee)||oi(Ee)?r$(String(Ee)):Ee)}const te={normalize:oe,interpolate:Le=>Le,type:"vnode"};function Z(...Le){return Q(Ee=>{let kt;const ot=Ee;try{ot.processor=te,kt=Reflect.apply(a$,null,[ot,...Le])}finally{ot.processor=null}return kt},()=>ZE(...Le),"translate",Ee=>Ee[XE](...Le),Ee=>[r$(Ee)],Ee=>ar(Ee))}function Ce(...Le){return Q(Ee=>Reflect.apply(s$,null,[Ee,...Le]),()=>QE(...Le),"number format",Ee=>Ee[eT](...Le),c$,Ee=>ps(Ee)||ar(Ee))}function Fe(...Le){return Q(Ee=>Reflect.apply(t$,null,[Ee,...Le]),()=>YE(...Le),"datetime format",Ee=>Ee[JE](...Le),c$,Ee=>ps(Ee)||ar(Ee))}function Pe(Le){R=Le,M.pluralRules=R}function fe(Le,Ee){return Q(()=>{if(!Le)return!1;const kt=ps(Ee)?Ee:l.value,ot=ps(Ee)?[kt]:GE(M,c.value,kt);for(let We=0;We<ot.length;We++){const vt=ye(ot[We]);let ct=M.messageResolver(vt,Le);if(ct===null&&(ct=vt[Le]),of(ct)||Sd(ct)||ps(ct))return!0}return!1},()=>[Le],"translate exists",kt=>Reflect.apply(kt.te,kt,[Le,Ee]),Goe,kt=>oi(kt))}function be(Le){let Ee=null;const kt=GE(M,c.value,l.value);for(let ot=0;ot<kt.length;ot++){const We=u.value[kt[ot]]||{},vt=M.messageResolver(We,Le);if(vt!=null){Ee=vt;break}}return Ee}function ue(Le){const Ee=be(Le);return Ee??(t?t.tm(Le)||{}:{})}function ye(Le){return u.value[Le]||{}}function ke(Le,Ee){if(o){const kt={[Le]:Ee};for(const ot in kt)xd(kt,ot)&&_b(kt[ot]);Ee=kt[Le]}u.value[Le]=Ee,M.messages=u.value}function ve(Le,Ee){u.value[Le]=u.value[Le]||{};const kt={[Le]:Ee};if(o)for(const ot in kt)xd(kt,ot)&&_b(kt[ot]);Ee=kt[Le],YS(Ee,u.value[Le]),M.messages=u.value}function xe(Le){return p.value[Le]||{}}function se(Le,Ee){p.value[Le]=Ee,M.datetimeFormats=p.value,n$(M,Le,Ee)}function de(Le,Ee){p.value[Le]=zr(p.value[Le]||{},Ee),M.datetimeFormats=p.value,n$(M,Le,Ee)}function De(Le){return g.value[Le]||{}}function me(Le,Ee){g.value[Le]=Ee,M.numberFormats=g.value,o$(M,Le,Ee)}function Be(Le,Ee){g.value[Le]=zr(g.value[Le]||{},Ee),M.numberFormats=g.value,o$(M,Le,Ee)}u$++,t&&j2&&(ze(t.locale,Le=>{r&&(l.value=Le,M.locale=Le,Q1(M,l.value,c.value))}),ze(t.fallbackLocale,Le=>{r&&(c.value=Le,M.fallbackLocale=Le,Q1(M,l.value,c.value))}));const He={id:u$,locale:F,fallbackLocale:B,get inheritLocale(){return r},set inheritLocale(Le){r=Le,Le&&t&&(l.value=t.locale.value,c.value=t.fallbackLocale.value,Q1(M,l.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:N,get modifiers(){return T},get pluralRules(){return R||{}},get isGlobal(){return s},get missingWarn(){return y},set missingWarn(Le){y=Le,M.missingWarn=y},get fallbackWarn(){return v},set fallbackWarn(Le){v=Le,M.fallbackWarn=v},get fallbackRoot(){return w},set fallbackRoot(Le){w=Le},get fallbackFormat(){return k},set fallbackFormat(Le){k=Le,M.fallbackFormat=k},get warnHtmlMessage(){return I},set warnHtmlMessage(Le){I=Le,M.warnHtmlMessage=Le},get escapeParameter(){return x},set escapeParameter(Le){x=Le,M.escapeParameter=Le},t:J,getLocaleMessage:ye,setLocaleMessage:ke,mergeLocaleMessage:ve,getPostTranslationHandler:U,setPostTranslationHandler:L,getMissingHandler:K,setMissingHandler:G,[rU]:Pe};return He.datetimeFormats=z,He.numberFormats=H,He.rt=ee,He.te=fe,He.tm=ue,He.d=ie,He.n=le,He.getDateTimeFormat=xe,He.setDateTimeFormat=se,He.mergeDateTimeFormat=de,He.getNumberFormat=De,He.setNumberFormat=me,He.mergeNumberFormat=Be,He[lU]=n,He[XE]=Z,He[JE]=Fe,He[eT]=Ce,He}function Qoe(e){const t=ps(e.locale)?e.locale:Sb,n=ps(e.fallbackLocale)||ar(e.fallbackLocale)||Ni(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=ka(e.missing)?e.missing:void 0,o=oi(e.silentTranslationWarn)||q0(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,a=oi(e.silentFallbackWarn)||q0(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,r=oi(e.fallbackRoot)?e.fallbackRoot:!0,l=!!e.formatFallbackMessages,c=Ni(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,p=ka(e.postTranslation)?e.postTranslation:void 0,g=ps(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,y=!!e.escapeParameterHtml,v=oi(e.sync)?e.sync:!0;let w=e.messages;if(Ni(e.sharedMessages)){const T=e.sharedMessages;w=Object.keys(T).reduce((M,$)=>{const O=M[$]||(M[$]={});return zr(O,T[$]),M},w||{})}const{__i18n:k,__root:A,__injectWithOption:_}=e,S=e.datetimeFormats,I=e.numberFormats,x=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:x,datetimeFormats:S,numberFormats:I,missing:s,missingWarn:o,fallbackWarn:a,fallbackRoot:r,fallbackFormat:l,modifiers:c,pluralRules:u,postTranslation:p,warnHtmlMessage:g,escapeParameter:y,messageResolver:e.messageResolver,inheritLocale:v,__i18n:k,__root:A,__injectWithOption:_}}function tT(e={}){const t=K2(Qoe(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(o){t.locale.value=o},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(o){t.fallbackLocale.value=o},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(o){t.setMissingHandler(o)},get silentTranslationWarn(){return oi(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(o){t.missingWarn=oi(o)?!o:o},get silentFallbackWarn(){return oi(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(o){t.fallbackWarn=oi(o)?!o:o},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(o){t.fallbackFormat=o},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(o){t.setPostTranslationHandler(o)},get sync(){return t.inheritLocale},set sync(o){t.inheritLocale=o},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){t.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(o){t.escapeParameter=o},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...o){return Reflect.apply(t.t,t,[...o])},rt(...o){return Reflect.apply(t.rt,t,[...o])},te(o,a){return t.te(o,a)},tm(o){return t.tm(o)},getLocaleMessage(o){return t.getLocaleMessage(o)},setLocaleMessage(o,a){t.setLocaleMessage(o,a)},mergeLocaleMessage(o,a){t.mergeLocaleMessage(o,a)},d(...o){return Reflect.apply(t.d,t,[...o])},getDateTimeFormat(o){return t.getDateTimeFormat(o)},setDateTimeFormat(o,a){t.setDateTimeFormat(o,a)},mergeDateTimeFormat(o,a){t.mergeDateTimeFormat(o,a)},n(...o){return Reflect.apply(t.n,t,[...o])},getNumberFormat(o){return t.getNumberFormat(o)},setNumberFormat(o,a){t.setNumberFormat(o,a)},mergeNumberFormat(o,a){t.mergeNumberFormat(o,a)}};return s.__extender=n,s}function Zoe(e,t,n){return{beforeCreate(){const s=Ib();if(!s)throw uu(Tc.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const a=o.i18n;if(o.__i18n&&(a.__i18n=o.__i18n),a.__root=t,this===this.$root)this.$i18n=p$(e,a);else{a.__injectWithOption=!0,a.__extender=n.__vueI18nExtend,this.$i18n=tT(a);const r=this.$i18n;r.__extender&&(r.__disposer=r.__extender(this.$i18n))}}else if(o.__i18n)if(this===this.$root)this.$i18n=p$(e,o);else{this.$i18n=tT({__i18n:o.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const a=this.$i18n;a.__extender&&(a.__disposer=a.__extender(this.$i18n))}else this.$i18n=e;o.__i18nGlobal&&uU(t,o,o),this.$t=(...a)=>this.$i18n.t(...a),this.$rt=(...a)=>this.$i18n.rt(...a),this.$te=(a,r)=>this.$i18n.te(a,r),this.$d=(...a)=>this.$i18n.d(...a),this.$n=(...a)=>this.$i18n.n(...a),this.$tm=a=>this.$i18n.tm(a),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=Ib();if(!s)throw uu(Tc.UNEXPECTED_ERROR);const o=this.$i18n;o&&(delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,o?.__disposer&&(o.__disposer(),delete o.__disposer,delete o.__extender),n.__deleteInstance(s),delete this.$i18n)}}}function p$(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[rU](t.pluralizationRules||e.pluralizationRules);const n=W8(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const K8={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function Xoe({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,o)=>[...s,...o.type===Me?o.children:[o]],[]):t.reduce((n,s)=>{const o=e[s];return o&&(n[s]=o()),n},zi())}function dU(){return Me}const Joe=st({name:"i18n-t",props:zr({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Or(e)||!isNaN(e)}},K8),setup(e,t){const{slots:n,attrs:s}=t,o=e.i18n||An({useScope:e.scope,__useComponent:!0});return()=>{const a=()=>{const c=Object.keys(n).filter(g=>g[0]!=="_"),u=zi();e.locale&&(u.locale=e.locale),e.plural!==void 0&&(u.plural=ps(e.plural)?+e.plural:e.plural);const p=Xoe(t,c);return o[XE](e.keypath,p,u)},r=zr(zi(),s),l=ps(e.tag)||ai(e.tag)?e.tag:dU();return ai(l)?jn(l,r,{default:a}):jn(l,r,a())}}}),f$=Joe;function eie(e){return ar(e)&&!ps(e[0])}function pU(e,t,n,s){const{slots:o,attrs:a}=t;return()=>{const r=()=>{const u={part:!0};let p=zi();e.locale&&(u.locale=e.locale),ps(e.format)?u.key=e.format:ai(e.format)&&(ps(e.format.key)&&(u.key=e.format.key),p=Object.keys(e.format).reduce((v,w)=>n.includes(w)?zr(zi(),v,{[w]:e.format[w]}):v,zi()));const g=s(e.value,u,p);let y=[u.key];return ar(g)?y=g.map((v,w)=>{const k=o[v.type],A=k?k({[v.type]:v.value,index:w,parts:g}):[v.value];return eie(A)&&(A[0].key=`${v.type}-${w}`),A}):ps(g)&&(y=[g]),y},l=zr(zi(),a),c=ps(e.tag)||ai(e.tag)?e.tag:dU();return ai(c)?jn(c,l,{default:r}):jn(c,l,r())}}const tie=st({name:"i18n-n",props:zr({value:{type:Number,required:!0},format:{type:[String,Object]}},K8),setup(e,t){const n=e.i18n||An({useScope:e.scope,__useComponent:!0});return pU(e,t,oU,(...s)=>n[eT](...s))}}),m$=tie;function nie(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function sie(e){const t=r=>{const{instance:l,value:c}=r;if(!l||!l.$)throw uu(Tc.UNEXPECTED_ERROR);const u=nie(e,l.$),p=h$(c);return[Reflect.apply(u.t,u,[...g$(p)]),u]};return{created:(r,l)=>{const[c,u]=t(l);j2&&(r.__i18nWatcher=ze(u.locale,()=>{l.instance&&l.instance.$forceUpdate()})),r.__composer=u,r.textContent=c},unmounted:r=>{j2&&r.__i18nWatcher&&(r.__i18nWatcher(),r.__i18nWatcher=void 0,delete r.__i18nWatcher),r.__composer&&(r.__composer=void 0,delete r.__composer)},beforeUpdate:(r,{value:l})=>{if(r.__composer){const c=r.__composer,u=h$(l);r.textContent=Reflect.apply(c.t,c,[...g$(u)])}},getSSRProps:r=>{const[l]=t(r);return{textContent:l}}}}function h$(e){if(ps(e))return{path:e};if(Ni(e)){if(!("path"in e))throw uu(Tc.REQUIRED_VALUE,"path");return e}else throw uu(Tc.INVALID_VALUE)}function g$(e){const{path:t,locale:n,args:s,choice:o,plural:a}=e,r={},l=s||{};return ps(n)&&(r.locale=n),Or(o)&&(r.plural=o),Or(a)&&(r.plural=a),[t,l,r]}function oie(e,t,...n){const s=Ni(n[0])?n[0]:{};(!oi(s.globalInstall)||s.globalInstall)&&([f$.name,"I18nT"].forEach(a=>e.component(a,f$)),[m$.name,"I18nN"].forEach(a=>e.component(a,m$)),[b$.name,"I18nD"].forEach(a=>e.component(a,b$))),e.directive("t",sie(t))}const iie=Ch("global-vue-i18n");function aie(e={}){const t=__VUE_I18N_LEGACY_API__&&oi(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=oi(e.globalInjection)?e.globalInjection:!0,s=new Map,[o,a]=rie(e,t),r=Ch("");function l(g){return s.get(g)||null}function c(g,y){s.set(g,y)}function u(g){s.delete(g)}const p={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(g,...y){if(g.__VUE_I18N_SYMBOL__=r,g.provide(g.__VUE_I18N_SYMBOL__,p),Ni(y[0])){const k=y[0];p.__composerExtend=k.__composerExtend,p.__vueI18nExtend=k.__vueI18nExtend}let v=null;!t&&n&&(v=mie(g,p.global)),__VUE_I18N_FULL_INSTALL__&&oie(g,p,...y),__VUE_I18N_LEGACY_API__&&t&&g.mixin(Zoe(a,a.__composer,p));const w=g.unmount;g.unmount=()=>{v&&v(),p.dispose(),w()}},get global(){return a},dispose(){o.stop()},__instances:s,__getInstance:l,__setInstance:c,__deleteInstance:u};return p}function An(e={}){const t=Ib();if(t==null)throw uu(Tc.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw uu(Tc.NOT_INSTALLED);const n=lie(t),s=uie(n),o=cU(t),a=cie(e,o);if(a==="global")return uU(s,e,o),s;if(a==="parent"){let c=v$(n,t,e.__useComponent);return c==null&&(c=s),c}if(a==="isolated"){if(n.mode!=="composition")throw uu(Tc.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const c=n,u=zr({},e),p=v$(n,t);u.__root=p||s;const g=K2(u);return c.__composerExtend&&(g[c0]=c.__composerExtend(g)),KI()&&Ec(()=>{const v=g[c0];v&&(v(),delete g[c0])}),g}const r=n;let l=r.__getInstance(t);if(l==null){const c=zr({},e);"__i18n"in o&&(c.__i18n=o.__i18n),s&&(c.__root=s),l=K2(c),r.__composerExtend&&(l[c0]=r.__composerExtend(l)),pie(r,t,l),r.__setInstance(t,l)}return l}function rie(e,t){const n=R8(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>tT(e)):n.run(()=>K2(e));if(s==null)throw uu(Tc.UNEXPECTED_ERROR);return[n,s]}function lie(e){const t=uo(e.isCE?iie:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw uu(e.isCE?Tc.NOT_INSTALLED_WITH_PROVIDE:Tc.UNEXPECTED_ERROR);return t}function cie(e,t){return F8(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function uie(e){return e.mode==="composition"?e.global:e.global.__composer}function v$(e,t,n=!1){let s=null;const o=t.root;let a=die(t,n);for(;a!=null;){const r=e;if(e.mode==="composition")s=r.__getInstance(a);else if(__VUE_I18N_LEGACY_API__){const l=r.__getInstance(a);l!=null&&(s=l.__composer,n&&s&&!s[lU]&&(s=null))}if(s!=null||o===a)break;a=a.parent}return s}function die(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function pie(e,t,n){xo(()=>{},t),WI(()=>{const s=n;e.__deleteInstance(t);const o=s[c0];o&&(o(),delete s[c0])},t)}const fie=["locale","fallbackLocale","availableLocales"],y$=["t","rt","d","n","tm","te"];function mie(e,t){const n=Object.create(null);return fie.forEach(o=>{const a=Object.getOwnPropertyDescriptor(t,o);if(!a)throw uu(Tc.UNEXPECTED_ERROR);const r=Sl(a.value)?{get(){return a.value.value},set(l){a.value.value=l}}:{get(){return a.get&&a.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,y$.forEach(o=>{const a=Object.getOwnPropertyDescriptor(t,o);if(!a||!a.value)throw uu(Tc.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${o}`,a)}),()=>{delete e.config.globalProperties.$i18n,y$.forEach(o=>{delete e.config.globalProperties[`$${o}`]})}}const hie=st({name:"i18n-d",props:zr({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},K8),setup(e,t){const n=e.i18n||An({useScope:e.scope,__useComponent:!0});return pU(e,t,sU,(...s)=>n[JE](...s))}}),b$=hie;Koe();Coe(roe);xoe(_oe);Eoe(GE);if(__INTLIFY_PROD_DEVTOOLS__){const e=wg();e.__INTLIFY__=!0,loe(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const k$=e=>e==="";const gie=(...e)=>e.filter((t,n,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===n).join(" ").trim();const w$=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();const vie=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,s)=>s?s.toUpperCase():n.toLowerCase());const yie=e=>{const t=vie(e);return t.charAt(0).toUpperCase()+t.slice(1)};var Fv={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};const bie=Symbol("lucide-icons");function kie(){return uo(bie,{})}const wie=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":s,strokeWidth:o,"stroke-width":a,size:r,color:l,...c},{slots:u})=>{const{size:p,color:g,strokeWidth:y=2,absoluteStrokeWidth:v=!1,class:w=""}=kie(),k=E(()=>{const A=k$(n)||k$(s)||n===!0||s===!0||v===!0,_=o||a||y||Fv["stroke-width"];return A?Number(_)*24/Number(r??p??Fv.width):_});return jn("svg",{...Fv,...c,width:r??p??Fv.width,height:r??p??Fv.height,stroke:l??g??Fv.stroke,"stroke-width":k.value,class:gie("lucide",w,...e?[`lucide-${w$(yie(e))}-icon`,`lucide-${w$(e)}`]:["lucide-icon"])},[...t.map(A=>jn(...A)),...u.default?[u.default()]:[]])};const Wt=(e,t)=>(n,{slots:s,attrs:o})=>jn(wie,{...o,...n,iconNode:t,name:e},s.default?{default:s.default}:void 0);const Sie=[["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"}]],G8=Wt("activity",Sie);const _ie=[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]],Ab=Wt("app-window",_ie);const Iie=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],XI=Wt("archive",Iie);const Aie=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],JI=Wt("arrow-left",Aie);const Cie=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],G2=Wt("arrow-right",Cie);const xie=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],Eie=Wt("arrow-up-down",xie);const Tie=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],fU=Wt("arrow-up",Tie);const Nie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Y2=Wt("ban",Nie);const Rie=[["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"}]],rh=Wt("book-open",Rie);const Mie=[["path",{d:"M12 7v6",key:"lw1j43"}],["path",{d:"M15 10H9",key:"o6yqo3"}],["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],$ie=Wt("bookmark-plus",Mie);const Oie=[["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"}]],Ug=Wt("bot",Oie);const Pie=[["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"}]],W0=Wt("box",Pie);const Die=[["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"}]],hr=Wt("boxes",Die);const Lie=[["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:"M9 13a4.5 4.5 0 0 0 3-4",key:"10igwf"}],["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:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M12 13h4",key:"1ku699"}],["path",{d:"M12 18h6a2 2 0 0 1 2 2v1",key:"105ag5"}],["path",{d:"M12 8h8",key:"1lhi5i"}],["path",{d:"M16 8V5a2 2 0 0 1 2-2",key:"u6izg6"}],["circle",{cx:"16",cy:"13",r:".5",key:"ry7gng"}],["circle",{cx:"18",cy:"3",r:".5",key:"1aiba7"}],["circle",{cx:"20",cy:"21",r:".5",key:"yhc1fs"}],["circle",{cx:"20",cy:"8",r:".5",key:"1e43v0"}]],Bie=Wt("brain-circuit",Lie);const Fie=[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]],S$=Wt("brain",Fie);const zie=[["path",{d:"M16 14v2.2l1.6 1",key:"fo4ql5"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]],Q2=Wt("calendar-clock",zie);const Uie=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Qs=Wt("check",Uie);const Hie=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],co=Wt("chevron-down",Hie);const Vie=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],S0=Wt("chevron-left",Vie);const qie=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ko=Wt("chevron-right",qie);const jie=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],lh=Wt("chevron-up",jie);const Wie=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],mU=Wt("chevrons-up-down",Wie);const Kie=[["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"}]],Xl=Wt("circle-alert",Kie);const Gie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nm=Wt("circle-check",Gie);const Yie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Qie=Wt("circle-dot",Yie);const Zie=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"10",x2:"10",y1:"15",y2:"9",key:"c1nkhi"}],["line",{x1:"14",x2:"14",y1:"15",y2:"9",key:"h65svq"}]],Xie=Wt("circle-pause",Zie);const Jie=[["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"}]],cf=Wt("circle-question-mark",Jie);const eae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Y8=Wt("circle-x",eae);const tae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],hU=Wt("circle",tae);const nae=[["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"}]],QS=Wt("clipboard-check",nae);const sae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6h4",key:"135r8i"}]],e4=Wt("clock-3",sae);const oae=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],iae=Wt("clock",oae);const aae=[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]],rae=Wt("cloud-download",aae);const lae=[["path",{d:"M17.5 19H9a7 7 0 1 1 6.71-9h1.79a4.5 4.5 0 1 1 0 9Z",key:"p7xjir"}]],nT=Wt("cloud",lae);const cae=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],uae=Wt("cloud-upload",cae);const dae=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]],gU=Wt("columns-2",dae);const pae=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],fae=Wt("columns-3",pae);const mae=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],hae=Wt("combine",mae);const gae=[["path",{d:"M22 7.7c0-.6-.4-1.2-.8-1.5l-6.3-3.9a1.72 1.72 0 0 0-1.7 0l-10.3 6c-.5.2-.9.8-.9 1.4v6.6c0 .5.4 1.2.8 1.5l6.3 3.9a1.72 1.72 0 0 0 1.7 0l10.3-6c.5-.3.9-1 .9-1.5Z",key:"1t2lqe"}],["path",{d:"M10 21.9V14L2.1 9.1",key:"o7czzq"}],["path",{d:"m10 14 11.9-6.9",key:"zm5e20"}],["path",{d:"M14 19.8v-8.1",key:"159ecu"}],["path",{d:"M18 17.5V9.4",key:"11uown"}]],Q8=Wt("container",gae);const vae=[["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"}]],Ka=Wt("copy",vae);const yae=[["path",{d:"m15 10 5 5-5 5",key:"qqa56n"}],["path",{d:"M4 4v7a4 4 0 0 0 4 4h12",key:"z08zvw"}]],vU=Wt("corner-down-right",yae);const bae=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],kae=Wt("cpu",bae);const wae=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],vu=Wt("download",wae);const Sae=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ru=Wt("earth",Sae);const _ae=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],nc=Wt("ellipsis",_ae);const Iae=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Aae=Wt("eraser",Iae);const Cae=[["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"}]],yu=Wt("external-link",Cae);const xae=[["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"}]],Eae=Wt("eye-off",xae);const Tae=[["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"}]],Nae=Wt("eye",Tae);const Rae=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],yU=Wt("file-code-corner",Rae);const Mae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M9 10h6",key:"9gxzsh"}],["path",{d:"M12 13V7",key:"h0r20n"}],["path",{d:"M9 17h6",key:"r8uit2"}]],K0=Wt("file-diff",Mae);const $ae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ZS=Wt("file-exclamation-point",$ae);const Oae=[["path",{d:"M14.364 13.634a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506l4.013-4.009a1 1 0 0 0-3.004-3.004z",key:"ukzhwg"}],["path",{d:"M14.487 7.858A1 1 0 0 1 14 7V2",key:"1klhew"}],["path",{d:"M20 19.645V20a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l2.516 2.516",key:"rxaxab"}],["path",{d:"M8 18h1",key:"13wk12"}]],Pae=Wt("file-pen-line",Oae);const Dae=[["path",{d:"M11.35 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v5.35",key:"17jvcc"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M14 19h6",key:"bvotb8"}],["path",{d:"M17 16v6",key:"18yu1i"}]],_$=Wt("file-plus-corner",Dae);const Lae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["circle",{cx:"11.5",cy:"14.5",r:"2.5",key:"1bq0ko"}],["path",{d:"M13.3 16.3 15 18",key:"2quom7"}]],Bae=Wt("file-search",Lae);const Fae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],G0=Wt("file-text",Fae);const zae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14.5 12.5-5 5",key:"b62r18"}],["path",{d:"m9.5 12.5 5 5",key:"1rk7el"}]],I$=Wt("file-x",zae);const Uae=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],Z2=Wt("file",Uae);const Hae=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],bU=Wt("files",Hae);const Vae=[["path",{d:"M12 22v-6",key:"6o8u61"}],["path",{d:"M12 8V2",key:"1wkif3"}],["path",{d:"M4 12H2",key:"rhcxmi"}],["path",{d:"M10 12H8",key:"s88cx1"}],["path",{d:"M16 12h-2",key:"10asgb"}],["path",{d:"M22 12h-2",key:"14jgyd"}],["path",{d:"m15 19-3-3-3 3",key:"e37ymu"}],["path",{d:"m15 5-3 3-3-3",key:"19d6lf"}]],qae=Wt("fold-vertical",Vae);const jae=[["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"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]],Wae=Wt("folder-check",jae);const Kae=[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["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"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]],Cb=Wt("folder-git-2",Kae);const Gae=[["path",{d:"M2 9V5a2 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 2v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-1",key:"fm4g5t"}],["path",{d:"M2 13h10",key:"pgb2dq"}],["path",{d:"m9 16 3-3-3-3",key:"6m91ic"}]],A$=Wt("folder-input",Gae);const Yae=[["rect",{width:"8",height:"5",x:"14",y:"17",rx:"1",key:"19aais"}],["path",{d:"M10 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 2v2.5",key:"1w6v7t"}],["path",{d:"M20 17v-2a2 2 0 1 0-4 0v2",key:"pwaxnr"}]],Qae=Wt("folder-lock",Yae);const Zae=[["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"}]],ll=Wt("folder-open",Zae);const Xae=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["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"}]],kU=Wt("folder-plus",Xae);const Jae=[["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 2v.5",key:"1dkoa9"}],["path",{d:"M12 10v4h4",key:"1czhmt"}],["path",{d:"m12 14 1.535-1.605a5 5 0 0 1 8 1.5",key:"lvuxfi"}],["path",{d:"M22 22v-4h-4",key:"1ewp4q"}],["path",{d:"m22 18-1.535 1.605a5 5 0 0 1-8-1.5",key:"14ync0"}]],ere=Wt("folder-sync",Jae);const tre=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],sT=Wt("folder-tree",tre);const nre=[["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"}]],na=Wt("folder",nre);const sre=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],ore=Wt("funnel",sre);const ire=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],are=Wt("gauge",ire);const rre=[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]],Mr=Wt("git-branch",rre);const lre=[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]],oT=Wt("git-commit-horizontal",lre);const cre=[["circle",{cx:"5",cy:"6",r:"3",key:"1qnov2"}],["path",{d:"M12 6h5a2 2 0 0 1 2 2v7",key:"1yj91y"}],["path",{d:"m15 9-3-3 3-3",key:"1lwv8l"}],["circle",{cx:"19",cy:"18",r:"3",key:"1qljk2"}],["path",{d:"M12 18H7a2 2 0 0 1-2-2V9",key:"16sdep"}],["path",{d:"m9 15 3 3-3 3",key:"1m3kbl"}]],t4=Wt("git-compare-arrows",cre);const ure=[["circle",{cx:"12",cy:"18",r:"3",key:"1mpf1b"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["path",{d:"M18 9v2c0 .6-.4 1-1 1H7c-.6 0-1-.4-1-1V9",key:"1uq4wg"}],["path",{d:"M12 12v3",key:"158kv8"}]],iT=Wt("git-fork",ure);const dre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pre=Wt("globe",dre);const fre=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],X2=Wt("grip-vertical",fre);const mre=[["path",{d:"M18 11V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2",key:"1fvzgz"}],["path",{d:"M14 10V4a2 2 0 0 0-2-2a2 2 0 0 0-2 2v2",key:"1kc0my"}],["path",{d:"M10 10.5V6a2 2 0 0 0-2-2a2 2 0 0 0-2 2v8",key:"10h0bg"}],["path",{d:"M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.86-5.99-2.34l-3.6-3.6a2 2 0 0 1 2.83-2.82L7 15",key:"1s1gnw"}]],hre=Wt("hand",mre);const gre=[["path",{d:"M10 16h.01",key:"1bzywj"}],["path",{d:"M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"18tbho"}],["path",{d:"M21.946 12.013H2.054",key:"zqlbp7"}],["path",{d:"M6 16h.01",key:"1pmjb7"}]],wU=Wt("hard-drive",gre);const vre=[["line",{x1:"4",x2:"20",y1:"9",y2:"9",key:"4lhtct"}],["line",{x1:"4",x2:"20",y1:"15",y2:"15",key:"vyu0kd"}],["line",{x1:"10",x2:"8",y1:"3",y2:"21",key:"1ggp8o"}],["line",{x1:"16",x2:"14",y1:"3",y2:"21",key:"weycgp"}]],yre=Wt("hash",vre);const bre=[["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"}]],Hg=Wt("history",bre);const kre=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],SU=Wt("house",kre);const wre=[["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"}]],Z8=Wt("image",wre);const Sre=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],_re=Wt("info",Sre);const Ire=[["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"}]],lu=Wt("key-round",Ire);const Are=[["path",{d:"M18 5a2 2 0 0 1 2 2v8.526a2 2 0 0 0 .212.897l1.068 2.127a1 1 0 0 1-.9 1.45H3.62a1 1 0 0 1-.9-1.45l1.068-2.127A2 2 0 0 0 4 15.526V7a2 2 0 0 1 2-2z",key:"1pdavp"}],["path",{d:"M20.054 15.987H3.946",key:"14rxg9"}]],_U=Wt("laptop",Are);const Cre=[["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:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],X8=Wt("layers",Cre);const xre=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],IU=Wt("layout-grid",xre);const Ere=[["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"}]],xb=Wt("link-2",Ere);const Tre=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],J8=Wt("link",Tre);const Nre=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Rre=Wt("list-checks",Nre);const Mre=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],$re=Wt("list-minus",Mre);const Ore=[["path",{d:"M16 5H3",key:"m91uny"}],["path",{d:"M11 12H3",key:"51ecnj"}],["path",{d:"M16 19H3",key:"zzsher"}],["path",{d:"M18 9v6",key:"1twb98"}],["path",{d:"M21 12h-6",key:"bt1uis"}]],Pre=Wt("list-plus",Ore);const Dre=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],C$=Wt("list-todo",Dre);const Lre=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],ws=Wt("loader-circle",Lre);const Bre=[["circle",{cx:"12",cy:"16",r:"1",key:"1au0dj"}],["rect",{x:"3",y:"10",width:"18",height:"12",rx:"2",key:"6s8ecr"}],["path",{d:"M7 10V7a5 5 0 0 1 10 0v3",key:"1pqi11"}]],AU=Wt("lock-keyhole",Bre);const Fre=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],zre=Wt("log-out",Fre);const Ure=[["path",{d:"M19.914 11.105A7.298 7.298 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32 32 0 0 0 .824-.738",key:"fcdtly"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M16 18h6",key:"987eiv"}],["path",{d:"M19 15v6",key:"10aioa"}]],Hre=Wt("map-pin-plus",Ure);const Vre=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ng=Wt("map-pin",Vre);const qre=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],CU=Wt("maximize-2",qre);const jre=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M8 12h.01",key:"czm47f"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}]],Wre=Wt("message-circle-more",jre);const Kre=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Gre=Wt("message-circle",Kre);const Yre=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 8v6",key:"1ib9pf"}],["path",{d:"M9 11h6",key:"1fldmi"}]],Y0=Wt("message-square-plus",Yre);const Qre=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],aT=Wt("message-square",Qre);const Zre=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],Xre=Wt("messages-square",Zre);const Jre=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],e6=Wt("minimize-2",Jre);const ele=[["path",{d:"M5 12h14",key:"1ays0h"}]],xU=Wt("minus",ele);const tle=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m14.305 7.53.923-.382",key:"1mlnsw"}],["path",{d:"m15.228 4.852-.923-.383",key:"82mpwg"}],["path",{d:"m16.852 3.228-.383-.924",key:"ln4sir"}],["path",{d:"m16.852 8.772-.383.923",key:"1dejw0"}],["path",{d:"m19.148 3.228.383-.924",key:"192kgf"}],["path",{d:"m19.53 9.696-.382-.924",key:"fiavlr"}],["path",{d:"m20.772 4.852.924-.383",key:"1j8mgp"}],["path",{d:"m20.772 7.148.924.383",key:"zix9be"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]],nle=Wt("monitor-cog",tle);const sle=[["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"}]],Vg=Wt("monitor",sle);const ole=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],ile=Wt("moon",ole);const ale=[["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"}]],rT=Wt("network",ale);const rle=[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m16 17 2 2 4-4",key:"uh5qu3"}],["path",{d:"M21 11.127V8a2 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.729l7 4a2 2 0 0 0 2 .001l1.32-.753",key:"kpkbpo"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]],lle=Wt("package-check",rle);const cle=[["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"M16 17h6",key:"1ook5g"}],["path",{d:"M19 14v6",key:"1ckrd5"}],["path",{d:"M21 10.535V8a2 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.729l7 4a2 2 0 0 0 2 .001l1.675-.955",key:"28k6lz"}],["path",{d:"M3.29 7 12 12l8.71-5",key:"19ckod"}],["path",{d:"m7.5 4.27 8.997 5.148",key:"9yrvtv"}]],EU=Wt("package-plus",cle);const ule=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],_0=Wt("package",ule);const dle=[["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"}]],ple=Wt("panel-left-close",dle);const fle=[["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"}]],J2=Wt("panel-left-open",fle);const mle=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],hle=Wt("panel-left",mle);const gle=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],vle=Wt("panel-right-close",gle);const yle=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]],t6=Wt("panel-right",yle);const ble=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}]],kle=Wt("panel-top",ble);const wle=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],n6=Wt("pause",wle);const Sle=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}],["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"}]],lT=Wt("pencil-line",Sle);const _le=[["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"}]],br=Wt("pencil",_le);const Ile=[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]],Ale=Wt("pin",Ile);const Cle=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bu=Wt("play",Cle);const xle=[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M17 8a1 1 0 0 1 1 1v4a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1z",key:"1xoxul"}],["path",{d:"M9 8V2",key:"14iosj"}]],Ele=Wt("plug",xle);const Tle=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Hs=Wt("plus",Tle);const Nle=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Rle=Wt("power-off",Nle);const Mle=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],Eb=Wt("power",Mle);const $le=[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z",key:"w46dr5"}]],Ole=Wt("puzzle",$le);const Ple=[["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"}]],Lo=Wt("refresh-cw",Ple);const Dle=[["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"}]],sm=Wt("rotate-ccw",Dle);const Lle=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],au=Wt("rotate-cw",Lle);const Ble=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]],Fle=Wt("rows-3",Ble);const zle=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],Ule=Wt("save",zle);const Hle=[["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"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],Vle=Wt("scan-search",Hle);const qle=[["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"}]],jle=Wt("search-x",qle);const Wle=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Vr=Wt("search",Wle);const Kle=[["path",{d:"m10.852 14.772-.383.923",key:"11vil6"}],["path",{d:"M13.148 14.772a3 3 0 1 0-2.296-5.544l-.383-.923",key:"1v3clb"}],["path",{d:"m13.148 9.228.383-.923",key:"t2zzyc"}],["path",{d:"m13.53 15.696-.382-.924a3 3 0 1 1-2.296-5.544",key:"1bxfiv"}],["path",{d:"m14.772 10.852.923-.383",key:"k9m8cz"}],["path",{d:"m14.772 13.148.923.383",key:"1xvhww"}],["path",{d:"M4.5 10H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-.5",key:"tn8das"}],["path",{d:"M4.5 14H4a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2h-.5",key:"1g2pve"}],["path",{d:"M6 18h.01",key:"uhywen"}],["path",{d:"M6 6h.01",key:"1utrut"}],["path",{d:"m9.228 10.852-.923-.383",key:"1wtb30"}],["path",{d:"m9.228 13.148-.923.383",key:"1a830x"}]],TU=Wt("server-cog",Kle);const Gle=[["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"}]],mp=Wt("server",Gle);const Yle=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],x$=Wt("settings-2",Yle);const Qle=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],ch=Wt("settings",Qle);const Zle=[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]],n4=Wt("shield-alert",Zle);const Xle=[["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"}]],s6=Wt("shield-check",Xle);const Jle=[["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.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}],["path",{d:"M12 17h.01",key:"p32p05"}]],ece=Wt("shield-question-mark",Jle);const tce=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],nce=Wt("skip-forward",tce);const sce=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],Tb=Wt("sliders-horizontal",sce);const oce=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],ice=Wt("smartphone",oce);const ace=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Nb=Wt("sparkles",ace);const rce=[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]],o6=Wt("split",rce);const lce=[["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"}]],Th=Wt("square-terminal",lce);const cce=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],rv=Wt("square",cce);const uce=[["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"}]],dce=Wt("sun",uce);const pce=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],fce=Wt("target",pce);const mce=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],e_=Wt("terminal",mce);const hce=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],gce=Wt("timer",hce);const vce=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fo=Wt("trash-2",vce);const yce=[["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"}]],sc=Wt("triangle-alert",yce);const bce=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],kce=Wt("type",bce);const wce=[["rect",{width:"8",height:"6",x:"5",y:"4",rx:"1",key:"nzclkv"}],["rect",{width:"8",height:"6",x:"11",y:"14",rx:"1",key:"4tytwb"}]],Sce=Wt("ungroup",wce);const _ce=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],NU=Wt("unlink",_ce);const Ice=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],Ace=Wt("unplug",Ice);const Cce=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],RU=Wt("upload",Cce);const xce=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["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"}]],Ece=Wt("user-check",xce);const Tce=[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],Nce=Wt("user-plus",Tce);const Rce=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],E$=Wt("user-round",Rce);const Mce=[["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"}],["line",{x1:"17",x2:"22",y1:"8",y2:"13",key:"3nzzx3"}],["line",{x1:"22",x2:"17",y1:"8",y2:"13",key:"1swrse"}]],$ce=Wt("user-x",Mce);const Oce=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],i6=Wt("users",Oce);const Pce=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],Dce=Wt("wand-sparkles",Pce);const Lce=[["path",{d:"m10.586 5.414-5.172 5.172",key:"4mc350"}],["path",{d:"m18.586 13.414-5.172 5.172",key:"8c96vv"}],["path",{d:"M6 12h12",key:"8npq4p"}],["circle",{cx:"12",cy:"20",r:"2",key:"144qzu"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}],["circle",{cx:"20",cy:"12",r:"2",key:"1xzzfp"}],["circle",{cx:"4",cy:"12",r:"2",key:"1hvhnz"}]],T$=Wt("waypoints",Lce);const Bce=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],Fce=Wt("wrench",Bce);const zce=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$o=Wt("x",zce);const Uce=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],Py=Wt("zap",Uce);function MU(e){var t,n,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=MU(e[t]))&&(s&&(s+=" "),s+=n)}else for(n in e)e[n]&&(s&&(s+=" "),s+=n);return s}function $U(){for(var e,t,n=0,s="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=MU(e))&&(s&&(s+=" "),s+=t);return s}const N$=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,R$=$U,s4=(e,t)=>n=>{var s;if(t?.variants==null)return R$(e,n?.class,n?.className);const{variants:o,defaultVariants:a}=t,r=Object.keys(o).map(u=>{const p=n?.[u],g=a?.[u];if(p===null)return null;const y=N$(p)||N$(g);return o[u][y]}),l=n&&Object.entries(n).reduce((u,p)=>{let[g,y]=p;return y===void 0||(u[g]=y),u},{}),c=t==null||(s=t.compoundVariants)===null||s===void 0?void 0:s.reduce((u,p)=>{let{class:g,className:y,...v}=p;return Object.entries(v).every(w=>{let[k,A]=w;return Array.isArray(A)?A.includes({...a,...l}[k]):{...a,...l}[k]===A})?[...u,g,y]:u},[]);return R$(e,r,c,n?.class,n?.className)},Hce=(e,t)=>{const n=new Array(e.length+t.length);for(let s=0;s<e.length;s++)n[s]=e[s];for(let s=0;s<t.length;s++)n[e.length+s]=t[s];return n},Vce=(e,t)=>({classGroupId:e,validator:t}),OU=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),t_="-",M$=[],qce="arbitrary..",jce=e=>{const t=Kce(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Wce(r);const l=r.split(t_),c=l[0]===""&&l.length>1?1:0;return PU(l,c,t)},getConflictingClassGroupIds:(r,l)=>{if(l){const c=s[r],u=n[r];return c?u?Hce(u,c):c:u||M$}return n[r]||M$}}},PU=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],a=n.nextPart.get(o);if(a){const u=PU(e,t+1,a);if(u)return u}const r=n.validators;if(r===null)return;const l=t===0?e.join(t_):e.slice(t).join(t_),c=r.length;for(let u=0;u<c;u++){const p=r[u];if(p.validator(l))return p.classGroupId}},Wce=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),s=t.slice(0,n);return s?qce+s:void 0})(),Kce=e=>{const{theme:t,classGroups:n}=e;return Gce(n,t)},Gce=(e,t)=>{const n=OU();for(const s in e){const o=e[s];a6(o,n,s,t)}return n},a6=(e,t,n,s)=>{const o=e.length;for(let a=0;a<o;a++){const r=e[a];Yce(r,t,n,s)}},Yce=(e,t,n,s)=>{if(typeof e=="string"){Qce(e,t,n);return}if(typeof e=="function"){Zce(e,t,n,s);return}Xce(e,t,n,s)},Qce=(e,t,n)=>{const s=e===""?t:DU(t,e);s.classGroupId=n},Zce=(e,t,n,s)=>{if(Jce(e)){a6(e(s),t,n,s);return}t.validators===null&&(t.validators=[]),t.validators.push(Vce(n,e))},Xce=(e,t,n,s)=>{const o=Object.entries(e),a=o.length;for(let r=0;r<a;r++){const[l,c]=o[r];a6(c,DU(t,l),n,s)}},DU=(e,t)=>{let n=e;const s=t.split(t_),o=s.length;for(let a=0;a<o;a++){const r=s[a];let l=n.nextPart.get(r);l||(l=OU(),n.nextPart.set(r,l)),n=l}return n},Jce=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,eue=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),s=Object.create(null);const o=(a,r)=>{n[a]=r,t++,t>e&&(t=0,s=n,n=Object.create(null))};return{get(a){let r=n[a];if(r!==void 0)return r;if((r=s[a])!==void 0)return o(a,r),r},set(a,r){a in n?n[a]=r:o(a,r)}}},cT="!",$$=":",tue=[],O$=(e,t,n,s,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:s,isExternal:o}),nue=e=>{const{prefix:t,experimentalParseClassName:n}=e;let s=o=>{const a=[];let r=0,l=0,c=0,u;const p=o.length;for(let k=0;k<p;k++){const A=o[k];if(r===0&&l===0){if(A===$$){a.push(o.slice(c,k)),c=k+1;continue}if(A==="/"){u=k;continue}}A==="["?r++:A==="]"?r--:A==="("?l++:A===")"&&l--}const g=a.length===0?o:o.slice(c);let y=g,v=!1;g.endsWith(cT)?(y=g.slice(0,-1),v=!0):g.startsWith(cT)&&(y=g.slice(1),v=!0);const w=u&&u>c?u-c:void 0;return O$(a,v,y,w)};if(t){const o=t+$$,a=s;s=r=>r.startsWith(o)?a(r.slice(o.length)):O$(tue,!1,r,void 0,!0)}if(n){const o=s;s=a=>n({className:a,parseClassName:o})}return s},sue=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,s)=>{t.set(n,1e6+s)}),n=>{const s=[];let o=[];for(let a=0;a<n.length;a++){const r=n[a],l=r[0]==="[",c=t.has(r);l||c?(o.length>0&&(o.sort(),s.push(...o),o=[]),s.push(r)):o.push(r)}return o.length>0&&(o.sort(),s.push(...o)),s}},oue=e=>({cache:eue(e.cacheSize),parseClassName:nue(e),sortModifiers:sue(e),postfixLookupClassGroupIds:iue(e),...jce(e)}),iue=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let s=0;s<n.length;s++)t[n[s]]=!0;return t},aue=/\s+/,rue=(e,t)=>{const{parseClassName:n,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:a,postfixLookupClassGroupIds:r}=t,l=[],c=e.trim().split(aue);let u="";for(let p=c.length-1;p>=0;p-=1){const g=c[p],{isExternal:y,modifiers:v,hasImportantModifier:w,baseClassName:k,maybePostfixModifierPosition:A}=n(g);if(y){u=g+(u.length>0?" "+u:u);continue}let _=!!A,S;if(_){const M=k.substring(0,A);S=s(M);const $=S&&r[S]?s(k):void 0;$&&$!==S&&(S=$,_=!1)}else S=s(k);if(!S){if(!_){u=g+(u.length>0?" "+u:u);continue}if(S=s(k),!S){u=g+(u.length>0?" "+u:u);continue}_=!1}const I=v.length===0?"":v.length===1?v[0]:a(v).join(":"),x=w?I+cT:I,T=x+S;if(l.indexOf(T)>-1)continue;l.push(T);const R=o(S,_);for(let M=0;M<R.length;++M){const $=R[M];l.push(x+$)}u=g+(u.length>0?" "+u:u)}return u},lue=(...e)=>{let t=0,n,s,o="";for(;t<e.length;)(n=e[t++])&&(s=LU(n))&&(o&&(o+=" "),o+=s);return o},LU=e=>{if(typeof e=="string")return e;let t,n="";for(let s=0;s<e.length;s++)e[s]&&(t=LU(e[s]))&&(n&&(n+=" "),n+=t);return n},cue=(e,...t)=>{let n,s,o,a;const r=c=>{const u=t.reduce((p,g)=>g(p),e());return n=oue(u),s=n.cache.get,o=n.cache.set,a=l,l(c)},l=c=>{const u=s(c);if(u)return u;const p=rue(c,n);return o(c,p),p};return a=r,(...c)=>a(lue(...c))},uue=[],nl=e=>{const t=n=>n[e]||uue;return t.isThemeGetter=!0,t},BU=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,FU=/^\((?:(\w[\w-]*):)?(.+)\)$/i,due=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,pue=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,fue=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,mue=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,hue=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,gue=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Nm=e=>due.test(e),Io=e=>!!e&&!Number.isNaN(Number(e)),zp=e=>!!e&&Number.isInteger(Number(e)),rC=e=>e.endsWith("%")&&Io(e.slice(0,-1)),Df=e=>pue.test(e),zU=()=>!0,vue=e=>fue.test(e)&&!mue.test(e),r6=()=>!1,yue=e=>hue.test(e),bue=e=>gue.test(e),kue=e=>!fs(e)&&!ms(e),wue=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Sue=e=>Nh(e,VU,r6),fs=e=>BU.test(e),eg=e=>Nh(e,qU,vue),P$=e=>Nh(e,Nue,Io),_ue=e=>Nh(e,WU,zU),Iue=e=>Nh(e,jU,r6),D$=e=>Nh(e,UU,r6),Aue=e=>Nh(e,HU,bue),Cw=e=>Nh(e,KU,yue),ms=e=>FU.test(e),Z1=e=>lv(e,qU),Cue=e=>lv(e,jU),L$=e=>lv(e,UU),xue=e=>lv(e,VU),Eue=e=>lv(e,HU),xw=e=>lv(e,KU,!0),Tue=e=>lv(e,WU,!0),Nh=(e,t,n)=>{const s=BU.exec(e);return s?s[1]?t(s[1]):n(s[2]):!1},lv=(e,t,n=!1)=>{const s=FU.exec(e);return s?s[1]?t(s[1]):n:!1},UU=e=>e==="position"||e==="percentage",HU=e=>e==="image"||e==="url",VU=e=>e==="length"||e==="size"||e==="bg-size",qU=e=>e==="length",Nue=e=>e==="number",jU=e=>e==="family-name",WU=e=>e==="number"||e==="weight",KU=e=>e==="shadow",Rue=()=>{const e=nl("color"),t=nl("font"),n=nl("text"),s=nl("font-weight"),o=nl("tracking"),a=nl("leading"),r=nl("breakpoint"),l=nl("container"),c=nl("spacing"),u=nl("radius"),p=nl("shadow"),g=nl("inset-shadow"),y=nl("text-shadow"),v=nl("drop-shadow"),w=nl("blur"),k=nl("perspective"),A=nl("aspect"),_=nl("ease"),S=nl("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...x(),ms,fs],R=()=>["auto","hidden","clip","visible","scroll"],M=()=>["auto","contain","none"],$=()=>[ms,fs,c],O=()=>[Nm,"full","auto",...$()],F=()=>[zp,"none","subgrid",ms,fs],B=()=>["auto",{span:["full",zp,ms,fs]},zp,ms,fs],N=()=>[zp,"auto",ms,fs],z=()=>["auto","min","max","fr",ms,fs],H=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],U=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...$()],K=()=>[Nm,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],G=()=>[Nm,"screen","full","dvw","lvw","svw","min","max","fit",...$()],Q=()=>[Nm,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],J=()=>[e,ms,fs],ee=()=>[...x(),L$,D$,{position:[ms,fs]}],ie=()=>["no-repeat",{repeat:["","x","y","space","round"]}],le=()=>["auto","cover","contain",xue,Sue,{size:[ms,fs]}],oe=()=>[rC,Z1,eg],ae=()=>["","none","full",u,ms,fs],te=()=>["",Io,Z1,eg],Z=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Fe=()=>[Io,rC,L$,D$],Pe=()=>["","none",w,ms,fs],fe=()=>["none",Io,ms,fs],be=()=>["none",Io,ms,fs],ue=()=>[Io,ms,fs],ye=()=>[Nm,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Df],breakpoint:[Df],color:[zU],container:[Df],"drop-shadow":[Df],ease:["in","out","in-out"],font:[kue],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Df],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Df],shadow:[Df],spacing:["px",Io],text:[Df],"text-shadow":[Df],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Nm,fs,ms,A]}],container:["container"],"container-type":[{"@container":["","normal","size",ms,fs]}],"container-named":[wue],columns:[{columns:[Io,fs,ms,l]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:T()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:O()}],"inset-x":[{"inset-x":O()}],"inset-y":[{"inset-y":O()}],start:[{"inset-s":O(),start:O()}],end:[{"inset-e":O(),end:O()}],"inset-bs":[{"inset-bs":O()}],"inset-be":[{"inset-be":O()}],top:[{top:O()}],right:[{right:O()}],bottom:[{bottom:O()}],left:[{left:O()}],visibility:["visible","invisible","collapse"],z:[{z:[zp,"auto",ms,fs]}],basis:[{basis:[Nm,"full","auto",l,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Io,Nm,"auto","initial","none",fs]}],grow:[{grow:["",Io,ms,fs]}],shrink:[{shrink:["",Io,ms,fs]}],order:[{order:[zp,"first","last","none",ms,fs]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:B()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:B()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":z()}],"auto-rows":[{"auto-rows":z()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...H(),"normal"]}],"justify-items":[{"justify-items":[...U(),"normal"]}],"justify-self":[{"justify-self":["auto",...U()]}],"align-content":[{content:["normal",...H()]}],"align-items":[{items:[...U(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...U(),{baseline:["","last"]}]}],"place-content":[{"place-content":H()}],"place-items":[{"place-items":[...U(),"baseline"]}],"place-self":[{"place-self":["auto",...U()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mbs:[{mbs:L()}],mbe:[{mbe:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:K()}],"inline-size":[{inline:["auto",...G()]}],"min-inline-size":[{"min-inline":["auto",...G()]}],"max-inline-size":[{"max-inline":["none",...G()]}],"block-size":[{block:["auto",...Q()]}],"min-block-size":[{"min-block":["auto",...Q()]}],"max-block-size":[{"max-block":["none",...Q()]}],w:[{w:[l,"screen",...K()]}],"min-w":[{"min-w":[l,"screen","none",...K()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[r]},...K()]}],h:[{h:["screen","lh",...K()]}],"min-h":[{"min-h":["screen","lh","none",...K()]}],"max-h":[{"max-h":["screen","lh",...K()]}],"font-size":[{text:["base",n,Z1,eg]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,Tue,_ue]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",rC,fs]}],"font-family":[{font:[Cue,Iue,t]}],"font-features":[{"font-features":[fs]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,ms,fs]}],"line-clamp":[{"line-clamp":[Io,"none",ms,P$]}],leading:[{leading:[a,...$()]}],"list-image":[{"list-image":["none",ms,fs]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ms,fs]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Z(),"wavy"]}],"text-decoration-thickness":[{decoration:[Io,"from-font","auto",ms,eg]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Io,"auto",ms,fs]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"tab-size":[{tab:[zp,ms,fs]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ms,fs]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ms,fs]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ee()}],"bg-repeat":[{bg:ie()}],"bg-size":[{bg:le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zp,ms,fs],radial:["",ms,fs],conic:[zp,ms,fs]},Eue,Aue]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:oe()}],"gradient-via-pos":[{via:oe()}],"gradient-to-pos":[{to:oe()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Z(),"hidden","none"]}],"divide-style":[{divide:[...Z(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...Z(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Io,ms,fs]}],"outline-w":[{outline:["",Io,Z1,eg]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",p,xw,Cw]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,xw,Cw]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Io,eg]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",y,xw,Cw]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Io,ms,fs]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Io]}],"mask-image-linear-from-pos":[{"mask-linear-from":Fe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Fe()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":Fe()}],"mask-image-t-to-pos":[{"mask-t-to":Fe()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":Fe()}],"mask-image-r-to-pos":[{"mask-r-to":Fe()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":Fe()}],"mask-image-b-to-pos":[{"mask-b-to":Fe()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":Fe()}],"mask-image-l-to-pos":[{"mask-l-to":Fe()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":Fe()}],"mask-image-x-to-pos":[{"mask-x-to":Fe()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":Fe()}],"mask-image-y-to-pos":[{"mask-y-to":Fe()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ms,fs]}],"mask-image-radial-from-pos":[{"mask-radial-from":Fe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Fe()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[Io]}],"mask-image-conic-from-pos":[{"mask-conic-from":Fe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Fe()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ee()}],"mask-repeat":[{mask:ie()}],"mask-size":[{mask:le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ms,fs]}],filter:[{filter:["","none",ms,fs]}],blur:[{blur:Pe()}],brightness:[{brightness:[Io,ms,fs]}],contrast:[{contrast:[Io,ms,fs]}],"drop-shadow":[{"drop-shadow":["","none",v,xw,Cw]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Io,ms,fs]}],"hue-rotate":[{"hue-rotate":[Io,ms,fs]}],invert:[{invert:["",Io,ms,fs]}],saturate:[{saturate:[Io,ms,fs]}],sepia:[{sepia:["",Io,ms,fs]}],"backdrop-filter":[{"backdrop-filter":["","none",ms,fs]}],"backdrop-blur":[{"backdrop-blur":Pe()}],"backdrop-brightness":[{"backdrop-brightness":[Io,ms,fs]}],"backdrop-contrast":[{"backdrop-contrast":[Io,ms,fs]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Io,ms,fs]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Io,ms,fs]}],"backdrop-invert":[{"backdrop-invert":["",Io,ms,fs]}],"backdrop-opacity":[{"backdrop-opacity":[Io,ms,fs]}],"backdrop-saturate":[{"backdrop-saturate":[Io,ms,fs]}],"backdrop-sepia":[{"backdrop-sepia":["",Io,ms,fs]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ms,fs]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Io,"initial",ms,fs]}],ease:[{ease:["linear","initial",_,ms,fs]}],delay:[{delay:[Io,ms,fs]}],animate:[{animate:["none",S,ms,fs]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,ms,fs]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:ue()}],"skew-x":[{"skew-x":ue()}],"skew-y":[{"skew-y":ue()}],transform:[{transform:[ms,fs,"","none","gpu","cpu"]}],"transform-origin":[{origin:T()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ye()}],"translate-x":[{"translate-x":ye()}],"translate-y":[{"translate-y":ye()}],"translate-z":[{"translate-z":ye()}],"translate-none":["translate-none"],zoom:[{zoom:[zp,ms,fs]}],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ms,fs]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":J()}],"scrollbar-track-color":[{"scrollbar-track":J()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ms,fs]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Io,Z1,eg,P$]}],stroke:[{stroke:["none",...J()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Mue=cue(Rue);function bs(...e){return Mue($U(e))}const Re=st({__name:"Button",props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:"button"}},setup(e){const t=e;return(n,s)=>(h(),V(i(dz),{as:e.as,"as-child":e.asChild,class:At(i(bs)(i(l6)({variant:e.variant,size:e.size}),t.class))},{default:b(()=>[gn(n.$slots,"default")]),_:3},8,["as","as-child","class"]))}}),l6=s4("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",xs:"h-7 rounded px-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}}),Us=st({__name:"Input",props:{defaultValue:{},modelValue:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=pz(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(a,r)=>fi((h(),C("input",{"onUpdate:modelValue":r[0]||(r[0]=l=>Sl(o)?o.value=l:null),class:At(i(bs)("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[Fr,i(o)]])}});var B$;const Tk=Object.freeze({status:"aborted"});function yn(e,t,n){function s(l,c){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:c,constr:r,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,c);const u=r.prototype,p=Object.keys(u);for(let g=0;g<p.length;g++){const y=p[g];y in l||(l[y]=u[y].bind(l))}}const o=n?.Parent??Object;class a extends o{}Object.defineProperty(a,"name",{value:e});function r(l){var c;const u=n?.Parent?new a:this;s(u,l),(c=u._zod).deferred??(c.deferred=[]);for(const p of u._zod.deferred)p();return u}return Object.defineProperty(r,"init",{value:s}),Object.defineProperty(r,Symbol.hasInstance,{value:l=>n?.Parent&&l instanceof n.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(r,"name",{value:e}),r}class I0 extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class GU extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}(B$=globalThis).__zod_globalConfig??(B$.__zod_globalConfig={});const c6=globalThis.__zod_globalConfig;function om(e){return c6}function YU(e){const t=Object.values(e).filter(s=>typeof s=="number");return Object.entries(e).filter(([s,o])=>t.indexOf(+s)===-1).map(([s,o])=>o)}function uT(e,t){return typeof t=="bigint"?t.toString():t}function o4(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function u6(e){return e==null}function d6(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function $ue(e,t){const n=e/t,s=Math.round(n),o=Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-s)<o?0:n-s}const F$=Symbol("evaluating");function Vo(e,t,n){let s;Object.defineProperty(e,t,{get(){if(s!==F$)return s===void 0&&(s=F$,s=n()),s},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function cv(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Rh(...e){const t={};for(const n of e){const s=Object.getOwnPropertyDescriptors(n);Object.assign(t,s)}return Object.defineProperties({},t)}function z$(e){return JSON.stringify(e)}function Oue(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const QU="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Rb(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Pue=o4(()=>{if(c6.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Q0(e){if(Rb(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Rb(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function ZU(e){return Q0(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}const Due=new Set(["string","number","symbol"]);function Z0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Mh(e,t,n){const s=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(s._zod.parent=e),s}function Ss(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function Lue(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Bue={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Fue(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const a=Rh(e._zod.def,{get shape(){const r={};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(r[l]=n.shape[l])}return cv(this,"shape",r),r},checks:[]});return Mh(e,a)}function zue(e,t){const n=e._zod.def,s=n.checks;if(s&&s.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const a=Rh(e._zod.def,{get shape(){const r={...e._zod.def.shape};for(const l in t){if(!(l in n.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete r[l]}return cv(this,"shape",r),r},checks:[]});return Mh(e,a)}function Uue(e,t){if(!Q0(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0){const a=e._zod.def.shape;for(const r in t)if(Object.getOwnPropertyDescriptor(a,r)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const o=Rh(e._zod.def,{get shape(){const a={...e._zod.def.shape,...t};return cv(this,"shape",a),a}});return Mh(e,o)}function Hue(e,t){if(!Q0(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n=Rh(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return cv(this,"shape",s),s}});return Mh(e,n)}function Vue(e,t){if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");const n=Rh(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t._zod.def.shape};return cv(this,"shape",s),s},get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return Mh(e,n)}function que(e,t,n){const o=t._zod.def.checks;if(o&&o.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const r=Rh(t._zod.def,{get shape(){const l=t._zod.def.shape,c={...l};if(n)for(const u in n){if(!(u in l))throw new Error(`Unrecognized key: "${u}"`);n[u]&&(c[u]=e?new e({type:"optional",innerType:l[u]}):l[u])}else for(const u in l)c[u]=e?new e({type:"optional",innerType:l[u]}):l[u];return cv(this,"shape",c),c},checks:[]});return Mh(t,r)}function jue(e,t,n){const s=Rh(t._zod.def,{get shape(){const o=t._zod.def.shape,a={...o};if(n)for(const r in n){if(!(r in a))throw new Error(`Unrecognized key: "${r}"`);n[r]&&(a[r]=new e({type:"nonoptional",innerType:o[r]}))}else for(const r in o)a[r]=new e({type:"nonoptional",innerType:o[r]});return cv(this,"shape",a),a}});return Mh(t,s)}function u0(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function Wue(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}function d0(e,t){return t.map(n=>{var s;return(s=n).path??(s.path=[]),n.path.unshift(e),n})}function Ew(e){return typeof e=="string"?e:e?.message}function im(e,t,n){const s=e.message?e.message:Ew(e.inst?._zod.def?.error?.(e))??Ew(t?.error?.(e))??Ew(n.customError?.(e))??Ew(n.localeError?.(e))??"Invalid input",{inst:o,continue:a,input:r,...l}=e;return l.path??(l.path=[]),l.message=s,t?.reportInput&&(l.input=r),l}function p6(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Mb(...e){const[t,n,s]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:s}:{...t}}const XU=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,uT,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},JU=yn("$ZodError",XU),eH=yn("$ZodError",XU,{Parent:Error});function Kue(e,t=n=>n.message){const n={},s=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):s.push(t(o));return{formErrors:s,fieldErrors:n}}function Gue(e,t=n=>n.message){const n={_errors:[]},s=(o,a=[])=>{for(const r of o.issues)if(r.code==="invalid_union"&&r.errors.length)r.errors.map(l=>s({issues:l},[...a,...r.path]));else if(r.code==="invalid_key")s({issues:r.issues},[...a,...r.path]);else if(r.code==="invalid_element")s({issues:r.issues},[...a,...r.path]);else{const l=[...a,...r.path];if(l.length===0)n._errors.push(t(r));else{let c=n,u=0;for(;u<l.length;){const p=l[u];u===l.length-1?(c[p]=c[p]||{_errors:[]},c[p]._errors.push(t(r))):c[p]=c[p]||{_errors:[]},c=c[p],u++}}}};return s(e),n}const f6=e=>(t,n,s,o)=>{const a=s?{...s,async:!1}:{async:!1},r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise)throw new I0;if(r.issues.length){const l=new(o?.Err??e)(r.issues.map(c=>im(c,a,om())));throw QU(l,o?.callee),l}return r.value},m6=e=>async(t,n,s,o)=>{const a=s?{...s,async:!0}:{async:!0};let r=t._zod.run({value:n,issues:[]},a);if(r instanceof Promise&&(r=await r),r.issues.length){const l=new(o?.Err??e)(r.issues.map(c=>im(c,a,om())));throw QU(l,o?.callee),l}return r.value},i4=e=>(t,n,s)=>{const o=s?{...s,async:!1}:{async:!1},a=t._zod.run({value:n,issues:[]},o);if(a instanceof Promise)throw new I0;return a.issues.length?{success:!1,error:new(e??JU)(a.issues.map(r=>im(r,o,om())))}:{success:!0,data:a.value}},Yue=i4(eH),a4=e=>async(t,n,s)=>{const o=s?{...s,async:!0}:{async:!0};let a=t._zod.run({value:n,issues:[]},o);return a instanceof Promise&&(a=await a),a.issues.length?{success:!1,error:new e(a.issues.map(r=>im(r,o,om())))}:{success:!0,data:a.value}},Que=a4(eH),Zue=e=>(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return f6(e)(t,n,o)},Xue=e=>(t,n,s)=>f6(e)(t,n,s),Jue=e=>async(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return m6(e)(t,n,o)},ede=e=>async(t,n,s)=>m6(e)(t,n,s),tde=e=>(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return i4(e)(t,n,o)},nde=e=>(t,n,s)=>i4(e)(t,n,s),sde=e=>async(t,n,s)=>{const o=s?{...s,direction:"backward"}:{direction:"backward"};return a4(e)(t,n,o)},ode=e=>async(t,n,s)=>a4(e)(t,n,s),ide=/^[cC][0-9a-z]{6,}$/,ade=/^[0-9a-z]+$/,rde=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,lde=/^[0-9a-vA-V]{20}$/,cde=/^[A-Za-z0-9]{27}$/,ude=/^[a-zA-Z0-9_-]{21}$/,dde=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,pde=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,U$=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,fde=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,mde="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function hde(){return new RegExp(mde,"u")}const gde=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,vde=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,yde=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,bde=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,kde=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,tH=/^[A-Za-z0-9_-]*$/,wde=/^https?$/,Sde=/^\+[1-9]\d{6,14}$/,nH="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_de=new RegExp(`^${nH}$`);function sH(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Ide(e){return new RegExp(`^${sH(e)}$`)}function Ade(e){const t=sH({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const s=`${t}(?:${n.join("|")})`;return new RegExp(`^${nH}T(?:${s})$`)}const Cde=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},xde=/^-?\d+$/,oH=/^-?\d+(?:\.\d+)?$/,Ede=/^(?:true|false)$/i,Tde=/^[^A-Z]*$/,Nde=/^[^a-z]*$/,Su=yn("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),iH={number:"number",bigint:"bigint",object:"date"},aH=yn("$ZodCheckLessThan",(e,t)=>{Su.init(e,t);const n=iH[typeof t.value];e._zod.onattach.push(s=>{const o=s._zod.bag,a=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<a&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value<=t.value:s.value<t.value)||s.issues.push({origin:n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),rH=yn("$ZodCheckGreaterThan",(e,t)=>{Su.init(e,t);const n=iH[typeof t.value];e._zod.onattach.push(s=>{const o=s._zod.bag,a=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>a&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=s=>{(t.inclusive?s.value>=t.value:s.value>t.value)||s.issues.push({origin:n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:s.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Rde=yn("$ZodCheckMultipleOf",(e,t)=>{Su.init(e,t),e._zod.onattach.push(n=>{var s;(s=n._zod.bag).multipleOf??(s.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):$ue(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Mde=yn("$ZodCheckNumberFormat",(e,t)=>{Su.init(e,t),t.format=t.format||"float64";const n=t.format?.includes("int"),s=n?"int":"number",[o,a]=Bue[t.format];e._zod.onattach.push(r=>{const l=r._zod.bag;l.format=t.format,l.minimum=o,l.maximum=a,n&&(l.pattern=xde)}),e._zod.check=r=>{const l=r.value;if(n){if(!Number.isInteger(l)){r.issues.push({expected:s,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?r.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!t.abort}):r.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:s,inclusive:!0,continue:!t.abort});return}}l<o&&r.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),l>a&&r.issues.push({origin:"number",input:l,code:"too_big",maximum:a,inclusive:!0,inst:e,continue:!t.abort})}}),$de=yn("$ZodCheckMaxLength",(e,t)=>{var n;Su.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!u6(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(s._zod.bag.maximum=t.maximum)}),e._zod.check=s=>{const o=s.value;if(o.length<=t.maximum)return;const r=p6(o);s.issues.push({origin:r,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ode=yn("$ZodCheckMinLength",(e,t)=>{var n;Su.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!u6(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(s._zod.bag.minimum=t.minimum)}),e._zod.check=s=>{const o=s.value;if(o.length>=t.minimum)return;const r=p6(o);s.issues.push({origin:r,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Pde=yn("$ZodCheckLengthEquals",(e,t)=>{var n;Su.init(e,t),(n=e._zod.def).when??(n.when=s=>{const o=s.value;return!u6(o)&&o.length!==void 0}),e._zod.onattach.push(s=>{const o=s._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=s=>{const o=s.value,a=o.length;if(a===t.length)return;const r=p6(o),l=a>t.length;s.issues.push({origin:r,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:s.value,inst:e,continue:!t.abort})}}),r4=yn("$ZodCheckStringFormat",(e,t)=>{var n,s;Su.init(e,t),e._zod.onattach.push(o=>{const a=o._zod.bag;a.format=t.format,t.pattern&&(a.patterns??(a.patterns=new Set),a.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(s=e._zod).check??(s.check=()=>{})}),Dde=yn("$ZodCheckRegex",(e,t)=>{r4.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Lde=yn("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Tde),r4.init(e,t)}),Bde=yn("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Nde),r4.init(e,t)}),Fde=yn("$ZodCheckIncludes",(e,t)=>{Su.init(e,t);const n=Z0(t.includes),s=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=s,e._zod.onattach.push(o=>{const a=o._zod.bag;a.patterns??(a.patterns=new Set),a.patterns.add(s)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),zde=yn("$ZodCheckStartsWith",(e,t)=>{Su.init(e,t);const n=new RegExp(`^${Z0(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.startsWith(t.prefix)||s.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:s.value,inst:e,continue:!t.abort})}}),Ude=yn("$ZodCheckEndsWith",(e,t)=>{Su.init(e,t);const n=new RegExp(`.*${Z0(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(s=>{const o=s._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=s=>{s.value.endsWith(t.suffix)||s.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:s.value,inst:e,continue:!t.abort})}}),Hde=yn("$ZodCheckOverwrite",(e,t)=>{Su.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class Vde{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const s=t.split(`
|
|
@@ -389,7 +389,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
389
389
|
`;const u=rA(s,o);return`${r}<pre${c}><code class="hljs language-${hp(o)}">${u}</code></pre>${l}
|
|
390
390
|
`}function rA(e,t){const n=String(e??""),s=String(t??"").trim().toLowerCase();return!s||!M_.getLanguage(s)?hp(n):M_.highlight(n,{language:s,ignoreIllegals:!0}).value}function $8e(e={}){const t=new i1;return t.html=({text:n})=>hp(n),t.table=function(n){return`<div class="markdown-table-wrapper">${Reflect.apply(i1.prototype.table,this,[n])}</div>
|
|
391
391
|
`},t.code=({text:n,lang:s})=>xG(n,s,e.codeTools),t}hi.use(E8e({nonStandard:!0,strict:"warn",throwOnError:!1}));hi.use({async:!1,breaks:!0,gfm:!0});function O8e(e,t={}){const n=String(e??"").replace(/\r\n?/g,`
|
|
392
|
-
`).trim();return n?hi.parse(n,{async:!1,renderer:$8e(t)}):""}const px=new WeakMap;async function U_(e){const t=e.target instanceof Element?e.target.closest(".markdown-code-copy"):void 0;if(!t)return!1;const n=t.closest(".markdown-code-block")?.querySelector("pre code")?.textContent;if(n===void 0||typeof navigator>"u"||!navigator.clipboard?.writeText)return!1;try{await navigator.clipboard.writeText(n)}catch{return!1}const s=t.dataset.copyLabel||t.textContent||"",o=t.dataset.copiedLabel||s;t.textContent=o,t.setAttribute("aria-label",o);const a=px.get(t);return a&&clearTimeout(a),px.set(t,setTimeout(()=>{t.isConnected&&(t.textContent=s,t.setAttribute("aria-label",s),px.delete(t))},1600)),!0}let TP=0,NP=Promise.resolve();function P8e(e,t){const n=NP.then(async()=>{const{default:s}=await Sa(async()=>{const{default:o}=await import("./mermaid.core-DHBLTfQ8.js").then(a=>a.aJ);return{default:o}},[]);return s.initialize({flowchart:{htmlLabels:!1},securityLevel:"strict",startOnLoad:!1,suppressErrorRendering:!0,theme:t}),TP+=1,s.render(`markdown-mermaid-${TP}`,e)});return NP=n.then(()=>{},()=>{}),n}const D8e=["innerHTML"],L8e=st({__name:"MarkdownContent",props:{codeTools:{},content:{}},setup(e){const t=e,n=D(),s=E(()=>O8e(t.content,{codeTools:t.codeTools})),o=new WeakMap;let a=0,r;function l(){const p=document.documentElement.dataset.theme;return p==="dark"?"dark":p==="light"?"default":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"default"}function c(p,g,y){const v=document.createElement("pre"),w=document.createElement("code");if(w.textContent=g,v.append(w),p.replaceChildren(v),y){const k=document.createElement("small");k.className="markdown-mermaid-error",k.textContent=y,p.append(k)}}async function u(){a+=1;const p=a;await vn();const g=n.value;if(!g)return;const y=Array.from(g.querySelectorAll(".markdown-mermaid")),v=l();for(const w of y){const k=o.get(w)??w.querySelector("code")?.textContent??"";o.set(w,k),w.dataset.mermaidState="loading";try{const A=await P8e(k,v);if(p!==a||!w.isConnected)return;w.innerHTML=A.svg,A.bindFunctions?.(w),w.dataset.mermaidState="rendered"}catch(A){if(p!==a||!w.isConnected)return;c(w,k,A instanceof Error?A.message:"Mermaid diagram could not be rendered."),w.dataset.mermaidState="error"}}}return ze(s,()=>{u()},{flush:"post"}),xo(()=>{u(),r=new MutationObserver(()=>{u()}),r.observe(document.documentElement,{attributeFilter:["class","data-theme"],attributes:!0})}),qs(()=>{a+=1,r?.disconnect()}),(p,g)=>(h(),C("div",{ref_key:"root",ref:n,class:"markdown-content",innerHTML:s.value,onClick:g[0]||(g[0]=(...y)=>i(U_)&&i(U_)(...y))},null,8,D8e))}}),Fu=kn(L8e,[["__scopeId","data-v-0a14f41f"]]),B8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%20Code%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M20.998%2010.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6%2010.949h1.488V8.102H6v2.847zm10.51%200H18V8.102h-1.49v2.847z'%3e%3c/path%3e%3c/svg%3e",F8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",z8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eopencode%3c/title%3e%3cpath%20d='M16%206H8v12h8V6zm4%2016H4V2h16v20z'%3e%3c/path%3e%3c/svg%3e",U8e=st({__name:"AiAgentIcon",props:{agent:{},size:{default:16}},setup(e){const t=e,n={claude:B8e,codex:F8e,opencode:z8e},s=E(()=>({"--ai-agent-icon-size":`${t.size}px`,"--ai-agent-icon-source":`url("${n[t.agent]}")`}));return(o,a)=>(h(),C("span",{class:"ai-agent-icon",style:Qn(s.value),"aria-hidden":"true"},null,4))}}),_p=kn(U8e,[["__scopeId","data-v-85f21ea9"]]);function SN(e,t,n){if(e.nodeId)return{nodeId:e.nodeId,nodeName:e.node?.name||n,instanceId:e.id,sessionId:t.id,storyId:t.storyId??null}}function H8e(e,t){return e?.nodeName||t}const V8e=st({__name:"AiSessionCardContextMenu",props:{boundTriggerCount:{},hasAppSession:{type:Boolean},canOpenApp:{type:Boolean},canOpenTerminal:{type:Boolean},canFork:{type:Boolean},canRename:{type:Boolean},isForking:{type:Boolean},isOpeningTerminal:{type:Boolean},isStoppingAppSession:{type:Boolean},sessionId:{},sessionName:{},sessionPath:{},showTriggerActions:{type:Boolean,default:!0},canCloseSession:{type:Boolean,default:!0},storyTarget:{},isTriggerBound:{},isTriggerBusy:{},shortHash:{},triggerTemplates:{}},emits:["closeSession","openApp","openTerminal","renameSession","forkSession","toggleTrigger","storyAssigned","storyAssignFailed"],setup(e,{emit:t}){const{t:n}=An(),s=e,o=t,a=D(!1),r=D(""),l=D([]),c=D(),u=E(()=>!!c.value),p=E(()=>s.storyTarget?.storyId||void 0),g=E(()=>l.value.filter(A=>!A.archivedAt));async function y(A){if(!A||!navigator.clipboard?.writeText){It(n("sessions.actions.copyFailed"),"error");return}try{await navigator.clipboard.writeText(A),It(n("sessions.actions.copied"),"success")}catch{It(n("sessions.actions.copyFailed"),"error")}}async function v(){const A=s.storyTarget;if(!(!A||a.value)){a.value=!0,r.value="",l.value=[];try{const _=await M5(A.nodeId);l.value=_.stories||[]}catch(_){const S=_ instanceof Error?` (${_.message})`:"";r.value=`${n("sessions.actions.storiesLoadFailed")}${S}`}finally{a.value=!1}}}function w(A){A&&v()}async function k(A){const _=s.storyTarget;if(!_||c.value||_.storyId===A)return;const S=!!_.storyId;c.value=A;try{await AIe(_.instanceId,_.sessionId,A);const I={..._,storyId:A};await v(),o("storyAssigned",I,S)}catch(I){r.value=n("sessions.actions.storyAssignFailed"),o("storyAssignFailed",_,I)}finally{c.value=void 0}}return(A,_)=>(h(),V(i(Bc),{class:"ai-session-context-menu"},{default:b(()=>[e.showTriggerActions?(h(),V(i(zw),{key:0},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item"},{default:b(()=>[m(i(Py),{size:14}),d("span",null,f(e.boundTriggerCount?i(n)("sessions.actions.triggersBound",{count:e.boundTriggerCount}):i(n)("sessions.actions.addTrigger")),1)]),_:1}),m(i(Uw),{class:"ai-session-context-menu ai-session-context-trigger-menu"},{default:b(()=>[e.triggerTemplates.length?(h(!0),C(Me,{key:1},ft(e.triggerTemplates,S=>(h(),V(i(Ts),{key:S.configHash,class:"ai-session-context-trigger-item",disabled:e.isTriggerBusy(S.configHash),onSelect:I=>A.$emit("toggleTrigger",S.configHash)},{default:b(()=>[e.isTriggerBound(S.configHash)?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(Py),{key:1,size:13})),d("span",null,[d("strong",null,f(S.config.name),1),d("small",null,f(S.config.source.type)+" · "+f(e.shortHash(S.configHash)),1)]),d("small",null,f(e.isTriggerBound(S.configHash)?i(n)("sessions.actions.remove"):i(n)("sessions.actions.add")),1)]),_:2},1032,["disabled","onSelect"]))),128)):(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.noTriggers")),1)]),_:1}))]),_:1})]),_:1})):W("",!0),e.storyTarget?(h(),V(i(zw),{key:1,"onUpdate:open":w},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item",disabled:u.value},{default:b(()=>[m(i(rh),{size:14}),d("span",null,f(i(n)(p.value?"sessions.actions.moveToStory":"sessions.actions.addToStory")),1)]),_:1},8,["disabled"]),m(i(Uw),{class:"ai-session-context-menu ai-session-context-story-menu"},{default:b(()=>[a.value?(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.loadingStories")),1)]),_:1})):r.value?(h(),V(i(Ts),{key:1,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(r.value),1)]),_:1})):(h(),C(Me,{key:2},[g.value.length?W("",!0):(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.noStories")),1)]),_:1})),(h(!0),C(Me,null,ft(g.value,S=>(h(),V(i(Ts),{key:S.id,class:"ai-session-context-story-item",disabled:u.value,onSelect:I=>k(S.id)},{default:b(()=>[S.id===p.value?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(rh),{key:1,size:13})),d("span",null,[d("strong",null,f(S.title),1),d("small",null,f(i(H8e)(e.storyTarget,S.ownerNodeId)),1)])]),_:2},1032,["disabled","onSelect"]))),128))],64))]),_:1})]),_:1})):W("",!0),e.canOpenApp?(h(),V(i(Ts),{key:2,class:"ai-session-context-menu-item",onSelect:_[0]||(_[0]=S=>A.$emit("openApp"))},{default:b(()=>[m(i(yu),{size:14}),d("span",null,f(i(n)("sessions.actions.openApp")),1)]),_:1})):W("",!0),e.canOpenTerminal?(h(),V(i(Ts),{key:3,class:"ai-session-context-menu-item",disabled:e.isOpeningTerminal,onSelect:_[1]||(_[1]=S=>A.$emit("openTerminal"))},{default:b(()=>[m(i(Th),{size:14}),d("span",null,f(i(n)("sessions.actions.openTerminal")),1)]),_:1},8,["disabled"])):W("",!0),e.canRename?(h(),V(i(Ts),{key:4,class:"ai-session-context-menu-item",onSelect:_[2]||(_[2]=S=>A.$emit("renameSession"))},{default:b(()=>[m(i(br),{size:14}),d("span",null,f(i(n)("sessions.actions.rename")),1)]),_:1})):W("",!0),m(i(zw),null,{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item"},{default:b(()=>[m(i(Ka),{size:14}),d("span",null,f(i(n)("sessions.actions.copy")),1)]),_:1}),m(i(Uw),{class:"ai-session-context-menu"},{default:b(()=>[m(i(Ts),{class:"ai-session-context-menu-item",disabled:!e.sessionPath,onSelect:_[3]||(_[3]=S=>y(e.sessionPath))},{default:b(()=>[m(i(na),{size:14}),d("span",null,f(i(n)("sessions.actions.copyPath")),1)]),_:1},8,["disabled"]),m(i(Ts),{class:"ai-session-context-menu-item",disabled:!e.sessionName,onSelect:_[4]||(_[4]=S=>y(e.sessionName))},{default:b(()=>[m(i(kce),{size:14}),d("span",null,f(i(n)("sessions.actions.copyName")),1)]),_:1},8,["disabled"]),m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[5]||(_[5]=S=>y(e.sessionId))},{default:b(()=>[m(i(yre),{size:14}),d("span",null,f(i(n)("sessions.actions.copySessionId")),1)]),_:1})]),_:1})]),_:1}),e.canFork?(h(),V(i(zw),{key:5},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item",disabled:e.isForking},{default:b(()=>[m(i(o6),{size:14}),d("span",null,f(e.isForking?i(n)("sessions.actions.forking"):i(n)("sessions.actions.fork")),1)]),_:1},8,["disabled"]),m(i(Uw),{class:"ai-session-context-menu"},{default:b(()=>[m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[6]||(_[6]=S=>A.$emit("forkSession","current"))},{default:b(()=>[j(f(i(n)("sessions.actions.forkCurrent")),1)]),_:1}),m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[7]||(_[7]=S=>A.$emit("forkSession","managed-worktree"))},{default:b(()=>[j(f(i(n)("sessions.actions.forkWorktree")),1)]),_:1})]),_:1})]),_:1})):W("",!0),e.canCloseSession?(h(),V(i(lm),{key:6})):W("",!0),e.canCloseSession?(h(),V(i(Ts),{key:7,class:"ai-session-context-menu-item danger",disabled:e.isStoppingAppSession,onSelect:_[8]||(_[8]=S=>A.$emit("closeSession"))},{default:b(()=>[m(i(rv),{size:14}),d("span",null,f(e.isStoppingAppSession?i(n)("sessions.actions.closingSession"):i(n)("sessions.actions.closeSession")),1)]),_:1},8,["disabled"])):W("",!0)]),_:1}))}}),_N=kn(V8e,[["__scopeId","data-v-98b9a6a4"]]),q8e=["aria-label","title"],j8e=st({__name:"AiSessionOriginMark",props:{creationSource:{}},setup(e){const{t}=An();return(n,s)=>e.creationSource==="app-session"?(h(),C("span",{key:0,class:"ai-session-origin-mark","aria-label":i(t)("sessions.actions.openedFromTerminal"),title:i(t)("sessions.actions.openedFromTerminal")},[m(i(Th),{size:14,"aria-hidden":"true"})],8,q8e)):W("",!0)}}),W8e=kn(j8e,[["__scopeId","data-v-e1412f57"]]),K8e=["data-terminal-origin"],G8e={key:0,class:"ai-session-agent-mark","aria-hidden":"true"},Y8e=st({__name:"AiSessionCardMarks",props:{agent:{},creationSource:{},showAgent:{type:Boolean}},setup(e){const t=e,n=E(()=>t.agent==="codex"||t.agent==="claude"||t.agent==="opencode"?t.agent:void 0);return(s,o)=>(h(),C("span",{class:"ai-session-card-marks","data-terminal-origin":e.creationSource==="app-session"?"true":void 0},[e.showAgent!==!1&&n.value?(h(),C("span",G8e,[m(_p,{agent:n.value,size:14},null,8,["agent"])])):W("",!0),m(W8e,{"creation-source":e.creationSource},null,8,["creation-source"])],8,K8e))}}),c3=kn(Y8e,[["__scopeId","data-v-d1dfa276"]]),Q8e=["data-size","data-state"],Z8e={key:0,class:"ai-session-status-indicator__spinner"},X8e={key:1,class:"ai-session-status-indicator__dot"},J8e=st({__name:"AiSessionStatusIndicator",props:{size:{default:"default"},status:{}},setup(e){return(t,n)=>(h(),C("span",{class:"ai-session-status-indicator","data-size":e.size,"data-state":e.status,"aria-hidden":"true"},[e.status==="running"?(h(),C("span",Z8e)):(h(),C("span",X8e))],8,Q8e))}}),Jm=kn(J8e,[["__scopeId","data-v-d8bb3ef5"]]),e6e={class:"ai-session-command-result"},t6e={class:"ai-session-command-result-header"},n6e={key:0,class:"ai-session-command-result-exit"},s6e=["aria-label","title"],o6e={key:1,class:"ai-session-command-result-empty"},i6e=st({__name:"AiSessionCommandResult",props:{command:{},output:{},exitCode:{}},setup(e){const t=e,{t:n}=An(),s=D(!1),o=E(()=>t.exitCode!==void 0&&t.exitCode!==0),a=E(()=>[t.command?`$ ${t.command}`:"",t.output||""].filter(Boolean).join(`
|
|
392
|
+
`).trim();return n?hi.parse(n,{async:!1,renderer:$8e(t)}):""}const px=new WeakMap;async function U_(e){const t=e.target instanceof Element?e.target.closest(".markdown-code-copy"):void 0;if(!t)return!1;const n=t.closest(".markdown-code-block")?.querySelector("pre code")?.textContent;if(n===void 0||typeof navigator>"u"||!navigator.clipboard?.writeText)return!1;try{await navigator.clipboard.writeText(n)}catch{return!1}const s=t.dataset.copyLabel||t.textContent||"",o=t.dataset.copiedLabel||s;t.textContent=o,t.setAttribute("aria-label",o);const a=px.get(t);return a&&clearTimeout(a),px.set(t,setTimeout(()=>{t.isConnected&&(t.textContent=s,t.setAttribute("aria-label",s),px.delete(t))},1600)),!0}let TP=0,NP=Promise.resolve();function P8e(e,t){const n=NP.then(async()=>{const{default:s}=await Sa(async()=>{const{default:o}=await import("./mermaid.core-C59XQJ8w.js").then(a=>a.aJ);return{default:o}},[]);return s.initialize({flowchart:{htmlLabels:!1},securityLevel:"strict",startOnLoad:!1,suppressErrorRendering:!0,theme:t}),TP+=1,s.render(`markdown-mermaid-${TP}`,e)});return NP=n.then(()=>{},()=>{}),n}const D8e=["innerHTML"],L8e=st({__name:"MarkdownContent",props:{codeTools:{},content:{}},setup(e){const t=e,n=D(),s=E(()=>O8e(t.content,{codeTools:t.codeTools})),o=new WeakMap;let a=0,r;function l(){const p=document.documentElement.dataset.theme;return p==="dark"?"dark":p==="light"?"default":window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"default"}function c(p,g,y){const v=document.createElement("pre"),w=document.createElement("code");if(w.textContent=g,v.append(w),p.replaceChildren(v),y){const k=document.createElement("small");k.className="markdown-mermaid-error",k.textContent=y,p.append(k)}}async function u(){a+=1;const p=a;await vn();const g=n.value;if(!g)return;const y=Array.from(g.querySelectorAll(".markdown-mermaid")),v=l();for(const w of y){const k=o.get(w)??w.querySelector("code")?.textContent??"";o.set(w,k),w.dataset.mermaidState="loading";try{const A=await P8e(k,v);if(p!==a||!w.isConnected)return;w.innerHTML=A.svg,A.bindFunctions?.(w),w.dataset.mermaidState="rendered"}catch(A){if(p!==a||!w.isConnected)return;c(w,k,A instanceof Error?A.message:"Mermaid diagram could not be rendered."),w.dataset.mermaidState="error"}}}return ze(s,()=>{u()},{flush:"post"}),xo(()=>{u(),r=new MutationObserver(()=>{u()}),r.observe(document.documentElement,{attributeFilter:["class","data-theme"],attributes:!0})}),qs(()=>{a+=1,r?.disconnect()}),(p,g)=>(h(),C("div",{ref_key:"root",ref:n,class:"markdown-content",innerHTML:s.value,onClick:g[0]||(g[0]=(...y)=>i(U_)&&i(U_)(...y))},null,8,D8e))}}),Fu=kn(L8e,[["__scopeId","data-v-0a14f41f"]]),B8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eClaude%20Code%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M20.998%2010.949H24v3.102h-3v3.028h-1.487V20H18v-2.921h-1.487V20H15v-2.921H9V20H7.488v-2.921H6V20H4.487v-2.921H3V14.05H0V10.95h3V5h17.998v5.949zM6%2010.949h1.488V8.102H6v2.847zm10.51%200H18V8.102h-1.49v2.847z'%3e%3c/path%3e%3c/svg%3e",F8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eCodex%3c/title%3e%3cpath%20clip-rule='evenodd'%20d='M8.086.457a6.105%206.105%200%20013.046-.415c1.333.153%202.521.72%203.564%201.7a.117.117%200%2000.107.029c1.408-.346%202.762-.224%204.061.366l.063.03.154.076c1.357.703%202.33%201.77%202.918%203.198.278.679.418%201.388.421%202.126a5.655%205.655%200%2001-.18%201.631.167.167%200%2000.04.155%205.982%205.982%200%20011.578%202.891c.385%201.901-.01%203.615-1.183%205.14l-.182.22a6.063%206.063%200%2001-2.934%201.851.162.162%200%2000-.108.102c-.255.736-.511%201.364-.987%201.992-1.199%201.582-2.962%202.462-4.948%202.451-1.583-.008-2.986-.587-4.21-1.736a.145.145%200%2000-.14-.032c-.518.167-1.04.191-1.604.185a5.924%205.924%200%2001-2.595-.622%206.058%206.058%200%2001-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74%207.74%200%2001-.495-1.283%206.11%206.11%200%2001-.017-3.064.166.166%200%2000.008-.074.115.115%200%2000-.037-.064%205.958%205.958%200%2001-1.38-2.202%205.196%205.196%200%2001-.333-1.589%206.915%206.915%200%2001.188-2.132c.45-1.484%201.309-2.648%202.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129%200%2000.087-.087A6.016%206.016%200%20015.635%202.31C6.315%201.464%207.132.846%208.086.457zm-.804%207.85a.848.848%200%2000-1.473.842l1.694%202.965-1.688%202.848a.849.849%200%20001.46.864l1.94-3.272a.849.849%200%2000.007-.854l-1.94-3.393zm5.446%206.24a.849.849%200%20000%201.695h4.848a.849.849%200%20000-1.696h-4.848z'%3e%3c/path%3e%3c/svg%3e",z8e="data:image/svg+xml,%3csvg%20fill='currentColor'%20fill-rule='evenodd'%20height='1em'%20style='flex:none;line-height:1'%20viewBox='0%200%2024%2024'%20width='1em'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle%3eopencode%3c/title%3e%3cpath%20d='M16%206H8v12h8V6zm4%2016H4V2h16v20z'%3e%3c/path%3e%3c/svg%3e",U8e=st({__name:"AiAgentIcon",props:{agent:{},size:{default:16}},setup(e){const t=e,n={claude:B8e,codex:F8e,opencode:z8e},s=E(()=>({"--ai-agent-icon-size":`${t.size}px`,"--ai-agent-icon-source":`url("${n[t.agent]}")`}));return(o,a)=>(h(),C("span",{class:"ai-agent-icon",style:Qn(s.value),"aria-hidden":"true"},null,4))}}),_p=kn(U8e,[["__scopeId","data-v-85f21ea9"]]);function SN(e,t,n){if(e.nodeId)return{nodeId:e.nodeId,nodeName:e.node?.name||n,instanceId:e.id,sessionId:t.id,storyId:t.storyId??null}}function H8e(e,t){return e?.nodeName||t}const V8e=st({__name:"AiSessionCardContextMenu",props:{boundTriggerCount:{},hasAppSession:{type:Boolean},canOpenApp:{type:Boolean},canOpenTerminal:{type:Boolean},canFork:{type:Boolean},canRename:{type:Boolean},isForking:{type:Boolean},isOpeningTerminal:{type:Boolean},isStoppingAppSession:{type:Boolean},sessionId:{},sessionName:{},sessionPath:{},showTriggerActions:{type:Boolean,default:!0},canCloseSession:{type:Boolean,default:!0},storyTarget:{},isTriggerBound:{},isTriggerBusy:{},shortHash:{},triggerTemplates:{}},emits:["closeSession","openApp","openTerminal","renameSession","forkSession","toggleTrigger","storyAssigned","storyAssignFailed"],setup(e,{emit:t}){const{t:n}=An(),s=e,o=t,a=D(!1),r=D(""),l=D([]),c=D(),u=E(()=>!!c.value),p=E(()=>s.storyTarget?.storyId||void 0),g=E(()=>l.value.filter(A=>!A.archivedAt));async function y(A){if(!A||!navigator.clipboard?.writeText){It(n("sessions.actions.copyFailed"),"error");return}try{await navigator.clipboard.writeText(A),It(n("sessions.actions.copied"),"success")}catch{It(n("sessions.actions.copyFailed"),"error")}}async function v(){const A=s.storyTarget;if(!(!A||a.value)){a.value=!0,r.value="",l.value=[];try{const _=await M5(A.nodeId);l.value=_.stories||[]}catch(_){const S=_ instanceof Error?` (${_.message})`:"";r.value=`${n("sessions.actions.storiesLoadFailed")}${S}`}finally{a.value=!1}}}function w(A){A&&v()}async function k(A){const _=s.storyTarget;if(!_||c.value||_.storyId===A)return;const S=!!_.storyId;c.value=A;try{await AIe(_.instanceId,_.sessionId,A);const I={..._,storyId:A};await v(),o("storyAssigned",I,S)}catch(I){r.value=n("sessions.actions.storyAssignFailed"),o("storyAssignFailed",_,I)}finally{c.value=void 0}}return(A,_)=>(h(),V(i(Bc),{class:"ai-session-context-menu"},{default:b(()=>[e.showTriggerActions?(h(),V(i(zw),{key:0},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item"},{default:b(()=>[m(i(Py),{size:14}),d("span",null,f(e.boundTriggerCount?i(n)("sessions.actions.triggersBound",{count:e.boundTriggerCount}):i(n)("sessions.actions.addTrigger")),1)]),_:1}),m(i(Uw),{class:"ai-session-context-menu ai-session-context-trigger-menu"},{default:b(()=>[e.triggerTemplates.length?(h(!0),C(Me,{key:1},ft(e.triggerTemplates,S=>(h(),V(i(Ts),{key:S.configHash,class:"ai-session-context-trigger-item",disabled:e.isTriggerBusy(S.configHash),onSelect:I=>A.$emit("toggleTrigger",S.configHash)},{default:b(()=>[e.isTriggerBound(S.configHash)?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(Py),{key:1,size:13})),d("span",null,[d("strong",null,f(S.config.name),1),d("small",null,f(S.config.source.type)+" · "+f(e.shortHash(S.configHash)),1)]),d("small",null,f(e.isTriggerBound(S.configHash)?i(n)("sessions.actions.remove"):i(n)("sessions.actions.add")),1)]),_:2},1032,["disabled","onSelect"]))),128)):(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.noTriggers")),1)]),_:1}))]),_:1})]),_:1})):W("",!0),e.storyTarget?(h(),V(i(zw),{key:1,"onUpdate:open":w},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item",disabled:u.value},{default:b(()=>[m(i(rh),{size:14}),d("span",null,f(i(n)(p.value?"sessions.actions.moveToStory":"sessions.actions.addToStory")),1)]),_:1},8,["disabled"]),m(i(Uw),{class:"ai-session-context-menu ai-session-context-story-menu"},{default:b(()=>[a.value?(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.loadingStories")),1)]),_:1})):r.value?(h(),V(i(Ts),{key:1,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(r.value),1)]),_:1})):(h(),C(Me,{key:2},[g.value.length?W("",!0):(h(),V(i(Ts),{key:0,class:"ai-session-context-menu-item muted",disabled:""},{default:b(()=>[j(f(i(n)("sessions.actions.noStories")),1)]),_:1})),(h(!0),C(Me,null,ft(g.value,S=>(h(),V(i(Ts),{key:S.id,class:"ai-session-context-story-item",disabled:u.value,onSelect:I=>k(S.id)},{default:b(()=>[S.id===p.value?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(rh),{key:1,size:13})),d("span",null,[d("strong",null,f(S.title),1),d("small",null,f(i(H8e)(e.storyTarget,S.ownerNodeId)),1)])]),_:2},1032,["disabled","onSelect"]))),128))],64))]),_:1})]),_:1})):W("",!0),e.canOpenApp?(h(),V(i(Ts),{key:2,class:"ai-session-context-menu-item",onSelect:_[0]||(_[0]=S=>A.$emit("openApp"))},{default:b(()=>[m(i(yu),{size:14}),d("span",null,f(i(n)("sessions.actions.openApp")),1)]),_:1})):W("",!0),e.canOpenTerminal?(h(),V(i(Ts),{key:3,class:"ai-session-context-menu-item",disabled:e.isOpeningTerminal,onSelect:_[1]||(_[1]=S=>A.$emit("openTerminal"))},{default:b(()=>[m(i(Th),{size:14}),d("span",null,f(i(n)("sessions.actions.openTerminal")),1)]),_:1},8,["disabled"])):W("",!0),e.canRename?(h(),V(i(Ts),{key:4,class:"ai-session-context-menu-item",onSelect:_[2]||(_[2]=S=>A.$emit("renameSession"))},{default:b(()=>[m(i(br),{size:14}),d("span",null,f(i(n)("sessions.actions.rename")),1)]),_:1})):W("",!0),m(i(zw),null,{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item"},{default:b(()=>[m(i(Ka),{size:14}),d("span",null,f(i(n)("sessions.actions.copy")),1)]),_:1}),m(i(Uw),{class:"ai-session-context-menu"},{default:b(()=>[m(i(Ts),{class:"ai-session-context-menu-item",disabled:!e.sessionPath,onSelect:_[3]||(_[3]=S=>y(e.sessionPath))},{default:b(()=>[m(i(na),{size:14}),d("span",null,f(i(n)("sessions.actions.copyPath")),1)]),_:1},8,["disabled"]),m(i(Ts),{class:"ai-session-context-menu-item",disabled:!e.sessionName,onSelect:_[4]||(_[4]=S=>y(e.sessionName))},{default:b(()=>[m(i(kce),{size:14}),d("span",null,f(i(n)("sessions.actions.copyName")),1)]),_:1},8,["disabled"]),m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[5]||(_[5]=S=>y(e.sessionId))},{default:b(()=>[m(i(yre),{size:14}),d("span",null,f(i(n)("sessions.actions.copySessionId")),1)]),_:1})]),_:1})]),_:1}),e.canFork?(h(),V(i(zw),{key:5},{default:b(()=>[m(i(Hw),{class:"ai-session-context-menu-item",disabled:e.isForking},{default:b(()=>[m(i(o6),{size:14}),d("span",null,f(e.isForking?i(n)("sessions.actions.forking"):i(n)("sessions.actions.fork")),1)]),_:1},8,["disabled"]),m(i(Uw),{class:"ai-session-context-menu"},{default:b(()=>[m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[6]||(_[6]=S=>A.$emit("forkSession","current"))},{default:b(()=>[j(f(i(n)("sessions.actions.forkCurrent")),1)]),_:1}),m(i(Ts),{class:"ai-session-context-menu-item",onSelect:_[7]||(_[7]=S=>A.$emit("forkSession","managed-worktree"))},{default:b(()=>[j(f(i(n)("sessions.actions.forkWorktree")),1)]),_:1})]),_:1})]),_:1})):W("",!0),e.canCloseSession?(h(),V(i(lm),{key:6})):W("",!0),e.canCloseSession?(h(),V(i(Ts),{key:7,class:"ai-session-context-menu-item danger",disabled:e.isStoppingAppSession,onSelect:_[8]||(_[8]=S=>A.$emit("closeSession"))},{default:b(()=>[m(i(rv),{size:14}),d("span",null,f(e.isStoppingAppSession?i(n)("sessions.actions.closingSession"):i(n)("sessions.actions.closeSession")),1)]),_:1},8,["disabled"])):W("",!0)]),_:1}))}}),_N=kn(V8e,[["__scopeId","data-v-98b9a6a4"]]),q8e=["aria-label","title"],j8e=st({__name:"AiSessionOriginMark",props:{creationSource:{}},setup(e){const{t}=An();return(n,s)=>e.creationSource==="app-session"?(h(),C("span",{key:0,class:"ai-session-origin-mark","aria-label":i(t)("sessions.actions.openedFromTerminal"),title:i(t)("sessions.actions.openedFromTerminal")},[m(i(Th),{size:14,"aria-hidden":"true"})],8,q8e)):W("",!0)}}),W8e=kn(j8e,[["__scopeId","data-v-e1412f57"]]),K8e=["data-terminal-origin"],G8e={key:0,class:"ai-session-agent-mark","aria-hidden":"true"},Y8e=st({__name:"AiSessionCardMarks",props:{agent:{},creationSource:{},showAgent:{type:Boolean}},setup(e){const t=e,n=E(()=>t.agent==="codex"||t.agent==="claude"||t.agent==="opencode"?t.agent:void 0);return(s,o)=>(h(),C("span",{class:"ai-session-card-marks","data-terminal-origin":e.creationSource==="app-session"?"true":void 0},[e.showAgent!==!1&&n.value?(h(),C("span",G8e,[m(_p,{agent:n.value,size:14},null,8,["agent"])])):W("",!0),m(W8e,{"creation-source":e.creationSource},null,8,["creation-source"])],8,K8e))}}),c3=kn(Y8e,[["__scopeId","data-v-d1dfa276"]]),Q8e=["data-size","data-state"],Z8e={key:0,class:"ai-session-status-indicator__spinner"},X8e={key:1,class:"ai-session-status-indicator__dot"},J8e=st({__name:"AiSessionStatusIndicator",props:{size:{default:"default"},status:{}},setup(e){return(t,n)=>(h(),C("span",{class:"ai-session-status-indicator","data-size":e.size,"data-state":e.status,"aria-hidden":"true"},[e.status==="running"?(h(),C("span",Z8e)):(h(),C("span",X8e))],8,Q8e))}}),Jm=kn(J8e,[["__scopeId","data-v-d8bb3ef5"]]),e6e={class:"ai-session-command-result"},t6e={class:"ai-session-command-result-header"},n6e={key:0,class:"ai-session-command-result-exit"},s6e=["aria-label","title"],o6e={key:1,class:"ai-session-command-result-empty"},i6e=st({__name:"AiSessionCommandResult",props:{command:{},output:{},exitCode:{}},setup(e){const t=e,{t:n}=An(),s=D(!1),o=E(()=>t.exitCode!==void 0&&t.exitCode!==0),a=E(()=>[t.command?`$ ${t.command}`:"",t.output||""].filter(Boolean).join(`
|
|
393
393
|
`));let r;qs(()=>{r&&clearTimeout(r)});async function l(){if(!a.value||!navigator.clipboard?.writeText){It(n("sessions.actions.copyFailed"),"error");return}try{await navigator.clipboard.writeText(a.value),s.value=!0,It(n("sessions.actions.copied"),"success"),r&&clearTimeout(r),r=setTimeout(()=>{s.value=!1},1500)}catch{It(n("sessions.actions.copyFailed"),"error")}}return(c,u)=>(h(),C("section",e6e,[d("header",t6e,[d("span",null,f(i(n)("sessions.timeline.commandShell")),1),o.value?(h(),C("span",n6e,f(i(n)("sessions.timeline.exitCode",{code:e.exitCode})),1)):W("",!0),a.value?(h(),C("button",{key:1,type:"button",class:"ai-session-command-result-copy","aria-label":i(n)("sessions.timeline.copyOutput"),title:i(n)("sessions.timeline.copyOutput"),onClick:l},[s.value?(h(),V(i(Qs),{key:0,size:14})):(h(),V(i(Ka),{key:1,size:14}))],8,s6e)):W("",!0)]),a.value?(h(),V(i(Zn),{key:0,type:"auto",class:"ai-session-command-result-scroll"},{default:b(()=>[d("pre",null,[d("code",null,f(a.value),1)])]),_:1})):(h(),C("div",o6e,f(i(n)("sessions.timeline.noCommandOutput")),1))]))}}),a6e=kn(i6e,[["__scopeId","data-v-b09c462e"]]);function IN(e){const t=e.split("/").at(-1)?.toLowerCase()||"";if(t==="dockerfile")return"dockerfile";const n=t.includes(".")&&t.split(".").at(-1)||"";return{bash:"bash",c:"cpp",cc:"cpp",cpp:"cpp",cs:"csharp",css:"css",cxx:"cpp",go:"go",h:"cpp",hpp:"cpp",htm:"xml",html:"xml",java:"java",js:"javascript",json:"json",jsonc:"json",jsx:"javascript",kt:"kotlin",kts:"kotlin",less:"css",md:"markdown",mjs:"javascript",php:"php",py:"python",rb:"ruby",rs:"rust",sass:"css",scss:"css",sh:"bash",sql:"sql",svg:"xml",swift:"swift",ts:"typescript",tsx:"typescript",vue:"xml",xml:"xml",yaml:"yaml",yml:"yaml",zsh:"bash"}[n]||""}const r6e=200,l6e=5e3;function c6e(e){if(e.activityKind!=="fileChange")return[];const t=RP(e.output);if(t.length)return t;const n=RP(e.input);if(n.length)return n;const s=e.input?.trim(),o=e.paths?.[0];return s&&o&&f6e(s)?[{path:o,diff:s}]:[]}function u6e(e){const t=[];let n,s;const o=e.split(`
|
|
394
394
|
`);o.at(-1)===""&&o.pop();for(const a of o){if(t.length>=l6e)break;const r=a.match(/^@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/);if(r){n=Number(r[1]),s=Number(r[3]);continue}if(!m6e(a)){if(a.startsWith("+")){t.push({kind:"addition",content:a.slice(1),...s===void 0?{}:{newLine:s}}),s!==void 0&&(s+=1);continue}if(a.startsWith("-")){t.push({kind:"deletion",content:a.slice(1),...n===void 0?{}:{oldLine:n}}),n!==void 0&&(n+=1);continue}n===void 0||s===void 0||(t.push({kind:"context",content:a.startsWith(" ")?a.slice(1):a,oldLine:n,newLine:s}),n+=1,s+=1)}}return t}function RP(e){if(!e)return[];let t;try{t=JSON.parse(e)}catch{return[]}return Array.isArray(t)?t.slice(0,r6e).flatMap(n=>{if(!u2(n))return[];const s=Bf(n,"path")||Bf(n,"filePath")||Bf(n,"relativePath");if(!s)return[];const o=n.kind,a=typeof o=="string"?o:u2(o)?Bf(o,"type"):Bf(n,"type"),r=Bf(n,"movePath")||Bf(n,"move_path")||(u2(o)?Bf(o,"move_path")||Bf(o,"movePath"):void 0),l=p6e(a,qy(n.diff)??qy(n.patch)??d6e(o));return[{path:s,diff:l,...a?{kind:a}:{},...r?{movePath:r}:{}}]}):[]}function d6e(e){if(u2(e))return qy(e.unified_diff)??qy(e.unifiedDiff)??qy(e.content)}function p6e(e,t){return t?e==="add"?MP(t,"addition"):e==="delete"?MP(t,"deletion"):t:t??""}function MP(e,t){const n=e.split(`
|
|
395
395
|
`);n.at(-1)===""&&n.pop();const s=t==="addition"?"+":"-";return[`@@ ${t==="addition"?`-0,0 +1,${n.length}`:`-1,${n.length} +0,0`} @@`,...n.map(a=>s+a)].join(`
|
|
@@ -588,11 +588,11 @@ ${I}`);p+=M}else p+=R;p+=_,g=v?y+1:e.length}return p}function J9e(e,t){if(!e||!t
|
|
|
588
588
|
<button class="copy-button" data-code="${I}">${M}</button>
|
|
589
589
|
</div>
|
|
590
590
|
<div class="code-editor"></div>
|
|
591
|
-
</div>`};const u=/^\[(\d+)\]/,p=/^\[([^\]\n]+)\]/,g=w=>{if(!w.startsWith("["))return!1;const k=p.exec(w);if(!k)return w!=="["&&!/^\[\d+$/.test(w);const A=String(k[1]??"");return w.slice(k[0].length).startsWith("(")?!1:!/^\d+$/.test(A)},y=(w,k)=>{const A=w;if(A.src[A.pos]!=="[")return!1;const _=u.exec(A.src.slice(A.pos));if(!_)return!1;const S=A.src.slice(Math.max(0,A.pos-120),A.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(S))return!1;const I=A.src.slice(A.pos+_[0].length);if(I.startsWith("](")||I.startsWith("(")||g(I))return!1;if(!k){const x=_[1],T=A.push("reference","span",0);T.content=x,T.markup=_[0],T.raw=_[0]}return A.pos+=_[0].length,!0};n.inline.ruler.before("escape","reference",y),n.renderer.rules.reference=(w,k)=>{const _=String(w[k].content??"");return`<span class="reference-link" data-reference-id="${_}" role="button" tabindex="0" title="Click to view reference">${_}</span>`};const v=n.use.bind(n);return n.use=((...w)=>(s.__markstreamHasCustomParserExtensions=!0,v(...w))),n}function ELe({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function YQ({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:s,streamRenderVersionChanged:o=!1}){const a=`${n.settledContent}${n.streamedDelta}`;return s?n.streamedDelta&&a===e?o?{settledContent:a,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:ELe({nextContent:e,previousContent:t??a,typewriterEnabled:s}):{settledContent:e,streamedDelta:"",appended:!1}}const TLe={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function NLe(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function QQ(e){const t=NLe(e);return TLe[t]??t}function RLe(e){if(!Array.isArray(e))return;const t=e.filter(s=>typeof s=="string").map(s=>QQ(s)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function MLe(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const s of e){if(typeof s!="string")continue;const o=s.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function $Le(e){return MLe(e)?.join("\0")??""}function OLe(e,t){return`${$Le(e)}\0\0${RLe(t)?.join("\0")??""}`}function jv(e,t,n=1){const s=Number(e);return Number.isFinite(s)?Math.max(n,s):t}function R9(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var PLe=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=g=>this.destroyed?()=>{}:(this.listeners.add(g),()=>{this.listeners.delete(g)}),this.enqueue=g=>{if(this.destroyed||!g)return;this.done&&(this.done=!1);const y=this.source.length>0,v=this.pendingChars<=0;if(this.source+=g,v){const w=M9();this.startedAt=y&&this.hasStarted?w-this.normalizedStartDelayMs:w,this.lastTick=w,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(g={})=>{if(!this.destroyed){if(this.done=!0,g.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(g="")=>{this.destroyed||(this.cancelLoop(),this.source=g,this.visible=g,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const g=M9();this.lastTick=g,this.startedAt||=g,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=g=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(g-this.startedAt<this.normalizedStartDelayMs){this.rafId=requestAnimationFrame(this.tick);return}const y=1e3/Math.max(1,this.maxCommitFps),v=Math.min(100,Math.max(0,g-this.lastTick));if(v<y){this.rafId=requestAnimationFrame(this.tick);return}this.lastTick=g;const w=this.pendingChars,k=w>this.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,A=FLe(w/Math.max(.001,k/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(A-this.currentCps)*.2,this.charBudget+=this.currentCps*(v/1e3),this.charBudget<1){this.ensureLoop();return}const _=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),S=BLe(this.source.slice(this.visible.length),_,this.segmenter);S.text&&(this.visible+=S.text,this.charBudget=Math.max(0,this.charBudget-S.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:s=1e3,targetLatencyMs:o=900,catchUpLatencyMs:a=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:c=80,maxCharsPerCommit:u=80,flushOnFinish:p=!1}=e;this.minCharsPerSecond=jv(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,jv(s,1e3,1)),this.normalizedTargetLatencyMs=jv(o,900,1),this.normalizedCatchUpLatencyMs=jv(a,350,1),this.normalizedCatchUpThreshold=R9(r,600),this.normalizedStartDelayMs=R9(c,80),this.maxCommitFps=Math.trunc(jv(l,30,1)),this.maxCharsPerCommit=Math.trunc(jv(u,80,1)),this.flushOnFinish=p,this.segmenter=LLe(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function DLe(e={},t){const n=new PLe(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function LLe(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function BLe(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const a=Array.from(e).slice(0,t);return{text:a.join(""),graphemeCount:a.length}}let s="",o=0;for(const a of n.segment(e)){if(o>=t)break;s+=a.segment,o++}return{text:s,graphemeCount:o}}function M9(){return typeof performance<"u"?performance.now():Date.now()}function FLe(e,t,n){return Math.min(n,Math.max(t,e))}var zLe=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const x3=Symbol.for("markstream-vue:node-lifecycle");function F7t(){}const rR=new Map;let ZQ="material";const h0=new Map,$9=new Map;let E3=null;function ULe(e){rR.set(e.id,e)}function HLe(e){const t=rR.get(ZQ);if(!t)return;const n=t.core[e];if(n)return n;const s=h0.get(t.id);if(s){const o=s[e];if(o)return o}t.loadExtended&&!h0.has(t.id)&&qLe(t)}function VLe(){var e,t;return(t=(e=rR.get(ZQ))==null?void 0:e.fallback)!=null?t:""}function qLe(e){return zLe(this,null,function*(){var t,n,s;if(h0.has(e.id))return(t=h0.get(e.id))!=null?t:null;let o=$9.get(e.id);return o||(o=((s=(n=e.loadExtended)==null?void 0:n.call(e))!=null?s:Promise.resolve(null)).then(a=>(h0.set(e.id,a),E3?.(),a)).catch(()=>(h0.set(e.id,null),null)),$9.set(e.id,o)),o})}const O9='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M30 14v-2h-2V8h-2v4h-2V8h-2v4h-2v2h2v2h-2v2h2v4h2v-4h2v4h2v-4h2v-2h-2v-2Zm-4 2h-2v-2h2Zm-12.437 6A5.57 5.57 0 0 1 8 16.437v-2.873A5.57 5.57 0 0 1 13.563 8H18V2h-4.437A11.563 11.563 0 0 0 2 13.563v2.873A11.564 11.564 0 0 0 13.563 28H18v-6Z"/></svg>',P9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"/><path fill="#42a5f5" d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"/></svg>',jLe={id:"material",core:{"":P9,plain:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"/><path fill="#42a5f5" d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"/></svg>',text:P9,javascript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ffca28" d="M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"/></svg>',typescript:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#0288d1" d="M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"/></svg>',jsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#00bcd4" d="M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"/><path fill="#00bcd4" d="M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"/><path fill="#00bcd4" d="M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"/><path fill="#00bcd4" d="M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"/></svg>',tsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"/><path fill="#0288d1" d="M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"/><path fill="#0288d1" d="M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"/><path fill="#0288d1" d="M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"/></svg>',html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#e65100" d="m4 4 2 22 10 2 10-2 2-22Zm19.72 7H11.28l.29 3h11.86l-.802 9.335L15.99 25l-6.635-1.646L8.93 19h3.02l.19 2 3.86.77 3.84-.77.29-4H8.84L8 8h16Z"/></svg>',css:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#7e57c2" d="M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"/><path fill="#7e57c2" d="M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"/></svg>',scss:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ec407a" d="M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"/></svg>',json:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="#f9a825" d="M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80z"/></svg>',python:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#0288d1" d="M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711"/><path fill="#fdd835" d="M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89"/></svg>',ruby:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#f44336" d="M18.041 3.177c2.24.382 2.879 1.919 2.843 3.527V6.67l-1.013 13.266-13.132.897h.008c-1.093-.044-3.518-.151-3.634-3.545l1.217-2.222 2.462 5.74 2.097-6.77-.045.009.018-.018 6.85 2.186L13.945 9.3l6.53-.409-5.144-4.212 2.71-1.51v.009M3.113 17.252v.017zM6.916 6.874c2.63-2.622 6.033-4.168 7.34-2.844 1.297 1.306-.072 4.523-2.702 7.135-2.666 2.613-6.015 4.248-7.322 2.933-1.306-1.324.036-4.612 2.675-7.224z"/></svg>',go:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#00acc1" d="M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"/><path fill="#00acc1" d="M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"/></svg>',java:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#f44336" d="M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"/></svg>',kotlin:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><defs><linearGradient id="a" x1="1.725" x2="22.185" y1="22.67" y2="1.982" gradientTransform="translate(1.306 1.129)scale(.89324)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#7c4dff"/><stop offset=".5" stop-color="#d500f9"/><stop offset="1" stop-color="#ef5350"/></linearGradient></defs><path fill="url(#a)" d="M2.975 2.976v18.048h18.05v-.03l-4.478-4.511-4.48-4.515 4.48-4.515 4.443-4.477z"/></svg>',c:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M19.563 22A5.57 5.57 0 0 1 14 16.437v-2.873A5.57 5.57 0 0 1 19.563 8H24V2h-4.437A11.563 11.563 0 0 0 8 13.563v2.873A11.564 11.564 0 0 0 19.563 28H24v-6Z"/></svg>',cpp:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M28 14v-4h-2v4h-6v-4h-2v4h-4v2h4v4h2v-4h6v4h2v-4h4v-2z"/><path fill="#0288d1" d="M13.563 22A5.57 5.57 0 0 1 8 16.437v-2.873A5.57 5.57 0 0 1 13.563 8H18V2h-4.437A11.563 11.563 0 0 0 2 13.563v2.873A11.564 11.564 0 0 0 13.563 28H18v-6Z"/></svg>',cs:O9,csharp:O9,php:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#1e88e5" d="M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"/></svg>',shell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ff7043" d="M2 2a1 1 0 0 0-1 1v10c0 .554.446 1 1 1h12c.554 0 1-.446 1-1V3a1 1 0 0 0-1-1zm0 3h12v8H2zm1 2 2 2-2 2 1 1 3-3-3-3zm5 3.5V12h5v-1.5z"/></svg>',powershell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#03a9f4" d="M29.07 6H7.677A1.535 1.535 0 0 0 6.24 7.113l-4.2 17.774A.852.852 0 0 0 2.93 26h21.393a1.535 1.535 0 0 0 1.436-1.113L29.96 7.112A.852.852 0 0 0 29.07 6M8.626 23.797a1.4 1.4 0 0 1-1.814-.31l-.007-.009a1.075 1.075 0 0 1 .315-1.599l9.6-6.061-6.102-5.852-.01-.01a1.068 1.068 0 0 1 .084-1.625l.037-.03a1.38 1.38 0 0 1 1.8.07l7.233 6.957a1.1 1.1 0 0 1 .236.739 1.08 1.08 0 0 1-.412.79c-.074.04-.146.119-10.951 6.935ZM24 22.94A1.135 1.135 0 0 1 22.803 24h-5.634a1.061 1.061 0 1 1 .001-2.112h5.633A1.134 1.134 0 0 1 24 22.938Z"/></svg>',sql:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ffca28" d="M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"/></svg>',yaml:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff5252" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"/></svg>',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#42a5f5" d="m14 10-4 3.5L6 10H4v12h4v-6l2 2 2-2v6h4V10zm12 6v-6h-4v6h-4l6 8 6-8z"/></svg>',xml:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#8bc34a" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m.12 13.5 3.74 3.74 1.42-1.41-2.33-2.33 2.33-2.33-1.42-1.41zm11.16 0-3.74-3.74-1.42 1.41 2.33 2.33-2.33 2.33 1.42 1.41z"/></svg>',rust:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ff7043" d="m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"/></svg>',vue:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#41b883" d="M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"/><path fill="#35495e" d="m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"/></svg>',mermaid:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#42a5f5" d="m14 10-4 3.5L6 10H4v12h4v-6l2 2 2-2v6h4V10zm12 6v-6h-4v6h-4l6 8 6-8z"/></svg>'},fallback:'<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ff7043" d="M2 2a1 1 0 0 0-1 1v10c0 .554.446 1 1 1h12c.554 0 1-.446 1-1V3a1 1 0 0 0-1-1zm0 3h12v8H2zm1 2 2 2-2 2 1 1 3-3-3-3zm5 3.5V12h5v-1.5z"/></svg>',loadExtended:()=>Sa(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},WLe=gi(0);E3=()=>{WLe.value++},ULe(jLe);const KLe={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function _A(e){var t;const n=(function(s){if(!s)return"";const o=s.trim();if(!o)return"";const[a]=o.split(/\s+/),[r]=a.split(":");return r.toLowerCase()})(e);return(t=KLe[n])!=null?t:n}function z7t(e){const t=_A(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function U7t(e){return HLe(_A(e))||VLe()}const D9={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var IA=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});let Sc=null,Ag=!1,Cg=null,AA=cR;function sw(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function lR(){try{const e=globalThis;return sw(e?.katex)}catch{return null}}function cR(){return IA(null,null,function*(){const e=lR();if(e)return e;const t=yield Sa(()=>Promise.resolve().then(()=>I8e),void 0);try{yield Sa(()=>import("./mhchem-dPq08_XM.js"),__vite__mapDeps([2,3,0,1]))}catch{}return sw(t)})}function XQ(e){const t=Promise.resolve(e).then(n=>{var s;return Cg===t&&n?(Sc=(s=sw(n))!=null?s:n,Sc):null}).catch(()=>null).finally(()=>{Cg===t&&(Cg=null)});return Cg=t,Ag=!0,t}function GLe(e){AA=e,Sc=null,Ag=!1,Cg=null}function YLe(e){GLe(cR)}function JQ(){return typeof AA=="function"}function H7t(){var e;const t=AA;if(!t||t===cR)return null;if(Sc)return Sc;const n=lR();if(n)return Sc=n,Sc;if(Ag)return null;try{const s=t();return s?typeof s?.then=="function"?(XQ(s),null):(Sc=(e=sw(s))!=null?e:s,Sc):null}catch{return null}}function eZ(){return IA(this,null,function*(){var e;const t=lR();if(t)return Sc=t,Sc;if(Sc)return Sc;if(Cg)return Cg;if(Ag)return null;const n=AA;if(!n)return Ag=!0,null;try{const s=n();if(typeof s?.then=="function")return XQ(s);if(s)return Sc=(e=sw(s))!=null?e:s,Ag=!0,Sc}catch{}return Ag=!0,null})}function tZ(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let Wv=null;const T3=new Map,Ay=new Map;let N3=5;const tb=new Set;function nZ(){if(T3.size<N3&&tb.size){let e=N3-T3.size;for(const t of Array.from(tb)){if(e<=0)break;tb.delete(t),e--;try{t()}catch{}}}}function QLe(e,t=!0,n=2e3,s){return IA(this,null,function*(){performance.now();const o=tZ(e);if(!JQ()){const l=new Error("KaTeX rendering disabled");return l.name="KaTeXDisabled",l.code="KATEX_DISABLED",Promise.reject(l)}if(Wv)return Promise.reject(Wv);const a=`${t?"d":"i"}:${o}`,r=Ay.get(a);return r?(nZ(),Promise.resolve(r)):(Wv=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Wv.name="WorkerInitError",Wv.code="WORKER_INIT_ERROR",Promise.reject(Wv))})}function V7t(e,t=!0,n){const s=`${t?"d":"i"}:${tZ(e)}`;if(Ay.set(s,n),Ay.size>200){const o=Ay.keys().next().value;Ay.delete(o)}}const ZLe="WORKER_BUSY";function XLe(e=2e3,t){return T3.size<N3?Promise.resolve():new Promise((n,s)=>{let o,a=!1,r=null,l=()=>{};const c=()=>{o&&globalThis.clearTimeout(o),tb.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{a||(a=!0,c(),n())},tb.add(l),o=globalThis.setTimeout(()=>{if(a)return;a=!0,c();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",s(u)},e),queueMicrotask(()=>nZ()),t&&(r=()=>{if(a)return;a=!0,c();const u=new Error("Aborted");u.name="AbortError",s(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const ly={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function q7t(e){return IA(this,arguments,function*(t,n=!0,s={}){var o,a,r,l;if(!JQ()){const k=new Error("KaTeX rendering disabled");throw k.name="KaTeXDisabled",k.code="KATEX_DISABLED",k}const c=(o=s.timeout)!=null?o:ly.timeout,u=(a=s.waitTimeout)!=null?a:ly.waitTimeout,p=(r=s.backoffMs)!=null?r:ly.backoffMs,g=(l=s.maxRetries)!=null?l:ly.maxRetries,y=Number.isFinite(g)?Math.max(0,Math.min(Math.floor(g),8)):ly.maxRetries,v=s.signal;let w=0;for(;;){if(v?.aborted){const k=new Error("Aborted");throw k.name="AbortError",k}try{return yield QLe(t,n,c,v)}catch(k){if(k?.code!==ZLe||w>=y)throw k;if(w++,yield XLe(u,v).catch(()=>{}),v?.aborted){const A=new Error("Aborted");throw A.name="AbortError",A}p>0&&(yield new Promise(A=>globalThis.setTimeout(A,p*w)))}}})}function g0(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function JLe(e){var t;for(const n of e.split(/\r?\n/)){const s=n.trim();if(!s||s.startsWith("%%"))continue;const o=s.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function cI(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),s=JLe(e);return s==="gantt"?220+28*n:s==="sequencediagram"?180+26*n:s==="classdiagram"||s==="statediagram"||s==="erdiagram"?180+24*n:s==="flowchart"||s==="graph"?170+28*n:200+22*n}function uI(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function sZ(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function dI(e,t=360,n=500){return sZ(e,t,n)}function pI(e,t=360,n=500){return sZ(e,t,n)}var eBe=Object.defineProperty,tBe=Object.defineProperties,nBe=Object.getOwnPropertyDescriptors,L9=Object.getOwnPropertySymbols,sBe=Object.prototype.hasOwnProperty,oBe=Object.prototype.propertyIsEnumerable,B9=(e,t,n)=>t in e?eBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oZ=(e,t)=>{for(var n in t||(t={}))sBe.call(t,n)&&B9(e,n,t[n]);if(L9)for(var n of L9(t))oBe.call(t,n)&&B9(e,n,t[n]);return e},F9=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const fI=()=>Sa(()=>import("./mermaid.core-DHBLTfQ8.js").then(e=>e.aJ),[]);let zf=null,v0=fI,Cy=null,R3=!1,M3=!1,xy=0;function iBe(e){v0=e,xy++,zf=null,Cy=null,R3=!1,M3=!1}function aBe(e){iBe(fI)}function z9(){return typeof v0=="function"}function U9(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=oZ({},t),s={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:a=>typeof t.initialize=="function"?t.initialize(a):o.initialize?o.initialize(a):void 0},tBe(n,nBe(s))}var n,s;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function H9(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const s=oZ({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,s):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(s):void 0}}catch{}}function j7t(){return F9(this,null,function*(){if(zf)return zf;const e=(function(){try{const s=globalThis;return U9(s?.mermaid)}catch{return null}})();if(e)return zf=e,H9(zf),zf;const t=v0,n=xy;return t?t===fI&&R3?null:Cy||(Cy=F9(null,null,function*(){let s;try{s=yield t()}catch(o){if(t===fI)return n===xy&&t===v0&&(R3=!0,(function(a){M3||(M3=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',a))})(o)),null;throw o}finally{n===xy&&t===v0&&(Cy=null)}return n!==xy||t!==v0?null:s?(zf=U9(s),H9(zf),zf):null}),Cy):null})}let Kv=null;const Gv=new Map,V9="MERMAID_DISABLED";function iZ(e,t,n,s){if(!z9()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=V9,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let a=Gv.get(o);return a||(a=(function(r,l,c=1400){if(!z9()){const u=new Error("Mermaid rendering disabled");return u.name="MermaidDisabled",u.code=V9,Promise.reject(u)}return Kv||(Kv=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Kv.name="WorkerInitError",Kv.code="WORKER_INIT_ERROR"),Promise.reject(Kv)})(e,t,n),Gv.set(o,a),a.then(()=>{Gv.get(o)===a&&Gv.delete(o)},()=>{Gv.get(o)===a&&Gv.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const c=new Error("Aborted");return c.name="AbortError",Promise.reject(c)}return new Promise((c,u)=>{let p=()=>{};const g=()=>l.removeEventListener("abort",p);p=()=>{g();const y=new Error("Aborted");y.name="AbortError",u(y)},l.addEventListener("abort",p,{once:!0}),r.then(y=>{g(),c(y)},y=>{g(),u(y)})})})(a,s)}function W7t(e,t,n=1400,s){return iZ("canParse",{code:e,theme:t},n,s)}function K7t(e,t,n=1400,s){return iZ("findPrefix",{code:e,theme:t},n,s)}var rBe=Object.defineProperty,lBe=Object.defineProperties,cBe=Object.getOwnPropertyDescriptors,q9=Object.getOwnPropertySymbols,uBe=Object.prototype.hasOwnProperty,dBe=Object.prototype.propertyIsEnumerable,j9=(e,t,n)=>t in e?rBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t)=>{for(var n in t||(t={}))uBe.call(t,n)&&j9(e,n,t[n]);if(q9)for(var n of q9(t))dBe.call(t,n)&&j9(e,n,t[n]);return e},Os=(e,t)=>lBe(e,cBe(t)),ta=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const pBe="__global__",Ux="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",mI=(()=>{const e=globalThis;if(e[Ux])return e[Ux];const t={scopedCustomComponents:{},revision:gi(0)};return e[Ux]=t,t})(),$3=mI.revision,fBe=Symbol("markstreamCustomComponents"),mBe=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function ow(e){return mBe.has(String(e).trim().toLowerCase())}function hBe(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function w2(e={}){const t={};for(const[n,s]of Object.entries(e))if(s!=null){t[n]=s;for(const o of new Set([$d(n),$d(hBe(n))]))!o||ow(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=s)}return t}function gBe(e,t){mI.scopedCustomComponents[e]=w2(t||{}),$3.value++}function Kr(e){const t=uo(fBe,null);return E(()=>{var n;return $3.value,(function(s,o={}){return $3.value,En(En(En({},w2(mI.scopedCustomComponents[pBe]||{})),w2(o)),w2((function(a){return a&&mI.scopedCustomComponents[a]||{}})(s)))})(e?.(),(n=t?.value)!=null?n:{})})}const vBe=["aria-label"],yBe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},bBe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},bi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Hu=bi(st({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(h(),C("svg",bBe,[...n[1]||(n[1]=[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),d("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(h(),C("svg",yBe,[...n[0]||(n[0]=[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,vBe))}),[["__scopeId","data-v-be21ab83"]]);Hu.install=e=>{e.component(Hu.__name,Hu)};const kBe={class:"emoji-node"},pu=bi(st({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("span",kBe,f(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);pu.install=e=>{e.component(pu.__name,pu)};const wBe=["id"],SBe=["title"],Vu=bi(st({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const s=document.querySelector(t);s?s.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(s,o)=>(h(),C("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[d("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+f(e.node.id)+"]",9,SBe)],8,wBe))}}),[["__scopeId","data-v-c1463a29"]]);Vu.install=e=>{e.component(Vu.__name,Vu)};const aZ=(()=>{try{return!1}catch{}return!1})();function Hx(e){aZ&&console.warn(e)}function W9(e,t="safe",n){return aR(e,t,n)}function rZ(e){return aLe(e)}function Vx(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function uR(e,t="safe"){const n=String(e.tag||e.type||"").trim(),s=k2((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),Vx(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),Vx(r.value)]):Object.entries(o).map(([r,l])=>[r,Vx(l)]):null,t,n);var o;if(!s)return;const a=rZ(eb(s));return Object.keys(a).length>0?a:void 0}function K9(e,t,n=!1){const s=Object.entries(t??{}),o=s.length>0?s.map(([a,r])=>r===""?` ${a}`:` ${a}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function cy(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function qx(e,t,n,s,o,a,r=!1){const l=(function(g,y){return qQ(g,y)})(e,s);if(ew.has(e.toLowerCase())||!l&&zQ(e,a))return null;if(!l&&iR(e,a))return r?[K9(e,t,!0)]:[K9(e,t),...n,`</${e}>`];const c=aR(t,a,e),u=c.key,p=u!=null&&u!==""?u:o;if(l){const g=s[e]||s[e.toLowerCase()],y=rZ(c);return jn(g,Os(En({},y),{key:p}),n.length>0?n:void 0)}return jn(e,Os(En({},c),{innerHTML:void 0,key:p}),n.length>0?n:void 0)}function lZ(e,t){return cLe(e,t)}function hI(e,t,n="safe"){if(!e)return[];try{return(function(a,r,l="safe"){let c=0;const u=[],p=[];for(const g of a)if(g.type==="text")(u.length>0?u[u.length-1].children:p).push(g.content);else if(g.type==="self_closing"){const y=qx(g.tagName,g.attrs||{},[],r,"ms-html-"+c++,l,!0);cy(u.length>0?u[u.length-1].children:p,y)}else if(g.type==="tag_open")u.push({tagName:g.tagName,children:[],attrs:g.attrs,autoKey:"ms-html-"+c++});else if(g.type==="tag_close"){const y=g.tagName.toLowerCase();let v=-1;for(let w=u.length-1;w>=0;w--)if(u[w].tagName.toLowerCase()===y){v=w;break}if(v!==-1)for(;u.length>v;){const w=u.pop(),k=qx(w.tagName,w.attrs||{},w.children,r,w.autoKey,l);u.length>0?cy(u[u.length-1].children,k):cy(p,k),w.tagName.toLowerCase()!==y&&u.length>v&&Hx(`Auto-closing unclosed tag: <${w.tagName}>`)}else Hx(`Ignoring closing tag with no matching opening tag: </${g.tagName}>`)}for(;u.length>0;){const g=u.pop(),y=qx(g.tagName,g.attrs||{},g.children,r,g.autoKey,l);u.length>0?cy(u[u.length-1].children,y):cy(p,y),Hx(`Auto-closing unclosed tag: <${g.tagName}>`)}return p})(jQ(e),t,n)}catch(o){return s=o,aZ&&console.error("Failed to parse HTML to VNodes:",s),null}var s}const _Be=["innerHTML"],qu=bi(st({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=uo("markstreamHtmlPolicy",void 0),s=E(()=>{var l,c;return(c=(l=t.htmlPolicy)!=null?l:n?.value)!=null?c:"safe"}),o=Kr(()=>t.customId),a=st({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=E(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(s.value==="escape")return{mode:"html",content:L0(l,s.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=hI(l,o.value,s.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!lZ(l,o.value))return{mode:"html",content:L0(l,s.value)};const c=hI(l,o.value,s.value);return c===null?{mode:"html",content:L0(l,s.value)}:{mode:"dynamic",nodes:c}});return(l,c)=>r.value.mode==="dynamic"?(h(),C("span",{key:0,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[m(i(a),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(h(),C("span",{key:1,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},f(r.value.content),3)):(h(),C("span",{key:2,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,_Be))}}),[["__scopeId","data-v-d17f12b0"]]);qu.install=e=>{e.component(qu.__name,qu)};const IBe={class:"inline-code"},ABe={key:0},tc=bi(st({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=Ah(),s=uo("markstreamFade",void 0),o=uo("markstreamTextStreamState",void 0),a=uo("markstreamStreamVersion",void 0),r=E(()=>{const S=n.fade;return S===""||S===!0||S==="true"||S!==!1&&S!=="false"&&void 0}),l=E(()=>typeof r.value=="boolean"?r.value:typeof s?.value!="boolean"||s.value),c=E(()=>{var S;return String((S=t.node.code)!=null?S:"")}),u=E(()=>!l.value),p=E(()=>{var S;const I=(S=n["index-key"])!=null?S:n.indexKey;return I==null||I===""?"":String(I)}),g=D(t.node.code),y=D("");let v=a?.value;const w=D(0);function k(){return g.value+y.value}function A(){y.value&&(g.value=k(),y.value="")}ze([()=>t.node.code,p,l,()=>a?.value],([S,I,x,T])=>{const R=String(S??""),M=p.value,$=T!==v;v=T;const O=YQ({nextContent:R,persistedContent:M?o?.get(M):void 0,currentState:{settledContent:g.value,streamedDelta:y.value},typewriterEnabled:l.value,streamRenderVersionChanged:$});g.value=O.settledContent,y.value=O.streamedDelta,O.appended&&(w.value+=1),M&&o?.set(M,R)},{immediate:!0}),ze(l,S=>{var I;S||(I=k(),g.value=I,y.value="")});const _=E(()=>w.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(S,I)=>(h(),C("code",IBe,[u.value?(h(),C(Me,{key:0},[j(f(c.value),1)],64)):(h(),C(Me,{key:1},[g.value?(h(),C("span",ABe,f(g.value),1)):W("",!0),y.value?(h(),C("span",{key:1,class:At(["inline-code-stream-delta",[_.value]]),onAnimationend:A},f(y.value),35)):W("",!0)],64))]))}}),[["__scopeId","data-v-9c5f6e69"]]);tc.install=e=>{e.component(tc.__name,tc)};const O3=D(!1),G9=D(""),Y9=D("top"),nb=D(null),sb=D(null),P3=D(null),D3=D(null),Q9=D(null);let S2=null,_2=null,L3=0;function cZ(){S2&&(clearTimeout(S2),S2=null),_2&&(clearTimeout(_2),_2=null)}let vS=!1,yS=null,Z9=!1;function CBe(e,t,n="top",s=!1,o,a){if(!e)return;const r=++L3;cZ();const l=()=>ta(null,null,function*(){var c,u;if(yield(function(){return ta(this,null,function*(){if(!vS&&!Z9&&typeof document<"u"){yS!=null||(yS=ta(null,null,function*(){const[{createApp:p,h:g},{default:y}]=yield Promise.all([Sa(()=>import("./ui-vendor-DlCfJccy.js").then(w=>w.bU),[]),Sa(()=>import("./Tooltip-C6GltrtF.js"),__vite__mapDeps([4,3,0,1]))]),v=document.createElement("div");v.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(v),p({setup:()=>()=>{var w;return g(y,{visible:O3.value,"anchor-el":nb.value,content:G9.value,placement:Y9.value,id:sb.value,originX:P3.value,originY:D3.value,isDark:(w=Q9.value)!=null?w:void 0})}}).mount(v),vS=!0}));try{yield yS}catch(p){vS=!1,yS=null,Z9=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",p)}}})})(),vS&&r===L3){sb.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,nb.value=e,G9.value=t,Y9.value=n,P3.value=(c=o?.x)!=null?c:null,D3.value=(u=o?.y)!=null?u:null,Q9.value=typeof a=="boolean"?a:null,O3.value=!0;try{e.setAttribute("aria-describedby",sb.value)}catch{}}});s?l():S2=setTimeout(l,80)}function xBe(e=!1){L3+=1,cZ();const t=()=>{if(nb.value&&sb.value)try{nb.value.removeAttribute("aria-describedby")}catch{}O3.value=!1,nb.value=null,sb.value=null,P3.value=null,D3.value=null};e?t():_2=setTimeout(t,120)}const EBe={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},TBe=Symbol("markstreamI18nFallback");function uZ(e,t){var n;return(n=t?.[e])!=null?n:EBe[e]}const B3=(e,t)=>{var n;return(n=uZ(e,t))!=null?n:(function(s){return(s.split(".").pop()||s).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function X9(e,t){return{t(n){const s=uZ(n,t);if(e.te&&s!=null&&!e.te(n))return B3(n,t);const o=e.t(n);return o===n&&s!=null?B3(n,t):o}}}function NBe(){const e=(function(){var n,s,o;try{const a=Nd(),r=TBe,l=a?.provides,c=(n=a?.appContext)==null?void 0:n.provides;return(o=(s=l?.[r])!=null?s:c?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,s;try{const o=Nd(),a=o?.proxy,r=a?.$t;if(typeof r=="function"){const u=a?.$te;return{t:r.bind(a),te:typeof u=="function"?u.bind(a):void 0}}const l=(s=(n=o?.appContext)==null?void 0:n.config)==null?void 0:s.globalProperties,c=l?.$t;if(typeof c=="function"){const u=l?.$te;return{t:c.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return X9(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const s=n();if(s&&typeof s.t=="function")return X9({t:s.t.bind(s),te:typeof s.te=="function"?s.te.bind(s):void 0},e)}catch{}}catch{}return{t:n=>B3(n,e)}}const dZ=Symbol("ViewportPriority"),pZ=Symbol("ViewportPriorityOptions"),fZ=Symbol("OffscreenHeavyNodeDeferral"),RBe=E(()=>!1),Jg="400px";function dR(){return uo(pZ,void 0)}function pR(){return uo(fZ,RBe)}function MBe(e,t){var n,s;const o=typeof window<"u"&&typeof document<"u",a=typeof t=="boolean"?D(t):t,r=o?(n=window.requestIdleCallback)!=null?n:M=>window.setTimeout(()=>M({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(s=window.cancelIdleCallback)!=null?s:M=>window.clearTimeout(M):null,c=new WeakMap;let u=1;const p=new Map,g=new Map,y=new Set;let v=null,w=null;function k(M){if(!M)return"viewport";let $=c.get(M);return $||($=u++,c.set(M,$)),String($)}function A(){if(v!=null){try{l?.(v)}catch{}v=null}}function _(M){if(M){const $=p.get(M);if($&&!$.targets.size){try{$.io.disconnect()}catch{}p.delete(M)}}g.size||y.size||A()}function S(M){const $=g.get(M);if(!$)return;const O=p.get($.bucketKey);if(!$.visible.value){$.visible.value=!0;try{$.resolve()}catch{}}try{O?.io.unobserve(M)}catch{}O?.targets.delete(M),g.delete(M),y.delete(M),_($.bucketKey)}function I(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&v==null&&y.size&&(v=r(()=>{v=null;const M=y.values().next().value;M&&(y.delete(M),S(M),y.size&&I())},{timeout:1200}))}function x(M,$){if(!o||typeof IntersectionObserver>"u")return null;const O=(function(U,L){var K,G,Q;return{root:(K=e?.(U??null))!=null?K:null,rootMargin:(G=L?.rootMargin)!=null?G:Jg,threshold:(Q=L?.threshold)!=null?Q:0}})(M,$),F=[k((B=O).root),B.rootMargin,B.threshold].join("\0");var B;const N=p.get(F);if(N)return{key:F,bucket:N};let z;try{z=new IntersectionObserver(U=>{for(const L of U)(L.isIntersecting||L.intersectionRatio>0)&&S(L.target)},{root:O.root,rootMargin:O.rootMargin,threshold:O.threshold})}catch{return null}const H={io:z,targets:new Map};return p.set(F,H),{key:F,bucket:H}}function T(){if(o&&a.value)for(const[M,$]of Array.from(g.entries())){const O=x(M,$.opts);if(!O){S(M);continue}if(O.key===$.bucketKey)continue;const F=$.bucketKey,B=p.get(F);try{B?.io.unobserve(M)}catch{}B?.targets.delete(M),$.bucketKey=O.key,O.bucket.targets.set(M,$),O.bucket.io.observe(M),_(F)}}ze(a,M=>{if(!M){for(const $ of Array.from(g.keys()))S($);A()}},{flush:"sync"});const R=(M,$)=>{const O=D(!1);let F,B=!1;const N=new Promise(L=>{F=()=>{B||(B=!0,L())}}),z=()=>{const L=g.get(M);if(!L)return y.delete(M),void _();const K=p.get(L.bucketKey);try{K?.io.unobserve(M)}catch{}K?.targets.delete(M),g.delete(M),y.delete(M),_(L.bucketKey)};if(!o||!a.value)return O.value=!0,F(),{isVisible:O,whenVisible:N,destroy:z};const H=x(M,$);if(!H)return O.value=!0,F(),{isVisible:O,whenVisible:N,destroy:z};const U={resolve:F,visible:O,bucketKey:H.key,opts:$};return g.set(M,U),H.bucket.targets.set(M,U),H.bucket.io.observe(M),o&&w==null&&(w=window.requestAnimationFrame(()=>{w=null,T()})),$?.allowIdle!==!1&&(y.add(M),I()),{isVisible:O,whenVisible:N,destroy:z}};return R.refresh=T,si(dZ,R),R}function fR(){var e,t;const n=uo(dZ,void 0);if(n)return n;const s=new WeakMap,o=new Map,a=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:v=>window.setTimeout(()=>v({didTimeout:!0,timeRemaining:()=>0}),16):null,c=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:v=>window.clearTimeout(v):null,u=()=>{if(r!=null){try{c?.(r)}catch{}r=null}},p=v=>{if(!v)return;const w=o.get(v);if(w&&!w.targets.size){try{w.io.disconnect()}catch{}o.delete(v)}},g=v=>{const w=s.get(v);if(!w)return;const k=o.get(w.bucketKey);if(!w.visible.value){w.visible.value=!0;try{w.resolve()}catch{}}try{k?.io.unobserve(v)}catch{}s.delete(v),k?.targets.delete(v),a.delete(v),p(w.bucketKey),a.size||u()},y=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&a.size&&(r=l(()=>{r=null;const v=a.values().next().value;v&&(a.delete(v),g(v),a.size&&y())},{timeout:1200}))};return(v,w)=>{const k=D(!1);let A,_=!1;const S=new Promise(T=>{A=()=>{_||(_=!0,T())}}),I=()=>{const T=s.get(v);if(!T)return a.delete(v),void(a.size||u());const R=o.get(T.bucketKey);try{R?.io.unobserve(v)}catch{}s.delete(v),R?.targets.delete(v),a.delete(v),p(T.bucketKey),a.size||u()},x=(T=>{var R,M;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const $=(z=>{var H,U;return[(H=z?.rootMargin)!=null?H:Jg,(U=z?.threshold)!=null?U:0].join("\0")})(T),O=o.get($);if(O)return{key:$,bucket:O};const F=(R=T?.rootMargin)!=null?R:Jg;let B;try{B=new IntersectionObserver(z=>{for(const H of z)(H.isIntersecting||H.intersectionRatio>0)&&g(H.target)},{root:null,rootMargin:F,threshold:(M=T?.threshold)!=null?M:0})}catch{return null}const N={io:B,targets:new Set};return o.set($,N),{key:$,bucket:N}})(w);return x?(s.set(v,{resolve:A,visible:k,bucketKey:x.key}),x.bucket.targets.add(v),x.bucket.io.observe(v),w?.allowIdle!==!1&&(a.add(v),y()),{isVisible:k,whenVisible:S,destroy:I}):(k.value=!0,A(),{isVisible:k,whenVisible:S,destroy:I})}}function $Be(e,t){var n,s;const o=(s=(n=e.indexKey)!=null?n:t["index-key"])!=null?s:t.indexKey;return o==null||o===""?"":String(o)}const OBe=["data-markstream-viewport-pending"],PBe=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],DBe={key:1,class:"image-placeholder"},LBe={key:1,class:"image-node__raw-text"},BBe={key:2,class:"image-shimmer-overlay"},FBe={key:1,class:"image-node__raw-text"},zBe={key:3,class:"image-error"},ih=bi(st({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,s,o;const a=e,r=t,l=D(!1),c=D(!1),u=D(""),p=D("primary"),g=D(null),y=Ah(),v=uo(x3,null),w=fR(),k=dR(),A=pR(),_=E(()=>TD(a.node.src)),S=E(()=>TD(a.fallbackSrc)),I=(o=(s=(n=Nd())==null?void 0:n.vnode.el)==null?void 0:s.querySelector)==null?void 0:o.call(s,"img"),x=typeof window<"u"&&I?.getAttribute("src")===(_.value||S.value),T=D(typeof window>"u"||x||!A.value),R=gi(null);let M="",$=null;const O=E(()=>u.value),F=E(()=>!a.lazy),B=E(()=>typeof window<"u"&&A.value&&!x),N=E(()=>!B.value||T.value),z=E(()=>N.value?O.value:""),H=E(()=>{var Ce,Fe;return(Fe=(Ce=k?.value.heavyBlockMargin)!=null?Ce:k?.value.rootMargin)!=null?Fe:Jg}),U=E(()=>!a.node.loading&&p.value!=="failed"&&u.value.length>0),L=E(()=>p.value==="failed"),K=E(()=>(!F.value||B.value&&!T.value)&&!l.value&&!c.value&&p.value!=="failed"&&u.value.length>0),G=E(()=>$Be(a,y));function Q(Ce=G.value){Ce&&g.value&&v?.reportHeight(Ce,g.value.offsetHeight)}function J(Ce=G.value){Ce&&vn(()=>{Q(Ce)})}function ee(){$&&(clearTimeout($),$=null)}function ie(){const Ce=G.value;Ce&&M!==Ce&&(M&&v?.markSettled(M),ee(),M=Ce,v?.markPending(Ce),typeof window<"u"&&($=window.setTimeout(()=>{M===Ce&&(J(Ce),le())},8e3)))}function le(){return ta(this,null,function*(){const Ce=M;Ce&&(ee(),M="",yield vn(),Q(Ce),v?.markSettled(Ce))})}function oe(){if(p.value==="primary"&&S.value&&S.value!==u.value)return p.value="fallback",u.value=S.value,l.value=!1,c.value=!1,void J();p.value="failed",c.value=!0,r("error",u.value),J()}function ae(){l.value=!0,c.value=!1,r("load",O.value),J()}function te(Ce){Ce.preventDefault(),l.value&&!c.value&&r("click",[Ce,O.value])}const{t:Z}=NBe();return ze([_,S,()=>a.node.loading],()=>(l.value=!1,c.value=!1,a.node.loading||_.value?(u.value=_.value,void(p.value="primary")):S.value?(u.value=S.value,void(p.value="fallback")):(u.value="",p.value="failed",void(c.value=!0))),{immediate:!0}),typeof window<"u"&&ze([g,B],([Ce,Fe],Pe,fe)=>{var be;if((be=R.value)==null||be.destroy(),R.value=null,!Fe||T.value)return void(T.value=!0);if(!Ce)return void(T.value=!1);let ue=!0;const ye=w(Ce,{rootMargin:H.value,allowIdle:!1});R.value=ye,T.value=ye.isVisible.value,ye.whenVisible.then(()=>{ue&&R.value===ye&&(T.value=!0)}),fe(()=>{ue=!1,ye.destroy(),R.value===ye&&(R.value=null)})},{immediate:!0}),ze([U,l,c,O,()=>a.lazy,N],([Ce,Fe,Pe,fe,be,ue])=>Ce&&fe&&!Pe&&ue?Fe?(le(),void J()):be?(ie(),void J()):void(Fe||Pe||ie()):(le(),void J()),{flush:"post",immediate:!0}),qs(()=>{var Ce;(Ce=R.value)==null||Ce.destroy(),R.value=null,(function(){const Fe=M;Fe&&(ee(),M="",v?.markSettled(Fe))})()}),(Ce,Fe)=>{var Pe,fe,be,ue,ye;return h(),C("span",{ref_key:"rootRef",ref:g,class:"image-node-container","data-markstream-viewport-pending":B.value&&!T.value?"true":void 0},[U.value?(h(),C("img",{key:0,src:z.value||void 0,alt:String((fe=(Pe=a.node.alt)!=null?Pe:a.node.title)!=null?fe:""),title:String((ue=(be=a.node.title)!=null?be:a.node.alt)!=null?ue:""),class:At(["image-node__img",{"is-loading":!F.value&&!l.value,"is-loaded":F.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:a.lazy?"lazy":void 0,fetchpriority:F.value?"high":void 0,decoding:F.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(ye=a.node.alt)!=null?ye:i(Z)("image.preview"),onError:oe,onLoad:ae,onClick:te},null,42,PBe)):W("",!0),e.node.loading&&!c.value?(h(),C("span",DBe,[a.usePlaceholder?gn(Ce.$slots,"placeholder",{key:0,node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[0]||(Fe[0]=d("span",{class:"image-shimmer"},null,-1))],!0):(h(),C("span",LBe,f(e.node.raw),1))])):W("",!0),K.value&&!e.node.loading?(h(),C("span",BBe,[a.usePlaceholder?gn(Ce.$slots,"placeholder",{key:0,node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[1]||(Fe[1]=d("span",{class:"image-shimmer"},null,-1))],!0):(h(),C("span",FBe,f(e.node.raw),1))])):W("",!0),L.value?(h(),C("span",zBe,[gn(Ce.$slots,"error",{node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[2]||(Fe[2]=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[d("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),d("span",null,f(i(Z)("image.loadError")),1)],!0)])):W("",!0)],8,OBe)}}}),[["__scopeId","data-v-046e82ac"]]);ih.install=e=>{e.component(ih.__name,ih)};const UBe={key:2},yf=st({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamHtmlPolicy",void 0),o=uo("markstreamNestedRendererProps",void 0),a=E(()=>{var w;return(w=s?.value)!=null?w:"safe"}),r=E(()=>{var w,k;const A=(w=o?.value)!=null?w:{};return Os(En({},A),{customId:(k=t.customId)!=null?k:A.customId,htmlPolicy:a.value})}),l=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1}),c=E(()=>t.components[String(t.node.type)]),u=E(()=>!!(c.value&&n.value[t.node.type]&&!ow(String(t.node.type)))),p=E(()=>u.value?uR(t.node,a.value):void 0),g=E(()=>Array.isArray(t.node.children)&&t.node.children.length>0),y=E(()=>{var w;return String((w=t.node.content)!=null?w:"")}),v=E(()=>{var w,k;return String((k=(w=t.node.content)!=null?w:t.node.raw)!=null?k:"")});return(w,k)=>c.value&&u.value?(h(),V(Ms(c.value),Un({key:0},p.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:b(()=>[g.value?(h(),V(i(l),Un({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):y.value?(h(),V(i(l),Un({key:1},r.value,{content:y.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):c.value?(h(),V(Ms(c.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(h(),C("span",UBe,f(v.value),1)):W("",!0)}}),J9=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function HBe(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return Os(En(En({},J9),n),{enabled:(t=n.enabled)==null||t})}return En({},J9)}function mR(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,s=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=s}function mZ(e){var t,n;const s=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(s.length<3)return"";const o=s[0];if(o!=="`"&&o!=="~"||s[1]!==o||s[2]!==o)return"";let a=3;for(;s[a]===o;)a+=1;return s.slice(a).trim()}function eL(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function VBe(e){var t;return e.diff===!0||eL(e.language)||eL(mZ(String((t=e.raw)!=null?t:"")))}function qBe(e,t,n){const s=(function(o){const a=mZ(o);if(!a)return"";const r=a.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const c of l){const u=c.includes(":")?c.slice(c.indexOf(":")+1):c;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:s||t,caption:s?n?`Diff / ${t}`:t:""}}const jBe=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],WBe={key:0,translate:"no",class:"markstream-pre__diff-code"},KBe={class:"markstream-pre__diff-pane-content"},GBe={class:"markstream-pre__diff-number","aria-hidden":"true"},YBe={class:"markstream-pre__diff-content"},QBe={class:"markstream-pre__diff-content-inner"},ZBe={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},XBe=["textContent"],JBe=["textContent"],nu=st({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(ae,te){const Z=String(ae??"");return te?Z:Z.replace(/\r\n$|\n$|\r$/,"")}const s=E(()=>{var ae,te,Z;const Ce=String((te=(ae=t.node)==null?void 0:ae.language)!=null?te:"");return String((Z=String(Ce).split(/\s+/g)[0])!=null?Z:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=E(()=>`language-${s.value}`),a=E(()=>{var ae;return t.loading===!0||((ae=t.node)==null?void 0:ae.loading)===!0}),r=E(()=>{var ae;return n((ae=t.node)==null?void 0:ae.code,a.value)});let l="",c=1;const u=E(()=>(function(ae){let te=0,Z=1;ae.startsWith(l)&&(te=l.length,Z=c,te>0&&ae[te-1]==="\r"&&ae[te]===`
|
|
591
|
+
</div>`};const u=/^\[(\d+)\]/,p=/^\[([^\]\n]+)\]/,g=w=>{if(!w.startsWith("["))return!1;const k=p.exec(w);if(!k)return w!=="["&&!/^\[\d+$/.test(w);const A=String(k[1]??"");return w.slice(k[0].length).startsWith("(")?!1:!/^\d+$/.test(A)},y=(w,k)=>{const A=w;if(A.src[A.pos]!=="[")return!1;const _=u.exec(A.src.slice(A.pos));if(!_)return!1;const S=A.src.slice(Math.max(0,A.pos-120),A.pos);if(/"[^"\n]{1,80}"\s*:\s*$/.test(S))return!1;const I=A.src.slice(A.pos+_[0].length);if(I.startsWith("](")||I.startsWith("(")||g(I))return!1;if(!k){const x=_[1],T=A.push("reference","span",0);T.content=x,T.markup=_[0],T.raw=_[0]}return A.pos+=_[0].length,!0};n.inline.ruler.before("escape","reference",y),n.renderer.rules.reference=(w,k)=>{const _=String(w[k].content??"");return`<span class="reference-link" data-reference-id="${_}" role="button" tabindex="0" title="Click to view reference">${_}</span>`};const v=n.use.bind(n);return n.use=((...w)=>(s.__markstreamHasCustomParserExtensions=!0,v(...w))),n}function ELe({nextContent:e,previousContent:t,typewriterEnabled:n}){return n?e===t?{settledContent:e,streamedDelta:"",appended:!1}:t&&e.startsWith(t)&&e.length>t.length?{settledContent:t,streamedDelta:e.slice(t.length),appended:!0}:{settledContent:e,streamedDelta:"",appended:!1}:{settledContent:e,streamedDelta:"",appended:!1}}function YQ({nextContent:e,persistedContent:t,currentState:n,typewriterEnabled:s,streamRenderVersionChanged:o=!1}){const a=`${n.settledContent}${n.streamedDelta}`;return s?n.streamedDelta&&a===e?o?{settledContent:a,streamedDelta:"",appended:!1}:{settledContent:n.settledContent,streamedDelta:n.streamedDelta,appended:!1}:ELe({nextContent:e,previousContent:t??a,typewriterEnabled:s}):{settledContent:e,streamedDelta:"",appended:!1}}const TLe={plain:"plaintext",text:"plaintext",txt:"plaintext",js:"javascript",mjs:"javascript",cjs:"javascript",ts:"typescript",mts:"typescript",cts:"typescript",golang:"go",py:"python",rb:"ruby",rs:"rust",kt:"kotlin",kts:"kotlin",md:"markdown",yml:"yaml",sh:"shellscript",bash:"shellscript",zsh:"shellscript",shell:"shellscript",shellscript:"shellscript",ps:"powershell",ps1:"powershell",pwsh:"powershell","c++":"cpp","c#":"csharp",cs:"csharp",objc:"objective-c",objectivec:"objective-c","objective-c":"objective-c",objectivecpp:"objective-cpp","objective-c++":"objective-cpp","objective-cpp":"objective-cpp"};function NLe(e){const t=String(e??"").trim();if(!t)return"";const[n=""]=t.split(/\s+/);return n.split(":")[0]?.trim().toLowerCase()??""}function QQ(e){const t=NLe(e);return TLe[t]??t}function RLe(e){if(!Array.isArray(e))return;const t=e.filter(s=>typeof s=="string").map(s=>QQ(s)).filter(Boolean),n=Array.from(new Set(t)).sort();return n.length>0?n:void 0}function MLe(e){if(!Array.isArray(e))return;const t=[],n=new Set;for(const s of e){if(typeof s!="string")continue;const o=s.trim();!o||n.has(o)||(n.add(o),t.push(o))}return t.length>0?t:void 0}function $Le(e){return MLe(e)?.join("\0")??""}function OLe(e,t){return`${$Le(e)}\0\0${RLe(t)?.join("\0")??""}`}function jv(e,t,n=1){const s=Number(e);return Number.isFinite(s)?Math.max(n,s):t}function R9(e,t){const n=Number(e);return Number.isFinite(n)?Math.max(0,n):t}var PLe=class{constructor(e={},t){this.source="",this.visible="",this.done=!1,this.paused=!1,this.listeners=new Set,this.rafId=0,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.hasStarted=!1,this.destroyed=!1,this.getSnapshot=()=>({source:this.source,visible:this.visible,done:this.done,paused:this.paused,pendingChars:this.pendingChars,caughtUp:this.caughtUp,final:this.final}),this.subscribe=g=>this.destroyed?()=>{}:(this.listeners.add(g),()=>{this.listeners.delete(g)}),this.enqueue=g=>{if(this.destroyed||!g)return;this.done&&(this.done=!1);const y=this.source.length>0,v=this.pendingChars<=0;if(this.source+=g,v){const w=M9();this.startedAt=y&&this.hasStarted?w-this.normalizedStartDelayMs:w,this.lastTick=w,this.charBudget=0}this.hasStarted=!0,this.emit(),this.ensureLoop()},this.finish=(g={})=>{if(!this.destroyed){if(this.done=!0,g.flush??this.flushOnFinish){this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit();return}this.emit(),this.ensureLoop()}},this.flush=()=>{this.destroyed||(this.visible=this.source,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.cancelLoop(),this.emit())},this.reset=(g="")=>{this.destroyed||(this.cancelLoop(),this.source=g,this.visible=g,this.done=!1,this.paused=!1,this.hasStarted=!1,this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond,this.emit())},this.pause=()=>{this.destroyed||this.paused||(this.paused=!0,this.cancelLoop(),this.emit())},this.resume=()=>{if(this.destroyed||!this.paused)return;this.paused=!1;const g=M9();this.lastTick=g,this.startedAt||=g,this.emit(),this.ensureLoop()},this.destroy=()=>{this.destroyed||(this.destroyed=!0,this.cancelLoop(),this.listeners.clear())},this.dispose=()=>{this.destroy()},this.tick=g=>{if(this.rafId=0,this.destroyed||this.paused)return;if(this.pendingChars<=0){this.startedAt=0,this.lastTick=0,this.charBudget=0,this.currentCps=this.minCharsPerSecond;return}if(g-this.startedAt<this.normalizedStartDelayMs){this.rafId=requestAnimationFrame(this.tick);return}const y=1e3/Math.max(1,this.maxCommitFps),v=Math.min(100,Math.max(0,g-this.lastTick));if(v<y){this.rafId=requestAnimationFrame(this.tick);return}this.lastTick=g;const w=this.pendingChars,k=w>this.normalizedCatchUpThreshold?this.normalizedCatchUpLatencyMs:this.normalizedTargetLatencyMs,A=FLe(w/Math.max(.001,k/1e3),this.minCharsPerSecond,this.maxCharsPerSecond);if(this.currentCps+=(A-this.currentCps)*.2,this.charBudget+=this.currentCps*(v/1e3),this.charBudget<1){this.ensureLoop();return}const _=Math.min(Math.floor(this.charBudget),this.maxCharsPerCommit),S=BLe(this.source.slice(this.visible.length),_,this.segmenter);S.text&&(this.visible+=S.text,this.charBudget=Math.max(0,this.charBudget-S.graphemeCount),this.emit()),this.ensureLoop()};const{minCharsPerSecond:n=40,maxCharsPerSecond:s=1e3,targetLatencyMs:o=900,catchUpLatencyMs:a=350,catchUpThreshold:r=600,maxCommitFps:l=30,startDelayMs:c=80,maxCharsPerCommit:u=80,flushOnFinish:p=!1}=e;this.minCharsPerSecond=jv(n,40,1),this.maxCharsPerSecond=Math.max(this.minCharsPerSecond,jv(s,1e3,1)),this.normalizedTargetLatencyMs=jv(o,900,1),this.normalizedCatchUpLatencyMs=jv(a,350,1),this.normalizedCatchUpThreshold=R9(r,600),this.normalizedStartDelayMs=R9(c,80),this.maxCommitFps=Math.trunc(jv(l,30,1)),this.maxCharsPerCommit=Math.trunc(jv(u,80,1)),this.flushOnFinish=p,this.segmenter=LLe(),t&&this.listeners.add(t),this.currentCps=this.minCharsPerSecond}get pendingChars(){return Math.max(0,this.source.length-this.visible.length)}get caughtUp(){return this.pendingChars===0}get final(){return this.done&&this.caughtUp}ensureLoop(){if(!(this.destroyed||this.rafId||this.paused||this.pendingChars<=0)){if(typeof requestAnimationFrame!="function"){this.flush();return}this.rafId=requestAnimationFrame(this.tick)}}cancelLoop(){this.rafId&&(typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(this.rafId),this.rafId=0)}emit(){if(!this.destroyed)for(const e of this.listeners)e()}};function DLe(e={},t){const n=new PLe(e,t);return{getSnapshot:n.getSnapshot,subscribe:n.subscribe,enqueue:n.enqueue,finish:n.finish,flush:n.flush,reset:n.reset,pause:n.pause,resume:n.resume,destroy:n.destroy,dispose:n.dispose}}function LLe(){if(typeof Intl>"u")return null;const e=Intl.Segmenter;return e?new e(void 0,{granularity:"grapheme"}):null}function BLe(e,t,n){if(!e||t<=0)return{text:"",graphemeCount:0};if(!n){const a=Array.from(e).slice(0,t);return{text:a.join(""),graphemeCount:a.length}}let s="",o=0;for(const a of n.segment(e)){if(o>=t)break;s+=a.segment,o++}return{text:s,graphemeCount:o}}function M9(){return typeof performance<"u"?performance.now():Date.now()}function FLe(e,t,n){return Math.min(n,Math.max(t,e))}var zLe=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const x3=Symbol.for("markstream-vue:node-lifecycle");function F7t(){}const rR=new Map;let ZQ="material";const h0=new Map,$9=new Map;let E3=null;function ULe(e){rR.set(e.id,e)}function HLe(e){const t=rR.get(ZQ);if(!t)return;const n=t.core[e];if(n)return n;const s=h0.get(t.id);if(s){const o=s[e];if(o)return o}t.loadExtended&&!h0.has(t.id)&&qLe(t)}function VLe(){var e,t;return(t=(e=rR.get(ZQ))==null?void 0:e.fallback)!=null?t:""}function qLe(e){return zLe(this,null,function*(){var t,n,s;if(h0.has(e.id))return(t=h0.get(e.id))!=null?t:null;let o=$9.get(e.id);return o||(o=((s=(n=e.loadExtended)==null?void 0:n.call(e))!=null?s:Promise.resolve(null)).then(a=>(h0.set(e.id,a),E3?.(),a)).catch(()=>(h0.set(e.id,null),null)),$9.set(e.id,o)),o})}const O9='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M30 14v-2h-2V8h-2v4h-2V8h-2v4h-2v2h2v2h-2v2h2v4h2v-4h2v4h2v-4h2v-2h-2v-2Zm-4 2h-2v-2h2Zm-12.437 6A5.57 5.57 0 0 1 8 16.437v-2.873A5.57 5.57 0 0 1 13.563 8H18V2h-4.437A11.563 11.563 0 0 0 2 13.563v2.873A11.564 11.564 0 0 0 13.563 28H18v-6Z"/></svg>',P9='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"/><path fill="#42a5f5" d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"/></svg>',jLe={id:"material",core:{"":P9,plain:'<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M0 0h24v24H0z"/><path fill="#42a5f5" d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"/></svg>',text:P9,javascript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ffca28" d="M2 2v12h12V2zm6 6h1v4a1.003 1.003 0 0 1-1 1H7a1.003 1.003 0 0 1-1-1v-1h1v1h1zm3 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"/></svg>',typescript:'<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 16 16"><path fill="#0288d1" d="M2 2v12h12V2zm4 6h3v1H8v4H7V9H6zm5 0h2v1h-2v1h1a1.003 1.003 0 0 1 1 1v1a1.003 1.003 0 0 1-1 1h-2v-1h2v-1h-1a1.003 1.003 0 0 1-1-1V9a1.003 1.003 0 0 1 1-1"/></svg>',jsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#00bcd4" d="M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"/><path fill="#00bcd4" d="M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"/><path fill="#00bcd4" d="M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"/><path fill="#00bcd4" d="M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"/></svg>',tsx:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M16 12c7.444 0 12 2.59 12 4s-4.556 4-12 4-12-2.59-12-4 4.556-4 12-4m0-2c-7.732 0-14 2.686-14 6s6.268 6 14 6 14-2.686 14-6-6.268-6-14-6"/><path fill="#0288d1" d="M16 14a2 2 0 1 0 2 2 2 2 0 0 0-2-2"/><path fill="#0288d1" d="M10.458 5.507c2.017 0 5.937 3.177 9.006 8.493 3.722 6.447 3.757 11.687 2.536 12.392a.9.9 0 0 1-.457.1c-2.017 0-5.938-3.176-9.007-8.492C8.814 11.553 8.779 6.313 10 5.608a.9.9 0 0 1 .458-.1m-.001-2A2.87 2.87 0 0 0 9 3.875C6.13 5.532 6.938 12.304 10.804 19c3.284 5.69 7.72 9.493 10.74 9.493A2.87 2.87 0 0 0 23 28.124c2.87-1.656 2.062-8.428-1.804-15.124-3.284-5.69-7.72-9.493-10.74-9.493Z"/><path fill="#0288d1" d="M21.543 5.507a.9.9 0 0 1 .457.1c1.221.706 1.186 5.946-2.536 12.393-3.07 5.316-6.99 8.493-9.007 8.493a.9.9 0 0 1-.457-.1C8.779 25.686 8.814 20.446 12.536 14c3.07-5.316 6.99-8.493 9.007-8.493m0-2c-3.02 0-7.455 3.804-10.74 9.493C6.939 19.696 6.13 26.468 9 28.124a2.87 2.87 0 0 0 1.457.369c3.02 0 7.455-3.804 10.74-9.493C25.061 12.304 25.87 5.532 23 3.876a2.87 2.87 0 0 0-1.457-.369"/></svg>',html:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#e65100" d="m4 4 2 22 10 2 10-2 2-22Zm19.72 7H11.28l.29 3h11.86l-.802 9.335L15.99 25l-6.635-1.646L8.93 19h3.02l.19 2 3.86.77 3.84-.77.29-4H8.84L8 8h16Z"/></svg>',css:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#7e57c2" d="M20 18h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 20 22h2v2h2v-2c0-.388-.562-.851-1.254-1.034C20.356 20.34 20 18.84 20 18m-3.254 2.966C14.356 20.34 14 18.84 14 18h-2v-2h-2v8h2v-2h4v2h2v-2c0-.388-.562-.851-1.254-1.034"/><path fill="#7e57c2" d="M24 4H4v20a4 4 0 0 0 4 4h16.16A3.84 3.84 0 0 0 28 24.16V8a4 4 0 0 0-4-4m2 14h-2v-2h-2v2c0 .193 0 .703 1.254 1.033A3.345 3.345 0 0 1 26 22v2a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2 2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2 2 2 0 0 1 2-2h2a2 2 0 0 1 2 2Z"/></svg>',scss:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ec407a" d="M27.837 5.673a4.33 4.33 0 0 0-2.293-2.701c-2.362-1.261-6.11-1.298-9.548-.092a26.3 26.3 0 0 0-8.76 4.966c-2.752 2.542-3.438 4.925-3.189 6.194.523 2.668 3.274 4.539 5.485 6.042.418.284.822.559 1.175.816-1.429.76-4.261 2.444-5.088 4.248a3.88 3.88 0 0 0-.118 3.332A2.37 2.37 0 0 0 6.869 29.8a5.6 5.6 0 0 0 1.49.2 6.35 6.35 0 0 0 5.19-2.856 6.74 6.74 0 0 0 .864-5.382 7.3 7.3 0 0 1 2.044-.03 3.92 3.92 0 0 1 2.816 1.311 1.82 1.82 0 0 1 .423 1.262 1.55 1.55 0 0 1-.772 1.05c-.234.14-.586.355-.504.803.036.194.198.633.894.512a2.93 2.93 0 0 0 2.145-2.651 4 4 0 0 0-1.197-2.904 5.94 5.94 0 0 0-4.396-1.626 10.6 10.6 0 0 0-2.672.304 20 20 0 0 0-2.203-1.846c-1.712-1.3-3.33-2.529-3.235-4.26.125-2.263 2.468-4.532 6.964-6.744 4.016-1.976 7.254-2.037 8.944-1.438a2 2 0 0 1 1.204.883 2.77 2.77 0 0 1-.36 2.47 9.71 9.71 0 0 1-7.425 4.304 3.86 3.86 0 0 1-3.238-.757c-.278-.302-.593-.645-1.074-.383q-.565.31-.225 1.189a3.9 3.9 0 0 0 2.407 1.92 11.7 11.7 0 0 0 7.128-.671c3.527-1.35 6.681-5.202 5.756-8.787M11.895 24.475a4 4 0 0 1-.192.468 4.5 4.5 0 0 1-.753 1.081 2.83 2.83 0 0 1-2.533 1.107c-.056-.032-.078-.146-.085-.193a3.28 3.28 0 0 1 1.076-2.284 11.3 11.3 0 0 1 2.644-1.933 3.85 3.85 0 0 1-.157 1.754"/></svg>',json:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path fill="#f9a825" d="M560-160v-80h120q17 0 28.5-11.5T720-280v-80q0-38 22-69t58-44v-14q-36-13-58-44t-22-69v-80q0-17-11.5-28.5T680-720H560v-80h120q50 0 85 35t35 85v80q0 17 11.5 28.5T840-560h40v160h-40q-17 0-28.5 11.5T800-360v80q0 50-35 85t-85 35zm-280 0q-50 0-85-35t-35-85v-80q0-17-11.5-28.5T120-400H80v-160h40q17 0 28.5-11.5T160-600v-80q0-50 35-85t85-35h120v80H280q-17 0-28.5 11.5T240-680v80q0 38-22 69t-58 44v14q36 13 58 44t22 69v80q0 17 11.5 28.5T280-240h120v80z"/></svg>',python:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#0288d1" d="M9.86 2A2.86 2.86 0 0 0 7 4.86v1.68h4.29c.39 0 .71.57.71.96H4.86A2.86 2.86 0 0 0 2 10.36v3.781a2.86 2.86 0 0 0 2.86 2.86h1.18v-2.68a2.85 2.85 0 0 1 2.85-2.86h5.25c1.58 0 2.86-1.271 2.86-2.851V4.86A2.86 2.86 0 0 0 14.14 2zm-.72 1.61c.4 0 .72.12.72.71s-.32.891-.72.891c-.39 0-.71-.3-.71-.89s.32-.711.71-.711"/><path fill="#fdd835" d="M17.959 7v2.68a2.85 2.85 0 0 1-2.85 2.859H9.86A2.85 2.85 0 0 0 7 15.389v3.75a2.86 2.86 0 0 0 2.86 2.86h4.28A2.86 2.86 0 0 0 17 19.14v-1.68h-4.291c-.39 0-.709-.57-.709-.96h7.14A2.86 2.86 0 0 0 22 13.64V9.86A2.86 2.86 0 0 0 19.14 7zM8.32 11.513l-.004.004.038-.004zm6.54 7.276c.39 0 .71.3.71.89a.71.71 0 0 1-.71.71c-.4 0-.72-.12-.72-.71s.32-.89.72-.89"/></svg>',ruby:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#f44336" d="M18.041 3.177c2.24.382 2.879 1.919 2.843 3.527V6.67l-1.013 13.266-13.132.897h.008c-1.093-.044-3.518-.151-3.634-3.545l1.217-2.222 2.462 5.74 2.097-6.77-.045.009.018-.018 6.85 2.186L13.945 9.3l6.53-.409-5.144-4.212 2.71-1.51v.009M3.113 17.252v.017zM6.916 6.874c2.63-2.622 6.033-4.168 7.34-2.844 1.297 1.306-.072 4.523-2.702 7.135-2.666 2.613-6.015 4.248-7.322 2.933-1.306-1.324.036-4.612 2.675-7.224z"/></svg>',go:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#00acc1" d="M2 12h4v2H2zm-2 4h6v2H0zm4 4h2v2H4zm16.954-5H14v3h3.239a4.42 4.42 0 0 1-3.531 2 2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 15.292 13a2.73 2.73 0 0 1 1.749.584l2.962-1.185A5.6 5.6 0 0 0 15.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 6.4 6.4 0 0 0 .003-1.5"/><path fill="#00acc1" d="M26.292 10a7.526 7.526 0 0 0-7.243 6.5 5.614 5.614 0 0 0 5.659 6.5 7.526 7.526 0 0 0 7.243-6.5 5.614 5.614 0 0 0-5.659-6.5m2.681 6.137A4.515 4.515 0 0 1 24.708 20a2.65 2.65 0 0 1-2.053-.858 2.86 2.86 0 0 1-.628-2.28A4.515 4.515 0 0 1 26.292 13a2.65 2.65 0 0 1 2.053.858 2.86 2.86 0 0 1 .628 2.28Z"/></svg>',java:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#f44336" d="M4 26h24v2H4zM28 4H7a1 1 0 0 0-1 1v13a4 4 0 0 0 4 4h10a4 4 0 0 0 4-4v-4h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2m0 8h-4V6h4Z"/></svg>',kotlin:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><defs><linearGradient id="a" x1="1.725" x2="22.185" y1="22.67" y2="1.982" gradientTransform="translate(1.306 1.129)scale(.89324)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#7c4dff"/><stop offset=".5" stop-color="#d500f9"/><stop offset="1" stop-color="#ef5350"/></linearGradient></defs><path fill="url(#a)" d="M2.975 2.976v18.048h18.05v-.03l-4.478-4.511-4.48-4.515 4.48-4.515 4.443-4.477z"/></svg>',c:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M19.563 22A5.57 5.57 0 0 1 14 16.437v-2.873A5.57 5.57 0 0 1 19.563 8H24V2h-4.437A11.563 11.563 0 0 0 8 13.563v2.873A11.564 11.564 0 0 0 19.563 28H24v-6Z"/></svg>',cpp:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#0288d1" d="M28 14v-4h-2v4h-6v-4h-2v4h-4v2h4v4h2v-4h6v4h2v-4h4v-2z"/><path fill="#0288d1" d="M13.563 22A5.57 5.57 0 0 1 8 16.437v-2.873A5.57 5.57 0 0 1 13.563 8H18V2h-4.437A11.563 11.563 0 0 0 2 13.563v2.873A11.564 11.564 0 0 0 13.563 28H18v-6Z"/></svg>',cs:O9,csharp:O9,php:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#1e88e5" d="M12 18.08c-6.63 0-12-2.72-12-6.08s5.37-6.08 12-6.08S24 8.64 24 12s-5.37 6.08-12 6.08m-5.19-7.95c.54 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.58 1.09q-.42.33-1.29.33h-.87l.53-2.76zm-3.5 5.55h1.44l.34-1.75h1.23c.54 0 .98-.06 1.33-.17.35-.12.67-.31.96-.58.24-.22.43-.46.58-.73.15-.26.26-.56.31-.88.16-.78.05-1.39-.33-1.82-.39-.44-.99-.65-1.82-.65H4.59zm7.25-8.33-1.28 6.58h1.42l.74-3.77h1.14c.36 0 .6.06.71.18s.13.34.07.66l-.57 2.93h1.45l.59-3.07c.13-.62.03-1.07-.27-1.36-.3-.27-.85-.4-1.65-.4h-1.27L12 7.35zM18 10.13c.55 0 .91.1 1.09.31.18.2.22.56.13 1.03-.1.53-.29.87-.57 1.09-.29.22-.72.33-1.3.33h-.85l.5-2.76zm-3.5 5.55h1.44l.34-1.75h1.22c.55 0 1-.06 1.35-.17.35-.12.65-.31.95-.58.24-.22.44-.46.58-.73.15-.26.26-.56.32-.88.15-.78.04-1.39-.34-1.82-.36-.44-.99-.65-1.82-.65h-2.75z"/></svg>',shell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ff7043" d="M2 2a1 1 0 0 0-1 1v10c0 .554.446 1 1 1h12c.554 0 1-.446 1-1V3a1 1 0 0 0-1-1zm0 3h12v8H2zm1 2 2 2-2 2 1 1 3-3-3-3zm5 3.5V12h5v-1.5z"/></svg>',powershell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#03a9f4" d="M29.07 6H7.677A1.535 1.535 0 0 0 6.24 7.113l-4.2 17.774A.852.852 0 0 0 2.93 26h21.393a1.535 1.535 0 0 0 1.436-1.113L29.96 7.112A.852.852 0 0 0 29.07 6M8.626 23.797a1.4 1.4 0 0 1-1.814-.31l-.007-.009a1.075 1.075 0 0 1 .315-1.599l9.6-6.061-6.102-5.852-.01-.01a1.068 1.068 0 0 1 .084-1.625l.037-.03a1.38 1.38 0 0 1 1.8.07l7.233 6.957a1.1 1.1 0 0 1 .236.739 1.08 1.08 0 0 1-.412.79c-.074.04-.146.119-10.951 6.935ZM24 22.94A1.135 1.135 0 0 1 22.803 24h-5.634a1.061 1.061 0 1 1 .001-2.112h5.633A1.134 1.134 0 0 1 24 22.938Z"/></svg>',sql:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ffca28" d="M16 24c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-8c-5.525 0-10-.9-10-2v4c0 1.1 4.475 2 10 2s10-.9 10-2v-4c0 1.1-4.475 2-10 2m0-12C10.477 4 6 4.895 6 6v4c0 1.1 4.475 2 10 2s10-.9 10-2V6c0-1.105-4.477-2-10-2"/></svg>',yaml:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#ff5252" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12c0 1.1-.9 2-2 2H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2m12 16v-2H9v2zm-4-4v-2H6v2z"/></svg>',markdown:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#42a5f5" d="m14 10-4 3.5L6 10H4v12h4v-6l2 2 2-2v6h4V10zm12 6v-6h-4v6h-4l6 8 6-8z"/></svg>',xml:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#8bc34a" d="M13 9h5.5L13 3.5zM6 2h8l6 6v12a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.11.89-2 2-2m.12 13.5 3.74 3.74 1.42-1.41-2.33-2.33 2.33-2.33-1.42-1.41zm11.16 0-3.74-3.74-1.42 1.41 2.33 2.33-2.33 2.33 1.42 1.41z"/></svg>',rust:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#ff7043" d="m30 12-4-2V6h-4l-2-4-4 2-4-2-2 4H6v4l-4 2 2 4-2 4 4 2v4h4l2 4 4-2 4 2 2-4h4v-4l4-2-2-4ZM6 16a9.9 9.9 0 0 1 .842-4H10v8H6.842A9.9 9.9 0 0 1 6 16m10 10a9.98 9.98 0 0 1-7.978-4H16v-2h-2v-2h4c.819.819.297 2.308 1.179 3.37a1.89 1.89 0 0 0 1.46.63h3.34A9.98 9.98 0 0 1 16 26m-2-12v-2h4a1 1 0 0 1 0 2Zm11.158 6H24a2.006 2.006 0 0 1-2-2 2 2 0 0 0-2-2 3 3 0 0 0 3-3q0-.08-.004-.161A3.115 3.115 0 0 0 19.83 10H8.022a9.986 9.986 0 0 1 17.136 10"/></svg>',vue:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="#41b883" d="M1.791 3.851 12 21.471 22.209 3.936V3.85H18.24l-6.18 10.616L5.906 3.851z"/><path fill="#35495e" d="m5.907 3.851 6.152 10.617L18.24 3.851h-3.723L12.084 8.03 9.66 3.85z"/></svg>',mermaid:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="#42a5f5" d="m14 10-4 3.5L6 10H4v12h4v-6l2 2 2-2v6h4V10zm12 6v-6h-4v6h-4l6 8 6-8z"/></svg>'},fallback:'<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="#ff7043" d="M2 2a1 1 0 0 0-1 1v10c0 .554.446 1 1 1h12c.554 0 1-.446 1-1V3a1 1 0 0 0-1-1zm0 3h12v8H2zm1 2 2 2-2 2 1 1 3-3-3-3zm5 3.5V12h5v-1.5z"/></svg>',loadExtended:()=>Sa(()=>import("./extended-p72mFE2C.js"),[]).then(e=>e.materialExtendedMap)},WLe=gi(0);E3=()=>{WLe.value++},ULe(jLe);const KLe={"":"",javascript:"javascript",js:"javascript",mjs:"javascript",cjs:"javascript",typescript:"typescript",ts:"typescript",jsx:"jsx",tsx:"tsx",golang:"go",py:"python",rb:"ruby",sh:"shell",bash:"shell",zsh:"shell",shellscript:"shell",bat:"shell",batch:"shell",ps1:"powershell",plaintext:"plain",text:"plain",txt:"plain","c++":"cpp","c#":"csharp",cs:"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function _A(e){var t;const n=(function(s){if(!s)return"";const o=s.trim();if(!o)return"";const[a]=o.split(/\s+/),[r]=a.split(":");return r.toLowerCase()})(e);return(t=KLe[n])!=null?t:n}function z7t(e){const t=_A(e);if(!t)return"plaintext";switch(t){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";case"objectivec":return"objective-c";case"objectivecpp":return"objective-cpp";default:return t}}function U7t(e){return HLe(_A(e))||VLe()}const D9={js:"JavaScript",javascript:"JavaScript",ts:"TypeScript",jsx:"JSX",tsx:"TSX",html:"HTML",css:"CSS",scss:"SCSS",json:"JSON",py:"Python",python:"Python",rb:"Ruby",go:"Go",java:"Java",c:"C",cpp:"C++",cs:"C#",csharp:"C#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown",d2:"D2",d2lang:"D2","":"Plain Text",plain:"Plain Text"};var IA=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});let Sc=null,Ag=!1,Cg=null,AA=cR;function sw(e){var t;const n=(t=e?.default)!=null?t:e;return n&&typeof n.renderToString=="function"?n:null}function lR(){try{const e=globalThis;return sw(e?.katex)}catch{return null}}function cR(){return IA(null,null,function*(){const e=lR();if(e)return e;const t=yield Sa(()=>Promise.resolve().then(()=>I8e),void 0);try{yield Sa(()=>import("./mhchem-CEGuP5Ts.js"),__vite__mapDeps([2,3,0,1]))}catch{}return sw(t)})}function XQ(e){const t=Promise.resolve(e).then(n=>{var s;return Cg===t&&n?(Sc=(s=sw(n))!=null?s:n,Sc):null}).catch(()=>null).finally(()=>{Cg===t&&(Cg=null)});return Cg=t,Ag=!0,t}function GLe(e){AA=e,Sc=null,Ag=!1,Cg=null}function YLe(e){GLe(cR)}function JQ(){return typeof AA=="function"}function H7t(){var e;const t=AA;if(!t||t===cR)return null;if(Sc)return Sc;const n=lR();if(n)return Sc=n,Sc;if(Ag)return null;try{const s=t();return s?typeof s?.then=="function"?(XQ(s),null):(Sc=(e=sw(s))!=null?e:s,Sc):null}catch{return null}}function eZ(){return IA(this,null,function*(){var e;const t=lR();if(t)return Sc=t,Sc;if(Sc)return Sc;if(Cg)return Cg;if(Ag)return null;const n=AA;if(!n)return Ag=!0,null;try{const s=n();if(typeof s?.then=="function")return XQ(s);if(s)return Sc=(e=sw(s))!=null?e:s,Ag=!0,Sc}catch{}return Ag=!0,null})}function tZ(e){return e?e.replace(/·/g,"⋅").replace(/℃/g,"°C"):""}let Wv=null;const T3=new Map,Ay=new Map;let N3=5;const tb=new Set;function nZ(){if(T3.size<N3&&tb.size){let e=N3-T3.size;for(const t of Array.from(tb)){if(e<=0)break;tb.delete(t),e--;try{t()}catch{}}}}function QLe(e,t=!0,n=2e3,s){return IA(this,null,function*(){performance.now();const o=tZ(e);if(!JQ()){const l=new Error("KaTeX rendering disabled");return l.name="KaTeXDisabled",l.code="KATEX_DISABLED",Promise.reject(l)}if(Wv)return Promise.reject(Wv);const a=`${t?"d":"i"}:${o}`,r=Ay.get(a);return r?(nZ(),Promise.resolve(r)):(Wv=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Wv.name="WorkerInitError",Wv.code="WORKER_INIT_ERROR",Promise.reject(Wv))})}function V7t(e,t=!0,n){const s=`${t?"d":"i"}:${tZ(e)}`;if(Ay.set(s,n),Ay.size>200){const o=Ay.keys().next().value;Ay.delete(o)}}const ZLe="WORKER_BUSY";function XLe(e=2e3,t){return T3.size<N3?Promise.resolve():new Promise((n,s)=>{let o,a=!1,r=null,l=()=>{};const c=()=>{o&&globalThis.clearTimeout(o),tb.delete(l),t&&r&&t.removeEventListener("abort",r),r=null};l=()=>{a||(a=!0,c(),n())},tb.add(l),o=globalThis.setTimeout(()=>{if(a)return;a=!0,c();const u=new Error("Wait for worker slot timed out");u.name="WorkerBusyTimeout",u.code="WORKER_BUSY_TIMEOUT",s(u)},e),queueMicrotask(()=>nZ()),t&&(r=()=>{if(a)return;a=!0,c();const u=new Error("Aborted");u.name="AbortError",s(u)},t.aborted?r():t.addEventListener("abort",r,{once:!0}))})}const ly={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function q7t(e){return IA(this,arguments,function*(t,n=!0,s={}){var o,a,r,l;if(!JQ()){const k=new Error("KaTeX rendering disabled");throw k.name="KaTeXDisabled",k.code="KATEX_DISABLED",k}const c=(o=s.timeout)!=null?o:ly.timeout,u=(a=s.waitTimeout)!=null?a:ly.waitTimeout,p=(r=s.backoffMs)!=null?r:ly.backoffMs,g=(l=s.maxRetries)!=null?l:ly.maxRetries,y=Number.isFinite(g)?Math.max(0,Math.min(Math.floor(g),8)):ly.maxRetries,v=s.signal;let w=0;for(;;){if(v?.aborted){const k=new Error("Aborted");throw k.name="AbortError",k}try{return yield QLe(t,n,c,v)}catch(k){if(k?.code!==ZLe||w>=y)throw k;if(w++,yield XLe(u,v).catch(()=>{}),v?.aborted){const A=new Error("Aborted");throw A.name="AbortError",A}p>0&&(yield new Promise(A=>globalThis.setTimeout(A,p*w)))}}})}function g0(e){const t=typeof e=="number"?e:Number.parseFloat(String(e??""));return Number.isFinite(t)&&t>0?t:null}function JLe(e){var t;for(const n of e.split(/\r?\n/)){const s=n.trim();if(!s||s.startsWith("%%"))continue;const o=s.match(/^([A-Z][\w-]*)\b/i);return((t=o?.[1])==null?void 0:t.toLowerCase())||""}return""}function cI(e){const t=e.split(/\r?\n/).map(o=>o.trim()).filter(o=>o&&!o.startsWith("%%")),n=Math.max(1,t.length),s=JLe(e);return s==="gantt"?220+28*n:s==="sequencediagram"?180+26*n:s==="classdiagram"||s==="statediagram"||s==="erdiagram"?180+24*n:s==="flowchart"||s==="graph"?170+28*n:200+22*n}function uI(e){const t=e.split(/\r?\n/).filter(n=>/^\s*-\s+/.test(n)).length;return t>=3?500:t>0?280+60*t:360}function sZ(e,t=360,n=500){return n==null?Math.max(t,e):Math.min(Math.max(t,e),n)}function dI(e,t=360,n=500){return sZ(e,t,n)}function pI(e,t=360,n=500){return sZ(e,t,n)}var eBe=Object.defineProperty,tBe=Object.defineProperties,nBe=Object.getOwnPropertyDescriptors,L9=Object.getOwnPropertySymbols,sBe=Object.prototype.hasOwnProperty,oBe=Object.prototype.propertyIsEnumerable,B9=(e,t,n)=>t in e?eBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oZ=(e,t)=>{for(var n in t||(t={}))sBe.call(t,n)&&B9(e,n,t[n]);if(L9)for(var n of L9(t))oBe.call(t,n)&&B9(e,n,t[n]);return e},F9=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const fI=()=>Sa(()=>import("./mermaid.core-C59XQJ8w.js").then(e=>e.aJ),[]);let zf=null,v0=fI,Cy=null,R3=!1,M3=!1,xy=0;function iBe(e){v0=e,xy++,zf=null,Cy=null,R3=!1,M3=!1}function aBe(e){iBe(fI)}function z9(){return typeof v0=="function"}function U9(e){if(!e)return e;const t=e&&e.default?e.default:e;if(t&&(typeof t.render=="function"||typeof t.parse=="function"||typeof t.initialize=="function"))return t;if(t&&t.mermaidAPI&&(typeof t.mermaidAPI.render=="function"||typeof t.mermaidAPI.parse=="function")){const o=t.mermaidAPI;return n=oZ({},t),s={render:o.render.bind(o),parse:o.parse?o.parse.bind(o):void 0,initialize:a=>typeof t.initialize=="function"?t.initialize(a):o.initialize?o.initialize(a):void 0},tBe(n,nBe(s))}var n,s;return e.mermaid&&typeof e.mermaid.render=="function"?e.mermaid:t}function H9(e){if(e)try{const t=e?.initialize;e.initialize=n=>{const s=oZ({suppressErrorRendering:!0},n||{});return typeof t=="function"?t.call(e,s):e?.mermaidAPI&&typeof e.mermaidAPI.initialize=="function"?e.mermaidAPI.initialize(s):void 0}}catch{}}function j7t(){return F9(this,null,function*(){if(zf)return zf;const e=(function(){try{const s=globalThis;return U9(s?.mermaid)}catch{return null}})();if(e)return zf=e,H9(zf),zf;const t=v0,n=xy;return t?t===fI&&R3?null:Cy||(Cy=F9(null,null,function*(){let s;try{s=yield t()}catch(o){if(t===fI)return n===xy&&t===v0&&(R3=!0,(function(a){M3||(M3=!0,console.warn('[markstream-vue] Optional dependency "mermaid" is not installed. Mermaid blocks will render as source.',a))})(o)),null;throw o}finally{n===xy&&t===v0&&(Cy=null)}return n!==xy||t!==v0?null:s?(zf=U9(s),H9(zf),zf):null}),Cy):null})}let Kv=null;const Gv=new Map,V9="MERMAID_DISABLED";function iZ(e,t,n,s){if(!z9()){const r=new Error("Mermaid rendering disabled");return r.name="MermaidDisabled",r.code=V9,Promise.reject(r)}const o=`${e}\0${t.theme}\0${n}\0${t.code}`;let a=Gv.get(o);return a||(a=(function(r,l,c=1400){if(!z9()){const u=new Error("Mermaid rendering disabled");return u.name="MermaidDisabled",u.code=V9,Promise.reject(u)}return Kv||(Kv=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Kv.name="WorkerInitError",Kv.code="WORKER_INIT_ERROR"),Promise.reject(Kv)})(e,t,n),Gv.set(o,a),a.then(()=>{Gv.get(o)===a&&Gv.delete(o)},()=>{Gv.get(o)===a&&Gv.delete(o)})),(function(r,l){if(!l)return r;if(l.aborted){const c=new Error("Aborted");return c.name="AbortError",Promise.reject(c)}return new Promise((c,u)=>{let p=()=>{};const g=()=>l.removeEventListener("abort",p);p=()=>{g();const y=new Error("Aborted");y.name="AbortError",u(y)},l.addEventListener("abort",p,{once:!0}),r.then(y=>{g(),c(y)},y=>{g(),u(y)})})})(a,s)}function W7t(e,t,n=1400,s){return iZ("canParse",{code:e,theme:t},n,s)}function K7t(e,t,n=1400,s){return iZ("findPrefix",{code:e,theme:t},n,s)}var rBe=Object.defineProperty,lBe=Object.defineProperties,cBe=Object.getOwnPropertyDescriptors,q9=Object.getOwnPropertySymbols,uBe=Object.prototype.hasOwnProperty,dBe=Object.prototype.propertyIsEnumerable,j9=(e,t,n)=>t in e?rBe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,En=(e,t)=>{for(var n in t||(t={}))uBe.call(t,n)&&j9(e,n,t[n]);if(q9)for(var n of q9(t))dBe.call(t,n)&&j9(e,n,t[n]);return e},Os=(e,t)=>lBe(e,cBe(t)),ta=(e,t,n)=>new Promise((s,o)=>{var a=c=>{try{l(n.next(c))}catch(u){o(u)}},r=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(a,r);l((n=n.apply(e,t)).next())});const pBe="__global__",Ux="__MARKSTREAM_VUE_CUSTOM_COMPONENTS_STORE__",mI=(()=>{const e=globalThis;if(e[Ux])return e[Ux];const t={scopedCustomComponents:{},revision:gi(0)};return e[Ux]=t,t})(),$3=mI.revision,fBe=Symbol("markstreamCustomComponents"),mBe=new Set(["text","paragraph","heading","code_block","list","list_item","blockquote","table","table_row","table_cell","definition_list","definition_item","footnote","footnote_reference","footnote_anchor","admonition","hardbreak","link","image","thematic_break","math_inline","math_block","strong","emphasis","strikethrough","highlight","insert","subscript","superscript","emoji","checkbox","checkbox_input","inline_code","html_inline","html_block","reference","mermaid","infographic","d2","vmr_container"]);function ow(e){return mBe.has(String(e).trim().toLowerCase())}function hBe(e){return e.trim().replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[_\s]+/g,"-").toLowerCase()}function w2(e={}){const t={};for(const[n,s]of Object.entries(e))if(s!=null){t[n]=s;for(const o of new Set([$d(n),$d(hBe(n))]))!o||ow(o)||Object.prototype.hasOwnProperty.call(t,o)||(t[o]=s)}return t}function gBe(e,t){mI.scopedCustomComponents[e]=w2(t||{}),$3.value++}function Kr(e){const t=uo(fBe,null);return E(()=>{var n;return $3.value,(function(s,o={}){return $3.value,En(En(En({},w2(mI.scopedCustomComponents[pBe]||{})),w2(o)),w2((function(a){return a&&mI.scopedCustomComponents[a]||{}})(s)))})(e?.(),(n=t?.value)!=null?n:{})})}const vBe=["aria-label"],yBe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-unchecked"},bBe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",class:"checkbox-icon checkbox-checked"},bi=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Hu=bi(st({__name:"CheckboxNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("span",{class:"checkbox-node",role:"img","aria-label":e.node.checked?"checked":"unchecked"},[e.node.checked?(h(),C("svg",bBe,[...n[1]||(n[1]=[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",fill:"currentColor"},null,-1),d("path",{d:"M9 12l2 2 4-4",stroke:"hsl(var(--ms-background))","stroke-width":"2.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])])):(h(),C("svg",yBe,[...n[0]||(n[0]=[d("rect",{x:"3",y:"3",width:"18",height:"18",rx:"4",stroke:"currentColor","stroke-width":"2"},null,-1)])]))],8,vBe))}),[["__scopeId","data-v-be21ab83"]]);Hu.install=e=>{e.component(Hu.__name,Hu)};const kBe={class:"emoji-node"},pu=bi(st({__name:"EmojiNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("span",kBe,f(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);pu.install=e=>{e.component(pu.__name,pu)};const wBe=["id"],SBe=["title"],Vu=bi(st({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const t=`#fnref--${e.node.id}`;function n(){if(typeof document>"u")return;const s=document.querySelector(t);s?s.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${t} not found`)}return(s,o)=>(h(),C("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:n},[d("span",{href:t,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+f(e.node.id)+"]",9,SBe)],8,wBe))}}),[["__scopeId","data-v-c1463a29"]]);Vu.install=e=>{e.component(Vu.__name,Vu)};const aZ=(()=>{try{return!1}catch{}return!1})();function Hx(e){aZ&&console.warn(e)}function W9(e,t="safe",n){return aR(e,t,n)}function rZ(e){return aLe(e)}function Vx(e){return e===!0?"":e===!1?"false":e==null?null:String(e)}function uR(e,t="safe"){const n=String(e.tag||e.type||"").trim(),s=k2((o=e.attrs)?Array.isArray(o)?o.every(Array.isArray)?o.map(([r,l])=>[String(r),Vx(l)]):o.filter(r=>r&&typeof r=="object"&&!Array.isArray(r)&&"name"in r).map(r=>[String(r.name),Vx(r.value)]):Object.entries(o).map(([r,l])=>[r,Vx(l)]):null,t,n);var o;if(!s)return;const a=rZ(eb(s));return Object.keys(a).length>0?a:void 0}function K9(e,t,n=!1){const s=Object.entries(t??{}),o=s.length>0?s.map(([a,r])=>r===""?` ${a}`:` ${a}="${r}"`).join(""):"";return n?`<${e}${o} />`:`<${e}${o}>`}function cy(e,t){Array.isArray(t)?e.push(...t):t!=null&&e.push(t)}function qx(e,t,n,s,o,a,r=!1){const l=(function(g,y){return qQ(g,y)})(e,s);if(ew.has(e.toLowerCase())||!l&&zQ(e,a))return null;if(!l&&iR(e,a))return r?[K9(e,t,!0)]:[K9(e,t),...n,`</${e}>`];const c=aR(t,a,e),u=c.key,p=u!=null&&u!==""?u:o;if(l){const g=s[e]||s[e.toLowerCase()],y=rZ(c);return jn(g,Os(En({},y),{key:p}),n.length>0?n:void 0)}return jn(e,Os(En({},c),{innerHTML:void 0,key:p}),n.length>0?n:void 0)}function lZ(e,t){return cLe(e,t)}function hI(e,t,n="safe"){if(!e)return[];try{return(function(a,r,l="safe"){let c=0;const u=[],p=[];for(const g of a)if(g.type==="text")(u.length>0?u[u.length-1].children:p).push(g.content);else if(g.type==="self_closing"){const y=qx(g.tagName,g.attrs||{},[],r,"ms-html-"+c++,l,!0);cy(u.length>0?u[u.length-1].children:p,y)}else if(g.type==="tag_open")u.push({tagName:g.tagName,children:[],attrs:g.attrs,autoKey:"ms-html-"+c++});else if(g.type==="tag_close"){const y=g.tagName.toLowerCase();let v=-1;for(let w=u.length-1;w>=0;w--)if(u[w].tagName.toLowerCase()===y){v=w;break}if(v!==-1)for(;u.length>v;){const w=u.pop(),k=qx(w.tagName,w.attrs||{},w.children,r,w.autoKey,l);u.length>0?cy(u[u.length-1].children,k):cy(p,k),w.tagName.toLowerCase()!==y&&u.length>v&&Hx(`Auto-closing unclosed tag: <${w.tagName}>`)}else Hx(`Ignoring closing tag with no matching opening tag: </${g.tagName}>`)}for(;u.length>0;){const g=u.pop(),y=qx(g.tagName,g.attrs||{},g.children,r,g.autoKey,l);u.length>0?cy(u[u.length-1].children,y):cy(p,y),Hx(`Auto-closing unclosed tag: <${g.tagName}>`)}return p})(jQ(e),t,n)}catch(o){return s=o,aZ&&console.error("Failed to parse HTML to VNodes:",s),null}var s}const _Be=["innerHTML"],qu=bi(st({__name:"HtmlInlineNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=uo("markstreamHtmlPolicy",void 0),s=E(()=>{var l,c;return(c=(l=t.htmlPolicy)!=null?l:n?.value)!=null?c:"safe"}),o=Kr(()=>t.customId),a=st({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),r=E(()=>{const l=t.node.content;if(!l)return{mode:"html",content:""};if(s.value==="escape")return{mode:"html",content:L0(l,s.value)};if(t.node.loading&&!t.node.autoClosed)return{mode:"text",content:l};if(t.node.loading&&t.node.autoClosed){const u=hI(l,o.value,s.value);if(u!==null)return{mode:"dynamic",nodes:u}}if(!lZ(l,o.value))return{mode:"html",content:L0(l,s.value)};const c=hI(l,o.value,s.value);return c===null?{mode:"html",content:L0(l,s.value)}:{mode:"dynamic",nodes:c}});return(l,c)=>r.value.mode==="dynamic"?(h(),C("span",{key:0,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},[m(i(a),{nodes:r.value.nodes},null,8,["nodes"])],2)):r.value.mode==="text"?(h(),C("span",{key:1,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}])},f(r.value.content),3)):(h(),C("span",{key:2,class:At(["html-inline-node",{"html-inline-node--loading":t.node.loading}]),innerHTML:r.value.content},null,10,_Be))}}),[["__scopeId","data-v-d17f12b0"]]);qu.install=e=>{e.component(qu.__name,qu)};const IBe={class:"inline-code"},ABe={key:0},tc=bi(st({__name:"InlineCodeNode",props:{node:{}},setup(e){const t=e,n=Ah(),s=uo("markstreamFade",void 0),o=uo("markstreamTextStreamState",void 0),a=uo("markstreamStreamVersion",void 0),r=E(()=>{const S=n.fade;return S===""||S===!0||S==="true"||S!==!1&&S!=="false"&&void 0}),l=E(()=>typeof r.value=="boolean"?r.value:typeof s?.value!="boolean"||s.value),c=E(()=>{var S;return String((S=t.node.code)!=null?S:"")}),u=E(()=>!l.value),p=E(()=>{var S;const I=(S=n["index-key"])!=null?S:n.indexKey;return I==null||I===""?"":String(I)}),g=D(t.node.code),y=D("");let v=a?.value;const w=D(0);function k(){return g.value+y.value}function A(){y.value&&(g.value=k(),y.value="")}ze([()=>t.node.code,p,l,()=>a?.value],([S,I,x,T])=>{const R=String(S??""),M=p.value,$=T!==v;v=T;const O=YQ({nextContent:R,persistedContent:M?o?.get(M):void 0,currentState:{settledContent:g.value,streamedDelta:y.value},typewriterEnabled:l.value,streamRenderVersionChanged:$});g.value=O.settledContent,y.value=O.streamedDelta,O.appended&&(w.value+=1),M&&o?.set(M,R)},{immediate:!0}),ze(l,S=>{var I;S||(I=k(),g.value=I,y.value="")});const _=E(()=>w.value%2==0?"inline-code-stream-delta--a":"inline-code-stream-delta--b");return(S,I)=>(h(),C("code",IBe,[u.value?(h(),C(Me,{key:0},[j(f(c.value),1)],64)):(h(),C(Me,{key:1},[g.value?(h(),C("span",ABe,f(g.value),1)):W("",!0),y.value?(h(),C("span",{key:1,class:At(["inline-code-stream-delta",[_.value]]),onAnimationend:A},f(y.value),35)):W("",!0)],64))]))}}),[["__scopeId","data-v-9c5f6e69"]]);tc.install=e=>{e.component(tc.__name,tc)};const O3=D(!1),G9=D(""),Y9=D("top"),nb=D(null),sb=D(null),P3=D(null),D3=D(null),Q9=D(null);let S2=null,_2=null,L3=0;function cZ(){S2&&(clearTimeout(S2),S2=null),_2&&(clearTimeout(_2),_2=null)}let vS=!1,yS=null,Z9=!1;function CBe(e,t,n="top",s=!1,o,a){if(!e)return;const r=++L3;cZ();const l=()=>ta(null,null,function*(){var c,u;if(yield(function(){return ta(this,null,function*(){if(!vS&&!Z9&&typeof document<"u"){yS!=null||(yS=ta(null,null,function*(){const[{createApp:p,h:g},{default:y}]=yield Promise.all([Sa(()=>import("./ui-vendor-DlCfJccy.js").then(w=>w.bU),[]),Sa(()=>import("./Tooltip-CEGimxW1.js"),__vite__mapDeps([4,3,0,1]))]),v=document.createElement("div");v.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(v),p({setup:()=>()=>{var w;return g(y,{visible:O3.value,"anchor-el":nb.value,content:G9.value,placement:Y9.value,id:sb.value,originX:P3.value,originY:D3.value,isDark:(w=Q9.value)!=null?w:void 0})}}).mount(v),vS=!0}));try{yield yS}catch(p){vS=!1,yS=null,Z9=!0,console.warn("[markstream-vue] Failed to mount Tooltip component. Tooltips will be disabled.",p)}}})})(),vS&&r===L3){sb.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,nb.value=e,G9.value=t,Y9.value=n,P3.value=(c=o?.x)!=null?c:null,D3.value=(u=o?.y)!=null?u:null,Q9.value=typeof a=="boolean"?a:null,O3.value=!0;try{e.setAttribute("aria-describedby",sb.value)}catch{}}});s?l():S2=setTimeout(l,80)}function xBe(e=!1){L3+=1,cZ();const t=()=>{if(nb.value&&sb.value)try{nb.value.removeAttribute("aria-describedby")}catch{}O3.value=!1,nb.value=null,sb.value=null,P3.value=null,D3.value=null};e?t():_2=setTimeout(t,120)}const EBe={"common.copy":"Copy","common.copied":"Copied","common.decrease":"Decrease","common.reset":"Reset","common.increase":"Increase","common.expand":"Expand","common.collapse":"Collapse","common.preview":"Preview","common.source":"Source","common.export":"Export","common.open":"Open","common.minimize":"Minimize","common.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."},TBe=Symbol("markstreamI18nFallback");function uZ(e,t){var n;return(n=t?.[e])!=null?n:EBe[e]}const B3=(e,t)=>{var n;return(n=uZ(e,t))!=null?n:(function(s){return(s.split(".").pop()||s).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,o=>o.toUpperCase()).trim()})(e)};function X9(e,t){return{t(n){const s=uZ(n,t);if(e.te&&s!=null&&!e.te(n))return B3(n,t);const o=e.t(n);return o===n&&s!=null?B3(n,t):o}}}function NBe(){const e=(function(){var n,s,o;try{const a=Nd(),r=TBe,l=a?.provides,c=(n=a?.appContext)==null?void 0:n.provides;return(o=(s=l?.[r])!=null?s:c?.[r])!=null?o:null}catch{}return null})(),t=(function(){var n,s;try{const o=Nd(),a=o?.proxy,r=a?.$t;if(typeof r=="function"){const u=a?.$te;return{t:r.bind(a),te:typeof u=="function"?u.bind(a):void 0}}const l=(s=(n=o?.appContext)==null?void 0:n.config)==null?void 0:s.globalProperties,c=l?.$t;if(typeof c=="function"){const u=l?.$te;return{t:c.bind(l),te:typeof u=="function"?u.bind(l):void 0}}}catch{}return null})();if(t)return X9(t,e);try{const n=globalThis.$vueI18nUse||null;if(n&&typeof n=="function")try{const s=n();if(s&&typeof s.t=="function")return X9({t:s.t.bind(s),te:typeof s.te=="function"?s.te.bind(s):void 0},e)}catch{}}catch{}return{t:n=>B3(n,e)}}const dZ=Symbol("ViewportPriority"),pZ=Symbol("ViewportPriorityOptions"),fZ=Symbol("OffscreenHeavyNodeDeferral"),RBe=E(()=>!1),Jg="400px";function dR(){return uo(pZ,void 0)}function pR(){return uo(fZ,RBe)}function MBe(e,t){var n,s;const o=typeof window<"u"&&typeof document<"u",a=typeof t=="boolean"?D(t):t,r=o?(n=window.requestIdleCallback)!=null?n:M=>window.setTimeout(()=>M({didTimeout:!0,timeRemaining:()=>0}),16):null,l=o?(s=window.cancelIdleCallback)!=null?s:M=>window.clearTimeout(M):null,c=new WeakMap;let u=1;const p=new Map,g=new Map,y=new Set;let v=null,w=null;function k(M){if(!M)return"viewport";let $=c.get(M);return $||($=u++,c.set(M,$)),String($)}function A(){if(v!=null){try{l?.(v)}catch{}v=null}}function _(M){if(M){const $=p.get(M);if($&&!$.targets.size){try{$.io.disconnect()}catch{}p.delete(M)}}g.size||y.size||A()}function S(M){const $=g.get(M);if(!$)return;const O=p.get($.bucketKey);if(!$.visible.value){$.visible.value=!0;try{$.resolve()}catch{}}try{O?.io.unobserve(M)}catch{}O?.targets.delete(M),g.delete(M),y.delete(M),_($.bucketKey)}function I(){window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&r&&v==null&&y.size&&(v=r(()=>{v=null;const M=y.values().next().value;M&&(y.delete(M),S(M),y.size&&I())},{timeout:1200}))}function x(M,$){if(!o||typeof IntersectionObserver>"u")return null;const O=(function(U,L){var K,G,Q;return{root:(K=e?.(U??null))!=null?K:null,rootMargin:(G=L?.rootMargin)!=null?G:Jg,threshold:(Q=L?.threshold)!=null?Q:0}})(M,$),F=[k((B=O).root),B.rootMargin,B.threshold].join("\0");var B;const N=p.get(F);if(N)return{key:F,bucket:N};let z;try{z=new IntersectionObserver(U=>{for(const L of U)(L.isIntersecting||L.intersectionRatio>0)&&S(L.target)},{root:O.root,rootMargin:O.rootMargin,threshold:O.threshold})}catch{return null}const H={io:z,targets:new Map};return p.set(F,H),{key:F,bucket:H}}function T(){if(o&&a.value)for(const[M,$]of Array.from(g.entries())){const O=x(M,$.opts);if(!O){S(M);continue}if(O.key===$.bucketKey)continue;const F=$.bucketKey,B=p.get(F);try{B?.io.unobserve(M)}catch{}B?.targets.delete(M),$.bucketKey=O.key,O.bucket.targets.set(M,$),O.bucket.io.observe(M),_(F)}}ze(a,M=>{if(!M){for(const $ of Array.from(g.keys()))S($);A()}},{flush:"sync"});const R=(M,$)=>{const O=D(!1);let F,B=!1;const N=new Promise(L=>{F=()=>{B||(B=!0,L())}}),z=()=>{const L=g.get(M);if(!L)return y.delete(M),void _();const K=p.get(L.bucketKey);try{K?.io.unobserve(M)}catch{}K?.targets.delete(M),g.delete(M),y.delete(M),_(L.bucketKey)};if(!o||!a.value)return O.value=!0,F(),{isVisible:O,whenVisible:N,destroy:z};const H=x(M,$);if(!H)return O.value=!0,F(),{isVisible:O,whenVisible:N,destroy:z};const U={resolve:F,visible:O,bucketKey:H.key,opts:$};return g.set(M,U),H.bucket.targets.set(M,U),H.bucket.io.observe(M),o&&w==null&&(w=window.requestAnimationFrame(()=>{w=null,T()})),$?.allowIdle!==!1&&(y.add(M),I()),{isVisible:O,whenVisible:N,destroy:z}};return R.refresh=T,si(dZ,R),R}function fR(){var e,t;const n=uo(dZ,void 0);if(n)return n;const s=new WeakMap,o=new Map,a=new Set;let r=null;const l=typeof window<"u"?(e=window.requestIdleCallback)!=null?e:v=>window.setTimeout(()=>v({didTimeout:!0,timeRemaining:()=>0}),16):null,c=typeof window<"u"?(t=window.cancelIdleCallback)!=null?t:v=>window.clearTimeout(v):null,u=()=>{if(r!=null){try{c?.(r)}catch{}r=null}},p=v=>{if(!v)return;const w=o.get(v);if(w&&!w.targets.size){try{w.io.disconnect()}catch{}o.delete(v)}},g=v=>{const w=s.get(v);if(!w)return;const k=o.get(w.bucketKey);if(!w.visible.value){w.visible.value=!0;try{w.resolve()}catch{}}try{k?.io.unobserve(v)}catch{}s.delete(v),k?.targets.delete(v),a.delete(v),p(w.bucketKey),a.size||u()},y=()=>{window.__MARKSTREAM_DISABLE_VIEWPORT_PRIORITY_IDLE_DRAIN__!==!0&&l&&r==null&&a.size&&(r=l(()=>{r=null;const v=a.values().next().value;v&&(a.delete(v),g(v),a.size&&y())},{timeout:1200}))};return(v,w)=>{const k=D(!1);let A,_=!1;const S=new Promise(T=>{A=()=>{_||(_=!0,T())}}),I=()=>{const T=s.get(v);if(!T)return a.delete(v),void(a.size||u());const R=o.get(T.bucketKey);try{R?.io.unobserve(v)}catch{}s.delete(v),R?.targets.delete(v),a.delete(v),p(T.bucketKey),a.size||u()},x=(T=>{var R,M;if(typeof window>"u"||typeof IntersectionObserver>"u")return null;const $=(z=>{var H,U;return[(H=z?.rootMargin)!=null?H:Jg,(U=z?.threshold)!=null?U:0].join("\0")})(T),O=o.get($);if(O)return{key:$,bucket:O};const F=(R=T?.rootMargin)!=null?R:Jg;let B;try{B=new IntersectionObserver(z=>{for(const H of z)(H.isIntersecting||H.intersectionRatio>0)&&g(H.target)},{root:null,rootMargin:F,threshold:(M=T?.threshold)!=null?M:0})}catch{return null}const N={io:B,targets:new Set};return o.set($,N),{key:$,bucket:N}})(w);return x?(s.set(v,{resolve:A,visible:k,bucketKey:x.key}),x.bucket.targets.add(v),x.bucket.io.observe(v),w?.allowIdle!==!1&&(a.add(v),y()),{isVisible:k,whenVisible:S,destroy:I}):(k.value=!0,A(),{isVisible:k,whenVisible:S,destroy:I})}}function $Be(e,t){var n,s;const o=(s=(n=e.indexKey)!=null?n:t["index-key"])!=null?s:t.indexKey;return o==null||o===""?"":String(o)}const OBe=["data-markstream-viewport-pending"],PBe=["src","alt","title","loading","fetchpriority","decoding","tabindex","aria-label"],DBe={key:1,class:"image-placeholder"},LBe={key:1,class:"image-node__raw-text"},BBe={key:2,class:"image-shimmer-overlay"},FBe={key:1,class:"image-node__raw-text"},zBe={key:3,class:"image-error"},ih=bi(st({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},lazy:{type:Boolean,default:!1},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:t}){var n,s,o;const a=e,r=t,l=D(!1),c=D(!1),u=D(""),p=D("primary"),g=D(null),y=Ah(),v=uo(x3,null),w=fR(),k=dR(),A=pR(),_=E(()=>TD(a.node.src)),S=E(()=>TD(a.fallbackSrc)),I=(o=(s=(n=Nd())==null?void 0:n.vnode.el)==null?void 0:s.querySelector)==null?void 0:o.call(s,"img"),x=typeof window<"u"&&I?.getAttribute("src")===(_.value||S.value),T=D(typeof window>"u"||x||!A.value),R=gi(null);let M="",$=null;const O=E(()=>u.value),F=E(()=>!a.lazy),B=E(()=>typeof window<"u"&&A.value&&!x),N=E(()=>!B.value||T.value),z=E(()=>N.value?O.value:""),H=E(()=>{var Ce,Fe;return(Fe=(Ce=k?.value.heavyBlockMargin)!=null?Ce:k?.value.rootMargin)!=null?Fe:Jg}),U=E(()=>!a.node.loading&&p.value!=="failed"&&u.value.length>0),L=E(()=>p.value==="failed"),K=E(()=>(!F.value||B.value&&!T.value)&&!l.value&&!c.value&&p.value!=="failed"&&u.value.length>0),G=E(()=>$Be(a,y));function Q(Ce=G.value){Ce&&g.value&&v?.reportHeight(Ce,g.value.offsetHeight)}function J(Ce=G.value){Ce&&vn(()=>{Q(Ce)})}function ee(){$&&(clearTimeout($),$=null)}function ie(){const Ce=G.value;Ce&&M!==Ce&&(M&&v?.markSettled(M),ee(),M=Ce,v?.markPending(Ce),typeof window<"u"&&($=window.setTimeout(()=>{M===Ce&&(J(Ce),le())},8e3)))}function le(){return ta(this,null,function*(){const Ce=M;Ce&&(ee(),M="",yield vn(),Q(Ce),v?.markSettled(Ce))})}function oe(){if(p.value==="primary"&&S.value&&S.value!==u.value)return p.value="fallback",u.value=S.value,l.value=!1,c.value=!1,void J();p.value="failed",c.value=!0,r("error",u.value),J()}function ae(){l.value=!0,c.value=!1,r("load",O.value),J()}function te(Ce){Ce.preventDefault(),l.value&&!c.value&&r("click",[Ce,O.value])}const{t:Z}=NBe();return ze([_,S,()=>a.node.loading],()=>(l.value=!1,c.value=!1,a.node.loading||_.value?(u.value=_.value,void(p.value="primary")):S.value?(u.value=S.value,void(p.value="fallback")):(u.value="",p.value="failed",void(c.value=!0))),{immediate:!0}),typeof window<"u"&&ze([g,B],([Ce,Fe],Pe,fe)=>{var be;if((be=R.value)==null||be.destroy(),R.value=null,!Fe||T.value)return void(T.value=!0);if(!Ce)return void(T.value=!1);let ue=!0;const ye=w(Ce,{rootMargin:H.value,allowIdle:!1});R.value=ye,T.value=ye.isVisible.value,ye.whenVisible.then(()=>{ue&&R.value===ye&&(T.value=!0)}),fe(()=>{ue=!1,ye.destroy(),R.value===ye&&(R.value=null)})},{immediate:!0}),ze([U,l,c,O,()=>a.lazy,N],([Ce,Fe,Pe,fe,be,ue])=>Ce&&fe&&!Pe&&ue?Fe?(le(),void J()):be?(ie(),void J()):void(Fe||Pe||ie()):(le(),void J()),{flush:"post",immediate:!0}),qs(()=>{var Ce;(Ce=R.value)==null||Ce.destroy(),R.value=null,(function(){const Fe=M;Fe&&(ee(),M="",v?.markSettled(Fe))})()}),(Ce,Fe)=>{var Pe,fe,be,ue,ye;return h(),C("span",{ref_key:"rootRef",ref:g,class:"image-node-container","data-markstream-viewport-pending":B.value&&!T.value?"true":void 0},[U.value?(h(),C("img",{key:0,src:z.value||void 0,alt:String((fe=(Pe=a.node.alt)!=null?Pe:a.node.title)!=null?fe:""),title:String((ue=(be=a.node.title)!=null?be:a.node.alt)!=null?ue:""),class:At(["image-node__img",{"is-loading":!F.value&&!l.value,"is-loaded":F.value||l.value,"has-natural-size":l.value,"cursor-pointer":l.value}]),loading:a.lazy?"lazy":void 0,fetchpriority:F.value?"high":void 0,decoding:F.value?"sync":"async",tabindex:l.value?0:-1,"aria-label":(ye=a.node.alt)!=null?ye:i(Z)("image.preview"),onError:oe,onLoad:ae,onClick:te},null,42,PBe)):W("",!0),e.node.loading&&!c.value?(h(),C("span",DBe,[a.usePlaceholder?gn(Ce.$slots,"placeholder",{key:0,node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[0]||(Fe[0]=d("span",{class:"image-shimmer"},null,-1))],!0):(h(),C("span",LBe,f(e.node.raw),1))])):W("",!0),K.value&&!e.node.loading?(h(),C("span",BBe,[a.usePlaceholder?gn(Ce.$slots,"placeholder",{key:0,node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[1]||(Fe[1]=d("span",{class:"image-shimmer"},null,-1))],!0):(h(),C("span",FBe,f(e.node.raw),1))])):W("",!0),L.value?(h(),C("span",zBe,[gn(Ce.$slots,"error",{node:a.node,displaySrc:O.value,imageLoaded:l.value,hasError:c.value,fallbackSrc:a.fallbackSrc,lazy:a.lazy},()=>[Fe[2]||(Fe[2]=d("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[d("path",{fill:"currentColor",d:"M2 2h20v10h-2V4H4v9.586l5-5L14.414 14L13 15.414l-4-4l-5 5V20h8v2H2zm13.547 5a1 1 0 1 0 0 2a1 1 0 0 0 0-2m-3 1a3 3 0 1 1 6 0a3 3 0 0 1-6 0m3.625 6.757L19 17.586l2.828-2.829l1.415 1.415L20.414 19l2.829 2.828l-1.415 1.415L19 20.414l-2.828 2.829l-1.415-1.415L17.586 19l-2.829-2.828z"})],-1)),d("span",null,f(i(Z)("image.loadError")),1)],!0)])):W("",!0)],8,OBe)}}}),[["__scopeId","data-v-046e82ac"]]);ih.install=e=>{e.component(ih.__name,ih)};const UBe={key:2},yf=st({__name:"NodeChildRenderer",props:{node:{},components:{},customId:{},indexKey:{},fallbackToText:{type:Boolean,default:!1}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamHtmlPolicy",void 0),o=uo("markstreamNestedRendererProps",void 0),a=E(()=>{var w;return(w=s?.value)!=null?w:"safe"}),r=E(()=>{var w,k;const A=(w=o?.value)!=null?w:{};return Os(En({},A),{customId:(k=t.customId)!=null?k:A.customId,htmlPolicy:a.value})}),l=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1}),c=E(()=>t.components[String(t.node.type)]),u=E(()=>!!(c.value&&n.value[t.node.type]&&!ow(String(t.node.type)))),p=E(()=>u.value?uR(t.node,a.value):void 0),g=E(()=>Array.isArray(t.node.children)&&t.node.children.length>0),y=E(()=>{var w;return String((w=t.node.content)!=null?w:"")}),v=E(()=>{var w,k;return String((k=(w=t.node.content)!=null?w:t.node.raw)!=null?k:"")});return(w,k)=>c.value&&u.value?(h(),V(Ms(c.value),Un({key:0},p.value,{node:e.node,loading:e.node.loading,"index-key":e.indexKey,"custom-id":e.customId,"is-dark":r.value.isDark}),{default:b(()=>[g.value?(h(),V(i(l),Un({key:0},r.value,{nodes:e.node.children,"index-key":e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):y.value?(h(),V(i(l),Un({key:1},r.value,{content:y.value,final:!e.node.loading,"index-key":`${e.indexKey||"child"}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:1},16,["node","loading","index-key","custom-id","is-dark"])):c.value?(h(),V(Ms(c.value),{key:1,node:e.node,"custom-id":e.customId,"index-key":e.indexKey},null,8,["node","custom-id","index-key"])):e.fallbackToText?(h(),C("span",UBe,f(v.value),1)):W("",!0)}}),J9=Object.freeze({enabled:!0,contextLineCount:2,minimumLineCount:4,revealLineCount:5});function HBe(e){var t;if(typeof e=="boolean")return e;if(e&&typeof e=="object"){const n=e;return Os(En(En({},J9),n),{enabled:(t=n.enabled)==null||t})}return En({},J9)}function mR(e,t){if(e.renderSideBySide===!1)return!0;if(e.useInlineViewWhenSpaceIsLimited!==!0)return!1;const n=e.renderSideBySideInlineBreakpoint,s=typeof n=="number"&&Number.isFinite(n)?n:900;return t>0&&t<=s}function mZ(e){var t,n;const s=(n=(t=String(e??"").split(/\r?\n/,1)[0])==null?void 0:t.trim())!=null?n:"";if(s.length<3)return"";const o=s[0];if(o!=="`"&&o!=="~"||s[1]!==o||s[2]!==o)return"";let a=3;for(;s[a]===o;)a+=1;return s.slice(a).trim()}function eL(e){var t;return((t=String(e??"").trim().split(/\s+/,1)[0])!=null?t:"")==="diff"}function VBe(e){var t;return e.diff===!0||eL(e.language)||eL(mZ(String((t=e.raw)!=null?t:"")))}function qBe(e,t,n){const s=(function(o){const a=mZ(o);if(!a)return"";const r=a.split(/\s+/).filter(Boolean);if(!r.length)return"";const l=r[0]==="diff"?r.slice(1):r;for(const c of l){const u=c.includes(":")?c.slice(c.indexOf(":")+1):c;if(u&&/[./\\-]/.test(u))return u}return""})(e);return{title:s||t,caption:s?n?`Diff / ${t}`:t:""}}const jBe=["aria-busy","aria-label","data-language","data-markstream-line-numbers"],WBe={key:0,translate:"no",class:"markstream-pre__diff-code"},KBe={class:"markstream-pre__diff-pane-content"},GBe={class:"markstream-pre__diff-number","aria-hidden":"true"},YBe={class:"markstream-pre__diff-content"},QBe={class:"markstream-pre__diff-content-inner"},ZBe={key:0,class:"markstream-pre__line-numbers","aria-hidden":"true"},XBe=["textContent"],JBe=["textContent"],nu=st({__name:"PreCodeNode",props:{node:{},loading:{type:Boolean},showLineNumbers:{type:Boolean},diffInline:{type:Boolean},diffHideUnchangedRegions:{type:[Boolean,Object]},reservedHeightPx:{}},setup(e){const t=e;function n(ae,te){const Z=String(ae??"");return te?Z:Z.replace(/\r\n$|\n$|\r$/,"")}const s=E(()=>{var ae,te,Z;const Ce=String((te=(ae=t.node)==null?void 0:ae.language)!=null?te:"");return String((Z=String(Ce).split(/\s+/g)[0])!=null?Z:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=E(()=>`language-${s.value}`),a=E(()=>{var ae;return t.loading===!0||((ae=t.node)==null?void 0:ae.loading)===!0}),r=E(()=>{var ae;return n((ae=t.node)==null?void 0:ae.code,a.value)});let l="",c=1;const u=E(()=>(function(ae){let te=0,Z=1;ae.startsWith(l)&&(te=l.length,Z=c,te>0&&ae[te-1]==="\r"&&ae[te]===`
|
|
592
592
|
`&&te++);for(let Ce=te;Ce<ae.length;Ce++)ae[Ce]===`
|
|
593
593
|
`?Z++:ae[Ce]==="\r"&&(Z++,ae[Ce+1]===`
|
|
594
594
|
`&&Ce++);return l=ae,c=Z,Z})(r.value)),p=E(()=>r.value.split(/\r\n|\n|\r/));let g=0,y="";const v=E(()=>{const ae=u.value;ae<g&&(g=0,y="");for(let te=g+1;te<=ae;te++)y+=`${y?`
|
|
595
|
-
`:""}${te}`;return g=ae,y}),w=E(()=>{var ae;return t.showLineNumbers===!0&&((ae=t.node)==null?void 0:ae.diff)===!0}),k=E(()=>w.value&&t.diffInline===!0),A=E(()=>{const ae=Number(t.reservedHeightPx);if(!Number.isFinite(ae)||ae<=0)return;const te=`${Math.ceil(ae)}px`;return a.value?{maxHeight:te,overflow:"auto"}:{height:te,minHeight:te,maxHeight:te,overflow:"auto"}}),_=["diff ","index ","--- ","+++ ","@@ "];function S(ae){return String(ae??"").trim().length===0}function I(ae,te="context",Z={}){const Ce=S(ae);return{code:ae,kind:Ce&&te!=="hunk"&&te!=="spacer"&&!Z.preserveBlankKind?"context":te,empty:Ce}}function x(ae){const te=n(ae,a.value);return te?te.split(/\r\n|\n|\r/):[]}function T(ae,te){return!S(ae[te])||te<ae.length-1}function R(ae){return ae.startsWith("-")&&!ae.startsWith("---")}function M(ae){return ae.startsWith("+")&&!ae.startsWith("+++")}function $(ae){return ae.some(te=>_.some(Z=>te.startsWith(Z)))}function O(ae,te){return te||!ae.startsWith(" ")||ae.startsWith(" ")?ae:` ${ae}`}function F(ae,te){const Z=ae.length,Ce=te.length,Fe=[];let Pe=0;for(;Pe<Z&&Pe<Ce&&ae[Pe]===te[Pe];)Fe.push({originalIndex:Pe,modifiedIndex:Pe}),Pe++;const fe=[];let be=Z-1,ue=Ce-1;for(;be>=Pe&&ue>=Pe&&ae[be]===te[ue];)fe.unshift({originalIndex:be,modifiedIndex:ue}),be--,ue--;const ye=be-Pe+1,ke=ue-Pe+1;if(ye<=0||ke<=0||a.value||(ye+1)*(ke+1)>15e5)return Fe.concat(fe);const ve=ke+1,xe=new Uint32Array((ye+1)*(ke+1));for(let me=ye-1;me>=0;me--)for(let Be=ke-1;Be>=0;Be--){const He=me*ve+Be;if(ae[Pe+me]===te[Pe+Be])xe[He]=xe[(me+1)*ve+Be+1]+1;else{const Le=xe[(me+1)*ve+Be],Ee=xe[me*ve+Be+1];xe[He]=Le>=Ee?Le:Ee}}const se=[];let de=0,De=0;for(;de<ye&&De<ke;)ae[Pe+de]===te[Pe+De]?(se.push({originalIndex:Pe+de,modifiedIndex:Pe+De}),de++,De++):xe[(de+1)*ve+De]>=xe[de*ve+De+1]?de++:De++;return Fe.concat(se,fe)}function B(ae){var te;const Z=(function(){var ue,ye;const ke=t.diffHideUnchangedRegions;if(ke==null||ke===!1)return null;const ve=ke===!0?{}:ke;return ve.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((ue=ve.contextLineCount)!=null?ue:2)),minimumLineCount:Math.max(1,Math.floor((ye=ve.minimumLineCount)!=null?ye:4))}})();if(!Z||ae.length<1||ae.length>2||ae.length===2&&ae[0].lines.length!==ae[1].lines.length)return ae;const Ce=ae[0].lines,Fe=(te=ae[1])==null?void 0:te.lines,Pe=ue=>Ce[ue].kind==="context"&&(Fe===void 0||Fe[ue].kind==="context"&&Ce[ue].code===Fe[ue].code),fe=[];let be=0;for(;be<Ce.length;){const ue=be;for(;be<Ce.length&&Pe(be);)be++;const ye=be;if(ye-ue>=Z.minimumLineCount){const ke=ue+(ue===0?0:Z.contextLineCount),ve=ye-(ye===Ce.length?0:Z.contextLineCount);ve-ke>=Z.minimumLineCount&&fe.push({start:ke,end:ve})}be===ue&&be++}return fe.length?ae.map((ue,ye)=>{const ke=[];let ve=0;for(const xe of fe)ke.push(...ue.lines.slice(ve,xe.start)),ke.push({code:ye===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${ue.key}-collapsed-${xe.start}-${xe.end}`,number:""}),ve=xe.end;return ke.push(...ue.lines.slice(ve)),Os(En({},ue),{lines:ke})}):ae}const N=E(()=>{var ae,te,Z,Ce;if(!w.value)return[];const Fe=(function(ye){const ke=ye.some(xe=>R(xe)),ve=ye.some(xe=>M(xe));return ke&&ve||(function(){var xe,se,de,De;if(s.value==="diff")return!0;const me=(De=(de=String((se=(xe=t.node)==null?void 0:xe.raw)!=null?se:"").split(/\r?\n/,1)[0])==null?void 0:de.trim())!=null?De:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(me)})()&&(ke||ve)})(p.value),Pe=(function(){var ye,ke;return((ye=t.node)==null?void 0:ye.originalCode)!=null||((ke=t.node)==null?void 0:ke.updatedCode)!=null})();if(k.value){const ye=Pe?(function(ke,ve){const xe=x(ke),se=x(ve),de=F(xe,se);if(de.length>0){const Ee=[];let kt=0,ot=0;for(const We of de){for(;kt<We.originalIndex;)Ee.push(Os(En({},I(xe[kt],"removed",{preserveBlankKind:T(xe,kt)})),{key:`inline-removed-source-${kt}`,number:kt+1})),kt++;for(;ot<We.modifiedIndex;)Ee.push(Os(En({},I(se[ot],"added",{preserveBlankKind:T(se,ot)})),{key:`inline-added-source-${ot}`,number:ot+1})),ot++;Ee.push(Os(En({},I(se[We.modifiedIndex])),{key:`inline-context-source-${We.originalIndex}-${We.modifiedIndex}`,number:We.modifiedIndex+1})),kt=We.originalIndex+1,ot=We.modifiedIndex+1}for(;kt<xe.length;)Ee.push(Os(En({},I(xe[kt],"removed",{preserveBlankKind:T(xe,kt)})),{key:`inline-removed-source-${kt}`,number:kt+1})),kt++;for(;ot<se.length;)Ee.push(Os(En({},I(se[ot],"added",{preserveBlankKind:T(se,ot)})),{key:`inline-added-source-${ot}`,number:ot+1})),ot++;return Ee}const De=[];let me=0,Be=xe.length-1,He=se.length-1;for(;me<=Be&&me<=He&&xe[me]===se[me];)De.push(Os(En({},I(se[me])),{key:`inline-prefix-${me}`,number:me+1})),me++;const Le=[];for(;Be>=me&&He>=me&&xe[Be]===se[He];)Le.unshift(Os(En({},I(se[He])),{key:`inline-suffix-${He}`,number:He+1})),Be--,He--;for(let Ee=me;Ee<=Be;Ee++)De.push(Os(En({},I(xe[Ee],"removed",{preserveBlankKind:T(xe,Ee)})),{key:`inline-removed-source-${Ee}`,number:Ee+1}));for(let Ee=me;Ee<=He;Ee++)De.push(Os(En({},I(se[Ee],"added",{preserveBlankKind:T(se,Ee)})),{key:`inline-added-source-${Ee}`,number:Ee+1}));return De.concat(Le)})((ae=t.node)==null?void 0:ae.originalCode,(te=t.node)==null?void 0:te.updatedCode):(function(ke){const ve=[];let xe=1,se=1;const de=$(ke);for(const[De,me]of ke.entries())if(me.startsWith("@@")){const Be=me.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);Be&&(xe=Number(Be[1]),se=Number(Be[2])),ve.push(Os(En({},I(me,"hunk")),{key:`inline-hunk-${De}`,number:""}))}else if(R(me))ve.push(Os(En({},I(O(me.slice(1),de),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${De}`,number:xe++}));else if(M(me))ve.push(Os(En({},I(O(me.slice(1),de),"added",{preserveBlankKind:!0})),{key:`inline-added-${De}`,number:se++}));else{const Be=de&&me.startsWith(" ")?me.slice(1):me;ve.push(Os(En({},I(Be)),{key:`inline-context-${De}`,number:se})),xe++,se++}return ve})(p.value);return B([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:ye}])}if(!Fe&&Pe)return(function(ye,ke){const ve=x(ye),xe=x(ke),se=F(ve,xe),de=[],De=[];let me=0,Be=0,He=0;const Le=(Ee,kt)=>{const ot=Math.max(Ee-me,kt-Be);for(let We=0;We<ot;We++){const vt=me+We,ct=Be+We;de.push(vt<Ee?Os(En({},I(ve[vt],"removed",{preserveBlankKind:T(ve,vt)})),{key:`original-changed-${He}-${vt}`,number:vt+1}):Os(En({},I("","spacer")),{key:`original-spacer-${He}-${We}`,number:""})),De.push(ct<kt?Os(En({},I(xe[ct],"added",{preserveBlankKind:T(xe,ct)})),{key:`modified-changed-${He}-${ct}`,number:ct+1}):Os(En({},I("","spacer")),{key:`modified-spacer-${He}-${We}`,number:""}))}me=Ee,Be=kt,He++};for(const Ee of se)Le(Ee.originalIndex,Ee.modifiedIndex),de.push(Os(En({},I(ve[Ee.originalIndex])),{key:`original-context-${Ee.originalIndex}-${Ee.modifiedIndex}`,number:Ee.originalIndex+1})),De.push(Os(En({},I(xe[Ee.modifiedIndex])),{key:`modified-context-${Ee.originalIndex}-${Ee.modifiedIndex}`,number:Ee.modifiedIndex+1})),me=Ee.originalIndex+1,Be=Ee.modifiedIndex+1;return Le(ve.length,xe.length),B([{key:"original",className:"markstream-pre__diff-pane--original",lines:de},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:De}])})((Z=t.node)==null?void 0:Z.originalCode,(Ce=t.node)==null?void 0:Ce.updatedCode);const fe=[],be=[],ue=$(p.value);for(const ye of p.value)if(ye.startsWith("@@"))fe.push(I(ye,"hunk")),be.push(I(ye,"hunk"));else if(ye.startsWith("-")&&!ye.startsWith("---"))fe.push(I(O(ye.slice(1),ue),"removed",{preserveBlankKind:!0}));else if(ye.startsWith("+")&&!ye.startsWith("+++"))be.push(I(O(ye.slice(1),ue),"added",{preserveBlankKind:!0}));else{const ke=ue&&ye.startsWith(" ")?ye.slice(1):ye;fe.push(I(ke)),be.push(I(ke))}return B([{key:"original",className:"markstream-pre__diff-pane--original",lines:fe.map((ye,ke)=>Os(En({},ye),{key:`original-${ke}`,number:ke+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:be.map((ye,ke)=>Os(En({},ye),{key:`modified-${ke}`,number:ke+1}))}])}),z=E(()=>N.value.some(ae=>ae.lines.some(te=>te.kind==="collapsed"))),H=E(()=>{const ae=s.value;return ae?`Code block: ${ae}`:"Code block"}),U=D(null),L=D([]);let K=null,G=!1,Q=null;function J(ae){const te=Number.parseFloat(String(ae??""));return Number.isFinite(te)&&te>0?te:0}function ee(ae,te){var Z;if(!ae)return te;if(ae.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const Ce=ae.querySelector(".markstream-pre__diff-content"),Fe=Ce?.getBoundingClientRect(),Pe=(Z=Fe?.height)!=null?Z:0;return Math.max(te,Math.ceil(Pe))}function ie(){G||typeof window>"u"||(K!=null&&window.cancelAnimationFrame(K),K=window.requestAnimationFrame(()=>{K=null,G||(function(){var ae,te;K=null;const Z=U.value;if(!Z||!w.value||k.value||!Z.classList.contains("is-wrap"))return void(L.value.length&&(L.value=[]));const Ce=(function(ke){const ve=window.getComputedStyle(ke),xe=J(ve.getPropertyValue("--markstream-pre-diff-line-height"));if(xe>0)return xe;const se=J(ve.lineHeight);return se>0?se:18})(Z),Fe=Array.from(Z.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),Pe=Array.from(Z.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),fe=Math.max(Fe.length,Pe.length),be=[];for(let ke=0;ke<fe;ke++){const ve=ee((ae=Fe[ke])!=null?ae:null,Ce),xe=ee((te=Pe[ke])!=null?te:null,Ce),se=Math.max(Ce,ve,xe);be.push({rowHeight:se,originalHeight:ve,modifiedHeight:xe})}var ue,ye;ue=L.value,ye=be,ue.length===ye.length&&ue.every((ke,ve)=>{const xe=ye[ve];return xe&&Math.abs(ke.rowHeight-xe.rowHeight)<=.5&&Math.abs(ke.originalHeight-xe.originalHeight)<=.5&&Math.abs(ke.modifiedHeight-xe.modifiedHeight)<=.5})||(L.value=be)})()}))}function le(ae){Q?.disconnect(),Q=null,ae&&w.value&&!k.value&&typeof ResizeObserver<"u"&&(Q=new ResizeObserver(()=>{ie()}),Q.observe(ae))}function oe(ae,te){const Z=L.value[ae];if(!Z)return;const Ce=te==="original"?Z.originalHeight:Z.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(Z.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(Ce)}px`}}return ze(U,ae=>{le(ae),vn(()=>ie())},{flush:"post"}),ze([w,k,N],()=>{le(U.value),vn(()=>ie())},{flush:"post",immediate:!0}),qs(()=>{G=!0,K!=null&&(window.cancelAnimationFrame(K),K=null),Q?.disconnect(),Q=null}),(ae,te)=>(h(),C("pre",{ref_key:"preRef",ref:U,style:Qn(A.value),class:At([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":w.value,"markstream-pre--diff-inline":k.value,"markstream-pre--diff-collapsed":z.value}]),"aria-busy":a.value,"aria-label":H.value,"data-language":s.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[w.value?(h(),C("code",WBe,[(h(!0),C(Me,null,ft(N.value,Z=>(h(),C("span",{key:Z.key,class:At(["markstream-pre__diff-pane",Z.className])},[d("span",KBe,[(h(!0),C(Me,null,ft(Z.lines,(Ce,Fe)=>(h(),C("span",{key:Ce.key,class:At(["markstream-pre__diff-line",[`markstream-pre__diff-line--${Ce.kind}`,{"markstream-pre__diff-line--empty":Ce.empty}]]),style:Qn(oe(Fe,Z.key))},[te[0]||(te[0]=d("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),d("span",GBe,f(Ce.number),1),d("span",YBe,[d("span",QBe,f(Ce.code),1)])],6))),128))])],2))),128))])):(h(),C(Me,{key:1},[t.showLineNumbers?(h(),C("span",ZBe,[d("span",{class:"markstream-pre__line-numbers-text",textContent:f(v.value)},null,8,XBe)])):W("",!0),d("code",{translate:"no",class:"markstream-pre__code",textContent:f(r.value)},null,8,JBe)],64))],14,jBe))}});nu.install=e=>{e.component(nu.__name,nu)};const eFe={key:0},rr=bi(st({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=Ah(),s=uo("markstreamFade",void 0),o=uo("markstreamTextStreamState",void 0),a=uo("markstreamStreamVersion",void 0),r=E(()=>{const A=n.fade;return A===""||A===!0||A==="true"||A!==!1&&A!=="false"&&void 0}),l=E(()=>typeof r.value=="boolean"?r.value:typeof s?.value!="boolean"||s.value),c=E(()=>{var A;const _=(A=n["index-key"])!=null?A:n.indexKey;return _==null||_===""?"":String(_)}),u=D(t.node.content),p=D("");let g=a?.value;const y=D(0);function v(){return u.value+p.value}function w(){p.value&&(u.value=v(),p.value="")}ze([()=>t.node.content,c,l,()=>a?.value],([A,_,S,I])=>{const x=String(A??""),T=c.value,R=I!==g;g=I;const M=YQ({nextContent:x,persistedContent:T?o?.get(T):void 0,currentState:{settledContent:u.value,streamedDelta:p.value},typewriterEnabled:l.value,streamRenderVersionChanged:R});u.value=M.settledContent,p.value=M.streamedDelta,M.appended&&(y.value+=1),T&&o?.set(T,x)},{immediate:!0}),ze(l,A=>{var _;A||(_=v(),u.value=_,p.value="")});const k=E(()=>y.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(A,_)=>(h(),C("span",{class:At([[e.node.center?"text-node-center":""],"text-node"])},[u.value?(h(),C("span",eFe,f(u.value),1)):W("",!0),p.value?(h(),C("span",{key:1,class:At(["text-node-stream-delta",[k.value]]),onAnimationend:w},f(p.value),35)):W("",!0)],2))}}),[["__scopeId","data-v-142928b1"]]);function Ey(e,t,n){return st({name:e,inheritAttrs:!1,setup(s,{attrs:o,slots:a}){var r,l;const c=fR(),u=dR(),p=pR(),g=typeof window<"u"&&((l=(r=Nd())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,y=D(typeof window>"u"||g||!p.value),v=gi(null);let w=null;function k(A){const _=A&&"$el"in A?A.$el:A;v.value=_ instanceof HTMLElement?_:null}return typeof window<"u"&&ze([v,p],([A,_],S,I)=>{if(w?.destroy(),w=null,!_||y.value)return void(y.value=!0);if(!A)return;let x=!0;const T=c(A,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});w=T,y.value=T.isVisible.value,T.whenVisible.then(()=>{x&&w===T&&(y.value=!0)}),I(()=>{x=!1,T.destroy(),w===T&&(w=null)})},{immediate:!0}),qs(()=>{w?.destroy(),w=null}),()=>jn(y.value?t:n,Os(En({},o),{ref:k}),a)}})}rr.install=e=>{e.component(rr.__name,rr)};const gI=st({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var s,o,a,r,l,c,u;const p=_A(String((o=(s=n.node)==null?void 0:s.language)!=null?o:"")),g=D9[p]||(p?p.charAt(0).toUpperCase()+p.slice(1):D9[""]),y=VBe(n.node),v=qBe(String((r=(a=n.node)==null?void 0:a.raw)!=null?r:""),g,y),w=n.monacoOptions,k=y&&((l=n.estimatedDiffInline)!=null?l:mR(w??{},typeof window>"u"?0:window.innerWidth)),A=w?.diffAppearance,_=A==="dark"||A!=="light"&&n.isDark===!0,S=typeof w?.fontSize=="number"&&Number.isFinite(w.fontSize)&&w.fontSize>0?w.fontSize:12,I=typeof w?.lineHeight=="number"&&Number.isFinite(w.lineHeight)&&w.lineHeight>0?w.lineHeight:S===12?18:Math.max(12,Math.round(1.5*S)),x=typeof w?.tabSize=="number"&&Number.isFinite(w.tabSize)&&w.tabSize>0?w.tabSize:4,T=y?0:8,R=typeof((c=w?.padding)==null?void 0:c.top)=="number"&&Number.isFinite(w.padding.top)&&w.padding.top>=0?w.padding.top:T,M=typeof((u=w?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(w.padding.bottom)&&w.padding.bottom>=0?w.padding.bottom:T,$=typeof w?.fontFamily=="string"?w.fontFamily.trim():"",O=En(En({fontSize:`${S}px`,lineHeight:`${I}px`,tabSize:x,paddingTop:`${R}px`,paddingBottom:`${M}px`,"--markstream-pre-line-number-top":`${R}px`},y?{"--markstream-pre-diff-line-height":`${I}px`}:{}),$?{"--markstream-code-font-family":$}:{}),F=()=>jn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[jn("svg",{class:"action-icon"})]),B=n.isShowPreview!==!1&&(p==="html"||p==="svg"),N=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||B&&n.showPreviewButton!==!1,z=U=>{if(U!=null)return typeof U=="number"?`${U}px`:String(U)},H=En(En(En({"--markstream-code-layout-character-width":"1ch"},z(n.minWidth)?{minWidth:z(n.minWidth)}:{}),z(n.maxWidth)?{maxWidth:z(n.maxWidth)}:{}),y?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--vscode-editor-background, var(--markstream-code-fallback-bg, var(--code-bg)))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return jn("div",Os(En({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":_,"is-diff":y,"is-plain-text":p===""||p==="plaintext"||p==="text"},t.class],style:[H,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:jn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[jn("div",{class:"code-header-main"},[jn("span",{class:"icon-slot h-4 w-4 flex-shrink-0"}),jn("div",{class:"code-header-copy"},[jn("div",{class:"code-header-title"},v.title),v.caption?jn("div",{class:"code-header-caption"},v.caption):null])]),jn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[y?jn("div",{class:"code-diff-stats","aria-hidden":"true"},[jn("span",{class:"code-diff-stat removed"},"-0"),jn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:F(),n.showCollapseButton===!1?null:F(),N?jn("div",{class:"relative"},[F()]):null])]),jn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[jn(nu,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:y?void 0:n.estimatedContentHeightPx,diffInline:k,diffHideUnchangedRegions:y?HBe(w?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:O,"data-markstream-code-loading":"1"})]),jn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[jn("div",{class:"loading-skeleton"},[jn("div",{class:"skeleton-line"}),jn("div",{class:"skeleton-line"}),jn("div",{class:"skeleton-line short"})])]),jn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),jx=Ey("ViewportDeferredCodeBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./CodeBlockNode-DOdQ8VfA.js"),__vite__mapDeps([5,3,6,0,1]))).default}catch(e){return console.warn('[markstream-vue] Optional peer dependency stream-diffs is missing. Falling back to preformatted code rendering. To enable enhanced code block features, please install "stream-diffs".',e),nu}}),loadingComponent:gI,delay:0,suspensible:!1}),gI),Ip=Jp(()=>ta(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,s,o,a;return jn(rr,Os(En({},t),{node:{type:"text",content:(s=t.node.raw)!=null?s:`$${(n=t.node.content)!=null?n:""}$`,raw:(a=t.node.raw)!=null?a:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield eZ(),(yield Sa(()=>import("./index7-BlrlSUXg.js"),__vite__mapDeps([7,3,0,1]))).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,s,o,a;return jn(rr,Os(En({},t),{node:{type:"text",content:(s=t.node.raw)!=null?s:`$${(n=t.node.content)!=null?n:""}$`,raw:(a=t.node.raw)!=null?a:`$${(o=t.node.content)!=null?o:""}$`}}))}})),hZ=Jp(()=>ta(null,null,function*(){try{return yield eZ(),(yield Sa(()=>import("./index6-Dx5Bbdeo.js"),__vite__mapDeps([8,3,0,1]))).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,s,o;return jn(rr,Os(En({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(s=e.node.content)!=null?s:""}$$`}}))}})),Rc=bi(st({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(h(),C("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=s=>t.$emit("click",s,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=s=>t.$emit("mouseEnter",s,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=s=>t.$emit("mouseLeave",s,e.node.id,e.messageId,e.threadId))},f(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Rc.install=e=>{e.component(Rc.__name,Rc)};const tFe={class:"superscript-node"},fu=bi(st({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,footnote_reference:Vu,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,emoji:pu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("sup",tFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"superscript"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);fu.install=e=>{e.component(fu.__name,fu)};const nFe={class:"subscript-node"},mu=bi(st({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,footnote_reference:Vu,strikethrough:$c,highlight:ju,insert:hu,superscript:fu,emoji:pu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("sub",nFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"subscript"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);mu.install=e=>{e.component(mu.__name,mu)};const sFe={class:"strong-node"},Mc=bi(st({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("strong",sFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"strong"}-${l}`,components:s.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);Mc.install=e=>{e.component(Mc.__name,Mc)};const oFe={class:"strikethrough-node"},$c=bi(st({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("del",oFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"strikethrough"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);$c.install=e=>{e.component($c.__name,$c)};const iFe=["href","title","aria-label","aria-hidden","target","rel"],aFe=["aria-hidden"],rFe={class:"link-text-wrapper relative inline-flex"},lFe={class:"leading-[normal] link-text"},Oc=bi(st({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=uo("markstreamShowTooltips",void 0),s=E(()=>{const _=n?.value;return typeof _=="boolean"?_:t.showTooltip}),o=E(()=>{var _,S,I,x,T;const R=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",M=(_=t.animationOpacity)!=null?_:.35,$=Math.max(.12,Math.min(.5*M,M)),O={"--underline-height":`${(S=t.underlineHeight)!=null?S:2}px`,"--underline-bottom":R,"--underline-opacity":String(M),"--underline-rest-opacity":String($),"--underline-duration":`${(I=t.animationDuration)!=null?I:1.6}s`,"--underline-timing":(x=t.animationTiming)!=null?x:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(T=t.animationIteration)!=null?T:"infinite"};return t.color&&(O["--link-color"]=t.color),O}),a=Kr(()=>t.customId),r=E(()=>En({text:rr,strong:Mc,strikethrough:$c,emphasis:Pc,image:ih,html_inline:qu,inline_code:tc},a.value)),l=Ah(),c=E(()=>{var _,S;const I=(_=t.node)==null?void 0:_.attrs;if(!I||typeof I!="object")return{};const x={};if(Array.isArray(I))for(const T of I)Array.isArray(T)&&T[0]&&(x[String(T[0])]=String((S=T[1])!=null?S:""));else for(const[T,R]of Object.entries(I))T&&R!=null&&R!==!1&&(x[T]=R===!0?"":String(R));return W9(x,"safe","a")}),u=E(()=>En(En({},l),c.value)),p=E(()=>{var _,S;return W9({href:String((S=(_=t.node)==null?void 0:_.href)!=null?S:"")},"safe","a").href}),g=E(()=>{if(!p.value)return;const _=u.value.target;return(typeof _=="string"?_.trim():String(_??"").trim())||(cOe(p.value)?"_blank":void 0)}),y=E(()=>{var _;return String((_=g.value)!=null?_:"").trim().toLowerCase()==="_blank"}),v=E(()=>{if(!p.value)return;const _=u.value.rel,S=new Set((typeof _=="string"?_:String(_??"")).split(/\s+/).filter(Boolean)),I=new Set(Array.from(S).filter(x=>x.toLowerCase()!=="opener"));return y.value&&(I.add("noopener"),I.add("noreferrer")),I.size>0?Array.from(I).join(" "):void 0}),w=E(()=>{const _=En({},u.value);return delete _.title,delete _.href,delete _.target,delete _.rel,_});function k(){s.value&&xBe()}const A=E(()=>{var _,S;const I=(_=t.node)==null?void 0:_.title;return typeof I=="string"&&I.trim().length>0?I:String((S=p.value)!=null?S:"")});return(_,S)=>{var I,x;return e.node.loading?(h(),C("span",Un({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},i(l),{style:o.value}),[d("span",rFe,[d("span",lFe,[m(i(rr),{class:"leading-[normal] link-text",node:{type:"text",content:String((I=e.node.text)!=null?I:""),raw:String((x=e.node.text)!=null?x:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),S[1]||(S[1]=d("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,aFe)):(h(),C("a",Un({key:0,class:"link-node",href:p.value,title:s.value?"":A.value,"aria-label":`Link: ${A.value}`,"aria-hidden":e.node.loading?"true":"false",target:g.value,rel:v.value},w.value,{style:o.value,onMouseenter:S[0]||(S[0]=T=>(function(R){var M,$,O,F;if(!s.value)return;const B=R,N=B?.clientX!=null&&B?.clientY!=null?{x:B.clientX,y:B.clientY}:void 0,z=((M=t.node)==null?void 0:M.title)||(($=p.value)!=null&&$.includes("xn--")&&((F=(O=t.node)==null?void 0:O.text)!=null&&F.includes("://"))?t.node.text:p.value)||"";CBe(R.currentTarget,z,"top",!1,N)})(T)),onMouseleave:k}),[(h(!0),C(Me,null,ft(e.node.children,(T,R)=>(h(),V(i(yf),{key:`${e.indexKey||"emphasis"}-${R}`,components:r.value,node:T,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${R}`},null,8,["components","node","custom-id","index-key"]))),128))],16,iFe))}}}),[["__scopeId","data-v-367e6ca4"]]);Oc.install=e=>{e.component(Oc.__name,Oc)};const cFe={class:"insert-node"},hu=bi(st({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("ins",cFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"insert"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);hu.install=e=>{e.component(hu.__name,hu)};const uFe={class:"highlight-node"},ju=bi(st({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,strikethrough:$c,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("mark",uFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"highlight"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);ju.install=e=>{e.component(ju.__name,ju)};const dFe={class:"emphasis-node"},Pc=bi(st({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("em",dFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"emphasis"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Pc.install=e=>{e.component(Pc.__name,Pc)};const pFe={class:"hard-break"},ah=bi(st({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("br",pFe))}),[["__scopeId","data-v-50c58f70"]]);ah.install=e=>{e.component(ah.__name,ah)};const fk=st({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=yp({checkbox:Hu,checkbox_input:Hu,emoji:pu,emphasis:Pc,hardbreak:ah,highlight:ju,inline_code:tc,insert:hu,link:Oc,reference:Rc,strikethrough:$c,strong:Mc,subscript:mu,superscript:fu,text:rr}),s=Kr(()=>t.customId),o=E(()=>{const a=s.value;return Object.keys(a).length>0?En(En({},n),a):n});return(a,r)=>(h(!0),C(Me,null,ft(e.nodes,(l,c)=>(h(),V(i(yf),{key:c,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${c}`},null,8,["components","node","custom-id","index-key"]))),128))}});function F3(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(F3)}function vI(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(F3))return e;if(!t||e.length!==1)return null;const s=e[0];if(s?.type!=="paragraph"||!Array.isArray(s.children))return null;const o=s.children;return(n||o.length>0)&&o.every(F3)?o:null}function ev(e){var t,n;if(!e?.length)return null;let s="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;s+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return s}const fFe=["cite"],mFe={key:0,dir:"auto",class:"paragraph-node"},hFe=["custom-id"],I2=bi(st({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>!!n.value.paragraph),o=E(()=>!!n.value.text),a=E(()=>vI(t.node.children,!s.value)),r=E(()=>t.fade!==!1||o.value?null:ev(a.value));return si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade)),(l,c)=>(h(),C("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[a.value?(h(),C("p",mFe,[r.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(r.value),9,hFe)):(h(),V(i(fk),{key:1,nodes:a.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(h(),V(i(gu),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:c[0]||(c[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,fFe))}}),[["__scopeId","data-v-abfecebc"]]);I2.install=e=>{e.component(I2.__name,I2)};const gFe={class:"definition-list"},vFe={class:"definition-term"},yFe={class:"definition-desc"},A2=bi(st({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,s)=>(h(),C("dl",gFe,[(h(!0),C(Me,null,ft(t.node.items,(o,a)=>(h(),C(Me,{key:a},[d("dt",vFe,[m(i(gu),{"index-key":`definition-term-${t.indexKey}-${a}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[0]||(s[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),d("dd",yFe,[m(i(gu),{"index-key":`definition-desc-${t.indexKey}-${a}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[1]||(s[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);A2.install=e=>{e.component(A2.__name,A2)};const bFe=["href","title"],ob=bi(st({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(s){var o;if(s.preventDefault(),typeof document>"u")return;const a=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(a);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(s,o)=>(h(),C("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,bFe))}}),[["__scopeId","data-v-e1eb37b6"]]);ob.install=e=>{e.component(ob.__name,ob)};const kFe=["id"],wFe={class:"flex-1"},C2=st({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,s)=>(h(),C("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[d("div",wFe,[m(i(gu),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[0]||(s[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,kFe))}});C2.install=e=>{e.component(C2.__name,C2)};const SFe=["custom-id"],z3=bi(st({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamFade",void 0),o=E(()=>s?.value!==!1||n.value.text?null:ev(t.node.children)),a=E(()=>En({text:rr,inline_code:tc,link:Oc,image:ih,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,checkbox:Hu,checkbox_input:Hu,footnote_reference:Vu,hardbreak:ah,math_inline:Ip,reference:Rc},n.value));return(r,l)=>(h(),V(Ms(`h${e.node.level}`),Un({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:b(()=>[o.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(o.value),9,SFe)):(h(!0),C(Me,{key:1},ft(e.node.children,(c,u)=>(h(),V(i(yf),{key:u,components:a.value,"custom-id":t.customId,node:c,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),CA=z3;CA.install=e=>{e.component(z3.__name,z3)};const _Fe={key:0,dir:"auto",class:"paragraph-node"},IFe=["custom-id"],AFe={dir:"auto",class:"paragraph-node"},CFe=["custom-id"],B0=bi(st({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=E(()=>{var v;return(v=t.node)!=null?v:t.item}),s=Kr(()=>t.customId),o=E(()=>!!s.value.paragraph),a=E(()=>!!s.value.text),r=E(()=>{var v;return vI((v=n.value)==null?void 0:v.children,!o.value)}),l=E(()=>{var v;if(o.value)return null;const w=(v=n.value)==null?void 0:v.children;if(!Array.isArray(w)||w.length<2)return null;const k=w[0];if(k?.type!=="paragraph"||!Array.isArray(k.children))return null;const A=w.slice(1);if(!A.every(S=>S?.type==="list"))return null;const _=vI([k]);return _?{paragraphChildren:_,nestedLists:A}:null});function c(){return t.fade===!1&&!a.value}const u=E(()=>c()?ev(r.value):null),p=E(()=>{var v;return c()?ev((v=l.value)==null?void 0:v.paragraphChildren):null}),g=Object.freeze({}),y=E(()=>{const{value:v}=t;return typeof v=="number"&&Number.isFinite(v)?{value:v}:g});return si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade)),(v,w)=>{var k,A;return h(),C("li",Un({class:"list-item",dir:"auto"},y.value),[r.value?(h(),C("p",_Fe,[u.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(u.value),9,IFe)):(h(),V(i(fk),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(h(),C(Me,{key:1},[d("p",AFe,[p.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(p.value),9,CFe)):(h(),V(i(fk),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(h(!0),C(Me,null,ft(l.value.nestedLists,(_,S)=>(h(),V(i(gu),{key:S,nodes:[_],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${S}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:w[0]||(w[0]=I=>v.$emit("copy",I))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(h(),V(i(gu),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(A=(k=n.value)==null?void 0:k.children)!=null?A:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:w[1]||(w[1]=_=>v.$emit("copy",_))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);B0.install=e=>{e.component(B0.__name,B0)};const F0=bi(st({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=Kr(()=>e.customId),n=E(()=>t.value.list_item||B0);return(s,o)=>(h(),V(Ms(e.node.ordered?"ol":"ul"),{class:At(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:b(()=>[(h(!0),C(Me,null,ft(e.node.items,(a,r)=>{var l;return h(),V(Ms(n.value),Un({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:a,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=c=>s.$emit("copy",c))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);F0.install=e=>{e.component(F0.__name,F0)};const xFe={key:2,class:"html-block-node__raw"},EFe=["innerHTML"],TFe={key:1,class:"html-block-node__placeholder"},ib=bi(st({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=uo("markstreamHtmlPolicy",void 0),s=uo("markstreamNestedRendererProps",void 0),o=E(()=>{var N,z;return(z=(N=t.htmlPolicy)!=null?N:n?.value)!=null?z:"safe"}),a=E(()=>{var N,z;const H=(N=s?.value)!=null?N:{};return Os(En({},H),{customId:(z=t.customId)!=null?z:H.customId,htmlPolicy:o.value})}),r=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1}),l=E(()=>{const N=k2(t.node.attrs,o.value);if(!N)return;const z=eb(N);return Object.keys(z).length>0?z:void 0}),c=E(()=>{const N=String(t.node.tag||"").trim(),z=k2(t.node.attrs,o.value,N);if(!z)return;const H=eb(z);return Object.keys(H).length>0?H:void 0}),u=Kr(()=>t.customId),p=st({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),g=D(null),y=D(typeof window>"u"),v=D(t.node.content),w=E(()=>Array.isArray(t.node.children)?t.node.children:[]),k=E(()=>String(t.node.tag||"div")),A=E(()=>{var N;if(k.value.trim().toLowerCase()!=="details"||(N=t.node.attrs)!=null&&N.some(([H])=>String(H).toLowerCase()==="open"))return null;const z=w.value[0];return z?.type==="html_block"&&String(z.tag||"").toLowerCase()==="summary"?z:null}),_=E(()=>{var N;return ev((N=A.value)==null?void 0:N.children)}),S=E(()=>{const N=A.value;if(!N)return;const z=k2(N.attrs,o.value,"summary");if(!z)return;const H=eb(z);return Object.keys(H).length>0?H:void 0}),I=E(()=>_.value==null?w.value:w.value.slice(1)),x=E(()=>{const N=k.value.trim().toLowerCase();return FY.has(N)||iR(N,o.value)}),T=E(()=>w.value.length>0&&!!t.node.tag&&!x.value),R=E(()=>{var N,z,H;if(T.value)return{mode:"structured"};if(!y.value)return{mode:"html",content:(N=v.value)!=null?N:""};const U=(z=v.value)!=null?z:t.node.content;if(!U)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:L0(U,o.value)};if(t.node.loading){const K=hI(U,u.value,o.value);return K===null?{mode:"text",content:(H=t.node.raw)!=null?H:U}:{mode:"dynamic",nodes:K}}if(!lZ(U,u.value))return{mode:"html",content:L0(U,o.value)};const L=hI(U,u.value,o.value);return L===null?{mode:"html",content:L0(U,o.value)}:{mode:"dynamic",nodes:L}}),M=fR(),$=dR(),O=pR(),F=gi(null),B=!!t.node.loading;return typeof window<"u"?(ze([()=>g.value,()=>$?.value.heavyBlockMargin,()=>$?.value.rootMargin],([N],z,H)=>{var U,L,K,G;if((L=(U=F.value)==null?void 0:U.destroy)==null||L.call(U),F.value=null,!B)return y.value=!0,void(v.value=t.node.content);if(!N)return void(y.value=!1);let Q=!0;const J=(G=(K=$?.value.heavyBlockMargin)!=null?K:$?.value.rootMargin)!=null?G:Jg,ee=M(N,{rootMargin:J,allowIdle:!O.value});F.value=ee,y.value=y.value||ee.isVisible.value,ee.whenVisible.then(()=>{Q&&F.value===ee&&(y.value=!0)}),H(()=>{Q=!1,ee.destroy(),F.value===ee&&(F.value=null)})},{immediate:!0}),ze(()=>t.node.content,N=>{B&&!y.value||(v.value=N)})):y.value=!0,qs(()=>{var N,z;(z=(N=F.value)==null?void 0:N.destroy)==null||z.call(N),F.value=null}),(N,z)=>(h(),V(Ms(T.value?k.value:"div"),Un({ref_key:"htmlRef",ref:g,class:"html-block-node","data-markstream-viewport-pending":i(O)&&!y.value?"true":void 0},T.value?c.value:void 0),{default:b(()=>[y.value?(h(),C(Me,{key:0},[R.value.mode==="structured"?(h(),C(Me,{key:0},[_.value!==null?(h(),C(Me,{key:0},[d("summary",oa(Ma(S.value)),f(_.value),17),I.value.length?(h(),V(i(r),Un({key:0},a.value,{nodes:I.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):W("",!0)],64)):(h(),V(i(r),Un({key:1},a.value,{nodes:w.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):R.value.mode==="dynamic"?(h(),V(i(p),{key:1,nodes:R.value.nodes},null,8,["nodes"])):R.value.mode==="text"?(h(),C("pre",xFe,f(R.value.content),1)):(h(),C("div",Un({key:3},l.value,{innerHTML:R.value.content}),null,16,EFe))],64)):(h(),C("div",TFe,[gn(N.$slots,"placeholder",{node:e.node},()=>[z[0]||(z[0]=d("span",{class:"html-block-node__placeholder-bar"},null,-1)),z[1]||(z[1]=d("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),z[2]||(z[2]=d("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);ib.install=e=>{e.component(ib.__name,ib)};const NFe={dir:"auto",class:"paragraph-node"},RFe=["custom-id"],Lg=bi(st({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamHtmlPolicy",void 0),o=uo("markstreamFade",void 0),a=uo("markstreamParseOptions",void 0),r=uo("markstreamCustomMarkdownIt",void 0),l=uo("markstreamNestedRendererProps",void 0),c=E(()=>{var $;return($=s?.value)!=null?$:"safe"}),u=E(()=>{var $;return($=t.parseOptions)!=null?$:a?.value}),p=E(()=>{var $;return($=t.customMarkdownIt)!=null?$:r?.value}),g=E(()=>{var $,O;return(O=t.customHtmlTags)!=null?O:($=l?.value)==null?void 0:$.customHtmlTags}),y=E(()=>{var $,O;const F=($=l?.value)!=null?$:{};return Os(En({},F),{customId:(O=t.customId)!=null?O:F.customId,customHtmlTags:g.value,parseOptions:u.value,customMarkdownIt:p.value,htmlPolicy:c.value})}),v=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1});function w($){var O;return $.type==="text"&&String((O=$.content)!=null?O:"").trim()===""}const k=E(()=>t.node.children.filter($=>!w($))),A=E(()=>k.value.length>0&&k.value.every($=>$.type==="image"||(function(O){var F;const B=(function(N){return N.type==="link"&&Array.isArray(N.children)?N.children.filter(z=>!w(z)):[]})(O);return B.length===1&&((F=B[0])==null?void 0:F.type)==="image"})($))),_=E(()=>new Set(Cv(g.value))),S=E(()=>{if(!A.value||k.value.length<=1)return t.node.children;const $=[];for(let O=0;O<t.node.children.length;O++){const F=t.node.children[O];if(!w(F)){$.push(F);continue}const B=$.length>0,N=t.node.children.slice(O+1).some(z=>!w(z));B&&N&&$.push(Os(En({},F),{content:" ",raw:" "}))}return $}),I=E(()=>o?.value===!1&&!n.value.text),x=E(()=>I.value?ev(S.value):null);function T($,O){return{node:$,"index-key":`${t.indexKey}-${O}`,"custom-id":t.customId,"custom-html-tags":g.value}}const R=E(()=>En({inline_code:tc,image:ih,link:Oc,hardbreak:ah,emphasis:Pc,strong:Mc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,html_inline:qu,html_block:ib,emoji:pu,checkbox:Hu,math_inline:Ip,checkbox_input:Hu,reference:Rc,footnote_anchor:ob,footnote_reference:Vu,text:rr},n.value)),M=E(()=>S.value.map(($,O)=>{var F;const B=(function(N){var z,H,U,L;if(N.type==="html_block"||N.type==="html_inline"){const K=String((z=N.tag)!=null?z:"").trim().toLowerCase()||qY(N.content);if(K&&!_.value.has(K)&&jY((H=N.content)!=null?H:N.raw,K)){const G=String((L=(U=N.content)!=null?U:N.raw)!=null?L:"");return{child:{type:"text",content:G,raw:G},component:rr,isCustomComponent:!1}}}return{child:N,component:R.value[N.type],isCustomComponent:!!(n.value[N.type]&&!ow(String(N.type)))}})($);return Os(En({},B),{index:O,key:`${t.indexKey||"paragraph"}-${O}`,customAttrs:B.isCustomComponent?uR(B.child,c.value):void 0,hasSlotChildren:Array.isArray(B.child.children)&&B.child.children.length>0,slotContent:String((F=B.child.content)!=null?F:""),originalChild:$})}));return($,O)=>(h(),C("p",NFe,[x.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(x.value),9,RFe)):(h(!0),C(Me,{key:1},ft(M.value,F=>{return h(),C(Me,{key:F.key},[A.value&&w(F.originalChild)?(h(),C(Me,{key:0},[j(f((B=F.originalChild,String((N=B.content)!=null?N:""))),1)],64)):F.isCustomComponent?(h(),V(Ms(F.component),Un({key:1,ref_for:!0},F.customAttrs,{node:F.child,loading:F.child.loading,"index-key":F.key,"custom-id":t.customId,"custom-html-tags":g.value,"is-dark":y.value.isDark}),{default:b(()=>[F.hasSlotChildren?(h(),V(i(v),Un({key:0,ref_for:!0},y.value,{nodes:F.child.children,"index-key":F.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):F.slotContent?(h(),V(i(v),Un({key:1,ref_for:!0},y.value,{content:F.slotContent,final:!F.child.loading,"index-key":`${F.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(h(),V(Ms(F.component),Un({key:2,ref_for:!0},T(F.child,F.index)),null,16))],64);var B,N}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Lg.install=e=>{e.component(Lg.__name,Lg)};const MFe={class:"table-node-wrapper"},$Fe=["aria-busy"],OFe={key:0},PFe=["custom-id"],DFe=["aria-label","onPointerdown"],LFe=["custom-id"],BFe={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},ab=bi(st({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=E(()=>{var _;return(_=t.node.loading)!=null&&_}),s=E(()=>{var _;return(_=t.node.rows)!=null?_:[]}),o=D(null),a=D([]);let r=null;const l=E(()=>t.node.header.cells.length),c=E(()=>a.value.some(_=>Number.isFinite(_)&&_>0)),u=E(()=>c.value?a.value.map(_=>_>0?{width:`${_}px`}:void 0):[]);si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade));const p=Kr(()=>t.customId),g=E(()=>!!p.value.text),y=E(()=>!!p.value.paragraph),v=new WeakMap;function w(_){const S=t.fade===!1&&!g.value,I=!y.value,x=v.get(_);if(x?.children===_.children&&x.textFastPath===S&&x.paragraphFastPath===I)return x.info;const T=vI(_.children,I,!0),R={simpleChildren:T,plainText:T&&S?ev(T):null};return v.set(_,{children:_.children,textFastPath:S,paragraphFastPath:I,info:R}),R}function k(_){if(!r)return;_.preventDefault();const S=r.startWidth+r.nextStartWidth,I=Math.min(48,Math.floor(S/2)),x=Math.max(I,Math.min(S-I,Math.round(r.startWidth+_.clientX-r.startX))),T=[...r.widths];T[r.index]=x,T[r.index+1]=S-x,a.value=T}function A(){r&&(window.removeEventListener("pointermove",k),window.removeEventListener("pointerup",A),window.removeEventListener("pointercancel",A),r=null)}return ze(l,()=>{A(),a.value=[]}),qs(A),(_,S)=>(h(),C("div",MFe,[d("table",{ref_key:"tableRef",ref:o,class:At(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[c.value?(h(),C("colgroup",OFe,[(h(!0),C(Me,null,ft(e.node.header.cells,(I,x)=>(h(),C("col",{key:x,style:Qn(u.value[x])},null,4))),128))])):W("",!0),d("thead",null,[d("tr",null,[(h(!0),C(Me,null,ft(e.node.header.cells,(I,x)=>(h(),C("th",{key:x,dir:"auto",class:At([I.align==="right"?"text-right":I.align==="center"?"text-center":"text-left"])},[w(I).plainText!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(w(I).plainText),9,PFe)):w(I).simpleChildren?(h(),V(i(fk),{key:1,nodes:w(I).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${x}`},null,8,["nodes","custom-id","index-key"])):(h(),V(i(gu),{key:2,nodes:I.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:S[0]||(S[0]=T=>_.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),x<e.node.header.cells.length-1?(h(),C("button",{key:3,type:"button",class:"table-node__resize-handle","aria-label":`Resize columns ${x+1} and ${x+2}`,onPointerdown:T=>(function(R,M){if(M.button!==0)return;const $=(function(){var B;const N=(B=o.value)==null?void 0:B.querySelectorAll("thead th");return Array.from(N??[],z=>Math.round(z.getBoundingClientRect().width))})(),O=$[R],F=$[R+1];O&&F&&(M.preventDefault(),r={index:R,startX:M.clientX,startWidth:O,nextStartWidth:F,widths:$},a.value=$,window.addEventListener("pointermove",k),window.addEventListener("pointerup",A),window.addEventListener("pointercancel",A))})(x,T)},null,40,DFe)):W("",!0)],2))),128))])]),d("tbody",null,[(h(!0),C(Me,null,ft(s.value,(I,x)=>(h(),C("tr",{key:x},[(h(!0),C(Me,null,ft(I.cells,(T,R)=>(h(),C("td",{key:R,class:At([T.align==="right"?"text-right":T.align==="center"?"text-center":"text-left"]),dir:"auto"},[w(T).plainText!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(w(T).plainText),9,LFe)):w(T).simpleChildren?(h(),V(i(fk),{key:1,nodes:w(T).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${x}-${R}`},null,8,["nodes","custom-id","index-key"])):(h(),V(i(gu),{key:2,nodes:T.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:S[1]||(S[1]=M=>_.$emit("copy",M))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,$Fe),m(Wa,{name:"table-node-fade"},{default:b(()=>[n.value?(h(),C("div",BFe,[gn(_.$slots,"loading",{isLoading:n.value},()=>[S[2]||(S[2]=d("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),S[3]||(S[3]=d("span",{class:"sr-only"},"Loading",-1))],!0)])):W("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);ab.install=e=>{e.component(ab.__name,ab)};const FFe={class:"hr-node"},x2=bi({},[["render",function(e,t){return h(),C("hr",FFe)}],["__scopeId","data-v-39b2349c"]]);x2.install=e=>{e.component(x2.__name,x2)};const zFe={class:"unknown-node"},U3=st({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(h(),C("div",zFe,f(e.node.raw),1))}),E2=bi(st({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=E(()=>`vmr-container vmr-container-${t.node.name}`),s=Kr(()=>t.customId),o=E(()=>En({text:rr,paragraph:Lg,heading:CA,inline_code:tc,link:Oc,image:ih,strong:Mc,emphasis:Pc,strikethrough:$c,insert:hu,subscript:mu,superscript:fu,checkbox:Hu,checkbox_input:Hu,hardbreak:ah,math_inline:Ip,reference:Rc,list:F0,math_block:hZ,table:ab},s.value));return(a,r)=>(h(),C("div",Un({class:n.value},e.node.attrs),[(h(!0),C(Me,null,ft(e.node.children,(l,c)=>{return h(),V(Ms((u=l.type,o.value[u]||U3)),{key:`${e.indexKey||"vmr-container"}-${c}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${c}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);E2.install=e=>{e.component(E2.__name,E2)};const UFe=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],tL=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function HFe(e){if(e<=255)return UFe[e];let t=0,n=tL.length-1;for(;t<=n;){const s=t+n>>1,o=tL[s];if(e<o[0])n=s-1;else{if(!(e>o[1]))return o[2];t=s+1}}return"L"}const VFe=/[ \t\n\r\f]+/g,qFe=/[\t\n\r\f]| {2,}|^ | $/;let Wx=null;const jFe=new RegExp("\\p{Script=Arabic}","u"),kh=new RegExp("\\p{M}","u"),hR=new RegExp("\\p{Nd}","u");function nL(e){return jFe.test(e)}function sL(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function sf(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const s=e.charCodeAt(t+1);if(s>=56320&&s<=57343){if(sL(s-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(sL(n))return!0}}return!1}const WFe=new Set([" "," ","","\uFEFF"]),KFe=new Set(["-","‐","–","—"]);function gZ(e,t){return!((function(n){const s=rb(n);return s!==null&&WFe.has(s)})(e)||t&&((function(n){const s=rb(n);return s!==null&&(gR.has(s)||tv.has(s))})(e)||(function(n){const s=rb(n);return s!==null&&KFe.has(s)})(e)))}const gR=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),xA=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),vR=new Set(["'","’"]),tv=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),GFe=new Set([":",".","،","؛"]),YFe=new Set(["၏"]),QFe=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function ZFe(e){if(yR(e))return!0;let t=!1;for(const n of e)if(tv.has(n)||bI(n))t=!0;else if(!t||!kh.test(n))return!1;return t}function XFe(e){for(const t of e)if(!gR.has(t)&&!tv.has(t))return!1;return e.length>0}function JFe(e){if(yR(e))return!0;for(const t of e)if(!(xA.has(t)||vR.has(t)||kh.test(t)||bI(t)))return!1;return e.length>0}function yR(e){let t=!1;for(const n of e)if(n!=="\\"&&!kh.test(n)){if(!(xA.has(n)||tv.has(n)||vR.has(n)))return!1;t=!0}return t}function yI(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const s=e.charCodeAt(n);if(s<56320||s>57343)return n;const o=n-1;if(o<0)return n;const a=e.charCodeAt(o);return a>=55296&&a<=56319?o:n}function rb(e){if(e.length===0)return null;const t=yI(e,e.length);return e.slice(t)}const eze=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function bI(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,s){for(let o=0;o<s.length;o+=2)if(n>=s[o]&&n<=s[o+1])return!0;return!1})(t,eze)}function tze(e){const t=(function(n){for(const s of n)if(!kh.test(s))return s;return null})(e);return t!==null&&hR.test(t)}function nze(e){const t=Array.from(e);let n=t.length;for(;n>0;){const s=t[n-1];if(kh.test(s))n--;else{if(!xA.has(s)&&!vR.has(s))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function sze(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function oL(e,t,n,s){const o=t[s],a=e[s];if(o==null)return a;const r=n[s];if(a.length===r)return a;const l=o.repeat(r);return e[s]=l,l}function iL(e,t){return e&&t!==null&&GFe.has(t)}function oze(e){const t=rb(e);return t!==null&&YFe.has(t)}function ize(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function H3(e){let t=e.length;for(;t>0;){const n=yI(e,t),s=e.slice(n,t);if(QFe.has(s))return!0;if(!tv.has(s))return!1;t=n}return!1}function aze(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
|
|
595
|
+
`:""}${te}`;return g=ae,y}),w=E(()=>{var ae;return t.showLineNumbers===!0&&((ae=t.node)==null?void 0:ae.diff)===!0}),k=E(()=>w.value&&t.diffInline===!0),A=E(()=>{const ae=Number(t.reservedHeightPx);if(!Number.isFinite(ae)||ae<=0)return;const te=`${Math.ceil(ae)}px`;return a.value?{maxHeight:te,overflow:"auto"}:{height:te,minHeight:te,maxHeight:te,overflow:"auto"}}),_=["diff ","index ","--- ","+++ ","@@ "];function S(ae){return String(ae??"").trim().length===0}function I(ae,te="context",Z={}){const Ce=S(ae);return{code:ae,kind:Ce&&te!=="hunk"&&te!=="spacer"&&!Z.preserveBlankKind?"context":te,empty:Ce}}function x(ae){const te=n(ae,a.value);return te?te.split(/\r\n|\n|\r/):[]}function T(ae,te){return!S(ae[te])||te<ae.length-1}function R(ae){return ae.startsWith("-")&&!ae.startsWith("---")}function M(ae){return ae.startsWith("+")&&!ae.startsWith("+++")}function $(ae){return ae.some(te=>_.some(Z=>te.startsWith(Z)))}function O(ae,te){return te||!ae.startsWith(" ")||ae.startsWith(" ")?ae:` ${ae}`}function F(ae,te){const Z=ae.length,Ce=te.length,Fe=[];let Pe=0;for(;Pe<Z&&Pe<Ce&&ae[Pe]===te[Pe];)Fe.push({originalIndex:Pe,modifiedIndex:Pe}),Pe++;const fe=[];let be=Z-1,ue=Ce-1;for(;be>=Pe&&ue>=Pe&&ae[be]===te[ue];)fe.unshift({originalIndex:be,modifiedIndex:ue}),be--,ue--;const ye=be-Pe+1,ke=ue-Pe+1;if(ye<=0||ke<=0||a.value||(ye+1)*(ke+1)>15e5)return Fe.concat(fe);const ve=ke+1,xe=new Uint32Array((ye+1)*(ke+1));for(let me=ye-1;me>=0;me--)for(let Be=ke-1;Be>=0;Be--){const He=me*ve+Be;if(ae[Pe+me]===te[Pe+Be])xe[He]=xe[(me+1)*ve+Be+1]+1;else{const Le=xe[(me+1)*ve+Be],Ee=xe[me*ve+Be+1];xe[He]=Le>=Ee?Le:Ee}}const se=[];let de=0,De=0;for(;de<ye&&De<ke;)ae[Pe+de]===te[Pe+De]?(se.push({originalIndex:Pe+de,modifiedIndex:Pe+De}),de++,De++):xe[(de+1)*ve+De]>=xe[de*ve+De+1]?de++:De++;return Fe.concat(se,fe)}function B(ae){var te;const Z=(function(){var ue,ye;const ke=t.diffHideUnchangedRegions;if(ke==null||ke===!1)return null;const ve=ke===!0?{}:ke;return ve.enabled===!1?null:{contextLineCount:Math.max(0,Math.floor((ue=ve.contextLineCount)!=null?ue:2)),minimumLineCount:Math.max(1,Math.floor((ye=ve.minimumLineCount)!=null?ye:4))}})();if(!Z||ae.length<1||ae.length>2||ae.length===2&&ae[0].lines.length!==ae[1].lines.length)return ae;const Ce=ae[0].lines,Fe=(te=ae[1])==null?void 0:te.lines,Pe=ue=>Ce[ue].kind==="context"&&(Fe===void 0||Fe[ue].kind==="context"&&Ce[ue].code===Fe[ue].code),fe=[];let be=0;for(;be<Ce.length;){const ue=be;for(;be<Ce.length&&Pe(be);)be++;const ye=be;if(ye-ue>=Z.minimumLineCount){const ke=ue+(ue===0?0:Z.contextLineCount),ve=ye-(ye===Ce.length?0:Z.contextLineCount);ve-ke>=Z.minimumLineCount&&fe.push({start:ke,end:ve})}be===ue&&be++}return fe.length?ae.map((ue,ye)=>{const ke=[];let ve=0;for(const xe of fe)ke.push(...ue.lines.slice(ve,xe.start)),ke.push({code:ye===0?"Unmodified lines":"",kind:"collapsed",empty:!1,key:`${ue.key}-collapsed-${xe.start}-${xe.end}`,number:""}),ve=xe.end;return ke.push(...ue.lines.slice(ve)),Os(En({},ue),{lines:ke})}):ae}const N=E(()=>{var ae,te,Z,Ce;if(!w.value)return[];const Fe=(function(ye){const ke=ye.some(xe=>R(xe)),ve=ye.some(xe=>M(xe));return ke&&ve||(function(){var xe,se,de,De;if(s.value==="diff")return!0;const me=(De=(de=String((se=(xe=t.node)==null?void 0:xe.raw)!=null?se:"").split(/\r?\n/,1)[0])==null?void 0:de.trim())!=null?De:"";return/^`{3,}\s*diff(?:\s|$)|^~{3,}\s*diff(?:\s|$)/.test(me)})()&&(ke||ve)})(p.value),Pe=(function(){var ye,ke;return((ye=t.node)==null?void 0:ye.originalCode)!=null||((ke=t.node)==null?void 0:ke.updatedCode)!=null})();if(k.value){const ye=Pe?(function(ke,ve){const xe=x(ke),se=x(ve),de=F(xe,se);if(de.length>0){const Ee=[];let kt=0,ot=0;for(const We of de){for(;kt<We.originalIndex;)Ee.push(Os(En({},I(xe[kt],"removed",{preserveBlankKind:T(xe,kt)})),{key:`inline-removed-source-${kt}`,number:kt+1})),kt++;for(;ot<We.modifiedIndex;)Ee.push(Os(En({},I(se[ot],"added",{preserveBlankKind:T(se,ot)})),{key:`inline-added-source-${ot}`,number:ot+1})),ot++;Ee.push(Os(En({},I(se[We.modifiedIndex])),{key:`inline-context-source-${We.originalIndex}-${We.modifiedIndex}`,number:We.modifiedIndex+1})),kt=We.originalIndex+1,ot=We.modifiedIndex+1}for(;kt<xe.length;)Ee.push(Os(En({},I(xe[kt],"removed",{preserveBlankKind:T(xe,kt)})),{key:`inline-removed-source-${kt}`,number:kt+1})),kt++;for(;ot<se.length;)Ee.push(Os(En({},I(se[ot],"added",{preserveBlankKind:T(se,ot)})),{key:`inline-added-source-${ot}`,number:ot+1})),ot++;return Ee}const De=[];let me=0,Be=xe.length-1,He=se.length-1;for(;me<=Be&&me<=He&&xe[me]===se[me];)De.push(Os(En({},I(se[me])),{key:`inline-prefix-${me}`,number:me+1})),me++;const Le=[];for(;Be>=me&&He>=me&&xe[Be]===se[He];)Le.unshift(Os(En({},I(se[He])),{key:`inline-suffix-${He}`,number:He+1})),Be--,He--;for(let Ee=me;Ee<=Be;Ee++)De.push(Os(En({},I(xe[Ee],"removed",{preserveBlankKind:T(xe,Ee)})),{key:`inline-removed-source-${Ee}`,number:Ee+1}));for(let Ee=me;Ee<=He;Ee++)De.push(Os(En({},I(se[Ee],"added",{preserveBlankKind:T(se,Ee)})),{key:`inline-added-source-${Ee}`,number:Ee+1}));return De.concat(Le)})((ae=t.node)==null?void 0:ae.originalCode,(te=t.node)==null?void 0:te.updatedCode):(function(ke){const ve=[];let xe=1,se=1;const de=$(ke);for(const[De,me]of ke.entries())if(me.startsWith("@@")){const Be=me.match(/^@@\s+-(\d+)(?:,\d+)?\s+\+(\d+)(?:,\d+)?\s+@@/);Be&&(xe=Number(Be[1]),se=Number(Be[2])),ve.push(Os(En({},I(me,"hunk")),{key:`inline-hunk-${De}`,number:""}))}else if(R(me))ve.push(Os(En({},I(O(me.slice(1),de),"removed",{preserveBlankKind:!0})),{key:`inline-removed-${De}`,number:xe++}));else if(M(me))ve.push(Os(En({},I(O(me.slice(1),de),"added",{preserveBlankKind:!0})),{key:`inline-added-${De}`,number:se++}));else{const Be=de&&me.startsWith(" ")?me.slice(1):me;ve.push(Os(En({},I(Be)),{key:`inline-context-${De}`,number:se})),xe++,se++}return ve})(p.value);return B([{key:"inline",className:"markstream-pre__diff-pane--inline",lines:ye}])}if(!Fe&&Pe)return(function(ye,ke){const ve=x(ye),xe=x(ke),se=F(ve,xe),de=[],De=[];let me=0,Be=0,He=0;const Le=(Ee,kt)=>{const ot=Math.max(Ee-me,kt-Be);for(let We=0;We<ot;We++){const vt=me+We,ct=Be+We;de.push(vt<Ee?Os(En({},I(ve[vt],"removed",{preserveBlankKind:T(ve,vt)})),{key:`original-changed-${He}-${vt}`,number:vt+1}):Os(En({},I("","spacer")),{key:`original-spacer-${He}-${We}`,number:""})),De.push(ct<kt?Os(En({},I(xe[ct],"added",{preserveBlankKind:T(xe,ct)})),{key:`modified-changed-${He}-${ct}`,number:ct+1}):Os(En({},I("","spacer")),{key:`modified-spacer-${He}-${We}`,number:""}))}me=Ee,Be=kt,He++};for(const Ee of se)Le(Ee.originalIndex,Ee.modifiedIndex),de.push(Os(En({},I(ve[Ee.originalIndex])),{key:`original-context-${Ee.originalIndex}-${Ee.modifiedIndex}`,number:Ee.originalIndex+1})),De.push(Os(En({},I(xe[Ee.modifiedIndex])),{key:`modified-context-${Ee.originalIndex}-${Ee.modifiedIndex}`,number:Ee.modifiedIndex+1})),me=Ee.originalIndex+1,Be=Ee.modifiedIndex+1;return Le(ve.length,xe.length),B([{key:"original",className:"markstream-pre__diff-pane--original",lines:de},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:De}])})((Z=t.node)==null?void 0:Z.originalCode,(Ce=t.node)==null?void 0:Ce.updatedCode);const fe=[],be=[],ue=$(p.value);for(const ye of p.value)if(ye.startsWith("@@"))fe.push(I(ye,"hunk")),be.push(I(ye,"hunk"));else if(ye.startsWith("-")&&!ye.startsWith("---"))fe.push(I(O(ye.slice(1),ue),"removed",{preserveBlankKind:!0}));else if(ye.startsWith("+")&&!ye.startsWith("+++"))be.push(I(O(ye.slice(1),ue),"added",{preserveBlankKind:!0}));else{const ke=ue&&ye.startsWith(" ")?ye.slice(1):ye;fe.push(I(ke)),be.push(I(ke))}return B([{key:"original",className:"markstream-pre__diff-pane--original",lines:fe.map((ye,ke)=>Os(En({},ye),{key:`original-${ke}`,number:ke+1}))},{key:"modified",className:"markstream-pre__diff-pane--modified",lines:be.map((ye,ke)=>Os(En({},ye),{key:`modified-${ke}`,number:ke+1}))}])}),z=E(()=>N.value.some(ae=>ae.lines.some(te=>te.kind==="collapsed"))),H=E(()=>{const ae=s.value;return ae?`Code block: ${ae}`:"Code block"}),U=D(null),L=D([]);let K=null,G=!1,Q=null;function J(ae){const te=Number.parseFloat(String(ae??""));return Number.isFinite(te)&&te>0?te:0}function ee(ae,te){var Z;if(!ae)return te;if(ae.classList.contains("markstream-pre__diff-line--collapsed"))return 32;const Ce=ae.querySelector(".markstream-pre__diff-content"),Fe=Ce?.getBoundingClientRect(),Pe=(Z=Fe?.height)!=null?Z:0;return Math.max(te,Math.ceil(Pe))}function ie(){G||typeof window>"u"||(K!=null&&window.cancelAnimationFrame(K),K=window.requestAnimationFrame(()=>{K=null,G||(function(){var ae,te;K=null;const Z=U.value;if(!Z||!w.value||k.value||!Z.classList.contains("is-wrap"))return void(L.value.length&&(L.value=[]));const Ce=(function(ke){const ve=window.getComputedStyle(ke),xe=J(ve.getPropertyValue("--markstream-pre-diff-line-height"));if(xe>0)return xe;const se=J(ve.lineHeight);return se>0?se:18})(Z),Fe=Array.from(Z.querySelectorAll(".markstream-pre__diff-pane--original .markstream-pre__diff-line")),Pe=Array.from(Z.querySelectorAll(".markstream-pre__diff-pane--modified .markstream-pre__diff-line")),fe=Math.max(Fe.length,Pe.length),be=[];for(let ke=0;ke<fe;ke++){const ve=ee((ae=Fe[ke])!=null?ae:null,Ce),xe=ee((te=Pe[ke])!=null?te:null,Ce),se=Math.max(Ce,ve,xe);be.push({rowHeight:se,originalHeight:ve,modifiedHeight:xe})}var ue,ye;ue=L.value,ye=be,ue.length===ye.length&&ue.every((ke,ve)=>{const xe=ye[ve];return xe&&Math.abs(ke.rowHeight-xe.rowHeight)<=.5&&Math.abs(ke.originalHeight-xe.originalHeight)<=.5&&Math.abs(ke.modifiedHeight-xe.modifiedHeight)<=.5})||(L.value=be)})()}))}function le(ae){Q?.disconnect(),Q=null,ae&&w.value&&!k.value&&typeof ResizeObserver<"u"&&(Q=new ResizeObserver(()=>{ie()}),Q.observe(ae))}function oe(ae,te){const Z=L.value[ae];if(!Z)return;const Ce=te==="original"?Z.originalHeight:Z.modifiedHeight;return{"--markstream-pre-diff-synced-row-height":`${Math.ceil(Z.rowHeight)}px`,"--markstream-pre-diff-content-height":`${Math.ceil(Ce)}px`}}return ze(U,ae=>{le(ae),vn(()=>ie())},{flush:"post"}),ze([w,k,N],()=>{le(U.value),vn(()=>ie())},{flush:"post",immediate:!0}),qs(()=>{G=!0,K!=null&&(window.cancelAnimationFrame(K),K=null),Q?.disconnect(),Q=null}),(ae,te)=>(h(),C("pre",{ref_key:"preRef",ref:U,style:Qn(A.value),class:At([o.value,{"markstream-pre--line-numbers":t.showLineNumbers,"markstream-pre--diff-preview":w.value,"markstream-pre--diff-inline":k.value,"markstream-pre--diff-collapsed":z.value}]),"aria-busy":a.value,"aria-label":H.value,"data-language":s.value,"data-markstream-line-numbers":t.showLineNumbers?"1":void 0,"data-markstream-pre":"1",tabindex:"0"},[w.value?(h(),C("code",WBe,[(h(!0),C(Me,null,ft(N.value,Z=>(h(),C("span",{key:Z.key,class:At(["markstream-pre__diff-pane",Z.className])},[d("span",KBe,[(h(!0),C(Me,null,ft(Z.lines,(Ce,Fe)=>(h(),C("span",{key:Ce.key,class:At(["markstream-pre__diff-line",[`markstream-pre__diff-line--${Ce.kind}`,{"markstream-pre__diff-line--empty":Ce.empty}]]),style:Qn(oe(Fe,Z.key))},[te[0]||(te[0]=d("span",{class:"markstream-pre__diff-rail","aria-hidden":"true"},null,-1)),d("span",GBe,f(Ce.number),1),d("span",YBe,[d("span",QBe,f(Ce.code),1)])],6))),128))])],2))),128))])):(h(),C(Me,{key:1},[t.showLineNumbers?(h(),C("span",ZBe,[d("span",{class:"markstream-pre__line-numbers-text",textContent:f(v.value)},null,8,XBe)])):W("",!0),d("code",{translate:"no",class:"markstream-pre__code",textContent:f(r.value)},null,8,JBe)],64))],14,jBe))}});nu.install=e=>{e.component(nu.__name,nu)};const eFe={key:0},rr=bi(st({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const t=e,n=Ah(),s=uo("markstreamFade",void 0),o=uo("markstreamTextStreamState",void 0),a=uo("markstreamStreamVersion",void 0),r=E(()=>{const A=n.fade;return A===""||A===!0||A==="true"||A!==!1&&A!=="false"&&void 0}),l=E(()=>typeof r.value=="boolean"?r.value:typeof s?.value!="boolean"||s.value),c=E(()=>{var A;const _=(A=n["index-key"])!=null?A:n.indexKey;return _==null||_===""?"":String(_)}),u=D(t.node.content),p=D("");let g=a?.value;const y=D(0);function v(){return u.value+p.value}function w(){p.value&&(u.value=v(),p.value="")}ze([()=>t.node.content,c,l,()=>a?.value],([A,_,S,I])=>{const x=String(A??""),T=c.value,R=I!==g;g=I;const M=YQ({nextContent:x,persistedContent:T?o?.get(T):void 0,currentState:{settledContent:u.value,streamedDelta:p.value},typewriterEnabled:l.value,streamRenderVersionChanged:R});u.value=M.settledContent,p.value=M.streamedDelta,M.appended&&(y.value+=1),T&&o?.set(T,x)},{immediate:!0}),ze(l,A=>{var _;A||(_=v(),u.value=_,p.value="")});const k=E(()=>y.value%2==0?"text-node-stream-delta--a":"text-node-stream-delta--b");return(A,_)=>(h(),C("span",{class:At([[e.node.center?"text-node-center":""],"text-node"])},[u.value?(h(),C("span",eFe,f(u.value),1)):W("",!0),p.value?(h(),C("span",{key:1,class:At(["text-node-stream-delta",[k.value]]),onAnimationend:w},f(p.value),35)):W("",!0)],2))}}),[["__scopeId","data-v-142928b1"]]);function Ey(e,t,n){return st({name:e,inheritAttrs:!1,setup(s,{attrs:o,slots:a}){var r,l;const c=fR(),u=dR(),p=pR(),g=typeof window<"u"&&((l=(r=Nd())==null?void 0:r.vnode.el)==null?void 0:l.nodeType)===1,y=D(typeof window>"u"||g||!p.value),v=gi(null);let w=null;function k(A){const _=A&&"$el"in A?A.$el:A;v.value=_ instanceof HTMLElement?_:null}return typeof window<"u"&&ze([v,p],([A,_],S,I)=>{if(w?.destroy(),w=null,!_||y.value)return void(y.value=!0);if(!A)return;let x=!0;const T=c(A,{rootMargin:u?.value.heavyBlockMargin,allowIdle:!1});w=T,y.value=T.isVisible.value,T.whenVisible.then(()=>{x&&w===T&&(y.value=!0)}),I(()=>{x=!1,T.destroy(),w===T&&(w=null)})},{immediate:!0}),qs(()=>{w?.destroy(),w=null}),()=>jn(y.value?t:n,Os(En({},o),{ref:k}),a)}})}rr.install=e=>{e.component(rr.__name,rr)};const gI=st({name:"CodeBlockNodeLoading",inheritAttrs:!1,props:["node","isDark","loading","stream","theme","darkTheme","lightTheme","isShowPreview","monacoOptions","enableFontSizeControl","minWidth","maxWidth","themes","showHeader","showCopyButton","showExpandButton","showPreviewButton","showCollapseButton","showFontSizeButtons","showTooltips","htmlPreviewAllowScripts","htmlPreviewSandbox","customId","estimatedHeightPx","estimatedContentHeightPx","estimatedDiffInline"],emits:["previewCode","copy"],setup(e,{attrs:t}){const n=e;return()=>{var s,o,a,r,l,c,u;const p=_A(String((o=(s=n.node)==null?void 0:s.language)!=null?o:"")),g=D9[p]||(p?p.charAt(0).toUpperCase()+p.slice(1):D9[""]),y=VBe(n.node),v=qBe(String((r=(a=n.node)==null?void 0:a.raw)!=null?r:""),g,y),w=n.monacoOptions,k=y&&((l=n.estimatedDiffInline)!=null?l:mR(w??{},typeof window>"u"?0:window.innerWidth)),A=w?.diffAppearance,_=A==="dark"||A!=="light"&&n.isDark===!0,S=typeof w?.fontSize=="number"&&Number.isFinite(w.fontSize)&&w.fontSize>0?w.fontSize:12,I=typeof w?.lineHeight=="number"&&Number.isFinite(w.lineHeight)&&w.lineHeight>0?w.lineHeight:S===12?18:Math.max(12,Math.round(1.5*S)),x=typeof w?.tabSize=="number"&&Number.isFinite(w.tabSize)&&w.tabSize>0?w.tabSize:4,T=y?0:8,R=typeof((c=w?.padding)==null?void 0:c.top)=="number"&&Number.isFinite(w.padding.top)&&w.padding.top>=0?w.padding.top:T,M=typeof((u=w?.padding)==null?void 0:u.bottom)=="number"&&Number.isFinite(w.padding.bottom)&&w.padding.bottom>=0?w.padding.bottom:T,$=typeof w?.fontFamily=="string"?w.fontFamily.trim():"",O=En(En({fontSize:`${S}px`,lineHeight:`${I}px`,tabSize:x,paddingTop:`${R}px`,paddingBottom:`${M}px`,"--markstream-pre-line-number-top":`${R}px`},y?{"--markstream-pre-diff-line-height":`${I}px`}:{}),$?{"--markstream-code-font-family":$}:{}),F=()=>jn("button",{class:"code-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded leading-none shrink-0","aria-hidden":"true",disabled:!0,tabindex:-1,type:"button"},[jn("svg",{class:"action-icon"})]),B=n.isShowPreview!==!1&&(p==="html"||p==="svg"),N=n.showFontSizeButtons!==!1&&n.enableFontSizeControl!==!1||n.showExpandButton!==!1||B&&n.showPreviewButton!==!1,z=U=>{if(U!=null)return typeof U=="number"?`${U}px`:String(U)},H=En(En(En({"--markstream-code-layout-character-width":"1ch"},z(n.minWidth)?{minWidth:z(n.minWidth)}:{}),z(n.maxWidth)?{maxWidth:z(n.maxWidth)}:{}),y?{}:{color:"var(--vscode-editor-foreground, var(--markstream-code-fallback-fg, var(--code-fg)))",backgroundColor:"var(--vscode-editor-background, var(--markstream-code-fallback-bg, var(--code-bg)))",borderColor:"var(--markstream-code-border-color, var(--code-border))"});return jn("div",Os(En({},t),{class:["code-block-container","rounded-lg","border",{dark:n.isDark===!0,"is-rendering":n.loading!==!1,"is-dark":_,"is-diff":y,"is-plain-text":p===""||p==="plaintext"||p==="text"},t.class],style:[H,t.style],"data-markstream-code-block":"1","data-markstream-enhanced":"false","data-markstream-code-block-state":n.loading?"streaming":"settled","data-markstream-code-loading":"1"}),[n.showHeader===!1?null:jn("div",{class:"code-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)] border-[var(--code-border)] bg-[var(--code-header-bg)] text-[var(--code-fg)]"},[jn("div",{class:"code-header-main"},[jn("span",{class:"icon-slot h-4 w-4 flex-shrink-0"}),jn("div",{class:"code-header-copy"},[jn("div",{class:"code-header-title"},v.title),v.caption?jn("div",{class:"code-header-caption"},v.caption):null])]),jn("div",{class:"flex items-center gap-0.5",style:{visibility:"hidden"}},[y?jn("div",{class:"code-diff-stats","aria-hidden":"true"},[jn("span",{class:"code-diff-stat removed"},"-0"),jn("span",{class:"code-diff-stat added"},"+0")]):null,n.showCopyButton===!1?null:F(),n.showCollapseButton===!1?null:F(),N?jn("div",{class:"relative"},[F()]):null])]),jn("div",{class:"code-block-shell-content",style:n.stream!==!1||n.loading===!1?void 0:{display:"none"}},[jn(nu,{node:n.node,loading:n.loading,showLineNumbers:!0,reservedHeightPx:y?void 0:n.estimatedContentHeightPx,diffInline:k,diffHideUnchangedRegions:y?HBe(w?.diffHideUnchangedRegions):void 0,class:"code-pre-fallback",style:O,"data-markstream-code-loading":"1"})]),jn("div",{class:"code-loading-placeholder",style:n.stream===!1&&n.loading!==!1?void 0:{display:"none"}},[jn("div",{class:"loading-skeleton"},[jn("div",{class:"skeleton-line"}),jn("div",{class:"skeleton-line"}),jn("div",{class:"skeleton-line short"})])]),jn("span",{class:"sr-only","aria-live":"polite",role:"status"})])}}}),jx=Ey("ViewportDeferredCodeBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./CodeBlockNode-CHAHxNT_.js"),__vite__mapDeps([5,3,6,0,1]))).default}catch(e){return console.warn('[markstream-vue] Optional peer dependency stream-diffs is missing. Falling back to preformatted code rendering. To enable enhanced code block features, please install "stream-diffs".',e),nu}}),loadingComponent:gI,delay:0,suspensible:!1}),gI),Ip=Jp(()=>ta(null,null,function*(){var e;if(((e=(function(){const t=Reflect.get(globalThis,"process");return t?.env})())==null?void 0:e.NODE_ENV)==="test"&&typeof window<"u")return t=>{var n,s,o,a;return jn(rr,Os(En({},t),{node:{type:"text",content:(s=t.node.raw)!=null?s:`$${(n=t.node.content)!=null?n:""}$`,raw:(a=t.node.raw)!=null?a:`$${(o=t.node.content)!=null?o:""}$`}}))};try{return yield eZ(),(yield Sa(()=>import("./index7-gQz7OpQP.js"),__vite__mapDeps([7,3,0,1]))).default}catch(t){console.warn('[markstream-vue] Optional peer dependencies for MathInlineNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',t)}return t=>{var n,s,o,a;return jn(rr,Os(En({},t),{node:{type:"text",content:(s=t.node.raw)!=null?s:`$${(n=t.node.content)!=null?n:""}$`,raw:(a=t.node.raw)!=null?a:`$${(o=t.node.content)!=null?o:""}$`}}))}})),hZ=Jp(()=>ta(null,null,function*(){try{return yield eZ(),(yield Sa(()=>import("./index6-DPjClPCs.js"),__vite__mapDeps([8,3,0,1]))).default}catch(e){console.warn('[markstream-vue] Optional peer dependencies for MathBlockNode are missing. Falling back to text rendering. To enable full math rendering features, please install "katex".',e)}return e=>{var t,n,s,o;return jn(rr,Os(En({},e),{node:{type:"text",content:(n=e.node.raw)!=null?n:`$$${(t=e.node.content)!=null?t:""}$$`,raw:(o=e.node.raw)!=null?o:`$$${(s=e.node.content)!=null?s:""}$$`}}))}})),Rc=bi(st({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(t,n)=>(h(),C("span",{class:"reference-node cursor-pointer text-xs rounded-md px-1.5 mx-0.5",role:"button",tabindex:"0",onClick:n[0]||(n[0]=s=>t.$emit("click",s,e.node.id,e.messageId,e.threadId)),onMouseenter:n[1]||(n[1]=s=>t.$emit("mouseEnter",s,e.node.id,e.messageId,e.threadId)),onMouseleave:n[2]||(n[2]=s=>t.$emit("mouseLeave",s,e.node.id,e.messageId,e.threadId))},f(e.node.id),33))}),[["__scopeId","data-v-775c65e4"]]);Rc.install=e=>{e.component(Rc.__name,Rc)};const tFe={class:"superscript-node"},fu=bi(st({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,footnote_reference:Vu,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,emoji:pu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("sup",tFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"superscript"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"superscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-24160b22"]]);fu.install=e=>{e.component(fu.__name,fu)};const nFe={class:"subscript-node"},mu=bi(st({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,footnote_reference:Vu,strikethrough:$c,highlight:ju,insert:hu,superscript:fu,emoji:pu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("sub",nFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"subscript"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"subscript"}-${l}`,"fallback-to-text":""},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-197fa13b"]]);mu.install=e=>{e.component(mu.__name,mu)};const sFe={class:"strong-node"},Mc=bi(st({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("strong",sFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"strong"}-${l}`,components:s.value,node:r,"index-key":`${e.indexKey||"strong"}-${l}`,"custom-id":t.customId},null,8,["components","node","index-key","custom-id"]))),128))]))}}),[["__scopeId","data-v-a8647104"]]);Mc.install=e=>{e.component(Mc.__name,Mc)};const oFe={class:"strikethrough-node"},$c=bi(st({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("del",oFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"strikethrough"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-b7a531fa"]]);$c.install=e=>{e.component($c.__name,$c)};const iFe=["href","title","aria-label","aria-hidden","target","rel"],aFe=["aria-hidden"],rFe={class:"link-text-wrapper relative inline-flex"},lFe={class:"leading-[normal] link-text"},Oc=bi(st({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const t=e,n=uo("markstreamShowTooltips",void 0),s=E(()=>{const _=n?.value;return typeof _=="boolean"?_:t.showTooltip}),o=E(()=>{var _,S,I,x,T;const R=t.underlineBottom!==void 0?typeof t.underlineBottom=="number"?`${t.underlineBottom}px`:String(t.underlineBottom):"-3px",M=(_=t.animationOpacity)!=null?_:.35,$=Math.max(.12,Math.min(.5*M,M)),O={"--underline-height":`${(S=t.underlineHeight)!=null?S:2}px`,"--underline-bottom":R,"--underline-opacity":String(M),"--underline-rest-opacity":String($),"--underline-duration":`${(I=t.animationDuration)!=null?I:1.6}s`,"--underline-timing":(x=t.animationTiming)!=null?x:"ease-in-out","--underline-iteration":typeof t.animationIteration=="number"?String(t.animationIteration):(T=t.animationIteration)!=null?T:"infinite"};return t.color&&(O["--link-color"]=t.color),O}),a=Kr(()=>t.customId),r=E(()=>En({text:rr,strong:Mc,strikethrough:$c,emphasis:Pc,image:ih,html_inline:qu,inline_code:tc},a.value)),l=Ah(),c=E(()=>{var _,S;const I=(_=t.node)==null?void 0:_.attrs;if(!I||typeof I!="object")return{};const x={};if(Array.isArray(I))for(const T of I)Array.isArray(T)&&T[0]&&(x[String(T[0])]=String((S=T[1])!=null?S:""));else for(const[T,R]of Object.entries(I))T&&R!=null&&R!==!1&&(x[T]=R===!0?"":String(R));return W9(x,"safe","a")}),u=E(()=>En(En({},l),c.value)),p=E(()=>{var _,S;return W9({href:String((S=(_=t.node)==null?void 0:_.href)!=null?S:"")},"safe","a").href}),g=E(()=>{if(!p.value)return;const _=u.value.target;return(typeof _=="string"?_.trim():String(_??"").trim())||(cOe(p.value)?"_blank":void 0)}),y=E(()=>{var _;return String((_=g.value)!=null?_:"").trim().toLowerCase()==="_blank"}),v=E(()=>{if(!p.value)return;const _=u.value.rel,S=new Set((typeof _=="string"?_:String(_??"")).split(/\s+/).filter(Boolean)),I=new Set(Array.from(S).filter(x=>x.toLowerCase()!=="opener"));return y.value&&(I.add("noopener"),I.add("noreferrer")),I.size>0?Array.from(I).join(" "):void 0}),w=E(()=>{const _=En({},u.value);return delete _.title,delete _.href,delete _.target,delete _.rel,_});function k(){s.value&&xBe()}const A=E(()=>{var _,S;const I=(_=t.node)==null?void 0:_.title;return typeof I=="string"&&I.trim().length>0?I:String((S=p.value)!=null?S:"")});return(_,S)=>{var I,x;return e.node.loading?(h(),C("span",Un({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},i(l),{style:o.value}),[d("span",rFe,[d("span",lFe,[m(i(rr),{class:"leading-[normal] link-text",node:{type:"text",content:String((I=e.node.text)!=null?I:""),raw:String((x=e.node.text)!=null?x:"")},"index-key":`${e.indexKey||"link-text"}-loading`},null,8,["node","index-key"])]),S[1]||(S[1]=d("span",{class:"link-loading-indicator","aria-hidden":"true"},null,-1))])],16,aFe)):(h(),C("a",Un({key:0,class:"link-node",href:p.value,title:s.value?"":A.value,"aria-label":`Link: ${A.value}`,"aria-hidden":e.node.loading?"true":"false",target:g.value,rel:v.value},w.value,{style:o.value,onMouseenter:S[0]||(S[0]=T=>(function(R){var M,$,O,F;if(!s.value)return;const B=R,N=B?.clientX!=null&&B?.clientY!=null?{x:B.clientX,y:B.clientY}:void 0,z=((M=t.node)==null?void 0:M.title)||(($=p.value)!=null&&$.includes("xn--")&&((F=(O=t.node)==null?void 0:O.text)!=null&&F.includes("://"))?t.node.text:p.value)||"";CBe(R.currentTarget,z,"top",!1,N)})(T)),onMouseleave:k}),[(h(!0),C(Me,null,ft(e.node.children,(T,R)=>(h(),V(i(yf),{key:`${e.indexKey||"emphasis"}-${R}`,components:r.value,node:T,"custom-id":t.customId,"index-key":`${e.indexKey||"link-text"}-${R}`},null,8,["components","node","custom-id","index-key"]))),128))],16,iFe))}}}),[["__scopeId","data-v-367e6ca4"]]);Oc.install=e=>{e.component(Oc.__name,Oc)};const cFe={class:"insert-node"},hu=bi(st({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("ins",cFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"insert"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-1e2c29d4"]]);hu.install=e=>{e.component(hu.__name,hu)};const uFe={class:"highlight-node"},ju=bi(st({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,emphasis:Pc,strikethrough:$c,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("mark",uFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"highlight"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-7a62982a"]]);ju.install=e=>{e.component(ju.__name,ju)};const dFe={class:"emphasis-node"},Pc=bi(st({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>En({text:rr,inline_code:tc,link:Oc,html_inline:qu,strong:Mc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,footnote_reference:Vu,math_inline:Ip,reference:Rc},n.value));return(o,a)=>(h(),C("em",dFe,[(h(!0),C(Me,null,ft(e.node.children,(r,l)=>(h(),V(i(yf),{key:`${e.indexKey||"emphasis"}-${l}`,components:s.value,node:r,"custom-id":t.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["components","node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-2a5aafbf"]]);Pc.install=e=>{e.component(Pc.__name,Pc)};const pFe={class:"hard-break"},ah=bi(st({__name:"HardBreakNode",props:{node:{}},setup:e=>(t,n)=>(h(),C("br",pFe))}),[["__scopeId","data-v-50c58f70"]]);ah.install=e=>{e.component(ah.__name,ah)};const fk=st({__name:"SimpleInlineRenderer",props:{nodes:{},customId:{},indexKey:{}},setup(e){const t=e,n=yp({checkbox:Hu,checkbox_input:Hu,emoji:pu,emphasis:Pc,hardbreak:ah,highlight:ju,inline_code:tc,insert:hu,link:Oc,reference:Rc,strikethrough:$c,strong:Mc,subscript:mu,superscript:fu,text:rr}),s=Kr(()=>t.customId),o=E(()=>{const a=s.value;return Object.keys(a).length>0?En(En({},n),a):n});return(a,r)=>(h(!0),C(Me,null,ft(e.nodes,(l,c)=>(h(),V(i(yf),{key:c,components:o.value,node:l,"custom-id":t.customId,"index-key":`${e.indexKey||"inline"}-${c}`},null,8,["components","node","custom-id","index-key"]))),128))}});function F3(e){if(!e||typeof e!="object")return!1;const t=`|${e.type}|`;if(!"|checkbox|checkbox_input|emoji|emphasis|hardbreak|highlight|inline_code|insert|link|reference|strikethrough|strong|subscript|superscript|text|".includes(t))return!1;if(!"|emphasis|highlight|insert|link|strikethrough|strong|subscript|superscript|".includes(t))return!0;const n=e.children;return Array.isArray(n)&&n.every(F3)}function vI(e,t=!0,n=!1){if(!e||!n&&e.length===0)return null;if(e.every(F3))return e;if(!t||e.length!==1)return null;const s=e[0];if(s?.type!=="paragraph"||!Array.isArray(s.children))return null;const o=s.children;return(n||o.length>0)&&o.every(F3)?o:null}function ev(e){var t,n;if(!e?.length)return null;let s="";for(const o of e){if(o?.type!=="text"||o.center===!0)return null;s+=String((n=(t=o.content)!=null?t:o.raw)!=null?n:"")}return s}const fFe=["cite"],mFe={key:0,dir:"auto",class:"paragraph-node"},hFe=["custom-id"],I2=bi(st({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=Kr(()=>t.customId),s=E(()=>!!n.value.paragraph),o=E(()=>!!n.value.text),a=E(()=>vI(t.node.children,!s.value)),r=E(()=>t.fade!==!1||o.value?null:ev(a.value));return si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade)),(l,c)=>(h(),C("blockquote",{class:"blockquote blockquote-node",dir:"auto",cite:e.node.cite},[a.value?(h(),C("p",mFe,[r.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(r.value),9,hFe)):(h(),V(i(fk),{key:1,nodes:a.value,"custom-id":t.customId,"index-key":`blockquote-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):(h(),V(i(gu),{key:1,"show-tooltips":t.showTooltips,"index-key":`blockquote-${t.indexKey}`,nodes:t.node.children||[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:c[0]||(c[0]=u=>l.$emit("copy",u))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade"]))],8,fFe))}}),[["__scopeId","data-v-abfecebc"]]);I2.install=e=>{e.component(I2.__name,I2)};const gFe={class:"definition-list"},vFe={class:"definition-term"},yFe={class:"definition-desc"},A2=bi(st({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,s)=>(h(),C("dl",gFe,[(h(!0),C(Me,null,ft(t.node.items,(o,a)=>(h(),C(Me,{key:a},[d("dt",vFe,[m(i(gu),{"index-key":`definition-term-${t.indexKey}-${a}`,nodes:o.term,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[0]||(s[0]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])]),d("dd",yFe,[m(i(gu),{"index-key":`definition-desc-${t.indexKey}-${a}`,nodes:o.definition,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[1]||(s[1]=r=>n.$emit("copy",r))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],64))),128))]))}}),[["__scopeId","data-v-4e103b30"]]);A2.install=e=>{e.component(A2.__name,A2)};const bFe=["href","title"],ob=bi(st({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const t=e;function n(s){var o;if(s.preventDefault(),typeof document>"u")return;const a=`fnref-${String((o=t.node.id)!=null?o:"")}`,r=document.getElementById(a);r&&r.scrollIntoView({behavior:"smooth",block:"center"})}return(s,o)=>(h(),C("a",{class:"footnote-anchor text-sm hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:n}," ↩︎ ",8,bFe))}}),[["__scopeId","data-v-e1eb37b6"]]);ob.install=e=>{e.component(ob.__name,ob)};const kFe=["id"],wFe={class:"flex-1"},C2=st({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e){const t=e;return(n,s)=>(h(),C("div",{id:`fnref--${e.node.id}`,class:"footnote-node flex text-sm leading-relaxed border-t border-[var(--footnote-border)] pt-2"},[d("div",wFe,[m(i(gu),{"index-key":`footnote-${t.indexKey}`,nodes:t.node.children,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,onCopy:s[0]||(s[0]=o=>n.$emit("copy",o))},null,8,["index-key","nodes","custom-id","typewriter","fade"])])],8,kFe))}});C2.install=e=>{e.component(C2.__name,C2)};const SFe=["custom-id"],z3=bi(st({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamFade",void 0),o=E(()=>s?.value!==!1||n.value.text?null:ev(t.node.children)),a=E(()=>En({text:rr,inline_code:tc,link:Oc,image:ih,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,checkbox:Hu,checkbox_input:Hu,footnote_reference:Vu,hardbreak:ah,math_inline:Ip,reference:Rc},n.value));return(r,l)=>(h(),V(Ms(`h${e.node.level}`),Un({class:["heading-node",[`heading-${e.node.level}`]],dir:"auto"},e.node.attrs),{default:b(()=>[o.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(o.value),9,SFe)):(h(!0),C(Me,{key:1},ft(e.node.children,(c,u)=>(h(),V(i(yf),{key:u,components:a.value,"custom-id":t.customId,node:c,"index-key":`${e.indexKey||"heading"}-${u}`},null,8,["components","custom-id","node","index-key"]))),128))]),_:1},16,["class"]))}}),[["__scopeId","data-v-7122dbe1"]]),CA=z3;CA.install=e=>{e.component(z3.__name,z3)};const _Fe={key:0,dir:"auto",class:"paragraph-node"},IFe=["custom-id"],AFe={dir:"auto",class:"paragraph-node"},CFe=["custom-id"],B0=bi(st({__name:"ListItemNode",props:{node:{},item:{},indexKey:{},customId:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},value:{},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=E(()=>{var v;return(v=t.node)!=null?v:t.item}),s=Kr(()=>t.customId),o=E(()=>!!s.value.paragraph),a=E(()=>!!s.value.text),r=E(()=>{var v;return vI((v=n.value)==null?void 0:v.children,!o.value)}),l=E(()=>{var v;if(o.value)return null;const w=(v=n.value)==null?void 0:v.children;if(!Array.isArray(w)||w.length<2)return null;const k=w[0];if(k?.type!=="paragraph"||!Array.isArray(k.children))return null;const A=w.slice(1);if(!A.every(S=>S?.type==="list"))return null;const _=vI([k]);return _?{paragraphChildren:_,nestedLists:A}:null});function c(){return t.fade===!1&&!a.value}const u=E(()=>c()?ev(r.value):null),p=E(()=>{var v;return c()?ev((v=l.value)==null?void 0:v.paragraphChildren):null}),g=Object.freeze({}),y=E(()=>{const{value:v}=t;return typeof v=="number"&&Number.isFinite(v)?{value:v}:g});return si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade)),(v,w)=>{var k,A;return h(),C("li",Un({class:"list-item",dir:"auto"},y.value),[r.value?(h(),C("p",_Fe,[u.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(u.value),9,IFe)):(h(),V(i(fk),{key:1,nodes:r.value,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))])):l.value?(h(),C(Me,{key:1},[d("p",AFe,[p.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(p.value),9,CFe)):(h(),V(i(fk),{key:1,nodes:l.value.paragraphChildren,"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-paragraph`},null,8,["nodes","custom-id","index-key"]))]),(h(!0),C(Me,null,ft(l.value.nestedLists,(_,S)=>(h(),V(i(gu),{key:S,nodes:[_],"custom-id":t.customId,"index-key":`list-item-${t.indexKey}-nested-${S}`,"show-tooltips":t.showTooltips,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0,onCopy:w[0]||(w[0]=I=>v.$emit("copy",I))},null,8,["nodes","custom-id","index-key","show-tooltips","typewriter","fade","is-dark"]))),128))],64)):(h(),V(i(gu),{key:2,"show-tooltips":t.showTooltips,"index-key":`list-item-${t.indexKey}`,nodes:(A=(k=n.value)==null?void 0:k.children)!=null?A:[],"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"is-dark":t.isDark,"batch-rendering":!1,onCopy:w[1]||(w[1]=_=>v.$emit("copy",_))},null,8,["show-tooltips","index-key","nodes","custom-id","typewriter","fade","is-dark"]))],16)}}}),[["__scopeId","data-v-617214f9"]]);B0.install=e=>{e.component(B0.__name,B0)};const F0=bi(st({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean},fade:{type:Boolean},showTooltips:{type:Boolean},isDark:{type:Boolean}},emits:["copy"],setup(e){const t=Kr(()=>e.customId),n=E(()=>t.value.list_item||B0);return(s,o)=>(h(),V(Ms(e.node.ordered?"ol":"ul"),{class:At(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:b(()=>[(h(!0),C(Me,null,ft(e.node.items,(a,r)=>{var l;return h(),V(Ms(n.value),Un({key:`${e.indexKey||"list"}-${r}`},{ref_for:!0},{showTooltips:e.showTooltips},{node:a,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${r}`,typewriter:e.typewriter,fade:e.fade,"is-dark":e.isDark,value:e.node.ordered?((l=e.node.start)!=null?l:1)+r:void 0,onCopy:o[0]||(o[0]=c=>s.$emit("copy",c))}),null,16,["node","custom-id","index-key","typewriter","fade","is-dark","value"])}),128))]),_:1},8,["class"]))}}),[["__scopeId","data-v-99cb95e0"]]);F0.install=e=>{e.component(F0.__name,F0)};const xFe={key:2,class:"html-block-node__raw"},EFe=["innerHTML"],TFe={key:1,class:"html-block-node__placeholder"},ib=bi(st({__name:"HtmlBlockNode",props:{node:{},customId:{},htmlPolicy:{}},setup(e){const t=e,n=uo("markstreamHtmlPolicy",void 0),s=uo("markstreamNestedRendererProps",void 0),o=E(()=>{var N,z;return(z=(N=t.htmlPolicy)!=null?N:n?.value)!=null?z:"safe"}),a=E(()=>{var N,z;const H=(N=s?.value)!=null?N:{};return Os(En({},H),{customId:(z=t.customId)!=null?z:H.customId,htmlPolicy:o.value})}),r=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1}),l=E(()=>{const N=k2(t.node.attrs,o.value);if(!N)return;const z=eb(N);return Object.keys(z).length>0?z:void 0}),c=E(()=>{const N=String(t.node.tag||"").trim(),z=k2(t.node.attrs,o.value,N);if(!z)return;const H=eb(z);return Object.keys(H).length>0?H:void 0}),u=Kr(()=>t.customId),p=st({name:"DynamicRenderer",props:{nodes:{type:Array,required:!0}},render(){return this.nodes}}),g=D(null),y=D(typeof window>"u"),v=D(t.node.content),w=E(()=>Array.isArray(t.node.children)?t.node.children:[]),k=E(()=>String(t.node.tag||"div")),A=E(()=>{var N;if(k.value.trim().toLowerCase()!=="details"||(N=t.node.attrs)!=null&&N.some(([H])=>String(H).toLowerCase()==="open"))return null;const z=w.value[0];return z?.type==="html_block"&&String(z.tag||"").toLowerCase()==="summary"?z:null}),_=E(()=>{var N;return ev((N=A.value)==null?void 0:N.children)}),S=E(()=>{const N=A.value;if(!N)return;const z=k2(N.attrs,o.value,"summary");if(!z)return;const H=eb(z);return Object.keys(H).length>0?H:void 0}),I=E(()=>_.value==null?w.value:w.value.slice(1)),x=E(()=>{const N=k.value.trim().toLowerCase();return FY.has(N)||iR(N,o.value)}),T=E(()=>w.value.length>0&&!!t.node.tag&&!x.value),R=E(()=>{var N,z,H;if(T.value)return{mode:"structured"};if(!y.value)return{mode:"html",content:(N=v.value)!=null?N:""};const U=(z=v.value)!=null?z:t.node.content;if(!U)return{mode:"html",content:""};if(o.value==="escape")return{mode:"html",content:L0(U,o.value)};if(t.node.loading){const K=hI(U,u.value,o.value);return K===null?{mode:"text",content:(H=t.node.raw)!=null?H:U}:{mode:"dynamic",nodes:K}}if(!lZ(U,u.value))return{mode:"html",content:L0(U,o.value)};const L=hI(U,u.value,o.value);return L===null?{mode:"html",content:L0(U,o.value)}:{mode:"dynamic",nodes:L}}),M=fR(),$=dR(),O=pR(),F=gi(null),B=!!t.node.loading;return typeof window<"u"?(ze([()=>g.value,()=>$?.value.heavyBlockMargin,()=>$?.value.rootMargin],([N],z,H)=>{var U,L,K,G;if((L=(U=F.value)==null?void 0:U.destroy)==null||L.call(U),F.value=null,!B)return y.value=!0,void(v.value=t.node.content);if(!N)return void(y.value=!1);let Q=!0;const J=(G=(K=$?.value.heavyBlockMargin)!=null?K:$?.value.rootMargin)!=null?G:Jg,ee=M(N,{rootMargin:J,allowIdle:!O.value});F.value=ee,y.value=y.value||ee.isVisible.value,ee.whenVisible.then(()=>{Q&&F.value===ee&&(y.value=!0)}),H(()=>{Q=!1,ee.destroy(),F.value===ee&&(F.value=null)})},{immediate:!0}),ze(()=>t.node.content,N=>{B&&!y.value||(v.value=N)})):y.value=!0,qs(()=>{var N,z;(z=(N=F.value)==null?void 0:N.destroy)==null||z.call(N),F.value=null}),(N,z)=>(h(),V(Ms(T.value?k.value:"div"),Un({ref_key:"htmlRef",ref:g,class:"html-block-node","data-markstream-viewport-pending":i(O)&&!y.value?"true":void 0},T.value?c.value:void 0),{default:b(()=>[y.value?(h(),C(Me,{key:0},[R.value.mode==="structured"?(h(),C(Me,{key:0},[_.value!==null?(h(),C(Me,{key:0},[d("summary",oa(Ma(S.value)),f(_.value),17),I.value.length?(h(),V(i(r),Un({key:0},a.value,{nodes:I.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"])):W("",!0)],64)):(h(),V(i(r),Un({key:1},a.value,{nodes:w.value,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes"]))],64)):R.value.mode==="dynamic"?(h(),V(i(p),{key:1,nodes:R.value.nodes},null,8,["nodes"])):R.value.mode==="text"?(h(),C("pre",xFe,f(R.value.content),1)):(h(),C("div",Un({key:3},l.value,{innerHTML:R.value.content}),null,16,EFe))],64)):(h(),C("div",TFe,[gn(N.$slots,"placeholder",{node:e.node},()=>[z[0]||(z[0]=d("span",{class:"html-block-node__placeholder-bar"},null,-1)),z[1]||(z[1]=d("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),z[2]||(z[2]=d("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))]),_:3},16,["data-markstream-viewport-pending"]))}}),[["__scopeId","data-v-e140a874"]]);ib.install=e=>{e.component(ib.__name,ib)};const NFe={dir:"auto",class:"paragraph-node"},RFe=["custom-id"],Lg=bi(st({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{},customHtmlTags:{},parseOptions:{},customMarkdownIt:{type:Function}},setup(e){const t=e,n=Kr(()=>t.customId),s=uo("markstreamHtmlPolicy",void 0),o=uo("markstreamFade",void 0),a=uo("markstreamParseOptions",void 0),r=uo("markstreamCustomMarkdownIt",void 0),l=uo("markstreamNestedRendererProps",void 0),c=E(()=>{var $;return($=s?.value)!=null?$:"safe"}),u=E(()=>{var $;return($=t.parseOptions)!=null?$:a?.value}),p=E(()=>{var $;return($=t.customMarkdownIt)!=null?$:r?.value}),g=E(()=>{var $,O;return(O=t.customHtmlTags)!=null?O:($=l?.value)==null?void 0:$.customHtmlTags}),y=E(()=>{var $,O;const F=($=l?.value)!=null?$:{};return Os(En({},F),{customId:(O=t.customId)!=null?O:F.customId,customHtmlTags:g.value,parseOptions:u.value,customMarkdownIt:p.value,htmlPolicy:c.value})}),v=Jp({loader:()=>Promise.resolve().then(()=>IR),suspensible:!1});function w($){var O;return $.type==="text"&&String((O=$.content)!=null?O:"").trim()===""}const k=E(()=>t.node.children.filter($=>!w($))),A=E(()=>k.value.length>0&&k.value.every($=>$.type==="image"||(function(O){var F;const B=(function(N){return N.type==="link"&&Array.isArray(N.children)?N.children.filter(z=>!w(z)):[]})(O);return B.length===1&&((F=B[0])==null?void 0:F.type)==="image"})($))),_=E(()=>new Set(Cv(g.value))),S=E(()=>{if(!A.value||k.value.length<=1)return t.node.children;const $=[];for(let O=0;O<t.node.children.length;O++){const F=t.node.children[O];if(!w(F)){$.push(F);continue}const B=$.length>0,N=t.node.children.slice(O+1).some(z=>!w(z));B&&N&&$.push(Os(En({},F),{content:" ",raw:" "}))}return $}),I=E(()=>o?.value===!1&&!n.value.text),x=E(()=>I.value?ev(S.value):null);function T($,O){return{node:$,"index-key":`${t.indexKey}-${O}`,"custom-id":t.customId,"custom-html-tags":g.value}}const R=E(()=>En({inline_code:tc,image:ih,link:Oc,hardbreak:ah,emphasis:Pc,strong:Mc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,html_inline:qu,html_block:ib,emoji:pu,checkbox:Hu,math_inline:Ip,checkbox_input:Hu,reference:Rc,footnote_anchor:ob,footnote_reference:Vu,text:rr},n.value)),M=E(()=>S.value.map(($,O)=>{var F;const B=(function(N){var z,H,U,L;if(N.type==="html_block"||N.type==="html_inline"){const K=String((z=N.tag)!=null?z:"").trim().toLowerCase()||qY(N.content);if(K&&!_.value.has(K)&&jY((H=N.content)!=null?H:N.raw,K)){const G=String((L=(U=N.content)!=null?U:N.raw)!=null?L:"");return{child:{type:"text",content:G,raw:G},component:rr,isCustomComponent:!1}}}return{child:N,component:R.value[N.type],isCustomComponent:!!(n.value[N.type]&&!ow(String(N.type)))}})($);return Os(En({},B),{index:O,key:`${t.indexKey||"paragraph"}-${O}`,customAttrs:B.isCustomComponent?uR(B.child,c.value):void 0,hasSlotChildren:Array.isArray(B.child.children)&&B.child.children.length>0,slotContent:String((F=B.child.content)!=null?F:""),originalChild:$})}));return($,O)=>(h(),C("p",NFe,[x.value!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(x.value),9,RFe)):(h(!0),C(Me,{key:1},ft(M.value,F=>{return h(),C(Me,{key:F.key},[A.value&&w(F.originalChild)?(h(),C(Me,{key:0},[j(f((B=F.originalChild,String((N=B.content)!=null?N:""))),1)],64)):F.isCustomComponent?(h(),V(Ms(F.component),Un({key:1,ref_for:!0},F.customAttrs,{node:F.child,loading:F.child.loading,"index-key":F.key,"custom-id":t.customId,"custom-html-tags":g.value,"is-dark":y.value.isDark}),{default:b(()=>[F.hasSlotChildren?(h(),V(i(v),Un({key:0,ref_for:!0},y.value,{nodes:F.child.children,"index-key":F.key,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):F.slotContent?(h(),V(i(v),Un({key:1,ref_for:!0},y.value,{content:F.slotContent,final:!F.child.loading,"index-key":`${F.key}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","custom-html-tags","is-dark"])):(h(),V(Ms(F.component),Un({key:2,ref_for:!0},T(F.child,F.index)),null,16))],64);var B,N}),128))]))}}),[["__scopeId","data-v-c59ff506"]]);Lg.install=e=>{e.component(Lg.__name,Lg)};const MFe={class:"table-node-wrapper"},$Fe=["aria-busy"],OFe={key:0},PFe=["custom-id"],DFe=["aria-label","onPointerdown"],LFe=["custom-id"],BFe={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},ab=bi(st({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{},showTooltips:{type:Boolean}},emits:["copy"],setup(e){const t=e,n=E(()=>{var _;return(_=t.node.loading)!=null&&_}),s=E(()=>{var _;return(_=t.node.rows)!=null?_:[]}),o=D(null),a=D([]);let r=null;const l=E(()=>t.node.header.cells.length),c=E(()=>a.value.some(_=>Number.isFinite(_)&&_>0)),u=E(()=>c.value?a.value.map(_=>_>0?{width:`${_}px`}:void 0):[]);si("markstreamShowTooltips",E(()=>t.showTooltips)),si("markstreamFade",E(()=>t.fade));const p=Kr(()=>t.customId),g=E(()=>!!p.value.text),y=E(()=>!!p.value.paragraph),v=new WeakMap;function w(_){const S=t.fade===!1&&!g.value,I=!y.value,x=v.get(_);if(x?.children===_.children&&x.textFastPath===S&&x.paragraphFastPath===I)return x.info;const T=vI(_.children,I,!0),R={simpleChildren:T,plainText:T&&S?ev(T):null};return v.set(_,{children:_.children,textFastPath:S,paragraphFastPath:I,info:R}),R}function k(_){if(!r)return;_.preventDefault();const S=r.startWidth+r.nextStartWidth,I=Math.min(48,Math.floor(S/2)),x=Math.max(I,Math.min(S-I,Math.round(r.startWidth+_.clientX-r.startX))),T=[...r.widths];T[r.index]=x,T[r.index+1]=S-x,a.value=T}function A(){r&&(window.removeEventListener("pointermove",k),window.removeEventListener("pointerup",A),window.removeEventListener("pointercancel",A),r=null)}return ze(l,()=>{A(),a.value=[]}),qs(A),(_,S)=>(h(),C("div",MFe,[d("table",{ref_key:"tableRef",ref:o,class:At(["table-node",{"table-node--loading":n.value}]),"aria-busy":n.value},[c.value?(h(),C("colgroup",OFe,[(h(!0),C(Me,null,ft(e.node.header.cells,(I,x)=>(h(),C("col",{key:x,style:Qn(u.value[x])},null,4))),128))])):W("",!0),d("thead",null,[d("tr",null,[(h(!0),C(Me,null,ft(e.node.header.cells,(I,x)=>(h(),C("th",{key:x,dir:"auto",class:At([I.align==="right"?"text-right":I.align==="center"?"text-center":"text-left"])},[w(I).plainText!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(w(I).plainText),9,PFe)):w(I).simpleChildren?(h(),V(i(fk),{key:1,nodes:w(I).simpleChildren,"custom-id":t.customId,"index-key":`table-th-${t.indexKey}-${x}`},null,8,["nodes","custom-id","index-key"])):(h(),V(i(gu),{key:2,nodes:I.children,"index-key":`table-th-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:S[0]||(S[0]=T=>_.$emit("copy",T))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"])),x<e.node.header.cells.length-1?(h(),C("button",{key:3,type:"button",class:"table-node__resize-handle","aria-label":`Resize columns ${x+1} and ${x+2}`,onPointerdown:T=>(function(R,M){if(M.button!==0)return;const $=(function(){var B;const N=(B=o.value)==null?void 0:B.querySelectorAll("thead th");return Array.from(N??[],z=>Math.round(z.getBoundingClientRect().width))})(),O=$[R],F=$[R+1];O&&F&&(M.preventDefault(),r={index:R,startX:M.clientX,startWidth:O,nextStartWidth:F,widths:$},a.value=$,window.addEventListener("pointermove",k),window.addEventListener("pointerup",A),window.addEventListener("pointercancel",A))})(x,T)},null,40,DFe)):W("",!0)],2))),128))])]),d("tbody",null,[(h(!0),C(Me,null,ft(s.value,(I,x)=>(h(),C("tr",{key:x},[(h(!0),C(Me,null,ft(I.cells,(T,R)=>(h(),C("td",{key:R,class:At([T.align==="right"?"text-right":T.align==="center"?"text-center":"text-left"]),dir:"auto"},[w(T).plainText!==null?(h(),C("span",{key:0,class:"text-node","custom-id":t.customId},f(w(T).plainText),9,LFe)):w(T).simpleChildren?(h(),V(i(fk),{key:1,nodes:w(T).simpleChildren,"custom-id":t.customId,"index-key":`table-td-${t.indexKey}-${x}-${R}`},null,8,["nodes","custom-id","index-key"])):(h(),V(i(gu),{key:2,nodes:T.children,"index-key":`table-td-${t.indexKey}`,"custom-id":t.customId,typewriter:t.typewriter,fade:t.fade,"show-tooltips":t.showTooltips,onCopy:S[1]||(S[1]=M=>_.$emit("copy",M))},null,8,["nodes","index-key","custom-id","typewriter","fade","show-tooltips"]))],2))),128))]))),128))])],10,$Fe),m(Wa,{name:"table-node-fade"},{default:b(()=>[n.value?(h(),C("div",BFe,[gn(_.$slots,"loading",{isLoading:n.value},()=>[S[2]||(S[2]=d("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),S[3]||(S[3]=d("span",{class:"sr-only"},"Loading",-1))],!0)])):W("",!0)]),_:3})]))}}),[["__scopeId","data-v-39f87b5d"]]);ab.install=e=>{e.component(ab.__name,ab)};const FFe={class:"hr-node"},x2=bi({},[["render",function(e,t){return h(),C("hr",FFe)}],["__scopeId","data-v-39b2349c"]]);x2.install=e=>{e.component(x2.__name,x2)};const zFe={class:"unknown-node"},U3=st({__name:"FallbackComponent",props:{node:{}},setup:e=>(t,n)=>(h(),C("div",zFe,f(e.node.raw),1))}),E2=bi(st({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},setup(e){const t=e,n=E(()=>`vmr-container vmr-container-${t.node.name}`),s=Kr(()=>t.customId),o=E(()=>En({text:rr,paragraph:Lg,heading:CA,inline_code:tc,link:Oc,image:ih,strong:Mc,emphasis:Pc,strikethrough:$c,insert:hu,subscript:mu,superscript:fu,checkbox:Hu,checkbox_input:Hu,hardbreak:ah,math_inline:Ip,reference:Rc,list:F0,math_block:hZ,table:ab},s.value));return(a,r)=>(h(),C("div",Un({class:n.value},e.node.attrs),[(h(!0),C(Me,null,ft(e.node.children,(l,c)=>{return h(),V(Ms((u=l.type,o.value[u]||U3)),{key:`${e.indexKey||"vmr-container"}-${c}`,"custom-id":t.customId,node:l,"index-key":`${e.indexKey||"vmr-container"}-${c}`,typewriter:t.typewriter,fade:t.fade},null,8,["custom-id","node","index-key","typewriter","fade"]);var u}),128))],16))}}),[["__scopeId","data-v-911e41c4"]]);E2.install=e=>{e.component(E2.__name,E2)};const UFe=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","ON","ON","ET","ET","ET","ON","ON","ON","ON","ON","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","ON","ON","ON","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","ON","ET","ET","ET","ET","ON","ON","ON","ON","L","ON","ON","BN","ON","ON","ET","ET","EN","EN","ON","L","ON","ON","ON","EN","L","ON","ON","ON","ON","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","ON","L","L","L","L","L","L","L","L"],tL=[[697,698,"ON"],[706,719,"ON"],[722,735,"ON"],[741,749,"ON"],[751,767,"ON"],[768,879,"NSM"],[884,885,"ON"],[894,894,"ON"],[900,901,"ON"],[903,903,"ON"],[1014,1014,"ON"],[1155,1161,"NSM"],[1418,1418,"ON"],[1421,1422,"ON"],[1423,1423,"ET"],[1424,1424,"R"],[1425,1469,"NSM"],[1470,1470,"R"],[1471,1471,"NSM"],[1472,1472,"R"],[1473,1474,"NSM"],[1475,1475,"R"],[1476,1477,"NSM"],[1478,1478,"R"],[1479,1479,"NSM"],[1480,1535,"R"],[1536,1541,"AN"],[1542,1543,"ON"],[1544,1544,"AL"],[1545,1546,"ET"],[1547,1547,"AL"],[1548,1548,"CS"],[1549,1549,"AL"],[1550,1551,"ON"],[1552,1562,"NSM"],[1563,1610,"AL"],[1611,1631,"NSM"],[1632,1641,"AN"],[1642,1642,"ET"],[1643,1644,"AN"],[1645,1647,"AL"],[1648,1648,"NSM"],[1649,1749,"AL"],[1750,1756,"NSM"],[1757,1757,"AN"],[1758,1758,"ON"],[1759,1764,"NSM"],[1765,1766,"AL"],[1767,1768,"NSM"],[1769,1769,"ON"],[1770,1773,"NSM"],[1774,1775,"AL"],[1776,1785,"EN"],[1786,1808,"AL"],[1809,1809,"NSM"],[1810,1839,"AL"],[1840,1866,"NSM"],[1867,1957,"AL"],[1958,1968,"NSM"],[1969,1983,"AL"],[1984,2026,"R"],[2027,2035,"NSM"],[2036,2037,"R"],[2038,2041,"ON"],[2042,2044,"R"],[2045,2045,"NSM"],[2046,2069,"R"],[2070,2073,"NSM"],[2074,2074,"R"],[2075,2083,"NSM"],[2084,2084,"R"],[2085,2087,"NSM"],[2088,2088,"R"],[2089,2093,"NSM"],[2094,2136,"R"],[2137,2139,"NSM"],[2140,2143,"R"],[2144,2191,"AL"],[2192,2193,"AN"],[2194,2198,"AL"],[2199,2207,"NSM"],[2208,2249,"AL"],[2250,2273,"NSM"],[2274,2274,"AN"],[2275,2306,"NSM"],[2362,2362,"NSM"],[2364,2364,"NSM"],[2369,2376,"NSM"],[2381,2381,"NSM"],[2385,2391,"NSM"],[2402,2403,"NSM"],[2433,2433,"NSM"],[2492,2492,"NSM"],[2497,2500,"NSM"],[2509,2509,"NSM"],[2530,2531,"NSM"],[2546,2547,"ET"],[2555,2555,"ET"],[2558,2558,"NSM"],[2561,2562,"NSM"],[2620,2620,"NSM"],[2625,2626,"NSM"],[2631,2632,"NSM"],[2635,2637,"NSM"],[2641,2641,"NSM"],[2672,2673,"NSM"],[2677,2677,"NSM"],[2689,2690,"NSM"],[2748,2748,"NSM"],[2753,2757,"NSM"],[2759,2760,"NSM"],[2765,2765,"NSM"],[2786,2787,"NSM"],[2801,2801,"ET"],[2810,2815,"NSM"],[2817,2817,"NSM"],[2876,2876,"NSM"],[2879,2879,"NSM"],[2881,2884,"NSM"],[2893,2893,"NSM"],[2901,2902,"NSM"],[2914,2915,"NSM"],[2946,2946,"NSM"],[3008,3008,"NSM"],[3021,3021,"NSM"],[3059,3064,"ON"],[3065,3065,"ET"],[3066,3066,"ON"],[3072,3072,"NSM"],[3076,3076,"NSM"],[3132,3132,"NSM"],[3134,3136,"NSM"],[3142,3144,"NSM"],[3146,3149,"NSM"],[3157,3158,"NSM"],[3170,3171,"NSM"],[3192,3198,"ON"],[3201,3201,"NSM"],[3260,3260,"NSM"],[3276,3277,"NSM"],[3298,3299,"NSM"],[3328,3329,"NSM"],[3387,3388,"NSM"],[3393,3396,"NSM"],[3405,3405,"NSM"],[3426,3427,"NSM"],[3457,3457,"NSM"],[3530,3530,"NSM"],[3538,3540,"NSM"],[3542,3542,"NSM"],[3633,3633,"NSM"],[3636,3642,"NSM"],[3647,3647,"ET"],[3655,3662,"NSM"],[3761,3761,"NSM"],[3764,3772,"NSM"],[3784,3790,"NSM"],[3864,3865,"NSM"],[3893,3893,"NSM"],[3895,3895,"NSM"],[3897,3897,"NSM"],[3898,3901,"ON"],[3953,3966,"NSM"],[3968,3972,"NSM"],[3974,3975,"NSM"],[3981,3991,"NSM"],[3993,4028,"NSM"],[4038,4038,"NSM"],[4141,4144,"NSM"],[4146,4151,"NSM"],[4153,4154,"NSM"],[4157,4158,"NSM"],[4184,4185,"NSM"],[4190,4192,"NSM"],[4209,4212,"NSM"],[4226,4226,"NSM"],[4229,4230,"NSM"],[4237,4237,"NSM"],[4253,4253,"NSM"],[4957,4959,"NSM"],[5008,5017,"ON"],[5120,5120,"ON"],[5760,5760,"WS"],[5787,5788,"ON"],[5906,5908,"NSM"],[5938,5939,"NSM"],[5970,5971,"NSM"],[6002,6003,"NSM"],[6068,6069,"NSM"],[6071,6077,"NSM"],[6086,6086,"NSM"],[6089,6099,"NSM"],[6107,6107,"ET"],[6109,6109,"NSM"],[6128,6137,"ON"],[6144,6154,"ON"],[6155,6157,"NSM"],[6158,6158,"BN"],[6159,6159,"NSM"],[6277,6278,"NSM"],[6313,6313,"NSM"],[6432,6434,"NSM"],[6439,6440,"NSM"],[6450,6450,"NSM"],[6457,6459,"NSM"],[6464,6464,"ON"],[6468,6469,"ON"],[6622,6655,"ON"],[6679,6680,"NSM"],[6683,6683,"NSM"],[6742,6742,"NSM"],[6744,6750,"NSM"],[6752,6752,"NSM"],[6754,6754,"NSM"],[6757,6764,"NSM"],[6771,6780,"NSM"],[6783,6783,"NSM"],[6832,6877,"NSM"],[6880,6891,"NSM"],[6912,6915,"NSM"],[6964,6964,"NSM"],[6966,6970,"NSM"],[6972,6972,"NSM"],[6978,6978,"NSM"],[7019,7027,"NSM"],[7040,7041,"NSM"],[7074,7077,"NSM"],[7080,7081,"NSM"],[7083,7085,"NSM"],[7142,7142,"NSM"],[7144,7145,"NSM"],[7149,7149,"NSM"],[7151,7153,"NSM"],[7212,7219,"NSM"],[7222,7223,"NSM"],[7376,7378,"NSM"],[7380,7392,"NSM"],[7394,7400,"NSM"],[7405,7405,"NSM"],[7412,7412,"NSM"],[7416,7417,"NSM"],[7616,7679,"NSM"],[8125,8125,"ON"],[8127,8129,"ON"],[8141,8143,"ON"],[8157,8159,"ON"],[8173,8175,"ON"],[8189,8190,"ON"],[8192,8202,"WS"],[8203,8205,"BN"],[8207,8207,"R"],[8208,8231,"ON"],[8232,8232,"WS"],[8233,8233,"B"],[8234,8238,"BN"],[8239,8239,"CS"],[8240,8244,"ET"],[8245,8259,"ON"],[8260,8260,"CS"],[8261,8286,"ON"],[8287,8287,"WS"],[8288,8303,"BN"],[8304,8304,"EN"],[8308,8313,"EN"],[8314,8315,"ES"],[8316,8318,"ON"],[8320,8329,"EN"],[8330,8331,"ES"],[8332,8334,"ON"],[8352,8399,"ET"],[8400,8432,"NSM"],[8448,8449,"ON"],[8451,8454,"ON"],[8456,8457,"ON"],[8468,8468,"ON"],[8470,8472,"ON"],[8478,8483,"ON"],[8485,8485,"ON"],[8487,8487,"ON"],[8489,8489,"ON"],[8494,8494,"ET"],[8506,8507,"ON"],[8512,8516,"ON"],[8522,8525,"ON"],[8528,8543,"ON"],[8585,8587,"ON"],[8592,8721,"ON"],[8722,8722,"ES"],[8723,8723,"ET"],[8724,9013,"ON"],[9083,9108,"ON"],[9110,9257,"ON"],[9280,9290,"ON"],[9312,9351,"ON"],[9352,9371,"EN"],[9450,9899,"ON"],[9901,10239,"ON"],[10496,11123,"ON"],[11126,11263,"ON"],[11493,11498,"ON"],[11503,11505,"NSM"],[11513,11519,"ON"],[11647,11647,"NSM"],[11744,11775,"NSM"],[11776,11869,"ON"],[11904,11929,"ON"],[11931,12019,"ON"],[12032,12245,"ON"],[12272,12287,"ON"],[12288,12288,"WS"],[12289,12292,"ON"],[12296,12320,"ON"],[12330,12333,"NSM"],[12336,12336,"ON"],[12342,12343,"ON"],[12349,12351,"ON"],[12441,12442,"NSM"],[12443,12444,"ON"],[12448,12448,"ON"],[12539,12539,"ON"],[12736,12773,"ON"],[12783,12783,"ON"],[12829,12830,"ON"],[12880,12895,"ON"],[12924,12926,"ON"],[12977,12991,"ON"],[13004,13007,"ON"],[13175,13178,"ON"],[13278,13279,"ON"],[13311,13311,"ON"],[19904,19967,"ON"],[42128,42182,"ON"],[42509,42511,"ON"],[42607,42610,"NSM"],[42611,42611,"ON"],[42612,42621,"NSM"],[42622,42623,"ON"],[42654,42655,"NSM"],[42736,42737,"NSM"],[42752,42785,"ON"],[42888,42888,"ON"],[43010,43010,"NSM"],[43014,43014,"NSM"],[43019,43019,"NSM"],[43045,43046,"NSM"],[43048,43051,"ON"],[43052,43052,"NSM"],[43064,43065,"ET"],[43124,43127,"ON"],[43204,43205,"NSM"],[43232,43249,"NSM"],[43263,43263,"NSM"],[43302,43309,"NSM"],[43335,43345,"NSM"],[43392,43394,"NSM"],[43443,43443,"NSM"],[43446,43449,"NSM"],[43452,43453,"NSM"],[43493,43493,"NSM"],[43561,43566,"NSM"],[43569,43570,"NSM"],[43573,43574,"NSM"],[43587,43587,"NSM"],[43596,43596,"NSM"],[43644,43644,"NSM"],[43696,43696,"NSM"],[43698,43700,"NSM"],[43703,43704,"NSM"],[43710,43711,"NSM"],[43713,43713,"NSM"],[43756,43757,"NSM"],[43766,43766,"NSM"],[43882,43883,"ON"],[44005,44005,"NSM"],[44008,44008,"NSM"],[44013,44013,"NSM"],[64285,64285,"R"],[64286,64286,"NSM"],[64287,64296,"R"],[64297,64297,"ES"],[64298,64335,"R"],[64336,64450,"AL"],[64451,64466,"ON"],[64467,64829,"AL"],[64830,64847,"ON"],[64848,64911,"AL"],[64912,64913,"ON"],[64914,64967,"AL"],[64968,64975,"ON"],[64976,65007,"BN"],[65008,65020,"AL"],[65021,65023,"ON"],[65024,65039,"NSM"],[65040,65049,"ON"],[65056,65071,"NSM"],[65072,65103,"ON"],[65104,65104,"CS"],[65105,65105,"ON"],[65106,65106,"CS"],[65108,65108,"ON"],[65109,65109,"CS"],[65110,65118,"ON"],[65119,65119,"ET"],[65120,65121,"ON"],[65122,65123,"ES"],[65124,65126,"ON"],[65128,65128,"ON"],[65129,65130,"ET"],[65131,65131,"ON"],[65136,65278,"AL"],[65279,65279,"BN"],[65281,65282,"ON"],[65283,65285,"ET"],[65286,65290,"ON"],[65291,65291,"ES"],[65292,65292,"CS"],[65293,65293,"ES"],[65294,65295,"CS"],[65296,65305,"EN"],[65306,65306,"CS"],[65307,65312,"ON"],[65339,65344,"ON"],[65371,65381,"ON"],[65504,65505,"ET"],[65506,65508,"ON"],[65509,65510,"ET"],[65512,65518,"ON"],[65520,65528,"BN"],[65529,65533,"ON"],[65534,65535,"BN"],[65793,65793,"ON"],[65856,65932,"ON"],[65936,65948,"ON"],[65952,65952,"ON"],[66045,66045,"NSM"],[66272,66272,"NSM"],[66273,66299,"EN"],[66422,66426,"NSM"],[67584,67870,"R"],[67871,67871,"ON"],[67872,68096,"R"],[68097,68099,"NSM"],[68100,68100,"R"],[68101,68102,"NSM"],[68103,68107,"R"],[68108,68111,"NSM"],[68112,68151,"R"],[68152,68154,"NSM"],[68155,68158,"R"],[68159,68159,"NSM"],[68160,68324,"R"],[68325,68326,"NSM"],[68327,68408,"R"],[68409,68415,"ON"],[68416,68863,"R"],[68864,68899,"AL"],[68900,68903,"NSM"],[68904,68911,"AL"],[68912,68921,"AN"],[68922,68927,"AL"],[68928,68937,"AN"],[68938,68968,"R"],[68969,68973,"NSM"],[68974,68974,"ON"],[68975,69215,"R"],[69216,69246,"AN"],[69247,69290,"R"],[69291,69292,"NSM"],[69293,69311,"R"],[69312,69327,"AL"],[69328,69336,"ON"],[69337,69369,"AL"],[69370,69375,"NSM"],[69376,69423,"R"],[69424,69445,"AL"],[69446,69456,"NSM"],[69457,69487,"AL"],[69488,69505,"R"],[69506,69509,"NSM"],[69510,69631,"R"],[69633,69633,"NSM"],[69688,69702,"NSM"],[69714,69733,"ON"],[69744,69744,"NSM"],[69747,69748,"NSM"],[69759,69761,"NSM"],[69811,69814,"NSM"],[69817,69818,"NSM"],[69826,69826,"NSM"],[69888,69890,"NSM"],[69927,69931,"NSM"],[69933,69940,"NSM"],[70003,70003,"NSM"],[70016,70017,"NSM"],[70070,70078,"NSM"],[70089,70092,"NSM"],[70095,70095,"NSM"],[70191,70193,"NSM"],[70196,70196,"NSM"],[70198,70199,"NSM"],[70206,70206,"NSM"],[70209,70209,"NSM"],[70367,70367,"NSM"],[70371,70378,"NSM"],[70400,70401,"NSM"],[70459,70460,"NSM"],[70464,70464,"NSM"],[70502,70508,"NSM"],[70512,70516,"NSM"],[70587,70592,"NSM"],[70606,70606,"NSM"],[70608,70608,"NSM"],[70610,70610,"NSM"],[70625,70626,"NSM"],[70712,70719,"NSM"],[70722,70724,"NSM"],[70726,70726,"NSM"],[70750,70750,"NSM"],[70835,70840,"NSM"],[70842,70842,"NSM"],[70847,70848,"NSM"],[70850,70851,"NSM"],[71090,71093,"NSM"],[71100,71101,"NSM"],[71103,71104,"NSM"],[71132,71133,"NSM"],[71219,71226,"NSM"],[71229,71229,"NSM"],[71231,71232,"NSM"],[71264,71276,"ON"],[71339,71339,"NSM"],[71341,71341,"NSM"],[71344,71349,"NSM"],[71351,71351,"NSM"],[71453,71453,"NSM"],[71455,71455,"NSM"],[71458,71461,"NSM"],[71463,71467,"NSM"],[71727,71735,"NSM"],[71737,71738,"NSM"],[71995,71996,"NSM"],[71998,71998,"NSM"],[72003,72003,"NSM"],[72148,72151,"NSM"],[72154,72155,"NSM"],[72160,72160,"NSM"],[72193,72198,"NSM"],[72201,72202,"NSM"],[72243,72248,"NSM"],[72251,72254,"NSM"],[72263,72263,"NSM"],[72273,72278,"NSM"],[72281,72283,"NSM"],[72330,72342,"NSM"],[72344,72345,"NSM"],[72544,72544,"NSM"],[72546,72548,"NSM"],[72550,72550,"NSM"],[72752,72758,"NSM"],[72760,72765,"NSM"],[72850,72871,"NSM"],[72874,72880,"NSM"],[72882,72883,"NSM"],[72885,72886,"NSM"],[73009,73014,"NSM"],[73018,73018,"NSM"],[73020,73021,"NSM"],[73023,73029,"NSM"],[73031,73031,"NSM"],[73104,73105,"NSM"],[73109,73109,"NSM"],[73111,73111,"NSM"],[73459,73460,"NSM"],[73472,73473,"NSM"],[73526,73530,"NSM"],[73536,73536,"NSM"],[73538,73538,"NSM"],[73562,73562,"NSM"],[73685,73692,"ON"],[73693,73696,"ET"],[73697,73713,"ON"],[78912,78912,"NSM"],[78919,78933,"NSM"],[90398,90409,"NSM"],[90413,90415,"NSM"],[92912,92916,"NSM"],[92976,92982,"NSM"],[94031,94031,"NSM"],[94095,94098,"NSM"],[94178,94178,"ON"],[94180,94180,"NSM"],[113821,113822,"NSM"],[113824,113827,"BN"],[117760,117973,"ON"],[118e3,118009,"EN"],[118010,118012,"ON"],[118016,118451,"ON"],[118458,118480,"ON"],[118496,118512,"ON"],[118528,118573,"NSM"],[118576,118598,"NSM"],[119143,119145,"NSM"],[119155,119162,"BN"],[119163,119170,"NSM"],[119173,119179,"NSM"],[119210,119213,"NSM"],[119273,119274,"ON"],[119296,119361,"ON"],[119362,119364,"NSM"],[119365,119365,"ON"],[119552,119638,"ON"],[120513,120513,"ON"],[120539,120539,"ON"],[120571,120571,"ON"],[120597,120597,"ON"],[120629,120629,"ON"],[120655,120655,"ON"],[120687,120687,"ON"],[120713,120713,"ON"],[120745,120745,"ON"],[120771,120771,"ON"],[120782,120831,"EN"],[121344,121398,"NSM"],[121403,121452,"NSM"],[121461,121461,"NSM"],[121476,121476,"NSM"],[121499,121503,"NSM"],[121505,121519,"NSM"],[122880,122886,"NSM"],[122888,122904,"NSM"],[122907,122913,"NSM"],[122915,122916,"NSM"],[122918,122922,"NSM"],[123023,123023,"NSM"],[123184,123190,"NSM"],[123566,123566,"NSM"],[123628,123631,"NSM"],[123647,123647,"ET"],[124140,124143,"NSM"],[124398,124399,"NSM"],[124643,124643,"NSM"],[124646,124646,"NSM"],[124654,124655,"NSM"],[124661,124661,"NSM"],[124928,125135,"R"],[125136,125142,"NSM"],[125143,125251,"R"],[125252,125258,"NSM"],[125259,126063,"R"],[126064,126143,"AL"],[126144,126207,"R"],[126208,126287,"AL"],[126288,126463,"R"],[126464,126703,"AL"],[126704,126705,"ON"],[126706,126719,"AL"],[126720,126975,"R"],[126976,127019,"ON"],[127024,127123,"ON"],[127136,127150,"ON"],[127153,127167,"ON"],[127169,127183,"ON"],[127185,127221,"ON"],[127232,127242,"EN"],[127243,127247,"ON"],[127279,127279,"ON"],[127338,127343,"ON"],[127405,127405,"ON"],[127584,127589,"ON"],[127744,128728,"ON"],[128732,128748,"ON"],[128752,128764,"ON"],[128768,128985,"ON"],[128992,129003,"ON"],[129008,129008,"ON"],[129024,129035,"ON"],[129040,129095,"ON"],[129104,129113,"ON"],[129120,129159,"ON"],[129168,129197,"ON"],[129200,129211,"ON"],[129216,129217,"ON"],[129232,129240,"ON"],[129280,129623,"ON"],[129632,129645,"ON"],[129648,129660,"ON"],[129664,129674,"ON"],[129678,129734,"ON"],[129736,129736,"ON"],[129741,129756,"ON"],[129759,129770,"ON"],[129775,129784,"ON"],[129792,129938,"ON"],[129940,130031,"ON"],[130032,130041,"EN"],[130042,130042,"ON"],[131070,131071,"BN"],[196606,196607,"BN"],[262142,262143,"BN"],[327678,327679,"BN"],[393214,393215,"BN"],[458750,458751,"BN"],[524286,524287,"BN"],[589822,589823,"BN"],[655358,655359,"BN"],[720894,720895,"BN"],[786430,786431,"BN"],[851966,851967,"BN"],[917502,917759,"BN"],[917760,917999,"NSM"],[918e3,921599,"BN"],[983038,983039,"BN"],[1048574,1048575,"BN"],[1114110,1114111,"BN"]];function HFe(e){if(e<=255)return UFe[e];let t=0,n=tL.length-1;for(;t<=n;){const s=t+n>>1,o=tL[s];if(e<o[0])n=s-1;else{if(!(e>o[1]))return o[2];t=s+1}}return"L"}const VFe=/[ \t\n\r\f]+/g,qFe=/[\t\n\r\f]| {2,}|^ | $/;let Wx=null;const jFe=new RegExp("\\p{Script=Arabic}","u"),kh=new RegExp("\\p{M}","u"),hR=new RegExp("\\p{Nd}","u");function nL(e){return jFe.test(e)}function sL(e){return e>=19968&&e<=40959||e>=13312&&e<=19903||e>=131072&&e<=173791||e>=173824&&e<=177983||e>=177984&&e<=178207||e>=178208&&e<=183983||e>=183984&&e<=191471||e>=191472&&e<=192093||e>=194560&&e<=195103||e>=196608&&e<=201551||e>=201552&&e<=205743||e>=205744&&e<=210041||e>=63744&&e<=64255||e>=12288&&e<=12351||e>=12352&&e<=12447||e>=12448&&e<=12543||e>=12592&&e<=12687||e>=44032&&e<=55215||e>=65280&&e<=65519}function sf(e){for(let t=0;t<e.length;t++){const n=e.charCodeAt(t);if(!(n<12288)){if(n>=55296&&n<=56319&&t+1<e.length){const s=e.charCodeAt(t+1);if(s>=56320&&s<=57343){if(sL(s-56320+(n-55296<<10)+65536))return!0;t++;continue}}if(sL(n))return!0}}return!1}const WFe=new Set([" "," ","","\uFEFF"]),KFe=new Set(["-","‐","–","—"]);function gZ(e,t){return!((function(n){const s=rb(n);return s!==null&&WFe.has(s)})(e)||t&&((function(n){const s=rb(n);return s!==null&&(gR.has(s)||tv.has(s))})(e)||(function(n){const s=rb(n);return s!==null&&KFe.has(s)})(e)))}const gR=new Set([",",".","!",":",";","?","、","。","・",")","〕","〉","》","」","』","】","〗","〙","〛","ー","々","〻","ゝ","ゞ","ヽ","ヾ"]),xA=new Set(['"',"(","[","{","¡","¿","“","‘","‚","„","«","‹","⸘","(","〔","〈","《","「","『","【","〖","〘","〚"]),vR=new Set(["'","’"]),tv=new Set([".",",","!","?",":",";","،","؛","؟","।","॥","၊","။","၌","၍","၏",")","]","}","%",'"',"”","’","»","›","…"]),GFe=new Set([":",".","،","؛"]),YFe=new Set(["၏"]),QFe=new Set(["”","’","»","›","」","』","】","》","〉","〕",")"]);function ZFe(e){if(yR(e))return!0;let t=!1;for(const n of e)if(tv.has(n)||bI(n))t=!0;else if(!t||!kh.test(n))return!1;return t}function XFe(e){for(const t of e)if(!gR.has(t)&&!tv.has(t))return!1;return e.length>0}function JFe(e){if(yR(e))return!0;for(const t of e)if(!(xA.has(t)||vR.has(t)||kh.test(t)||bI(t)))return!1;return e.length>0}function yR(e){let t=!1;for(const n of e)if(n!=="\\"&&!kh.test(n)){if(!(xA.has(n)||tv.has(n)||vR.has(n)))return!1;t=!0}return t}function yI(e,t){const n=t-1;if(n<=0)return Math.max(n,0);const s=e.charCodeAt(n);if(s<56320||s>57343)return n;const o=n-1;if(o<0)return n;const a=e.charCodeAt(o);return a>=55296&&a<=56319?o:n}function rb(e){if(e.length===0)return null;const t=yI(e,e.length);return e.slice(t)}const eze=[36,37,43,43,92,92,162,165,176,177,1423,1423,1545,1547,1642,1642,2046,2047,2546,2547,2553,2555,2801,2801,3065,3065,3449,3449,3647,3647,6107,6107,8240,8247,8279,8279,8352,8399,8451,8451,8457,8457,8470,8470,8722,8723,43064,43064,65020,65020,65129,65130,65284,65285,65504,65505,65509,65510,73693,73696,123647,123647,126124,126124,126128,126128];function bI(e){const t=e.codePointAt(0);return t!==void 0&&(function(n,s){for(let o=0;o<s.length;o+=2)if(n>=s[o]&&n<=s[o+1])return!0;return!1})(t,eze)}function tze(e){const t=(function(n){for(const s of n)if(!kh.test(s))return s;return null})(e);return t!==null&&hR.test(t)}function nze(e){const t=Array.from(e);let n=t.length;for(;n>0;){const s=t[n-1];if(kh.test(s))n--;else{if(!xA.has(s)&&!vR.has(s))break;n--}}return n<=0||n===t.length?null:{head:t.slice(0,n).join(""),tail:t.slice(n).join("")}}function sze(e,t,n){return n!=="text"||t||e.length!==1||e==="-"||e==="—"?null:e}function oL(e,t,n,s){const o=t[s],a=e[s];if(o==null)return a;const r=n[s];if(a.length===r)return a;const l=o.repeat(r);return e[s]=l,l}function iL(e,t){return e&&t!==null&&GFe.has(t)}function oze(e){const t=rb(e);return t!==null&&YFe.has(t)}function ize(e){if(e.length<2||e[0]!==" ")return null;const t=e.slice(1);return new RegExp("^\\p{M}+$","u").test(t)?{space:" ",marks:t}:null}function H3(e){let t=e.length;for(;t>0;){const n=yI(e,t),s=e.slice(n,t);if(QFe.has(s))return!0;if(!tv.has(s))return!1;t=n}return!1}function aze(e,t){if(t.preserveOrdinarySpaces||t.preserveHardBreaks){if(e===" ")return"preserved-space";if(e===" ")return"tab";if(t.preserveHardBreaks&&e===`
|
|
596
596
|
`)return"hard-break"}return e===" "?"space":e===" "||e===" "||e===""||e==="\uFEFF"?"glue":e===""?"zero-width-break":e===""?"soft-hyphen":"text"}const rze=/[\x20\t\n\xA0\xAD\u200B\u202F\u2060\uFEFF]/;function pp(e){return e.length===1?e[0]:e.join("")}function lze(e,t){const n=[];for(let s=e.length-1;s>=0;s--)n.push(e[s]);return n.push(t),pp(n)}function cze(e,t,n,s){if(!rze.test(e))return[{text:e,isWordLike:t,kind:"text",start:n}];const o=[];let a=null,r=[],l=n,c=!1,u=0;for(const p of e){const g=aze(p,s),y=g==="text"&&t;a===null||g!==a||y!==c?(a!==null&&o.push({text:pp(r),isWordLike:c,kind:a,start:l}),a=g,r=[p],l=n+u,c=y,u+=p.length):(r.push(p),u+=p.length)}return a!==null&&o.push({text:pp(r),isWordLike:c,kind:a,start:l}),o}function Kx(e){return e==="space"||e==="preserved-space"||e==="zero-width-break"||e==="hard-break"}const uze=/^[A-Za-z][A-Za-z0-9+.-]*:$/;function dze(e,t){const n=e.texts[t];return!!n.startsWith("www.")||uze.test(n)&&t+1<e.len&&e.kinds[t+1]==="text"&&e.texts[t+1]==="//"}function pze(e){return e.includes("?")&&(e.includes("://")||e.startsWith("www."))}const fze=new Set([":","-","/","×",",",".","+","–","—"]),mze=/[\p{P}\p{S}\p{Co}]/u,hze=new RegExp("\\p{Emoji_Presentation}","u"),gze=new Set(["?","֊","-","‐","‒","–","—","…","‼","‽","⁉"]);function vZ(e){const t=e.charCodeAt(0);return t<128?(function(n){return n>=33&&n<=47&&n!==45||n>=58&&n<=64&&n!==63||n>=91&&n<=96||n>=123&&n<=126})(t):!gze.has(e)&&!hze.test(e)&&mze.test(e)}function aL(e){let t=!1;for(const n of e)if(!kh.test(n)){if(!vZ(n))return!1;t=!0}return t}function vze(e,t,n,s){const o=!t&&aL(e),a=!s&&aL(n),r=(function(c){const u=(function(p){for(let g=p.length;g>0;){const y=yI(p,g),v=p.slice(y,g);if(!kh.test(v))return v;g=y}return null})(c);return u!==null&&bI(u)})(e),l=(t||r)&&(function(c){for(let u=c.length;u>0;){const p=yI(c,u),g=c.slice(p,u);if(!kh.test(g))return vZ(g)||bI(g);u=p}return!1})(e);return!!(o||a||l)&&!sf(e)&&!sf(n)&&(t||o||r)&&(s||a)}function rL(e){for(const t of e)if(hR.test(t))return!0;return!1}function T2(e){if(e.length===0)return!1;for(const t of e)if(!hR.test(t)&&!fze.has(t))return!1;return!0}function yze(e,t){if(e.len===0)return[];if(!t.preserveHardBreaks)return[{startSegmentIndex:0,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}];const n=[];let s=0;for(let o=0;o<e.len;o++)e.kinds[o]==="hard-break"&&(n.push({startSegmentIndex:s,endSegmentIndex:o,consumedEndSegmentIndex:o+1}),s=o+1);return s<e.len&&n.push({startSegmentIndex:s,endSegmentIndex:e.len,consumedEndSegmentIndex:e.len}),n}function bze(e,t,n="normal",s="normal"){const o=(function(c){const u=c??"normal";return u==="pre-wrap"?{mode:u,preserveOrdinarySpaces:!0,preserveHardBreaks:!0}:{mode:u,preserveOrdinarySpaces:!1,preserveHardBreaks:!1}})(n),a=o.mode==="pre-wrap"?(function(c){return/[\r\f]/.test(c)?c.replace(/\r\n/g,`
|
|
597
597
|
`).replace(/[\r\f]/g,`
|
|
598
598
|
`):c})(e):(function(c){if(!qFe.test(c))return c;let u=c.replace(VFe," ");return u.charCodeAt(0)===32&&(u=u.slice(1)),u.length>0&&u.charCodeAt(u.length-1)===32&&(u=u.slice(0,-1)),u})(e);if(a.length===0)return{normalized:a,chunks:[],len:0,texts:[],isWordLike:[],kinds:[],starts:[]};const r=(function(c,u,p){var g,y,v;const w=(Wx===null&&(Wx=new Intl.Segmenter(void 0,{granularity:"word"})),Wx);let k=0;const A=[],_=[],S=[],I=[],x=[],T=[],R=[],M=[],$=[],O=[],F=[],B=[];for(const L of w.segment(c))for(const K of cze(L.segment,(g=L.isWordLike)!=null&&g,L.index,p)){let G=function(){T[te]!==null&&(_[te]=[oL(A,T,R,te)],T[te]=null),_[te].push(K.text),S[te]=S[te]||K.isWordLike,M[te]=M[te]||ee,$[te]=$[te]||ie,O[te]=oe,F[te]=ae,B[te]=iL($[te],le)};const Q=K.kind==="text",J=sze(K.text,K.isWordLike,K.kind),ee=sf(K.text),ie=nL(K.text),le=rb(K.text),oe=H3(K.text),ae=oze(K.text),te=k-1;u.carryCJKAfterClosingQuote&&Q&&k>0&&I[te]==="text"&&ee&&M[te]&&O[te]||Q&&k>0&&I[te]==="text"&&XFe(K.text)&&M[te]||Q&&k>0&&I[te]==="text"&&F[te]?G():Q&&k>0&&I[te]==="text"&&K.isWordLike&&ie&&B[te]?(G(),S[te]=!0):J!==null&&k>0&&I[te]==="text"&&T[te]===J?R[te]=((y=R[te])!=null?y:1)+1:Q&&!K.isWordLike&&k>0&&I[te]==="text"&&!M[te]&&(ZFe(K.text)||K.text==="-"&&S[te])?G():(A[k]=K.text,_[k]=[K.text],S[k]=K.isWordLike,I[k]=K.kind,x[k]=K.start,T[k]=J,R[k]=J===null?0:1,M[k]=ee,$[k]=ie,O[k]=oe,F[k]=ae,B[k]=iL(ie,le),k++)}for(let L=0;L<k;L++)T[L]===null?A[L]=pp(_[L]):A[L]=oL(A,T,R,L);for(let L=1;L<k;L++)I[L]!=="text"||S[L]||!yR(A[L])||I[L-1]!=="text"||M[L-1]||(A[L-1]+=A[L],S[L-1]=S[L-1]||S[L],A[L]="");const N=Array.from({length:k},()=>null);let z=-1;for(let L=k-1;L>=0;L--){const K=A[L];if(K.length!==0){if(I[L]==="text"&&!S[L]&&z>=0&&I[z]==="text"&&(JFe(K)||K==="-"&&tze(A[z]))){const G=(v=N[z])!=null?v:[];G.push(K),N[z]=G,x[z]=x[L],A[L]="";continue}z=L}}for(let L=0;L<k;L++){const K=N[L];K!=null&&(A[L]=lze(K,A[L]))}let H=0;for(let L=0;L<k;L++){const K=A[L];K.length!==0&&(H!==L&&(A[H]=K,S[H]=S[L],I[H]=I[L],x[H]=x[L]),H++)}A.length=H,S.length=H,I.length=H,x.length=H;const U=(function(L){const K=L.texts.slice(),G=L.isWordLike.slice(),Q=L.kinds.slice(),J=L.starts.slice();for(let ee=0;ee<K.length-1;ee++){if(Q[ee]!=="text"||Q[ee+1]!=="text"||!sf(K[ee])||!sf(K[ee+1]))continue;const ie=nze(K[ee]);ie!==null&&(K[ee]=ie.head,K[ee+1]=ie.tail+K[ee+1],J[ee+1]=J[ee]+ie.head.length)}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=[],G=[],Q=[],J=[];let ee=0;for(;ee<L.len;){const ie=L.texts[ee],le=L.kinds[ee],oe=L.isWordLike[ee];if(le==="text"){const ae=[ie];let te=ee+1,Z=oe;for(;te<L.len&&L.kinds[te]==="text"&&vze(L.texts[te-1],L.isWordLike[te-1],L.texts[te],L.isWordLike[te]);){const Ce=L.texts[te];ae.push(Ce),Z=Z||L.isWordLike[te],te++}if(te>ee+1){K.push(pp(ae)),G.push(Z),Q.push("text"),J.push(L.starts[ee]),ee=te;continue}}K.push(ie),G.push(oe),Q.push(le),J.push(L.starts[ee]),ee++}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=[],G=[],Q=[],J=[];for(let ee=0;ee<L.len;ee++){const ie=L.texts[ee];if(L.kinds[ee]==="text"&&ie.includes("-")){const le=ie.split("-");let oe=le.length>1;for(let ae=0;ae<le.length;ae++){const te=le[ae];if(!oe)break;te.length!==0&&rL(te)&&T2(te)||(oe=!1)}if(oe){let ae=0;for(let te=0;te<le.length;te++){const Z=le[te],Ce=te<le.length-1?`${Z}-`:Z;K.push(Ce),G.push(!0),Q.push("text"),J.push(L.starts[ee]+ae),ae+=Ce.length}continue}}K.push(ie),G.push(L.isWordLike[ee]),Q.push(L.kinds[ee]),J.push(L.starts[ee])}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=[],G=[],Q=[],J=[];for(let ee=0;ee<L.len;ee++){const ie=L.texts[ee],le=L.kinds[ee];if(le==="text"&&T2(ie)&&rL(ie)){const oe=[ie];let ae=ee+1;for(;ae<L.len&&L.kinds[ae]==="text"&&T2(L.texts[ae]);)oe.push(L.texts[ae]),ae++;K.push(pp(oe)),G.push(!0),Q.push("text"),J.push(L.starts[ee]),ee=ae-1;continue}K.push(ie),G.push(L.isWordLike[ee]),Q.push(le),J.push(L.starts[ee])}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=[],G=[],Q=[],J=[];for(let ee=0;ee<L.len;ee++){const ie=L.texts[ee];if(K.push(ie),G.push(L.isWordLike[ee]),Q.push(L.kinds[ee]),J.push(L.starts[ee]),!pze(ie))continue;const le=ee+1;if(le>=L.len||Kx(L.kinds[le]))continue;const oe=[],ae=L.starts[le];let te=le;for(;te<L.len&&!Kx(L.kinds[te]);)oe.push(L.texts[te]),te++;oe.length>0&&(K.push(pp(oe)),G.push(!0),Q.push("text"),J.push(ae),ee=te-1)}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=L.texts.slice(),G=L.isWordLike.slice(),Q=L.kinds.slice(),J=L.starts.slice();for(let ie=0;ie<L.len;ie++){if(Q[ie]!=="text"||!dze(L,ie))continue;const le=[K[ie]];let oe=ie+1;for(;oe<L.len&&!Kx(Q[oe]);){le.push(K[oe]),G[ie]=!0;const ae=K[oe].includes("?");if(Q[oe]="text",K[oe]="",oe++,ae)break}K[ie]=pp(le)}let ee=0;for(let ie=0;ie<K.length;ie++){const le=K[ie];le.length!==0&&(ee!==ie&&(K[ee]=le,G[ee]=G[ie],Q[ee]=Q[ie],J[ee]=J[ie]),ee++)}return K.length=ee,G.length=ee,Q.length=ee,J.length=ee,{len:ee,texts:K,isWordLike:G,kinds:Q,starts:J}})((function(L){const K=[],G=[],Q=[],J=[];let ee=0;for(;ee<L.len;){const ie=[L.texts[ee]];let le=L.isWordLike[ee],oe=L.kinds[ee],ae=L.starts[ee];if(oe==="glue"){const te=[ie[0]],Z=ae;for(ee++;ee<L.len&&L.kinds[ee]==="glue";)te.push(L.texts[ee]),ee++;const Ce=pp(te);if(!(ee<L.len&&L.kinds[ee]==="text")){K.push(Ce),G.push(!1),Q.push("glue"),J.push(Z);continue}ie[0]=Ce,ie.push(L.texts[ee]),le=L.isWordLike[ee],oe="text",ae=Z,ee++}else ee++;if(oe==="text")for(;ee<L.len&&L.kinds[ee]==="glue";){const te=[];for(;ee<L.len&&L.kinds[ee]==="glue";)te.push(L.texts[ee]),ee++;const Z=pp(te);ee<L.len&&L.kinds[ee]==="text"?(ie.push(Z,L.texts[ee]),le=le||L.isWordLike[ee],ee++):ie.push(Z)}K.push(pp(ie)),G.push(le),Q.push(oe),J.push(ae)}return{len:K.length,texts:K,isWordLike:G,kinds:Q,starts:J}})({len:H,texts:A,isWordLike:S,kinds:I,starts:x})))))));for(let L=0;L<U.len-1;L++){const K=ize(U.texts[L]);K!==null&&(U.kinds[L]!=="space"&&U.kinds[L]!=="preserved-space"||U.kinds[L+1]!=="text"||!nL(U.texts[L+1])||(U.texts[L]=K.space,U.isWordLike[L]=!1,U.kinds[L]=U.kinds[L]==="preserved-space"?"preserved-space":"space",U.texts[L+1]=K.marks+U.texts[L+1],U.starts[L+1]=U.starts[L]+K.space.length))}return U})(a,t,o),l=s==="keep-all"?(function(c,u,p){if(u.len<=1)return u;const g=[],y=[],v=[],w=[];let k=-1,A=!1;function _(I){g.push(u.texts[I]),y.push(u.isWordLike[I]),v.push("text"),w.push(u.starts[I])}function S(I){if(!(k<0)){if(A)k+1===I?_(k):(function(x,T){let R=!1;for(let O=x;O<T;O++)R=R||u.isWordLike[O];const M=u.starts[x],$=T<u.len?u.starts[T]:c.length;g.push(c.slice(M,$)),y.push(R),v.push("text"),w.push(M)})(k,I);else for(let x=k;x<I;x++)_(x);k=-1,A=!1}}for(let I=0;I<u.len;I++){const x=u.texts[I],T=u.kinds[I];T!=="text"?(S(I),g.push(x),y.push(u.isWordLike[I]),v.push(T),w.push(u.starts[I])):(k>=0&&!gZ(u.texts[I-1],p)&&S(I),k<0&&(k=I),A=A||sf(x))}return S(u.len),{len:g.length,texts:g,isWordLike:y,kinds:v,starts:w}})(a,r,t.breakKeepAllAfterPunctuation):r;return En({normalized:a,chunks:yze(l,o)},l)}let Yv=null;const lL=new Map;let Qv=null;const kze=new RegExp("\\p{Emoji_Presentation}","u"),wze=/[\p{Emoji_Presentation}\p{Extended_Pictographic}\p{Regional_Indicator}\uFE0F\u20E3]/u;let Gx=null;const cL=new Map;function V3(){if(Yv!==null)return Yv;if(typeof OffscreenCanvas<"u")return Yv=new OffscreenCanvas(1,1).getContext("2d"),Yv;if(typeof document<"u")return Yv=document.createElement("canvas").getContext("2d"),Yv;throw new Error("Text measurement requires OffscreenCanvas or a DOM canvas context.")}function Fm(e,t){let n=t.get(e);return n===void 0&&(n={width:V3().measureText(e).width,containsCJK:sf(e)},t.set(e,n)),n}function kI(){if(Qv!==null)return Qv;if(typeof navigator>"u")return Qv={lineFitEpsilon:.005,carryCJKAfterClosingQuote:!1,breakKeepAllAfterPunctuation:!0,preferPrefixWidthsForBreakableRuns:!1,preferEarlySoftHyphenBreak:!1},Qv;const e=navigator.userAgent,t=navigator.vendor==="Apple Computer, Inc."&&e.includes("Safari/")&&!e.includes("Chrome/")&&!e.includes("Chromium/")&&!e.includes("CriOS/")&&!e.includes("FxiOS/")&&!e.includes("EdgiOS/"),n=e.includes("Chrome/")||e.includes("Chromium/")||e.includes("CriOS/")||e.includes("Edg/");return Qv={lineFitEpsilon:t?1/64:.005,carryCJKAfterClosingQuote:n,breakKeepAllAfterPunctuation:!t,preferPrefixWidthsForBreakableRuns:t,preferEarlySoftHyphenBreak:t},Qv}function yZ(){return Gx===null&&(Gx=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Gx}function Sze(e){return kze.test(e)||e.includes("️")}function lg(e,t,n){return n===0?t.width:t.width-(function(s,o){return o.emojiCount===void 0&&(o.emojiCount=(function(a){let r=0;const l=yZ();for(const c of l.segment(a))Sze(c.segment)&&r++;return r})(s)),o.emojiCount})(e,t)*n}function _ze(e){return e==="space"||e==="zero-width-break"||e==="soft-hyphen"}function uL(e){return e==="space"||e==="preserved-space"||e==="tab"||e==="zero-width-break"||e==="soft-hyphen"}function dL(e,t,n=e.widths.length){for(;t<n&&_ze(e.kinds[t]);)t++;return t}function Ize(e,t){if(t<=0)return 0;const n=e%t;return Math.abs(n)<=1e-6?t:t-n}function Aze(e,t,n){return e.letterSpacing!==0&&t&&e.spacingGraphemeCounts[n]>0?e.letterSpacing:0}function bR(e,t){return t===0?0:e+t}function Cze(e,t,n,s,o){return bR(s,t==="tab"?o+(function(a,r){return a.letterSpacing!==0&&a.spacingGraphemeCounts[r]>0?a.letterSpacing:0})(e,n):e.lineEndFitAdvances[n])}function pL(e,t,n,s){return bR(s,t==="tab"?0:e.lineEndFitAdvances[n])}function fL(e,t,n,s,o){return bR(s,t==="tab"?o:e.lineEndPaintAdvances[n])}function xze(e,t,n){return e.letterSpacing!==0&&t?n+e.letterSpacing:n}function Eze(e,t){return e.letterSpacing===0?t:t+e.letterSpacing}function bS(e,t,n){let s=t;for(;s<e.length&&e[s]<n;)s++;return s}function Tze(e,t){return(function(n,s){if(n.simpleLineWalkFastPath)return(function(N,z){const{widths:H,kinds:U,breakableFitAdvances:L,breakablePreferredBreaks:K}=N;if(H.length===0)return 0;const G=z+kI().lineFitEpsilon;let Q=0,J=0,ee=!1,ie=0,le=0,oe=-1,ae=0;function te(be=ie,ue=le,ye=J){Q++,J=0,ee=!1,oe=-1,ae=0}function Z(be,ue){ee=!0,ie=be+1,le=0,J=ue}function Ce(be,ue,ye){ee=!0,ie=be,le=ue+1,J=ye}function Fe(be,ue){ee?(J+=ue,ie=be+1,le=0):Z(be,ue)}function Pe(be,ue){var ye;const ke=L[be],ve=(ye=K[be])!=null?ye:null;let xe=ve===null?-1:bS(ve,0,ue+1),se=-1,de=0,De=ue;for(;De<ke.length;){const me=ke[De];if(ee)if(J+me>G){if(ve!==null&&se>ue){te(be,se,de),De=se,xe=bS(ve,xe,De+1),se=-1,de=0;continue}te(),Ce(be,De,me)}else J+=me,ie=be,le=De+1;else Ce(be,De,me);const Be=De+1;ve!==null&&ve[xe]===Be&&(se=Be,de=J,xe++),De++}ee&&ie===be&&le===ke.length&&(ie=be+1,le=0)}let fe=0;for(;fe<H.length&&(ee||(fe=dL(N,fe),!(fe>=H.length)));){const be=H[fe],ue=uL(U[fe]);if(ee)if(J+be>G){if(ue){Fe(fe,be),te(fe+1,0,J-be),fe++;continue}if(oe>=0){if(ie>oe||ie===oe&&le>0){te();continue}te(oe,0,ae);continue}if(be>G&&L[fe]!==null){te(),Pe(fe,0),fe++;continue}te()}else Fe(fe,be),ue&&(oe=fe+1,ae=J-be),fe++;else be>G&&L[fe]!==null?Pe(fe,0):Z(fe,be),ue&&(oe=fe+1,ae=J-be),fe++}return ee&&te(),Q})(n,s);const{widths:o,kinds:a,breakableFitAdvances:r,breakablePreferredBreaks:l,discretionaryHyphenWidth:c,chunks:u}=n;if(o.length===0||u.length===0)return 0;const p=kI(),g=s+p.lineFitEpsilon;let y=0,v=0,w=!1,k=0,A=0,_=-1,S=0,I=null;function x(){_=-1,S=0,I=null}function T(N=k,z=A,H){y++,v=0,w=!1,x()}function R(N,z){w=!0,k=N+1,A=0,v=z}function M(N,z,H){w=!0,k=N,A=z+1,v=H}function $(N,z){w?(v+=z,k=N+1,A=0):R(N,z)}function O(N,z,H,U,L,K){if(!z)return;const G=pL(n,N,H,L);fL(n,N,H,L,U),_=H+1,S=v-K+G,I=N}function F(N,z){var H;const U=r[N],L=(H=l[N])!=null?H:null;let K=L===null?-1:bS(L,0,z+1),G=-1,Q=z;for(;Q<U.length;){const J=U[Q];if(w){const ie=xze(n,!0,J),le=v+ie;if(Eze(n,le)>g){if(L!==null&&G>z){T(N,G),Q=G,K=bS(L,K,Q+1),G=-1;continue}T(),M(N,Q,J)}else v=le,k=N,A=Q+1}else M(N,Q,J);const ee=Q+1;L!==null&&L[K]===ee&&(G=ee,K++),Q++}w&&k===N&&A===U.length&&(k=N+1,A=0)}function B(N){y++,x()}for(let N=0;N<u.length;N++){const z=u[N];if(z.startSegmentIndex===z.endSegmentIndex){B();continue}w=!1,v=0,z.startSegmentIndex,k=z.startSegmentIndex,A=0,x();let H=z.startSegmentIndex;for(;H<z.endSegmentIndex&&(w||(H=dL(n,H,z.endSegmentIndex),!(H>=z.endSegmentIndex)));){const U=a[H],L=uL(U),K=Aze(n,w,H),G=U==="tab"?Ize(v+K,n.tabStopAdvance):o[H],Q=K+G,J=Cze(n,U,H,K,G);if(U!=="soft-hyphen")if(w){if(v+J>g){const ee=v+pL(n,U,H,K);if(fL(n,U,H,K,G),I==="soft-hyphen"&&p.preferEarlySoftHyphenBreak&&S<=g){T(_,0);continue}if(L&&ee<=g){$(H,Q),T(H+1,0),H++;continue}if(_>=0&&S<=g){if(k>_||k===_&&A>0){T();continue}const ie=_;T(ie,0),H=ie;continue}if(J>g&&r[H]!==null){T(),F(H,0),H++;continue}T();continue}$(H,Q),O(U,L,H,G,K,Q),H++}else J>g&&r[H]!==null?F(H,0):R(H,G),O(U,L,H,G,K,Q),H++;else w&&(k=H+1,A=0,_=H+1,S=v+c,I=U),H++}w&&(z.consumedEndSegmentIndex,T(z.consumedEndSegmentIndex,0))}return y})(e,t)}let Yx=null;function kR(){return Yx===null&&(Yx=new Intl.Segmenter(void 0,{granularity:"grapheme"})),Yx}function Nze(e,t){const n=[];let s=[],o=0,a=!1,r=!1,l=!1;function c(){s.length!==0&&(n.push({text:s.length===1?s[0]:s.join(""),start:o}),s=[],a=!1,r=!1,l=!1)}function u(g,y,v){s=[g],o=y,a=v,r=H3(g),l=xA.has(g)}function p(g,y){s.push(g),a=a||y;const v=H3(g);r=g.length===1&&tv.has(g)&&r||v,l=!1}for(const g of kR().segment(e)){const y=g.segment,v=sf(y);s.length!==0?l||gR.has(y)||tv.has(y)||t.carryCJKAfterClosingQuote&&v&&r?p(y,v):a||v?(c(),u(y,g.index,v)):p(y,v):u(y,g.index,v)}return c(),n}function Rze(e,t,n){if(t.length<=1)return t;const s=[];let o=-1,a=!1;function r(l){if(!(o<0)){if(a)o+1===l?s.push(t[o]):(function(c,u){const p=t[c].start,g=u<t.length?t[u].start:e.length;s.push({text:e.slice(p,g),start:p})})(o,l);else for(let c=o;c<l;c++)s.push(t[c]);o=-1,a=!1}}for(let l=0;l<t.length;l++){const c=t[l];o>=0&&!gZ(t[l-1].text,n)&&r(l),o<0&&(o=l),a=a||sf(c.text)}return r(t.length),s}function mL(e,t){if(t==="zero-width-break"||t==="soft-hyphen"||t==="hard-break")return 0;if(t==="tab")return 1;let n=0;const s=kR();for(const o of s.segment(e))n++;return n}function Mze(e){return e==="-"||e==="֊"||e==="‐"||e==="‒"||e==="–"||e==="—"}function $ze(e,t,n,s,o){const a=kI(),{cache:r,emojiCorrection:l}=(function(B,N){V3().font=B;const z=(function(L){let K=lL.get(L);return K||(K=new Map,lL.set(L,K)),K})(B),H=(function(L){const K=L.match(/(\d+(?:\.\d+)?)\s*px/);return K?parseFloat(K[1]):16})(B),U=N?(function(L,K){let G=cL.get(L);if(G!==void 0)return G;const Q=V3();Q.font=L;const J=Q.measureText("😀").width;if(G=0,J>K+.5&&typeof document<"u"&&document.body!==null){const ee=document.createElement("span");ee.style.font=L,ee.style.display="inline-block",ee.style.visibility="hidden",ee.style.position="absolute",ee.textContent="😀",document.body.appendChild(ee);const ie=ee.getBoundingClientRect().width;document.body.removeChild(ee),J-ie>.5&&(G=J-ie)}return cL.set(L,G),G})(B,H):0;return{cache:z,fontSize:H,emojiCorrection:U}})(t,(c=e.normalized,wze.test(c)));var c;const u=lg("-",Fm("-",r),l)+(o===0?0:2*o),p=8*lg(" ",Fm(" ",r),l),g=o!==0;if(e.len===0)return{widths:[],lineEndFitAdvances:[],lineEndPaintAdvances:[],kinds:[],simpleLineWalkFastPath:!0,segLevels:null,breakableFitAdvances:[],breakablePreferredBreaks:[],letterSpacing:0,spacingGraphemeCounts:[],discretionaryHyphenWidth:0,tabStopAdvance:0,chunks:[]};const y=[],v=[],w=[],k=[];let A=e.chunks.length<=1&&!g;const _=null,S=[],I=[],x=[],T=null,R=Array.from({length:e.len});function M(B,N,z,H,U,L,K,G,Q){U!=="text"&&U!=="space"&&U!=="zero-width-break"&&(A=!1),y.push(N),v.push(z),w.push(H),k.push(U),S.push(K),I.push(G),g&&x.push(Q)}function $(B,N,z,H,U){const L=Fm(B,r),K=g?mL(B,N):0,G=(function(ie,le,oe){return le>1?ie+(le-1)*oe:ie})(lg(B,L,l),K,o),Q=N==="space"||N==="preserved-space"||N==="zero-width-break"?0:G,J=Q===0?0:Q+(K>0?o:0),ee=N==="space"||N==="zero-width-break"?0:G;if(U&&H&&B.length>1){let ie="sum-graphemes";o!==0?ie="segment-prefixes":T2(B)?ie="pair-context":a.preferPrefixWidthsForBreakableRuns&&(ie="segment-prefixes");const le=(function(ae,te,Z,Ce,Fe){if(te.breakableFitAdvances!==void 0&&te.breakableFitMode===Fe)return te.breakableFitAdvances;te.breakableFitMode=Fe;const Pe=yZ(),fe=[];for(const ke of Pe.segment(ae))fe.push(ke.segment);if(fe.length<=1)return te.breakableFitAdvances=null,te.breakableFitAdvances;if(Fe==="sum-graphemes"){const ke=[];for(const ve of fe){const xe=Fm(ve,Z);ke.push(lg(ve,xe,Ce))}return te.breakableFitAdvances=ke,te.breakableFitAdvances}if(Fe==="pair-context"||fe.length>96){const ke=[];let ve=null,xe=0;for(const se of fe){const de=lg(se,Fm(se,Z),Ce);if(ve===null)ke.push(de);else{const De=ve+se,me=Fm(De,Z);ke.push(lg(De,me,Ce)-xe)}ve=se,xe=de}return te.breakableFitAdvances=ke,te.breakableFitAdvances}const be=[];let ue="",ye=0;for(const ke of fe){ue+=ke;const ve=lg(ue,Fm(ue,Z),Ce);be.push(ve-ye),ye=ve}return te.breakableFitAdvances=be,te.breakableFitAdvances})(B,L,r,l,ie),oe=le===null||s==="keep-all"?null:(function(ae){if(!/[-\u058A\u2010\u2012\u2013\u2014]/u.test(ae))return null;const te=[];let Z=0;for(const Ce of kR().segment(ae))Z++,Mze(Ce.segment)&&te.push(Z);return te.length===0?null:te})(B);return void M(B,G,J,ee,N,z,le,oe,K)}M(B,G,J,ee,N,z,null,null,K)}for(let B=0;B<e.len;B++){R[B]=y.length;const N=e.texts[B],z=e.isWordLike[B],H=e.kinds[B],U=e.starts[B];if(H==="soft-hyphen"){M(N,0,u,u,H,U,null,null,0);continue}if(H==="hard-break"){M(N,0,0,0,H,U,null,null,0);continue}if(H==="tab"){M(N,0,0,0,H,U,null,null,g?mL(N,H):0);continue}const L=Fm(N,r);if(H==="text"&&L.containsCJK){const K=Nze(N,a),G=s==="keep-all"?Rze(N,K,a.breakKeepAllAfterPunctuation):K;for(let Q=0;Q<G.length;Q++){const J=G[Q];$(J.text,"text",U+J.start,z,s==="keep-all"||!sf(J.text))}continue}$(N,H,U,z,!0)}const O=(function(B,N,z){const H=[];for(let U=0;U<B.length;U++){const L=B[U],K=L.startSegmentIndex<N.length?N[L.startSegmentIndex]:z,G=L.endSegmentIndex<N.length?N[L.endSegmentIndex]:z,Q=L.consumedEndSegmentIndex<N.length?N[L.consumedEndSegmentIndex]:z;H.push({startSegmentIndex:K,endSegmentIndex:G,consumedEndSegmentIndex:Q})}return H})(e.chunks,R,y.length),F=_===null?null:(function(B,N){const z=(function(U){const L=U.length;if(L===0)return null;const K=new Array(L);let G=!1;for(let oe=0;oe<L;){const ae=U.charCodeAt(oe);let te=ae,Z=1;if(ae>=55296&&ae<=56319&&oe+1<L){const Fe=U.charCodeAt(oe+1);Fe>=56320&&Fe<=57343&&(te=Fe-56320+(ae-55296<<10)+65536,Z=2)}const Ce=HFe(te);Ce!=="R"&&Ce!=="AL"&&Ce!=="AN"||(G=!0);for(let Fe=0;Fe<Z;Fe++)K[oe+Fe]=Ce;oe+=Z}if(!G)return null;let Q=0;for(let oe=0;oe<L;oe++){const ae=K[oe];if(ae==="L"){Q=0;break}if(ae==="R"||ae==="AL"){Q=1;break}}const J=new Int8Array(L);for(let oe=0;oe<L;oe++)J[oe]=Q;const ee=1&Q?"R":"L",ie=ee;let le=ie;for(let oe=0;oe<L;oe++)K[oe]==="NSM"?K[oe]=le:le=K[oe];le=ie;for(let oe=0;oe<L;oe++){const ae=K[oe];ae==="EN"?K[oe]=le==="AL"?"AN":"EN":ae!=="R"&&ae!=="L"&&ae!=="AL"||(le=ae)}for(let oe=0;oe<L;oe++)K[oe]==="AL"&&(K[oe]="R");for(let oe=1;oe<L-1;oe++)K[oe]==="ES"&&K[oe-1]==="EN"&&K[oe+1]==="EN"&&(K[oe]="EN"),K[oe]!=="CS"||K[oe-1]!=="EN"&&K[oe-1]!=="AN"||K[oe+1]!==K[oe-1]||(K[oe]=K[oe-1]);for(let oe=0;oe<L;oe++){if(K[oe]!=="EN")continue;let ae;for(ae=oe-1;ae>=0&&K[ae]==="ET";ae--)K[ae]="EN";for(ae=oe+1;ae<L&&K[ae]==="ET";ae++)K[ae]="EN"}for(let oe=0;oe<L;oe++){const ae=K[oe];ae!=="WS"&&ae!=="ES"&&ae!=="ET"&&ae!=="CS"||(K[oe]="ON")}le=ie;for(let oe=0;oe<L;oe++){const ae=K[oe];ae==="EN"?K[oe]=le==="L"?"L":"EN":ae!=="R"&&ae!=="L"||(le=ae)}for(let oe=0;oe<L;oe++){if(K[oe]!=="ON")continue;let ae=oe+1;for(;ae<L&&K[ae]==="ON";)ae++;const te=(oe>0?K[oe-1]:ie)!=="L"?"R":"L";if(te===((ae<L?K[ae]:ie)!=="L"?"R":"L"))for(let Z=oe;Z<ae;Z++)K[Z]=te;oe=ae-1}for(let oe=0;oe<L;oe++)K[oe]==="ON"&&(K[oe]=ee);for(let oe=0;oe<L;oe++){const ae=K[oe];1&J[oe]?ae!=="L"&&ae!=="AN"&&ae!=="EN"||J[oe]++:ae==="R"?J[oe]++:ae!=="AN"&&ae!=="EN"||(J[oe]+=2)}return J})(B);if(z===null)return null;const H=new Int8Array(N.length);for(let U=0;U<N.length;U++)H[U]=z[N[U]];return H})(e.normalized,_);return T!==null?{widths:y,lineEndFitAdvances:v,lineEndPaintAdvances:w,kinds:k,simpleLineWalkFastPath:A,segLevels:F,breakableFitAdvances:S,breakablePreferredBreaks:I,letterSpacing:o,spacingGraphemeCounts:x,discretionaryHyphenWidth:u,tabStopAdvance:p,chunks:O,segments:T}:{widths:y,lineEndFitAdvances:v,lineEndPaintAdvances:w,kinds:k,simpleLineWalkFastPath:A,segLevels:F,breakableFitAdvances:S,breakablePreferredBreaks:I,letterSpacing:o,spacingGraphemeCounts:x,discretionaryHyphenWidth:u,tabStopAdvance:p,chunks:O}}const Qx="__MARKSTREAM_VUE_HEIGHT_ESTIMATION_EXPERIMENT__",Oze=["diff ","index ","--- ","+++ ","@@ "],sl=(()=>{const e=globalThis;if(e[Qx])return e[Qx];const t={configs:{},controllers:{},revision:gi(0),preparedCache:new Map,blockEstimateCache:new Map};return e[Qx]=t,t})();let uy=null;const Zx=sl.revision;function hL(e){var t;return e&&(t=sl.configs[e])!=null?t:null}function gL(e,t){const n=Number.parseFloat(String(e??""));return Number.isFinite(n)&&n>0?n:t}function Pze(e){return e?.type==="text"||e?.type==="emoji"||e?.type==="hardbreak"}function Xx(e){var t,n,s;if(!Array.isArray(e)||e.length===0)return null;let o="";for(const a of e){if(!Pze(a))return null;a.type==="text"?o+=String((t=a.content)!=null?t:""):a.type==="emoji"?o+=String((s=(n=a.name)!=null?n:a.raw)!=null?s:""):a.type==="hardbreak"&&(o+=`
|
|
@@ -600,7 +600,7 @@ ${I}`);p+=M}else p+=R;p+=_,g=v?y+1:e.length}return p}function J9e(e,t){if(!e||!t
|
|
|
600
600
|
`,t-1)+1;return e.slice(n,t).trim()}function xL(e){const t=IZ(e);return t.length>=2&&t.every(n=>{const s=n.trim();return s.length>=1&&s.replace(/^:/,"").replace(/:$/,"").split("").every(o=>o==="-")})}function IZ(e){return e.includes("|")?e.replace(/^\|/,"").replace(/\|$/,"").split("|"):[]}function AZ(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=Math.imul(t,16777619);return(t>>>0).toString(36)}function wR(e){const t=String(e??"");return`${t.length}:${AZ(t)}`}function j3(e,t=new WeakMap,n=0){if(e==null||typeof e=="number"||typeof e=="boolean")return String(e);if(typeof e=="string")return`s:${(function(r){return r.length<=8192?wR(r):`${r.length}:${AZ(r.slice(0,8192))}:truncated`})(e)}`;if(typeof e=="function")return`fn:${Bu(e)}`;if(typeof e!="object")return typeof e;const s=e,o=t.get(s);if(o)return`cycle:${o}`;if(n>=6)return`object:${Bu(s)}`;const a=Bu(s);if(t.set(s,a),Array.isArray(e)){const r=e.slice(0,200);return`a:${e.length}:${r.map(l=>j3(l,t,n+1)).join(",")}`}if(typeof e=="object"){const r=e,l=Object.keys(r).sort(),c=l.slice(0,80);return`o:${l.length}:${c.sort().map(u=>`${u}:${j3(r[u],t,n+1)}`).join(";")}`}return typeof e}function wI(e){return typeof e=="object"&&e!==null&&typeof e.type=="string"&&typeof e.raw=="string"}function CZ(e,t=new WeakMap,n=0){return Array.isArray(e)?`a:${e.length}:${e.slice(0,200).map(s=>wI(s)?wh(s,t,n+1):CZ(s,t,n+1)).join(",")}`:wI(e)?wh(e,t,n):j3(e,t,n)}function Wze(e,t,n){return Object.keys(e).sort().filter(s=>s!=="children"&&!_Z.includes(s)).map(s=>{const o=e[s];return typeof o=="string"?`${s}=s:${wR(o)}`:typeof o=="number"||typeof o=="boolean"||o==null?`${s}=${String(o)}`:typeof o=="function"?`${s}=fn:${Bu(o)}`:qze.has(s)&&(Array.isArray(o)||typeof o=="object")?`${s}=${CZ(o,t,n+1)}`:o&&typeof o=="object"?`${s}=object:${Bu(o)}`:""}).filter(Boolean).join(";")}function Kze(e){return _Z.map(t=>{const n=e[t];return typeof n=="string"?`${t}=s:${wR(n)}`:""}).filter(Boolean).join(";")}function wh(e,t=new WeakMap,n=0){const s=_L.get(e);if(s)return s;const o=e,a=t.get(o);if(a)return`node-cycle:${a}`;if(n>=6)return`node:${e.type}:${Bu(o)}`;const r=Bu(o);t.set(o,r);const l=(function(c,u,p){const g=c,y=Array.isArray(g.children)?g.children:[],v=y.length?y.slice(0,200).map(w=>wh(w,u,p+1)).join("|"):"";return[c.type,Kze(g),Wze(g,u,p),y.length,v].join(":")})(e,t,n);return _L.set(o,l),l}function xZ(e,t){return wh(e)===wh(t)}function SR(e,t,n){const s=up(),o=t==="stabilizeSignatureMs"?"stabilizeSignatureCallCount":"primeSignatureCallCount";try{return n()}finally{e[t]+=up()-s,e[o]+=1,e.signatureMs=e.stabilizeSignatureMs+e.primeSignatureMs,e.signatureCallCount=e.stabilizeSignatureCallCount+e.primeSignatureCallCount}}function EL(e,t,n){return SR(t,n,()=>wh(e))}function EZ(e,t,n){return EL(e,n,"stabilizeSignatureMs")===EL(t,n,"stabilizeSignatureMs")}function kS(e){return{reusedNodeCount:0,dirtyStartIndex:e>0?0:-1,stablePrefixNodeCount:0,dirtyTailNodeCount:e}}function TL(e,t,n){return e<0?0:Math.max(t.length,n.length)-e}function NL(e){return e.__markstreamHasCustomParserExtensions===!0||(function(t){var n;return Number((n=t.__markstreamRegisteredPluginCount)!=null?n:0)>0})(e)}function Gze(e,t){return e.length===t.length&&e===t}function _R(e,t,n=0){if(n>=4)return null;if(e.type!==t.type)return!1;const s=e,o=t,a=Object.keys(s).filter(p=>p!=="type"&&p!=="children").sort(),r=Object.keys(o).filter(p=>p!=="type"&&p!=="children").sort();if(a.length!==r.length)return!1;for(let p=0;p<a.length;p++){const g=a[p];if(g!==r[p])return!1;const y=s[g],v=o[g];if(typeof y!=typeof v)return!1;if(typeof y!="string"){if(typeof y!="number"&&typeof y!="boolean"&&y!=null)return null;if(!Object.is(y,v))return!1}else if(typeof v!="string"||!Gze(y,v))return!1}const l=Object.prototype.hasOwnProperty.call(s,"children");if(l!==Object.prototype.hasOwnProperty.call(o,"children"))return!1;if(!l)return!0;const c=s.children,u=o.children;if(!Array.isArray(c)||!Array.isArray(u))return null;if(c.length!==u.length)return!1;for(let p=0;p<c.length;p++){const g=c[p],y=u[p];if(!wI(g)||!wI(y))return null;const v=_R(g,y,n+1);if(v==null)return null;if(!v)return!1}return!0}function Yze(e,t){if(!e||!t)return!1;if(e===t)return!0;if(e.type!==t.type)return!1;const n=_R(e,t);return n??xZ(e,t)}function Qze(e,t,n){if(!e||!t)return!1;if(e===t)return!0;if(e.type!==t.type)return!1;let s=null;return SR(n,"stabilizeSignatureMs",()=>{s=_R(e,t)}),s??EZ(e,t,n)}function Zze(e,t){const n={};for(const s of Hze){const o=e[s],a=t?.[s];typeof o=="number"&&(n[s]=o-(typeof a=="number"?a:0))}return n}function Xze(e,t){var n;const s=N9(t.instanceMsgId),o=new Map,a=(n=t.smoothStreamingEnabled)!=null?n:E(()=>!1),r=D(t.renderContent.value);let l,c=[],u="",p="",g="",y=!1,v=0,w=0,k=up(),A=-1,_=0;function S(z){A=Number.isInteger(z)?z:0,_+=1}function I(){l&&(clearTimeout(l),l=void 0)}function x(){I();const z=t.renderContent.value;r.value!==z&&(r.value=z),k=up()}ze([t.renderContent,t.effectiveFinal,a],([z,H,U])=>{r.value!==z&&(!U||H||(function(L,K){if(!L&&K||K.length<=80||K.length<L.length||!K.startsWith(L))return!0;const G=K.slice(L.length);return!!G&&(!!xL(CL(K))||!(!G.includes(`
|
|
601
601
|
|
|
602
602
|
`)&&!/(?:^|\n)(?:#{1,6}\s|[-+*]\s+|\d+[.)]\s+|>\s*|`{3,}|~{3,})/.test(G))||G.endsWith(`
|
|
603
|
-
`)&&!(function(Q){const J=CL(Q);if(xL(J))return!1;const ee=IZ(J);return ee.length>=2&&ee.some(ie=>ie.trim())})(K))})(r.value,z)?x():(function(){if(w+=1,l)return;const L=Math.max(0,(function(K){const G=K.parseCoalesceMs;return typeof G=="number"&&Number.isFinite(G)&&G>=0?G:80})(e)-(up()-k));L<=0?x():l=setTimeout(x,L)})())},{flush:"sync",immediate:!0}),Ec(I);const T=E(()=>{var z,H,U,L;return hOe(e.customHtmlTags,(z=e.parseOptions)==null?void 0:z.customHtmlTags,(L=(U=(H=t.customComponentsMap)==null?void 0:H.value)!=null?U:{},Object.entries(L).map(([K,G])=>{const Q=$d(K);return G==null||!Q||ow(Q)||BY.has(Q)||ew.has(Q)?"":Q}).filter(Boolean)))}),R=E(()=>{const{key:z,tags:H}=gOe(T.value);if(!z)return s;const U=o.get(z);if(U)return U;const L=N9(t.instanceMsgId,{customHtmlTags:H});return o.set(z,L),L}),M=E(()=>{const z=R.value;if(!e.customMarkdownIt)return z;const H=e.customMarkdownIt(z);return z.__markstreamHasCustomParserExtensions=!0,H.__markstreamHasCustomParserExtensions=!0,H}),$=E(()=>{var z,H;const U=(z=e.parseOptions)!=null?z:{},L=t.effectiveFinal.value,K=T.value,G=L!=null,Q=K.length>0;return G||Q||U.streamParse==null?En(En(Os(En({},U),{streamParse:(H=U.streamParse)==null||H}),G?{final:L}:{}),Q?{customHtmlTags:K}:{}):U}),O=E(()=>{var z;return new Set(((z=$.value.customHtmlTags)!=null?z:[]).map(H=>String(H).trim().toLowerCase()).filter(Boolean))}),F=E(()=>AL($.value,M.value,e.customMarkdownIt,{includeFinal:!0})),B=E(()=>AL($.value,M.value,e.customMarkdownIt,{includeFinal:!1}));ze([F,B],([z,H],[U,L])=>{U&&(z===U&&H===L||(x(),H!==L&&(c=[],g="")))},{flush:"sync"});const N=E(()=>{var z,H,U,L,K,G,Q,J,ee,ie,le;if((z=e.nodes)!=null&&z.length)return c=[],g="",S(0),yp(e.nodes.slice());const oe=r.value;if(!oe)return c=[],g="",S(-1),[];const ae=t.debugPerformanceEnabled.value,te=ae?up():0,Z=M.value,Ce=F.value,Fe=B.value;u&&Ce!==u&&(function(Ee){var kt,ot;(ot=(kt=Ee.stream)==null?void 0:kt.reset)==null||ot.call(kt)})(Z),p&&Fe!==p&&(c=[],g="");const Pe=Object.keys((U=(H=t.customComponentsMap)==null?void 0:H.value)!=null?U:{}).length>0||typeof $.value.postTransformNodes=="function";Pe!==y&&(c=[],g="");const fe=!Pe&&c.length>0&&oe.startsWith(g)&&Fe===p,be=ae?IL(Z):null,ue=ae?{}:void 0,ye=NL(Z),ke=!ye&&!Pe,ve=En(En(Os(En({},$.value),{__reuseStableTopLevelNodes:ke}),ye?{__disableStreamParse:!0}:{}),ue?{__timing:ue}:{}),xe=LQ(oe,Z,ve),se=ae?up():0,de=ae?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let De,me=ae?kS(xe.length):void 0,Be=0,He=0;if(fe){const Ee=ae?up():0,kt=(function(We){var vt,ct,sn,hn;if(We.previousDirtyStartIndex<=0||!We.content.startsWith(We.previousContent)||We.content.length<=We.previousContent.length||We.parseOptions.final===!0||We.customMarkdownIt||NL(We.md)||(sn=We.previousContent,hn=We.content,sn&&hn.startsWith(sn)&&!(hn.length<=sn.length)&&(function(Kt){let un=-1;for(let cn=0;cn<Kt.length;cn++){const Kn=Kt.charCodeAt(cn);if(un<0){Kn===91&&(un=cn);continue}if(Kn===92){cn+=1;continue}if(Kn===91){un=cn;continue}if(Kn!==93)continue;let Gn=cn+1;for(;Gn<Kt.length;){const Rt=Kt.charCodeAt(Gn);if(Rt!==9&&Rt!==32)break;Gn+=1}if(Kt.charCodeAt(Gn)===58)return!0;un=-1}return!1})(hn)))return 0;const ns=We.parseOptions;return typeof ns.preTransformTokens=="function"||typeof ns.postTransformTokens=="function"||typeof ns.postTransformNodes=="function"||((ct=(vt=ns.customHtmlTags)==null?void 0:vt.length)!=null?ct:0)>0?0:We.previousDirtyStartIndex})({content:oe,previousContent:g,previousDirtyStartIndex:A,parseOptions:$.value,customMarkdownIt:e.customMarkdownIt,md:Z}),ot=kt<=0;if(de){const We=(function(vt,ct,sn,hn={}){var ns;if(!ct.length)return{nodes:vt,metrics:kS(vt.length)};const Kt=(ns=hn.scanStartIndex)!=null?ns:0,un=hn.reuseDirtyTail!==!1,cn=(function(Rt,Ge,Ae,Ie=0){const Je=Math.min(Rt.length,Ge.length);for(let ge=Math.min(Je,Math.max(0,Ie));ge<Je;ge++)if(!Qze(Ge[ge],Rt[ge],Ae))return ge;return Rt.length===Ge.length?-1:Je})(vt,ct,sn,Kt);if(cn<0)return{nodes:ct,metrics:{reusedNodeCount:vt.length,dirtyStartIndex:cn,stablePrefixNodeCount:vt.length,dirtyTailNodeCount:0}};const Kn=vt.slice();let Gn=cn;for(let Rt=0;Rt<cn;Rt++)Kn[Rt]=ct[Rt];if(un)for(let Rt=cn;Rt<vt.length;Rt++){const Ge=ct[Rt],Ae=vt[Rt];Ge&&EZ(Ge,Ae,sn)&&(Kn[Rt]=Ge,Gn+=1)}return{nodes:Kn,metrics:{reusedNodeCount:Gn,dirtyStartIndex:cn,stablePrefixNodeCount:cn,dirtyTailNodeCount:TL(cn,vt,ct)}}})(xe,c,de,{reuseDirtyTail:ot,scanStartIndex:kt});De=We.nodes,me=We.metrics}else{const We=(function(vt,ct,sn={}){var hn;if(!ct.length)return{nodes:vt,metrics:kS(vt.length)};const ns=(hn=sn.scanStartIndex)!=null?hn:0,Kt=sn.reuseDirtyTail!==!1,un=(function(Gn,Rt,Ge=0){const Ae=Math.min(Gn.length,Rt.length);for(let Ie=Math.min(Ae,Math.max(0,Ge));Ie<Ae;Ie++)if(!Yze(Rt[Ie],Gn[Ie]))return Ie;return Gn.length===Rt.length?-1:Ae})(vt,ct,ns);if(un<0)return{nodes:ct,metrics:{reusedNodeCount:vt.length,dirtyStartIndex:un,stablePrefixNodeCount:vt.length,dirtyTailNodeCount:0}};const cn=vt.slice();let Kn=un;for(let Gn=0;Gn<un;Gn++)cn[Gn]=ct[Gn];if(Kt)for(let Gn=un;Gn<vt.length;Gn++){const Rt=ct[Gn],Ge=vt[Gn];Rt&&xZ(Rt,Ge)&&(cn[Gn]=Rt,Kn+=1)}return{nodes:cn,metrics:{reusedNodeCount:Kn,dirtyStartIndex:un,stablePrefixNodeCount:un,dirtyTailNodeCount:TL(un,vt,ct)}}})(xe,c,{reuseDirtyTail:ot,scanStartIndex:kt});De=We.nodes,me=We.metrics}Be=ae?up()-Ee:0,He=ot?me?.dirtyStartIndex==null||me.dirtyStartIndex<0?De.length:me.dirtyStartIndex:De.length}else De=xe,me=kS(De.length);t.effectiveFinal.value!==!0&&(de?(function(Ee,kt,ot=0){for(let We=Math.max(0,ot);We<Ee.length;We++)SR(kt,"primeSignatureMs",()=>wh(Ee[We]))})(De,de,He):(function(Ee,kt=0){for(let ot=Math.max(0,kt);ot<Ee.length;ot++)wh(Ee[ot])})(De,He));const Le=ae?up()-se:0;if(v+=1,g=oe,u=Ce,p=Fe,y=Pe,c=De,S((L=me?.dirtyStartIndex)!=null?L:0),ae){const Ee=IL(Z),kt=typeof Ee?.total=="number"&&Ee.total>((K=be?.total)!=null?K:0);t.logPerf(kt?"parse(stream)":"parse(sync)",En(En(En({rendererId:t.instanceMsgId,ms:Math.round(up()-te),nodes:De.length,contentLength:oe.length,parseCommitCount:v,parseCoalescedCount:w,nodeReuseMs:Le,signatureMs:(G=de?.signatureMs)!=null?G:0,stabilizeSignatureMs:(Q=de?.stabilizeSignatureMs)!=null?Q:0,primeSignatureMs:(J=de?.primeSignatureMs)!=null?J:0,signatureCallCount:(ee=de?.signatureCallCount)!=null?ee:0,stabilizeSignatureCallCount:(ie=de?.stabilizeSignatureCallCount)!=null?ie:0,primeSignatureCallCount:(le=de?.primeSignatureCallCount)!=null?le:0,stabilizeMs:Be},me??{}),ue?Object.fromEntries(Vze.map(ot=>{var We;return[ot,(We=ue[ot])!=null?We:0]})):{}),Ee?{streamMode:Ee.lastMode,streamDelta:Zze(Ee,be),streamStats:Ee}:{}))}return yp(De)});return{effectiveCustomHtmlTags:T,effectiveCustomHtmlTagsSet:O,mdBase:R,mdInstance:M,mergedParseOptions:$,getParsedNodesDirtyStartIndex:()=>A,getParsedNodesRevision:()=>_,parsedNodes:N}}function Jze(e){const{isClient:t}=e,n=D(new Set),s=new Map,o=new Map,a=new Map;function r(u){if(!t)return;const p=a.get(u);p!=null&&(window.clearTimeout(p),a.delete(u))}function l(){if(t)for(const u of a.values())window.clearTimeout(u);a.clear()}function c(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:s,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:a,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,p=!0){var g;p&&r(u),(function(y,v){if((k=(w=e.shouldTrackVisibleNodeIndices)==null?void 0:w.call(e))!=null&&!k)return;var w,k;const A=n.value,_=A.has(y);if(v){if(_)return;const I=new Set(A);return I.add(y),void(n.value=I)}if(!_)return;const S=new Set(A);S.delete(y),n.value=S})(u,p),p&&((g=e.onNodeMarkedVisible)==null||g.call(e,u))},resetNodeVisibleState:c,cleanupNodeVisibility:function(u){var p;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[y,v]of o.entries())y<u||(v(),o.delete(y));for(const[y,v]of s.entries())y<u||(v.destroy(),s.delete(y),r(y),(p=e.onNodeVisibilityCleaned)==null||p.call(e,y));for(const y of Array.from(a.keys()))y<u||r(y);if(!n.value.size)return;const g=new Set;for(const y of n.value)y<u&&g.add(y);n.value=g},destroyNodeVisibilityState:function(){c();for(const u of o.values())u();o.clear();for(const u of s.values())u.destroy();s.clear(),l()}}}function TZ(e={}){const t=D(""),n=D(""),s=D(!1),o=DLe(e),a=()=>{const p=o.getSnapshot();t.value=p.source,n.value=p.visible,s.value=p.done},r=o.subscribe(a);a();const l=E(()=>Math.max(0,t.value.length-n.value.length)),c=E(()=>l.value===0),u=E(()=>s.value&&c.value);return KI()&&Ec(()=>{r(),o.destroy()}),{source:t,visible:n,done:s,final:u,caughtUp:c,pendingChars:l,enqueue:p=>o.enqueue(p),finish:p=>o.finish(p),flush:()=>o.flush(),reset:p=>o.reset(p),pause:()=>o.pause(),resume:()=>o.resume()}}const eUe={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},RL=/auto|scroll|overlay/i;function tUe(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return RL.test(t)||RL.test(n)}function nUe(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const sUe={class:"m-0 p-0"},oUe=["data-probe"],iUe=bi(st(Os(En({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(s){var o,a;return(a=(o=t.headingNodes)==null?void 0:o[s])!=null?a:null}return(s,o)=>(h(),C("div",{class:"height-estimation-probes",style:Qn({width:`${e.width}px`}),"aria-hidden":"true"},[d("div",{ref:a=>e.setParagraphWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[m(i(Lg),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),d("div",{ref:a=>e.setListItemWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[d("ul",sUe,[m(i(B0),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),d("div",{ref:a=>e.setListWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[m(i(F0),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(h(),C(Me,null,ft(6,a=>d("div",{key:`probe-heading-${a}`,ref_for:!0,ref:r=>e.setHeadingWrapper(a,r),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${a}`},[m(i(CA),{node:n(a),"index-key":`probe-heading-${a}`},null,8,["node","index-key"])],10,oUe)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),ML=st({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=E(()=>{var n,s;return pI((s=g0(e.estimatedPreviewHeightPx))!=null?s:uI(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return jn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?jn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[jn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[jn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),jn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),jn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>jn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,jn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[jn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),jn("div",{class:"absolute inset-0"},[jn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),$L=st({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=E(()=>{var n,s;return dI((s=g0(e.estimatedPreviewHeightPx))!=null?s:cI(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return jn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?jn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[jn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[jn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),jn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>jn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[jn("span",{class:"action-icon block"})])))]):null,jn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[jn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),jn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),aUe={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function vl(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const rUe=["data-custom-id"],lUe=["data-node-index","data-node-type"],OL="typewriter-simple-cursor-target",NZ=bi(st(Os(En({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const s=e,o=n;function a(q){if(!(typeof Event<"u"&&q instanceof Event))return typeof q=="string"&&o("copy-code",q),void o("copy",q)}const r=Nd(),l=uo("markstreamNestedRendererProps",void 0);function c(q){const pe=r?.vnode.props;return!!pe&&(Object.prototype.hasOwnProperty.call(pe,q)||Object.prototype.hasOwnProperty.call(pe,String(q).replace(/[A-Z]/g,Te=>`-${Te.toLowerCase()}`)))}function u(q){var pe,Te;const $e=s[q];return c(q)?$e:(Te=(pe=l?.value)==null?void 0:pe[q])!=null?Te:$e}const p=E(()=>{return(q=u("mode"))==="chat"||q==="minimal"||q==="docs"?q:"docs";var q}),g=E(()=>kL(u("typewriter"))),y=E(()=>g.value!=="off"),v=E(()=>u("domMode")==="minimal"?"minimal":"full"),w=E(()=>{return(q={mode:p.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":q.codeRenderer==="pre"||q.codeRenderer==="shiki"||q.codeRenderer==="monaco"?q.codeRenderer:q.renderCodeBlocksAsPre===!1||q.mode==="docs"?"monaco":"pre";var q}),k=E(()=>aUe[p.value]),A=E(()=>{var q;return(q=u("showTooltips"))!=null?q:k.value.showTooltips}),_=E(()=>{var q;return(q=u("fade"))!=null?q:k.value.fade}),S=E(()=>{var q;return(q=u("batchRendering"))!=null?q:k.value.batchRendering}),I=E(()=>{var q;return(q=u("initialRenderBatchSize"))!=null?q:k.value.initialRenderBatchSize}),x=E(()=>{var q;return(q=u("renderBatchSize"))!=null?q:k.value.renderBatchSize}),T=E(()=>{var q;return(q=u("renderBatchDelay"))!=null?q:k.value.renderBatchDelay}),R=E(()=>{var q;return(q=u("renderBatchBudgetMs"))!=null?q:k.value.renderBatchBudgetMs}),M=E(()=>{var q;return(q=u("renderBatchIdleTimeoutMs"))!=null?q:k.value.renderBatchIdleTimeoutMs}),$=E(()=>{var q;return(q=u("deferNodesUntilVisible"))!=null?q:k.value.deferNodesUntilVisible}),O=E(()=>{var q;return(q=u("maxLiveNodes"))!=null?q:k.value.maxLiveNodes}),F=E(()=>{var q;return(q=u("liveNodeBuffer"))!=null?q:k.value.liveNodeBuffer}),B=E(()=>{var q;return(q=u("nodeVirtual"))!=null?q:k.value.nodeVirtual}),N={get content(){return s.content},get nodes(){return s.nodes},get final(){return s.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return s.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return v.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return A.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return s.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return s.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return _.value},get batchRendering(){return S.value},get initialRenderBatchSize(){return I.value},get renderBatchSize(){return x.value},get renderBatchDelay(){return T.value},get renderBatchBudgetMs(){return R.value},get renderBatchIdleTimeoutMs(){return M.value},get deferNodesUntilVisible(){return $.value},get maxLiveNodes(){return O.value},get liveNodeBuffer(){return F.value},get nodeVirtual(){return B.value},get virtualScroll(){return s.virtualScroll},get renderAsFragment(){return s.renderAsFragment}};function z(q){o("height-change",q)}function H(q){o("virtual-state-change",q)}function U(q){o("anchor-change",q)}const L=D(),K=D(null),G=D(null),Q=D(null),J=as({1:null,2:null,3:null,4:null,5:null,6:null}),ee=D(!1),ie=new Map,le=D(0),oe=D(0),ae=D({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function te(q,pe){return typeof q!="string"?pe:q.trim()||pe}function Z(q){const pe=Number(q);return Number.isFinite(pe)&&pe>0?Math.max(1,Math.trunc(pe)):640}const Ce=E(()=>{var q;const pe=(q=N.viewportPriorityOptions)!=null?q:{},Te=te(pe.rootMargin,Jg);return{rootMargin:Te,heavyBlockMargin:te(pe.heavyBlockMargin,Te),maxTargets:Z(pe.maxTargets)}}),Fe=E(()=>{var q;return(q=Ce.value.rootMargin)!=null?q:Jg}),Pe=E(()=>{var q;return(q=Ce.value.maxTargets)!=null?q:640});function fe(){var q,pe;if(((q=s.virtualScroll)==null?void 0:q.enabled)!==!0)return null;const Te=(pe=s.virtualScroll)==null?void 0:pe.scrollRoot;return be(typeof Te=="function"?Te():Te)}function be(q){return q?typeof HTMLElement<"u"&&q instanceof HTMLElement?q:typeof q=="object"&&"value"in q?be(q.value):typeof q=="object"&&"$el"in q?be(q.$el):null:null}si(pZ,Ce);const{isClient:ue,renderAsFragment:ye,debugPerformanceEnabled:ke,resolvedShowTooltips:ve,resolvedHtmlPolicy:xe,inheritedSmoothStreaming:se,ownsTypewriterCursor:de}=(function(q){const pe=typeof window<"u",Te=Ah(),$e=uo("markstreamHtmlPolicy",void 0),je=uo("markstreamTypewriterCursor",void 0),yt=uo("markstreamSmoothStreaming",void 0),Et=E(()=>q.renderAsFragment===!0),Pt=E(()=>!!(q.debugPerformance&&pe&&typeof console<"u")),tn=E(()=>{var Jt;if(typeof q.showTooltips=="boolean")return q.showTooltips;const Nt=(Jt=Te.showTooltips)!=null?Jt:Te["show-tooltips"];return Nt===""||Nt===!0||Nt==="true"||Nt!==!1&&Nt!=="false"&&void 0}),Dt=E(()=>{var Jt,Nt;return(Nt=(Jt=q.htmlPolicy)!=null?Jt:$e?.value)!=null?Nt:"safe"}),qt=E(()=>je?.value!==!0);return{isClient:pe,renderAsFragment:Et,debugPerformanceEnabled:Pt,resolvedShowTooltips:tn,resolvedHtmlPolicy:Dt,inheritedSmoothStreaming:yt,inheritedTypewriterCursor:je,ownsTypewriterCursor:qt}})(N),{resolveViewportRoot:De,resolveScrollContainer:me,isReverseFlexScrollRoot:Be,getNormalizedScrollTop:He,getOffsetTopWithinRoot:Le}=(function(q,pe){function Te(){var Pt,tn;return(tn=(Pt=pe.scrollRoot)==null?void 0:Pt.call(pe))!=null?tn:null}function $e(Pt){if(typeof window>"u")return null;const tn=Te();if(tn)return tn;const Dt=Pt??q.value;if(!Dt)return null;const qt=Dt.ownerDocument||document,Jt=qt.scrollingElement||qt.documentElement;let Nt=Dt;for(;Nt&&Nt!==qt.body&&Nt!==Jt;){if(tUe(window.getComputedStyle(Nt))&&nUe(Nt))return Nt;Nt=Nt.parentElement}return null}function je(Pt){if(!pe.isClient)return!1;try{const tn=window.getComputedStyle(Pt);return!!(tn.display||"").toLowerCase().includes("flex")&&(tn.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function yt(Pt,tn,Dt){var qt,Jt;if(Dt)return Et(tn);const Nt=Pt.scrollTop;if(!je(Pt))return Nt;const jt=Nt<0?-Nt:Nt;return Math.max(0,((qt=Pt.scrollHeight)!=null?qt:0)-((Jt=Pt.clientHeight)!=null?Jt:0))-jt}function Et(Pt){var tn,Dt,qt,Jt,Nt;const jt=Number((tn=Pt.scrollingElement)==null?void 0:tn.scrollTop),fn=Number((qt=(Dt=Pt.documentElement)==null?void 0:Dt.scrollTop)!=null?qt:0),ln=Number((Nt=(Jt=Pt.body)==null?void 0:Jt.scrollTop)!=null?Nt:0);return Math.max(0,Number.isFinite(jt)?jt:0,Number.isFinite(fn)?fn:0,Number.isFinite(ln)?ln:0)}return{resolveViewportRoot:$e,resolveScrollContainer:function(Pt){var tn,Dt,qt,Jt;const Nt=Te();if(Nt)return Nt;const jt=$e((tn=Pt??q.value)!=null?tn:null);if(jt)return jt;const fn=(Jt=(qt=Pt?.ownerDocument)!=null?qt:(Dt=q.value)==null?void 0:Dt.ownerDocument)!=null?Jt:typeof document<"u"?document:null;return fn?.scrollingElement||fn?.documentElement||null},isReverseFlexScrollRoot:je,getNormalizedScrollTop:yt,getOffsetTopWithinRoot:function(Pt,tn){const Dt=tn.ownerDocument||Pt.ownerDocument||document;if((function(jt,fn){return jt===fn.documentElement||jt===fn.body||jt===fn.scrollingElement})(tn,Dt))return Pt.getBoundingClientRect().top+Et(Dt);const qt=tn.getBoundingClientRect(),Jt=Pt.getBoundingClientRect(),Nt=yt(tn,Dt,!1);return Jt.top-qt.top+Nt}}})(L,{isClient:ue,scrollRoot:fe});si("markstreamShowTooltips",ve),si("markstreamHtmlPolicy",xe),si("markstreamTypewriter",y),si("markstreamFade",E(()=>N.fade!==!1)),si("markstreamTypewriterCursor",E(()=>!0)),si("markstreamTextStreamState",ie),si("markstreamStreamVersion",le),si("markstreamParseOptions",E(()=>N.parseOptions)),si("markstreamCustomMarkdownIt",E(()=>N.customMarkdownIt));const{smoothStreamingEnabled:Ee,renderContent:kt,requestedFinal:ot,effectiveFinal:We}=(function(q,pe){const Te=TZ(En(En({},eUe),q.smoothStreamingOptions)),$e=E(()=>{var Nt,jt,fn;return q.smoothStreaming!==!1&&!((Nt=q.nodes)!=null&&Nt.length)&&(q.smoothStreaming===!0||!((jt=pe.inheritedSmoothStreaming)!=null&&jt.value))&&(q.smoothStreaming===!0||kL(q.typewriter)!=="off"||((fn=q.maxLiveNodes)!=null?fn:0)<=0)}),je=D(!pe.isClient||q.smoothStreaming===!0);xo(()=>{je.value=!0});const yt=E(()=>je.value&&$e.value),Et=E(()=>{var Nt;return yt.value?Te.visible.value:(Nt=q.content)!=null?Nt:""}),Pt=E(()=>{var Nt,jt;const fn=(Nt=q.parseOptions)!=null?Nt:{};return(jt=q.final)!=null?jt:fn.final}),tn=E(()=>{const Nt=Pt.value;return yt.value&&Nt!=null?!!Nt&&Te.caughtUp.value:Nt});let Dt=0,qt=!1;function Jt(){Dt=0,qt=!1}return ze([()=>q.content,()=>q.nodes,yt,Pt],([Nt,jt,fn,ln])=>{if(jt?.length)return Jt(),void Te.reset("");const Bn=Nt??"";if(!fn)return Jt(),Te.reset(Bn),void(ln&&Te.finish({flush:!0}));const Sn=Te.source.value;if(Bn){if(Bn!==Sn)if(Bn.startsWith(Sn)){const es=Bn.slice(Sn.length),us=Te.pendingChars.value;es.length<=8?(Dt++,qt||Dt>=2&&us<=8?(qt=!0,Te.reset(Bn)):Te.enqueue(es)):(Jt(),Te.enqueue(es))}else Jt(),Te.reset(Bn)}else Jt(),Te.reset("");ln&&Te.finish()},{immediate:!0}),{smoothStream:Te,smoothStreamingEligible:$e,smoothStreamingEnabled:yt,renderContent:Et,requestedFinal:Pt,effectiveFinal:tn}})(N,{isClient:ue,inheritedSmoothStreaming:se}),vt=ot.value===!0;si("markstreamSmoothStreaming",Ee);const ct=D(!1),sn=D(!1),hn=D(!1);let ns="",Kt=!1,un=null;function cn(){ue&&un!=null&&(window.clearTimeout(un),un=null)}function Kn(){ct.value=!1,cn()}function Gn(q,pe){if(!ke.value)return;const Te=(function(){if(!ke.value)return null;const $e=Je(Rt),je=Je(Ge),yt=Math.max(Ie,je);if($e<=0&&yt<=0)return null;const Et={total:$e,maxPerFrame:yt,byLabel:(Pt=Rt,Object.fromEntries(Array.from(Pt.entries()).sort((tn,Dt)=>Dt[1]-tn[1]||tn[0].localeCompare(Dt[0]))))};var Pt;return Rt.clear(),Ge.clear(),Ie=0,Et})();console.info(`[markstream-vue][perf] ${q}`,Te?Os(En({},pe),{layoutReads:Te}):pe)}ze([()=>N.indexKey,()=>N.customId],()=>{var q,pe;Kn(),sn.value=!1,hn.value=!((q=s.nodes)!=null&&q.length)&&ot.value!==!0&&!!s.content,ns=(pe=kt.value)!=null?pe:"",Kt=ns.length>0},{flush:"sync"}),ze([()=>s.content,()=>s.nodes,ot],([q,pe,Te])=>{!pe?.length&&Te!==!0&&q&&(hn.value=!0)},{flush:"sync",immediate:!0}),ze([kt,()=>s.nodes,ot],([q,pe,Te])=>{const $e=q??"";return pe?.length||Te===!0?(Kn(),sn.value=!1,ns=$e,void(Kt=!0)):($e.length>0&&(hn.value=!0),Kt?(ns&&$e.length>ns.length&&$e.startsWith(ns)?(ct.value=!0,sn.value=!0,ue&&(cn(),un=window.setTimeout(()=>{var je;un=null,We.value===!0||(je=s.nodes)!=null&&je.length||(ro(),ct.value=!1,Kl())},1200))):($e.length<ns.length||!$e.startsWith(ns))&&(Kn(),sn.value=!1),void(ns=$e)):(ns=$e,void(Kt=!0)))},{flush:"sync",immediate:!0});const Rt=new Map,Ge=new Map;let Ae=!1,Ie=0;function Je(q){let pe=0;for(const Te of q.values())pe+=Te;return pe}function ge(){Ie=Math.max(Ie,Je(Ge)),Ge.clear(),Ae=!1}function et(q){q.maxPerFrame=Math.max(Number(q.maxPerFrame||0),Number(q.currentFrameTotal||0)),q.currentFrameTotal=0,q.frameScheduled=!1}function Yt(q){var pe,Te;ke.value&&(Rt.set(q,((pe=Rt.get(q))!=null?pe:0)+1),Ge.set(q,((Te=Ge.get(q))!=null?Te:0)+1),(function($e){const je=(function(){if(!ue||typeof window>"u")return null;const yt=window;if(yt.__markstreamLayoutReadPerformance)return yt.__markstreamLayoutReadPerformance;const Et={total:0,maxPerFrame:0,byLabel:{}};return yt.__markstreamLayoutReadPerformance=Et,Et})();je&&(je.total=Number(je.total||0)+1,je.byLabel[$e]=Number(je.byLabel[$e]||0)+1,je.currentFrameTotal=Number(je.currentFrameTotal||0)+1,je.frameScheduled||(je.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>et(je),0):queueMicrotask(()=>et(je)):window.requestAnimationFrame(()=>et(je))))})(q),Ae||(Ae=!0,ue&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(ge):typeof queueMicrotask!="function"?setTimeout(ge,0):queueMicrotask(ge)))}function rt(q,pe){return Yt(q),pe()}const Vt=N.customId?`renderer-${N.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,qe=(function(q){const pe=new Map;return{scope:q,cache:pe,clear:()=>pe.clear()}})(Vt),Xe=E(()=>`${Vt}:${le.value}`);si(kZ,qe);const Qe=Kr(()=>N.customId),{effectiveCustomHtmlTagsSet:zt,mergedParseOptions:Ve,parsedNodes:nt,getParsedNodesDirtyStartIndex:Ut,getParsedNodesRevision:rn}=Xze(N,{instanceMsgId:Vt,renderContent:kt,effectiveFinal:We,smoothStreamingEnabled:Ee,debugPerformanceEnabled:ke,customComponentsMap:Qe,logPerf:Gn});ze(nt,()=>{qe.clear(),le.value+=1},{immediate:!0});const $n=E(()=>({customId:N.customId,customHtmlTags:Ve.value.customHtmlTags,parseOptions:N.parseOptions,customMarkdownIt:N.customMarkdownIt,htmlPolicy:xe.value,viewportPriority:N.viewportPriority,viewportPriorityOptions:Ce.value,mode:p.value,domMode:N.domMode,codeRenderer:w.value,codeBlockStream:N.codeBlockStream,codeBlockDarkTheme:N.codeBlockDarkTheme,codeBlockLightTheme:N.codeBlockLightTheme,codeBlockMonacoOptions:N.codeBlockMonacoOptions,renderCodeBlocksAsPre:N.renderCodeBlocksAsPre,codeBlockMinWidth:N.codeBlockMinWidth,codeBlockMaxWidth:N.codeBlockMaxWidth,codeBlockProps:N.codeBlockProps,mermaidProps:N.mermaidProps,d2Props:N.d2Props,infographicProps:N.infographicProps,showTooltips:ve.value,themes:N.themes,langs:N.langs,isDark:N.isDark,typewriter:y.value,smoothStreamingOptions:N.smoothStreamingOptions,parseCoalesceMs:N.parseCoalesceMs,fade:N.fade}));si("markstreamNestedRendererProps",$n);const xs=E(()=>nt.value),tt=E(()=>nt.value.length),Ke=D(null),ht=D(null),Ot=D(null),xt=D(null),Lt=s.indexKey!=null&&String(s.indexKey).startsWith("list-item-"),Mt=!Lt&&N.customId?hL(N.customId):null,dn=E(()=>Mt?(Zx.value,hL(N.customId)):null),Cn=E(()=>{var q;return!!(!ye.value&&N.customId&&!Lt&&((q=dn.value)!=null&&q.enabled))}),Mn=E(()=>!!(ue&&Cn.value)),_t=E(()=>{var q;return!!(!ye.value&&((q=s.virtualScroll)!=null&&q.enabled))}),Tt=E(()=>_t.value),an=D(!1);xo(()=>{an.value=!0});const Pn=E(()=>!!(ue&&_t.value));si("markstreamHostScrollManaged",Pn);const Eo=E(()=>!!(an.value&&Pn.value)),No=E(()=>Mn.value||Pn.value),Qi=E(()=>Mn.value||Eo.value),wn=E(()=>{var q;return No.value&&((q=dn.value)==null?void 0:q.textEstimation)!==!1});function Ze(){const q=oe.value||rt("getMeasuredContainerWidth.clientWidth",()=>{var pe;return((pe=L.value)==null?void 0:pe.clientWidth)||0});return Number.isFinite(q)&&q>0?q:0}const Ct=E(()=>{const q=Ze();return q>0?Math.max(1,Math.round(q)):640}),wt=E(()=>{var q,pe;return!(We.value!==!0||_t.value||p.value!=="chat"&&p.value!=="minimal"||c("maxLiveNodes")||c("liveNodeBuffer")||(q=s.nodes)!=null&&q.length||hn.value||!(((pe=N.maxLiveNodes)!=null?pe:0)<=0))}),Yn=E(()=>{var q;return wt.value?50:Math.max(1,(q=N.maxLiveNodes)!=null?q:320)}),Fs=E(()=>{var q;return wt.value?16:Math.max(0,(q=N.liveNodeBuffer)!=null?q:60)}),ts=E(()=>{var q;return!ye.value&&N.nodeVirtual!==!1&&!(((q=N.maxLiveNodes)!=null?q:0)<=0&&!wt.value)&&(N.nodeVirtual===!0?nt.value.length>0:nt.value.length>Yn.value)}),ki=E(()=>ts.value||Mn.value||Pn.value),vo=E(()=>N.viewportPriority!==!1),li=E(()=>!!vo.value&&!ee.value);var Mi;Mi=E(()=>vo.value),si(fZ,Mi);const $i=E(()=>{var q;return!(ye.value||N.deferNodesUntilVisible===!1||((q=N.maxLiveNodes)!=null?q:0)<=0||ts.value||nt.value.length>900||N.viewportPriority===!1)}),Oi=MBe(q=>{var pe;return De((pe=q??L.value)!=null?pe:null)},vo),{requestFrame:Ro,cancelFrame:qo,hasIdleCallback:_s,isTestEnv:it}=(function(q){const pe=q.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,Te=q.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,$e=q.isClient&&typeof window.requestIdleCallback=="function",je=(function(){var yt;if(typeof globalThis>"u"||!("process"in globalThis))return;const Et=(yt=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:yt.value;return Et?.env})();return{requestFrame:pe,cancelFrame:Te,hasIdleCallback:$e,isTestEnv:je?.NODE_ENV==="test"}})({isClient:ue}),gt=E(()=>We.value===!0&&!_t.value),{resolvedBatchSize:Ht,resolvedInitialBatch:Dn,batchingEnabled:Is,incrementalRenderingActive:zs,renderedCount:Nn,previousRenderContext:Oo,adaptiveBatchSize:so,previousBatchConfig:to}=(function(q,pe){var Te;const $e=E(()=>{var Jt;const Nt=Math.trunc((Jt=q.renderBatchSize)!=null?Jt:80);return Number.isFinite(Nt)?Math.max(0,Nt):0}),je=E(()=>{var Jt;const Nt=Math.trunc((Jt=q.initialRenderBatchSize)!=null?Jt:$e.value);return Number.isFinite(Nt)?Math.max(0,Nt):$e.value}),yt=E(()=>!pe.renderAsFragment.value&&q.batchRendering!==!1&&$e.value>0&&pe.isClient&&!pe.isTestEnv),Et=D(0),Pt=D({key:q.indexKey,total:0}),tn=D(Math.max(1,$e.value||1)),Dt=E(()=>{var Jt,Nt,jt;return yt.value&&!((Jt=pe.continuousStreaming)!=null&&Jt.value)&&!((Nt=pe.forceFullRenderFinalContent)!=null&&Nt.value)&&((jt=q.maxLiveNodes)!=null?jt:0)<=0}),qt=D({batchSize:$e.value,initial:je.value,delay:(Te=q.renderBatchDelay)!=null?Te:16,enabled:Dt.value});return{resolvedBatchSize:$e,resolvedInitialBatch:je,batchingEnabled:yt,incrementalRenderingActive:Dt,renderedCount:Et,previousRenderContext:Pt,adaptiveBatchSize:tn,previousBatchConfig:qt}})(N,{isClient:ue,isTestEnv:it,renderAsFragment:ye,forceFullRenderFinalContent:gt,continuousStreaming:E(()=>sn.value&&We.value!==!0)}),wi=E(()=>{var q;return!ye.value&&N.batchRendering!==!1&&Ht.value>0&&!it&&((q=N.maxLiveNodes)!=null?q:0)<=0&&!gt.value}),jo=E(()=>wi.value),Bo=E(()=>No.value||jo.value),Zo=E(()=>{var q;return Bo.value&&((q=dn.value)==null?void 0:q.codeBlockEstimation)!==!1}),xn=new Map,Xn=new Map,As=new WeakMap;let Es=null;const To=new WeakMap,yo=new Map,ul=[];let aa=[],Bl=[],Zi=-1;const La=gi(ul),lr=new Set,Cs=D(0);let Gr=0;const ha=D(0),Yr=E(()=>(ha.value,Array.from(xn.entries()).sort((q,pe)=>q[0]-pe[0]))),Xo=D(null),zo=D(null);let lo,Ui=null,Fl=0,kr=null;function ra(){lo.markFallbackHeightPrefixDirty()}function Qa(q){return lo.getFallbackNodeHeight(q)}function wr(q,pe){return lo.estimateHeightRange(q,pe)}function Sr(q){return lo.estimateIndexForOffset(q)}const{activeRestoreAnchor:Za,getRelativeScrollTopWithinContainer:zc,setRelativeScrollTopWithinContainer:Sf,resolveAnchorOffset:Pi,clearRestoreReconcile:ic,scheduleRestoreReconcile:cr,captureRestoreAnchor:zl,restoreAnchor:Al,getAnchorDrift:Hi}=(function(q){const{isClient:pe,containerRef:Te,parsedNodeCount:$e,requestFrame:je,cancelFrame:yt,resolveScrollContainer:Et,getNormalizedScrollTop:Pt,getOffsetTopWithinRoot:tn,isReverseFlexScrollRoot:Dt,estimateIndexForOffset:qt,estimateHeightRange:Jt,getFallbackNodeHeight:Nt,clamp:jt}=q,fn=D(null);let ln=null,Bn=[];function Sn(){const ks=Et(),no=Te.value;if(!ks||!no)return null;const mo=ks.ownerDocument||no.ownerDocument||document;if(ks===mo.documentElement||ks===mo.body||ks===mo.scrollingElement){const xi=no.getBoundingClientRect();return Math.max(0,-xi.top)}return Math.max(0,Pt(ks,mo,!1)-tn(no,ks))}function es(ks){var no;const mo=Et(),xi=Te.value;if(!mo||!xi)return;const $l=Math.max(0,ks),gl=mo.ownerDocument||xi.ownerDocument||document,ap=gl.defaultView||(typeof window<"u"?window:null);if(mo===gl.documentElement||mo===gl.body||mo===gl.scrollingElement){const Lp=Pt(mo,gl,!0)+xi.getBoundingClientRect().top;return void((no=ap?.scrollTo)==null||no.call(ap,0,Math.max(0,Lp+$l)))}yL(mo,gl,tn(xi,mo)+$l,{isReverseFlexScrollRoot:Lp=>{var K1;return(K1=Dt?.(Lp))!=null&&K1},getNormalizedScrollTop:Pt})}function us(ks){const no=$e.value,mo=jt(ks.nodeIndex,0,Math.max(0,no-1));return Jt(0,mo)+Math.max(0,ks.offsetWithinNodePx)}function ys(){if(ln!=null&&(yt?.(ln),ln=null),pe)for(const ks of Bn)window.clearTimeout(ks);Bn=[]}function vs(ks){const no=us(ks),mo=Sn();mo!=null&&Math.abs(mo-no)<=.5||es(no)}return{activeRestoreAnchor:fn,getRelativeScrollTopWithinContainer:Sn,setRelativeScrollTopWithinContainer:es,resolveAnchorOffset:us,clearRestoreReconcile:ys,applyRestoreAnchor:vs,scheduleRestoreReconcile:function(){fn.value&&pe&&ln==null&&(ln=je?je(()=>{ln=null,fn.value&&vs(fn.value)}):null,ln==null&&fn.value&&vs(fn.value))},captureRestoreAnchor:function(){const ks=Sn(),no=$e.value;if(ks==null||no<=0)return null;const mo=jt(qt(ks+1),0,no-1),xi=Jt(0,mo),$l=Nt(mo);return{nodeIndex:mo,offsetWithinNodePx:jt(ks-xi,0,Math.max(0,$l-1))}},restoreAnchor:function(ks){const no=$e.value;if(fn.value={nodeIndex:jt(ks.nodeIndex,0,Math.max(0,no-1)),offsetWithinNodePx:Math.max(0,ks.offsetWithinNodePx)},ys(),vs(fn.value),pe)for(const mo of[0,120,280,480])Bn.push(window.setTimeout(()=>{fn.value&&vs(fn.value)},mo))},getAnchorDrift:function(ks){const no=Sn();return no==null?null:no-us(ks)}}})({isClient:ue,containerRef:L,parsedNodeCount:tt,requestFrame:Ro,cancelFrame:qo,resolveScrollContainer:()=>Xo.value||me(),getNormalizedScrollTop:He,getOffsetTopWithinRoot:Le,isReverseFlexScrollRoot:Be,estimateIndexForOffset:Sr,estimateHeightRange:wr,getFallbackNodeHeight:Qa,clamp:da}),{nodeHeights:ur,heightStats:Xi,heightTreeSize:Cu,heightSumTree:Cp,heightKnownTree:ed,averageNodeHeight:Ji,resetHeightMeasurements:td,pruneHeightMeasurements:Uo,rebuildHeightTrees:ci,recordNodeHeight:_f,removeNodeHeights:Uc,exportHeightCache:ac,importHeightCache:Vi,fenwickRangeSum:Ba}=(function(q={}){const pe=as({}),Te=as({total:0,count:0}),$e=D(0),je=D([]),yt=D([]);function Et(){for(const Nt of Object.keys(pe))delete pe[Number(Nt)];Te.total=0,Te.count=0,$e.value=0,je.value=[],yt.value=[]}function Pt(Nt,jt,fn){for(let ln=jt+1;ln<Nt.length;ln+=ln&-ln)Nt[ln]+=fn}function tn(Nt,jt){let fn=0;for(let ln=jt+1;ln>0;ln-=ln&-ln)fn+=Nt[ln];return fn}function Dt(Nt){$e.value=Nt;const jt=new Array(Nt+1).fill(0),fn=new Array(Nt+1).fill(0);for(const[ln,Bn]of Object.entries(pe)){const Sn=Number(ln),es=Number(Bn);!Number.isFinite(Sn)||Sn<0||Sn>=Nt||!Number.isFinite(es)||es<=0||(Pt(jt,Sn,es),Pt(fn,Sn,1))}je.value=jt,yt.value=fn}function qt(Nt){if(!Number.isInteger(Nt)||Nt<0)return!1;const jt=pe[Nt];if(!Number.isFinite(jt)||jt<=0)return!1;if(delete pe[Nt],Te.total=Math.max(0,Te.total-jt),Te.count=Math.max(0,Te.count-1),$e.value>Nt){const fn=je.value,ln=yt.value;fn.length&&ln.length&&(Pt(fn,Nt,-jt),Pt(ln,Nt,-1))}return!0}const Jt=E(()=>Te.count>0?Math.max(12,Te.total/Te.count):32);return{nodeHeights:pe,heightStats:Te,heightTreeSize:$e,heightSumTree:je,heightKnownTree:yt,averageNodeHeight:Jt,resetHeightMeasurements:Et,pruneHeightMeasurements:function(Nt){if(Nt<=0)return void Et();let jt=0,fn=0;for(const[ln,Bn]of Object.entries(pe)){const Sn=Number(ln),es=Number(Bn);!Number.isFinite(Sn)||Sn<0||Sn>=Nt||!Number.isFinite(es)||es<=0?delete pe[Sn]:(jt+=es,fn++)}Te.total=jt,Te.count=fn},rebuildHeightTrees:Dt,recordNodeHeight:function(Nt,jt,fn={}){(function(ln,Bn,Sn={}){var es;if(!Number.isFinite(Bn)||Bn<=0)return!1;const us=pe[ln];if(us&&(Sn.allowShrink===!1&&Bn<us||Math.abs(Bn-us)<=1))return!1;if(pe[ln]=Bn,us?Te.total+=Bn-us:(Te.total+=Bn,Te.count++),$e.value>ln){const ys=je.value,vs=yt.value;if(ys.length&&vs.length)if(us){const ks=Bn-us;ks!==0&&Pt(ys,ln,ks)}else Pt(ys,ln,Bn),Pt(vs,ln,1)}Sn.notify!==!1&&((es=q.onHeightRecorded)==null||es.call(q))})(Nt,jt,Os(En({},fn),{notify:!0}))},removeNodeHeight:function(Nt,jt={}){var fn;const ln=qt(Nt);return ln&&jt.notify!==!1&&((fn=q.onHeightRecorded)==null||fn.call(q)),ln},removeNodeHeights:function(Nt,jt={}){var fn;let ln=0;for(const Bn of Nt)qt(Number(Bn))&&ln++;return ln>0&&jt.notify!==!1&&((fn=q.onHeightRecorded)==null||fn.call(q)),ln},exportHeightCache:function(){return Object.entries(pe).map(([Nt,jt])=>({index:Number(Nt),height:Number(jt)})).filter(Nt=>Number.isFinite(Nt.index)&&Nt.index>=0&&Number.isFinite(Nt.height)&&Nt.height>0).sort((Nt,jt)=>Nt.index-jt.index)},importHeightCache:function(Nt,jt={}){var fn;if(!Array.isArray(Nt))return;const ln=$e.value;let Bn=!1;if(jt.mode!=="merge"){const Sn=Object.keys(pe);if(Sn.length>0){for(const es of Sn)delete pe[Number(es)];Bn=!0}}for(const Sn of Nt){const es=Number(Sn.index),us=Number(Sn.height);if(!Number.isInteger(es)||es<0||ln>0&&es>=ln||!Number.isFinite(us)||us<=0)continue;const ys=pe[es];ys&&Math.abs(ys-us)<=1||(pe[es]=us,Bn=!0)}Bn&&((function(){let Sn=0,es=0;const us=$e.value;for(const[ys,vs]of Object.entries(pe)){const ks=Number(ys),no=Number(vs);!Number.isFinite(ks)||ks<0||us>0&&ks>=us||!Number.isFinite(no)||no<=0?delete pe[ks]:(Sn+=no,es++)}Te.total=Sn,Te.count=es})(),ln>0&&Dt(ln),(fn=q.onHeightRecorded)==null||fn.call(q))},fenwickRangeSum:function(Nt,jt,fn){if(fn<=jt)return 0;const ln=tn(Nt,fn-1);return jt<=0?ln:ln-tn(Nt,jt-1)}}})({onHeightRecorded:()=>{ra(),Pn.value&&Kh(),Za.value&&cr(),zo.value&&sr(),pi("node-resize")}});function Ho(q){Number.isInteger(q)&&q>=0&&lr.add(q)}function ea(q){for(const pe of q)Ho(Number(pe))}function dl(q){Gr++;let pe=!0;try{const Te=q();return pe=Te!==!1,Te}finally{Gr--,Gr===0&&pe&&Cs.value++}}function Qr(){aa=[],Bl=[],Zi=-1,lr.clear(),La.value=ul}function Fa(){Qr(),dl(()=>td()),yo.clear()}function po(q){!Number.isInteger(q)||q<0||q>=nt.value.length||yo.set(q,ud(q))}function Hc(q,pe,Te={}){const $e=ur[q];Ho(q),_f(q,pe,Te);const je=ur[q];return Object.is($e,je)?(lr.delete(q),!1):(je&&je>0?po(q):$e&&yo.delete(q),!0)}function Ul(q,pe){const Te=rt("getNodeLayoutHeight.slot.offsetHeight",()=>{var $e,je;return(je=($e=xn.get(q))==null?void 0:$e.offsetHeight)!=null?je:0});return Te>0?Te:rt("getNodeLayoutHeight.content.offsetHeight",()=>pe.offsetHeight)}function Xa(q,pe={}){pe.mode!=="merge"?Qr():ea(q.map(Te=>Te.index)),dl(()=>Vi(q,pe)),Yc()}const Jo=E(()=>$i.value&&li.value),qi=E(()=>{var q;return!ye.value&&N.batchRendering!==!1&&Ht.value>0&&((q=N.maxLiveNodes)!=null?q:0)<=0}),pl=E(()=>!ye.value&&vt&&We.value===!0&&!ts.value&&!_t.value&&!Cn.value&&!Jo.value&&!qi.value),dr=E(()=>!!Oi&&Jo.value),xu=E(()=>ts.value||Pn.value),{focusIndex:Cl,liveRange:Ci,updateLiveRange:za}=(function(q,pe){const{parsedNodeCount:Te,virtualizationEnabled:$e,maxLiveNodesResolved:je,liveNodeBufferResolved:yt,clamp:Et}=pe,Pt=yt??E(()=>{var qt;return Math.max(0,(qt=q.liveNodeBuffer)!=null?qt:60)}),tn=D(0),Dt=as({start:0,end:0});return{liveNodeBufferResolved:Pt,focusIndex:tn,liveRange:Dt,updateLiveRange:function(){const qt=Te.value;if(!$e.value||qt===0)return Dt.start=0,void(Dt.end=qt);const Jt=Math.min(je.value,qt),Nt=Pt.value,jt=Et(tn.value-Nt,0,Math.max(0,qt-Jt));Dt.start=jt,Dt.end=Math.min(qt,jt+Jt)}}})(N,{parsedNodeCount:tt,virtualizationEnabled:ts,maxLiveNodesResolved:Yn,liveNodeBufferResolved:Fs,clamp:da}),Po=new Map,Si=new Map,_r=new Map,Ja=[],la=new Map,So=new Set,Eu=D(0);let ji=!1;const er=E(()=>(Eu.value,So.size)),ei=new Map,bo=new Map,zd=D(0),fl=E(()=>{zd.value;let q=0;for(const pe of ei.values())q+=Math.max(0,pe);return q});let ca=null;const nd=E(()=>{if(!ts.value)return nt.value.length;const q=Fs.value,pe=Math.max(Ci.end+q,Dn.value),Te=Math.min(nt.value.length,pe);return Math.max(Nn.value,Te)});function pr(){ji||(ji=!0,queueMicrotask(()=>{ji=!1,Eu.value+=1}))}function ga(q,pe,Te="node-resize"){if(!ue||typeof window>"u")return null;const $e=window.setTimeout(()=>{So.delete($e)&&pr();try{pe()}finally{pi(Te)}},Math.max(0,q));return So.add($e),pr(),$e}function Hl(q){ue&&q!=null&&(So.delete(q)&&pr(),window.clearTimeout(q))}function xl(){if(ue&&typeof window<"u")for(const q of So)window.clearTimeout(q);So.size&&(So.clear(),pr()),Ja.length=0,_r.clear()}function fr(q){K.value=q}function Zr(q){G.value=q}function rc(q){Q.value=q}const{cancelScheduledFocusSync:ml,scheduleFocusSync:ua}=(function(q){const{isClient:pe,containerRef:Te,virtualizationEnabled:$e,requestFrame:je,cancelFrame:yt,syncFocusToScroll:Et}=q;let Pt=null;function tn(){var qt,Jt,Nt;return(Nt=(Jt=(qt=Te.value)==null?void 0:qt.ownerDocument)==null?void 0:Jt.defaultView)!=null?Nt:typeof window<"u"?window:null}function Dt(){if(!Pt)return;const qt=tn();Pt.viaTimeout?qt?qt.clearTimeout(Pt.id):clearTimeout(Pt.id):yt?.(Pt.id),Pt=null}return{cancelScheduledFocusSync:Dt,scheduleFocusSync:function(qt={}){if(!$e.value)return;if(!pe)return void Et(!0);if(qt.immediate)return Dt(),void Et(!0);if(Pt)return;const Jt=()=>{Pt=null,Et()};if(je)return void(Pt={id:je(Jt),viaTimeout:!1});const Nt=tn();Pt={id:Nt?Nt.setTimeout(Jt,16):setTimeout(Jt,16),viaTimeout:!0}}}})({isClient:ue,containerRef:L,virtualizationEnabled:ts,requestFrame:Ro,cancelFrame:qo,syncFocusToScroll:function(q=!1){var pe;if(!ts.value)return;const Te=Xo.value||me();if(!Te)return;const $e=Te.ownerDocument||((pe=L.value)==null?void 0:pe.ownerDocument)||document,je=$e?.defaultView||(typeof window<"u"?window:null),yt=Te===$e?.documentElement||Te===$e?.body,Et=nt.value.length;if(Et<=0)return;if(!yt&&Et>0&&Be(Te)){const ln=rt("syncFocusToScroll.clientHeight",()=>Te.clientHeight||0),Bn=rt("syncFocusToScroll.scrollTop",()=>Te.scrollTop),Sn=Bn<0?-Bn:Bn;return void Do(da((Pt=Math.max(0,Sn)+.5*Math.max(0,ln),lo.estimateIndexForOffsetFromEnd(Pt)),0,Math.max(0,Et-1)),q)}var Pt;const tn=(function(ln,Bn,Sn,es){const us=L.value;if(!us)return null;const ys=es?0:rt("syncFocusToScroll.model.root.getBoundingClientRect",()=>ln.getBoundingClientRect().top),vs=rt("syncFocusToScroll.model.container.getBoundingClientRect",()=>us.getBoundingClientRect().top),ks=Math.max(0,ys-vs),no=es?rt("syncFocusToScroll.model.viewport.clientHeight",()=>{var mo,xi,$l,gl;return(gl=($l=(xi=Sn?.innerHeight)!=null?xi:(mo=Bn.documentElement)==null?void 0:mo.clientHeight)!=null?$l:ln.clientHeight)!=null?gl:0}):rt("syncFocusToScroll.model.root.clientHeight",()=>ln.clientHeight);return da(Sr(ks+.5*Math.max(0,no)),0,Math.max(0,nt.value.length-1))})(Te,$e,je,yt);if(tn!=null)return void Do(tn,q);const Dt=yt?null:rt("syncFocusToScroll.root.getBoundingClientRect",()=>Te.getBoundingClientRect()),qt=yt?0:Dt.top,Jt=yt?rt("syncFocusToScroll.viewport.clientHeight",()=>{var ln,Bn;return(Bn=(ln=je?.innerHeight)!=null?ln:Te.clientHeight)!=null?Bn:0}):Dt.bottom,Nt=Yr.value;let jt=null,fn=null;for(const[ln,Bn]of Nt){if(!Bn)continue;const Sn=rt("syncFocusToScroll.slot.getBoundingClientRect",()=>Bn.getBoundingClientRect());Sn.bottom<=qt||Sn.top>=Jt||(jt==null&&(jt=ln),fn=ln)}if(jt==null||fn==null){const ln=L.value;if(!ln)return;const Bn=yt?{top:0}:rt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>Te.getBoundingClientRect()),Sn=rt("syncFocusToScroll.fallback.scrollTop",()=>He(Te,$e,yt)),es=yt?(()=>{const ys=rt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>ln.getBoundingClientRect()),vs=(yt?0:Bn.top)-ys.top;return Math.max(0,vs)})():(()=>{const ys=Le(ln,Te);return Math.max(0,Sn-ys)})(),us=yt?rt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var ys,vs,ks,no;return(no=(ks=(vs=je?.innerHeight)!=null?vs:(ys=$e?.documentElement)==null?void 0:ys.clientHeight)!=null?ks:Te.clientHeight)!=null?no:0}):rt("syncFocusToScroll.fallback.root.clientHeight",()=>Te.clientHeight);return void Do(da(Sr(es+.5*Math.max(0,us)),0,Math.max(0,nt.value.length-1)),!0)}Do(Math.round((jt+fn)/2),q)}}),{visibleNodeIndices:tr,nodeVisibilityHandles:va,nodeVisibilityWatchStops:Xr,nodeVisibilityFallbackTimers:Ir,clearVisibilityFallback:ti,markNodeVisible:ui,cleanupNodeVisibility:El,destroyNodeVisibilityState:Jr}=Jze({isClient:ue,shouldTrackVisibleNodeIndices:()=>Jo.value,shouldCleanupNodeVisibility:()=>ts.value,onNodeMarkedVisible:q=>{ts.value?ua():Cl.value=da(q,0,Math.max(0,nt.value.length-1))},onNodeVisibilityCleaned:q=>{xn.delete(q)&&xr()}}),{cleanupScrollListener:Vl,setupScrollListener:Vc}=(function(q){const{isClient:pe,virtualizationEnabled:Te,listenerEnabled:$e,scrollRootElement:je,resolveScrollContainer:yt,scheduleFocusSync:Et,onScroll:Pt}=q;let tn=null,Dt=null;function qt(){tn&&(tn(),tn=null),Dt=null,je.value=null}function Jt(Nt){const jt=q.getScrollTop?q.getScrollTop(Nt):Nt.scrollTop;return Math.max(0,Number.isFinite(jt)?Math.abs(jt):0)}return{cleanupScrollListener:qt,setupScrollListener:function(){if(!pe)return;if(!((Nt=$e?.value)!=null?Nt:Te.value))return void qt();var Nt;const jt=yt();if(!jt)return void qt();if(je.value===jt&&tn)return;qt(),Dt=Jt(jt);const fn=()=>{if(Pt?.(),Te.value){const ln=(function(Bn){const Sn=Jt(Bn),es=Dt;Dt=Sn;const us=Math.max(480,.75*(Bn.clientHeight||0));return es==null?Sn>us?{immediate:!0}:void 0:Math.abs(Sn-es)>us?{immediate:!0}:void 0})(jt);ln?Et(ln):Et()}};jt.addEventListener("scroll",fn,{passive:!0}),je.value=jt,tn=()=>{jt.removeEventListener("scroll",fn)}}}})({isClient:ue,virtualizationEnabled:ts,listenerEnabled:xu,scrollRootElement:Xo,resolveScrollContainer:me,scheduleFocusSync:ua,onScroll:function(){const q=zo.value;if(!q)return;const pe=Kc();if(!pe||(function($e){if($p()>=Fl)return kr=null,!1;const je=kr;if(je==null)return!0;const yt=Math.abs($e.scrollTop-je)<=2;return yt||(kr=null),yt})(pe))return;const Te=Cf(pe);Te!=null?(Te<-32||Math.abs(Math.max(0,Te)-Math.max(0,q.distanceFromBottomPx))>32)&&fc("restore"):fc("restore")},getScrollTop:q=>{var pe;const Te=q.ownerDocument||((pe=L.value)==null?void 0:pe.ownerDocument)||document,$e=q===Te.documentElement||q===Te.body||q===Te.scrollingElement;return rt("scrollListener.getScrollTop",()=>He(q,Te,$e))}});function Do(q,pe=!1){const Te=da(q,0,Math.max(0,nt.value.length-1));!pe&&Math.abs(Te-Cl.value)<=1||(Cl.value=Te,za())}function da(q,pe,Te){return Math.min(Math.max(q,pe),Te)}function nr(q=nt.value.length){const pe=Ut();return!Number.isInteger(pe)||pe<0?q:da(pe,0,q)}function ya(q){return q?.firstElementChild}function di(q,pe){var Te;return q?(Te=q.matches)!=null&&Te.call(q,pe)?q:q.querySelector(pe):null}function Bt(q,pe){q<1||q>6||(J[q]=pe)}function Zt(){if(!No.value)return void(oe.value=0);const q=rt("updateExperimentContainerWidth.clientWidth",()=>{var pe,Te;return(Te=(pe=L.value)==null?void 0:pe.clientWidth)!=null?Te:0});oe.value=q>0?q:0}let en=null;function fo(){en?.disconnect(),en=null}const pa=Ey("ViewportDeferredMarkdownCodeBlockNode",Jp({loader:()=>ta(null,null,function*(){return(yield Sa(()=>import("./index5-DdvvE0or.js"),__vite__mapDeps([9,5,3,6,0,1]))).default}),loadingComponent:gI,delay:0,suspensible:!1}),gI);function el(q){return q===pa}const io=E(()=>w.value==="pre"?nu:w.value==="shiki"?pa:jx);function qc(){var q;return((q=N.codeBlockProps)==null?void 0:q.showHeader)!==!1}function ql(q,pe,Te){const $e=ur[pe],je=typeof $e=="number"&&$e>0;if(wn.value&&!je&&!(function(yt){return!!Qe.value.paragraph&&(yt.type==="paragraph"||yt.type==="list_item"||yt.type==="list")})(q)){const yt=bZ(q,Te,ae.value);if(yt)return yt}if(Zo.value&&q.type==="code_block"){const yt=(function(Et){if(Et.type!=="code_block")return null;const Pt=vw(Et,Zh(Et));return el(Pt)?"markdown":Pt===nu?"pre":Pt===io.value||Pt===jx?"monaco":null})(q);if(yt==="monaco"||yt==="markdown"||yt==="pre")return(function(Et,Pt){var tn,Dt,qt;if(!Et||Et.type!=="code_block")return null;const Jt=Pt.rendererKind,Nt=Jt!=="pre"&&Pt.showHeader!==!1,jt=!!Et.diff;let fn=0,ln=500;if(Jt==="monaco"){const Sn=(tn=Pt.monacoOptions)!=null?tn:{},es=eE(Et,Sn,Pt.width),us=(function(vs){const ks=typeof vs?.fontSize=="number"&&vs.fontSize>0?vs.fontSize:12;return typeof vs?.lineHeight=="number"&&vs.lineHeight>0?vs.lineHeight:Math.round(1.5*ks)})(Sn),ys=(function(vs,ks){var no,mo;const xi=typeof((no=vs?.padding)==null?void 0:no.top)=="number"?vs.padding.top:ks?0:8,$l=typeof((mo=vs?.padding)==null?void 0:mo.bottom)=="number"?vs.padding.bottom:ks?0:8;return Math.max(0,xi)+Math.max(0,$l)})(Sn,jt);ln=typeof Sn.MAX_HEIGHT=="number"&&Sn.MAX_HEIGHT>0?Sn.MAX_HEIGHT:500,fn=Math.round(es*us+ys)}else if(Jt==="markdown"){const Sn=eE(Et);fn=Math.round(21*Sn+32)}else{const Sn=eE(Et);fn=Math.round(28*Sn),ln=Number.POSITIVE_INFINITY}const Bn=Math.max(1,Math.min(fn,ln));return En({kind:"code-block",height:Math.round(Bn+(Nt?40:0)),contentHeight:Bn,rendererKind:Jt},jt&&Jt==="monaco"?{diffInline:mR((Dt=Pt.monacoOptions)!=null?Dt:{},(qt=Pt.width)!=null?qt:0)}:{})})(q,{rendererKind:yt,monacoOptions:N.codeBlockMonacoOptions,showHeader:qc(),width:Te})}return null}Wp(()=>{if(Cs.value,Gr>0)return;const q=nt.value,pe=rn();if(!q.length||!Bo.value)return aa=[],Bl=[],Zi=-1,lr.clear(),void(La.value=ul);const Te=oe.value||rt("estimatedNodeHeights.clientWidth",()=>{var Dt;return((Dt=L.value)==null?void 0:Dt.clientWidth)||0});if(!Number.isFinite(Te)||Te<=0)return aa=[],Bl=[],Zi=-1,lr.clear(),void(La.value=ul);const $e=(function(Dt){return[Math.round(Dt),wn.value,Zo.value,ae.value,N.codeBlockMonacoOptions,qc(),w.value,Qe.value,Zx.value]})(Te),je=aa.length<=q.length&&(Et=$e,(yt=Bl).length===Et.length&&yt.every((Dt,qt)=>Object.is(Dt,Et[qt])));var yt,Et;const Pt=je&&Zi===pe?q.length:je?nr(q.length):0,tn=je?Array.from(lr):[];aa.length=q.length;for(let Dt=Pt;Dt<q.length;Dt++)aa[Dt]=ql(q[Dt],Dt,Te);for(const Dt of tn)Dt>=0&&Dt<q.length&&Dt<Pt&&(aa[Dt]=ql(q[Dt],Dt,Te));lr.clear(),Bl=$e,Zi=pe,La.value=aa,Nte(La)},{flush:"sync"});const lc=E(()=>La.value);lo=(function(q){let pe=!0,Te=[0],$e="";function je(qt){var Jt;const Nt=q.nodeHeights[qt];if(Number.isFinite(Nt)&&Nt>0)return Nt;const jt=q.parsedNodes.value[qt],fn=jt?.type,ln=!!((Jt=q.hasCustomParagraphComponent)!=null&&Jt.call(q)),Bn=q.estimatedNodeHeights.value[qt],Sn=Bn?.height;if(!(function(us,ys,vs){return!!(vs&&ys?.kind==="simple-text"&&(us==="paragraph"||us==="list_item"||us==="list"))})(fn,Bn,ln)&&Number.isFinite(Sn)&&Sn>0)return Sn;const es=Uze(jt,q.getContainerWidth()||640);return fn==="heading"||fn==="paragraph"&&es<=28&&(function(us,ys){if(ys)return!1;const vs=us.children;return!Array.isArray(vs)||!vs.length||vs.every(wZ)})(jt,ln)?es:Math.max(q.averageNodeHeight.value,es)}function yt(){var qt;const Jt=q.parsedNodes.value.length,Nt=q.getPrefixCacheKeyParts().join(":");if(!pe&&$e===Nt)return Te;const jt=new Array(Jt+1);jt[0]=0;for(let fn=0;fn<Jt;fn++)jt[fn+1]=jt[fn]+(q.heightEstimationActive.value?je(fn):(qt=q.nodeHeights[fn])!=null?qt:q.averageNodeHeight.value);return Te=jt,$e=Nt,pe=!1,jt}function Et(qt){var Jt,Nt;const jt=q.parsedNodes.value.length;if(jt<=0||qt<=0)return 0;const fn=yt();if(qt>=((Jt=fn[jt])!=null?Jt:0))return jt-1;let ln=0,Bn=jt-1,Sn=jt-1;for(;ln<=Bn;){const es=ln+Bn>>1;((Nt=fn[es+1])!=null?Nt:0)>=qt?(Sn=es,Bn=es-1):ln=es+1}return Sn}function Pt(qt,Jt){var Nt,jt;if(qt>=Jt)return 0;if(q.heightEstimationActive.value)return(function(Bn,Sn){var es,us;const ys=q.parsedNodes.value.length,vs=wL(Math.trunc(Bn),0,ys),ks=wL(Math.trunc(Sn),vs,ys);if(vs>=ks)return 0;const no=yt();return((es=no[ks])!=null?es:0)-((us=no[vs])!=null?us:0)})(qt,Jt);if(q.heightTreeSize.value!==q.parsedNodes.value.length){let Bn=0;for(let Sn=qt;Sn<Jt;Sn++)Bn+=(Nt=q.nodeHeights[Sn])!=null?Nt:q.averageNodeHeight.value;return Bn}const fn=q.heightSumTree.value,ln=q.heightKnownTree.value;if(!fn.length||!ln.length){let Bn=0;for(let Sn=qt;Sn<Jt;Sn++)Bn+=(jt=q.nodeHeights[Sn])!=null?jt:q.averageNodeHeight.value;return Bn}return q.fenwickRangeSum(fn,qt,Jt)+(Jt-qt-q.fenwickRangeSum(ln,qt,Jt))*q.averageNodeHeight.value}function tn(qt){var Jt;if(qt<=0)return 0;const Nt=q.parsedNodes.value;if(q.heightEstimationActive.value)return Et(qt);if(q.heightTreeSize.value===Nt.length&&q.heightSumTree.value.length&&q.heightKnownTree.value.length){const fn=q.averageNodeHeight.value,ln=q.heightSumTree.value,Bn=q.heightKnownTree.value,Sn=vs=>vs<=0?0:q.fenwickRangeSum(ln,0,vs)+(vs-q.fenwickRangeSum(Bn,0,vs))*fn;let es=0,us=Nt.length-1,ys=Nt.length-1;for(;es<=us;){const vs=es+us>>1;Sn(vs+1)>=qt?(ys=vs,us=vs-1):es=vs+1}return ys}let jt=qt;for(let fn=0;fn<Nt.length;fn++){const ln=(Jt=q.nodeHeights[fn])!=null?Jt:q.averageNodeHeight.value;if(jt<=ln)return fn;jt-=ln}return Math.max(0,Nt.length-1)}function Dt(){if(!q.heightEstimationActive.value)return 0;let qt=0;const Jt=q.estimatedNodeHeights.value;for(let Nt=0;Nt<Jt.length;Nt++){if(!Jt[Nt])continue;const jt=q.nodeHeights[Nt];Number.isFinite(jt)&&jt>0||qt++}return qt}return{markFallbackHeightPrefixDirty:function(){pe=!0},getFallbackNodeHeight:je,estimateHeightRange:Pt,estimateIndexForOffset:tn,estimateIndexForOffsetFromEnd:function(qt){var Jt,Nt;const jt=q.parsedNodes.value;if(!jt.length)return 0;if(qt<=0)return Math.max(0,jt.length-1);if(q.heightEstimationActive.value){const ln=(Jt=yt()[jt.length])!=null?Jt:0;return Et(Math.max(0,ln-qt))}if(q.heightTreeSize.value===jt.length){const ln=Pt(0,jt.length);return tn(Math.max(0,ln-qt))}let fn=qt;for(let ln=jt.length-1;ln>=0;ln--){const Bn=(Nt=q.nodeHeights[ln])!=null?Nt:q.averageNodeHeight.value;if(fn<=Bn)return ln;fn-=Bn}return 0},getEstimatedNodeHeightCount:Dt,buildVirtualHeightSummary:function(qt){var Jt;const Nt=q.parsedNodes.value.length;return{totalNodes:Nt,measuredCount:q.heightStats.count,estimatedCount:Dt(),averageNodeHeight:q.averageNodeHeight.value,topSpacerHeight:qt.topSpacerHeight,bottomSpacerHeight:qt.bottomSpacerHeight,estimatedTotalHeight:Pt(0,Nt),width:(Jt=qt.width)!=null?Jt:q.getContainerWidth()}}}})({parsedNodes:nt,nodeHeights:ur,heightStats:Xi,heightTreeSize:Cu,heightSumTree:Cp,heightKnownTree:ed,averageNodeHeight:Ji,heightEstimationActive:No,estimatedNodeHeights:lc,getContainerWidth:Ze,hasCustomParagraphComponent:()=>!!Qe.value.paragraph,getPrefixCacheKeyParts:()=>{var q;const pe=py(oe.value||rt("getFallbackHeightPrefix.clientWidth",()=>{var $e;return(($e=L.value)==null?void 0:$e.clientWidth)||0})),Te=((q=s.virtualScroll)==null?void 0:q.measurementKey)==null?"":String(s.virtualScroll.measurementKey);return[nt.value.length,Xi.count,Math.round(Xi.total),Math.round(100*Ji.value),Te,pe,No.value?1:0,Zx.value,le.value,Qe.value.paragraph?1:0]},fenwickRangeSum:Ba}),ze(()=>nt.value.length,q=>{var pe;ra(),q<=0?Fa():(q<Cu.value&&(pe=q,Qr(),dl(()=>Uo(pe))),q!==Cu.value&&ci(q))},{immediate:!0});const Ud=E(()=>{if(!ts.value)return nt.value.map(($e,je)=>({node:$e,index:je}));const q=nt.value.length,pe=da(Ci.start,0,q),Te=da(Ci.end,pe,q);return nt.value.slice(pe,Te).map(($e,je)=>({node:$e,index:pe+je}))}),Hd=E(()=>ts.value?wr(0,Math.min(Ci.start,nt.value.length)):0),cc=E(()=>{if(!ts.value)return 0;const q=nt.value.length;return wr(Math.min(Ci.end,q),q)});function uc(){return lo.buildVirtualHeightSummary({topSpacerHeight:Hd.value,bottomSpacerHeight:cc.value,width:Nu()})}function Uh(){const q=nt.value,pe=uc();return Os(En({},pe),{probe:{paragraphReady:!!ae.value.paragraph,listItemReady:!!ae.value.listItem,listWrapperOverhead:ae.value.listWrapperOverhead,headingReadyLevels:Object.entries(ae.value.headings).filter(([,Te])=>!!Te).map(([Te])=>Number(Te))},nodes:q.map((Te,$e)=>{var je,yt,Et,Pt,tn,Dt,qt,Jt,Nt;return{index:$e,type:Te.type,estimateKind:(yt=(je=lc.value[$e])==null?void 0:je.kind)!=null?yt:null,rendererKind:(Pt=(Et=lc.value[$e])==null?void 0:Et.rendererKind)!=null?Pt:null,estimatedHeight:(Dt=(tn=lc.value[$e])==null?void 0:tn.height)!=null?Dt:null,estimatedContentHeight:(Jt=(qt=lc.value[$e])==null?void 0:qt.contentHeight)!=null?Jt:null,measuredHeight:(Nt=ur[$e])!=null?Nt:null}})})}function sd(){return s.indexKey!=null?String(s.indexKey):_t.value?`virtual-${Wo()}`:"markdown-renderer"}function Tu(q){const pe=String(q),Te=`${sd()}-`;if(!pe.startsWith(Te))return null;const $e=pe.slice(Te.length).match(/^(\d+)(?:$|-)/);if(!$e)return null;const je=Number($e[1]);return!Number.isInteger(je)||je<0||je>=nt.value.length?null:je}function Wo(){var q,pe,Te;const $e=(q=s.virtualScroll)==null?void 0:q.sessionKey;return String($e!=null&&$e!==""?$e:(Te=(pe=s.indexKey)!=null?pe:N.customId)!=null?Te:Vt)}function Di(){var q;const pe=(q=s.virtualScroll)==null?void 0:q.threadKey;return pe==null||pe===""?void 0:String(pe)}const If=E(()=>{var q,pe,Te;return(Te=Di())!=null?Te:String((pe=(q=s.indexKey)!=null?q:N.customId)!=null?pe:Vt)});function od(q){var pe;return(q??"")===((pe=Di())!=null?pe:"")}function Tl(){var q,pe,Te;return pe=(q=s.virtualScroll)==null?void 0:q.measurementKey,Te=(function(){const $e=w.value;return(function(je){var yt,Et;const Pt=je.renderer,tn=Pt==="monaco"?je.codeBlockMonacoOptions:void 0,Dt=je.codeBlockProps,qt=Pt==="shiki";return[je.isDark?"dark":"light",Pt==="monaco"?"code-rich":Pt==="pre"?"code-pre":"code-shiki",je.codeBlockStream===!1?"code-static":"code-stream",vl(je.codeBlockMinWidth),vl(je.codeBlockMaxWidth),...qt?[OLe((yt=Dt?.themes)!=null?yt:je.themes,(Et=Dt?.langs)!=null?Et:je.langs)]:[],vl(tn?.fontSize),vl(tn?.lineHeight),vl(tn?.fontFamily),vl(tn?.tabSize),vl(tn?.MAX_HEIGHT),vl(tn?.wordWrap),vl(tn?.wrappingIndent),vl(tn?.padding),vl(Dt?.showHeader),vl(Dt?.showCopyButton),vl(Dt?.showExpandButton),vl(Dt?.showPreviewButton),vl(Dt?.showCollapseButton),vl(Dt?.showFontSizeButtons)].join("\0")})({renderer:$e,isDark:N.isDark,codeBlockStream:N.codeBlockStream,codeBlockMinWidth:N.codeBlockMinWidth,codeBlockMaxWidth:N.codeBlockMaxWidth,codeBlockMonacoOptions:$e==="monaco"?N.codeBlockMonacoOptions:void 0,codeBlockProps:N.codeBlockProps,themes:$e==="shiki"?N.themes:void 0,langs:$e==="shiki"?N.langs:void 0})})(),[pe==null?"":String(pe),Te].join("\0")}function Nu(){return Ze()}const Ar=E(()=>py(Nu())),Cr=E(()=>[Tl(),Ar.value].join("\0")),bm=E(()=>{var q;return _t.value?["virtual",(q=Di())!=null?q:"",Wo(),Cr.value].join("\0"):s.indexKey});function id(){zd.value+=1}function Vd(q){return!(!q||!Number.isInteger(q.index)||q.index<0||q.index>=nt.value.length||q.sessionKey!==Wo()||q.threadKey!==Di()||q.layoutEpochKey!==Cr.value)}function dc(q){const pe=String(q),Te=bo.get(pe);return Te?Vd(Te)?Te.index:null:Tu(pe)}function ad(q="async-node"){(ei.size||bo.size)&&(ei.clear(),bo.clear(),id(),pi(q))}const jc=uo(x3,null),xp={reportHeight(q,pe){if(!Pn.value)return;const Te=dc(q);if(Te==null)return;const $e=Po.get(Te);if(!$e)return;const je=Number(pe),yt=Ul(Te,$e);(function(Et,Pt,tn={}){dl(()=>Hc(Et,Pt,tn))})(Te,Number.isFinite(je)&&je>0?Math.max(je,yt||0):yt)},markPending(q){if(!Pn.value)return;const pe=Tu(q);pe!=null&&(function(Te,$e){var je;const yt=bo.get(Te);if(yt&&Vd(yt))return ei.set(Te,Math.max(0,(je=ei.get(Te))!=null?je:0)+1),id(),void pi("async-node");ei.set(Te,1),bo.set(Te,(function(Et){return{index:Et,sessionKey:Wo(),threadKey:Di(),layoutEpochKey:Cr.value}})($e)),id(),pi("async-node")})(String(q),pe)},markSettled(q){if(!Pn.value)return;const pe=String(q),Te=dc(q);(Te!=null||(function($e){return ei.has(String($e))})(pe))&&(function($e){var je;const yt=(je=ei.get($e))!=null?je:0;return!(yt<=0||(yt<=1?(ei.delete($e),bo.delete($e)):ei.set($e,yt-1),id(),yt===1&&pi("async-node"),0))})(pe)&&Te!=null&&Kl()}};function km(){let q=0;for(const pe of Po.values())q+=rt("getVisibleDomHeight.offsetHeight",()=>{var Te;return(Te=pe?.offsetHeight)!=null?Te:0});return Math.ceil(Math.max(0,q))}si(x3,{reportHeight(q,pe){xp.reportHeight(q,pe),jc?.reportHeight(q,pe)},markPending(q){xp.markPending(q),jc?.markPending(q)},markSettled(q){xp.markSettled(q),jc?.markSettled(q)}});let qd,Af=null,Ru=null;function Wc(q){return q!==!1&&q!=null&&q!==""}function Ep(){return ts.value?(function(){if(!ts.value)return!0;const q=nt.value.length,pe=da(Ci.start,0,q),Te=da(Ci.end,pe,q);if(pe>=Te)return!0;for(let $e=pe;$e<Te;$e++)if(!xn.has($e)||Ne($e)&&!Po.has($e))return!1;return!0})():Nn.value>=nd.value}function rd(){return We.value===!0&&!ct.value&&fl.value===0&&So.size===0&&la.size===0&&ca==null&&Ep()}function Mu(){var q,pe;if(((q=s.virtualScroll)==null?void 0:q.settleMode)!=="manual"||Af===Wo()&&qd===Di())return!0;const Te=(pe=s.virtualScroll)==null?void 0:pe.settledToken;return!!Wc(Te)&&Ru===Gh(Te)}function Nl(){return rd()&&Mu()}function ld(q,pe){return pe.totalNodes<=0?q==="final"?"final":"estimate":pe.measuredCount>=pe.totalNodes?q==="final"?"final":"measured":pe.measuredCount>0||pe.estimatedCount>0?"mixed":"estimate"}function pc(q="manual",pe){const Te=uc(),$e=(function(je){return je||(We.value!==!0?nt.value.length>0?"streaming":"estimating":!Ep()||la.size>0||ca!=null?"measuring":Nl()?"settled":"settling")})(pe);return{sessionKey:Wo(),threadKey:Di(),phase:$e,nodeCount:Te.totalNodes,liveRange:{start:Ci.start,end:Ci.end},renderedCount:Nn.value,measuredCount:Te.measuredCount,estimatedCount:Te.estimatedCount,averageNodeHeight:Te.averageNodeHeight,topSpacerHeight:Te.topSpacerHeight,bottomSpacerHeight:Te.bottomSpacerHeight,visibleDomHeight:km(),totalHeight:jd(),width:Te.width,final:We.value===!0,stable:Nl(),confidence:ld($e,Te),reason:q}}function Kc(){const q=Xo.value||me(),pe=L.value;if(!q||!pe)return null;const Te=q.ownerDocument||pe.ownerDocument||document,$e=q===Te.documentElement||q===Te.body||q===Te.scrollingElement,je=rt("getScrollBox.scrollTop",()=>He(q,Te,$e)),yt=rt("getScrollBox.scrollHeight",()=>{var Pt,tn,Dt,qt,Jt;return $e?Math.max((tn=(Pt=Te.documentElement)==null?void 0:Pt.scrollHeight)!=null?tn:0,(qt=(Dt=Te.body)==null?void 0:Dt.scrollHeight)!=null?qt:0,(Jt=q.scrollHeight)!=null?Jt:0):q.scrollHeight}),Et=rt("getScrollBox.clientHeight",()=>{var Pt;return $e?((Pt=Te.documentElement)==null?void 0:Pt.clientHeight)||q.clientHeight||0:q.clientHeight});return{root:q,doc:Te,isViewportRoot:$e,scrollTop:je,scrollHeight:yt,clientHeight:Et}}function jd(){const q=nt.value.length,pe=Math.max(0,wr(0,q)),Te=rt("getRendererLogicalHeight.offsetHeight",()=>{var je,yt;return(yt=(je=L.value)==null?void 0:je.offsetHeight)!=null?yt:0}),$e=Math.max(0,Te>0?Te:rt("getRendererLogicalHeight.scrollHeight",()=>{var je,yt;return(yt=(je=L.value)==null?void 0:je.scrollHeight)!=null?yt:0}));return q<=0?Math.ceil(Te):ts.value?pe>0?Math.max(1,Math.ceil(pe),(function(){let je=Hd.value+cc.value;for(const yt of xn.values())yt&&(je+=Math.max(0,rt("getVirtualizedDomLogicalHeight.offsetHeight",()=>yt.offsetHeight||0)));return Math.ceil(Math.max(0,je))})(),(function(je,yt){return je<=0||yt<=0?0:yt<=je+Math.max(512,.05*je)?Math.ceil(yt):0})(pe,$e)):Math.max(1,Math.ceil($e)):Pn.value?pe>0||Xi.count>0||lo.getEstimatedNodeHeightCount()>0?(zs.value&&Nn.value,Math.max(1,Math.ceil($e),Math.ceil(pe))):Math.ceil($e):Math.max(1,Math.ceil($e),Math.ceil(pe))}function Cf(q){const pe=L.value;if(!pe)return null;const Te=rt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>pe.getBoundingClientRect());return(function(je){return je.isViewportRoot?je.clientHeight:rt("getViewportBottomInRoot.getBoundingClientRect",()=>je.root.getBoundingClientRect().bottom)})(q)-Te.bottom}function hl(q={}){const pe=q.requireViewport!==!1,Te=(function(yt=64){const Et=Kc(),Pt=L.value;if(!Et||!Pt)return!1;const tn=(function(qt){if(qt.isViewportRoot)return{top:0,bottom:qt.clientHeight};const Jt=rt("getVirtualViewportRect.getBoundingClientRect",()=>qt.root.getBoundingClientRect());return{top:Jt.top,bottom:Jt.bottom}})(Et),Dt=rt("isRendererNearVirtualViewport.getBoundingClientRect",()=>Pt.getBoundingClientRect());return Dt.bottom>=tn.top-yt&&Dt.top<=tn.bottom+yt})();if(pe&&!Te)return null;const $e=(function(){const yt=Kc(),Et=L.value;if(!yt||!Et||Math.max(0,yt.scrollHeight-yt.scrollTop-yt.clientHeight)>64)return null;const Pt=Cf(yt);return Pt==null?null:Pt>=-8&&Pt<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,Pt)}:null})();if($e)return{anchor:$e,captured:!0};const je=zl();if(je)return{anchor:{type:"node",nodeIndex:je.nodeIndex,offsetWithinNodePx:je.offsetWithinNodePx},captured:Te};if(q.allowFallback===!0){const yt=(function(){const Et=nt.value.length;return Et<=0?null:{type:"node",nodeIndex:da(Cl.value,0,Math.max(0,Et-1)),offsetWithinNodePx:0}})();return yt?{anchor:yt,captured:!1}:null}return null}function Mo(q){let pe=2166136261;for(let Te=0;Te<q.length;Te++)pe^=q.charCodeAt(Te),pe=Math.imul(pe,16777619);return(pe>>>0).toString(36)}function tl(q,pe){let Te=q;for(let $e=0;$e<pe.length;$e++)Te^=pe.charCodeAt($e),Te=Math.imul(Te,16777619);return Te^=31,Te=Math.imul(Te,16777619),Te}const Rl=new Set(["children","items","header","rows","cells","attrs","data","term","definition"]);function Wd(q,pe=new WeakSet,Te=0){if(q==null||typeof q=="number"||typeof q=="boolean")return String(q);if(typeof q=="string")return`s:${(function($e){const je=$e.length>8192?`${$e.slice(0,8192)}...${$e.length}`:$e;return`${$e.length}:${Mo(je)}`})(q)}`;if(typeof q=="function")return"fn";if(typeof q!="object")return typeof q;if(pe.has(q))return"cycle";if(Te>=6)return"max-depth";pe.add(q);try{if(Array.isArray(q)){if(q.length<=160){const Dt=[];for(let qt=0;qt<q.length;qt++)Dt.push(Wd(q[qt],pe,Te+1));return`a:${q.length}:${Dt.join(",")}`}const yt=[],Et=[],Pt=Math.max(0,q.length-32);let tn=2166136261;for(let Dt=0;Dt<q.length;Dt++){const qt=Wd(q[Dt],pe,Te+1);tn=tl(tn,qt),Dt<32&&yt.push(qt),Dt>=Pt&&Et.push(qt)}return[`a:${q.length}`,`h=${yt.join(",")}`,`t=${Et.join(",")}`,`all=${(tn>>>0).toString(36)}`].join(":")}const $e=q,je=Object.keys($e).filter(yt=>{const Et=$e[yt];return yt!=="parent"&&yt!=="el"&&yt!=="component"&&(Et==null||typeof Et=="string"||typeof Et=="number"||typeof Et=="boolean"||Rl.has(yt))}).sort();return`o:${je.length}:${je.map(yt=>`${yt}=${Wd($e[yt],pe,Te+1)}`).join(";")}`}finally{pe.delete(q)}}let Kd=-1,cd="",Gc=[2166136261];function ud(q){const pe=nt.value[q];return pe?Mo(Wd(pe)):""}function Tp(q,pe){let Te=q;for(let $e=0;$e<pe.length;$e++)Te^=pe.charCodeAt($e),Te=Math.imul(Te,16777619);return Te>>>0}function $u(){var q,pe;const Te=le.value;if(Kd===Te)return cd;const $e=nt.value.length;let je=nr($e);(Kd!==Te-1||je>$e||Gc.length<je+1)&&(je=0),je===0?Gc=[2166136261]:Gc.length=je+1;for(let yt=je;yt<$e;yt++){const Et=ud(yt);Gc[yt+1]=Tp((q=Gc[yt])!=null?q:2166136261,Et)}return Gc.length=$e+1,cd=(((pe=Gc[$e])!=null?pe:2166136261)>>>0).toString(36),Kd=Te,cd}function dd(q,pe={}){var Te;const $e=pe.includeHeightCache===!0,je=(Te=pe.includeContentHash)!=null?Te:$e,yt=$e?(function(Pt){const tn=(function(){var ln,Bn;const Sn=Number((Bn=(ln=s.virtualScroll)==null?void 0:ln.heightCacheLimit)!=null?Bn:5e3);return!Number.isFinite(Sn)||Sn<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(Sn))})();if(!Number.isFinite(tn)||Pt.length<=tn)return Pt;const Dt=new Map,qt=ln=>{!ln||Dt.size>=tn||Dt.set(ln.index,ln)},Jt=nt.value.length,Nt=da(Ci.start-2*Fs.value,0,Jt),jt=da(Ci.end+2*Fs.value,Nt,Jt);for(const ln of Pt)ln.index>=Nt&&ln.index<jt&&qt(ln);const fn=Math.max(1,Math.ceil(Pt.length/tn));for(let ln=0;ln<Pt.length&&Dt.size<tn;ln+=fn)qt(Pt[ln]);for(let ln=Pt.length-1;ln>=0&&Dt.size<tn;ln-=fn)qt(Pt[ln]);return Array.from(Dt.values()).sort((ln,Bn)=>ln.index-Bn.index).slice(0,tn)})(ac().map(Pt=>{var tn;const Dt=nt.value[Pt.index];return Dt?Os(En({},Pt),{nodeType:String((tn=Dt.type)!=null?tn:""),signature:ud(Pt.index)}):null}).filter(Pt=>!!Pt)):[],Et=hl({allowFallback:pe.allowAnchorFallback===!0,requireViewport:pe.requireViewport});return Et||yt.length||pe.includeEmptyState===!0?Os(En({sessionKey:q.sessionKey,threadKey:q.threadKey},Et?{anchor:Et.anchor,anchorCaptured:Et.captured}:{anchorCaptured:!1}),{metrics:q,width:q.width,contentHash:je?$u():void 0,measurementKey:Tl()||void 0,heightCache:yt.length?yt:void 0}):null}function Gd(q){var pe,Te;const $e=Kc();if(!$e)return;const je=(function(Pt){const tn=L.value;if(!tn)return null;const Dt=Le(tn,Pt.root),qt=nt.value.length,Jt=rt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>tn.offsetHeight||0),Nt=Math.max(0,Jt>0?Jt:qt>0?rt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>tn.scrollHeight||0):0),jt=jd();return Dt+Math.max(Nt,jt)})($e);if(je==null)return;const yt=Math.max(0,q.distanceFromBottomPx),Et=Math.max(0,je-$e.clientHeight-yt);(function(Pt){Fl=$p()+120,kr=Pt})(Et),$e.isViewportRoot?(Te=(pe=$e.doc.defaultView)==null?void 0:pe.scrollTo)==null||Te.call(pe,0,Et):yL($e.root,$e.doc,Et,{isReverseFlexScrollRoot:Be,getNormalizedScrollTop:He})}const jl=[];function Yd(){if(ue)for(Ui!=null&&(qo?.(Ui),Ui=null);jl.length;){const q=jl.pop();q!=null&&window.clearTimeout(q)}}function fc(q){const pe=!!zo.value;zo.value=null,Fl=0,kr=null,Yd(),pe&&q&&pi(q)}function sr(){if(!zo.value||!ue||Ui!=null)return;const q=()=>{Ui=null;const pe=zo.value;pe&&Gd(pe)};Ui=Ro?Ro(q):null,Ui==null&&q()}function Np(q,pe={}){const Te=nt.value.length;return Te<=0?[]:q.filter($e=>!(!Number.isInteger($e.index)||$e.index<0||$e.index>=Te)&&!(!Number.isFinite($e.height)||$e.height<=0)&&!(pe.requireSignature&&!$e.signature)&&!(pe.requireCompatibilityMetadata&&!$e.nodeType&&!$e.signature)&&(function(je){var yt;const Et=nt.value[je.index];return!(!Et||je.nodeType&&je.nodeType!==String((yt=Et.type)!=null?yt:"")||je.signature&&je.signature!==ud(je.index))})($e))}function Qd(q){const pe=py(Nu()),Te=py(q);return pe!==-1&&Te!==-1&&pe===Te}function Zd(q){var pe;const Te=Number(q?.width);if(Number.isFinite(Te)&&Te>0)return Te;const $e=Number((pe=q?.metrics)==null?void 0:pe.width);return Number.isFinite($e)&&$e>0?$e:null}function Ou(q){var pe;return q.sessionKey===Wo()&&!!od(q.threadKey)&&((pe=q.measurementKey)!=null?pe:"")===Tl()&&!!Qd(Zd(q))&&!!(function(Te){const $e=Te.heightCache;return!!$e?.length&&(re(Te)?$e.some(je=>!!(je.nodeType||je.signature)):$e.some(je=>!!je.signature))})(q)}function re(q){return!!(q.contentHash&&q.contentHash===$u())}function _e(q){return!re(q)}let we=null,pt=null,In=null,is=null,cs=null;function _o(q){var pe;const Te=q.map(je=>{var yt,Et;return[je.index,Math.round(10*je.height),(yt=je.nodeType)!=null?yt:"",(Et=je.signature)!=null?Et:""].join("")}).join(""),$e=py(Nu());return[(pe=Di())!=null?pe:"",Wo(),Tl(),nt.value.length,$e,q.length,Mo(Te)].join(":")}function ao(q=(pe=>(pe=s.virtualScroll)==null?void 0:pe.heightCache)()){if(!Pn.value||!q?.length||nt.value.length<=0||!Qd((pe=s.virtualScroll)==null?void 0:pe.heightCacheWidth))return!1;var pe;const Te=Np(q,{requireSignature:!0});if(!Te.length)return!1;const $e=_o(Te);return $e===we?(pt="standalone",!0):(Xa(Te,{mode:"merge"}),ra(),we=$e,pt="standalone",vd(),pi("restore"),!0)}function Wl(q,pe={}){var Te,$e,je;if(!Pn.value||!q||q.sessionKey!==Wo()||!od(q.threadKey)||nt.value.length<=0)return!1;const yt=!!((Te=q.heightCache)!=null&&Te.length)&&!Rp(),Et=!q.anchor||q.anchorCaptured===!1&&pe.allowUncapturedAnchor!==!0?null:q.anchor,Pt=pe.restoreAnchor===!0&&!!Et&&!Rp()&&Number(Zd(q))>0;let tn=!1;if(($e=q.heightCache)!=null&&$e.length&&Ou(q)){const qt=Np(q.heightCache,{requireCompatibilityMetadata:!q.contentHash,requireSignature:_e(q)});qt.length&&(Xa(qt,{mode:"merge"}),ra(),we=_o(qt),pt="restore",vd(),tn=!0)}if(yt||Pt)return!1;if(!pe.restoreAnchor||!Et)return tn&&pi("restore"),!0;const Dt=(function(qt,Jt){var Nt;const jt=qt.anchor,fn=jt?jt.type==="bottom"?`bottom:${Math.round(jt.distanceFromBottomPx)}`:`node:${jt.nodeIndex}:${Math.round(jt.offsetWithinNodePx)}`:"none";return[(Nt=Di())!=null?Nt:"",Wo(),Tl(),Ar.value,Jt,fn].join(":")})(q,(je=pe.restoreToken)!=null?je:"imperative");return In===Dt?(tn&&pi("restore"),!0):(In=Dt,(function(qt){const Jt=()=>{if(qt.type==="node")return fc(),void Al({nodeIndex:qt.nodeIndex,offsetWithinNodePx:qt.offsetWithinNodePx});if(ic(),Za.value=null,zo.value=qt,Yd(),Gd(qt),ue)for(const Nt of[0,120,280,480])jl.push(window.setTimeout(()=>{const jt=zo.value;jt&&Gd(jt)},Nt))};(function(Nt){if(!ts.value)return!1;const jt=nt.value.length;return!(jt<=0||(Cl.value=Nt.type==="node"?da(Nt.nodeIndex,0,jt-1):jt-1,za(),0))})(qt)?vn(Jt):Jt()})(Et),pi("restore"),!0)}function Rp(){const q=Nu();return Number.isFinite(q)&&q>0}function Hh(q){var pe;return q.sessionKey===Wo()&&!!od(q.threadKey)&&(nt.value.length<=0||!(!((pe=q.heightCache)!=null&&pe.length)||Rp())||!(!(q.anchor&&Number(Zd(q))>0)||Rp()))}function Yc(){yo.clear();for(const q of Object.keys(ur)){const pe=Number(q);Number.isInteger(pe)&&pe>=0&&pe<nt.value.length&&po(pe)}}function pd(){ca!=null&&(qo?.(ca),ca=null),Jn()}function xv(){return!ue||it?Promise.resolve():new Promise(q=>{let pe=!1,Te=null;const $e=()=>{pe||(pe=!0,Te!=null&&window.clearTimeout(Te),q())};if(Ro)return Ro($e),void(Te=window.setTimeout($e,50));Te=window.setTimeout($e,0)})}function wm(q,pe=Di(),Te=Cr.value){return Wo()===q&&Di()===pe&&Cr.value===Te}function Vh(){return ta(this,arguments,function*(q={}){var pe,Te,$e,je,yt;const Et=Wo(),Pt=Di(),tn=Cr.value,Dt=(pe=q.frames)!=null?pe:2,qt=(Te=q.timeoutMs)!=null?Te:120,Jt=($e=q.reason)!=null?$e:"manual",Nt=q.expectedSettledTokenKey,jt=q.flushPendingTimers===!0,fn=pc(Jt),ln=()=>Os(En({},fn),{phase:fn.final?"settling":fn.phase,stable:!1,confidence:fn.confidence==="final"?"mixed":fn.confidence,reason:Jt}),Bn=()=>wm(Et,Pt,tn)&&(Nt==null||xf()===Nt);for(let ys=0;ys<Dt;ys++){if(yield vn(),!Bn()||(yield xv(),!Bn()))return ln();Kl(),pd()}if(yield(function(ys){return!ue||ys<=0?Promise.resolve():new Promise(vs=>window.setTimeout(vs,ys))})(qt),!Bn()||(jt&&xl(),Kl(),pd(),!Bn()))return ln();const Sn=rd();Sn&&(Af=Et,qd=Pt,((je=s.virtualScroll)==null?void 0:je.settleMode)==="manual"&&Nt!=null&&Wc((yt=s.virtualScroll)==null?void 0:yt.settledToken)&&xf()===Nt&&(Ru=Gh(s.virtualScroll.settledToken)));const es=Bn()&&Sn&&Mu(),us=pc(Jt,es?"final":void 0);return jh(us,!0),us})}let fd="content",mc=null,md=null,Mp=0,hd=null,Xd=null,gd=null,qh=null;function $p(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function Ev(q){var pe,Te;const $e=hd;if(!$e)return!0;const je=(Te=(pe=s.virtualScroll)==null?void 0:pe.heightDiffThresholdPx)!=null?Te:1;return Math.abs(q.totalHeight-$e.totalHeight)>je||q.sessionKey!==$e.sessionKey||q.phase!==$e.phase||q.stable!==$e.stable||q.final!==$e.final||q.threadKey!==$e.threadKey||q.nodeCount!==$e.nodeCount||q.measuredCount!==$e.measuredCount||q.width!==$e.width}function xf(q=(pe=>(pe=s.virtualScroll)==null?void 0:pe.settledToken)()){return vl(q)}function Sm(q,pe){var Te,$e;return[q,pe.sessionKey,(Te=pe.threadKey)!=null?Te:"",Tl(),$u(),vl(($e=s.virtualScroll)==null?void 0:$e.settledToken),Math.round(pe.totalHeight),Math.round(pe.width)].join("\0")}function vd(){gd=null,qh=null,Xd=null}function Tv(q){const pe=q.heightCache;return pe?.length?_o(pe):""}function Jd(q){var pe,Te,$e;const je=q.metrics,yt=q.anchor?(Et=q.anchor).type==="bottom"?`bottom:${Math.round(Et.distanceFromBottomPx)}`:`node:${Et.nodeIndex}:${Math.round(Et.offsetWithinNodePx)}`:"none";var Et;return[q.sessionKey,(pe=q.threadKey)!=null?pe:"",(Te=q.measurementKey)!=null?Te:Tl(),($e=q.contentHash)!=null?$e:"",Tv(q),yt,q.anchorCaptured?1:0,je.liveRange.start,je.liveRange.end,je.renderedCount,je.nodeCount,Math.round(je.totalHeight),Math.round(je.width),je.phase,je.stable?1:0].join("\0")}function jh(q,pe=!1){if(!Pn.value||(function(Et=!1){return!Et&&_t.value&&!Eo.value})(pe))return;const Te=pe||Ev(q),$e=(function(Et,Pt=!1){return Pt||Et.stable||Et.phase==="final"?{state:dd(Et,{includeHeightCache:!0})}:{state:dd(Et)}})(q,pe),je=$e.state,yt=!!(je&&(Te||(function(Et,Pt=!1){return!!Pt||Jd(Et)!==Xd})(je,pe)));if(Te&&(z(q),hd=q,Mp=$p()),je&&yt&&(H(je),je.anchor&&U(je.anchor),Xd=Jd(je)),q.stable){const Et=Sm("settled",q);if(Et!==gd){gd=Et;const Pt=dd(q,{includeHeightCache:!0});Pt&&(H(Pt),Xd=Jd(Pt)),(function(tn){o("render-settled",tn)})(q)}}if(q.phase==="final"){const Et=Sm("final",q);if(Et!==qh){qh=Et;const Pt=dd(q,{includeHeightCache:!0});Pt&&(H(Pt),Xd=Jd(Pt)),(function(tn){o("render-final",tn)})(q)}}}function Wh(){mc!=null&&(qo?.(mc),mc=null),md!=null&&ue&&(window.clearTimeout(md),md=null)}function Nv(){mc=null,md=null,(function(q){if(la.size>0||ca!=null)return!0;switch(q){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(fd)&&(Kl(),pd()),jh(pc(fd))}function pi(q){var pe,Te;if(!Pn.value||(fd=q,mc!=null||md!=null))return;const $e=Math.max(0,(Te=(pe=s.virtualScroll)==null?void 0:pe.emitIntervalMs)!=null?Te:32),je=Math.max(0,$e-($p()-Mp)),yt=()=>{md=null,mc=Ro?Ro(Nv):null,mc==null&&Nv()};ue&&je>0?md=window.setTimeout(yt,je):yt()}function xr(){ha.value+=1}function Ne(q){if(zs.value&&q>=Nn.value){const pe=nt.value[q],Te=ot.value===!0&&We.value!==!0&&q>=nt.value.length-2,$e=pe?.type==="code_block"||pe?.type==="image"||pe?.type==="mermaid"||pe?.type==="infographic";if(!Te||$e)return!1}return!Jo.value||q<Dn.value||tr.value.has(q)}function Ye(q){const pe=Xr.get(q);pe&&(pe(),Xr.delete(q));const Te=va.get(q);Te&&(Te.destroy(),va.delete(q)),ti(q)}function $t(q,pe){let Te=!1;if(pe){const yt=xn.get(q);xn.set(q,pe),yt!==pe&&(Te=!0)}else xn.delete(q)&&(Te=!0);if(Te&&xr(),pe||ti(q),!dr.value||!Oi)return Ye(q),void(pe&&Jo.value&&ui(q,!0));if(!ts.value&&Jo.value&&!ee.value&&va.size>=Pe.value&&(ee.value||(ee.value=!0,Jr()),!dr.value||!Oi))return Ye(q),void(pe&&ui(q,!0));if(q<Dn.value&&!ts.value||tr.value.has(q))return Ye(q),void ui(q,!0);if(!pe)return void Ye(q);Ye(q);const $e=Oi(pe,{rootMargin:Fe.value});if(!$e)return;va.set(q,$e),ui(q,$e.isVisible.value),Jo.value&&(function(yt){if(!ue||!Jo.value)return;ti(yt);const Et=yt%17*23,Pt=window.setTimeout(()=>{if(Ir.delete(yt),!Jo.value||tr.value.has(yt))return;const tn=xn.get(yt);if(!tn)return;const Dt=me(tn),qt=tn.ownerDocument||document,Jt=qt.defaultView||window,Nt=!Dt||Dt===qt.documentElement||Dt===qt.body,jt=!Nt&&Dt?rt("nodeVisibilityFallback.root.getBoundingClientRect",()=>Dt.getBoundingClientRect()):null,fn=Nt?0:jt.top,ln=Nt?rt("nodeVisibilityFallback.clientHeight",()=>{var Sn,es;return(es=(Sn=Jt.innerHeight)!=null?Sn:Dt?.clientHeight)!=null?es:0}):jt.bottom,Bn=rt("nodeVisibilityFallback.node.getBoundingClientRect",()=>tn.getBoundingClientRect());Bn.bottom>=fn-500&&Bn.top<=ln+500&&ui(yt,!0)},1800+Et);Ir.set(yt,Pt)})(q);let je=null;je=ze(()=>$e.isVisible.value,yt=>{if(yt){ti(q),ui(q,!0),je?.(),Xr.delete(q),va.get(q)===$e&&va.delete(q);try{$e.destroy()}catch{}}},{immediate:!0}),Xr.set(q,je),ts.value&&ua()}function Jn(){ca=null,dl(()=>{let q=!1;for(const[pe,Te]of la)la.delete(pe),Po.get(pe)===Te.el&&Si.get(pe)===Te.version&&(q=Hc(pe,Te.height,{allowShrink:Te.allowShrink})||q);return q})}function ro(){ca!=null&&(qo?.(ca),ca=null),la.clear()}function Qc(q,pe){(function(Te,$e,je){var yt;if(!Number.isFinite(je)||je<=0||Po.get(Te)!==$e)return;const Et=Si.get(Te);if(Et==null)return;const Pt=nt.value[Te],tn=ct.value&&We.value!==!0&&!((yt=s.nodes)!=null&&yt.length)&&Te>=nt.value.length-2,Dt=!(Pt?.loading===!0||tn),qt=la.get(Te),Jt=qt?qt.allowShrink&&Dt:Dt,Nt=qt&&!Jt?Math.max(qt.height,je):je;la.set(Te,{height:Nt,allowShrink:Jt,version:Et,el:$e}),ca==null&&(ca=Ro?Ro(Jn):null,ca==null&&Jn())})(q,pe,Ul(q,pe))}function Kl(){for(const[q,pe]of Po)pe&&Qc(q,pe)}function Rv(){Es?.disconnect(),Es=null,Xn.clear()}function Ef(){for(;Ja.length;)Hl(Ja.pop())}ze(Eo,q=>{q&&pi("content")},{flush:"post"}),t({getVirtualMetrics:pc,captureVirtualState:function(q={}){var pe;return dd(pc("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:q.allowFallbackAnchor===!0,requireViewport:q.requireViewport===!0,includeEmptyState:(pe=q.includeEmptyState)==null||pe})},restoreVirtualState:function(q,pe={}){const Te=pe.restoreAnchor===!0,$e=pe.restoreToken==null?"imperative":String(pe.restoreToken);is=q,cs={restoreAnchor:Te,restoreToken:$e,allowUncapturedAnchor:pe.allowUncapturedAnchor===!0},!Wl(q,{restoreAnchor:Te,restoreToken:$e,allowUncapturedAnchor:pe.allowUncapturedAnchor===!0})&&Hh(q)||(is=null,cs=null)},forceMeasure:function(q="manual"){return ta(this,null,function*(){yield vn(),yield xv(),Kl(),pd(),yield vn();const pe=pc(q);return jh(pe,!0),pe})},settle:Vh,scrollToNode:function(q,pe="start"){fc(),ic();const Te=nt.value.length;if(Te<=0)return;const $e=da(q,0,Te-1),je=()=>{var yt;const Et=Pi({nodeIndex:$e,offsetWithinNodePx:0}),Pt=Qa($e),tn=Kc(),Dt=(yt=tn?.clientHeight)!=null?yt:0,qt=zc();let Jt=Et;if(pe==="center")Jt=Et-Dt/2+Pt/2;else if(pe==="end")Jt=Et-Dt+Pt;else if(pe==="nearest"&&qt!=null){if(Et>=qt&&Et+Pt<=qt+Dt)return;Jt=Et<qt?Et:Et-Dt+Pt}Sf(Math.max(0,Jt)),ua({immediate:!0}),ts.value&&(Cl.value=$e,za())};if(ts.value)return Cl.value=$e,za(),void vn(je);je()}}),ze(()=>ki.value,q=>{if(!q){Rv();for(const pe of _r.values())for(const Te of pe)Hl(Te);_r.clear(),Si.clear(),Ef(),ro()}},{immediate:!0}),ze(We,q=>{q&&(function(){if(ue&&We.value&&Po.size){Ef();for(const pe of[80,240,640]){const Te=ga(pe,()=>{for(const[$e,je]of Po)je&&Qc($e,je)},"final");Te!=null&&Ja.push(Te)}}})(),pi(q?"final":"content")});const cw=bL(()=>pi("content"),16),_m=bL(()=>pi("batch"),16);ze([()=>nt.value.length,()=>Nn.value],()=>{zo.value&&sr(),cw()},{flush:"post",immediate:!0}),ze([()=>Ci.start,()=>Ci.end],()=>{_m()},{flush:"post"});const{cleanupBatchScheduler:Op}=(function(q){const{props:pe,isClient:Te,isTestEnv:$e,parsedNodesIdentity:je,parsedNodeCount:yt,desiredRenderedCount:Et,datasetKey:Pt,batchingEnabled:tn,incrementalRenderingActive:Dt,resolvedBatchSize:qt,resolvedInitialBatch:Jt,renderedCount:Nt,adaptiveBatchSize:jt,previousRenderContext:fn,previousBatchConfig:ln,requestFrame:Bn,cancelFrame:Sn,hasIdleCallback:es,cleanupNodeVisibility:us,onDatasetKeyChanged:ys,onDatasetChanged:vs}=q;let ks=null,no="raf",mo=null,xi=0,$l=!1,gl=!1;const ap=new Set,Lp=new Set;function K1(){if(Te){ks!=null&&(no==="raf"&&Sn?Sn(ks):no==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(ks):no==="timeout"&&window.clearTimeout(ks),ks=null),xi+=1;for(const Gl of ap)Sn&&Sn(Gl);for(const Gl of Lp)window.clearTimeout(Gl);ap.clear(),Lp.clear(),mo=null,$l=!1,gl=!1}}function kw(){return typeof performance<"u"?performance.now():Date.now()}function kM(Gl){(function(Mf){var Em;if(!Dt.value)return;const $f=Math.max(2,(Em=pe.renderBatchBudgetMs)!=null?Em:6),Of=Math.max(1,qt.value||1),rp=Math.max(1,Math.floor(Of/4));Mf>1.5*$f?jt.value=Math.max(rp,Math.floor(.8*jt.value)):Mf<.6*$f&&jt.value<Of&&(jt.value=Math.min(Of,Math.ceil(1.2*jt.value)))})(Gl),$l=!1;const Zc=gl||Nt.value<Et.value;gl=!1,Zc&&_M()}function wM(Gl,Zc={}){var Mf,Em;if(!Dt.value)return;const $f=Et.value;if(Nt.value>=$f)return;const Of=Math.max(1,Gl),rp=()=>{const Dv=kw();ks=null;const G1=mo??Of;mo=null;const Lv=kw();Nt.value=Math.min($f,Nt.value+G1),us(Nt.value),(function(nC,ww){if(!Te)return void kM(ww);$l=!0;const IM=++xi;vn().then(()=>{var AM;if(IM!==xi)return;const Dee=kw(),Lee=Math.max(ww,Dee-nC),CM=()=>{IM===xi&&kM(Lee)};if(Bn){let Jh=null,Bv=null,EM=!1;const TM=()=>{EM||(EM=!0,Jh!==null&&(ap.delete(Jh),Jh=null),Bv!==null&&(Lp.delete(Bv),window.clearTimeout(Bv),Bv=null),CM())};return Jh=Bn(()=>{TM()}),ap.add(Jh),Bv=window.setTimeout(()=>{Jh!==null&&Sn&&Sn(Jh),TM()},Math.max(32,(AM=pe.renderBatchIdleTimeoutMs)!=null?AM:120)),void Lp.add(Bv)}const xM=window.setTimeout(()=>{Lp.delete(xM),CM()},0);Lp.add(xM)})})(Dv,kw()-Lv)};if(!Te||Zc.immediate)return void rp();const Tm=Math.max(0,(Mf=pe.renderBatchDelay)!=null?Mf:16);if(mo=mo!=null?Math.max(mo,Of):Of,ks==null){if(!$e&&es&&window.requestIdleCallback){const Dv=Math.max(0,(Em=pe.renderBatchIdleTimeoutMs)!=null?Em:120);return no="idle",void(ks=window.requestIdleCallback(()=>rp(),{timeout:Dv}))}if(Bn&&!$e)return no="raf",void(ks=Bn(()=>{Tm===0?rp():(no="timeout",ks=window.setTimeout(()=>rp(),Tm))}));no="timeout",ks=window.setTimeout(()=>rp(),Tm)}}function SM(Gl,Zc={}){$l?gl=!0:Gl==null?_M():wM(Gl,Zc)}function _M(){Dt.value&&wM(tn.value?Math.max(1,Math.round(jt.value)):Math.max(1,qt.value))}return ze([je,yt,Pt,Dt,qt,Jt,()=>pe.renderBatchDelay],()=>{var Gl;const Zc=yt.value,Mf=fn.value,Em=Pt.value,$f=!Object.is(Em,Mf.key),Of=Zc!==Mf.total,rp=$f||Of;fn.value={key:Em,total:Zc};const Tm=ln.value,Dv=(Gl=pe.renderBatchDelay)!=null?Gl:16,G1=Tm.batchSize!==qt.value||Tm.initial!==Jt.value||Tm.delay!==Dv||Tm.enabled!==Dt.value;ln.value={batchSize:qt.value,initial:Jt.value,delay:Dv,enabled:Dt.value},$f&&ys(Zc),(rp||G1||!Dt.value)&&K1(),(rp||G1)&&(jt.value=Math.max(1,qt.value||1)),rp&&vs();const Lv=Et.value;if(!Zc)return Nt.value=0,void us(0);if(!Dt.value)return Nt.value=Lv,void us(Nt.value);const nC=$f||Mf.total===0;Nt.value=nC||G1?Math.min(Lv,Jt.value):Math.min(Nt.value,Lv);const ww=Math.max(1,Jt.value||qt.value||Zc);Nt.value<Lv?SM(ww,{immediate:!Te}):us(Nt.value)},{immediate:!0}),ze(Et,(Gl,Zc)=>{Dt.value&&(typeof Zc=="number"&&Gl<=Zc||Gl>Nt.value&&SM())}),{cleanupBatchScheduler:K1}})({props:N,isClient:ue,isTestEnv:it,parsedNodesIdentity:xs,parsedNodeCount:tt,desiredRenderedCount:nd,datasetKey:bm,batchingEnabled:Is,incrementalRenderingActive:zs,resolvedBatchSize:Ht,resolvedInitialBatch:Dn,renderedCount:Nn,adaptiveBatchSize:so,previousRenderContext:Oo,previousBatchConfig:to,requestFrame:Ro,cancelFrame:qo,hasIdleCallback:_s,cleanupNodeVisibility:El,onDatasetKeyChanged:q=>{ro(),Fa(),ra(),vd(),q>0&&ci(q)},onDatasetChanged:()=>{ts.value&&ua({immediate:!0})}});ze([xu,ts,()=>L.value,()=>fe()],([q,pe])=>{if(!q)return Vl(),void ml();Vc(),pe?ua({immediate:!0}):ml()},{flush:"post",immediate:!0}),ze([()=>nt.value.length,()=>ts.value],q=>ta(null,[q],function*([pe,Te]){Te&&pe&&ue&&(yield vn(),ua({immediate:!0}))}),{flush:"post"}),ze(No,q=>{q&&(function(){var pe;if(Ke.value&&ht.value&&Ot.value&&((pe=xt.value)!=null&&pe[1]))return;const Te=yp({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),$e=yp({type:"list_item",children:[Te],raw:"- Probe paragraph text"}),je=yp({type:"list",ordered:!1,items:[$e],raw:"- Probe paragraph text"});Ke.value=Te,ht.value=$e,Ot.value=je;const yt={1:null,2:null,3:null,4:null,5:null,6:null};for(let Et=1;Et<=6;Et++)yt[Et]=yp({type:"heading",level:Et,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(Et)} Probe heading`});xt.value=yt})()},{immediate:!0}),ze([()=>L.value,No],()=>{if(!No.value)return fo(),void(oe.value=0);Zt(),fo(),No.value&&L.value&&typeof ResizeObserver<"u"&&(en=new ResizeObserver(()=>{Zt(),Za.value&&cr(),zo.value&&sr(),pi("resize")}),en.observe(L.value))},{immediate:!0}),ze([No,Ct,Cr],()=>ta(null,null,function*(){if(!No.value)return ae.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ra();yield vn(),(function(){if(!No.value||typeof window>"u")return ae.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ra();const q={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},pe=di(ya(K.value),".paragraph-node");q.paragraph=tE(K.value,pe,"pre-wrap");const Te=ya(G.value),$e=Te?.querySelector(".paragraph-node");q.listItem=tE(G.value,$e,"pre-wrap");const je=rt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var Et,Pt;return(Pt=(Et=Q.value)==null?void 0:Et.offsetHeight)!=null?Pt:0}),yt=rt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var Et,Pt;return(Pt=(Et=G.value)==null?void 0:Et.offsetHeight)!=null?Pt:0});q.listWrapperOverhead=Math.max(0,je-yt);for(let Et=1;Et<=6;Et++){const Pt=di(ya(J[Et]),`h${Et}`);q.headings[Et]=tE(J[Et],Pt,"pre-wrap")}ae.value=q,ra()})()}),{flush:"post",immediate:!0}),ze(()=>nt.value.length,()=>{ts.value&&ua({immediate:!0})}),ze([No,oe],()=>{ra(),ts.value&&ua({immediate:!0}),Za.value&&cr(),zo.value&&sr(),pi("resize")},{immediate:!1}),ze(()=>Jo.value,q=>{if(q)for(const[pe,Te]of xn)$t(pe,Te);else if(Jr(),ts.value)ua({immediate:!0});else for(const[pe,Te]of xn)Te&&ui(pe,!0)},{immediate:!1}),ze([Fe,Pe,()=>fe()],()=>{var q;(q=Oi.refresh)==null||q.call(Oi);for(const[pe,Te]of xn)$t(pe,Te)},{immediate:!1}),ze([()=>N.viewportPriority,()=>nt.value.length,Pe],([q,pe,Te])=>{if(q!==!1){if(ee.value&&(pe<=200||pe<=Te)){ee.value=!1;for(const[$e,je]of xn)$t($e,je)}}else ee.value=!1}),ze(()=>Nn.value,()=>{ts.value&&ua({immediate:!0})}),ze([Cl,Yn,Fs,()=>nt.value.length,ts],()=>{za()},{immediate:!0});let Im=null,ep=!1,Pp=null;function Kh(){Im=null,Af=null,qd=void 0,Ru=null,vd()}function Am(){ro(),Fa(),ra(),yo.clear();const q=nt.value.length;q>0&&ci(q),Yc()}function Mv(){Wh(),xl(),hd=null,we=null,pt=null,In=null,is=null,cs=null,ep=!1,Kh(),ad("restore"),ic(),fc()}function Gh(q){var pe;return[(pe=Di())!=null?pe:"",Wo(),Tl(),Ar.value,xf(q),nt.value.length,Math.round(wr(0,nt.value.length)),Math.round(Nu()),Xi.count,Math.round(Xi.total)].join(":")}function uw(){return ta(this,null,function*(){var q,pe,Te,$e;const je=(q=s.virtualScroll)==null?void 0:q.settledToken,yt=xf(je),Et=Wo(),Pt=Di(),tn=Cr.value;if(Pn.value&&((pe=s.virtualScroll)==null?void 0:pe.settleMode)==="manual"&&Wc(je))if(rd()){if(Gh(je)!==Ru&&!ep){ep=!0;try{const Dt=yield Vh({reason:"manual",expectedSettledTokenKey:yt}),qt=xf()===yt;wm(Et,Pt,tn)&&Dt.sessionKey===Et&&Dt.threadKey===Pt&&qt&&Dt.stable&&Dt.phase==="final"&&(Ru=Gh((Te=s.virtualScroll)==null?void 0:Te.settledToken))}finally{ep=!1,yield vn();const Dt=($e=s.virtualScroll)==null?void 0:$e.settledToken,qt=Wc(Dt)?Gh(Dt):"";wm(Et,Pt,tn)&&qt&&Ru!==qt&&uw()}}}else pi("manual")})}ze(Pn,(q,pe)=>{if(q!==pe){if(!q)return Mv(),void Wh();Mv(),Am(),Pp=Cr.value,pi("content")}},{flush:"post"}),ze([Pn,Cr],([q,pe])=>{q?Pp!=null?Pp!==pe&&(Pp=pe,(function(Te="resize"){ro(),Fa(),ra(),yo.clear();const $e=nt.value.length;$e>0&&ci($e),Yc(),we=null,pt=null,In=null,hd=null,ep=!1,Kh(),ao(),vn(()=>{Kl(),Za.value&&cr(),zo.value&&sr(),pi(Te)})})("resize")):Pp=pe:Pp=null},{flush:"post",immediate:!0}),ze([Pn,()=>Wo(),()=>Di()],([q])=>{q&&(Mv(),Am(),ad("content"),pi("content"))}),ze([Pn,()=>Wo(),()=>Di(),Cr,()=>nt.value.length],([q])=>{q&&(function(pe="async-node"){let Te=!1;for(const[$e,je]of Array.from(bo.entries()))Vd(je)||(bo.delete($e),ei.delete($e),Te=!0);Te&&(id(),pi(pe))})("async-node")},{flush:"post"}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.sessionKey},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>s.indexKey,()=>le.value],([q])=>{q&&(vd(),(function(pe="content"){if(!Pn.value)return;const Te=[],$e=nt.value.length,je=nr($e);for(const yt of Array.from(yo.keys())){if(yt>=$e){Te.push(yt);continue}if(yt<je)continue;const Et=ud(yt),Pt=yo.get(yt);Pt!=null&&Pt!==Et&&Te.push(yt),yo.set(yt,Et)}for(const yt of Array.from(yo.keys()))yt>=$e&&yo.delete(yt);Te.length&&((function(yt,Et={}){const Pt=Array.from(yt,Number);ea(Pt);let tn=0;if(dl(()=>(tn=Uc(Pt,Et),tn>0)),tn>0)(function(Dt){for(const qt of Dt)yo.delete(qt)})(Pt);else for(const Dt of Pt)lr.delete(Dt)})(Te,{notify:!1}),ra(),Kh(),Za.value&&cr(),zo.value&&sr(),pi(pe))})("content"))},{flush:"post",immediate:!0}),ze([Pn,()=>nt.value.length,()=>Wo(),()=>Di()],([q,pe,Te,$e],[je,yt,Et,Pt])=>{q&&je&&Te===Et&&$e===Pt&&pe!==yt&&Kh()},{flush:"post"}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.heightCache},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.heightCacheWidth},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>nt.value.length,()=>Wo(),oe],()=>{ao()},{flush:"post",immediate:!0}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreAnchor},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>nt.value.length,()=>Wo(),oe],q=>ta(null,[q],function*([pe,Te]){if(!pe||!Te)return;yield vn();const $e=(function(){var je;const yt=(je=s.virtualScroll)==null?void 0:je.restoreAnchor;return yt==null||yt===!1?null:yt===!0?"true":String(yt)})();Wl(Te,{restoreAnchor:$e!=null,restoreToken:$e??void 0})}),{flush:"post",immediate:!0}),ze([Pn,oe,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey}],([q])=>{var pe;if(!q)return;const Te=(pe=s.virtualScroll)==null?void 0:pe.restoreState;Te&&we&&pt==="restore"&&(Ou(Te)||(Am(),we=null,pt=null,pi("resize")))},{flush:"post"}),ze([Pn,()=>nt.value.length,()=>Wo(),oe],q=>ta(null,[q],function*([pe]){var Te;const $e=is,je=cs;pe&&$e&&(yield vn(),!Wl($e,{restoreAnchor:je?.restoreAnchor===!0,restoreToken:(Te=je?.restoreToken)!=null?Te:"imperative",allowUncapturedAnchor:je?.allowUncapturedAnchor===!0})&&Hh($e)||(is=null,cs=null))}),{flush:"post",immediate:!0}),ze([Pn,We,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settleMode},()=>Wo(),()=>Di(),Cr,fl,er,()=>Nn.value,nd,()=>Xi.count,()=>Xi.total],([q,pe,Te])=>{if(!q||pe!==!0||Te==="manual"||!Nl())return;const $e=(function(){var je;const yt=nt.value.length;return[(je=Di())!=null?je:"",Wo(),Tl(),Ar.value,yt,Math.round(wr(0,yt)),Math.round(Nu()),Xi.count,Math.round(Xi.total)].join(":")})();Im!==$e&&(Im=$e,Vh({reason:"final"}).then(je=>{je.stable||Im!==$e||(Im=null)}))},{flush:"post",immediate:!0}),ze([Pn,We,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settleMode},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settledToken},()=>Wo(),()=>Di(),Cr,fl,er,()=>Nn.value,nd,()=>nt.value.length,()=>Xi.count,()=>Xi.total],()=>{uw()},{flush:"post",immediate:!0}),ze([()=>nt.value.length,ts,Yn,Fs,()=>Ci.start,()=>Ci.end],([q,pe,Te,$e,je,yt])=>{ke.value&&Gn("virtualization",{nodes:q,virtualization:pe,maxLiveNodes:Te,buffer:$e,focusIndex:Cl.value,scroll:pe?(()=>{const Et=Xo.value||me();return Et?{reverse:Be(Et),scrollTop:Math.round(Et.scrollTop),scrollTopAbs:Math.round(Math.abs(Et.scrollTop)),scrollHeight:Math.round(Et.scrollHeight),clientHeight:Math.round(Et.clientHeight)}:null})():null,liveRange:{start:je,end:yt},rendered:Nn.value})}),ze([()=>N.customId],([q],pe,Te)=>{if(!q||Lt)return;const $e=(function(je,yt){return je?(sl.controllers[je]=yt,()=>{sl.controllers[je]===yt&&delete sl.controllers[je]}):()=>{}})(q,{captureRestoreAnchor:zl,restoreAnchor:Al,getAnchorDrift:Hi,getReport:Uh});Te(()=>{$e()})},{immediate:!0}),qs(()=>{(function(){if(Pn.value)try{Kl(),pd();const q=pc("manual");Ev(q)&&(z(q),hd=q,Mp=$p());const pe=dd(q,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});pe&&(H(pe),pe.anchor&&U(pe.anchor),Xd=Jd(pe))}catch{}})(),Op(),Jr(),cn(),Rv();for(const q of _r.values())for(const pe of q)Hl(pe);_r.clear(),Si.clear(),yo.clear(),Ef(),ro(),fo(),ic(),fc(),Wh(),Vl(),ml()});const GA=Ey("ViewportDeferredMermaidBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index11-BAXLo3Nw.js"),__vite__mapDeps([10,3,6,0,1]))).default}catch(q){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',q),nu}}),loadingComponent:$L,delay:0}),$L),dw=Ey("ViewportDeferredInfographicBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index10-1z0pFUSE.js"),__vite__mapDeps([11,3,0,1]))).default}catch(q){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',q),nu}}),loadingComponent:ML,delay:0}),ML),pw=Ey("ViewportDeferredD2BlockNode",Jp(()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index8-D-78Cgdk.js"),__vite__mapDeps([12,3,0,1]))).default}catch(q){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',q),nu}})),nu),L1={text:rr,paragraph:Lg,heading:CA,code_block:jx,list:F0,list_item:B0,blockquote:I2,table:ab,definition_list:A2,footnote:C2,footnote_reference:Vu,footnote_anchor:ob,admonition:N2,vmr_container:E2,hardbreak:ah,link:Oc,image:ih,thematic_break:x2,math_inline:Ip,math_block:hZ,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,checkbox:Hu,checkbox_input:Hu,inline_code:tc,html_inline:qu,reference:Rc,html_block:ib},fw=E(()=>sd()),Yh=E(()=>vL(N.codeBlockProps)),YA=E(()=>vL(N.codeBlockProps,{omit:["langs"]})),mw=E(()=>En(En({stream:N.codeBlockStream,darkTheme:N.codeBlockDarkTheme,lightTheme:N.codeBlockLightTheme,monacoOptions:N.codeBlockMonacoOptions,themes:N.themes,langs:w.value==="shiki"?N.langs:void 0,minWidth:N.codeBlockMinWidth,maxWidth:N.codeBlockMaxWidth},typeof ve.value=="boolean"?{showTooltips:ve.value}:{}),YA.value)),B1=E(()=>En(Os(En({},mw.value),{langs:N.langs}),Yh.value));function F1(q){return typeof q=="boolean"?q:void 0}const Qh=E(()=>{const q=N.codeBlockProps||{},pe={},Te=F1(q.showLineNumbers);Te!==void 0&&(pe.showLineNumbers=Te);const $e=F1(q.diffInline);$e!==void 0&&(pe.diffInline=$e);const je=(function(yt){const Et=Number(yt);return Number.isFinite(Et)&&Et>0?Et:void 0})(q.reservedHeightPx);return je!==void 0&&(pe.reservedHeightPx=je),pe}),QA=E(()=>En(En({stream:N.codeBlockStream,darkTheme:N.codeBlockDarkTheme,lightTheme:N.codeBlockLightTheme,themes:N.themes,langs:N.langs,minWidth:N.codeBlockMinWidth,maxWidth:N.codeBlockMaxWidth},typeof ve.value=="boolean"?{showTooltips:ve.value}:{}),Yh.value)),ZA=E(()=>En({},N.mermaidProps||{})),Dp=E(()=>En({},N.d2Props||{})),hw=E(()=>En({},N.infographicProps||{})),Cm=E(()=>({typewriter:y.value,fade:N.fade,customHtmlTags:Ve.value.customHtmlTags})),gw=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltip:ve.value}:{})),XA=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{})),JA=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{})),eC=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{}));function z1(q){return Array.isArray(q.children)&&q.children.length>0}const $v=E(()=>Ud.value.map(q=>{var pe,Te,$e,je,yt,Et,Pt,tn;let Dt=(function(Sn){var es,us,ys,vs,ks,no,mo;if(Sn.type!=="code_block")return Sn;const xi=Sn,$l=[String((es=xi.language)!=null?es:""),String((us=xi.loading)!=null?us:""),String((ys=xi.diff)!=null?ys:""),String((vs=xi.code)!=null?vs:""),String((ks=xi.originalCode)!=null?ks:""),String((no=xi.updatedCode)!=null?no:""),String((mo=xi.raw)!=null?mo:"")].join("\0"),gl=To.get(xi);if(gl&&gl.signature===$l)return gl.node;const ap=En({},xi);return To.set(xi,{signature:$l,node:ap}),ap})(q.node);const qt=Zh(Dt);let Jt=vw(Dt,qt);if((Dt.type==="html_block"||Dt.type==="html_inline")&&Jt===L1[Dt.type]){const Sn=Dt,es=String((pe=Sn.tag)!=null?pe:"").trim().toLowerCase()||qY(Sn.content);if(es){const us=Qe.value[es];if(zt.value.has(es)&&us)Jt=us,Dt=Os(En({},Sn),{type:es,tag:es,content:yOe(Sn.content,es)});else if(jY((Te=Sn.content)!=null?Te:Sn.raw,es)){const ys=String((je=($e=Sn.content)!=null?$e:Sn.raw)!=null?je:"");Dt.type==="html_inline"?(Jt=rr,Dt={type:"text",content:ys,raw:ys}):(Jt=Lg,Dt={type:"paragraph",children:[{type:"text",content:ys,raw:ys}],raw:ys})}}}const Nt=Dt.type==="code_block"&&w.value==="pre"&&Jt===nu&&!Ov(Qe.value,qt);let jt=En({},(function(Sn,es,us){const ys=es??Zh(Sn);if(Sn.type==="code_block"){const vs=ys?Ov(Qe.value,ys):void 0;if(us&&w.value==="pre"&&!vs&&us===nu)return Qh.value;if(us&&ys&&us===vs)return ys==="mermaid"?H1(Sn):ys==="infographic"?V1(Sn):ys==="d2"||ys==="d2lang"?Dp.value:B1.value;if(us&&us===Qe.value.code_block)return B1.value;if(el(us))return QA.value}return ys==="mermaid"?H1(Sn):ys==="infographic"?V1(Sn):ys==="d2"||ys==="d2lang"?Dp.value:Sn.type==="link"?gw.value:Sn.type==="list"?XA.value:Sn.type==="blockquote"?JA.value:Sn.type==="table"?eC.value:Sn.type==="code_block"?mw.value:Cm.value})(Dt,qt,Jt));const fn=No.value?lc.value[q.index]:null;Dt.type==="code_block"&&fn?.kind==="code-block"&&(jt=Os(En({},jt),Nt?{reservedHeightPx:(yt=fn.height)!=null?yt:fn.contentHeight}:{estimatedHeightPx:fn.height,estimatedContentHeightPx:fn.contentHeight,estimatedDiffInline:fn.diffInline})),Nt||Dt.type!=="code_block"||qt!=="mermaid"||g0(jt.estimatedPreviewHeightPx)!=null||(jt=Os(En({},jt),{estimatedPreviewHeightPx:dI(cI(String((Et=Dt.code)!=null?Et:"")))})),Nt||Dt.type!=="code_block"||qt!=="infographic"||g0(jt.estimatedPreviewHeightPx)!=null||(jt=Os(En({},jt),{estimatedPreviewHeightPx:pI(uI(String((Pt=Dt.code)!=null?Pt:"")))})),Dt.type==="math_block"&&(jt=Os(En({},jt),{cacheScope:Xe.value}));const ln=(function(Sn,es){const us=String(Sn.type);return!ow(us)&&Qe.value[us]===es})(Dt,Jt),Bn=ln?uR(Dt,xe.value):void 0;return Os(En({},q),{node:Dt,component:Jt,bindings:jt,customBindings:En(En({},Bn??{}),jt),rendersCustomNode:ln,hasSlotChildren:z1(Dt),slotContent:String((tn=Dt.content)!=null?tn:""),isCodeBlock:Dt.type==="code_block",indexKey:`${fw.value}-${q.index}`,vnodeKey:`${If.value}\0${q.index}\0${Dt.type}`})}));function Zh(q){var pe;return q?.type==="code_block"?String((pe=q.language)!=null?pe:"").trim().toLowerCase():""}function Ov(q,pe){const Te=pe.trim().toLowerCase();if(Te)for(const $e of[Te,_A(Te),QQ(Te)]){const je=$e&&q[$e];if(je)return je}}function U1(q,pe,Te,$e){var je,yt;const Et=En({},q.value);return g0(Et.estimatedPreviewHeightPx)==null&&(Et.estimatedPreviewHeightPx=$e(Te(String((je=pe?.code)!=null?je:"")),void 0,Et.maxHeight==="none"?null:(yt=g0(Et.maxHeight))!=null?yt:void 0)),Et}function H1(q){return U1(ZA,q,cI,dI)}function V1(q){return U1(hw,q,uI,pI)}function vw(q,pe){if(!q)return U3;const Te=Qe.value,$e=Te[String(q.type)];if(q.type==="code_block"){const je=pe??Zh(q),yt=je?Ov(Te,je):void 0;return yt||(w.value==="pre"?Te.code_block||nu:je==="mermaid"?Te.mermaid||GA:je==="infographic"?Te.infographic||dw:je==="d2"||je==="d2lang"?Te.d2||pw:$e||Te.code_block||io.value)}return $e||L1[String(q.type)]||U3}function q1(q){o("click",q)}function j1(q){var pe;(pe=q.target)!=null&&pe.closest("[data-node-index]")&&o("mouseover",q)}function tC(q){var pe;(pe=q.target)!=null&&pe.closest("[data-node-index]")&&o("mouseout",q)}function yw(q){o("mouseover",q)}function bw(q){o("mouseout",q)}const tp=D(null),Ml=D(!1),Tf=D(null),W1=E(()=>!(N.domMode!=="minimal"||ye.value||N.fade!==!1||y.value||Ml.value||wi.value||ts.value||Tt.value||Cn.value||$i.value||Object.keys(Qe.value).length!==0));let xm,Nf=null,Xh=0,np=0,sp=0;const Pv=["code_block","admonition","table","math_block","html_block","image","thematic_break"],X=new Set(Pv),ce=[".typewriter-cursor",".height-estimation-probes",...Pv.map(q=>`[data-node-type="${q}"]`),"script","style"].join(",");function Se(q){if(!q||typeof q!="object")return!1;const pe=q.type;return typeof pe=="string"&&X.has(pe)}function lt(q){var pe,Te;if(!q||typeof q!="object")return 0;const $e=q,je=(Te=(pe=$e.raw)!=null?pe:$e.content)!=null?Te:$e.code;if(typeof je=="string")return je.length;const yt=$e.children;if(Array.isArray(yt))return yt.reduce((Pt,tn)=>Pt+lt(tn),0);const Et=$e.items;return Array.isArray(Et)?Et.reduce((Pt,tn)=>Pt+lt(tn),0):0}function on(){xm&&(clearTimeout(xm),xm=void 0)}function Hn(){Xh+=1,Nf!=null&&(qo?.(Nf),Nf=null)}function Ln(){Hn(),op(),tp.value&&(tp.value.style.visibility="hidden")}function ni(q){var pe;if(q.nodeType!==Node.TEXT_NODE||!((pe=q.textContent)!=null?pe:"").trim())return!1;const Te=q.parentElement;return!!Te&&!Te.closest(ce)}function fa(q){let pe=q.lastChild;for(;pe;){if(ni(pe))return pe;if(pe.nodeType===Node.ELEMENT_NODE){const Te=pe;if(!Te.matches(ce)&&Te.lastChild){pe=Te.lastChild;continue}}for(;pe&&pe!==q&&!pe.previousSibling;)pe=pe.parentNode;if(!pe||pe===q)break;pe=pe.previousSibling}return null}function yd(){const q=$v.value;for(let pe=q.length-1;pe>=0;pe--){const Te=q[pe];if(!Te||Se(Te.node)||!Ne(Te.index))continue;const $e=xn.get(Te.index);if(!$e)continue;const je=fa($e);if(je)return je}return null}function op(){Tf.value&&(Tf.value.classList.remove(OL),Tf.value=null)}function Rf(){if(g.value!=="simple"||!ue||!Ml.value||!L.value)return void op();const q=yd(),pe=q?(function(Te){var $e;const je=($e=Te.parentElement)==null?void 0:$e.closest(".text-node");return je instanceof HTMLElement?je:Te.parentElement})(q):null;pe!==Tf.value&&(op(),pe&&(pe.classList.add(OL),Tf.value=pe))}function ip(){if(g.value!=="precise"||!ue||!Ml.value||Nf!=null)return;const q=Xh,pe=()=>{Nf=null,q===Xh&&(function(){var Te,$e;if(g.value!=="precise"||!(ue&&Ml.value&&L.value&&tp.value))return;const je=L.value,yt=tp.value;yt.style.visibility="hidden";const Et=yd();if(!Et)return;let Pt=0,tn=0,Dt=20,qt=!1;if(Et?.textContent){const Jt=Et.textContent.length,Nt=document.createRange();Nt.setStart(Et,Math.max(0,Jt-1)),Nt.setEnd(Et,Jt);const jt=typeof Nt.getClientRects=="function"?Nt.getClientRects():void 0,fn=($e=jt?.[jt.length-1])!=null?$e:(Te=Et.parentElement)==null?void 0:Te.getBoundingClientRect();if(fn){const ln=rt("typewriterCursor.root.getBoundingClientRect",()=>je.getBoundingClientRect());Pt=fn.right-ln.left+je.scrollLeft,tn=fn.top-ln.top+je.scrollTop,Dt=fn.height||Dt,qt=!0}Nt.detach()}qt&&(yt.style.transform=`translate(${Math.max(0,Pt)}px, ${Math.max(0,tn)}px)`,yt.style.height=`${Dt}px`,yt.style.visibility="visible")})()};Ro?Nf=Ro(pe):pe()}return ze([kt,()=>s.content,()=>s.nodes,()=>N.typewriter,We],()=>ta(null,null,function*(){var q,pe;if(!ue||ye.value||!de.value)return;if(We.value)return Ml.value=!1,on(),void Ln();if((q=s.nodes)!=null&&q.length)return Ml.value=!1,on(),Ln(),np=((pe=s.content)!=null?pe:"").length,void(sp=kt.value.length);const Te=(function(){var Pt,tn;return(Pt=s.nodes)!=null&&Pt.length?s.nodes.reduce((Dt,qt)=>Dt+lt(qt),0):((tn=s.content)!=null?tn:"").length})(),$e=(function(){var Pt;return(Pt=s.nodes)!=null&&Pt.length?s.nodes.reduce((tn,Dt)=>tn+lt(Dt),0):kt.value.length})(),je=!Se(nt.value[nt.value.length-1]),yt=Te>np,Et=$e>sp;if(!y.value||!je||!yt&&!Et)return y.value&&je||(Ml.value=!1,Ln()),np=Te,void(sp=$e);np=Te,sp=$e,Ml.value=!0,g.value==="precise"&&tp.value&&(tp.value.style.visibility="hidden"),on(),yield vn(),g.value==="simple"?Rf():(op(),ip()),xm=setTimeout(()=>{xm=void 0,Ml.value=!1},3e3)}),{flush:"post",immediate:!0}),ze(Ml,q=>ta(null,null,function*(){q?(yield vn(),g.value!=="simple"?(op(),g.value==="precise"&&ip()):Rf()):Ln()}),{flush:"post"}),ze(g,()=>ta(null,null,function*(){if(ue&&!ye.value&&de.value&&Ml.value){if(yield vn(),g.value==="simple")return Hn(),void Rf();op(),g.value!=="precise"?Ln():ip()}}),{flush:"post"}),ze([()=>Nn.value,()=>Ci.start,()=>Ci.end],()=>ta(null,null,function*(){ue&&!ye.value&&de.value&&Ml.value&&(yield vn(),g.value!=="simple"?(op(),g.value==="precise"&&ip()):Rf())}),{flush:"post"}),qs(()=>{on(),Hn(),op(),qe.clear()}),(q,pe)=>{const Te=GI("NodeRenderer",!0);return i(ye)?(h(!0),C(Me,{key:0},ft($v.value,$e=>(h(),C(Me,{key:$e.vnodeKey},[$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:0,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onClick:q1,onMouseover:yw,onMouseout:bw,onCopy:pe[0]||(pe[0]=je=>a(je)),onHandleArtifactClick:pe[1]||(pe[1]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:1,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onClick:q1,onMouseover:yw,onMouseout:bw,onCopy:pe[2]||(pe[2]=je=>a(je)),onHandleArtifactClick:pe[3]||(pe[3]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(h(),C("div",{key:1,ref_key:"containerRef",ref:L,class:At(["markstream-vue markdown-renderer",[{dark:N.isDark},{virtualized:ts.value},{"virtual-scroll-coordinated":Eo.value},{"stable-layout":pl.value},{"typewriter-simple-cursor":Ml.value&&g.value==="simple"}]]),"data-custom-id":N.customId,onClick:q1,onMouseover:j1,onMouseout:tC},[Qi.value||ts.value?(h(),C(Me,{key:0},[Qi.value?(h(),V(iUe,{key:0,width:Ct.value,"flow-root":ts.value||Eo.value,"paragraph-node":Ke.value,"list-item-node":ht.value,"list-node":Ot.value,"heading-nodes":xt.value,"set-paragraph-wrapper":fr,"set-list-item-wrapper":Zr,"set-list-wrapper":rc,"set-heading-wrapper":Bt},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):W("",!0),ts.value?(h(),C("div",{key:1,class:"node-spacer",style:Qn({height:`${Hd.value}px`}),"aria-hidden":"true"},null,4)):W("",!0)],64)):W("",!0),W1.value?(h(!0),C(Me,{key:1},ft($v.value,$e=>(h(),C(Me,{key:$e.vnodeKey},[Ne($e.index)?(h(),V(Ms($e.component),Un({key:0,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onMouseover:pe[4]||(pe[4]=je=>o("mouseover",je)),onMouseout:pe[5]||(pe[5]=je=>o("mouseout",je)),onCopy:pe[6]||(pe[6]=je=>a(je)),onHandleArtifactClick:pe[7]||(pe[7]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"])):W("",!0)],64))),128)):(h(!0),C(Me,{key:2},ft($v.value,$e=>(h(),C("div",{key:$e.vnodeKey,ref_for:!0,ref:je=>$t($e.index,je),class:"node-slot","data-node-index":$e.index,"data-node-type":$e.node.type},[Ne($e.index)?(h(),C("div",{key:0,ref_for:!0,ref:je=>(function(yt,Et){var Pt;Et||(function(Jt){const Nt=`${sd()}-${Jt}`;let jt=!1;for(const fn of Array.from(ei.keys())){const ln=bo.get(fn);(ln?.index===Jt||fn===Nt||fn.startsWith(`${Nt}-`))&&(ei.delete(fn),bo.delete(fn),jt=!0)}jt&&(id(),pi("async-node"))})(yt),la.delete(yt),(function(Jt){var Nt;const jt=((Nt=Si.get(Jt))!=null?Nt:0)+1;Si.set(Jt,jt)})(yt);const tn=_r.get(yt);if(tn){for(const Jt of tn)Hl(Jt);_r.delete(yt)}if((function(Jt){const Nt=Xn.get(Jt);Nt&&(Es?.unobserve(Nt),As.delete(Nt),Xn.delete(Jt))})(yt),!Et||!ki.value)return Po.delete(yt),void Si.delete(yt);Po.set(yt,Et);const Dt=()=>{Qc(yt,Et)};queueMicrotask(Dt);const qt=(Es||typeof ResizeObserver>"u"||(Es=new ResizeObserver(Jt=>{if(Jt.length)for(const Nt of Jt){const jt=As.get(Nt.target),fn=Xn.get(jt??-1);jt!=null&&fn&&Qc(jt,fn)}else Kl()})),Es);if(qt&&(Xn.set(yt,Et),As.set(Et,yt),qt.observe(Et)),typeof window<"u"){const Jt=((Pt=nt.value[yt])==null?void 0:Pt.type)==="code_block"?[16,80,240,800]:We.value?[80]:[];if(Jt.length){const Nt=Jt.map(jt=>ga(jt,Dt,"node-resize")).filter(jt=>jt!=null);Nt.length&&_r.set(yt,Nt)}}})($e.index,je),class:"node-content"},[$e.isCodeBlock?$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:1,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[12]||(pe[12]=je=>a(je)),onHandleArtifactClick:pe[13]||(pe[13]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:2,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[14]||(pe[14]=je=>a(je)),onHandleArtifactClick:pe[15]||(pe[15]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Wa,{key:0,name:"fade",css:N.fade!==!1,appear:N.fade!==!1},{default:b(()=>[$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:0,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[8]||(pe[8]=je=>a(je)),onHandleArtifactClick:pe[9]||(pe[9]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:1,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[10]||(pe[10]=je=>a(je)),onHandleArtifactClick:pe[11]||(pe[11]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(h(),C("div",{key:1,class:"node-placeholder",style:Qn({height:`${Qa($e.index)}px`})},null,4))],8,lUe))),128)),Ml.value&&g.value==="precise"?(h(),C("span",{key:3,ref_key:"typewriterCursorRef",ref:tp,class:"typewriter-cursor","aria-hidden":"true"},null,512)):W("",!0),ts.value?(h(),C("div",{key:4,class:"node-spacer",style:Qn({height:`${cc.value}px`}),"aria-hidden":"true"},null,4)):W("",!0)],42,rUe))}}})),[["__scopeId","data-v-0a475932"]]),gu=NZ;gu.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",gu.__name,gu.name].filter(n=>!!n));for(const n of t)e.component(n,NZ)};const IR=Object.freeze(Object.defineProperty({__proto__:null,default:gu},Symbol.toStringTag,{value:"Module"})),cUe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},uUe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},dUe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},pUe={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},fUe={class:"admonition-title"},mUe=["aria-expanded","aria-controls"],hUe=["id"],N2=bi(st({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const s=e,o=t,a=E(()=>{if(s.node.title&&s.node.title.trim().length)return s.node.title;const u=s.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=D(!!s.node.collapsible&&!((n=s.node.open)==null||n));function l(){s.node.collapsible&&(r.value=!r.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,p)=>(h(),C("div",{class:At(["admonition",[`admonition-${s.node.kind}`]])},[d("div",{id:c,class:"admonition-legend"},[s.node.kind==="note"||s.node.kind==="info"?(h(),C("svg",cUe,[...p[1]||(p[1]=[d("circle",{cx:"12",cy:"12",r:"10"},null,-1),d("path",{d:"M12 16v-4"},null,-1),d("path",{d:"M12 8h.01"},null,-1)])])):s.node.kind==="tip"?(h(),C("svg",uUe,[...p[2]||(p[2]=[d("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),d("path",{d:"M9 18h6"},null,-1),d("path",{d:"M10 22h4"},null,-1)])])):s.node.kind==="warning"||s.node.kind==="caution"?(h(),C("svg",dUe,[...p[3]||(p[3]=[d("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"},null,-1),d("path",{d:"M12 9v4"},null,-1),d("path",{d:"M12 17h.01"},null,-1)])])):s.node.kind==="danger"||s.node.kind==="error"?(h(),C("svg",pUe,[...p[4]||(p[4]=[d("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),d("path",{d:"M12 8v4"},null,-1),d("path",{d:"M12 16h.01"},null,-1)])])):W("",!0),d("span",fUe,f(a.value),1),s.node.collapsible?(h(),C("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${c}-content`,onClick:l},[(h(),C("svg",{style:Qn({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[5]||(p[5]=[d("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,mUe)):W("",!0)]),fi(d("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[m(i(gu),{"index-key":`admonition-${e.indexKey}`,nodes:s.node.children,"custom-id":s.customId,typewriter:s.typewriter,fade:s.fade,onCopy:p[0]||(p[0]=g=>o("copy",g))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,hUe),[[xk,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);N2.install=e=>{e.component(N2.__name,N2)};const W3=()=>Sa(()=>import("./d2_markstream-vue_false-DAdk4EzK.js"),[]);let wS=null,SS=W3,_S=null,PL=!1,DL=!1;function Y7t(){return ta(this,null,function*(){if(wS)return wS;const e=SS;return e?e===W3&&PL?null:_S||(_S=ta(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===W3)return e===SS&&(PL=!0,(function(s){DL||(DL=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',s))})(n)),null;throw n}finally{e===SS&&(_S=null)}return e!==SS?null:t?(wS=(function(n){var s;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(s=n.default)!=null?s:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),wS):null}),_S):null})}let IS=null,RZ=null,AS=null;function Q7t(){return typeof RZ=="function"}function Z7t(){return ta(this,null,function*(){if(IS)return IS;const e=RZ;return e?AS||(AS=ta(null,null,function*(){const t=yield e(),n=(function(s){var o,a,r;if(!s)return null;const l=(o=s.default)!=null?o:s,c=typeof l=="function"&&typeof((a=l.prototype)==null?void 0:a.render)=="function"?l:(r=s.Infographic)!=null?r:l?.Infographic;return typeof c=="function"?c:null})(t);return n?(IS=n,IS):null}).finally(()=>{AS=null}),AS):null})}const X7t=Symbol("markstreamLanguageIconResolver"),gUe={key:0},vUe=["onAnimationend"],yUe=150,bUe=st({__name:"AiSessionAnimatedTextNode",props:{node:{}},setup(e){const t=e,n=Ah(),s=uo("aiSessionCharacterReveal",void 0),o=uo("markstreamTextStreamState",void 0),a=E(()=>String(n["index-key"]??n.indexKey??"")),r=D(""),l=D([]),c=new Map;let u=0,p="";function g(){return r.value+l.value.map(S=>S.text).join("")}function y(S){if(typeof Intl<"u"&&"Segmenter"in Intl){const I=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(I.segment(S),x=>x.segment)}return Array.from(S)}function v(S){S.counted&&(S.counted=!1,s?.end())}function w(){for(const S of c.values())window.clearTimeout(S);c.clear();for(const S of l.value)v(S);l.value=[]}function k(S){if(!S)return;if(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||s&&!s.enabled.value){r.value+=S;return}const x=y(S).map(T=>(s?.begin(),{id:++u,text:T,settled:!1,counted:!!s}));l.value=[...l.value,...x];for(const T of x)c.set(T.id,window.setTimeout(()=>_(T.id),yUe+32))}function A(){let S=0,I="";for(;S<l.value.length&&l.value[S].settled;)I+=l.value[S].text,S+=1;S&&(r.value+=I,l.value=l.value.slice(S))}function _(S){const I=c.get(S);I!==void 0&&window.clearTimeout(I),c.delete(S);const x=l.value.find(T=>T.id===S);!x||x.settled||(x.settled=!0,v(x),A())}return ze([()=>t.node.content,a],([S,I])=>{const x=String(S??"");if(I!==p){w(),p=I;const R=I?o?.get(I):void 0;r.value=R&&x.startsWith(R)?R:""}const T=g();x.startsWith(T)?k(x.slice(T.length)):x!==T&&(w(),r.value=x),I&&o?.set(I,x)},{immediate:!0}),qs(w),(S,I)=>(h(),C("span",{class:At(["ai-session-animated-text",{"ai-session-animated-text-center":e.node.center}])},[r.value?(h(),C("span",gUe,f(r.value),1)):W("",!0),(h(!0),C(Me,null,ft(l.value,x=>(h(),C("span",{key:x.id,class:"ai-session-animated-character",onAnimationend:nn(T=>_(x.id),["stop"])},f(x.text),41,vUe))),128))],2))}}),kUe=kn(bUe,[["__scopeId","data-v-914fc7bf"]]),MZ={copiedLabel:"Copied",copyLabel:"Copy",plainTextLabel:"Plain text"},$Z=Symbol("aiSessionMarkdownCodeTools"),wUe=["innerHTML"],SUe=st({__name:"AiSessionCodeBlock",props:{node:{}},setup(e){const t=e,n=uo($Z,E(()=>MZ)),s=E(()=>xG(t.node.code??t.node.raw,t.node.language,n.value));return(o,a)=>(h(),C("div",{class:"ai-session-highlighted-code",innerHTML:s.value,onClick:a[0]||(a[0]=(...r)=>i(U_)&&i(U_)(...r))},null,8,wUe))}}),_Ue=kn(SUe,[["__scopeId","data-v-cd34a852"]]),LL=st({inheritAttrs:!1,__name:"AiSessionMarkdownNode",props:{node:{}},setup(e){return(t,n)=>e.node.type==="code_block"?(h(),V(_Ue,Un({key:0},t.$attrs,{node:e.node}),null,16,["node"])):(h(),V(kUe,Un({key:1},t.$attrs,{node:e.node}),null,16,["node"]))}});function IUe(e){return e.streaming||!e.pacingFinal?"reset":e.activeAnimations>0?"wait":"promote"}function AUe(e){try{return decodeURIComponent(e)}catch{return e}}function CUe(e){const t=[];for(const n of e.replaceAll("\\","/").split("/"))if(!(!n||n===".")){if(n===".."){if(!t.length)return;t.pop();continue}t.push(n)}return t.join("/")}function xUe(e){const t=/#L(\d+)(?:C(\d+))?(?:-L?\d+(?:C\d+)?)?$/i.exec(e);if(t)return{column:t[2]?Number(t[2]):void 0,line:Number(t[1]),path:e.slice(0,t.index)};const n=/:(\d+)(?::(\d+))?$/.exec(e);return n?{column:n[2]?Number(n[2]):void 0,line:Number(n[1]),path:e.slice(0,n.index)}:{path:e}}function OZ(e,t){let n=e.trim();if(!n)return;const s=xUe(n);if(n=s.path,/^file:\/\//i.test(n))try{const l=new URL(n);n=l.hostname?`//${l.hostname}${l.pathname}`:l.pathname,/^\/[a-z]:\//i.test(n)&&(n=n.slice(1))}catch{return}else n=n.split(/[?#]/,1)[0]||"";n=AUe(n).replaceAll("\\","/");const o=t.repositoryRoot?.replaceAll("\\","/").replace(/\/+$/,"");if(n.startsWith("/")||/^[a-z]:\//i.test(n)){if(!o)return;const l=/^[a-z]:\//i.test(o)||o.startsWith("//"),c=l?n.toLowerCase():n,u=l?o.toLowerCase():o;if(!(u==="/"?c.startsWith("/"):c===u||c.startsWith(`${u}/`)))return;n=u==="/"?n.slice(1):n.slice(o.length).replace(/^\/+/,"")}else n=[t.cwdRelativePath,n].filter(Boolean).join("/");const r=CUe(n);if(r)return{...s,path:r}}function EUe(e,t){const n=e.trim();if(!n)return{kind:"unsupported",href:e};const s=/^([a-z][a-z\d+.-]*):/i.exec(n)?.[1]?.toLowerCase();if(s==="http"||s==="https")try{const a=new URL(n);return{kind:"web",href:n,url:a.toString()}}catch{return{kind:"unsupported",href:n}}if(s&&s!=="file")return{kind:"unsupported",href:n};if(!t)return n.startsWith("/")||/^[a-z]:[\\/]/i.test(n)?{kind:"file",href:n,path:n.split(/[?#]/,1)[0]||n}:s==="file"?{kind:"unsupported",href:n}:{kind:"file",href:n,path:n.split(/[?#]/,1)[0]||n};const o=OZ(n,t);return o?{kind:"file",href:n,path:o.path,...o.line!==void 0?{line:o.line}:{},...o.column!==void 0?{column:o.column}:{}}:{kind:"unsupported",href:n}}const TUe={class:"markdown-link-menu-content"},NUe=st({__name:"MarkdownLinkContextMenu",props:{labels:{},repositoryContext:{},onOpenFile:{type:Function},onOpenBuiltinBrowser:{type:Function}},setup(e){const t=D(!1),n=D(),s=e;function o(u){n.value=void 0;const g=(u.target instanceof Element?u.target.closest("a[href]"):void 0)?.getAttribute("href")?.trim();g&&(n.value=EUe(g,s.repositoryContext),n.value.kind!=="unsupported"&&(u.stopPropagation(),u.preventDefault()))}async function a(u){await navigator.clipboard?.writeText(u)}function r(u){return u.startsWith("/")||/^[a-z]:[\\/]/i.test(u)}async function l(u){await Axe(u)}async function c(u){!(await qW(u)).ok&&typeof window<"u"&&window.open(u,"_blank","noopener,noreferrer")}return(u,p)=>(h(),V(i(vr),{open:t.value,"onUpdate:open":p[6]||(p[6]=g=>t.value=g)},{default:b(()=>[d("div",{class:"markdown-link-menu-host",onContextmenuCapture:o},[m(i(yr),{"as-child":"",disabled:!n.value},{default:b(()=>[d("div",TUe,[gn(u.$slots,"default",{},void 0,!0)])]),_:3},8,["disabled"])],32),n.value?(h(),V(i(Bc),{key:0,class:"markdown-link-context-menu"},{default:b(()=>[n.value.kind==="file"&&r(n.value.path)?(h(),V(i(Ts),{key:0,onSelect:p[0]||(p[0]=g=>l(n.value.path))},{default:b(()=>[m(i(ll),{size:14}),j(f(s.labels.openDesktopFile),1)]),_:1})):W("",!0),n.value.kind==="file"&&s.onOpenFile?(h(),V(i(Ts),{key:1,onSelect:p[1]||(p[1]=g=>s.onOpenFile(n.value))},{default:b(()=>[m(i(ll),{size:14}),j(f(s.labels.openFile),1)]),_:1})):W("",!0),n.value.kind==="file"?(h(),V(i(Ts),{key:2,onSelect:p[2]||(p[2]=g=>a(n.value.path))},{default:b(()=>[m(i(Ka),{size:14}),j(f(s.labels.copyPath),1)]),_:1})):W("",!0),n.value.kind==="web"?(h(),C(Me,{key:3},[s.onOpenBuiltinBrowser?(h(),V(i(Ts),{key:0,onSelect:p[3]||(p[3]=g=>s.onOpenBuiltinBrowser(n.value.url))},{default:b(()=>[m(i(kle),{size:14}),j(f(s.labels.openBuiltinBrowser),1)]),_:1})):W("",!0),m(i(Ts),{onSelect:p[4]||(p[4]=g=>c(n.value.url))},{default:b(()=>[m(i(yu),{size:14}),j(f(s.labels.openDefaultBrowser),1)]),_:1}),m(i(Ts),{onSelect:p[5]||(p[5]=g=>a(n.value.url))},{default:b(()=>[m(i(Ka),{size:14}),j(f(s.labels.copyLink),1)]),_:1})],64)):W("",!0)]),_:1})):W("",!0)]),_:3},8,["open"]))}}),RUe=kn(NUe,[["__scopeId","data-v-93970c65"]]),BL="ai-session-streaming-markdown",MUe=st({__name:"AiSessionStreamingMarkdown",props:{codeTools:{},content:{},fileLinks:{type:Boolean,default:!1},htmlPolicy:{default:"escape"},instanceId:{},isLatest:{type:Boolean,default:!1},providerTurnId:{},repositoryContext:{},sessionId:{},turnId:{}},emits:["openFile"],setup(e,{emit:t}){YLe(),aBe(),gBe(BL,{text:LL,code_block:LL});const n=e;si($Z,E(()=>n.codeTools??MZ));const s=t,{t:o}=An(),a=E(()=>({openFile:o("sessions.markdown.openFile"),openDesktopFile:o("sessions.markdown.openDesktopFile"),copyPath:o("sessions.markdown.copyPath"),openBuiltinBrowser:o("sessions.markdown.openBuiltinBrowser"),openDefaultBrowser:o("sessions.markdown.openDefaultBrowser"),copyLink:o("sessions.markdown.copyLink")}));function r(H){s("openFile",H.href)}function l(H){window.dispatchEvent(new CustomEvent("task-handoff:open-markdown-browser",{detail:{instanceId:n.instanceId,url:H}}))}function c(H){if(!H||H.startsWith("#")||H.startsWith("?")||H.startsWith("//"))return!1;if(/^[a-z]:[\\/]/i.test(H))return!0;const U=/^([a-z][a-z\d+.-]*):/i.exec(H)?.[1]?.toLowerCase();return!U||U==="file"}function u(H){try{const U=new URL(H);return U.protocol==="http:"||U.protocol==="https:"}catch{return!1}}async function p(H){!(await qW(H)).ok&&typeof window<"u"&&window.open(H,"_blank","noopener,noreferrer")}function g(H){if(H.defaultPrevented||H.button!==0||H.metaKey||H.ctrlKey||H.shiftKey||H.altKey)return;const L=(H.target instanceof Element?H.target.closest("a"):void 0)?.getAttribute("href")?.trim();if(L){if(u(L)){H.preventDefault(),p(L);return}!n.fileLinks||!c(L)||(H.preventDefault(),s("openFile",L))}}const y=W4(),v=E(()=>y.activeMessage(n.instanceId,n.sessionId)),w=E(()=>{const H=n.isLatest?v.value.value?.value:void 0;return VW(H,{id:n.turnId,providerTurnId:n.providerTurnId})?H:void 0}),k=E(()=>String(w.value?.receivedText??n.content??"")),A=E(()=>w.value?.key||`snapshot:${n.instanceId}:${n.sessionId}`),_=E(()=>w.value?.status==="streaming"),S=D(!1),I=D(0),x=TZ({minCharsPerSecond:30,maxCharsPerSecond:240,targetLatencyMs:240,catchUpLatencyMs:160,catchUpThreshold:48,maxCommitFps:30,maxCharsPerCommit:12,startDelayMs:0,flushOnFinish:!1}),T=x.visible,R=D(!1),M=E(()=>R.value);si("aiSessionCharacterReveal",{enabled:S,begin:()=>{I.value+=1},end:()=>{I.value=Math.max(0,I.value-1)}});let $="",O="",F=!1,B=0,N=0;function z(H,U){const L=++B;S.value=!1,x.reset(H),U||x.finish({flush:!0}),vn(()=>{L===B&&(S.value=!0)})}return ze([A,k,_],([H,U,L])=>{if(H!==$){$=H,O=U,F=L,z(U,L);return}if(!L&&!F){O=U,z(U,!1);return}L&&!F&&x.reset(O),U.startsWith(O)?x.enqueue(U.slice(O.length)):U!==O&&z(U,L),O=U,F=L,L||x.finish()},{immediate:!0}),ze([_,x.final,I],async([H,U,L])=>{const K=IUe({streaming:H,pacingFinal:U,activeAnimations:L});if(K==="reset"){R.value=!1;return}if(K==="wait")return;const G=++N;await vn(),G===N&&!_.value&&x.final.value&&I.value===0&&(R.value=!0)},{immediate:!0,flush:"post"}),(H,U)=>(h(),V(RUe,{labels:a.value,"repository-context":n.repositoryContext,"on-open-file":r,"on-open-builtin-browser":l},{default:b(()=>[d("div",{class:"ai-session-streaming-markdown",onClick:g},[m(i(gu),{content:i(T),"custom-id":BL,fade:!1,final:M.value,"max-live-nodes":0,"batch-rendering":!1,"smooth-streaming":!1,typewriter:!1,"html-policy":e.htmlPolicy,mode:"chat"},null,8,["content","final","html-policy"])])]),_:1},8,["labels","repository-context"]))}}),d1=kn(MUe,[["__scopeId","data-v-e6b6a96d"]]),nE=1e3,$Ue=1e3,OUe=28;class PUe{constructor(t,n){this.root=t,this.revision=n.revision,this.targetSelector=n.target,this.resolveTarget()}root;frame;hoverTimer;idleActive=!1;lastFrameTime;pointerInside=!1;resumeTimer;revision;target;targetSelector;update(t){const n=t.revision!==this.revision;if(this.revision=t.revision,t.target!==this.targetSelector?(this.targetSelector=t.target,this.resolveTarget()):this.target?.isConnected||this.resolveTarget(),n){this.reset(),this.pointerInside&&this.scheduleStart(nE);return}this.pointerInside&&this.idleActive&&this.frame===void 0&&this.hoverTimer===void 0&&this.resumeTimer===void 0&&this.start()}dispose(){this.pointerInside=!1,this.idleActive=!1,this.stop(),this.clearTimers(),this.detachTargetListeners()}handlePointerEnter=()=>{this.pointerInside=!0,this.idleActive=!1,this.scheduleStart(nE)};handlePointerMove=()=>{this.pointerInside&&(this.idleActive=!1,this.stop(),this.scheduleStart(nE))};handlePointerLeave=()=>{this.pointerInside=!1,this.idleActive=!1,this.stop(),this.clearTimers(),this.target&&(this.target.scrollTop=0)};handleWheel=t=>{const n=this.target;if(!this.pointerInside||!this.idleActive||!n||Math.abs(t.deltaX)>=Math.abs(t.deltaY))return;const s=Math.max(0,n.scrollHeight-n.clientHeight);if(s<=0)return;const o=t.deltaMode===WheelEvent.DOM_DELTA_LINE?16:t.deltaMode===WheelEvent.DOM_DELTA_PAGE?n.clientHeight:1,a=Math.max(0,Math.min(s,n.scrollTop+t.deltaY*o));a!==n.scrollTop&&(t.preventDefault(),t.stopPropagation(),this.stop(),this.clearTimers(),n.scrollTop=a,this.resumeTimer=window.setTimeout(()=>{this.resumeTimer=void 0,this.pointerInside&&this.start()},$Ue))};resolveTarget(){const t=this.root.querySelector(this.targetSelector)||void 0;t!==this.target&&(this.detachTargetListeners(),this.target=t,this.target?.addEventListener("pointerenter",this.handlePointerEnter),this.target?.addEventListener("pointermove",this.handlePointerMove),this.target?.addEventListener("pointerleave",this.handlePointerLeave),this.target?.addEventListener("wheel",this.handleWheel,{passive:!1}))}detachTargetListeners(){this.target?.removeEventListener("pointerenter",this.handlePointerEnter),this.target?.removeEventListener("pointermove",this.handlePointerMove),this.target?.removeEventListener("pointerleave",this.handlePointerLeave),this.target?.removeEventListener("wheel",this.handleWheel)}scheduleStart(t){this.clearTimers(),this.hoverTimer=window.setTimeout(()=>{this.hoverTimer=void 0,this.pointerInside&&this.activateIdleScroll()},t)}activateIdleScroll(){const t=this.target;this.idleActive=!!(t&&t.scrollHeight>t.clientHeight),this.idleActive&&this.start()}start(){const t=this.target;!t||t.scrollHeight<=t.clientHeight||this.prefersReducedMotion()||t.scrollTop>=t.scrollHeight-t.clientHeight-.5||this.frame!==void 0||(this.lastFrameTime=void 0,this.frame=window.requestAnimationFrame(this.advance))}advance=t=>{if(this.frame=void 0,!this.pointerInside||!this.target)return;const n=this.lastFrameTime===void 0?0:Math.min(t-this.lastFrameTime,50);this.lastFrameTime=t;const s=Math.max(0,this.target.scrollHeight-this.target.clientHeight);this.target.scrollTop=Math.min(s,this.target.scrollTop+n*OUe/1e3),this.target.scrollTop<s-.5&&(this.frame=window.requestAnimationFrame(this.advance))};stop(){this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,this.lastFrameTime=void 0}clearTimers(){this.hoverTimer!==void 0&&window.clearTimeout(this.hoverTimer),this.resumeTimer!==void 0&&window.clearTimeout(this.resumeTimer),this.hoverTimer=void 0,this.resumeTimer=void 0}reset(){this.idleActive=!1,this.stop(),this.clearTimers(),this.target&&(this.target.scrollTop=0)}prefersReducedMotion(){return window.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1}}const CS=new WeakMap,K3={mounted(e,t){CS.set(e,new PUe(e,t.value))},updated(e,t){CS.get(e)?.update(t.value)},unmounted(e){CS.get(e)?.dispose(),CS.delete(e)}},DUe=["data-state","data-selected","data-unread","data-app-session-origin"],LUe=["aria-label","title"],BUe={class:"ai-board-card-headline"},FUe={class:"ai-board-card-context"},zUe={class:"ai-board-card-context-item"},UUe={key:1,class:"ai-board-card-context-separator","aria-hidden":"true"},HUe={class:"ai-board-card-context-item"},VUe={key:0,class:"ai-board-card-context-separator","aria-hidden":"true"},qUe=["aria-label"],jUe={class:"ai-board-content"},WUe={class:"ai-board-preview-field ai-board-preview-field-user"},KUe={class:"ai-board-preview-field ai-board-preview-field-assistant"},GUe={key:0,class:"ai-board-turn-nav"},YUe=["aria-label","disabled"],QUe=["aria-label","disabled"],ZUe={key:2,class:"ai-board-approval-actions"},XUe=["disabled","title"],JUe=["disabled","title"],eHe=["disabled","title"],tHe=st({__name:"AiSessionCard",props:{approvalBusyKey:{},boundTriggers:{},card:{},folderName:{},instanceDisplayName:{},isTriggerBound:{},promptCount:{},promptIndex:{},selected:{type:Boolean},showAgent:{type:Boolean,default:!0},showInstance:{type:Boolean,default:!0},showWorkspace:{type:Boolean},shortHash:{},stoppingAppSessionKey:{},forkingSessionKey:{},triggerActionKey:{},triggerBusyKey:{},triggerTemplates:{}},emits:["nextPrompt","openAiSessionApp","previousPrompt","resolveApproval","renameSession","selectCard","selectInstance","stopAppSession","forkSession","storyAssigned","storyAssignFailed","toggleTrigger"],setup(e,{emit:t}){const{t:n}=An(),s=e,o=E(()=>E0(s.card.session,s.card.instance.capabilities?.features));function a(g,y){return`${g.instance.id}:${g.session.id}:${y}`}const r=E(()=>s.stoppingAppSessionKey===s.card.key),l=E(()=>s.forkingSessionKey===s.card.key),c=E(()=>SN(s.card.instance,s.card.session)),u=E(()=>{const g=s.card.session.agent;return g==="codex"||g==="claude"||g==="opencode"?g:void 0}),p=E(()=>{const g=s.card.session.agent;return u.value?n(`common.products.${g}`):g});return(g,y)=>(h(),V(i(vr),null,{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[fi((h(),C("article",{class:"ai-board-card","data-state":e.card.session.status,"data-selected":e.selected?"true":void 0,"data-unread":e.card.session.unread?"true":void 0,"data-app-session-origin":e.card.session.creationSource==="app-session"?"true":void 0,role:"button",tabindex:"0",onClick:y[6]||(y[6]=v=>g.$emit("selectCard",e.card.key)),onKeydown:[y[7]||(y[7]=Go(nn(v=>g.$emit("selectCard",e.card.key),["prevent"]),["enter"])),y[8]||(y[8]=Go(nn(v=>g.$emit("selectCard",e.card.key),["prevent"]),["space"]))]},[e.card.session.unread?(h(),C("span",{key:0,class:"ai-session-unread-dot","aria-label":i(n)("sessions.actions.unread"),title:i(n)("sessions.actions.unread")},null,8,LUe)):W("",!0),m(c3,{agent:e.card.session.agent,"creation-source":e.card.session.creationSource,"show-agent":!1},null,8,["agent","creation-source"]),d("div",BUe,[m(i(Fi),{"delay-duration":120},{default:b(()=>[d("button",{type:"button",class:"ai-board-instance",onClick:y[0]||(y[0]=nn(v=>g.$emit("selectCard",e.card.key),["stop"]))},[m(Jm,{class:"ai-board-status-indicator",status:e.card.session.status},null,8,["status"]),d("span",FUe,[e.showWorkspace?(h(),V(i(Ns),{key:0},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",zUe,[m(i(na),{size:14,"aria-hidden":"true"}),d("span",null,f(e.folderName||i(R0)(e.card.session.cwd)||i(n)("sessions.board.unknownFolder")),1)])]),_:1}),m(i(Rs),{class:"ai-session-path-tooltip",side:"top","side-offset":8},{default:b(()=>[j(f(e.card.session.cwd||i(n)("sessions.board.unknownPath")),1)]),_:1})]),_:1})):W("",!0),e.showWorkspace&&e.showInstance?(h(),C("span",UUe,"·")):W("",!0),e.showInstance?(h(),V(i(Ns),{key:2},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",HUe,[m(i(hr),{size:14,"aria-hidden":"true"}),d("span",null,f(e.instanceDisplayName(e.card.instance)),1)])]),_:1}),m(i(Rs),{class:"ai-session-path-tooltip",side:"top","side-offset":8},{default:b(()=>[j(f(e.card.instance.node?.name||e.card.instance.nodeId),1)]),_:1})]),_:1})):W("",!0),e.showAgent&&u.value?(h(),C(Me,{key:3},[e.showWorkspace||e.showInstance?(h(),C("span",VUe,"·")):W("",!0),m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",{class:"ai-board-card-agent","aria-label":p.value},[m(_p,{agent:u.value,size:14},null,8,["agent"])],8,qUe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(p.value),1)]),_:1})]),_:1})],64)):W("",!0)])])]),_:1})]),d("div",jUe,[d("div",WUe,[m(Fu,{class:"ai-board-question",content:i(yc)(e.card.session,e.promptIndex,i(n))},null,8,["content"])]),d("div",KUe,[m(d1,{class:"ai-board-message",content:i(jb)(e.card.session,e.promptIndex,i(n)),"instance-id":e.card.instance.id,"is-latest":e.promptIndex>=e.promptCount-1,"provider-turn-id":e.card.session.activeTurnId,"session-id":e.card.session.id,"turn-id":e.card.session.latestTurnRef?.id},null,8,["content","instance-id","is-latest","provider-turn-id","session-id","turn-id"])]),e.promptCount>1?(h(),C("span",GUe,[d("button",{type:"button","aria-label":i(n)("sessions.actions.previousMessage",{agent:e.card.session.agent}),disabled:e.promptIndex<=0,onClick:y[1]||(y[1]=nn(v=>g.$emit("previousPrompt",e.card),["stop"]))},[m(i(S0),{size:13})],8,YUe),d("small",null,f(e.promptIndex+1)+" / "+f(e.promptCount),1),d("button",{type:"button","aria-label":i(n)("sessions.actions.nextMessage",{agent:e.card.session.agent}),disabled:e.promptIndex>=e.promptCount-1,onClick:y[2]||(y[2]=nn(v=>g.$emit("nextPrompt",e.card),["stop"]))},[m(i(ko),{size:13})],8,QUe)])):W("",!0)]),e.promptIndex>=e.promptCount-1&&!o.value.length?(h(),V(ok,{key:1,class:"ai-board-card-activity","current-tool":e.card.session.currentTool,phase:e.card.session.phase,status:e.card.session.status,summary:e.card.session.summary,"tool-calls-since-last-message":e.card.session.toolCallsSinceLastMessage,tone:"board"},null,8,["current-tool","phase","status","summary","tool-calls-since-last-message"])):W("",!0),o.value.length?(h(),C("span",ZUe,[o.value.includes("allow")?(h(),C("button",{key:0,type:"button",disabled:e.approvalBusyKey===a(e.card,"allow"),title:i(n)("sessions.actions.allow"),onClick:y[3]||(y[3]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"allow"),["stop"]))},[m(i(Qs),{size:13}),d("span",null,f(i(n)("sessions.actions.allow")),1)],8,XUe)):W("",!0),o.value.includes("skip")?(h(),C("button",{key:1,type:"button",disabled:e.approvalBusyKey===a(e.card,"skip"),title:i(n)("sessions.actions.skip"),onClick:y[4]||(y[4]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"skip"),["stop"]))},[m(i(Y2),{size:13}),d("span",null,f(i(n)("sessions.actions.skip")),1)],8,JUe)):W("",!0),o.value.includes("deny")?(h(),C("button",{key:2,type:"button",disabled:e.approvalBusyKey===a(e.card,"deny"),title:i(n)("sessions.actions.deny"),onClick:y[5]||(y[5]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"deny"),["stop"]))},[m(i($o),{size:13}),d("span",null,f(i(n)("sessions.actions.deny")),1)],8,eHe)):W("",!0)])):W("",!0)],40,DUe)),[[i(K3),{target:".ai-board-preview-field-assistant",revision:e.promptIndex}]])]),_:1}),m(_N,{"bound-trigger-count":e.boundTriggers(e.card).length,"has-app-session":!!e.card.session.appSessionId,"can-open-app":!!(e.card.session.appSessionId||e.card.session.actions?.openApp),"can-fork":e.card.session.actions?.fork===!0,"can-rename":e.card.session.actions?.rename===!0,"is-forking":l.value,"is-stopping-app-session":r.value,"session-id":e.card.session.id,"session-name":e.card.session.title||i(yc)(e.card.session,void 0,i(n))||e.card.session.id,"session-path":e.card.session.cwd,"is-trigger-bound":v=>e.isTriggerBound(e.card,v),"is-trigger-busy":v=>e.triggerBusyKey===e.triggerActionKey(e.card,v),"short-hash":e.shortHash,"story-target":c.value,"trigger-templates":e.triggerTemplates,onCloseSession:y[9]||(y[9]=v=>g.$emit("stopAppSession",e.card)),onOpenApp:y[10]||(y[10]=v=>g.$emit("openAiSessionApp",e.card.instance,e.card.session)),onRenameSession:y[11]||(y[11]=v=>g.$emit("renameSession",e.card)),onForkSession:y[12]||(y[12]=v=>g.$emit("forkSession",e.card,v)),onStoryAssigned:y[13]||(y[13]=(v,w)=>g.$emit("storyAssigned",e.card,v,w)),onStoryAssignFailed:y[14]||(y[14]=(v,w)=>g.$emit("storyAssignFailed",e.card,v,w)),onToggleTrigger:y[15]||(y[15]=v=>g.$emit("toggleTrigger",e.card,v))},null,8,["bound-trigger-count","has-app-session","can-open-app","can-fork","can-rename","is-forking","is-stopping-app-session","session-id","session-name","session-path","is-trigger-bound","is-trigger-busy","short-hash","story-target","trigger-templates"])]),_:1}))}}),FL=kn(tHe,[["__scopeId","data-v-61a5c80d"]]),Ds=st({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=ri(e,t);return(a,r)=>(h(),V(i(vz),oa(Ma(i(o))),{default:b(()=>[gn(a.$slots,"default")]),_:3},16))}}),rf=st({__name:"DialogClose",props:{asChild:{type:Boolean},as:{}},setup(e){const n=oc(e);return(s,o)=>(h(),V(i(M8),oa(Ma(i(n))),{default:b(()=>[gn(s.$slots,"default")]),_:3},16))}}),Ls=st({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},overlayClass:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=Xs(n,"class","overlayClass","style"),a=ri(o,s);return(r,l)=>(h(),V(i(yz),null,{default:b(()=>[m(i(bz),{class:At(i(bs)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n.overlayClass))},null,8,["class"]),m(i(kz),Un(i(a),{style:[{maxHeight:"calc(100dvh - 100px)"},n.style],class:i(bs)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-4 text-foreground shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:b(()=>[gn(r.$slots,"default")]),_:3},16,["style","class"])]),_:3}))}}),Vs=st({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),V(i(wz),{class:At(i(bs)("text-sm text-muted-foreground",t.class))},{default:b(()=>[gn(n.$slots,"default")]),_:3},8,["class"]))}}),eo=st({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),C("div",{class:At(i(bs)("flex flex-col-reverse [&_button]:h-8 [&_button]:rounded-md [&_button]:px-3 [&_button]:py-0 [&_button]:text-xs sm:flex-row sm:justify-end sm:gap-2",t.class))},[gn(n.$slots,"default")],2))}}),Gs=st({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),C("div",{class:At(i(bs)("flex flex-col space-y-1.5 text-center sm:text-left",t.class))},[gn(n.$slots,"default")],2))}}),$s=st({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),V(i(Sz),{class:At(i(bs)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:b(()=>[gn(n.$slots,"default")]),_:3},8,["class"]))}}),nHe=st({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=oc(e);return(s,o)=>(h(),V(i(Rte),oa(Ma(i(n))),{default:b(()=>[gn(s.$slots,"default")]),_:3},16))}}),sHe={for:"ai-session-title"},oHe={key:0,class:"ai-session-rename-error",role:"alert"},iHe=st({__name:"AiSessionRenameDialog",props:{instanceId:{},open:{type:Boolean},session:{}},emits:["renamed","update:open"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(""),r=D(""),l=D(""),c=D(!1),u=D(""),p=E(()=>a.value.trim()),g=E(()=>!c.value&&p.value.length<=120&&p.value!==r.value);ze(()=>[n.open,n.session?.id],([w])=>{!w||!n.session||(r.value=n.session.title?.trim()||"",a.value=r.value,l.value=sa(),u.value="",c.value=!1)},{immediate:!0});function y(w){c.value||s("update:open",w)}async function v(){const w=n.session;if(!(!w||!g.value)){c.value=!0,u.value="";try{const k=await mIe(n.instanceId,w.id,{title:p.value,expectedTitle:r.value,clientRequestId:l.value});s("renamed",k.title),s("update:open",!1)}catch(k){u.value=mn(k,o,o("sessions.rename.failed"))}finally{c.value=!1}}}return(w,k)=>(h(),V(i(Ds),{open:e.open,"onUpdate:open":y},{default:b(()=>[m(i(Ls),{class:"ai-session-rename-dialog"},{default:b(()=>[m(i(Gs),null,{default:b(()=>[m(i($s),null,{default:b(()=>[j(f(i(o)("sessions.rename.title")),1)]),_:1}),m(i(Vs),null,{default:b(()=>[j(f(i(o)("sessions.rename.description")),1)]),_:1})]),_:1}),d("form",{class:"ai-session-rename-form",onSubmit:nn(v,["prevent"])},[d("label",sHe,f(i(o)("sessions.rename.label")),1),m(i(Us),{id:"ai-session-title",modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=A=>a.value=A),disabled:c.value,maxlength:120,autocomplete:"off",autofocus:""},null,8,["modelValue","disabled"]),u.value?(h(),C("p",oHe,f(u.value),1)):W("",!0),m(i(eo),null,{default:b(()=>[m(i(Re),{type:"button",variant:"outline",disabled:c.value,onClick:k[1]||(k[1]=A=>y(!1))},{default:b(()=>[j(f(i(o)("common.actions.cancel")),1)]),_:1},8,["disabled"]),m(i(Re),{type:"submit",disabled:!g.value},{default:b(()=>[c.value?(h(),V(i(ws),{key:0,class:"spin",size:14})):W("",!0),d("span",null,f(i(o)("common.actions.save")),1)]),_:1},8,["disabled"])]),_:1})],32)]),_:1})]),_:1},8,["open"]))}}),AR=kn(iHe,[["__scopeId","data-v-85421565"]]),Ur=st({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=ri(e,t);return(a,r)=>(h(),V(i(Mte),oa(Ma(i(o))),{default:b(()=>[gn(a.$slots,"default")]),_:3},16))}}),Hr=st({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=Xs(n,"class"),a=ri(o,s);return(r,l)=>(h(),V(i($te),null,{default:b(()=>[m(i(Ote),Un({...i(a),...r.$attrs},{class:i(bs)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:b(()=>[gn(r.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Dl=st({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(h(),V(i(Pte),oa(Ma(t)),{default:b(()=>[gn(n.$slots,"default")]),_:3},16))}}),Od=st({__name:"Textarea",props:{class:{type:[Boolean,null,String,Object,Array]},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=pz(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(a,r)=>fi((h(),C("textarea",{"onUpdate:modelValue":r[0]||(r[0]=l=>Sl(o)?o.value=l:null),class:At(i(bs)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[Fr,i(o)]])}}),PZ=[{name:"review",descriptionKey:"sessions.composer.review",requiresIdle:!0},{name:"rename",descriptionKey:"sessions.composer.rename",argumentHintKey:"sessions.composer.threadName"},{name:"goal",descriptionKey:"sessions.composer.goal",argumentHintKey:"sessions.composer.objective"},{name:"compact",descriptionKey:"sessions.composer.compact",requiresIdle:!0}];function DZ(e,t,n){if(!n||!e.startsWith(n)||t<n.length||t>e.length)return;const s=e.slice(n.length,t);if(/\s/.test(s))return;let o=t;for(;o<e.length&&!/\s/.test(e[o]||"");)o+=1;return{start:0,end:o,query:s}}function aHe(e){const t=e.trim().toLocaleLowerCase();return PZ.filter(n=>!t||n.name.startsWith(t))}function rHe(e,t,n,s){const o=DZ(e,t,n);if(!o)return;const a=`${n}${s.name}${s.argumentHintKey?" ":""}`;return{value:`${a}${e.slice(o.end)}`,cursor:a.length}}function lHe(e,t,n){if(n!=="codex"||!t||!e.startsWith(t))return;const s=e.slice(t.length),o=s.search(/\s/),a=o<0?s:s.slice(0,o);if(!PZ.some(l=>l.name===a))return;const r=o<0?"":s.slice(o).trim();return{command:a,...r?{argument:r}:{}}}const SI="task-handoff.control-plane.ai-session-permissions",cHe=720*60*60*1e3,CR=as({}),xR=new Set;function Ty(e,t){return`session:${encodeURIComponent(e)}:${encodeURIComponent(t)}`}function zL(e,t){return`history:${encodeURIComponent(e)}:${encodeURIComponent(t)}`}function LZ(e,t=Date.now()){return TR(t)[e]?.permissionMode}function _I(e,t,n=Date.now()){if(!e.trim())return;CR[e]=t,xR.add(e);const s=ER();if(!s)return;const o=TR(n,s);o[e]={permissionMode:t,updatedAt:n},NR(s,o)}function uHe(e,t=Date.now()){if(!e.trim())return;delete CR[e],xR.delete(e);const n=ER();if(!n)return;const s=TR(t,n);delete s[e],NR(n,s)}function dHe(e,t){const n=E(()=>Qt(e).trim()),s=E(()=>Qt(t));return ze([n,s],([o,a])=>{if(!o||xR.has(o))return;const r=LZ(o);_I(o,r||a)},{immediate:!0}),E({get:()=>CR[n.value]||s.value,set:o=>_I(n.value,o)})}function ER(){if(!(typeof window>"u"))try{return window.localStorage}catch{return}}function TR(e,t=ER()){if(!t)return{};let n;try{n=JSON.parse(t.getItem(SI)||"{}")}catch{return UL(t),{}}if(!n||typeof n!="object"||Array.isArray(n))return UL(t),{};const s={};let o=!1;for(const[a,r]of Object.entries(n)){const l=r&&typeof r=="object"&&!Array.isArray(r)?r:void 0;if(!l||!pHe(l.permissionMode)||!Number.isFinite(l.updatedAt)||e-l.updatedAt>=cHe){o=!0;continue}s[a]={permissionMode:l.permissionMode,updatedAt:l.updatedAt}}return o&&NR(t,s),s}function NR(e,t){try{Object.keys(t).length?e.setItem(SI,JSON.stringify(t)):e.removeItem(SI)}catch{}}function UL(e){try{e.removeItem(SI)}catch{}}function pHe(e){return e==="ask"||e==="auto-review"||e==="full-access"}function HL(e){return e.modelUpstreamName||e.modelName}function Cd(e,t){if(e.modelEntityId&&t.modelEntityId&&e.modelEntityId!==t.modelEntityId)return!1;const n=HL(e),s=HL(t);return!n||!s?!1:n===s||e.modelName===t.modelName}const xS=new WeakMap;function lb(e){const t=Math.max(0,e.scrollWidth-e.clientWidth);e.dataset.overflowStart=String(e.scrollLeft>1),e.dataset.overflowEnd=String(e.scrollLeft<t-1)}function VL(e,t){const n=new Set(Array.from(e.children));for(const s of t.children)n.has(s)||t.observer.unobserve(s);for(const s of n)t.children.has(s)||t.observer.observe(s);t.children=n}const BZ={mounted(e){if(typeof ResizeObserver<"u"){const t={observer:new ResizeObserver(()=>lb(e)),children:new Set};t.observer.observe(e),VL(e,t),xS.set(e,t)}lb(e)},updated(e){vn(()=>{const t=xS.get(e);t&&VL(e,t),lb(e)})},unmounted(e){xS.get(e)?.observer.disconnect(),xS.delete(e)}};function II(e){e.currentTarget instanceof HTMLElement&&lb(e.currentTarget)}function AI(e){const t=e.currentTarget instanceof HTMLElement?e.currentTarget:void 0;if(!t||Math.abs(e.deltaX)>=Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth)return;const n=Math.max(0,Math.min(t.scrollWidth-t.clientWidth,t.scrollLeft+e.deltaY));n!==t.scrollLeft&&(e.preventDefault(),t.scrollLeft=n,lb(t))}const fHe={class:"ai-session-image-preview__toolbar"},mHe={"aria-live":"polite"},hHe=["src","alt"],qL=.5,jL=3,Zv=.25,WL=.2,gHe=st({__name:"AiSessionImagePreview",props:{open:{type:Boolean},src:{},alt:{},copyable:{type:Boolean}},emits:["update:open","copy"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a={position:"fixed",inset:"0",left:"0",top:"0",width:"100vw",maxWidth:"none",height:"100dvh",transform:"none",overflow:"hidden",border:"0",borderRadius:"0",background:"transparent",boxShadow:"none",padding:"0",animation:"none",transition:"none"},r=D(1),l=D(0),c=D(0),u=D(0),p=D(0),g=D(0),y=D(0),v=D(!1);let w,k=0,A=0,_=0,S=0,I=!1,x=!1;const T=E(()=>{if(!l.value||!c.value||!u.value||!p.value)return;const ie=Math.min(1,u.value*.92/l.value,p.value*.86/c.value);return{width:l.value*ie,height:c.value*ie}}),R=E(()=>T.value?{width:T.value.width*r.value,height:T.value.height*r.value}:void 0),M=E(()=>R.value?{width:`${R.value.width}px`,height:`${R.value.height}px`,left:`${u.value/2+g.value}px`,top:`${p.value/2+y.value}px`}:void 0);ze(()=>[n.open,n.src],()=>{F(),vn($)}),xo(()=>{$(),window.addEventListener("resize",O)}),qs(()=>window.removeEventListener("resize",O));function $(){typeof window>"u"||(u.value=window.innerWidth,p.value=window.innerHeight)}function O(){$(),z()}function F(){r.value=1,g.value=0,y.value=0,l.value=0,c.value=0,v.value=!1,w=void 0}function B(){s("update:open",!1)}function N(){const ie=R.value;if(!ie)return;const le=ie.width*WL,oe=ie.height*WL;return{minX:le-ie.width/2-u.value/2,maxX:u.value/2-le+ie.width/2,minY:oe-ie.height/2-p.value/2,maxY:p.value/2-oe+ie.height/2}}function z(ie=g.value,le=y.value){const oe=N();oe&&(g.value=Math.min(oe.maxX,Math.max(oe.minX,ie)),y.value=Math.min(oe.maxY,Math.max(oe.minY,le)))}function H(ie,le=u.value/2,oe=p.value/2){const ae=r.value,te=Math.min(jL,Math.max(qL,ae+ie));if(te===ae)return;const Z=te/ae,Ce=u.value/2+g.value,Fe=p.value/2+y.value,Pe=le-(le-Ce)*Z,fe=oe-(oe-Fe)*Z;r.value=te,z(Pe-u.value/2,fe-p.value/2)}function U(ie){const le=ie.currentTarget;l.value=le.naturalWidth,c.value=le.naturalHeight,g.value=0,y.value=0}function L(ie){ie.button!==0||!(ie.target instanceof HTMLImageElement)||(ie.preventDefault(),v.value=!0,I=!1,w=ie.pointerId,k=ie.clientX,A=ie.clientY,_=g.value,S=y.value,ie.currentTarget.setPointerCapture?.(ie.pointerId))}function K(ie){if(!v.value||ie.pointerId!==w)return;const le=ie.clientX-k,oe=ie.clientY-A;(Math.abs(le)>3||Math.abs(oe)>3)&&(I=!0),z(_+le,S+oe)}function G(ie){ie.pointerId===w&&(ie.currentTarget.releasePointerCapture?.(ie.pointerId),v.value=!1,w=void 0,I&&(x=!0,window.setTimeout(()=>{x=!1},0)))}function Q(ie){if(x){x=!1;return}B()}function J(ie){ie.preventDefault(),H(ie.deltaY<0?Zv:-Zv,ie.clientX,ie.clientY)}function ee(ie){ie.key==="+"||ie.key==="="?(ie.preventDefault(),H(Zv)):ie.key==="-"&&(ie.preventDefault(),H(-Zv))}return(ie,le)=>(h(),V(i(Ds),{open:e.open,"onUpdate:open":le[4]||(le[4]=oe=>s("update:open",oe))},{default:b(()=>[m(i(Ls),{class:"ai-session-image-preview",style:a,onKeydown:ee},{default:b(()=>[m(i($s),{class:"sr-only"},{default:b(()=>[j(f(e.alt),1)]),_:1}),d("div",fHe,[m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("sessions.composer.zoomOut"),"aria-label":i(o)("sessions.composer.zoomOut"),disabled:r.value<=qL,onClick:le[0]||(le[0]=oe=>H(-Zv))},{default:b(()=>[m(i(xU),{size:18})]),_:1},8,["title","aria-label","disabled"]),d("span",mHe,f(Math.round(r.value*100))+"%",1),m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("sessions.composer.zoomIn"),"aria-label":i(o)("sessions.composer.zoomIn"),disabled:r.value>=jL,onClick:le[1]||(le[1]=oe=>H(Zv))},{default:b(()=>[m(i(Hs),{size:18})]),_:1},8,["title","aria-label","disabled"]),le[5]||(le[5]=d("i",{"aria-hidden":"true"},null,-1)),m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("common.actions.close"),"aria-label":i(o)("common.actions.close"),onClick:B},{default:b(()=>[m(i($o),{size:19})]),_:1},8,["title","aria-label"])]),d("div",{class:At(["ai-session-image-preview__stage",{"is-dragging":v.value}]),onClick:Q,onPointerdown:L,onPointermove:K,onPointerup:G,onPointercancel:G,onWheel:J},[e.src?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("img",{src:e.src,alt:e.alt,style:Qn(M.value),draggable:"false",onLoad:U,onDragstart:le[2]||(le[2]=nn(()=>{},["prevent"]))},null,44,hHe)]),_:1}),e.copyable?(h(),V(i(Bc),{key:0},{default:b(()=>[m(i(Ts),{onSelect:le[3]||(le[3]=oe=>s("copy"))},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(o)("sessions.composer.copyImage")),1)]),_:1})]),_:1})):W("",!0)]),_:1})):W("",!0)],34)]),_:1})]),_:1},8,["open"]))}}),FZ=kn(gHe,[["__scopeId","data-v-e5014a81"]]),CI=Dd.options;function zZ(e){return e==="codex"?CI:CI.filter(t=>t!=="ultra")}const vHe={class:"ai-session-model-menu__list"},yHe={class:"ai-session-model-menu__copy"},bHe={key:0},kHe={class:"ai-session-model-menu__copy"},wHe={class:"ai-session-model-menu__copy"},SHe={class:"ai-session-model-menu__copy"},_He={key:0},IHe={class:"ai-session-model-menu__copy"},AHe=st({__name:"AiSessionModelMenu",props:{modelGroups:{},modelSelection:{},reasoningEffort:{},reasoningEffortEnabled:{type:Boolean},agent:{},side:{default:"top"},align:{default:"end"},collisionPadding:{default:12},sideOffset:{default:8}},emits:["selectModel","selectReasoningEffort"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=E(()=>zZ(n.agent));function r(u){return!!n.modelSelection&&Cd(u,n.modelSelection)}function l(u){const p=n.modelSelection;if(!(!p||p.modelEntityId!==u.modelEntityId))return u.models.find(g=>Cd(g,p))?.modelName??p.modelName}function c(u){const p=l(u);if(p)return p;const g=u.models[0]?.modelName||"";return u.models.length>1?o("sessions.composer.modelGroupSummary",{model:g,count:u.models.length}):g}return(u,p)=>(h(),V(i(Zs),{class:"ai-session-model-menu",side:e.side,align:e.align,"collision-padding":e.collisionPadding,"side-offset":e.sideOffset},{default:b(()=>[m(i(Zn),{type:"auto",horizontal:!1,class:"ai-session-model-menu__scroll"},{default:b(()=>[d("div",vHe,[(h(!0),C(Me,null,ft(e.modelGroups,g=>(h(),C(Me,{key:g.modelEntityId},[g.models.length>1?(h(),V(i(Gg),{key:0},{default:b(()=>[m(i(Qg),{class:At(["ai-session-model-menu__item ai-session-model-menu__provider-item",{"ai-session-model-menu__item--selected":l(g)}])},{default:b(()=>[m(i(T$),{class:"ai-session-model-menu__icon",size:17}),d("span",yHe,[d("strong",null,f(g.providerName),1),c(g)?(h(),C("small",bHe,f(c(g)),1)):W("",!0)])]),_:2},1032,["class"]),m(i(Yg),{class:"ai-session-model-menu ai-session-model-menu--nested","collision-padding":e.collisionPadding},{default:b(()=>[(h(!0),C(Me,null,ft(g.models,y=>(h(),V(i(Vn),{key:`${y.modelEntityId}:${y.modelName}`,class:At(["ai-session-model-menu__item",{"ai-session-model-menu__item--selected":r(y)}]),onSelect:v=>s("selectModel",{modelEntityId:y.modelEntityId,modelName:y.modelName,modelUpstreamName:y.modelUpstreamName})},{default:b(()=>[d("span",kHe,[d("strong",null,f(y.modelName),1)]),r(y)?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))),128))]),_:2},1032,["collision-padding"])]),_:2},1024)):(h(),V(i(Vn),{key:1,class:At(["ai-session-model-menu__item ai-session-model-menu__provider-item",{"ai-session-model-menu__item--selected":r(g.models[0])}]),onSelect:y=>s("selectModel",{modelEntityId:g.models[0].modelEntityId,modelName:g.models[0].modelName,modelUpstreamName:g.models[0].modelUpstreamName})},{default:b(()=>[m(i(T$),{class:"ai-session-model-menu__icon",size:17}),d("span",wHe,[d("strong",null,f(g.providerName),1),d("small",null,f(g.models[0].modelName),1)]),r(g.models[0])?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))],64))),128)),e.reasoningEffortEnabled?(h(),C(Me,{key:0},[e.modelGroups.length?(h(),V(i(mi),{key:0})):W("",!0),m(i(Gg),null,{default:b(()=>[m(i(Qg),{class:"ai-session-model-menu__item ai-session-model-menu__provider-item"},{default:b(()=>[m(i(Bie),{class:"ai-session-model-menu__icon",size:17}),d("span",SHe,[d("strong",null,f(i(o)("sessions.composer.reasoningEffort")),1),e.reasoningEffort?(h(),C("small",_He,f(e.reasoningEffort),1)):W("",!0)])]),_:1}),m(i(Yg),{class:"ai-session-model-menu ai-session-model-menu--nested ai-session-reasoning-menu","collision-padding":e.collisionPadding},{default:b(()=>[(h(!0),C(Me,null,ft(a.value,g=>(h(),V(i(Vn),{key:g,class:At(["ai-session-model-menu__item",{"ai-session-model-menu__item--selected":e.reasoningEffort===g}]),onSelect:y=>s("selectReasoningEffort",g)},{default:b(()=>[d("span",IHe,[d("strong",null,f(g),1)]),e.reasoningEffort===g?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))),128))]),_:1},8,["collision-padding"])]),_:1})],64)):W("",!0)])]),_:1})]),_:1},8,["side","align","collision-padding","side-offset"]))}}),UZ=kn(AHe,[["__scopeId","data-v-48d35e43"]]),CHe=["aria-busy"],xHe=["title","aria-label","onClick"],EHe=["alt","src"],THe={class:"ai-session-composer__file-icon"},NHe=["title"],RHe=["title"],MHe=["aria-label","aria-valuenow"],$He=["title","aria-label","disabled","onClick"],OHe={class:"ai-session-composer__input-anchor"},PHe={key:0,class:"ai-session-mention-popover__state"},DHe=["aria-label"],LHe={class:"ai-session-mention-popover__group-label"},BHe=["disabled","aria-selected","onMouseenter","onClick"],FHe={class:"ai-session-mention-popover__icon"},zHe={class:"ai-session-mention-popover__copy"},UHe={key:1,class:"ai-session-mention-popover__state"},HHe={key:2,class:"ai-session-mention-popover__state ai-session-mention-popover__state--error"},VHe={key:3,class:"ai-session-mention-popover__state"},qHe=["aria-label"],jHe={class:"ai-session-mention-popover__group-label"},WHe=["aria-selected","onMouseenter","onClick"],KHe={class:"ai-session-mention-popover__icon"},GHe=["src"],YHe={class:"ai-session-mention-popover__copy"},QHe={class:"ai-session-composer__toolbar"},ZHe={key:0,class:"ai-session-composer__editing"},XHe=["title","aria-label","disabled"],JHe={key:1,class:"ai-session-composer__leading"},eVe=["title","aria-label","disabled"],tVe=["data-danger","disabled","aria-label","title"],nVe={class:"ai-session-permission-menu__copy"},sVe={class:"ai-session-composer__actions"},oVe=["title","aria-label","disabled"],iVe=["aria-label"],aVe=["aria-label","disabled"],rVe=["disabled","aria-label","aria-busy"],lVe=["data-action","disabled","title","aria-label"],cVe=6,uVe=20*1024*1024,dVe=40*1024*1024,pVe=st({__name:"AiSessionComposer",props:{modelValue:{},attachments:{},busy:{type:Boolean},disabled:{type:Boolean},canInterrupt:{type:Boolean},placeholder:{},mentionBindings:{},mentionContext:{},maxFileAttachmentBytes:{},mentionTrigger:{},commandTrigger:{},sessionBusy:{type:Boolean},provider:{},permissionKey:{},permissionMode:{},defaultPermissionMode:{},permissionModes:{},editingLabel:{},modelGroups:{},modelSelection:{},modelSelectionPending:{type:Boolean},modelSelectionEnabled:{type:Boolean},reasoningEffort:{},reasoningEffortEnabled:{type:Boolean},reasoningEffortPending:{type:Boolean},attachmentsDisabled:{type:Boolean},submitKind:{},submitLabel:{},submitHidden:{type:Boolean}},emits:["update:modelValue","update:attachments","update:mentionBindings","update:permissionMode","run","steer","command","cancelEdit","selectModel","openModelSettings","selectReasoningEffort"],setup(e,{expose:t,emit:n}){const s=e,o=n,{locale:a,t:r}=An(),l=E({get:()=>s.modelValue,set:Ve=>o("update:modelValue",String(Ve))}),c=new Set(["image/bmp","image/gif","image/jpeg","image/png","image/webp"]),u=D(),p=D(),g=E(()=>s.attachments||[]),y=E(()=>s.mentionBindings||[]),v=E(()=>s.mentionTrigger||"@"),w=E(()=>s.commandTrigger||"/"),k=$Ae(()=>s.mentionContext,r),A=D(0),_=D(!1),S=D(""),I=D(0),x=E(()=>aHe(S.value)),T=D(),R=D(0),M=E(()=>!!s.editingLabel),$=E(()=>!M.value&&!s.busy&&(k.open.value||_.value)),O=D("20px"),F=["plugin","skill","file","directory","app"],B=E(()=>F.map(Ve=>({kind:Ve,label:r(`sessions.composer.${Ve==="plugin"?"plugins":Ve==="skill"?"skills":Ve==="file"?"files":Ve==="directory"?"directories":"apps"}`),candidates:k.candidates.value.filter(nt=>nt.kind===Ve),diagnostics:k.diagnostics.value.filter(nt=>nt.category===(Ve==="skill"?"skills":Ve==="plugin"?"plugins":Ve==="app"?"apps":"files"))})).filter(Ve=>Ve.candidates.length||Ve.diagnostics.length)),N=E(()=>_.value?x.value.length?30+x.value.length*36:40:B.value.length?B.value.reduce((Ve,nt)=>Ve+30+nt.candidates.length*36+nt.diagnostics.length*40,0):40),z=E(()=>s.modelValue.trim().length>0||g.value.length>0),H=E(()=>M.value||s.submitKind==="save"?"save":z.value||!s.canInterrupt?"send":"stop"),U=E(()=>!s.disabled&&(M.value?s.modelValue.trim().length>0:z.value||!s.busy&&s.canInterrupt)),L=E(()=>!M.value&&s.sessionBusy&&z.value),K=E(()=>s.busy?H.value==="stop"?r("sessions.composer.stopping"):H.value==="save"?r("sessions.composer.saving"):r("sessions.composer.sending"):s.submitLabel?s.submitLabel:H.value==="stop"?r("sessions.composer.stopTurn"):H.value==="save"?r("sessions.composer.saveQueuedMessage"):r("sessions.composer.send")),G=E(()=>!!(M.value||s.busy||s.modelValue.length||s.mentionContext?.provider!=="codex")),Q=dHe(()=>s.permissionKey||s.mentionContext?.sessionId||"",()=>s.defaultPermissionMode||"ask"),J=E({get:()=>s.permissionMode??Q.value,set:Ve=>{s.permissionMode!==void 0?o("update:permissionMode",Ve):Q.value=Ve}}),ee=E(()=>[{value:"ask",label:r("sessions.permission.ask"),description:r("sessions.composer.askDescription"),icon:hre},{value:"auto-review",label:r("sessions.permission.autoReview"),description:r("sessions.composer.autoReviewDescription"),icon:s6},{value:"full-access",label:r("sessions.permission.fullAccess"),description:r("sessions.composer.fullAccessDescription"),icon:n4,danger:!0}].filter(nt=>(s.permissionModes||[]).includes(nt.value))),ie=E(()=>ee.value.find(Ve=>Ve.value===J.value)||ee.value[0]),le=E(()=>s.modelGroups||[]),oe=E(()=>le.value.flatMap(Ve=>Ve.models)),ae=E(()=>s.modelSelection||oe.value[0]),te=E(()=>{const Ve=ae.value;return Ve?oe.value.find(nt=>Cd(nt,Ve)):void 0}),Z=E(()=>te.value?.modelName||ae.value?.modelName||(s.reasoningEffortEnabled?r("sessions.composer.reasoningEffort"):void 0)||r("sessions.composer.modelSelectionUnavailable")),Ce=E(()=>te.value?.providerName||r("sessions.composer.selectionNotSet")),Fe=D(),Pe=D(!1),fe=D(!1),be=E(()=>!!(s.busy||s.sessionBusy||s.modelSelectionPending||s.reasoningEffortPending||oe.value.length<=1&&!s.reasoningEffortEnabled)),ue=E(()=>oe.value.length===0&&!s.reasoningEffortEnabled),ye=E(()=>ue.value&&s.modelSelectionEnabled===!1);function ke(Ve){Ve instanceof PointerEvent&&Ve.pointerType==="touch"||Pe.value||(fe.value=!0)}function ve(){fe.value=!1}function xe(Ve){Pe.value=Ve,Ve&&ve()}function se(){const Ve=de();if(!Ve)return;const nt=u.value,Ut=nt?He(nt):0,rn=Number.parseFloat(getComputedStyle(Ve).minHeight)||42,$n=nt?Array.from(nt.children).reduce((Ke,ht)=>ht===Ve||ht.contains(Ve)?Ke:Ke+ht.getBoundingClientRect().height,0):0,xs=Ut>0?Math.max(rn,Ut-$n):Number.POSITIVE_INFINITY;Ve.style.height="auto";const tt=Math.min(Ve.scrollHeight,xs);Ve.style.height=`${tt}px`,Ve.style.overflowY=Ve.scrollHeight>xs?"auto":"hidden"}function de(){const Ve=p.value;return Ve instanceof HTMLTextAreaElement?Ve:Ve?.$el instanceof HTMLTextAreaElement?Ve.$el:void 0}function De(){vn(()=>de()?.focus())}t({focus:De});let me=!1;function Be(){me=!0,vn(()=>{!s.busy&&me&&(me=!1,de()?.focus())})}function He(Ve){const nt=Number.parseFloat(getComputedStyle(Ve).maxHeight);return Number.isFinite(nt)&&nt>0?nt:Ve.scrollHeight>Ve.clientHeight?Ve.getBoundingClientRect().height:0}ze(()=>s.modelValue,()=>{vn(se)},{immediate:!0}),ze(g,(Ve,nt)=>{for(const Ut of nt||[])Ut.previewUrl&&Ut.source.type!=="retained"&&!Ve.some(rn=>rn.id===Ut.id)&&URL.revokeObjectURL(Ut.previewUrl);T.value&&!Ve.some(Ut=>Ut.id===T.value?.id)&&Kt(),vn(se)});function Le(Ve){return Ve.type.startsWith("image/")||/\.(?:bmp|gif|jpe?g|png|webp)$/i.test(Ve.name)?"image":"file"}function Ee(Ve,nt,Ut=new Set){const rn=[];let xs=g.value.reduce((tt,Ke)=>tt+(Ke.source.type==="inline"?Ke.size:0),0);for(const tt of Ve){const Ke=Le(tt),ht=tt.type||(Ke==="image"?"image/png":"application/octet-stream"),Ot=nt.has(tt);if(Ke==="image"&&!c.has(ht)){It(r("sessions.composer.supportedImages"),"error");continue}if(tt.size<=0){It(r("sessions.composer.emptyFile"),"error");continue}if(!Ot&&Ke==="image"&&tt.size>uVe){It(r("sessions.composer.imageTooLarge"),"error");continue}if(!Ot&&Ke==="file"&&tt.size>=(s.maxFileAttachmentBytes||uh)){It(Ut.has(tt)?r("sessions.composer.runtimePathOutside"):s.mentionContext?.runtimeType==="local"?r("sessions.composer.browserPathUnavailable"):r("sessions.composer.fileTooLarge"),"error");continue}if(g.value.length+rn.length>=cVe){It(r("sessions.composer.tooManyAttachments"),"error");continue}if(!Ot&&xs+tt.size>dVe){It(r("sessions.composer.totalTooLarge"),"error");continue}Ot||(xs+=tt.size),rn.push(tt)}return rn}async function kt(Ve,nt=new Map){if(s.busy)return;const Ut=window.taskHandoffDesktop,rn=new Map,$n=new Set;if(s.mentionContext?.runtimePathAccess==="desktop-local"&&Ut?.getPathForFile)for(const tt of Ve)try{const Ke=await Promise.resolve(Ut.getPathForFile(tt));Ke&&ot(Ke,s.mentionContext.cwd)?rn.set(tt,Ke):Ke&&$n.add(tt)}catch{}const xs=Ee(Ve,new Set(rn.keys()),$n);xs.length&&Promise.all(xs.map(tt=>vt(tt,rn.get(tt),nt.get(tt)))).then(tt=>{o("update:attachments",[...g.value,...tt])})}function ot(Ve,nt){const Ut=We(Ve),rn=We(nt);return!!(Ut&&rn&&(rn==="/"||Ut===rn||Ut.startsWith(`${rn}/`)))}function We(Ve){if(!Ve.startsWith("/"))return"";const nt=[];for(const Ut of Ve.split("/"))!Ut||Ut==="."||(Ut===".."?nt.pop():nt.push(Ut));return`/${nt.join("/")}`}function vt(Ve,nt,Ut){const rn=Le(Ve),$n={id:`local_${Date.now()}_${Math.random().toString(16).slice(2)}`,kind:rn,name:Ve.name||(rn==="image"?"image.png":"attachment"),mime:Ve.type||(rn==="image"?"image/png":"application/octet-stream"),size:Ve.size};return nt?Promise.resolve({...$n,source:{type:"runtime-path",path:nt},...rn==="image"?{file:Ve}:{},...rn==="image"?{previewUrl:URL.createObjectURL(Ve)}:{}}):new Promise((xs,tt)=>{const Ke=new FileReader;Ke.addEventListener("load",()=>{xs({...$n,source:{type:"inline"},dataUrl:String(Ke.result||""),file:Ve,textPresentation:Ut})}),Ke.addEventListener("error",()=>tt(Ke.error||new Error(r("sessions.composer.readFailed")))),Ke.readAsDataURL(Ve)})}function ct(Ve){s.busy||o("update:attachments",g.value.filter(nt=>nt.id!==Ve))}function sn(Ve){return ef(Ve,a.value)}function hn(Ve){return r("sessions.composer.textLength",{count:H4e(Ve,a.value,{maximumFractionDigits:0})})}function ns(Ve){Ve.kind==="image"&&(T.value=Ve)}function Kt(){T.value=void 0}function un(Ve){return r("sessions.composer.uploadProgress",{progress:Math.round((Ve.uploadProgress||0)*100)})}async function cn(Ve){const nt=Ve.previewUrl||Ve.dataUrl;if(!nt||!navigator.clipboard?.write||typeof ClipboardItem>"u"){It(r("sessions.composer.copyImageFailed"),"error");return}try{const Ut=await fetch(nt).then($n=>$n.blob()),rn=Ut.type==="image/png"?Ut:await Kn(Ut);await navigator.clipboard.write([new ClipboardItem({"image/png":rn})]),It(r("sessions.composer.imageCopied"),"success")}catch{It(r("sessions.composer.copyImageFailed"),"error")}}async function Kn(Ve){const nt=await createImageBitmap(Ve);try{const Ut=document.createElement("canvas");Ut.width=nt.width,Ut.height=nt.height;const rn=Ut.getContext("2d");if(!rn)throw new Error("Canvas is unavailable.");return rn.drawImage(nt,0,0),await new Promise(($n,xs)=>Ut.toBlob(tt=>{tt?$n(tt):xs(new Error("Image conversion failed."))},"image/png"))}finally{nt.close()}}function Gn(Ve){if(M.value||s.attachmentsDisabled||s.busy)return;const nt=Array.from(Ve.clipboardData?.files||[]);if(nt.length){Ve.preventDefault(),kt(nt);return}const Ut=Ve.clipboardData?.getData("text/plain")||"",rn=ake(Ut,R.value+1,s.maxFileAttachmentBytes||uh);if(rn.disposition==="inline")return;if(Ve.preventDefault(),rn.disposition==="rejected"){It(r("sessions.composer.fileTooLarge"),"error");return}R.value+=1;const $n=new globalThis.File([rn.file.text],rn.file.name,{type:rn.file.mime});kt([$n],new Map([[$n,rn.file.presentation]]))}function Rt(Ve){if(s.attachmentsDisabled){Ve.dataTransfer?.files.length&&Ve.preventDefault();return}if(s.busy||M.value)return;const nt=Array.from(Ve.dataTransfer?.files||[]);nt.length&&(Ve.preventDefault(),kt(nt))}function Ge(){if(!s.submitHidden&&!s.busy&&U.value){Be();const Ve=M.value?void 0:lHe(s.modelValue.trim(),w.value,s.mentionContext?.provider);if(Ve){o("command",Ve);return}o("run",ie.value?.value)}}function Ae(Ve){if(!s.busy&&!Ve.isComposing){if(Ve.key==="Enter"&&Ve.ctrlKey&&!Ve.metaKey&&!Ve.altKey&&!Ve.shiftKey&&L.value){Ve.preventDefault(),Ve.stopPropagation(),o("steer");return}if(Ve.key==="ArrowDown"||Ve.key==="ArrowUp"){Ie(Ve.key==="ArrowDown"?1:-1)&&(Ve.preventDefault(),Ve.stopPropagation());return}if(_.value){const nt=x.value[I.value];if((Ve.key==="Enter"||Ve.key==="Tab")&&nt&&!(s.sessionBusy&&nt.requiresIdle)){Ve.preventDefault(),rt(nt);return}if(Ve.key==="Escape"){Ve.preventDefault(),_.value=!1;return}}if(k.open.value){if((Ve.key==="Enter"||Ve.key==="Tab")&&k.candidates.value[A.value]){Ve.preventDefault(),qe(k.candidates.value[A.value]);return}if(Ve.key==="Escape"){Ve.preventDefault(),k.close();return}}Ve.key!=="Enter"||Ve.shiftKey||Ve.isComposing||s.submitHidden||(Ve.preventDefault(),Ge())}}function Ie(Ve){if(s.busy)return!1;if(_.value){const Ut=x.value.length;return Ut?(I.value=(I.value+Ve+Ut)%Ut,vn(()=>document.querySelector(".ai-session-mention-popover__item--active")?.scrollIntoView({block:"nearest"})),!0):!1}if(!k.open.value)return!1;const nt=k.candidates.value.length;return nt?(A.value=(A.value+Ve+nt)%nt,vn(()=>document.querySelector(".ai-session-mention-popover__item--active")?.scrollIntoView({block:"nearest"})),!0):!1}function Je(Ve){const nt=Ve.target;o("update:mentionBindings",mW(nt.value,y.value)),et(nt.value,nt.selectionStart),se()}function ge(Ve){["ArrowLeft","ArrowRight","Home","End"].includes(Ve.key)&&et()}function et(Ve=s.modelValue,nt=de()?.selectionStart??Ve.length){if(s.busy){k.close(),_.value=!1;return}const Ut=DZ(Ve,nt,w.value);if(Ut&&s.mentionContext?.provider==="codex"){k.close(),_.value=!0,S.value=Ut.query,I.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px";return}_.value=!1;const rn=fW(Ve,nt,v.value);if(!rn){k.close();return}A.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px",k.show(rn.query)}function Yt(){if(G.value)return;const Ve=w.value;o("update:modelValue",Ve),o("update:mentionBindings",[]),k.close(),_.value=!0,S.value="",I.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px",vn(()=>{const nt=de();nt?.focus(),nt?.setSelectionRange(Ve.length,Ve.length),se()})}function rt(Ve,nt){if(nt?.preventDefault(),s.busy||s.sessionBusy&&Ve.requiresIdle)return;const Ut=de(),rn=rHe(Ut?.value??s.modelValue,Ut?.selectionStart??s.modelValue.length,w.value,Ve);rn&&(o("update:modelValue",rn.value),_.value=!1,vn(()=>{const $n=de();$n?.focus(),$n?.setSelectionRange(rn.cursor,rn.cursor),se()}))}function Vt(Ve){return Ve.name==="review"?Vle:Ve.name==="rename"?br:Ve.name==="goal"?fce:e6}function qe(Ve,nt){if(nt?.preventDefault(),s.busy)return;const Ut=de(),rn=TAe({value:Ut?.value??s.modelValue,cursor:Ut?.selectionStart??s.modelValue.length,trigger:v.value,candidate:Ve,bindings:y.value});rn&&(o("update:modelValue",rn.value),o("update:mentionBindings",rn.bindings),k.close(),vn(()=>{const $n=de();$n?.focus(),$n?.setSelectionRange(rn.cursor,rn.cursor),se()}))}function Xe(Ve){return Ve.kind==="plugin"?Ole:Ve.kind==="skill"?Dce:Ve.kind==="file"?Z2:Ve.kind==="directory"?na:Ve.kind==="app"?Ab:W0}function Qe(Ve){const nt=k.candidates.value.findIndex(Ut=>Ut.kind===Ve.kind&&Ut.path===Ve.path);nt>=0&&(A.value=nt)}function zt(Ve){const nt=k.candidates.value[A.value];return nt?.kind===Ve.kind&&nt.path===Ve.path}return ze(()=>k.candidates.value.length,Ve=>{Ve?A.value=Math.min(A.value,Ve-1):A.value=0}),ze(v,()=>k.close()),ze(w,()=>{_.value=!1}),ze(()=>s.busy,Ve=>{Ve?(k.close(),_.value=!1):me&&(me=!1,De())}),(Ve,nt)=>(h(),C("form",{ref_key:"composerEl",ref:u,class:"ai-session-composer","aria-busy":e.busy,onDrop:Rt,onDragover:nt[16]||(nt[16]=nn(()=>{},["prevent"])),onSubmit:nn(Ge,["prevent"])},[g.value.length?fi((h(),C("div",{key:0,class:"ai-session-composer__attachments",onScroll:nt[0]||(nt[0]=(...Ut)=>i(II)&&i(II)(...Ut)),onWheel:nt[1]||(nt[1]=(...Ut)=>i(AI)&&i(AI)(...Ut))},[(h(!0),C(Me,null,ft(g.value,Ut=>(h(),C("figure",{key:Ut.id,class:At({"ai-session-composer__file":Ut.kind==="file"})},[Ut.kind==="image"?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__image-trigger",title:i(r)("sessions.composer.previewImage",{name:Ut.name}),"aria-label":i(r)("sessions.composer.previewImage",{name:Ut.name}),onClick:rn=>ns(Ut)},[d("img",{alt:Ut.name,src:Ut.previewUrl||Ut.dataUrl},null,8,EHe)],8,xHe)]),_:2},1024),m(i(Bc),null,{default:b(()=>[m(i(Ts),{onSelect:rn=>cn(Ut)},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(r)("sessions.composer.copyImage")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)):(h(),C(Me,{key:1},[d("span",THe,[Ut.textPresentation?(h(),V(i(G0),{key:0,size:22})):(h(),V(i(Z2),{key:1,size:22}))]),d("figcaption",null,[d("strong",{title:Ut.name},f(Ut.name),9,NHe),Ut.textPresentation?(h(),C("span",{key:0,class:"ai-session-composer__file-summary",title:Ut.textPresentation.summary||i(r)("sessions.composer.blankPastedText")},f(Ut.textPresentation.summary||i(r)("sessions.composer.blankPastedText")),9,RHe)):W("",!0),d("span",null,[Ut.textPresentation?(h(),C(Me,{key:0},[j(f(hn(Ut.textPresentation.codePointLength))+" · ",1)],64)):W("",!0),j(f(sn(Ut.size)),1),Ut.source.type==="runtime-path"?(h(),C(Me,{key:1},[j(" · "+f(i(r)("sessions.composer.localPath")),1)],64)):W("",!0)])])],64)),Ut.uploadState==="uploading"?(h(),C("div",{key:2,class:"ai-session-composer__upload-progress",role:"progressbar","aria-label":un(Ut),"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":Math.round((Ut.uploadProgress||0)*100)},[d("span",null,f(Math.round((Ut.uploadProgress||0)*100))+"%",1),d("i",{style:Qn({width:`${Math.round((Ut.uploadProgress||0)*100)}%`})},null,4)],8,MHe)):W("",!0),d("button",{class:"ai-session-composer__remove",type:"button",title:i(r)("sessions.composer.removeAttachment"),"aria-label":i(r)("sessions.composer.removeAttachment"),disabled:e.busy,onClick:rn=>ct(Ut.id)},[m(i($o),{size:14})],8,$He)],2))),128))],32)),[[i(BZ)]]):W("",!0),m(FZ,{open:!!T.value,src:T.value?.previewUrl||T.value?.dataUrl,alt:T.value?.name,copyable:!!T.value,"onUpdate:open":nt[2]||(nt[2]=Ut=>{Ut||Kt()}),onCopy:nt[3]||(nt[3]=Ut=>T.value&&cn(T.value))},null,8,["open","src","alt","copyable"]),m(i(Ur),{open:$.value,"onUpdate:open":nt[10]||(nt[10]=Ut=>{Ut||(i(k).close(),_.value=!1)})},{default:b(()=>[m(i($8),{"as-child":""},{default:b(()=>[d("div",OHe,[m(i(Od),{ref_key:"inputEl",ref:p,modelValue:l.value,"onUpdate:modelValue":nt[4]||(nt[4]=Ut=>l.value=Ut),class:"ai-session-composer__input",disabled:e.busy,placeholder:e.placeholder||i(r)("sessions.composer.followUp"),rows:"3",onKeydown:Ae,onInput:Je,onClick:nt[5]||(nt[5]=Ut=>et()),onKeyup:ge,onPaste:Gn},null,8,["modelValue","disabled","placeholder"])])]),_:1}),m(i(Hr),{class:"ai-session-mention-popover","data-ai-session-composer-overlay":"","data-active-index":A.value,side:"top",align:"start","side-offset":8,style:Qn({width:"var(--reka-popover-trigger-width)",borderRadius:O.value,padding:"4px"}),onOpenAutoFocus:nt[8]||(nt[8]=nn(()=>{},["prevent"])),onCloseAutoFocus:nt[9]||(nt[9]=nn(()=>{},["prevent"]))},{default:b(()=>[m(i(Zn),{type:"auto",horizontal:!1,class:"ai-session-mention-popover__list",role:"listbox",style:Qn({"--ai-session-mention-list-height":`${N.value}px`})},{default:b(()=>[_.value?(h(),C(Me,{key:0},[x.value.length?(h(),C("section",{key:1,class:"ai-session-mention-popover__group",role:"group","aria-label":i(r)("sessions.composer.commands")},[d("div",LHe,f(i(r)("sessions.composer.commands")),1),(h(!0),C(Me,null,ft(x.value,(Ut,rn)=>(h(),C("button",{key:Ut.name,type:"button",role:"option",class:At(["ai-session-mention-popover__item",{"ai-session-mention-popover__item--active":I.value===rn}]),disabled:e.sessionBusy&&Ut.requiresIdle,"aria-selected":I.value===rn,onMouseenter:$n=>I.value=rn,onMousedown:nt[6]||(nt[6]=nn(()=>{},["prevent"])),onClick:$n=>rt(Ut,$n)},[d("span",FHe,[(h(),V(Ms(Vt(Ut)),{size:12}))]),d("span",zHe,[d("strong",null,[j(f(w.value)+f(Ut.name),1),Ut.argumentHintKey?(h(),C(Me,{key:0},[j(" <"+f(i(r)(Ut.argumentHintKey))+">",1)],64)):W("",!0)]),d("span",null,[j(f(i(r)(Ut.descriptionKey)),1),e.sessionBusy&&Ut.requiresIdle?(h(),C(Me,{key:0},[j(" · "+f(i(r)("sessions.composer.availableIdle")),1)],64)):W("",!0)])])],42,BHe))),128))],8,DHe)):(h(),C("div",PHe,f(i(r)("sessions.composer.noMatches")),1))],64)):i(k).loading.value&&!i(k).candidates.value.length?(h(),C("div",UHe,f(i(r)("sessions.composer.loading")),1)):i(k).error.value&&!i(k).candidates.value.length?(h(),C("div",HHe,f(i(k).error.value),1)):B.value.length?W("",!0):(h(),C("div",VHe,f(i(r)("sessions.composer.noMatches")),1)),(h(!0),C(Me,null,ft(B.value,Ut=>(h(),C("section",{key:Ut.kind,class:"ai-session-mention-popover__group",role:"group","aria-label":Ut.label},[d("div",jHe,f(Ut.label),1),(h(!0),C(Me,null,ft(Ut.candidates,rn=>(h(),C("button",{key:`${rn.kind}:${rn.path}`,type:"button",role:"option",class:At(["ai-session-mention-popover__item",{"ai-session-mention-popover__item--active":zt(rn)}]),"aria-selected":zt(rn),onMouseenter:$n=>Qe(rn),onMousedown:nt[7]||(nt[7]=nn(()=>{},["prevent"])),onClick:$n=>qe(rn,$n)},[d("span",KHe,[rn.icon?(h(),C("img",{key:0,src:rn.icon,alt:""},null,8,GHe)):(h(),V(Ms(Xe(rn)),{key:1,size:12}))]),d("span",YHe,[d("strong",null,f(rn.name),1),d("span",null,f(rn.description||rn.path),1)])],42,WHe))),128)),(h(!0),C(Me,null,ft(Ut.diagnostics,rn=>(h(),C("p",{key:rn.code,class:"ai-session-mention-popover__diagnostic"},f(rn.message),1))),128))],8,qHe))),128))]),_:1},8,["style"])]),_:1},8,["data-active-index","style"])]),_:1},8,["open"]),d("div",QHe,[e.editingLabel?(h(),C("div",ZHe,[m(i(br),{size:15}),d("span",null,f(e.editingLabel),1),d("button",{type:"button",title:i(r)("sessions.composer.cancelQueuedEdit"),"aria-label":i(r)("sessions.composer.cancelQueuedEdit"),disabled:e.busy,onClick:nt[11]||(nt[11]=Ut=>o("cancelEdit"))},[m(i($o),{size:15})],8,XHe)])):(h(),C("div",JHe,[d("button",{type:"button",class:"ai-session-composer__tool",title:i(r)("sessions.composer.commands"),"aria-label":i(r)("sessions.composer.openCommands"),disabled:G.value,onClick:Yt},[m(i(Hs),{size:18})],8,eVe),ee.value.length?(h(),V(i(Ws),{key:0},{default:b(()=>[m(i(Ks),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__permission-trigger","data-danger":ie.value.danger||void 0,disabled:e.busy||e.sessionBusy,"aria-label":i(r)("sessions.composer.permissionMode",{mode:ie.value.label}),title:i(r)("sessions.composer.choosePermission")},[(h(),V(Ms(ie.value.icon),{size:16})),d("span",null,f(ie.value.label),1)],8,tVe)]),_:1}),m(i(Zs),{class:"ai-session-permission-menu",side:"top",align:"start","side-offset":8},{default:b(()=>[(h(!0),C(Me,null,ft(ee.value,Ut=>(h(),V(i(Vn),{key:Ut.value,class:"ai-session-permission-menu__item","data-danger":Ut.danger||void 0,onSelect:rn=>J.value=Ut.value},{default:b(()=>[(h(),V(Ms(Ut.icon),{size:18})),d("span",nVe,[d("strong",null,f(Ut.label),1),d("small",null,f(Ut.description),1)]),J.value===Ut.value?(h(),V(i(Qs),{key:0,class:"ai-session-permission-menu__check",size:16})):W("",!0)]),_:2},1032,["data-danger","onSelect"]))),128))]),_:1})]),_:1})):W("",!0)])),d("div",sVe,[L.value?(h(),C("button",{key:0,type:"button",class:"ai-session-composer__tool",title:i(r)("sessions.composer.steerTurnShortcut"),"aria-label":i(r)("sessions.composer.steerTurnShortcut"),disabled:e.busy,onClick:nt[12]||(nt[12]=Ut=>o("steer"))},[m(i(vU),{size:18})],8,oVe)):W("",!0),ye.value?(h(),V(i(Fi),{key:1,"delay-duration":200},{default:b(()=>[m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__model-trigger",disabled:"","aria-label":i(r)("sessions.composer.modelSelectionTitle",{model:Z.value})},[d("span",null,f(Z.value),1)],8,iVe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(i(r)("sessions.composer.modelSelectionUnavailable")),1)]),_:1})]),_:1})]),_:1})):ue.value?(h(),V(i(Fi),{key:2,"delay-duration":200},{default:b(()=>[m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__model-trigger","aria-label":i(r)("sessions.composer.noModelConfigured"),disabled:e.busy||e.sessionBusy||e.modelSelectionPending,onClick:nt[13]||(nt[13]=Ut=>o("openModelSettings"))},[d("span",null,f(i(r)("sessions.composer.noModelConfigured")),1)],8,aVe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(i(r)("sessions.composer.openModelSettings")),1)]),_:1})]),_:1})]),_:1})):oe.value.length||e.reasoningEffortEnabled?(h(),V(i(Ws),{key:3,"onUpdate:open":xe},{default:b(()=>[m(i(Ks),{"as-child":""},{default:b(()=>[d("button",{ref_key:"modelTriggerEl",ref:Fe,type:"button",class:"ai-session-composer__model-trigger",disabled:be.value,"aria-label":i(r)("sessions.composer.modelSelectionTitle",{model:Z.value}),"aria-busy":e.modelSelectionPending||void 0,onPointerenter:ke,onPointerleave:ve},[e.modelSelectionPending?(h(),V(i(ws),{key:0,class:"animate-spin motion-reduce:animate-none",size:14})):W("",!0),d("span",null,f(Z.value),1)],40,rVe)]),_:1}),m(i(Fi),{"delay-duration":200},{default:b(()=>[m(i(Ns),{open:fe.value},{default:b(()=>[m(i(js),{reference:Fe.value,as:"span","aria-hidden":"true",class:"ai-session-composer__model-tooltip-anchor"},null,8,["reference"]),m(i(Rs),{class:"ai-session-model-summary-tooltip",align:"end",side:"top","side-offset":8},{default:b(()=>[d("dl",null,[d("div",null,[d("dt",null,f(i(r)("sessions.composer.provider")),1),d("dd",null,f(Ce.value),1)]),d("div",null,[d("dt",null,f(i(r)("sessions.composer.model")),1),d("dd",null,f(Z.value),1)]),d("div",null,[d("dt",null,f(i(r)("sessions.composer.reasoningEffort")),1),d("dd",null,f(e.reasoningEffort||i(r)("sessions.composer.selectionNotSet")),1)])])]),_:1})]),_:1},8,["open"])]),_:1}),m(UZ,{agent:e.provider,"model-groups":le.value,"model-selection":ae.value,"reasoning-effort":e.reasoningEffort,"reasoning-effort-enabled":e.reasoningEffortEnabled,side:"top",align:"end",onSelectModel:nt[14]||(nt[14]=Ut=>o("selectModel",Ut)),onSelectReasoningEffort:nt[15]||(nt[15]=Ut=>o("selectReasoningEffort",Ut))},null,8,["agent","model-groups","model-selection","reasoning-effort","reasoning-effort-enabled"])]),_:1})):W("",!0),e.submitHidden?W("",!0):(h(),C("button",{key:4,type:"submit",class:"ai-session-composer__primary","data-action":H.value,disabled:e.busy||!U.value,title:K.value,"aria-label":K.value},[e.busy?(h(),V(i(ws),{key:0,class:"animate-spin motion-reduce:animate-none",size:18})):H.value==="send"?(h(),V(i(fU),{key:1,size:18})):H.value==="save"?(h(),V(i(Qs),{key:2,size:17})):(h(),V(i(rv),{key:3,size:16}))],8,lVe))])])],40,CHe))}}),R2=kn(pVe,[["__scopeId","data-v-2603e92e"]]),fVe=["data-tone","data-placement"],mVe={class:"ai-session-detail-queue-head"},hVe={class:"ai-session-detail-queue-title"},gVe=["data-paused","disabled","aria-label","title"],vVe=["data-state","onDragenter"],yVe=["aria-disabled","aria-label","draggable","title","onDragstart","onKeydown"],bVe={class:"ai-session-detail-queue-copy"},kVe={key:0},wVe={class:"ai-session-detail-queue-actions"},SVe=["disabled","aria-label","title","onClick"],_Ve=["disabled","title","onClick"],IVe=["disabled","aria-label","title","onClick"],AVe=["disabled","aria-label","title","onClick"],CVe=st({__name:"AiSessionQueue",props:{busy:{type:Boolean,default:!1},canPause:{type:Boolean,default:!1},canInterrupt:{type:Boolean,default:!1},placement:{default:"detail"},queue:{},tone:{default:"detail"}},emits:["editQueuedMessage","removeQueuedMessage","reorderQueuedMessages","retryQueuedMessage","setQueuePaused","steerQueuedMessage"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(""),r=D([]),l=E(()=>n.queue.paused===!0),c=E(()=>n.queue.items.filter(x=>x.status==="queued")),u=E(()=>S(n.queue.items,r.value));function p(){n.busy||!n.canPause||s("setQueuePaused",!l.value)}function g(x,T){const R=c.value.map(O=>O.id),M=R.indexOf(x),$=M+T;M<0||$<0||$>=R.length||([R[M],R[$]]=[R[$],R[M]],s("reorderQueuedMessages",{expectedRevision:n.queue.revision,queueIds:R}))}function y(x,T){if(n.busy){x.preventDefault();return}if(a.value=T,r.value=c.value.map(R=>R.id),x.dataTransfer){x.dataTransfer.effectAllowed="move",x.dataTransfer.setData("text/plain",T);const R=x.currentTarget?.closest(".ai-session-detail-queue-item");R&&x.dataTransfer.setDragImage(R,8,R.offsetHeight/2)}}function v(x){if(!a.value||x===a.value||!c.value.some($=>$.id===x))return;const T=r.value,R=T.indexOf(a.value),M=T.indexOf(x);R<0||M<0||(r.value=_(T,R,M))}function w(){if(!a.value)return;const x=[...r.value],T=I(x,c.value.map(R=>R.id));k(),T||s("reorderQueuedMessages",{expectedRevision:n.queue.revision,queueIds:x})}function k(){a.value="",r.value=[]}function A(x,T){n.busy||!["ArrowUp","ArrowDown"].includes(x.key)||(x.preventDefault(),g(T,x.key==="ArrowUp"?-1:1))}function _(x,T,R){if(T<0||R<0||T>=x.length||R>=x.length||T===R)return[...x];const M=[...x],[$]=M.splice(T,1);return M.splice(R,0,$),M}function S(x,T){if(!T.length)return[...x];const R=new Map(x.filter(O=>O.status==="queued").map(O=>[O.id,O])),M=T.map(O=>R.get(O)).filter(O=>!!O);let $=0;return x.map(O=>O.status==="queued"&&M[$++]||O)}function I(x,T){return x.length===T.length&&x.every((R,M)=>R===T[M])}return ze(()=>n.queue.revision,k),(x,T)=>(h(),C("section",{class:"ai-session-detail-queue","data-tone":e.tone,"data-placement":e.placement},[d("header",mVe,[m(i(Rre),{size:14,"aria-hidden":"true"}),d("span",hVe,f(i(o)("sessions.activity.queue",{count:e.queue.pendingCount})),1),e.canPause?(h(),C("button",{key:0,type:"button",class:"ai-session-detail-queue-pause","data-paused":l.value?"true":void 0,disabled:e.busy,"aria-label":l.value?i(o)("sessions.activity.resumeQueue"):i(o)("sessions.activity.pauseQueue"),title:l.value?i(o)("sessions.activity.resumeQueue"):i(o)("sessions.activity.pauseQueue"),onClick:p},[l.value?(h(),V(i(bu),{key:0,size:13})):(h(),V(i(n6),{key:1,size:13}))],8,gVe)):W("",!0)]),m(i(Zn),{type:"auto",class:"ai-session-detail-queue-list",horizontal:!1},{default:b(()=>[(h(!0),C(Me,null,ft(u.value,R=>(h(),C("article",{key:R.id,class:At(["ai-session-detail-queue-item",{"ai-session-detail-queue-item-dragging":a.value===R.id}]),"data-state":R.status,onDragenter:nn(M=>v(R.id),["prevent"]),onDragover:T[0]||(T[0]=nn(()=>{},["prevent"])),onDrop:nn(w,["prevent"])},[R.status==="queued"?(h(),C("div",{key:0,class:"ai-session-detail-queue-drag-handle","aria-disabled":e.busy,"aria-label":i(o)("sessions.activity.reorder"),draggable:!e.busy,role:"button",tabindex:"0",title:i(o)("sessions.activity.reorder"),onDragend:k,onDragstart:M=>y(M,R.id),onKeydown:M=>A(M,R.id)},[m(i(X2),{size:17,"stroke-width":1.8})],40,yVe)):(h(),V(i(X2),{key:1,class:"ai-session-detail-queue-icon",size:17,"stroke-width":1.8})),d("div",bVe,[d("p",null,f(R.message),1),R.error?(h(),C("small",kVe,f(R.error),1)):W("",!0)]),d("div",wVe,[R.status==="queued"?(h(),C("button",{key:0,type:"button",disabled:e.busy,"aria-label":i(o)("sessions.activity.edit"),title:i(o)("sessions.activity.edit"),onClick:M=>x.$emit("editQueuedMessage",{queueId:R.id,message:R.message})},[m(i(br),{size:15})],8,SVe)):W("",!0),d("button",{type:"button",disabled:e.busy||!e.canInterrupt,title:i(o)("sessions.activity.steer"),onClick:M=>x.$emit("steerQueuedMessage",R.id)},[m(i(vU),{size:15}),d("span",null,f(i(o)("sessions.activity.steer")),1)],8,_Ve),R.status==="failed"?(h(),C("button",{key:1,type:"button",disabled:e.busy,"aria-label":i(o)("sessions.activity.retry"),title:i(o)("sessions.activity.retry"),onClick:M=>x.$emit("retryQueuedMessage",R.id)},[m(i(sm),{size:15})],8,IVe)):W("",!0),d("button",{type:"button",class:"ai-session-detail-queue-remove",disabled:e.busy,"aria-label":i(o)("sessions.activity.remove"),title:i(o)("sessions.activity.remove"),onClick:M=>x.$emit("removeQueuedMessage",R.id)},[m(i(Fo),{size:15})],8,AVe)])],42,vVe))),128))]),_:1})],8,fVe))}}),RR=kn(CVe,[["__scopeId","data-v-fd6aa3f7"]]),xVe=48,mk=new Map;function MR(e){let t=mk.get(e);return t||(t={references:0,lastUsedAt:Date.now(),state:lz({status:"idle"})},mk.set(e,t)),t}function KL(e){return MR(e).state}function EVe(e){const t=MR(e);return t.references+=1,t.lastUsedAt=Date.now(),t.state.status==="idle"&&HZ(e),t.state}function GL(e){const t=mk.get(e);t&&(t.references=Math.max(0,t.references-1),t.lastUsedAt=Date.now(),VZ())}function TVe(e){return HZ(e,!0)}async function HZ(e,t=!1){const n=MR(e);if(!(!t&&(n.state.status==="loading"||n.state.status==="ready"))){n.state.src&&URL.revokeObjectURL(n.state.src),Object.assign(n.state,{status:"loading",progress:void 0,src:void 0,blob:void 0});try{const s=await fetch(e);if(!s.ok||!s.body)throw new Error("attachment unavailable");const o=Number(s.headers.get("content-length"))||0,a=s.body.getReader(),r=[];let l=0;for(o>0&&(n.state.progress=0);;){const p=await a.read();if(p.done)break;if(!p.value)continue;const g=p.value;r.push(g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)),l+=g.byteLength,o>0&&(n.state.progress=Math.min(99,Math.round(l/o*100)))}const c=new Blob(r,{type:s.headers.get("content-type")||"application/octet-stream"}),u=URL.createObjectURL(c);Object.assign(n.state,{status:"ready",progress:100,src:u,blob:c})}catch{Object.assign(n.state,{status:"error",progress:void 0,src:void 0,blob:void 0})}n.lastUsedAt=Date.now(),VZ()}}function VZ(){const e=[...mk.entries()].filter(([,t])=>t.references===0&&t.state.status!=="loading").sort(([,t],[,n])=>t.lastUsedAt-n.lastUsedAt);for(;e.length>xVe;){const[t,n]=e.shift();n.state.src&&URL.revokeObjectURL(n.state.src),mk.delete(t)}}const NVe={class:"ai-session-message-attachment-pills"},RVe=["aria-label","onClick"],MVe=["src","alt"],$Ve=["src","alt"],OVe=["aria-label","aria-valuenow"],PVe=["aria-label","onClick"],DVe=["href","title"],LVe=["title"],BVe={key:0,class:"ai-session-message-images"},FVe=["aria-label","onClick"],zVe=["src","alt"],UVe=["aria-label","aria-valuenow"],HVe={key:0},VVe={key:1},qVe=["aria-label","onClick"],jVe={key:1,class:"ai-session-message-files"},WVe=["href"],KVe=["title"],GVe=st({__name:"AiSessionMessageAttachments",props:{instanceId:{},sessionId:{},messageId:{},attachments:{},compact:{type:Boolean}},setup(e){const t=e,{locale:n,t:s}=An(),o=D(),a=E(()=>t.attachments.filter(k=>k.kind==="image"&&k.contentState==="available")),r=E(()=>t.attachments.filter(k=>k.kind!=="image"||k.contentState!=="available")),l=new Set;function c(k){return KL(u(k))}function u(k){return`/api/controlled-instances/${encodeURIComponent(t.instanceId)}/ai-sessions/${encodeURIComponent(t.sessionId)}/messages/${encodeURIComponent(t.messageId)}/attachments/${encodeURIComponent(k.id)}/content`}function p(k){return ef(k,n.value)}function g(k){TVe(u(k))}function y(){const k=new Set(a.value.map(u));for(const A of l)k.has(A)||(GL(A),l.delete(A));for(const A of t.attachments){if(A.kind!=="image"||A.contentState!=="available")continue;const _=u(A);l.has(_)||(l.add(_),EVe(_))}}ze(()=>t.attachments,y,{deep:!0,immediate:!0}),qs(()=>{for(const k of l)GL(k)});async function v(k){if(!(!navigator.clipboard?.write||typeof ClipboardItem>"u"))try{const _=KL(u(k)).blob||await fetch(u(k)).then(I=>{if(!I.ok)throw new Error("attachment unavailable");return I.blob()}),S=_.type==="image/png"?_:await w(_);await navigator.clipboard.write([new ClipboardItem({"image/png":S})]),It(s("sessions.composer.imageCopied"),"success")}catch{It(s("sessions.composer.copyImageFailed"),"error")}}async function w(k){const A=await createImageBitmap(k);try{const _=document.createElement("canvas");_.width=A.width,_.height=A.height;const S=_.getContext("2d");if(!S)throw new Error("Canvas is unavailable.");return S.drawImage(A,0,0),await new Promise((I,x)=>_.toBlob(T=>T?I(T):x(new Error("PNG conversion failed.")),"image/png"))}finally{A.close()}}return(k,A)=>(h(),C(Me,null,[e.attachments.length?(h(),C("div",{key:0,class:At(["ai-session-message-attachments",{"ai-session-message-attachments-compact":e.compact}])},[e.compact?(h(),V(i(Fi),{key:0,"delay-duration":200},{default:b(()=>[d("div",NVe,[(h(!0),C(Me,null,ft(a.value,_=>(h(),C(Me,{key:_.id},[c(_).status==="ready"?(h(),V(i(Ns),{key:0},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{class:"ai-session-message-attachment-pill image",type:"button","aria-label":i(s)("sessions.composer.previewImage",{name:_.name}),onClick:S=>o.value=_},[d("img",{src:c(_).src,alt:_.name},null,8,MVe),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,RVe)]),_:2},1024),m(i(Rs),{class:"ai-session-compact-image-tooltip",side:"bottom","side-offset":8},{default:b(()=>[d("img",{src:c(_).src,alt:_.name},null,8,$Ve)]),_:2},1024)]),_:2},1024)):c(_).status==="loading"?(h(),C("div",{key:1,class:"ai-session-message-attachment-pill image-loading",role:"progressbar","aria-label":_.name,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c(_).progress},[m(i(ws),{class:"image-loading-icon",size:14,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,OVe)):(h(),C("button",{key:2,class:"ai-session-message-attachment-pill image-error",type:"button","aria-label":i(s)("sessions.detail.retry"),onClick:S=>g(_)},[m(i(sm),{size:14,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,PVe))],64))),128)),(h(!0),C(Me,null,ft(r.value,_=>(h(),C(Me,{key:_.id},[_.contentState==="available"?(h(),C("a",{key:0,class:"ai-session-message-attachment-pill file",href:u(_),target:"_blank",rel:"noopener",title:_.name},[m(i(Z2),{size:14,"aria-hidden":"true"}),d("span",null,f(_.name),1)],8,DVe)):(h(),C("div",{key:1,class:"ai-session-message-attachment-pill unavailable",title:i(s)("sessions.panel.attachmentUnavailable",{name:_.name})},[m(i(I$),{size:14,"aria-hidden":"true"}),d("span",null,f(_.name),1)],8,LVe))],64))),128))])]),_:1})):(h(),C(Me,{key:1},[a.value.length?(h(),C("div",BVe,[(h(!0),C(Me,null,ft(a.value,_=>(h(),C(Me,{key:_.id},[c(_).status==="ready"?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("button",{class:"ai-session-message-image",type:"button","aria-label":_.name,onClick:S=>o.value=_},[d("img",{src:c(_).src,alt:_.name},null,8,zVe)],8,FVe)]),_:2},1024),m(i(Bc),null,{default:b(()=>[m(i(Ts),{onSelect:S=>v(_)},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(s)("sessions.composer.copyImage")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)):c(_).status==="loading"?(h(),C("div",{key:1,class:"ai-session-message-image image-loading",role:"progressbar","aria-label":_.name,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c(_).progress},[m(i(ws),{class:"image-loading-icon",size:23,"aria-hidden":"true"}),c(_).progress!==void 0?(h(),C("strong",HVe,f(c(_).progress)+"%",1)):(h(),C("span",VVe,f(i(s)("sessions.timeline.loading")),1))],8,UVe)):(h(),C("button",{key:2,class:"ai-session-message-image image-error",type:"button","aria-label":i(s)("sessions.detail.retry"),onClick:S=>g(_)},[m(i(sm),{size:19,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.detail.retry")),1)],8,qVe))],64))),128))])):W("",!0),r.value.length?(h(),C("div",jVe,[(h(!0),C(Me,null,ft(r.value,_=>(h(),C(Me,{key:_.id},[_.contentState==="available"?(h(),C("a",{key:0,class:"ai-session-message-attachment file",href:u(_),target:"_blank",rel:"noopener"},[m(i(Z2),{size:18}),d("span",null,[d("strong",null,f(_.name),1),d("small",null,f(p(_.size)),1)]),m(i(vu),{size:14})],8,WVe)):(h(),C("div",{key:1,class:"ai-session-message-attachment unavailable",title:i(s)("sessions.panel.attachmentUnavailable",{name:_.name})},[m(i(I$),{size:18}),d("span",null,[d("strong",null,f(_.name),1),d("small",null,f(i(s)(`sessions.timeline.attachment${_.contentState==="expired"?"Expired":"Missing"}`)),1)])],8,KVe))],64))),128))])):W("",!0)],64))],2)):W("",!0),m(FZ,{open:!!o.value,src:o.value?c(o.value).src||u(o.value):void 0,alt:o.value?.name,copyable:!!o.value,"onUpdate:open":A[0]||(A[0]=_=>{_||(o.value=void 0)}),onCopy:A[1]||(A[1]=_=>o.value&&v(o.value))},null,8,["open","src","alt","copyable"])],64))}}),qZ=kn(GVe,[["__scopeId","data-v-00c54d86"]]),YVe=["aria-label"],QVe=["aria-expanded"],ZVe=["datetime","title"],XVe=st({__name:"AiSessionCompactPrompt",props:{codeTools:{default:void 0},content:{},instanceId:{default:""},sessionId:{default:""},userMessages:{default:()=>[]},timestamp:{},tone:{default:"detail"}},setup(e){const t=e,{locale:n,t:s}=An(),o=D(),a=D(!1),r=D(!1),l=D(!1);let c,u,p;const g=E(()=>w(t.timestamp,{weekday:"short",hour:"2-digit",minute:"2-digit"})),y=E(()=>w(t.timestamp,{dateStyle:"medium",timeStyle:"medium"})),v=E(()=>t.instanceId&&t.sessionId?t.userMessages.filter(I=>I.attachments.length):[]);function w(I,x){return I?new Intl.DateTimeFormat(n.value,x).format(new Date(I)):""}function k(){const I=o.value;!I||r.value||(l.value=I.scrollHeight>I.clientHeight+1)}function A(I){const x=Number.parseFloat(window.getComputedStyle(I).lineHeight);return Number.isFinite(x)?x*3:I.getBoundingClientRect().height}async function _(){const I=o.value;if(!I)return;const x=!r.value,T=I.getBoundingClientRect().height,R=x?I.scrollHeight:A(I);if(u?.cancel(),u=void 0,x||(I.style.maxHeight="none"),r.value=x,await vn(),o.value!==I||window.matchMedia("(prefers-reduced-motion: reduce)").matches){I.style.maxHeight="";return}const M=I.animate([{height:`${T}px`},{height:`${R}px`}],{duration:180,easing:"ease",fill:"both"});u=M,M.finished.then(()=>{u===M&&(I.style.maxHeight="",M.cancel(),u=void 0)}).catch(()=>{})}async function S(){if(!(!t.content||!navigator.clipboard?.writeText)){try{await navigator.clipboard.writeText(t.content)}catch{return}a.value=!0,clearTimeout(c),c=setTimeout(()=>{a.value=!1},1500)}}return ze(()=>t.content,()=>{u?.cancel(),u=void 0,o.value&&(o.value.style.maxHeight=""),r.value=!1,l.value=!1,vn(k)}),xo(()=>{typeof ResizeObserver<"u"&&(p=new ResizeObserver(k),o.value&&p.observe(o.value)),k()}),qs(()=>{clearTimeout(c),u?.cancel(),o.value&&(o.value.style.maxHeight=""),p?.disconnect()}),(I,x)=>(h(),C("div",{class:At(["ai-session-compact-prompt",`ai-session-compact-prompt-${e.tone}`])},[(h(!0),C(Me,null,ft(v.value,T=>(h(),V(qZ,{key:T.id,"instance-id":e.instanceId,"session-id":e.sessionId,"message-id":T.id,attachments:T.attachments,compact:""},null,8,["instance-id","session-id","message-id","attachments"]))),128)),d("div",{ref_key:"contentElement",ref:o,class:At(["ai-session-user-prompt-content",{expanded:r.value,"has-overflow":l.value}])},[e.content?(h(),V(Fu,{key:0,content:e.content,"code-tools":e.codeTools},null,8,["content","code-tools"])):W("",!0)],2),d("footer",{class:"ai-session-user-prompt-actions","aria-label":i(s)("sessions.timeline.turnActions")},[l.value?(h(),C("button",{key:0,type:"button",class:"ai-session-user-prompt-toggle","aria-expanded":r.value,onClick:_},[d("span",null,f(r.value?i(s)("sessions.detail.collapsePrompt"):i(s)("sessions.detail.expand")),1),m(i(co),{size:13,class:At({open:r.value})},null,8,["class"])],8,QVe)):W("",!0),d("time",{class:"ai-session-user-prompt-time",datetime:e.timestamp,title:y.value},f(g.value),9,ZVe),m(i(Re),{type:"button",size:"xs",variant:"ghost",class:"ai-session-user-prompt-copy","aria-label":a.value?i(s)("sessions.markdown.copied"):i(s)("sessions.markdown.copy"),title:a.value?i(s)("sessions.markdown.copied"):i(s)("sessions.markdown.copy"),onClick:S},{default:b(()=>[a.value?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(Ka),{key:1,size:13}))]),_:1},8,["aria-label","title"])],8,YVe)],2))}}),jZ=kn(XVe,[["__scopeId","data-v-09ceb4e6"]]),YL="task-handoff.control-plane.ai-session-queue-placement",sE=gi("composer");let QL=!1;function EA(){QL||(QL=!0,sE.value=window.localStorage?.getItem(YL)==="detail"?"detail":"composer");function e(t){return t!=="detail"&&t!=="composer"?!1:(sE.value=t,window.localStorage?.setItem(YL,t),!0)}return{queuePlacement:sE,setQueuePlacement:e}}function JVe(e=100){let t=0;function n(o,a=!0){const r=Math.max(0,Math.ceil(o));return a?((r>=t||t-r>e)&&(t=r),t):(t=0,0)}function s(){t=0}return{reset:s,update:n}}const eqe={key:1,class:"ai-session-turn-history"},tqe=["aria-expanded","aria-busy"],nqe={key:0,class:"ai-session-turn-history-disclosure"},sqe={class:"ai-session-turn-history-content"},oqe={key:2,class:"ai-session-turn-history-status ai-session-turn-history-empty"},iqe=st({__name:"AiSessionTurnHistory",props:{nodes:{},loading:{type:Boolean},loadable:{type:Boolean},error:{},startedAt:{},endedAt:{},active:{type:Boolean}},emits:["load","retry"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(Date.now()),r=D(!1),l=D(!1);let c;function u(k){l.value&&Zb(k.currentTarget),r.value=!r.value}function p(){r.value=!0,s("retry")}ze(()=>r.value&&n.loadable,k=>{k&&s("load")}),ze(()=>[r.value,n.loading,n.loadable,n.nodes.length],([k,A,_,S])=>{k?!A&&!_&&S>0&&(l.value=!0):l.value=!1});function g(){clearInterval(c),c=void 0,a.value=Date.now(),n.active&&n.startedAt&&!n.endedAt&&(c=setInterval(()=>{a.value=Date.now()},1e3))}const y=E(()=>RCe(n.startedAt,n.endedAt,n.active===!0,a.value)),v=E(()=>{const k=y.value;if(k===void 0)return o("sessions.timeline.processedUnavailable");if(k<60)return o("sessions.timeline.processedSeconds",{seconds:k});const A=Math.floor(k/60);if(A<60)return o("sessions.timeline.processedMinutes",{minutes:A,seconds:k%60});const _=Math.floor(A/60);return _<24?o("sessions.timeline.processedHours",{hours:_,minutes:A%60,seconds:k%60}):o("sessions.timeline.processedDays",{days:Math.floor(_/24),hours:_%24,minutes:A%60,seconds:k%60})}),w=E(()=>({copiedLabel:o("sessions.markdown.copied"),copyLabel:o("sessions.markdown.copy"),plainTextLabel:o("sessions.markdown.plainText")}));return xo(g),qs(()=>clearInterval(c)),ze(()=>[n.active,n.startedAt,n.endedAt],g),(k,A)=>e.error&&!e.nodes.length?(h(),C("button",{key:0,type:"button",class:"ai-session-turn-history-status ai-session-turn-history-retry",onClick:p},[m(i(ko),{size:15}),d("span",null,f(v.value)+" · "+f(i(o)("sessions.timeline.loadFailed")),1)])):e.nodes.length||e.loadable||e.loading?(h(),C("section",eqe,[d("button",{type:"button",class:"ai-session-turn-history-summary","aria-expanded":l.value,"aria-busy":r.value&&(e.loading||e.loadable),onClick:u},[r.value&&(e.loading||e.loadable)?(h(),V(i(ws),{key:0,class:"ai-session-turn-history-loading-icon",size:15,"aria-label":i(o)("sessions.timeline.loading")},null,8,["aria-label"])):(h(),V(i(ko),{key:1,size:15})),d("span",null,f(v.value),1)],8,tqe),m(Wa,{name:"turn-history-disclosure",onBeforeEnter:i(Xb),onEnter:i(Jb),onAfterEnter:i(ek),onEnterCancelled:i(nf),onBeforeLeave:i(tk),onLeave:i(nk),onAfterLeave:i(sk),onLeaveCancelled:i(nf)},{default:b(()=>[l.value?(h(),C("div",nqe,[d("div",sqe,[(h(!0),C(Me,null,ft(e.nodes,_=>(h(),C(Me,{key:_.id},[_.type==="message"?(h(),C("article",{key:0,class:At(["ai-session-turn-history-message",{"ai-session-turn-history-message-user":_.message.type==="user-message"}])},[m(Fu,{content:_.message.text,"code-tools":w.value},null,8,["content","code-tools"])],2)):(h(),V(MG,{key:1,activities:_.activities},null,8,["activities"]))],64))),128))])])):W("",!0)]),_:1},8,["onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])])):(h(),C("div",oqe,[m(i(gce),{size:15,"aria-hidden":"true"}),d("span",null,f(v.value),1)]))}}),aqe=kn(iqe,[["__scopeId","data-v-c5033609"]]),rqe={"en-US":{time:{hour:"numeric",minute:"2-digit",second:"2-digit"},shortDate:{year:"numeric",month:"short",day:"numeric"},dateTime:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}},"zh-CN":{time:{hour:"2-digit",minute:"2-digit",second:"2-digit"},shortDate:{year:"numeric",month:"short",day:"numeric"},dateTime:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}}},lqe={"en-US":{decimal:{maximumFractionDigits:2},percent:{style:"percent",maximumFractionDigits:1}},"zh-CN":{decimal:{maximumFractionDigits:2},percent:{style:"percent",maximumFractionDigits:1}}},WZ="task-handoff.control-plane.locale";function cqe(e){if(e)try{return e.localStorage}catch{return}}function uqe(e){return e==="en-US"||e==="zh-CN"||e==="system"?e:"system"}function dqe(e){const t=e.trim().replace(/_/g,"-").toLowerCase();if(t==="zh"||t.startsWith("zh-cn")||t.startsWith("zh-hans"))return"zh-CN";if(t==="en"||t.startsWith("en-"))return"en-US"}function KZ(e,t){if(e!=="system")return e;for(const n of t){const s=dqe(n);if(s)return s}return"en-US"}function pqe(e){if(!e)return"system";try{return uqe(e.getItem(WZ))}catch{return"system"}}function fqe(e,t){if(e)try{e.setItem(WZ,t)}catch{}}function mqe(e){return"ltr"}const hqe={view:"Agents",region:"Agent list",resizeList:"Resize the agent list",list:{title:"Agents",filterPlaceholder:"Filter agents",empty:"No agents match the filter",noAgents:"No agents on accessible nodes",loading:"Loading agents...",loadingNode:"Loading",unavailableNode:"Unavailable",loadingNodes:"Loading agents from {count} nodes...",unavailableNodes:"Agents from {count} nodes are unavailable",unavailable:"Agent definitions are temporarily unavailable.",unsupported:"No accessible node supports agent definitions.",retry:"Retry",create:"New agent"},viewMode:{label:"Agent view",detail:"Detail",graph:"Orchestration"},graph:{empty:"No agents on accessible nodes",clean:"No unsaved changes",dirty:"{count} unsaved changes",save:"Save",reset:"Reset",moreActions:"More actions",help:{title:"Canvas controls",intro:"The canvas shows one orchestration at a time: members, entry nodes (members nothing calls) and call edges all come from the authoritative graph.",move:"Drag a card to move it.",connect:"Hovering the dot below a card reveals a + that opens the list of agents to add; you can also drag from that dot onto the dot above another agent to connect them.",removeEdge:"Click a relation or its midpoint × to remove it.",removeMember:"Remove a member through the × on its card."},scope:{entry:"Entry orchestrations",participating:"Participating orchestrations"},orchestrationEmpty:"No orchestration",orchestrationMissing:"No accessible orchestration contains this agent yet. Create one to describe its call graph.",orchestrationDefaultLabel:"{name} (default)",orchestrationName:"Orchestration name",orchestrationNamePlaceholder:"Release review chain",editName:"Edit orchestration name {name}",editNameTitle:"Edit orchestration name",defaultBadge:"Default",missingMembers:"{count} members reference deleted agents",missingAgent:"Agent definition deleted",removeMember:"Remove {name} from the orchestration",createOrchestration:"New orchestration",deleteOrchestration:"Delete orchestration",removeEdge:"Remove relation {from} to {to}",edge:"Relation from {from} to {to}",linkFrom:"Drag to add an agent that {name} may call",linkTo:"Receives call relations pointing at {name}",addCallable:"Add an agent for {name} to call",addSearch:"Search agents",addEmpty:"No other agent on this node",addNoMatch:"No matching agent",addState:{callable:"Already connected",member:"Already a member",cycle:"Would create a cycle"},saving:"Saving",saveFailed:"The orchestration was rejected.",discardOnSwitch:"This orchestration has {count} unsaved changes. Switching to detail will discard them. Continue?",rejected:{self:"An agent cannot call itself.",crossNodeMember:"New members must belong to the same node as this orchestration.",duplicate:"This relation already exists.",cycle:"This relation would create a cycle.",offline:"An offline node is read-only.",defaultOwner:"The default orchestration must keep its owning agent.",outOfScope:"Drop onto the dot above an agent card, or click the + on a card's bottom dot to pick from the list."}},detail:{empty:"Select an agent to inspect its definition and runs",target:"Target",execution:"Execution",appendedPrompt:"Additional prompt",appendedPromptEmpty:"No additional prompt",orchestration:"Orchestrations",orchestrationEmpty:"No accessible orchestration contains this agent",orchestrationDefault:"Default",orchestrationMembers:"{count} members",orchestrationCreate:"New",orchestrationHint:"An orchestration holds the member graph used by runs and member invocations. The graph decides which orchestrations list this agent: any member nothing calls is a top-level node and shows the orchestration under that agent.",storyEntry:"Story entry",storyEntryEmpty:"No Story lists this agent as an entry agent",storyEntryHint:"The entry allowlist is maintained in Story settings. It only decides which agents that Story may invoke directly; it does not restrict the call chain.",runs:"Run history",runsEmpty:"No runs recorded yet",run:"Run agent",edit:"Edit",viewDetail:"View agent details",editOrchestration:"Edit orchestration",viewOrchestration:"View orchestrations",editName:"Edit agent name {name}",editNameTitle:"Edit agent name",delete:"Delete"},manualRun:{title:"Run {name}",description:"Enter the task for this run.",prompt:"Task",promptPlaceholder:"Describe what the agent should do",start:"Start run",starting:"Starting",started:"Agent run started",startFailed:"Could not start the agent run.",unsupported:"Upgrade the node agent to start runs directly from the control plane.",unavailable:"This agent cannot be run with its current target and execution settings.",orchestration:"Orchestration",orchestrationEmpty:"No orchestration available",orchestrationHint:"The run starts in {name} and may only call agents along this orchestration's edges."},blocked:{definitionsUnsupported:"This node does not publish agent definitions.",nodeOffline:"This node is offline. The last known definition is read-only.",instanceMissing:"The target instance is not in the current instance list.",instanceOffline:"The target instance is offline.",localRuntime:"This runtime does not currently support agent execution.",missingReference:"This orchestration still references a deleted agent. Remove the member to repair it.",policyUnsupported:"The target node has not published this execution strategy yet."},confirm:{deleteTitle:"Delete agent",deleteAgent:"Delete agent {name}? Its default orchestration is always deleted with it.",deleteOrchestrations:"Also delete the other orchestrations that reference this agent",deleteOrchestrationsHint:"Without this, those custom orchestrations stay and are marked as referencing a deleted agent.",deleting:"Deleting"},orchestration:{createTitle:"New orchestration",createDescription:"The new orchestration starts with {name} as its only entry node. Add members and edges to grow the call graph.",name:"Name",namePlaceholder:"Release review chain",newName:"{name} chain",create:"Create orchestration",creating:"Creating",created:"Orchestration {name} created",createFailed:"Could not create the orchestration.",confirmDelete:"Delete orchestration {name}?",deleted:"Orchestration {name} deleted",deleteFailed:"Could not delete the orchestration."},toast:{created:"Agent {name} created",updated:"Agent {name} saved",deleted:"Agent {name} deleted"},errors:{targetNodeUnknown:"The target instance no longer belongs to an accessible node.",deleteFailed:"The agent definition could not be deleted.",updateFailed:"The agent definition could not be saved."},editor:{createTitle:"New agent",editTitle:"Edit {name}",description:"Configure the instance, working folder, and model used for each run.",basics:"Definition",name:"Name",namePlaceholder:"Release review lead",summary:"Description",summaryPlaceholder:"What this agent is responsible for",target:"Target",instance:"Instance",instancePlaceholder:"Select an instance",folder:"Working folder",folderPlaceholder:"Select a folder",folderUnset:"Not selected",folderNeedsInstance:"Select a target instance first",folderHint:"Only folders the target instance can actually see are listed; changing the instance clears the previous selection.",instanceWorkspace:"Instance workspace",chooseFolder:"Register another folder…",folderBrowseHint:"Folders on {node}. Pick one to register it as a node folder and use it as the working folder.",folderUse:"Use this folder",folderRegistering:"Registering",runtime:"Agent and model",agent:"Agent",agentPlaceholder:"Select an agent",agentUnavailable:"This instance publishes no agent that can start a session",model:"Model",modelEmpty:"No model available",modelUnavailable:"The saved model is missing from this node model catalog. The definition keeps it and is marked as blocked.",reasoningDisabled:"This agent cannot choose a reasoning effort",permission:"Permission mode",appendedPrompt:"Additional prompt",appendedPromptPlaceholder:"For example: type checks must pass before a commit is proposed.",execution:"Execution strategy",blockedInstanceMissing:"The saved target instance is not in the current instance list; bind the agent to an available instance.",blockedLocalRuntime:"This runtime does not currently support agent execution, so this instance cannot be saved as an executable target.",blockedInstanceOffline:"The target instance is offline; keep the definition as read-only until the instance is reachable again.",blockedNoAgent:"The target instance publishes no agent that can start a session.",blockedAgentUnavailable:"The saved agent is missing from this instance capability document; re-bind the definition instead of switching it silently.",blockedPermissionUnavailable:"The saved permission mode is not published by the target agent.",blockedModelUnavailable:"The saved model is missing from this node model catalog.",blockedFolderUnavailable:"The saved working folder is not in the folders this instance can see.",folderUnavailable:"This instance has no node folder registered as a working folder.",saving:"Saving",create:"Create agent",save:"Save changes"},field:{node:"Node",instance:"Instance",folder:"Folder",provider:"Agent",model:"Model",permission:"Permission mode",reasoning:"Reasoning",workspace:"Workspace",executionMode:"Execution mode",isolation:"Isolation level"},value:{workspaceOverlay:"Overlay copy-on-write",workspaceWorktree:"Managed worktree",sandboxInstance:"Instance execution",sandboxContainer:"Disposable container",sandboxLocalRuntime:"Host process",isolationInstance:"Instance level",isolationContainer:"Container level",isolationLocalRuntime:"No process isolation",isolationNote:"Members run inside the target instance container and reuse its shared agent service. Container, user, network, and credential boundaries are shared with that instance.",overlayNote:"Writes land in this run's own upper layer; the source folder stays untouched.",appendedPromptNote:"The additional prompt adds requirements to each run without replacing the message that triggered it."},availability:{executable:"Executable",blocked:"Blocked"},run:{members:"Members",memberDescendant:"Agent Run {runId} · {status}",root:"Root",parent:"Parent",duration:"Duration",result:"Result",initiator:"Launched from {session}",initiatorManual:"Started manually from the control plane",sharedSpace:"Shared space",sharedRoot:"Shared root",workspaceDestroyed:"Run workspace destroyed",sharedRetained:"Shared data retained until {time}",sharedUsage:"{usage} of {quota} used",sharedState:{preparing:"Preparing",active:"Active",retained:"Retained",expiring:"Expiring","delete-retrying":"Cleanup retrying",expired:"Expired","manual-intervention":"Manual cleanup required"},cancel:"Cancel run",cancelledToast:"Run cancellation requested",cancelFailed:"Could not cancel the run.",delivery:{pending:"Result delivery pending",delivered:"Result delivered to the conversation",failed:"Result delivery failed"},status:{queued:"Queued",preparing:"Preparing",running:"Running",finalizing:"Finalizing",completed:"Completed",failed:"Failed",cancelled:"Cancelled"}}},gqe={controlPlane:"Control Plane",brandTagline:"A unified control plane for AI workspaces across local and remote machines.",linkWebsite:"Website",linkDocs:"Documentation",linkGithub:"GitHub",loading:"Loading",createAdmin:"Create admin",signIn:"Sign in",bootstrapDescription:"Set the first administrator for this Web control plane.",signInDescription:"Use your control plane account to continue.",username:"Username",password:"Password",changeTemporaryPassword:"Change temporary password",changeTemporaryPasswordDescription:"Set a new password before continuing to the Control Plane.",currentPassword:"Temporary password",newPassword:"New password",confirmPassword:"Confirm password",changePassword:"Change password",passwordLength:"The new password must contain at least 8 characters.",passwordMismatch:"The passwords do not match.",working:"Working",signOut:"Sign out",signingOut:"Signing out"},vqe={kicker:"Command line access",title:"Authorize command line sign-in",description:"A command line client is requesting access to this control plane. Approving creates a separate CLI session; your browser session is never shared with the client.",client:"Client",platform:"Platform",version:"Version",requestedAt:"Requested",expiresAt:"Expires",approve:"Approve",deny:"Deny",approvedTitle:"Sign-in approved",approvedDevice:"Return to the terminal to finish signing in.",approvedBrowser:"Return to the terminal to finish signing in.",deniedTitle:"Sign-in denied",deniedDescription:"The command line client was not granted access.",manualTitle:"Enter a device code",manualDescription:"Enter the code shown in the terminal to continue.",userCodePlaceholder:"XXXX-XXXX",continue:"Continue",statusApproved:"This request was already approved. Approve again to continue signing in.",statusDenied:"This request was denied.",statusExpired:"This request expired. Start the sign-in again from the terminal.",statusConsumed:"This request was already used to sign in.",platforms:{darwin:"macOS",linux:"Linux",win32:"Windows"}},yqe={productName:"TaskHandoff",products:{codex:"Codex",claude:"Claude",opencode:"OpenCode"},imageCapabilities:{browser:"Browser",terminal:"Terminal","gui-terminal":"Desktop terminal","vscode-web":"VS Code",codex:"Codex",claude:"Claude",opencode:"OpenCode"},actions:{add:"Add",back:"Back",cancel:"Cancel",close:"Close",confirm:"Confirm",continue:"Continue",copy:"Copy",create:"Create",delete:"Delete",download:"Download",done:"Done",edit:"Edit",minimize:"Minimize",maximize:"Maximize",open:"Open",refresh:"Refresh",refreshing:"Refreshing",rename:"Rename",restore:"Restore",archive:"Archive",retry:"Retry",save:"Save",search:"Search",update:"Update"},status:{enabled:"Enabled",disabled:"Disabled",running:"Running",stopped:"Stopped",off:"Off",unavailable:"Unavailable",unknown:"Unknown",unknownValue:"Unknown ({value})"},language:{label:"Language",system:"Follow system",enUS:"English",zhCN:"简体中文"},appAccess:{loading:"Loading session...",vncSession:"VNC session",appSession:"App session",noDirectView:"This app session does not expose a direct view",connecting:"Connecting",unavailable:"Unavailable",linkExpires:"Link expires {time}",linkExpired:"Link expired",connected:"Connected",reconnecting:"Reconnecting"}},bqe={unknown:"Something went wrong.",HTTP_ERROR:"The request failed.",VALIDATION_ERROR:"The submitted data is invalid.",NOT_FOUND:"The requested resource was not found.",UNAUTHORIZED:"Authentication is required.",FORBIDDEN:"You do not have permission to perform this action.",AUTH_DISABLED:"Authentication is disabled.",AUTH_BOOTSTRAP_ALREADY_DONE:"Authentication setup has already been completed.",AUTH_LOGIN_FAILED:"The username or password is incorrect.",AUTH_CURRENT_PASSWORD_INVALID:"The current password is incorrect.",AUTH_PASSWORD_UNCHANGED:"The new password must be different from the current password.",AUTH_PASSWORD_CHANGE_REQUIRED:"Change your temporary password before continuing.",AUTH_CREDENTIAL_UPDATE_IN_PROGRESS:"The account password is already being changed. Try again in a moment.",CONTROL_PLANE_AUTH_REQUIRED:"Sign in to access the control plane.",CONTROL_PLANE_FORBIDDEN:"Your account does not have permission to perform this action.",CONTROL_PLANE_USERNAME_CONFLICT:"That sign-in username is already used by another user.",CONTROL_PLANE_LOCAL_IDENTITY_IMMUTABLE:"Local password identities cannot be unbound.",CONTROL_PLANE_IDENTITY_PROVIDER_NAMESPACE_IMMUTABLE:"This provider's type and issuer cannot change while it has linked identities or pending approvals.",CONTROLLED_INSTANCE_NOT_FOUND:"The controlled instance was not found.",CONTROLLED_INSTANCE_NOT_FOUND_WITH_ID:"Controlled instance {id} was not found.",INSTANCE_NOT_CONNECTED:"The instance is not connected.",INSTANCE_UNREACHABLE:"The instance is unreachable.",INSTANCE_WEB_UNREACHABLE:"The instance web endpoint is unreachable.",INSTANCE_APP_MANAGEMENT_UNSUPPORTED:"This instance does not support managed apps.",INSTANCE_SOURCE_REQUIRED:"Select an instance source.",INSTANCE_START_FAILED:"The instance could not be started.",LOCAL_RUNTIME_REQUIRES_LOCAL_FOLDER:"Local Runtime requires a local folder source.",LOCAL_FOLDER_REQUIRES_OWNER_NODE:"Select the node that owns this local folder.",LOCAL_FOLDER_REQUIRES_INSTANCE_NODE:"Select a local folder owned by the instance node.",APP_CWD_REQUIRES_LOCAL_FOLDER_SOURCE:"A custom app working directory requires a local folder instance source.",APP_CWD_OUTSIDE_WORKSPACE:"The app working directory must be inside the instance workspace.",RUNTIME_IMAGE_REQUIRED:"Select a runtime image.",IMAGE_IN_USE:"The image is currently in use and cannot be deleted.",MODEL_NOT_FOUND:"The selected model was not found.",MODEL_DISABLED:"The selected model is disabled.",MODEL_APP_MISMATCH:"The selected model is not compatible with this app.",MODEL_API_KEY_REQUIRED:"Enter an API key.",MODEL_ENDPOINT_INVALID:"Enter a valid HTTP or HTTPS model endpoint.",MODEL_ENDPOINT_TIMEOUT:"The model endpoint request timed out.",MODEL_ENDPOINT_UNREACHABLE:"The model endpoint could not be reached.",MODEL_DISCOVERY_FAILED:"The model list request failed. Check the API key and endpoint.",MODEL_DISCOVERY_UNSUPPORTED:"This endpoint does not expose a compatible model list. You can enter a model ID manually.",MODEL_DISCOVERY_RESPONSE_INVALID:"The model list endpoint returned unrecognized data.",MODEL_TEST_FAILED:"The model test request failed. Check the model, API key, and endpoint.",MODEL_TEST_RESPONSE_INVALID:"The model endpoint returned an invalid protocol response.",MODEL_IN_USE:"This model is still assigned to instances. Remove it from their model settings before deleting it.",MODEL_UPDATE_SYNC_FAILED:"The edit could not be applied to any node. Update the node first, then try again.",MODEL_MERGE_SAME:"A model cannot be merged into itself.",MODEL_MERGE_NOTHING_TO_MERGE:"This model has no node copy that can be merged. Nothing was changed.",AGENT_DEFINITION_INVALID_INPUT:"The submitted agent definition is not valid.",AGENT_DEFINITION_NOT_FOUND:"The agent definition was not found.",AGENT_DEFINITION_REVISION_CONFLICT:"The agent definition changed elsewhere. Reopen it before saving again.",AGENT_DEFINITION_TARGET_INSTANCE_UNKNOWN:"The target instance does not belong to that node.",AGENT_DEFINITION_FOLDER_UNKNOWN:"The selected working folder is unavailable on that instance.",AGENT_DEFINITION_PROVIDER_UNSUPPORTED:"The target instance does not publish that provider.",AGENT_DEFINITION_CALLABLE_TARGET_UNKNOWN:"A referenced agent no longer exists. Refresh and try again.",AGENT_DEFINITION_SELF_REFERENCE:"An agent cannot call itself.",AGENT_DEFINITION_CYCLE:"These callable relations form a cycle: {cycle}.",AGENT_DEFINITION_POLICY_UNSUPPORTED:"The target node does not publish that execution strategy.",NODE_OFFLINE:"The node is offline.",NODE_NOT_FOUND:"The node was not found.",NODE_NOT_FOUND_WITH_ID:"Node {id} was not found.",NODE_REQUIRED:"Select a node.",NODE_ID_REQUIRED:"A node ID is required.",NODE_AGENT_ENDPOINT_REQUIRED:"Enter the node agent endpoint.",NODE_AGENT_HEALTH_FAILED:"The node agent health check failed.",NODE_AGENT_PAIRING_FAILED:"The node agent could not be paired.",NODE_AGENT_PAIRING_RESPONSE_INVALID:"The node agent returned an invalid pairing response.",NODE_AGENT_PAIRING_IN_USE:"Remove the active control-plane connection before deleting this pairing.",NODE_AGENT_PAIRING_CURRENT_REQUEST:"The control plane currently viewing this node cannot delete its own pairing.",NODE_AGENT_REMOTE_REQUIRES_PAIRED_HMAC:"Remote node connections require paired-HMAC authentication.",NODE_AGENT_REMOTE_SECRET_REQUIRED:"Enter the remote node secret.",NODE_AGENT_REMOTE_KEY_ID_REQUIRED:"Enter the remote node key ID.",NODE_AGENT_REVERSE_TUNNEL_OFFLINE:"The node agent reverse tunnel is offline.",NODE_JOIN_TOKEN_INVALID:"The node join token is invalid or expired.",NODE_JOIN_NODE_ALREADY_EXISTS:"This node is already registered.",NODE_RUNTIME_NOT_FOUND:"The selected runtime was not found on the node.",NODE_LOCAL_FOLDER_NOT_FOUND:"The selected local folder was not found on the node.",NODE_FOLDER_PATH_NOT_FOUND:"The folder path does not exist on the node.",NODE_FOLDER_PATH_NOT_DIRECTORY:"The selected path is not a folder.",NODE_FOLDER_PATH_UNREADABLE:"The folder cannot be accessed by the node agent.",LOCAL_NODE_CANNOT_BE_DELETED:"The built-in local node cannot be deleted.",NODE_MODEL_NOT_FOUND:"The selected model was not found on the node.",NODE_MODEL_DISABLED:"The selected model is disabled on the node.",NODE_MODEL_APP_MISMATCH:"The selected node model is not compatible with this app.",NODE_MODEL_SELECTION_MISMATCH:"The model selection does not match the node assignment.",NODE_MODEL_HASH_INVALID:"The stored node model does not match its configuration.",NODE_MODEL_MIGRATION_REQUIRED:"The instance model configuration requires manual migration.",NODE_MODEL_ENDPOINT_PROBE_UNSUPPORTED:"This node version does not support model discovery or connection testing. Upgrade the node first.",AI_SESSION_NOT_FOUND:"The AI session was not found.",AI_SESSION_ATTACHMENT_INVALID:"One or more AI session attachments are invalid.",AI_SESSION_ATTACHMENTS_TOO_LARGE:"The AI session attachments exceed the size limit.",AI_SESSION_FILE_ATTACHMENT_LIMIT_UNSUPPORTED:"Upgrade the node agent before configuring the uploaded file limit.",AI_SESSION_RUNTIME_PATH_UNSUPPORTED:"Runtime path attachments are supported only by Local Runtime instances.",AI_SESSION_MODEL_CATALOG_UNAVAILABLE:"The instance has not loaded its model configuration. Restart the instance to apply it.",AI_SESSION_MODEL_TARGET_UNAVAILABLE:"The selected model has not taken effect in this running instance. Try again in a moment, or restart the instance to apply the latest model configuration.",AI_SESSION_MODEL_ENTITY_UNAVAILABLE:"The model previously selected for this session is no longer available. Select another model to continue.",AI_SESSION_MODEL_NAME_UNAVAILABLE:"The model previously selected for this session is no longer available. Select another model to continue.",AI_SESSION_REASONING_EFFORT_UNSUPPORTED:"Reasoning effort cannot be changed for this session.",AI_SESSION_RENAME_UNSUPPORTED:"This session does not support renaming.",AI_SESSION_RENAME_CONFLICT:"The session title changed while you were editing. Review the latest title and try again.",AI_SESSION_RENAME_REQUEST_CONFLICT:"This rename request was already used for a different title.",AI_SESSION_RENAME_BINDING_CONFLICT:"This app session is linked to more than one AI session and cannot be renamed safely.",AI_SESSION_RENAME_PENDING:"The title is still synchronizing. Keep this dialog open and try again.",AI_SESSION_RENAME_NOT_CONFIRMED:"The AI provider did not confirm the new title.",AI_SESSION_CONTROL_FAILED:"The AI session action failed. Try again.",AI_SESSION_CONTROL_NOT_CONNECTED:"The instance's AI service is not connected. Try again in a moment, or restart the instance.",AI_SESSION_CREATE_UNSUPPORTED:"This agent does not support starting an AI session directly.",AI_SESSION_CREATE_INVALID_RESPONSE:"The AI provider returned an invalid session identity. Try again.",AI_SESSION_MATERIALIZATION_FAILED:"The AI session was created but its first message failed. Try again.",AI_SESSION_MODEL_SELECTION_INVALID:"The selected model is unavailable. Select another model to continue.",AI_SESSION_CREATE_REQUEST_CONFLICT:"This request ID was already used with different session settings. Start the session again to get a new request ID.",AI_SESSION_REASONING_EFFORT_CONFLICT:"Wait for the current session action to finish before changing reasoning effort.",AI_SESSION_REASONING_EFFORT_UNKNOWN:"The current reasoning effort is unavailable.",AI_SESSION_REASONING_EFFORT_INVALID_RESPONSE:"Codex returned an invalid reasoning effort.",APP_SESSION_NOT_FOUND:"The app session was not found.",APP_SESSION_DELTA_INVALID:"The app session update is invalid.",REPOSITORY_SESSION_NOT_FOUND:"The repository session was not found.",REPOSITORY_SESSION_INACTIVE:"The repository session is no longer active.",REPOSITORY_CWD_MISSING:"The session has no working directory to inspect.",REPOSITORY_CWD_INACCESSIBLE:"The session working directory is inaccessible.",REPOSITORY_GIT_UNAVAILABLE:"Git is unavailable in the controlled instance.",REPOSITORY_NOT_WORKTREE:"The session working directory is not a Git worktree.",REPOSITORY_PATH_INVALID:"The repository path is invalid.",REPOSITORY_PATH_FORBIDDEN:"The repository path is outside the allowed workspace boundary.",REPOSITORY_FILE_NOT_FOUND:"The repository file was not found.",REPOSITORY_FILE_EXISTS:"A file already exists at the destination.",REPOSITORY_FILE_TOO_LARGE:"The repository file exceeds the editor size limit.",REPOSITORY_FILE_BINARY:"Binary files cannot be opened in the text editor.",REPOSITORY_FILE_STALE:"The file changed after it was opened. Review the latest version before retrying.",REPOSITORY_STATE_STALE:"The repository changed after it was loaded. Review the latest state before retrying.",REPOSITORY_WORKTREE_NOT_FOUND:"The worktree was not found.",REPOSITORY_WORKTREE_OCCUPIED:"An active session is using this worktree.",REPOSITORY_WORKTREE_UNSAFE:"The worktree is not safe for this operation.",REPOSITORY_MAIN_DIRTY:"The main worktree has uncommitted changes that must be handled first.",REPOSITORY_MOVE_CONFLICT:"The carried changes could not be applied to the main worktree.",REPOSITORY_BRANCH_INVALID:"The branch is invalid or no longer exists.",REPOSITORY_BRANCH_OCCUPIED:"The branch is checked out in another worktree.",REPOSITORY_BRANCH_UNMERGED:"The branch contains unmerged commits.",REPOSITORY_CONFLICT:"Resolve the repository conflicts before retrying.",REPOSITORY_DIRTY:"Commit or discard the current changes before retrying.",REPOSITORY_NOTHING_TO_COMMIT:"There are no staged changes to commit.",REPOSITORY_IDENTITY_MISSING:"Configure Git user.name and user.email before committing.",REPOSITORY_HOOK_FAILED:"A Git hook rejected the operation.",REPOSITORY_SIGNING_FAILED:"Git could not sign the commit.",REPOSITORY_AUTHENTICATION_FAILED:"Git authentication failed in the controlled instance.",REPOSITORY_CREDENTIAL_MISSING:"No credential is available for this Git remote.",REPOSITORY_CREDENTIAL_AMBIGUOUS:"More than one retained credential matches this Git remote.",REPOSITORY_REMOTE_UNSUPPORTED:"This Git remote cannot use managed credentials.",REPOSITORY_HOST_KEY_REQUIRED:"The matching SSH credential requires a pinned host key.",REPOSITORY_AUTHENTICATION_REJECTED:"The Git remote rejected the available credential.",REPOSITORY_NON_FAST_FORWARD:"The branch cannot be updated with a fast-forward operation.",REPOSITORY_UPSTREAM_MISSING:"The current branch has no upstream branch.",REPOSITORY_COMMAND_TIMEOUT:"The Git command timed out.",REPOSITORY_OUTPUT_LIMIT:"The Git command exceeded its output limit.",REPOSITORY_OPERATION_ABORTED:"The repository operation was canceled.",REPOSITORY_OPERATION_FAILED:"The repository operation failed."},kqe={title:"Instances",modelEntities:{selected:"Selected model providers",orderHint:"The first compatible provider and its first model are used by default.",available:"Available providers",availableHint:"Add any provider this instance should make available to AI sessions.",add:"Add",remove:"Remove {name}",moveUpAction:"Move up",moveDownAction:"Move down",reorder:"Drag to reorder {name} or click for options",empty:"No model providers are available on this node",emptyHint:"Go to Settings → Models in the control plane to add model providers.",emptyCreateHint:"You can also create this instance now and change its model providers later in instance settings.",openSettings:"Open control plane settings",openedSettings:"Opened control plane settings so you can add model providers."},window:{invalidRoute:"This instance detail link is invalid. Choose an instance from the switcher.",instanceUnavailable:"This instance is unavailable. Choose another instance from the switcher.",alreadyOpen:"This instance is already open in another detail window.",focusedExisting:"Focused the existing instance window.",switchFailed:"The instance window could not be switched. Try again.",popupBlocked:"The browser blocked the new window. Allow popups and try again.",focusFailed:"The instance window exists, but the browser did not allow it to be focused.",openInNewWindow:"Open in new window"},list:{controlledInstances:"Controlled instances",switchInstance:"Switch instance",expand:"Expand instances list",collapse:"Collapse instances list",options:"Instance list options",new:"New instance",search:"Search instances",loading:"Loading instances...",nodeLoading:"Loading instances",nodesStillLoading:"Some nodes are still loading",nodeStale:"Showing cached instances",nodeLoadFailed:"Instances unavailable",nodeConnecting:"Connecting",nodeReconnecting:"Reconnecting",openControls:"Open controls for {name}",noMatches:"No matching instances",resizeSidebar:"Resize instances sidebar",resize:"Resize instances",localRuntime:"Local runtime",dockerRuntime:"Docker runtime",kubernetesRuntime:"Kubernetes runtime"},actions:{start:"Start",stop:"Stop",restart:"Restart",rename:"Rename",retryImage:"Retry image",retryGit:"Retry repository clone",importConfig:"Import config",exportConfig:"Export config",saveEnvironmentTemplate:"Save as environment template",closeAllSessions:"Close all sessions",closingAllSessions:"Closing all sessions...",closeAllSessionsConfirm:"Close all {count} sessions on {name}? Any active work in these sessions will stop.",closeAllSessionsSuccess:"Closed {count} sessions.",closeAllSessionsPartial:"Could not close {failed} of {total} sessions.",delete:"Delete",settings:"Settings",open:"Open",launchApp:"Launch app",app:"App",starting:"Starting",stopping:"Stopping",restarting:"Restarting",retryingImage:"Retrying image",retryingGit:"Retrying repository clone",deleting:"Deleting",importing:"Importing {name}",exporting:"Exporting {name}",deleteConfirm:"Delete {name}? This removes the instance record and stops its runtime container if it is running."},deleteDialog:{title:"Delete {name}?",description:"The runtime container and instance identity will be removed.",irreversible:"Deleting the instance and selected data cannot be undone.",deleteData:"Also delete instance data",deleteDataHint:"Permanently deletes every managed volume, including /data, /home/agent, and the Git workspace when present.",retainDataHint:"Keeps all managed volumes on this node. They will continue to use disk space and are not attached to future instances automatically.",confirm:"Delete instance",retry:"Retry deletion",partialFailure:"Some managed volumes could not be deleted. The instance record was kept so deletion can be retried safely.",retainedTitle:"Instance deleted; data retained",retainedHint:"Save these Docker volume names if you need to recover the retained data manually.",copy:"Copy name"},environmentTemplateDialog:{title:"Save as environment template",description:"Create a reusable environment from the current container filesystem of {name}.",name:"Template name",namePlaceholder:"For example: Node.js with common tools",defaultSuffix:"environment",includesTitle:"Includes",includes:"System packages, dependencies, tools, and configuration in the container writable layer.",excludesTitle:"Excludes",excludes:"/workspace, /data, /home/agent, other mounts, and memory, process, or network state.",pause:"Docker commit briefly pauses the container by default for a consistent filesystem state.",confirm:"Save template",saving:"Saving",saved:"Environment template “{name}” was saved."},configSync:{description:"Choose the programs and a folder inside {name}'s workspace.",programs:"Programs",folder:"Configuration folder",loading:"Loading configuration options...",running:"Transferring configuration...",completed:"Configuration transfer completed for {count} program(s).",resultSummary:"{copied} copied · {skipped} skipped · {failed} failed"},status:{created:"Created",provisioning:"Provisioning",starting:"Starting",registering:"Registering",registered:"Registered",running:"Running",stopping:"Stopping",stopped:"Stopped",deleting:"Deleting",failed:"Failed",unhealthy:"Unhealthy"},connection:{unknown:"Unknown",online:"Online",offline:"Offline",endpointUnreachable:"Endpoint unreachable"},health:{unknown:"Unknown",ok:"Healthy",degraded:"Degraded",failed:"Failed"},gitProvisioning:{connecting:"Connecting to Git remote",cloning:"Cloning repository","checking-out":"Checking out code",submodules:"Updating submodules",lfs:"Downloading LFS objects",finalizing:"Finalizing workspace",complete:"Repository ready",failed:"Repository clone failed",progress:"Repository clone progress",showDetails:"Show details",hideDetails:"Hide details",terminalTruncated:"Earlier terminal output was truncated.",objects:"{received} / {total} objects",waitingForOutput:"Waiting for Git output…"},imagePull:{connecting:"Connecting to image registry",pulling:"Pulling image",extracting:"Extracting image",ready:"Image ready",failed:"Image pull failed",progress:"Image pull progress",showDetails:"Show details",hideDetails:"Hide details",terminalTruncated:"Earlier terminal output was truncated.",waitingForLayers:"Waiting for layer metadata",layersReady:"{completed} / {total} ready",downloaded:"{count} downloaded",downloading:"{count} downloading",extractingLayers:"{count} extracting",preparationStages:"Image preparation stages",checkImage:"Check image",pullLayers:"Pull layers",resolveDigest:"Resolve digest",waitingForOutput:"Waiting for detailed Docker output…"},create:{eyebrow:"New instance",title:"Create controlled instance",description:"Choose a workspace and runtime for the controlled instance.",close:"Close setup panel",stepsLabel:"Create instance steps",workspace:"Workspace",runtime:"Runtime",runtimeHint:"The runtime determines how the instance runs. Docker runs the instance in a container on the node, isolating dependencies and mounting the workspace into it; the local runtime runs directly as a node process without a container.",source:"Source",useExisting:"Use existing",addRepository:"Add repository",addImage:"Add image",repository:"Repository",localFolder:"Local folder",workspaceSource:"Workspace source",selectProject:"Select project",name:"Name",repositoryName:"Repository name",gitUrl:"Git URL",creating:"Creating",createRepository:"Create repository",node:"Node",selectNode:"Select node",projectFolder:"Project folder",projectFolderHint:"The folder stays on the node and is mapped into the instance as its workspace. Container runtimes mount it into the container, so changes made inside are written back to this folder.",selectLocalFolder:"Select local folder",chooseFolder:"Choose folder...",choosing:"Choosing",browse:"Browse",image:"Image",environmentSource:"Environment source",environmentTemplate:"Environment template",selectEnvironmentTemplate:"Select an environment template",searchEnvironmentTemplates:"Search template names or image IDs",noEnvironmentTemplates:"No ready environment templates are available on this node",templateReady:"Ready",selectRuntime:"Select runtime",selectImage:"Select image",searchImages:"Search names, references, or capabilities",noImagesFound:"No matching images",marketImages:"Image Market",customImages:"Custom images",imageTag:"Image tag",selectImageTag:"Select a tag",noCapabilities:"No declared capabilities",sizeUnknown:"Size unknown",imageOrigin:{market:"Market",custom:"Custom"},lifecycle:{active:"Active",deprecated:"Deprecated",yanked:"Yanked"},noContainer:"no container",imageName:"Image name",imageReference:"Image ref",createImage:"Create image",optionalInstanceName:"Optional instance name",codexModel:"Codex model",claudeModel:"Claude model",opencodeModel:"OpenCode model",noModel:"No model",globalDefault:"Global default",modelCopyToNode:"{name} · copy to node",modelOnNode:"{name} · this node",autoImportConfigs:"Auto-import Codex and Claude config whenever this instance becomes reachable",gitCredential:"Git credential",noGitCredential:"No managed credential",gitCredentialUnsupported:"Upgrade the selected node or choose a runtime that supports managed Git workspace provisioning.",retainGitCredential:"Keep this credential in the instance",operationOnlyGitCredentialDescription:"Used only for the initial clone. Later Agent, Terminal, App, and Repository Git commands cannot use it.",retainedGitCredentialDescription:"Allows Agent, Terminal, App, and Repository processes in this instance to use the credential for matching remotes until access is revoked.",cancel:"Cancel",back:"Back",continue:"Continue",create:"Create",folders:{title:"Node folders",quickLocations:"Quick locations",home:"Home",up:"Up one level",currentPath:"Current folder",loading:"Loading",refresh:"Refresh",loadingFolders:"Loading folders...",empty:"No folders reported by this node",emptyDirectory:"This folder has no subfolders."},availability:{available:"Available",pullRequired:"Will be pulled",unknown:"Availability unknown"},docker:{ready:"Docker is ready",checking:"Checking Docker",unavailable:"Docker is not available",failed:"Docker check failed",required:"Docker must be checked",check:"Check Docker",retry:"Retry check",mustCheck:"The Docker daemon must be checked before this instance can be created.",unverified:"Docker could not be verified on the selected node.",checkingDaemon:"Checking the Docker daemon on the selected node…",daemonAvailable:"Docker daemon is available.",daemonVersionAvailable:"Docker daemon {version} is available.",daemonUnavailable:"Docker daemon is not available.",install:{windowsLabel:"Install Docker Desktop",windowsMessage:"Install Docker Desktop on the selected Windows node, start it, then retry the check.",macLabel:"Install OrbStack",macMessage:"Install and start OrbStack on the selected macOS node, then retry the check.",linuxLabel:"Open Docker Engine installation guide",linuxMessage:"Install Docker Engine using Docker's official instructions for the selected Linux distribution, start the daemon, then retry the check.",genericLabel:"Open Docker installation guide",genericMessage:"Install and start Docker on the selected node, then retry the check."}},blocked:{repository:"Select a repository.",node:"Select a node.",workspaceNode:"No node is available for this workspace. Connect a node first.",localFolder:"Select or choose a local folder.",runtime:"Select a runtime.",dockerChecking:"Checking the Docker daemon on the selected node.",dockerUnavailable:"Docker must be available on the selected node before creating an instance.",image:"Select an image.",environmentTemplate:"Select an environment template."},feedback:{instanceCreated:"Instance created",createdButStartFailed:"Instance created, but failed to start: {error}",projectCreated:"Project created",namedCreated:"{name} created",imageCreated:"Image created",refreshFailed:"{description}, but the control-plane view could not refresh: {error}"}},board:{label:"Instance board",loading:"Loading control plane...",search:"Search board",allProjects:"All projects",allStatuses:"All statuses",showApp:"Show app",mixedApps:"Mixed apps",options:"Board options",cardSize:"Board card size",switchSession:"Switch session for {name}",previousAiSession:"Previous AI session",nextAiSession:"Next AI session",sessionFrame:"{name} session",noMatches:"No matching instances",empty:"No instances yet",allNodes:"All nodes",selectedNodes:"{count} nodes selected",small:"Small",medium:"Medium",large:"Large"},viewOptions:{label:"Instance view options",sort:"Sort",name:"Name",node:"Node",status:"Status",groupByNode:"Group by node",interaction:"Interaction",interactWithPreviews:"Interact with previews"},detail:{label:"Instance detail",loading:"Loading control plane...",editName:"Edit name for {name}",editNameTitle:"Edit instance name",controls:"Instance controls",protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",protocolOk:"protocol ok",protocolMismatch:"protocol mismatch",emptyTitle:"Ready for a first instance",emptyDescription:"Create a project-backed controlled instance to register a worker into this control plane.",renameFailed:"Failed to rename instance."},lifecycle:{preparing:"Preparing instance",imageFailed:"Image preparation failed",preparingWorkspace:"Cloning repository",workspaceFailed:"Repository clone failed",created:"Instance created",preparingRuntime:"Preparing runtime",connecting:"Connecting instance",stopping:"Stopping instance",stopped:"Instance stopped",failed:"Instance failed",unhealthy:"Instance unhealthy",starting:"Starting instance",updatingRuntime:"Updating instance runtime",runtimeUnavailable:"Runtime unavailable",runtimeUnavailableDocker:"Docker is not running",runtimeUnavailableLocal:"Local runtime is unavailable",runtimeNameDocker:"Docker",runtimeNameLocal:"the local runtime",runtimeUnavailableDetail:"{runtime} is not running on the node, so the instance cannot start. It recovers automatically once {runtime} starts.",runtimeUnavailableReason:"{runtime} is not running on the node, so the instance cannot start. It recovers automatically once {runtime} starts. Reason: {reason}",runtimeDrainingDetail:"Stopping active processes in the instance before updating its runtime.",runtimeInstallingDetail:"Installing the new instance runtime.",runtimeRestartingDetail:"The runtime is installed. Restarting instance services.",runtimeVerifyingDetail:"Instance services restarted. Verifying the runtime version and health.",cloningRepositoryDetail:"Cloning the Git repository. The container starts once the code is on disk.",checkingOutDetail:"Checking out the requested branch or commit.",submodulesDetail:"Initializing and updating submodules.",lfsDetail:"Downloading Git LFS objects.",finalizingWorkspaceDetail:"Code cloned. Finalizing the workspace.",workspaceReady:"Repository ready",checkingImageDetail:"Checking whether the image is already available on the node.",pullingImageDetail:"The Docker image is being prepared before the container can start.",resolvingImageDetail:"Resolving the pulled image to its repository digest.",readyToStart:"The instance is ready to start.",failedDetail:"The instance could not be started. Retry the failed operation or inspect its runtime.",stoppedDetail:"The instance is stopped. Start it when you are ready to continue.",unhealthyDetail:"The instance health check is {health}. Restart the instance or inspect its runtime.",stoppingDetail:"Waiting for the instance runtime to stop safely.",waitingDetail:"Waiting for the controlled instance to connect · {status} · {connection}",checkingImage:"Checking image",pullingImage:"Pulling image",pullingImageProgress:"Pulling image · {message}",resolvingDigest:"Resolving image digest",imageProvisionFailed:"Image provisioning failed",imageReady:"Image ready",source:"Source",localFolder:"Local folder",localFolderLower:"local folder"},settings:{eyebrow:"Instance settings",unavailableTitle:"Instance unavailable",close:"Close instance settings",unavailable:"This instance is no longer available.",description:"Configure this instance. Model credentials remain in control-plane Settings.",sections:"Instance settings sections",sectionGroups:{instance:"Instance",agent:"Agent",provisioning:"Apps & credentials"},general:"General",ai:"AI",codex:"Codex",aiConfigurationTitle:"AI settings",aiConfigurationDescription:"Configure AI sessions, attachments, and new session defaults.",codexConfiguration:"Codex configuration",codexConfigurationDescription:"Enable Codex model, session permission, and Codex Home settings.",codexHome:"Codex Home",codexHomeDescription:"Choose where Codex configuration and session data are stored.",codexHomeDefault:"Codex default",codexHomeTaskHandoff:"TaskHandoff config directory",codexConfigurationTitle:"Codex settings",codexConfigurationPageDescription:"Configure Codex defaults for this instance. Changes apply to new sessions and newly spawned agents.",codexSettingsUnsupported:"Upgrade the node agent and controlled instance to manage Codex settings.",codexVerbosity:"Response detail",codexVerbosityDescription:"Choose how concise or detailed Codex responses should be by default.",followCodexDefault:"Follow Codex default",verbosityLow:"Concise",verbosityMedium:"Standard",verbosityHigh:"Detailed",codexPersonality:"Communication style",codexPersonalityDescription:"Choose the default communication style for supported models.",personalityNone:"No specific style",personalityFriendly:"Friendly",personalityPragmatic:"Pragmatic",codexMultiAgent:"Multi-agent",codexMultiAgentDescription:"Allow Codex to delegate work to sub-agents.",codexMultiAgentConcurrency:"Maximum concurrent sub-agents",codexMultiAgentConcurrencyDescription:"Leave empty to use the Codex limit; allowed range is 1–64.",codexDefaultSubagentModel:"Default sub-agent model",codexDefaultSubagentModelDescription:"Use an assigned Codex model when a spawn request does not select one.",codexSubagentReasoning:"Default sub-agent reasoning",codexSubagentReasoningDescription:"Used when a spawn request does not select a reasoning effort.",codexSettingsSaved:"Codex settings saved.",codexReasoning:{none:"None",minimal:"Minimal",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Maximum",ultra:"Ultra"},models:"Models",apps:"Apps",browser:"Browser",browserGoToApps:"Go to Apps",browserNotInstalled:"Chromium is not installed on this instance",browserNeedsAttention:"Chromium needs attention before it can be used",codexNotInstalled:"Codex is not installed on this instance",browserProfilesTitle:"Browser profiles",browserProfilesDescription:"Profiles keep browser sign-ins and data across sessions. Only one session can run on a profile at a time.",browserProfilesLoading:"Loading browser profiles…",browserProfilesUnsupported:"Upgrade the controlled instance to manage browser profiles. Launching still uses a temporary profile.",browserProfilesFailed:"Could not load browser profiles.",refreshBrowserProfiles:"Refresh browser profiles",browserProfileCreate:"Create",browserProfileNamePlaceholder:"New profile name",browserProfileDefault:"Default",browserProfileDefaultName:"Default",browserProfileRunning:"Running",browserProfileDiskUsage:"{size} on disk",browserProfileDiskUnknown:"Disk usage unavailable",browserProfileOpenSession:"Open session",browserProfileSetDefault:"Set default",browserProfileRename:"Rename",browserProfileDelete:"Delete",browserProfileDeleteTitle:"Delete {name}?",browserProfileDeleteDescription:"The profile's sign-ins, extensions, and history are permanently deleted. This cannot be undone.",browserProfileCreated:"Browser profile {name} created.",browserProfileRenamed:"Browser profile renamed to {name}.",browserProfileDefaultSet:"{name} is now the default browser profile.",browserProfileDeleted:"Browser profile {name} deleted.",creating:"Creating",deleting:"Deleting",save:"Save",gitCredentials:"Git credentials",gitCredentialsTitle:"Instance Git access",gitCredentialsDescription:"Retained authorization is managed by the Node Agent and is available to Agent, Terminal, App, and Repository processes in this instance for matching remotes.",gitCredentialsUnsupported:"Upgrade the Node Agent and controlled instance before assigning retained Git credentials.",gitCredentialsLoading:"Loading instance Git authorization...",gitCredentialsLoadFailed:"Could not load instance Git authorization.",selectGitCredential:"Select an enabled credential",authorizeGitCredential:"Authorize",noGitCredentials:"No retained Git credentials are assigned",revokeGitCredential:"Revoke",gitCredentialRevision:"Credential revision {credential} · assignment revision {assignment}",gitCredentialAuthorizeFailed:"Could not authorize the Git credential.",gitCredentialRevokeFailed:"Could not revoke the Git credential.",gitCredentialMatchUnique:"The instance remote currently matches {name}.",gitCredentialMatchNone:"No synchronized retained credential matches the instance remote.",gitCredentialMatchAmbiguous:"The instance remote has {count} equally specific credential matches.",gitCredentialMatchHostKey:"The matching SSH credential requires pinned host keys.",gitCredentialMatchUnsupported:"The instance remote cannot be normalized for managed credentials.",gitCredentialMatchStatus:{unique:"Matched",none:"No match",ambiguous:"Ambiguous","missing-host-key":"Host key",unsupported:"Unsupported"},gitCredentialStatus:{pending:"Pending",synced:"Synced to node",deferred:"Waiting for node",revoking:"Revoking"},detailsTitle:"Instance details",detailsDescription:"Runtime and workspace information reported by the node.",id:"ID",state:"State",node:"Node",runtime:"Runtime",image:"Image",workspace:"Workspace",protocol:"Protocol",build:"Build",none:"None",notReported:"Not reported",configurationTitle:"Configuration",configurationDescription:"Instance-level defaults for agent configuration and newly created sessions.",instanceName:"Instance name",instanceNameDescription:"Used to identify this instance throughout the control plane.",autoImport:"Automatically import agent configuration",autoImportDescription:"Import supported agent configuration when this instance starts.",sessionPermissions:"New Codex session permissions",sessionPermissionsDescription:"Used to initialize new session composers. Existing sessions keep their own selection.",aiSessionHistoryLimit:"AI session history retention",aiSessionHistoryLimitDescription:"Keep this many closed AI sessions and their legacy Timeline history on the instance (1–500).",aiSessionHistoryLimitUnsupported:"Upgrade the node agent and controlled instance to configure history retention.",aiSessionAttachmentRetention:"Conversation attachment retention",aiSessionAttachmentRetentionDescription:"Keep sent images and files on this instance for 0–365 days. Zero expires content immediately while retaining message metadata.",aiSessionAttachmentRetentionUnsupported:"Upgrade the node agent and controlled instance to configure attachment retention.",aiSessionAttachmentRetentionWarning:"Shortening this period can immediately and irreversibly delete expired attachment content.",aiSessionFileAttachmentLimit:"Maximum uploaded file size (KiB)",aiSessionFileAttachmentLimitDescription:"Ordinary files and long pasted text must be smaller than this size on this instance (1–20480 KiB). Images keep their separate 20 MiB limit.",aiSessionFileAttachmentLimitUnsupported:"Upgrade the node agent to configure the uploaded file limit.",askApproval:"Ask for approval",approveForMe:"Approve for me",fullAccess:"Full access",saving:"Saving",saveChanges:"Save changes",generalSaved:"General settings saved.",modelSelection:"Model selection",modelEntities:"Model entities",activeModel:"Current model: {name}",modelSelectionDescription:"Control-plane models are deployed to this instance's node before assignment. Node-local models are available only on their owner node. Changes apply on the next start or restart.",noModel:"No model",globalDefault:"Global default",invalidModel:"The stored selection is deleted, disabled, or belongs to another app. Choose a model or Global default.",unavailableModel:"Unavailable · {id}",effectiveModel:"Effective: {name}",noEnabledGlobalModel:"No enabled global model",saveModels:"Save model settings",modelsSaved:"Model settings saved. They will apply on the next start or restart.",managedApps:"Managed apps",managedAppsDescription:"Install, update, and remove trusted built-in apps on this controlled computer.",refreshApps:"Refresh managed apps",appsLoading:"Loading the controlled computer's app capabilities…",appsUnavailable:"App management unavailable",retry:"Retry",noSnapshot:"No authoritative app management snapshot is available",noManagedApps:"This controlled instance does not publish any managed apps",appFilters:"Managed app filters",observed:"Observed {time} · Privilege {privilege}",readyToInstall:"{count} ready to install",noInstalls:"No installs available",noFilterMatches:"No apps match this filter",installing:"Installing",updating:"Updating",uninstalling:"Uninstalling",install:"Install",update:"Update",uninstall:"Uninstall",liveInstallerOutput:"Live installer output",installerOutput:"Installer output",latestLog:"latest 32 KB",retryDetected:"You can retry from the current detected state.",customLaunchers:"Custom launchers",customLaunchersDescription:"Launcher entries only. They register programs already present on the computer and cannot install software.",noCustomLaunchers:"No custom launchers are registered on this instance",executableMissing:"Executable not found on the controlled computer.",inventoryDiagnostics:"Inventory diagnostics",inventoryObserved:"Inventory observed {time}",operationQuestion:"{operation} {name}?",app:"App",target:"Target",privilege:"Privilege",cancel:"Cancel",queuing:"Queuing…",confirmInstall:"Confirm install",confirmUpdate:"Confirm update",confirmUninstall:"Confirm uninstall",installDescription:"The controlled instance will execute its trusted built-in recipe on the final computer. The request cannot provide a custom package, URL, or command.",updateDescription:"The controlled instance will update the app to the latest version from its current built-in recipe. User configuration, AI sessions, and workspaces are preserved. Running app sessions are not terminated and use the new version on their next launch.",uninstallDescription:"The program files owned by the built-in recipe will be removed. User configuration, AI sessions, and workspaces are preserved. Running app sessions must be stopped first.",inventoryCurrent:"Current",inventoryStale:"Stale",inventoryEmpty:"Empty",inventoryDegraded:"Degraded",filterAll:"All",filterAvailable:"Available",filterInstalled:"Installed",waitingInstaller:"Waiting for the installer to start…",queued:"Queued",installation:"Installation",uninstallation:"Uninstallation",succeeded:"{operation} succeeded",cancelled:"{operation} cancelled",interrupted:"{operation} interrupted",failed:"{operation} failed",stateInstalled:"Installed",stateNotInstalled:"Not installed",stateBroken:"Needs attention",stateUnsupported:"Unsupported",bundledUnavailable:"Not included in this controlled computer build.",noAction:"No app management action is available",appActions:"App actions",checkUpdate:"Check for updates",checkingUpdate:"Checking for updates…",updateAvailable:"Update available · {installed} → {latest}",updateUpToDate:"Up to date",updateUnknown:"Update status unknown",updateUnknownReason:"Update check failed · {reason}",updateUnsupported:"This app does not support update checks",operationQueued:"{operation} queued for {name}."}},wqe={home:"Home",board:"Board",ai:"AI",story:"Story",settings:"Settings",user:"User",userMenu:"User menu",signedInAs:"Signed in as",instances:"Instances",nodes:"Nodes",workbenchView:"Workbench view",windowControls:"Window controls",controlPlane:"Control plane",approvals:"Approvals",collapseApprovals:"Collapse approvals",expandApprovals:"Expand approvals",noApprovals:"No pending approvals",aiSessionApproval:"AI session approval",operationApproval:"Operation approval",storyDecision:"Story decision",instanceDeleteApproval:"Delete instance",nodeRemoveApproval:"Remove node",nodeUpdateApproval:"Apply node update",nodeExternalListenerApproval:"Change external listener",userAccessApproval:"Change user access",roleUpdateApproval:"Update role",roleRemoveApproval:"Remove role",identityProviderUpdateApproval:"Update identity provider",identityProviderRemoveApproval:"Remove identity provider",gitCredentialAssignApproval:"Assign Git credential",approvalFields:{roleIds:"Roles",nodeScope:"Node scope",instanceScope:"Instance scope",changedFields:"Changed fields",permissionIds:"Permissions",status:"Status",loginPolicy:"Login policy",credentialId:"Credential",bindScope:"Bind scope",port:"Port",targetVersion:"Version",channel:"Channel"},approveOperation:"Approve",denyOperation:"Deny",moreApprovals:"{count} more approvals · Show next"},Sqe={title:"Repository",files:"Files",changes:"Changes",branches:"Branches",worktrees:"Worktrees",empty:"No repository content",common:{cancel:"Cancel",close:"Close",refresh:"Refresh",unknownBranch:"Unknown branch",unbornBranch:"Unborn branch",detachedAt:"Detached at {commit}",repositoryRoot:"repository root",cwd:"cwd: {path}"},errors:{workspaceLoad:"Failed to load repository workspace.",directoryLoad:"The repository directory could not be loaded.",fileLoad:"The repository file could not be opened.",contextLoad:"The instance did not return repository context.",branchesLoad:"The instance did not return branches.",branchOperation:"The branch operation failed.",worktreesLoad:"The instance did not return worktrees.",changesLoad:"Repository changes could not be loaded.",operation:"Repository operation failed.",diffLoad:"The file diff could not be loaded.",delivery:"Repository delivery failed."},workspace:{explorer:"File Explorer",loading:"Loading repository…",fileLoading:"Loading file…",openChanges:"Open Changes",changesCount:"Changes · {count}",newFile:"New file",searchFiles:"Search files or folders",searchUnavailable:"Search is unavailable on this instance",searching:"Searching…",searchError:"Repository paths could not be searched.",noSearchResults:"No matching files or folders",searchTruncated:"More results exist; enter a more specific path",empty:"The repository folder is empty",resizeSidebar:"Resize repository sidebar",openFiles:"Open repository files",closeFile:"Close {path}",executable:"executable",text:"text",rename:"Rename",delete:"Delete",openFile:"Open a file",browseHint:"Browse repository-relative files from the explorer.",newFileTitle:"New repository file",newFileDescription:"Create an empty UTF-8 text file using a repository-relative path.",filePath:"File path",create:"Create file",creating:"Creating…",createError:"File could not be created.",renameTitle:"Rename repository file",renameDescription:"The destination must not already exist.",newPath:"New path",renameFile:"Rename file",renaming:"Renaming…",renameError:"File could not be renamed.",deleteTitle:"Delete repository file?",deleteDescription:"This permanently removes {path}.",deleteFile:"Delete file",deleting:"Deleting…",deleteError:"File could not be deleted.",detached:"detached {commit}",unborn:"unborn"},environment:{title:"Environment",refresh:"Refresh environment",offline:"Instance offline",offlineHint:"Reconnect the instance to inspect this session environment.",reading:"Reading environment",readingHint:"Resolving the session cwd and repository state.",filesChanges:"Files / Changes",filesUnavailable:"Repository files are unavailable",review:"Review changes",reviewHint:"Changed files only · continuous diff review",changesUnavailable:"Repository changes are unavailable",detachedNotice:"Detached HEAD at {commit}. Create or checkout a branch before publishing.",unbornNotice:"Unborn branch with no commit yet. Create the first commit before delivery actions become available.",worktree:"Worktree",branch:"Branch",noChanges:"No local changes",branchSync:"{branch} · {ahead} ahead, {behind} behind",unavailable:{sessionNotFound:"This session no longer exists.",sessionInactive:"This session is no longer active.",cwdUnavailable:"The session working directory is unavailable.",notRepository:"The session working directory is not inside a Git repository.",repositoryMissing:"The repository is no longer available.",default:"Repository environment is unavailable."},primary:{publish:"Publish branch",push:"Push branch",pull:"Pull fast-forward",diverged:"Resolve diverged branch",upToDate:"Branch up to date"}},branchesPanel:{region:"Repository branches",create:"Create branch",refresh:"Refresh branches",newFromHead:"New branch from current HEAD",createCheckout:"Create and checkout",search:"Search branches",reading:"Reading branches…",local:"Local",remote:"Remote-tracking",noLocal:"No matching local branches",noRemote:"No matching remote-tracking branches",folder:"{name} folder, {count} branch | {name} folder, {count} branches",uncommitted:"{count} uncommitted file | {count} uncommitted files",checkedOut:"Checked out in {count} worktree | Checked out in {count} worktrees",sync:"{ahead} ahead, {behind} behind",delete:"Delete branch",tracked:"Tracked in {count} worktree | Tracked in {count} worktrees",track:"Track",trackingTitle:"Create tracking branch",trackingDescription:"Create a local branch that explicitly tracks {branch}.",localName:"Local branch name",trackingError:"The tracking branch could not be created.",deleteTitle:"Delete local branch?",deleteDescription:"Only a merged branch that is not current or checked out in another worktree can be deleted. Force deletion is not available.",deleteError:"The branch could not be deleted."},worktreesPanel:{region:"Repository worktrees",title:"Worktrees",description:"Inspect repository workspaces, session occupancy, and safe management actions.",search:"Search branches, commits, or worktree types…",count:"{count} worktrees",filteredFrom:"Filtered from {count}",noMatch:"No worktrees match this search",createSession:"New worktree",createDescription:"Create an isolated worktree from an existing branch or a new branch.",refresh:"Refresh worktrees",actions:"Worktree actions",newTitle:"New isolated AI session",newHint:"A managed worktree is created first. The current session stays in this worktree.",newBranch:"New branch",startRef:"Start ref",task:"Task",taskPlaceholder:"Describe what this AI session should do",createError:"Failed to create the worktree.",creating:"Creating worktree…",create:"Create worktree",reading:"Reading worktrees…",empty:"No worktrees were returned",startError:"Failed to start an AI session in this worktree.",current:"Current",main:"Main",managed:"Managed",external:"External",dirty:"Dirty",locked:"Locked",prunable:"Prunable",starting:"Starting AI session…",start:"Start AI session",newHere:"New AI session here",remove:"Remove worktree",removeManaged:"Remove managed worktree",removeTitle:"Remove worktree?",removeHint:"The current AI session and its working directory will not change.",removeError:"Failed to remove the worktree.",removing:"Removing…",blockers:{locked:"Locked worktree",prunable:"Prunable worktree record",outside:"Outside authorized workspace roots",inaccessible:"Worktree directory is inaccessible",unavailable:"Unavailable for a new AI session",cannotRemove:"Worktree cannot be removed",main:"Main worktree",currentWorktree:"Current worktree",external:"External worktree",outsideRoots:"Outside authorized roots",uncommitted:"Uncommitted changes",activeSession:"Associated session",directoryInaccessible:"Directory inaccessible",mainSessionOccupied:"Main worktree has a running session",detachedHead:"HEAD is detached",unbornHead:"Branch has no commit yet",mainDirty:"Main worktree has uncommitted changes"},moveToMain:"Move to main worktree",moveToMainChecking:"Checking the main worktree…",moveToMainTitle:"Move to the main worktree?",moveToMainDescription:"The main worktree adopts this worktree's branch and its uncommitted changes, then the worktree directory is deleted. The main worktree's own uncommitted changes and running sessions must be handled first.",moveToMainMainBranch:"Main worktree branch: {branch}",moveToMainMainDetached:"The main worktree is on a detached HEAD",moveToMainCarry:"Carries {count} uncommitted changes; ignored files are not carried.",moveToMainClean:"This worktree has no uncommitted changes.",moveToMainConfirm:"Move",movingToMain:"Moving…",moveToMainError:"Moving the worktree into the main worktree failed.",movedToMain:"Moved into the main worktree.",movedToMainWithChanges:"Moved into the main worktree and carried its uncommitted changes.",removedRetained:"Worktree removed. Its branch was retained.",removed:"Worktree removed.",recovery:"The new worktree was retained so its state can be recovered safely."},review:{title:"Changes",openExplorer:"Open File Explorer",explorer:"File Explorer",files:"Files",filter:"Filter changed files…",changedFiles:"Changed files",noMatch:"No changed files match this view",scope:"Change scope",layout:"Diff layout",unified:"Unified",unifiedDiff:"Unified diff",split:"Split",splitDiff:"Split diff",splitWide:"Split view requires a wider window",loading:"Loading repository changes…",noScope:"No changes in this scope",noScopeHint:"Choose another scope or refresh the repository snapshot.",discardTitle:"Discard working tree change?",discardDescription:"This restores {path} from the index. Existing staged content is retained.",discard:"Discard change",discardError:"The working tree change could not be discarded.",noSnapshot:"No snapshot",working:"Working",staged:"Staged",conflicts:"Conflicts",markedResolved:"Marked conflict as resolved and staged it.",stagedSuccess:"Staged change.",unstagedSuccess:"Unstaged change.",discardedSuccess:"Discarded working tree change.",snapshotUnavailable:"Repository snapshot is unavailable."},diff:{collapse:"Collapse context",openFiles:"Open files",unstage:"Unstage",stage:"Stage",resolved:"Mark resolved",discard:"Discard",updating:"Updating repository…",loading:"Loading diff…",binary:"Binary file",binaryHint:"This change cannot be rendered as text.",truncatedBytes:"Only the first {count} bytes are shown.",truncatedLines:"Only the first {count} rendered lines are shown.",unifiedAria:"{path} {scope} unified diff",splitAria:"{path} {scope} split diff",noText:"No textual diff is available",none:"none",scope:{conflict:"Conflict",staged:"Staged",unstaged:"Working tree",untracked:"Untracked"},status:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed",copied:"Copied",typeChanged:"Type changed",untracked:"Untracked",unmerged:"Unmerged"},expandEarlier:"Expand {count} earlier lines",expandLater:"Expand {count} later lines",hunk:"Old lines {old}; new lines {new}"},delivery:{remote:"Remote",selectRemote:"Select a configured remote",remoteBranch:"Remote branch",setUpstream:"Set as upstream",setUpstreamHint:"This changes tracking configuration and requires this explicit confirmation.",source:"Source",destination:"Destination",explicitRefspec:"Push uses an explicit refspec and never uses force.",upstream:"Upstream",mode:"Mode",ffOnly:"Fast-forward only",noMerge:"No merge commit or rebase will be created.",blocked:"Automatic synchronization is blocked.",divergedHint:"The branch is {ahead} ahead and {behind} behind. Resolve it in the session terminal, then refresh Environment.",upToDate:"Branch is up to date.",upToDateHint:"Fetch a configured remote to check for newer remote refs.",fetchRemote:"Fetch remote",fetchHint:"Refresh remote-tracking refs without changing the worktree.",fetch:"Fetch",titles:{publish:"Publish branch",push:"Push branch",pull:"Pull fast-forward",diverged:"Branch diverged",upToDate:"Branch up to date",fallback:"Repository delivery"},descriptions:{publish:"Choose an explicit remote and target branch. No hosting-platform integration is required.",push:"Confirm the exact local source and upstream destination before pushing.",pull:"Update the current branch only when Git can fast-forward it cleanly.",diverged:"The server has blocked automatic pull and push for this state.",upToDate:"No delivery mutation is currently required.",fallback:"Repository delivery state."},publish:"Publish",push:"Push",pull:"Pull --ff-only",continue:"Continue",fetched:"Fetched {remote}.",published:"Published {branch}.",pushed:"Pushed {branch}.",pulled:"Fast-forwarded {branch}."},working:"Working…",worktreeDirectoryRemoved:"The new worktree directory was removed; its branch was retained.",worktreeRemoveDescription:"This deletes the worktree directory. The Git branch is retained, and this action cannot be undone.",reviewExtra:{fileCount:"{count} file | {count} files",all:"All",summary:"{conflicts} conflicts · {staged} staged · {working} working"},environmentExtra:{conflict:"{count} conflict | {count} conflicts",staged:"{count} staged",unstaged:"{count} unstaged",untracked:"{count} untracked",main:"main",managed:"managed",external:"external",dirty:"dirty",activeSessions:"{count} active session | {count} active sessions",associatedSessions:"{count} associated session | {count} associated sessions",unknownCommit:"unknown commit",availability:{cwdMissing:"This session has no recorded working directory.",cwdInaccessible:"The session working directory is inaccessible.",gitUnavailable:"Git is unavailable in this instance.",notWorktree:"The current directory is not a Git repository.",available:"Repository available"},actions:{review:"Review changes",resolve:"Resolve conflicts",publish:"Publish branch",push:"Push",pull:"Pull",diverged:"Branch diverged",upToDate:"Up to date"}},errorNotice:{retryable:"Retryable",actionRequired:"Action required",manageCredentials:"Manage credentials",recovery:{REPOSITORY_SESSION_NOT_FOUND:"The session was deleted. Close this view and return to the current session list.",REPOSITORY_SESSION_INACTIVE:"The session is no longer active. Reopen Environment from an active session.",REPOSITORY_CWD_MISSING:"This session has no authoritative working directory to inspect.",REPOSITORY_CWD_INACCESSIBLE:"Restore access to the session working directory in the controlled instance, then refresh.",REPOSITORY_GIT_UNAVAILABLE:"Install Git in the controlled instance. The control plane will not run Git against a local substitute path.",REPOSITORY_NOT_WORKTREE:"This action requires a Git worktree. Use the session terminal to initialize or enter a Git worktree, then refresh Environment.",REPOSITORY_FILE_BINARY:"Binary content is not loaded into the editor. Use an appropriate tool in the session environment.",REPOSITORY_FILE_TOO_LARGE:"Open the file with a tool in the session environment; the browser editor size limit was not bypassed.",REPOSITORY_FILE_STALE:"The server version changed. Review the latest content before explicitly retrying your draft.",REPOSITORY_STATE_STALE:"Repository state changed after this view loaded. Review the latest server snapshot before retrying.",REPOSITORY_WORKTREE_NOT_FOUND:"The worktree disappeared or moved. Refresh the worktree list before choosing another one.",REPOSITORY_WORKTREE_OCCUPIED:"An active AI or app session is using this worktree. Stop or move that work before retrying.",REPOSITORY_WORKTREE_UNSAFE:"The worktree is unsafe for this operation. Review its blockers; force is unavailable.",REPOSITORY_MAIN_DIRTY:"Commit or stash the main worktree's changes first, then move the worktree. Its changes are never carried to another branch.",REPOSITORY_MOVE_CONFLICT:"The changes are still in the stash and the worktree was not removed. Resolve them in the main worktree, then drop the retained stash entry.",REPOSITORY_BRANCH_OCCUPIED:"The branch is checked out in another worktree. Use that worktree or choose a different branch.",REPOSITORY_BRANCH_UNMERGED:"The branch contains unmerged commits. Merge it safely before deletion; force deletion is unavailable.",REPOSITORY_CONFLICT:"Resolve every conflict in Files / Changes or the session terminal, then refresh repository state.",REPOSITORY_DIRTY:"Review or commit the current changes first. The system will not stash or overwrite them automatically.",REPOSITORY_IDENTITY_MISSING:"Configure Git user.name and user.email in the controlled instance before committing.",REPOSITORY_HOOK_FAILED:"Inspect the failing Git hook in the session terminal. The commit was not reported as successful.",REPOSITORY_SIGNING_FAILED:"Repair commit signing in the controlled instance or inspect it in the session terminal.",REPOSITORY_AUTHENTICATION_FAILED:"Verify the controlled instance's existing Git or SSH credentials in the session terminal.",REPOSITORY_CREDENTIAL_MISSING:"Authorize a matching credential in instance settings, then retry explicitly.",REPOSITORY_CREDENTIAL_AMBIGUOUS:"Remove the overlapping retained assignment in instance settings, then retry explicitly.",REPOSITORY_REMOTE_UNSUPPORTED:"Use an HTTPS, ssh://, or scp-like remote that matches an authorized scope.",REPOSITORY_HOST_KEY_REQUIRED:"Add pinned known-hosts data to the SSH credential, then retry explicitly.",REPOSITORY_AUTHENTICATION_REJECTED:"Rotate or replace the retained credential in instance settings, then retry explicitly.",REPOSITORY_NON_FAST_FORWARD:"Fetch and reconcile the branch in the session terminal. The system will not retry with force.",REPOSITORY_UPSTREAM_MISSING:"Publish the branch with an explicit remote and target before using upstream delivery actions.",REPOSITORY_COMMAND_TIMEOUT:"The Git command reached its time limit. Check the repository in the session terminal before retrying.",REPOSITORY_OUTPUT_LIMIT:"The command exceeded its output budget. Inspect the complete result in the session terminal.",REPOSITORY_OPERATION_ABORTED:"Repository state was preserved. Refresh the authoritative snapshot before retrying."}}},_qe={title:"AI sessions",browser:{address:"Address",back:"Back",forward:"Forward",reload:"Reload",stop:"Stop",connecting:"Connecting browser",unavailable:"Browser access is unavailable.",loadFailed:"Page failed to load.",invalidUrl:"Enter a valid HTTP or HTTPS URL.",pinned:"Web applications",addPinned:"Add web application",addPinnedTitle:"Add web application",addPinnedDescription:"Save a name and URL for quick access from the browser start page.",savePinned:"Add application",removePinned:"Remove web application",noPinned:"No web applications",recent:"Recent visits",noRecent:"No recent visits",clearRecent:"Clear",pinnedName:"Application name",pinnedUrl:"Application URL"},viewer:{pausedTitle:"Live view paused",pausedDetail:"No activity for a while, so the live view stopped. The session inside the instance is still running — reconnect to continue.",reconnect:"Reconnect"},status:{idle:"Idle",running:"Running",waiting:"Waiting",waitingApproval:"Waiting for approval",completed:"Completed",failed:"Failed",stopped:"Stopped",runningWith:"Running · {detail}",tool:"tool",editing:"editing",responding:"responding"},permission:{ask:"Ask for approval",autoReview:"Approve for me",fullAccess:"Full access"},board:{label:"AI session board",loading:"Loading AI sessions...",layout:"AI board layout",columns:"Column layout",grid:"Grid layout",search:"Search AI sessions",counts:"AI session counts",instancesOnline:"{count} instances online",options:"AI board options",sort:"Sort",sortByStatus:"Sort by status",group:"Group",noGrouping:"No grouping",groupPath:"Group by path",groupInstance:"Group by instance",groupNode:"Group by node",groupAgent:"Group by agent",boundTotal:"{visible} sessions shown · {total} total",noMatches:"No matching AI sessions",running:"Running",waitingApproval:"Waiting approval",idleOpen:"Idle",problem:"Problem",runningDescription:"Executing, thinking, using tools, or editing files",waitingDescription:"Waiting for approval or user input",idleDescription:"AI session is idle",problemDescription:"AI session failed",noRunning:"No running AI sessions",noWaiting:"No sessions waiting",noIdle:"No idle sessions",noProblem:"No problem sessions",waiting:"Waiting",idleOpenTitle:"Idle",all:"All sessions",unknownPath:"Unknown path",unknownFolder:"Unknown folder",unknownNode:"Unknown node",activity:"AI activity",countActive:"{count} active",countIdle:"{count} idle",countWaiting:"{count} waiting",updated:"AI · {time}"},actions:{allow:"Allow",skip:"Skip",deny:"Deny",controls:"AI session card controls",searchTriggers:"Search triggers",noTriggers:"No trigger templates",noMatchingTriggers:"No matching triggers",remove:"Remove",add:"Add",openAppFor:"Open app session for {agent}",openApp:"Open app session",openTerminal:"Open Terminal",moreFor:"More actions for {agent}",more:"More actions",rename:"Rename",fork:"Continue chatting",forkCurrent:"Use current workspace",forkWorktree:"Create independent worktree",continueFromTurn:"Continue chatting from this turn",forkBusyTitle:"Continue chatting while this turn is running?",forkBusyDescription:"Codex will start a new chat from the interrupted snapshot. The source turn will continue without interruption.",forkConfirm:"Continue chatting",forking:"Continuing chat",closingApp:"Closing app session",closeApp:"Close app session",closingSession:"Closing AI session",closeSession:"Close AI session",unread:"Unread AI session",openedFromTerminal:"Opened from a terminal app session",previousMessage:"Previous user message for {agent}",nextMessage:"Next user message for {agent}",addTrigger:"Add trigger",triggersBound:"{count} triggers bound",addToStory:"Add to Story",moveToStory:"Move to Story",addToConversation:"Add to conversation",saveAsPreset:"Save as preset action",loadingStories:"Loading stories…",storiesLoadFailed:"Could not load stories.",noStories:"No Story yet",storyAssigned:"Added to Story",storyMoved:"Moved to Story",storyAssignFailed:"Could not add AI session to Story",copy:"Copy",copyPath:"Copy path",copyName:"Copy name",copySessionId:"Copy Session ID",copied:"Copied",copyFailed:"Could not copy the value."},rename:{title:"Rename AI session",description:"Leave blank to use the latest prompt.",label:"Session title",failed:"Failed to rename AI session."},detail:{selected:"Selected AI session",sessionDetails:"Session details",workspace:"Workspace",session:"Session",appBinding:"App binding",forkedFrom:"Forked from",unknown:"Unknown",notBound:"Not bound",collapse:"Collapse details",expand:"Expand",collapsePrompt:"Collapse",noSelected:"No AI session selected",loading:"Loading session details…",loadFailed:"Failed to load session details.",retry:"Retry",retryWarning:"Temporary connection issue",sessionError:"Session error",noErrorDetail:"Session failed. No diagnostic details were provided."},markdown:{copied:"Copied",copy:"Copy",plainText:"Plain text",openFile:"Open in built-in file manager",openDesktopFile:"Open in desktop file manager",copyPath:"Copy file path",openBuiltinBrowser:"Open in built-in browser",openDefaultBrowser:"Open in default browser",copyLink:"Copy link"},panel:{switchBranchFailed:"Failed to switch the current folder branch.",view:"View",status:"Status",listOptions:"AI session list options",sessionList:"AI session list",sessionListDescription:"Choose a conversation to show in the detail view.",newSession:"New AI session",allStatuses:"All statuses",active:"Active",waiting:"Waiting",problem:"Problem",noMatching:"No matching sessions",noConversations:"No conversations yet",tryFilter:"Try another status filter.",startHint:"Use the + button above to start a conversation.",noAgentsTitle:"No AI agent is installed",noAgentsDescription:"Install an AI agent in this instance before starting a session.",openAppManagement:"Open App management",resizeList:"Resize AI session list",startIdea:"Start with an idea",searchProjects:"Search projects",noProjects:"No projects found",newProject:"New project",openInFileManager:"Open in file manager",openInFileManagerFailed:"Failed to open the folder in the system file manager.",renameProject:"Rename",renameProjectDescription:"Change the project name shown in folder pickers and AI session groups without changing its path.",renameProjectFailed:"Failed to rename the project.",projectName:"Project name",currentBranchMode:"Current branch",currentFolderMode:"Current folder",worktreeMode:"Worktree",chooseBranch:"Choose branch",searchBranches:"Search branches",detached:"Detached",switchBranchTitle:"Switch the current folder branch?",switchBranchDescription:"Starting the session will switch the current folder to “{branch}”. Uncommitted changes remain, but other active sessions in this folder may observe the new working tree.",confirmBranchSwitch:"Confirm switch",chooseWorktree:"Choose worktree",searchWorktrees:"Search worktrees",noWorktrees:"No matching worktrees",newWorktree:"New worktree",newWorktreeDescription:"Create an isolated worktree from an existing branch or a new branch, then start this AI session there.",newWorktreeMode:"Worktree branch mode",existingBranch:"Existing branch",newBranch:"New branch",branch:"Branch",noBranches:"No matching branches",newWorktreeDetachedDescription:"This ref is already checked out. The new worktree will use its current commit in detached HEAD mode.",newWorktreeBranch:"New branch",newWorktreeStartRef:"Start ref",useNewWorktree:"Use new worktree",currentWorktree:"Current",mainWorktree:"Main",managedWorktree:"Managed",externalWorktree:"External",dirtyWorktree:"Dirty",worktreeInUse:"In use",unknownBranch:"Unknown branch",unbornBranch:"Unborn branch",detachedWorktree:"Detached at {commit}",promptPlaceholder:"Do anything",chooseProject:"Choose project",projectUnavailable:"This project is no longer registered on the node.",startedWorktree:"AI session started in the selected worktree.",backLatest:"Back to latest",backLatestTurn:"Latest",defaultPermissionFailed:"Failed to update the default Codex permission mode.",starting:"The new AI session is still starting. Please try again in a moment.",startFailed:"Failed to start AI session.",presetSaved:"Preset action saved.",modelSwitchFailed:"Failed to switch model.",reasoningEffortFailed:"Failed to change reasoning effort.",sendFailed:"Failed to send message.",noGoal:"No active goal",commandFailed:"Failed to run command.",steerFailed:"Failed to steer message.",steerQueuedFailed:"Failed to steer queued message.",retryQueuedFailed:"Failed to retry queued message.",removeQueuedFailed:"Failed to remove queued message.",editQueuedFailed:"Failed to edit queued message.",reorderQueuedFailed:"Failed to reorder queued messages.",stopFailed:"Failed to stop AI session.",forkFailed:"Failed to continue the chat.",forkProjectionPending:"The new chat was created, but its session state is not confirmed yet. Retry shortly.",approvalFailed:"Failed to resolve approval.",closeAppFailed:"Failed to close app session.",closeSessionFailed:"Failed to close AI session.",openAppFailed:"Failed to open an app for the AI session.",setQueuePausedFailed:"Failed to update the queue state.",loadingHistory:"Loading previous conversations…",retry:"Retry",noHistory:"No previous conversations",viewHistory:"View previous conversations",selectHistory:"Select a previous conversation to view details",loadingHistoryDetail:"Loading conversation details…",noHistoryDetail:"This conversation has no details to display",continue:"Continue conversation",continueConversation:"Send a message to continue this conversation",attachmentUnavailable:"Attachment content is unavailable: {name}",backCurrent:"Back to current conversation",history:"Previous conversations",historyOptions:"Previous conversation list options",cardLayout:"Cards",listLayout:"List",noGrouping:"No grouping",groupByPath:"Group by path",groupByStory:"Group by Story",unassignedStory:"Unassigned Story",showEmptyPathGroups:"Show paths without sessions",sortByStatus:"Sort by status",expandSubSessions:"Expand sub sessions",collapseSubSessions:"Collapse sub sessions",historyLoadFailed:"Failed to load previous conversations.",historyDetailFailed:"Failed to load conversation details.",unnamedConversation:"Untitled conversation",resumePending:"The conversation started, but its runtime state is not confirmed yet. Please try again shortly.",continueFailed:"Failed to continue this conversation."},composer:{plugins:"Plugins",skills:"Skills",files:"Files",directories:"Directories",apps:"Apps",stopTurn:"Stop current AI turn",send:"Send message",sending:"Sending…",stopping:"Stopping…",editingQueuedMessage:"Editing queued message",saveQueuedMessage:"Save queued message",saving:"Saving…",cancelQueuedEdit:"Cancel queued message editing",askDescription:"Ask before accessing the internet or editing files outside the workspace.",autoReviewDescription:"Only ask for actions detected as potentially unsafe.",fullAccessDescription:"Unrestricted internet and file access without approval.",localPath:"Local path",removeAttachment:"Remove attachment",previewImage:"Preview {name}",zoomIn:"Zoom in",zoomOut:"Zoom out",copyImage:"Copy image",imageCopied:"Image copied",copyImageFailed:"Could not copy the image.",uploadProgress:"Uploading: {progress}%",blankPastedText:"Blank text",textLength:"{count} characters",followUp:"Ask for follow-up changes",noMatches:"No matches",commands:"Commands",loading:"Loading...",openCommands:"Open command menu",permissionMode:"Permission mode: {mode}",choosePermission:"Choose permission mode",modelSelectionTitle:"Model: {model}",modelSelectionUnavailable:"Model switching is unavailable for this session",noModelConfigured:"No model",openModelSettings:"Open settings",modelGroupSummary:"{model} and {count} models",provider:"Provider",model:"Model",reasoningEffort:"Reasoning effort",selectionNotSet:"Not set",steerTurn:"Steer current AI turn",steerTurnShortcut:"Steer current AI turn (Ctrl+Enter)",availableIdle:"available when idle",review:"Review uncommitted changes",rename:"Rename the current thread",goal:"Set or view the long-running goal",compact:"Summarize conversation context",threadName:"thread name",objective:"objective",supportedImages:"Only PNG, JPG, WEBP, GIF, and BMP images are supported.",emptyFile:"Empty files cannot be attached.",imageTooLarge:"An image cannot exceed 20 MB.",runtimePathOutside:"Local Runtime path attachments must be inside the current AI session workspace. Move the file into the workspace and try again.",browserPathUnavailable:"This browser cannot access the local file path. Use the desktop app to attach the path directly, or select a file smaller than 500 KiB.",fileTooLarge:"The file is too large; files must be smaller than 500 KiB.",tooManyAttachments:"You can attach at most 6 files.",totalTooLarge:"Inline attachments in one message cannot exceed 40 MB.",readFailed:"Failed to read attachment.",mentionUnavailable:"Mention catalog unavailable.",fileSearchUnavailable:"File search unavailable.",navigation:"AI session message navigation"},activity:{waitingApproval:"Waiting for approval...",waitingApprovalSummary:"Waiting for approval · {summary}",responding:"Responding...",respondingTools:"Responding... · {count} tool completed | Responding... · {count} tools completed",editing:"Editing...",waiting:"Waiting...",thinking:"Thinking...",thinkingTools:"Thinking... · {count} tool completed | Thinking... · {count} tools completed",queue:"Queue · {count}",steer:"Steer",retry:"Retry",remove:"Remove",edit:"Edit",save:"Save",cancel:"Cancel",reorder:"Drag to reorder queued message",moveUp:"Move up",moveDown:"Move down",pauseQueue:"Pause queue",resumeQueue:"Resume queue",noRecent:"No recent AI activity",runningTool:"Running {tool}",running:"Running..."},timeline:{turnActions:"Turn actions",viewMode:"Conversation detail view",compact:"Compact",full:"Conversation",user:"You",image:"Image",loading:"Loading full activity…",loadFailed:"Failed to load full activity.",noHistory:"No full conversation history is available",noActivities:"No activity is available for this message",attachmentExpired:"Content expired",attachmentMissing:"Content unavailable",activityCount:"{count} activity | {count} activities",processedUnavailable:"-",processedSeconds:"Processed in {seconds}s",processedMinutes:"Processed in {minutes}m {seconds}s",processedHours:"Processed in {hours}h {minutes}m {seconds}s",processedDays:"Processed in {days}d {hours}h {minutes}m {seconds}s",details:"Show details",input:"Input",output:"Output",copyDiff:"Copy diff",fileDiff:"File diff for {path}",noFileDiff:"No textual diff is available",commandShell:"Shell",copyOutput:"Copy output",noCommandOutput:"No output",exitCode:"Exit code: {code}",status:{running:"Running",completed:"Completed",failed:"Failed",waiting:"Waiting"},commandStatus:{running:"Running",completed:"Ran",failed:"Run failed",waiting:"Waiting to run",unknown:"Run command"}},subAgents:{label:"Sub-agent activity",summary:"Sub-agents · {details}",pending:"Pending",running:"Running",interrupted:"Interrupted",completed:"Completed",errored:"Errored",shutdown:"Shutdown",notFound:"Not found",started:"Started",interacted:"Interacted"},tabs:{views:"Session views",paneViews:"{pane} session views",paneTabs:"{pane} session tabs",status:"Status",close:"Close session",closeNamed:"Close {name}",rename:"Rename session",renameUnavailable:"Update the controlled instance to rename this linked session",moveLeft:"Move to left",moveRight:"Move to right",manageApps:"Manage apps",manageAppsDescription:"Install or uninstall apps",paneMenu:"Sessions in this pane",emptyPane:"No sessions in this pane",closeSplit:"Close split view",split:"Split session view",restore:"Restore session preview",expand:"Expand session preview",restoreShort:"Restore preview",expandShort:"Expand preview",resizePanes:"Resize session panes",instanceStatus:"Instance status",headerDensity:"Header height",headerCompact:"Compact",headerNormal:"Normal",showStatusBar:"Show bottom status bar",showInstanceSidebar:"Show instance sidebar",alwaysOnTop:"Keep window on top",alwaysOnTopReadFailed:"Failed to read the window always-on-top setting.",alwaysOnTopFailed:"Failed to update the window always-on-top setting.",health:"Health {status}",workspace:"Workspace {status}",waitingMetrics:"Waiting for the first resource sample.",resourcesUnavailable:"Resources unavailable",resourcesLoading:"Resources loading",lastRefresh:"Last refresh {time}",appSession:"App session",app:"App",titleRequired:"Session title is required.",renameFailed:"Failed to rename session.",resourcesStarting:"Resources starting",resourcesStopped:"Resources stopped",resourcesStale:"Resources stale",waitingContainer:"Waiting for the Docker container · sampled {time}",containerStopped:"Container stopped · sampled {time}",metricsUnavailable:"Docker metrics are unavailable.",sampledError:"{error} · sampled {time}",cpu:"CPU {value}",memory:"Memory {value}",network:"Network ↓{rx} ↑{tx}",processes:"Processes {count}",sampled:"Sampled {time}",stopping:"Stopping",launching:"Launching",connecting:"Connecting",offline:"Offline",launchApp:"Launch app",launchUnavailable:"Instance is still starting. Apps can be launched after it connects.",unknownWorkspace:"Unknown workspace",terminal:"Terminal",browser:"Browser",logs:"Logs",session:"Session",appFallback:"App {number}",embeddedBrowser:"Embedded browser",profileDefault:"Default",profileDefaultHint:"Default · {name}",profileRunning:"Running session",profileDiskUsage:"{size} on disk",profileDiskUnknown:"Disk usage unavailable",profileTemporary:"Temporary session",profileTemporaryDescription:"Starts with a fresh, disposable profile",profileLoading:"Loading profiles…",profileLoadFailed:"Could not load profiles.",appSessions:"{count} app sessions",noActiveApp:"No active app",readyAttach:"Ready to attach",waitingRegistration:"Waiting for registration",createdNotStarted:"Created, not started",lastHeartbeat:"Last heartbeat {time}",workbenchHint:"Create or register a controlled instance to make this workbench live.",searchProjects:"Search projects",noProjects:"No projects found",newProject:"New project",addFolderFromNode:"Add a folder from this node"}},Iqe={title:"Settings",appearance:{title:"Appearance",description:"Customize how TaskHandoff looks and behaves in this browser.",preferences:"Preferences",preferencesDescription:"Personal to this browser and applied immediately.",accessAndInput:"Access & input",accessAndInputDescription:"Shared behavior for opening sessions and writing prompts.",maintenance:"System maintenance",maintenanceDescription:"Updates and diagnostics for this Control Plane installation.",languageDescription:"Choose the language used by the control panel in this browser.",theme:"Theme",themeDescription:"Choose the color scheme used throughout the control plane.",colorTheme:"Color theme",light:"Light",dark:"Dark",queuePlacement:"Queued message position",queuePlacementDescription:"Applies only to Compact mode. Conversation mode always shows the queue above the composer.",queuePlacementDetail:"In detail",queuePlacementComposer:"Above composer",desktopUpdates:"Desktop updates",serverUpdates:"Server updates",desktopProduct:"TaskHandoff desktop",serverProduct:"TaskHandoff server",stable:"Stable",beta:"Beta",alpha:"Alpha",loadingUpdateState:"Loading update state",checking:"Checking",check:"Check",download:"Download",restartInstall:"Restart and install",openRelease:"Open release",queuing:"Queuing",update:"Update",latestJob:"Latest job",unknown:"unknown",updateAvailable:"update available",updateAvailableVersion:"Update available: {version}",upToDate:"up to date",currentNotChecked:"Current {version} · not checked",currentChecking:"Current {version} · checking for updates",downloadedRestart:"{version} downloaded · restart required",versionDownloading:"{current} → {available} · downloading",preparingRestart:"{version} · preparing to restart",currentManual:"Current {version} · manual updates only",desktopReleaseOnly:"Desktop updates use the desktop release channel.",builtinServerUnavailable:"The built-in server node is unavailable.",updateUnavailable:"Automatic updates are unavailable in this environment.",updateReason:{"development-build":"Automatic updates are disabled in development builds.","windows-signing-required":"Automatic installation requires a signed Windows installer.","appimage-required":"Automatic updates require the AppImage build. Other packages can be updated from the release page.","unsupported-platform":"Automatic updates are not supported on this platform."}},sections:"Settings sections",basic:"Basic",chat:"Chat",nodes:"Nodes",projects:"Git Projects",models:"Models",images:"Images",environmentTemplates:"Environment templates",chatBridges:"Chat bridges",gitCredentials:{navigation:"Git credentials",title:"Git credentials",description:"Manage scoped HTTPS tokens and SSH keys used by repositories and authorized instances.",add:"Add credential",loading:"Loading Git credentials...",empty:"No managed Git credentials",emptyDescription:"Add a credential to authorize matching Git remotes without exposing its secret.",loadFailed:"Could not load Git credentials.",search:"Search Git credentials",searchPlaceholder:"Search name, host, or path",kindFilter:"Credential type filter",allKinds:"All types",statusFilter:"Status filter",allStatuses:"All statuses",count:"Git credentials · {count}",filteredFrom:"Filtered from {count}",noMatches:"No matching credentials",noMatchesDescription:"Try changing the search or filters.",clearFilters:"Clear filters",createTitle:"Add Git credential",createDescription:"The secret is write-only and is not returned after saving.",editTitle:"Edit Git credential",editDescription:"Leave secret fields blank to keep the current secret, or enter a complete replacement to rotate it.",basicInformation:"Basic information",basicInformationDescription:"Name the credential and choose its authentication protocol.",scope:"Repository scope",scopeDescription:"Only remotes matching this host, port, and path prefix can use the credential.",authentication:"Authentication",authenticationDescription:"Secrets are write-only. Existing values cannot be viewed after saving.",name:"Name",kind:"Credential type",host:"Host",port:"Port",pathPrefix:"Repository path prefix",username:"Username",token:"Token",privateKey:"Private key",passphrase:"Private key passphrase",knownHosts:"Pinned known-hosts",keepSecret:"Leave blank to keep the current secret",revision:"Revision {revision}",sshKeyInputMode:"SSH key input mode",sshKeyModeGenerate:"Generate",sshKeyModeFile:"Import file",sshKeyModeManual:"Paste manually",sshKeyGenerateTitle:"Generate a key pair here",sshKeyGenerateDescription:"Create a new Ed25519 key pair without leaving this page. Copy the public key to your Git host and keep the private key in this credential.",sshKeyGenerateAction:"Generate key pair",sshKeyGenerating:"Generating…",sshKeyPublicKey:"Public key",sshKeyCopy:"Copy",sshKeyCopied:"Copied",sshKeyPublicKeyHint:"Copy this public key now and add it to your Git host as a deploy key or account SSH key. It is not stored and cannot be retrieved after saving.",sshKeyFilePrompt:"Choose or drop a private key file",sshKeyFileHint:"OpenSSH/PEM private keys such as id_ed25519 or id_rsa. The file is only read in your browser.",sshKeyFileLoaded:"Loaded {name}",sshKeyFileEmpty:"The selected file is empty.",sshKeyFileReadFailed:"Could not read the selected file.",sshKeyPlaceholder:"-----BEGIN OPENSSH PRIVATE KEY-----",sshKeyStorageHint:"The private key is only sent when you save and can never be read back.",sshKeyGenerateFailed:"Could not generate a key pair in this browser. Import or paste a key instead.",sshKeyCopyFailed:"Could not copy the public key.",knownHostsHint:"Paste the host key entry from ssh-keyscan or your known_hosts file so the credential can pin the server identity.",edit:"Edit / rotate",configure:"Configure",moreActions:"More actions",enable:"Enable",disable:"Disable",delete:"Delete",saving:"Saving",saved:"Git credential saved.",saveFailed:"Could not save the Git credential.",deleteFailed:"Could not delete the Git credential.",deleteTitle:"Delete {name}?",deleteDescription:"Credentials assigned to instances cannot be deleted until those assignments are revoked.",discardTitle:"Discard unsaved changes?",discardDescription:"Changes to this Git credential have not been saved.",discard:"Discard changes",status:{enabled:"Enabled",disabled:"Disabled"}},cloud:{navigation:"Thandoff account",title:"Connect Thandoff account",description:"Bind this Control Plane to one Thandoff account. Only local administrators can change this connection.",loading:"Loading Thandoff account connection…",loadFailed:"Could not load the Thandoff account connection.",controlPlaneId:"Control Plane ID",fingerprint:"Identity fingerprint",revision:"Binding revision",background:"Background relay",running:"Credential installed",notConnected:"Not connected",backgroundNote:"Relay is owned by the Control Plane background process. Closing this page, signing out of the local UI, or letting the authorization browser session expire does not stop it.",challengeOnce:"One-time authorization code (copied to clipboard)",challengeExpires:"Expires at {time}",creating:"Creating…",connect:"Connect Thandoff account",disableRemote:"Disable remote access",enableRemote:"Enable remote access",disconnect:"Disconnect Thandoff account",disconnectConfirm:"Disconnect the Thandoff account and immediately stop remote access?",resultUnknown:"Local access is disabled. The remote revocation result is not confirmed yet, so another Thandoff account cannot be bound.",cloneConflict:"This Control Plane identity is online from another installation. Remote access is quarantined until the clone conflict is resolved.",status:{unbound:"Not connected","pending-claim":"Awaiting authorization",active:"Connected","pending-revocation":"Revocation pending","clone-conflict":"Identity conflict"}},account:{navigation:"My account",title:"Account & security",description:"Manage your own Control Plane account. Changing your password signs out every other device.",authenticationRequired:"Account sign-in is not enabled.",username:"Username",currentPassword:"Current password",newPassword:"New password",confirmPassword:"Confirm new password",passwordLength:"The new password must contain at least 8 characters.",passwordMismatch:"The new passwords do not match.",save:"Change password",saving:"Changing password",saved:"Password changed. Other sessions were signed out.",saveFailed:"Could not change the password."},userAccess:{navigation:"Users & access",context:"Administrator tools",title:"Users & access",description:"Manage Control Plane accounts and assign each user a role and access to nodes and instances.",displayName:"Display name",username:"Username",password:"Initial password",role:"Role",allNodes:"All nodes",accessScope:"Node and instance access",nodeScope:"Node access",instanceScope:"Instance access",inheritNodeInstances:"All instances on assigned nodes",noInstances:"No instances available",create:"Create user",creating:"Creating",created:"User created.",loading:"Loading users...",loadingAccess:"Loading access...",empty:"No users found",enable:"Enable",disable:"Disable",archive:"Archive",restore:"Restore",manage:"Manage",saved:"User access updated.",userDetail:"User details",profile:"Profile",profileEdit:"Edit user information",profileDescription:"Change the display name. Local-password accounts can also change the username used to sign in.",profileSaved:"User information updated.",loginUsername:"Sign-in username",externalAccount:"Defined by an external identity",search:"Search users",allStatuses:"All statuses",selectedNodes:"{count} selected nodes",selectedInstances:"{count} selected instances",createDescription:"Create a local account with an initial role and temporary password.",saveAccess:"Save access",effectivePermissions:"Effective permissions",permissionSummary:"{permissions} permissions · {resources} resource types",viewPermissionDetails:"View details",noPermissions:"No effective permissions",permissionResources:{users:"Users",roles:"Roles","identity-providers":"Login providers",nodes:"Nodes",projects:"Projects",runtimes:"Runtimes",templates:"Templates",instances:"Instances","app-sessions":"App sessions","ai-sessions":"AI sessions",triggers:"Triggers",repositories:"Repositories",attachments:"Attachments",images:"Images",models:"Models",settings:"Settings",secrets:"Secrets","chat-bridges":"Chat bridges","public-directory":"Public directory"},permissionLabels:{users:{read:"View users",manage:"Manage users"},roles:{read:"View roles",manage:"Manage roles"},"identity-providers":{read:"View login providers",manage:"Manage login providers"},nodes:{read:"View nodes",manage:"Manage nodes"},projects:{read:"View projects",manage:"Manage projects"},runtimes:{read:"View runtimes",manage:"Manage runtimes"},templates:{read:"View templates",manage:"Manage templates"},instances:{read:"View instances",manage:"Manage instances",interactive:"Interact with instances"},"app-sessions":{read:"View app sessions",manage:"Manage app sessions",interactive:"Interact with app sessions"},"ai-sessions":{read:"View AI sessions",manage:"Manage AI sessions",interactive:"Interact with AI sessions"},triggers:{read:"View triggers",manage:"Manage triggers"},repositories:{read:"View repositories",manage:"Manage repositories"},attachments:{read:"View attachments",manage:"Manage attachments"},images:{read:"View images",manage:"Manage images"},models:{read:"View models",manage:"Manage models"},settings:{read:"View settings",manage:"Manage settings"},secrets:{manage:"Manage secrets"},"chat-bridges":{read:"View chat bridges",manage:"Manage chat bridges"},"public-directory":{read:"View public directory"}},tabs:{users:"Users",roles:"Roles",providers:"Login providers"},detailTabs:{access:"Access",security:"Sign-in & sessions"},confirmDescription:"This changes the user's ability to sign in or access the Control Plane. Confirm to continue.",confirm:{enable:"Enable this user?",disable:"Disable this user?",archive:"Archive this user?",restore:"Restore this user?",password:"Reset this user's password?","revoke-all":"Revoke all sessions?"},roles:{title:"Roles",description:"Define reusable permission sets and see which users reference them.",create:"Create role",edit:"Edit role",system:"System",noDescription:"No description",permissionCount:"{count} permissions",userCount:"{count} users",formDescription:"Select the exact permissions granted by this role.",name:"Role name",roleDescription:"Description",saved:"Role saved.",archived:"Role archived.",archiveTitle:"Archive {name}?",archiveDescription:"This role is referenced by {count} users. Referenced roles cannot be archived until assignments are changed."},providers:{title:"Login providers",description:"Configure OIDC and GitHub sign-in for this Control Plane.",create:"Add provider",edit:"Edit provider",empty:"No login providers configured",formDescription:"Saving validates the provider configuration. Secrets are never returned to the browser.",name:"Name",kind:"Provider type",issuer:"Issuer URL",githubIssuer:"github.com",clientId:"Client ID",clientSecret:"Client secret",keepSecret:"Leave blank to keep the current secret",callbackUrl:"Callback URL",loginPolicy:"New user policy",status:"Status",secretConfigured:"secret configured",secretMissing:"secret missing",saving:"Validating and saving",saved:"Login provider saved.",removeTitle:"Delete {name}?",removeDescription:"A provider with linked identities cannot be deleted."},approvals:{title:"Pending sign-up approvals",description:"Review external identities requesting a new Control Plane account.",empty:"No pending approvals",approve:"Approve",reject:"Reject",approveTitle:"Approve external identity",rejectTitle:"Reject this request?",rejectDescription:"The identity will not receive a Control Plane account from this request.",approved:"External identity approved."},identities:{title:"Login identities",unbind:"Unbind identity",unbindTitle:"Unbind this login identity?"},passwordReset:{title:"Local password",summary:"Generate a temporary password and require a change at the next sign-in.",action:"Reset password",dialogTitle:"Reset local password",description:"Save the generated temporary password before confirming. Existing sessions will be revoked.",regenerate:"Regenerate",confirm:"Confirm reset",saved:"Password reset."},sessions:{title:"Sessions",empty:"No active sessions",revoke:"Revoke",revokeAll:"Revoke all",revokeTitle:"Revoke this session?"},status:{active:"Active",disabled:"Disabled",archived:"Archived"},failed:"Could not update user access."},mobileSessions:{navigation:"Devices & sessions",title:"Mobile device sessions",description:"Devices and command line clients signed in to your account. Revoking a session signs that client out without affecting the others.",authenticationRequired:"Account sign-in must be enabled before mobile device sessions can be managed.",loading:"Loading mobile devices...",empty:"No mobile devices are signed in to this account",refresh:"Refresh",refreshing:"Refreshing",lastSeen:"Last active",expires:"Expires",signedInAs:"Account",revoke:"Revoke access",revoking:"Revoking",revokeTitle:"Revoke access for {name}?",revokeDescription:"This device will lose access to the Control Plane and must sign in again. Other devices are unaffected.",revoked:"Access revoked for {name}.",loadFailed:"Could not load mobile device sessions.",revokeFailed:"Could not revoke the mobile device session.",notFound:"This mobile device session no longer exists."},cliSessions:{title:"Command line sessions",description:"Signed-in command line clients. Revoking a session signs that client out without affecting other clients.",loading:"Loading command line sessions...",empty:"No command line clients are signed in to this account",lastSeen:"Last active",expires:"Expires",signedInAs:"Account",revoke:"Revoke access",revoking:"Revoking",revokeTitle:"Revoke access for {name}?",revokeDescription:"This command line client will lose access to the Control Plane and must sign in again. Other clients are unaffected.",revoked:"Access revoked for {name}.",loadFailed:"Could not load command line sessions.",revokeFailed:"Could not revoke the command line session.",notFound:"This command line session no longer exists."},chatBridge:{count:"Chat bridges · {count}",empty:"No chat bridges configured",pageDescription:"Manage chat entry points for Telegram, WeChat, DingTalk, and Feishu / Lark.",add:"Add bridge",chooseChannel:"Choose a chat channel",search:"Search chat bridges",searchPlaceholder:"Search name, channel, or default chat ID",channelFilter:"Chat channel",allChannels:"All channels",statusFilter:"Bridge status",allStatuses:"All statuses",statusError:"Error",filteredFrom:"Filtered from {count}",noMatches:"No matching chat bridges",noMatchesDescription:"Try changing the search or filters.",emptyDescription:"Add a chat bridge to access AI sessions from an external chat platform.",clearFilters:"Clear filters",gatewayUnavailable:"Chat gateway status unavailable",configure:"Configure",moreActions:"More bridge actions",channel:"Channel",edit:"Edit chat bridge",editDescription:"Configure credentials, default targets, and access for {channel}.",bridgeError:"Bridge runtime error",basicInformation:"Basic information",basicInformationDescription:"Name the bridge and confirm its chat channel.",connection:"Connection",connectionDescription:"Configure private credentials and connection details issued by the chat platform.",routing:"Routing and access",routingDescription:"Set the default chat target and users allowed to use this entry point.",allowedUsersCount:"{count} allowed user | {count} allowed users",pollEvery:"Poll every {value}ms",deleteTitle:"Delete chat bridge?",deleteConfirm:"Delete {name}? This chat entry point will stop working.",discardTitle:"Discard unsaved changes?",discardDescription:"The chat bridge draft has changed. Closing now will discard those changes.",discard:"Discard changes",settings:"{name} settings",createOrSelect:"Create or select a chat bridge.",name:"Name",bridgeName:"Bridge name",clientId:"Client ID",appId:"App ID",token:"Token",keepSecret:"Leave blank to keep current secret",defaultChatId:"Default chat ID",pollInterval:"Poll interval ms",contextToken:"Context token",baseUrl:"Base URL",updatesCursor:"Updates cursor",clientSecret:"Client secret",appSecret:"App Secret",domain:"Service region",feishuChina:"Feishu (China)",larkGlobal:"Lark (Global)",robotCode:"Robot code",conversationId:"Default conversation ID",corpId:"Corp ID",allowedUsers:"Allowed user IDs",allowedUsersPlaceholder:"comma or newline separated",save:"Save bridge",botTokenPlaceholder:"bot token",clientIdPlaceholder:"client ID",appIdPlaceholder:"cli_xxx",creating:"Creating chat bridge",saving:"Saving chat bridge",starting:"Starting chat bridge",stopping:"Stopping chat bridge",deleting:"Deleting chat bridge",created:"{name} bridge created.",saved:"{name} bridge saved.",stopped:"{name} bridge stopped.",started:"{name} bridge started.",deleted:"{name} bridge deleted.",secretSet:"secret set",secretMissing:"secret missing",credentialsSet:"credentials set",credentialsMissing:"credentials missing",chatId:"chat {id}",noDefaultChat:"no default chat",wechatIdPlaceholder:"wxid or room ID",contextTokenPlaceholder:"context token",savedAutomatically:"saved automatically",robotCodePlaceholder:"robot code",conversationIdPlaceholder:"open conversation ID",larkChatIdPlaceholder:"oc_xxx",larkAllowedUsersPlaceholder:"open_id, comma or newline separated",optional:"optional"},publicAccess:{title:"Public access URL",description:"Set the external address used to open control plane sessions from chat.",field:"Control Plane URL",useCurrent:"Use current URL",currentFilled:"Current URL filled in.",saved:"Public URL saved."},diagnosticLogs:{title:"Diagnostic logs",description:"Capture detailed Control Plane activity for troubleshooting. The setting takes effect immediately and is kept across restarts.",enabled:"Detailed logging is on",disabled:"Detailed logging is off",sensitive:"Exports may contain workspace paths, instance identifiers, and error details. Review the archive before sharing it.",export:"Export logs",exporting:"Preparing export",exported:"Diagnostic logs exported.",enabledMessage:"Diagnostic logging enabled.",disabledMessage:"Diagnostic logging disabled."},composer:{title:"Composer shortcuts",description:"Configure the characters that open commands and context mentions in every AI composer.",commandTrigger:"Command trigger",commandTriggerAria:"Command trigger character",mentionTrigger:"Mention trigger",mentionTriggerAria:"Mention trigger character",reset:"Reset",defaultsReady:"Defaults ready. Save to apply them.",saved:"Composer shortcuts saved.",mentionInvalid:"Use one non-letter, non-number, non-space character except / or \\.",commandInvalid:"Use one non-letter, non-number, non-space character except \\. It must differ from the mention trigger."},fields:{name:"Name",endpoint:"Endpoint",location:"Location",app:"App",apiKey:"API key"},modelRegistry:{count:"Models · {count}",enabled:"Enabled",disabled:"Disabled",credential:"Credential {value}",set:"set",missing:"missing",pageDescription:"Manage model connections available to the Control Plane and its nodes.",search:"Search models",searchPlaceholder:"Search name, model ID, or endpoint",allApps:"All apps",allLocationsFilter:"All locations",statusFilter:"Model status",allStatuses:"All statuses",diagnosticsDescription:"{count} node report could not be loaded | {count} node reports could not be loaded",filteredFrom:"Filtered from {count}",loading:"Loading models…",noMatches:"No matching models",noMatchesDescription:"Try changing the search or filters.",emptyDescription:"Add a model connection to make it available to agents.",clearFilters:"Clear filters",locationCount:"{count} location | {count} locations",configure:"Configure",moreActions:"More model actions",controlPlaneManaged:"Managed by the Control Plane",copy:"Copy model",editScopeWarning:"Name, endpoint, model names, API protocols, status, and any replacement credential will be updated at every location.",basicInformation:"Basic information",basicInformationDescription:"Name the connection and set its availability.",enabledDescription:"Allow this model to be selected for new and existing configurations.",connection:"Connection",connectionDescription:"Configure the provider endpoint, API protocols, and private credential.",deleteTitle:"Delete model location?",discardTitle:"Discard unsaved changes?",discardDescription:"The model draft has changed. Closing now will discard those changes.",discard:"Discard changes",references:"{count} reference | {count} references",locations:"Model locations",referenceDistribution:"Reference distribution",noReferences:"No instances reference this model",moveUp:"Move model up",moveDown:"Move model down",openInstanceSettings:"Open model settings for {name}",unlistedReferences:"{count} more reference is not found in the instance list | {count} more references are not found in the instance list",editAll:"Edit all",deleting:"Deleting",deleteFrom:"Delete from",inUseBy:"In use by {count} instance | In use by {count} instances",deleteLocation:"Delete this location only",empty:"No models configured",diagnostics:"Some node models could not be loaded",retrying:"Retrying",edit:"Edit model",add:"Add model",copyTitle:"Copy model",copyDescription:"Create a new model from a Control Plane configuration while securely inheriting its credential.",copyName:"{name} copy",copyIdentityHint:"Change the default model, endpoint, or API key to create a distinct model.",copyCredential:"Leave blank to inherit the source credential, or enter a replacement key.",createCopy:"Create copy",editDescription:"Changes apply to all {count} locations while this model keeps its identity.",pendingSync:"{count} location pending | {count} locations pending",locationSynced:"In sync",locationPending:"Pending sync",syncLocations:"Sync to nodes",synced:"Every location is in sync.",syncFailed:"The model could not be synced to every location.",syncIncomplete:"{count} location could not be updated yet; retry from the model menu. | {count} locations could not be updated yet; retry from the model menu.",mergeInto:"Merge into",mergeIntoDescription:"Reassign instances to {model} ({endpoint}) and remove this copy",mergeTitle:"Merge model copies?",merge:"Merge",merging:"Merging",mergeConfirm:"Reassign every instance from {source} to {target} and delete the superseded copy?",merged:"Merged. {count} instance assignment was re-pointed. | Merged. {count} instance assignments were re-pointed.",addDescription:"Create a private model configuration at one location.",new:"New model",controlPlane:"Control plane",allLocations:"All {count} locations",modelNames:"Model names",externalName:"Display name",upstreamName:"Upstream model",upstreamNamePlaceholder:"Same as display name",addModelName:"Add model name",modelNamePlaceholder:"Enter model ID",removeModelName:"Remove model name",reorderRow:"Drag to reorder or click for options",moveRowUp:"Move up",moveRowDown:"Move down",protocols:"API protocols",protocolsDescription:"Select all that apply. Instances show models that match the app's required protocol.",protocol:{"openai-responses":"OpenAI Responses","openai-chat-completions":"Chat Completions","anthropic-messages":"Anthropic Messages"},protocolDescription:{"openai-responses":"/responses","openai-chat-completions":"/chat/completions","anthropic-messages":"/messages"},model:"Model",keepKey:"Leave blank to keep current key",keepCredential:"Leave blank to keep the current credential at every location.",save:"Save model",create:"Create model",saving:"Saving",saved:"{name} saved.",deleteConfirm:"Delete {name} from {location}? Other locations will be kept.",selectLocation:"Select location",selectApp:"Select app",namePlaceholder:"OpenAI primary",nodeLocation:"Node · {name}",discover:"Fetch models",discovering:"Fetching",discovered:"Found {count} models · {latency}ms",discoveredEmpty:"Endpoint is available but returned no models · {latency}ms",chooseDiscovered:"Choose a fetched model",searchModels:"Search models",noModelMatches:"No matching models",manualModelHint:"Choose a fetched model or enter a model ID directly.",test:"Test connection",testing:"Testing",testSucceeded:"Model request succeeded · {latency}ms",probeUnsupported:"Upgrade the selected node before discovering models or testing the connection.",mappings:"Model mappings",mappingsDescription:"Rewrite a client-requested model name to an upstream model name, for example the hidden reviewer model used by automatic approval.",mappingCount:"{count} mappings",mappingsEmpty:"No mappings configured",addMapping:"Add mapping",mappingRequestName:"Requested model",mappingRequestNamePlaceholder:"For example gpt-5.6-luna",mappingUpstreamName:"Upstream model",mappingUpstreamNamePlaceholder:"Defaults to the first upstream name",mappingInactive:"Duplicates a model name; this row has no effect.",mappingsUnsupported:"Upgrade the selected node agent before configuring model mappings.",mappingsRelayHint:"Mappings take effect only when the Node Agent model relay is enabled and the instance consumes models through it; otherwise they are kept but unused.",mappingPresets:"Presets",mappingPresetApplied:"Added {count} mappings.",removeMapping:"Remove mapping",mappingPreset:{"codex-auto-approval":{label:"Codex automatic approval",description:"codex-auto-review, gpt-5.6-luna"},"codex-background-tasks":{label:"Codex memory and background tasks",description:"gpt-5.6-luna, gpt-5.6-terra"}}},imageRegistry:{count:"Registered images · {count}",pageDescription:"Manage official and custom container environments available when creating instances.",selectNode:"Select node",noCapabilities:"No expected capabilities",deleting:"Deleting",loading:"Loading images...",search:"Search images",searchPlaceholder:"Search names, references, or capabilities",sourceFilter:"Image source filter",allSources:"All sources",custom:"Custom",availabilityFilter:"Availability filter",allAvailability:"All availability",directoryCount:"Images · {count}",filteredFrom:"Filtered from {count}",noMatches:"No matching images",noMatchesDescription:"Try changing the search or filters.",clearFilters:"Clear filters",moreActions:"More actions",marketTitle:"Official images",marketDescription:"Curated runtime environments maintained by TaskHandoff.",official:"Official",customTitle:"Custom images",customDescription:"{count} registry images managed by this control plane.",marketCount:"{count} images",customCount:"Custom images · {count}",marketReadonly:"Read only",marketUnavailable:"The official image catalog could not be refreshed",customImageDescription:"Custom registry image managed by this control plane.",empty:"No images available",emptyDescription:"Add a public registry image to use it when creating instances.",addTitle:"Add public registry image",namePlaceholder:"Controlled instance",reference:"Image reference",referenceDescription:"Use an explicit tag or sha256 digest. Private registry credentials are not configured here.",adding:"Adding",add:"Add image",imageInformation:"Image information",imageInformationDescription:"Name the environment and provide an immutable or explicitly tagged registry reference.",added:"{name} added.",deleteConfirm:"Delete image profile {name}?",deleteTitle:"Delete image “{name}”?",deleteDescription:"The custom image entry will be removed. Existing instances are unaffected.",discardTitle:"Discard unsaved image?",discardDescription:"The image information you entered will not be kept.",discard:"Discard changes",selectNodeHint:"Select a node",availabilityUnknown:"Availability unknown",availableOnNode:"Available on node",pullOnCreate:"Will be pulled when an instance is created",pullIfMissing:"Pull if missing",pullAlways:"Always pull",pullNever:"Never pull"},environmentTemplateRegistry:{title:"Environment templates",description:"Reusable, node-local environments saved from an instance container filesystem.",selectNode:"Select node",searchLabel:"Search environment templates",search:"Search names, image IDs, source instances, or status",statusFilter:"Status filter",allStatuses:"All statuses",count:"Environment templates · {count}",filteredFrom:"Filtered from {count}",moreActions:"More actions",loading:"Loading environment templates...",nodeUnavailable:"Environment templates could not be loaded from the selected node. The node may be offline.",empty:"No environment templates",emptyDescription:"Save one from a Docker instance menu to reuse that node-local environment.",noMatches:"No matching environment templates",noMatchesDescription:"Try changing the search or status filter.",clearFilters:"Clear filters",source:"Source instance {instance} · {date}",deleting:"Deleting",deleteTitle:"Delete environment template “{name}”?",deleteDescription:"The template entry will be removed. Existing instances created from it are unaffected. The backing image is safely collected when unreferenced.",status:{creating:"Creating",ready:"Ready",failed:"Failed",deleting:"Deleting"}},projectRegistry:{pageDescription:"Manage reusable Git repositories and local projects for new instances.",count:"Projects · {count}",filteredFrom:"{count} total",inUse:"In use",unused:"Unused",deleting:"Deleting",loading:"Loading projects…",empty:"No projects yet",emptyDescription:"Add a Git repository to select it when creating an instance.",noMatches:"No matching projects",noMatchesDescription:"Try changing the search or filter.",clearFilters:"Clear filters",addTitle:"Add Git repository",search:"Search projects",searchPlaceholder:"Search names or locations",sourceFilter:"Source filter",allSources:"All sources",gitRepository:"Git repository",usageFilter:"Usage filter",allUsage:"All usage",references:"{count} references",usedBy:"Used by instances",noReferences:"No instances currently reference this project",namePlaceholder:"Repository name",gitUrl:"Git URL",credential:"Credential",noCredential:"No managed credential",defaultImage:"Default image",useDefault:"Use default",credentialFor:"Credential for {name}",credentialUpdated:"Project credential updated.",moreActions:"More actions",addDescription:"Register the repository and defaults used when creating an instance.",repositoryInformation:"Repository information",repositoryInformationDescription:"The name identifies it in the control plane; the Git URL is used to clone the workspace.",defaults:"Instance defaults",defaultsDescription:"These values are preselected when an instance is created from this project.",creating:"Creating",create:"Create repository",created:"{name} created.",deleted:"{name} deleted.",deleteTitle:"Delete project “{name}”?",deleteDescription:"The project entry will be removed. Existing instances and workspaces are not deleted.",discardTitle:"Discard unsaved changes?",discardDescription:"The repository information you entered will not be kept.",continueEditing:"Continue editing",discard:"Discard changes",localFolder:"Local folder"},nodeRegistry:{count:"Execution nodes · {count}",add:"Add node",addingLocal:"Adding local node",addLocal:"Add local node",localDescription:"Use this control plane as a node",addRemote:"Add remote node",remoteDescription:"Connect an existing node by endpoint",generatingToken:"Generating join token",generateToken:"Generate join token",tokenDescription:"Allow a node to connect securely",preparingGuide:"Preparing install guide",installScript:"Install with script",installDescription:"Install and connect a remote node",protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",empty:"No nodes yet",rename:"Rename node",renameDescription:"Change the display name used across the control plane. The node ID and connection settings will not change.",remoteDialogDescription:"Connect a node-agent that is running on another machine.",joinToken:"Join token",creating:"Creating",create:"Create node"},nodeOnboarding:{title:"Add node wizard",description:"Check network reachability, then follow the shortest supported connection path.",progress:"Node connection progress",recommended:"Recommended",unavailable:"Unavailable",prepare:"Prepare connection",connect:"Connect node",connecting:"Connecting...",copy:"Copy command",copied:"Copied",clipboardFailed:"The value could not be copied.",steps:{network:"Network",target:"Target",connect:"Connect",complete:"Complete"},network:{title:"Can remote nodes reach this Control Plane?",description:"The automatic check sets a recommendation. You can change it before continuing.",origin:"Public Control Plane address",recheck:"Check again",question:"Control Plane public reachability",public:"Reachable from the internet",publicDescription:"The Node Agent will connect back to this Control Plane.",private:"Not reachable from the internet",privateDescription:"This Control Plane will connect to the Node Agent or use a relay.",overrideWarning:"Your selection differs from the automatic check. The connection will be verified again.",status:{checking:"Checking {origin}...",reachable:"{origin} appears reachable",unreachable:"{origin} does not appear publicly reachable",inconclusive:"Public reachability could not be confirmed for {origin}"}},target:{agentInstalledTitle:"Is Node Agent already installed on the target machine?",agentInstalledDescription:"Both choices use a Node Agent connection back to this Control Plane.",installed:"Already installed",installedDescription:"Connect the existing service to this Control Plane.",notInstalled:"Not installed yet",notInstalledDescription:"Install the service and connect it in one command.",optionalName:"Node name (optional)",agentPublicTitle:"Can this Control Plane reach the Node Agent?",agentPublicDescription:"Choose based on the Node Agent endpoint, firewall, and TLS configuration.",agentPublic:"Node Agent is publicly reachable",agentPublicHint:"Connect directly using its HTTPS endpoint and pairing token.",neitherPublic:"Neither side is publicly reachable",neitherPublicHint:"Use an account relay or another trusted Control Plane."},reverse:{connectTitle:"Connect the existing Node Agent",connectDescription:"Connect from the Control Plane that currently manages the target Agent, or run a command on the target machine.",installTitle:"Install and connect Node Agent",installDescription:"Run this command on the target machine to install the matching version and connect it.",method:"Connection method",useUi:"Connect from UI",useCommand:"Run command",uiStepOpen:"Open the Control Plane that currently manages the target Node Agent, go to Settings > Nodes, and select the node.",uiStepAdd:"Open Connections and select Add outbound connection.",uiStepSubmit:"Enter the Control Plane URL and join token below, then select Connect.",controlPlaneUrl:"Control Plane URL",joinToken:"Join token",copyUrl:"Copy URL",copyToken:"Copy token",runCommand:"Run on the target machine",waiting:"Waiting for the Node Agent · invitation expires {time}",expired:"This invitation expired. Generate a new invite.",regenerate:"Generate new invite"},direct:{title:"Connect to the public Node Agent",description:"The Control Plane will verify the endpoint, consume its one-time pairing token, and save the resulting identity.",endpoint:"Node Agent HTTPS endpoint",tokenSource:"Pairing token source",managed:"Managed by a Control Plane",standalone:"Standalone Node Agent",managedHelp:"Open the source Control Plane, select this node, and generate a token that allows another Control Plane to connect.",standaloneHelp:"Run this command on the Node Agent machine, then paste the one-time token below.",token:"One-time pairing token",validation:{invalid:"Enter a valid HTTP or HTTPS Node Agent endpoint.","public-http":"A public Node Agent endpoint must use HTTPS.",token:"Enter the one-time token issued by this Node Agent."}},relay:{title:"Connect through a relay",description:"Neither side accepts an inbound connection. Choose a supported service that both sides can reach.",account:"Connect with Thandoff account",accountUnavailable:"Account-based Node Agent relay is not supported by the current protocol.",proxy:"Use a trusted Control Plane",proxyDescription:"Connect through another Control Plane that already manages the target node."},complete:{title:"Node connected",description:"{name} is now available in this Control Plane."}},controlPlaneProxy:{directMode:"Direct endpoint",proxyMode:"Control-plane proxy",proxyOrigin:"Trusted proxy origin",inviteToken:"Proxy invite token",inviteTokenPlaceholder:"One-time token created by the trusted proxy",optionalName:"Optional node name",trustWarning:"The proxy control plane is trusted: it can read, modify, and perform node-agent operations on the source control plane's behalf.",trustConfirmation:"I trust this control plane to proxy node-agent operations.",pendingClaims:"Pending proxy claims",pendingClaimsDescription:"Earlier proxy operations are incomplete. Resume or clean them up here.",resume:"Resume",resuming:"Resuming",cancelClaim:"Cancel proxy claim",cancelling:"Cancelling proxy claim",forceCancelTitle:"Force-remove the local claim?",forceCancelConfirm:"The trusted proxy is unavailable. Force removal discards the credential used to revoke remote access automatically. If the proxy returns, you may need to revoke an orphaned binding there manually.",forceCancel:"Force remove",forceCancelling:"Removing",forceCancelFailed:"The local claim was not removed. Refresh and retry.",showToken:"Show proxy invite token",hideToken:"Hide proxy invite token",validation:{origin:"Enter an HTTPS origin without credentials, path, query, or fragment.",token:"Enter a valid proxy invite token.",trust:"Confirm that you trust the proxy control plane."},claimStatus:{pending:"Pending","compensation-required":"Cleanup required"},nodeAdded:"{name} added through the trusted proxy.",managementTitle:"Trusted control-plane proxy",managementDescription:"Create target-bound invites and manage access proxied through this control plane.",createInvite:"Create invite",creatingInvite:"Creating invite",invitesTitle:"Invites",invites:"Invites · {count}",noInvites:"No proxy invites for this node",inviteAudit:"Created by {createdBy} · {time}",bindingsTitle:"Bindings",bindings:"Bindings · {count}",noBindings:"No proxy bindings for this node",expiresAt:"Expires {time}",revision:"revision {revision}",activity:"HTTP {http} · streams {streams} · WebSockets {webSockets}",activityUnavailable:"Activity unavailable",httpStatus:"HTTP status {status}",inviteStatus:{active:"Active",revoked:"Revoked"},bindingStatus:{active:"Active",revoked:"Revoked"},revokeInvite:"Revoke invite",revokeBinding:"Revoke binding",revokeTitle:"Revoke proxy access",revokeInviteConfirm:"Revoke this unused invite? It cannot be used afterward.",revokeBindingConfirm:"Revoke this binding? Active HTTP requests and WebSocket streams will be closed.",revoke:"Revoke",targetNode:"Target node",forceDeleteConfirm:"The trusted proxy could not revoke the remote binding for {name}. Force delete the local node record anyway? The remote binding and credential may remain orphaned on the proxy and must be revoked there manually.",path:"Control-plane proxy path",source:"Source",proxy:"Trusted proxy",target:"Target node",thisControlPlane:"This control plane",binding:"Binding",health:"Health",revisions:"Binding / target revision",observedAt:"Target observed at",unknown:"Unknown",retryable:"Retryable",notRetryable:"Not retryable",noStructuredError:"No structured proxy error is currently reported",state:{ready:"Ready",reachable:"Reachable",unreachable:"Unreachable",active:"Active",revoked:"Revoked",ok:"Healthy",failed:"Failed",degraded:"Degraded",unknown:"Unknown",online:"Online",offline:"Offline"}},nodeDetail:{protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",renameDescription:"Change this node's display name",pairingDescription:"Authorize another control plane to access this node",removeDescription:"Remove this node from the control plane",sections:"Node detail sections",overview:"Overview",runtimes:"Runtimes",updates:"Updates",storage:"Projects",inventory:"Inventory",remote:"Connections",instances:"Instances",localFolders:"Local folders",diagnostics:"Agent diagnostics",diagnosticLog:"Diagnostic log · {count}",noDiagnostics:"No node protocol errors recorded from the latest refresh",modelRelay:"Model relay",modelRelayDescription:"Routes managed instance model traffic through the Node Agent so the data path can flip without restarting instances; turning it off restores the direct projection.",modelRelayEnable:"Enable model relay",modelRelayOn:"On",modelRelayOff:"Off",modelRelayDefaultHint:"On by default; disabling restores the direct projection and can be turned back on at any time.",modelRelayEnabledHint:"Managed instance model traffic is relayed through the Node Agent and mapped models are available.",modelRelayDisabledHint:"Instances keep the direct projection; mapped models stay assignable but unused.",modelRelayUnsupported:"Update the Node Agent before this node can use the model relay.",modelRelayUnknownModelPolicy:"Unmatched model names",modelRelayUnknownModelPassthrough:"Forward as-is",modelRelayUnknownModelReject:"Reject request",modelRelayUnknownModelPolicyHint:"Applies when a request model is neither declared on the entity nor covered by request mappings; declared names and mappings always win.",modelRelayInUseInstances:"Affected instances: {instances}",modelRelayEnabledToast:"Model relay enabled.",modelRelayDisabledToast:"Model relay disabled; instances are back on the direct projection.",tcpListener:"TCP listener",listenOn:"Listen on",loopback:"127.0.0.1 only",allIpv4:"All IPv4 interfaces",port:"Port",applying:"Applying",loading:"Loading",apply:"Apply",listenerWarning:"The node-agent API will be reachable on host IPv4 interfaces. Remote control planes still require invite pairing and HMAC. Configure firewall, NAT, DNS, and TLS termination separately.",checking:"Checking",check:"Check",deleting:"Deleting",delete:"Delete",noRuntimes:"No runtimes reported by this node",managedUpdates:"Managed updates",stable:"Stable",beta:"Beta",alpha:"Alpha",nodeAgent:"Node agent",serverUpdateDescription:"Updates this control-plane server and its built-in node agent.",nodeAgentUpdateDescription:"Updates only this node agent. Other nodes update independently.",queuing:"Queuing",update:"Update",controlledInstances:"Controlled instances · {count}",instanceConvergenceDescription:"The node automatically converges every instance to the same product version.",noControlledInstances:"No controlled instances on this node",updateJobs:"Update jobs · {count}",refresh:"Refresh",nodeRollout:"Server update",unknown:"unknown",noUpdateJobs:"No managed update jobs on this node",localFolderCount:"Local folders · {count}",adding:"Adding",add:"Add",noLocalFolders:"No local folders on this node",renameLocalFolder:"Rename",builtinProject:"Built-in",renameLocalFolderDescription:"Set the name shown for this folder in session groups and folder pickers without changing its path.",dockerImages:"{name} Docker images · {count}",unknownSize:"unknown size",unknownAge:"unknown age",noImages:"No images loaded for this node",instanceCount:"Instances · {count}",instanceSettings:"Settings for {name}",settings:"Settings",noInstances:"No instances on this node",pairedKeys:"Paired control planes · {count}",pairedAt:"paired {time}",current:"Current",currentRequester:"Viewing control plane",inactive:"Inactive",paired:"Paired",noPairedKeys:"No control planes are paired with this node",connectRemote:"Connect this node to another control plane",activeConnections:"Outbound connections · {count}",noActiveConnections:"This node has no configured outbound control-plane connections",addConnection:"Add outbound connection",connectionPairing:"uses {keyId}",connectionPingRtt:"Current RTT",connectionPingP95:"Recent P95",connectionReconnects:"Reconnect streak",connectionNextRetry:"Next retry",connectionMilliseconds:"{value} ms",connectionWaitingFirstSample:"Waiting for first sample",connectionRetryIn:"in {seconds}s",connectionRetryNow:"retrying now",connectionRetryNotScheduled:"not scheduled",eventUplink:"Event uplink",eventBuffered:"Buffered now",eventPeakBuffered:"Peak buffered",eventCoalesced:"Coalesced events",eventOversized:"Oversized events",eventPeakPayload:"Peak payload",eventTransportStatus:{healthy:"Healthy",congested:"Congested",recovering:"Recently recovered"},eventTransportCongested:"The Node Agent event uplink is backing up. Upstream bandwidth may be insufficient, or the control plane may be consuming too slowly. Intermediate AI Session states are coalesced so only the latest authoritative state is retained.",eventTransportRecovering:"Recent event-uplink congestion has cleared. Continue monitoring upstream bandwidth and connection stability.",eventTransportPayloadExceeded:"An AI Session authority event exceeded the transport limit. Check for unexpectedly large list fields; if backlog is also present, check node uplink bandwidth. The connection was closed and will recover from the latest snapshot.",controlPlaneUrl:"Control-plane URL",joinToken:"Join token",tokenPlaceholder:"token from target control plane",name:"Name",optional:"Optional",connecting:"Connecting",connect:"Connect",remoteResult:"Remote connection: {status}",selectNode:"Select a node to inspect its local resources.",currentNotChecked:"Current {version} · not checked",updateUnsupported:"Managed update unsupported",actionInProgress:"Node action in progress",moreActions:"More node actions",checkingConnection:"Checking connection",checkConnection:"Check connection",renaming:"Renaming",rename:"Rename",generatingToken:"Generating join token",generateToken:"Generate join token",deletingNode:"Deleting node",deleteNode:"Delete node",updateAvailable:"update available",upToDate:"up to date",nodeJoinToken:"Node join token",controlPlaneJoinToken:"Control-plane join token",nodeCreated:"{name} created.",nodeAdded:"{name} added.",nodeAddedRefreshFailed:"{name} was added, but the control-plane view could not refresh: {error}",updateServerConfirm:`Update the control-plane server from {current} to {available}.
|
|
603
|
+
`)&&!(function(Q){const J=CL(Q);if(xL(J))return!1;const ee=IZ(J);return ee.length>=2&&ee.some(ie=>ie.trim())})(K))})(r.value,z)?x():(function(){if(w+=1,l)return;const L=Math.max(0,(function(K){const G=K.parseCoalesceMs;return typeof G=="number"&&Number.isFinite(G)&&G>=0?G:80})(e)-(up()-k));L<=0?x():l=setTimeout(x,L)})())},{flush:"sync",immediate:!0}),Ec(I);const T=E(()=>{var z,H,U,L;return hOe(e.customHtmlTags,(z=e.parseOptions)==null?void 0:z.customHtmlTags,(L=(U=(H=t.customComponentsMap)==null?void 0:H.value)!=null?U:{},Object.entries(L).map(([K,G])=>{const Q=$d(K);return G==null||!Q||ow(Q)||BY.has(Q)||ew.has(Q)?"":Q}).filter(Boolean)))}),R=E(()=>{const{key:z,tags:H}=gOe(T.value);if(!z)return s;const U=o.get(z);if(U)return U;const L=N9(t.instanceMsgId,{customHtmlTags:H});return o.set(z,L),L}),M=E(()=>{const z=R.value;if(!e.customMarkdownIt)return z;const H=e.customMarkdownIt(z);return z.__markstreamHasCustomParserExtensions=!0,H.__markstreamHasCustomParserExtensions=!0,H}),$=E(()=>{var z,H;const U=(z=e.parseOptions)!=null?z:{},L=t.effectiveFinal.value,K=T.value,G=L!=null,Q=K.length>0;return G||Q||U.streamParse==null?En(En(Os(En({},U),{streamParse:(H=U.streamParse)==null||H}),G?{final:L}:{}),Q?{customHtmlTags:K}:{}):U}),O=E(()=>{var z;return new Set(((z=$.value.customHtmlTags)!=null?z:[]).map(H=>String(H).trim().toLowerCase()).filter(Boolean))}),F=E(()=>AL($.value,M.value,e.customMarkdownIt,{includeFinal:!0})),B=E(()=>AL($.value,M.value,e.customMarkdownIt,{includeFinal:!1}));ze([F,B],([z,H],[U,L])=>{U&&(z===U&&H===L||(x(),H!==L&&(c=[],g="")))},{flush:"sync"});const N=E(()=>{var z,H,U,L,K,G,Q,J,ee,ie,le;if((z=e.nodes)!=null&&z.length)return c=[],g="",S(0),yp(e.nodes.slice());const oe=r.value;if(!oe)return c=[],g="",S(-1),[];const ae=t.debugPerformanceEnabled.value,te=ae?up():0,Z=M.value,Ce=F.value,Fe=B.value;u&&Ce!==u&&(function(Ee){var kt,ot;(ot=(kt=Ee.stream)==null?void 0:kt.reset)==null||ot.call(kt)})(Z),p&&Fe!==p&&(c=[],g="");const Pe=Object.keys((U=(H=t.customComponentsMap)==null?void 0:H.value)!=null?U:{}).length>0||typeof $.value.postTransformNodes=="function";Pe!==y&&(c=[],g="");const fe=!Pe&&c.length>0&&oe.startsWith(g)&&Fe===p,be=ae?IL(Z):null,ue=ae?{}:void 0,ye=NL(Z),ke=!ye&&!Pe,ve=En(En(Os(En({},$.value),{__reuseStableTopLevelNodes:ke}),ye?{__disableStreamParse:!0}:{}),ue?{__timing:ue}:{}),xe=LQ(oe,Z,ve),se=ae?up():0,de=ae?{signatureMs:0,stabilizeSignatureMs:0,primeSignatureMs:0,signatureCallCount:0,stabilizeSignatureCallCount:0,primeSignatureCallCount:0}:void 0;let De,me=ae?kS(xe.length):void 0,Be=0,He=0;if(fe){const Ee=ae?up():0,kt=(function(We){var vt,ct,sn,hn;if(We.previousDirtyStartIndex<=0||!We.content.startsWith(We.previousContent)||We.content.length<=We.previousContent.length||We.parseOptions.final===!0||We.customMarkdownIt||NL(We.md)||(sn=We.previousContent,hn=We.content,sn&&hn.startsWith(sn)&&!(hn.length<=sn.length)&&(function(Kt){let un=-1;for(let cn=0;cn<Kt.length;cn++){const Kn=Kt.charCodeAt(cn);if(un<0){Kn===91&&(un=cn);continue}if(Kn===92){cn+=1;continue}if(Kn===91){un=cn;continue}if(Kn!==93)continue;let Gn=cn+1;for(;Gn<Kt.length;){const Rt=Kt.charCodeAt(Gn);if(Rt!==9&&Rt!==32)break;Gn+=1}if(Kt.charCodeAt(Gn)===58)return!0;un=-1}return!1})(hn)))return 0;const ns=We.parseOptions;return typeof ns.preTransformTokens=="function"||typeof ns.postTransformTokens=="function"||typeof ns.postTransformNodes=="function"||((ct=(vt=ns.customHtmlTags)==null?void 0:vt.length)!=null?ct:0)>0?0:We.previousDirtyStartIndex})({content:oe,previousContent:g,previousDirtyStartIndex:A,parseOptions:$.value,customMarkdownIt:e.customMarkdownIt,md:Z}),ot=kt<=0;if(de){const We=(function(vt,ct,sn,hn={}){var ns;if(!ct.length)return{nodes:vt,metrics:kS(vt.length)};const Kt=(ns=hn.scanStartIndex)!=null?ns:0,un=hn.reuseDirtyTail!==!1,cn=(function(Rt,Ge,Ae,Ie=0){const Je=Math.min(Rt.length,Ge.length);for(let ge=Math.min(Je,Math.max(0,Ie));ge<Je;ge++)if(!Qze(Ge[ge],Rt[ge],Ae))return ge;return Rt.length===Ge.length?-1:Je})(vt,ct,sn,Kt);if(cn<0)return{nodes:ct,metrics:{reusedNodeCount:vt.length,dirtyStartIndex:cn,stablePrefixNodeCount:vt.length,dirtyTailNodeCount:0}};const Kn=vt.slice();let Gn=cn;for(let Rt=0;Rt<cn;Rt++)Kn[Rt]=ct[Rt];if(un)for(let Rt=cn;Rt<vt.length;Rt++){const Ge=ct[Rt],Ae=vt[Rt];Ge&&EZ(Ge,Ae,sn)&&(Kn[Rt]=Ge,Gn+=1)}return{nodes:Kn,metrics:{reusedNodeCount:Gn,dirtyStartIndex:cn,stablePrefixNodeCount:cn,dirtyTailNodeCount:TL(cn,vt,ct)}}})(xe,c,de,{reuseDirtyTail:ot,scanStartIndex:kt});De=We.nodes,me=We.metrics}else{const We=(function(vt,ct,sn={}){var hn;if(!ct.length)return{nodes:vt,metrics:kS(vt.length)};const ns=(hn=sn.scanStartIndex)!=null?hn:0,Kt=sn.reuseDirtyTail!==!1,un=(function(Gn,Rt,Ge=0){const Ae=Math.min(Gn.length,Rt.length);for(let Ie=Math.min(Ae,Math.max(0,Ge));Ie<Ae;Ie++)if(!Yze(Rt[Ie],Gn[Ie]))return Ie;return Gn.length===Rt.length?-1:Ae})(vt,ct,ns);if(un<0)return{nodes:ct,metrics:{reusedNodeCount:vt.length,dirtyStartIndex:un,stablePrefixNodeCount:vt.length,dirtyTailNodeCount:0}};const cn=vt.slice();let Kn=un;for(let Gn=0;Gn<un;Gn++)cn[Gn]=ct[Gn];if(Kt)for(let Gn=un;Gn<vt.length;Gn++){const Rt=ct[Gn],Ge=vt[Gn];Rt&&xZ(Rt,Ge)&&(cn[Gn]=Rt,Kn+=1)}return{nodes:cn,metrics:{reusedNodeCount:Kn,dirtyStartIndex:un,stablePrefixNodeCount:un,dirtyTailNodeCount:TL(un,vt,ct)}}})(xe,c,{reuseDirtyTail:ot,scanStartIndex:kt});De=We.nodes,me=We.metrics}Be=ae?up()-Ee:0,He=ot?me?.dirtyStartIndex==null||me.dirtyStartIndex<0?De.length:me.dirtyStartIndex:De.length}else De=xe,me=kS(De.length);t.effectiveFinal.value!==!0&&(de?(function(Ee,kt,ot=0){for(let We=Math.max(0,ot);We<Ee.length;We++)SR(kt,"primeSignatureMs",()=>wh(Ee[We]))})(De,de,He):(function(Ee,kt=0){for(let ot=Math.max(0,kt);ot<Ee.length;ot++)wh(Ee[ot])})(De,He));const Le=ae?up()-se:0;if(v+=1,g=oe,u=Ce,p=Fe,y=Pe,c=De,S((L=me?.dirtyStartIndex)!=null?L:0),ae){const Ee=IL(Z),kt=typeof Ee?.total=="number"&&Ee.total>((K=be?.total)!=null?K:0);t.logPerf(kt?"parse(stream)":"parse(sync)",En(En(En({rendererId:t.instanceMsgId,ms:Math.round(up()-te),nodes:De.length,contentLength:oe.length,parseCommitCount:v,parseCoalescedCount:w,nodeReuseMs:Le,signatureMs:(G=de?.signatureMs)!=null?G:0,stabilizeSignatureMs:(Q=de?.stabilizeSignatureMs)!=null?Q:0,primeSignatureMs:(J=de?.primeSignatureMs)!=null?J:0,signatureCallCount:(ee=de?.signatureCallCount)!=null?ee:0,stabilizeSignatureCallCount:(ie=de?.stabilizeSignatureCallCount)!=null?ie:0,primeSignatureCallCount:(le=de?.primeSignatureCallCount)!=null?le:0,stabilizeMs:Be},me??{}),ue?Object.fromEntries(Vze.map(ot=>{var We;return[ot,(We=ue[ot])!=null?We:0]})):{}),Ee?{streamMode:Ee.lastMode,streamDelta:Zze(Ee,be),streamStats:Ee}:{}))}return yp(De)});return{effectiveCustomHtmlTags:T,effectiveCustomHtmlTagsSet:O,mdBase:R,mdInstance:M,mergedParseOptions:$,getParsedNodesDirtyStartIndex:()=>A,getParsedNodesRevision:()=>_,parsedNodes:N}}function Jze(e){const{isClient:t}=e,n=D(new Set),s=new Map,o=new Map,a=new Map;function r(u){if(!t)return;const p=a.get(u);p!=null&&(window.clearTimeout(p),a.delete(u))}function l(){if(t)for(const u of a.values())window.clearTimeout(u);a.clear()}function c(){n.value=new Set}return{visibleNodeIndices:n,nodeVisibilityHandles:s,nodeVisibilityWatchStops:o,nodeVisibilityFallbackTimers:a,clearVisibilityFallback:r,clearAllVisibilityFallbacks:l,markNodeVisible:function(u,p=!0){var g;p&&r(u),(function(y,v){if((k=(w=e.shouldTrackVisibleNodeIndices)==null?void 0:w.call(e))!=null&&!k)return;var w,k;const A=n.value,_=A.has(y);if(v){if(_)return;const I=new Set(A);return I.add(y),void(n.value=I)}if(!_)return;const S=new Set(A);S.delete(y),n.value=S})(u,p),p&&((g=e.onNodeMarkedVisible)==null||g.call(e,u))},resetNodeVisibleState:c,cleanupNodeVisibility:function(u){var p;if(e.shouldCleanupNodeVisibility&&!e.shouldCleanupNodeVisibility())return;for(const[y,v]of o.entries())y<u||(v(),o.delete(y));for(const[y,v]of s.entries())y<u||(v.destroy(),s.delete(y),r(y),(p=e.onNodeVisibilityCleaned)==null||p.call(e,y));for(const y of Array.from(a.keys()))y<u||r(y);if(!n.value.size)return;const g=new Set;for(const y of n.value)y<u&&g.add(y);n.value=g},destroyNodeVisibilityState:function(){c();for(const u of o.values())u();o.clear();for(const u of s.values())u.destroy();s.clear(),l()}}}function TZ(e={}){const t=D(""),n=D(""),s=D(!1),o=DLe(e),a=()=>{const p=o.getSnapshot();t.value=p.source,n.value=p.visible,s.value=p.done},r=o.subscribe(a);a();const l=E(()=>Math.max(0,t.value.length-n.value.length)),c=E(()=>l.value===0),u=E(()=>s.value&&c.value);return KI()&&Ec(()=>{r(),o.destroy()}),{source:t,visible:n,done:s,final:u,caughtUp:c,pendingChars:l,enqueue:p=>o.enqueue(p),finish:p=>o.finish(p),flush:()=>o.flush(),reset:p=>o.reset(p),pause:()=>o.pause(),resume:()=>o.resume()}}const eUe={maxCharsPerSecond:3e3,maxCommitFps:20,maxCharsPerCommit:160,catchUpLatencyMs:220,catchUpThreshold:400},RL=/auto|scroll|overlay/i;function tUe(e){if(!e)return!1;const t=(e.overflowY||"").toLowerCase(),n=(e.overflow||"").toLowerCase();return RL.test(t)||RL.test(n)}function nUe(e){const t=Math.ceil(e.scrollHeight)>Math.ceil(e.clientHeight)+1,n=Math.ceil(e.scrollWidth)>Math.ceil(e.clientWidth)+1;return t||n}const sUe={class:"m-0 p-0"},oUe=["data-probe"],iUe=bi(st(Os(En({},{name:"HeightEstimationProbes"}),{__name:"HeightEstimationProbes",props:{width:{},flowRoot:{type:Boolean},paragraphNode:{},listItemNode:{},listNode:{},headingNodes:{},setParagraphWrapper:{type:Function},setListItemWrapper:{type:Function},setListWrapper:{type:Function},setHeadingWrapper:{type:Function}},setup(e){const t=e;function n(s){var o,a;return(a=(o=t.headingNodes)==null?void 0:o[s])!=null?a:null}return(s,o)=>(h(),C("div",{class:"height-estimation-probes",style:Qn({width:`${e.width}px`}),"aria-hidden":"true"},[d("div",{ref:a=>e.setParagraphWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"paragraph"},[m(i(Lg),{node:e.paragraphNode,"index-key":"probe-paragraph"},null,8,["node"])],2),d("div",{ref:a=>e.setListItemWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list-item"},[d("ul",sUe,[m(i(B0),{node:e.listItemNode,"index-key":"probe-list-item"},null,8,["node"])])],2),d("div",{ref:a=>e.setListWrapper(a),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":"list"},[m(i(F0),{node:e.listNode,"index-key":"probe-list"},null,8,["node"])],2),(h(),C(Me,null,ft(6,a=>d("div",{key:`probe-heading-${a}`,ref_for:!0,ref:r=>e.setHeadingWrapper(a,r),class:At(["node-content",{"node-content-flow-root":e.flowRoot}]),"data-probe":`heading-${a}`},[m(i(CA),{node:n(a),"index-key":`probe-heading-${a}`},null,8,["node","index-key"])],10,oUe)),64))],4))}})),[["__scopeId","data-v-3e0766e2"]]),ML=st({name:"InfographicBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=E(()=>{var n,s;return pI((s=g0(e.estimatedPreviewHeightPx))!=null?s:uI(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return jn("div",{class:"infographic-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",background:"var(--diagram-bg)",borderColor:"var(--diagram-border)",color:"hsl(var(--ms-foreground))"},"data-markstream-infographic":"1","data-markstream-mode":"pending"},[e.showHeader?jn("div",{class:"infographic-block-header flex justify-between items-center border-b",style:{padding:"var(--ms-inset-panel-y) var(--ms-inset-panel-x)",background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)",minHeight:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding) + var(--ms-inset-panel-y) + var(--ms-inset-panel-y) + 1px)"}},[jn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[jn("span",{class:"icon-slot action-icon shrink-0",style:{display:"inline-flex",width:"var(--ms-action-btn-icon)",height:"var(--ms-action-btn-icon)"}}),jn("span",{class:"infographic-label font-medium font-mono truncate",style:{fontSize:"var(--ms-text-label)",color:"hsl(var(--ms-muted-foreground))"}},"Infographic")]),jn("div",{class:"infographic-header-actions flex items-center opacity-0 pointer-events-none",style:{gap:"var(--ms-gap-header-actions)"},"aria-hidden":"true"},Array.from({length:4},()=>jn("span",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",style:{width:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))",height:"calc(var(--ms-action-btn-icon) + var(--ms-action-btn-padding) + var(--ms-action-btn-padding))"}})))]):null,jn("div",{class:"infographic-preview relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[jn("pre",{class:"infographic-pending-source text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",zIndex:"1",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),jn("div",{class:"absolute inset-0"},[jn("div",{class:"w-full text-center flex items-center justify-center min-h-full"})])])])}}}),$L=st({name:"MermaidBlockNodeLoading",props:{node:{type:Object,required:!0},showHeader:{type:Boolean,default:!0},estimatedPreviewHeightPx:{type:Number,default:void 0}},setup(e){const t=E(()=>{var n,s;return dI((s=g0(e.estimatedPreviewHeightPx))!=null?s:cI(String((n=e.node.code)!=null?n:"")))});return()=>{var n;return jn("div",{class:"mermaid-block-container rounded-lg border overflow-hidden",style:{margin:"var(--ms-flow-diagram-y) 0",borderColor:"var(--diagram-border)"},"data-markstream-mermaid":"1","data-markstream-mode":"pending"},[e.showHeader?jn("div",{class:"mermaid-block-header flex justify-between items-center border-b px-[var(--ms-inset-panel-x)] py-[var(--ms-inset-panel-y)]",style:{background:"var(--diagram-header-bg)",borderColor:"var(--diagram-border)"}},[jn("div",{class:"flex items-center gap-x-2 overflow-hidden"},[jn("span",{class:"mermaid-label-text text-[length:var(--ms-text-label)] font-medium font-mono truncate",style:{color:"var(--code-action-fg)"}},"Mermaid")]),jn("div",{class:"mermaid-header-actions flex items-center gap-[var(--ms-gap-header-actions)] opacity-0 pointer-events-none","aria-hidden":"true"},Array.from({length:4},()=>jn("span",{class:"mermaid-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded"},[jn("span",{class:"action-icon block"})])))]):null,jn("div",{class:"mermaid-preview-area relative overflow-hidden block",style:{height:`${t.value}px`,minHeight:"var(--ms-size-diagram-min-height)",background:"var(--diagram-bg)"}},[jn("pre",{class:"mermaid-source-code text-sm font-mono whitespace-pre-wrap",style:{position:"absolute",inset:"0",margin:"0",padding:"var(--ms-inset-panel-body)",overflow:"auto",textAlign:"left"}},String((n=e.node.code)!=null?n:"")),jn("div",{class:"_mermaid w-full text-center flex items-center justify-center min-h-full",style:{fontFamily:"inherit",contentVisibility:"auto",contain:"content",containIntrinsicSize:"var(--ms-size-diagram-min-height) 240px"}})])])}}}),aUe={docs:{showTooltips:!0,fade:!0,batchRendering:!0,initialRenderBatchSize:40,renderBatchSize:80,renderBatchDelay:16,renderBatchBudgetMs:6,renderBatchIdleTimeoutMs:120,deferNodesUntilVisible:!0,maxLiveNodes:220,liveNodeBuffer:60,nodeVirtual:"auto"},chat:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"},minimal:{showTooltips:!1,fade:!1,batchRendering:!0,initialRenderBatchSize:32,renderBatchSize:48,renderBatchDelay:6,renderBatchBudgetMs:8,renderBatchIdleTimeoutMs:60,deferNodesUntilVisible:!0,maxLiveNodes:0,liveNodeBuffer:0,nodeVirtual:"auto"}};function vl(e){if(e==null)return"";if(typeof e=="string"||typeof e=="number"||typeof e=="boolean")return String(e);try{return JSON.stringify(e)}catch{return String(e)}}const rUe=["data-custom-id"],lUe=["data-node-index","data-node-type"],OL="typewriter-simple-cursor-target",NZ=bi(st(Os(En({},{name:"NodeRenderer"}),{__name:"NodeRenderer",props:{content:{},nodes:{},final:{type:Boolean},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},mode:{},domMode:{},htmlPolicy:{},viewportPriority:{type:Boolean,default:void 0},viewportPriorityOptions:{},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},codeRenderer:{},renderCodeBlocksAsPre:{type:Boolean,default:void 0},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},mermaidProps:{},d2Props:{},infographicProps:{},showTooltips:{type:Boolean,default:void 0},themes:{},langs:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:[Boolean,String],default:!1},smoothStreaming:{type:[Boolean,String],default:"auto"},smoothStreamingOptions:{},parseCoalesceMs:{},fade:{type:Boolean,default:void 0},batchRendering:{type:Boolean,default:void 0},initialRenderBatchSize:{},renderBatchSize:{},renderBatchDelay:{},renderBatchBudgetMs:{},renderBatchIdleTimeoutMs:{},deferNodesUntilVisible:{type:Boolean,default:void 0},maxLiveNodes:{},liveNodeBuffer:{},nodeVirtual:{type:[Boolean,String],default:void 0},virtualScroll:{},renderAsFragment:{type:Boolean}},emits:["copy","copy-code","handleArtifactClick","click","mouseover","mouseout","virtual-state-change","height-change","render-settled","render-final","anchor-change"],setup(e,{expose:t,emit:n}){const s=e,o=n;function a(q){if(!(typeof Event<"u"&&q instanceof Event))return typeof q=="string"&&o("copy-code",q),void o("copy",q)}const r=Nd(),l=uo("markstreamNestedRendererProps",void 0);function c(q){const pe=r?.vnode.props;return!!pe&&(Object.prototype.hasOwnProperty.call(pe,q)||Object.prototype.hasOwnProperty.call(pe,String(q).replace(/[A-Z]/g,Te=>`-${Te.toLowerCase()}`)))}function u(q){var pe,Te;const $e=s[q];return c(q)?$e:(Te=(pe=l?.value)==null?void 0:pe[q])!=null?Te:$e}const p=E(()=>{return(q=u("mode"))==="chat"||q==="minimal"||q==="docs"?q:"docs";var q}),g=E(()=>kL(u("typewriter"))),y=E(()=>g.value!=="off"),v=E(()=>u("domMode")==="minimal"?"minimal":"full"),w=E(()=>{return(q={mode:p.value,codeRenderer:u("codeRenderer"),renderCodeBlocksAsPre:u("renderCodeBlocksAsPre")}).renderCodeBlocksAsPre===!0?"pre":q.codeRenderer==="pre"||q.codeRenderer==="shiki"||q.codeRenderer==="monaco"?q.codeRenderer:q.renderCodeBlocksAsPre===!1||q.mode==="docs"?"monaco":"pre";var q}),k=E(()=>aUe[p.value]),A=E(()=>{var q;return(q=u("showTooltips"))!=null?q:k.value.showTooltips}),_=E(()=>{var q;return(q=u("fade"))!=null?q:k.value.fade}),S=E(()=>{var q;return(q=u("batchRendering"))!=null?q:k.value.batchRendering}),I=E(()=>{var q;return(q=u("initialRenderBatchSize"))!=null?q:k.value.initialRenderBatchSize}),x=E(()=>{var q;return(q=u("renderBatchSize"))!=null?q:k.value.renderBatchSize}),T=E(()=>{var q;return(q=u("renderBatchDelay"))!=null?q:k.value.renderBatchDelay}),R=E(()=>{var q;return(q=u("renderBatchBudgetMs"))!=null?q:k.value.renderBatchBudgetMs}),M=E(()=>{var q;return(q=u("renderBatchIdleTimeoutMs"))!=null?q:k.value.renderBatchIdleTimeoutMs}),$=E(()=>{var q;return(q=u("deferNodesUntilVisible"))!=null?q:k.value.deferNodesUntilVisible}),O=E(()=>{var q;return(q=u("maxLiveNodes"))!=null?q:k.value.maxLiveNodes}),F=E(()=>{var q;return(q=u("liveNodeBuffer"))!=null?q:k.value.liveNodeBuffer}),B=E(()=>{var q;return(q=u("nodeVirtual"))!=null?q:k.value.nodeVirtual}),N={get content(){return s.content},get nodes(){return s.nodes},get final(){return s.final},get parseOptions(){return u("parseOptions")},get customMarkdownIt(){return u("customMarkdownIt")},get debugPerformance(){return s.debugPerformance},get customHtmlTags(){return u("customHtmlTags")},get mode(){return u("mode")},get domMode(){return v.value},get htmlPolicy(){return u("htmlPolicy")},get viewportPriority(){return u("viewportPriority")},get viewportPriorityOptions(){return u("viewportPriorityOptions")},get codeBlockStream(){return u("codeBlockStream")},get codeBlockDarkTheme(){return u("codeBlockDarkTheme")},get codeBlockLightTheme(){return u("codeBlockLightTheme")},get codeBlockMonacoOptions(){return u("codeBlockMonacoOptions")},get codeRenderer(){return u("codeRenderer")},get renderCodeBlocksAsPre(){return u("renderCodeBlocksAsPre")},get codeBlockMinWidth(){return u("codeBlockMinWidth")},get codeBlockMaxWidth(){return u("codeBlockMaxWidth")},get codeBlockProps(){return u("codeBlockProps")},get mermaidProps(){return u("mermaidProps")},get d2Props(){return u("d2Props")},get infographicProps(){return u("infographicProps")},get showTooltips(){return A.value},get themes(){return u("themes")},get langs(){return u("langs")},get isDark(){return u("isDark")},get customId(){return u("customId")},get indexKey(){return s.indexKey},get typewriter(){return u("typewriter")},get smoothStreaming(){return s.smoothStreaming},get smoothStreamingOptions(){return u("smoothStreamingOptions")},get parseCoalesceMs(){return u("parseCoalesceMs")},get fade(){return _.value},get batchRendering(){return S.value},get initialRenderBatchSize(){return I.value},get renderBatchSize(){return x.value},get renderBatchDelay(){return T.value},get renderBatchBudgetMs(){return R.value},get renderBatchIdleTimeoutMs(){return M.value},get deferNodesUntilVisible(){return $.value},get maxLiveNodes(){return O.value},get liveNodeBuffer(){return F.value},get nodeVirtual(){return B.value},get virtualScroll(){return s.virtualScroll},get renderAsFragment(){return s.renderAsFragment}};function z(q){o("height-change",q)}function H(q){o("virtual-state-change",q)}function U(q){o("anchor-change",q)}const L=D(),K=D(null),G=D(null),Q=D(null),J=as({1:null,2:null,3:null,4:null,5:null,6:null}),ee=D(!1),ie=new Map,le=D(0),oe=D(0),ae=D({paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}});function te(q,pe){return typeof q!="string"?pe:q.trim()||pe}function Z(q){const pe=Number(q);return Number.isFinite(pe)&&pe>0?Math.max(1,Math.trunc(pe)):640}const Ce=E(()=>{var q;const pe=(q=N.viewportPriorityOptions)!=null?q:{},Te=te(pe.rootMargin,Jg);return{rootMargin:Te,heavyBlockMargin:te(pe.heavyBlockMargin,Te),maxTargets:Z(pe.maxTargets)}}),Fe=E(()=>{var q;return(q=Ce.value.rootMargin)!=null?q:Jg}),Pe=E(()=>{var q;return(q=Ce.value.maxTargets)!=null?q:640});function fe(){var q,pe;if(((q=s.virtualScroll)==null?void 0:q.enabled)!==!0)return null;const Te=(pe=s.virtualScroll)==null?void 0:pe.scrollRoot;return be(typeof Te=="function"?Te():Te)}function be(q){return q?typeof HTMLElement<"u"&&q instanceof HTMLElement?q:typeof q=="object"&&"value"in q?be(q.value):typeof q=="object"&&"$el"in q?be(q.$el):null:null}si(pZ,Ce);const{isClient:ue,renderAsFragment:ye,debugPerformanceEnabled:ke,resolvedShowTooltips:ve,resolvedHtmlPolicy:xe,inheritedSmoothStreaming:se,ownsTypewriterCursor:de}=(function(q){const pe=typeof window<"u",Te=Ah(),$e=uo("markstreamHtmlPolicy",void 0),je=uo("markstreamTypewriterCursor",void 0),yt=uo("markstreamSmoothStreaming",void 0),Et=E(()=>q.renderAsFragment===!0),Pt=E(()=>!!(q.debugPerformance&&pe&&typeof console<"u")),tn=E(()=>{var Jt;if(typeof q.showTooltips=="boolean")return q.showTooltips;const Nt=(Jt=Te.showTooltips)!=null?Jt:Te["show-tooltips"];return Nt===""||Nt===!0||Nt==="true"||Nt!==!1&&Nt!=="false"&&void 0}),Dt=E(()=>{var Jt,Nt;return(Nt=(Jt=q.htmlPolicy)!=null?Jt:$e?.value)!=null?Nt:"safe"}),qt=E(()=>je?.value!==!0);return{isClient:pe,renderAsFragment:Et,debugPerformanceEnabled:Pt,resolvedShowTooltips:tn,resolvedHtmlPolicy:Dt,inheritedSmoothStreaming:yt,inheritedTypewriterCursor:je,ownsTypewriterCursor:qt}})(N),{resolveViewportRoot:De,resolveScrollContainer:me,isReverseFlexScrollRoot:Be,getNormalizedScrollTop:He,getOffsetTopWithinRoot:Le}=(function(q,pe){function Te(){var Pt,tn;return(tn=(Pt=pe.scrollRoot)==null?void 0:Pt.call(pe))!=null?tn:null}function $e(Pt){if(typeof window>"u")return null;const tn=Te();if(tn)return tn;const Dt=Pt??q.value;if(!Dt)return null;const qt=Dt.ownerDocument||document,Jt=qt.scrollingElement||qt.documentElement;let Nt=Dt;for(;Nt&&Nt!==qt.body&&Nt!==Jt;){if(tUe(window.getComputedStyle(Nt))&&nUe(Nt))return Nt;Nt=Nt.parentElement}return null}function je(Pt){if(!pe.isClient)return!1;try{const tn=window.getComputedStyle(Pt);return!!(tn.display||"").toLowerCase().includes("flex")&&(tn.flexDirection||"").toLowerCase().endsWith("reverse")}catch{return!1}}function yt(Pt,tn,Dt){var qt,Jt;if(Dt)return Et(tn);const Nt=Pt.scrollTop;if(!je(Pt))return Nt;const jt=Nt<0?-Nt:Nt;return Math.max(0,((qt=Pt.scrollHeight)!=null?qt:0)-((Jt=Pt.clientHeight)!=null?Jt:0))-jt}function Et(Pt){var tn,Dt,qt,Jt,Nt;const jt=Number((tn=Pt.scrollingElement)==null?void 0:tn.scrollTop),fn=Number((qt=(Dt=Pt.documentElement)==null?void 0:Dt.scrollTop)!=null?qt:0),ln=Number((Nt=(Jt=Pt.body)==null?void 0:Jt.scrollTop)!=null?Nt:0);return Math.max(0,Number.isFinite(jt)?jt:0,Number.isFinite(fn)?fn:0,Number.isFinite(ln)?ln:0)}return{resolveViewportRoot:$e,resolveScrollContainer:function(Pt){var tn,Dt,qt,Jt;const Nt=Te();if(Nt)return Nt;const jt=$e((tn=Pt??q.value)!=null?tn:null);if(jt)return jt;const fn=(Jt=(qt=Pt?.ownerDocument)!=null?qt:(Dt=q.value)==null?void 0:Dt.ownerDocument)!=null?Jt:typeof document<"u"?document:null;return fn?.scrollingElement||fn?.documentElement||null},isReverseFlexScrollRoot:je,getNormalizedScrollTop:yt,getOffsetTopWithinRoot:function(Pt,tn){const Dt=tn.ownerDocument||Pt.ownerDocument||document;if((function(jt,fn){return jt===fn.documentElement||jt===fn.body||jt===fn.scrollingElement})(tn,Dt))return Pt.getBoundingClientRect().top+Et(Dt);const qt=tn.getBoundingClientRect(),Jt=Pt.getBoundingClientRect(),Nt=yt(tn,Dt,!1);return Jt.top-qt.top+Nt}}})(L,{isClient:ue,scrollRoot:fe});si("markstreamShowTooltips",ve),si("markstreamHtmlPolicy",xe),si("markstreamTypewriter",y),si("markstreamFade",E(()=>N.fade!==!1)),si("markstreamTypewriterCursor",E(()=>!0)),si("markstreamTextStreamState",ie),si("markstreamStreamVersion",le),si("markstreamParseOptions",E(()=>N.parseOptions)),si("markstreamCustomMarkdownIt",E(()=>N.customMarkdownIt));const{smoothStreamingEnabled:Ee,renderContent:kt,requestedFinal:ot,effectiveFinal:We}=(function(q,pe){const Te=TZ(En(En({},eUe),q.smoothStreamingOptions)),$e=E(()=>{var Nt,jt,fn;return q.smoothStreaming!==!1&&!((Nt=q.nodes)!=null&&Nt.length)&&(q.smoothStreaming===!0||!((jt=pe.inheritedSmoothStreaming)!=null&&jt.value))&&(q.smoothStreaming===!0||kL(q.typewriter)!=="off"||((fn=q.maxLiveNodes)!=null?fn:0)<=0)}),je=D(!pe.isClient||q.smoothStreaming===!0);xo(()=>{je.value=!0});const yt=E(()=>je.value&&$e.value),Et=E(()=>{var Nt;return yt.value?Te.visible.value:(Nt=q.content)!=null?Nt:""}),Pt=E(()=>{var Nt,jt;const fn=(Nt=q.parseOptions)!=null?Nt:{};return(jt=q.final)!=null?jt:fn.final}),tn=E(()=>{const Nt=Pt.value;return yt.value&&Nt!=null?!!Nt&&Te.caughtUp.value:Nt});let Dt=0,qt=!1;function Jt(){Dt=0,qt=!1}return ze([()=>q.content,()=>q.nodes,yt,Pt],([Nt,jt,fn,ln])=>{if(jt?.length)return Jt(),void Te.reset("");const Bn=Nt??"";if(!fn)return Jt(),Te.reset(Bn),void(ln&&Te.finish({flush:!0}));const Sn=Te.source.value;if(Bn){if(Bn!==Sn)if(Bn.startsWith(Sn)){const es=Bn.slice(Sn.length),us=Te.pendingChars.value;es.length<=8?(Dt++,qt||Dt>=2&&us<=8?(qt=!0,Te.reset(Bn)):Te.enqueue(es)):(Jt(),Te.enqueue(es))}else Jt(),Te.reset(Bn)}else Jt(),Te.reset("");ln&&Te.finish()},{immediate:!0}),{smoothStream:Te,smoothStreamingEligible:$e,smoothStreamingEnabled:yt,renderContent:Et,requestedFinal:Pt,effectiveFinal:tn}})(N,{isClient:ue,inheritedSmoothStreaming:se}),vt=ot.value===!0;si("markstreamSmoothStreaming",Ee);const ct=D(!1),sn=D(!1),hn=D(!1);let ns="",Kt=!1,un=null;function cn(){ue&&un!=null&&(window.clearTimeout(un),un=null)}function Kn(){ct.value=!1,cn()}function Gn(q,pe){if(!ke.value)return;const Te=(function(){if(!ke.value)return null;const $e=Je(Rt),je=Je(Ge),yt=Math.max(Ie,je);if($e<=0&&yt<=0)return null;const Et={total:$e,maxPerFrame:yt,byLabel:(Pt=Rt,Object.fromEntries(Array.from(Pt.entries()).sort((tn,Dt)=>Dt[1]-tn[1]||tn[0].localeCompare(Dt[0]))))};var Pt;return Rt.clear(),Ge.clear(),Ie=0,Et})();console.info(`[markstream-vue][perf] ${q}`,Te?Os(En({},pe),{layoutReads:Te}):pe)}ze([()=>N.indexKey,()=>N.customId],()=>{var q,pe;Kn(),sn.value=!1,hn.value=!((q=s.nodes)!=null&&q.length)&&ot.value!==!0&&!!s.content,ns=(pe=kt.value)!=null?pe:"",Kt=ns.length>0},{flush:"sync"}),ze([()=>s.content,()=>s.nodes,ot],([q,pe,Te])=>{!pe?.length&&Te!==!0&&q&&(hn.value=!0)},{flush:"sync",immediate:!0}),ze([kt,()=>s.nodes,ot],([q,pe,Te])=>{const $e=q??"";return pe?.length||Te===!0?(Kn(),sn.value=!1,ns=$e,void(Kt=!0)):($e.length>0&&(hn.value=!0),Kt?(ns&&$e.length>ns.length&&$e.startsWith(ns)?(ct.value=!0,sn.value=!0,ue&&(cn(),un=window.setTimeout(()=>{var je;un=null,We.value===!0||(je=s.nodes)!=null&&je.length||(ro(),ct.value=!1,Kl())},1200))):($e.length<ns.length||!$e.startsWith(ns))&&(Kn(),sn.value=!1),void(ns=$e)):(ns=$e,void(Kt=!0)))},{flush:"sync",immediate:!0});const Rt=new Map,Ge=new Map;let Ae=!1,Ie=0;function Je(q){let pe=0;for(const Te of q.values())pe+=Te;return pe}function ge(){Ie=Math.max(Ie,Je(Ge)),Ge.clear(),Ae=!1}function et(q){q.maxPerFrame=Math.max(Number(q.maxPerFrame||0),Number(q.currentFrameTotal||0)),q.currentFrameTotal=0,q.frameScheduled=!1}function Yt(q){var pe,Te;ke.value&&(Rt.set(q,((pe=Rt.get(q))!=null?pe:0)+1),Ge.set(q,((Te=Ge.get(q))!=null?Te:0)+1),(function($e){const je=(function(){if(!ue||typeof window>"u")return null;const yt=window;if(yt.__markstreamLayoutReadPerformance)return yt.__markstreamLayoutReadPerformance;const Et={total:0,maxPerFrame:0,byLabel:{}};return yt.__markstreamLayoutReadPerformance=Et,Et})();je&&(je.total=Number(je.total||0)+1,je.byLabel[$e]=Number(je.byLabel[$e]||0)+1,je.currentFrameTotal=Number(je.currentFrameTotal||0)+1,je.frameScheduled||(je.frameScheduled=!0,typeof window.requestAnimationFrame!="function"?typeof queueMicrotask!="function"?setTimeout(()=>et(je),0):queueMicrotask(()=>et(je)):window.requestAnimationFrame(()=>et(je))))})(q),Ae||(Ae=!0,ue&&typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(ge):typeof queueMicrotask!="function"?setTimeout(ge,0):queueMicrotask(ge)))}function rt(q,pe){return Yt(q),pe()}const Vt=N.customId?`renderer-${N.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,qe=(function(q){const pe=new Map;return{scope:q,cache:pe,clear:()=>pe.clear()}})(Vt),Xe=E(()=>`${Vt}:${le.value}`);si(kZ,qe);const Qe=Kr(()=>N.customId),{effectiveCustomHtmlTagsSet:zt,mergedParseOptions:Ve,parsedNodes:nt,getParsedNodesDirtyStartIndex:Ut,getParsedNodesRevision:rn}=Xze(N,{instanceMsgId:Vt,renderContent:kt,effectiveFinal:We,smoothStreamingEnabled:Ee,debugPerformanceEnabled:ke,customComponentsMap:Qe,logPerf:Gn});ze(nt,()=>{qe.clear(),le.value+=1},{immediate:!0});const $n=E(()=>({customId:N.customId,customHtmlTags:Ve.value.customHtmlTags,parseOptions:N.parseOptions,customMarkdownIt:N.customMarkdownIt,htmlPolicy:xe.value,viewportPriority:N.viewportPriority,viewportPriorityOptions:Ce.value,mode:p.value,domMode:N.domMode,codeRenderer:w.value,codeBlockStream:N.codeBlockStream,codeBlockDarkTheme:N.codeBlockDarkTheme,codeBlockLightTheme:N.codeBlockLightTheme,codeBlockMonacoOptions:N.codeBlockMonacoOptions,renderCodeBlocksAsPre:N.renderCodeBlocksAsPre,codeBlockMinWidth:N.codeBlockMinWidth,codeBlockMaxWidth:N.codeBlockMaxWidth,codeBlockProps:N.codeBlockProps,mermaidProps:N.mermaidProps,d2Props:N.d2Props,infographicProps:N.infographicProps,showTooltips:ve.value,themes:N.themes,langs:N.langs,isDark:N.isDark,typewriter:y.value,smoothStreamingOptions:N.smoothStreamingOptions,parseCoalesceMs:N.parseCoalesceMs,fade:N.fade}));si("markstreamNestedRendererProps",$n);const xs=E(()=>nt.value),tt=E(()=>nt.value.length),Ke=D(null),ht=D(null),Ot=D(null),xt=D(null),Lt=s.indexKey!=null&&String(s.indexKey).startsWith("list-item-"),Mt=!Lt&&N.customId?hL(N.customId):null,dn=E(()=>Mt?(Zx.value,hL(N.customId)):null),Cn=E(()=>{var q;return!!(!ye.value&&N.customId&&!Lt&&((q=dn.value)!=null&&q.enabled))}),Mn=E(()=>!!(ue&&Cn.value)),_t=E(()=>{var q;return!!(!ye.value&&((q=s.virtualScroll)!=null&&q.enabled))}),Tt=E(()=>_t.value),an=D(!1);xo(()=>{an.value=!0});const Pn=E(()=>!!(ue&&_t.value));si("markstreamHostScrollManaged",Pn);const Eo=E(()=>!!(an.value&&Pn.value)),No=E(()=>Mn.value||Pn.value),Qi=E(()=>Mn.value||Eo.value),wn=E(()=>{var q;return No.value&&((q=dn.value)==null?void 0:q.textEstimation)!==!1});function Ze(){const q=oe.value||rt("getMeasuredContainerWidth.clientWidth",()=>{var pe;return((pe=L.value)==null?void 0:pe.clientWidth)||0});return Number.isFinite(q)&&q>0?q:0}const Ct=E(()=>{const q=Ze();return q>0?Math.max(1,Math.round(q)):640}),wt=E(()=>{var q,pe;return!(We.value!==!0||_t.value||p.value!=="chat"&&p.value!=="minimal"||c("maxLiveNodes")||c("liveNodeBuffer")||(q=s.nodes)!=null&&q.length||hn.value||!(((pe=N.maxLiveNodes)!=null?pe:0)<=0))}),Yn=E(()=>{var q;return wt.value?50:Math.max(1,(q=N.maxLiveNodes)!=null?q:320)}),Fs=E(()=>{var q;return wt.value?16:Math.max(0,(q=N.liveNodeBuffer)!=null?q:60)}),ts=E(()=>{var q;return!ye.value&&N.nodeVirtual!==!1&&!(((q=N.maxLiveNodes)!=null?q:0)<=0&&!wt.value)&&(N.nodeVirtual===!0?nt.value.length>0:nt.value.length>Yn.value)}),ki=E(()=>ts.value||Mn.value||Pn.value),vo=E(()=>N.viewportPriority!==!1),li=E(()=>!!vo.value&&!ee.value);var Mi;Mi=E(()=>vo.value),si(fZ,Mi);const $i=E(()=>{var q;return!(ye.value||N.deferNodesUntilVisible===!1||((q=N.maxLiveNodes)!=null?q:0)<=0||ts.value||nt.value.length>900||N.viewportPriority===!1)}),Oi=MBe(q=>{var pe;return De((pe=q??L.value)!=null?pe:null)},vo),{requestFrame:Ro,cancelFrame:qo,hasIdleCallback:_s,isTestEnv:it}=(function(q){const pe=q.isClient&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,Te=q.isClient&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,$e=q.isClient&&typeof window.requestIdleCallback=="function",je=(function(){var yt;if(typeof globalThis>"u"||!("process"in globalThis))return;const Et=(yt=Object.getOwnPropertyDescriptor(globalThis,"process"))==null?void 0:yt.value;return Et?.env})();return{requestFrame:pe,cancelFrame:Te,hasIdleCallback:$e,isTestEnv:je?.NODE_ENV==="test"}})({isClient:ue}),gt=E(()=>We.value===!0&&!_t.value),{resolvedBatchSize:Ht,resolvedInitialBatch:Dn,batchingEnabled:Is,incrementalRenderingActive:zs,renderedCount:Nn,previousRenderContext:Oo,adaptiveBatchSize:so,previousBatchConfig:to}=(function(q,pe){var Te;const $e=E(()=>{var Jt;const Nt=Math.trunc((Jt=q.renderBatchSize)!=null?Jt:80);return Number.isFinite(Nt)?Math.max(0,Nt):0}),je=E(()=>{var Jt;const Nt=Math.trunc((Jt=q.initialRenderBatchSize)!=null?Jt:$e.value);return Number.isFinite(Nt)?Math.max(0,Nt):$e.value}),yt=E(()=>!pe.renderAsFragment.value&&q.batchRendering!==!1&&$e.value>0&&pe.isClient&&!pe.isTestEnv),Et=D(0),Pt=D({key:q.indexKey,total:0}),tn=D(Math.max(1,$e.value||1)),Dt=E(()=>{var Jt,Nt,jt;return yt.value&&!((Jt=pe.continuousStreaming)!=null&&Jt.value)&&!((Nt=pe.forceFullRenderFinalContent)!=null&&Nt.value)&&((jt=q.maxLiveNodes)!=null?jt:0)<=0}),qt=D({batchSize:$e.value,initial:je.value,delay:(Te=q.renderBatchDelay)!=null?Te:16,enabled:Dt.value});return{resolvedBatchSize:$e,resolvedInitialBatch:je,batchingEnabled:yt,incrementalRenderingActive:Dt,renderedCount:Et,previousRenderContext:Pt,adaptiveBatchSize:tn,previousBatchConfig:qt}})(N,{isClient:ue,isTestEnv:it,renderAsFragment:ye,forceFullRenderFinalContent:gt,continuousStreaming:E(()=>sn.value&&We.value!==!0)}),wi=E(()=>{var q;return!ye.value&&N.batchRendering!==!1&&Ht.value>0&&!it&&((q=N.maxLiveNodes)!=null?q:0)<=0&&!gt.value}),jo=E(()=>wi.value),Bo=E(()=>No.value||jo.value),Zo=E(()=>{var q;return Bo.value&&((q=dn.value)==null?void 0:q.codeBlockEstimation)!==!1}),xn=new Map,Xn=new Map,As=new WeakMap;let Es=null;const To=new WeakMap,yo=new Map,ul=[];let aa=[],Bl=[],Zi=-1;const La=gi(ul),lr=new Set,Cs=D(0);let Gr=0;const ha=D(0),Yr=E(()=>(ha.value,Array.from(xn.entries()).sort((q,pe)=>q[0]-pe[0]))),Xo=D(null),zo=D(null);let lo,Ui=null,Fl=0,kr=null;function ra(){lo.markFallbackHeightPrefixDirty()}function Qa(q){return lo.getFallbackNodeHeight(q)}function wr(q,pe){return lo.estimateHeightRange(q,pe)}function Sr(q){return lo.estimateIndexForOffset(q)}const{activeRestoreAnchor:Za,getRelativeScrollTopWithinContainer:zc,setRelativeScrollTopWithinContainer:Sf,resolveAnchorOffset:Pi,clearRestoreReconcile:ic,scheduleRestoreReconcile:cr,captureRestoreAnchor:zl,restoreAnchor:Al,getAnchorDrift:Hi}=(function(q){const{isClient:pe,containerRef:Te,parsedNodeCount:$e,requestFrame:je,cancelFrame:yt,resolveScrollContainer:Et,getNormalizedScrollTop:Pt,getOffsetTopWithinRoot:tn,isReverseFlexScrollRoot:Dt,estimateIndexForOffset:qt,estimateHeightRange:Jt,getFallbackNodeHeight:Nt,clamp:jt}=q,fn=D(null);let ln=null,Bn=[];function Sn(){const ks=Et(),no=Te.value;if(!ks||!no)return null;const mo=ks.ownerDocument||no.ownerDocument||document;if(ks===mo.documentElement||ks===mo.body||ks===mo.scrollingElement){const xi=no.getBoundingClientRect();return Math.max(0,-xi.top)}return Math.max(0,Pt(ks,mo,!1)-tn(no,ks))}function es(ks){var no;const mo=Et(),xi=Te.value;if(!mo||!xi)return;const $l=Math.max(0,ks),gl=mo.ownerDocument||xi.ownerDocument||document,ap=gl.defaultView||(typeof window<"u"?window:null);if(mo===gl.documentElement||mo===gl.body||mo===gl.scrollingElement){const Lp=Pt(mo,gl,!0)+xi.getBoundingClientRect().top;return void((no=ap?.scrollTo)==null||no.call(ap,0,Math.max(0,Lp+$l)))}yL(mo,gl,tn(xi,mo)+$l,{isReverseFlexScrollRoot:Lp=>{var K1;return(K1=Dt?.(Lp))!=null&&K1},getNormalizedScrollTop:Pt})}function us(ks){const no=$e.value,mo=jt(ks.nodeIndex,0,Math.max(0,no-1));return Jt(0,mo)+Math.max(0,ks.offsetWithinNodePx)}function ys(){if(ln!=null&&(yt?.(ln),ln=null),pe)for(const ks of Bn)window.clearTimeout(ks);Bn=[]}function vs(ks){const no=us(ks),mo=Sn();mo!=null&&Math.abs(mo-no)<=.5||es(no)}return{activeRestoreAnchor:fn,getRelativeScrollTopWithinContainer:Sn,setRelativeScrollTopWithinContainer:es,resolveAnchorOffset:us,clearRestoreReconcile:ys,applyRestoreAnchor:vs,scheduleRestoreReconcile:function(){fn.value&&pe&&ln==null&&(ln=je?je(()=>{ln=null,fn.value&&vs(fn.value)}):null,ln==null&&fn.value&&vs(fn.value))},captureRestoreAnchor:function(){const ks=Sn(),no=$e.value;if(ks==null||no<=0)return null;const mo=jt(qt(ks+1),0,no-1),xi=Jt(0,mo),$l=Nt(mo);return{nodeIndex:mo,offsetWithinNodePx:jt(ks-xi,0,Math.max(0,$l-1))}},restoreAnchor:function(ks){const no=$e.value;if(fn.value={nodeIndex:jt(ks.nodeIndex,0,Math.max(0,no-1)),offsetWithinNodePx:Math.max(0,ks.offsetWithinNodePx)},ys(),vs(fn.value),pe)for(const mo of[0,120,280,480])Bn.push(window.setTimeout(()=>{fn.value&&vs(fn.value)},mo))},getAnchorDrift:function(ks){const no=Sn();return no==null?null:no-us(ks)}}})({isClient:ue,containerRef:L,parsedNodeCount:tt,requestFrame:Ro,cancelFrame:qo,resolveScrollContainer:()=>Xo.value||me(),getNormalizedScrollTop:He,getOffsetTopWithinRoot:Le,isReverseFlexScrollRoot:Be,estimateIndexForOffset:Sr,estimateHeightRange:wr,getFallbackNodeHeight:Qa,clamp:da}),{nodeHeights:ur,heightStats:Xi,heightTreeSize:Cu,heightSumTree:Cp,heightKnownTree:ed,averageNodeHeight:Ji,resetHeightMeasurements:td,pruneHeightMeasurements:Uo,rebuildHeightTrees:ci,recordNodeHeight:_f,removeNodeHeights:Uc,exportHeightCache:ac,importHeightCache:Vi,fenwickRangeSum:Ba}=(function(q={}){const pe=as({}),Te=as({total:0,count:0}),$e=D(0),je=D([]),yt=D([]);function Et(){for(const Nt of Object.keys(pe))delete pe[Number(Nt)];Te.total=0,Te.count=0,$e.value=0,je.value=[],yt.value=[]}function Pt(Nt,jt,fn){for(let ln=jt+1;ln<Nt.length;ln+=ln&-ln)Nt[ln]+=fn}function tn(Nt,jt){let fn=0;for(let ln=jt+1;ln>0;ln-=ln&-ln)fn+=Nt[ln];return fn}function Dt(Nt){$e.value=Nt;const jt=new Array(Nt+1).fill(0),fn=new Array(Nt+1).fill(0);for(const[ln,Bn]of Object.entries(pe)){const Sn=Number(ln),es=Number(Bn);!Number.isFinite(Sn)||Sn<0||Sn>=Nt||!Number.isFinite(es)||es<=0||(Pt(jt,Sn,es),Pt(fn,Sn,1))}je.value=jt,yt.value=fn}function qt(Nt){if(!Number.isInteger(Nt)||Nt<0)return!1;const jt=pe[Nt];if(!Number.isFinite(jt)||jt<=0)return!1;if(delete pe[Nt],Te.total=Math.max(0,Te.total-jt),Te.count=Math.max(0,Te.count-1),$e.value>Nt){const fn=je.value,ln=yt.value;fn.length&&ln.length&&(Pt(fn,Nt,-jt),Pt(ln,Nt,-1))}return!0}const Jt=E(()=>Te.count>0?Math.max(12,Te.total/Te.count):32);return{nodeHeights:pe,heightStats:Te,heightTreeSize:$e,heightSumTree:je,heightKnownTree:yt,averageNodeHeight:Jt,resetHeightMeasurements:Et,pruneHeightMeasurements:function(Nt){if(Nt<=0)return void Et();let jt=0,fn=0;for(const[ln,Bn]of Object.entries(pe)){const Sn=Number(ln),es=Number(Bn);!Number.isFinite(Sn)||Sn<0||Sn>=Nt||!Number.isFinite(es)||es<=0?delete pe[Sn]:(jt+=es,fn++)}Te.total=jt,Te.count=fn},rebuildHeightTrees:Dt,recordNodeHeight:function(Nt,jt,fn={}){(function(ln,Bn,Sn={}){var es;if(!Number.isFinite(Bn)||Bn<=0)return!1;const us=pe[ln];if(us&&(Sn.allowShrink===!1&&Bn<us||Math.abs(Bn-us)<=1))return!1;if(pe[ln]=Bn,us?Te.total+=Bn-us:(Te.total+=Bn,Te.count++),$e.value>ln){const ys=je.value,vs=yt.value;if(ys.length&&vs.length)if(us){const ks=Bn-us;ks!==0&&Pt(ys,ln,ks)}else Pt(ys,ln,Bn),Pt(vs,ln,1)}Sn.notify!==!1&&((es=q.onHeightRecorded)==null||es.call(q))})(Nt,jt,Os(En({},fn),{notify:!0}))},removeNodeHeight:function(Nt,jt={}){var fn;const ln=qt(Nt);return ln&&jt.notify!==!1&&((fn=q.onHeightRecorded)==null||fn.call(q)),ln},removeNodeHeights:function(Nt,jt={}){var fn;let ln=0;for(const Bn of Nt)qt(Number(Bn))&&ln++;return ln>0&&jt.notify!==!1&&((fn=q.onHeightRecorded)==null||fn.call(q)),ln},exportHeightCache:function(){return Object.entries(pe).map(([Nt,jt])=>({index:Number(Nt),height:Number(jt)})).filter(Nt=>Number.isFinite(Nt.index)&&Nt.index>=0&&Number.isFinite(Nt.height)&&Nt.height>0).sort((Nt,jt)=>Nt.index-jt.index)},importHeightCache:function(Nt,jt={}){var fn;if(!Array.isArray(Nt))return;const ln=$e.value;let Bn=!1;if(jt.mode!=="merge"){const Sn=Object.keys(pe);if(Sn.length>0){for(const es of Sn)delete pe[Number(es)];Bn=!0}}for(const Sn of Nt){const es=Number(Sn.index),us=Number(Sn.height);if(!Number.isInteger(es)||es<0||ln>0&&es>=ln||!Number.isFinite(us)||us<=0)continue;const ys=pe[es];ys&&Math.abs(ys-us)<=1||(pe[es]=us,Bn=!0)}Bn&&((function(){let Sn=0,es=0;const us=$e.value;for(const[ys,vs]of Object.entries(pe)){const ks=Number(ys),no=Number(vs);!Number.isFinite(ks)||ks<0||us>0&&ks>=us||!Number.isFinite(no)||no<=0?delete pe[ks]:(Sn+=no,es++)}Te.total=Sn,Te.count=es})(),ln>0&&Dt(ln),(fn=q.onHeightRecorded)==null||fn.call(q))},fenwickRangeSum:function(Nt,jt,fn){if(fn<=jt)return 0;const ln=tn(Nt,fn-1);return jt<=0?ln:ln-tn(Nt,jt-1)}}})({onHeightRecorded:()=>{ra(),Pn.value&&Kh(),Za.value&&cr(),zo.value&&sr(),pi("node-resize")}});function Ho(q){Number.isInteger(q)&&q>=0&&lr.add(q)}function ea(q){for(const pe of q)Ho(Number(pe))}function dl(q){Gr++;let pe=!0;try{const Te=q();return pe=Te!==!1,Te}finally{Gr--,Gr===0&&pe&&Cs.value++}}function Qr(){aa=[],Bl=[],Zi=-1,lr.clear(),La.value=ul}function Fa(){Qr(),dl(()=>td()),yo.clear()}function po(q){!Number.isInteger(q)||q<0||q>=nt.value.length||yo.set(q,ud(q))}function Hc(q,pe,Te={}){const $e=ur[q];Ho(q),_f(q,pe,Te);const je=ur[q];return Object.is($e,je)?(lr.delete(q),!1):(je&&je>0?po(q):$e&&yo.delete(q),!0)}function Ul(q,pe){const Te=rt("getNodeLayoutHeight.slot.offsetHeight",()=>{var $e,je;return(je=($e=xn.get(q))==null?void 0:$e.offsetHeight)!=null?je:0});return Te>0?Te:rt("getNodeLayoutHeight.content.offsetHeight",()=>pe.offsetHeight)}function Xa(q,pe={}){pe.mode!=="merge"?Qr():ea(q.map(Te=>Te.index)),dl(()=>Vi(q,pe)),Yc()}const Jo=E(()=>$i.value&&li.value),qi=E(()=>{var q;return!ye.value&&N.batchRendering!==!1&&Ht.value>0&&((q=N.maxLiveNodes)!=null?q:0)<=0}),pl=E(()=>!ye.value&&vt&&We.value===!0&&!ts.value&&!_t.value&&!Cn.value&&!Jo.value&&!qi.value),dr=E(()=>!!Oi&&Jo.value),xu=E(()=>ts.value||Pn.value),{focusIndex:Cl,liveRange:Ci,updateLiveRange:za}=(function(q,pe){const{parsedNodeCount:Te,virtualizationEnabled:$e,maxLiveNodesResolved:je,liveNodeBufferResolved:yt,clamp:Et}=pe,Pt=yt??E(()=>{var qt;return Math.max(0,(qt=q.liveNodeBuffer)!=null?qt:60)}),tn=D(0),Dt=as({start:0,end:0});return{liveNodeBufferResolved:Pt,focusIndex:tn,liveRange:Dt,updateLiveRange:function(){const qt=Te.value;if(!$e.value||qt===0)return Dt.start=0,void(Dt.end=qt);const Jt=Math.min(je.value,qt),Nt=Pt.value,jt=Et(tn.value-Nt,0,Math.max(0,qt-Jt));Dt.start=jt,Dt.end=Math.min(qt,jt+Jt)}}})(N,{parsedNodeCount:tt,virtualizationEnabled:ts,maxLiveNodesResolved:Yn,liveNodeBufferResolved:Fs,clamp:da}),Po=new Map,Si=new Map,_r=new Map,Ja=[],la=new Map,So=new Set,Eu=D(0);let ji=!1;const er=E(()=>(Eu.value,So.size)),ei=new Map,bo=new Map,zd=D(0),fl=E(()=>{zd.value;let q=0;for(const pe of ei.values())q+=Math.max(0,pe);return q});let ca=null;const nd=E(()=>{if(!ts.value)return nt.value.length;const q=Fs.value,pe=Math.max(Ci.end+q,Dn.value),Te=Math.min(nt.value.length,pe);return Math.max(Nn.value,Te)});function pr(){ji||(ji=!0,queueMicrotask(()=>{ji=!1,Eu.value+=1}))}function ga(q,pe,Te="node-resize"){if(!ue||typeof window>"u")return null;const $e=window.setTimeout(()=>{So.delete($e)&&pr();try{pe()}finally{pi(Te)}},Math.max(0,q));return So.add($e),pr(),$e}function Hl(q){ue&&q!=null&&(So.delete(q)&&pr(),window.clearTimeout(q))}function xl(){if(ue&&typeof window<"u")for(const q of So)window.clearTimeout(q);So.size&&(So.clear(),pr()),Ja.length=0,_r.clear()}function fr(q){K.value=q}function Zr(q){G.value=q}function rc(q){Q.value=q}const{cancelScheduledFocusSync:ml,scheduleFocusSync:ua}=(function(q){const{isClient:pe,containerRef:Te,virtualizationEnabled:$e,requestFrame:je,cancelFrame:yt,syncFocusToScroll:Et}=q;let Pt=null;function tn(){var qt,Jt,Nt;return(Nt=(Jt=(qt=Te.value)==null?void 0:qt.ownerDocument)==null?void 0:Jt.defaultView)!=null?Nt:typeof window<"u"?window:null}function Dt(){if(!Pt)return;const qt=tn();Pt.viaTimeout?qt?qt.clearTimeout(Pt.id):clearTimeout(Pt.id):yt?.(Pt.id),Pt=null}return{cancelScheduledFocusSync:Dt,scheduleFocusSync:function(qt={}){if(!$e.value)return;if(!pe)return void Et(!0);if(qt.immediate)return Dt(),void Et(!0);if(Pt)return;const Jt=()=>{Pt=null,Et()};if(je)return void(Pt={id:je(Jt),viaTimeout:!1});const Nt=tn();Pt={id:Nt?Nt.setTimeout(Jt,16):setTimeout(Jt,16),viaTimeout:!0}}}})({isClient:ue,containerRef:L,virtualizationEnabled:ts,requestFrame:Ro,cancelFrame:qo,syncFocusToScroll:function(q=!1){var pe;if(!ts.value)return;const Te=Xo.value||me();if(!Te)return;const $e=Te.ownerDocument||((pe=L.value)==null?void 0:pe.ownerDocument)||document,je=$e?.defaultView||(typeof window<"u"?window:null),yt=Te===$e?.documentElement||Te===$e?.body,Et=nt.value.length;if(Et<=0)return;if(!yt&&Et>0&&Be(Te)){const ln=rt("syncFocusToScroll.clientHeight",()=>Te.clientHeight||0),Bn=rt("syncFocusToScroll.scrollTop",()=>Te.scrollTop),Sn=Bn<0?-Bn:Bn;return void Do(da((Pt=Math.max(0,Sn)+.5*Math.max(0,ln),lo.estimateIndexForOffsetFromEnd(Pt)),0,Math.max(0,Et-1)),q)}var Pt;const tn=(function(ln,Bn,Sn,es){const us=L.value;if(!us)return null;const ys=es?0:rt("syncFocusToScroll.model.root.getBoundingClientRect",()=>ln.getBoundingClientRect().top),vs=rt("syncFocusToScroll.model.container.getBoundingClientRect",()=>us.getBoundingClientRect().top),ks=Math.max(0,ys-vs),no=es?rt("syncFocusToScroll.model.viewport.clientHeight",()=>{var mo,xi,$l,gl;return(gl=($l=(xi=Sn?.innerHeight)!=null?xi:(mo=Bn.documentElement)==null?void 0:mo.clientHeight)!=null?$l:ln.clientHeight)!=null?gl:0}):rt("syncFocusToScroll.model.root.clientHeight",()=>ln.clientHeight);return da(Sr(ks+.5*Math.max(0,no)),0,Math.max(0,nt.value.length-1))})(Te,$e,je,yt);if(tn!=null)return void Do(tn,q);const Dt=yt?null:rt("syncFocusToScroll.root.getBoundingClientRect",()=>Te.getBoundingClientRect()),qt=yt?0:Dt.top,Jt=yt?rt("syncFocusToScroll.viewport.clientHeight",()=>{var ln,Bn;return(Bn=(ln=je?.innerHeight)!=null?ln:Te.clientHeight)!=null?Bn:0}):Dt.bottom,Nt=Yr.value;let jt=null,fn=null;for(const[ln,Bn]of Nt){if(!Bn)continue;const Sn=rt("syncFocusToScroll.slot.getBoundingClientRect",()=>Bn.getBoundingClientRect());Sn.bottom<=qt||Sn.top>=Jt||(jt==null&&(jt=ln),fn=ln)}if(jt==null||fn==null){const ln=L.value;if(!ln)return;const Bn=yt?{top:0}:rt("syncFocusToScroll.fallback.root.getBoundingClientRect",()=>Te.getBoundingClientRect()),Sn=rt("syncFocusToScroll.fallback.scrollTop",()=>He(Te,$e,yt)),es=yt?(()=>{const ys=rt("syncFocusToScroll.fallback.container.getBoundingClientRect",()=>ln.getBoundingClientRect()),vs=(yt?0:Bn.top)-ys.top;return Math.max(0,vs)})():(()=>{const ys=Le(ln,Te);return Math.max(0,Sn-ys)})(),us=yt?rt("syncFocusToScroll.fallback.viewport.clientHeight",()=>{var ys,vs,ks,no;return(no=(ks=(vs=je?.innerHeight)!=null?vs:(ys=$e?.documentElement)==null?void 0:ys.clientHeight)!=null?ks:Te.clientHeight)!=null?no:0}):rt("syncFocusToScroll.fallback.root.clientHeight",()=>Te.clientHeight);return void Do(da(Sr(es+.5*Math.max(0,us)),0,Math.max(0,nt.value.length-1)),!0)}Do(Math.round((jt+fn)/2),q)}}),{visibleNodeIndices:tr,nodeVisibilityHandles:va,nodeVisibilityWatchStops:Xr,nodeVisibilityFallbackTimers:Ir,clearVisibilityFallback:ti,markNodeVisible:ui,cleanupNodeVisibility:El,destroyNodeVisibilityState:Jr}=Jze({isClient:ue,shouldTrackVisibleNodeIndices:()=>Jo.value,shouldCleanupNodeVisibility:()=>ts.value,onNodeMarkedVisible:q=>{ts.value?ua():Cl.value=da(q,0,Math.max(0,nt.value.length-1))},onNodeVisibilityCleaned:q=>{xn.delete(q)&&xr()}}),{cleanupScrollListener:Vl,setupScrollListener:Vc}=(function(q){const{isClient:pe,virtualizationEnabled:Te,listenerEnabled:$e,scrollRootElement:je,resolveScrollContainer:yt,scheduleFocusSync:Et,onScroll:Pt}=q;let tn=null,Dt=null;function qt(){tn&&(tn(),tn=null),Dt=null,je.value=null}function Jt(Nt){const jt=q.getScrollTop?q.getScrollTop(Nt):Nt.scrollTop;return Math.max(0,Number.isFinite(jt)?Math.abs(jt):0)}return{cleanupScrollListener:qt,setupScrollListener:function(){if(!pe)return;if(!((Nt=$e?.value)!=null?Nt:Te.value))return void qt();var Nt;const jt=yt();if(!jt)return void qt();if(je.value===jt&&tn)return;qt(),Dt=Jt(jt);const fn=()=>{if(Pt?.(),Te.value){const ln=(function(Bn){const Sn=Jt(Bn),es=Dt;Dt=Sn;const us=Math.max(480,.75*(Bn.clientHeight||0));return es==null?Sn>us?{immediate:!0}:void 0:Math.abs(Sn-es)>us?{immediate:!0}:void 0})(jt);ln?Et(ln):Et()}};jt.addEventListener("scroll",fn,{passive:!0}),je.value=jt,tn=()=>{jt.removeEventListener("scroll",fn)}}}})({isClient:ue,virtualizationEnabled:ts,listenerEnabled:xu,scrollRootElement:Xo,resolveScrollContainer:me,scheduleFocusSync:ua,onScroll:function(){const q=zo.value;if(!q)return;const pe=Kc();if(!pe||(function($e){if($p()>=Fl)return kr=null,!1;const je=kr;if(je==null)return!0;const yt=Math.abs($e.scrollTop-je)<=2;return yt||(kr=null),yt})(pe))return;const Te=Cf(pe);Te!=null?(Te<-32||Math.abs(Math.max(0,Te)-Math.max(0,q.distanceFromBottomPx))>32)&&fc("restore"):fc("restore")},getScrollTop:q=>{var pe;const Te=q.ownerDocument||((pe=L.value)==null?void 0:pe.ownerDocument)||document,$e=q===Te.documentElement||q===Te.body||q===Te.scrollingElement;return rt("scrollListener.getScrollTop",()=>He(q,Te,$e))}});function Do(q,pe=!1){const Te=da(q,0,Math.max(0,nt.value.length-1));!pe&&Math.abs(Te-Cl.value)<=1||(Cl.value=Te,za())}function da(q,pe,Te){return Math.min(Math.max(q,pe),Te)}function nr(q=nt.value.length){const pe=Ut();return!Number.isInteger(pe)||pe<0?q:da(pe,0,q)}function ya(q){return q?.firstElementChild}function di(q,pe){var Te;return q?(Te=q.matches)!=null&&Te.call(q,pe)?q:q.querySelector(pe):null}function Bt(q,pe){q<1||q>6||(J[q]=pe)}function Zt(){if(!No.value)return void(oe.value=0);const q=rt("updateExperimentContainerWidth.clientWidth",()=>{var pe,Te;return(Te=(pe=L.value)==null?void 0:pe.clientWidth)!=null?Te:0});oe.value=q>0?q:0}let en=null;function fo(){en?.disconnect(),en=null}const pa=Ey("ViewportDeferredMarkdownCodeBlockNode",Jp({loader:()=>ta(null,null,function*(){return(yield Sa(()=>import("./index5-1jJwjiE_.js"),__vite__mapDeps([9,5,3,6,0,1]))).default}),loadingComponent:gI,delay:0,suspensible:!1}),gI);function el(q){return q===pa}const io=E(()=>w.value==="pre"?nu:w.value==="shiki"?pa:jx);function qc(){var q;return((q=N.codeBlockProps)==null?void 0:q.showHeader)!==!1}function ql(q,pe,Te){const $e=ur[pe],je=typeof $e=="number"&&$e>0;if(wn.value&&!je&&!(function(yt){return!!Qe.value.paragraph&&(yt.type==="paragraph"||yt.type==="list_item"||yt.type==="list")})(q)){const yt=bZ(q,Te,ae.value);if(yt)return yt}if(Zo.value&&q.type==="code_block"){const yt=(function(Et){if(Et.type!=="code_block")return null;const Pt=vw(Et,Zh(Et));return el(Pt)?"markdown":Pt===nu?"pre":Pt===io.value||Pt===jx?"monaco":null})(q);if(yt==="monaco"||yt==="markdown"||yt==="pre")return(function(Et,Pt){var tn,Dt,qt;if(!Et||Et.type!=="code_block")return null;const Jt=Pt.rendererKind,Nt=Jt!=="pre"&&Pt.showHeader!==!1,jt=!!Et.diff;let fn=0,ln=500;if(Jt==="monaco"){const Sn=(tn=Pt.monacoOptions)!=null?tn:{},es=eE(Et,Sn,Pt.width),us=(function(vs){const ks=typeof vs?.fontSize=="number"&&vs.fontSize>0?vs.fontSize:12;return typeof vs?.lineHeight=="number"&&vs.lineHeight>0?vs.lineHeight:Math.round(1.5*ks)})(Sn),ys=(function(vs,ks){var no,mo;const xi=typeof((no=vs?.padding)==null?void 0:no.top)=="number"?vs.padding.top:ks?0:8,$l=typeof((mo=vs?.padding)==null?void 0:mo.bottom)=="number"?vs.padding.bottom:ks?0:8;return Math.max(0,xi)+Math.max(0,$l)})(Sn,jt);ln=typeof Sn.MAX_HEIGHT=="number"&&Sn.MAX_HEIGHT>0?Sn.MAX_HEIGHT:500,fn=Math.round(es*us+ys)}else if(Jt==="markdown"){const Sn=eE(Et);fn=Math.round(21*Sn+32)}else{const Sn=eE(Et);fn=Math.round(28*Sn),ln=Number.POSITIVE_INFINITY}const Bn=Math.max(1,Math.min(fn,ln));return En({kind:"code-block",height:Math.round(Bn+(Nt?40:0)),contentHeight:Bn,rendererKind:Jt},jt&&Jt==="monaco"?{diffInline:mR((Dt=Pt.monacoOptions)!=null?Dt:{},(qt=Pt.width)!=null?qt:0)}:{})})(q,{rendererKind:yt,monacoOptions:N.codeBlockMonacoOptions,showHeader:qc(),width:Te})}return null}Wp(()=>{if(Cs.value,Gr>0)return;const q=nt.value,pe=rn();if(!q.length||!Bo.value)return aa=[],Bl=[],Zi=-1,lr.clear(),void(La.value=ul);const Te=oe.value||rt("estimatedNodeHeights.clientWidth",()=>{var Dt;return((Dt=L.value)==null?void 0:Dt.clientWidth)||0});if(!Number.isFinite(Te)||Te<=0)return aa=[],Bl=[],Zi=-1,lr.clear(),void(La.value=ul);const $e=(function(Dt){return[Math.round(Dt),wn.value,Zo.value,ae.value,N.codeBlockMonacoOptions,qc(),w.value,Qe.value,Zx.value]})(Te),je=aa.length<=q.length&&(Et=$e,(yt=Bl).length===Et.length&&yt.every((Dt,qt)=>Object.is(Dt,Et[qt])));var yt,Et;const Pt=je&&Zi===pe?q.length:je?nr(q.length):0,tn=je?Array.from(lr):[];aa.length=q.length;for(let Dt=Pt;Dt<q.length;Dt++)aa[Dt]=ql(q[Dt],Dt,Te);for(const Dt of tn)Dt>=0&&Dt<q.length&&Dt<Pt&&(aa[Dt]=ql(q[Dt],Dt,Te));lr.clear(),Bl=$e,Zi=pe,La.value=aa,Nte(La)},{flush:"sync"});const lc=E(()=>La.value);lo=(function(q){let pe=!0,Te=[0],$e="";function je(qt){var Jt;const Nt=q.nodeHeights[qt];if(Number.isFinite(Nt)&&Nt>0)return Nt;const jt=q.parsedNodes.value[qt],fn=jt?.type,ln=!!((Jt=q.hasCustomParagraphComponent)!=null&&Jt.call(q)),Bn=q.estimatedNodeHeights.value[qt],Sn=Bn?.height;if(!(function(us,ys,vs){return!!(vs&&ys?.kind==="simple-text"&&(us==="paragraph"||us==="list_item"||us==="list"))})(fn,Bn,ln)&&Number.isFinite(Sn)&&Sn>0)return Sn;const es=Uze(jt,q.getContainerWidth()||640);return fn==="heading"||fn==="paragraph"&&es<=28&&(function(us,ys){if(ys)return!1;const vs=us.children;return!Array.isArray(vs)||!vs.length||vs.every(wZ)})(jt,ln)?es:Math.max(q.averageNodeHeight.value,es)}function yt(){var qt;const Jt=q.parsedNodes.value.length,Nt=q.getPrefixCacheKeyParts().join(":");if(!pe&&$e===Nt)return Te;const jt=new Array(Jt+1);jt[0]=0;for(let fn=0;fn<Jt;fn++)jt[fn+1]=jt[fn]+(q.heightEstimationActive.value?je(fn):(qt=q.nodeHeights[fn])!=null?qt:q.averageNodeHeight.value);return Te=jt,$e=Nt,pe=!1,jt}function Et(qt){var Jt,Nt;const jt=q.parsedNodes.value.length;if(jt<=0||qt<=0)return 0;const fn=yt();if(qt>=((Jt=fn[jt])!=null?Jt:0))return jt-1;let ln=0,Bn=jt-1,Sn=jt-1;for(;ln<=Bn;){const es=ln+Bn>>1;((Nt=fn[es+1])!=null?Nt:0)>=qt?(Sn=es,Bn=es-1):ln=es+1}return Sn}function Pt(qt,Jt){var Nt,jt;if(qt>=Jt)return 0;if(q.heightEstimationActive.value)return(function(Bn,Sn){var es,us;const ys=q.parsedNodes.value.length,vs=wL(Math.trunc(Bn),0,ys),ks=wL(Math.trunc(Sn),vs,ys);if(vs>=ks)return 0;const no=yt();return((es=no[ks])!=null?es:0)-((us=no[vs])!=null?us:0)})(qt,Jt);if(q.heightTreeSize.value!==q.parsedNodes.value.length){let Bn=0;for(let Sn=qt;Sn<Jt;Sn++)Bn+=(Nt=q.nodeHeights[Sn])!=null?Nt:q.averageNodeHeight.value;return Bn}const fn=q.heightSumTree.value,ln=q.heightKnownTree.value;if(!fn.length||!ln.length){let Bn=0;for(let Sn=qt;Sn<Jt;Sn++)Bn+=(jt=q.nodeHeights[Sn])!=null?jt:q.averageNodeHeight.value;return Bn}return q.fenwickRangeSum(fn,qt,Jt)+(Jt-qt-q.fenwickRangeSum(ln,qt,Jt))*q.averageNodeHeight.value}function tn(qt){var Jt;if(qt<=0)return 0;const Nt=q.parsedNodes.value;if(q.heightEstimationActive.value)return Et(qt);if(q.heightTreeSize.value===Nt.length&&q.heightSumTree.value.length&&q.heightKnownTree.value.length){const fn=q.averageNodeHeight.value,ln=q.heightSumTree.value,Bn=q.heightKnownTree.value,Sn=vs=>vs<=0?0:q.fenwickRangeSum(ln,0,vs)+(vs-q.fenwickRangeSum(Bn,0,vs))*fn;let es=0,us=Nt.length-1,ys=Nt.length-1;for(;es<=us;){const vs=es+us>>1;Sn(vs+1)>=qt?(ys=vs,us=vs-1):es=vs+1}return ys}let jt=qt;for(let fn=0;fn<Nt.length;fn++){const ln=(Jt=q.nodeHeights[fn])!=null?Jt:q.averageNodeHeight.value;if(jt<=ln)return fn;jt-=ln}return Math.max(0,Nt.length-1)}function Dt(){if(!q.heightEstimationActive.value)return 0;let qt=0;const Jt=q.estimatedNodeHeights.value;for(let Nt=0;Nt<Jt.length;Nt++){if(!Jt[Nt])continue;const jt=q.nodeHeights[Nt];Number.isFinite(jt)&&jt>0||qt++}return qt}return{markFallbackHeightPrefixDirty:function(){pe=!0},getFallbackNodeHeight:je,estimateHeightRange:Pt,estimateIndexForOffset:tn,estimateIndexForOffsetFromEnd:function(qt){var Jt,Nt;const jt=q.parsedNodes.value;if(!jt.length)return 0;if(qt<=0)return Math.max(0,jt.length-1);if(q.heightEstimationActive.value){const ln=(Jt=yt()[jt.length])!=null?Jt:0;return Et(Math.max(0,ln-qt))}if(q.heightTreeSize.value===jt.length){const ln=Pt(0,jt.length);return tn(Math.max(0,ln-qt))}let fn=qt;for(let ln=jt.length-1;ln>=0;ln--){const Bn=(Nt=q.nodeHeights[ln])!=null?Nt:q.averageNodeHeight.value;if(fn<=Bn)return ln;fn-=Bn}return 0},getEstimatedNodeHeightCount:Dt,buildVirtualHeightSummary:function(qt){var Jt;const Nt=q.parsedNodes.value.length;return{totalNodes:Nt,measuredCount:q.heightStats.count,estimatedCount:Dt(),averageNodeHeight:q.averageNodeHeight.value,topSpacerHeight:qt.topSpacerHeight,bottomSpacerHeight:qt.bottomSpacerHeight,estimatedTotalHeight:Pt(0,Nt),width:(Jt=qt.width)!=null?Jt:q.getContainerWidth()}}}})({parsedNodes:nt,nodeHeights:ur,heightStats:Xi,heightTreeSize:Cu,heightSumTree:Cp,heightKnownTree:ed,averageNodeHeight:Ji,heightEstimationActive:No,estimatedNodeHeights:lc,getContainerWidth:Ze,hasCustomParagraphComponent:()=>!!Qe.value.paragraph,getPrefixCacheKeyParts:()=>{var q;const pe=py(oe.value||rt("getFallbackHeightPrefix.clientWidth",()=>{var $e;return(($e=L.value)==null?void 0:$e.clientWidth)||0})),Te=((q=s.virtualScroll)==null?void 0:q.measurementKey)==null?"":String(s.virtualScroll.measurementKey);return[nt.value.length,Xi.count,Math.round(Xi.total),Math.round(100*Ji.value),Te,pe,No.value?1:0,Zx.value,le.value,Qe.value.paragraph?1:0]},fenwickRangeSum:Ba}),ze(()=>nt.value.length,q=>{var pe;ra(),q<=0?Fa():(q<Cu.value&&(pe=q,Qr(),dl(()=>Uo(pe))),q!==Cu.value&&ci(q))},{immediate:!0});const Ud=E(()=>{if(!ts.value)return nt.value.map(($e,je)=>({node:$e,index:je}));const q=nt.value.length,pe=da(Ci.start,0,q),Te=da(Ci.end,pe,q);return nt.value.slice(pe,Te).map(($e,je)=>({node:$e,index:pe+je}))}),Hd=E(()=>ts.value?wr(0,Math.min(Ci.start,nt.value.length)):0),cc=E(()=>{if(!ts.value)return 0;const q=nt.value.length;return wr(Math.min(Ci.end,q),q)});function uc(){return lo.buildVirtualHeightSummary({topSpacerHeight:Hd.value,bottomSpacerHeight:cc.value,width:Nu()})}function Uh(){const q=nt.value,pe=uc();return Os(En({},pe),{probe:{paragraphReady:!!ae.value.paragraph,listItemReady:!!ae.value.listItem,listWrapperOverhead:ae.value.listWrapperOverhead,headingReadyLevels:Object.entries(ae.value.headings).filter(([,Te])=>!!Te).map(([Te])=>Number(Te))},nodes:q.map((Te,$e)=>{var je,yt,Et,Pt,tn,Dt,qt,Jt,Nt;return{index:$e,type:Te.type,estimateKind:(yt=(je=lc.value[$e])==null?void 0:je.kind)!=null?yt:null,rendererKind:(Pt=(Et=lc.value[$e])==null?void 0:Et.rendererKind)!=null?Pt:null,estimatedHeight:(Dt=(tn=lc.value[$e])==null?void 0:tn.height)!=null?Dt:null,estimatedContentHeight:(Jt=(qt=lc.value[$e])==null?void 0:qt.contentHeight)!=null?Jt:null,measuredHeight:(Nt=ur[$e])!=null?Nt:null}})})}function sd(){return s.indexKey!=null?String(s.indexKey):_t.value?`virtual-${Wo()}`:"markdown-renderer"}function Tu(q){const pe=String(q),Te=`${sd()}-`;if(!pe.startsWith(Te))return null;const $e=pe.slice(Te.length).match(/^(\d+)(?:$|-)/);if(!$e)return null;const je=Number($e[1]);return!Number.isInteger(je)||je<0||je>=nt.value.length?null:je}function Wo(){var q,pe,Te;const $e=(q=s.virtualScroll)==null?void 0:q.sessionKey;return String($e!=null&&$e!==""?$e:(Te=(pe=s.indexKey)!=null?pe:N.customId)!=null?Te:Vt)}function Di(){var q;const pe=(q=s.virtualScroll)==null?void 0:q.threadKey;return pe==null||pe===""?void 0:String(pe)}const If=E(()=>{var q,pe,Te;return(Te=Di())!=null?Te:String((pe=(q=s.indexKey)!=null?q:N.customId)!=null?pe:Vt)});function od(q){var pe;return(q??"")===((pe=Di())!=null?pe:"")}function Tl(){var q,pe,Te;return pe=(q=s.virtualScroll)==null?void 0:q.measurementKey,Te=(function(){const $e=w.value;return(function(je){var yt,Et;const Pt=je.renderer,tn=Pt==="monaco"?je.codeBlockMonacoOptions:void 0,Dt=je.codeBlockProps,qt=Pt==="shiki";return[je.isDark?"dark":"light",Pt==="monaco"?"code-rich":Pt==="pre"?"code-pre":"code-shiki",je.codeBlockStream===!1?"code-static":"code-stream",vl(je.codeBlockMinWidth),vl(je.codeBlockMaxWidth),...qt?[OLe((yt=Dt?.themes)!=null?yt:je.themes,(Et=Dt?.langs)!=null?Et:je.langs)]:[],vl(tn?.fontSize),vl(tn?.lineHeight),vl(tn?.fontFamily),vl(tn?.tabSize),vl(tn?.MAX_HEIGHT),vl(tn?.wordWrap),vl(tn?.wrappingIndent),vl(tn?.padding),vl(Dt?.showHeader),vl(Dt?.showCopyButton),vl(Dt?.showExpandButton),vl(Dt?.showPreviewButton),vl(Dt?.showCollapseButton),vl(Dt?.showFontSizeButtons)].join("\0")})({renderer:$e,isDark:N.isDark,codeBlockStream:N.codeBlockStream,codeBlockMinWidth:N.codeBlockMinWidth,codeBlockMaxWidth:N.codeBlockMaxWidth,codeBlockMonacoOptions:$e==="monaco"?N.codeBlockMonacoOptions:void 0,codeBlockProps:N.codeBlockProps,themes:$e==="shiki"?N.themes:void 0,langs:$e==="shiki"?N.langs:void 0})})(),[pe==null?"":String(pe),Te].join("\0")}function Nu(){return Ze()}const Ar=E(()=>py(Nu())),Cr=E(()=>[Tl(),Ar.value].join("\0")),bm=E(()=>{var q;return _t.value?["virtual",(q=Di())!=null?q:"",Wo(),Cr.value].join("\0"):s.indexKey});function id(){zd.value+=1}function Vd(q){return!(!q||!Number.isInteger(q.index)||q.index<0||q.index>=nt.value.length||q.sessionKey!==Wo()||q.threadKey!==Di()||q.layoutEpochKey!==Cr.value)}function dc(q){const pe=String(q),Te=bo.get(pe);return Te?Vd(Te)?Te.index:null:Tu(pe)}function ad(q="async-node"){(ei.size||bo.size)&&(ei.clear(),bo.clear(),id(),pi(q))}const jc=uo(x3,null),xp={reportHeight(q,pe){if(!Pn.value)return;const Te=dc(q);if(Te==null)return;const $e=Po.get(Te);if(!$e)return;const je=Number(pe),yt=Ul(Te,$e);(function(Et,Pt,tn={}){dl(()=>Hc(Et,Pt,tn))})(Te,Number.isFinite(je)&&je>0?Math.max(je,yt||0):yt)},markPending(q){if(!Pn.value)return;const pe=Tu(q);pe!=null&&(function(Te,$e){var je;const yt=bo.get(Te);if(yt&&Vd(yt))return ei.set(Te,Math.max(0,(je=ei.get(Te))!=null?je:0)+1),id(),void pi("async-node");ei.set(Te,1),bo.set(Te,(function(Et){return{index:Et,sessionKey:Wo(),threadKey:Di(),layoutEpochKey:Cr.value}})($e)),id(),pi("async-node")})(String(q),pe)},markSettled(q){if(!Pn.value)return;const pe=String(q),Te=dc(q);(Te!=null||(function($e){return ei.has(String($e))})(pe))&&(function($e){var je;const yt=(je=ei.get($e))!=null?je:0;return!(yt<=0||(yt<=1?(ei.delete($e),bo.delete($e)):ei.set($e,yt-1),id(),yt===1&&pi("async-node"),0))})(pe)&&Te!=null&&Kl()}};function km(){let q=0;for(const pe of Po.values())q+=rt("getVisibleDomHeight.offsetHeight",()=>{var Te;return(Te=pe?.offsetHeight)!=null?Te:0});return Math.ceil(Math.max(0,q))}si(x3,{reportHeight(q,pe){xp.reportHeight(q,pe),jc?.reportHeight(q,pe)},markPending(q){xp.markPending(q),jc?.markPending(q)},markSettled(q){xp.markSettled(q),jc?.markSettled(q)}});let qd,Af=null,Ru=null;function Wc(q){return q!==!1&&q!=null&&q!==""}function Ep(){return ts.value?(function(){if(!ts.value)return!0;const q=nt.value.length,pe=da(Ci.start,0,q),Te=da(Ci.end,pe,q);if(pe>=Te)return!0;for(let $e=pe;$e<Te;$e++)if(!xn.has($e)||Ne($e)&&!Po.has($e))return!1;return!0})():Nn.value>=nd.value}function rd(){return We.value===!0&&!ct.value&&fl.value===0&&So.size===0&&la.size===0&&ca==null&&Ep()}function Mu(){var q,pe;if(((q=s.virtualScroll)==null?void 0:q.settleMode)!=="manual"||Af===Wo()&&qd===Di())return!0;const Te=(pe=s.virtualScroll)==null?void 0:pe.settledToken;return!!Wc(Te)&&Ru===Gh(Te)}function Nl(){return rd()&&Mu()}function ld(q,pe){return pe.totalNodes<=0?q==="final"?"final":"estimate":pe.measuredCount>=pe.totalNodes?q==="final"?"final":"measured":pe.measuredCount>0||pe.estimatedCount>0?"mixed":"estimate"}function pc(q="manual",pe){const Te=uc(),$e=(function(je){return je||(We.value!==!0?nt.value.length>0?"streaming":"estimating":!Ep()||la.size>0||ca!=null?"measuring":Nl()?"settled":"settling")})(pe);return{sessionKey:Wo(),threadKey:Di(),phase:$e,nodeCount:Te.totalNodes,liveRange:{start:Ci.start,end:Ci.end},renderedCount:Nn.value,measuredCount:Te.measuredCount,estimatedCount:Te.estimatedCount,averageNodeHeight:Te.averageNodeHeight,topSpacerHeight:Te.topSpacerHeight,bottomSpacerHeight:Te.bottomSpacerHeight,visibleDomHeight:km(),totalHeight:jd(),width:Te.width,final:We.value===!0,stable:Nl(),confidence:ld($e,Te),reason:q}}function Kc(){const q=Xo.value||me(),pe=L.value;if(!q||!pe)return null;const Te=q.ownerDocument||pe.ownerDocument||document,$e=q===Te.documentElement||q===Te.body||q===Te.scrollingElement,je=rt("getScrollBox.scrollTop",()=>He(q,Te,$e)),yt=rt("getScrollBox.scrollHeight",()=>{var Pt,tn,Dt,qt,Jt;return $e?Math.max((tn=(Pt=Te.documentElement)==null?void 0:Pt.scrollHeight)!=null?tn:0,(qt=(Dt=Te.body)==null?void 0:Dt.scrollHeight)!=null?qt:0,(Jt=q.scrollHeight)!=null?Jt:0):q.scrollHeight}),Et=rt("getScrollBox.clientHeight",()=>{var Pt;return $e?((Pt=Te.documentElement)==null?void 0:Pt.clientHeight)||q.clientHeight||0:q.clientHeight});return{root:q,doc:Te,isViewportRoot:$e,scrollTop:je,scrollHeight:yt,clientHeight:Et}}function jd(){const q=nt.value.length,pe=Math.max(0,wr(0,q)),Te=rt("getRendererLogicalHeight.offsetHeight",()=>{var je,yt;return(yt=(je=L.value)==null?void 0:je.offsetHeight)!=null?yt:0}),$e=Math.max(0,Te>0?Te:rt("getRendererLogicalHeight.scrollHeight",()=>{var je,yt;return(yt=(je=L.value)==null?void 0:je.scrollHeight)!=null?yt:0}));return q<=0?Math.ceil(Te):ts.value?pe>0?Math.max(1,Math.ceil(pe),(function(){let je=Hd.value+cc.value;for(const yt of xn.values())yt&&(je+=Math.max(0,rt("getVirtualizedDomLogicalHeight.offsetHeight",()=>yt.offsetHeight||0)));return Math.ceil(Math.max(0,je))})(),(function(je,yt){return je<=0||yt<=0?0:yt<=je+Math.max(512,.05*je)?Math.ceil(yt):0})(pe,$e)):Math.max(1,Math.ceil($e)):Pn.value?pe>0||Xi.count>0||lo.getEstimatedNodeHeightCount()>0?(zs.value&&Nn.value,Math.max(1,Math.ceil($e),Math.ceil(pe))):Math.ceil($e):Math.max(1,Math.ceil($e),Math.ceil(pe))}function Cf(q){const pe=L.value;if(!pe)return null;const Te=rt("getRendererBottomDistanceFromViewport.getBoundingClientRect",()=>pe.getBoundingClientRect());return(function(je){return je.isViewportRoot?je.clientHeight:rt("getViewportBottomInRoot.getBoundingClientRect",()=>je.root.getBoundingClientRect().bottom)})(q)-Te.bottom}function hl(q={}){const pe=q.requireViewport!==!1,Te=(function(yt=64){const Et=Kc(),Pt=L.value;if(!Et||!Pt)return!1;const tn=(function(qt){if(qt.isViewportRoot)return{top:0,bottom:qt.clientHeight};const Jt=rt("getVirtualViewportRect.getBoundingClientRect",()=>qt.root.getBoundingClientRect());return{top:Jt.top,bottom:Jt.bottom}})(Et),Dt=rt("isRendererNearVirtualViewport.getBoundingClientRect",()=>Pt.getBoundingClientRect());return Dt.bottom>=tn.top-yt&&Dt.top<=tn.bottom+yt})();if(pe&&!Te)return null;const $e=(function(){const yt=Kc(),Et=L.value;if(!yt||!Et||Math.max(0,yt.scrollHeight-yt.scrollTop-yt.clientHeight)>64)return null;const Pt=Cf(yt);return Pt==null?null:Pt>=-8&&Pt<=160?{type:"bottom",distanceFromBottomPx:Math.max(0,Pt)}:null})();if($e)return{anchor:$e,captured:!0};const je=zl();if(je)return{anchor:{type:"node",nodeIndex:je.nodeIndex,offsetWithinNodePx:je.offsetWithinNodePx},captured:Te};if(q.allowFallback===!0){const yt=(function(){const Et=nt.value.length;return Et<=0?null:{type:"node",nodeIndex:da(Cl.value,0,Math.max(0,Et-1)),offsetWithinNodePx:0}})();return yt?{anchor:yt,captured:!1}:null}return null}function Mo(q){let pe=2166136261;for(let Te=0;Te<q.length;Te++)pe^=q.charCodeAt(Te),pe=Math.imul(pe,16777619);return(pe>>>0).toString(36)}function tl(q,pe){let Te=q;for(let $e=0;$e<pe.length;$e++)Te^=pe.charCodeAt($e),Te=Math.imul(Te,16777619);return Te^=31,Te=Math.imul(Te,16777619),Te}const Rl=new Set(["children","items","header","rows","cells","attrs","data","term","definition"]);function Wd(q,pe=new WeakSet,Te=0){if(q==null||typeof q=="number"||typeof q=="boolean")return String(q);if(typeof q=="string")return`s:${(function($e){const je=$e.length>8192?`${$e.slice(0,8192)}...${$e.length}`:$e;return`${$e.length}:${Mo(je)}`})(q)}`;if(typeof q=="function")return"fn";if(typeof q!="object")return typeof q;if(pe.has(q))return"cycle";if(Te>=6)return"max-depth";pe.add(q);try{if(Array.isArray(q)){if(q.length<=160){const Dt=[];for(let qt=0;qt<q.length;qt++)Dt.push(Wd(q[qt],pe,Te+1));return`a:${q.length}:${Dt.join(",")}`}const yt=[],Et=[],Pt=Math.max(0,q.length-32);let tn=2166136261;for(let Dt=0;Dt<q.length;Dt++){const qt=Wd(q[Dt],pe,Te+1);tn=tl(tn,qt),Dt<32&&yt.push(qt),Dt>=Pt&&Et.push(qt)}return[`a:${q.length}`,`h=${yt.join(",")}`,`t=${Et.join(",")}`,`all=${(tn>>>0).toString(36)}`].join(":")}const $e=q,je=Object.keys($e).filter(yt=>{const Et=$e[yt];return yt!=="parent"&&yt!=="el"&&yt!=="component"&&(Et==null||typeof Et=="string"||typeof Et=="number"||typeof Et=="boolean"||Rl.has(yt))}).sort();return`o:${je.length}:${je.map(yt=>`${yt}=${Wd($e[yt],pe,Te+1)}`).join(";")}`}finally{pe.delete(q)}}let Kd=-1,cd="",Gc=[2166136261];function ud(q){const pe=nt.value[q];return pe?Mo(Wd(pe)):""}function Tp(q,pe){let Te=q;for(let $e=0;$e<pe.length;$e++)Te^=pe.charCodeAt($e),Te=Math.imul(Te,16777619);return Te>>>0}function $u(){var q,pe;const Te=le.value;if(Kd===Te)return cd;const $e=nt.value.length;let je=nr($e);(Kd!==Te-1||je>$e||Gc.length<je+1)&&(je=0),je===0?Gc=[2166136261]:Gc.length=je+1;for(let yt=je;yt<$e;yt++){const Et=ud(yt);Gc[yt+1]=Tp((q=Gc[yt])!=null?q:2166136261,Et)}return Gc.length=$e+1,cd=(((pe=Gc[$e])!=null?pe:2166136261)>>>0).toString(36),Kd=Te,cd}function dd(q,pe={}){var Te;const $e=pe.includeHeightCache===!0,je=(Te=pe.includeContentHash)!=null?Te:$e,yt=$e?(function(Pt){const tn=(function(){var ln,Bn;const Sn=Number((Bn=(ln=s.virtualScroll)==null?void 0:ln.heightCacheLimit)!=null?Bn:5e3);return!Number.isFinite(Sn)||Sn<=0?Number.POSITIVE_INFINITY:Math.max(1,Math.trunc(Sn))})();if(!Number.isFinite(tn)||Pt.length<=tn)return Pt;const Dt=new Map,qt=ln=>{!ln||Dt.size>=tn||Dt.set(ln.index,ln)},Jt=nt.value.length,Nt=da(Ci.start-2*Fs.value,0,Jt),jt=da(Ci.end+2*Fs.value,Nt,Jt);for(const ln of Pt)ln.index>=Nt&&ln.index<jt&&qt(ln);const fn=Math.max(1,Math.ceil(Pt.length/tn));for(let ln=0;ln<Pt.length&&Dt.size<tn;ln+=fn)qt(Pt[ln]);for(let ln=Pt.length-1;ln>=0&&Dt.size<tn;ln-=fn)qt(Pt[ln]);return Array.from(Dt.values()).sort((ln,Bn)=>ln.index-Bn.index).slice(0,tn)})(ac().map(Pt=>{var tn;const Dt=nt.value[Pt.index];return Dt?Os(En({},Pt),{nodeType:String((tn=Dt.type)!=null?tn:""),signature:ud(Pt.index)}):null}).filter(Pt=>!!Pt)):[],Et=hl({allowFallback:pe.allowAnchorFallback===!0,requireViewport:pe.requireViewport});return Et||yt.length||pe.includeEmptyState===!0?Os(En({sessionKey:q.sessionKey,threadKey:q.threadKey},Et?{anchor:Et.anchor,anchorCaptured:Et.captured}:{anchorCaptured:!1}),{metrics:q,width:q.width,contentHash:je?$u():void 0,measurementKey:Tl()||void 0,heightCache:yt.length?yt:void 0}):null}function Gd(q){var pe,Te;const $e=Kc();if(!$e)return;const je=(function(Pt){const tn=L.value;if(!tn)return null;const Dt=Le(tn,Pt.root),qt=nt.value.length,Jt=rt("getRendererBottomOffsetWithinRoot.offsetHeight",()=>tn.offsetHeight||0),Nt=Math.max(0,Jt>0?Jt:qt>0?rt("getRendererBottomOffsetWithinRoot.scrollHeight",()=>tn.scrollHeight||0):0),jt=jd();return Dt+Math.max(Nt,jt)})($e);if(je==null)return;const yt=Math.max(0,q.distanceFromBottomPx),Et=Math.max(0,je-$e.clientHeight-yt);(function(Pt){Fl=$p()+120,kr=Pt})(Et),$e.isViewportRoot?(Te=(pe=$e.doc.defaultView)==null?void 0:pe.scrollTo)==null||Te.call(pe,0,Et):yL($e.root,$e.doc,Et,{isReverseFlexScrollRoot:Be,getNormalizedScrollTop:He})}const jl=[];function Yd(){if(ue)for(Ui!=null&&(qo?.(Ui),Ui=null);jl.length;){const q=jl.pop();q!=null&&window.clearTimeout(q)}}function fc(q){const pe=!!zo.value;zo.value=null,Fl=0,kr=null,Yd(),pe&&q&&pi(q)}function sr(){if(!zo.value||!ue||Ui!=null)return;const q=()=>{Ui=null;const pe=zo.value;pe&&Gd(pe)};Ui=Ro?Ro(q):null,Ui==null&&q()}function Np(q,pe={}){const Te=nt.value.length;return Te<=0?[]:q.filter($e=>!(!Number.isInteger($e.index)||$e.index<0||$e.index>=Te)&&!(!Number.isFinite($e.height)||$e.height<=0)&&!(pe.requireSignature&&!$e.signature)&&!(pe.requireCompatibilityMetadata&&!$e.nodeType&&!$e.signature)&&(function(je){var yt;const Et=nt.value[je.index];return!(!Et||je.nodeType&&je.nodeType!==String((yt=Et.type)!=null?yt:"")||je.signature&&je.signature!==ud(je.index))})($e))}function Qd(q){const pe=py(Nu()),Te=py(q);return pe!==-1&&Te!==-1&&pe===Te}function Zd(q){var pe;const Te=Number(q?.width);if(Number.isFinite(Te)&&Te>0)return Te;const $e=Number((pe=q?.metrics)==null?void 0:pe.width);return Number.isFinite($e)&&$e>0?$e:null}function Ou(q){var pe;return q.sessionKey===Wo()&&!!od(q.threadKey)&&((pe=q.measurementKey)!=null?pe:"")===Tl()&&!!Qd(Zd(q))&&!!(function(Te){const $e=Te.heightCache;return!!$e?.length&&(re(Te)?$e.some(je=>!!(je.nodeType||je.signature)):$e.some(je=>!!je.signature))})(q)}function re(q){return!!(q.contentHash&&q.contentHash===$u())}function _e(q){return!re(q)}let we=null,pt=null,In=null,is=null,cs=null;function _o(q){var pe;const Te=q.map(je=>{var yt,Et;return[je.index,Math.round(10*je.height),(yt=je.nodeType)!=null?yt:"",(Et=je.signature)!=null?Et:""].join("")}).join(""),$e=py(Nu());return[(pe=Di())!=null?pe:"",Wo(),Tl(),nt.value.length,$e,q.length,Mo(Te)].join(":")}function ao(q=(pe=>(pe=s.virtualScroll)==null?void 0:pe.heightCache)()){if(!Pn.value||!q?.length||nt.value.length<=0||!Qd((pe=s.virtualScroll)==null?void 0:pe.heightCacheWidth))return!1;var pe;const Te=Np(q,{requireSignature:!0});if(!Te.length)return!1;const $e=_o(Te);return $e===we?(pt="standalone",!0):(Xa(Te,{mode:"merge"}),ra(),we=$e,pt="standalone",vd(),pi("restore"),!0)}function Wl(q,pe={}){var Te,$e,je;if(!Pn.value||!q||q.sessionKey!==Wo()||!od(q.threadKey)||nt.value.length<=0)return!1;const yt=!!((Te=q.heightCache)!=null&&Te.length)&&!Rp(),Et=!q.anchor||q.anchorCaptured===!1&&pe.allowUncapturedAnchor!==!0?null:q.anchor,Pt=pe.restoreAnchor===!0&&!!Et&&!Rp()&&Number(Zd(q))>0;let tn=!1;if(($e=q.heightCache)!=null&&$e.length&&Ou(q)){const qt=Np(q.heightCache,{requireCompatibilityMetadata:!q.contentHash,requireSignature:_e(q)});qt.length&&(Xa(qt,{mode:"merge"}),ra(),we=_o(qt),pt="restore",vd(),tn=!0)}if(yt||Pt)return!1;if(!pe.restoreAnchor||!Et)return tn&&pi("restore"),!0;const Dt=(function(qt,Jt){var Nt;const jt=qt.anchor,fn=jt?jt.type==="bottom"?`bottom:${Math.round(jt.distanceFromBottomPx)}`:`node:${jt.nodeIndex}:${Math.round(jt.offsetWithinNodePx)}`:"none";return[(Nt=Di())!=null?Nt:"",Wo(),Tl(),Ar.value,Jt,fn].join(":")})(q,(je=pe.restoreToken)!=null?je:"imperative");return In===Dt?(tn&&pi("restore"),!0):(In=Dt,(function(qt){const Jt=()=>{if(qt.type==="node")return fc(),void Al({nodeIndex:qt.nodeIndex,offsetWithinNodePx:qt.offsetWithinNodePx});if(ic(),Za.value=null,zo.value=qt,Yd(),Gd(qt),ue)for(const Nt of[0,120,280,480])jl.push(window.setTimeout(()=>{const jt=zo.value;jt&&Gd(jt)},Nt))};(function(Nt){if(!ts.value)return!1;const jt=nt.value.length;return!(jt<=0||(Cl.value=Nt.type==="node"?da(Nt.nodeIndex,0,jt-1):jt-1,za(),0))})(qt)?vn(Jt):Jt()})(Et),pi("restore"),!0)}function Rp(){const q=Nu();return Number.isFinite(q)&&q>0}function Hh(q){var pe;return q.sessionKey===Wo()&&!!od(q.threadKey)&&(nt.value.length<=0||!(!((pe=q.heightCache)!=null&&pe.length)||Rp())||!(!(q.anchor&&Number(Zd(q))>0)||Rp()))}function Yc(){yo.clear();for(const q of Object.keys(ur)){const pe=Number(q);Number.isInteger(pe)&&pe>=0&&pe<nt.value.length&&po(pe)}}function pd(){ca!=null&&(qo?.(ca),ca=null),Jn()}function xv(){return!ue||it?Promise.resolve():new Promise(q=>{let pe=!1,Te=null;const $e=()=>{pe||(pe=!0,Te!=null&&window.clearTimeout(Te),q())};if(Ro)return Ro($e),void(Te=window.setTimeout($e,50));Te=window.setTimeout($e,0)})}function wm(q,pe=Di(),Te=Cr.value){return Wo()===q&&Di()===pe&&Cr.value===Te}function Vh(){return ta(this,arguments,function*(q={}){var pe,Te,$e,je,yt;const Et=Wo(),Pt=Di(),tn=Cr.value,Dt=(pe=q.frames)!=null?pe:2,qt=(Te=q.timeoutMs)!=null?Te:120,Jt=($e=q.reason)!=null?$e:"manual",Nt=q.expectedSettledTokenKey,jt=q.flushPendingTimers===!0,fn=pc(Jt),ln=()=>Os(En({},fn),{phase:fn.final?"settling":fn.phase,stable:!1,confidence:fn.confidence==="final"?"mixed":fn.confidence,reason:Jt}),Bn=()=>wm(Et,Pt,tn)&&(Nt==null||xf()===Nt);for(let ys=0;ys<Dt;ys++){if(yield vn(),!Bn()||(yield xv(),!Bn()))return ln();Kl(),pd()}if(yield(function(ys){return!ue||ys<=0?Promise.resolve():new Promise(vs=>window.setTimeout(vs,ys))})(qt),!Bn()||(jt&&xl(),Kl(),pd(),!Bn()))return ln();const Sn=rd();Sn&&(Af=Et,qd=Pt,((je=s.virtualScroll)==null?void 0:je.settleMode)==="manual"&&Nt!=null&&Wc((yt=s.virtualScroll)==null?void 0:yt.settledToken)&&xf()===Nt&&(Ru=Gh(s.virtualScroll.settledToken)));const es=Bn()&&Sn&&Mu(),us=pc(Jt,es?"final":void 0);return jh(us,!0),us})}let fd="content",mc=null,md=null,Mp=0,hd=null,Xd=null,gd=null,qh=null;function $p(){return typeof performance<"u"&&typeof performance.now=="function"?performance.now():Date.now()}function Ev(q){var pe,Te;const $e=hd;if(!$e)return!0;const je=(Te=(pe=s.virtualScroll)==null?void 0:pe.heightDiffThresholdPx)!=null?Te:1;return Math.abs(q.totalHeight-$e.totalHeight)>je||q.sessionKey!==$e.sessionKey||q.phase!==$e.phase||q.stable!==$e.stable||q.final!==$e.final||q.threadKey!==$e.threadKey||q.nodeCount!==$e.nodeCount||q.measuredCount!==$e.measuredCount||q.width!==$e.width}function xf(q=(pe=>(pe=s.virtualScroll)==null?void 0:pe.settledToken)()){return vl(q)}function Sm(q,pe){var Te,$e;return[q,pe.sessionKey,(Te=pe.threadKey)!=null?Te:"",Tl(),$u(),vl(($e=s.virtualScroll)==null?void 0:$e.settledToken),Math.round(pe.totalHeight),Math.round(pe.width)].join("\0")}function vd(){gd=null,qh=null,Xd=null}function Tv(q){const pe=q.heightCache;return pe?.length?_o(pe):""}function Jd(q){var pe,Te,$e;const je=q.metrics,yt=q.anchor?(Et=q.anchor).type==="bottom"?`bottom:${Math.round(Et.distanceFromBottomPx)}`:`node:${Et.nodeIndex}:${Math.round(Et.offsetWithinNodePx)}`:"none";var Et;return[q.sessionKey,(pe=q.threadKey)!=null?pe:"",(Te=q.measurementKey)!=null?Te:Tl(),($e=q.contentHash)!=null?$e:"",Tv(q),yt,q.anchorCaptured?1:0,je.liveRange.start,je.liveRange.end,je.renderedCount,je.nodeCount,Math.round(je.totalHeight),Math.round(je.width),je.phase,je.stable?1:0].join("\0")}function jh(q,pe=!1){if(!Pn.value||(function(Et=!1){return!Et&&_t.value&&!Eo.value})(pe))return;const Te=pe||Ev(q),$e=(function(Et,Pt=!1){return Pt||Et.stable||Et.phase==="final"?{state:dd(Et,{includeHeightCache:!0})}:{state:dd(Et)}})(q,pe),je=$e.state,yt=!!(je&&(Te||(function(Et,Pt=!1){return!!Pt||Jd(Et)!==Xd})(je,pe)));if(Te&&(z(q),hd=q,Mp=$p()),je&&yt&&(H(je),je.anchor&&U(je.anchor),Xd=Jd(je)),q.stable){const Et=Sm("settled",q);if(Et!==gd){gd=Et;const Pt=dd(q,{includeHeightCache:!0});Pt&&(H(Pt),Xd=Jd(Pt)),(function(tn){o("render-settled",tn)})(q)}}if(q.phase==="final"){const Et=Sm("final",q);if(Et!==qh){qh=Et;const Pt=dd(q,{includeHeightCache:!0});Pt&&(H(Pt),Xd=Jd(Pt)),(function(tn){o("render-final",tn)})(q)}}}function Wh(){mc!=null&&(qo?.(mc),mc=null),md!=null&&ue&&(window.clearTimeout(md),md=null)}function Nv(){mc=null,md=null,(function(q){if(la.size>0||ca!=null)return!0;switch(q){case"node-resize":case"async-node":case"resize":case"restore":case"final":case"manual":return!0;default:return!1}})(fd)&&(Kl(),pd()),jh(pc(fd))}function pi(q){var pe,Te;if(!Pn.value||(fd=q,mc!=null||md!=null))return;const $e=Math.max(0,(Te=(pe=s.virtualScroll)==null?void 0:pe.emitIntervalMs)!=null?Te:32),je=Math.max(0,$e-($p()-Mp)),yt=()=>{md=null,mc=Ro?Ro(Nv):null,mc==null&&Nv()};ue&&je>0?md=window.setTimeout(yt,je):yt()}function xr(){ha.value+=1}function Ne(q){if(zs.value&&q>=Nn.value){const pe=nt.value[q],Te=ot.value===!0&&We.value!==!0&&q>=nt.value.length-2,$e=pe?.type==="code_block"||pe?.type==="image"||pe?.type==="mermaid"||pe?.type==="infographic";if(!Te||$e)return!1}return!Jo.value||q<Dn.value||tr.value.has(q)}function Ye(q){const pe=Xr.get(q);pe&&(pe(),Xr.delete(q));const Te=va.get(q);Te&&(Te.destroy(),va.delete(q)),ti(q)}function $t(q,pe){let Te=!1;if(pe){const yt=xn.get(q);xn.set(q,pe),yt!==pe&&(Te=!0)}else xn.delete(q)&&(Te=!0);if(Te&&xr(),pe||ti(q),!dr.value||!Oi)return Ye(q),void(pe&&Jo.value&&ui(q,!0));if(!ts.value&&Jo.value&&!ee.value&&va.size>=Pe.value&&(ee.value||(ee.value=!0,Jr()),!dr.value||!Oi))return Ye(q),void(pe&&ui(q,!0));if(q<Dn.value&&!ts.value||tr.value.has(q))return Ye(q),void ui(q,!0);if(!pe)return void Ye(q);Ye(q);const $e=Oi(pe,{rootMargin:Fe.value});if(!$e)return;va.set(q,$e),ui(q,$e.isVisible.value),Jo.value&&(function(yt){if(!ue||!Jo.value)return;ti(yt);const Et=yt%17*23,Pt=window.setTimeout(()=>{if(Ir.delete(yt),!Jo.value||tr.value.has(yt))return;const tn=xn.get(yt);if(!tn)return;const Dt=me(tn),qt=tn.ownerDocument||document,Jt=qt.defaultView||window,Nt=!Dt||Dt===qt.documentElement||Dt===qt.body,jt=!Nt&&Dt?rt("nodeVisibilityFallback.root.getBoundingClientRect",()=>Dt.getBoundingClientRect()):null,fn=Nt?0:jt.top,ln=Nt?rt("nodeVisibilityFallback.clientHeight",()=>{var Sn,es;return(es=(Sn=Jt.innerHeight)!=null?Sn:Dt?.clientHeight)!=null?es:0}):jt.bottom,Bn=rt("nodeVisibilityFallback.node.getBoundingClientRect",()=>tn.getBoundingClientRect());Bn.bottom>=fn-500&&Bn.top<=ln+500&&ui(yt,!0)},1800+Et);Ir.set(yt,Pt)})(q);let je=null;je=ze(()=>$e.isVisible.value,yt=>{if(yt){ti(q),ui(q,!0),je?.(),Xr.delete(q),va.get(q)===$e&&va.delete(q);try{$e.destroy()}catch{}}},{immediate:!0}),Xr.set(q,je),ts.value&&ua()}function Jn(){ca=null,dl(()=>{let q=!1;for(const[pe,Te]of la)la.delete(pe),Po.get(pe)===Te.el&&Si.get(pe)===Te.version&&(q=Hc(pe,Te.height,{allowShrink:Te.allowShrink})||q);return q})}function ro(){ca!=null&&(qo?.(ca),ca=null),la.clear()}function Qc(q,pe){(function(Te,$e,je){var yt;if(!Number.isFinite(je)||je<=0||Po.get(Te)!==$e)return;const Et=Si.get(Te);if(Et==null)return;const Pt=nt.value[Te],tn=ct.value&&We.value!==!0&&!((yt=s.nodes)!=null&&yt.length)&&Te>=nt.value.length-2,Dt=!(Pt?.loading===!0||tn),qt=la.get(Te),Jt=qt?qt.allowShrink&&Dt:Dt,Nt=qt&&!Jt?Math.max(qt.height,je):je;la.set(Te,{height:Nt,allowShrink:Jt,version:Et,el:$e}),ca==null&&(ca=Ro?Ro(Jn):null,ca==null&&Jn())})(q,pe,Ul(q,pe))}function Kl(){for(const[q,pe]of Po)pe&&Qc(q,pe)}function Rv(){Es?.disconnect(),Es=null,Xn.clear()}function Ef(){for(;Ja.length;)Hl(Ja.pop())}ze(Eo,q=>{q&&pi("content")},{flush:"post"}),t({getVirtualMetrics:pc,captureVirtualState:function(q={}){var pe;return dd(pc("manual"),{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:q.allowFallbackAnchor===!0,requireViewport:q.requireViewport===!0,includeEmptyState:(pe=q.includeEmptyState)==null||pe})},restoreVirtualState:function(q,pe={}){const Te=pe.restoreAnchor===!0,$e=pe.restoreToken==null?"imperative":String(pe.restoreToken);is=q,cs={restoreAnchor:Te,restoreToken:$e,allowUncapturedAnchor:pe.allowUncapturedAnchor===!0},!Wl(q,{restoreAnchor:Te,restoreToken:$e,allowUncapturedAnchor:pe.allowUncapturedAnchor===!0})&&Hh(q)||(is=null,cs=null)},forceMeasure:function(q="manual"){return ta(this,null,function*(){yield vn(),yield xv(),Kl(),pd(),yield vn();const pe=pc(q);return jh(pe,!0),pe})},settle:Vh,scrollToNode:function(q,pe="start"){fc(),ic();const Te=nt.value.length;if(Te<=0)return;const $e=da(q,0,Te-1),je=()=>{var yt;const Et=Pi({nodeIndex:$e,offsetWithinNodePx:0}),Pt=Qa($e),tn=Kc(),Dt=(yt=tn?.clientHeight)!=null?yt:0,qt=zc();let Jt=Et;if(pe==="center")Jt=Et-Dt/2+Pt/2;else if(pe==="end")Jt=Et-Dt+Pt;else if(pe==="nearest"&&qt!=null){if(Et>=qt&&Et+Pt<=qt+Dt)return;Jt=Et<qt?Et:Et-Dt+Pt}Sf(Math.max(0,Jt)),ua({immediate:!0}),ts.value&&(Cl.value=$e,za())};if(ts.value)return Cl.value=$e,za(),void vn(je);je()}}),ze(()=>ki.value,q=>{if(!q){Rv();for(const pe of _r.values())for(const Te of pe)Hl(Te);_r.clear(),Si.clear(),Ef(),ro()}},{immediate:!0}),ze(We,q=>{q&&(function(){if(ue&&We.value&&Po.size){Ef();for(const pe of[80,240,640]){const Te=ga(pe,()=>{for(const[$e,je]of Po)je&&Qc($e,je)},"final");Te!=null&&Ja.push(Te)}}})(),pi(q?"final":"content")});const cw=bL(()=>pi("content"),16),_m=bL(()=>pi("batch"),16);ze([()=>nt.value.length,()=>Nn.value],()=>{zo.value&&sr(),cw()},{flush:"post",immediate:!0}),ze([()=>Ci.start,()=>Ci.end],()=>{_m()},{flush:"post"});const{cleanupBatchScheduler:Op}=(function(q){const{props:pe,isClient:Te,isTestEnv:$e,parsedNodesIdentity:je,parsedNodeCount:yt,desiredRenderedCount:Et,datasetKey:Pt,batchingEnabled:tn,incrementalRenderingActive:Dt,resolvedBatchSize:qt,resolvedInitialBatch:Jt,renderedCount:Nt,adaptiveBatchSize:jt,previousRenderContext:fn,previousBatchConfig:ln,requestFrame:Bn,cancelFrame:Sn,hasIdleCallback:es,cleanupNodeVisibility:us,onDatasetKeyChanged:ys,onDatasetChanged:vs}=q;let ks=null,no="raf",mo=null,xi=0,$l=!1,gl=!1;const ap=new Set,Lp=new Set;function K1(){if(Te){ks!=null&&(no==="raf"&&Sn?Sn(ks):no==="idle"&&typeof window.cancelIdleCallback=="function"?window.cancelIdleCallback(ks):no==="timeout"&&window.clearTimeout(ks),ks=null),xi+=1;for(const Gl of ap)Sn&&Sn(Gl);for(const Gl of Lp)window.clearTimeout(Gl);ap.clear(),Lp.clear(),mo=null,$l=!1,gl=!1}}function kw(){return typeof performance<"u"?performance.now():Date.now()}function kM(Gl){(function(Mf){var Em;if(!Dt.value)return;const $f=Math.max(2,(Em=pe.renderBatchBudgetMs)!=null?Em:6),Of=Math.max(1,qt.value||1),rp=Math.max(1,Math.floor(Of/4));Mf>1.5*$f?jt.value=Math.max(rp,Math.floor(.8*jt.value)):Mf<.6*$f&&jt.value<Of&&(jt.value=Math.min(Of,Math.ceil(1.2*jt.value)))})(Gl),$l=!1;const Zc=gl||Nt.value<Et.value;gl=!1,Zc&&_M()}function wM(Gl,Zc={}){var Mf,Em;if(!Dt.value)return;const $f=Et.value;if(Nt.value>=$f)return;const Of=Math.max(1,Gl),rp=()=>{const Dv=kw();ks=null;const G1=mo??Of;mo=null;const Lv=kw();Nt.value=Math.min($f,Nt.value+G1),us(Nt.value),(function(nC,ww){if(!Te)return void kM(ww);$l=!0;const IM=++xi;vn().then(()=>{var AM;if(IM!==xi)return;const Dee=kw(),Lee=Math.max(ww,Dee-nC),CM=()=>{IM===xi&&kM(Lee)};if(Bn){let Jh=null,Bv=null,EM=!1;const TM=()=>{EM||(EM=!0,Jh!==null&&(ap.delete(Jh),Jh=null),Bv!==null&&(Lp.delete(Bv),window.clearTimeout(Bv),Bv=null),CM())};return Jh=Bn(()=>{TM()}),ap.add(Jh),Bv=window.setTimeout(()=>{Jh!==null&&Sn&&Sn(Jh),TM()},Math.max(32,(AM=pe.renderBatchIdleTimeoutMs)!=null?AM:120)),void Lp.add(Bv)}const xM=window.setTimeout(()=>{Lp.delete(xM),CM()},0);Lp.add(xM)})})(Dv,kw()-Lv)};if(!Te||Zc.immediate)return void rp();const Tm=Math.max(0,(Mf=pe.renderBatchDelay)!=null?Mf:16);if(mo=mo!=null?Math.max(mo,Of):Of,ks==null){if(!$e&&es&&window.requestIdleCallback){const Dv=Math.max(0,(Em=pe.renderBatchIdleTimeoutMs)!=null?Em:120);return no="idle",void(ks=window.requestIdleCallback(()=>rp(),{timeout:Dv}))}if(Bn&&!$e)return no="raf",void(ks=Bn(()=>{Tm===0?rp():(no="timeout",ks=window.setTimeout(()=>rp(),Tm))}));no="timeout",ks=window.setTimeout(()=>rp(),Tm)}}function SM(Gl,Zc={}){$l?gl=!0:Gl==null?_M():wM(Gl,Zc)}function _M(){Dt.value&&wM(tn.value?Math.max(1,Math.round(jt.value)):Math.max(1,qt.value))}return ze([je,yt,Pt,Dt,qt,Jt,()=>pe.renderBatchDelay],()=>{var Gl;const Zc=yt.value,Mf=fn.value,Em=Pt.value,$f=!Object.is(Em,Mf.key),Of=Zc!==Mf.total,rp=$f||Of;fn.value={key:Em,total:Zc};const Tm=ln.value,Dv=(Gl=pe.renderBatchDelay)!=null?Gl:16,G1=Tm.batchSize!==qt.value||Tm.initial!==Jt.value||Tm.delay!==Dv||Tm.enabled!==Dt.value;ln.value={batchSize:qt.value,initial:Jt.value,delay:Dv,enabled:Dt.value},$f&&ys(Zc),(rp||G1||!Dt.value)&&K1(),(rp||G1)&&(jt.value=Math.max(1,qt.value||1)),rp&&vs();const Lv=Et.value;if(!Zc)return Nt.value=0,void us(0);if(!Dt.value)return Nt.value=Lv,void us(Nt.value);const nC=$f||Mf.total===0;Nt.value=nC||G1?Math.min(Lv,Jt.value):Math.min(Nt.value,Lv);const ww=Math.max(1,Jt.value||qt.value||Zc);Nt.value<Lv?SM(ww,{immediate:!Te}):us(Nt.value)},{immediate:!0}),ze(Et,(Gl,Zc)=>{Dt.value&&(typeof Zc=="number"&&Gl<=Zc||Gl>Nt.value&&SM())}),{cleanupBatchScheduler:K1}})({props:N,isClient:ue,isTestEnv:it,parsedNodesIdentity:xs,parsedNodeCount:tt,desiredRenderedCount:nd,datasetKey:bm,batchingEnabled:Is,incrementalRenderingActive:zs,resolvedBatchSize:Ht,resolvedInitialBatch:Dn,renderedCount:Nn,adaptiveBatchSize:so,previousRenderContext:Oo,previousBatchConfig:to,requestFrame:Ro,cancelFrame:qo,hasIdleCallback:_s,cleanupNodeVisibility:El,onDatasetKeyChanged:q=>{ro(),Fa(),ra(),vd(),q>0&&ci(q)},onDatasetChanged:()=>{ts.value&&ua({immediate:!0})}});ze([xu,ts,()=>L.value,()=>fe()],([q,pe])=>{if(!q)return Vl(),void ml();Vc(),pe?ua({immediate:!0}):ml()},{flush:"post",immediate:!0}),ze([()=>nt.value.length,()=>ts.value],q=>ta(null,[q],function*([pe,Te]){Te&&pe&&ue&&(yield vn(),ua({immediate:!0}))}),{flush:"post"}),ze(No,q=>{q&&(function(){var pe;if(Ke.value&&ht.value&&Ot.value&&((pe=xt.value)!=null&&pe[1]))return;const Te=yp({type:"paragraph",children:[{type:"text",content:"Probe paragraph text",raw:"Probe paragraph text"}],raw:"Probe paragraph text"}),$e=yp({type:"list_item",children:[Te],raw:"- Probe paragraph text"}),je=yp({type:"list",ordered:!1,items:[$e],raw:"- Probe paragraph text"});Ke.value=Te,ht.value=$e,Ot.value=je;const yt={1:null,2:null,3:null,4:null,5:null,6:null};for(let Et=1;Et<=6;Et++)yt[Et]=yp({type:"heading",level:Et,text:"Probe heading",children:[{type:"text",content:"Probe heading",raw:"Probe heading"}],raw:`${"#".repeat(Et)} Probe heading`});xt.value=yt})()},{immediate:!0}),ze([()=>L.value,No],()=>{if(!No.value)return fo(),void(oe.value=0);Zt(),fo(),No.value&&L.value&&typeof ResizeObserver<"u"&&(en=new ResizeObserver(()=>{Zt(),Za.value&&cr(),zo.value&&sr(),pi("resize")}),en.observe(L.value))},{immediate:!0}),ze([No,Ct,Cr],()=>ta(null,null,function*(){if(!No.value)return ae.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ra();yield vn(),(function(){if(!No.value||typeof window>"u")return ae.value={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},void ra();const q={paragraph:null,listItem:null,listWrapperOverhead:0,headings:{1:null,2:null,3:null,4:null,5:null,6:null}},pe=di(ya(K.value),".paragraph-node");q.paragraph=tE(K.value,pe,"pre-wrap");const Te=ya(G.value),$e=Te?.querySelector(".paragraph-node");q.listItem=tE(G.value,$e,"pre-wrap");const je=rt("readSimpleTextProbeProfile.list.offsetHeight",()=>{var Et,Pt;return(Pt=(Et=Q.value)==null?void 0:Et.offsetHeight)!=null?Pt:0}),yt=rt("readSimpleTextProbeProfile.listItem.offsetHeight",()=>{var Et,Pt;return(Pt=(Et=G.value)==null?void 0:Et.offsetHeight)!=null?Pt:0});q.listWrapperOverhead=Math.max(0,je-yt);for(let Et=1;Et<=6;Et++){const Pt=di(ya(J[Et]),`h${Et}`);q.headings[Et]=tE(J[Et],Pt,"pre-wrap")}ae.value=q,ra()})()}),{flush:"post",immediate:!0}),ze(()=>nt.value.length,()=>{ts.value&&ua({immediate:!0})}),ze([No,oe],()=>{ra(),ts.value&&ua({immediate:!0}),Za.value&&cr(),zo.value&&sr(),pi("resize")},{immediate:!1}),ze(()=>Jo.value,q=>{if(q)for(const[pe,Te]of xn)$t(pe,Te);else if(Jr(),ts.value)ua({immediate:!0});else for(const[pe,Te]of xn)Te&&ui(pe,!0)},{immediate:!1}),ze([Fe,Pe,()=>fe()],()=>{var q;(q=Oi.refresh)==null||q.call(Oi);for(const[pe,Te]of xn)$t(pe,Te)},{immediate:!1}),ze([()=>N.viewportPriority,()=>nt.value.length,Pe],([q,pe,Te])=>{if(q!==!1){if(ee.value&&(pe<=200||pe<=Te)){ee.value=!1;for(const[$e,je]of xn)$t($e,je)}}else ee.value=!1}),ze(()=>Nn.value,()=>{ts.value&&ua({immediate:!0})}),ze([Cl,Yn,Fs,()=>nt.value.length,ts],()=>{za()},{immediate:!0});let Im=null,ep=!1,Pp=null;function Kh(){Im=null,Af=null,qd=void 0,Ru=null,vd()}function Am(){ro(),Fa(),ra(),yo.clear();const q=nt.value.length;q>0&&ci(q),Yc()}function Mv(){Wh(),xl(),hd=null,we=null,pt=null,In=null,is=null,cs=null,ep=!1,Kh(),ad("restore"),ic(),fc()}function Gh(q){var pe;return[(pe=Di())!=null?pe:"",Wo(),Tl(),Ar.value,xf(q),nt.value.length,Math.round(wr(0,nt.value.length)),Math.round(Nu()),Xi.count,Math.round(Xi.total)].join(":")}function uw(){return ta(this,null,function*(){var q,pe,Te,$e;const je=(q=s.virtualScroll)==null?void 0:q.settledToken,yt=xf(je),Et=Wo(),Pt=Di(),tn=Cr.value;if(Pn.value&&((pe=s.virtualScroll)==null?void 0:pe.settleMode)==="manual"&&Wc(je))if(rd()){if(Gh(je)!==Ru&&!ep){ep=!0;try{const Dt=yield Vh({reason:"manual",expectedSettledTokenKey:yt}),qt=xf()===yt;wm(Et,Pt,tn)&&Dt.sessionKey===Et&&Dt.threadKey===Pt&&qt&&Dt.stable&&Dt.phase==="final"&&(Ru=Gh((Te=s.virtualScroll)==null?void 0:Te.settledToken))}finally{ep=!1,yield vn();const Dt=($e=s.virtualScroll)==null?void 0:$e.settledToken,qt=Wc(Dt)?Gh(Dt):"";wm(Et,Pt,tn)&&qt&&Ru!==qt&&uw()}}}else pi("manual")})}ze(Pn,(q,pe)=>{if(q!==pe){if(!q)return Mv(),void Wh();Mv(),Am(),Pp=Cr.value,pi("content")}},{flush:"post"}),ze([Pn,Cr],([q,pe])=>{q?Pp!=null?Pp!==pe&&(Pp=pe,(function(Te="resize"){ro(),Fa(),ra(),yo.clear();const $e=nt.value.length;$e>0&&ci($e),Yc(),we=null,pt=null,In=null,hd=null,ep=!1,Kh(),ao(),vn(()=>{Kl(),Za.value&&cr(),zo.value&&sr(),pi(Te)})})("resize")):Pp=pe:Pp=null},{flush:"post",immediate:!0}),ze([Pn,()=>Wo(),()=>Di()],([q])=>{q&&(Mv(),Am(),ad("content"),pi("content"))}),ze([Pn,()=>Wo(),()=>Di(),Cr,()=>nt.value.length],([q])=>{q&&(function(pe="async-node"){let Te=!1;for(const[$e,je]of Array.from(bo.entries()))Vd(je)||(bo.delete($e),ei.delete($e),Te=!0);Te&&(id(),pi(pe))})("async-node")},{flush:"post"}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.sessionKey},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>s.indexKey,()=>le.value],([q])=>{q&&(vd(),(function(pe="content"){if(!Pn.value)return;const Te=[],$e=nt.value.length,je=nr($e);for(const yt of Array.from(yo.keys())){if(yt>=$e){Te.push(yt);continue}if(yt<je)continue;const Et=ud(yt),Pt=yo.get(yt);Pt!=null&&Pt!==Et&&Te.push(yt),yo.set(yt,Et)}for(const yt of Array.from(yo.keys()))yt>=$e&&yo.delete(yt);Te.length&&((function(yt,Et={}){const Pt=Array.from(yt,Number);ea(Pt);let tn=0;if(dl(()=>(tn=Uc(Pt,Et),tn>0)),tn>0)(function(Dt){for(const qt of Dt)yo.delete(qt)})(Pt);else for(const Dt of Pt)lr.delete(Dt)})(Te,{notify:!1}),ra(),Kh(),Za.value&&cr(),zo.value&&sr(),pi(pe))})("content"))},{flush:"post",immediate:!0}),ze([Pn,()=>nt.value.length,()=>Wo(),()=>Di()],([q,pe,Te,$e],[je,yt,Et,Pt])=>{q&&je&&Te===Et&&$e===Pt&&pe!==yt&&Kh()},{flush:"post"}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.heightCache},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.heightCacheWidth},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>nt.value.length,()=>Wo(),oe],()=>{ao()},{flush:"post",immediate:!0}),ze([Pn,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreAnchor},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey},()=>nt.value.length,()=>Wo(),oe],q=>ta(null,[q],function*([pe,Te]){if(!pe||!Te)return;yield vn();const $e=(function(){var je;const yt=(je=s.virtualScroll)==null?void 0:je.restoreAnchor;return yt==null||yt===!1?null:yt===!0?"true":String(yt)})();Wl(Te,{restoreAnchor:$e!=null,restoreToken:$e??void 0})}),{flush:"post",immediate:!0}),ze([Pn,oe,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.restoreState},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.measurementKey}],([q])=>{var pe;if(!q)return;const Te=(pe=s.virtualScroll)==null?void 0:pe.restoreState;Te&&we&&pt==="restore"&&(Ou(Te)||(Am(),we=null,pt=null,pi("resize")))},{flush:"post"}),ze([Pn,()=>nt.value.length,()=>Wo(),oe],q=>ta(null,[q],function*([pe]){var Te;const $e=is,je=cs;pe&&$e&&(yield vn(),!Wl($e,{restoreAnchor:je?.restoreAnchor===!0,restoreToken:(Te=je?.restoreToken)!=null?Te:"imperative",allowUncapturedAnchor:je?.allowUncapturedAnchor===!0})&&Hh($e)||(is=null,cs=null))}),{flush:"post",immediate:!0}),ze([Pn,We,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settleMode},()=>Wo(),()=>Di(),Cr,fl,er,()=>Nn.value,nd,()=>Xi.count,()=>Xi.total],([q,pe,Te])=>{if(!q||pe!==!0||Te==="manual"||!Nl())return;const $e=(function(){var je;const yt=nt.value.length;return[(je=Di())!=null?je:"",Wo(),Tl(),Ar.value,yt,Math.round(wr(0,yt)),Math.round(Nu()),Xi.count,Math.round(Xi.total)].join(":")})();Im!==$e&&(Im=$e,Vh({reason:"final"}).then(je=>{je.stable||Im!==$e||(Im=null)}))},{flush:"post",immediate:!0}),ze([Pn,We,()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settleMode},()=>{var q;return(q=s.virtualScroll)==null?void 0:q.settledToken},()=>Wo(),()=>Di(),Cr,fl,er,()=>Nn.value,nd,()=>nt.value.length,()=>Xi.count,()=>Xi.total],()=>{uw()},{flush:"post",immediate:!0}),ze([()=>nt.value.length,ts,Yn,Fs,()=>Ci.start,()=>Ci.end],([q,pe,Te,$e,je,yt])=>{ke.value&&Gn("virtualization",{nodes:q,virtualization:pe,maxLiveNodes:Te,buffer:$e,focusIndex:Cl.value,scroll:pe?(()=>{const Et=Xo.value||me();return Et?{reverse:Be(Et),scrollTop:Math.round(Et.scrollTop),scrollTopAbs:Math.round(Math.abs(Et.scrollTop)),scrollHeight:Math.round(Et.scrollHeight),clientHeight:Math.round(Et.clientHeight)}:null})():null,liveRange:{start:je,end:yt},rendered:Nn.value})}),ze([()=>N.customId],([q],pe,Te)=>{if(!q||Lt)return;const $e=(function(je,yt){return je?(sl.controllers[je]=yt,()=>{sl.controllers[je]===yt&&delete sl.controllers[je]}):()=>{}})(q,{captureRestoreAnchor:zl,restoreAnchor:Al,getAnchorDrift:Hi,getReport:Uh});Te(()=>{$e()})},{immediate:!0}),qs(()=>{(function(){if(Pn.value)try{Kl(),pd();const q=pc("manual");Ev(q)&&(z(q),hd=q,Mp=$p());const pe=dd(q,{includeHeightCache:!0,includeContentHash:!0,allowAnchorFallback:!1,requireViewport:!0,includeEmptyState:!0});pe&&(H(pe),pe.anchor&&U(pe.anchor),Xd=Jd(pe))}catch{}})(),Op(),Jr(),cn(),Rv();for(const q of _r.values())for(const pe of q)Hl(pe);_r.clear(),Si.clear(),yo.clear(),Ef(),ro(),fo(),ic(),fc(),Wh(),Vl(),ml()});const GA=Ey("ViewportDeferredMermaidBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index11-CDnNw9tS.js"),__vite__mapDeps([10,3,6,0,1]))).default}catch(q){return console.warn('[markstream-vue] Optional peer dependencies for MermaidBlockNode are missing. Falling back to preformatted code rendering. To enable Mermaid rendering, please install "mermaid".',q),nu}}),loadingComponent:$L,delay:0}),$L),dw=Ey("ViewportDeferredInfographicBlockNode",Jp({loader:()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index10-BltLRpQ1.js"),__vite__mapDeps([11,3,0,1]))).default}catch(q){return console.warn('[markstream-vue] Failed to load InfographicBlockNode. Falling back to preformatted code rendering. To enable Infographic rendering, install "@antv/infographic" and configure setInfographicLoader with a dynamic loader.',q),nu}}),loadingComponent:ML,delay:0}),ML),pw=Ey("ViewportDeferredD2BlockNode",Jp(()=>ta(null,null,function*(){try{return(yield Sa(()=>import("./index8-BsiuzSsR.js"),__vite__mapDeps([12,3,0,1]))).default}catch(q){return console.warn('[markstream-vue] Optional peer dependencies for D2BlockNode are missing. Falling back to preformatted code rendering. To enable D2 rendering, please install "@terrastruct/d2".',q),nu}})),nu),L1={text:rr,paragraph:Lg,heading:CA,code_block:jx,list:F0,list_item:B0,blockquote:I2,table:ab,definition_list:A2,footnote:C2,footnote_reference:Vu,footnote_anchor:ob,admonition:N2,vmr_container:E2,hardbreak:ah,link:Oc,image:ih,thematic_break:x2,math_inline:Ip,math_block:hZ,strong:Mc,emphasis:Pc,strikethrough:$c,highlight:ju,insert:hu,subscript:mu,superscript:fu,emoji:pu,checkbox:Hu,checkbox_input:Hu,inline_code:tc,html_inline:qu,reference:Rc,html_block:ib},fw=E(()=>sd()),Yh=E(()=>vL(N.codeBlockProps)),YA=E(()=>vL(N.codeBlockProps,{omit:["langs"]})),mw=E(()=>En(En({stream:N.codeBlockStream,darkTheme:N.codeBlockDarkTheme,lightTheme:N.codeBlockLightTheme,monacoOptions:N.codeBlockMonacoOptions,themes:N.themes,langs:w.value==="shiki"?N.langs:void 0,minWidth:N.codeBlockMinWidth,maxWidth:N.codeBlockMaxWidth},typeof ve.value=="boolean"?{showTooltips:ve.value}:{}),YA.value)),B1=E(()=>En(Os(En({},mw.value),{langs:N.langs}),Yh.value));function F1(q){return typeof q=="boolean"?q:void 0}const Qh=E(()=>{const q=N.codeBlockProps||{},pe={},Te=F1(q.showLineNumbers);Te!==void 0&&(pe.showLineNumbers=Te);const $e=F1(q.diffInline);$e!==void 0&&(pe.diffInline=$e);const je=(function(yt){const Et=Number(yt);return Number.isFinite(Et)&&Et>0?Et:void 0})(q.reservedHeightPx);return je!==void 0&&(pe.reservedHeightPx=je),pe}),QA=E(()=>En(En({stream:N.codeBlockStream,darkTheme:N.codeBlockDarkTheme,lightTheme:N.codeBlockLightTheme,themes:N.themes,langs:N.langs,minWidth:N.codeBlockMinWidth,maxWidth:N.codeBlockMaxWidth},typeof ve.value=="boolean"?{showTooltips:ve.value}:{}),Yh.value)),ZA=E(()=>En({},N.mermaidProps||{})),Dp=E(()=>En({},N.d2Props||{})),hw=E(()=>En({},N.infographicProps||{})),Cm=E(()=>({typewriter:y.value,fade:N.fade,customHtmlTags:Ve.value.customHtmlTags})),gw=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltip:ve.value}:{})),XA=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{})),JA=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{})),eC=E(()=>En(En({},Cm.value),typeof ve.value=="boolean"?{showTooltips:ve.value}:{}));function z1(q){return Array.isArray(q.children)&&q.children.length>0}const $v=E(()=>Ud.value.map(q=>{var pe,Te,$e,je,yt,Et,Pt,tn;let Dt=(function(Sn){var es,us,ys,vs,ks,no,mo;if(Sn.type!=="code_block")return Sn;const xi=Sn,$l=[String((es=xi.language)!=null?es:""),String((us=xi.loading)!=null?us:""),String((ys=xi.diff)!=null?ys:""),String((vs=xi.code)!=null?vs:""),String((ks=xi.originalCode)!=null?ks:""),String((no=xi.updatedCode)!=null?no:""),String((mo=xi.raw)!=null?mo:"")].join("\0"),gl=To.get(xi);if(gl&&gl.signature===$l)return gl.node;const ap=En({},xi);return To.set(xi,{signature:$l,node:ap}),ap})(q.node);const qt=Zh(Dt);let Jt=vw(Dt,qt);if((Dt.type==="html_block"||Dt.type==="html_inline")&&Jt===L1[Dt.type]){const Sn=Dt,es=String((pe=Sn.tag)!=null?pe:"").trim().toLowerCase()||qY(Sn.content);if(es){const us=Qe.value[es];if(zt.value.has(es)&&us)Jt=us,Dt=Os(En({},Sn),{type:es,tag:es,content:yOe(Sn.content,es)});else if(jY((Te=Sn.content)!=null?Te:Sn.raw,es)){const ys=String((je=($e=Sn.content)!=null?$e:Sn.raw)!=null?je:"");Dt.type==="html_inline"?(Jt=rr,Dt={type:"text",content:ys,raw:ys}):(Jt=Lg,Dt={type:"paragraph",children:[{type:"text",content:ys,raw:ys}],raw:ys})}}}const Nt=Dt.type==="code_block"&&w.value==="pre"&&Jt===nu&&!Ov(Qe.value,qt);let jt=En({},(function(Sn,es,us){const ys=es??Zh(Sn);if(Sn.type==="code_block"){const vs=ys?Ov(Qe.value,ys):void 0;if(us&&w.value==="pre"&&!vs&&us===nu)return Qh.value;if(us&&ys&&us===vs)return ys==="mermaid"?H1(Sn):ys==="infographic"?V1(Sn):ys==="d2"||ys==="d2lang"?Dp.value:B1.value;if(us&&us===Qe.value.code_block)return B1.value;if(el(us))return QA.value}return ys==="mermaid"?H1(Sn):ys==="infographic"?V1(Sn):ys==="d2"||ys==="d2lang"?Dp.value:Sn.type==="link"?gw.value:Sn.type==="list"?XA.value:Sn.type==="blockquote"?JA.value:Sn.type==="table"?eC.value:Sn.type==="code_block"?mw.value:Cm.value})(Dt,qt,Jt));const fn=No.value?lc.value[q.index]:null;Dt.type==="code_block"&&fn?.kind==="code-block"&&(jt=Os(En({},jt),Nt?{reservedHeightPx:(yt=fn.height)!=null?yt:fn.contentHeight}:{estimatedHeightPx:fn.height,estimatedContentHeightPx:fn.contentHeight,estimatedDiffInline:fn.diffInline})),Nt||Dt.type!=="code_block"||qt!=="mermaid"||g0(jt.estimatedPreviewHeightPx)!=null||(jt=Os(En({},jt),{estimatedPreviewHeightPx:dI(cI(String((Et=Dt.code)!=null?Et:"")))})),Nt||Dt.type!=="code_block"||qt!=="infographic"||g0(jt.estimatedPreviewHeightPx)!=null||(jt=Os(En({},jt),{estimatedPreviewHeightPx:pI(uI(String((Pt=Dt.code)!=null?Pt:"")))})),Dt.type==="math_block"&&(jt=Os(En({},jt),{cacheScope:Xe.value}));const ln=(function(Sn,es){const us=String(Sn.type);return!ow(us)&&Qe.value[us]===es})(Dt,Jt),Bn=ln?uR(Dt,xe.value):void 0;return Os(En({},q),{node:Dt,component:Jt,bindings:jt,customBindings:En(En({},Bn??{}),jt),rendersCustomNode:ln,hasSlotChildren:z1(Dt),slotContent:String((tn=Dt.content)!=null?tn:""),isCodeBlock:Dt.type==="code_block",indexKey:`${fw.value}-${q.index}`,vnodeKey:`${If.value}\0${q.index}\0${Dt.type}`})}));function Zh(q){var pe;return q?.type==="code_block"?String((pe=q.language)!=null?pe:"").trim().toLowerCase():""}function Ov(q,pe){const Te=pe.trim().toLowerCase();if(Te)for(const $e of[Te,_A(Te),QQ(Te)]){const je=$e&&q[$e];if(je)return je}}function U1(q,pe,Te,$e){var je,yt;const Et=En({},q.value);return g0(Et.estimatedPreviewHeightPx)==null&&(Et.estimatedPreviewHeightPx=$e(Te(String((je=pe?.code)!=null?je:"")),void 0,Et.maxHeight==="none"?null:(yt=g0(Et.maxHeight))!=null?yt:void 0)),Et}function H1(q){return U1(ZA,q,cI,dI)}function V1(q){return U1(hw,q,uI,pI)}function vw(q,pe){if(!q)return U3;const Te=Qe.value,$e=Te[String(q.type)];if(q.type==="code_block"){const je=pe??Zh(q),yt=je?Ov(Te,je):void 0;return yt||(w.value==="pre"?Te.code_block||nu:je==="mermaid"?Te.mermaid||GA:je==="infographic"?Te.infographic||dw:je==="d2"||je==="d2lang"?Te.d2||pw:$e||Te.code_block||io.value)}return $e||L1[String(q.type)]||U3}function q1(q){o("click",q)}function j1(q){var pe;(pe=q.target)!=null&&pe.closest("[data-node-index]")&&o("mouseover",q)}function tC(q){var pe;(pe=q.target)!=null&&pe.closest("[data-node-index]")&&o("mouseout",q)}function yw(q){o("mouseover",q)}function bw(q){o("mouseout",q)}const tp=D(null),Ml=D(!1),Tf=D(null),W1=E(()=>!(N.domMode!=="minimal"||ye.value||N.fade!==!1||y.value||Ml.value||wi.value||ts.value||Tt.value||Cn.value||$i.value||Object.keys(Qe.value).length!==0));let xm,Nf=null,Xh=0,np=0,sp=0;const Pv=["code_block","admonition","table","math_block","html_block","image","thematic_break"],X=new Set(Pv),ce=[".typewriter-cursor",".height-estimation-probes",...Pv.map(q=>`[data-node-type="${q}"]`),"script","style"].join(",");function Se(q){if(!q||typeof q!="object")return!1;const pe=q.type;return typeof pe=="string"&&X.has(pe)}function lt(q){var pe,Te;if(!q||typeof q!="object")return 0;const $e=q,je=(Te=(pe=$e.raw)!=null?pe:$e.content)!=null?Te:$e.code;if(typeof je=="string")return je.length;const yt=$e.children;if(Array.isArray(yt))return yt.reduce((Pt,tn)=>Pt+lt(tn),0);const Et=$e.items;return Array.isArray(Et)?Et.reduce((Pt,tn)=>Pt+lt(tn),0):0}function on(){xm&&(clearTimeout(xm),xm=void 0)}function Hn(){Xh+=1,Nf!=null&&(qo?.(Nf),Nf=null)}function Ln(){Hn(),op(),tp.value&&(tp.value.style.visibility="hidden")}function ni(q){var pe;if(q.nodeType!==Node.TEXT_NODE||!((pe=q.textContent)!=null?pe:"").trim())return!1;const Te=q.parentElement;return!!Te&&!Te.closest(ce)}function fa(q){let pe=q.lastChild;for(;pe;){if(ni(pe))return pe;if(pe.nodeType===Node.ELEMENT_NODE){const Te=pe;if(!Te.matches(ce)&&Te.lastChild){pe=Te.lastChild;continue}}for(;pe&&pe!==q&&!pe.previousSibling;)pe=pe.parentNode;if(!pe||pe===q)break;pe=pe.previousSibling}return null}function yd(){const q=$v.value;for(let pe=q.length-1;pe>=0;pe--){const Te=q[pe];if(!Te||Se(Te.node)||!Ne(Te.index))continue;const $e=xn.get(Te.index);if(!$e)continue;const je=fa($e);if(je)return je}return null}function op(){Tf.value&&(Tf.value.classList.remove(OL),Tf.value=null)}function Rf(){if(g.value!=="simple"||!ue||!Ml.value||!L.value)return void op();const q=yd(),pe=q?(function(Te){var $e;const je=($e=Te.parentElement)==null?void 0:$e.closest(".text-node");return je instanceof HTMLElement?je:Te.parentElement})(q):null;pe!==Tf.value&&(op(),pe&&(pe.classList.add(OL),Tf.value=pe))}function ip(){if(g.value!=="precise"||!ue||!Ml.value||Nf!=null)return;const q=Xh,pe=()=>{Nf=null,q===Xh&&(function(){var Te,$e;if(g.value!=="precise"||!(ue&&Ml.value&&L.value&&tp.value))return;const je=L.value,yt=tp.value;yt.style.visibility="hidden";const Et=yd();if(!Et)return;let Pt=0,tn=0,Dt=20,qt=!1;if(Et?.textContent){const Jt=Et.textContent.length,Nt=document.createRange();Nt.setStart(Et,Math.max(0,Jt-1)),Nt.setEnd(Et,Jt);const jt=typeof Nt.getClientRects=="function"?Nt.getClientRects():void 0,fn=($e=jt?.[jt.length-1])!=null?$e:(Te=Et.parentElement)==null?void 0:Te.getBoundingClientRect();if(fn){const ln=rt("typewriterCursor.root.getBoundingClientRect",()=>je.getBoundingClientRect());Pt=fn.right-ln.left+je.scrollLeft,tn=fn.top-ln.top+je.scrollTop,Dt=fn.height||Dt,qt=!0}Nt.detach()}qt&&(yt.style.transform=`translate(${Math.max(0,Pt)}px, ${Math.max(0,tn)}px)`,yt.style.height=`${Dt}px`,yt.style.visibility="visible")})()};Ro?Nf=Ro(pe):pe()}return ze([kt,()=>s.content,()=>s.nodes,()=>N.typewriter,We],()=>ta(null,null,function*(){var q,pe;if(!ue||ye.value||!de.value)return;if(We.value)return Ml.value=!1,on(),void Ln();if((q=s.nodes)!=null&&q.length)return Ml.value=!1,on(),Ln(),np=((pe=s.content)!=null?pe:"").length,void(sp=kt.value.length);const Te=(function(){var Pt,tn;return(Pt=s.nodes)!=null&&Pt.length?s.nodes.reduce((Dt,qt)=>Dt+lt(qt),0):((tn=s.content)!=null?tn:"").length})(),$e=(function(){var Pt;return(Pt=s.nodes)!=null&&Pt.length?s.nodes.reduce((tn,Dt)=>tn+lt(Dt),0):kt.value.length})(),je=!Se(nt.value[nt.value.length-1]),yt=Te>np,Et=$e>sp;if(!y.value||!je||!yt&&!Et)return y.value&&je||(Ml.value=!1,Ln()),np=Te,void(sp=$e);np=Te,sp=$e,Ml.value=!0,g.value==="precise"&&tp.value&&(tp.value.style.visibility="hidden"),on(),yield vn(),g.value==="simple"?Rf():(op(),ip()),xm=setTimeout(()=>{xm=void 0,Ml.value=!1},3e3)}),{flush:"post",immediate:!0}),ze(Ml,q=>ta(null,null,function*(){q?(yield vn(),g.value!=="simple"?(op(),g.value==="precise"&&ip()):Rf()):Ln()}),{flush:"post"}),ze(g,()=>ta(null,null,function*(){if(ue&&!ye.value&&de.value&&Ml.value){if(yield vn(),g.value==="simple")return Hn(),void Rf();op(),g.value!=="precise"?Ln():ip()}}),{flush:"post"}),ze([()=>Nn.value,()=>Ci.start,()=>Ci.end],()=>ta(null,null,function*(){ue&&!ye.value&&de.value&&Ml.value&&(yield vn(),g.value!=="simple"?(op(),g.value==="precise"&&ip()):Rf())}),{flush:"post"}),qs(()=>{on(),Hn(),op(),qe.clear()}),(q,pe)=>{const Te=GI("NodeRenderer",!0);return i(ye)?(h(!0),C(Me,{key:0},ft($v.value,$e=>(h(),C(Me,{key:$e.vnodeKey},[$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:0,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onClick:q1,onMouseover:yw,onMouseout:bw,onCopy:pe[0]||(pe[0]=je=>a(je)),onHandleArtifactClick:pe[1]||(pe[1]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:1,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onClick:q1,onMouseover:yw,onMouseout:bw,onCopy:pe[2]||(pe[2]=je=>a(je)),onHandleArtifactClick:pe[3]||(pe[3]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],64))),128)):(h(),C("div",{key:1,ref_key:"containerRef",ref:L,class:At(["markstream-vue markdown-renderer",[{dark:N.isDark},{virtualized:ts.value},{"virtual-scroll-coordinated":Eo.value},{"stable-layout":pl.value},{"typewriter-simple-cursor":Ml.value&&g.value==="simple"}]]),"data-custom-id":N.customId,onClick:q1,onMouseover:j1,onMouseout:tC},[Qi.value||ts.value?(h(),C(Me,{key:0},[Qi.value?(h(),V(iUe,{key:0,width:Ct.value,"flow-root":ts.value||Eo.value,"paragraph-node":Ke.value,"list-item-node":ht.value,"list-node":Ot.value,"heading-nodes":xt.value,"set-paragraph-wrapper":fr,"set-list-item-wrapper":Zr,"set-list-wrapper":rc,"set-heading-wrapper":Bt},null,8,["width","flow-root","paragraph-node","list-item-node","list-node","heading-nodes"])):W("",!0),ts.value?(h(),C("div",{key:1,class:"node-spacer",style:Qn({height:`${Hd.value}px`}),"aria-hidden":"true"},null,4)):W("",!0)],64)):W("",!0),W1.value?(h(!0),C(Me,{key:1},ft($v.value,$e=>(h(),C(Me,{key:$e.vnodeKey},[Ne($e.index)?(h(),V(Ms($e.component),Un({key:0,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onMouseover:pe[4]||(pe[4]=je=>o("mouseover",je)),onMouseout:pe[5]||(pe[5]=je=>o("mouseout",je)),onCopy:pe[6]||(pe[6]=je=>a(je)),onHandleArtifactClick:pe[7]||(pe[7]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"])):W("",!0)],64))),128)):(h(!0),C(Me,{key:2},ft($v.value,$e=>(h(),C("div",{key:$e.vnodeKey,ref_for:!0,ref:je=>$t($e.index,je),class:"node-slot","data-node-index":$e.index,"data-node-type":$e.node.type},[Ne($e.index)?(h(),C("div",{key:0,ref_for:!0,ref:je=>(function(yt,Et){var Pt;Et||(function(Jt){const Nt=`${sd()}-${Jt}`;let jt=!1;for(const fn of Array.from(ei.keys())){const ln=bo.get(fn);(ln?.index===Jt||fn===Nt||fn.startsWith(`${Nt}-`))&&(ei.delete(fn),bo.delete(fn),jt=!0)}jt&&(id(),pi("async-node"))})(yt),la.delete(yt),(function(Jt){var Nt;const jt=((Nt=Si.get(Jt))!=null?Nt:0)+1;Si.set(Jt,jt)})(yt);const tn=_r.get(yt);if(tn){for(const Jt of tn)Hl(Jt);_r.delete(yt)}if((function(Jt){const Nt=Xn.get(Jt);Nt&&(Es?.unobserve(Nt),As.delete(Nt),Xn.delete(Jt))})(yt),!Et||!ki.value)return Po.delete(yt),void Si.delete(yt);Po.set(yt,Et);const Dt=()=>{Qc(yt,Et)};queueMicrotask(Dt);const qt=(Es||typeof ResizeObserver>"u"||(Es=new ResizeObserver(Jt=>{if(Jt.length)for(const Nt of Jt){const jt=As.get(Nt.target),fn=Xn.get(jt??-1);jt!=null&&fn&&Qc(jt,fn)}else Kl()})),Es);if(qt&&(Xn.set(yt,Et),As.set(Et,yt),qt.observe(Et)),typeof window<"u"){const Jt=((Pt=nt.value[yt])==null?void 0:Pt.type)==="code_block"?[16,80,240,800]:We.value?[80]:[];if(Jt.length){const Nt=Jt.map(jt=>ga(jt,Dt,"node-resize")).filter(jt=>jt!=null);Nt.length&&_r.set(yt,Nt)}}})($e.index,je),class:"node-content"},[$e.isCodeBlock?$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:1,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[12]||(pe[12]=je=>a(je)),onHandleArtifactClick:pe[13]||(pe[13]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:2,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[14]||(pe[14]=je=>a(je)),onHandleArtifactClick:pe[15]||(pe[15]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Wa,{key:0,name:"fade",css:N.fade!==!1,appear:N.fade!==!1},{default:b(()=>[$e.rendersCustomNode?(h(),V(Ms($e.component),Un({key:0,ref_for:!0},$e.customBindings,{node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey,"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[8]||(pe[8]=je=>a(je)),onHandleArtifactClick:pe[9]||(pe[9]=je=>o("handleArtifactClick",je))}),{default:b(()=>[$e.hasSlotChildren?(h(),V(Te,Un({key:0,ref_for:!0},$n.value,{nodes:$e.node.children,"index-key":$e.indexKey,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["nodes","index-key"])):$e.slotContent?(h(),V(Te,Un({key:1,ref_for:!0},$n.value,{content:$e.slotContent,final:!$e.node.loading,"index-key":`${$e.indexKey}-content`,"smooth-streaming":!1,"batch-rendering":!1,"defer-nodes-until-visible":!1,"render-as-fragment":!0}),null,16,["content","final","index-key"])):W("",!0)]),_:2},1040,["node","loading","index-key","custom-id","is-dark"])):(h(),V(Ms($e.component),Un({key:1,node:$e.node,loading:$e.node.loading,"index-key":$e.indexKey},{ref_for:!0},$e.bindings,{"custom-id":N.customId,"is-dark":N.isDark,onCopy:pe[10]||(pe[10]=je=>a(je)),onHandleArtifactClick:pe[11]||(pe[11]=je=>o("handleArtifactClick",je))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1032,["css","appear"]))],512)):(h(),C("div",{key:1,class:"node-placeholder",style:Qn({height:`${Qa($e.index)}px`})},null,4))],8,lUe))),128)),Ml.value&&g.value==="precise"?(h(),C("span",{key:3,ref_key:"typewriterCursorRef",ref:tp,class:"typewriter-cursor","aria-hidden":"true"},null,512)):W("",!0),ts.value?(h(),C("div",{key:4,class:"node-spacer",style:Qn({height:`${cc.value}px`}),"aria-hidden":"true"},null,4)):W("",!0)],42,rUe))}}})),[["__scopeId","data-v-0a475932"]]),gu=NZ;gu.install=e=>{const t=new Set(["MarkdownRender","NodeRenderer",gu.__name,gu.name].filter(n=>!!n));for(const n of t)e.component(n,NZ)};const IR=Object.freeze(Object.defineProperty({__proto__:null,default:gu},Symbol.toStringTag,{value:"Module"})),cUe={key:0,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},uUe={key:1,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},dUe={key:2,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},pUe={key:3,xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"admonition-icon"},fUe={class:"admonition-title"},mUe=["aria-expanded","aria-controls"],hUe=["id"],N2=bi(st({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},fade:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:t}){var n;const s=e,o=t,a=E(()=>{if(s.node.title&&s.node.title.trim().length)return s.node.title;const u=s.node.kind||"note";return u.charAt(0).toUpperCase()+u.slice(1)}),r=D(!!s.node.collapsible&&!((n=s.node.open)==null||n));function l(){s.node.collapsible&&(r.value=!r.value)}const c=`admonition-${Math.random().toString(36).slice(2,9)}`;return(u,p)=>(h(),C("div",{class:At(["admonition",[`admonition-${s.node.kind}`]])},[d("div",{id:c,class:"admonition-legend"},[s.node.kind==="note"||s.node.kind==="info"?(h(),C("svg",cUe,[...p[1]||(p[1]=[d("circle",{cx:"12",cy:"12",r:"10"},null,-1),d("path",{d:"M12 16v-4"},null,-1),d("path",{d:"M12 8h.01"},null,-1)])])):s.node.kind==="tip"?(h(),C("svg",uUe,[...p[2]||(p[2]=[d("path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"},null,-1),d("path",{d:"M9 18h6"},null,-1),d("path",{d:"M10 22h4"},null,-1)])])):s.node.kind==="warning"||s.node.kind==="caution"?(h(),C("svg",dUe,[...p[3]||(p[3]=[d("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"},null,-1),d("path",{d:"M12 9v4"},null,-1),d("path",{d:"M12 17h.01"},null,-1)])])):s.node.kind==="danger"||s.node.kind==="error"?(h(),C("svg",pUe,[...p[4]||(p[4]=[d("polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2"},null,-1),d("path",{d:"M12 8v4"},null,-1),d("path",{d:"M12 16h.01"},null,-1)])])):W("",!0),d("span",fUe,f(a.value),1),s.node.collapsible?(h(),C("button",{key:4,class:"admonition-toggle","aria-expanded":!r.value,"aria-controls":`${c}-content`,onClick:l},[(h(),C("svg",{style:Qn({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[...p[5]||(p[5]=[d("path",{d:"m9 18 6-6-6-6"},null,-1)])],4))],8,mUe)):W("",!0)]),fi(d("div",{id:`${c}-content`,class:"admonition-content","aria-labelledby":c},[m(i(gu),{"index-key":`admonition-${e.indexKey}`,nodes:s.node.children,"custom-id":s.customId,typewriter:s.typewriter,fade:s.fade,onCopy:p[0]||(p[0]=g=>o("copy",g))},null,8,["index-key","nodes","custom-id","typewriter","fade"])],8,hUe),[[xk,!r.value]])],2))}}),[["__scopeId","data-v-a83480e1"]]);N2.install=e=>{e.component(N2.__name,N2)};const W3=()=>Sa(()=>import("./d2_markstream-vue_false-DAdk4EzK.js"),[]);let wS=null,SS=W3,_S=null,PL=!1,DL=!1;function Y7t(){return ta(this,null,function*(){if(wS)return wS;const e=SS;return e?e===W3&&PL?null:_S||(_S=ta(null,null,function*(){let t;try{t=yield e()}catch(n){if(e===W3)return e===SS&&(PL=!0,(function(s){DL||(DL=!0,console.warn('[markstream-vue] Optional dependency "@terrastruct/d2" is not installed. D2 blocks will render as source.',s))})(n)),null;throw n}finally{e===SS&&(_S=null)}return e!==SS?null:t?(wS=(function(n){var s;if(!n)return n;if(n.D2&&typeof n.D2=="function")return n.D2;if(n.default&&n.default.D2&&typeof n.default.D2=="function")return n.default.D2;const o=(s=n.default)!=null?s:n;return typeof o=="function"?o:o?.D2&&typeof o.D2=="function"?o.D2:o})(t),wS):null}),_S):null})}let IS=null,RZ=null,AS=null;function Q7t(){return typeof RZ=="function"}function Z7t(){return ta(this,null,function*(){if(IS)return IS;const e=RZ;return e?AS||(AS=ta(null,null,function*(){const t=yield e(),n=(function(s){var o,a,r;if(!s)return null;const l=(o=s.default)!=null?o:s,c=typeof l=="function"&&typeof((a=l.prototype)==null?void 0:a.render)=="function"?l:(r=s.Infographic)!=null?r:l?.Infographic;return typeof c=="function"?c:null})(t);return n?(IS=n,IS):null}).finally(()=>{AS=null}),AS):null})}const X7t=Symbol("markstreamLanguageIconResolver"),gUe={key:0},vUe=["onAnimationend"],yUe=150,bUe=st({__name:"AiSessionAnimatedTextNode",props:{node:{}},setup(e){const t=e,n=Ah(),s=uo("aiSessionCharacterReveal",void 0),o=uo("markstreamTextStreamState",void 0),a=E(()=>String(n["index-key"]??n.indexKey??"")),r=D(""),l=D([]),c=new Map;let u=0,p="";function g(){return r.value+l.value.map(S=>S.text).join("")}function y(S){if(typeof Intl<"u"&&"Segmenter"in Intl){const I=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(I.segment(S),x=>x.segment)}return Array.from(S)}function v(S){S.counted&&(S.counted=!1,s?.end())}function w(){for(const S of c.values())window.clearTimeout(S);c.clear();for(const S of l.value)v(S);l.value=[]}function k(S){if(!S)return;if(typeof window<"u"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||s&&!s.enabled.value){r.value+=S;return}const x=y(S).map(T=>(s?.begin(),{id:++u,text:T,settled:!1,counted:!!s}));l.value=[...l.value,...x];for(const T of x)c.set(T.id,window.setTimeout(()=>_(T.id),yUe+32))}function A(){let S=0,I="";for(;S<l.value.length&&l.value[S].settled;)I+=l.value[S].text,S+=1;S&&(r.value+=I,l.value=l.value.slice(S))}function _(S){const I=c.get(S);I!==void 0&&window.clearTimeout(I),c.delete(S);const x=l.value.find(T=>T.id===S);!x||x.settled||(x.settled=!0,v(x),A())}return ze([()=>t.node.content,a],([S,I])=>{const x=String(S??"");if(I!==p){w(),p=I;const R=I?o?.get(I):void 0;r.value=R&&x.startsWith(R)?R:""}const T=g();x.startsWith(T)?k(x.slice(T.length)):x!==T&&(w(),r.value=x),I&&o?.set(I,x)},{immediate:!0}),qs(w),(S,I)=>(h(),C("span",{class:At(["ai-session-animated-text",{"ai-session-animated-text-center":e.node.center}])},[r.value?(h(),C("span",gUe,f(r.value),1)):W("",!0),(h(!0),C(Me,null,ft(l.value,x=>(h(),C("span",{key:x.id,class:"ai-session-animated-character",onAnimationend:nn(T=>_(x.id),["stop"])},f(x.text),41,vUe))),128))],2))}}),kUe=kn(bUe,[["__scopeId","data-v-914fc7bf"]]),MZ={copiedLabel:"Copied",copyLabel:"Copy",plainTextLabel:"Plain text"},$Z=Symbol("aiSessionMarkdownCodeTools"),wUe=["innerHTML"],SUe=st({__name:"AiSessionCodeBlock",props:{node:{}},setup(e){const t=e,n=uo($Z,E(()=>MZ)),s=E(()=>xG(t.node.code??t.node.raw,t.node.language,n.value));return(o,a)=>(h(),C("div",{class:"ai-session-highlighted-code",innerHTML:s.value,onClick:a[0]||(a[0]=(...r)=>i(U_)&&i(U_)(...r))},null,8,wUe))}}),_Ue=kn(SUe,[["__scopeId","data-v-cd34a852"]]),LL=st({inheritAttrs:!1,__name:"AiSessionMarkdownNode",props:{node:{}},setup(e){return(t,n)=>e.node.type==="code_block"?(h(),V(_Ue,Un({key:0},t.$attrs,{node:e.node}),null,16,["node"])):(h(),V(kUe,Un({key:1},t.$attrs,{node:e.node}),null,16,["node"]))}});function IUe(e){return e.streaming||!e.pacingFinal?"reset":e.activeAnimations>0?"wait":"promote"}function AUe(e){try{return decodeURIComponent(e)}catch{return e}}function CUe(e){const t=[];for(const n of e.replaceAll("\\","/").split("/"))if(!(!n||n===".")){if(n===".."){if(!t.length)return;t.pop();continue}t.push(n)}return t.join("/")}function xUe(e){const t=/#L(\d+)(?:C(\d+))?(?:-L?\d+(?:C\d+)?)?$/i.exec(e);if(t)return{column:t[2]?Number(t[2]):void 0,line:Number(t[1]),path:e.slice(0,t.index)};const n=/:(\d+)(?::(\d+))?$/.exec(e);return n?{column:n[2]?Number(n[2]):void 0,line:Number(n[1]),path:e.slice(0,n.index)}:{path:e}}function OZ(e,t){let n=e.trim();if(!n)return;const s=xUe(n);if(n=s.path,/^file:\/\//i.test(n))try{const l=new URL(n);n=l.hostname?`//${l.hostname}${l.pathname}`:l.pathname,/^\/[a-z]:\//i.test(n)&&(n=n.slice(1))}catch{return}else n=n.split(/[?#]/,1)[0]||"";n=AUe(n).replaceAll("\\","/");const o=t.repositoryRoot?.replaceAll("\\","/").replace(/\/+$/,"");if(n.startsWith("/")||/^[a-z]:\//i.test(n)){if(!o)return;const l=/^[a-z]:\//i.test(o)||o.startsWith("//"),c=l?n.toLowerCase():n,u=l?o.toLowerCase():o;if(!(u==="/"?c.startsWith("/"):c===u||c.startsWith(`${u}/`)))return;n=u==="/"?n.slice(1):n.slice(o.length).replace(/^\/+/,"")}else n=[t.cwdRelativePath,n].filter(Boolean).join("/");const r=CUe(n);if(r)return{...s,path:r}}function EUe(e,t){const n=e.trim();if(!n)return{kind:"unsupported",href:e};const s=/^([a-z][a-z\d+.-]*):/i.exec(n)?.[1]?.toLowerCase();if(s==="http"||s==="https")try{const a=new URL(n);return{kind:"web",href:n,url:a.toString()}}catch{return{kind:"unsupported",href:n}}if(s&&s!=="file")return{kind:"unsupported",href:n};if(!t)return n.startsWith("/")||/^[a-z]:[\\/]/i.test(n)?{kind:"file",href:n,path:n.split(/[?#]/,1)[0]||n}:s==="file"?{kind:"unsupported",href:n}:{kind:"file",href:n,path:n.split(/[?#]/,1)[0]||n};const o=OZ(n,t);return o?{kind:"file",href:n,path:o.path,...o.line!==void 0?{line:o.line}:{},...o.column!==void 0?{column:o.column}:{}}:{kind:"unsupported",href:n}}const TUe={class:"markdown-link-menu-content"},NUe=st({__name:"MarkdownLinkContextMenu",props:{labels:{},repositoryContext:{},onOpenFile:{type:Function},onOpenBuiltinBrowser:{type:Function}},setup(e){const t=D(!1),n=D(),s=e;function o(u){n.value=void 0;const g=(u.target instanceof Element?u.target.closest("a[href]"):void 0)?.getAttribute("href")?.trim();g&&(n.value=EUe(g,s.repositoryContext),n.value.kind!=="unsupported"&&(u.stopPropagation(),u.preventDefault()))}async function a(u){await navigator.clipboard?.writeText(u)}function r(u){return u.startsWith("/")||/^[a-z]:[\\/]/i.test(u)}async function l(u){await Axe(u)}async function c(u){!(await qW(u)).ok&&typeof window<"u"&&window.open(u,"_blank","noopener,noreferrer")}return(u,p)=>(h(),V(i(vr),{open:t.value,"onUpdate:open":p[6]||(p[6]=g=>t.value=g)},{default:b(()=>[d("div",{class:"markdown-link-menu-host",onContextmenuCapture:o},[m(i(yr),{"as-child":"",disabled:!n.value},{default:b(()=>[d("div",TUe,[gn(u.$slots,"default",{},void 0,!0)])]),_:3},8,["disabled"])],32),n.value?(h(),V(i(Bc),{key:0,class:"markdown-link-context-menu"},{default:b(()=>[n.value.kind==="file"&&r(n.value.path)?(h(),V(i(Ts),{key:0,onSelect:p[0]||(p[0]=g=>l(n.value.path))},{default:b(()=>[m(i(ll),{size:14}),j(f(s.labels.openDesktopFile),1)]),_:1})):W("",!0),n.value.kind==="file"&&s.onOpenFile?(h(),V(i(Ts),{key:1,onSelect:p[1]||(p[1]=g=>s.onOpenFile(n.value))},{default:b(()=>[m(i(ll),{size:14}),j(f(s.labels.openFile),1)]),_:1})):W("",!0),n.value.kind==="file"?(h(),V(i(Ts),{key:2,onSelect:p[2]||(p[2]=g=>a(n.value.path))},{default:b(()=>[m(i(Ka),{size:14}),j(f(s.labels.copyPath),1)]),_:1})):W("",!0),n.value.kind==="web"?(h(),C(Me,{key:3},[s.onOpenBuiltinBrowser?(h(),V(i(Ts),{key:0,onSelect:p[3]||(p[3]=g=>s.onOpenBuiltinBrowser(n.value.url))},{default:b(()=>[m(i(kle),{size:14}),j(f(s.labels.openBuiltinBrowser),1)]),_:1})):W("",!0),m(i(Ts),{onSelect:p[4]||(p[4]=g=>c(n.value.url))},{default:b(()=>[m(i(yu),{size:14}),j(f(s.labels.openDefaultBrowser),1)]),_:1}),m(i(Ts),{onSelect:p[5]||(p[5]=g=>a(n.value.url))},{default:b(()=>[m(i(Ka),{size:14}),j(f(s.labels.copyLink),1)]),_:1})],64)):W("",!0)]),_:1})):W("",!0)]),_:3},8,["open"]))}}),RUe=kn(NUe,[["__scopeId","data-v-93970c65"]]),BL="ai-session-streaming-markdown",MUe=st({__name:"AiSessionStreamingMarkdown",props:{codeTools:{},content:{},fileLinks:{type:Boolean,default:!1},htmlPolicy:{default:"escape"},instanceId:{},isLatest:{type:Boolean,default:!1},providerTurnId:{},repositoryContext:{},sessionId:{},turnId:{}},emits:["openFile"],setup(e,{emit:t}){YLe(),aBe(),gBe(BL,{text:LL,code_block:LL});const n=e;si($Z,E(()=>n.codeTools??MZ));const s=t,{t:o}=An(),a=E(()=>({openFile:o("sessions.markdown.openFile"),openDesktopFile:o("sessions.markdown.openDesktopFile"),copyPath:o("sessions.markdown.copyPath"),openBuiltinBrowser:o("sessions.markdown.openBuiltinBrowser"),openDefaultBrowser:o("sessions.markdown.openDefaultBrowser"),copyLink:o("sessions.markdown.copyLink")}));function r(H){s("openFile",H.href)}function l(H){window.dispatchEvent(new CustomEvent("task-handoff:open-markdown-browser",{detail:{instanceId:n.instanceId,url:H}}))}function c(H){if(!H||H.startsWith("#")||H.startsWith("?")||H.startsWith("//"))return!1;if(/^[a-z]:[\\/]/i.test(H))return!0;const U=/^([a-z][a-z\d+.-]*):/i.exec(H)?.[1]?.toLowerCase();return!U||U==="file"}function u(H){try{const U=new URL(H);return U.protocol==="http:"||U.protocol==="https:"}catch{return!1}}async function p(H){!(await qW(H)).ok&&typeof window<"u"&&window.open(H,"_blank","noopener,noreferrer")}function g(H){if(H.defaultPrevented||H.button!==0||H.metaKey||H.ctrlKey||H.shiftKey||H.altKey)return;const L=(H.target instanceof Element?H.target.closest("a"):void 0)?.getAttribute("href")?.trim();if(L){if(u(L)){H.preventDefault(),p(L);return}!n.fileLinks||!c(L)||(H.preventDefault(),s("openFile",L))}}const y=W4(),v=E(()=>y.activeMessage(n.instanceId,n.sessionId)),w=E(()=>{const H=n.isLatest?v.value.value?.value:void 0;return VW(H,{id:n.turnId,providerTurnId:n.providerTurnId})?H:void 0}),k=E(()=>String(w.value?.receivedText??n.content??"")),A=E(()=>w.value?.key||`snapshot:${n.instanceId}:${n.sessionId}`),_=E(()=>w.value?.status==="streaming"),S=D(!1),I=D(0),x=TZ({minCharsPerSecond:30,maxCharsPerSecond:240,targetLatencyMs:240,catchUpLatencyMs:160,catchUpThreshold:48,maxCommitFps:30,maxCharsPerCommit:12,startDelayMs:0,flushOnFinish:!1}),T=x.visible,R=D(!1),M=E(()=>R.value);si("aiSessionCharacterReveal",{enabled:S,begin:()=>{I.value+=1},end:()=>{I.value=Math.max(0,I.value-1)}});let $="",O="",F=!1,B=0,N=0;function z(H,U){const L=++B;S.value=!1,x.reset(H),U||x.finish({flush:!0}),vn(()=>{L===B&&(S.value=!0)})}return ze([A,k,_],([H,U,L])=>{if(H!==$){$=H,O=U,F=L,z(U,L);return}if(!L&&!F){O=U,z(U,!1);return}L&&!F&&x.reset(O),U.startsWith(O)?x.enqueue(U.slice(O.length)):U!==O&&z(U,L),O=U,F=L,L||x.finish()},{immediate:!0}),ze([_,x.final,I],async([H,U,L])=>{const K=IUe({streaming:H,pacingFinal:U,activeAnimations:L});if(K==="reset"){R.value=!1;return}if(K==="wait")return;const G=++N;await vn(),G===N&&!_.value&&x.final.value&&I.value===0&&(R.value=!0)},{immediate:!0,flush:"post"}),(H,U)=>(h(),V(RUe,{labels:a.value,"repository-context":n.repositoryContext,"on-open-file":r,"on-open-builtin-browser":l},{default:b(()=>[d("div",{class:"ai-session-streaming-markdown",onClick:g},[m(i(gu),{content:i(T),"custom-id":BL,fade:!1,final:M.value,"max-live-nodes":0,"batch-rendering":!1,"smooth-streaming":!1,typewriter:!1,"html-policy":e.htmlPolicy,mode:"chat"},null,8,["content","final","html-policy"])])]),_:1},8,["labels","repository-context"]))}}),d1=kn(MUe,[["__scopeId","data-v-e6b6a96d"]]),nE=1e3,$Ue=1e3,OUe=28;class PUe{constructor(t,n){this.root=t,this.revision=n.revision,this.targetSelector=n.target,this.resolveTarget()}root;frame;hoverTimer;idleActive=!1;lastFrameTime;pointerInside=!1;resumeTimer;revision;target;targetSelector;update(t){const n=t.revision!==this.revision;if(this.revision=t.revision,t.target!==this.targetSelector?(this.targetSelector=t.target,this.resolveTarget()):this.target?.isConnected||this.resolveTarget(),n){this.reset(),this.pointerInside&&this.scheduleStart(nE);return}this.pointerInside&&this.idleActive&&this.frame===void 0&&this.hoverTimer===void 0&&this.resumeTimer===void 0&&this.start()}dispose(){this.pointerInside=!1,this.idleActive=!1,this.stop(),this.clearTimers(),this.detachTargetListeners()}handlePointerEnter=()=>{this.pointerInside=!0,this.idleActive=!1,this.scheduleStart(nE)};handlePointerMove=()=>{this.pointerInside&&(this.idleActive=!1,this.stop(),this.scheduleStart(nE))};handlePointerLeave=()=>{this.pointerInside=!1,this.idleActive=!1,this.stop(),this.clearTimers(),this.target&&(this.target.scrollTop=0)};handleWheel=t=>{const n=this.target;if(!this.pointerInside||!this.idleActive||!n||Math.abs(t.deltaX)>=Math.abs(t.deltaY))return;const s=Math.max(0,n.scrollHeight-n.clientHeight);if(s<=0)return;const o=t.deltaMode===WheelEvent.DOM_DELTA_LINE?16:t.deltaMode===WheelEvent.DOM_DELTA_PAGE?n.clientHeight:1,a=Math.max(0,Math.min(s,n.scrollTop+t.deltaY*o));a!==n.scrollTop&&(t.preventDefault(),t.stopPropagation(),this.stop(),this.clearTimers(),n.scrollTop=a,this.resumeTimer=window.setTimeout(()=>{this.resumeTimer=void 0,this.pointerInside&&this.start()},$Ue))};resolveTarget(){const t=this.root.querySelector(this.targetSelector)||void 0;t!==this.target&&(this.detachTargetListeners(),this.target=t,this.target?.addEventListener("pointerenter",this.handlePointerEnter),this.target?.addEventListener("pointermove",this.handlePointerMove),this.target?.addEventListener("pointerleave",this.handlePointerLeave),this.target?.addEventListener("wheel",this.handleWheel,{passive:!1}))}detachTargetListeners(){this.target?.removeEventListener("pointerenter",this.handlePointerEnter),this.target?.removeEventListener("pointermove",this.handlePointerMove),this.target?.removeEventListener("pointerleave",this.handlePointerLeave),this.target?.removeEventListener("wheel",this.handleWheel)}scheduleStart(t){this.clearTimers(),this.hoverTimer=window.setTimeout(()=>{this.hoverTimer=void 0,this.pointerInside&&this.activateIdleScroll()},t)}activateIdleScroll(){const t=this.target;this.idleActive=!!(t&&t.scrollHeight>t.clientHeight),this.idleActive&&this.start()}start(){const t=this.target;!t||t.scrollHeight<=t.clientHeight||this.prefersReducedMotion()||t.scrollTop>=t.scrollHeight-t.clientHeight-.5||this.frame!==void 0||(this.lastFrameTime=void 0,this.frame=window.requestAnimationFrame(this.advance))}advance=t=>{if(this.frame=void 0,!this.pointerInside||!this.target)return;const n=this.lastFrameTime===void 0?0:Math.min(t-this.lastFrameTime,50);this.lastFrameTime=t;const s=Math.max(0,this.target.scrollHeight-this.target.clientHeight);this.target.scrollTop=Math.min(s,this.target.scrollTop+n*OUe/1e3),this.target.scrollTop<s-.5&&(this.frame=window.requestAnimationFrame(this.advance))};stop(){this.frame!==void 0&&window.cancelAnimationFrame(this.frame),this.frame=void 0,this.lastFrameTime=void 0}clearTimers(){this.hoverTimer!==void 0&&window.clearTimeout(this.hoverTimer),this.resumeTimer!==void 0&&window.clearTimeout(this.resumeTimer),this.hoverTimer=void 0,this.resumeTimer=void 0}reset(){this.idleActive=!1,this.stop(),this.clearTimers(),this.target&&(this.target.scrollTop=0)}prefersReducedMotion(){return window.matchMedia?.("(prefers-reduced-motion: reduce)").matches??!1}}const CS=new WeakMap,K3={mounted(e,t){CS.set(e,new PUe(e,t.value))},updated(e,t){CS.get(e)?.update(t.value)},unmounted(e){CS.get(e)?.dispose(),CS.delete(e)}},DUe=["data-state","data-selected","data-unread","data-app-session-origin"],LUe=["aria-label","title"],BUe={class:"ai-board-card-headline"},FUe={class:"ai-board-card-context"},zUe={class:"ai-board-card-context-item"},UUe={key:1,class:"ai-board-card-context-separator","aria-hidden":"true"},HUe={class:"ai-board-card-context-item"},VUe={key:0,class:"ai-board-card-context-separator","aria-hidden":"true"},qUe=["aria-label"],jUe={class:"ai-board-content"},WUe={class:"ai-board-preview-field ai-board-preview-field-user"},KUe={class:"ai-board-preview-field ai-board-preview-field-assistant"},GUe={key:0,class:"ai-board-turn-nav"},YUe=["aria-label","disabled"],QUe=["aria-label","disabled"],ZUe={key:2,class:"ai-board-approval-actions"},XUe=["disabled","title"],JUe=["disabled","title"],eHe=["disabled","title"],tHe=st({__name:"AiSessionCard",props:{approvalBusyKey:{},boundTriggers:{},card:{},folderName:{},instanceDisplayName:{},isTriggerBound:{},promptCount:{},promptIndex:{},selected:{type:Boolean},showAgent:{type:Boolean,default:!0},showInstance:{type:Boolean,default:!0},showWorkspace:{type:Boolean},shortHash:{},stoppingAppSessionKey:{},forkingSessionKey:{},triggerActionKey:{},triggerBusyKey:{},triggerTemplates:{}},emits:["nextPrompt","openAiSessionApp","previousPrompt","resolveApproval","renameSession","selectCard","selectInstance","stopAppSession","forkSession","storyAssigned","storyAssignFailed","toggleTrigger"],setup(e,{emit:t}){const{t:n}=An(),s=e,o=E(()=>E0(s.card.session,s.card.instance.capabilities?.features));function a(g,y){return`${g.instance.id}:${g.session.id}:${y}`}const r=E(()=>s.stoppingAppSessionKey===s.card.key),l=E(()=>s.forkingSessionKey===s.card.key),c=E(()=>SN(s.card.instance,s.card.session)),u=E(()=>{const g=s.card.session.agent;return g==="codex"||g==="claude"||g==="opencode"?g:void 0}),p=E(()=>{const g=s.card.session.agent;return u.value?n(`common.products.${g}`):g});return(g,y)=>(h(),V(i(vr),null,{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[fi((h(),C("article",{class:"ai-board-card","data-state":e.card.session.status,"data-selected":e.selected?"true":void 0,"data-unread":e.card.session.unread?"true":void 0,"data-app-session-origin":e.card.session.creationSource==="app-session"?"true":void 0,role:"button",tabindex:"0",onClick:y[6]||(y[6]=v=>g.$emit("selectCard",e.card.key)),onKeydown:[y[7]||(y[7]=Go(nn(v=>g.$emit("selectCard",e.card.key),["prevent"]),["enter"])),y[8]||(y[8]=Go(nn(v=>g.$emit("selectCard",e.card.key),["prevent"]),["space"]))]},[e.card.session.unread?(h(),C("span",{key:0,class:"ai-session-unread-dot","aria-label":i(n)("sessions.actions.unread"),title:i(n)("sessions.actions.unread")},null,8,LUe)):W("",!0),m(c3,{agent:e.card.session.agent,"creation-source":e.card.session.creationSource,"show-agent":!1},null,8,["agent","creation-source"]),d("div",BUe,[m(i(Fi),{"delay-duration":120},{default:b(()=>[d("button",{type:"button",class:"ai-board-instance",onClick:y[0]||(y[0]=nn(v=>g.$emit("selectCard",e.card.key),["stop"]))},[m(Jm,{class:"ai-board-status-indicator",status:e.card.session.status},null,8,["status"]),d("span",FUe,[e.showWorkspace?(h(),V(i(Ns),{key:0},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",zUe,[m(i(na),{size:14,"aria-hidden":"true"}),d("span",null,f(e.folderName||i(R0)(e.card.session.cwd)||i(n)("sessions.board.unknownFolder")),1)])]),_:1}),m(i(Rs),{class:"ai-session-path-tooltip",side:"top","side-offset":8},{default:b(()=>[j(f(e.card.session.cwd||i(n)("sessions.board.unknownPath")),1)]),_:1})]),_:1})):W("",!0),e.showWorkspace&&e.showInstance?(h(),C("span",UUe,"·")):W("",!0),e.showInstance?(h(),V(i(Ns),{key:2},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",HUe,[m(i(hr),{size:14,"aria-hidden":"true"}),d("span",null,f(e.instanceDisplayName(e.card.instance)),1)])]),_:1}),m(i(Rs),{class:"ai-session-path-tooltip",side:"top","side-offset":8},{default:b(()=>[j(f(e.card.instance.node?.name||e.card.instance.nodeId),1)]),_:1})]),_:1})):W("",!0),e.showAgent&&u.value?(h(),C(Me,{key:3},[e.showWorkspace||e.showInstance?(h(),C("span",VUe,"·")):W("",!0),m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("span",{class:"ai-board-card-agent","aria-label":p.value},[m(_p,{agent:u.value,size:14},null,8,["agent"])],8,qUe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(p.value),1)]),_:1})]),_:1})],64)):W("",!0)])])]),_:1})]),d("div",jUe,[d("div",WUe,[m(Fu,{class:"ai-board-question",content:i(yc)(e.card.session,e.promptIndex,i(n))},null,8,["content"])]),d("div",KUe,[m(d1,{class:"ai-board-message",content:i(jb)(e.card.session,e.promptIndex,i(n)),"instance-id":e.card.instance.id,"is-latest":e.promptIndex>=e.promptCount-1,"provider-turn-id":e.card.session.activeTurnId,"session-id":e.card.session.id,"turn-id":e.card.session.latestTurnRef?.id},null,8,["content","instance-id","is-latest","provider-turn-id","session-id","turn-id"])]),e.promptCount>1?(h(),C("span",GUe,[d("button",{type:"button","aria-label":i(n)("sessions.actions.previousMessage",{agent:e.card.session.agent}),disabled:e.promptIndex<=0,onClick:y[1]||(y[1]=nn(v=>g.$emit("previousPrompt",e.card),["stop"]))},[m(i(S0),{size:13})],8,YUe),d("small",null,f(e.promptIndex+1)+" / "+f(e.promptCount),1),d("button",{type:"button","aria-label":i(n)("sessions.actions.nextMessage",{agent:e.card.session.agent}),disabled:e.promptIndex>=e.promptCount-1,onClick:y[2]||(y[2]=nn(v=>g.$emit("nextPrompt",e.card),["stop"]))},[m(i(ko),{size:13})],8,QUe)])):W("",!0)]),e.promptIndex>=e.promptCount-1&&!o.value.length?(h(),V(ok,{key:1,class:"ai-board-card-activity","current-tool":e.card.session.currentTool,phase:e.card.session.phase,status:e.card.session.status,summary:e.card.session.summary,"tool-calls-since-last-message":e.card.session.toolCallsSinceLastMessage,tone:"board"},null,8,["current-tool","phase","status","summary","tool-calls-since-last-message"])):W("",!0),o.value.length?(h(),C("span",ZUe,[o.value.includes("allow")?(h(),C("button",{key:0,type:"button",disabled:e.approvalBusyKey===a(e.card,"allow"),title:i(n)("sessions.actions.allow"),onClick:y[3]||(y[3]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"allow"),["stop"]))},[m(i(Qs),{size:13}),d("span",null,f(i(n)("sessions.actions.allow")),1)],8,XUe)):W("",!0),o.value.includes("skip")?(h(),C("button",{key:1,type:"button",disabled:e.approvalBusyKey===a(e.card,"skip"),title:i(n)("sessions.actions.skip"),onClick:y[4]||(y[4]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"skip"),["stop"]))},[m(i(Y2),{size:13}),d("span",null,f(i(n)("sessions.actions.skip")),1)],8,JUe)):W("",!0),o.value.includes("deny")?(h(),C("button",{key:2,type:"button",disabled:e.approvalBusyKey===a(e.card,"deny"),title:i(n)("sessions.actions.deny"),onClick:y[5]||(y[5]=nn(v=>g.$emit("resolveApproval",e.card.instance,e.card.session,"deny"),["stop"]))},[m(i($o),{size:13}),d("span",null,f(i(n)("sessions.actions.deny")),1)],8,eHe)):W("",!0)])):W("",!0)],40,DUe)),[[i(K3),{target:".ai-board-preview-field-assistant",revision:e.promptIndex}]])]),_:1}),m(_N,{"bound-trigger-count":e.boundTriggers(e.card).length,"has-app-session":!!e.card.session.appSessionId,"can-open-app":!!(e.card.session.appSessionId||e.card.session.actions?.openApp),"can-fork":e.card.session.actions?.fork===!0,"can-rename":e.card.session.actions?.rename===!0,"is-forking":l.value,"is-stopping-app-session":r.value,"session-id":e.card.session.id,"session-name":e.card.session.title||i(yc)(e.card.session,void 0,i(n))||e.card.session.id,"session-path":e.card.session.cwd,"is-trigger-bound":v=>e.isTriggerBound(e.card,v),"is-trigger-busy":v=>e.triggerBusyKey===e.triggerActionKey(e.card,v),"short-hash":e.shortHash,"story-target":c.value,"trigger-templates":e.triggerTemplates,onCloseSession:y[9]||(y[9]=v=>g.$emit("stopAppSession",e.card)),onOpenApp:y[10]||(y[10]=v=>g.$emit("openAiSessionApp",e.card.instance,e.card.session)),onRenameSession:y[11]||(y[11]=v=>g.$emit("renameSession",e.card)),onForkSession:y[12]||(y[12]=v=>g.$emit("forkSession",e.card,v)),onStoryAssigned:y[13]||(y[13]=(v,w)=>g.$emit("storyAssigned",e.card,v,w)),onStoryAssignFailed:y[14]||(y[14]=(v,w)=>g.$emit("storyAssignFailed",e.card,v,w)),onToggleTrigger:y[15]||(y[15]=v=>g.$emit("toggleTrigger",e.card,v))},null,8,["bound-trigger-count","has-app-session","can-open-app","can-fork","can-rename","is-forking","is-stopping-app-session","session-id","session-name","session-path","is-trigger-bound","is-trigger-busy","short-hash","story-target","trigger-templates"])]),_:1}))}}),FL=kn(tHe,[["__scopeId","data-v-61a5c80d"]]),Ds=st({__name:"Dialog",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=ri(e,t);return(a,r)=>(h(),V(i(vz),oa(Ma(i(o))),{default:b(()=>[gn(a.$slots,"default")]),_:3},16))}}),rf=st({__name:"DialogClose",props:{asChild:{type:Boolean},as:{}},setup(e){const n=oc(e);return(s,o)=>(h(),V(i(M8),oa(Ma(i(n))),{default:b(()=>[gn(s.$slots,"default")]),_:3},16))}}),Ls=st({__name:"DialogContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},overlayClass:{type:[Boolean,null,String,Object,Array]},style:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=Xs(n,"class","overlayClass","style"),a=ri(o,s);return(r,l)=>(h(),V(i(yz),null,{default:b(()=>[m(i(bz),{class:At(i(bs)("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n.overlayClass))},null,8,["class"]),m(i(kz),Un(i(a),{style:[{maxHeight:"calc(100dvh - 100px)"},n.style],class:i(bs)("fixed left-1/2 top-1/2 z-50 grid w-full max-w-lg -translate-x-1/2 -translate-y-1/2 gap-4 border bg-background p-4 text-foreground shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",n.class)}),{default:b(()=>[gn(r.$slots,"default")]),_:3},16,["style","class"])]),_:3}))}}),Vs=st({__name:"DialogDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),V(i(wz),{class:At(i(bs)("text-sm text-muted-foreground",t.class))},{default:b(()=>[gn(n.$slots,"default")]),_:3},8,["class"]))}}),eo=st({__name:"DialogFooter",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),C("div",{class:At(i(bs)("flex flex-col-reverse [&_button]:h-8 [&_button]:rounded-md [&_button]:px-3 [&_button]:py-0 [&_button]:text-xs sm:flex-row sm:justify-end sm:gap-2",t.class))},[gn(n.$slots,"default")],2))}}),Gs=st({__name:"DialogHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),C("div",{class:At(i(bs)("flex flex-col space-y-1.5 text-center sm:text-left",t.class))},[gn(n.$slots,"default")],2))}}),$s=st({__name:"DialogTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(e){const t=e;return(n,s)=>(h(),V(i(Sz),{class:At(i(bs)("text-lg font-semibold leading-none tracking-tight",t.class))},{default:b(()=>[gn(n.$slots,"default")]),_:3},8,["class"]))}}),nHe=st({__name:"DialogTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const n=oc(e);return(s,o)=>(h(),V(i(Rte),oa(Ma(i(n))),{default:b(()=>[gn(s.$slots,"default")]),_:3},16))}}),sHe={for:"ai-session-title"},oHe={key:0,class:"ai-session-rename-error",role:"alert"},iHe=st({__name:"AiSessionRenameDialog",props:{instanceId:{},open:{type:Boolean},session:{}},emits:["renamed","update:open"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(""),r=D(""),l=D(""),c=D(!1),u=D(""),p=E(()=>a.value.trim()),g=E(()=>!c.value&&p.value.length<=120&&p.value!==r.value);ze(()=>[n.open,n.session?.id],([w])=>{!w||!n.session||(r.value=n.session.title?.trim()||"",a.value=r.value,l.value=sa(),u.value="",c.value=!1)},{immediate:!0});function y(w){c.value||s("update:open",w)}async function v(){const w=n.session;if(!(!w||!g.value)){c.value=!0,u.value="";try{const k=await mIe(n.instanceId,w.id,{title:p.value,expectedTitle:r.value,clientRequestId:l.value});s("renamed",k.title),s("update:open",!1)}catch(k){u.value=mn(k,o,o("sessions.rename.failed"))}finally{c.value=!1}}}return(w,k)=>(h(),V(i(Ds),{open:e.open,"onUpdate:open":y},{default:b(()=>[m(i(Ls),{class:"ai-session-rename-dialog"},{default:b(()=>[m(i(Gs),null,{default:b(()=>[m(i($s),null,{default:b(()=>[j(f(i(o)("sessions.rename.title")),1)]),_:1}),m(i(Vs),null,{default:b(()=>[j(f(i(o)("sessions.rename.description")),1)]),_:1})]),_:1}),d("form",{class:"ai-session-rename-form",onSubmit:nn(v,["prevent"])},[d("label",sHe,f(i(o)("sessions.rename.label")),1),m(i(Us),{id:"ai-session-title",modelValue:a.value,"onUpdate:modelValue":k[0]||(k[0]=A=>a.value=A),disabled:c.value,maxlength:120,autocomplete:"off",autofocus:""},null,8,["modelValue","disabled"]),u.value?(h(),C("p",oHe,f(u.value),1)):W("",!0),m(i(eo),null,{default:b(()=>[m(i(Re),{type:"button",variant:"outline",disabled:c.value,onClick:k[1]||(k[1]=A=>y(!1))},{default:b(()=>[j(f(i(o)("common.actions.cancel")),1)]),_:1},8,["disabled"]),m(i(Re),{type:"submit",disabled:!g.value},{default:b(()=>[c.value?(h(),V(i(ws),{key:0,class:"spin",size:14})):W("",!0),d("span",null,f(i(o)("common.actions.save")),1)]),_:1},8,["disabled"])]),_:1})],32)]),_:1})]),_:1},8,["open"]))}}),AR=kn(iHe,[["__scopeId","data-v-85421565"]]),Ur=st({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(e,{emit:t}){const o=ri(e,t);return(a,r)=>(h(),V(i(Mte),oa(Ma(i(o))),{default:b(()=>[gn(a.$slots,"default")]),_:3},16))}}),Hr=st({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},memoDependencies:{},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},dir:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{type:[Boolean,null,String,Object,Array]}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(e,{emit:t}){const n=e,s=t,o=Xs(n,"class"),a=ri(o,s);return(r,l)=>(h(),V(i($te),null,{default:b(()=>[m(i(Ote),Un({...i(a),...r.$attrs},{class:i(bs)("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",n.class)}),{default:b(()=>[gn(r.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),Dl=st({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(e){const t=e;return(n,s)=>(h(),V(i(Pte),oa(Ma(t)),{default:b(()=>[gn(n.$slots,"default")]),_:3},16))}}),Od=st({__name:"Textarea",props:{class:{type:[Boolean,null,String,Object,Array]},defaultValue:{},modelValue:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,o=pz(n,"modelValue",t,{passive:!0,defaultValue:n.defaultValue});return(a,r)=>fi((h(),C("textarea",{"onUpdate:modelValue":r[0]||(r[0]=l=>Sl(o)?o.value=l:null),class:At(i(bs)("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",n.class))},null,2)),[[Fr,i(o)]])}}),PZ=[{name:"review",descriptionKey:"sessions.composer.review",requiresIdle:!0},{name:"rename",descriptionKey:"sessions.composer.rename",argumentHintKey:"sessions.composer.threadName"},{name:"goal",descriptionKey:"sessions.composer.goal",argumentHintKey:"sessions.composer.objective"},{name:"compact",descriptionKey:"sessions.composer.compact",requiresIdle:!0}];function DZ(e,t,n){if(!n||!e.startsWith(n)||t<n.length||t>e.length)return;const s=e.slice(n.length,t);if(/\s/.test(s))return;let o=t;for(;o<e.length&&!/\s/.test(e[o]||"");)o+=1;return{start:0,end:o,query:s}}function aHe(e){const t=e.trim().toLocaleLowerCase();return PZ.filter(n=>!t||n.name.startsWith(t))}function rHe(e,t,n,s){const o=DZ(e,t,n);if(!o)return;const a=`${n}${s.name}${s.argumentHintKey?" ":""}`;return{value:`${a}${e.slice(o.end)}`,cursor:a.length}}function lHe(e,t,n){if(n!=="codex"||!t||!e.startsWith(t))return;const s=e.slice(t.length),o=s.search(/\s/),a=o<0?s:s.slice(0,o);if(!PZ.some(l=>l.name===a))return;const r=o<0?"":s.slice(o).trim();return{command:a,...r?{argument:r}:{}}}const SI="task-handoff.control-plane.ai-session-permissions",cHe=720*60*60*1e3,CR=as({}),xR=new Set;function Ty(e,t){return`session:${encodeURIComponent(e)}:${encodeURIComponent(t)}`}function zL(e,t){return`history:${encodeURIComponent(e)}:${encodeURIComponent(t)}`}function LZ(e,t=Date.now()){return TR(t)[e]?.permissionMode}function _I(e,t,n=Date.now()){if(!e.trim())return;CR[e]=t,xR.add(e);const s=ER();if(!s)return;const o=TR(n,s);o[e]={permissionMode:t,updatedAt:n},NR(s,o)}function uHe(e,t=Date.now()){if(!e.trim())return;delete CR[e],xR.delete(e);const n=ER();if(!n)return;const s=TR(t,n);delete s[e],NR(n,s)}function dHe(e,t){const n=E(()=>Qt(e).trim()),s=E(()=>Qt(t));return ze([n,s],([o,a])=>{if(!o||xR.has(o))return;const r=LZ(o);_I(o,r||a)},{immediate:!0}),E({get:()=>CR[n.value]||s.value,set:o=>_I(n.value,o)})}function ER(){if(!(typeof window>"u"))try{return window.localStorage}catch{return}}function TR(e,t=ER()){if(!t)return{};let n;try{n=JSON.parse(t.getItem(SI)||"{}")}catch{return UL(t),{}}if(!n||typeof n!="object"||Array.isArray(n))return UL(t),{};const s={};let o=!1;for(const[a,r]of Object.entries(n)){const l=r&&typeof r=="object"&&!Array.isArray(r)?r:void 0;if(!l||!pHe(l.permissionMode)||!Number.isFinite(l.updatedAt)||e-l.updatedAt>=cHe){o=!0;continue}s[a]={permissionMode:l.permissionMode,updatedAt:l.updatedAt}}return o&&NR(t,s),s}function NR(e,t){try{Object.keys(t).length?e.setItem(SI,JSON.stringify(t)):e.removeItem(SI)}catch{}}function UL(e){try{e.removeItem(SI)}catch{}}function pHe(e){return e==="ask"||e==="auto-review"||e==="full-access"}function HL(e){return e.modelUpstreamName||e.modelName}function Cd(e,t){if(e.modelEntityId&&t.modelEntityId&&e.modelEntityId!==t.modelEntityId)return!1;const n=HL(e),s=HL(t);return!n||!s?!1:n===s||e.modelName===t.modelName}const xS=new WeakMap;function lb(e){const t=Math.max(0,e.scrollWidth-e.clientWidth);e.dataset.overflowStart=String(e.scrollLeft>1),e.dataset.overflowEnd=String(e.scrollLeft<t-1)}function VL(e,t){const n=new Set(Array.from(e.children));for(const s of t.children)n.has(s)||t.observer.unobserve(s);for(const s of n)t.children.has(s)||t.observer.observe(s);t.children=n}const BZ={mounted(e){if(typeof ResizeObserver<"u"){const t={observer:new ResizeObserver(()=>lb(e)),children:new Set};t.observer.observe(e),VL(e,t),xS.set(e,t)}lb(e)},updated(e){vn(()=>{const t=xS.get(e);t&&VL(e,t),lb(e)})},unmounted(e){xS.get(e)?.observer.disconnect(),xS.delete(e)}};function II(e){e.currentTarget instanceof HTMLElement&&lb(e.currentTarget)}function AI(e){const t=e.currentTarget instanceof HTMLElement?e.currentTarget:void 0;if(!t||Math.abs(e.deltaX)>=Math.abs(e.deltaY)||t.scrollWidth<=t.clientWidth)return;const n=Math.max(0,Math.min(t.scrollWidth-t.clientWidth,t.scrollLeft+e.deltaY));n!==t.scrollLeft&&(e.preventDefault(),t.scrollLeft=n,lb(t))}const fHe={class:"ai-session-image-preview__toolbar"},mHe={"aria-live":"polite"},hHe=["src","alt"],qL=.5,jL=3,Zv=.25,WL=.2,gHe=st({__name:"AiSessionImagePreview",props:{open:{type:Boolean},src:{},alt:{},copyable:{type:Boolean}},emits:["update:open","copy"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a={position:"fixed",inset:"0",left:"0",top:"0",width:"100vw",maxWidth:"none",height:"100dvh",transform:"none",overflow:"hidden",border:"0",borderRadius:"0",background:"transparent",boxShadow:"none",padding:"0",animation:"none",transition:"none"},r=D(1),l=D(0),c=D(0),u=D(0),p=D(0),g=D(0),y=D(0),v=D(!1);let w,k=0,A=0,_=0,S=0,I=!1,x=!1;const T=E(()=>{if(!l.value||!c.value||!u.value||!p.value)return;const ie=Math.min(1,u.value*.92/l.value,p.value*.86/c.value);return{width:l.value*ie,height:c.value*ie}}),R=E(()=>T.value?{width:T.value.width*r.value,height:T.value.height*r.value}:void 0),M=E(()=>R.value?{width:`${R.value.width}px`,height:`${R.value.height}px`,left:`${u.value/2+g.value}px`,top:`${p.value/2+y.value}px`}:void 0);ze(()=>[n.open,n.src],()=>{F(),vn($)}),xo(()=>{$(),window.addEventListener("resize",O)}),qs(()=>window.removeEventListener("resize",O));function $(){typeof window>"u"||(u.value=window.innerWidth,p.value=window.innerHeight)}function O(){$(),z()}function F(){r.value=1,g.value=0,y.value=0,l.value=0,c.value=0,v.value=!1,w=void 0}function B(){s("update:open",!1)}function N(){const ie=R.value;if(!ie)return;const le=ie.width*WL,oe=ie.height*WL;return{minX:le-ie.width/2-u.value/2,maxX:u.value/2-le+ie.width/2,minY:oe-ie.height/2-p.value/2,maxY:p.value/2-oe+ie.height/2}}function z(ie=g.value,le=y.value){const oe=N();oe&&(g.value=Math.min(oe.maxX,Math.max(oe.minX,ie)),y.value=Math.min(oe.maxY,Math.max(oe.minY,le)))}function H(ie,le=u.value/2,oe=p.value/2){const ae=r.value,te=Math.min(jL,Math.max(qL,ae+ie));if(te===ae)return;const Z=te/ae,Ce=u.value/2+g.value,Fe=p.value/2+y.value,Pe=le-(le-Ce)*Z,fe=oe-(oe-Fe)*Z;r.value=te,z(Pe-u.value/2,fe-p.value/2)}function U(ie){const le=ie.currentTarget;l.value=le.naturalWidth,c.value=le.naturalHeight,g.value=0,y.value=0}function L(ie){ie.button!==0||!(ie.target instanceof HTMLImageElement)||(ie.preventDefault(),v.value=!0,I=!1,w=ie.pointerId,k=ie.clientX,A=ie.clientY,_=g.value,S=y.value,ie.currentTarget.setPointerCapture?.(ie.pointerId))}function K(ie){if(!v.value||ie.pointerId!==w)return;const le=ie.clientX-k,oe=ie.clientY-A;(Math.abs(le)>3||Math.abs(oe)>3)&&(I=!0),z(_+le,S+oe)}function G(ie){ie.pointerId===w&&(ie.currentTarget.releasePointerCapture?.(ie.pointerId),v.value=!1,w=void 0,I&&(x=!0,window.setTimeout(()=>{x=!1},0)))}function Q(ie){if(x){x=!1;return}B()}function J(ie){ie.preventDefault(),H(ie.deltaY<0?Zv:-Zv,ie.clientX,ie.clientY)}function ee(ie){ie.key==="+"||ie.key==="="?(ie.preventDefault(),H(Zv)):ie.key==="-"&&(ie.preventDefault(),H(-Zv))}return(ie,le)=>(h(),V(i(Ds),{open:e.open,"onUpdate:open":le[4]||(le[4]=oe=>s("update:open",oe))},{default:b(()=>[m(i(Ls),{class:"ai-session-image-preview",style:a,onKeydown:ee},{default:b(()=>[m(i($s),{class:"sr-only"},{default:b(()=>[j(f(e.alt),1)]),_:1}),d("div",fHe,[m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("sessions.composer.zoomOut"),"aria-label":i(o)("sessions.composer.zoomOut"),disabled:r.value<=qL,onClick:le[0]||(le[0]=oe=>H(-Zv))},{default:b(()=>[m(i(xU),{size:18})]),_:1},8,["title","aria-label","disabled"]),d("span",mHe,f(Math.round(r.value*100))+"%",1),m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("sessions.composer.zoomIn"),"aria-label":i(o)("sessions.composer.zoomIn"),disabled:r.value>=jL,onClick:le[1]||(le[1]=oe=>H(Zv))},{default:b(()=>[m(i(Hs),{size:18})]),_:1},8,["title","aria-label","disabled"]),le[5]||(le[5]=d("i",{"aria-hidden":"true"},null,-1)),m(i(Re),{type:"button",variant:"ghost",size:"icon-sm",title:i(o)("common.actions.close"),"aria-label":i(o)("common.actions.close"),onClick:B},{default:b(()=>[m(i($o),{size:19})]),_:1},8,["title","aria-label"])]),d("div",{class:At(["ai-session-image-preview__stage",{"is-dragging":v.value}]),onClick:Q,onPointerdown:L,onPointermove:K,onPointerup:G,onPointercancel:G,onWheel:J},[e.src?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("img",{src:e.src,alt:e.alt,style:Qn(M.value),draggable:"false",onLoad:U,onDragstart:le[2]||(le[2]=nn(()=>{},["prevent"]))},null,44,hHe)]),_:1}),e.copyable?(h(),V(i(Bc),{key:0},{default:b(()=>[m(i(Ts),{onSelect:le[3]||(le[3]=oe=>s("copy"))},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(o)("sessions.composer.copyImage")),1)]),_:1})]),_:1})):W("",!0)]),_:1})):W("",!0)],34)]),_:1})]),_:1},8,["open"]))}}),FZ=kn(gHe,[["__scopeId","data-v-e5014a81"]]),CI=Dd.options;function zZ(e){return e==="codex"?CI:CI.filter(t=>t!=="ultra")}const vHe={class:"ai-session-model-menu__list"},yHe={class:"ai-session-model-menu__copy"},bHe={key:0},kHe={class:"ai-session-model-menu__copy"},wHe={class:"ai-session-model-menu__copy"},SHe={class:"ai-session-model-menu__copy"},_He={key:0},IHe={class:"ai-session-model-menu__copy"},AHe=st({__name:"AiSessionModelMenu",props:{modelGroups:{},modelSelection:{},reasoningEffort:{},reasoningEffortEnabled:{type:Boolean},agent:{},side:{default:"top"},align:{default:"end"},collisionPadding:{default:12},sideOffset:{default:8}},emits:["selectModel","selectReasoningEffort"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=E(()=>zZ(n.agent));function r(u){return!!n.modelSelection&&Cd(u,n.modelSelection)}function l(u){const p=n.modelSelection;if(!(!p||p.modelEntityId!==u.modelEntityId))return u.models.find(g=>Cd(g,p))?.modelName??p.modelName}function c(u){const p=l(u);if(p)return p;const g=u.models[0]?.modelName||"";return u.models.length>1?o("sessions.composer.modelGroupSummary",{model:g,count:u.models.length}):g}return(u,p)=>(h(),V(i(Zs),{class:"ai-session-model-menu",side:e.side,align:e.align,"collision-padding":e.collisionPadding,"side-offset":e.sideOffset},{default:b(()=>[m(i(Zn),{type:"auto",horizontal:!1,class:"ai-session-model-menu__scroll"},{default:b(()=>[d("div",vHe,[(h(!0),C(Me,null,ft(e.modelGroups,g=>(h(),C(Me,{key:g.modelEntityId},[g.models.length>1?(h(),V(i(Gg),{key:0},{default:b(()=>[m(i(Qg),{class:At(["ai-session-model-menu__item ai-session-model-menu__provider-item",{"ai-session-model-menu__item--selected":l(g)}])},{default:b(()=>[m(i(T$),{class:"ai-session-model-menu__icon",size:17}),d("span",yHe,[d("strong",null,f(g.providerName),1),c(g)?(h(),C("small",bHe,f(c(g)),1)):W("",!0)])]),_:2},1032,["class"]),m(i(Yg),{class:"ai-session-model-menu ai-session-model-menu--nested","collision-padding":e.collisionPadding},{default:b(()=>[(h(!0),C(Me,null,ft(g.models,y=>(h(),V(i(Vn),{key:`${y.modelEntityId}:${y.modelName}`,class:At(["ai-session-model-menu__item",{"ai-session-model-menu__item--selected":r(y)}]),onSelect:v=>s("selectModel",{modelEntityId:y.modelEntityId,modelName:y.modelName,modelUpstreamName:y.modelUpstreamName})},{default:b(()=>[d("span",kHe,[d("strong",null,f(y.modelName),1)]),r(y)?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))),128))]),_:2},1032,["collision-padding"])]),_:2},1024)):(h(),V(i(Vn),{key:1,class:At(["ai-session-model-menu__item ai-session-model-menu__provider-item",{"ai-session-model-menu__item--selected":r(g.models[0])}]),onSelect:y=>s("selectModel",{modelEntityId:g.models[0].modelEntityId,modelName:g.models[0].modelName,modelUpstreamName:g.models[0].modelUpstreamName})},{default:b(()=>[m(i(T$),{class:"ai-session-model-menu__icon",size:17}),d("span",wHe,[d("strong",null,f(g.providerName),1),d("small",null,f(g.models[0].modelName),1)]),r(g.models[0])?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))],64))),128)),e.reasoningEffortEnabled?(h(),C(Me,{key:0},[e.modelGroups.length?(h(),V(i(mi),{key:0})):W("",!0),m(i(Gg),null,{default:b(()=>[m(i(Qg),{class:"ai-session-model-menu__item ai-session-model-menu__provider-item"},{default:b(()=>[m(i(Bie),{class:"ai-session-model-menu__icon",size:17}),d("span",SHe,[d("strong",null,f(i(o)("sessions.composer.reasoningEffort")),1),e.reasoningEffort?(h(),C("small",_He,f(e.reasoningEffort),1)):W("",!0)])]),_:1}),m(i(Yg),{class:"ai-session-model-menu ai-session-model-menu--nested ai-session-reasoning-menu","collision-padding":e.collisionPadding},{default:b(()=>[(h(!0),C(Me,null,ft(a.value,g=>(h(),V(i(Vn),{key:g,class:At(["ai-session-model-menu__item",{"ai-session-model-menu__item--selected":e.reasoningEffort===g}]),onSelect:y=>s("selectReasoningEffort",g)},{default:b(()=>[d("span",IHe,[d("strong",null,f(g),1)]),e.reasoningEffort===g?(h(),V(i(Qs),{key:0,class:"ai-session-model-menu__check",size:16})):W("",!0)]),_:2},1032,["class","onSelect"]))),128))]),_:1},8,["collision-padding"])]),_:1})],64)):W("",!0)])]),_:1})]),_:1},8,["side","align","collision-padding","side-offset"]))}}),UZ=kn(AHe,[["__scopeId","data-v-48d35e43"]]),CHe=["aria-busy"],xHe=["title","aria-label","onClick"],EHe=["alt","src"],THe={class:"ai-session-composer__file-icon"},NHe=["title"],RHe=["title"],MHe=["aria-label","aria-valuenow"],$He=["title","aria-label","disabled","onClick"],OHe={class:"ai-session-composer__input-anchor"},PHe={key:0,class:"ai-session-mention-popover__state"},DHe=["aria-label"],LHe={class:"ai-session-mention-popover__group-label"},BHe=["disabled","aria-selected","onMouseenter","onClick"],FHe={class:"ai-session-mention-popover__icon"},zHe={class:"ai-session-mention-popover__copy"},UHe={key:1,class:"ai-session-mention-popover__state"},HHe={key:2,class:"ai-session-mention-popover__state ai-session-mention-popover__state--error"},VHe={key:3,class:"ai-session-mention-popover__state"},qHe=["aria-label"],jHe={class:"ai-session-mention-popover__group-label"},WHe=["aria-selected","onMouseenter","onClick"],KHe={class:"ai-session-mention-popover__icon"},GHe=["src"],YHe={class:"ai-session-mention-popover__copy"},QHe={class:"ai-session-composer__toolbar"},ZHe={key:0,class:"ai-session-composer__editing"},XHe=["title","aria-label","disabled"],JHe={key:1,class:"ai-session-composer__leading"},eVe=["title","aria-label","disabled"],tVe=["data-danger","disabled","aria-label","title"],nVe={class:"ai-session-permission-menu__copy"},sVe={class:"ai-session-composer__actions"},oVe=["title","aria-label","disabled"],iVe=["aria-label"],aVe=["aria-label","disabled"],rVe=["disabled","aria-label","aria-busy"],lVe=["data-action","disabled","title","aria-label"],cVe=6,uVe=20*1024*1024,dVe=40*1024*1024,pVe=st({__name:"AiSessionComposer",props:{modelValue:{},attachments:{},busy:{type:Boolean},disabled:{type:Boolean},canInterrupt:{type:Boolean},placeholder:{},mentionBindings:{},mentionContext:{},maxFileAttachmentBytes:{},mentionTrigger:{},commandTrigger:{},sessionBusy:{type:Boolean},provider:{},permissionKey:{},permissionMode:{},defaultPermissionMode:{},permissionModes:{},editingLabel:{},modelGroups:{},modelSelection:{},modelSelectionPending:{type:Boolean},modelSelectionEnabled:{type:Boolean},reasoningEffort:{},reasoningEffortEnabled:{type:Boolean},reasoningEffortPending:{type:Boolean},attachmentsDisabled:{type:Boolean},submitKind:{},submitLabel:{},submitHidden:{type:Boolean}},emits:["update:modelValue","update:attachments","update:mentionBindings","update:permissionMode","run","steer","command","cancelEdit","selectModel","openModelSettings","selectReasoningEffort"],setup(e,{expose:t,emit:n}){const s=e,o=n,{locale:a,t:r}=An(),l=E({get:()=>s.modelValue,set:Ve=>o("update:modelValue",String(Ve))}),c=new Set(["image/bmp","image/gif","image/jpeg","image/png","image/webp"]),u=D(),p=D(),g=E(()=>s.attachments||[]),y=E(()=>s.mentionBindings||[]),v=E(()=>s.mentionTrigger||"@"),w=E(()=>s.commandTrigger||"/"),k=$Ae(()=>s.mentionContext,r),A=D(0),_=D(!1),S=D(""),I=D(0),x=E(()=>aHe(S.value)),T=D(),R=D(0),M=E(()=>!!s.editingLabel),$=E(()=>!M.value&&!s.busy&&(k.open.value||_.value)),O=D("20px"),F=["plugin","skill","file","directory","app"],B=E(()=>F.map(Ve=>({kind:Ve,label:r(`sessions.composer.${Ve==="plugin"?"plugins":Ve==="skill"?"skills":Ve==="file"?"files":Ve==="directory"?"directories":"apps"}`),candidates:k.candidates.value.filter(nt=>nt.kind===Ve),diagnostics:k.diagnostics.value.filter(nt=>nt.category===(Ve==="skill"?"skills":Ve==="plugin"?"plugins":Ve==="app"?"apps":"files"))})).filter(Ve=>Ve.candidates.length||Ve.diagnostics.length)),N=E(()=>_.value?x.value.length?30+x.value.length*36:40:B.value.length?B.value.reduce((Ve,nt)=>Ve+30+nt.candidates.length*36+nt.diagnostics.length*40,0):40),z=E(()=>s.modelValue.trim().length>0||g.value.length>0),H=E(()=>M.value||s.submitKind==="save"?"save":z.value||!s.canInterrupt?"send":"stop"),U=E(()=>!s.disabled&&(M.value?s.modelValue.trim().length>0:z.value||!s.busy&&s.canInterrupt)),L=E(()=>!M.value&&s.sessionBusy&&z.value),K=E(()=>s.busy?H.value==="stop"?r("sessions.composer.stopping"):H.value==="save"?r("sessions.composer.saving"):r("sessions.composer.sending"):s.submitLabel?s.submitLabel:H.value==="stop"?r("sessions.composer.stopTurn"):H.value==="save"?r("sessions.composer.saveQueuedMessage"):r("sessions.composer.send")),G=E(()=>!!(M.value||s.busy||s.modelValue.length||s.mentionContext?.provider!=="codex")),Q=dHe(()=>s.permissionKey||s.mentionContext?.sessionId||"",()=>s.defaultPermissionMode||"ask"),J=E({get:()=>s.permissionMode??Q.value,set:Ve=>{s.permissionMode!==void 0?o("update:permissionMode",Ve):Q.value=Ve}}),ee=E(()=>[{value:"ask",label:r("sessions.permission.ask"),description:r("sessions.composer.askDescription"),icon:hre},{value:"auto-review",label:r("sessions.permission.autoReview"),description:r("sessions.composer.autoReviewDescription"),icon:s6},{value:"full-access",label:r("sessions.permission.fullAccess"),description:r("sessions.composer.fullAccessDescription"),icon:n4,danger:!0}].filter(nt=>(s.permissionModes||[]).includes(nt.value))),ie=E(()=>ee.value.find(Ve=>Ve.value===J.value)||ee.value[0]),le=E(()=>s.modelGroups||[]),oe=E(()=>le.value.flatMap(Ve=>Ve.models)),ae=E(()=>s.modelSelection||oe.value[0]),te=E(()=>{const Ve=ae.value;return Ve?oe.value.find(nt=>Cd(nt,Ve)):void 0}),Z=E(()=>te.value?.modelName||ae.value?.modelName||(s.reasoningEffortEnabled?r("sessions.composer.reasoningEffort"):void 0)||r("sessions.composer.modelSelectionUnavailable")),Ce=E(()=>te.value?.providerName||r("sessions.composer.selectionNotSet")),Fe=D(),Pe=D(!1),fe=D(!1),be=E(()=>!!(s.busy||s.sessionBusy||s.modelSelectionPending||s.reasoningEffortPending||oe.value.length<=1&&!s.reasoningEffortEnabled)),ue=E(()=>oe.value.length===0&&!s.reasoningEffortEnabled),ye=E(()=>ue.value&&s.modelSelectionEnabled===!1);function ke(Ve){Ve instanceof PointerEvent&&Ve.pointerType==="touch"||Pe.value||(fe.value=!0)}function ve(){fe.value=!1}function xe(Ve){Pe.value=Ve,Ve&&ve()}function se(){const Ve=de();if(!Ve)return;const nt=u.value,Ut=nt?He(nt):0,rn=Number.parseFloat(getComputedStyle(Ve).minHeight)||42,$n=nt?Array.from(nt.children).reduce((Ke,ht)=>ht===Ve||ht.contains(Ve)?Ke:Ke+ht.getBoundingClientRect().height,0):0,xs=Ut>0?Math.max(rn,Ut-$n):Number.POSITIVE_INFINITY;Ve.style.height="auto";const tt=Math.min(Ve.scrollHeight,xs);Ve.style.height=`${tt}px`,Ve.style.overflowY=Ve.scrollHeight>xs?"auto":"hidden"}function de(){const Ve=p.value;return Ve instanceof HTMLTextAreaElement?Ve:Ve?.$el instanceof HTMLTextAreaElement?Ve.$el:void 0}function De(){vn(()=>de()?.focus())}t({focus:De});let me=!1;function Be(){me=!0,vn(()=>{!s.busy&&me&&(me=!1,de()?.focus())})}function He(Ve){const nt=Number.parseFloat(getComputedStyle(Ve).maxHeight);return Number.isFinite(nt)&&nt>0?nt:Ve.scrollHeight>Ve.clientHeight?Ve.getBoundingClientRect().height:0}ze(()=>s.modelValue,()=>{vn(se)},{immediate:!0}),ze(g,(Ve,nt)=>{for(const Ut of nt||[])Ut.previewUrl&&Ut.source.type!=="retained"&&!Ve.some(rn=>rn.id===Ut.id)&&URL.revokeObjectURL(Ut.previewUrl);T.value&&!Ve.some(Ut=>Ut.id===T.value?.id)&&Kt(),vn(se)});function Le(Ve){return Ve.type.startsWith("image/")||/\.(?:bmp|gif|jpe?g|png|webp)$/i.test(Ve.name)?"image":"file"}function Ee(Ve,nt,Ut=new Set){const rn=[];let xs=g.value.reduce((tt,Ke)=>tt+(Ke.source.type==="inline"?Ke.size:0),0);for(const tt of Ve){const Ke=Le(tt),ht=tt.type||(Ke==="image"?"image/png":"application/octet-stream"),Ot=nt.has(tt);if(Ke==="image"&&!c.has(ht)){It(r("sessions.composer.supportedImages"),"error");continue}if(tt.size<=0){It(r("sessions.composer.emptyFile"),"error");continue}if(!Ot&&Ke==="image"&&tt.size>uVe){It(r("sessions.composer.imageTooLarge"),"error");continue}if(!Ot&&Ke==="file"&&tt.size>=(s.maxFileAttachmentBytes||uh)){It(Ut.has(tt)?r("sessions.composer.runtimePathOutside"):s.mentionContext?.runtimeType==="local"?r("sessions.composer.browserPathUnavailable"):r("sessions.composer.fileTooLarge"),"error");continue}if(g.value.length+rn.length>=cVe){It(r("sessions.composer.tooManyAttachments"),"error");continue}if(!Ot&&xs+tt.size>dVe){It(r("sessions.composer.totalTooLarge"),"error");continue}Ot||(xs+=tt.size),rn.push(tt)}return rn}async function kt(Ve,nt=new Map){if(s.busy)return;const Ut=window.taskHandoffDesktop,rn=new Map,$n=new Set;if(s.mentionContext?.runtimePathAccess==="desktop-local"&&Ut?.getPathForFile)for(const tt of Ve)try{const Ke=await Promise.resolve(Ut.getPathForFile(tt));Ke&&ot(Ke,s.mentionContext.cwd)?rn.set(tt,Ke):Ke&&$n.add(tt)}catch{}const xs=Ee(Ve,new Set(rn.keys()),$n);xs.length&&Promise.all(xs.map(tt=>vt(tt,rn.get(tt),nt.get(tt)))).then(tt=>{o("update:attachments",[...g.value,...tt])})}function ot(Ve,nt){const Ut=We(Ve),rn=We(nt);return!!(Ut&&rn&&(rn==="/"||Ut===rn||Ut.startsWith(`${rn}/`)))}function We(Ve){if(!Ve.startsWith("/"))return"";const nt=[];for(const Ut of Ve.split("/"))!Ut||Ut==="."||(Ut===".."?nt.pop():nt.push(Ut));return`/${nt.join("/")}`}function vt(Ve,nt,Ut){const rn=Le(Ve),$n={id:`local_${Date.now()}_${Math.random().toString(16).slice(2)}`,kind:rn,name:Ve.name||(rn==="image"?"image.png":"attachment"),mime:Ve.type||(rn==="image"?"image/png":"application/octet-stream"),size:Ve.size};return nt?Promise.resolve({...$n,source:{type:"runtime-path",path:nt},...rn==="image"?{file:Ve}:{},...rn==="image"?{previewUrl:URL.createObjectURL(Ve)}:{}}):new Promise((xs,tt)=>{const Ke=new FileReader;Ke.addEventListener("load",()=>{xs({...$n,source:{type:"inline"},dataUrl:String(Ke.result||""),file:Ve,textPresentation:Ut})}),Ke.addEventListener("error",()=>tt(Ke.error||new Error(r("sessions.composer.readFailed")))),Ke.readAsDataURL(Ve)})}function ct(Ve){s.busy||o("update:attachments",g.value.filter(nt=>nt.id!==Ve))}function sn(Ve){return ef(Ve,a.value)}function hn(Ve){return r("sessions.composer.textLength",{count:H4e(Ve,a.value,{maximumFractionDigits:0})})}function ns(Ve){Ve.kind==="image"&&(T.value=Ve)}function Kt(){T.value=void 0}function un(Ve){return r("sessions.composer.uploadProgress",{progress:Math.round((Ve.uploadProgress||0)*100)})}async function cn(Ve){const nt=Ve.previewUrl||Ve.dataUrl;if(!nt||!navigator.clipboard?.write||typeof ClipboardItem>"u"){It(r("sessions.composer.copyImageFailed"),"error");return}try{const Ut=await fetch(nt).then($n=>$n.blob()),rn=Ut.type==="image/png"?Ut:await Kn(Ut);await navigator.clipboard.write([new ClipboardItem({"image/png":rn})]),It(r("sessions.composer.imageCopied"),"success")}catch{It(r("sessions.composer.copyImageFailed"),"error")}}async function Kn(Ve){const nt=await createImageBitmap(Ve);try{const Ut=document.createElement("canvas");Ut.width=nt.width,Ut.height=nt.height;const rn=Ut.getContext("2d");if(!rn)throw new Error("Canvas is unavailable.");return rn.drawImage(nt,0,0),await new Promise(($n,xs)=>Ut.toBlob(tt=>{tt?$n(tt):xs(new Error("Image conversion failed."))},"image/png"))}finally{nt.close()}}function Gn(Ve){if(M.value||s.attachmentsDisabled||s.busy)return;const nt=Array.from(Ve.clipboardData?.files||[]);if(nt.length){Ve.preventDefault(),kt(nt);return}const Ut=Ve.clipboardData?.getData("text/plain")||"",rn=ake(Ut,R.value+1,s.maxFileAttachmentBytes||uh);if(rn.disposition==="inline")return;if(Ve.preventDefault(),rn.disposition==="rejected"){It(r("sessions.composer.fileTooLarge"),"error");return}R.value+=1;const $n=new globalThis.File([rn.file.text],rn.file.name,{type:rn.file.mime});kt([$n],new Map([[$n,rn.file.presentation]]))}function Rt(Ve){if(s.attachmentsDisabled){Ve.dataTransfer?.files.length&&Ve.preventDefault();return}if(s.busy||M.value)return;const nt=Array.from(Ve.dataTransfer?.files||[]);nt.length&&(Ve.preventDefault(),kt(nt))}function Ge(){if(!s.submitHidden&&!s.busy&&U.value){Be();const Ve=M.value?void 0:lHe(s.modelValue.trim(),w.value,s.mentionContext?.provider);if(Ve){o("command",Ve);return}o("run",ie.value?.value)}}function Ae(Ve){if(!s.busy&&!Ve.isComposing){if(Ve.key==="Enter"&&Ve.ctrlKey&&!Ve.metaKey&&!Ve.altKey&&!Ve.shiftKey&&L.value){Ve.preventDefault(),Ve.stopPropagation(),o("steer");return}if(Ve.key==="ArrowDown"||Ve.key==="ArrowUp"){Ie(Ve.key==="ArrowDown"?1:-1)&&(Ve.preventDefault(),Ve.stopPropagation());return}if(_.value){const nt=x.value[I.value];if((Ve.key==="Enter"||Ve.key==="Tab")&&nt&&!(s.sessionBusy&&nt.requiresIdle)){Ve.preventDefault(),rt(nt);return}if(Ve.key==="Escape"){Ve.preventDefault(),_.value=!1;return}}if(k.open.value){if((Ve.key==="Enter"||Ve.key==="Tab")&&k.candidates.value[A.value]){Ve.preventDefault(),qe(k.candidates.value[A.value]);return}if(Ve.key==="Escape"){Ve.preventDefault(),k.close();return}}Ve.key!=="Enter"||Ve.shiftKey||Ve.isComposing||s.submitHidden||(Ve.preventDefault(),Ge())}}function Ie(Ve){if(s.busy)return!1;if(_.value){const Ut=x.value.length;return Ut?(I.value=(I.value+Ve+Ut)%Ut,vn(()=>document.querySelector(".ai-session-mention-popover__item--active")?.scrollIntoView({block:"nearest"})),!0):!1}if(!k.open.value)return!1;const nt=k.candidates.value.length;return nt?(A.value=(A.value+Ve+nt)%nt,vn(()=>document.querySelector(".ai-session-mention-popover__item--active")?.scrollIntoView({block:"nearest"})),!0):!1}function Je(Ve){const nt=Ve.target;o("update:mentionBindings",mW(nt.value,y.value)),et(nt.value,nt.selectionStart),se()}function ge(Ve){["ArrowLeft","ArrowRight","Home","End"].includes(Ve.key)&&et()}function et(Ve=s.modelValue,nt=de()?.selectionStart??Ve.length){if(s.busy){k.close(),_.value=!1;return}const Ut=DZ(Ve,nt,w.value);if(Ut&&s.mentionContext?.provider==="codex"){k.close(),_.value=!0,S.value=Ut.query,I.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px";return}_.value=!1;const rn=fW(Ve,nt,v.value);if(!rn){k.close();return}A.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px",k.show(rn.query)}function Yt(){if(G.value)return;const Ve=w.value;o("update:modelValue",Ve),o("update:mentionBindings",[]),k.close(),_.value=!0,S.value="",I.value=0,O.value=u.value?getComputedStyle(u.value).borderRadius:"20px",vn(()=>{const nt=de();nt?.focus(),nt?.setSelectionRange(Ve.length,Ve.length),se()})}function rt(Ve,nt){if(nt?.preventDefault(),s.busy||s.sessionBusy&&Ve.requiresIdle)return;const Ut=de(),rn=rHe(Ut?.value??s.modelValue,Ut?.selectionStart??s.modelValue.length,w.value,Ve);rn&&(o("update:modelValue",rn.value),_.value=!1,vn(()=>{const $n=de();$n?.focus(),$n?.setSelectionRange(rn.cursor,rn.cursor),se()}))}function Vt(Ve){return Ve.name==="review"?Vle:Ve.name==="rename"?br:Ve.name==="goal"?fce:e6}function qe(Ve,nt){if(nt?.preventDefault(),s.busy)return;const Ut=de(),rn=TAe({value:Ut?.value??s.modelValue,cursor:Ut?.selectionStart??s.modelValue.length,trigger:v.value,candidate:Ve,bindings:y.value});rn&&(o("update:modelValue",rn.value),o("update:mentionBindings",rn.bindings),k.close(),vn(()=>{const $n=de();$n?.focus(),$n?.setSelectionRange(rn.cursor,rn.cursor),se()}))}function Xe(Ve){return Ve.kind==="plugin"?Ole:Ve.kind==="skill"?Dce:Ve.kind==="file"?Z2:Ve.kind==="directory"?na:Ve.kind==="app"?Ab:W0}function Qe(Ve){const nt=k.candidates.value.findIndex(Ut=>Ut.kind===Ve.kind&&Ut.path===Ve.path);nt>=0&&(A.value=nt)}function zt(Ve){const nt=k.candidates.value[A.value];return nt?.kind===Ve.kind&&nt.path===Ve.path}return ze(()=>k.candidates.value.length,Ve=>{Ve?A.value=Math.min(A.value,Ve-1):A.value=0}),ze(v,()=>k.close()),ze(w,()=>{_.value=!1}),ze(()=>s.busy,Ve=>{Ve?(k.close(),_.value=!1):me&&(me=!1,De())}),(Ve,nt)=>(h(),C("form",{ref_key:"composerEl",ref:u,class:"ai-session-composer","aria-busy":e.busy,onDrop:Rt,onDragover:nt[16]||(nt[16]=nn(()=>{},["prevent"])),onSubmit:nn(Ge,["prevent"])},[g.value.length?fi((h(),C("div",{key:0,class:"ai-session-composer__attachments",onScroll:nt[0]||(nt[0]=(...Ut)=>i(II)&&i(II)(...Ut)),onWheel:nt[1]||(nt[1]=(...Ut)=>i(AI)&&i(AI)(...Ut))},[(h(!0),C(Me,null,ft(g.value,Ut=>(h(),C("figure",{key:Ut.id,class:At({"ai-session-composer__file":Ut.kind==="file"})},[Ut.kind==="image"?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__image-trigger",title:i(r)("sessions.composer.previewImage",{name:Ut.name}),"aria-label":i(r)("sessions.composer.previewImage",{name:Ut.name}),onClick:rn=>ns(Ut)},[d("img",{alt:Ut.name,src:Ut.previewUrl||Ut.dataUrl},null,8,EHe)],8,xHe)]),_:2},1024),m(i(Bc),null,{default:b(()=>[m(i(Ts),{onSelect:rn=>cn(Ut)},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(r)("sessions.composer.copyImage")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)):(h(),C(Me,{key:1},[d("span",THe,[Ut.textPresentation?(h(),V(i(G0),{key:0,size:22})):(h(),V(i(Z2),{key:1,size:22}))]),d("figcaption",null,[d("strong",{title:Ut.name},f(Ut.name),9,NHe),Ut.textPresentation?(h(),C("span",{key:0,class:"ai-session-composer__file-summary",title:Ut.textPresentation.summary||i(r)("sessions.composer.blankPastedText")},f(Ut.textPresentation.summary||i(r)("sessions.composer.blankPastedText")),9,RHe)):W("",!0),d("span",null,[Ut.textPresentation?(h(),C(Me,{key:0},[j(f(hn(Ut.textPresentation.codePointLength))+" · ",1)],64)):W("",!0),j(f(sn(Ut.size)),1),Ut.source.type==="runtime-path"?(h(),C(Me,{key:1},[j(" · "+f(i(r)("sessions.composer.localPath")),1)],64)):W("",!0)])])],64)),Ut.uploadState==="uploading"?(h(),C("div",{key:2,class:"ai-session-composer__upload-progress",role:"progressbar","aria-label":un(Ut),"aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":Math.round((Ut.uploadProgress||0)*100)},[d("span",null,f(Math.round((Ut.uploadProgress||0)*100))+"%",1),d("i",{style:Qn({width:`${Math.round((Ut.uploadProgress||0)*100)}%`})},null,4)],8,MHe)):W("",!0),d("button",{class:"ai-session-composer__remove",type:"button",title:i(r)("sessions.composer.removeAttachment"),"aria-label":i(r)("sessions.composer.removeAttachment"),disabled:e.busy,onClick:rn=>ct(Ut.id)},[m(i($o),{size:14})],8,$He)],2))),128))],32)),[[i(BZ)]]):W("",!0),m(FZ,{open:!!T.value,src:T.value?.previewUrl||T.value?.dataUrl,alt:T.value?.name,copyable:!!T.value,"onUpdate:open":nt[2]||(nt[2]=Ut=>{Ut||Kt()}),onCopy:nt[3]||(nt[3]=Ut=>T.value&&cn(T.value))},null,8,["open","src","alt","copyable"]),m(i(Ur),{open:$.value,"onUpdate:open":nt[10]||(nt[10]=Ut=>{Ut||(i(k).close(),_.value=!1)})},{default:b(()=>[m(i($8),{"as-child":""},{default:b(()=>[d("div",OHe,[m(i(Od),{ref_key:"inputEl",ref:p,modelValue:l.value,"onUpdate:modelValue":nt[4]||(nt[4]=Ut=>l.value=Ut),class:"ai-session-composer__input",disabled:e.busy,placeholder:e.placeholder||i(r)("sessions.composer.followUp"),rows:"3",onKeydown:Ae,onInput:Je,onClick:nt[5]||(nt[5]=Ut=>et()),onKeyup:ge,onPaste:Gn},null,8,["modelValue","disabled","placeholder"])])]),_:1}),m(i(Hr),{class:"ai-session-mention-popover","data-ai-session-composer-overlay":"","data-active-index":A.value,side:"top",align:"start","side-offset":8,style:Qn({width:"var(--reka-popover-trigger-width)",borderRadius:O.value,padding:"4px"}),onOpenAutoFocus:nt[8]||(nt[8]=nn(()=>{},["prevent"])),onCloseAutoFocus:nt[9]||(nt[9]=nn(()=>{},["prevent"]))},{default:b(()=>[m(i(Zn),{type:"auto",horizontal:!1,class:"ai-session-mention-popover__list",role:"listbox",style:Qn({"--ai-session-mention-list-height":`${N.value}px`})},{default:b(()=>[_.value?(h(),C(Me,{key:0},[x.value.length?(h(),C("section",{key:1,class:"ai-session-mention-popover__group",role:"group","aria-label":i(r)("sessions.composer.commands")},[d("div",LHe,f(i(r)("sessions.composer.commands")),1),(h(!0),C(Me,null,ft(x.value,(Ut,rn)=>(h(),C("button",{key:Ut.name,type:"button",role:"option",class:At(["ai-session-mention-popover__item",{"ai-session-mention-popover__item--active":I.value===rn}]),disabled:e.sessionBusy&&Ut.requiresIdle,"aria-selected":I.value===rn,onMouseenter:$n=>I.value=rn,onMousedown:nt[6]||(nt[6]=nn(()=>{},["prevent"])),onClick:$n=>rt(Ut,$n)},[d("span",FHe,[(h(),V(Ms(Vt(Ut)),{size:12}))]),d("span",zHe,[d("strong",null,[j(f(w.value)+f(Ut.name),1),Ut.argumentHintKey?(h(),C(Me,{key:0},[j(" <"+f(i(r)(Ut.argumentHintKey))+">",1)],64)):W("",!0)]),d("span",null,[j(f(i(r)(Ut.descriptionKey)),1),e.sessionBusy&&Ut.requiresIdle?(h(),C(Me,{key:0},[j(" · "+f(i(r)("sessions.composer.availableIdle")),1)],64)):W("",!0)])])],42,BHe))),128))],8,DHe)):(h(),C("div",PHe,f(i(r)("sessions.composer.noMatches")),1))],64)):i(k).loading.value&&!i(k).candidates.value.length?(h(),C("div",UHe,f(i(r)("sessions.composer.loading")),1)):i(k).error.value&&!i(k).candidates.value.length?(h(),C("div",HHe,f(i(k).error.value),1)):B.value.length?W("",!0):(h(),C("div",VHe,f(i(r)("sessions.composer.noMatches")),1)),(h(!0),C(Me,null,ft(B.value,Ut=>(h(),C("section",{key:Ut.kind,class:"ai-session-mention-popover__group",role:"group","aria-label":Ut.label},[d("div",jHe,f(Ut.label),1),(h(!0),C(Me,null,ft(Ut.candidates,rn=>(h(),C("button",{key:`${rn.kind}:${rn.path}`,type:"button",role:"option",class:At(["ai-session-mention-popover__item",{"ai-session-mention-popover__item--active":zt(rn)}]),"aria-selected":zt(rn),onMouseenter:$n=>Qe(rn),onMousedown:nt[7]||(nt[7]=nn(()=>{},["prevent"])),onClick:$n=>qe(rn,$n)},[d("span",KHe,[rn.icon?(h(),C("img",{key:0,src:rn.icon,alt:""},null,8,GHe)):(h(),V(Ms(Xe(rn)),{key:1,size:12}))]),d("span",YHe,[d("strong",null,f(rn.name),1),d("span",null,f(rn.description||rn.path),1)])],42,WHe))),128)),(h(!0),C(Me,null,ft(Ut.diagnostics,rn=>(h(),C("p",{key:rn.code,class:"ai-session-mention-popover__diagnostic"},f(rn.message),1))),128))],8,qHe))),128))]),_:1},8,["style"])]),_:1},8,["data-active-index","style"])]),_:1},8,["open"]),d("div",QHe,[e.editingLabel?(h(),C("div",ZHe,[m(i(br),{size:15}),d("span",null,f(e.editingLabel),1),d("button",{type:"button",title:i(r)("sessions.composer.cancelQueuedEdit"),"aria-label":i(r)("sessions.composer.cancelQueuedEdit"),disabled:e.busy,onClick:nt[11]||(nt[11]=Ut=>o("cancelEdit"))},[m(i($o),{size:15})],8,XHe)])):(h(),C("div",JHe,[d("button",{type:"button",class:"ai-session-composer__tool",title:i(r)("sessions.composer.commands"),"aria-label":i(r)("sessions.composer.openCommands"),disabled:G.value,onClick:Yt},[m(i(Hs),{size:18})],8,eVe),ee.value.length?(h(),V(i(Ws),{key:0},{default:b(()=>[m(i(Ks),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__permission-trigger","data-danger":ie.value.danger||void 0,disabled:e.busy||e.sessionBusy,"aria-label":i(r)("sessions.composer.permissionMode",{mode:ie.value.label}),title:i(r)("sessions.composer.choosePermission")},[(h(),V(Ms(ie.value.icon),{size:16})),d("span",null,f(ie.value.label),1)],8,tVe)]),_:1}),m(i(Zs),{class:"ai-session-permission-menu",side:"top",align:"start","side-offset":8},{default:b(()=>[(h(!0),C(Me,null,ft(ee.value,Ut=>(h(),V(i(Vn),{key:Ut.value,class:"ai-session-permission-menu__item","data-danger":Ut.danger||void 0,onSelect:rn=>J.value=Ut.value},{default:b(()=>[(h(),V(Ms(Ut.icon),{size:18})),d("span",nVe,[d("strong",null,f(Ut.label),1),d("small",null,f(Ut.description),1)]),J.value===Ut.value?(h(),V(i(Qs),{key:0,class:"ai-session-permission-menu__check",size:16})):W("",!0)]),_:2},1032,["data-danger","onSelect"]))),128))]),_:1})]),_:1})):W("",!0)])),d("div",sVe,[L.value?(h(),C("button",{key:0,type:"button",class:"ai-session-composer__tool",title:i(r)("sessions.composer.steerTurnShortcut"),"aria-label":i(r)("sessions.composer.steerTurnShortcut"),disabled:e.busy,onClick:nt[12]||(nt[12]=Ut=>o("steer"))},[m(i(vU),{size:18})],8,oVe)):W("",!0),ye.value?(h(),V(i(Fi),{key:1,"delay-duration":200},{default:b(()=>[m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__model-trigger",disabled:"","aria-label":i(r)("sessions.composer.modelSelectionTitle",{model:Z.value})},[d("span",null,f(Z.value),1)],8,iVe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(i(r)("sessions.composer.modelSelectionUnavailable")),1)]),_:1})]),_:1})]),_:1})):ue.value?(h(),V(i(Fi),{key:2,"delay-duration":200},{default:b(()=>[m(i(Ns),null,{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{type:"button",class:"ai-session-composer__model-trigger","aria-label":i(r)("sessions.composer.noModelConfigured"),disabled:e.busy||e.sessionBusy||e.modelSelectionPending,onClick:nt[13]||(nt[13]=Ut=>o("openModelSettings"))},[d("span",null,f(i(r)("sessions.composer.noModelConfigured")),1)],8,aVe)]),_:1}),m(i(Rs),{side:"top","side-offset":8},{default:b(()=>[j(f(i(r)("sessions.composer.openModelSettings")),1)]),_:1})]),_:1})]),_:1})):oe.value.length||e.reasoningEffortEnabled?(h(),V(i(Ws),{key:3,"onUpdate:open":xe},{default:b(()=>[m(i(Ks),{"as-child":""},{default:b(()=>[d("button",{ref_key:"modelTriggerEl",ref:Fe,type:"button",class:"ai-session-composer__model-trigger",disabled:be.value,"aria-label":i(r)("sessions.composer.modelSelectionTitle",{model:Z.value}),"aria-busy":e.modelSelectionPending||void 0,onPointerenter:ke,onPointerleave:ve},[e.modelSelectionPending?(h(),V(i(ws),{key:0,class:"animate-spin motion-reduce:animate-none",size:14})):W("",!0),d("span",null,f(Z.value),1)],40,rVe)]),_:1}),m(i(Fi),{"delay-duration":200},{default:b(()=>[m(i(Ns),{open:fe.value},{default:b(()=>[m(i(js),{reference:Fe.value,as:"span","aria-hidden":"true",class:"ai-session-composer__model-tooltip-anchor"},null,8,["reference"]),m(i(Rs),{class:"ai-session-model-summary-tooltip",align:"end",side:"top","side-offset":8},{default:b(()=>[d("dl",null,[d("div",null,[d("dt",null,f(i(r)("sessions.composer.provider")),1),d("dd",null,f(Ce.value),1)]),d("div",null,[d("dt",null,f(i(r)("sessions.composer.model")),1),d("dd",null,f(Z.value),1)]),d("div",null,[d("dt",null,f(i(r)("sessions.composer.reasoningEffort")),1),d("dd",null,f(e.reasoningEffort||i(r)("sessions.composer.selectionNotSet")),1)])])]),_:1})]),_:1},8,["open"])]),_:1}),m(UZ,{agent:e.provider,"model-groups":le.value,"model-selection":ae.value,"reasoning-effort":e.reasoningEffort,"reasoning-effort-enabled":e.reasoningEffortEnabled,side:"top",align:"end",onSelectModel:nt[14]||(nt[14]=Ut=>o("selectModel",Ut)),onSelectReasoningEffort:nt[15]||(nt[15]=Ut=>o("selectReasoningEffort",Ut))},null,8,["agent","model-groups","model-selection","reasoning-effort","reasoning-effort-enabled"])]),_:1})):W("",!0),e.submitHidden?W("",!0):(h(),C("button",{key:4,type:"submit",class:"ai-session-composer__primary","data-action":H.value,disabled:e.busy||!U.value,title:K.value,"aria-label":K.value},[e.busy?(h(),V(i(ws),{key:0,class:"animate-spin motion-reduce:animate-none",size:18})):H.value==="send"?(h(),V(i(fU),{key:1,size:18})):H.value==="save"?(h(),V(i(Qs),{key:2,size:17})):(h(),V(i(rv),{key:3,size:16}))],8,lVe))])])],40,CHe))}}),R2=kn(pVe,[["__scopeId","data-v-2603e92e"]]),fVe=["data-tone","data-placement"],mVe={class:"ai-session-detail-queue-head"},hVe={class:"ai-session-detail-queue-title"},gVe=["data-paused","disabled","aria-label","title"],vVe=["data-state","onDragenter"],yVe=["aria-disabled","aria-label","draggable","title","onDragstart","onKeydown"],bVe={class:"ai-session-detail-queue-copy"},kVe={key:0},wVe={class:"ai-session-detail-queue-actions"},SVe=["disabled","aria-label","title","onClick"],_Ve=["disabled","title","onClick"],IVe=["disabled","aria-label","title","onClick"],AVe=["disabled","aria-label","title","onClick"],CVe=st({__name:"AiSessionQueue",props:{busy:{type:Boolean,default:!1},canPause:{type:Boolean,default:!1},canInterrupt:{type:Boolean,default:!1},placement:{default:"detail"},queue:{},tone:{default:"detail"}},emits:["editQueuedMessage","removeQueuedMessage","reorderQueuedMessages","retryQueuedMessage","setQueuePaused","steerQueuedMessage"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(""),r=D([]),l=E(()=>n.queue.paused===!0),c=E(()=>n.queue.items.filter(x=>x.status==="queued")),u=E(()=>S(n.queue.items,r.value));function p(){n.busy||!n.canPause||s("setQueuePaused",!l.value)}function g(x,T){const R=c.value.map(O=>O.id),M=R.indexOf(x),$=M+T;M<0||$<0||$>=R.length||([R[M],R[$]]=[R[$],R[M]],s("reorderQueuedMessages",{expectedRevision:n.queue.revision,queueIds:R}))}function y(x,T){if(n.busy){x.preventDefault();return}if(a.value=T,r.value=c.value.map(R=>R.id),x.dataTransfer){x.dataTransfer.effectAllowed="move",x.dataTransfer.setData("text/plain",T);const R=x.currentTarget?.closest(".ai-session-detail-queue-item");R&&x.dataTransfer.setDragImage(R,8,R.offsetHeight/2)}}function v(x){if(!a.value||x===a.value||!c.value.some($=>$.id===x))return;const T=r.value,R=T.indexOf(a.value),M=T.indexOf(x);R<0||M<0||(r.value=_(T,R,M))}function w(){if(!a.value)return;const x=[...r.value],T=I(x,c.value.map(R=>R.id));k(),T||s("reorderQueuedMessages",{expectedRevision:n.queue.revision,queueIds:x})}function k(){a.value="",r.value=[]}function A(x,T){n.busy||!["ArrowUp","ArrowDown"].includes(x.key)||(x.preventDefault(),g(T,x.key==="ArrowUp"?-1:1))}function _(x,T,R){if(T<0||R<0||T>=x.length||R>=x.length||T===R)return[...x];const M=[...x],[$]=M.splice(T,1);return M.splice(R,0,$),M}function S(x,T){if(!T.length)return[...x];const R=new Map(x.filter(O=>O.status==="queued").map(O=>[O.id,O])),M=T.map(O=>R.get(O)).filter(O=>!!O);let $=0;return x.map(O=>O.status==="queued"&&M[$++]||O)}function I(x,T){return x.length===T.length&&x.every((R,M)=>R===T[M])}return ze(()=>n.queue.revision,k),(x,T)=>(h(),C("section",{class:"ai-session-detail-queue","data-tone":e.tone,"data-placement":e.placement},[d("header",mVe,[m(i(Rre),{size:14,"aria-hidden":"true"}),d("span",hVe,f(i(o)("sessions.activity.queue",{count:e.queue.pendingCount})),1),e.canPause?(h(),C("button",{key:0,type:"button",class:"ai-session-detail-queue-pause","data-paused":l.value?"true":void 0,disabled:e.busy,"aria-label":l.value?i(o)("sessions.activity.resumeQueue"):i(o)("sessions.activity.pauseQueue"),title:l.value?i(o)("sessions.activity.resumeQueue"):i(o)("sessions.activity.pauseQueue"),onClick:p},[l.value?(h(),V(i(bu),{key:0,size:13})):(h(),V(i(n6),{key:1,size:13}))],8,gVe)):W("",!0)]),m(i(Zn),{type:"auto",class:"ai-session-detail-queue-list",horizontal:!1},{default:b(()=>[(h(!0),C(Me,null,ft(u.value,R=>(h(),C("article",{key:R.id,class:At(["ai-session-detail-queue-item",{"ai-session-detail-queue-item-dragging":a.value===R.id}]),"data-state":R.status,onDragenter:nn(M=>v(R.id),["prevent"]),onDragover:T[0]||(T[0]=nn(()=>{},["prevent"])),onDrop:nn(w,["prevent"])},[R.status==="queued"?(h(),C("div",{key:0,class:"ai-session-detail-queue-drag-handle","aria-disabled":e.busy,"aria-label":i(o)("sessions.activity.reorder"),draggable:!e.busy,role:"button",tabindex:"0",title:i(o)("sessions.activity.reorder"),onDragend:k,onDragstart:M=>y(M,R.id),onKeydown:M=>A(M,R.id)},[m(i(X2),{size:17,"stroke-width":1.8})],40,yVe)):(h(),V(i(X2),{key:1,class:"ai-session-detail-queue-icon",size:17,"stroke-width":1.8})),d("div",bVe,[d("p",null,f(R.message),1),R.error?(h(),C("small",kVe,f(R.error),1)):W("",!0)]),d("div",wVe,[R.status==="queued"?(h(),C("button",{key:0,type:"button",disabled:e.busy,"aria-label":i(o)("sessions.activity.edit"),title:i(o)("sessions.activity.edit"),onClick:M=>x.$emit("editQueuedMessage",{queueId:R.id,message:R.message})},[m(i(br),{size:15})],8,SVe)):W("",!0),d("button",{type:"button",disabled:e.busy||!e.canInterrupt,title:i(o)("sessions.activity.steer"),onClick:M=>x.$emit("steerQueuedMessage",R.id)},[m(i(vU),{size:15}),d("span",null,f(i(o)("sessions.activity.steer")),1)],8,_Ve),R.status==="failed"?(h(),C("button",{key:1,type:"button",disabled:e.busy,"aria-label":i(o)("sessions.activity.retry"),title:i(o)("sessions.activity.retry"),onClick:M=>x.$emit("retryQueuedMessage",R.id)},[m(i(sm),{size:15})],8,IVe)):W("",!0),d("button",{type:"button",class:"ai-session-detail-queue-remove",disabled:e.busy,"aria-label":i(o)("sessions.activity.remove"),title:i(o)("sessions.activity.remove"),onClick:M=>x.$emit("removeQueuedMessage",R.id)},[m(i(Fo),{size:15})],8,AVe)])],42,vVe))),128))]),_:1})],8,fVe))}}),RR=kn(CVe,[["__scopeId","data-v-fd6aa3f7"]]),xVe=48,mk=new Map;function MR(e){let t=mk.get(e);return t||(t={references:0,lastUsedAt:Date.now(),state:lz({status:"idle"})},mk.set(e,t)),t}function KL(e){return MR(e).state}function EVe(e){const t=MR(e);return t.references+=1,t.lastUsedAt=Date.now(),t.state.status==="idle"&&HZ(e),t.state}function GL(e){const t=mk.get(e);t&&(t.references=Math.max(0,t.references-1),t.lastUsedAt=Date.now(),VZ())}function TVe(e){return HZ(e,!0)}async function HZ(e,t=!1){const n=MR(e);if(!(!t&&(n.state.status==="loading"||n.state.status==="ready"))){n.state.src&&URL.revokeObjectURL(n.state.src),Object.assign(n.state,{status:"loading",progress:void 0,src:void 0,blob:void 0});try{const s=await fetch(e);if(!s.ok||!s.body)throw new Error("attachment unavailable");const o=Number(s.headers.get("content-length"))||0,a=s.body.getReader(),r=[];let l=0;for(o>0&&(n.state.progress=0);;){const p=await a.read();if(p.done)break;if(!p.value)continue;const g=p.value;r.push(g.buffer.slice(g.byteOffset,g.byteOffset+g.byteLength)),l+=g.byteLength,o>0&&(n.state.progress=Math.min(99,Math.round(l/o*100)))}const c=new Blob(r,{type:s.headers.get("content-type")||"application/octet-stream"}),u=URL.createObjectURL(c);Object.assign(n.state,{status:"ready",progress:100,src:u,blob:c})}catch{Object.assign(n.state,{status:"error",progress:void 0,src:void 0,blob:void 0})}n.lastUsedAt=Date.now(),VZ()}}function VZ(){const e=[...mk.entries()].filter(([,t])=>t.references===0&&t.state.status!=="loading").sort(([,t],[,n])=>t.lastUsedAt-n.lastUsedAt);for(;e.length>xVe;){const[t,n]=e.shift();n.state.src&&URL.revokeObjectURL(n.state.src),mk.delete(t)}}const NVe={class:"ai-session-message-attachment-pills"},RVe=["aria-label","onClick"],MVe=["src","alt"],$Ve=["src","alt"],OVe=["aria-label","aria-valuenow"],PVe=["aria-label","onClick"],DVe=["href","title"],LVe=["title"],BVe={key:0,class:"ai-session-message-images"},FVe=["aria-label","onClick"],zVe=["src","alt"],UVe=["aria-label","aria-valuenow"],HVe={key:0},VVe={key:1},qVe=["aria-label","onClick"],jVe={key:1,class:"ai-session-message-files"},WVe=["href"],KVe=["title"],GVe=st({__name:"AiSessionMessageAttachments",props:{instanceId:{},sessionId:{},messageId:{},attachments:{},compact:{type:Boolean}},setup(e){const t=e,{locale:n,t:s}=An(),o=D(),a=E(()=>t.attachments.filter(k=>k.kind==="image"&&k.contentState==="available")),r=E(()=>t.attachments.filter(k=>k.kind!=="image"||k.contentState!=="available")),l=new Set;function c(k){return KL(u(k))}function u(k){return`/api/controlled-instances/${encodeURIComponent(t.instanceId)}/ai-sessions/${encodeURIComponent(t.sessionId)}/messages/${encodeURIComponent(t.messageId)}/attachments/${encodeURIComponent(k.id)}/content`}function p(k){return ef(k,n.value)}function g(k){TVe(u(k))}function y(){const k=new Set(a.value.map(u));for(const A of l)k.has(A)||(GL(A),l.delete(A));for(const A of t.attachments){if(A.kind!=="image"||A.contentState!=="available")continue;const _=u(A);l.has(_)||(l.add(_),EVe(_))}}ze(()=>t.attachments,y,{deep:!0,immediate:!0}),qs(()=>{for(const k of l)GL(k)});async function v(k){if(!(!navigator.clipboard?.write||typeof ClipboardItem>"u"))try{const _=KL(u(k)).blob||await fetch(u(k)).then(I=>{if(!I.ok)throw new Error("attachment unavailable");return I.blob()}),S=_.type==="image/png"?_:await w(_);await navigator.clipboard.write([new ClipboardItem({"image/png":S})]),It(s("sessions.composer.imageCopied"),"success")}catch{It(s("sessions.composer.copyImageFailed"),"error")}}async function w(k){const A=await createImageBitmap(k);try{const _=document.createElement("canvas");_.width=A.width,_.height=A.height;const S=_.getContext("2d");if(!S)throw new Error("Canvas is unavailable.");return S.drawImage(A,0,0),await new Promise((I,x)=>_.toBlob(T=>T?I(T):x(new Error("PNG conversion failed.")),"image/png"))}finally{A.close()}}return(k,A)=>(h(),C(Me,null,[e.attachments.length?(h(),C("div",{key:0,class:At(["ai-session-message-attachments",{"ai-session-message-attachments-compact":e.compact}])},[e.compact?(h(),V(i(Fi),{key:0,"delay-duration":200},{default:b(()=>[d("div",NVe,[(h(!0),C(Me,null,ft(a.value,_=>(h(),C(Me,{key:_.id},[c(_).status==="ready"?(h(),V(i(Ns),{key:0},{default:b(()=>[m(i(js),{"as-child":""},{default:b(()=>[d("button",{class:"ai-session-message-attachment-pill image",type:"button","aria-label":i(s)("sessions.composer.previewImage",{name:_.name}),onClick:S=>o.value=_},[d("img",{src:c(_).src,alt:_.name},null,8,MVe),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,RVe)]),_:2},1024),m(i(Rs),{class:"ai-session-compact-image-tooltip",side:"bottom","side-offset":8},{default:b(()=>[d("img",{src:c(_).src,alt:_.name},null,8,$Ve)]),_:2},1024)]),_:2},1024)):c(_).status==="loading"?(h(),C("div",{key:1,class:"ai-session-message-attachment-pill image-loading",role:"progressbar","aria-label":_.name,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c(_).progress},[m(i(ws),{class:"image-loading-icon",size:14,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,OVe)):(h(),C("button",{key:2,class:"ai-session-message-attachment-pill image-error",type:"button","aria-label":i(s)("sessions.detail.retry"),onClick:S=>g(_)},[m(i(sm),{size:14,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.timeline.image")),1)],8,PVe))],64))),128)),(h(!0),C(Me,null,ft(r.value,_=>(h(),C(Me,{key:_.id},[_.contentState==="available"?(h(),C("a",{key:0,class:"ai-session-message-attachment-pill file",href:u(_),target:"_blank",rel:"noopener",title:_.name},[m(i(Z2),{size:14,"aria-hidden":"true"}),d("span",null,f(_.name),1)],8,DVe)):(h(),C("div",{key:1,class:"ai-session-message-attachment-pill unavailable",title:i(s)("sessions.panel.attachmentUnavailable",{name:_.name})},[m(i(I$),{size:14,"aria-hidden":"true"}),d("span",null,f(_.name),1)],8,LVe))],64))),128))])]),_:1})):(h(),C(Me,{key:1},[a.value.length?(h(),C("div",BVe,[(h(!0),C(Me,null,ft(a.value,_=>(h(),C(Me,{key:_.id},[c(_).status==="ready"?(h(),V(i(vr),{key:0},{default:b(()=>[m(i(yr),{"as-child":""},{default:b(()=>[d("button",{class:"ai-session-message-image",type:"button","aria-label":_.name,onClick:S=>o.value=_},[d("img",{src:c(_).src,alt:_.name},null,8,zVe)],8,FVe)]),_:2},1024),m(i(Bc),null,{default:b(()=>[m(i(Ts),{onSelect:S=>v(_)},{default:b(()=>[m(i(Ka),{size:15}),d("span",null,f(i(s)("sessions.composer.copyImage")),1)]),_:1},8,["onSelect"])]),_:2},1024)]),_:2},1024)):c(_).status==="loading"?(h(),C("div",{key:1,class:"ai-session-message-image image-loading",role:"progressbar","aria-label":_.name,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c(_).progress},[m(i(ws),{class:"image-loading-icon",size:23,"aria-hidden":"true"}),c(_).progress!==void 0?(h(),C("strong",HVe,f(c(_).progress)+"%",1)):(h(),C("span",VVe,f(i(s)("sessions.timeline.loading")),1))],8,UVe)):(h(),C("button",{key:2,class:"ai-session-message-image image-error",type:"button","aria-label":i(s)("sessions.detail.retry"),onClick:S=>g(_)},[m(i(sm),{size:19,"aria-hidden":"true"}),d("span",null,f(i(s)("sessions.detail.retry")),1)],8,qVe))],64))),128))])):W("",!0),r.value.length?(h(),C("div",jVe,[(h(!0),C(Me,null,ft(r.value,_=>(h(),C(Me,{key:_.id},[_.contentState==="available"?(h(),C("a",{key:0,class:"ai-session-message-attachment file",href:u(_),target:"_blank",rel:"noopener"},[m(i(Z2),{size:18}),d("span",null,[d("strong",null,f(_.name),1),d("small",null,f(p(_.size)),1)]),m(i(vu),{size:14})],8,WVe)):(h(),C("div",{key:1,class:"ai-session-message-attachment unavailable",title:i(s)("sessions.panel.attachmentUnavailable",{name:_.name})},[m(i(I$),{size:18}),d("span",null,[d("strong",null,f(_.name),1),d("small",null,f(i(s)(`sessions.timeline.attachment${_.contentState==="expired"?"Expired":"Missing"}`)),1)])],8,KVe))],64))),128))])):W("",!0)],64))],2)):W("",!0),m(FZ,{open:!!o.value,src:o.value?c(o.value).src||u(o.value):void 0,alt:o.value?.name,copyable:!!o.value,"onUpdate:open":A[0]||(A[0]=_=>{_||(o.value=void 0)}),onCopy:A[1]||(A[1]=_=>o.value&&v(o.value))},null,8,["open","src","alt","copyable"])],64))}}),qZ=kn(GVe,[["__scopeId","data-v-00c54d86"]]),YVe=["aria-label"],QVe=["aria-expanded"],ZVe=["datetime","title"],XVe=st({__name:"AiSessionCompactPrompt",props:{codeTools:{default:void 0},content:{},instanceId:{default:""},sessionId:{default:""},userMessages:{default:()=>[]},timestamp:{},tone:{default:"detail"}},setup(e){const t=e,{locale:n,t:s}=An(),o=D(),a=D(!1),r=D(!1),l=D(!1);let c,u,p;const g=E(()=>w(t.timestamp,{weekday:"short",hour:"2-digit",minute:"2-digit"})),y=E(()=>w(t.timestamp,{dateStyle:"medium",timeStyle:"medium"})),v=E(()=>t.instanceId&&t.sessionId?t.userMessages.filter(I=>I.attachments.length):[]);function w(I,x){return I?new Intl.DateTimeFormat(n.value,x).format(new Date(I)):""}function k(){const I=o.value;!I||r.value||(l.value=I.scrollHeight>I.clientHeight+1)}function A(I){const x=Number.parseFloat(window.getComputedStyle(I).lineHeight);return Number.isFinite(x)?x*3:I.getBoundingClientRect().height}async function _(){const I=o.value;if(!I)return;const x=!r.value,T=I.getBoundingClientRect().height,R=x?I.scrollHeight:A(I);if(u?.cancel(),u=void 0,x||(I.style.maxHeight="none"),r.value=x,await vn(),o.value!==I||window.matchMedia("(prefers-reduced-motion: reduce)").matches){I.style.maxHeight="";return}const M=I.animate([{height:`${T}px`},{height:`${R}px`}],{duration:180,easing:"ease",fill:"both"});u=M,M.finished.then(()=>{u===M&&(I.style.maxHeight="",M.cancel(),u=void 0)}).catch(()=>{})}async function S(){if(!(!t.content||!navigator.clipboard?.writeText)){try{await navigator.clipboard.writeText(t.content)}catch{return}a.value=!0,clearTimeout(c),c=setTimeout(()=>{a.value=!1},1500)}}return ze(()=>t.content,()=>{u?.cancel(),u=void 0,o.value&&(o.value.style.maxHeight=""),r.value=!1,l.value=!1,vn(k)}),xo(()=>{typeof ResizeObserver<"u"&&(p=new ResizeObserver(k),o.value&&p.observe(o.value)),k()}),qs(()=>{clearTimeout(c),u?.cancel(),o.value&&(o.value.style.maxHeight=""),p?.disconnect()}),(I,x)=>(h(),C("div",{class:At(["ai-session-compact-prompt",`ai-session-compact-prompt-${e.tone}`])},[(h(!0),C(Me,null,ft(v.value,T=>(h(),V(qZ,{key:T.id,"instance-id":e.instanceId,"session-id":e.sessionId,"message-id":T.id,attachments:T.attachments,compact:""},null,8,["instance-id","session-id","message-id","attachments"]))),128)),d("div",{ref_key:"contentElement",ref:o,class:At(["ai-session-user-prompt-content",{expanded:r.value,"has-overflow":l.value}])},[e.content?(h(),V(Fu,{key:0,content:e.content,"code-tools":e.codeTools},null,8,["content","code-tools"])):W("",!0)],2),d("footer",{class:"ai-session-user-prompt-actions","aria-label":i(s)("sessions.timeline.turnActions")},[l.value?(h(),C("button",{key:0,type:"button",class:"ai-session-user-prompt-toggle","aria-expanded":r.value,onClick:_},[d("span",null,f(r.value?i(s)("sessions.detail.collapsePrompt"):i(s)("sessions.detail.expand")),1),m(i(co),{size:13,class:At({open:r.value})},null,8,["class"])],8,QVe)):W("",!0),d("time",{class:"ai-session-user-prompt-time",datetime:e.timestamp,title:y.value},f(g.value),9,ZVe),m(i(Re),{type:"button",size:"xs",variant:"ghost",class:"ai-session-user-prompt-copy","aria-label":a.value?i(s)("sessions.markdown.copied"):i(s)("sessions.markdown.copy"),title:a.value?i(s)("sessions.markdown.copied"):i(s)("sessions.markdown.copy"),onClick:S},{default:b(()=>[a.value?(h(),V(i(Qs),{key:0,size:13})):(h(),V(i(Ka),{key:1,size:13}))]),_:1},8,["aria-label","title"])],8,YVe)],2))}}),jZ=kn(XVe,[["__scopeId","data-v-09ceb4e6"]]),YL="task-handoff.control-plane.ai-session-queue-placement",sE=gi("composer");let QL=!1;function EA(){QL||(QL=!0,sE.value=window.localStorage?.getItem(YL)==="detail"?"detail":"composer");function e(t){return t!=="detail"&&t!=="composer"?!1:(sE.value=t,window.localStorage?.setItem(YL,t),!0)}return{queuePlacement:sE,setQueuePlacement:e}}function JVe(e=100){let t=0;function n(o,a=!0){const r=Math.max(0,Math.ceil(o));return a?((r>=t||t-r>e)&&(t=r),t):(t=0,0)}function s(){t=0}return{reset:s,update:n}}const eqe={key:1,class:"ai-session-turn-history"},tqe=["aria-expanded","aria-busy"],nqe={key:0,class:"ai-session-turn-history-disclosure"},sqe={class:"ai-session-turn-history-content"},oqe={key:2,class:"ai-session-turn-history-status ai-session-turn-history-empty"},iqe=st({__name:"AiSessionTurnHistory",props:{nodes:{},loading:{type:Boolean},loadable:{type:Boolean},error:{},startedAt:{},endedAt:{},active:{type:Boolean}},emits:["load","retry"],setup(e,{emit:t}){const n=e,s=t,{t:o}=An(),a=D(Date.now()),r=D(!1),l=D(!1);let c;function u(k){l.value&&Zb(k.currentTarget),r.value=!r.value}function p(){r.value=!0,s("retry")}ze(()=>r.value&&n.loadable,k=>{k&&s("load")}),ze(()=>[r.value,n.loading,n.loadable,n.nodes.length],([k,A,_,S])=>{k?!A&&!_&&S>0&&(l.value=!0):l.value=!1});function g(){clearInterval(c),c=void 0,a.value=Date.now(),n.active&&n.startedAt&&!n.endedAt&&(c=setInterval(()=>{a.value=Date.now()},1e3))}const y=E(()=>RCe(n.startedAt,n.endedAt,n.active===!0,a.value)),v=E(()=>{const k=y.value;if(k===void 0)return o("sessions.timeline.processedUnavailable");if(k<60)return o("sessions.timeline.processedSeconds",{seconds:k});const A=Math.floor(k/60);if(A<60)return o("sessions.timeline.processedMinutes",{minutes:A,seconds:k%60});const _=Math.floor(A/60);return _<24?o("sessions.timeline.processedHours",{hours:_,minutes:A%60,seconds:k%60}):o("sessions.timeline.processedDays",{days:Math.floor(_/24),hours:_%24,minutes:A%60,seconds:k%60})}),w=E(()=>({copiedLabel:o("sessions.markdown.copied"),copyLabel:o("sessions.markdown.copy"),plainTextLabel:o("sessions.markdown.plainText")}));return xo(g),qs(()=>clearInterval(c)),ze(()=>[n.active,n.startedAt,n.endedAt],g),(k,A)=>e.error&&!e.nodes.length?(h(),C("button",{key:0,type:"button",class:"ai-session-turn-history-status ai-session-turn-history-retry",onClick:p},[m(i(ko),{size:15}),d("span",null,f(v.value)+" · "+f(i(o)("sessions.timeline.loadFailed")),1)])):e.nodes.length||e.loadable||e.loading?(h(),C("section",eqe,[d("button",{type:"button",class:"ai-session-turn-history-summary","aria-expanded":l.value,"aria-busy":r.value&&(e.loading||e.loadable),onClick:u},[r.value&&(e.loading||e.loadable)?(h(),V(i(ws),{key:0,class:"ai-session-turn-history-loading-icon",size:15,"aria-label":i(o)("sessions.timeline.loading")},null,8,["aria-label"])):(h(),V(i(ko),{key:1,size:15})),d("span",null,f(v.value),1)],8,tqe),m(Wa,{name:"turn-history-disclosure",onBeforeEnter:i(Xb),onEnter:i(Jb),onAfterEnter:i(ek),onEnterCancelled:i(nf),onBeforeLeave:i(tk),onLeave:i(nk),onAfterLeave:i(sk),onLeaveCancelled:i(nf)},{default:b(()=>[l.value?(h(),C("div",nqe,[d("div",sqe,[(h(!0),C(Me,null,ft(e.nodes,_=>(h(),C(Me,{key:_.id},[_.type==="message"?(h(),C("article",{key:0,class:At(["ai-session-turn-history-message",{"ai-session-turn-history-message-user":_.message.type==="user-message"}])},[m(Fu,{content:_.message.text,"code-tools":w.value},null,8,["content","code-tools"])],2)):(h(),V(MG,{key:1,activities:_.activities},null,8,["activities"]))],64))),128))])])):W("",!0)]),_:1},8,["onBeforeEnter","onEnter","onAfterEnter","onEnterCancelled","onBeforeLeave","onLeave","onAfterLeave","onLeaveCancelled"])])):(h(),C("div",oqe,[m(i(gce),{size:15,"aria-hidden":"true"}),d("span",null,f(v.value),1)]))}}),aqe=kn(iqe,[["__scopeId","data-v-c5033609"]]),rqe={"en-US":{time:{hour:"numeric",minute:"2-digit",second:"2-digit"},shortDate:{year:"numeric",month:"short",day:"numeric"},dateTime:{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit"}},"zh-CN":{time:{hour:"2-digit",minute:"2-digit",second:"2-digit"},shortDate:{year:"numeric",month:"short",day:"numeric"},dateTime:{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}}},lqe={"en-US":{decimal:{maximumFractionDigits:2},percent:{style:"percent",maximumFractionDigits:1}},"zh-CN":{decimal:{maximumFractionDigits:2},percent:{style:"percent",maximumFractionDigits:1}}},WZ="task-handoff.control-plane.locale";function cqe(e){if(e)try{return e.localStorage}catch{return}}function uqe(e){return e==="en-US"||e==="zh-CN"||e==="system"?e:"system"}function dqe(e){const t=e.trim().replace(/_/g,"-").toLowerCase();if(t==="zh"||t.startsWith("zh-cn")||t.startsWith("zh-hans"))return"zh-CN";if(t==="en"||t.startsWith("en-"))return"en-US"}function KZ(e,t){if(e!=="system")return e;for(const n of t){const s=dqe(n);if(s)return s}return"en-US"}function pqe(e){if(!e)return"system";try{return uqe(e.getItem(WZ))}catch{return"system"}}function fqe(e,t){if(e)try{e.setItem(WZ,t)}catch{}}function mqe(e){return"ltr"}const hqe={view:"Agent",region:"Agent list",resizeList:"Resize the agent list",list:{title:"Agents",filterPlaceholder:"Filter agents",empty:"No agents match the filter",noAgents:"No agents on accessible nodes",loading:"Loading agents...",loadingNode:"Loading",unavailableNode:"Unavailable",loadingNodes:"Loading agents from {count} nodes...",unavailableNodes:"Agents from {count} nodes are unavailable",unavailable:"Agent definitions are temporarily unavailable.",unsupported:"No accessible node supports agent definitions.",retry:"Retry",create:"New agent"},viewMode:{label:"Agent view",detail:"Detail",graph:"Orchestration"},graph:{empty:"No agents on accessible nodes",clean:"No unsaved changes",dirty:"{count} unsaved changes",save:"Save",reset:"Reset",moreActions:"More actions",help:{title:"Canvas controls",intro:"The canvas shows one orchestration at a time: members, entry nodes (members nothing calls) and call edges all come from the authoritative graph.",move:"Drag a card to move it.",connect:"Hovering the dot below a card reveals a + that opens the list of agents to add; you can also drag from that dot onto the dot above another agent to connect them.",removeEdge:"Click a relation or its midpoint × to remove it.",removeMember:"Remove a member through the × on its card."},scope:{entry:"Entry orchestrations",participating:"Participating orchestrations"},orchestrationEmpty:"No orchestration",orchestrationMissing:"No accessible orchestration contains this agent yet. Create one to describe its call graph.",orchestrationDefaultLabel:"{name} (default)",orchestrationName:"Orchestration name",orchestrationNamePlaceholder:"Release review chain",editName:"Edit orchestration name {name}",editNameTitle:"Edit orchestration name",defaultBadge:"Default",missingMembers:"{count} members reference deleted agents",missingAgent:"Agent definition deleted",removeMember:"Remove {name} from the orchestration",createOrchestration:"New orchestration",deleteOrchestration:"Delete orchestration",removeEdge:"Remove relation {from} to {to}",edge:"Relation from {from} to {to}",linkFrom:"Drag to add an agent that {name} may call",linkTo:"Receives call relations pointing at {name}",addCallable:"Add an agent for {name} to call",addSearch:"Search agents",addEmpty:"No other agent on this node",addNoMatch:"No matching agent",addState:{callable:"Already connected",member:"Already a member",cycle:"Would create a cycle"},saving:"Saving",saveFailed:"The orchestration was rejected.",discardOnSwitch:"This orchestration has {count} unsaved changes. Switching to detail will discard them. Continue?",rejected:{self:"An agent cannot call itself.",crossNodeMember:"New members must belong to the same node as this orchestration.",duplicate:"This relation already exists.",cycle:"This relation would create a cycle.",offline:"An offline node is read-only.",defaultOwner:"The default orchestration must keep its owning agent.",outOfScope:"Drop onto the dot above an agent card, or click the + on a card's bottom dot to pick from the list."}},detail:{empty:"Select an agent to inspect its definition and runs",target:"Target",execution:"Execution",appendedPrompt:"Additional prompt",appendedPromptEmpty:"No additional prompt",orchestration:"Orchestrations",orchestrationEmpty:"No accessible orchestration contains this agent",orchestrationDefault:"Default",orchestrationMembers:"{count} members",orchestrationCreate:"New",orchestrationHint:"An orchestration holds the member graph used by runs and member invocations. The graph decides which orchestrations list this agent: any member nothing calls is a top-level node and shows the orchestration under that agent.",storyEntry:"Story entry",storyEntryEmpty:"No Story lists this agent as an entry agent",storyEntryHint:"The entry allowlist is maintained in Story settings. It only decides which agents that Story may invoke directly; it does not restrict the call chain.",runs:"Run history",runsEmpty:"No runs recorded yet",run:"Run agent",edit:"Edit",viewDetail:"View agent details",editOrchestration:"Edit orchestration",viewOrchestration:"View orchestrations",editName:"Edit agent name {name}",editNameTitle:"Edit agent name",delete:"Delete"},manualRun:{title:"Run {name}",description:"Enter the task for this run.",prompt:"Task",promptPlaceholder:"Describe what the agent should do",start:"Start run",starting:"Starting",started:"Agent run started",startFailed:"Could not start the agent run.",unsupported:"Upgrade the node agent to start runs directly from the control plane.",unavailable:"This agent cannot be run with its current target and execution settings.",orchestration:"Orchestration",orchestrationEmpty:"No orchestration available",orchestrationHint:"The run starts in {name} and may only call agents along this orchestration's edges."},blocked:{definitionsUnsupported:"This node does not publish agent definitions.",nodeOffline:"This node is offline. The last known definition is read-only.",instanceMissing:"The target instance is not in the current instance list.",instanceOffline:"The target instance is offline.",localRuntime:"This runtime does not currently support agent execution.",missingReference:"This orchestration still references a deleted agent. Remove the member to repair it.",policyUnsupported:"The target node has not published this execution strategy yet."},confirm:{deleteTitle:"Delete agent",deleteAgent:"Delete agent {name}? Its default orchestration is always deleted with it.",deleteOrchestrations:"Also delete the other orchestrations that reference this agent",deleteOrchestrationsHint:"Without this, those custom orchestrations stay and are marked as referencing a deleted agent.",deleting:"Deleting"},orchestration:{createTitle:"New orchestration",createDescription:"The new orchestration starts with {name} as its only entry node. Add members and edges to grow the call graph.",name:"Name",namePlaceholder:"Release review chain",newName:"{name} chain",create:"Create orchestration",creating:"Creating",created:"Orchestration {name} created",createFailed:"Could not create the orchestration.",confirmDelete:"Delete orchestration {name}?",deleted:"Orchestration {name} deleted",deleteFailed:"Could not delete the orchestration."},toast:{created:"Agent {name} created",updated:"Agent {name} saved",deleted:"Agent {name} deleted"},errors:{targetNodeUnknown:"The target instance no longer belongs to an accessible node.",deleteFailed:"The agent definition could not be deleted.",updateFailed:"The agent definition could not be saved."},editor:{createTitle:"New agent",editTitle:"Edit {name}",description:"Configure the instance, working folder, and model used for each run.",basics:"Definition",name:"Name",namePlaceholder:"Release review lead",summary:"Description",summaryPlaceholder:"What this agent is responsible for",target:"Target",instance:"Instance",instancePlaceholder:"Select an instance",folder:"Working folder",folderPlaceholder:"Select a folder",folderUnset:"Not selected",folderNeedsInstance:"Select a target instance first",folderHint:"Only folders the target instance can actually see are listed; changing the instance clears the previous selection.",instanceWorkspace:"Instance workspace",chooseFolder:"Register another folder…",folderBrowseHint:"Folders on {node}. Pick one to register it as a node folder and use it as the working folder.",folderUse:"Use this folder",folderRegistering:"Registering",runtime:"Agent and model",agent:"Agent",agentPlaceholder:"Select an agent",agentUnavailable:"This instance publishes no agent that can start a session",model:"Model",modelEmpty:"No model available",modelUnavailable:"The saved model is missing from this node model catalog. The definition keeps it and is marked as blocked.",reasoningDisabled:"This agent cannot choose a reasoning effort",permission:"Permission mode",appendedPrompt:"Additional prompt",appendedPromptPlaceholder:"For example: type checks must pass before a commit is proposed.",execution:"Execution strategy",blockedInstanceMissing:"The saved target instance is not in the current instance list; bind the agent to an available instance.",blockedLocalRuntime:"This runtime does not currently support agent execution, so this instance cannot be saved as an executable target.",blockedInstanceOffline:"The target instance is offline; keep the definition as read-only until the instance is reachable again.",blockedNoAgent:"The target instance publishes no agent that can start a session.",blockedAgentUnavailable:"The saved agent is missing from this instance capability document; re-bind the definition instead of switching it silently.",blockedPermissionUnavailable:"The saved permission mode is not published by the target agent.",blockedModelUnavailable:"The saved model is missing from this node model catalog.",blockedFolderUnavailable:"The saved working folder is not in the folders this instance can see.",folderUnavailable:"This instance has no node folder registered as a working folder.",saving:"Saving",create:"Create agent",save:"Save changes"},field:{node:"Node",instance:"Instance",folder:"Folder",provider:"Agent",model:"Model",permission:"Permission mode",reasoning:"Reasoning",workspace:"Workspace",executionMode:"Execution mode",isolation:"Isolation level"},value:{workspaceOverlay:"Overlay copy-on-write",workspaceWorktree:"Managed worktree",sandboxInstance:"Instance execution",sandboxContainer:"Disposable container",sandboxLocalRuntime:"Host process",isolationInstance:"Instance level",isolationContainer:"Container level",isolationLocalRuntime:"No process isolation",isolationNote:"Members run inside the target instance container and reuse its shared agent service. Container, user, network, and credential boundaries are shared with that instance.",overlayNote:"Writes land in this run's own upper layer; the source folder stays untouched.",appendedPromptNote:"The additional prompt adds requirements to each run without replacing the message that triggered it."},availability:{executable:"Executable",blocked:"Blocked"},run:{members:"Members",memberDescendant:"Agent Run {runId} · {status}",root:"Root",parent:"Parent",duration:"Duration",result:"Result",initiator:"Launched from {session}",initiatorManual:"Started manually from the control plane",sharedSpace:"Shared space",sharedRoot:"Shared root",workspaceDestroyed:"Run workspace destroyed",sharedRetained:"Shared data retained until {time}",sharedUsage:"{usage} of {quota} used",sharedState:{preparing:"Preparing",active:"Active",retained:"Retained",expiring:"Expiring","delete-retrying":"Cleanup retrying",expired:"Expired","manual-intervention":"Manual cleanup required"},cancel:"Cancel run",cancelledToast:"Run cancellation requested",cancelFailed:"Could not cancel the run.",delivery:{pending:"Result delivery pending",delivered:"Result delivered to the conversation",failed:"Result delivery failed"},status:{queued:"Queued",preparing:"Preparing",running:"Running",finalizing:"Finalizing",completed:"Completed",failed:"Failed",cancelled:"Cancelled"}}},gqe={controlPlane:"Control Plane",brandTagline:"A unified control plane for AI workspaces across local and remote machines.",linkWebsite:"Website",linkDocs:"Documentation",linkGithub:"GitHub",loading:"Loading",createAdmin:"Create admin",signIn:"Sign in",bootstrapDescription:"Set the first administrator for this Web control plane.",signInDescription:"Use your control plane account to continue.",username:"Username",password:"Password",changeTemporaryPassword:"Change temporary password",changeTemporaryPasswordDescription:"Set a new password before continuing to the Control Plane.",currentPassword:"Temporary password",newPassword:"New password",confirmPassword:"Confirm password",changePassword:"Change password",passwordLength:"The new password must contain at least 8 characters.",passwordMismatch:"The passwords do not match.",working:"Working",signOut:"Sign out",signingOut:"Signing out"},vqe={kicker:"Command line access",title:"Authorize command line sign-in",description:"A command line client is requesting access to this control plane. Approving creates a separate CLI session; your browser session is never shared with the client.",client:"Client",platform:"Platform",version:"Version",requestedAt:"Requested",expiresAt:"Expires",approve:"Approve",deny:"Deny",approvedTitle:"Sign-in approved",approvedDevice:"Return to the terminal to finish signing in.",approvedBrowser:"Return to the terminal to finish signing in.",deniedTitle:"Sign-in denied",deniedDescription:"The command line client was not granted access.",manualTitle:"Enter a device code",manualDescription:"Enter the code shown in the terminal to continue.",userCodePlaceholder:"XXXX-XXXX",continue:"Continue",statusApproved:"This request was already approved. Approve again to continue signing in.",statusDenied:"This request was denied.",statusExpired:"This request expired. Start the sign-in again from the terminal.",statusConsumed:"This request was already used to sign in.",platforms:{darwin:"macOS",linux:"Linux",win32:"Windows"}},yqe={productName:"TaskHandoff",products:{codex:"Codex",claude:"Claude",opencode:"OpenCode"},imageCapabilities:{browser:"Browser",terminal:"Terminal","gui-terminal":"Desktop terminal","vscode-web":"VS Code",codex:"Codex",claude:"Claude",opencode:"OpenCode"},actions:{add:"Add",back:"Back",cancel:"Cancel",close:"Close",confirm:"Confirm",continue:"Continue",copy:"Copy",create:"Create",delete:"Delete",download:"Download",done:"Done",edit:"Edit",minimize:"Minimize",maximize:"Maximize",open:"Open",refresh:"Refresh",refreshing:"Refreshing",rename:"Rename",restore:"Restore",archive:"Archive",retry:"Retry",save:"Save",search:"Search",update:"Update"},status:{enabled:"Enabled",disabled:"Disabled",running:"Running",stopped:"Stopped",off:"Off",unavailable:"Unavailable",unknown:"Unknown",unknownValue:"Unknown ({value})"},language:{label:"Language",system:"Follow system",enUS:"English",zhCN:"简体中文"},appAccess:{loading:"Loading session...",vncSession:"VNC session",appSession:"App session",noDirectView:"This app session does not expose a direct view",connecting:"Connecting",unavailable:"Unavailable",linkExpires:"Link expires {time}",linkExpired:"Link expired",connected:"Connected",reconnecting:"Reconnecting"}},bqe={unknown:"Something went wrong.",HTTP_ERROR:"The request failed.",VALIDATION_ERROR:"The submitted data is invalid.",NOT_FOUND:"The requested resource was not found.",UNAUTHORIZED:"Authentication is required.",FORBIDDEN:"You do not have permission to perform this action.",AUTH_DISABLED:"Authentication is disabled.",AUTH_BOOTSTRAP_ALREADY_DONE:"Authentication setup has already been completed.",AUTH_LOGIN_FAILED:"The username or password is incorrect.",AUTH_CURRENT_PASSWORD_INVALID:"The current password is incorrect.",AUTH_PASSWORD_UNCHANGED:"The new password must be different from the current password.",AUTH_PASSWORD_CHANGE_REQUIRED:"Change your temporary password before continuing.",AUTH_CREDENTIAL_UPDATE_IN_PROGRESS:"The account password is already being changed. Try again in a moment.",CONTROL_PLANE_AUTH_REQUIRED:"Sign in to access the control plane.",CONTROL_PLANE_FORBIDDEN:"Your account does not have permission to perform this action.",CONTROL_PLANE_USERNAME_CONFLICT:"That sign-in username is already used by another user.",CONTROL_PLANE_LOCAL_IDENTITY_IMMUTABLE:"Local password identities cannot be unbound.",CONTROL_PLANE_IDENTITY_PROVIDER_NAMESPACE_IMMUTABLE:"This provider's type and issuer cannot change while it has linked identities or pending approvals.",CONTROLLED_INSTANCE_NOT_FOUND:"The controlled instance was not found.",CONTROLLED_INSTANCE_NOT_FOUND_WITH_ID:"Controlled instance {id} was not found.",INSTANCE_NOT_CONNECTED:"The instance is not connected.",INSTANCE_UNREACHABLE:"The instance is unreachable.",INSTANCE_WEB_UNREACHABLE:"The instance web endpoint is unreachable.",INSTANCE_APP_MANAGEMENT_UNSUPPORTED:"This instance does not support managed apps.",INSTANCE_SOURCE_REQUIRED:"Select an instance source.",INSTANCE_START_FAILED:"The instance could not be started.",LOCAL_RUNTIME_REQUIRES_LOCAL_FOLDER:"Local Runtime requires a local folder source.",LOCAL_FOLDER_REQUIRES_OWNER_NODE:"Select the node that owns this local folder.",LOCAL_FOLDER_REQUIRES_INSTANCE_NODE:"Select a local folder owned by the instance node.",APP_CWD_REQUIRES_LOCAL_FOLDER_SOURCE:"A custom app working directory requires a local folder instance source.",APP_CWD_OUTSIDE_WORKSPACE:"The app working directory must be inside the instance workspace.",RUNTIME_IMAGE_REQUIRED:"Select a runtime image.",IMAGE_IN_USE:"The image is currently in use and cannot be deleted.",MODEL_NOT_FOUND:"The selected model was not found.",MODEL_DISABLED:"The selected model is disabled.",MODEL_APP_MISMATCH:"The selected model is not compatible with this app.",MODEL_API_KEY_REQUIRED:"Enter an API key.",MODEL_ENDPOINT_INVALID:"Enter a valid HTTP or HTTPS model endpoint.",MODEL_ENDPOINT_TIMEOUT:"The model endpoint request timed out.",MODEL_ENDPOINT_UNREACHABLE:"The model endpoint could not be reached.",MODEL_DISCOVERY_FAILED:"The model list request failed. Check the API key and endpoint.",MODEL_DISCOVERY_UNSUPPORTED:"This endpoint does not expose a compatible model list. You can enter a model ID manually.",MODEL_DISCOVERY_RESPONSE_INVALID:"The model list endpoint returned unrecognized data.",MODEL_TEST_FAILED:"The model test request failed. Check the model, API key, and endpoint.",MODEL_TEST_RESPONSE_INVALID:"The model endpoint returned an invalid protocol response.",MODEL_IN_USE:"This model is still assigned to instances. Remove it from their model settings before deleting it.",MODEL_UPDATE_SYNC_FAILED:"The edit could not be applied to any node. Update the node first, then try again.",MODEL_MERGE_SAME:"A model cannot be merged into itself.",MODEL_MERGE_NOTHING_TO_MERGE:"This model has no node copy that can be merged. Nothing was changed.",AGENT_DEFINITION_INVALID_INPUT:"The submitted agent definition is not valid.",AGENT_DEFINITION_NOT_FOUND:"The agent definition was not found.",AGENT_DEFINITION_REVISION_CONFLICT:"The agent definition changed elsewhere. Reopen it before saving again.",AGENT_DEFINITION_TARGET_INSTANCE_UNKNOWN:"The target instance does not belong to that node.",AGENT_DEFINITION_FOLDER_UNKNOWN:"The selected working folder is unavailable on that instance.",AGENT_DEFINITION_PROVIDER_UNSUPPORTED:"The target instance does not publish that provider.",AGENT_DEFINITION_CALLABLE_TARGET_UNKNOWN:"A referenced agent no longer exists. Refresh and try again.",AGENT_DEFINITION_SELF_REFERENCE:"An agent cannot call itself.",AGENT_DEFINITION_CYCLE:"These callable relations form a cycle: {cycle}.",AGENT_DEFINITION_POLICY_UNSUPPORTED:"The target node does not publish that execution strategy.",NODE_OFFLINE:"The node is offline.",NODE_NOT_FOUND:"The node was not found.",NODE_NOT_FOUND_WITH_ID:"Node {id} was not found.",NODE_REQUIRED:"Select a node.",NODE_ID_REQUIRED:"A node ID is required.",NODE_AGENT_ENDPOINT_REQUIRED:"Enter the node agent endpoint.",NODE_AGENT_HEALTH_FAILED:"The node agent health check failed.",NODE_AGENT_PAIRING_FAILED:"The node agent could not be paired.",NODE_AGENT_PAIRING_RESPONSE_INVALID:"The node agent returned an invalid pairing response.",NODE_AGENT_PAIRING_IN_USE:"Remove the active control-plane connection before deleting this pairing.",NODE_AGENT_PAIRING_CURRENT_REQUEST:"The control plane currently viewing this node cannot delete its own pairing.",NODE_AGENT_REMOTE_REQUIRES_PAIRED_HMAC:"Remote node connections require paired-HMAC authentication.",NODE_AGENT_REMOTE_SECRET_REQUIRED:"Enter the remote node secret.",NODE_AGENT_REMOTE_KEY_ID_REQUIRED:"Enter the remote node key ID.",NODE_AGENT_REVERSE_TUNNEL_OFFLINE:"The node agent reverse tunnel is offline.",NODE_JOIN_TOKEN_INVALID:"The node join token is invalid or expired.",NODE_JOIN_NODE_ALREADY_EXISTS:"This node is already registered.",NODE_RUNTIME_NOT_FOUND:"The selected runtime was not found on the node.",NODE_LOCAL_FOLDER_NOT_FOUND:"The selected local folder was not found on the node.",NODE_FOLDER_PATH_NOT_FOUND:"The folder path does not exist on the node.",NODE_FOLDER_PATH_NOT_DIRECTORY:"The selected path is not a folder.",NODE_FOLDER_PATH_UNREADABLE:"The folder cannot be accessed by the node agent.",LOCAL_NODE_CANNOT_BE_DELETED:"The built-in local node cannot be deleted.",NODE_MODEL_NOT_FOUND:"The selected model was not found on the node.",NODE_MODEL_DISABLED:"The selected model is disabled on the node.",NODE_MODEL_APP_MISMATCH:"The selected node model is not compatible with this app.",NODE_MODEL_SELECTION_MISMATCH:"The model selection does not match the node assignment.",NODE_MODEL_HASH_INVALID:"The stored node model does not match its configuration.",NODE_MODEL_MIGRATION_REQUIRED:"The instance model configuration requires manual migration.",NODE_MODEL_ENDPOINT_PROBE_UNSUPPORTED:"This node version does not support model discovery or connection testing. Upgrade the node first.",AI_SESSION_NOT_FOUND:"The AI session was not found.",AI_SESSION_ATTACHMENT_INVALID:"One or more AI session attachments are invalid.",AI_SESSION_ATTACHMENTS_TOO_LARGE:"The AI session attachments exceed the size limit.",AI_SESSION_FILE_ATTACHMENT_LIMIT_UNSUPPORTED:"Upgrade the node agent before configuring the uploaded file limit.",AI_SESSION_RUNTIME_PATH_UNSUPPORTED:"Runtime path attachments are supported only by Local Runtime instances.",AI_SESSION_MODEL_CATALOG_UNAVAILABLE:"The instance has not loaded its model configuration. Restart the instance to apply it.",AI_SESSION_MODEL_TARGET_UNAVAILABLE:"The selected model has not taken effect in this running instance. Try again in a moment, or restart the instance to apply the latest model configuration.",AI_SESSION_MODEL_ENTITY_UNAVAILABLE:"The model previously selected for this session is no longer available. Select another model to continue.",AI_SESSION_MODEL_NAME_UNAVAILABLE:"The model previously selected for this session is no longer available. Select another model to continue.",AI_SESSION_REASONING_EFFORT_UNSUPPORTED:"Reasoning effort cannot be changed for this session.",AI_SESSION_RENAME_UNSUPPORTED:"This session does not support renaming.",AI_SESSION_RENAME_CONFLICT:"The session title changed while you were editing. Review the latest title and try again.",AI_SESSION_RENAME_REQUEST_CONFLICT:"This rename request was already used for a different title.",AI_SESSION_RENAME_BINDING_CONFLICT:"This app session is linked to more than one AI session and cannot be renamed safely.",AI_SESSION_RENAME_PENDING:"The title is still synchronizing. Keep this dialog open and try again.",AI_SESSION_RENAME_NOT_CONFIRMED:"The AI provider did not confirm the new title.",AI_SESSION_CONTROL_FAILED:"The AI session action failed. Try again.",AI_SESSION_CONTROL_NOT_CONNECTED:"The instance's AI service is not connected. Try again in a moment, or restart the instance.",AI_SESSION_CREATE_UNSUPPORTED:"This agent does not support starting an AI session directly.",AI_SESSION_CREATE_INVALID_RESPONSE:"The AI provider returned an invalid session identity. Try again.",AI_SESSION_MATERIALIZATION_FAILED:"The AI session was created but its first message failed. Try again.",AI_SESSION_MODEL_SELECTION_INVALID:"The selected model is unavailable. Select another model to continue.",AI_SESSION_CREATE_REQUEST_CONFLICT:"This request ID was already used with different session settings. Start the session again to get a new request ID.",AI_SESSION_REASONING_EFFORT_CONFLICT:"Wait for the current session action to finish before changing reasoning effort.",AI_SESSION_REASONING_EFFORT_UNKNOWN:"The current reasoning effort is unavailable.",AI_SESSION_REASONING_EFFORT_INVALID_RESPONSE:"Codex returned an invalid reasoning effort.",APP_SESSION_NOT_FOUND:"The app session was not found.",APP_SESSION_DELTA_INVALID:"The app session update is invalid.",REPOSITORY_SESSION_NOT_FOUND:"The repository session was not found.",REPOSITORY_SESSION_INACTIVE:"The repository session is no longer active.",REPOSITORY_CWD_MISSING:"The session has no working directory to inspect.",REPOSITORY_CWD_INACCESSIBLE:"The session working directory is inaccessible.",REPOSITORY_GIT_UNAVAILABLE:"Git is unavailable in the controlled instance.",REPOSITORY_NOT_WORKTREE:"The session working directory is not a Git worktree.",REPOSITORY_PATH_INVALID:"The repository path is invalid.",REPOSITORY_PATH_FORBIDDEN:"The repository path is outside the allowed workspace boundary.",REPOSITORY_FILE_NOT_FOUND:"The repository file was not found.",REPOSITORY_FILE_EXISTS:"A file already exists at the destination.",REPOSITORY_FILE_TOO_LARGE:"The repository file exceeds the editor size limit.",REPOSITORY_FILE_BINARY:"Binary files cannot be opened in the text editor.",REPOSITORY_FILE_STALE:"The file changed after it was opened. Review the latest version before retrying.",REPOSITORY_STATE_STALE:"The repository changed after it was loaded. Review the latest state before retrying.",REPOSITORY_WORKTREE_NOT_FOUND:"The worktree was not found.",REPOSITORY_WORKTREE_OCCUPIED:"An active session is using this worktree.",REPOSITORY_WORKTREE_UNSAFE:"The worktree is not safe for this operation.",REPOSITORY_MAIN_DIRTY:"The main worktree has uncommitted changes that must be handled first.",REPOSITORY_MOVE_CONFLICT:"The carried changes could not be applied to the main worktree.",REPOSITORY_BRANCH_INVALID:"The branch is invalid or no longer exists.",REPOSITORY_BRANCH_OCCUPIED:"The branch is checked out in another worktree.",REPOSITORY_BRANCH_UNMERGED:"The branch contains unmerged commits.",REPOSITORY_CONFLICT:"Resolve the repository conflicts before retrying.",REPOSITORY_DIRTY:"Commit or discard the current changes before retrying.",REPOSITORY_NOTHING_TO_COMMIT:"There are no staged changes to commit.",REPOSITORY_IDENTITY_MISSING:"Configure Git user.name and user.email before committing.",REPOSITORY_HOOK_FAILED:"A Git hook rejected the operation.",REPOSITORY_SIGNING_FAILED:"Git could not sign the commit.",REPOSITORY_AUTHENTICATION_FAILED:"Git authentication failed in the controlled instance.",REPOSITORY_CREDENTIAL_MISSING:"No credential is available for this Git remote.",REPOSITORY_CREDENTIAL_AMBIGUOUS:"More than one retained credential matches this Git remote.",REPOSITORY_REMOTE_UNSUPPORTED:"This Git remote cannot use managed credentials.",REPOSITORY_HOST_KEY_REQUIRED:"The matching SSH credential requires a pinned host key.",REPOSITORY_AUTHENTICATION_REJECTED:"The Git remote rejected the available credential.",REPOSITORY_NON_FAST_FORWARD:"The branch cannot be updated with a fast-forward operation.",REPOSITORY_UPSTREAM_MISSING:"The current branch has no upstream branch.",REPOSITORY_COMMAND_TIMEOUT:"The Git command timed out.",REPOSITORY_OUTPUT_LIMIT:"The Git command exceeded its output limit.",REPOSITORY_OPERATION_ABORTED:"The repository operation was canceled.",REPOSITORY_OPERATION_FAILED:"The repository operation failed."},kqe={title:"Instances",modelEntities:{selected:"Selected model providers",orderHint:"The first compatible provider and its first model are used by default.",available:"Available providers",availableHint:"Add any provider this instance should make available to AI sessions.",add:"Add",remove:"Remove {name}",moveUpAction:"Move up",moveDownAction:"Move down",reorder:"Drag to reorder {name} or click for options",empty:"No model providers are available on this node",emptyHint:"Go to Settings → Models in the control plane to add model providers.",emptyCreateHint:"You can also create this instance now and change its model providers later in instance settings.",openSettings:"Open control plane settings",openedSettings:"Opened control plane settings so you can add model providers."},window:{invalidRoute:"This instance detail link is invalid. Choose an instance from the switcher.",instanceUnavailable:"This instance is unavailable. Choose another instance from the switcher.",alreadyOpen:"This instance is already open in another detail window.",focusedExisting:"Focused the existing instance window.",switchFailed:"The instance window could not be switched. Try again.",popupBlocked:"The browser blocked the new window. Allow popups and try again.",focusFailed:"The instance window exists, but the browser did not allow it to be focused.",openInNewWindow:"Open in new window"},list:{controlledInstances:"Controlled instances",switchInstance:"Switch instance",expand:"Expand instances list",collapse:"Collapse instances list",options:"Instance list options",new:"New instance",search:"Search instances",loading:"Loading instances...",nodeLoading:"Loading instances",nodesStillLoading:"Some nodes are still loading",nodeStale:"Showing cached instances",nodeLoadFailed:"Instances unavailable",nodeConnecting:"Connecting",nodeReconnecting:"Reconnecting",openControls:"Open controls for {name}",noMatches:"No matching instances",resizeSidebar:"Resize instances sidebar",resize:"Resize instances",localRuntime:"Local runtime",dockerRuntime:"Docker runtime",kubernetesRuntime:"Kubernetes runtime"},actions:{start:"Start",stop:"Stop",restart:"Restart",rename:"Rename",retryImage:"Retry image",retryGit:"Retry repository clone",importConfig:"Import config",exportConfig:"Export config",saveEnvironmentTemplate:"Save as environment template",closeAllSessions:"Close all sessions",closingAllSessions:"Closing all sessions...",closeAllSessionsConfirm:"Close all {count} sessions on {name}? Any active work in these sessions will stop.",closeAllSessionsSuccess:"Closed {count} sessions.",closeAllSessionsPartial:"Could not close {failed} of {total} sessions.",delete:"Delete",settings:"Settings",open:"Open",launchApp:"Launch app",app:"App",starting:"Starting",stopping:"Stopping",restarting:"Restarting",retryingImage:"Retrying image",retryingGit:"Retrying repository clone",deleting:"Deleting",importing:"Importing {name}",exporting:"Exporting {name}",deleteConfirm:"Delete {name}? This removes the instance record and stops its runtime container if it is running."},deleteDialog:{title:"Delete {name}?",description:"The runtime container and instance identity will be removed.",irreversible:"Deleting the instance and selected data cannot be undone.",deleteData:"Also delete instance data",deleteDataHint:"Permanently deletes every managed volume, including /data, /home/agent, and the Git workspace when present.",retainDataHint:"Keeps all managed volumes on this node. They will continue to use disk space and are not attached to future instances automatically.",confirm:"Delete instance",retry:"Retry deletion",partialFailure:"Some managed volumes could not be deleted. The instance record was kept so deletion can be retried safely.",retainedTitle:"Instance deleted; data retained",retainedHint:"Save these Docker volume names if you need to recover the retained data manually.",copy:"Copy name"},environmentTemplateDialog:{title:"Save as environment template",description:"Create a reusable environment from the current container filesystem of {name}.",name:"Template name",namePlaceholder:"For example: Node.js with common tools",defaultSuffix:"environment",includesTitle:"Includes",includes:"System packages, dependencies, tools, and configuration in the container writable layer.",excludesTitle:"Excludes",excludes:"/workspace, /data, /home/agent, other mounts, and memory, process, or network state.",pause:"Docker commit briefly pauses the container by default for a consistent filesystem state.",confirm:"Save template",saving:"Saving",saved:"Environment template “{name}” was saved."},configSync:{description:"Choose the programs and a folder inside {name}'s workspace.",programs:"Programs",folder:"Configuration folder",loading:"Loading configuration options...",running:"Transferring configuration...",completed:"Configuration transfer completed for {count} program(s).",resultSummary:"{copied} copied · {skipped} skipped · {failed} failed"},status:{created:"Created",provisioning:"Provisioning",starting:"Starting",registering:"Registering",registered:"Registered",running:"Running",stopping:"Stopping",stopped:"Stopped",deleting:"Deleting",failed:"Failed",unhealthy:"Unhealthy"},connection:{unknown:"Unknown",online:"Online",offline:"Offline",endpointUnreachable:"Endpoint unreachable"},health:{unknown:"Unknown",ok:"Healthy",degraded:"Degraded",failed:"Failed"},gitProvisioning:{connecting:"Connecting to Git remote",cloning:"Cloning repository","checking-out":"Checking out code",submodules:"Updating submodules",lfs:"Downloading LFS objects",finalizing:"Finalizing workspace",complete:"Repository ready",failed:"Repository clone failed",progress:"Repository clone progress",showDetails:"Show details",hideDetails:"Hide details",terminalTruncated:"Earlier terminal output was truncated.",objects:"{received} / {total} objects",waitingForOutput:"Waiting for Git output…"},imagePull:{connecting:"Connecting to image registry",pulling:"Pulling image",extracting:"Extracting image",ready:"Image ready",failed:"Image pull failed",progress:"Image pull progress",showDetails:"Show details",hideDetails:"Hide details",terminalTruncated:"Earlier terminal output was truncated.",waitingForLayers:"Waiting for layer metadata",layersReady:"{completed} / {total} ready",downloaded:"{count} downloaded",downloading:"{count} downloading",extractingLayers:"{count} extracting",preparationStages:"Image preparation stages",checkImage:"Check image",pullLayers:"Pull layers",resolveDigest:"Resolve digest",waitingForOutput:"Waiting for detailed Docker output…"},create:{eyebrow:"New instance",title:"Create controlled instance",description:"Choose a workspace and runtime for the controlled instance.",close:"Close setup panel",stepsLabel:"Create instance steps",workspace:"Workspace",runtime:"Runtime",runtimeHint:"The runtime determines how the instance runs. Docker runs the instance in a container on the node, isolating dependencies and mounting the workspace into it; the local runtime runs directly as a node process without a container.",source:"Source",useExisting:"Use existing",addRepository:"Add repository",addImage:"Add image",repository:"Repository",localFolder:"Local folder",workspaceSource:"Workspace source",selectProject:"Select project",name:"Name",repositoryName:"Repository name",gitUrl:"Git URL",creating:"Creating",createRepository:"Create repository",node:"Node",selectNode:"Select node",projectFolder:"Project folder",projectFolderHint:"The folder stays on the node and is mapped into the instance as its workspace. Container runtimes mount it into the container, so changes made inside are written back to this folder.",selectLocalFolder:"Select local folder",chooseFolder:"Choose folder...",choosing:"Choosing",browse:"Browse",image:"Image",environmentSource:"Environment source",environmentTemplate:"Environment template",selectEnvironmentTemplate:"Select an environment template",searchEnvironmentTemplates:"Search template names or image IDs",noEnvironmentTemplates:"No ready environment templates are available on this node",templateReady:"Ready",selectRuntime:"Select runtime",selectImage:"Select image",searchImages:"Search names, references, or capabilities",noImagesFound:"No matching images",marketImages:"Image Market",customImages:"Custom images",imageTag:"Image tag",selectImageTag:"Select a tag",noCapabilities:"No declared capabilities",sizeUnknown:"Size unknown",imageOrigin:{market:"Market",custom:"Custom"},lifecycle:{active:"Active",deprecated:"Deprecated",yanked:"Yanked"},noContainer:"no container",imageName:"Image name",imageReference:"Image ref",createImage:"Create image",optionalInstanceName:"Optional instance name",codexModel:"Codex model",claudeModel:"Claude model",opencodeModel:"OpenCode model",noModel:"No model",globalDefault:"Global default",modelCopyToNode:"{name} · copy to node",modelOnNode:"{name} · this node",autoImportConfigs:"Auto-import Codex and Claude config whenever this instance becomes reachable",gitCredential:"Git credential",noGitCredential:"No managed credential",gitCredentialUnsupported:"Upgrade the selected node or choose a runtime that supports managed Git workspace provisioning.",retainGitCredential:"Keep this credential in the instance",operationOnlyGitCredentialDescription:"Used only for the initial clone. Later Agent, Terminal, App, and Repository Git commands cannot use it.",retainedGitCredentialDescription:"Allows Agent, Terminal, App, and Repository processes in this instance to use the credential for matching remotes until access is revoked.",cancel:"Cancel",back:"Back",continue:"Continue",create:"Create",folders:{title:"Node folders",quickLocations:"Quick locations",home:"Home",up:"Up one level",currentPath:"Current folder",loading:"Loading",refresh:"Refresh",loadingFolders:"Loading folders...",empty:"No folders reported by this node",emptyDirectory:"This folder has no subfolders."},availability:{available:"Available",pullRequired:"Will be pulled",unknown:"Availability unknown"},docker:{ready:"Docker is ready",checking:"Checking Docker",unavailable:"Docker is not available",failed:"Docker check failed",required:"Docker must be checked",check:"Check Docker",retry:"Retry check",mustCheck:"The Docker daemon must be checked before this instance can be created.",unverified:"Docker could not be verified on the selected node.",checkingDaemon:"Checking the Docker daemon on the selected node…",daemonAvailable:"Docker daemon is available.",daemonVersionAvailable:"Docker daemon {version} is available.",daemonUnavailable:"Docker daemon is not available.",install:{windowsLabel:"Install Docker Desktop",windowsMessage:"Install Docker Desktop on the selected Windows node, start it, then retry the check.",macLabel:"Install OrbStack",macMessage:"Install and start OrbStack on the selected macOS node, then retry the check.",linuxLabel:"Open Docker Engine installation guide",linuxMessage:"Install Docker Engine using Docker's official instructions for the selected Linux distribution, start the daemon, then retry the check.",genericLabel:"Open Docker installation guide",genericMessage:"Install and start Docker on the selected node, then retry the check."}},blocked:{repository:"Select a repository.",node:"Select a node.",workspaceNode:"No node is available for this workspace. Connect a node first.",localFolder:"Select or choose a local folder.",runtime:"Select a runtime.",dockerChecking:"Checking the Docker daemon on the selected node.",dockerUnavailable:"Docker must be available on the selected node before creating an instance.",image:"Select an image.",environmentTemplate:"Select an environment template."},feedback:{instanceCreated:"Instance created",createdButStartFailed:"Instance created, but failed to start: {error}",projectCreated:"Project created",namedCreated:"{name} created",imageCreated:"Image created",refreshFailed:"{description}, but the control-plane view could not refresh: {error}"}},board:{label:"Instance board",loading:"Loading control plane...",search:"Search board",allProjects:"All projects",allStatuses:"All statuses",showApp:"Show app",mixedApps:"Mixed apps",options:"Board options",cardSize:"Board card size",switchSession:"Switch session for {name}",previousAiSession:"Previous AI session",nextAiSession:"Next AI session",sessionFrame:"{name} session",noMatches:"No matching instances",empty:"No instances yet",allNodes:"All nodes",selectedNodes:"{count} nodes selected",small:"Small",medium:"Medium",large:"Large"},viewOptions:{label:"Instance view options",sort:"Sort",name:"Name",node:"Node",status:"Status",groupByNode:"Group by node",interaction:"Interaction",interactWithPreviews:"Interact with previews"},detail:{label:"Instance detail",loading:"Loading control plane...",editName:"Edit name for {name}",editNameTitle:"Edit instance name",controls:"Instance controls",protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",protocolOk:"protocol ok",protocolMismatch:"protocol mismatch",emptyTitle:"Ready for a first instance",emptyDescription:"Create a project-backed controlled instance to register a worker into this control plane.",renameFailed:"Failed to rename instance."},lifecycle:{preparing:"Preparing instance",imageFailed:"Image preparation failed",preparingWorkspace:"Cloning repository",workspaceFailed:"Repository clone failed",created:"Instance created",preparingRuntime:"Preparing runtime",connecting:"Connecting instance",stopping:"Stopping instance",stopped:"Instance stopped",failed:"Instance failed",unhealthy:"Instance unhealthy",starting:"Starting instance",updatingRuntime:"Updating instance runtime",runtimeUnavailable:"Runtime unavailable",runtimeUnavailableDocker:"Docker is not running",runtimeUnavailableLocal:"Local runtime is unavailable",runtimeNameDocker:"Docker",runtimeNameLocal:"the local runtime",runtimeUnavailableDetail:"{runtime} is not running on the node, so the instance cannot start. It recovers automatically once {runtime} starts.",runtimeUnavailableReason:"{runtime} is not running on the node, so the instance cannot start. It recovers automatically once {runtime} starts. Reason: {reason}",runtimeDrainingDetail:"Stopping active processes in the instance before updating its runtime.",runtimeInstallingDetail:"Installing the new instance runtime.",runtimeRestartingDetail:"The runtime is installed. Restarting instance services.",runtimeVerifyingDetail:"Instance services restarted. Verifying the runtime version and health.",cloningRepositoryDetail:"Cloning the Git repository. The container starts once the code is on disk.",checkingOutDetail:"Checking out the requested branch or commit.",submodulesDetail:"Initializing and updating submodules.",lfsDetail:"Downloading Git LFS objects.",finalizingWorkspaceDetail:"Code cloned. Finalizing the workspace.",workspaceReady:"Repository ready",checkingImageDetail:"Checking whether the image is already available on the node.",pullingImageDetail:"The Docker image is being prepared before the container can start.",resolvingImageDetail:"Resolving the pulled image to its repository digest.",readyToStart:"The instance is ready to start.",failedDetail:"The instance could not be started. Retry the failed operation or inspect its runtime.",stoppedDetail:"The instance is stopped. Start it when you are ready to continue.",unhealthyDetail:"The instance health check is {health}. Restart the instance or inspect its runtime.",stoppingDetail:"Waiting for the instance runtime to stop safely.",waitingDetail:"Waiting for the controlled instance to connect · {status} · {connection}",checkingImage:"Checking image",pullingImage:"Pulling image",pullingImageProgress:"Pulling image · {message}",resolvingDigest:"Resolving image digest",imageProvisionFailed:"Image provisioning failed",imageReady:"Image ready",source:"Source",localFolder:"Local folder",localFolderLower:"local folder"},settings:{eyebrow:"Instance settings",unavailableTitle:"Instance unavailable",close:"Close instance settings",unavailable:"This instance is no longer available.",description:"Configure this instance. Model credentials remain in control-plane Settings.",sections:"Instance settings sections",sectionGroups:{instance:"Instance",agent:"Agent",provisioning:"Apps & credentials"},general:"General",ai:"AI",codex:"Codex",aiConfigurationTitle:"AI settings",aiConfigurationDescription:"Configure AI sessions, attachments, and new session defaults.",codexConfiguration:"Codex configuration",codexConfigurationDescription:"Enable Codex model, session permission, and Codex Home settings.",codexHome:"Codex Home",codexHomeDescription:"Choose where Codex configuration and session data are stored.",codexHomeDefault:"Codex default",codexHomeTaskHandoff:"TaskHandoff config directory",codexConfigurationTitle:"Codex settings",codexConfigurationPageDescription:"Configure Codex defaults for this instance. Changes apply to new sessions and newly spawned agents.",codexSettingsUnsupported:"Upgrade the node agent and controlled instance to manage Codex settings.",codexVerbosity:"Response detail",codexVerbosityDescription:"Choose how concise or detailed Codex responses should be by default.",followCodexDefault:"Follow Codex default",verbosityLow:"Concise",verbosityMedium:"Standard",verbosityHigh:"Detailed",codexPersonality:"Communication style",codexPersonalityDescription:"Choose the default communication style for supported models.",personalityNone:"No specific style",personalityFriendly:"Friendly",personalityPragmatic:"Pragmatic",codexMultiAgent:"Multi-agent",codexMultiAgentDescription:"Allow Codex to delegate work to sub-agents.",codexMultiAgentConcurrency:"Maximum concurrent sub-agents",codexMultiAgentConcurrencyDescription:"Leave empty to use the Codex limit; allowed range is 1–64.",codexDefaultSubagentModel:"Default sub-agent model",codexDefaultSubagentModelDescription:"Use an assigned Codex model when a spawn request does not select one.",codexSubagentReasoning:"Default sub-agent reasoning",codexSubagentReasoningDescription:"Used when a spawn request does not select a reasoning effort.",codexSettingsSaved:"Codex settings saved.",codexReasoning:{none:"None",minimal:"Minimal",low:"Low",medium:"Medium",high:"High",xhigh:"Extra high",max:"Maximum",ultra:"Ultra"},models:"Models",apps:"Apps",browser:"Browser",browserGoToApps:"Go to Apps",browserNotInstalled:"Chromium is not installed on this instance",browserNeedsAttention:"Chromium needs attention before it can be used",codexNotInstalled:"Codex is not installed on this instance",browserProfilesTitle:"Browser profiles",browserProfilesDescription:"Profiles keep browser sign-ins and data across sessions. Only one session can run on a profile at a time.",browserProfilesLoading:"Loading browser profiles…",browserProfilesUnsupported:"Upgrade the controlled instance to manage browser profiles. Launching still uses a temporary profile.",browserProfilesFailed:"Could not load browser profiles.",refreshBrowserProfiles:"Refresh browser profiles",browserProfileCreate:"Create",browserProfileNamePlaceholder:"New profile name",browserProfileDefault:"Default",browserProfileDefaultName:"Default",browserProfileRunning:"Running",browserProfileDiskUsage:"{size} on disk",browserProfileDiskUnknown:"Disk usage unavailable",browserProfileOpenSession:"Open session",browserProfileSetDefault:"Set default",browserProfileRename:"Rename",browserProfileDelete:"Delete",browserProfileDeleteTitle:"Delete {name}?",browserProfileDeleteDescription:"The profile's sign-ins, extensions, and history are permanently deleted. This cannot be undone.",browserProfileCreated:"Browser profile {name} created.",browserProfileRenamed:"Browser profile renamed to {name}.",browserProfileDefaultSet:"{name} is now the default browser profile.",browserProfileDeleted:"Browser profile {name} deleted.",creating:"Creating",deleting:"Deleting",save:"Save",gitCredentials:"Git credentials",gitCredentialsTitle:"Instance Git access",gitCredentialsDescription:"Retained authorization is managed by the Node Agent and is available to Agent, Terminal, App, and Repository processes in this instance for matching remotes.",gitCredentialsUnsupported:"Upgrade the Node Agent and controlled instance before assigning retained Git credentials.",gitCredentialsLoading:"Loading instance Git authorization...",gitCredentialsLoadFailed:"Could not load instance Git authorization.",selectGitCredential:"Select an enabled credential",authorizeGitCredential:"Authorize",noGitCredentials:"No retained Git credentials are assigned",revokeGitCredential:"Revoke",gitCredentialRevision:"Credential revision {credential} · assignment revision {assignment}",gitCredentialAuthorizeFailed:"Could not authorize the Git credential.",gitCredentialRevokeFailed:"Could not revoke the Git credential.",gitCredentialMatchUnique:"The instance remote currently matches {name}.",gitCredentialMatchNone:"No synchronized retained credential matches the instance remote.",gitCredentialMatchAmbiguous:"The instance remote has {count} equally specific credential matches.",gitCredentialMatchHostKey:"The matching SSH credential requires pinned host keys.",gitCredentialMatchUnsupported:"The instance remote cannot be normalized for managed credentials.",gitCredentialMatchStatus:{unique:"Matched",none:"No match",ambiguous:"Ambiguous","missing-host-key":"Host key",unsupported:"Unsupported"},gitCredentialStatus:{pending:"Pending",synced:"Synced to node",deferred:"Waiting for node",revoking:"Revoking"},detailsTitle:"Instance details",detailsDescription:"Runtime and workspace information reported by the node.",id:"ID",state:"State",node:"Node",runtime:"Runtime",image:"Image",workspace:"Workspace",protocol:"Protocol",build:"Build",none:"None",notReported:"Not reported",configurationTitle:"Configuration",configurationDescription:"Instance-level defaults for agent configuration and newly created sessions.",instanceName:"Instance name",instanceNameDescription:"Used to identify this instance throughout the control plane.",autoImport:"Automatically import agent configuration",autoImportDescription:"Import supported agent configuration when this instance starts.",sessionPermissions:"New Codex session permissions",sessionPermissionsDescription:"Used to initialize new session composers. Existing sessions keep their own selection.",aiSessionHistoryLimit:"AI session history retention",aiSessionHistoryLimitDescription:"Keep this many closed AI sessions and their legacy Timeline history on the instance (1–500).",aiSessionHistoryLimitUnsupported:"Upgrade the node agent and controlled instance to configure history retention.",aiSessionAttachmentRetention:"Conversation attachment retention",aiSessionAttachmentRetentionDescription:"Keep sent images and files on this instance for 0–365 days. Zero expires content immediately while retaining message metadata.",aiSessionAttachmentRetentionUnsupported:"Upgrade the node agent and controlled instance to configure attachment retention.",aiSessionAttachmentRetentionWarning:"Shortening this period can immediately and irreversibly delete expired attachment content.",aiSessionFileAttachmentLimit:"Maximum uploaded file size (KiB)",aiSessionFileAttachmentLimitDescription:"Ordinary files and long pasted text must be smaller than this size on this instance (1–20480 KiB). Images keep their separate 20 MiB limit.",aiSessionFileAttachmentLimitUnsupported:"Upgrade the node agent to configure the uploaded file limit.",askApproval:"Ask for approval",approveForMe:"Approve for me",fullAccess:"Full access",saving:"Saving",saveChanges:"Save changes",generalSaved:"General settings saved.",modelSelection:"Model selection",modelEntities:"Model entities",activeModel:"Current model: {name}",modelSelectionDescription:"Control-plane models are deployed to this instance's node before assignment. Node-local models are available only on their owner node. Changes apply on the next start or restart.",noModel:"No model",globalDefault:"Global default",invalidModel:"The stored selection is deleted, disabled, or belongs to another app. Choose a model or Global default.",unavailableModel:"Unavailable · {id}",effectiveModel:"Effective: {name}",noEnabledGlobalModel:"No enabled global model",saveModels:"Save model settings",modelsSaved:"Model settings saved. They will apply on the next start or restart.",managedApps:"Managed apps",managedAppsDescription:"Install, update, and remove trusted built-in apps on this controlled computer.",refreshApps:"Refresh managed apps",appsLoading:"Loading the controlled computer's app capabilities…",appsUnavailable:"App management unavailable",retry:"Retry",noSnapshot:"No authoritative app management snapshot is available",noManagedApps:"This controlled instance does not publish any managed apps",appFilters:"Managed app filters",observed:"Observed {time} · Privilege {privilege}",readyToInstall:"{count} ready to install",noInstalls:"No installs available",noFilterMatches:"No apps match this filter",installing:"Installing",updating:"Updating",uninstalling:"Uninstalling",install:"Install",update:"Update",uninstall:"Uninstall",liveInstallerOutput:"Live installer output",installerOutput:"Installer output",latestLog:"latest 32 KB",retryDetected:"You can retry from the current detected state.",customLaunchers:"Custom launchers",customLaunchersDescription:"Launcher entries only. They register programs already present on the computer and cannot install software.",noCustomLaunchers:"No custom launchers are registered on this instance",executableMissing:"Executable not found on the controlled computer.",inventoryDiagnostics:"Inventory diagnostics",inventoryObserved:"Inventory observed {time}",operationQuestion:"{operation} {name}?",app:"App",target:"Target",privilege:"Privilege",cancel:"Cancel",queuing:"Queuing…",confirmInstall:"Confirm install",confirmUpdate:"Confirm update",confirmUninstall:"Confirm uninstall",installDescription:"The controlled instance will execute its trusted built-in recipe on the final computer. The request cannot provide a custom package, URL, or command.",updateDescription:"The controlled instance will update the app to the latest version from its current built-in recipe. User configuration, AI sessions, and workspaces are preserved. Running app sessions are not terminated and use the new version on their next launch.",uninstallDescription:"The program files owned by the built-in recipe will be removed. User configuration, AI sessions, and workspaces are preserved. Running app sessions must be stopped first.",inventoryCurrent:"Current",inventoryStale:"Stale",inventoryEmpty:"Empty",inventoryDegraded:"Degraded",filterAll:"All",filterAvailable:"Available",filterInstalled:"Installed",waitingInstaller:"Waiting for the installer to start…",queued:"Queued",installation:"Installation",uninstallation:"Uninstallation",succeeded:"{operation} succeeded",cancelled:"{operation} cancelled",interrupted:"{operation} interrupted",failed:"{operation} failed",stateInstalled:"Installed",stateNotInstalled:"Not installed",stateBroken:"Needs attention",stateUnsupported:"Unsupported",bundledUnavailable:"Not included in this controlled computer build.",noAction:"No app management action is available",appActions:"App actions",checkUpdate:"Check for updates",checkingUpdate:"Checking for updates…",updateAvailable:"Update available · {installed} → {latest}",updateUpToDate:"Up to date",updateUnknown:"Update status unknown",updateUnknownReason:"Update check failed · {reason}",updateUnsupported:"This app does not support update checks",operationQueued:"{operation} queued for {name}."}},wqe={home:"Home",board:"Board",ai:"AI",story:"Story",settings:"Settings",user:"User",userMenu:"User menu",signedInAs:"Signed in as",instances:"Instances",nodes:"Nodes",workbenchView:"Workbench view",windowControls:"Window controls",controlPlane:"Control plane",approvals:"Approvals",collapseApprovals:"Collapse approvals",expandApprovals:"Expand approvals",noApprovals:"No pending approvals",aiSessionApproval:"AI session approval",operationApproval:"Operation approval",storyDecision:"Story decision",instanceDeleteApproval:"Delete instance",nodeRemoveApproval:"Remove node",nodeUpdateApproval:"Apply node update",nodeExternalListenerApproval:"Change external listener",userAccessApproval:"Change user access",roleUpdateApproval:"Update role",roleRemoveApproval:"Remove role",identityProviderUpdateApproval:"Update identity provider",identityProviderRemoveApproval:"Remove identity provider",gitCredentialAssignApproval:"Assign Git credential",approvalFields:{roleIds:"Roles",nodeScope:"Node scope",instanceScope:"Instance scope",changedFields:"Changed fields",permissionIds:"Permissions",status:"Status",loginPolicy:"Login policy",credentialId:"Credential",bindScope:"Bind scope",port:"Port",targetVersion:"Version",channel:"Channel"},approveOperation:"Approve",denyOperation:"Deny",moreApprovals:"{count} more approvals · Show next"},Sqe={title:"Repository",files:"Files",changes:"Changes",branches:"Branches",worktrees:"Worktrees",empty:"No repository content",common:{cancel:"Cancel",close:"Close",refresh:"Refresh",unknownBranch:"Unknown branch",unbornBranch:"Unborn branch",detachedAt:"Detached at {commit}",repositoryRoot:"repository root",cwd:"cwd: {path}"},errors:{workspaceLoad:"Failed to load repository workspace.",directoryLoad:"The repository directory could not be loaded.",fileLoad:"The repository file could not be opened.",contextLoad:"The instance did not return repository context.",branchesLoad:"The instance did not return branches.",branchOperation:"The branch operation failed.",worktreesLoad:"The instance did not return worktrees.",changesLoad:"Repository changes could not be loaded.",operation:"Repository operation failed.",diffLoad:"The file diff could not be loaded.",delivery:"Repository delivery failed."},workspace:{explorer:"File Explorer",loading:"Loading repository…",fileLoading:"Loading file…",openChanges:"Open Changes",changesCount:"Changes · {count}",newFile:"New file",searchFiles:"Search files or folders",searchUnavailable:"Search is unavailable on this instance",searching:"Searching…",searchError:"Repository paths could not be searched.",noSearchResults:"No matching files or folders",searchTruncated:"More results exist; enter a more specific path",empty:"The repository folder is empty",resizeSidebar:"Resize repository sidebar",openFiles:"Open repository files",closeFile:"Close {path}",executable:"executable",text:"text",rename:"Rename",delete:"Delete",openFile:"Open a file",browseHint:"Browse repository-relative files from the explorer.",newFileTitle:"New repository file",newFileDescription:"Create an empty UTF-8 text file using a repository-relative path.",filePath:"File path",create:"Create file",creating:"Creating…",createError:"File could not be created.",renameTitle:"Rename repository file",renameDescription:"The destination must not already exist.",newPath:"New path",renameFile:"Rename file",renaming:"Renaming…",renameError:"File could not be renamed.",deleteTitle:"Delete repository file?",deleteDescription:"This permanently removes {path}.",deleteFile:"Delete file",deleting:"Deleting…",deleteError:"File could not be deleted.",detached:"detached {commit}",unborn:"unborn"},environment:{title:"Environment",refresh:"Refresh environment",offline:"Instance offline",offlineHint:"Reconnect the instance to inspect this session environment.",reading:"Reading environment",readingHint:"Resolving the session cwd and repository state.",filesChanges:"Files / Changes",filesUnavailable:"Repository files are unavailable",review:"Review changes",reviewHint:"Changed files only · continuous diff review",changesUnavailable:"Repository changes are unavailable",detachedNotice:"Detached HEAD at {commit}. Create or checkout a branch before publishing.",unbornNotice:"Unborn branch with no commit yet. Create the first commit before delivery actions become available.",worktree:"Worktree",branch:"Branch",noChanges:"No local changes",branchSync:"{branch} · {ahead} ahead, {behind} behind",unavailable:{sessionNotFound:"This session no longer exists.",sessionInactive:"This session is no longer active.",cwdUnavailable:"The session working directory is unavailable.",notRepository:"The session working directory is not inside a Git repository.",repositoryMissing:"The repository is no longer available.",default:"Repository environment is unavailable."},primary:{publish:"Publish branch",push:"Push branch",pull:"Pull fast-forward",diverged:"Resolve diverged branch",upToDate:"Branch up to date"}},branchesPanel:{region:"Repository branches",create:"Create branch",refresh:"Refresh branches",newFromHead:"New branch from current HEAD",createCheckout:"Create and checkout",search:"Search branches",reading:"Reading branches…",local:"Local",remote:"Remote-tracking",noLocal:"No matching local branches",noRemote:"No matching remote-tracking branches",folder:"{name} folder, {count} branch | {name} folder, {count} branches",uncommitted:"{count} uncommitted file | {count} uncommitted files",checkedOut:"Checked out in {count} worktree | Checked out in {count} worktrees",sync:"{ahead} ahead, {behind} behind",delete:"Delete branch",tracked:"Tracked in {count} worktree | Tracked in {count} worktrees",track:"Track",trackingTitle:"Create tracking branch",trackingDescription:"Create a local branch that explicitly tracks {branch}.",localName:"Local branch name",trackingError:"The tracking branch could not be created.",deleteTitle:"Delete local branch?",deleteDescription:"Only a merged branch that is not current or checked out in another worktree can be deleted. Force deletion is not available.",deleteError:"The branch could not be deleted."},worktreesPanel:{region:"Repository worktrees",title:"Worktrees",description:"Inspect repository workspaces, session occupancy, and safe management actions.",search:"Search branches, commits, or worktree types…",count:"{count} worktrees",filteredFrom:"Filtered from {count}",noMatch:"No worktrees match this search",createSession:"New worktree",createDescription:"Create an isolated worktree from an existing branch or a new branch.",refresh:"Refresh worktrees",actions:"Worktree actions",newTitle:"New isolated AI session",newHint:"A managed worktree is created first. The current session stays in this worktree.",newBranch:"New branch",startRef:"Start ref",task:"Task",taskPlaceholder:"Describe what this AI session should do",createError:"Failed to create the worktree.",creating:"Creating worktree…",create:"Create worktree",reading:"Reading worktrees…",empty:"No worktrees were returned",startError:"Failed to start an AI session in this worktree.",current:"Current",main:"Main",managed:"Managed",external:"External",dirty:"Dirty",locked:"Locked",prunable:"Prunable",starting:"Starting AI session…",start:"Start AI session",newHere:"New AI session here",remove:"Remove worktree",removeManaged:"Remove managed worktree",removeTitle:"Remove worktree?",removeHint:"The current AI session and its working directory will not change.",removeError:"Failed to remove the worktree.",removing:"Removing…",blockers:{locked:"Locked worktree",prunable:"Prunable worktree record",outside:"Outside authorized workspace roots",inaccessible:"Worktree directory is inaccessible",unavailable:"Unavailable for a new AI session",cannotRemove:"Worktree cannot be removed",main:"Main worktree",currentWorktree:"Current worktree",external:"External worktree",outsideRoots:"Outside authorized roots",uncommitted:"Uncommitted changes",activeSession:"Associated session",directoryInaccessible:"Directory inaccessible",mainSessionOccupied:"Main worktree has a running session",detachedHead:"HEAD is detached",unbornHead:"Branch has no commit yet",mainDirty:"Main worktree has uncommitted changes"},moveToMain:"Move to main worktree",moveToMainChecking:"Checking the main worktree…",moveToMainTitle:"Move to the main worktree?",moveToMainDescription:"The main worktree adopts this worktree's branch and its uncommitted changes, then the worktree directory is deleted. The main worktree's own uncommitted changes and running sessions must be handled first.",moveToMainMainBranch:"Main worktree branch: {branch}",moveToMainMainDetached:"The main worktree is on a detached HEAD",moveToMainCarry:"Carries {count} uncommitted changes; ignored files are not carried.",moveToMainClean:"This worktree has no uncommitted changes.",moveToMainConfirm:"Move",movingToMain:"Moving…",moveToMainError:"Moving the worktree into the main worktree failed.",movedToMain:"Moved into the main worktree.",movedToMainWithChanges:"Moved into the main worktree and carried its uncommitted changes.",removedRetained:"Worktree removed. Its branch was retained.",removed:"Worktree removed.",recovery:"The new worktree was retained so its state can be recovered safely."},review:{title:"Changes",openExplorer:"Open File Explorer",explorer:"File Explorer",files:"Files",filter:"Filter changed files…",changedFiles:"Changed files",noMatch:"No changed files match this view",scope:"Change scope",layout:"Diff layout",unified:"Unified",unifiedDiff:"Unified diff",split:"Split",splitDiff:"Split diff",splitWide:"Split view requires a wider window",loading:"Loading repository changes…",noScope:"No changes in this scope",noScopeHint:"Choose another scope or refresh the repository snapshot.",discardTitle:"Discard working tree change?",discardDescription:"This restores {path} from the index. Existing staged content is retained.",discard:"Discard change",discardError:"The working tree change could not be discarded.",noSnapshot:"No snapshot",working:"Working",staged:"Staged",conflicts:"Conflicts",markedResolved:"Marked conflict as resolved and staged it.",stagedSuccess:"Staged change.",unstagedSuccess:"Unstaged change.",discardedSuccess:"Discarded working tree change.",snapshotUnavailable:"Repository snapshot is unavailable."},diff:{collapse:"Collapse context",openFiles:"Open files",unstage:"Unstage",stage:"Stage",resolved:"Mark resolved",discard:"Discard",updating:"Updating repository…",loading:"Loading diff…",binary:"Binary file",binaryHint:"This change cannot be rendered as text.",truncatedBytes:"Only the first {count} bytes are shown.",truncatedLines:"Only the first {count} rendered lines are shown.",unifiedAria:"{path} {scope} unified diff",splitAria:"{path} {scope} split diff",noText:"No textual diff is available",none:"none",scope:{conflict:"Conflict",staged:"Staged",unstaged:"Working tree",untracked:"Untracked"},status:{added:"Added",modified:"Modified",deleted:"Deleted",renamed:"Renamed",copied:"Copied",typeChanged:"Type changed",untracked:"Untracked",unmerged:"Unmerged"},expandEarlier:"Expand {count} earlier lines",expandLater:"Expand {count} later lines",hunk:"Old lines {old}; new lines {new}"},delivery:{remote:"Remote",selectRemote:"Select a configured remote",remoteBranch:"Remote branch",setUpstream:"Set as upstream",setUpstreamHint:"This changes tracking configuration and requires this explicit confirmation.",source:"Source",destination:"Destination",explicitRefspec:"Push uses an explicit refspec and never uses force.",upstream:"Upstream",mode:"Mode",ffOnly:"Fast-forward only",noMerge:"No merge commit or rebase will be created.",blocked:"Automatic synchronization is blocked.",divergedHint:"The branch is {ahead} ahead and {behind} behind. Resolve it in the session terminal, then refresh Environment.",upToDate:"Branch is up to date.",upToDateHint:"Fetch a configured remote to check for newer remote refs.",fetchRemote:"Fetch remote",fetchHint:"Refresh remote-tracking refs without changing the worktree.",fetch:"Fetch",titles:{publish:"Publish branch",push:"Push branch",pull:"Pull fast-forward",diverged:"Branch diverged",upToDate:"Branch up to date",fallback:"Repository delivery"},descriptions:{publish:"Choose an explicit remote and target branch. No hosting-platform integration is required.",push:"Confirm the exact local source and upstream destination before pushing.",pull:"Update the current branch only when Git can fast-forward it cleanly.",diverged:"The server has blocked automatic pull and push for this state.",upToDate:"No delivery mutation is currently required.",fallback:"Repository delivery state."},publish:"Publish",push:"Push",pull:"Pull --ff-only",continue:"Continue",fetched:"Fetched {remote}.",published:"Published {branch}.",pushed:"Pushed {branch}.",pulled:"Fast-forwarded {branch}."},working:"Working…",worktreeDirectoryRemoved:"The new worktree directory was removed; its branch was retained.",worktreeRemoveDescription:"This deletes the worktree directory. The Git branch is retained, and this action cannot be undone.",reviewExtra:{fileCount:"{count} file | {count} files",all:"All",summary:"{conflicts} conflicts · {staged} staged · {working} working"},environmentExtra:{conflict:"{count} conflict | {count} conflicts",staged:"{count} staged",unstaged:"{count} unstaged",untracked:"{count} untracked",main:"main",managed:"managed",external:"external",dirty:"dirty",activeSessions:"{count} active session | {count} active sessions",associatedSessions:"{count} associated session | {count} associated sessions",unknownCommit:"unknown commit",availability:{cwdMissing:"This session has no recorded working directory.",cwdInaccessible:"The session working directory is inaccessible.",gitUnavailable:"Git is unavailable in this instance.",notWorktree:"The current directory is not a Git repository.",available:"Repository available"},actions:{review:"Review changes",resolve:"Resolve conflicts",publish:"Publish branch",push:"Push",pull:"Pull",diverged:"Branch diverged",upToDate:"Up to date"}},errorNotice:{retryable:"Retryable",actionRequired:"Action required",manageCredentials:"Manage credentials",recovery:{REPOSITORY_SESSION_NOT_FOUND:"The session was deleted. Close this view and return to the current session list.",REPOSITORY_SESSION_INACTIVE:"The session is no longer active. Reopen Environment from an active session.",REPOSITORY_CWD_MISSING:"This session has no authoritative working directory to inspect.",REPOSITORY_CWD_INACCESSIBLE:"Restore access to the session working directory in the controlled instance, then refresh.",REPOSITORY_GIT_UNAVAILABLE:"Install Git in the controlled instance. The control plane will not run Git against a local substitute path.",REPOSITORY_NOT_WORKTREE:"This action requires a Git worktree. Use the session terminal to initialize or enter a Git worktree, then refresh Environment.",REPOSITORY_FILE_BINARY:"Binary content is not loaded into the editor. Use an appropriate tool in the session environment.",REPOSITORY_FILE_TOO_LARGE:"Open the file with a tool in the session environment; the browser editor size limit was not bypassed.",REPOSITORY_FILE_STALE:"The server version changed. Review the latest content before explicitly retrying your draft.",REPOSITORY_STATE_STALE:"Repository state changed after this view loaded. Review the latest server snapshot before retrying.",REPOSITORY_WORKTREE_NOT_FOUND:"The worktree disappeared or moved. Refresh the worktree list before choosing another one.",REPOSITORY_WORKTREE_OCCUPIED:"An active AI or app session is using this worktree. Stop or move that work before retrying.",REPOSITORY_WORKTREE_UNSAFE:"The worktree is unsafe for this operation. Review its blockers; force is unavailable.",REPOSITORY_MAIN_DIRTY:"Commit or stash the main worktree's changes first, then move the worktree. Its changes are never carried to another branch.",REPOSITORY_MOVE_CONFLICT:"The changes are still in the stash and the worktree was not removed. Resolve them in the main worktree, then drop the retained stash entry.",REPOSITORY_BRANCH_OCCUPIED:"The branch is checked out in another worktree. Use that worktree or choose a different branch.",REPOSITORY_BRANCH_UNMERGED:"The branch contains unmerged commits. Merge it safely before deletion; force deletion is unavailable.",REPOSITORY_CONFLICT:"Resolve every conflict in Files / Changes or the session terminal, then refresh repository state.",REPOSITORY_DIRTY:"Review or commit the current changes first. The system will not stash or overwrite them automatically.",REPOSITORY_IDENTITY_MISSING:"Configure Git user.name and user.email in the controlled instance before committing.",REPOSITORY_HOOK_FAILED:"Inspect the failing Git hook in the session terminal. The commit was not reported as successful.",REPOSITORY_SIGNING_FAILED:"Repair commit signing in the controlled instance or inspect it in the session terminal.",REPOSITORY_AUTHENTICATION_FAILED:"Verify the controlled instance's existing Git or SSH credentials in the session terminal.",REPOSITORY_CREDENTIAL_MISSING:"Authorize a matching credential in instance settings, then retry explicitly.",REPOSITORY_CREDENTIAL_AMBIGUOUS:"Remove the overlapping retained assignment in instance settings, then retry explicitly.",REPOSITORY_REMOTE_UNSUPPORTED:"Use an HTTPS, ssh://, or scp-like remote that matches an authorized scope.",REPOSITORY_HOST_KEY_REQUIRED:"Add pinned known-hosts data to the SSH credential, then retry explicitly.",REPOSITORY_AUTHENTICATION_REJECTED:"Rotate or replace the retained credential in instance settings, then retry explicitly.",REPOSITORY_NON_FAST_FORWARD:"Fetch and reconcile the branch in the session terminal. The system will not retry with force.",REPOSITORY_UPSTREAM_MISSING:"Publish the branch with an explicit remote and target before using upstream delivery actions.",REPOSITORY_COMMAND_TIMEOUT:"The Git command reached its time limit. Check the repository in the session terminal before retrying.",REPOSITORY_OUTPUT_LIMIT:"The command exceeded its output budget. Inspect the complete result in the session terminal.",REPOSITORY_OPERATION_ABORTED:"Repository state was preserved. Refresh the authoritative snapshot before retrying."}}},_qe={title:"AI sessions",browser:{address:"Address",back:"Back",forward:"Forward",reload:"Reload",stop:"Stop",connecting:"Connecting browser",unavailable:"Browser access is unavailable.",loadFailed:"Page failed to load.",invalidUrl:"Enter a valid HTTP or HTTPS URL.",pinned:"Web applications",addPinned:"Add web application",addPinnedTitle:"Add web application",addPinnedDescription:"Save a name and URL for quick access from the browser start page.",savePinned:"Add application",removePinned:"Remove web application",noPinned:"No web applications",recent:"Recent visits",noRecent:"No recent visits",clearRecent:"Clear",pinnedName:"Application name",pinnedUrl:"Application URL"},viewer:{pausedTitle:"Live view paused",pausedDetail:"No activity for a while, so the live view stopped. The session inside the instance is still running — reconnect to continue.",reconnect:"Reconnect"},status:{idle:"Idle",running:"Running",waiting:"Waiting",waitingApproval:"Waiting for approval",completed:"Completed",failed:"Failed",stopped:"Stopped",runningWith:"Running · {detail}",tool:"tool",editing:"editing",responding:"responding"},permission:{ask:"Ask for approval",autoReview:"Approve for me",fullAccess:"Full access"},board:{label:"AI session board",loading:"Loading AI sessions...",layout:"AI board layout",columns:"Column layout",grid:"Grid layout",search:"Search AI sessions",counts:"AI session counts",instancesOnline:"{count} instances online",options:"AI board options",sort:"Sort",sortByStatus:"Sort by status",group:"Group",noGrouping:"No grouping",groupPath:"Group by path",groupInstance:"Group by instance",groupNode:"Group by node",groupAgent:"Group by agent",boundTotal:"{visible} sessions shown · {total} total",noMatches:"No matching AI sessions",running:"Running",waitingApproval:"Waiting approval",idleOpen:"Idle",problem:"Problem",runningDescription:"Executing, thinking, using tools, or editing files",waitingDescription:"Waiting for approval or user input",idleDescription:"AI session is idle",problemDescription:"AI session failed",noRunning:"No running AI sessions",noWaiting:"No sessions waiting",noIdle:"No idle sessions",noProblem:"No problem sessions",waiting:"Waiting",idleOpenTitle:"Idle",all:"All sessions",unknownPath:"Unknown path",unknownFolder:"Unknown folder",unknownNode:"Unknown node",activity:"AI activity",countActive:"{count} active",countIdle:"{count} idle",countWaiting:"{count} waiting",updated:"AI · {time}"},actions:{allow:"Allow",skip:"Skip",deny:"Deny",controls:"AI session card controls",searchTriggers:"Search triggers",noTriggers:"No trigger templates",noMatchingTriggers:"No matching triggers",remove:"Remove",add:"Add",openAppFor:"Open app session for {agent}",openApp:"Open app session",openTerminal:"Open Terminal",moreFor:"More actions for {agent}",more:"More actions",rename:"Rename",fork:"Continue chatting",forkCurrent:"Use current workspace",forkWorktree:"Create independent worktree",continueFromTurn:"Continue chatting from this turn",forkBusyTitle:"Continue chatting while this turn is running?",forkBusyDescription:"Codex will start a new chat from the interrupted snapshot. The source turn will continue without interruption.",forkConfirm:"Continue chatting",forking:"Continuing chat",closingApp:"Closing app session",closeApp:"Close app session",closingSession:"Closing AI session",closeSession:"Close AI session",unread:"Unread AI session",openedFromTerminal:"Opened from a terminal app session",previousMessage:"Previous user message for {agent}",nextMessage:"Next user message for {agent}",addTrigger:"Add trigger",triggersBound:"{count} triggers bound",addToStory:"Add to Story",moveToStory:"Move to Story",addToConversation:"Add to conversation",saveAsPreset:"Save as preset action",loadingStories:"Loading stories…",storiesLoadFailed:"Could not load stories.",noStories:"No Story yet",storyAssigned:"Added to Story",storyMoved:"Moved to Story",storyAssignFailed:"Could not add AI session to Story",copy:"Copy",copyPath:"Copy path",copyName:"Copy name",copySessionId:"Copy Session ID",copied:"Copied",copyFailed:"Could not copy the value."},rename:{title:"Rename AI session",description:"Leave blank to use the latest prompt.",label:"Session title",failed:"Failed to rename AI session."},detail:{selected:"Selected AI session",sessionDetails:"Session details",workspace:"Workspace",session:"Session",appBinding:"App binding",forkedFrom:"Forked from",unknown:"Unknown",notBound:"Not bound",collapse:"Collapse details",expand:"Expand",collapsePrompt:"Collapse",noSelected:"No AI session selected",loading:"Loading session details…",loadFailed:"Failed to load session details.",retry:"Retry",retryWarning:"Temporary connection issue",sessionError:"Session error",noErrorDetail:"Session failed. No diagnostic details were provided."},markdown:{copied:"Copied",copy:"Copy",plainText:"Plain text",openFile:"Open in built-in file manager",openDesktopFile:"Open in desktop file manager",copyPath:"Copy file path",openBuiltinBrowser:"Open in built-in browser",openDefaultBrowser:"Open in default browser",copyLink:"Copy link"},panel:{switchBranchFailed:"Failed to switch the current folder branch.",view:"View",status:"Status",listOptions:"AI session list options",sessionList:"AI session list",sessionListDescription:"Choose a conversation to show in the detail view.",newSession:"New AI session",allStatuses:"All statuses",active:"Active",waiting:"Waiting",problem:"Problem",noMatching:"No matching sessions",noConversations:"No conversations yet",tryFilter:"Try another status filter.",startHint:"Use the + button above to start a conversation.",noAgentsTitle:"No AI agent is installed",noAgentsDescription:"Install an AI agent in this instance before starting a session.",openAppManagement:"Open App management",resizeList:"Resize AI session list",startIdea:"Start with an idea",searchProjects:"Search projects",noProjects:"No projects found",newProject:"New project",openInFileManager:"Open in file manager",openInFileManagerFailed:"Failed to open the folder in the system file manager.",renameProject:"Rename",renameProjectDescription:"Change the project name shown in folder pickers and AI session groups without changing its path.",renameProjectFailed:"Failed to rename the project.",projectName:"Project name",currentBranchMode:"Current branch",currentFolderMode:"Current folder",worktreeMode:"Worktree",chooseBranch:"Choose branch",searchBranches:"Search branches",detached:"Detached",switchBranchTitle:"Switch the current folder branch?",switchBranchDescription:"Starting the session will switch the current folder to “{branch}”. Uncommitted changes remain, but other active sessions in this folder may observe the new working tree.",confirmBranchSwitch:"Confirm switch",chooseWorktree:"Choose worktree",searchWorktrees:"Search worktrees",noWorktrees:"No matching worktrees",newWorktree:"New worktree",newWorktreeDescription:"Create an isolated worktree from an existing branch or a new branch, then start this AI session there.",newWorktreeMode:"Worktree branch mode",existingBranch:"Existing branch",newBranch:"New branch",branch:"Branch",noBranches:"No matching branches",newWorktreeDetachedDescription:"This ref is already checked out. The new worktree will use its current commit in detached HEAD mode.",newWorktreeBranch:"New branch",newWorktreeStartRef:"Start ref",useNewWorktree:"Use new worktree",currentWorktree:"Current",mainWorktree:"Main",managedWorktree:"Managed",externalWorktree:"External",dirtyWorktree:"Dirty",worktreeInUse:"In use",unknownBranch:"Unknown branch",unbornBranch:"Unborn branch",detachedWorktree:"Detached at {commit}",promptPlaceholder:"Do anything",chooseProject:"Choose project",projectUnavailable:"This project is no longer registered on the node.",startedWorktree:"AI session started in the selected worktree.",backLatest:"Back to latest",backLatestTurn:"Latest",defaultPermissionFailed:"Failed to update the default Codex permission mode.",starting:"The new AI session is still starting. Please try again in a moment.",startFailed:"Failed to start AI session.",presetSaved:"Preset action saved.",modelSwitchFailed:"Failed to switch model.",reasoningEffortFailed:"Failed to change reasoning effort.",sendFailed:"Failed to send message.",noGoal:"No active goal",commandFailed:"Failed to run command.",steerFailed:"Failed to steer message.",steerQueuedFailed:"Failed to steer queued message.",retryQueuedFailed:"Failed to retry queued message.",removeQueuedFailed:"Failed to remove queued message.",editQueuedFailed:"Failed to edit queued message.",reorderQueuedFailed:"Failed to reorder queued messages.",stopFailed:"Failed to stop AI session.",forkFailed:"Failed to continue the chat.",forkProjectionPending:"The new chat was created, but its session state is not confirmed yet. Retry shortly.",approvalFailed:"Failed to resolve approval.",closeAppFailed:"Failed to close app session.",closeSessionFailed:"Failed to close AI session.",openAppFailed:"Failed to open an app for the AI session.",setQueuePausedFailed:"Failed to update the queue state.",loadingHistory:"Loading previous conversations…",retry:"Retry",noHistory:"No previous conversations",viewHistory:"View previous conversations",selectHistory:"Select a previous conversation to view details",loadingHistoryDetail:"Loading conversation details…",noHistoryDetail:"This conversation has no details to display",continue:"Continue conversation",continueConversation:"Send a message to continue this conversation",attachmentUnavailable:"Attachment content is unavailable: {name}",backCurrent:"Back to current conversation",history:"Previous conversations",historyOptions:"Previous conversation list options",cardLayout:"Cards",listLayout:"List",noGrouping:"No grouping",groupByPath:"Group by path",groupByStory:"Group by Story",unassignedStory:"Unassigned Story",showEmptyPathGroups:"Show paths without sessions",sortByStatus:"Sort by status",expandSubSessions:"Expand sub sessions",collapseSubSessions:"Collapse sub sessions",historyLoadFailed:"Failed to load previous conversations.",historyDetailFailed:"Failed to load conversation details.",unnamedConversation:"Untitled conversation",resumePending:"The conversation started, but its runtime state is not confirmed yet. Please try again shortly.",continueFailed:"Failed to continue this conversation."},composer:{plugins:"Plugins",skills:"Skills",files:"Files",directories:"Directories",apps:"Apps",stopTurn:"Stop current AI turn",send:"Send message",sending:"Sending…",stopping:"Stopping…",editingQueuedMessage:"Editing queued message",saveQueuedMessage:"Save queued message",saving:"Saving…",cancelQueuedEdit:"Cancel queued message editing",askDescription:"Ask before accessing the internet or editing files outside the workspace.",autoReviewDescription:"Only ask for actions detected as potentially unsafe.",fullAccessDescription:"Unrestricted internet and file access without approval.",localPath:"Local path",removeAttachment:"Remove attachment",previewImage:"Preview {name}",zoomIn:"Zoom in",zoomOut:"Zoom out",copyImage:"Copy image",imageCopied:"Image copied",copyImageFailed:"Could not copy the image.",uploadProgress:"Uploading: {progress}%",blankPastedText:"Blank text",textLength:"{count} characters",followUp:"Ask for follow-up changes",noMatches:"No matches",commands:"Commands",loading:"Loading...",openCommands:"Open command menu",permissionMode:"Permission mode: {mode}",choosePermission:"Choose permission mode",modelSelectionTitle:"Model: {model}",modelSelectionUnavailable:"Model switching is unavailable for this session",noModelConfigured:"No model",openModelSettings:"Open settings",modelGroupSummary:"{model} and {count} models",provider:"Provider",model:"Model",reasoningEffort:"Reasoning effort",selectionNotSet:"Not set",steerTurn:"Steer current AI turn",steerTurnShortcut:"Steer current AI turn (Ctrl+Enter)",availableIdle:"available when idle",review:"Review uncommitted changes",rename:"Rename the current thread",goal:"Set or view the long-running goal",compact:"Summarize conversation context",threadName:"thread name",objective:"objective",supportedImages:"Only PNG, JPG, WEBP, GIF, and BMP images are supported.",emptyFile:"Empty files cannot be attached.",imageTooLarge:"An image cannot exceed 20 MB.",runtimePathOutside:"Local Runtime path attachments must be inside the current AI session workspace. Move the file into the workspace and try again.",browserPathUnavailable:"This browser cannot access the local file path. Use the desktop app to attach the path directly, or select a file smaller than 500 KiB.",fileTooLarge:"The file is too large; files must be smaller than 500 KiB.",tooManyAttachments:"You can attach at most 6 files.",totalTooLarge:"Inline attachments in one message cannot exceed 40 MB.",readFailed:"Failed to read attachment.",mentionUnavailable:"Mention catalog unavailable.",fileSearchUnavailable:"File search unavailable.",navigation:"AI session message navigation"},activity:{waitingApproval:"Waiting for approval...",waitingApprovalSummary:"Waiting for approval · {summary}",responding:"Responding...",respondingTools:"Responding... · {count} tool completed | Responding... · {count} tools completed",editing:"Editing...",waiting:"Waiting...",thinking:"Thinking...",thinkingTools:"Thinking... · {count} tool completed | Thinking... · {count} tools completed",queue:"Queue · {count}",steer:"Steer",retry:"Retry",remove:"Remove",edit:"Edit",save:"Save",cancel:"Cancel",reorder:"Drag to reorder queued message",moveUp:"Move up",moveDown:"Move down",pauseQueue:"Pause queue",resumeQueue:"Resume queue",noRecent:"No recent AI activity",runningTool:"Running {tool}",running:"Running..."},timeline:{turnActions:"Turn actions",viewMode:"Conversation detail view",compact:"Compact",full:"Conversation",user:"You",image:"Image",loading:"Loading full activity…",loadFailed:"Failed to load full activity.",noHistory:"No full conversation history is available",noActivities:"No activity is available for this message",attachmentExpired:"Content expired",attachmentMissing:"Content unavailable",activityCount:"{count} activity | {count} activities",processedUnavailable:"-",processedSeconds:"Processed in {seconds}s",processedMinutes:"Processed in {minutes}m {seconds}s",processedHours:"Processed in {hours}h {minutes}m {seconds}s",processedDays:"Processed in {days}d {hours}h {minutes}m {seconds}s",details:"Show details",input:"Input",output:"Output",copyDiff:"Copy diff",fileDiff:"File diff for {path}",noFileDiff:"No textual diff is available",commandShell:"Shell",copyOutput:"Copy output",noCommandOutput:"No output",exitCode:"Exit code: {code}",status:{running:"Running",completed:"Completed",failed:"Failed",waiting:"Waiting"},commandStatus:{running:"Running",completed:"Ran",failed:"Run failed",waiting:"Waiting to run",unknown:"Run command"}},subAgents:{label:"Sub-agent activity",summary:"Sub-agents · {details}",pending:"Pending",running:"Running",interrupted:"Interrupted",completed:"Completed",errored:"Errored",shutdown:"Shutdown",notFound:"Not found",started:"Started",interacted:"Interacted"},tabs:{views:"Session views",paneViews:"{pane} session views",paneTabs:"{pane} session tabs",status:"Status",close:"Close session",closeNamed:"Close {name}",rename:"Rename session",renameUnavailable:"Update the controlled instance to rename this linked session",moveLeft:"Move to left",moveRight:"Move to right",manageApps:"Manage apps",manageAppsDescription:"Install or uninstall apps",paneMenu:"Sessions in this pane",emptyPane:"No sessions in this pane",closeSplit:"Close split view",split:"Split session view",restore:"Restore session preview",expand:"Expand session preview",restoreShort:"Restore preview",expandShort:"Expand preview",resizePanes:"Resize session panes",instanceStatus:"Instance status",headerDensity:"Header height",headerCompact:"Compact",headerNormal:"Normal",showStatusBar:"Show bottom status bar",showInstanceSidebar:"Show instance sidebar",alwaysOnTop:"Keep window on top",alwaysOnTopReadFailed:"Failed to read the window always-on-top setting.",alwaysOnTopFailed:"Failed to update the window always-on-top setting.",health:"Health {status}",workspace:"Workspace {status}",waitingMetrics:"Waiting for the first resource sample.",resourcesUnavailable:"Resources unavailable",resourcesLoading:"Resources loading",lastRefresh:"Last refresh {time}",appSession:"App session",app:"App",titleRequired:"Session title is required.",renameFailed:"Failed to rename session.",resourcesStarting:"Resources starting",resourcesStopped:"Resources stopped",resourcesStale:"Resources stale",waitingContainer:"Waiting for the Docker container · sampled {time}",containerStopped:"Container stopped · sampled {time}",metricsUnavailable:"Docker metrics are unavailable.",sampledError:"{error} · sampled {time}",cpu:"CPU {value}",memory:"Memory {value}",network:"Network ↓{rx} ↑{tx}",processes:"Processes {count}",sampled:"Sampled {time}",stopping:"Stopping",launching:"Launching",connecting:"Connecting",offline:"Offline",launchApp:"Launch app",launchUnavailable:"Instance is still starting. Apps can be launched after it connects.",unknownWorkspace:"Unknown workspace",terminal:"Terminal",browser:"Browser",logs:"Logs",session:"Session",appFallback:"App {number}",embeddedBrowser:"Embedded browser",profileDefault:"Default",profileDefaultHint:"Default · {name}",profileRunning:"Running session",profileDiskUsage:"{size} on disk",profileDiskUnknown:"Disk usage unavailable",profileTemporary:"Temporary session",profileTemporaryDescription:"Starts with a fresh, disposable profile",profileLoading:"Loading profiles…",profileLoadFailed:"Could not load profiles.",appSessions:"{count} app sessions",noActiveApp:"No active app",readyAttach:"Ready to attach",waitingRegistration:"Waiting for registration",createdNotStarted:"Created, not started",lastHeartbeat:"Last heartbeat {time}",workbenchHint:"Create or register a controlled instance to make this workbench live.",searchProjects:"Search projects",noProjects:"No projects found",newProject:"New project",addFolderFromNode:"Add a folder from this node"}},Iqe={title:"Settings",appearance:{title:"Appearance",description:"Customize how TaskHandoff looks and behaves in this browser.",preferences:"Preferences",preferencesDescription:"Personal to this browser and applied immediately.",accessAndInput:"Access & input",accessAndInputDescription:"Shared behavior for opening sessions and writing prompts.",maintenance:"System maintenance",maintenanceDescription:"Updates and diagnostics for this Control Plane installation.",languageDescription:"Choose the language used by the control panel in this browser.",theme:"Theme",themeDescription:"Choose the color scheme used throughout the control plane.",colorTheme:"Color theme",light:"Light",dark:"Dark",queuePlacement:"Queued message position",queuePlacementDescription:"Applies only to Compact mode. Conversation mode always shows the queue above the composer.",queuePlacementDetail:"In detail",queuePlacementComposer:"Above composer",desktopUpdates:"Desktop updates",serverUpdates:"Server updates",desktopProduct:"TaskHandoff desktop",serverProduct:"TaskHandoff server",stable:"Stable",beta:"Beta",alpha:"Alpha",loadingUpdateState:"Loading update state",checking:"Checking",check:"Check",download:"Download",restartInstall:"Restart and install",openRelease:"Open release",queuing:"Queuing",update:"Update",latestJob:"Latest job",unknown:"unknown",updateAvailable:"update available",updateAvailableVersion:"Update available: {version}",upToDate:"up to date",currentNotChecked:"Current {version} · not checked",currentChecking:"Current {version} · checking for updates",downloadedRestart:"{version} downloaded · restart required",versionDownloading:"{current} → {available} · downloading",preparingRestart:"{version} · preparing to restart",currentManual:"Current {version} · manual updates only",desktopReleaseOnly:"Desktop updates use the desktop release channel.",builtinServerUnavailable:"The built-in server node is unavailable.",updateUnavailable:"Automatic updates are unavailable in this environment.",updateReason:{"development-build":"Automatic updates are disabled in development builds.","windows-signing-required":"Automatic installation requires a signed Windows installer.","appimage-required":"Automatic updates require the AppImage build. Other packages can be updated from the release page.","unsupported-platform":"Automatic updates are not supported on this platform."}},sections:"Settings sections",basic:"Basic",chat:"Chat",nodes:"Nodes",projects:"Git Projects",models:"Models",images:"Images",environmentTemplates:"Environment templates",chatBridges:"Chat bridges",gitCredentials:{navigation:"Git credentials",title:"Git credentials",description:"Manage scoped HTTPS tokens and SSH keys used by repositories and authorized instances.",add:"Add credential",loading:"Loading Git credentials...",empty:"No managed Git credentials",emptyDescription:"Add a credential to authorize matching Git remotes without exposing its secret.",loadFailed:"Could not load Git credentials.",search:"Search Git credentials",searchPlaceholder:"Search name, host, or path",kindFilter:"Credential type filter",allKinds:"All types",statusFilter:"Status filter",allStatuses:"All statuses",count:"Git credentials · {count}",filteredFrom:"Filtered from {count}",noMatches:"No matching credentials",noMatchesDescription:"Try changing the search or filters.",clearFilters:"Clear filters",createTitle:"Add Git credential",createDescription:"The secret is write-only and is not returned after saving.",editTitle:"Edit Git credential",editDescription:"Leave secret fields blank to keep the current secret, or enter a complete replacement to rotate it.",basicInformation:"Basic information",basicInformationDescription:"Name the credential and choose its authentication protocol.",scope:"Repository scope",scopeDescription:"Only remotes matching this host, port, and path prefix can use the credential.",authentication:"Authentication",authenticationDescription:"Secrets are write-only. Existing values cannot be viewed after saving.",name:"Name",kind:"Credential type",host:"Host",port:"Port",pathPrefix:"Repository path prefix",username:"Username",token:"Token",privateKey:"Private key",passphrase:"Private key passphrase",knownHosts:"Pinned known-hosts",keepSecret:"Leave blank to keep the current secret",revision:"Revision {revision}",sshKeyInputMode:"SSH key input mode",sshKeyModeGenerate:"Generate",sshKeyModeFile:"Import file",sshKeyModeManual:"Paste manually",sshKeyGenerateTitle:"Generate a key pair here",sshKeyGenerateDescription:"Create a new Ed25519 key pair without leaving this page. Copy the public key to your Git host and keep the private key in this credential.",sshKeyGenerateAction:"Generate key pair",sshKeyGenerating:"Generating…",sshKeyPublicKey:"Public key",sshKeyCopy:"Copy",sshKeyCopied:"Copied",sshKeyPublicKeyHint:"Copy this public key now and add it to your Git host as a deploy key or account SSH key. It is not stored and cannot be retrieved after saving.",sshKeyFilePrompt:"Choose or drop a private key file",sshKeyFileHint:"OpenSSH/PEM private keys such as id_ed25519 or id_rsa. The file is only read in your browser.",sshKeyFileLoaded:"Loaded {name}",sshKeyFileEmpty:"The selected file is empty.",sshKeyFileReadFailed:"Could not read the selected file.",sshKeyPlaceholder:"-----BEGIN OPENSSH PRIVATE KEY-----",sshKeyStorageHint:"The private key is only sent when you save and can never be read back.",sshKeyGenerateFailed:"Could not generate a key pair in this browser. Import or paste a key instead.",sshKeyCopyFailed:"Could not copy the public key.",knownHostsHint:"Paste the host key entry from ssh-keyscan or your known_hosts file so the credential can pin the server identity.",edit:"Edit / rotate",configure:"Configure",moreActions:"More actions",enable:"Enable",disable:"Disable",delete:"Delete",saving:"Saving",saved:"Git credential saved.",saveFailed:"Could not save the Git credential.",deleteFailed:"Could not delete the Git credential.",deleteTitle:"Delete {name}?",deleteDescription:"Credentials assigned to instances cannot be deleted until those assignments are revoked.",discardTitle:"Discard unsaved changes?",discardDescription:"Changes to this Git credential have not been saved.",discard:"Discard changes",status:{enabled:"Enabled",disabled:"Disabled"}},cloud:{navigation:"Thandoff account",title:"Connect Thandoff account",description:"Bind this Control Plane to one Thandoff account. Only local administrators can change this connection.",loading:"Loading Thandoff account connection…",loadFailed:"Could not load the Thandoff account connection.",controlPlaneId:"Control Plane ID",fingerprint:"Identity fingerprint",revision:"Binding revision",background:"Background relay",running:"Credential installed",notConnected:"Not connected",backgroundNote:"Relay is owned by the Control Plane background process. Closing this page, signing out of the local UI, or letting the authorization browser session expire does not stop it.",challengeOnce:"One-time authorization code (copied to clipboard)",challengeExpires:"Expires at {time}",creating:"Creating…",connect:"Connect Thandoff account",disableRemote:"Disable remote access",enableRemote:"Enable remote access",disconnect:"Disconnect Thandoff account",disconnectConfirm:"Disconnect the Thandoff account and immediately stop remote access?",resultUnknown:"Local access is disabled. The remote revocation result is not confirmed yet, so another Thandoff account cannot be bound.",cloneConflict:"This Control Plane identity is online from another installation. Remote access is quarantined until the clone conflict is resolved.",status:{unbound:"Not connected","pending-claim":"Awaiting authorization",active:"Connected","pending-revocation":"Revocation pending","clone-conflict":"Identity conflict"}},account:{navigation:"My account",title:"Account & security",description:"Manage your own Control Plane account. Changing your password signs out every other device.",authenticationRequired:"Account sign-in is not enabled.",username:"Username",currentPassword:"Current password",newPassword:"New password",confirmPassword:"Confirm new password",passwordLength:"The new password must contain at least 8 characters.",passwordMismatch:"The new passwords do not match.",save:"Change password",saving:"Changing password",saved:"Password changed. Other sessions were signed out.",saveFailed:"Could not change the password."},userAccess:{navigation:"Users & access",context:"Administrator tools",title:"Users & access",description:"Manage Control Plane accounts and assign each user a role and access to nodes and instances.",displayName:"Display name",username:"Username",password:"Initial password",role:"Role",allNodes:"All nodes",accessScope:"Node and instance access",nodeScope:"Node access",instanceScope:"Instance access",inheritNodeInstances:"All instances on assigned nodes",noInstances:"No instances available",create:"Create user",creating:"Creating",created:"User created.",loading:"Loading users...",loadingAccess:"Loading access...",empty:"No users found",enable:"Enable",disable:"Disable",archive:"Archive",restore:"Restore",manage:"Manage",saved:"User access updated.",userDetail:"User details",profile:"Profile",profileEdit:"Edit user information",profileDescription:"Change the display name. Local-password accounts can also change the username used to sign in.",profileSaved:"User information updated.",loginUsername:"Sign-in username",externalAccount:"Defined by an external identity",search:"Search users",allStatuses:"All statuses",selectedNodes:"{count} selected nodes",selectedInstances:"{count} selected instances",createDescription:"Create a local account with an initial role and temporary password.",saveAccess:"Save access",effectivePermissions:"Effective permissions",permissionSummary:"{permissions} permissions · {resources} resource types",viewPermissionDetails:"View details",noPermissions:"No effective permissions",permissionResources:{users:"Users",roles:"Roles","identity-providers":"Login providers",nodes:"Nodes",projects:"Projects",runtimes:"Runtimes",templates:"Templates",instances:"Instances","app-sessions":"App sessions","ai-sessions":"AI sessions",triggers:"Triggers",repositories:"Repositories",attachments:"Attachments",images:"Images",models:"Models",settings:"Settings",secrets:"Secrets","chat-bridges":"Chat bridges","public-directory":"Public directory"},permissionLabels:{users:{read:"View users",manage:"Manage users"},roles:{read:"View roles",manage:"Manage roles"},"identity-providers":{read:"View login providers",manage:"Manage login providers"},nodes:{read:"View nodes",manage:"Manage nodes"},projects:{read:"View projects",manage:"Manage projects"},runtimes:{read:"View runtimes",manage:"Manage runtimes"},templates:{read:"View templates",manage:"Manage templates"},instances:{read:"View instances",manage:"Manage instances",interactive:"Interact with instances"},"app-sessions":{read:"View app sessions",manage:"Manage app sessions",interactive:"Interact with app sessions"},"ai-sessions":{read:"View AI sessions",manage:"Manage AI sessions",interactive:"Interact with AI sessions"},triggers:{read:"View triggers",manage:"Manage triggers"},repositories:{read:"View repositories",manage:"Manage repositories"},attachments:{read:"View attachments",manage:"Manage attachments"},images:{read:"View images",manage:"Manage images"},models:{read:"View models",manage:"Manage models"},settings:{read:"View settings",manage:"Manage settings"},secrets:{manage:"Manage secrets"},"chat-bridges":{read:"View chat bridges",manage:"Manage chat bridges"},"public-directory":{read:"View public directory"}},tabs:{users:"Users",roles:"Roles",providers:"Login providers"},detailTabs:{access:"Access",security:"Sign-in & sessions"},confirmDescription:"This changes the user's ability to sign in or access the Control Plane. Confirm to continue.",confirm:{enable:"Enable this user?",disable:"Disable this user?",archive:"Archive this user?",restore:"Restore this user?",password:"Reset this user's password?","revoke-all":"Revoke all sessions?"},roles:{title:"Roles",description:"Define reusable permission sets and see which users reference them.",create:"Create role",edit:"Edit role",system:"System",noDescription:"No description",permissionCount:"{count} permissions",userCount:"{count} users",formDescription:"Select the exact permissions granted by this role.",name:"Role name",roleDescription:"Description",saved:"Role saved.",archived:"Role archived.",archiveTitle:"Archive {name}?",archiveDescription:"This role is referenced by {count} users. Referenced roles cannot be archived until assignments are changed."},providers:{title:"Login providers",description:"Configure OIDC and GitHub sign-in for this Control Plane.",create:"Add provider",edit:"Edit provider",empty:"No login providers configured",formDescription:"Saving validates the provider configuration. Secrets are never returned to the browser.",name:"Name",kind:"Provider type",issuer:"Issuer URL",githubIssuer:"github.com",clientId:"Client ID",clientSecret:"Client secret",keepSecret:"Leave blank to keep the current secret",callbackUrl:"Callback URL",loginPolicy:"New user policy",status:"Status",secretConfigured:"secret configured",secretMissing:"secret missing",saving:"Validating and saving",saved:"Login provider saved.",removeTitle:"Delete {name}?",removeDescription:"A provider with linked identities cannot be deleted."},approvals:{title:"Pending sign-up approvals",description:"Review external identities requesting a new Control Plane account.",empty:"No pending approvals",approve:"Approve",reject:"Reject",approveTitle:"Approve external identity",rejectTitle:"Reject this request?",rejectDescription:"The identity will not receive a Control Plane account from this request.",approved:"External identity approved."},identities:{title:"Login identities",unbind:"Unbind identity",unbindTitle:"Unbind this login identity?"},passwordReset:{title:"Local password",summary:"Generate a temporary password and require a change at the next sign-in.",action:"Reset password",dialogTitle:"Reset local password",description:"Save the generated temporary password before confirming. Existing sessions will be revoked.",regenerate:"Regenerate",confirm:"Confirm reset",saved:"Password reset."},sessions:{title:"Sessions",empty:"No active sessions",revoke:"Revoke",revokeAll:"Revoke all",revokeTitle:"Revoke this session?"},status:{active:"Active",disabled:"Disabled",archived:"Archived"},failed:"Could not update user access."},mobileSessions:{navigation:"Devices & sessions",title:"Mobile device sessions",description:"Devices and command line clients signed in to your account. Revoking a session signs that client out without affecting the others.",authenticationRequired:"Account sign-in must be enabled before mobile device sessions can be managed.",loading:"Loading mobile devices...",empty:"No mobile devices are signed in to this account",refresh:"Refresh",refreshing:"Refreshing",lastSeen:"Last active",expires:"Expires",signedInAs:"Account",revoke:"Revoke access",revoking:"Revoking",revokeTitle:"Revoke access for {name}?",revokeDescription:"This device will lose access to the Control Plane and must sign in again. Other devices are unaffected.",revoked:"Access revoked for {name}.",loadFailed:"Could not load mobile device sessions.",revokeFailed:"Could not revoke the mobile device session.",notFound:"This mobile device session no longer exists."},cliSessions:{title:"Command line sessions",description:"Signed-in command line clients. Revoking a session signs that client out without affecting other clients.",loading:"Loading command line sessions...",empty:"No command line clients are signed in to this account",lastSeen:"Last active",expires:"Expires",signedInAs:"Account",revoke:"Revoke access",revoking:"Revoking",revokeTitle:"Revoke access for {name}?",revokeDescription:"This command line client will lose access to the Control Plane and must sign in again. Other clients are unaffected.",revoked:"Access revoked for {name}.",loadFailed:"Could not load command line sessions.",revokeFailed:"Could not revoke the command line session.",notFound:"This command line session no longer exists."},chatBridge:{count:"Chat bridges · {count}",empty:"No chat bridges configured",pageDescription:"Manage chat entry points for Telegram, WeChat, DingTalk, and Feishu / Lark.",add:"Add bridge",chooseChannel:"Choose a chat channel",search:"Search chat bridges",searchPlaceholder:"Search name, channel, or default chat ID",channelFilter:"Chat channel",allChannels:"All channels",statusFilter:"Bridge status",allStatuses:"All statuses",statusError:"Error",filteredFrom:"Filtered from {count}",noMatches:"No matching chat bridges",noMatchesDescription:"Try changing the search or filters.",emptyDescription:"Add a chat bridge to access AI sessions from an external chat platform.",clearFilters:"Clear filters",gatewayUnavailable:"Chat gateway status unavailable",configure:"Configure",moreActions:"More bridge actions",channel:"Channel",edit:"Edit chat bridge",editDescription:"Configure credentials, default targets, and access for {channel}.",bridgeError:"Bridge runtime error",basicInformation:"Basic information",basicInformationDescription:"Name the bridge and confirm its chat channel.",connection:"Connection",connectionDescription:"Configure private credentials and connection details issued by the chat platform.",routing:"Routing and access",routingDescription:"Set the default chat target and users allowed to use this entry point.",allowedUsersCount:"{count} allowed user | {count} allowed users",pollEvery:"Poll every {value}ms",deleteTitle:"Delete chat bridge?",deleteConfirm:"Delete {name}? This chat entry point will stop working.",discardTitle:"Discard unsaved changes?",discardDescription:"The chat bridge draft has changed. Closing now will discard those changes.",discard:"Discard changes",settings:"{name} settings",createOrSelect:"Create or select a chat bridge.",name:"Name",bridgeName:"Bridge name",clientId:"Client ID",appId:"App ID",token:"Token",keepSecret:"Leave blank to keep current secret",defaultChatId:"Default chat ID",pollInterval:"Poll interval ms",contextToken:"Context token",baseUrl:"Base URL",updatesCursor:"Updates cursor",clientSecret:"Client secret",appSecret:"App Secret",domain:"Service region",feishuChina:"Feishu (China)",larkGlobal:"Lark (Global)",robotCode:"Robot code",conversationId:"Default conversation ID",corpId:"Corp ID",allowedUsers:"Allowed user IDs",allowedUsersPlaceholder:"comma or newline separated",save:"Save bridge",botTokenPlaceholder:"bot token",clientIdPlaceholder:"client ID",appIdPlaceholder:"cli_xxx",creating:"Creating chat bridge",saving:"Saving chat bridge",starting:"Starting chat bridge",stopping:"Stopping chat bridge",deleting:"Deleting chat bridge",created:"{name} bridge created.",saved:"{name} bridge saved.",stopped:"{name} bridge stopped.",started:"{name} bridge started.",deleted:"{name} bridge deleted.",secretSet:"secret set",secretMissing:"secret missing",credentialsSet:"credentials set",credentialsMissing:"credentials missing",chatId:"chat {id}",noDefaultChat:"no default chat",wechatIdPlaceholder:"wxid or room ID",contextTokenPlaceholder:"context token",savedAutomatically:"saved automatically",robotCodePlaceholder:"robot code",conversationIdPlaceholder:"open conversation ID",larkChatIdPlaceholder:"oc_xxx",larkAllowedUsersPlaceholder:"open_id, comma or newline separated",optional:"optional"},publicAccess:{title:"Public access URL",description:"Set the external address used to open control plane sessions from chat.",field:"Control Plane URL",useCurrent:"Use current URL",currentFilled:"Current URL filled in.",saved:"Public URL saved."},diagnosticLogs:{title:"Diagnostic logs",description:"Capture detailed Control Plane activity for troubleshooting. The setting takes effect immediately and is kept across restarts.",enabled:"Detailed logging is on",disabled:"Detailed logging is off",sensitive:"Exports may contain workspace paths, instance identifiers, and error details. Review the archive before sharing it.",export:"Export logs",exporting:"Preparing export",exported:"Diagnostic logs exported.",enabledMessage:"Diagnostic logging enabled.",disabledMessage:"Diagnostic logging disabled."},composer:{title:"Composer shortcuts",description:"Configure the characters that open commands and context mentions in every AI composer.",commandTrigger:"Command trigger",commandTriggerAria:"Command trigger character",mentionTrigger:"Mention trigger",mentionTriggerAria:"Mention trigger character",reset:"Reset",defaultsReady:"Defaults ready. Save to apply them.",saved:"Composer shortcuts saved.",mentionInvalid:"Use one non-letter, non-number, non-space character except / or \\.",commandInvalid:"Use one non-letter, non-number, non-space character except \\. It must differ from the mention trigger."},fields:{name:"Name",endpoint:"Endpoint",location:"Location",app:"App",apiKey:"API key"},modelRegistry:{count:"Models · {count}",enabled:"Enabled",disabled:"Disabled",credential:"Credential {value}",set:"set",missing:"missing",pageDescription:"Manage model connections available to the Control Plane and its nodes.",search:"Search models",searchPlaceholder:"Search name, model ID, or endpoint",allApps:"All apps",allLocationsFilter:"All locations",statusFilter:"Model status",allStatuses:"All statuses",diagnosticsDescription:"{count} node report could not be loaded | {count} node reports could not be loaded",filteredFrom:"Filtered from {count}",loading:"Loading models…",noMatches:"No matching models",noMatchesDescription:"Try changing the search or filters.",emptyDescription:"Add a model connection to make it available to agents.",clearFilters:"Clear filters",locationCount:"{count} location | {count} locations",configure:"Configure",moreActions:"More model actions",controlPlaneManaged:"Managed by the Control Plane",copy:"Copy model",editScopeWarning:"Name, endpoint, model names, API protocols, status, and any replacement credential will be updated at every location.",basicInformation:"Basic information",basicInformationDescription:"Name the connection and set its availability.",enabledDescription:"Allow this model to be selected for new and existing configurations.",connection:"Connection",connectionDescription:"Configure the provider endpoint, API protocols, and private credential.",deleteTitle:"Delete model location?",discardTitle:"Discard unsaved changes?",discardDescription:"The model draft has changed. Closing now will discard those changes.",discard:"Discard changes",references:"{count} reference | {count} references",locations:"Model locations",referenceDistribution:"Reference distribution",noReferences:"No instances reference this model",moveUp:"Move model up",moveDown:"Move model down",openInstanceSettings:"Open model settings for {name}",unlistedReferences:"{count} more reference is not found in the instance list | {count} more references are not found in the instance list",editAll:"Edit all",deleting:"Deleting",deleteFrom:"Delete from",inUseBy:"In use by {count} instance | In use by {count} instances",deleteLocation:"Delete this location only",empty:"No models configured",diagnostics:"Some node models could not be loaded",retrying:"Retrying",edit:"Edit model",add:"Add model",copyTitle:"Copy model",copyDescription:"Create a new model from a Control Plane configuration while securely inheriting its credential.",copyName:"{name} copy",copyIdentityHint:"Change the default model, endpoint, or API key to create a distinct model.",copyCredential:"Leave blank to inherit the source credential, or enter a replacement key.",createCopy:"Create copy",editDescription:"Changes apply to all {count} locations while this model keeps its identity.",pendingSync:"{count} location pending | {count} locations pending",locationSynced:"In sync",locationPending:"Pending sync",syncLocations:"Sync to nodes",synced:"Every location is in sync.",syncFailed:"The model could not be synced to every location.",syncIncomplete:"{count} location could not be updated yet; retry from the model menu. | {count} locations could not be updated yet; retry from the model menu.",mergeInto:"Merge into",mergeIntoDescription:"Reassign instances to {model} ({endpoint}) and remove this copy",mergeTitle:"Merge model copies?",merge:"Merge",merging:"Merging",mergeConfirm:"Reassign every instance from {source} to {target} and delete the superseded copy?",merged:"Merged. {count} instance assignment was re-pointed. | Merged. {count} instance assignments were re-pointed.",addDescription:"Create a private model configuration at one location.",new:"New model",controlPlane:"Control plane",allLocations:"All {count} locations",modelNames:"Model names",externalName:"Display name",upstreamName:"Upstream model",upstreamNamePlaceholder:"Same as display name",addModelName:"Add model name",modelNamePlaceholder:"Enter model ID",removeModelName:"Remove model name",reorderRow:"Drag to reorder or click for options",moveRowUp:"Move up",moveRowDown:"Move down",protocols:"API protocols",protocolsDescription:"Select all that apply. Instances show models that match the app's required protocol.",protocol:{"openai-responses":"OpenAI Responses","openai-chat-completions":"Chat Completions","anthropic-messages":"Anthropic Messages"},protocolDescription:{"openai-responses":"/responses","openai-chat-completions":"/chat/completions","anthropic-messages":"/messages"},model:"Model",keepKey:"Leave blank to keep current key",keepCredential:"Leave blank to keep the current credential at every location.",save:"Save model",create:"Create model",saving:"Saving",saved:"{name} saved.",deleteConfirm:"Delete {name} from {location}? Other locations will be kept.",selectLocation:"Select location",selectApp:"Select app",namePlaceholder:"OpenAI primary",nodeLocation:"Node · {name}",discover:"Fetch models",discovering:"Fetching",discovered:"Found {count} models · {latency}ms",discoveredEmpty:"Endpoint is available but returned no models · {latency}ms",chooseDiscovered:"Choose a fetched model",searchModels:"Search models",noModelMatches:"No matching models",manualModelHint:"Choose a fetched model or enter a model ID directly.",test:"Test connection",testing:"Testing",testSucceeded:"Model request succeeded · {latency}ms",probeUnsupported:"Upgrade the selected node before discovering models or testing the connection.",mappings:"Model mappings",mappingsDescription:"Rewrite a client-requested model name to an upstream model name, for example the hidden reviewer model used by automatic approval.",mappingCount:"{count} mappings",mappingsEmpty:"No mappings configured",addMapping:"Add mapping",mappingRequestName:"Requested model",mappingRequestNamePlaceholder:"For example gpt-5.6-luna",mappingUpstreamName:"Upstream model",mappingUpstreamNamePlaceholder:"Defaults to the first upstream name",mappingInactive:"Duplicates a model name; this row has no effect.",mappingsUnsupported:"Upgrade the selected node agent before configuring model mappings.",mappingsRelayHint:"Mappings take effect only when the Node Agent model relay is enabled and the instance consumes models through it; otherwise they are kept but unused.",mappingPresets:"Presets",mappingPresetApplied:"Added {count} mappings.",removeMapping:"Remove mapping",mappingPreset:{"codex-auto-approval":{label:"Codex automatic approval",description:"codex-auto-review, gpt-5.6-luna"},"codex-background-tasks":{label:"Codex memory and background tasks",description:"gpt-5.6-luna, gpt-5.6-terra"}}},imageRegistry:{count:"Registered images · {count}",pageDescription:"Manage official and custom container environments available when creating instances.",selectNode:"Select node",noCapabilities:"No expected capabilities",deleting:"Deleting",loading:"Loading images...",search:"Search images",searchPlaceholder:"Search names, references, or capabilities",sourceFilter:"Image source filter",allSources:"All sources",custom:"Custom",availabilityFilter:"Availability filter",allAvailability:"All availability",directoryCount:"Images · {count}",filteredFrom:"Filtered from {count}",noMatches:"No matching images",noMatchesDescription:"Try changing the search or filters.",clearFilters:"Clear filters",moreActions:"More actions",marketTitle:"Official images",marketDescription:"Curated runtime environments maintained by TaskHandoff.",official:"Official",customTitle:"Custom images",customDescription:"{count} registry images managed by this control plane.",marketCount:"{count} images",customCount:"Custom images · {count}",marketReadonly:"Read only",marketUnavailable:"The official image catalog could not be refreshed",customImageDescription:"Custom registry image managed by this control plane.",empty:"No images available",emptyDescription:"Add a public registry image to use it when creating instances.",addTitle:"Add public registry image",namePlaceholder:"Controlled instance",reference:"Image reference",referenceDescription:"Use an explicit tag or sha256 digest. Private registry credentials are not configured here.",adding:"Adding",add:"Add image",imageInformation:"Image information",imageInformationDescription:"Name the environment and provide an immutable or explicitly tagged registry reference.",added:"{name} added.",deleteConfirm:"Delete image profile {name}?",deleteTitle:"Delete image “{name}”?",deleteDescription:"The custom image entry will be removed. Existing instances are unaffected.",discardTitle:"Discard unsaved image?",discardDescription:"The image information you entered will not be kept.",discard:"Discard changes",selectNodeHint:"Select a node",availabilityUnknown:"Availability unknown",availableOnNode:"Available on node",pullOnCreate:"Will be pulled when an instance is created",pullIfMissing:"Pull if missing",pullAlways:"Always pull",pullNever:"Never pull"},environmentTemplateRegistry:{title:"Environment templates",description:"Reusable, node-local environments saved from an instance container filesystem.",selectNode:"Select node",searchLabel:"Search environment templates",search:"Search names, image IDs, source instances, or status",statusFilter:"Status filter",allStatuses:"All statuses",count:"Environment templates · {count}",filteredFrom:"Filtered from {count}",moreActions:"More actions",loading:"Loading environment templates...",nodeUnavailable:"Environment templates could not be loaded from the selected node. The node may be offline.",empty:"No environment templates",emptyDescription:"Save one from a Docker instance menu to reuse that node-local environment.",noMatches:"No matching environment templates",noMatchesDescription:"Try changing the search or status filter.",clearFilters:"Clear filters",source:"Source instance {instance} · {date}",deleting:"Deleting",deleteTitle:"Delete environment template “{name}”?",deleteDescription:"The template entry will be removed. Existing instances created from it are unaffected. The backing image is safely collected when unreferenced.",status:{creating:"Creating",ready:"Ready",failed:"Failed",deleting:"Deleting"}},projectRegistry:{pageDescription:"Manage reusable Git repositories and local projects for new instances.",count:"Projects · {count}",filteredFrom:"{count} total",inUse:"In use",unused:"Unused",deleting:"Deleting",loading:"Loading projects…",empty:"No projects yet",emptyDescription:"Add a Git repository to select it when creating an instance.",noMatches:"No matching projects",noMatchesDescription:"Try changing the search or filter.",clearFilters:"Clear filters",addTitle:"Add Git repository",search:"Search projects",searchPlaceholder:"Search names or locations",sourceFilter:"Source filter",allSources:"All sources",gitRepository:"Git repository",usageFilter:"Usage filter",allUsage:"All usage",references:"{count} references",usedBy:"Used by instances",noReferences:"No instances currently reference this project",namePlaceholder:"Repository name",gitUrl:"Git URL",credential:"Credential",noCredential:"No managed credential",defaultImage:"Default image",useDefault:"Use default",credentialFor:"Credential for {name}",credentialUpdated:"Project credential updated.",moreActions:"More actions",addDescription:"Register the repository and defaults used when creating an instance.",repositoryInformation:"Repository information",repositoryInformationDescription:"The name identifies it in the control plane; the Git URL is used to clone the workspace.",defaults:"Instance defaults",defaultsDescription:"These values are preselected when an instance is created from this project.",creating:"Creating",create:"Create repository",created:"{name} created.",deleted:"{name} deleted.",deleteTitle:"Delete project “{name}”?",deleteDescription:"The project entry will be removed. Existing instances and workspaces are not deleted.",discardTitle:"Discard unsaved changes?",discardDescription:"The repository information you entered will not be kept.",continueEditing:"Continue editing",discard:"Discard changes",localFolder:"Local folder"},nodeRegistry:{count:"Execution nodes · {count}",add:"Add node",addingLocal:"Adding local node",addLocal:"Add local node",localDescription:"Use this control plane as a node",addRemote:"Add remote node",remoteDescription:"Connect an existing node by endpoint",generatingToken:"Generating join token",generateToken:"Generate join token",tokenDescription:"Allow a node to connect securely",preparingGuide:"Preparing install guide",installScript:"Install with script",installDescription:"Install and connect a remote node",protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",empty:"No nodes yet",rename:"Rename node",renameDescription:"Change the display name used across the control plane. The node ID and connection settings will not change.",remoteDialogDescription:"Connect a node-agent that is running on another machine.",joinToken:"Join token",creating:"Creating",create:"Create node"},nodeOnboarding:{title:"Add node wizard",description:"Check network reachability, then follow the shortest supported connection path.",progress:"Node connection progress",recommended:"Recommended",unavailable:"Unavailable",prepare:"Prepare connection",connect:"Connect node",connecting:"Connecting...",copy:"Copy command",copied:"Copied",clipboardFailed:"The value could not be copied.",steps:{network:"Network",target:"Target",connect:"Connect",complete:"Complete"},network:{title:"Can remote nodes reach this Control Plane?",description:"The automatic check sets a recommendation. You can change it before continuing.",origin:"Public Control Plane address",recheck:"Check again",question:"Control Plane public reachability",public:"Reachable from the internet",publicDescription:"The Node Agent will connect back to this Control Plane.",private:"Not reachable from the internet",privateDescription:"This Control Plane will connect to the Node Agent or use a relay.",overrideWarning:"Your selection differs from the automatic check. The connection will be verified again.",status:{checking:"Checking {origin}...",reachable:"{origin} appears reachable",unreachable:"{origin} does not appear publicly reachable",inconclusive:"Public reachability could not be confirmed for {origin}"}},target:{agentInstalledTitle:"Is Node Agent already installed on the target machine?",agentInstalledDescription:"Both choices use a Node Agent connection back to this Control Plane.",installed:"Already installed",installedDescription:"Connect the existing service to this Control Plane.",notInstalled:"Not installed yet",notInstalledDescription:"Install the service and connect it in one command.",optionalName:"Node name (optional)",agentPublicTitle:"Can this Control Plane reach the Node Agent?",agentPublicDescription:"Choose based on the Node Agent endpoint, firewall, and TLS configuration.",agentPublic:"Node Agent is publicly reachable",agentPublicHint:"Connect directly using its HTTPS endpoint and pairing token.",neitherPublic:"Neither side is publicly reachable",neitherPublicHint:"Use an account relay or another trusted Control Plane."},reverse:{connectTitle:"Connect the existing Node Agent",connectDescription:"Connect from the Control Plane that currently manages the target Agent, or run a command on the target machine.",installTitle:"Install and connect Node Agent",installDescription:"Run this command on the target machine to install the matching version and connect it.",method:"Connection method",useUi:"Connect from UI",useCommand:"Run command",uiStepOpen:"Open the Control Plane that currently manages the target Node Agent, go to Settings > Nodes, and select the node.",uiStepAdd:"Open Connections and select Add outbound connection.",uiStepSubmit:"Enter the Control Plane URL and join token below, then select Connect.",controlPlaneUrl:"Control Plane URL",joinToken:"Join token",copyUrl:"Copy URL",copyToken:"Copy token",runCommand:"Run on the target machine",waiting:"Waiting for the Node Agent · invitation expires {time}",expired:"This invitation expired. Generate a new invite.",regenerate:"Generate new invite"},direct:{title:"Connect to the public Node Agent",description:"The Control Plane will verify the endpoint, consume its one-time pairing token, and save the resulting identity.",endpoint:"Node Agent HTTPS endpoint",tokenSource:"Pairing token source",managed:"Managed by a Control Plane",standalone:"Standalone Node Agent",managedHelp:"Open the source Control Plane, select this node, and generate a token that allows another Control Plane to connect.",standaloneHelp:"Run this command on the Node Agent machine, then paste the one-time token below.",token:"One-time pairing token",validation:{invalid:"Enter a valid HTTP or HTTPS Node Agent endpoint.","public-http":"A public Node Agent endpoint must use HTTPS.",token:"Enter the one-time token issued by this Node Agent."}},relay:{title:"Connect through a relay",description:"Neither side accepts an inbound connection. Choose a supported service that both sides can reach.",account:"Connect with Thandoff account",accountUnavailable:"Account-based Node Agent relay is not supported by the current protocol.",proxy:"Use a trusted Control Plane",proxyDescription:"Connect through another Control Plane that already manages the target node."},complete:{title:"Node connected",description:"{name} is now available in this Control Plane."}},controlPlaneProxy:{directMode:"Direct endpoint",proxyMode:"Control-plane proxy",proxyOrigin:"Trusted proxy origin",inviteToken:"Proxy invite token",inviteTokenPlaceholder:"One-time token created by the trusted proxy",optionalName:"Optional node name",trustWarning:"The proxy control plane is trusted: it can read, modify, and perform node-agent operations on the source control plane's behalf.",trustConfirmation:"I trust this control plane to proxy node-agent operations.",pendingClaims:"Pending proxy claims",pendingClaimsDescription:"Earlier proxy operations are incomplete. Resume or clean them up here.",resume:"Resume",resuming:"Resuming",cancelClaim:"Cancel proxy claim",cancelling:"Cancelling proxy claim",forceCancelTitle:"Force-remove the local claim?",forceCancelConfirm:"The trusted proxy is unavailable. Force removal discards the credential used to revoke remote access automatically. If the proxy returns, you may need to revoke an orphaned binding there manually.",forceCancel:"Force remove",forceCancelling:"Removing",forceCancelFailed:"The local claim was not removed. Refresh and retry.",showToken:"Show proxy invite token",hideToken:"Hide proxy invite token",validation:{origin:"Enter an HTTPS origin without credentials, path, query, or fragment.",token:"Enter a valid proxy invite token.",trust:"Confirm that you trust the proxy control plane."},claimStatus:{pending:"Pending","compensation-required":"Cleanup required"},nodeAdded:"{name} added through the trusted proxy.",managementTitle:"Trusted control-plane proxy",managementDescription:"Create target-bound invites and manage access proxied through this control plane.",createInvite:"Create invite",creatingInvite:"Creating invite",invitesTitle:"Invites",invites:"Invites · {count}",noInvites:"No proxy invites for this node",inviteAudit:"Created by {createdBy} · {time}",bindingsTitle:"Bindings",bindings:"Bindings · {count}",noBindings:"No proxy bindings for this node",expiresAt:"Expires {time}",revision:"revision {revision}",activity:"HTTP {http} · streams {streams} · WebSockets {webSockets}",activityUnavailable:"Activity unavailable",httpStatus:"HTTP status {status}",inviteStatus:{active:"Active",revoked:"Revoked"},bindingStatus:{active:"Active",revoked:"Revoked"},revokeInvite:"Revoke invite",revokeBinding:"Revoke binding",revokeTitle:"Revoke proxy access",revokeInviteConfirm:"Revoke this unused invite? It cannot be used afterward.",revokeBindingConfirm:"Revoke this binding? Active HTTP requests and WebSocket streams will be closed.",revoke:"Revoke",targetNode:"Target node",forceDeleteConfirm:"The trusted proxy could not revoke the remote binding for {name}. Force delete the local node record anyway? The remote binding and credential may remain orphaned on the proxy and must be revoked there manually.",path:"Control-plane proxy path",source:"Source",proxy:"Trusted proxy",target:"Target node",thisControlPlane:"This control plane",binding:"Binding",health:"Health",revisions:"Binding / target revision",observedAt:"Target observed at",unknown:"Unknown",retryable:"Retryable",notRetryable:"Not retryable",noStructuredError:"No structured proxy error is currently reported",state:{ready:"Ready",reachable:"Reachable",unreachable:"Unreachable",active:"Active",revoked:"Revoked",ok:"Healthy",failed:"Failed",degraded:"Degraded",unknown:"Unknown",online:"Online",offline:"Offline"}},nodeDetail:{protocol:"Protocol",build:"Build",package:"Package",image:"Image",built:"Built",renameDescription:"Change this node's display name",pairingDescription:"Authorize another control plane to access this node",removeDescription:"Remove this node from the control plane",sections:"Node detail sections",overview:"Overview",runtimes:"Runtimes",updates:"Updates",storage:"Projects",inventory:"Inventory",remote:"Connections",instances:"Instances",localFolders:"Local folders",diagnostics:"Agent diagnostics",diagnosticLog:"Diagnostic log · {count}",noDiagnostics:"No node protocol errors recorded from the latest refresh",modelRelay:"Model relay",modelRelayDescription:"Routes managed instance model traffic through the Node Agent so the data path can flip without restarting instances; turning it off restores the direct projection.",modelRelayEnable:"Enable model relay",modelRelayOn:"On",modelRelayOff:"Off",modelRelayDefaultHint:"On by default; disabling restores the direct projection and can be turned back on at any time.",modelRelayEnabledHint:"Managed instance model traffic is relayed through the Node Agent and mapped models are available.",modelRelayDisabledHint:"Instances keep the direct projection; mapped models stay assignable but unused.",modelRelayUnsupported:"Update the Node Agent before this node can use the model relay.",modelRelayUnknownModelPolicy:"Unmatched model names",modelRelayUnknownModelPassthrough:"Forward as-is",modelRelayUnknownModelReject:"Reject request",modelRelayUnknownModelPolicyHint:"Applies when a request model is neither declared on the entity nor covered by request mappings; declared names and mappings always win.",modelRelayInUseInstances:"Affected instances: {instances}",modelRelayEnabledToast:"Model relay enabled.",modelRelayDisabledToast:"Model relay disabled; instances are back on the direct projection.",tcpListener:"TCP listener",listenOn:"Listen on",loopback:"127.0.0.1 only",allIpv4:"All IPv4 interfaces",port:"Port",applying:"Applying",loading:"Loading",apply:"Apply",listenerWarning:"The node-agent API will be reachable on host IPv4 interfaces. Remote control planes still require invite pairing and HMAC. Configure firewall, NAT, DNS, and TLS termination separately.",checking:"Checking",check:"Check",deleting:"Deleting",delete:"Delete",noRuntimes:"No runtimes reported by this node",managedUpdates:"Managed updates",stable:"Stable",beta:"Beta",alpha:"Alpha",nodeAgent:"Node agent",serverUpdateDescription:"Updates this control-plane server and its built-in node agent.",nodeAgentUpdateDescription:"Updates only this node agent. Other nodes update independently.",queuing:"Queuing",update:"Update",controlledInstances:"Controlled instances · {count}",instanceConvergenceDescription:"The node automatically converges every instance to the same product version.",noControlledInstances:"No controlled instances on this node",updateJobs:"Update jobs · {count}",refresh:"Refresh",nodeRollout:"Server update",unknown:"unknown",noUpdateJobs:"No managed update jobs on this node",localFolderCount:"Local folders · {count}",adding:"Adding",add:"Add",noLocalFolders:"No local folders on this node",renameLocalFolder:"Rename",builtinProject:"Built-in",renameLocalFolderDescription:"Set the name shown for this folder in session groups and folder pickers without changing its path.",dockerImages:"{name} Docker images · {count}",unknownSize:"unknown size",unknownAge:"unknown age",noImages:"No images loaded for this node",instanceCount:"Instances · {count}",instanceSettings:"Settings for {name}",settings:"Settings",noInstances:"No instances on this node",pairedKeys:"Paired control planes · {count}",pairedAt:"paired {time}",current:"Current",currentRequester:"Viewing control plane",inactive:"Inactive",paired:"Paired",noPairedKeys:"No control planes are paired with this node",connectRemote:"Connect this node to another control plane",activeConnections:"Outbound connections · {count}",noActiveConnections:"This node has no configured outbound control-plane connections",addConnection:"Add outbound connection",connectionPairing:"uses {keyId}",connectionPingRtt:"Current RTT",connectionPingP95:"Recent P95",connectionReconnects:"Reconnect streak",connectionNextRetry:"Next retry",connectionMilliseconds:"{value} ms",connectionWaitingFirstSample:"Waiting for first sample",connectionRetryIn:"in {seconds}s",connectionRetryNow:"retrying now",connectionRetryNotScheduled:"not scheduled",eventUplink:"Event uplink",eventBuffered:"Buffered now",eventPeakBuffered:"Peak buffered",eventCoalesced:"Coalesced events",eventOversized:"Oversized events",eventPeakPayload:"Peak payload",eventTransportStatus:{healthy:"Healthy",congested:"Congested",recovering:"Recently recovered"},eventTransportCongested:"The Node Agent event uplink is backing up. Upstream bandwidth may be insufficient, or the control plane may be consuming too slowly. Intermediate AI Session states are coalesced so only the latest authoritative state is retained.",eventTransportRecovering:"Recent event-uplink congestion has cleared. Continue monitoring upstream bandwidth and connection stability.",eventTransportPayloadExceeded:"An AI Session authority event exceeded the transport limit. Check for unexpectedly large list fields; if backlog is also present, check node uplink bandwidth. The connection was closed and will recover from the latest snapshot.",controlPlaneUrl:"Control-plane URL",joinToken:"Join token",tokenPlaceholder:"token from target control plane",name:"Name",optional:"Optional",connecting:"Connecting",connect:"Connect",remoteResult:"Remote connection: {status}",selectNode:"Select a node to inspect its local resources.",currentNotChecked:"Current {version} · not checked",updateUnsupported:"Managed update unsupported",actionInProgress:"Node action in progress",moreActions:"More node actions",checkingConnection:"Checking connection",checkConnection:"Check connection",renaming:"Renaming",rename:"Rename",generatingToken:"Generating join token",generateToken:"Generate join token",deletingNode:"Deleting node",deleteNode:"Delete node",updateAvailable:"update available",upToDate:"up to date",nodeJoinToken:"Node join token",controlPlaneJoinToken:"Control-plane join token",nodeCreated:"{name} created.",nodeAdded:"{name} added.",nodeAddedRefreshFailed:"{name} was added, but the control-plane view could not refresh: {error}",updateServerConfirm:`Update the control-plane server from {current} to {available}.
|
|
604
604
|
|
|
605
605
|
The control plane and its built-in node agent will restart, and this page will disconnect temporarily. After the built-in node agent returns, it will independently converge {restarting} running managed instance(s); {active} have active work that may be interrupted after the drain deadline. {stopped} stopped instance(s) will update before their next start. This update does not wait for instance convergence or update other nodes. Docker containers will not be removed or recreated.
|
|
606
606
|
|