markstream-vue 0.0.3-beta.9 → 0.0.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exports.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +2 -2
package/dist/exports.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,n=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(n,t,o)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,i=(e,n)=>{for(var t in n||(n={}))l.call(n,t)&&a(e,t,n[t]);if(o)for(var t of o(n))r.call(n,t)&&a(e,t,n[t]);return e},s=(e,o)=>n(e,t(o)),u=(e,n,t)=>new Promise((o,l)=>{var r=e=>{try{i(t.next(e))}catch(n){l(n)}},a=e=>{try{i(t.throw(e))}catch(n){l(n)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,a);i((t=t.apply(e,n)).next())});import{getMarkdown as c,parseMarkdownToStructure as d,setDefaultMathOptions as v}from"stream-markdown-parser";import{defineComponent as m,createElementBlock as h,openBlock as p,withMemo as g,createVNode as f,unref as w,createElementVNode as y,Fragment as k,renderList as x,toDisplayString as b,ref as M,onMounted as _,watch as C,onBeforeUnmount as B,normalizeClass as T,createApp as I,h as j,inject as $,provide as S,computed as L,createCommentVNode as H,Transition as E,withCtx as N,normalizeStyle as z,renderSlot as D,shallowRef as A,readonly as P,defineAsyncComponent as V,createBlock as R,resolveDynamicComponent as O,useAttrs as F,mergeProps as K,isMemoSame as W,markRaw as X,reactive as Z,nextTick as q,withDirectives as Y,vShow as U,onUnmounted as G,toHandlers as J,Teleport as Q,withModifiers as ee}from"vue";const ne=["cite"],te=(e,n)=>{const t=e.__vccOpts||e;for(const[o,l]of n)t[o]=l;return t},oe=/* @__PURE__ */te(/* @__PURE__ */m({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(t,o)=>(p(),h("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[g([n.node.children],()=>f(w(mt),{"index-key":`blockquote-${n.indexKey}`,nodes:n.node.children||[],"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[0]||(o[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)],8,ne))}}),[["__scopeId","data-v-eeadc8a3"]]);oe.install=e=>{e.component(oe.__name,oe)};const le={class:"checkbox-node"},re=["checked"],ae=/* @__PURE__ */te(/* @__PURE__ */m({__name:"CheckboxNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("span",le,[y("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,re)]))}),[["__scopeId","data-v-8dc6c46f"]]);ae.install=e=>{e.component(ae.__name,ae)};const ie={class:"definition-list"},se={class:"definition-term"},ue={class:"definition-desc"},ce=/* @__PURE__ */te(/* @__PURE__ */m({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(e,t)=>(p(),h("dl",ie,[(p(!0),h(k,null,x(n.node.items,(o,l)=>(p(),h(k,{key:l},[y("dt",se,[f(w(mt),{"index-key":`definition-term-${n.indexKey}-${l}`,nodes:o.term,"custom-id":n.customId,typewriter:n.typewriter,onCopy:t[0]||(t[0]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"])]),y("dd",ue,[f(w(mt),{"index-key":`definition-desc-${n.indexKey}-${l}`,nodes:o.definition,"custom-id":n.customId,typewriter:n.typewriter,onCopy:t[1]||(t[1]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),[["__scopeId","data-v-f88691d6"]]);ce.install=e=>{e.component(ce.__name,ce)};const de={class:"emoji-node"},ve=/* @__PURE__ */te(/* @__PURE__ */m({__name:"EmojiNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("span",de,b(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);ve.install=e=>{e.component(ve.__name,ve)};const me="__global__",he={};function pe(e,n){"string"==typeof e?he[e]=n||{}:he[me]=e||{}}function ge(e){return e?he[e]||he[me]||{}:he[me]||{}}function fe(e){if(e===me)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete he[e]}function we(){delete he[me]}const ye=["id"],ke=["title"],xe=/* @__PURE__ */te(/* @__PURE__ */m({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const n=`#footnote-${e.node.id}`;function t(){if("undefined"==typeof document)return;const e=document.querySelector(n);e?e.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(o,l)=>(p(),h("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:t},[y("span",{href:n,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+b(e.node.id)+"]",9,ke)],8,ye))}}),[["__scopeId","data-v-01af0fee"]]);xe.install=e=>{e.component(xe.__name,xe)};const be=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HtmlInlineNode",props:{node:{}},setup(e){const n=e,t=M(null),o="undefined"!=typeof window;function l(){if(!o||!t.value)return;const e=t.value;e.innerHTML="";const l=document.createElement("template");l.innerHTML=n.node.content,e.appendChild(l.content.cloneNode(!0))}function r(){if(!t.value)return;const e=t.value;e.innerHTML="",e.textContent=n.node.content}return _(()=>{n.node.loading&&!n.node.autoClosed?r():l()}),C(()=>[n.node.content,n.node.loading,n.node.autoClosed],()=>{n.node.loading&&!n.node.autoClosed?r():l()}),B(()=>{t.value&&(t.value.innerHTML="")}),(e,o)=>(p(),h("span",{ref_key:"containerRef",ref:t,class:T(["html-inline-node",{"html-inline-node--loading":n.node.loading}])},null,2))}}),[["__scopeId","data-v-e632756e"]]);be.install=e=>{e.component(be.__name,be)};const Me={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},_e=/* @__PURE__ */m({__name:"InlineCodeNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("code",Me,b(e.node.code),1))});_e.install=e=>{e.component(_e.__name,_e)};const Ce=M(!1),Be=M(""),Te=M("top"),Ie=M(null),je=M(null),$e=M(null),Se=M(null),Le=M(null);let He=null,Ee=null;function Ne(){He&&(clearTimeout(He),He=null),Ee&&(clearTimeout(Ee),Ee=null)}let ze=!1,De=null;function Ae(e,n,t="top",o=!1,l,r){if(!e)return;ze||"undefined"!=typeof document&&(De||(De=import("./Tooltip.js").then(({default:e})=>{ze=!0;const n=document.createElement("div");n.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(n),I({setup:()=>()=>{var n;return j(e,{visible:Ce.value,"anchor-el":Ie.value,content:Be.value,placement:Te.value,id:je.value,originX:$e.value,originY:Se.value,isDark:null!=(n=Le.value)?n:void 0})}}).mount(n)}).catch(e=>{De=null,ze=!1,console.warn("[markstream-vue] Failed to load Tooltip component. Tooltips will be disabled.",e)}))),Ne();const a=()=>{var o,a;je.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,Ie.value=e,Be.value=n,Te.value=t,$e.value=null!=(o=null==l?void 0:l.x)?o:null,Se.value=null!=(a=null==l?void 0:l.y)?a:null,Le.value="boolean"==typeof r?r:null,Ce.value=!0;try{e.setAttribute("aria-describedby",je.value)}catch(i){}};o?a():He=setTimeout(a,80)}function Pe(e=!1){Ne();const n=()=>{if(Ie.value&&je.value)try{Ie.value.removeAttribute("aria-describedby")}catch(e){}Ce.value=!1,Ie.value=null,je.value=null,$e.value=null,Se.value=null};e?n():Ee=setTimeout(n,120)}const Ve={"common.copy":"Copy","common.copySuccess":"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.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function Re(e){Object.assign(Ve,e)}function Oe(){try{const n=globalThis.$vueI18nUse||null;if(n&&"function"==typeof n)try{const e=n();if(e&&"function"==typeof e.t)return{t:e.t.bind(e)}}catch(e){}}catch(e){}return u(null,null,function*(){try{const n=yield import("vue-i18n"),t=n.useI18n||n.default&&n.default.useI18n;if(t&&"function"==typeof t)try{const n=t();if(n&&"function"==typeof n.t)try{globalThis.$vueI18nUse=()=>n}catch(e){}}catch(e){}}catch(e){}}),{t:e=>{var n;return null!=(n=Ve[e])?n:function(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,e=>e.toUpperCase()).trim()}(e)}}}const Fe=/* @__PURE__ */Symbol("ViewportPriority");function Ke(){const e=$(Fe,void 0);if(e)return e;const n=/* @__PURE__ */new WeakMap;let t=null;return e=>{const o=M(!1);let l,r=!1;const a=new Promise(e=>{l=()=>{r||(r=!0,e())}}),i=()=>{try{null==t||t.unobserve(e)}catch(o){}n.delete(e)},s=t||("undefined"==typeof window||"undefined"==typeof IntersectionObserver?null:(t=new IntersectionObserver(e=>{for(const l of e){const e=n.get(l.target);if(e&&(l.isIntersecting||l.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(o){}}null==t||t.unobserve(l.target),n.delete(l.target)}}},{root:null,rootMargin:"300px",threshold:0}),t));return s?(n.set(e,{resolve:l,visible:o}),s.observe(e),{isVisible:o,whenVisible:a,destroy:i}):(o.value=!0,l(),{isVisible:o,whenVisible:a,destroy:i})}}const We={class:"relative inline-block"},Xe=["src","alt","title","loading","tabindex","aria-label"],Ze={class:"text-sm whitespace-nowrap"},qe={key:1,class:"text-sm text-gray-500"},Ye={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},Ue={class:"text-sm whitespace-nowrap"},Ge={key:0,class:"mt-2 text-sm text-gray-500 italic"},Je=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:n}){const t=e,o=n,l=M(!1),r=M(!1),a=M(!1),i=M(null),s=Ke(),u=M(null),c=M("undefined"==typeof window);"undefined"!=typeof window&&C(()=>i.value,e=>{var n;if(null==(n=u.value)||n.destroy(),u.value=null,!e)return void(c.value=!1);const t=s(e,{rootMargin:"400px"});u.value=t,c.value=t.isVisible.value,t.whenVisible.then(()=>{c.value=!0})},{immediate:!0}),B(()=>{var e;null==(e=u.value)||e.destroy(),u.value=null});const d=L(()=>r.value&&t.fallbackSrc?t.fallbackSrc:t.node.src),v=L(()=>!t.lazy||c.value),m=L(()=>/\.svg(?:\?|$)/i.test(d.value));function g(){t.fallbackSrc&&!a.value?(a.value=!0,r.value=!0):(r.value=!0,o("error",t.node.src))}function k(){l.value=!0,r.value=!1,o("load",d.value)}function x(e){e.preventDefault(),l.value&&!r.value&&o("click",[e,d.value])}const{t:_}=Oe();return C(d,()=>{l.value=!1,r.value=!1}),(n,o)=>(p(),h("figure",{ref_key:"figureRef",ref:i,class:"text-center my-8"},[y("div",We,[f(E,{name:"img-switch",mode:"out-in"},{default:N(()=>{var a,i,s,u,c;return[e.node.loading||r.value||!v.value?r.value?e.node.loading||t.fallbackSrc?H("",!0):(p(),h("div",Ye,[D(n.$slots,"error",{node:t.node,displaySrc:d.value,imageLoaded:l.value,hasError:r.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:m.value},()=>[o[1]||(o[1]=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[y("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)),y("span",Ue,b(w(_)("image.loadError")),1)],!0)])):(p(),h("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:z(m.value?{minHeight:t.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[t.usePlaceholder?D(n.$slots,"placeholder",{key:0,node:t.node,displaySrc:d.value,imageLoaded:l.value,hasError:r.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:m.value},()=>[o[0]||(o[0]=y("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),y("span",Ze,b(w(_)("image.loading")),1)],!0):(p(),h("span",qe,b(e.node.raw),1))],4)):(p(),h("img",{key:"image",src:d.value,alt:String(null!=(i=null!=(a=t.node.alt)?a:t.node.title)?i:""),title:String(null!=(u=null!=(s=t.node.title)?s:t.node.alt)?u:""),class:T(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!l.value,"opacity-100":l.value,"cursor-pointer":l.value}]),style:z(m.value?{minHeight:t.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:t.lazy?"lazy":"eager",decoding:"async",tabindex:l.value?0:-1,"aria-label":null!=(c=t.node.alt)?c:w(_)("image.preview"),onError:g,onLoad:k,onClick:x},null,46,Xe))]}),_:3})]),t.showCaption&&t.node.alt?(p(),h("figcaption",Ge,b(t.node.alt),1)):H("",!0)],512))}}),[["__scopeId","data-v-7ca79b66"]]);Je.install=e=>{e.component(Je.__name,Je)};let Qe=null,en=!1,nn=tn;function tn(){return u(null,null,function*(){const e=yield import("katex");return yield import("katex/contrib/mhchem"),e})}function on(e){nn=e,Qe=null,en=!1}function ln(e){on(null!=e?e:tn)}function rn(){on(null)}function an(){return"function"==typeof nn}function sn(){return u(this,null,function*(){if(Qe)return Qe;if(en)return null;const e=nn;if(!e)return en=!0,null;try{const n=yield e();if(n)return Qe=n,Qe}catch(n){}return en=!0,null})}const un=A(!1);let cn=null;function dn(){return cn||(cn=sn().then(e=>{un.value=!!e}).catch(()=>{un.value=!1})),P(un)}const vn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const n=dn();return(t,o)=>(p(),h("span",{class:T([[w(n)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},b(e.node.content),3))}}),[["__scopeId","data-v-56f30838"]]);vn.install=e=>{e.component(vn.__name,vn)};const mn=V(()=>u(null,null,function*(){var e,n;if("undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(n=null==(e=globalThis.process)?void 0:e.env)?void 0:n.NODE_ENV))return e=>{var n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$${null!=(n=e.node.content)?n:""}$`})}))};try{if(yield sn())return(yield import("./index2.js")).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 e=>{var n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$${null!=(n=e.node.content)?n:""}$`})}))}})),hn=V(()=>u(null,null,function*(){try{if(yield sn())return(yield import("./index3.js")).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 n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$$${null!=(n=e.node.content)?n:""}$$`})}))}})),pn=/* @__PURE__ */m({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(n,t)=>(p(),h("span",{class:"reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",role:"button",tabindex:"0",onClick:t[0]||(t[0]=t=>n.$emit("click",t,e.node.id,e.messageId,e.threadId)),onMouseenter:t[1]||(t[1]=t=>n.$emit("mouseEnter",t,e.node.id,e.messageId,e.threadId)),onMouseleave:t[2]||(t[2]=t=>n.$emit("mouseLeave",t,e.node.id,e.messageId,e.threadId))},b(e.node.id),33))});pn.install=e=>{e.component(pn.__name,pn)};const gn={class:"superscript-node"},fn={key:1},wn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:Dn,footnote_reference:xe,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,emoji:ve,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("sup",gn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),h(k,{key:`${e.indexKey||"superscript"}-${l}`},[o[t.type]?(p(),R(O(o[t.type]),{key:0,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"superscript"}-${l}`},null,8,["node","custom-id","index-key"])):(p(),h("span",fn,b(t.content||t.raw),1))],64))),128))]))}}),[["__scopeId","data-v-6dc1e3ba"]]);wn.install=e=>{e.component(wn.__name,wn)};const yn={class:"subscript-node"},kn={key:1},xn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:Dn,footnote_reference:xe,strikethrough:Cn,highlight:Nn,insert:Hn,superscript:wn,emoji:ve,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("sub",yn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),h(k,{key:`${e.indexKey||"subscript"}-${l}`},[o[t.type]?(p(),R(O(o[t.type]),{key:0,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"subscript"}-${l}`},null,8,["node","custom-id","index-key"])):(p(),h("span",kn,b(t.content||t.raw),1))],64))),128))]))}}),[["__scopeId","data-v-69de9b81"]]);xn.install=e=>{e.component(xn.__name,xn)};const bn={class:"strong-node"},Mn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,emphasis:Dn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("strong",bn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"strong"}-${l}`,"index-key":`${e.indexKey||"strong"}-${l}`,node:t,"custom-id":n.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),[["__scopeId","data-v-af3ce037"]]);Mn.install=e=>{e.component(Mn.__name,Mn)};const _n={class:"strikethrough-node"},Cn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:Dn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("del",_n,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"strikethrough"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-904d5bd1"]]);Cn.install=e=>{e.component(Cn.__name,Cn)};const Bn=["href","title","aria-label","aria-hidden"],Tn=["aria-hidden"],In={class:"link-text-wrapper relative inline-flex"},jn={class:"leading-[normal] link-text"},$n={class:"leading-[normal] link-text"},Sn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const n=e,t=L(()=>{var e,t,o,l,r,a;const i=void 0!==n.underlineBottom?"number"==typeof n.underlineBottom?`${n.underlineBottom}px`:String(n.underlineBottom):"-3px";return{"--link-color":null!=(e=n.color)?e:"#0366d6","--underline-height":`${null!=(t=n.underlineHeight)?t:2}px`,"--underline-bottom":i,"--underline-opacity":String(null!=(o=n.animationOpacity)?o:.9),"--underline-duration":`${null!=(l=n.animationDuration)?l:.8}s`,"--underline-timing":null!=(r=n.animationTiming)?r:"linear","--underline-iteration":"number"==typeof n.animationIteration?String(n.animationIteration):null!=(a=n.animationIteration)?a:"infinite"}}),o={text:vn,strong:Mn,strikethrough:Cn,emphasis:Dn,image:Je,html_inline:be},l=F();function r(){n.showTooltip&&Pe()}const a=L(()=>{var e,t;return String(null!=(t=null!=(e=n.node.title)?e:n.node.href)?t:"")});return(i,s)=>e.node.loading?(p(),h("span",K({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},w(l),{style:t.value}),[y("span",In,[y("span",jn,[y("span",$n,b(e.node.text),1)]),s[1]||(s[1]=y("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Tn)):(p(),h("a",K({key:0,class:"link-node",href:e.node.href,title:e.showTooltip?"":a.value,"aria-label":`Link: ${a.value}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},w(l),{style:t.value,onMouseenter:s[0]||(s[0]=e=>function(e){var t,o,l;if(!n.showTooltip)return;const r=e,a=null!=(null==r?void 0:r.clientX)&&null!=(null==r?void 0:r.clientY)?{x:r.clientX,y:r.clientY}:void 0,i=(null==(t=n.node)?void 0:t.title)||(null==(o=n.node)?void 0:o.href)||(null==(l=n.node)?void 0:l.text)||"";Ae(e.currentTarget,i,"top",!1,a)}(e)),onMouseleave:r}),[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"emphasis"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"link-text"}-${l}`},null,8,["node","custom-id","index-key"]))),128))],16,Bn))}}),[["__scopeId","data-v-0753b32c"]]);Sn.install=e=>{e.component(Sn.__name,Sn)};const Ln={class:"insert-node"},Hn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:Dn,strikethrough:Cn,highlight:Nn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("ins",Ln,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"insert"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-ab1ec9bc"]]);Hn.install=e=>{e.component(Hn.__name,Hn)};const En={class:"highlight-node"},Nn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:Dn,strikethrough:Cn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("mark",En,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"highlight"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-38e31bf6"]]);Nn.install=e=>{e.component(Nn.__name,Nn)};const zn={class:"emphasis-node"},Dn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("em",zn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"emphasis"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-8264674d"]]);Dn.install=e=>{e.component(Dn.__name,Dn)};const An=["href","title"],Pn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const n=e;function t(e){var t;if(e.preventDefault(),"undefined"==typeof document)return;const o=`fnref-${String(null!=(t=n.node.id)?t:"")}`,l=document.getElementById(o);l&&l.scrollIntoView({behavior:"smooth"})}return(n,o)=>(p(),h("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:t}," ↩︎ ",8,An))}}),[["__scopeId","data-v-4756ce0d"]]);Pn.install=e=>{e.component(Pn.__name,Pn)};const Vn=["id"],Rn={class:"flex-1"},On=/* @__PURE__ */m({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(t,o)=>(p(),h("div",{id:`fnref--${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[y("div",Rn,[g([n.node.children],()=>f(w(mt),{"index-key":`footnote-${n.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[0]||(o[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)])],8,Vn))}});On.install=e=>{e.component(On.__name,On)};const Fn={class:"hard-break"},Kn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HardBreakNode",props:{node:{}},setup:e=>(e,n)=>(p(),h("br",Fn))}),[["__scopeId","data-v-50c58f70"]]);Kn.install=e=>{e.component(Kn.__name,Kn)};const Wn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,image:Je,strong:Mn,emphasis:Dn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,checkbox:ae,checkbox_input:ae,footnote_reference:xe,hardbreak:Kn,math_inline:mn,reference:pn},t);return(t,l)=>g([e.node.children],()=>(p(),R(O(`h${e.node.level}`),{class:T(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:N(()=>[(p(!0),h(k,null,x(e.node.children,(t,l,r,a)=>{const i=[t];if(a&&a.key===`${e.indexKey||"heading"}-${l}`&&W(a,i))return a;const s=(p(),R(O(o[t.type]),{key:`${e.indexKey||"heading"}-${l}`,"custom-id":n.customId,node:t,"index-key":`${e.indexKey||"heading"}-${l}`},null,8,["custom-id","node","index-key"]));return s.memo=i,s},l,0),128))]),_:1},8,["class"])),l,2)}}),[["__scopeId","data-v-e3e7e2ce"]]),Xn=Wn;Xn.install=e=>{e.component(Wn.__name,Wn)};const Zn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const n=e,t=L(()=>null==n.value?{}:{value:n.value});return(e,o)=>(p(),h("li",K({class:"list-item pl-1.5 my-2",dir:"auto"},t.value),[g([n.item.children],()=>f(w(mt),{"index-key":`list-item-${n.indexKey}`,nodes:n.item.children,"custom-id":n.customId,typewriter:n.typewriter,"batch-rendering":!1,onCopy:o[0]||(o[0]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)],16))}}),[["__scopeId","data-v-7a618746"]]);Zn.install=e=>{e.component(Zn.__name,Zn)};const qn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(n,t)=>(p(),R(O(e.node.ordered?"ol":"ul"),{class:T(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:N(()=>[(p(!0),h(k,null,x(e.node.items,(o,l,r,a)=>{var i;const s=[o];if(a&&a.key===`${e.indexKey||"list"}-${l}`&&W(a,s))return a;const u=(p(),R(w(Zn),{key:`${e.indexKey||"list"}-${l}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${l}`,typewriter:e.typewriter,value:e.node.ordered?(null!=(i=e.node.start)?i:1)+l:void 0,onCopy:t[0]||(t[0]=e=>n.$emit("copy",e))},null,8,["item","custom-id","index-key","typewriter","value"]));return u.memo=s,u},t,1),128))]),_:1},8,["class"]))}),[["__scopeId","data-v-79057d57"]]);qn.install=e=>{e.component(qn.__name,qn)};const Yn={dir:"auto",class:"paragraph-node"},Un=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({inline_code:_e,image:Je,link:Sn,hardbreak:Kn,emphasis:Dn,strong:Mn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,html_inline:be,emoji:ve,checkbox:ae,math_inline:mn,checkbox_input:ae,reference:pn,footnote_anchor:Pn,footnote_reference:xe},t),l=dn();return(t,r)=>(p(),h("p",Yn,[(p(!0),h(k,null,x(e.node.children,(t,r)=>(p(),h(k,{key:`${e.indexKey||"paragraph"}-${r}`},["text"!==t.type?(p(),R(O(o[t.type]),{key:0,node:t,"index-key":`${e.indexKey}-${r}`,"custom-id":n.customId},null,8,["node","index-key","custom-id"])):(p(),h("span",{key:1,class:T([[w(l)&&t.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},b(t.content),3))],64))),128))]))}}),[["__scopeId","data-v-0117537a"]]);Un.install=e=>{e.component(Un.__name,Un)};const Gn=["aria-busy","aria-label","data-language"],Jn=["textContent"],Qn=/* @__PURE__ */m({__name:"PreCodeNode",props:{node:{}},setup(e){const n=e,t=L(()=>{var e,t,o;const l=String(null!=(t=null==(e=n.node)?void 0:e.language)?t:"");return String(null!=(o=String(l).split(/\s+/g)[0])?o:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=L(()=>`language-${t.value}`),l=L(()=>{const e=t.value;return e?`Code block: ${e}`:"Code block"});return(n,r)=>(p(),h("pre",{class:T([o.value]),"aria-busy":!0===e.node.loading,"aria-label":l.value,"data-language":t.value,tabindex:"0"},[y("code",{translate:"no",textContent:b(e.node.code)},null,8,Jn)],10,Gn))}});Qn.install=e=>{e.component(Qn.__name,Qn)};const et={class:"table-node-wrapper"},nt=["aria-busy"],tt={class:"border-[var(--table-border,#cbd5e1)]"},ot={class:"border-b"},lt={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},rt=/* @__PURE__ */te(/* @__PURE__ */m({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e,t=L(()=>{var e,t,o,l;return null!=(l=null==(o=null==(t=null==(e=n.node)?void 0:e.header)?void 0:t.cells)?void 0:o.length)?l:0}),o=L(()=>{const e=t.value||1,n=Math.floor(100/e);return Array.from({length:e}).map((t,o)=>o===e-1?100-n*(e-1)+"%":`${n}%`)}),l=L(()=>{var e;return null!=(e=n.node.loading)&&e}),r=L(()=>{var e;return null!=(e=n.node.rows)?e:[]});return(t,a)=>(p(),h("div",et,[y("table",{class:T(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":l.value}]),"aria-busy":l.value},[y("colgroup",null,[(p(!0),h(k,null,x(o.value,(e,n)=>(p(),h("col",{key:`col-${n}`,style:z({width:e})},null,4))),128))]),y("thead",tt,[y("tr",ot,[(p(!0),h(k,null,x(e.node.header.cells,(e,o)=>(p(),h("th",{key:`header-${o}`,dir:"auto",class:T(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",["right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"]])},[f(w(mt),{nodes:e.children,"index-key":`table-th-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:a[0]||(a[0]=e=>t.$emit("copy",e))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),y("tbody",null,[(p(!0),h(k,null,x(r.value,(e,o)=>(p(),h("tr",{key:`row-${o}`,class:T(["border-[var(--table-border,#cbd5e1)]",[o<r.value.length-1?"border-b":""]])},[(p(!0),h(k,null,x(e.cells,(e,l)=>(p(),h("td",{key:`cell-${o}-${l}`,class:T(["p-[calc(4/7*1em)] overflow-x-auto",["right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"]]),dir:"auto"},[f(w(mt),{nodes:e.children,"index-key":`table-td-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:a[1]||(a[1]=e=>t.$emit("copy",e))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,nt),f(E,{name:"table-node-fade"},{default:N(()=>[l.value?(p(),h("div",lt,[D(t.$slots,"loading",{isLoading:l.value},()=>[a[2]||(a[2]=y("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),a[3]||(a[3]=y("span",{class:"sr-only"},"Loading",-1))],!0)])):H("",!0)]),_:3})]))}}),[["__scopeId","data-v-a874491c"]]);rt.install=e=>{e.component(rt.__name,rt)};const at={class:"hr-node"},it=/* @__PURE__ */te({},[["render",function(e,n){return p(),h("hr",at)}],["__scopeId","data-v-639cbad9"]]);it.install=e=>{e.component(it.__name,it)};const st={key:1,class:"html-block-node__placeholder"},ut=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HtmlBlockNode",props:{node:{}},setup(e){const n=e,t=L(()=>{const e=n.node.attrs;if(e){if(Array.isArray(e)){const n={};for(const t of e){if(!t||t.length<2)continue;const[e,o]=t;null!=e&&(n[String(e)]=null==o?"":String(o))}return n}return e}}),o=M(null),l=M("undefined"==typeof window),r=M(n.node.content),a=Ke(),i=M(null),s=!!n.node.loading;return"undefined"!=typeof window?(C(o,e=>{var t,o;if(null==(o=null==(t=i.value)?void 0:t.destroy)||o.call(t),i.value=null,!s)return l.value=!0,void(r.value=n.node.content);if(!e)return void(l.value=!1);const u=a(e,{rootMargin:"400px"});i.value=u,l.value=u.isVisible.value,u.whenVisible.then(()=>{l.value=!0})},{immediate:!0}),C(()=>n.node.content,e=>{s&&!l.value||(r.value=e)})):l.value=!0,B(()=>{var e,n;null==(n=null==(e=i.value)?void 0:e.destroy)||n.call(e),i.value=null}),(n,a)=>(p(),h("div",K({ref_key:"htmlRef",ref:o,class:"html-block-node"},t.value),[l.value?g([r.value],()=>(p(),h("div",{key:0,innerHTML:r.value},null,8,["innerHTML"])),a,0):(p(),h("div",st,[D(n.$slots,"placeholder",{node:e.node},()=>[a[1]||(a[1]=y("span",{class:"html-block-node__placeholder-bar"},null,-1)),a[2]||(a[2]=y("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),a[3]||(a[3]=y("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),[["__scopeId","data-v-ed22b926"]]),ct={class:"unknown-node"},dt=/* @__PURE__ */m({__name:"FallbackComponent",props:{node:{}},setup:e=>(n,t)=>(p(),h("div",ct,b(e.node.raw),1))}),vt=["data-node-index","data-node-type"],mt=/* @__PURE__ */te(/* @__PURE__ */m({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:n}){var t,o,l;const r=e,a=n,v=M(),m=M(!1),g=/auto|scroll|overlay/i,f="undefined"!=typeof window,w=L(()=>r.debugPerformance&&f&&"undefined"!=typeof console);function y(e,n){w.value&&console.info(`[markstream-vue][perf] ${e}`,n)}function b(e){if("undefined"==typeof window)return null;const n=null!=e?e:v.value;if(!n)return null;const t=n.ownerDocument||document,o=t.scrollingElement||t.documentElement;let l=n;for(;l&&l!==t.body&&l!==o;){const e=window.getComputedStyle(l),n=(e.overflowY||"").toLowerCase(),t=(e.overflow||"").toLowerCase();if(g.test(n)||g.test(t))return l;l=l.parentElement}return null}const _=r.customId?`renderer-${r.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,I=c(_),j=L(()=>{const e=r.customHtmlTags;return e&&0!==e.length?c(_,{customHtmlTags:e}):I}),$=L(()=>{const e=j.value;return r.customMarkdownIt?r.customMarkdownIt(e):e});function D(e){const n=String(null!=e?e:"").trim();if(!n)return"";const t=n.match(/^[<\s/]*([A-Z][\w-]*)/i);return t?t[1].toLowerCase():""}const A=L(()=>{var e,n,t;const o=null!=(e=r.parseOptions)?e:{},l=[...null!=(n=r.customHtmlTags)?n:[],...null!=(t=o.customHtmlTags)?t:[]].map(D).filter(Boolean);return l.length?s(i({},o),{customHtmlTags:Array.from(new Set(l))}):o}),P=L(()=>{var e;if(null==(e=r.nodes)?void 0:e.length)return X(r.nodes.slice());if(r.content){const e=w.value?performance.now():0,n=d(r.content,$.value,A.value);return w.value&&y("parse(sync)",{ms:Math.round(performance.now()-e),nodes:n.length,contentLength:r.content.length}),X(n)}return[]}),F=L(()=>{var e;return Math.max(1,null!=(e=r.maxLiveNodes)?e:320)}),W=L(()=>{var e;return!((null!=(e=r.maxLiveNodes)?e:0)<=0)&&P.value.length>F.value}),Y=L(()=>!1!==r.viewportPriority&&!m.value),U=function(e,n){const t="undefined"!=typeof window&&"undefined"!=typeof document,o="boolean"==typeof n?M(n):n;let l=null,r=null;const a=/* @__PURE__ */new WeakMap,s=(n,s)=>{const u=M(!1);let c,d=!1;const v=new Promise(e=>{c=()=>{d||(d=!0,e())}}),m=()=>{try{null==l||l.unobserve(n)}catch(e){}a.delete(n)};if(!t||!o.value)return u.value=!0,c(),{isVisible:u,whenVisible:v,destroy:m};!r&&s&&(r=i({},s));const h=function(n){var o,i,s;if(l||!t)return l;if("undefined"==typeof IntersectionObserver)return null;const u=null!=(o=null==e?void 0:e(null!=n?n:null))?o:null,c=r||{};return l=new IntersectionObserver(e=>{for(const t of e){const e=a.get(t.target);if(e&&(t.isIntersecting||t.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(n){}}null==l||l.unobserve(t.target),a.delete(t.target)}}},{root:u,rootMargin:null!=(i=c.rootMargin)?i:"300px",threshold:null!=(s=c.threshold)?s:0}),l}(n);return h?(a.set(n,{resolve:c,visible:u}),h.observe(n),{isVisible:u,whenVisible:v,destroy:m}):(u.value=!0,c(),{isVisible:u,whenVisible:v,destroy:m})};return S(Fe,s),s}(e=>{var n;return b(null!=(n=null!=e?e:v.value)?n:null)},Y),G=f&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame.bind(window):null,J=f&&"function"==typeof window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):null,Q="undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(o=null==(t=globalThis.process)?void 0:t.env)?void 0:o.NODE_ENV),ee=f&&"function"==typeof window.requestIdleCallback,ne=L(()=>{var e;const n=Math.trunc(null!=(e=r.renderBatchSize)?e:80);return Number.isFinite(n)?Math.max(0,n):0}),te=L(()=>{var e;const n=Math.trunc(null!=(e=r.initialRenderBatchSize)?e:ne.value);return Number.isFinite(n)?Math.max(0,n):ne.value}),le=L(()=>!1!==r.batchRendering&&ne.value>0&&f&&!Q),re=M(0),ie=M({key:r.indexKey,total:0}),se=M(Math.max(1,ne.value||1)),ue=Z({}),de=/* @__PURE__ */new Map,me=/* @__PURE__ */new Map,he=/* @__PURE__ */new Map,pe=M(null);let fe=null,we=null;const ye=L(()=>{var e;return!1!==r.deferNodesUntilVisible&&!((null!=(e=r.maxLiveNodes)?e:0)<=0)&&!W.value&&!(P.value.length>900)&&Y.value}),ke=L(()=>{var e;return le.value&&(null!=(e=r.maxLiveNodes)?e:0)<=0}),Me=M({batchSize:ne.value,initial:te.value,delay:null!=(l=r.renderBatchDelay)?l:16,enabled:ke.value}),Ce=L(()=>!!U&&(ye.value||W.value)),Be=L(()=>{var e;return Math.max(0,null!=(e=r.liveNodeBuffer)?e:60)}),Te=M(0),Ie=Z({start:0,end:0}),je=/* @__PURE__ */new Map,$e=L(()=>{if(!W.value)return P.value.length;const e=Be.value,n=Math.max(Ie.end+e,te.value),t=Math.min(P.value.length,n);return Math.max(re.value,t)});function Se(e){var n,t,o,l;const r=b(null!=(n=null!=e?e:v.value)?n:null);if(r)return r;const a=null!=(l=null!=(o=null==e?void 0:e.ownerDocument)?o:null==(t=v.value)?void 0:t.ownerDocument)?l:"undefined"!=typeof document?document:null;return(null==a?void 0:a.scrollingElement)||(null==a?void 0:a.documentElement)||null}function Le(e){if(!f)return!1;try{const n=window.getComputedStyle(e);return!!(n.display||"").toLowerCase().includes("flex")&&(n.flexDirection||"").toLowerCase().endsWith("reverse")}catch(n){return!1}}function He(){fe&&(fe(),fe=null),pe.value=null}function Ee(){if(!f||!W.value)return;const e=Se();if(!e||pe.value===e)return;He();const n=()=>ze();e.addEventListener("scroll",n,{passive:!0}),pe.value=e,fe=()=>{e.removeEventListener("scroll",n)}}function Ne(){var e,n,t;if(!we)return;const o=null!=(t=null==(n=null==(e=v.value)?void 0:e.ownerDocument)?void 0:n.defaultView)?t:"undefined"!=typeof window?window:null;we.viaTimeout?o?o.clearTimeout(we.id):clearTimeout(we.id):null==J||J(we.id),we=null}function ze(e={}){var n,t,o;if(!W.value)return;if(!f)return void De(!0);if(e.immediate)return Ne(),void De(!0);if(we)return;const l=()=>{we=null,De()};if(G)we={id:G(l),viaTimeout:!1};else{const e=null!=(o=null==(t=null==(n=v.value)?void 0:n.ownerDocument)?void 0:t.defaultView)?o:"undefined"!=typeof window?window:null,r=e?e.setTimeout(l,16):setTimeout(l,16);we={id:r,viaTimeout:!0}}}function De(e=!1){var n,t,o,l,r,a,i;if(!W.value)return;const s=pe.value||Se();if(!s)return;const u=s.ownerDocument||(null==(n=v.value)?void 0:n.ownerDocument)||document,c=(null==u?void 0:u.defaultView)||("undefined"!=typeof window?window:null),d=s===(null==u?void 0:u.documentElement)||s===(null==u?void 0:u.body),m=P.value.length;if(!d&&m>0&&Le(s)){const n=s.clientHeight||0,t=s.scrollTop,o=t<0?-t:t,l=function(e){var n;const t=P.value;if(!t.length)return 0;if(e<=0)return Math.max(0,t.length-1);let o=e;for(let l=t.length-1;l>=0;l--){const e=null!=(n=Pe[l])?n:Re.value;if(o<=e)return l;o-=e}return 0}(Math.max(0,o)+.5*Math.max(0,n)),r=Ae(l,0,Math.max(0,m-1));return void((e||Math.abs(r-Te.value)>1)&&(Te.value=r))}const h=d?null:s.getBoundingClientRect(),p=d?0:h.top,g=d?null!=(o=null!=(t=null==c?void 0:c.innerHeight)?t:s.clientHeight)?o:0:h.bottom,f=Array.from(he.entries()).sort((e,n)=>e[0]-n[0]);let w=null,y=null;for(const[v,x]of f){if(!x)continue;const e=x.getBoundingClientRect();e.bottom<=p||e.top>=g||(null==w&&(w=v),y=v)}if(null==w||null==y){const e=v.value;if(!e)return;const n=d?{top:0}:s.getBoundingClientRect(),t=function(e,n,t){var o,l,r,a,i,s;if(t)return null!=(a=null!=(r=null==(o=null==n?void 0:n.documentElement)?void 0:o.scrollTop)?r:null==(l=null==n?void 0:n.body)?void 0:l.scrollTop)?a:0;const u=e.scrollTop;if(!Le(e))return u;const c=u<0?-u:u;return Math.max(0,(null!=(i=e.scrollHeight)?i:0)-(null!=(s=e.clientHeight)?s:0))-c}(s,u,d),o=d?(()=>{const t=e.getBoundingClientRect(),o=(d?0:n.top)-t.top;return Math.max(0,o)})():(()=>{const n=function(e,n){let t=e,o=0,l=0;for(;t&&t!==n&&l++<64;)o+=t.offsetTop||0,t=t.offsetParent;return o}(e,s);return Math.max(0,t-n)})(),m=d?null!=(i=null!=(a=null!=(r=null==c?void 0:c.innerHeight)?r:null==(l=null==u?void 0:u.documentElement)?void 0:l.clientHeight)?a:s.clientHeight)?i:0:s.clientHeight,h=function(e){var n;if(e<=0)return 0;let t=e;const o=P.value;for(let l=0;l<o.length;l++){const e=null!=(n=Pe[l])?n:Re.value;if(t<=e)return l;t-=e}return Math.max(0,o.length-1)}(o+.5*Math.max(0,m));return void(Te.value=Ae(h,0,Math.max(0,P.value.length-1)))}const k=Math.round((w+y)/2);!e&&Math.abs(k-Te.value)<=1||(Te.value=Ae(k,0,Math.max(0,P.value.length-1)))}function Ae(e,n,t){return Math.min(Math.max(e,n),t)}const Pe=Z({}),Ve=Z({total:0,count:0}),Re=L(()=>Ve.count>0?Math.max(12,Ve.total/Ve.count):32);function Oe(e,n){var t;if(e>=n)return 0;let o=0;for(let l=e;l<n;l++)o+=null!=(t=Pe[l])?t:Re.value;return o}const Ke=L(()=>{if(!W.value)return P.value.map((e,n)=>({node:e,index:n}));const e=P.value.length,n=Ae(Ie.start,0,e),t=Ae(Ie.end,n,e);return P.value.slice(n,t).map((e,t)=>({node:e,index:n+t}))}),We=L(()=>W.value?Oe(0,Math.min(Ie.start,P.value.length)):0),Xe=L(()=>{if(!W.value)return 0;const e=P.value.length;return Oe(Math.min(Ie.end,e),e)});function Ze(e){if(de.size&&W.value)for(const[n,t]of de)n>=e&&(t.destroy(),de.delete(n),ye.value&&delete ue[n],ln(n),he.delete(n))}function qe(e,n){ye.value&&(ue[e]=n),n&&(W.value?ze():Te.value=Ae(e,0,Math.max(0,P.value.length-1)))}function Ye(e){const n=de.get(e);n&&(n.destroy(),de.delete(e)),ln(e)}function Ue(e,n){if(n?he.set(e,n):he.delete(e),n||ln(e),!Ce.value||!U)return Ye(e),void(n?qe(e,!0):ye.value&&delete ue[e]);if(!W.value&&ye.value&&!m.value&&de.size>=640&&(function(){if(!m.value){m.value=!0;for(const e of de.values())e.destroy();if(de.clear(),f)for(const e of me.values())window.clearTimeout(e);me.clear();for(const e of Object.keys(ue))delete ue[e]}}(),!Ce.value||!U))return Ye(e),void(n?qe(e,!0):ye.value&&delete ue[e]);if(e<te.value&&!W.value)return Ye(e),void qe(e,!0);if(!n)return Ye(e),void(ye.value&&delete ue[e]);Ye(e);const t=U(n,{rootMargin:"400px"});t&&(de.set(e,t),qe(e,t.isVisible.value),ye.value&&function(e){if(!f||!ye.value)return;ln(e);const n=e%17*23,t=window.setTimeout(()=>{var n,t;if(me.delete(e),!ye.value)return;if(!0===ue[e])return;const o=he.get(e);if(!o)return void delete ue[e];const l=Se(o),r=o.ownerDocument||document,a=r.defaultView||window,i=!l||l===r.documentElement||l===r.body,s=!i&&l?l.getBoundingClientRect():null,u=i?0:s.top,c=i?null!=(t=null!=(n=a.innerHeight)?n:null==l?void 0:l.clientHeight)?t:0:s.bottom,d=o.getBoundingClientRect();d.bottom>=u-500&&d.top<=c+500&&qe(e,!0)},1800+n);me.set(e,t)}(e),t.whenVisible.then(()=>{ln(e),qe(e,!0)}).catch(()=>{}).finally(()=>{de.get(e)===t&&de.delete(e);try{t.destroy()}catch(n){}}),W.value&&ze())}let Ge=null,Qe=null,en=!1,nn=null,tn=null;function on(){f&&(null!=Ge&&(null==J||J(Ge),Ge=null),null!=Qe&&(window.clearTimeout(Qe),Qe=null),null!=tn&&"function"==typeof window.cancelIdleCallback&&(window.cancelIdleCallback(tn),tn=null),en=!1,nn=null)}function ln(e){if(!f)return;const n=me.get(e);null!=n&&(window.clearTimeout(n),me.delete(e))}function rn(e,n={}){var t,o;if(!ke.value)return;const l=$e.value;if(re.value>=l)return;const a=Math.max(1,e),i=e=>{var n;Ge=null,Qe=null,tn=null,en=!1;const t=null!=nn?nn:a;nn=null;const o=Math.max(2,null!=(n=r.renderBatchBudgetMs)?n:6),i=e=>{const n="undefined"!=typeof performance?performance.now():Date.now();re.value=Math.min(l,re.value+Math.max(1,e)),Ze(re.value);const t=("undefined"!=typeof performance?performance.now():Date.now())-n;return function(e){var n;if(!ke.value)return;const t=Math.max(2,null!=(n=r.renderBatchBudgetMs)?n:6),o=Math.max(1,ne.value||1),l=Math.max(1,Math.floor(o/4));e>1.2*t?se.value=Math.max(l,Math.floor(.7*se.value)):e<.5*t&&se.value<o&&(se.value=Math.min(o,Math.ceil(1.2*se.value)))}(t),t};let s=t;for(;(i(s),!(re.value>=l)&&e)&&!(("function"==typeof e.timeRemaining?e.timeRemaining():0)<=.5*o);)s=Math.max(1,Math.round(se.value));re.value<l&&an()};if(!f||n.immediate)return void i();const s=Math.max(0,null!=(t=r.renderBatchDelay)?t:16);if(nn=null!=nn?Math.max(nn,a):a,!en){if(en=!0,!Q&&ee&&window.requestIdleCallback){const e=Math.max(0,null!=(o=r.renderBatchIdleTimeoutMs)?o:120);return void(tn=window.requestIdleCallback(e=>{i(e)},{timeout:e}))}G&&!Q?Ge=G(()=>{0!==s?Qe=window.setTimeout(()=>i(),s):i()}):Qe=window.setTimeout(()=>i(),s)}}function an(){ke.value&&rn(le.value?Math.max(1,Math.round(se.value)):Math.max(1,ne.value))}C([()=>P.value,()=>P.value.length,()=>ke.value,()=>ne.value,()=>te.value,()=>r.renderBatchDelay,()=>r.indexKey],()=>{var e;const n=P.value.length,t=ie.value,o=r.indexKey,l=void 0!==o&&o!==t.key,a=n!==t.total,i=l||a;ie.value={key:o,total:n};const s=Me.value,u=null!=(e=r.renderBatchDelay)?e:16,c=s.batchSize!==ne.value||s.initial!==te.value||s.delay!==u||s.enabled!==ke.value;Me.value={batchSize:ne.value,initial:te.value,delay:u,enabled:ke.value},(i||c||!ke.value)&&on(),(i||c)&&(se.value=Math.max(1,ne.value||1)),i&&W.value&&ze({immediate:!0});const d=$e.value;if(!n)return re.value=0,void Ze(0);if(!ke.value)return re.value=d,void Ze(re.value);const v=l||0===t.total;re.value=v||c?Math.min(d,te.value):Math.min(re.value,d);const m=Math.max(1,te.value||ne.value||n);re.value<d?rn(m,{immediate:!f}):Ze(re.value)},{immediate:!0}),C(()=>W.value,e=>{if(!e)return He(),void Ne();Ee(),ze({immediate:!0})},{immediate:!0}),C([()=>P.value.length,()=>W.value],e=>u(null,[e],function*([e,n]){n&&e&&f&&(yield q(),ze({immediate:!0}))}),{flush:"post"}),C(()=>v.value,()=>{W.value&&(Ee(),ze({immediate:!0}))}),C(()=>P.value.length,()=>{W.value&&ze({immediate:!0})}),C(()=>ye.value,e=>{if(e)for(const[n,t]of he)Ue(n,t);else{for(const e of de.values())e.destroy();de.clear();for(const e of Array.from(me.keys()))ln(e);for(const e of Object.keys(ue))delete ue[e];for(const[e,n]of he)n&&qe(e,!0)}},{immediate:!1}),C([()=>r.viewportPriority,()=>P.value.length],([e,n])=>{!1!==e?m.value&&n<=200&&(m.value=!1):m.value=!1}),C(()=>re.value,()=>{W.value&&ze({immediate:!0})}),C([Te,F,Be,()=>P.value.length,W],()=>{!function(){const e=P.value.length;if(!W.value||0===e)return Ie.start=0,void(Ie.end=e);const n=Math.min(F.value,e),t=Be.value,o=Ae(Te.value-t,0,Math.max(0,e-n));Ie.start=o,Ie.end=Math.min(e,o+n)}()},{immediate:!0}),C([()=>P.value.length,W,F,Be,()=>Ie.start,()=>Ie.end],([e,n,t,o,l,r])=>{w.value&&y("virtualization",{nodes:e,virtualization:n,maxLiveNodes:t,buffer:o,focusIndex:Te.value,scroll:n?(()=>{const e=pe.value||Se();return e?{reverse:Le(e),scrollTop:Math.round(e.scrollTop),scrollTopAbs:Math.round(Math.abs(e.scrollTop)),scrollHeight:Math.round(e.scrollHeight),clientHeight:Math.round(e.clientHeight)}:null})():null,liveRange:{start:l,end:r},rendered:re.value})}),C(()=>$e.value,(e,n)=>{ke.value&&("number"==typeof n&&e<=n||e>re.value&&an())}),B(()=>{on();for(const e of de.values())e.destroy();de.clear();for(const e of Array.from(me.keys()))ln(e);He(),Ne()});const sn=V(()=>u(null,null,function*(){try{return(yield import("./index4.js")).default}catch(e){return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',e),Qn}})),un=V(()=>u(null,null,function*(){try{return(yield Promise.resolve().then(()=>Mo)).default}catch(e){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".',e),Qn}})),cn=L(()=>r.renderCodeBlocksAsPre?Qn:sn),dn={text:vn,paragraph:Un,heading:Xn,code_block:sn,list:qn,blockquote:oe,table:rt,definition_list:ce,footnote:On,footnote_reference:xe,footnote_anchor:Pn,admonition:kt,hardbreak:Kn,link:Sn,image:Je,thematic_break:it,math_inline:mn,math_block:hn,strong:Mn,emphasis:Dn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,checkbox:ae,checkbox_input:ae,inline_code:_e,html_inline:be,reference:pn,html_block:ut};function gn(e){var n;if(!e)return dt;const t=ge(r.customId),o=t[String(e.type)];if("code_block"===e.type){if("mermaid"===String(null!=(n=e.language)?n:"").trim().toLowerCase())return t.mermaid||un;if(o)return o;return t.code_block||cn.value}return o||dn[String(e.type)]||dt}function fn(e){var n;return"code_block"===(null==e?void 0:e.type)&&"mermaid"===String(null!=(n=e.language)?n:"").trim().toLowerCase()?{}:"code_block"===e.type?i({stream:r.codeBlockStream,darkTheme:r.codeBlockDarkTheme,lightTheme:r.codeBlockLightTheme,monacoOptions:r.codeBlockMonacoOptions,themes:r.themes,minWidth:r.codeBlockMinWidth,maxWidth:r.codeBlockMaxWidth},r.codeBlockProps||{}):{typewriter:r.typewriter}}function yn(e){a("click",e)}function kn(e){var n;(null==(n=e.target)?void 0:n.closest("[data-node-index]"))&&a("mouseover",e)}function bn(e){var n;(null==(n=e.target)?void 0:n.closest("[data-node-index]"))&&a("mouseout",e)}return(n,t)=>(p(),h("div",{ref_key:"containerRef",ref:v,class:T(["markstream-vue markdown-renderer",[{dark:r.isDark},{virtualized:W.value}]]),onClick:yn,onMouseover:kn,onMouseout:bn},[W.value?(p(),h("div",{key:0,class:"node-spacer",style:z({height:`${We.value}px`}),"aria-hidden":"true"},null,4)):H("",!0),(p(!0),h(k,null,x(Ke.value,n=>{var o,l;return p(),h("div",{key:n.index,ref_for:!0,ref:e=>Ue(n.index,e),class:"node-slot","data-node-index":n.index,"data-node-type":n.node.type},[(l=n.index,ke.value&&l>=re.value||ye.value&&!(l<te.value)&&!0!==ue[l]?(p(),h("div",{key:1,class:"node-placeholder",style:z({height:`${null!=(o=Pe[n.index])?o:Re.value}px`})},null,4)):(p(),h("div",{key:0,ref_for:!0,ref:e=>function(e,n){n?(je.set(e,n),queueMicrotask(()=>{!function(e,n){if(!Number.isFinite(n)||n<=0)return;const t=Pe[e];Pe[e]=n,t?Ve.total+=n-t:(Ve.total+=n,Ve.count++)}(e,n.offsetHeight)})):je.delete(e)}(n.index,e),class:"node-content"},["code_block"!==n.node.type&&!1!==r.typewriter?(p(),R(E,{key:0,name:"typewriter",appear:""},{default:N(()=>[(p(),R(O(gn(n.node)),K({node:n.node,loading:n.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${n.index}`},{ref_for:!0},fn(n.node),{"custom-id":r.customId,"is-dark":r.isDark,onCopy:t[0]||(t[0]=e=>a("copy",e)),onHandleArtifactClick:t[1]||(t[1]=e=>a("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(p(),R(O(gn(n.node)),K({key:1,node:n.node,loading:n.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${n.index}`},{ref_for:!0},fn(n.node),{"custom-id":r.customId,"is-dark":r.isDark,onCopy:t[2]||(t[2]=e=>a("copy",e)),onHandleArtifactClick:t[3]||(t[3]=e=>a("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)))],8,vt)}),128)),W.value?(p(),h("div",{key:1,class:"node-spacer",style:z({height:`${Xe.value}px`}),"aria-hidden":"true"},null,4)):H("",!0)],34))}}),[["__scopeId","data-v-748c8207"]]);mt.install=e=>{var n,t;const o=null!=(t=null!=(n=mt.__name)?n:mt.name)?t:"NodeRenderer";e.component(o,mt)};const ht={key:0,class:"admonition-icon"},pt={class:"admonition-title"},gt=["aria-expanded","aria-controls","title"],ft={key:0},wt={key:1},yt=["id"],kt=/* @__PURE__ */te(/* @__PURE__ */m({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:n}){var t;const o=e,l=n,r={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},a=L(()=>{if(o.node.title&&o.node.title.trim().length)return o.node.title;const e=o.node.kind||"note";return e.charAt(0).toUpperCase()+e.slice(1)}),i=M(!!o.node.collapsible&&!(null==(t=o.node.open)||t));function s(){o.node.collapsible&&(i.value=!i.value)}const u=`admonition-${Math.random().toString(36).slice(2,9)}`;return(n,t)=>(p(),h("div",{class:T(["admonition",[`admonition-${o.node.kind}`,o.isDark?"is-dark":""]])},[y("div",{id:u,class:"admonition-header"},[r[o.node.kind]?(p(),h("span",ht,b(r[o.node.kind]),1)):H("",!0),y("span",pt,b(a.value),1),o.node.collapsible?(p(),h("button",{key:1,class:"admonition-toggle","aria-expanded":!i.value,"aria-controls":`${u}-content`,title:i.value?"Expand":"Collapse",onClick:s},[i.value?(p(),h("span",ft,"▶")):(p(),h("span",wt,"▼"))],8,gt)):H("",!0)]),Y(y("div",{id:`${u}-content`,class:"admonition-content","aria-labelledby":u},[g([o.node.children],()=>f(w(mt),{"index-key":`admonition-${e.indexKey}`,nodes:o.node.children,"custom-id":o.customId,typewriter:o.typewriter,onCopy:t[0]||(t[0]=e=>l("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),t,1)],8,yt),[[U,!i.value]])],2))}}),[["__scopeId","data-v-5e95c2b7"]]);kt.install=e=>{e.component(kt.__name,kt)};let xt=!1,bt=null,Mt=!1;function _t(){return u(this,null,function*(){if(bt)return bt;if(Mt)return null;try{return bt=yield import("stream-monaco"),yield function(e){return u(this,null,function*(){if(!xt)return xt=!0,e.preloadMonacoWorkers()})}(bt),bt}catch(e){return Mt=!0,null}})}let Ct=null;function Bt(e){Ct=null!=e?e:null}const Tt={"":"",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","c++":"cpp","c#":"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function It(e){var n;const t=function(e){if(!e)return"";const n=e.trim();if(!n)return"";const[t]=n.split(/\s+/),[o]=t.split(":");return o.toLowerCase()}(e);return null!=(n=Tt[t])?n:t}function jt(e){const n=It(e);if(!n)return"plaintext";switch(n){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return n}}function $t(e){if(Ct){const n=Ct(e);if(null!=n&&""!==n)return n}switch(It(e)){case"javascript":case"js":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />\n <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />\n </g>\n</svg>\n';case"typescript":case"ts":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />\n <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />\n </g>\n</svg>\n';case"jsx":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />\n <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />\n <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />\n <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n';case"tsx":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />\n <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />\n <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />\n <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n';case"html":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />\n <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />\n </g>\n</svg>\n';case"css":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">\n <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />\n <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />\n </g>\n</svg>\n';case"scss":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />\n</svg>\n';case"json":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />\n</svg>\n';case"python":case"py":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />\n <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />\n <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />\n <path stroke="#e5c890" d="m 8.5,12.5 v 0" />\n </g>\n</svg>\n';case"ruby":case"rb":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />\n</svg>\n';case"go":case"golang":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />\n</svg>\n';case"r":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />\n <path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />\n </g>\n</svg>\n';case"java":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />\n <path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />\n <path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />\n </g>\n</svg>\n';case"kotlin":case"kt":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />\n <path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />\n <path stroke="#e78284" d="M2.5 13.5V8" />\n <path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />\n </g>\n</svg>\n';case"c":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n</svg>\n';case"cpp":case"c++":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />\n</svg>\n';case"cs":case"csharp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />\n</svg>\n';case"php":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />\n</svg>\n';case"scala":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />\n</svg>\n';case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />\n <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />\n </g>\n</svg>\n';case"sql":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />\n</svg>\n';case"yaml":case"yml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />\n</svg>\n';case"markdown":case"md":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />\n</svg>\n';case"xml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />\n</svg>\n';case"rust":case"rs":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n <path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />\n <path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />\n </g>\n</svg>\n';case"swift":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />\n</svg>\n';case"perl":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />\n</svg>\n';case"lua":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />\n <path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />\n </g>\n</svg>\n';case"haskell":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />\n</svg>\n';case"erlang":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />\n <path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />\n </g>\n</svg>\n';case"clojure":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />\n <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />\n <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />\n <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />\n <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />\n <path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />\n </g>\n</svg>\n';case"vue":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">\n <path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />\n <path d="M12.05 1.73 8 9.28 3.95 1.73" />\n </g>\n</svg>\n';case"svg":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />\n</svg>\n';case"mermaid":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />\n</svg>\n';case"dart":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />\n <path d="M3.5 11V3.5H11m-7.5 0 8 8" />\n </g>\n</svg>\n';case"assembly":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />\n</svg>\n';case"dockerfile":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />\n</svg>\n';case"fortran":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />\n</svg>\n';case"lisp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />\n <path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />\n </g>\n</svg>\n';case"ocaml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n <path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />\n <path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />\n <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />\n </g>\n</svg>\n';case"prolog":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />\n</svg>\n';case"groovy":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />\n <path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />\n </g>\n</svg>\n';case"matlab":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />\n <path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />\n </g>\n</svg>\n';case"cobol":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />\n</svg>\n';case"ada":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>';case"julia":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n </g>\n</svg>\n';case"elixir":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />\n</svg>\n';case"vb.net":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>';case"nim":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />\n</svg>\n';case"crystal":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />\n</svg>\n';case"d":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>';case"applescript":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />\n</svg>\n';case"solidity":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />\n</svg>\n';case"objectivec":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>';case"objectivecpp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>';case"terraform":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />\n</svg>\n';case"plain":case"text":case"":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">\n <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />\n <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />\n </g>\n</svg>\n';default:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">\x3c!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --\x3e<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>'}}const St={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#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"};function Lt(e){try{if("undefined"!=typeof globalThis&&"function"==typeof globalThis.requestAnimationFrame)return globalThis.requestAnimationFrame(e)}catch(n){}return globalThis.setTimeout(e,0)}const Ht=()=>import("mermaid");let Et=null,Nt=Ht;function zt(e){Nt=e,Et=null}function Dt(e){zt(null!=e?e:Ht)}function At(){zt(null)}function Pt(){return"function"==typeof Nt}let Vt=null,Rt=null;const Ot=/* @__PURE__ */new Map;let Ft=5,Kt=!1;function Wt(e){Kt=!!e}function Xt(e){Number.isFinite(e)&&e>0&&(Ft=Math.floor(e))}function Zt(){return{inFlight:Ot.size,max:Ft}}const qt="WORKER_BUSY",Yt="MERMAID_DISABLED";function Ut(e){Vt=e,Rt=null;const n=e;Vt.onmessage=e=>{if(Vt!==n)return;const{id:t,ok:o,result:l,error:r}=e.data,a=Ot.get(t);a&&(!1===o||r?a.reject(new Error(r||"Unknown error")):a.resolve(l))},Vt.onerror=e=>{var t,o;if(Vt===n)if(0!==Ot.size){try{Kt?console.error("[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e)}catch(l){}for(const[n,t]of Ot.entries())t.reject(new Error(`Worker error: ${e.message}`));Ot.clear()}else null==(t=console.debug)||t.call(console,"[mermaidWorkerClient] Worker error (no pending):",(null==e?void 0:e.message)||e)},Vt.onmessageerror=e=>{var t,o;if(Vt===n)if(0!==Ot.size){try{Kt?console.error("[mermaidWorkerClient] Worker messageerror:",e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker messageerror:",e)}catch(l){}for(const[e,n]of Ot.entries())n.reject(new Error("Worker messageerror"));Ot.clear()}else null==(t=console.debug)||t.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",e)}}function Gt(){var e;if(Vt)try{for(const[e,n]of Ot.entries())n.reject(new Error("Worker cleared"));Ot.clear(),null==(e=Vt.terminate)||e.call(Vt)}catch(n){}Vt=null,Rt=null}function Jt(e,n,t=1400){if(!Pt()){const e=new Error("Mermaid rendering disabled");return e.name="MermaidDisabled",e.code=Yt,Promise.reject(e)}if(Rt)return Promise.reject(Rt);const o=Vt||(Rt=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Rt.name="WorkerInitError",Rt.code="WORKER_INIT_ERROR",null);if(!o)return Promise.reject(Rt);if(Ot.size>=Ft){const e=new Error("Worker busy");return e.name="WorkerBusy",e.code=qt,e.inFlight=Ot.size,e.max=Ft,Promise.reject(e)}return new Promise((l,r)=>{const a=Math.random().toString(36).slice(2);let i,s=!1;const u=()=>{s||(s=!0,null!=i&&globalThis.clearTimeout(i),Ot.delete(a))},c={resolve:e=>{u(),l(e)},reject:e=>{u(),r(e)}};Ot.set(a,c);try{o.postMessage({id:a,action:e,payload:n})}catch(d){return Ot.delete(a),void r(d)}i=globalThis.setTimeout(()=>{const e=new Error("Worker call timed out");e.name="WorkerTimeout",e.code="WORKER_TIMEOUT";const n=Ot.get(a);n&&n.reject(e)},t)})}function Qt(e,n,t=1400){return u(this,null,function*(){try{return yield Jt("canParse",{code:e,theme:n},t)}catch(o){return Promise.reject(o)}})}function eo(e,n,t=1400){return u(this,null,function*(){try{return yield Jt("findPrefix",{code:e,theme:n},t)}catch(o){return Promise.reject(o)}})}function no(){if(Vt)try{for(const[e,n]of Ot.entries())n.reject(new Error("Worker terminated"));Ot.clear(),Vt.terminate()}finally{Vt=null}}const to={key:0},oo={key:1,class:"flex items-center space-x-2 overflow-hidden"},lo=["src"],ro={key:2},ao={class:"flex items-center space-x-1"},io={class:"flex items-center space-x-1"},so={key:4},uo={key:5,class:"flex items-center space-x-1"},co=["aria-pressed"],vo={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},mo={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},ho=["disabled"],po=["disabled"],go={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},fo={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},wo={key:1,class:"relative"},yo={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},ko={class:"flex items-center gap-2 backdrop-blur rounded-lg"},xo={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},bo=/* @__PURE__ */te(/* @__PURE__ */m({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0},enableWheelZoom:{type:Boolean,default:!1},isStrict:{type:Boolean,default:!1}},emits:["copy","export","openModal","toggleMode"],setup(e,{emit:n}){var t,o;const l=e,r=n,a={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},c=M(!1),d=L(()=>l.isStrict?"strict":"loose"),v=L(()=>({startOnLoad:!1,securityLevel:d.value,dompurifyConfig:"strict"===d.value?a:void 0,flowchart:"strict"===d.value?{htmlLabels:!1}:void 0})),m=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],g=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function k(e){if(!e)return"";const n=e.trim();return g.test(n)?n:""}function x(e){if(e)try{e.replaceChildren()}catch(n){e.innerHTML=""}}function I(e,n){if(!e)return"";if("strict"===d.value)return function(e,n){if(!e)return"";try{e.replaceChildren()}catch(o){e.innerHTML=""}const t=function(e){if("undefined"==typeof window||"undefined"==typeof DOMParser)return null;if(!e)return null;const n=e.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),t=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement;if(!t||"svg"!==t.nodeName.toLowerCase())return null;const o=t;return function(e){const n=/* @__PURE__ */new Set(["script"]),t=[e,...Array.from(e.querySelectorAll("*"))];for(const o of t){if(n.has(o.tagName.toLowerCase())){o.remove();continue}const e=Array.from(o.attributes);for(const n of e){const e=n.name;if(/^on/i.test(e))o.removeAttribute(e);else{if("style"===e&&n.value){const t=n.value;if(m.some(e=>e.test(t))){o.removeAttribute(e);continue}}if(("href"===e||"xlink:href"===e)&&n.value){const t=k(n.value);if(!t){o.removeAttribute(e);continue}t!==n.value&&o.setAttribute(e,t)}}}}}(o),o}(n);return t?(e.appendChild(t),e.innerHTML):""}(e,n);try{e.replaceChildren()}catch(t){e.innerHTML=""}if(n)try{e.insertAdjacentHTML("afterbegin",n)}catch(t){e.innerHTML=n}return e.innerHTML}const{t:j}=Oe();function $(){return u(this,null,function*(){try{const e=yield function(){return u(this,null,function*(){if(Et)return Et;const e=Nt;if(!e)return null;let n;try{n=yield e()}catch(t){if(e===Ht)throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.');throw t}return n?(Et=function(e){if(!e)return e;const n=e&&e.default?e.default:e;if(n&&("function"==typeof n.render||"function"==typeof n.parse||"function"==typeof n.initialize))return n;if(n&&n.mermaidAPI&&("function"==typeof n.mermaidAPI.render||"function"==typeof n.mermaidAPI.parse)){const e=n.mermaidAPI;return s(i({},n),{render:e.render.bind(e),parse:e.parse?e.parse.bind(e):void 0,initialize:t=>"function"==typeof n.initialize?n.initialize(t):e.initialize?e.initialize(t):void 0})}return e.mermaid&&"function"==typeof e.mermaid.render?e.mermaid:n}(n),function(e){if(e)try{const n=null==e?void 0:e.initialize;e.initialize=t=>{const o=i({suppressErrorRendering:!0},t||{});return"function"==typeof n?n.call(e,o):(null==e?void 0:e.mermaidAPI)&&"function"==typeof e.mermaidAPI.initialize?e.mermaidAPI.initialize(o):void 0}}catch(n){}}(Et),Et):null})}();return c.value=!!e,e}catch(e){throw c.value=!1,e}})}"undefined"!=typeof window&&u(null,null,function*(){var e;try{const n=yield $();if(!n)return;null==(e=null==n?void 0:n.initialize)||e.call(n,i({},v.value))}catch(n){c.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",n)}});const S=M(!1),A=M(!1),P=M(),V=M(),O=M(),F=M(null),W=Ke(),X=M(null),Z=M("undefined"==typeof window),ne=M(),te=L(()=>l.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode")),oe=M(1),le=M(0),re=M(0),ae=M(!1),ie=M({x:0,y:0}),se=M(!1),ue=M(!1),ce=M(!1),de=M(null),ve=M(0),me=M(!1);let he=null,pe=null,ge=0;const fe=null!=(t=globalThis.requestIdleCallback)?t:(e,n)=>setTimeout(()=>e({didTimeout:!0}),16),we=function(){let e=null;return(...n)=>{e&&clearTimeout(e),e=setTimeout(()=>(()=>{fe(()=>{bn()},{timeout:500})})(...n),300)}}();function ye(){null!=pe&&(globalThis.clearTimeout(pe),pe=null)}function ke(e=600){if("undefined"==typeof globalThis)return;const n=Math.max(0,e);ye(),pe=globalThis.setTimeout(()=>{pe=null,l.loading||ce.value||!Z.value?ke(Math.min(1200,Math.max(300,1.2*n))):we()},n)}const xe=M("360px");let be=null;const Me=M(!1),_e=M(!1),Ce=M({}),Be=M(null),Te=M(""),Ie=M(0);let je=null;const $e=M(!1),Se=M({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),Le=L(()=>l.enableWheelZoom?{wheel:pn}:{}),He=L(()=>{var e,n,t,o;return{worker:null!=(e=l.workerTimeoutMs)?e:1400,parse:null!=(n=l.parseTimeoutMs)?n:1800,render:null!=(t=l.renderTimeoutMs)?t:2500,fullRender:null!=(o=l.fullRenderTimeoutMs)?o:4e3}}),Ee=null!=(o=globalThis.cancelIdleCallback)?o:e=>clearTimeout(e);let Ne=null,ze=null,De=!1,Ve=800,Re=null,Fe=0,We=!0;function Xe(e,n){const t=null==n?void 0:n.timeoutMs,o=null==n?void 0:n.signal;if(null==o?void 0:o.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let l=null,r=!1,a=null;return new Promise((n,i)=>{const s=()=>{null!=l&&clearTimeout(l),a&&o&&o.removeEventListener("abort",a)};t&&t>0&&(l=globalThis.setTimeout(()=>{r||(r=!0,s(),i(new Error("Operation timed out")))},t)),o&&(a=()=>{r||(r=!0,s(),i(new DOMException("Aborted","AbortError")))},o.addEventListener("abort",a)),e().then(e=>{r||(r=!0,s(),n(e))}).catch(e=>{r||(r=!0,s(),i(e))})})}function Ze(e){if("undefined"==typeof document)return;if(!V.value)return;const n=document.createElement("div");n.className="text-red-500 p-4",n.textContent="Failed to render diagram: ";const t=document.createElement("span");t.textContent=e instanceof Error?e.message:"Unknown error",n.appendChild(t),x(V.value),V.value.appendChild(n),xe.value="360px",$e.value=!0,Mn()}function qe(e){return!e||e.disabled}function Ye(e,n,t="top"){if(qe(e.currentTarget))return;const o=e,r=null!=(null==o?void 0:o.clientX)&&null!=(null==o?void 0:o.clientY)?{x:o.clientX,y:o.clientY}:void 0;Ae(e.currentTarget,n,t,!1,r,l.isDark)}function Ue(){Pe()}function Ge(e){if(qe(e.currentTarget))return;const n=S.value?j("common.copied")||"Copied":j("common.copy")||"Copy",t=e,o=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;Ae(e.currentTarget,n,"top",!1,o,l.isDark)}function Je(e,n){const t=`%%{init: {"theme": "${"dark"===n?"dark":"default"}"}}%%\n`;return e.trimStart().startsWith("%%{")?e:t+e}function Qe(){return We&&!se.value&&!Me.value&&!$e.value}function en(e){const n=e.split(/\r?\n/);for(;n.length>0;){const e=n[n.length-1].trimEnd();if(""!==e){if(!(/^[-=~>|<\s]+$/.test(e.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(e)||/[-|><]$/.test(e)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(e)))break;n.pop()}else n.pop()}return n.join("\n")}function nn(e,n,t){return u(this,null,function*(){var o;try{return yield Qt(e,n,null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.worker)}catch(l){return yield function(e,n,t){return u(this,null,function*(){var o,l;const r=yield $();if(!r)return;const a=r,i=Je(e,n);if("function"==typeof a.parse)return yield Xe(()=>a.parse(i),{timeoutMs:null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.parse,signal:null==t?void 0:t.signal}),!0;const s=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Xe(()=>r.render(s,i),{timeoutMs:null!=(l=null==t?void 0:t.timeoutMs)?l:He.value.render,signal:null==t?void 0:t.signal}),!0})}(e,n,t)}})}"undefined"!=typeof window&&C(()=>P.value,e=>{var n;if(null==(n=X.value)||n.destroy(),X.value=null,!e)return void(Z.value=!1);const t=W(e,{rootMargin:"400px"});X.value=t,Z.value=t.isVisible.value,t.whenVisible.then(()=>{Z.value=!0})},{immediate:!0}),B(()=>{var e;null==(e=X.value)||e.destroy(),X.value=null});const tn=L(()=>se.value||ce.value||A.value);function on(e){if(!P.value||!V.value)return;const n=V.value.querySelector("svg");if(!n)return;let t=0,o=0;const l=n.getAttribute("viewBox"),r=n.getAttribute("width"),a=n.getAttribute("height");if(l){const e=l.split(" ");4===e.length&&(t=Number.parseFloat(e[2]),o=Number.parseFloat(e[3]))}if(t&&o||r&&a&&(t=Number.parseFloat(r),o=Number.parseFloat(a)),Number.isNaN(t)||Number.isNaN(o)||t<=0||o<=0)try{const e=n.getBBox();e&&e.width>0&&e.height>0&&(t=e.width,o=e.height)}catch(i){return void console.error("Failed to get SVG BBox:",i)}if(t>0&&o>0){const n=o/t;let l=(null!=e?e:P.value.clientWidth)*n;l>o&&(l=o),xe.value=`${l}px`}}const ln=M(!1),rn=L(()=>({transform:`translate(${le.value}px, ${re.value}px) scale(${oe.value})`}));function an(e){"Escape"===e.key&&ln.value&&sn()}function sn(){if(ln.value=!1,O.value&&x(O.value),F.value=null,"undefined"!=typeof document)try{document.body.style.overflow=""}catch(e){}if("undefined"!=typeof window)try{window.removeEventListener("keydown",an)}catch(e){}}function un(){oe.value<3&&(oe.value+=.1)}function cn(){oe.value>.5&&(oe.value-=.1)}function dn(){oe.value=1,le.value=0,re.value=0}function vn(e){ae.value=!0,e instanceof MouseEvent?ie.value={x:e.clientX-le.value,y:e.clientY-re.value}:ie.value={x:e.touches[0].clientX-le.value,y:e.touches[0].clientY-re.value}}function mn(e){if(!ae.value)return;let n,t;e instanceof MouseEvent?(n=e.clientX,t=e.clientY):(n=e.touches[0].clientX,t=e.touches[0].clientY),le.value=n-ie.value.x,re.value=t-ie.value.y}function hn(){ae.value=!1}function pn(e){if(l.enableWheelZoom&&(e.ctrlKey||e.metaKey)){if(e.preventDefault(),!P.value)return;const n=P.value.getBoundingClientRect(),t=e.clientX-n.left,o=e.clientY-n.top,l=t-n.width/2,r=o-n.height/2,a=(l-le.value)/oe.value,i=(r-re.value)/oe.value,s=.01,u=-e.deltaY*s,c=Math.min(Math.max(oe.value+u,.5),3);c!==oe.value&&(le.value=l-a*c,re.value=r-i*c,oe.value=c)}}function gn(){return u(this,null,function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(te.value)),S.value=!0,r("copy",te.value),setTimeout(()=>{S.value=!1},1e3)}catch(e){console.error("Failed to copy:",e)}})}function fn(){var e;const n=null==(e=V.value)?void 0:e.querySelector("svg");if(!n)return void console.error("SVG element not found");const t=(new XMLSerializer).serializeToString(n),o={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:n,svgString:t};r("export",o),o.defaultPrevented||function(e,n=null){u(this,null,function*(){try{const o=null!=n?n:(new XMLSerializer).serializeToString(e),l=new Blob([o],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(l);if("undefined"!=typeof document){const e=document.createElement("a");e.href=r,e.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(t){}URL.revokeObjectURL(r)}}catch(o){console.error("Failed to export SVG:",o)}})}(n,t)}function wn(){var e,n;const t=null!=(n=null==(e=V.value)?void 0:e.querySelector("svg"))?n:null,o=t?(new XMLSerializer).serializeToString(t):null,l={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:t,svgString:o};r("openModal",l),l.defaultPrevented||function(){if(ln.value=!0,"undefined"!=typeof document)try{document.body.style.overflow="hidden"}catch(e){}if("undefined"!=typeof window)try{window.addEventListener("keydown",an)}catch(e){}q(()=>{if(P.value&&O.value){const e=P.value.cloneNode(!0);e.classList.add("fullscreen");const n=e.querySelector("[data-mermaid-wrapper]");n&&(F.value=n,n.style.transform=rn.value.transform),x(O.value),O.value.appendChild(e)}})}()}function yn(e){const n={payload:{type:"toggle-mode",target:e},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};r("toggleMode",e,n),n.defaultPrevented||kn(e)}function kn(e){return u(this,null,function*(){const n=ne.value;if(!n)return ue.value=!0,void(se.value="source"===e);const t=n.getBoundingClientRect().height;n.style.height=`${t}px`,n.style.overflow="hidden",ue.value=!0,se.value="source"===e,yield q();const o=n.scrollHeight;n.style.transition="height 180ms ease",n.offsetHeight,n.style.height=`${o}px`;const l=()=>{n.style.transition="",n.style.height="",n.style.overflow="",n.removeEventListener("transitionend",r)};function r(){l()}n.addEventListener("transitionend",r),setTimeout(()=>l(),220)})}function xn(){return u(this,null,function*(){return ce.value?de.value:V.value||(yield q(),V.value)?(ce.value=!0,de.value=u(null,null,function*(){var e;V.value&&(V.value.style.opacity="0");try{const n=yield $();if(!n)return;const t=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;Me.value||_e.value||null==(e=n.initialize)||e.call(n,s(i({},v.value),{dompurifyConfig:i({},a)}));const o=function(e,n=te.value){const t=n,o=`%%{init: {"theme": "${"dark"===e?"dark":"default"}"}}%%\n`;return t.trim().startsWith("%%{")?t:o+t}(l.isDark?"dark":"light"),r=yield Xe(()=>n.render(t,o),{timeoutMs:He.value.fullRender}),u=null==r?void 0:r.svg;if(V.value){const e=I(V.value,u);Me.value||_e.value||(on(),Me.value=!0,Se.value={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value});const n=l.isDark?"dark":"light";e&&(Ce.value[n]=e),_e.value&&(_e.value=!1),$e.value=!1,ge=0,ye()}}catch(n){const e=function(e){const n="string"==typeof e?e:"string"==typeof(null==e?void 0:e.message)?e.message:"";return"string"==typeof n&&/timed out/i.test(n)}(n),t=ge+1;e&&t<=3?(ge=t,ke(Math.min(1200,600*t))):(ge=0,ye(),console.error("Failed to render mermaid diagram:",n),!1===l.loading&&Ze(n))}finally{yield q(),V.value&&(V.value.style.opacity="1"),ce.value=!1,de.value=null}}),de.value):void console.warn("Mermaid container not ready")})}function bn(){return u(this,null,function*(){var e,n;const t=Date.now(),o=++Ie.value;je&&je.abort(),je=new AbortController;const r=je.signal,a=l.isDark?"dark":"light",i=te.value,s=i.replace(/\s+/g,"");if(!i.trim())return V.value&&x(V.value),Be.value=null,Te.value="",void($e.value=!1);if(s===Te.value)return;try{const c=yield function(e,n,t){return u(this,null,function*(){var o;try{if(yield nn(e,n,t))return{fullOk:!0,prefixOk:!1}}catch(r){if("AbortError"===(null==r?void 0:r.name))throw r}let l=en(e);if(l&&l.trim()&&l!==e)try{try{const r=yield eo(e,n,null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.worker);r&&r.trim()&&(l=r)}catch(r){}if(yield nn(l,n,t))return{fullOk:!1,prefixOk:!0,prefix:l}}catch(r){if("AbortError"===(null==r?void 0:r.name))throw r}return{fullOk:!1,prefixOk:!1}})}(i,a,{signal:r,timeoutMs:He.value.worker});if(c.fullOk)return yield xn(),void(Ie.value===o&&(Be.value=null!=(n=null==(e=V.value)?void 0:e.innerHTML)?n:null,Te.value=s,$e.value=!1));const d=Fe&&t<=Fe;if(c.prefixOk&&c.prefix&&Qe()&&!d)return void(yield function(e){return u(this,null,function*(){if(Qe()&&(V.value||(yield q(),V.value))&&!ce.value){ce.value=!0;try{const n=yield $();if(!n)return;const t=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,o=l.isDark?"dark":"light",r=en(e),a=Je(r&&r.trim()?r:e,o);V.value&&(V.value.style.opacity="0");const i=yield Xe(()=>n.render(t,a),{timeoutMs:He.value.render}),s=null==i?void 0:i.svg;V.value&&s&&(I(V.value,s),on())}catch(n){}finally{yield q(),V.value&&(V.value.style.opacity="1"),ce.value=!1}}})}(c.prefix))}catch(d){if("AbortError"===(null==d?void 0:d.name))return}if(Ie.value!==o)return;if($e.value)return;const c=Ce.value[a];c&&V.value&&I(V.value,c)})}function Mn(){De&&(De=!1,Ve=800,We=!1,Re&&(Re.abort(),Re=null),Ne&&(globalThis.clearTimeout(Ne),Ne=null),ze&&(Ee(ze),ze=null),Fe=Date.now())}function _n(){if(Mn(),je){try{je.abort()}catch(e){}je=null}if(Re){try{Re.abort()}catch(e){}Re=null}no(),ye(),ge=0}function Cn(e=800){De&&(Ne&&globalThis.clearTimeout(Ne),Ne=globalThis.setTimeout(()=>{ze=fe(()=>u(null,null,function*(){if(!De)return;if(se.value||Me.value)return void Mn();const e=l.isDark?"dark":"light",n=te.value;if(n.trim()){Re&&Re.abort(),Re=new AbortController;try{if((yield nn(n,e,{signal:Re.signal,timeoutMs:He.value.worker}))&&(yield xn(),Me.value))return void Mn()}catch(t){}Ve=Math.min(Math.floor(1.5*Ve),4e3),Cn(Ve)}else Cn(Ve)}),{timeout:500})},e))}function Bn(){De||se.value||Me.value||(De=!0,Fe=0,We=!0,Cn(500))}C(rn,e=>{ln.value&&F.value&&(F.value.style.transform=e.transform)},{immediate:!0}),C(()=>te.value,()=>{Me.value=!1,Ce.value={},we(),!se.value&&c.value&&Bn(),function(){if(!se.value)return;if(!c.value)return;const e=te.value.length;e!==ve.value&&(me.value=!0,ve.value=e,he&&clearTimeout(he),he=setTimeout(()=>{me.value&&se.value&&te.value.trim()&&(me.value=!1,kn("preview"))},500))}()}),C(()=>l.isDark,()=>u(null,null,function*(){if(!Me.value)return;if($e.value)return;const e=l.isDark?"dark":"light",n=Ce.value[e];if(n)return void(V.value&&I(V.value,n));const t={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value},o=1!==oe.value||0!==le.value||0!==re.value;_e.value=!0,o&&(oe.value=1,le.value=0,re.value=0,yield q()),yield xn(),o&&(yield q(),oe.value=t.zoom,le.value=t.translateX,re.value=t.translateY,xe.value=t.containerHeight,Se.value=t)})),C(()=>se.value,e=>u(null,null,function*(){if(e)Mn(),Me.value&&(Se.value={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value});else{if($e.value)return;const e=l.isDark?"dark":"light";if(Me.value&&Ce.value[e])return yield q(),V.value&&I(V.value,Ce.value[e]),oe.value=Se.value.zoom,le.value=Se.value.translateX,re.value=Se.value.translateY,void(xe.value=Se.value.containerHeight);if(yield q(),!c.value)return;yield bn(),Bn()}})),C(()=>l.loading,(e,n)=>u(null,null,function*(){if(!0===n&&!1===e){const e=te.value.trim();if(!e)return _n();const n=l.isDark?"dark":"light",o=e.replace(/\s+/g,"");if(Me.value&&o===Te.value)return yield q(),V.value&&!V.value.querySelector("svg")&&Ce.value[n]&&I(V.value,Ce.value[n]),void _n();try{yield nn(e,n,{timeoutMs:He.value.worker}),yield xn(),Te.value=o,$e.value=!1,_n()}catch(t){_n(),Ze(t)}}})),C(P,e=>{be&&be.disconnect(),!e||Me.value||_e.value||(be=new ResizeObserver(e=>{e&&e.length>0&&!Me.value&&!_e.value&&Lt(()=>{on(e[0].contentRect.width)})}),be.observe(e))},{immediate:!0}),_(()=>u(null,null,function*(){yield q(),ue.value||(se.value=!c.value),Z.value&&(we(),ve.value=te.value.length)})),C(()=>c.value,e=>{ue.value||(se.value=!e)}),C(()=>Z.value,e=>{e&&(Me.value||(we(),ve.value=te.value.length),l.loading||Me.value||we())},{immediate:!1}),G(()=>{he&&clearTimeout(he),be&&be.disconnect(),je&&(je.abort(),je=null),no(),Mn(),ye()}),C(()=>A.value,e=>u(null,null,function*(){e?(Mn(),je&&je.abort()):Me.value||(yield q(),we(),se.value||Bn())}),{immediate:!1});const Tn=L(()=>l.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(e,n)=>(p(),h("div",{class:T(["my-4 rounded-lg border overflow-hidden shadow-sm",[l.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":l.loading}]])},[l.showHeader?(p(),h("div",{key:0,class:T(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",l.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[e.$slots["header-left"]?(p(),h("div",to,[D(e.$slots,"header-left",{},void 0,!0)])):(p(),h("div",oo,[y("img",{src:w("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,lo),y("span",{class:T(["text-sm font-medium font-mono truncate",l.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),e.$slots["header-center"]?(p(),h("div",ro,[D(e.$slots,"header-center",{},void 0,!0)])):l.showModeToggle&&c.value?(p(),h("div",{key:3,class:T(["flex items-center space-x-1 rounded-md p-0.5",l.isDark?"bg-gray-700":"bg-gray-100"])},[y("button",{class:T(["px-2.5 py-1 text-xs rounded transition-colors",[se.value?l.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":l.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:n[0]||(n[0]=()=>yn("preview")),onMouseenter:n[1]||(n[1]=e=>Ye(e,w(j)("common.preview")||"Preview")),onFocus:n[2]||(n[2]=e=>Ye(e,w(j)("common.preview")||"Preview")),onMouseleave:Ue,onBlur:Ue},[y("div",ao,[n[21]||(n[21]=y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),y("circle",{cx:"12",cy:"12",r:"3"})])],-1)),y("span",null,b(w(j)("common.preview")||"Preview"),1)])],34),y("button",{class:T(["px-2.5 py-1 text-xs rounded transition-colors",[se.value?l.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":l.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:n[3]||(n[3]=()=>yn("source")),onMouseenter:n[4]||(n[4]=e=>Ye(e,w(j)("common.source")||"Source")),onFocus:n[5]||(n[5]=e=>Ye(e,w(j)("common.source")||"Source")),onMouseleave:Ue,onBlur:Ue},[y("div",io,[n[22]||(n[22]=y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),y("span",null,b(w(j)("common.source")||"Source"),1)])],34)],2)):H("",!0),e.$slots["header-right"]?(p(),h("div",so,[D(e.$slots,"header-right",{},void 0,!0)])):(p(),h("div",uo,[l.showCollapseButton?(p(),h("button",{key:0,class:T(Tn.value),"aria-pressed":A.value,onClick:n[6]||(n[6]=e=>A.value=!A.value),onMouseenter:n[7]||(n[7]=e=>Ye(e,A.value?w(j)("common.expand")||"Expand":w(j)("common.collapse")||"Collapse")),onFocus:n[8]||(n[8]=e=>Ye(e,A.value?w(j)("common.expand")||"Expand":w(j)("common.collapse")||"Collapse")),onMouseleave:Ue,onBlur:Ue},[(p(),h("svg",{style:z({rotate:A.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...n[23]||(n[23]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,co)):H("",!0),l.showCopyButton?(p(),h("button",{key:1,class:T(Tn.value),onClick:gn,onMouseenter:n[9]||(n[9]=e=>Ge(e)),onFocus:n[10]||(n[10]=e=>Ge(e)),onMouseleave:Ue,onBlur:Ue},[S.value?(p(),h("svg",mo,[...n[25]||(n[25]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(p(),h("svg",vo,[...n[24]||(n[24]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):H("",!0),l.showExportButton&&c.value?(p(),h("button",{key:2,class:T(`${Tn.value} ${tn.value?"opacity-50 cursor-not-allowed":""}`),disabled:tn.value,onClick:fn,onMouseenter:n[11]||(n[11]=e=>Ye(e,w(j)("common.export")||"Export")),onFocus:n[12]||(n[12]=e=>Ye(e,w(j)("common.export")||"Export")),onMouseleave:Ue,onBlur:Ue},[...n[26]||(n[26]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),y("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,ho)):H("",!0),l.showFullscreenButton&&c.value?(p(),h("button",{key:3,class:T(`${Tn.value} ${tn.value?"opacity-50 cursor-not-allowed":""}`),disabled:tn.value,onClick:wn,onMouseenter:n[13]||(n[13]=e=>Ye(e,ln.value?w(j)("common.minimize")||"Minimize":w(j)("common.open")||"Open")),onFocus:n[14]||(n[14]=e=>Ye(e,ln.value?w(j)("common.minimize")||"Minimize":w(j)("common.open")||"Open")),onMouseleave:Ue,onBlur:Ue},[ln.value?(p(),h("svg",fo,[...n[28]||(n[28]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(p(),h("svg",go,[...n[27]||(n[27]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,po)):H("",!0)]))],2)):H("",!0),Y(y("div",{ref_key:"modeContainerRef",ref:ne},[se.value?(p(),h("div",{key:0,class:T(["p-4",l.isDark?"bg-gray-900":"bg-gray-50"])},[y("pre",{class:T(["text-sm font-mono whitespace-pre-wrap",l.isDark?"text-gray-300":"text-gray-700"])},b(te.value),3)],2)):(p(),h("div",wo,[l.showZoomControls?(p(),h("div",yo,[y("div",ko,[y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:un,onMouseenter:n[15]||(n[15]=e=>Ye(e,w(j)("common.zoomIn")||"Zoom in")),onFocus:n[16]||(n[16]=e=>Ye(e,w(j)("common.zoomIn")||"Zoom in")),onMouseleave:Ue,onBlur:Ue},[...n[29]||(n[29]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:cn,onMouseenter:n[17]||(n[17]=e=>Ye(e,w(j)("common.zoomOut")||"Zoom out")),onFocus:n[18]||(n[18]=e=>Ye(e,w(j)("common.zoomOut")||"Zoom out")),onMouseleave:Ue,onBlur:Ue},[...n[30]||(n[30]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:dn,onMouseenter:n[19]||(n[19]=e=>Ye(e,w(j)("common.resetZoom")||"Reset zoom")),onFocus:n[20]||(n[20]=e=>Ye(e,w(j)("common.resetZoom")||"Reset zoom")),onMouseleave:Ue,onBlur:Ue},b(Math.round(100*oe.value))+"% ",35)])])):H("",!0),y("div",K({ref_key:"mermaidContainer",ref:P,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",l.isDark?"bg-gray-900":"bg-gray-50"],style:{height:xe.value}},J(Le.value,!0),{onMousedown:vn,onMousemove:mn,onMouseup:hn,onMouseleave:hn,onTouchstartPassive:vn,onTouchmovePassive:mn,onTouchendPassive:hn}),[y("div",{"data-mermaid-wrapper":"",class:T(["absolute inset-0 cursor-grab",{"cursor-grabbing":ae.value}]),style:z(rn.value)},[y("div",{ref_key:"mermaidContent",ref:V,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(p(),R(Q,{to:"body"},[f(E,{name:"mermaid-dialog",appear:""},{default:N(()=>[ln.value?(p(),h("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:ee(sn,["self"])},[y("div",{class:T(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",l.isDark?"bg-gray-900":"bg-white"])},[y("div",xo,[y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:un},[...n[31]||(n[31]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:cn},[...n[32]||(n[32]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:dn},b(Math.round(100*oe.value))+"% ",3),y("button",{class:T(["inline-flex items-center justify-center p-2 rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:sn},[...n[33]||(n[33]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),y("div",K({ref_key:"modalContent",ref:O,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},J(Le.value,!0),{onMousedown:vn,onMousemove:mn,onMouseup:hn,onMouseleave:hn,onTouchstartPassive:vn,onTouchmovePassive:mn,onTouchendPassive:hn}),null,16)],2)])):H("",!0)]),_:1})]))]))],512),[[U,!A.value]])],2))}}),[["__scopeId","data-v-3636e700"]]);bo.install=e=>{e.component(bo.__name,bo)};const Mo=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:bo},Symbol.toStringTag,{value:"Module"})),_o={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},Co={class:"flex items-center space-x-2"},Bo=["innerHTML"],To={class:"text-sm font-medium font-mono"},Io={class:"flex items-center space-x-2"},jo=["aria-pressed"],$o=["disabled"],So=["disabled"],Lo=["disabled"],Ho=["aria-label"],Eo={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},No={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},zo=["aria-pressed"],Do={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Ao={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Po=["aria-label"],Vo=["innerHTML"],Ro={class:"code-loading-placeholder"},Oo=/* @__PURE__ */te(/* @__PURE__ */m({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:n}){var t;const o=e,l=n,{t:r}=Oe(),a=M(String(null!=(t=o.node.language)?t:"")),i=M(!1),s=M(!1),c=M(!1),d=M(null),v=M(null),m=M(""),g=M(!1);let f;const x=M(!0),B=M(0),I=M(14),j=M(I.value),$=L(()=>{const e=I.value,n=j.value;return"number"==typeof e&&Number.isFinite(e)&&e>0&&"number"==typeof n&&Number.isFinite(n)&&n>0}),S=L(()=>{const e=a.value.trim().toLowerCase();return St[e]||e.charAt(0).toUpperCase()+e.slice(1)}),E=L(()=>"mermaid"===a.value.trim().toLowerCase()),N=L(()=>$t(a.value.trim().toLowerCase().split(":")[0])),A=L(()=>{const e=a.value.trim().toLowerCase();return o.isShowPreview&&("html"===e||"svg"===e)}),P=L(()=>{const e={},n=e=>{if(null!=e)return"number"==typeof e?`${e}px`:String(e)},t=n(o.minWidth),l=n(o.maxWidth);return t&&(e.minWidth=t),l&&(e.maxWidth=l),e}),V=L(()=>({fontSize:`${j.value}px`}));function O(){return o.isDark?o.darkTheme:o.lightTheme}function F(e){if(null==f||f.disconnect(),f=void 0,!e)return m.value="",void(g.value=!1);var n;m.value=`<pre class="shiki shiki-fallback"><code>${n=e,n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code></pre>`,g.value=!1}function K(){m.value="",g.value=!0}function W(){var e;const n=v.value;return!!n&&(n.childNodes.length>0||Boolean(null==(e=n.textContent)?void 0:e.trim().length))}function X(){return u(this,null,function*(){if(yield q(),W())return void K();const e=v.value;e&&(null==f||f.disconnect(),f=new MutationObserver(()=>{W()&&(K(),null==f||f.disconnect(),f=void 0)}),f.observe(e,{childList:!0,subtree:!0}))})}let Z,G,J,Q,ee=()=>{};const ne=/* @__PURE__ */new Set,te=/* @__PURE__ */new Set,oe=void 0!==import.meta&&Boolean(!1);function le(e,n){return u(this,null,function*(){if(!Z)return;const t=function(e,n=!1){var t;const[o]=String(null!=e?e:"").split(":"),l=null!=(t=null==o?void 0:o.trim().toLowerCase())?t:"";return l?!Q||Q.has(l)?l:(n&&oe&&!ne.has(l)&&(ne.add(l),console.warn(`[MarkdownCodeBlockNode] Language "${l}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"}(n,Boolean(e&&e.length));try{yield Z.updateCode(e,t)}catch(o){"plaintext"!==t?(oe&&!te.has(t)&&(te.add(t),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${t}", retrying as plaintext.`,o)),yield Z.updateCode(e,"plaintext")):oe&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",o)}})}function re(){return u(this,null,function*(){if(E.value)return ee(),null==Z||Z.dispose(),Z=void 0,void(g.value=!1);yield function(){return u(this,null,function*(){if(!G)try{const e=yield import("stream-markdown");G=e.createShikiStreamRenderer,J=e.registerHighlight,ee=e.disposeHighlighter;const n=Array.isArray(e.defaultLanguages)?e.defaultLanguages:void 0;Q=n?new Set(n.map(e=>e.toLowerCase())):void 0,null==J||J({themes:o.themes})}catch(e){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",e)}})}(),d.value&&v.value?(null==J||J({themes:o.themes}),!Z&&G&&(Z=G(v.value,{theme:O()}),g.value=!0),Z?!1===o.stream&&o.loading?F(o.node.code):(F(o.node.code),yield le(o.node.code,a.value),yield X()):F(o.node.code)):F(o.node.code)})}re(),_(()=>{re()}),C(()=>o.themes,()=>u(null,null,function*(){J&&J({themes:o.themes})})),C(()=>o.loading,e=>{e||re()}),C(()=>[o.node.code,o.node.language],e=>u(null,[e],function*([e,n]){if(n!==a.value&&(a.value=n.trim()),d.value&&v.value){if(E.value)return ee(),void(null==Z||Z.dispose());Z||(F(e),yield re()),Z&&e&&(!1===o.stream&&o.loading||(F(e),yield le(e,n),yield X()))}else F(e)}));const ae=C(()=>[o.darkTheme,o.lightTheme],()=>u(null,null,function*(){if(d.value&&v.value){if(E.value)return ee(),null==Z||Z.dispose(),ae();Z||(yield re()),null==Z||Z.setTheme(O())}}));function ie(){const e=d.value;if(!e||s.value)return;const n=e.scrollTop;n<B.value?x.value=!1:function(e,n=50){return e.scrollHeight-e.scrollTop-e.clientHeight<=n}(e)&&(x.value=!0),B.value=n}function se(){return u(this,null,function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(o.node.code)),i.value=!0,l("copy",o.node.code),setTimeout(()=>{i.value=!1},1e3)}catch(e){console.error("Copy failed:",e)}})}function ue(e){return!e||e.disabled}function ce(e,n,t="top"){if(ue(e.currentTarget))return;const l=e,r=null!=(null==l?void 0:l.clientX)&&null!=(null==l?void 0:l.clientY)?{x:l.clientX,y:l.clientY}:void 0;Ae(e.currentTarget,n,t,!1,r,o.isDark)}function de(){Pe()}function ve(e){if(ue(e.currentTarget))return;const n=i.value?r("common.copied")||"Copied":r("common.copy")||"Copy",t=e,l=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;Ae(e.currentTarget,n,"top",!1,l,o.isDark)}function me(){s.value=!s.value;const e=d.value;e&&(s.value?(e.style.maxHeight="none",e.style.overflow="visible"):(e.style.maxHeight="500px",e.style.overflow="auto",x.value=!0,q(()=>{e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)})))}function he(){c.value=!c.value}function pe(){if(!A.value)return;const e=(a.value||o.node.language).toLowerCase(),n="html"===e?"HTML Preview":"SVG Preview";l("previewCode",{type:"html"===e?"text/html":"image/svg+xml",content:o.node.code,title:n})}return C(()=>o.node.code,()=>u(null,null,function*(){if(s.value||!x.value)return;yield q();const e=d.value;e&&e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)})),(n,t)=>E.value?(p(),R(w(bo),{key:0,node:e.node,"is-dark":o.isDark,loading:o.loading},null,8,["node","is-dark","loading"])):(p(),h("div",{key:1,style:z(P.value),class:T(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[o.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",o.isDark?"is-dark":""]])},[o.showHeader?(p(),h("div",_o,[D(n.$slots,"header-left",{},()=>[y("div",Co,[y("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:N.value},null,8,Bo),y("span",To,b(S.value),1)])],!0),D(n.$slots,"header-right",{},()=>[y("div",Io,[y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:he,onMouseenter:t[0]||(t[0]=e=>ce(e,c.value?w(r)("common.expand")||"Expand":w(r)("common.collapse")||"Collapse")),onFocus:t[1]||(t[1]=e=>ce(e,c.value?w(r)("common.expand")||"Expand":w(r)("common.collapse")||"Collapse")),onMouseleave:de,onBlur:de},[(p(),h("svg",{style:z({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...t[17]||(t[17]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,jo),o.showFontSizeButtons&&o.enableFontSizeControl?(p(),h(k,{key:0},[y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(j.value)&&j.value<=10,onClick:t[2]||(t[2]=e=>function(){const e=Math.max(10,j.value-1);j.value=e}()),onMouseenter:t[3]||(t[3]=e=>ce(e,w(r)("common.decrease")||"Decrease")),onFocus:t[4]||(t[4]=e=>ce(e,w(r)("common.decrease")||"Decrease")),onMouseleave:de,onBlur:de},[...t[18]||(t[18]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,$o),y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!$.value||j.value===I.value,onClick:t[5]||(t[5]=e=>{j.value=I.value}),onMouseenter:t[6]||(t[6]=e=>ce(e,w(r)("common.reset")||"Reset")),onFocus:t[7]||(t[7]=e=>ce(e,w(r)("common.reset")||"Reset")),onMouseleave:de,onBlur:de},[...t[19]||(t[19]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),y("path",{d:"M3 3v5h5"})])],-1)])],40,So),y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(j.value)&&j.value>=36,onClick:t[8]||(t[8]=e=>function(){const e=Math.min(36,j.value+1);j.value=e}()),onMouseenter:t[9]||(t[9]=e=>ce(e,w(r)("common.increase")||"Increase")),onFocus:t[10]||(t[10]=e=>ce(e,w(r)("common.increase")||"Increase")),onMouseleave:de,onBlur:de},[...t[20]||(t[20]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Lo)],64)):H("",!0),o.showCopyButton?(p(),h("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":i.value?w(r)("common.copied")||"Copied":w(r)("common.copy")||"Copy",onClick:se,onMouseenter:t[11]||(t[11]=e=>ve(e)),onFocus:t[12]||(t[12]=e=>ve(e)),onMouseleave:de,onBlur:de},[i.value?(p(),h("svg",No,[...t[22]||(t[22]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(p(),h("svg",Eo,[...t[21]||(t[21]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Ho)):H("",!0),o.showExpandButton?(p(),h("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":s.value,onClick:me,onMouseenter:t[13]||(t[13]=e=>ce(e,s.value?w(r)("common.collapse")||"Collapse":w(r)("common.expand")||"Expand")),onFocus:t[14]||(t[14]=e=>ce(e,s.value?w(r)("common.collapse")||"Collapse":w(r)("common.expand")||"Expand")),onMouseleave:de,onBlur:de},[s.value?(p(),h("svg",Do,[...t[23]||(t[23]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(p(),h("svg",Ao,[...t[24]||(t[24]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,zo)):H("",!0),A.value&&o.showPreviewButton?(p(),h("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":w(r)("common.preview")||"Preview",onClick:pe,onMouseenter:t[15]||(t[15]=e=>ce(e,w(r)("common.preview")||"Preview")),onFocus:t[16]||(t[16]=e=>ce(e,w(r)("common.preview")||"Preview")),onMouseleave:de,onBlur:de},[...t[25]||(t[25]=[y("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),y("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Po)):H("",!0)])],!0)])):H("",!0),Y(y("div",{ref_key:"codeBlockContent",ref:d,class:"code-block-content",style:z(V.value),onScroll:ie},[y("div",{ref_key:"rendererTarget",ref:v,class:"code-block-render"},null,512),g.value?H("",!0):(p(),h("div",{key:0,class:"code-fallback-plain",innerHTML:m.value},null,8,Vo))],36),[[U,!(c.value||!e.stream&&e.loading)]]),Y(y("div",Ro,[D(n.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[t[26]||(t[26]=y("div",{class:"loading-skeleton"},[y("div",{class:"skeleton-line"}),y("div",{class:"skeleton-line"}),y("div",{class:"skeleton-line short"})],-1))],!0)],512),[[U,!e.stream&&e.loading]])],6))}}),[["__scopeId","data-v-34bf55f7"]]);Oo.install=e=>{e.component(Oo.__name,Oo)};let Fo=null,Ko=null,Wo=!1;const Xo=/* @__PURE__ */new Map,Zo=/* @__PURE__ */new Map;let qo=5;const Yo=/* @__PURE__ */new Set;function Uo(){if(Xo.size<qo&&Yo.size){const n=Array.from(Yo);Yo.clear();for(const t of n)try{t()}catch(e){}}}function Go(e){Fo=e,Ko=null,Fo.onmessage=e=>{const{id:n,html:t,error:o}=e.data,l=Xo.get(n);if(l)if(Xo.delete(n),clearTimeout(l.timeoutId),Uo(),o)l.reject(new Error(o));else{const{content:n,displayMode:o}=e.data;if(n){const e=`${o?"d":"i"}:${n}`;if(Zo.set(e,t),Zo.size>200){const e=Zo.keys().next().value;Zo.delete(e)}}l.resolve(t)}},Fo.onerror=e=>{console.error("[katexWorkerClient] Worker error:",e);for(const[n,t]of Xo.entries())clearTimeout(t.timeoutId),t.reject(new Error(`Worker error: ${e.message}`));Xo.clear(),Uo()}}function Jo(){var e;Fo&&(null==(e=Fo.terminate)||e.call(Fo)),Fo=null,Ko=null}function Qo(e){Wo=!!e,Fo&&Fo.postMessage({type:"init",debug:Wo})}function el(e,n=!0,t=2e3,o){return u(this,null,function*(){if(performance.now(),!an()){const e=new Error("KaTeX rendering disabled");return e.name="KaTeXDisabled",e.code="KATEX_DISABLED",Promise.reject(e)}if(Ko)return Promise.reject(Ko);const l=`${n?"d":"i"}:${e}`,r=Zo.get(l);if(r)return Promise.resolve(r);const a=Fo||(Ko=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Ko.name="WorkerInitError",Ko.code="WORKER_INIT_ERROR",null);if(!a)return Promise.reject(Ko);if(Xo.size>=qo){const e=new Error("Worker busy");return e.name="WorkerBusy",e.code="WORKER_BUSY",e.busy=!0,e.inFlight=Xo.size,e.max=qo,Promise.reject(e)}return new Promise((l,r)=>{if(null==o?void 0:o.aborted){const e=new Error("Aborted");return e.name="AbortError",void r(e)}const i=Math.random().toString(36).slice(2),s=globalThis.setTimeout(()=>{Xo.delete(i);const e=new Error("Worker render timed out");e.name="WorkerTimeout",e.code="WORKER_TIMEOUT",r(e),Uo()},t);o&&o.addEventListener("abort",()=>{globalThis.clearTimeout(s),Xo.has(i)&&Xo.delete(i);const e=new Error("Aborted");e.name="AbortError",r(e),Uo()},{once:!0});const u=l,c=r;Xo.set(i,{resolve:e=>{u(e)},reject:e=>{c(e)},timeoutId:s}),a.postMessage({id:i,content:e,displayMode:n})})})}function nl(e,n=!0,t){const o=`${n?"d":"i"}:${e}`;if(Zo.set(o,t),Zo.size>200){const e=Zo.keys().next().value;Zo.delete(e)}}function tl(){return{inFlight:Xo.size,max:qo}}function ol(e){Number.isFinite(e)&&e>0&&(qo=Math.floor(e))}const ll="WORKER_BUSY";function rl(){return Xo.size>=qo}function al(e=2e3,n){return Xo.size<qo?Promise.resolve():new Promise((t,o)=>{let l,r=!1;const a=()=>{r||(r=!0,l&&globalThis.clearTimeout(l),Yo.delete(a),t())};if(Yo.add(a),l=globalThis.setTimeout(()=>{if(r)return;r=!0,Yo.delete(a);const e=new Error("Wait for worker slot timed out");e.name="WorkerBusyTimeout",e.code="WORKER_BUSY_TIMEOUT",o(e)},e),queueMicrotask(()=>Uo()),n){const e=()=>{if(r)return;r=!0,l&&globalThis.clearTimeout(l),Yo.delete(a);const e=new Error("Aborted");e.name="AbortError",o(e)};n.aborted?e():n.addEventListener("abort",e,{once:!0})}})}const il={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function sl(e){null!=e.timeout&&(il.timeout=Math.max(0,Math.floor(e.timeout))),null!=e.waitTimeout&&(il.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),null!=e.backoffMs&&(il.backoffMs=Math.max(0,Math.floor(e.backoffMs))),null!=e.maxRetries&&(il.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function ul(){return i({},il)}function cl(e){return u(this,arguments,function*(e,n=!0,t={}){var o,l,r,a;if(!an()){const e=new Error("KaTeX rendering disabled");throw e.name="KaTeXDisabled",e.code="KATEX_DISABLED",e}const i=null!=(o=t.timeout)?o:il.timeout,s=null!=(l=t.waitTimeout)?l:il.waitTimeout,u=null!=(r=t.backoffMs)?r:il.backoffMs,c=null!=(a=t.maxRetries)?a:il.maxRetries,d=t.signal;let v=0;for(;;){if(null==d?void 0:d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}try{return yield el(e,n,i,d)}catch(m){if((null==m?void 0:m.code)!==ll||v>=c)throw m;if(v++,yield al(s,d).catch(()=>{}),null==d?void 0:d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}u>0&&(yield new Promise(e=>globalThis.setTimeout(e,u*v)))}}})}const dl=V(()=>import("./index4.js")),vl=V(()=>import("./index3.js")),ml=V(()=>import("./index2.js")),hl=V(()=>Promise.resolve().then(()=>Mo)),pl={AdmonitionNode:kt,BlockquoteNode:oe,CheckboxNode:ae,CodeBlockNode:dl,DefinitionListNode:ce,EmojiNode:ve,FootnoteNode:On,FootnoteReferenceNode:xe,FootnoteAnchorNode:Pn,HardBreakNode:Kn,HeadingNode:Xn,HtmlInlineNode:be,HighlightNode:Nn,ImageNode:Je,InlineCodeNode:_e,PreCodeNode:Qn,InsertNode:Hn,LinkNode:Sn,ListItemNode:Zn,ListNode:qn,MathBlockNode:vl,MathInlineNode:ml,MermaidBlockNode:hl,ParagraphNode:Un,StrikethroughNode:Cn,StrongNode:Mn,SubscriptNode:xn,SuperscriptNode:wn,TableNode:rt,TextNode:vn,ThematicBreakNode:it,ReferenceNode:pn,MarkdownCodeBlockNode:Oo},gl={install(e,n){Object.entries(pl).forEach(([n,t])=>{e.component(n,t)}),(null==n?void 0:n.getLanguageIcon)&&Bt(n.getLanguageIcon),(null==n?void 0:n.mathOptions)&&v(n.mathOptions)}};export{on as $,kt as A,oe as B,ae as C,ce as D,ve as E,Pn as F,_e as G,Kn as H,Je as I,Hn as J,an as K,Pt as L,Sn as M,Zn as N,qn as O,Oo as P,mt as Q,vl as R,ml as S,hl as T,Un as U,pn as V,ll as W,fe as X,pe as Y,Re as Z,te as _,Ke as a,zt as a0,Cn as a1,Mn as a2,xn as a3,wn as a4,rt as a5,vn as a6,it as a7,gl as a8,Bt as a9,Go as aa,Jo as ab,Qo as ac,el as ad,tl as ae,ol as af,rl as ag,al as ah,sl as ai,ul as aj,Wt as ak,Xt as al,Zt as am,qt as an,Yt as ao,Ut as ap,Gt as aq,Qt as ar,eo as as,no as at,$t as b,Qn as c,Ae as d,cl as e,sn as f,_t as g,Pe as h,nl as i,we as j,dl as k,St as l,rn as m,It as n,At as o,ln as p,Dt as q,jt as r,Lt as s,On as t,Oe as u,xe as v,ge as w,Xn as x,Nn as y,be as z};
|
|
1
|
+
var e=Object.defineProperty,n=Object.defineProperties,t=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertySymbols,l=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable,a=(n,t,o)=>t in n?e(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,i=(e,n)=>{for(var t in n||(n={}))l.call(n,t)&&a(e,t,n[t]);if(o)for(var t of o(n))r.call(n,t)&&a(e,t,n[t]);return e},s=(e,o)=>n(e,t(o)),u=(e,n,t)=>new Promise((o,l)=>{var r=e=>{try{i(t.next(e))}catch(n){l(n)}},a=e=>{try{i(t.throw(e))}catch(n){l(n)}},i=e=>e.done?o(e.value):Promise.resolve(e.value).then(r,a);i((t=t.apply(e,n)).next())});import{getMarkdown as c,parseMarkdownToStructure as d,setDefaultMathOptions as v}from"stream-markdown-parser";import{defineComponent as m,createElementBlock as h,openBlock as p,withMemo as g,createVNode as f,unref as w,createElementVNode as y,Fragment as k,renderList as x,toDisplayString as b,ref as M,onMounted as _,watch as C,onBeforeUnmount as B,normalizeClass as T,createApp as I,h as j,inject as $,provide as S,computed as L,createCommentVNode as H,Transition as E,withCtx as N,normalizeStyle as D,renderSlot as z,shallowRef as A,readonly as P,defineAsyncComponent as V,createBlock as R,resolveDynamicComponent as O,useAttrs as K,mergeProps as F,isMemoSame as W,markRaw as X,reactive as Z,nextTick as q,withDirectives as Y,vShow as U,onUnmounted as G,toHandlers as J,Teleport as Q,withModifiers as ee}from"vue";const ne=["cite"],te=(e,n)=>{const t=e.__vccOpts||e;for(const[o,l]of n)t[o]=l;return t},oe=/* @__PURE__ */te(/* @__PURE__ */m({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(t,o)=>(p(),h("blockquote",{class:"blockquote",dir:"auto",cite:e.node.cite},[g([n.node.children],()=>f(w(ht),{"index-key":`blockquote-${n.indexKey}`,nodes:n.node.children||[],"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[0]||(o[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)],8,ne))}}),[["__scopeId","data-v-eeadc8a3"]]);oe.install=e=>{e.component(oe.__name,oe)};const le={class:"checkbox-node"},re=["checked"],ae=/* @__PURE__ */te(/* @__PURE__ */m({__name:"CheckboxNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("span",le,[y("input",{type:"checkbox",checked:e.node.checked,disabled:"",class:"checkbox-input"},null,8,re)]))}),[["__scopeId","data-v-8dc6c46f"]]);ae.install=e=>{e.component(ae.__name,ae)};const ie={class:"definition-list"},se={class:"definition-term"},ue={class:"definition-desc"},ce=/* @__PURE__ */te(/* @__PURE__ */m({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(e,t)=>(p(),h("dl",ie,[(p(!0),h(k,null,x(n.node.items,(o,l)=>(p(),h(k,{key:l},[y("dt",se,[f(w(ht),{"index-key":`definition-term-${n.indexKey}-${l}`,nodes:o.term,"custom-id":n.customId,typewriter:n.typewriter,onCopy:t[0]||(t[0]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"])]),y("dd",ue,[f(w(ht),{"index-key":`definition-desc-${n.indexKey}-${l}`,nodes:o.definition,"custom-id":n.customId,typewriter:n.typewriter,onCopy:t[1]||(t[1]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),[["__scopeId","data-v-f88691d6"]]);ce.install=e=>{e.component(ce.__name,ce)};const de={class:"emoji-node"},ve=/* @__PURE__ */te(/* @__PURE__ */m({__name:"EmojiNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("span",de,b(e.node.name),1))}),[["__scopeId","data-v-de55dc97"]]);ve.install=e=>{e.component(ve.__name,ve)};const me="__global__",he={};function pe(e,n){"string"==typeof e?he[e]=n||{}:he[me]=e||{}}function ge(e){return e?he[e]||he[me]||{}:he[me]||{}}function fe(e){if(e===me)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete he[e]}function we(){delete he[me]}const ye=["id"],ke=["title"],xe=/* @__PURE__ */te(/* @__PURE__ */m({__name:"FootnoteReferenceNode",props:{node:{}},setup(e){const n=`#footnote-${e.node.id}`;function t(){if("undefined"==typeof document)return;const e=document.querySelector(n);e?e.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(o,l)=>(p(),h("sup",{id:`fnref-${e.node.id}`,class:"footnote-reference",onClick:t},[y("span",{href:n,title:`查看脚注 ${e.node.id}`,class:"footnote-link cursor-pointer"},"["+b(e.node.id)+"]",9,ke)],8,ye))}}),[["__scopeId","data-v-01af0fee"]]);xe.install=e=>{e.component(xe.__name,xe)};const be=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HtmlInlineNode",props:{node:{}},setup(e){const n=e,t=M(null),o="undefined"!=typeof window;function l(){if(!o||!t.value)return;const e=t.value;e.innerHTML="";const l=document.createElement("template");l.innerHTML=n.node.content,e.appendChild(l.content.cloneNode(!0))}function r(){if(!t.value)return;const e=t.value;e.innerHTML="",e.textContent=n.node.content}return _(()=>{n.node.loading&&!n.node.autoClosed?r():l()}),C(()=>[n.node.content,n.node.loading,n.node.autoClosed],()=>{n.node.loading&&!n.node.autoClosed?r():l()}),B(()=>{t.value&&(t.value.innerHTML="")}),(e,o)=>(p(),h("span",{ref_key:"containerRef",ref:t,class:T(["html-inline-node",{"html-inline-node--loading":n.node.loading}])},null,2))}}),[["__scopeId","data-v-e632756e"]]);be.install=e=>{e.component(be.__name,be)};const Me={class:"inline text-[85%] px-1 py-0.5 rounded font-mono bg-secondary whitespace-normal break-words max-w-full before:content-[''] after:content-['']"},_e=/* @__PURE__ */m({__name:"InlineCodeNode",props:{node:{}},setup:e=>(n,t)=>(p(),h("code",Me,b(e.node.code),1))});_e.install=e=>{e.component(_e.__name,_e)};const Ce=M(!1),Be=M(""),Te=M("top"),Ie=M(null),je=M(null),$e=M(null),Se=M(null),Le=M(null);let He=null,Ee=null;function Ne(){He&&(clearTimeout(He),He=null),Ee&&(clearTimeout(Ee),Ee=null)}let De=!1,ze=null;function Ae(e,n,t="top",o=!1,l,r){if(!e)return;De||"undefined"!=typeof document&&(ze||(ze=import("./Tooltip.js").then(({default:e})=>{De=!0;const n=document.createElement("div");n.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(n),I({setup:()=>()=>{var n;return j(e,{visible:Ce.value,"anchor-el":Ie.value,content:Be.value,placement:Te.value,id:je.value,originX:$e.value,originY:Se.value,isDark:null!=(n=Le.value)?n:void 0})}}).mount(n)}).catch(e=>{ze=null,De=!1,console.warn("[markstream-vue] Failed to load Tooltip component. Tooltips will be disabled.",e)}))),Ne();const a=()=>{var o,a;je.value=`tooltip-${Date.now()}-${Math.floor(1e3*Math.random())}`,Ie.value=e,Be.value=n,Te.value=t,$e.value=null!=(o=null==l?void 0:l.x)?o:null,Se.value=null!=(a=null==l?void 0:l.y)?a:null,Le.value="boolean"==typeof r?r:null,Ce.value=!0;try{e.setAttribute("aria-describedby",je.value)}catch(i){}};o?a():He=setTimeout(a,80)}function Pe(e=!1){Ne();const n=()=>{if(Ie.value&&je.value)try{Ie.value.removeAttribute("aria-describedby")}catch(e){}Ce.value=!1,Ie.value=null,je.value=null,$e.value=null,Se.value=null};e?n():Ee=setTimeout(n,120)}const Ve={"common.copy":"Copy","common.copySuccess":"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.zoomIn":"Zoom in","common.zoomOut":"Zoom out","common.resetZoom":"Reset zoom","image.loadError":"Image failed to load","image.loading":"Loading image..."};function Re(e){Object.assign(Ve,e)}function Oe(){try{const n=globalThis.$vueI18nUse||null;if(n&&"function"==typeof n)try{const e=n();if(e&&"function"==typeof e.t)return{t:e.t.bind(e)}}catch(e){}}catch(e){}return u(null,null,function*(){try{const n=yield import("vue-i18n"),t=n.useI18n||n.default&&n.default.useI18n;if(t&&"function"==typeof t)try{const n=t();if(n&&"function"==typeof n.t)try{globalThis.$vueI18nUse=()=>n}catch(e){}}catch(e){}}catch(e){}}),{t:e=>{var n;return null!=(n=Ve[e])?n:function(e){return(e.split(".").pop()||e).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,e=>e.toUpperCase()).trim()}(e)}}}const Ke=/* @__PURE__ */Symbol("ViewportPriority");function Fe(){const e=$(Ke,void 0);if(e)return e;const n=/* @__PURE__ */new WeakMap;let t=null;return e=>{const o=M(!1);let l,r=!1;const a=new Promise(e=>{l=()=>{r||(r=!0,e())}}),i=()=>{try{null==t||t.unobserve(e)}catch(o){}n.delete(e)},s=t||("undefined"==typeof window||"undefined"==typeof IntersectionObserver?null:(t=new IntersectionObserver(e=>{for(const l of e){const e=n.get(l.target);if(e&&(l.isIntersecting||l.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(o){}}null==t||t.unobserve(l.target),n.delete(l.target)}}},{root:null,rootMargin:"300px",threshold:0}),t));return s?(n.set(e,{resolve:l,visible:o}),s.observe(e),{isVisible:o,whenVisible:a,destroy:i}):(o.value=!0,l(),{isVisible:o,whenVisible:a,destroy:i})}}const We={class:"relative inline-block"},Xe=["src","alt","title","loading","tabindex","aria-label"],Ze={class:"text-sm whitespace-nowrap"},qe={key:1,class:"text-sm text-gray-500"},Ye={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},Ue={class:"text-sm whitespace-nowrap"},Ge={key:0,class:"mt-2 text-sm text-gray-500 italic"},Je=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ImageNode",props:{node:{},fallbackSrc:{default:""},showCaption:{type:Boolean,default:!1},lazy:{type:Boolean,default:!0},svgMinHeight:{default:"12rem"},usePlaceholder:{type:Boolean,default:!0}},emits:["load","error","click"],setup(e,{emit:n}){const t=e,o=n,l=M(!1),r=M(!1),a=M(!1),i=M(null),s=Fe(),u=M(null),c=M("undefined"==typeof window);"undefined"!=typeof window&&C(()=>i.value,e=>{var n;if(null==(n=u.value)||n.destroy(),u.value=null,!e)return void(c.value=!1);const t=s(e,{rootMargin:"400px"});u.value=t,c.value=t.isVisible.value,t.whenVisible.then(()=>{c.value=!0})},{immediate:!0}),B(()=>{var e;null==(e=u.value)||e.destroy(),u.value=null});const d=L(()=>r.value&&t.fallbackSrc?t.fallbackSrc:t.node.src),v=L(()=>!t.lazy||c.value),m=L(()=>/\.svg(?:\?|$)/i.test(d.value));function g(){t.fallbackSrc&&!a.value?(a.value=!0,r.value=!0):(r.value=!0,o("error",t.node.src))}function k(){l.value=!0,r.value=!1,o("load",d.value)}function x(e){e.preventDefault(),l.value&&!r.value&&o("click",[e,d.value])}const{t:_}=Oe();return C(d,()=>{l.value=!1,r.value=!1}),(n,o)=>(p(),h("figure",{ref_key:"figureRef",ref:i,class:"text-center my-8"},[y("div",We,[f(E,{name:"img-switch",mode:"out-in"},{default:N(()=>{var a,i,s,u,c;return[e.node.loading||r.value||!v.value?r.value?e.node.loading||t.fallbackSrc?H("",!0):(p(),h("div",Ye,[z(n.$slots,"error",{node:t.node,displaySrc:d.value,imageLoaded:l.value,hasError:r.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:m.value},()=>[o[1]||(o[1]=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[y("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)),y("span",Ue,b(w(_)("image.loadError")),1)],!0)])):(p(),h("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:D(m.value?{minHeight:t.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[t.usePlaceholder?z(n.$slots,"placeholder",{key:0,node:t.node,displaySrc:d.value,imageLoaded:l.value,hasError:r.value,fallbackSrc:t.fallbackSrc,lazy:t.lazy,isSvg:m.value},()=>[o[0]||(o[0]=y("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),y("span",Ze,b(w(_)("image.loading")),1)],!0):(p(),h("span",qe,b(e.node.raw),1))],4)):(p(),h("img",{key:"image",src:d.value,alt:String(null!=(i=null!=(a=t.node.alt)?a:t.node.title)?i:""),title:String(null!=(u=null!=(s=t.node.title)?s:t.node.alt)?u:""),class:T(["max-w-96 h-auto rounded-lg transition-opacity duration-200 ease-in-out",{"opacity-0":!l.value,"opacity-100":l.value,"cursor-pointer":l.value}]),style:D(m.value?{minHeight:t.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:t.lazy?"lazy":"eager",decoding:"async",tabindex:l.value?0:-1,"aria-label":null!=(c=t.node.alt)?c:w(_)("image.preview"),onError:g,onLoad:k,onClick:x},null,46,Xe))]}),_:3})]),t.showCaption&&t.node.alt?(p(),h("figcaption",Ge,b(t.node.alt),1)):H("",!0)],512))}}),[["__scopeId","data-v-7ca79b66"]]);Je.install=e=>{e.component(Je.__name,Je)};let Qe=null,en=!1,nn=tn;function tn(){return u(null,null,function*(){const e=yield import("katex");return yield import("katex/contrib/mhchem"),e})}function on(e){nn=e,Qe=null,en=!1}function ln(e){on(null!=e?e:tn)}function rn(){on(null)}function an(){return"function"==typeof nn}function sn(){return u(this,null,function*(){if(Qe)return Qe;if(en)return null;const e=nn;if(!e)return en=!0,null;try{const n=yield e();if(n)return Qe=n,Qe}catch(n){}return en=!0,null})}const un=A(!1);let cn=null;function dn(){return cn||(cn=sn().then(e=>{un.value=!!e}).catch(()=>{un.value=!1})),P(un)}const vn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"TextNode",props:{node:{}},emits:["copy"],setup(e){const n=dn();return(t,o)=>(p(),h("span",{class:T([[w(n)&&e.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},b(e.node.content),3))}}),[["__scopeId","data-v-56f30838"]]);vn.install=e=>{e.component(vn.__name,vn)};const mn=V(()=>u(null,null,function*(){var e,n;if("undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(n=null==(e=globalThis.process)?void 0:e.env)?void 0:n.NODE_ENV))return e=>{var n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$${null!=(n=e.node.content)?n:""}$`})}))};try{if(yield sn())return(yield import("./index2.js")).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 e=>{var n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$${null!=(n=e.node.content)?n:""}$`})}))}})),hn=V(()=>u(null,null,function*(){try{if(yield sn())return(yield import("./index3.js")).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 n,t;return j(vn,s(i({},e),{node:s(i({},e.node),{content:null!=(t=e.node.raw)?t:`$$${null!=(n=e.node.content)?n:""}$$`})}))}})),pn=/* @__PURE__ */m({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup:e=>(n,t)=>(p(),h("span",{class:"reference-node cursor-pointer bg-accent text-xs rounded-md px-1.5 mx-0.5 hover:bg-secondary",role:"button",tabindex:"0",onClick:t[0]||(t[0]=t=>n.$emit("click",t,e.node.id,e.messageId,e.threadId)),onMouseenter:t[1]||(t[1]=t=>n.$emit("mouseEnter",t,e.node.id,e.messageId,e.threadId)),onMouseleave:t[2]||(t[2]=t=>n.$emit("mouseLeave",t,e.node.id,e.messageId,e.threadId))},b(e.node.id),33))});pn.install=e=>{e.component(pn.__name,pn)};const gn={class:"superscript-node"},fn={key:1},wn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:zn,footnote_reference:xe,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,emoji:ve,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("sup",gn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),h(k,{key:`${e.indexKey||"superscript"}-${l}`},[o[t.type]?(p(),R(O(o[t.type]),{key:0,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"superscript"}-${l}`},null,8,["node","custom-id","index-key"])):(p(),h("span",fn,b(t.content||t.raw),1))],64))),128))]))}}),[["__scopeId","data-v-6dc1e3ba"]]);wn.install=e=>{e.component(wn.__name,wn)};const yn={class:"subscript-node"},kn={key:1},xn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:zn,footnote_reference:xe,strikethrough:Cn,highlight:Nn,insert:Hn,superscript:wn,emoji:ve,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("sub",yn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),h(k,{key:`${e.indexKey||"subscript"}-${l}`},[o[t.type]?(p(),R(O(o[t.type]),{key:0,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"subscript"}-${l}`},null,8,["node","custom-id","index-key"])):(p(),h("span",kn,b(t.content||t.raw),1))],64))),128))]))}}),[["__scopeId","data-v-69de9b81"]]);xn.install=e=>{e.component(xn.__name,xn)};const bn={class:"strong-node"},Mn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,emphasis:zn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("strong",bn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"strong"}-${l}`,"index-key":`${e.indexKey||"strong"}-${l}`,node:t,"custom-id":n.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),[["__scopeId","data-v-af3ce037"]]);Mn.install=e=>{e.component(Mn.__name,Mn)};const _n={class:"strikethrough-node"},Cn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:zn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("del",_n,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"strikethrough"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"strikethrough"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-904d5bd1"]]);Cn.install=e=>{e.component(Cn.__name,Cn)};const Bn=["href","title","aria-label","aria-hidden"],Tn=["aria-hidden"],In={class:"link-text-wrapper relative inline-flex"},jn={class:"leading-[normal] link-text"},$n={class:"leading-[normal] link-text"},Sn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(e){const n=e,t=L(()=>{var e,t,o,l,r,a;const i=void 0!==n.underlineBottom?"number"==typeof n.underlineBottom?`${n.underlineBottom}px`:String(n.underlineBottom):"-3px";return{"--link-color":null!=(e=n.color)?e:"#0366d6","--underline-height":`${null!=(t=n.underlineHeight)?t:2}px`,"--underline-bottom":i,"--underline-opacity":String(null!=(o=n.animationOpacity)?o:.9),"--underline-duration":`${null!=(l=n.animationDuration)?l:.8}s`,"--underline-timing":null!=(r=n.animationTiming)?r:"linear","--underline-iteration":"number"==typeof n.animationIteration?String(n.animationIteration):null!=(a=n.animationIteration)?a:"infinite"}}),o={text:vn,strong:Mn,strikethrough:Cn,emphasis:zn,image:Je,html_inline:be},l=K();function r(){n.showTooltip&&Pe()}const a=L(()=>{var e,t;return String(null!=(t=null!=(e=n.node.title)?e:n.node.href)?t:"")});return(i,s)=>e.node.loading?(p(),h("span",F({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":e.node.loading?"false":"true"},w(l),{style:t.value}),[y("span",In,[y("span",jn,[y("span",$n,b(e.node.text),1)]),s[1]||(s[1]=y("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Tn)):(p(),h("a",F({key:0,class:"link-node",href:e.node.href,title:e.showTooltip?"":a.value,"aria-label":`Link: ${a.value}`,"aria-hidden":e.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},w(l),{style:t.value,onMouseenter:s[0]||(s[0]=e=>function(e){var t,o,l;if(!n.showTooltip)return;const r=e,a=null!=(null==r?void 0:r.clientX)&&null!=(null==r?void 0:r.clientY)?{x:r.clientX,y:r.clientY}:void 0,i=(null==(t=n.node)?void 0:t.title)||(null==(o=n.node)?void 0:o.href)||(null==(l=n.node)?void 0:l.text)||"";Ae(e.currentTarget,i,"top",!1,a)}(e)),onMouseleave:r}),[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"emphasis"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"link-text"}-${l}`},null,8,["node","custom-id","index-key"]))),128))],16,Bn))}}),[["__scopeId","data-v-0753b32c"]]);Sn.install=e=>{e.component(Sn.__name,Sn)};const Ln={class:"insert-node"},Hn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:zn,strikethrough:Cn,highlight:Nn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("ins",Ln,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"insert"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"insert"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-ab1ec9bc"]]);Hn.install=e=>{e.component(Hn.__name,Hn)};const En={class:"highlight-node"},Nn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,emphasis:zn,strikethrough:Cn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("mark",En,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"highlight"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"highlight"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-38e31bf6"]]);Nn.install=e=>{e.component(Nn.__name,Nn)};const Dn={class:"emphasis-node"},zn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,html_inline:be,strong:Mn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,footnote_reference:xe,math_inline:mn,reference:pn},t);return(t,l)=>(p(),h("em",Dn,[(p(!0),h(k,null,x(e.node.children,(t,l)=>(p(),R(O(o[t.type]),{key:`${e.indexKey||"emphasis"}-${l}`,node:t,"custom-id":n.customId,"index-key":`${e.indexKey||"emphasis"}-${l}`},null,8,["node","custom-id","index-key"]))),128))]))}}),[["__scopeId","data-v-8264674d"]]);zn.install=e=>{e.component(zn.__name,zn)};const An=["href","title"],Pn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"FootnoteAnchorNode",props:{node:{}},setup(e){const n=e;function t(e){var t;if(e.preventDefault(),"undefined"==typeof document)return;const o=`fnref-${String(null!=(t=n.node.id)?t:"")}`,l=document.getElementById(o);l&&l.scrollIntoView({behavior:"smooth"})}return(n,o)=>(p(),h("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${e.node.id}`,title:`返回引用 ${e.node.id}`,onClick:t}," ↩︎ ",8,An))}}),[["__scopeId","data-v-4756ce0d"]]);Pn.install=e=>{e.component(Pn.__name,Pn)};const Vn=["id"],Rn={class:"flex-1"},On=/* @__PURE__ */m({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e;return(t,o)=>(p(),h("div",{id:`fnref--${e.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[y("div",Rn,[g([n.node.children],()=>f(w(ht),{"index-key":`footnote-${n.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:o[0]||(o[0]=e=>t.$emit("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)])],8,Vn))}});On.install=e=>{e.component(On.__name,On)};const Kn={class:"hard-break"},Fn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HardBreakNode",props:{node:{}},setup:e=>(e,n)=>(p(),h("br",Kn))}),[["__scopeId","data-v-50c58f70"]]);Fn.install=e=>{e.component(Fn.__name,Fn)};const Wn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({text:vn,inline_code:_e,link:Sn,image:Je,strong:Mn,emphasis:zn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,checkbox:ae,checkbox_input:ae,footnote_reference:xe,hardbreak:Fn,math_inline:mn,reference:pn},t);return(t,l)=>g([e.node.children],()=>(p(),R(O(`h${e.node.level}`),{class:T(["heading-node",[`heading-${e.node.level}`]]),dir:"auto"},{default:N(()=>[(p(!0),h(k,null,x(e.node.children,(t,l,r,a)=>{const i=[t];if(a&&a.key===`${e.indexKey||"heading"}-${l}`&&W(a,i))return a;const s=(p(),R(O(o[t.type]),{key:`${e.indexKey||"heading"}-${l}`,"custom-id":n.customId,node:t,"index-key":`${e.indexKey||"heading"}-${l}`},null,8,["custom-id","node","index-key"]));return s.memo=i,s},l,0),128))]),_:1},8,["class"])),l,2)}}),[["__scopeId","data-v-e3e7e2ce"]]),Xn=Wn;Xn.install=e=>{e.component(Wn.__name,Wn)};const Zn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(e){const n=e,t=L(()=>null==n.value?{}:{value:n.value});return(e,o)=>(p(),h("li",F({class:"list-item pl-1.5 my-2",dir:"auto"},t.value),[g([n.item.children],()=>f(w(ht),{"index-key":`list-item-${n.indexKey}`,nodes:n.item.children,"custom-id":n.customId,typewriter:n.typewriter,"batch-rendering":!1,onCopy:o[0]||(o[0]=n=>e.$emit("copy",n))},null,8,["index-key","nodes","custom-id","typewriter"]),o,1)],16))}}),[["__scopeId","data-v-7a618746"]]);Zn.install=e=>{e.component(Zn.__name,Zn)};const qn=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup:e=>(n,t)=>(p(),R(O(e.node.ordered?"ol":"ul"),{class:T(["list-node",{"list-decimal":e.node.ordered,"list-disc":!e.node.ordered}])},{default:N(()=>[(p(!0),h(k,null,x(e.node.items,(o,l,r,a)=>{var i;const s=[o];if(a&&a.key===`${e.indexKey||"list"}-${l}`&&W(a,s))return a;const u=(p(),R(w(Zn),{key:`${e.indexKey||"list"}-${l}`,item:o,"custom-id":e.customId,"index-key":`${e.indexKey||"list"}-${l}`,typewriter:e.typewriter,value:e.node.ordered?(null!=(i=e.node.start)?i:1)+l:void 0,onCopy:t[0]||(t[0]=e=>n.$emit("copy",e))},null,8,["item","custom-id","index-key","typewriter","value"]));return u.memo=s,u},t,1),128))]),_:1},8,["class"]))}),[["__scopeId","data-v-79057d57"]]);qn.install=e=>{e.component(qn.__name,qn)};const Yn={dir:"auto",class:"paragraph-node"},Un=/* @__PURE__ */te(/* @__PURE__ */m({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(e){const n=e,t=ge(n.customId),o=i({inline_code:_e,image:Je,link:Sn,hardbreak:Fn,emphasis:zn,strong:Mn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,html_inline:be,emoji:ve,checkbox:ae,math_inline:mn,checkbox_input:ae,reference:pn,footnote_anchor:Pn,footnote_reference:xe},t),l=dn();return(t,r)=>(p(),h("p",Yn,[(p(!0),h(k,null,x(e.node.children,(t,r)=>(p(),h(k,{key:`${e.indexKey||"paragraph"}-${r}`},["text"!==t.type?(p(),R(O(o[t.type]),{key:0,node:t,"index-key":`${e.indexKey}-${r}`,"custom-id":n.customId},null,8,["node","index-key","custom-id"])):(p(),h("span",{key:1,class:T([[w(l)&&t.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},b(t.content),3))],64))),128))]))}}),[["__scopeId","data-v-0117537a"]]);Un.install=e=>{e.component(Un.__name,Un)};const Gn=["aria-busy","aria-label","data-language"],Jn=["textContent"],Qn=/* @__PURE__ */m({__name:"PreCodeNode",props:{node:{}},setup(e){const n=e,t=L(()=>{var e,t,o;const l=String(null!=(t=null==(e=n.node)?void 0:e.language)?t:"");return String(null!=(o=String(l).split(/\s+/g)[0])?o:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),o=L(()=>`language-${t.value}`),l=L(()=>{const e=t.value;return e?`Code block: ${e}`:"Code block"});return(n,r)=>(p(),h("pre",{class:T([o.value]),"aria-busy":!0===e.node.loading,"aria-label":l.value,"data-language":t.value,tabindex:"0"},[y("code",{translate:"no",textContent:b(e.node.code)},null,8,Jn)],10,Gn))}});Qn.install=e=>{e.component(Qn.__name,Qn)};const et={class:"table-node-wrapper"},nt=["aria-busy"],tt={class:"border-[var(--table-border,#cbd5e1)]"},ot={class:"border-b"},lt={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},rt=/* @__PURE__ */te(/* @__PURE__ */m({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e){const n=e,t=L(()=>{var e,t,o,l;return null!=(l=null==(o=null==(t=null==(e=n.node)?void 0:e.header)?void 0:t.cells)?void 0:o.length)?l:0}),o=L(()=>{const e=t.value||1,n=Math.floor(100/e);return Array.from({length:e}).map((t,o)=>o===e-1?100-n*(e-1)+"%":`${n}%`)}),l=L(()=>{var e;return null!=(e=n.node.loading)&&e}),r=L(()=>{var e;return null!=(e=n.node.rows)?e:[]});return(t,a)=>(p(),h("div",et,[y("table",{class:T(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":l.value}]),"aria-busy":l.value},[y("colgroup",null,[(p(!0),h(k,null,x(o.value,(e,n)=>(p(),h("col",{key:`col-${n}`,style:D({width:e})},null,4))),128))]),y("thead",tt,[y("tr",ot,[(p(!0),h(k,null,x(e.node.header.cells,(e,o)=>(p(),h("th",{key:`header-${o}`,dir:"auto",class:T(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",["right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"]])},[f(w(ht),{nodes:e.children,"index-key":`table-th-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:a[0]||(a[0]=e=>t.$emit("copy",e))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),y("tbody",null,[(p(!0),h(k,null,x(r.value,(e,o)=>(p(),h("tr",{key:`row-${o}`,class:T(["border-[var(--table-border,#cbd5e1)]",[o<r.value.length-1?"border-b":""]])},[(p(!0),h(k,null,x(e.cells,(e,l)=>(p(),h("td",{key:`cell-${o}-${l}`,class:T(["p-[calc(4/7*1em)] overflow-x-auto",["right"===e.align?"text-right":"center"===e.align?"text-center":"text-left"]]),dir:"auto"},[f(w(ht),{nodes:e.children,"index-key":`table-td-${n.indexKey}`,"custom-id":n.customId,typewriter:n.typewriter,onCopy:a[1]||(a[1]=e=>t.$emit("copy",e))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,nt),f(E,{name:"table-node-fade"},{default:N(()=>[l.value?(p(),h("div",lt,[z(t.$slots,"loading",{isLoading:l.value},()=>[a[2]||(a[2]=y("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),a[3]||(a[3]=y("span",{class:"sr-only"},"Loading",-1))],!0)])):H("",!0)]),_:3})]))}}),[["__scopeId","data-v-a874491c"]]);rt.install=e=>{e.component(rt.__name,rt)};const at={class:"hr-node"},it=/* @__PURE__ */te({},[["render",function(e,n){return p(),h("hr",at)}],["__scopeId","data-v-639cbad9"]]);it.install=e=>{e.component(it.__name,it)};const st=/* @__PURE__ */te(/* @__PURE__ */m({__name:"VmrContainerNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},setup(e){const n=e,t=L(()=>`vmr-container vmr-container-${n.node.name}`);return(n,o)=>(p(),h("div",F({class:t.value},e.node.attrs),b(e.node.raw),17))}}),[["__scopeId","data-v-44f317be"]]);st.install=e=>{e.component(st.__name,st)};const ut={key:1,class:"html-block-node__placeholder"},ct=/* @__PURE__ */te(/* @__PURE__ */m({__name:"HtmlBlockNode",props:{node:{}},setup(e){const n=e,t=L(()=>{const e=n.node.attrs;if(e){if(Array.isArray(e)){const n={};for(const t of e){if(!t||t.length<2)continue;const[e,o]=t;null!=e&&(n[String(e)]=null==o?"":String(o))}return n}return e}}),o=M(null),l=M("undefined"==typeof window),r=M(n.node.content),a=Fe(),i=M(null),s=!!n.node.loading;return"undefined"!=typeof window?(C(o,e=>{var t,o;if(null==(o=null==(t=i.value)?void 0:t.destroy)||o.call(t),i.value=null,!s)return l.value=!0,void(r.value=n.node.content);if(!e)return void(l.value=!1);const u=a(e,{rootMargin:"400px"});i.value=u,l.value=u.isVisible.value,u.whenVisible.then(()=>{l.value=!0})},{immediate:!0}),C(()=>n.node.content,e=>{s&&!l.value||(r.value=e)})):l.value=!0,B(()=>{var e,n;null==(n=null==(e=i.value)?void 0:e.destroy)||n.call(e),i.value=null}),(n,a)=>(p(),h("div",F({ref_key:"htmlRef",ref:o,class:"html-block-node"},t.value),[l.value?g([r.value],()=>(p(),h("div",{key:0,innerHTML:r.value},null,8,["innerHTML"])),a,0):(p(),h("div",ut,[z(n.$slots,"placeholder",{node:e.node},()=>[a[1]||(a[1]=y("span",{class:"html-block-node__placeholder-bar"},null,-1)),a[2]||(a[2]=y("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),a[3]||(a[3]=y("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),[["__scopeId","data-v-ed22b926"]]),dt={class:"unknown-node"},vt=/* @__PURE__ */m({__name:"FallbackComponent",props:{node:{}},setup:e=>(n,t)=>(p(),h("div",dt,b(e.node.raw),1))}),mt=["data-node-index","data-node-type"],ht=/* @__PURE__ */te(/* @__PURE__ */m({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},debugPerformance:{type:Boolean,default:!1},customHtmlTags:{},viewportPriority:{type:Boolean},codeBlockStream:{type:Boolean,default:!0},codeBlockDarkTheme:{},codeBlockLightTheme:{},codeBlockMonacoOptions:{},renderCodeBlocksAsPre:{type:Boolean},codeBlockMinWidth:{},codeBlockMaxWidth:{},codeBlockProps:{},themes:{},isDark:{type:Boolean},customId:{},indexKey:{},typewriter:{type:Boolean,default:!0},batchRendering:{type:Boolean,default:!0},initialRenderBatchSize:{default:40},renderBatchSize:{default:80},renderBatchDelay:{default:16},renderBatchBudgetMs:{default:6},renderBatchIdleTimeoutMs:{default:120},deferNodesUntilVisible:{type:Boolean,default:!0},maxLiveNodes:{default:320},liveNodeBuffer:{default:60}},emits:["copy","handleArtifactClick","click","mouseover","mouseout"],setup(e,{emit:n}){var t,o,l;const r=e,a=n,v=M(),m=M(!1),g=/auto|scroll|overlay/i,f="undefined"!=typeof window,w=L(()=>r.debugPerformance&&f&&"undefined"!=typeof console);function y(e,n){w.value&&console.info(`[markstream-vue][perf] ${e}`,n)}function b(e){if("undefined"==typeof window)return null;const n=null!=e?e:v.value;if(!n)return null;const t=n.ownerDocument||document,o=t.scrollingElement||t.documentElement;let l=n;for(;l&&l!==t.body&&l!==o;){const e=window.getComputedStyle(l),n=(e.overflowY||"").toLowerCase(),t=(e.overflow||"").toLowerCase();if(g.test(n)||g.test(t))return l;l=l.parentElement}return null}const _=r.customId?`renderer-${r.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,I=c(_),j=L(()=>{const e=r.customHtmlTags;return e&&0!==e.length?c(_,{customHtmlTags:e}):I}),$=L(()=>{const e=j.value;return r.customMarkdownIt?r.customMarkdownIt(e):e});function z(e){const n=String(null!=e?e:"").trim();if(!n)return"";const t=n.match(/^[<\s/]*([A-Z][\w-]*)/i);return t?t[1].toLowerCase():""}const A=L(()=>{var e,n,t;const o=null!=(e=r.parseOptions)?e:{},l=[...null!=(n=r.customHtmlTags)?n:[],...null!=(t=o.customHtmlTags)?t:[]].map(z).filter(Boolean);return l.length?s(i({},o),{customHtmlTags:Array.from(new Set(l))}):o}),P=L(()=>{var e;if(null==(e=r.nodes)?void 0:e.length)return X(r.nodes.slice());if(r.content){const e=w.value?performance.now():0,n=d(r.content,$.value,A.value);return w.value&&y("parse(sync)",{ms:Math.round(performance.now()-e),nodes:n.length,contentLength:r.content.length}),X(n)}return[]}),K=L(()=>{var e;return Math.max(1,null!=(e=r.maxLiveNodes)?e:320)}),W=L(()=>{var e;return!((null!=(e=r.maxLiveNodes)?e:0)<=0)&&P.value.length>K.value}),Y=L(()=>!1!==r.viewportPriority&&!m.value),U=function(e,n){const t="undefined"!=typeof window&&"undefined"!=typeof document,o="boolean"==typeof n?M(n):n;let l=null,r=null;const a=/* @__PURE__ */new WeakMap,s=(n,s)=>{const u=M(!1);let c,d=!1;const v=new Promise(e=>{c=()=>{d||(d=!0,e())}}),m=()=>{try{null==l||l.unobserve(n)}catch(e){}a.delete(n)};if(!t||!o.value)return u.value=!0,c(),{isVisible:u,whenVisible:v,destroy:m};!r&&s&&(r=i({},s));const h=function(n){var o,i,s;if(l||!t)return l;if("undefined"==typeof IntersectionObserver)return null;const u=null!=(o=null==e?void 0:e(null!=n?n:null))?o:null,c=r||{};return l=new IntersectionObserver(e=>{for(const t of e){const e=a.get(t.target);if(e&&(t.isIntersecting||t.intersectionRatio>0)){if(!e.visible.value){e.visible.value=!0;try{e.resolve()}catch(n){}}null==l||l.unobserve(t.target),a.delete(t.target)}}},{root:u,rootMargin:null!=(i=c.rootMargin)?i:"300px",threshold:null!=(s=c.threshold)?s:0}),l}(n);return h?(a.set(n,{resolve:c,visible:u}),h.observe(n),{isVisible:u,whenVisible:v,destroy:m}):(u.value=!0,c(),{isVisible:u,whenVisible:v,destroy:m})};return S(Ke,s),s}(e=>{var n;return b(null!=(n=null!=e?e:v.value)?n:null)},Y),G=f&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame.bind(window):null,J=f&&"function"==typeof window.cancelAnimationFrame?window.cancelAnimationFrame.bind(window):null,Q="undefined"!=typeof globalThis&&void 0!==globalThis.process&&"test"===(null==(o=null==(t=globalThis.process)?void 0:t.env)?void 0:o.NODE_ENV),ee=f&&"function"==typeof window.requestIdleCallback,ne=L(()=>{var e;const n=Math.trunc(null!=(e=r.renderBatchSize)?e:80);return Number.isFinite(n)?Math.max(0,n):0}),te=L(()=>{var e;const n=Math.trunc(null!=(e=r.initialRenderBatchSize)?e:ne.value);return Number.isFinite(n)?Math.max(0,n):ne.value}),le=L(()=>!1!==r.batchRendering&&ne.value>0&&f&&!Q),re=M(0),ie=M({key:r.indexKey,total:0}),se=M(Math.max(1,ne.value||1)),ue=Z({}),de=/* @__PURE__ */new Map,me=/* @__PURE__ */new Map,he=/* @__PURE__ */new Map,pe=M(null);let fe=null,we=null;const ye=L(()=>{var e;return!1!==r.deferNodesUntilVisible&&!((null!=(e=r.maxLiveNodes)?e:0)<=0)&&!W.value&&!(P.value.length>900)&&Y.value}),ke=L(()=>{var e;return le.value&&(null!=(e=r.maxLiveNodes)?e:0)<=0}),Me=M({batchSize:ne.value,initial:te.value,delay:null!=(l=r.renderBatchDelay)?l:16,enabled:ke.value}),Ce=L(()=>!!U&&(ye.value||W.value)),Be=L(()=>{var e;return Math.max(0,null!=(e=r.liveNodeBuffer)?e:60)}),Te=M(0),Ie=Z({start:0,end:0}),je=/* @__PURE__ */new Map,$e=L(()=>{if(!W.value)return P.value.length;const e=Be.value,n=Math.max(Ie.end+e,te.value),t=Math.min(P.value.length,n);return Math.max(re.value,t)});function Se(e){var n,t,o,l;const r=b(null!=(n=null!=e?e:v.value)?n:null);if(r)return r;const a=null!=(l=null!=(o=null==e?void 0:e.ownerDocument)?o:null==(t=v.value)?void 0:t.ownerDocument)?l:"undefined"!=typeof document?document:null;return(null==a?void 0:a.scrollingElement)||(null==a?void 0:a.documentElement)||null}function Le(e){if(!f)return!1;try{const n=window.getComputedStyle(e);return!!(n.display||"").toLowerCase().includes("flex")&&(n.flexDirection||"").toLowerCase().endsWith("reverse")}catch(n){return!1}}function He(){fe&&(fe(),fe=null),pe.value=null}function Ee(){if(!f||!W.value)return;const e=Se();if(!e||pe.value===e)return;He();const n=()=>De();e.addEventListener("scroll",n,{passive:!0}),pe.value=e,fe=()=>{e.removeEventListener("scroll",n)}}function Ne(){var e,n,t;if(!we)return;const o=null!=(t=null==(n=null==(e=v.value)?void 0:e.ownerDocument)?void 0:n.defaultView)?t:"undefined"!=typeof window?window:null;we.viaTimeout?o?o.clearTimeout(we.id):clearTimeout(we.id):null==J||J(we.id),we=null}function De(e={}){var n,t,o;if(!W.value)return;if(!f)return void ze(!0);if(e.immediate)return Ne(),void ze(!0);if(we)return;const l=()=>{we=null,ze()};if(G)we={id:G(l),viaTimeout:!1};else{const e=null!=(o=null==(t=null==(n=v.value)?void 0:n.ownerDocument)?void 0:t.defaultView)?o:"undefined"!=typeof window?window:null,r=e?e.setTimeout(l,16):setTimeout(l,16);we={id:r,viaTimeout:!0}}}function ze(e=!1){var n,t,o,l,r,a,i;if(!W.value)return;const s=pe.value||Se();if(!s)return;const u=s.ownerDocument||(null==(n=v.value)?void 0:n.ownerDocument)||document,c=(null==u?void 0:u.defaultView)||("undefined"!=typeof window?window:null),d=s===(null==u?void 0:u.documentElement)||s===(null==u?void 0:u.body),m=P.value.length;if(!d&&m>0&&Le(s)){const n=s.clientHeight||0,t=s.scrollTop,o=t<0?-t:t,l=function(e){var n;const t=P.value;if(!t.length)return 0;if(e<=0)return Math.max(0,t.length-1);let o=e;for(let l=t.length-1;l>=0;l--){const e=null!=(n=Pe[l])?n:Re.value;if(o<=e)return l;o-=e}return 0}(Math.max(0,o)+.5*Math.max(0,n)),r=Ae(l,0,Math.max(0,m-1));return void((e||Math.abs(r-Te.value)>1)&&(Te.value=r))}const h=d?null:s.getBoundingClientRect(),p=d?0:h.top,g=d?null!=(o=null!=(t=null==c?void 0:c.innerHeight)?t:s.clientHeight)?o:0:h.bottom,f=Array.from(he.entries()).sort((e,n)=>e[0]-n[0]);let w=null,y=null;for(const[v,x]of f){if(!x)continue;const e=x.getBoundingClientRect();e.bottom<=p||e.top>=g||(null==w&&(w=v),y=v)}if(null==w||null==y){const e=v.value;if(!e)return;const n=d?{top:0}:s.getBoundingClientRect(),t=function(e,n,t){var o,l,r,a,i,s;if(t)return null!=(a=null!=(r=null==(o=null==n?void 0:n.documentElement)?void 0:o.scrollTop)?r:null==(l=null==n?void 0:n.body)?void 0:l.scrollTop)?a:0;const u=e.scrollTop;if(!Le(e))return u;const c=u<0?-u:u;return Math.max(0,(null!=(i=e.scrollHeight)?i:0)-(null!=(s=e.clientHeight)?s:0))-c}(s,u,d),o=d?(()=>{const t=e.getBoundingClientRect(),o=(d?0:n.top)-t.top;return Math.max(0,o)})():(()=>{const n=function(e,n){let t=e,o=0,l=0;for(;t&&t!==n&&l++<64;)o+=t.offsetTop||0,t=t.offsetParent;return o}(e,s);return Math.max(0,t-n)})(),m=d?null!=(i=null!=(a=null!=(r=null==c?void 0:c.innerHeight)?r:null==(l=null==u?void 0:u.documentElement)?void 0:l.clientHeight)?a:s.clientHeight)?i:0:s.clientHeight,h=function(e){var n;if(e<=0)return 0;let t=e;const o=P.value;for(let l=0;l<o.length;l++){const e=null!=(n=Pe[l])?n:Re.value;if(t<=e)return l;t-=e}return Math.max(0,o.length-1)}(o+.5*Math.max(0,m));return void(Te.value=Ae(h,0,Math.max(0,P.value.length-1)))}const k=Math.round((w+y)/2);!e&&Math.abs(k-Te.value)<=1||(Te.value=Ae(k,0,Math.max(0,P.value.length-1)))}function Ae(e,n,t){return Math.min(Math.max(e,n),t)}const Pe=Z({}),Ve=Z({total:0,count:0}),Re=L(()=>Ve.count>0?Math.max(12,Ve.total/Ve.count):32);function Oe(e,n){var t;if(e>=n)return 0;let o=0;for(let l=e;l<n;l++)o+=null!=(t=Pe[l])?t:Re.value;return o}const Fe=L(()=>{if(!W.value)return P.value.map((e,n)=>({node:e,index:n}));const e=P.value.length,n=Ae(Ie.start,0,e),t=Ae(Ie.end,n,e);return P.value.slice(n,t).map((e,t)=>({node:e,index:n+t}))}),We=L(()=>W.value?Oe(0,Math.min(Ie.start,P.value.length)):0),Xe=L(()=>{if(!W.value)return 0;const e=P.value.length;return Oe(Math.min(Ie.end,e),e)});function Ze(e){if(de.size&&W.value)for(const[n,t]of de)n>=e&&(t.destroy(),de.delete(n),ye.value&&delete ue[n],ln(n),he.delete(n))}function qe(e,n){ye.value&&(ue[e]=n),n&&(W.value?De():Te.value=Ae(e,0,Math.max(0,P.value.length-1)))}function Ye(e){const n=de.get(e);n&&(n.destroy(),de.delete(e)),ln(e)}function Ue(e,n){if(n?he.set(e,n):he.delete(e),n||ln(e),!Ce.value||!U)return Ye(e),void(n?qe(e,!0):ye.value&&delete ue[e]);if(!W.value&&ye.value&&!m.value&&de.size>=640&&(function(){if(!m.value){m.value=!0;for(const e of de.values())e.destroy();if(de.clear(),f)for(const e of me.values())window.clearTimeout(e);me.clear();for(const e of Object.keys(ue))delete ue[e]}}(),!Ce.value||!U))return Ye(e),void(n?qe(e,!0):ye.value&&delete ue[e]);if(e<te.value&&!W.value)return Ye(e),void qe(e,!0);if(!n)return Ye(e),void(ye.value&&delete ue[e]);Ye(e);const t=U(n,{rootMargin:"400px"});t&&(de.set(e,t),qe(e,t.isVisible.value),ye.value&&function(e){if(!f||!ye.value)return;ln(e);const n=e%17*23,t=window.setTimeout(()=>{var n,t;if(me.delete(e),!ye.value)return;if(!0===ue[e])return;const o=he.get(e);if(!o)return void delete ue[e];const l=Se(o),r=o.ownerDocument||document,a=r.defaultView||window,i=!l||l===r.documentElement||l===r.body,s=!i&&l?l.getBoundingClientRect():null,u=i?0:s.top,c=i?null!=(t=null!=(n=a.innerHeight)?n:null==l?void 0:l.clientHeight)?t:0:s.bottom,d=o.getBoundingClientRect();d.bottom>=u-500&&d.top<=c+500&&qe(e,!0)},1800+n);me.set(e,t)}(e),t.whenVisible.then(()=>{ln(e),qe(e,!0)}).catch(()=>{}).finally(()=>{de.get(e)===t&&de.delete(e);try{t.destroy()}catch(n){}}),W.value&&De())}let Ge=null,Qe=null,en=!1,nn=null,tn=null;function on(){f&&(null!=Ge&&(null==J||J(Ge),Ge=null),null!=Qe&&(window.clearTimeout(Qe),Qe=null),null!=tn&&"function"==typeof window.cancelIdleCallback&&(window.cancelIdleCallback(tn),tn=null),en=!1,nn=null)}function ln(e){if(!f)return;const n=me.get(e);null!=n&&(window.clearTimeout(n),me.delete(e))}function rn(e,n={}){var t,o;if(!ke.value)return;const l=$e.value;if(re.value>=l)return;const a=Math.max(1,e),i=e=>{var n;Ge=null,Qe=null,tn=null,en=!1;const t=null!=nn?nn:a;nn=null;const o=Math.max(2,null!=(n=r.renderBatchBudgetMs)?n:6),i=e=>{const n="undefined"!=typeof performance?performance.now():Date.now();re.value=Math.min(l,re.value+Math.max(1,e)),Ze(re.value);const t=("undefined"!=typeof performance?performance.now():Date.now())-n;return function(e){var n;if(!ke.value)return;const t=Math.max(2,null!=(n=r.renderBatchBudgetMs)?n:6),o=Math.max(1,ne.value||1),l=Math.max(1,Math.floor(o/4));e>1.2*t?se.value=Math.max(l,Math.floor(.7*se.value)):e<.5*t&&se.value<o&&(se.value=Math.min(o,Math.ceil(1.2*se.value)))}(t),t};let s=t;for(;(i(s),!(re.value>=l)&&e)&&!(("function"==typeof e.timeRemaining?e.timeRemaining():0)<=.5*o);)s=Math.max(1,Math.round(se.value));re.value<l&&an()};if(!f||n.immediate)return void i();const s=Math.max(0,null!=(t=r.renderBatchDelay)?t:16);if(nn=null!=nn?Math.max(nn,a):a,!en){if(en=!0,!Q&&ee&&window.requestIdleCallback){const e=Math.max(0,null!=(o=r.renderBatchIdleTimeoutMs)?o:120);return void(tn=window.requestIdleCallback(e=>{i(e)},{timeout:e}))}G&&!Q?Ge=G(()=>{0!==s?Qe=window.setTimeout(()=>i(),s):i()}):Qe=window.setTimeout(()=>i(),s)}}function an(){ke.value&&rn(le.value?Math.max(1,Math.round(se.value)):Math.max(1,ne.value))}C([()=>P.value,()=>P.value.length,()=>ke.value,()=>ne.value,()=>te.value,()=>r.renderBatchDelay,()=>r.indexKey],()=>{var e;const n=P.value.length,t=ie.value,o=r.indexKey,l=void 0!==o&&o!==t.key,a=n!==t.total,i=l||a;ie.value={key:o,total:n};const s=Me.value,u=null!=(e=r.renderBatchDelay)?e:16,c=s.batchSize!==ne.value||s.initial!==te.value||s.delay!==u||s.enabled!==ke.value;Me.value={batchSize:ne.value,initial:te.value,delay:u,enabled:ke.value},(i||c||!ke.value)&&on(),(i||c)&&(se.value=Math.max(1,ne.value||1)),i&&W.value&&De({immediate:!0});const d=$e.value;if(!n)return re.value=0,void Ze(0);if(!ke.value)return re.value=d,void Ze(re.value);const v=l||0===t.total;re.value=v||c?Math.min(d,te.value):Math.min(re.value,d);const m=Math.max(1,te.value||ne.value||n);re.value<d?rn(m,{immediate:!f}):Ze(re.value)},{immediate:!0}),C(()=>W.value,e=>{if(!e)return He(),void Ne();Ee(),De({immediate:!0})},{immediate:!0}),C([()=>P.value.length,()=>W.value],e=>u(null,[e],function*([e,n]){n&&e&&f&&(yield q(),De({immediate:!0}))}),{flush:"post"}),C(()=>v.value,()=>{W.value&&(Ee(),De({immediate:!0}))}),C(()=>P.value.length,()=>{W.value&&De({immediate:!0})}),C(()=>ye.value,e=>{if(e)for(const[n,t]of he)Ue(n,t);else{for(const e of de.values())e.destroy();de.clear();for(const e of Array.from(me.keys()))ln(e);for(const e of Object.keys(ue))delete ue[e];for(const[e,n]of he)n&&qe(e,!0)}},{immediate:!1}),C([()=>r.viewportPriority,()=>P.value.length],([e,n])=>{!1!==e?m.value&&n<=200&&(m.value=!1):m.value=!1}),C(()=>re.value,()=>{W.value&&De({immediate:!0})}),C([Te,K,Be,()=>P.value.length,W],()=>{!function(){const e=P.value.length;if(!W.value||0===e)return Ie.start=0,void(Ie.end=e);const n=Math.min(K.value,e),t=Be.value,o=Ae(Te.value-t,0,Math.max(0,e-n));Ie.start=o,Ie.end=Math.min(e,o+n)}()},{immediate:!0}),C([()=>P.value.length,W,K,Be,()=>Ie.start,()=>Ie.end],([e,n,t,o,l,r])=>{w.value&&y("virtualization",{nodes:e,virtualization:n,maxLiveNodes:t,buffer:o,focusIndex:Te.value,scroll:n?(()=>{const e=pe.value||Se();return e?{reverse:Le(e),scrollTop:Math.round(e.scrollTop),scrollTopAbs:Math.round(Math.abs(e.scrollTop)),scrollHeight:Math.round(e.scrollHeight),clientHeight:Math.round(e.clientHeight)}:null})():null,liveRange:{start:l,end:r},rendered:re.value})}),C(()=>$e.value,(e,n)=>{ke.value&&("number"==typeof n&&e<=n||e>re.value&&an())}),B(()=>{on();for(const e of de.values())e.destroy();de.clear();for(const e of Array.from(me.keys()))ln(e);He(),Ne()});const sn=V(()=>u(null,null,function*(){try{return(yield import("./index4.js")).default}catch(e){return console.warn('[markstream-vue] Optional peer dependencies for CodeBlockNode are missing. Falling back to inline-code rendering (no Monaco). To enable full code block features, please install "stream-monaco".',e),Qn}})),un=V(()=>u(null,null,function*(){try{return(yield Promise.resolve().then(()=>_o)).default}catch(e){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".',e),Qn}})),cn=L(()=>r.renderCodeBlocksAsPre?Qn:sn),dn={text:vn,paragraph:Un,heading:Xn,code_block:sn,list:qn,blockquote:oe,table:rt,definition_list:ce,footnote:On,footnote_reference:xe,footnote_anchor:Pn,admonition:xt,vmr_container:st,hardbreak:Fn,link:Sn,image:Je,thematic_break:it,math_inline:mn,math_block:hn,strong:Mn,emphasis:zn,strikethrough:Cn,highlight:Nn,insert:Hn,subscript:xn,superscript:wn,emoji:ve,checkbox:ae,checkbox_input:ae,inline_code:_e,html_inline:be,reference:pn,html_block:ct};function gn(e){var n;if(!e)return vt;const t=ge(r.customId),o=t[String(e.type)];if("code_block"===e.type){if("mermaid"===String(null!=(n=e.language)?n:"").trim().toLowerCase())return t.mermaid||un;if(o)return o;return t.code_block||cn.value}return o||dn[String(e.type)]||vt}function fn(e){var n;return"code_block"===(null==e?void 0:e.type)&&"mermaid"===String(null!=(n=e.language)?n:"").trim().toLowerCase()?{}:"code_block"===e.type?i({stream:r.codeBlockStream,darkTheme:r.codeBlockDarkTheme,lightTheme:r.codeBlockLightTheme,monacoOptions:r.codeBlockMonacoOptions,themes:r.themes,minWidth:r.codeBlockMinWidth,maxWidth:r.codeBlockMaxWidth},r.codeBlockProps||{}):{typewriter:r.typewriter}}function yn(e){a("click",e)}function kn(e){var n;(null==(n=e.target)?void 0:n.closest("[data-node-index]"))&&a("mouseover",e)}function bn(e){var n;(null==(n=e.target)?void 0:n.closest("[data-node-index]"))&&a("mouseout",e)}return(n,t)=>(p(),h("div",{ref_key:"containerRef",ref:v,class:T(["markstream-vue markdown-renderer",[{dark:r.isDark},{virtualized:W.value}]]),onClick:yn,onMouseover:kn,onMouseout:bn},[W.value?(p(),h("div",{key:0,class:"node-spacer",style:D({height:`${We.value}px`}),"aria-hidden":"true"},null,4)):H("",!0),(p(!0),h(k,null,x(Fe.value,n=>{var o,l;return p(),h("div",{key:n.index,ref_for:!0,ref:e=>Ue(n.index,e),class:"node-slot","data-node-index":n.index,"data-node-type":n.node.type},[(l=n.index,ke.value&&l>=re.value||ye.value&&!(l<te.value)&&!0!==ue[l]?(p(),h("div",{key:1,class:"node-placeholder",style:D({height:`${null!=(o=Pe[n.index])?o:Re.value}px`})},null,4)):(p(),h("div",{key:0,ref_for:!0,ref:e=>function(e,n){n?(je.set(e,n),queueMicrotask(()=>{!function(e,n){if(!Number.isFinite(n)||n<=0)return;const t=Pe[e];Pe[e]=n,t?Ve.total+=n-t:(Ve.total+=n,Ve.count++)}(e,n.offsetHeight)})):je.delete(e)}(n.index,e),class:"node-content"},["code_block"!==n.node.type&&!1!==r.typewriter?(p(),R(E,{key:0,name:"typewriter",appear:""},{default:N(()=>[(p(),R(O(gn(n.node)),F({node:n.node,loading:n.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${n.index}`},{ref_for:!0},fn(n.node),{"custom-id":r.customId,"is-dark":r.isDark,onCopy:t[0]||(t[0]=e=>a("copy",e)),onHandleArtifactClick:t[1]||(t[1]=e=>a("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(p(),R(O(gn(n.node)),F({key:1,node:n.node,loading:n.node.loading,"index-key":`${e.indexKey||"markdown-renderer"}-${n.index}`},{ref_for:!0},fn(n.node),{"custom-id":r.customId,"is-dark":r.isDark,onCopy:t[2]||(t[2]=e=>a("copy",e)),onHandleArtifactClick:t[3]||(t[3]=e=>a("handleArtifactClick",e))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)))],8,mt)}),128)),W.value?(p(),h("div",{key:1,class:"node-spacer",style:D({height:`${Xe.value}px`}),"aria-hidden":"true"},null,4)):H("",!0)],34))}}),[["__scopeId","data-v-14605a64"]]);ht.install=e=>{var n,t;const o=null!=(t=null!=(n=ht.__name)?n:ht.name)?t:"NodeRenderer";e.component(o,ht)};const pt={key:0,class:"admonition-icon"},gt={class:"admonition-title"},ft=["aria-expanded","aria-controls","title"],wt={key:0},yt={key:1},kt=["id"],xt=/* @__PURE__ */te(/* @__PURE__ */m({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(e,{emit:n}){var t;const o=e,l=n,r={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},a=L(()=>{if(o.node.title&&o.node.title.trim().length)return o.node.title;const e=o.node.kind||"note";return e.charAt(0).toUpperCase()+e.slice(1)}),i=M(!!o.node.collapsible&&!(null==(t=o.node.open)||t));function s(){o.node.collapsible&&(i.value=!i.value)}const u=`admonition-${Math.random().toString(36).slice(2,9)}`;return(n,t)=>(p(),h("div",{class:T(["admonition",[`admonition-${o.node.kind}`,o.isDark?"is-dark":""]])},[y("div",{id:u,class:"admonition-header"},[r[o.node.kind]?(p(),h("span",pt,b(r[o.node.kind]),1)):H("",!0),y("span",gt,b(a.value),1),o.node.collapsible?(p(),h("button",{key:1,class:"admonition-toggle","aria-expanded":!i.value,"aria-controls":`${u}-content`,title:i.value?"Expand":"Collapse",onClick:s},[i.value?(p(),h("span",wt,"▶")):(p(),h("span",yt,"▼"))],8,ft)):H("",!0)]),Y(y("div",{id:`${u}-content`,class:"admonition-content","aria-labelledby":u},[g([o.node.children],()=>f(w(ht),{"index-key":`admonition-${e.indexKey}`,nodes:o.node.children,"custom-id":o.customId,typewriter:o.typewriter,onCopy:t[0]||(t[0]=e=>l("copy",e))},null,8,["index-key","nodes","custom-id","typewriter"]),t,1)],8,kt),[[U,!i.value]])],2))}}),[["__scopeId","data-v-5e95c2b7"]]);xt.install=e=>{e.component(xt.__name,xt)};let bt=!1,Mt=null,_t=!1;function Ct(){return u(this,null,function*(){if(Mt)return Mt;if(_t)return null;try{return Mt=yield import("stream-monaco"),yield function(e){return u(this,null,function*(){if(!bt)return bt=!0,e.preloadMonacoWorkers()})}(Mt),Mt}catch(e){return _t=!0,null}})}let Bt=null;function Tt(e){Bt=null!=e?e:null}const It={"":"",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","c++":"cpp","c#":"csharp","objective-c":"objectivec","objective-c++":"objectivecpp",yml:"yaml",md:"markdown",rs:"rust",kt:"kotlin"};function jt(e){var n;const t=function(e){if(!e)return"";const n=e.trim();if(!n)return"";const[t]=n.split(/\s+/),[o]=t.split(":");return o.toLowerCase()}(e);return null!=(n=It[t])?n:t}function $t(e){const n=jt(e);if(!n)return"plaintext";switch(n){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return n}}function St(e){if(Bt){const n=Bt(e);if(null!=n&&""!==n)return n}switch(jt(e)){case"javascript":case"js":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4.5 11c0 .828427.6715729 1.5 1.5 1.5.8284271 0 1.5-.671573 1.5-1.5V7.5M12.5 8.75C12.5 8.05964406 11.9627417 7.5 11.3 7.5L10.7 7.5C10.0372583 7.5 9.5 8.05964406 9.5 8.75 9.5 9.44035594 10.0372583 10 10.7 10L11.3 10C11.9627417 10 12.5 10.5596441 12.5 11.25 12.5 11.9403559 11.9627417 12.5 11.3 12.5L10.7 12.5C10.0372583 12.5 9.5 11.9403559 9.5 11.25" />\n <path d="m 4,1.5 h 8 c 1.385,0 2.5,1.115 2.5,2.5 v 8 c 0,1.385 -1.115,2.5 -2.5,2.5 H 4 C 2.615,14.5 1.5,13.385 1.5,12 V 4 C 1.5,2.615 2.615,1.5 4,1.5 Z" />\n </g>\n</svg>\n';case"typescript":case"ts":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M4 1.5h8A2.5 2.5 0 0114.5 4v8a2.5 2.5 0 01-2.5 2.5H4A2.5 2.5 0 011.5 12V4A2.5 2.5 0 014 1.5" />\n <path d="M12.5 8.75c0-.69-.54-1.25-1.2-1.25h-.6c-.66 0-1.2.56-1.2 1.25S10.04 10 10.7 10h.6c.66 0 1.2.56 1.2 1.25s-.54 1.25-1.2 1.25h-.6c-.66 0-1.2-.56-1.2-1.25m-3-3.75v5M5 7.5h3" />\n </g>\n</svg>\n';case"jsx":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 10.8c4.14 0 7.5-1.25 7.5-2.8S12.14 5.2 8 5.2.5 6.45.5 8s3.36 2.8 7.5 2.8" />\n <path d="M5.52 9.4c2.07 3.5 4.86 5.72 6.23 4.95 1.37-.78.8-4.24-1.27-7.75C8.41 3.1 5.62.88 4.25 1.65c-1.37.78-.8 4.24 1.27 7.75" />\n <path d="M5.52 6.6c-2.07 3.5-2.64 6.97-1.27 7.75 1.37.77 4.16-1.45 6.23-4.95s2.64-6.97 1.27-7.75C10.38.88 7.59 3.1 5.52 6.6" />\n <path d="M8.5 8a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n';case"tsx":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M8 11.3c4.14 0 7.5-1.28 7.5-2.86S12.14 5.58 8 5.58.5 6.86.5 8.44s3.36 2.87 7.5 2.87Z" />\n <path d="M5.52 9.87c2.07 3.6 4.86 5.86 6.23 5.07 1.37-.8.8-4.34-1.27-7.93S5.62 1.16 4.25 1.95s-.8 4.34 1.27 7.92" />\n <path d="M5.52 7.01c-2.07 3.59-2.64 7.14-1.27 7.93s4.16-1.48 6.23-5.07c2.07-3.58 2.64-7.13 1.27-7.92-1.37-.8-4.16 1.47-6.23 5.06" />\n <path d="M8.5 8.44a.5.5 0 01-.5.5.5.5 0 01-.5-.5.5.5 0 01.5-.5.5.5 0 01.5.5" />\n </g>\n</svg>\n';case"html":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />\n <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />\n </g>\n</svg>\n';case"css":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">\n <path d="m4 1.5h8c1.38 0 2.5 1.12 2.5 2.5v8c0 1.38-1.12 2.5-2.5 2.5h-8c-1.38 0-2.5-1.12-2.5-2.5v-8c0-1.38 1.12-2.5 2.5-2.5z" />\n <path stroke-width=".814" d="m 10.240861,11.529149 c 0,0.58011 0.437448,1.039154 0.96002,1.035371 l 0.451635,-0.0032 c 0.522572,-0.0036 0.949379,-0.451477 0.949379,-1.032848 0,-0.581372 -0.426807,-1.065638 -0.949379,-1.065638 l -0.451635,3.4e-5 c -0.522572,3.9e-5 -0.949379,-0.4855273 -0.949379,-1.0656374 0,-0.5801104 0.426807,-1.0378931 0.949379,-1.0378931 l 0.451635,2.825e-4 c 0.522572,3.267e-4 0.951743,0.4577827 0.951743,1.0378931 M 6.8003972,11.529149 c 0,0.58011 0.4374474,1.039154 0.9600196,1.035371 l 0.46464,-0.0032 c 0.5225722,-0.0035 0.9363738,-0.451477 0.9363738,-1.031587 0,-0.580111 -0.4090724,-1.065638 -0.9316446,-1.065638 l -0.4693692,3.4e-5 c -0.5225722,3.8e-5 -0.949379,-0.4855272 -0.949379,-1.0656373 0,-0.5801104 0.4268068,-1.0378931 0.949379,-1.0378931 h 0.4516348 c 0.5225722,0 0.9635665,0.4577827 0.9635665,1.0378931 M 3.4072246,11.529149 c 0,0.58011 0.4374474,1.051765 0.9600196,1.051765 H 4.818879 c 0.5225722,0 0.949379,-0.456521 0.949379,-1.037893 m 0.01129,-2.1312747 c 0,-0.5801103 -0.4374474,-1.037893 -0.9600196,-1.037893 L 4.3678939,8.3741358 C 3.8453217,8.3744624 3.4078743,8.8420074 3.4078743,9.4233788 v 2.1186642" />\n </g>\n</svg>\n';case"scss":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#f4b8e4" stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.38c1.85 1.07 3.35.74 4.83-.2 1.5-.95 2.7-2.78 1.3-4.15-.7-.68-3.25-.8-5.62.19-2.36.99-4.59 3.02-4.74 4.11-.31 2.19 3.15 2.88 3.64 4.23s.28 1.98-.2 2.83c-.5.85-1.96 1.62-2.8.68-.83-.95 1.67-2.75 2.98-3.25 1.3-.5 3.1-.4 3.69.25.58.64-.07 1.79-.03 1.79" />\n</svg>\n';case"json":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M4.5 2.5H4c-.75 0-1.5.75-1.5 1.5v2c0 1.1-1 2-1.83 2 .83 0 1.83.9 1.83 2v2c0 .75.75 1.5 1.5 1.5h.5m7-11h.5c.75 0 1.5.75 1.5 1.5v2c0 1.1 1 2 1.83 2-.83 0-1.83.9-1.83 2v2c0 .74-.75 1.5-1.5 1.5h-.5m-6.5-3a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1m3 0a.5.5 0 100-1 .5.5 0 000 1" />\n</svg>\n';case"python":case"py":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#8caaee" d="M8.5 5.5h-3m6 0V3c0-.8-.7-1.5-1.5-1.5H7c-.8 0-1.5.7-1.5 1.5v2.5H3c-.8 0-1.5.7-1.5 1.5v2c0 .8.7 1.5 1.48 1.5" />\n <path stroke="#e5c890" d="M10.5 10.5h-3m-3 0V13c0 .8.7 1.5 1.5 1.5h3c.8 0 1.5-.7 1.5-1.5v-2.5H13c.8 0 1.5-.7 1.5-1.5V7c0-.8-.7-1.5-1.48-1.5H11.5c0 1.5 0 2-1 2h-2" />\n <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />\n <path stroke="#e5c890" d="m 8.5,12.5 v 0" />\n </g>\n</svg>\n';case"ruby":case"rb":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M1.5 9.06v2.5c.02.86.36 1.61.9 2.15 1.76 1.76 5.71.65 8.84-2.47 3.12-3.13 4.23-7.08 2.47-8.84a3.1 3.1 0 00-2.15-.9h-2.5M14.5 4l-.25 10.25L4 14.5m4.39-6.11c2.34-2.35 3.29-5.2 2.12-6.37S6.49 1.8 4.14 4.14C1.8 6.5.85 9.34 2.02 10.51s4.02.22 6.37-2.12M5.5 14.5l.25-3.75L11 11l-.25-5.25 3.75-.25" />\n</svg>\n';case"go":case"golang":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m15.48 8.06-4.85.48m4.85-.48a4.98 4.98 0 01-4.54 5.42 5 5 0 112.95-8.66l-1.7 1.84a2.5 2.5 0 00-4.18 2.06c.05.57.3 1.1.69 1.51.25.27 1 .83 1.78.82.8-.02 1.58-.25 2.07-.81 0 0 .8-.96.68-1.88M2.5 8.5l-2 .01m1.5 2h1.5m-2-3.99 2-.02" />\n</svg>\n';case"r":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />\n <path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />\n </g>\n</svg>\n';case"java":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#c6d0f5" d="M10.73 8.41c.57 3 1.59 5.83 2.77 7.09-6.63-3.45-9.76-1.75-10.5 0-.66-3.4-.54-5.74.09-7.78" />\n <path stroke="#e78284" d="M8.5 7c.63.34 1.82 1.07 2.24 1.41-.54-2.9-.64-5.96-.74-7.91-2.13.58-5.73 1.98-6.9 7.22.52-.69 1.72-1.05 2.4-1.22" />\n <path stroke="#e78284" d="M5.5 7A1.5 1.5 0 007 8.5 1.5 1.5 0 008.5 7 1.5 1.5 0 007 5.5 1.5 1.5 0 005.5 7" />\n </g>\n</svg>\n';case"kotlin":case"kt":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />\n <path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />\n <path stroke="#e78284" d="M2.5 13.5V8" />\n <path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />\n </g>\n</svg>\n';case"c":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 4.0559072,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441188,0 l -1.789955,-1.782586 c -1.75742,1.750224 -4.6067879,1.750224 -6.3642294,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642294,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.746003,-2.73472867 -7.1981359,-2.73472867 -9.944119,0 -2.7459858,2.7347089 -2.7459858,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n</svg>\n';case"cpp":case"c++":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="m 2.5559121,12.951629 c 2.7459832,2.734744 7.1981158,2.734744 9.9441189,0 l -1.789955,-1.782586 c -1.7574201,1.750224 -4.606788,1.750224 -6.3642295,0 -1.7574416,-1.7502236 -1.7574416,-4.587893 0,-6.338097 1.7574415,-1.750224 4.6068094,-1.750224 6.3642295,0 l 0.894977,-0.8912929 0.894978,-0.891293 c -2.7460031,-2.73472867 -7.198136,-2.73472867 -9.9441191,0 -2.74598585,2.7347089 -2.74598585,7.1685599 2e-7,9.9032689 z" clip-rule="evenodd" />\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M7.5 6v4M5.513524 7.9999996H9.51304M13.486476 5.9999996v4M11.5 7.9999992h3.999516" />\n</svg>\n';case"cs":case"csharp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" d="m 6.665625,1.0107144 c 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 7.18125,3.9983098 h 2.971875 L 10.5125,1.8326156 c 0.09063,-0.5437673 0.60625,-0.9125291 1.15,-0.8219012 0.54375,0.090628 0.9125,0.6062693 0.821875,1.1500367 L 12.18125,3.9983098 H 14 c 0.553125,0 1,0.4468892 1,1.0000319 0,0.5531426 -0.446875,1.0000319 -1,1.0000319 H 11.846875 L 11.18125,9.9985013 H 13 c 0.553125,0 1,0.4468897 1,1.0000317 0,0.553143 -0.446875,1.000032 -1,1.000032 H 10.846875 L 10.4875,14.164259 c -0.09063,0.543768 -0.60625,0.912529 -1.15,0.821902 -0.54375,-0.09063 -0.9125,-0.60627 -0.821875,-1.150037 l 0.30625,-1.834434 h -2.975 L 5.4875,14.167384 c -0.090625,0.543768 -0.60625,0.91253 -1.15,0.821902 C 3.79375,14.898658 3.425,14.383016 3.515625,13.839249 L 3.81875,11.998565 H 2 c -0.553125,0 -1,-0.446889 -1,-1.000032 C 1,10.445391 1.446875,9.9985013 2,9.9985013 H 4.153125 L 4.81875,5.9983736 H 3 c -0.553125,0 -1,-0.4468893 -1,-1.0000319 C 2,4.445199 2.446875,3.9983098 3,3.9983098 H 5.153125 L 5.5125,1.8326156 C 5.603125,1.2888483 6.11875,0.9200865 6.6625,1.0107144 Z M 6.846875,5.9983736 6.18125,9.9985013 H 9.153125 L 9.81875,5.9983736 Z" />\n</svg>\n';case"php":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M0.5,12.5 L0.5,13.24 C0.5,14 1.27360724,14.5 2,14.5 C2.9375516,14.5 3.5,14 3.5,13.2445661 L3.5,6.00089968 C3.5,4.28551107 4.99401107,2.52263547 7.14960413,2.5 C9.49387886,2.5 11,4.0579782 11,5.5 C11.1657296,8.48962302 9.57820404,9.63684469 7.49621582,10.5 L7.49621582,14.5 L15.4979764,14.5 L15.4979764,9 C15.5394484,8.36478228 14.9387379,7.15595371 14.1308258,6.5 C13.1942239,5.80827275 12.0584852,5.50253264 11,5.5 M11.5,14.5 L11.5,11.5 M6,6.5 C6.27614237,6.5 6.5,6.27614237 6.5,6 C6.5,5.72385763 6.27614237,5.5 6,5.5 C5.72385763,5.5 5.5,5.72385763 5.5,6 C5.5,6.27614237 5.72385763,6.5 6,6.5 Z" />\n</svg>\n';case"scala":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />\n</svg>\n';case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">\n <path d="M2 15.5c-.7 0-1.5-.8-1.5-1.5V5c0-.7.8-1.5 1.5-1.5h9c.7 0 1.5.8 1.5 1.5v9c0 .7-.8 1.5-1.5 1.5z" />\n <path d="m1.2 3.8 3.04-2.5S5.17.5 5.7.5h8.4c.66 0 1.4.73 1.4 1.4v7.73a2.7 2.7 0 01-.7 1.75l-2.68 3.51M3 8.5l3 2-3 2m4 0h2" />\n </g>\n</svg>\n';case"sql":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M8 6.5c3.59 0 6.5-1.4 6.5-2.68S11.59 1.5 8 1.5 1.5 2.54 1.5 3.82 4.41 6.5 8 6.5M14.5 8c0 .83-1.24 1.79-3.25 2.2s-4.49.41-6.5 0S1.5 8.83 1.5 8m13 4.18c0 .83-1.24 1.6-3.25 2-2.01.42-4.49.42-6.5 0-2.01-.4-3.25-1.17-3.25-2m0-8.3v8.3m13-8.3v8.3" />\n</svg>\n';case"yaml":case"yml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />\n</svg>\n';case"markdown":case"md":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round" d="m9.25 8.25 2.25 2.25 2.25-2.25M3.5 11V5.5l2.04 3 1.96-3V11m4-.5V5M1.65 2.5h12.7c.59 0 1.15.49 1.15 1v9c0 .51-.56 1-1.15 1H1.65c-.59 0-1.15-.49-1.15-1V3.58c0-.5.56-1.08 1.15-1.08" />\n</svg>\n';case"xml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 4.5 1 8 4.5 11.5M11.5 4.5 15 8 11.5 11.5M9.5 2 6.5 14" />\n</svg>\n';case"rust":case"rs":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n <path d="M15.5 9.5Q8 13.505.5 9.5l1-1-1-2 2-.5V4.5h2l.5-2 1.5 1 1.5-2 1.5 2 1.5-1 .5 2h2V6l2 .5-1 2z" />\n <path d="M6.5 7.5a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1m5 0a1 1 0 01-1 1 1 1 0 01-1-1 1 1 0 011-1 1 1 0 011 1M4 11.02c-.67.37-1.5.98-1.5 2.23s1.22 1.22 2 1.25v-2M12 11c.67.37 1.5 1 1.5 2.25s-1.22 1.22-2 1.25v-2" />\n </g>\n</svg>\n';case"swift":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />\n</svg>\n';case"perl":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />\n</svg>\n';case"lua":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />\n <path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />\n </g>\n</svg>\n';case"haskell":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />\n</svg>\n';case"erlang":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />\n <path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />\n </g>\n</svg>\n';case"clojure":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />\n <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />\n <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />\n <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />\n <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />\n <path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />\n </g>\n</svg>\n';case"vue":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">\n <path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />\n <path d="M12.05 1.73 8 9.28 3.95 1.73" />\n </g>\n</svg>\n';case"svg":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />\n</svg>\n';case"mermaid":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M1.5 2.5c0 6 2.25 5.75 4 7 .83.67 1.17 2 1 4h3c-.17-2 .17-3.33 1-4 1.75-1.25 4-1 4-7C12 2.5 10 3 8 7 6 3 4 2.5 1.5 2.5" />\n</svg>\n';case"dart":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />\n <path d="M3.5 11V3.5H11m-7.5 0 8 8" />\n </g>\n</svg>\n';case"assembly":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />\n</svg>\n';case"dockerfile":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />\n</svg>\n';case"fortran":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />\n</svg>\n';case"lisp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />\n <path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />\n </g>\n</svg>\n';case"ocaml":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n <path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />\n <path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />\n <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />\n </g>\n</svg>\n';case"prolog":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />\n</svg>\n';case"groovy":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />\n <path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />\n </g>\n</svg>\n';case"matlab":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />\n <path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />\n </g>\n</svg>\n';case"cobol":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />\n</svg>\n';case"ada":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>';case"julia":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n </g>\n</svg>\n';case"elixir":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />\n</svg>\n';case"vb.net":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>';case"nim":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />\n</svg>\n';case"crystal":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />\n</svg>\n';case"d":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>';case"applescript":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />\n</svg>\n';case"solidity":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />\n</svg>\n';case"objectivec":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>';case"objectivecpp":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>';case"terraform":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />\n</svg>\n';case"plain":case"text":case"":return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">\n <path d="M13.5 6.5v6a2 2 0 01-2 2h-7a2 2 0 01-2-2v-9c0-1.1.9-2 2-2h4.01" />\n <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />\n </g>\n</svg>\n';default:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16">\x3c!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --\x3e<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m10 9l-3 3l3 3m4 0l3-3l-3-3"/><rect width="18" height="18" x="3" y="3" rx="2"/></g></svg>'}}const Lt={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#",php:"PHP",sh:"Shell",bash:"Bash",sql:"SQL",yaml:"YAML",md:"Markdown","":"Plain Text",plain:"Plain Text"};function Ht(e){try{if("undefined"!=typeof globalThis&&"function"==typeof globalThis.requestAnimationFrame)return globalThis.requestAnimationFrame(e)}catch(n){}return globalThis.setTimeout(e,0)}const Et=()=>import("mermaid");let Nt=null,Dt=Et;function zt(e){Dt=e,Nt=null}function At(e){zt(null!=e?e:Et)}function Pt(){zt(null)}function Vt(){return"function"==typeof Dt}let Rt=null,Ot=null;const Kt=/* @__PURE__ */new Map;let Ft=5,Wt=!1;function Xt(e){Wt=!!e}function Zt(e){Number.isFinite(e)&&e>0&&(Ft=Math.floor(e))}function qt(){return{inFlight:Kt.size,max:Ft}}const Yt="WORKER_BUSY",Ut="MERMAID_DISABLED";function Gt(e){Rt=e,Ot=null;const n=e;Rt.onmessage=e=>{if(Rt!==n)return;const{id:t,ok:o,result:l,error:r}=e.data,a=Kt.get(t);a&&(!1===o||r?a.reject(new Error(r||"Unknown error")):a.resolve(l))},Rt.onerror=e=>{var t,o;if(Rt===n)if(0!==Kt.size){try{Wt?console.error("[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker error:",(null==e?void 0:e.message)||e)}catch(l){}for(const[n,t]of Kt.entries())t.reject(new Error(`Worker error: ${e.message}`));Kt.clear()}else null==(t=console.debug)||t.call(console,"[mermaidWorkerClient] Worker error (no pending):",(null==e?void 0:e.message)||e)},Rt.onmessageerror=e=>{var t,o;if(Rt===n)if(0!==Kt.size){try{Wt?console.error("[mermaidWorkerClient] Worker messageerror:",e):null==(o=console.debug)||o.call(console,"[mermaidWorkerClient] Worker messageerror:",e)}catch(l){}for(const[e,n]of Kt.entries())n.reject(new Error("Worker messageerror"));Kt.clear()}else null==(t=console.debug)||t.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",e)}}function Jt(){var e;if(Rt)try{for(const[e,n]of Kt.entries())n.reject(new Error("Worker cleared"));Kt.clear(),null==(e=Rt.terminate)||e.call(Rt)}catch(n){}Rt=null,Ot=null}function Qt(e,n,t=1400){if(!Vt()){const e=new Error("Mermaid rendering disabled");return e.name="MermaidDisabled",e.code=Ut,Promise.reject(e)}if(Ot)return Promise.reject(Ot);const o=Rt||(Ot=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Ot.name="WorkerInitError",Ot.code="WORKER_INIT_ERROR",null);if(!o)return Promise.reject(Ot);if(Kt.size>=Ft){const e=new Error("Worker busy");return e.name="WorkerBusy",e.code=Yt,e.inFlight=Kt.size,e.max=Ft,Promise.reject(e)}return new Promise((l,r)=>{const a=Math.random().toString(36).slice(2);let i,s=!1;const u=()=>{s||(s=!0,null!=i&&globalThis.clearTimeout(i),Kt.delete(a))},c={resolve:e=>{u(),l(e)},reject:e=>{u(),r(e)}};Kt.set(a,c);try{o.postMessage({id:a,action:e,payload:n})}catch(d){return Kt.delete(a),void r(d)}i=globalThis.setTimeout(()=>{const e=new Error("Worker call timed out");e.name="WorkerTimeout",e.code="WORKER_TIMEOUT";const n=Kt.get(a);n&&n.reject(e)},t)})}function eo(e,n,t=1400){return u(this,null,function*(){try{return yield Qt("canParse",{code:e,theme:n},t)}catch(o){return Promise.reject(o)}})}function no(e,n,t=1400){return u(this,null,function*(){try{return yield Qt("findPrefix",{code:e,theme:n},t)}catch(o){return Promise.reject(o)}})}function to(){if(Rt)try{for(const[e,n]of Kt.entries())n.reject(new Error("Worker terminated"));Kt.clear(),Rt.terminate()}finally{Rt=null}}const oo={key:0},lo={key:1,class:"flex items-center space-x-2 overflow-hidden"},ro=["src"],ao={key:2},io={class:"flex items-center space-x-1"},so={class:"flex items-center space-x-1"},uo={key:4},co={key:5,class:"flex items-center space-x-1"},vo=["aria-pressed"],mo={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},ho={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},po=["disabled"],go=["disabled"],fo={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},wo={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},yo={key:1,class:"relative"},ko={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},xo={class:"flex items-center gap-2 backdrop-blur rounded-lg"},bo={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},Mo=/* @__PURE__ */te(/* @__PURE__ */m({__name:"MermaidBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},workerTimeoutMs:{default:1400},parseTimeoutMs:{default:1800},renderTimeoutMs:{default:2500},fullRenderTimeoutMs:{default:4e3},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0},enableWheelZoom:{type:Boolean,default:!1},isStrict:{type:Boolean,default:!1}},emits:["copy","export","openModal","toggleMode"],setup(e,{emit:n}){var t,o;const l=e,r=n,a={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},c=M(!1),d=L(()=>l.isStrict?"strict":"loose"),v=L(()=>({startOnLoad:!1,securityLevel:d.value,dompurifyConfig:"strict"===d.value?a:void 0,flowchart:"strict"===d.value?{htmlLabels:!1}:void 0})),m=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],g=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function k(e){if(!e)return"";const n=e.trim();return g.test(n)?n:""}function x(e){if(e)try{e.replaceChildren()}catch(n){e.innerHTML=""}}function I(e,n){if(!e)return"";if("strict"===d.value)return function(e,n){if(!e)return"";try{e.replaceChildren()}catch(o){e.innerHTML=""}const t=function(e){if("undefined"==typeof window||"undefined"==typeof DOMParser)return null;if(!e)return null;const n=e.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),t=(new DOMParser).parseFromString(n,"image/svg+xml").documentElement;if(!t||"svg"!==t.nodeName.toLowerCase())return null;const o=t;return function(e){const n=/* @__PURE__ */new Set(["script"]),t=[e,...Array.from(e.querySelectorAll("*"))];for(const o of t){if(n.has(o.tagName.toLowerCase())){o.remove();continue}const e=Array.from(o.attributes);for(const n of e){const e=n.name;if(/^on/i.test(e))o.removeAttribute(e);else{if("style"===e&&n.value){const t=n.value;if(m.some(e=>e.test(t))){o.removeAttribute(e);continue}}if(("href"===e||"xlink:href"===e)&&n.value){const t=k(n.value);if(!t){o.removeAttribute(e);continue}t!==n.value&&o.setAttribute(e,t)}}}}}(o),o}(n);return t?(e.appendChild(t),e.innerHTML):""}(e,n);try{e.replaceChildren()}catch(t){e.innerHTML=""}if(n)try{e.insertAdjacentHTML("afterbegin",n)}catch(t){e.innerHTML=n}return e.innerHTML}const{t:j}=Oe();function $(){return u(this,null,function*(){try{const e=yield function(){return u(this,null,function*(){if(Nt)return Nt;const e=Dt;if(!e)return null;let n;try{n=yield e()}catch(t){if(e===Et)throw new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.');throw t}return n?(Nt=function(e){if(!e)return e;const n=e&&e.default?e.default:e;if(n&&("function"==typeof n.render||"function"==typeof n.parse||"function"==typeof n.initialize))return n;if(n&&n.mermaidAPI&&("function"==typeof n.mermaidAPI.render||"function"==typeof n.mermaidAPI.parse)){const e=n.mermaidAPI;return s(i({},n),{render:e.render.bind(e),parse:e.parse?e.parse.bind(e):void 0,initialize:t=>"function"==typeof n.initialize?n.initialize(t):e.initialize?e.initialize(t):void 0})}return e.mermaid&&"function"==typeof e.mermaid.render?e.mermaid:n}(n),function(e){if(e)try{const n=null==e?void 0:e.initialize;e.initialize=t=>{const o=i({suppressErrorRendering:!0},t||{});return"function"==typeof n?n.call(e,o):(null==e?void 0:e.mermaidAPI)&&"function"==typeof e.mermaidAPI.initialize?e.mermaidAPI.initialize(o):void 0}}catch(n){}}(Nt),Nt):null})}();return c.value=!!e,e}catch(e){throw c.value=!1,e}})}"undefined"!=typeof window&&u(null,null,function*(){var e;try{const n=yield $();if(!n)return;null==(e=null==n?void 0:n.initialize)||e.call(n,i({},v.value))}catch(n){c.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",n)}});const S=M(!1),A=M(!1),P=M(),V=M(),O=M(),K=M(null),W=Fe(),X=M(null),Z=M("undefined"==typeof window),ne=M(),te=L(()=>l.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode")),oe=M(1),le=M(0),re=M(0),ae=M(!1),ie=M({x:0,y:0}),se=M(!1),ue=M(!1),ce=M(!1),de=M(null),ve=M(0),me=M(!1);let he=null,pe=null,ge=0;const fe=null!=(t=globalThis.requestIdleCallback)?t:(e,n)=>setTimeout(()=>e({didTimeout:!0}),16),we=function(){let e=null;return(...n)=>{e&&clearTimeout(e),e=setTimeout(()=>(()=>{fe(()=>{bn()},{timeout:500})})(...n),300)}}();function ye(){null!=pe&&(globalThis.clearTimeout(pe),pe=null)}function ke(e=600){if("undefined"==typeof globalThis)return;const n=Math.max(0,e);ye(),pe=globalThis.setTimeout(()=>{pe=null,l.loading||ce.value||!Z.value?ke(Math.min(1200,Math.max(300,1.2*n))):we()},n)}const xe=M("360px");let be=null;const Me=M(!1),_e=M(!1),Ce=M({}),Be=M(null),Te=M(""),Ie=M(0);let je=null;const $e=M(!1),Se=M({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),Le=L(()=>l.enableWheelZoom?{wheel:pn}:{}),He=L(()=>{var e,n,t,o;return{worker:null!=(e=l.workerTimeoutMs)?e:1400,parse:null!=(n=l.parseTimeoutMs)?n:1800,render:null!=(t=l.renderTimeoutMs)?t:2500,fullRender:null!=(o=l.fullRenderTimeoutMs)?o:4e3}}),Ee=null!=(o=globalThis.cancelIdleCallback)?o:e=>clearTimeout(e);let Ne=null,De=null,ze=!1,Ve=800,Re=null,Ke=0,We=!0;function Xe(e,n){const t=null==n?void 0:n.timeoutMs,o=null==n?void 0:n.signal;if(null==o?void 0:o.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let l=null,r=!1,a=null;return new Promise((n,i)=>{const s=()=>{null!=l&&clearTimeout(l),a&&o&&o.removeEventListener("abort",a)};t&&t>0&&(l=globalThis.setTimeout(()=>{r||(r=!0,s(),i(new Error("Operation timed out")))},t)),o&&(a=()=>{r||(r=!0,s(),i(new DOMException("Aborted","AbortError")))},o.addEventListener("abort",a)),e().then(e=>{r||(r=!0,s(),n(e))}).catch(e=>{r||(r=!0,s(),i(e))})})}function Ze(e){if("undefined"==typeof document)return;if(!V.value)return;const n=document.createElement("div");n.className="text-red-500 p-4",n.textContent="Failed to render diagram: ";const t=document.createElement("span");t.textContent=e instanceof Error?e.message:"Unknown error",n.appendChild(t),x(V.value),V.value.appendChild(n),xe.value="360px",$e.value=!0,Mn()}function qe(e){return!e||e.disabled}function Ye(e,n,t="top"){if(qe(e.currentTarget))return;const o=e,r=null!=(null==o?void 0:o.clientX)&&null!=(null==o?void 0:o.clientY)?{x:o.clientX,y:o.clientY}:void 0;Ae(e.currentTarget,n,t,!1,r,l.isDark)}function Ue(){Pe()}function Ge(e){if(qe(e.currentTarget))return;const n=S.value?j("common.copied")||"Copied":j("common.copy")||"Copy",t=e,o=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;Ae(e.currentTarget,n,"top",!1,o,l.isDark)}function Je(e,n){const t=`%%{init: {"theme": "${"dark"===n?"dark":"default"}"}}%%\n`;return e.trimStart().startsWith("%%{")?e:t+e}function Qe(){return We&&!se.value&&!Me.value&&!$e.value}function en(e){const n=e.split(/\r?\n/);for(;n.length>0;){const e=n[n.length-1].trimEnd();if(""!==e){if(!(/^[-=~>|<\s]+$/.test(e.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(e)||/[-|><]$/.test(e)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(e)))break;n.pop()}else n.pop()}return n.join("\n")}function nn(e,n,t){return u(this,null,function*(){var o;try{return yield eo(e,n,null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.worker)}catch(l){return yield function(e,n,t){return u(this,null,function*(){var o,l;const r=yield $();if(!r)return;const a=r,i=Je(e,n);if("function"==typeof a.parse)return yield Xe(()=>a.parse(i),{timeoutMs:null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.parse,signal:null==t?void 0:t.signal}),!0;const s=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Xe(()=>r.render(s,i),{timeoutMs:null!=(l=null==t?void 0:t.timeoutMs)?l:He.value.render,signal:null==t?void 0:t.signal}),!0})}(e,n,t)}})}"undefined"!=typeof window&&C(()=>P.value,e=>{var n;if(null==(n=X.value)||n.destroy(),X.value=null,!e)return void(Z.value=!1);const t=W(e,{rootMargin:"400px"});X.value=t,Z.value=t.isVisible.value,t.whenVisible.then(()=>{Z.value=!0})},{immediate:!0}),B(()=>{var e;null==(e=X.value)||e.destroy(),X.value=null});const tn=L(()=>se.value||ce.value||A.value);function on(e){if(!P.value||!V.value)return;const n=V.value.querySelector("svg");if(!n)return;let t=0,o=0;const l=n.getAttribute("viewBox"),r=n.getAttribute("width"),a=n.getAttribute("height");if(l){const e=l.split(" ");4===e.length&&(t=Number.parseFloat(e[2]),o=Number.parseFloat(e[3]))}if(t&&o||r&&a&&(t=Number.parseFloat(r),o=Number.parseFloat(a)),Number.isNaN(t)||Number.isNaN(o)||t<=0||o<=0)try{const e=n.getBBox();e&&e.width>0&&e.height>0&&(t=e.width,o=e.height)}catch(i){return void console.error("Failed to get SVG BBox:",i)}if(t>0&&o>0){const n=o/t;let l=(null!=e?e:P.value.clientWidth)*n;l>o&&(l=o),xe.value=`${l}px`}}const ln=M(!1),rn=L(()=>({transform:`translate(${le.value}px, ${re.value}px) scale(${oe.value})`}));function an(e){"Escape"===e.key&&ln.value&&sn()}function sn(){if(ln.value=!1,O.value&&x(O.value),K.value=null,"undefined"!=typeof document)try{document.body.style.overflow=""}catch(e){}if("undefined"!=typeof window)try{window.removeEventListener("keydown",an)}catch(e){}}function un(){oe.value<3&&(oe.value+=.1)}function cn(){oe.value>.5&&(oe.value-=.1)}function dn(){oe.value=1,le.value=0,re.value=0}function vn(e){ae.value=!0,e instanceof MouseEvent?ie.value={x:e.clientX-le.value,y:e.clientY-re.value}:ie.value={x:e.touches[0].clientX-le.value,y:e.touches[0].clientY-re.value}}function mn(e){if(!ae.value)return;let n,t;e instanceof MouseEvent?(n=e.clientX,t=e.clientY):(n=e.touches[0].clientX,t=e.touches[0].clientY),le.value=n-ie.value.x,re.value=t-ie.value.y}function hn(){ae.value=!1}function pn(e){if(l.enableWheelZoom&&(e.ctrlKey||e.metaKey)){if(e.preventDefault(),!P.value)return;const n=P.value.getBoundingClientRect(),t=e.clientX-n.left,o=e.clientY-n.top,l=t-n.width/2,r=o-n.height/2,a=(l-le.value)/oe.value,i=(r-re.value)/oe.value,s=.01,u=-e.deltaY*s,c=Math.min(Math.max(oe.value+u,.5),3);c!==oe.value&&(le.value=l-a*c,re.value=r-i*c,oe.value=c)}}function gn(){return u(this,null,function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(te.value)),S.value=!0,r("copy",te.value),setTimeout(()=>{S.value=!1},1e3)}catch(e){console.error("Failed to copy:",e)}})}function fn(){var e;const n=null==(e=V.value)?void 0:e.querySelector("svg");if(!n)return void console.error("SVG element not found");const t=(new XMLSerializer).serializeToString(n),o={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:n,svgString:t};r("export",o),o.defaultPrevented||function(e,n=null){u(this,null,function*(){try{const o=null!=n?n:(new XMLSerializer).serializeToString(e),l=new Blob([o],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(l);if("undefined"!=typeof document){const e=document.createElement("a");e.href=r,e.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(e),e.click(),document.body.removeChild(e)}catch(t){}URL.revokeObjectURL(r)}}catch(o){console.error("Failed to export SVG:",o)}})}(n,t)}function wn(){var e,n;const t=null!=(n=null==(e=V.value)?void 0:e.querySelector("svg"))?n:null,o=t?(new XMLSerializer).serializeToString(t):null,l={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:t,svgString:o};r("openModal",l),l.defaultPrevented||function(){if(ln.value=!0,"undefined"!=typeof document)try{document.body.style.overflow="hidden"}catch(e){}if("undefined"!=typeof window)try{window.addEventListener("keydown",an)}catch(e){}q(()=>{if(P.value&&O.value){const e=P.value.cloneNode(!0);e.classList.add("fullscreen");const n=e.querySelector("[data-mermaid-wrapper]");n&&(K.value=n,n.style.transform=rn.value.transform),x(O.value),O.value.appendChild(e)}})}()}function yn(e){const n={payload:{type:"toggle-mode",target:e},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};r("toggleMode",e,n),n.defaultPrevented||kn(e)}function kn(e){return u(this,null,function*(){const n=ne.value;if(!n)return ue.value=!0,void(se.value="source"===e);const t=n.getBoundingClientRect().height;n.style.height=`${t}px`,n.style.overflow="hidden",ue.value=!0,se.value="source"===e,yield q();const o=n.scrollHeight;n.style.transition="height 180ms ease",n.offsetHeight,n.style.height=`${o}px`;const l=()=>{n.style.transition="",n.style.height="",n.style.overflow="",n.removeEventListener("transitionend",r)};function r(){l()}n.addEventListener("transitionend",r),setTimeout(()=>l(),220)})}function xn(){return u(this,null,function*(){return ce.value?de.value:V.value||(yield q(),V.value)?(ce.value=!0,de.value=u(null,null,function*(){var e;V.value&&(V.value.style.opacity="0");try{const n=yield $();if(!n)return;const t=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;Me.value||_e.value||null==(e=n.initialize)||e.call(n,s(i({},v.value),{dompurifyConfig:i({},a)}));const o=function(e,n=te.value){const t=n,o=`%%{init: {"theme": "${"dark"===e?"dark":"default"}"}}%%\n`;return t.trim().startsWith("%%{")?t:o+t}(l.isDark?"dark":"light"),r=yield Xe(()=>n.render(t,o),{timeoutMs:He.value.fullRender}),u=null==r?void 0:r.svg;if(V.value){const e=I(V.value,u);Me.value||_e.value||(on(),Me.value=!0,Se.value={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value});const n=l.isDark?"dark":"light";e&&(Ce.value[n]=e),_e.value&&(_e.value=!1),$e.value=!1,ge=0,ye()}}catch(n){const e=function(e){const n="string"==typeof e?e:"string"==typeof(null==e?void 0:e.message)?e.message:"";return"string"==typeof n&&/timed out/i.test(n)}(n),t=ge+1;e&&t<=3?(ge=t,ke(Math.min(1200,600*t))):(ge=0,ye(),console.error("Failed to render mermaid diagram:",n),!1===l.loading&&Ze(n))}finally{yield q(),V.value&&(V.value.style.opacity="1"),ce.value=!1,de.value=null}}),de.value):void console.warn("Mermaid container not ready")})}function bn(){return u(this,null,function*(){var e,n;const t=Date.now(),o=++Ie.value;je&&je.abort(),je=new AbortController;const r=je.signal,a=l.isDark?"dark":"light",i=te.value,s=i.replace(/\s+/g,"");if(!i.trim())return V.value&&x(V.value),Be.value=null,Te.value="",void($e.value=!1);if(s===Te.value)return;try{const c=yield function(e,n,t){return u(this,null,function*(){var o;try{if(yield nn(e,n,t))return{fullOk:!0,prefixOk:!1}}catch(r){if("AbortError"===(null==r?void 0:r.name))throw r}let l=en(e);if(l&&l.trim()&&l!==e)try{try{const r=yield no(e,n,null!=(o=null==t?void 0:t.timeoutMs)?o:He.value.worker);r&&r.trim()&&(l=r)}catch(r){}if(yield nn(l,n,t))return{fullOk:!1,prefixOk:!0,prefix:l}}catch(r){if("AbortError"===(null==r?void 0:r.name))throw r}return{fullOk:!1,prefixOk:!1}})}(i,a,{signal:r,timeoutMs:He.value.worker});if(c.fullOk)return yield xn(),void(Ie.value===o&&(Be.value=null!=(n=null==(e=V.value)?void 0:e.innerHTML)?n:null,Te.value=s,$e.value=!1));const d=Ke&&t<=Ke;if(c.prefixOk&&c.prefix&&Qe()&&!d)return void(yield function(e){return u(this,null,function*(){if(Qe()&&(V.value||(yield q(),V.value))&&!ce.value){ce.value=!0;try{const n=yield $();if(!n)return;const t=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,o=l.isDark?"dark":"light",r=en(e),a=Je(r&&r.trim()?r:e,o);V.value&&(V.value.style.opacity="0");const i=yield Xe(()=>n.render(t,a),{timeoutMs:He.value.render}),s=null==i?void 0:i.svg;V.value&&s&&(I(V.value,s),on())}catch(n){}finally{yield q(),V.value&&(V.value.style.opacity="1"),ce.value=!1}}})}(c.prefix))}catch(d){if("AbortError"===(null==d?void 0:d.name))return}if(Ie.value!==o)return;if($e.value)return;const c=Ce.value[a];c&&V.value&&I(V.value,c)})}function Mn(){ze&&(ze=!1,Ve=800,We=!1,Re&&(Re.abort(),Re=null),Ne&&(globalThis.clearTimeout(Ne),Ne=null),De&&(Ee(De),De=null),Ke=Date.now())}function _n(){if(Mn(),je){try{je.abort()}catch(e){}je=null}if(Re){try{Re.abort()}catch(e){}Re=null}to(),ye(),ge=0}function Cn(e=800){ze&&(Ne&&globalThis.clearTimeout(Ne),Ne=globalThis.setTimeout(()=>{De=fe(()=>u(null,null,function*(){if(!ze)return;if(se.value||Me.value)return void Mn();const e=l.isDark?"dark":"light",n=te.value;if(n.trim()){Re&&Re.abort(),Re=new AbortController;try{if((yield nn(n,e,{signal:Re.signal,timeoutMs:He.value.worker}))&&(yield xn(),Me.value))return void Mn()}catch(t){}Ve=Math.min(Math.floor(1.5*Ve),4e3),Cn(Ve)}else Cn(Ve)}),{timeout:500})},e))}function Bn(){ze||se.value||Me.value||(ze=!0,Ke=0,We=!0,Cn(500))}C(rn,e=>{ln.value&&K.value&&(K.value.style.transform=e.transform)},{immediate:!0}),C(()=>te.value,()=>{Me.value=!1,Ce.value={},we(),!se.value&&c.value&&Bn(),function(){if(!se.value)return;if(!c.value)return;const e=te.value.length;e!==ve.value&&(me.value=!0,ve.value=e,he&&clearTimeout(he),he=setTimeout(()=>{me.value&&se.value&&te.value.trim()&&(me.value=!1,kn("preview"))},500))}()}),C(()=>l.isDark,()=>u(null,null,function*(){if(!Me.value)return;if($e.value)return;const e=l.isDark?"dark":"light",n=Ce.value[e];if(n)return void(V.value&&I(V.value,n));const t={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value},o=1!==oe.value||0!==le.value||0!==re.value;_e.value=!0,o&&(oe.value=1,le.value=0,re.value=0,yield q()),yield xn(),o&&(yield q(),oe.value=t.zoom,le.value=t.translateX,re.value=t.translateY,xe.value=t.containerHeight,Se.value=t)})),C(()=>se.value,e=>u(null,null,function*(){if(e)Mn(),Me.value&&(Se.value={zoom:oe.value,translateX:le.value,translateY:re.value,containerHeight:xe.value});else{if($e.value)return;const e=l.isDark?"dark":"light";if(Me.value&&Ce.value[e])return yield q(),V.value&&I(V.value,Ce.value[e]),oe.value=Se.value.zoom,le.value=Se.value.translateX,re.value=Se.value.translateY,void(xe.value=Se.value.containerHeight);if(yield q(),!c.value)return;yield bn(),Bn()}})),C(()=>l.loading,(e,n)=>u(null,null,function*(){if(!0===n&&!1===e){const e=te.value.trim();if(!e)return _n();const n=l.isDark?"dark":"light",o=e.replace(/\s+/g,"");if(Me.value&&o===Te.value)return yield q(),V.value&&!V.value.querySelector("svg")&&Ce.value[n]&&I(V.value,Ce.value[n]),void _n();try{yield nn(e,n,{timeoutMs:He.value.worker}),yield xn(),Te.value=o,$e.value=!1,_n()}catch(t){_n(),Ze(t)}}})),C(P,e=>{be&&be.disconnect(),!e||Me.value||_e.value||(be=new ResizeObserver(e=>{e&&e.length>0&&!Me.value&&!_e.value&&Ht(()=>{on(e[0].contentRect.width)})}),be.observe(e))},{immediate:!0}),_(()=>u(null,null,function*(){yield q(),ue.value||(se.value=!c.value),Z.value&&(we(),ve.value=te.value.length)})),C(()=>c.value,e=>{ue.value||(se.value=!e)}),C(()=>Z.value,e=>{e&&(Me.value||(we(),ve.value=te.value.length),l.loading||Me.value||we())},{immediate:!1}),G(()=>{he&&clearTimeout(he),be&&be.disconnect(),je&&(je.abort(),je=null),to(),Mn(),ye()}),C(()=>A.value,e=>u(null,null,function*(){e?(Mn(),je&&je.abort()):Me.value||(yield q(),we(),se.value||Bn())}),{immediate:!1});const Tn=L(()=>l.isDark?"mermaid-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"mermaid-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700");return(e,n)=>(p(),h("div",{class:T(["my-4 rounded-lg border overflow-hidden shadow-sm",[l.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":l.loading}]])},[l.showHeader?(p(),h("div",{key:0,class:T(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",l.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[e.$slots["header-left"]?(p(),h("div",oo,[z(e.$slots,"header-left",{},void 0,!0)])):(p(),h("div",lo,[y("img",{src:w("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%20width='16'%20height='16'%3e%3cpath%20fill='none'%20stroke='%23ca9ee6'%20stroke-linecap='round'%20stroke-linejoin='round'%20d='M1.5%202.5c0%206%202.25%205.75%204%207%20.83.67%201.17%202%201%204h3c-.17-2%20.17-3.33%201-4%201.75-1.25%204-1%204-7C12%202.5%2010%203%208%207%206%203%204%202.5%201.5%202.5'%20/%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,ro),y("span",{class:T(["text-sm font-medium font-mono truncate",l.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),e.$slots["header-center"]?(p(),h("div",ao,[z(e.$slots,"header-center",{},void 0,!0)])):l.showModeToggle&&c.value?(p(),h("div",{key:3,class:T(["flex items-center space-x-1 rounded-md p-0.5",l.isDark?"bg-gray-700":"bg-gray-100"])},[y("button",{class:T(["px-2.5 py-1 text-xs rounded transition-colors",[se.value?l.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":l.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:n[0]||(n[0]=()=>yn("preview")),onMouseenter:n[1]||(n[1]=e=>Ye(e,w(j)("common.preview")||"Preview")),onFocus:n[2]||(n[2]=e=>Ye(e,w(j)("common.preview")||"Preview")),onMouseleave:Ue,onBlur:Ue},[y("div",io,[n[21]||(n[21]=y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),y("circle",{cx:"12",cy:"12",r:"3"})])],-1)),y("span",null,b(w(j)("common.preview")||"Preview"),1)])],34),y("button",{class:T(["px-2.5 py-1 text-xs rounded transition-colors",[se.value?l.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":l.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:n[3]||(n[3]=()=>yn("source")),onMouseenter:n[4]||(n[4]=e=>Ye(e,w(j)("common.source")||"Source")),onFocus:n[5]||(n[5]=e=>Ye(e,w(j)("common.source")||"Source")),onMouseleave:Ue,onBlur:Ue},[y("div",so,[n[22]||(n[22]=y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m16 18l6-6l-6-6M8 6l-6 6l6 6"})],-1)),y("span",null,b(w(j)("common.source")||"Source"),1)])],34)],2)):H("",!0),e.$slots["header-right"]?(p(),h("div",uo,[z(e.$slots,"header-right",{},void 0,!0)])):(p(),h("div",co,[l.showCollapseButton?(p(),h("button",{key:0,class:T(Tn.value),"aria-pressed":A.value,onClick:n[6]||(n[6]=e=>A.value=!A.value),onMouseenter:n[7]||(n[7]=e=>Ye(e,A.value?w(j)("common.expand")||"Expand":w(j)("common.collapse")||"Collapse")),onFocus:n[8]||(n[8]=e=>Ye(e,A.value?w(j)("common.expand")||"Expand":w(j)("common.collapse")||"Collapse")),onMouseleave:Ue,onBlur:Ue},[(p(),h("svg",{style:D({rotate:A.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...n[23]||(n[23]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,vo)):H("",!0),l.showCopyButton?(p(),h("button",{key:1,class:T(Tn.value),onClick:gn,onMouseenter:n[9]||(n[9]=e=>Ge(e)),onFocus:n[10]||(n[10]=e=>Ge(e)),onMouseleave:Ue,onBlur:Ue},[S.value?(p(),h("svg",ho,[...n[25]||(n[25]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(p(),h("svg",mo,[...n[24]||(n[24]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],34)):H("",!0),l.showExportButton&&c.value?(p(),h("button",{key:2,class:T(`${Tn.value} ${tn.value?"opacity-50 cursor-not-allowed":""}`),disabled:tn.value,onClick:fn,onMouseenter:n[11]||(n[11]=e=>Ye(e,w(j)("common.export")||"Export")),onFocus:n[12]||(n[12]=e=>Ye(e,w(j)("common.export")||"Export")),onMouseleave:Ue,onBlur:Ue},[...n[26]||(n[26]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),y("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,po)):H("",!0),l.showFullscreenButton&&c.value?(p(),h("button",{key:3,class:T(`${Tn.value} ${tn.value?"opacity-50 cursor-not-allowed":""}`),disabled:tn.value,onClick:wn,onMouseenter:n[13]||(n[13]=e=>Ye(e,ln.value?w(j)("common.minimize")||"Minimize":w(j)("common.open")||"Open")),onFocus:n[14]||(n[14]=e=>Ye(e,ln.value?w(j)("common.minimize")||"Minimize":w(j)("common.open")||"Open")),onMouseleave:Ue,onBlur:Ue},[ln.value?(p(),h("svg",wo,[...n[28]||(n[28]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])])):(p(),h("svg",fo,[...n[27]||(n[27]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])]))],42,go)):H("",!0)]))],2)):H("",!0),Y(y("div",{ref_key:"modeContainerRef",ref:ne},[se.value?(p(),h("div",{key:0,class:T(["p-4",l.isDark?"bg-gray-900":"bg-gray-50"])},[y("pre",{class:T(["text-sm font-mono whitespace-pre-wrap",l.isDark?"text-gray-300":"text-gray-700"])},b(te.value),3)],2)):(p(),h("div",yo,[l.showZoomControls?(p(),h("div",ko,[y("div",xo,[y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:un,onMouseenter:n[15]||(n[15]=e=>Ye(e,w(j)("common.zoomIn")||"Zoom in")),onFocus:n[16]||(n[16]=e=>Ye(e,w(j)("common.zoomIn")||"Zoom in")),onMouseleave:Ue,onBlur:Ue},[...n[29]||(n[29]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:cn,onMouseenter:n[17]||(n[17]=e=>Ye(e,w(j)("common.zoomOut")||"Zoom out")),onFocus:n[18]||(n[18]=e=>Ye(e,w(j)("common.zoomOut")||"Zoom out")),onMouseleave:Ue,onBlur:Ue},[...n[30]||(n[30]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:dn,onMouseenter:n[19]||(n[19]=e=>Ye(e,w(j)("common.resetZoom")||"Reset zoom")),onFocus:n[20]||(n[20]=e=>Ye(e,w(j)("common.resetZoom")||"Reset zoom")),onMouseleave:Ue,onBlur:Ue},b(Math.round(100*oe.value))+"% ",35)])])):H("",!0),y("div",F({ref_key:"mermaidContainer",ref:P,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",l.isDark?"bg-gray-900":"bg-gray-50"],style:{height:xe.value}},J(Le.value,!0),{onMousedown:vn,onMousemove:mn,onMouseup:hn,onMouseleave:hn,onTouchstartPassive:vn,onTouchmovePassive:mn,onTouchendPassive:hn}),[y("div",{"data-mermaid-wrapper":"",class:T(["absolute inset-0 cursor-grab",{"cursor-grabbing":ae.value}]),style:D(rn.value)},[y("div",{ref_key:"mermaidContent",ref:V,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(p(),R(Q,{to:"body"},[f(E,{name:"mermaid-dialog",appear:""},{default:N(()=>[ln.value?(p(),h("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:ee(sn,["self"])},[y("div",{class:T(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",l.isDark?"bg-gray-900":"bg-white"])},[y("div",bo,[y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:un},[...n[31]||(n[31]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:cn},[...n[32]||(n[32]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("circle",{cx:"11",cy:"11",r:"8"}),y("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),y("button",{class:T(["p-2 text-xs rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:dn},b(Math.round(100*oe.value))+"% ",3),y("button",{class:T(["inline-flex items-center justify-center p-2 rounded transition-colors",[l.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:sn},[...n[33]||(n[33]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),y("div",F({ref_key:"modalContent",ref:O,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},J(Le.value,!0),{onMousedown:vn,onMousemove:mn,onMouseup:hn,onMouseleave:hn,onTouchstartPassive:vn,onTouchmovePassive:mn,onTouchendPassive:hn}),null,16)],2)])):H("",!0)]),_:1})]))]))],512),[[U,!A.value]])],2))}}),[["__scopeId","data-v-3636e700"]]);Mo.install=e=>{e.component(Mo.__name,Mo)};const _o=/* @__PURE__ */Object.freeze(/* @__PURE__ */Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"})),Co={key:0,class:"code-block-header flex justify-between items-center px-4 py-2.5 border-b border-gray-400/5",style:{color:"var(--vscode-editor-foreground)","background-color":"var(--vscode-editor-background)"}},Bo={class:"flex items-center space-x-2"},To=["innerHTML"],Io={class:"text-sm font-medium font-mono"},jo={class:"flex items-center space-x-2"},$o=["aria-pressed"],So=["disabled"],Lo=["disabled"],Ho=["disabled"],Eo=["aria-label"],No={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},Do={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},zo=["aria-pressed"],Ao={key:0,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Po={key:1,xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"0.75rem",height:"0.75rem",viewBox:"0 0 24 24"},Vo=["aria-label"],Ro=["innerHTML"],Oo={class:"code-loading-placeholder"},Ko=/* @__PURE__ */te(/* @__PURE__ */m({__name:"MarkdownCodeBlockNode",props:{node:{},loading:{type:Boolean,default:!0},stream:{type:Boolean,default:!0},darkTheme:{default:"vitesse-dark"},lightTheme:{default:"vitesse-light"},isDark:{type:Boolean,default:!1},isShowPreview:{type:Boolean,default:!0},enableFontSizeControl:{type:Boolean,default:!0},minWidth:{default:void 0},maxWidth:{default:void 0},themes:{},showHeader:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExpandButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},showFontSizeButtons:{type:Boolean,default:!0}},emits:["previewCode","copy"],setup(e,{emit:n}){var t;const o=e,l=n,{t:r}=Oe(),a=M(String(null!=(t=o.node.language)?t:"")),i=M(!1),s=M(!1),c=M(!1),d=M(null),v=M(null),m=M(""),g=M(!1);let f;const x=M(!0),B=M(0),I=M(14),j=M(I.value),$=L(()=>{const e=I.value,n=j.value;return"number"==typeof e&&Number.isFinite(e)&&e>0&&"number"==typeof n&&Number.isFinite(n)&&n>0}),S=L(()=>{const e=a.value.trim().toLowerCase();return Lt[e]||e.charAt(0).toUpperCase()+e.slice(1)}),E=L(()=>"mermaid"===a.value.trim().toLowerCase()),N=L(()=>St(a.value.trim().toLowerCase().split(":")[0])),A=L(()=>{const e=a.value.trim().toLowerCase();return o.isShowPreview&&("html"===e||"svg"===e)}),P=L(()=>{const e={},n=e=>{if(null!=e)return"number"==typeof e?`${e}px`:String(e)},t=n(o.minWidth),l=n(o.maxWidth);return t&&(e.minWidth=t),l&&(e.maxWidth=l),e}),V=L(()=>({fontSize:`${j.value}px`}));function O(){return o.isDark?o.darkTheme:o.lightTheme}function K(e){if(null==f||f.disconnect(),f=void 0,!e)return m.value="",void(g.value=!1);var n;m.value=`<pre class="shiki shiki-fallback"><code>${n=e,n.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}</code></pre>`,g.value=!1}function F(){m.value="",g.value=!0}function W(){var e;const n=v.value;return!!n&&(n.childNodes.length>0||Boolean(null==(e=n.textContent)?void 0:e.trim().length))}function X(){return u(this,null,function*(){if(yield q(),W())return void F();const e=v.value;e&&(null==f||f.disconnect(),f=new MutationObserver(()=>{W()&&(F(),null==f||f.disconnect(),f=void 0)}),f.observe(e,{childList:!0,subtree:!0}))})}let Z,G,J,Q,ee=()=>{};const ne=/* @__PURE__ */new Set,te=/* @__PURE__ */new Set,oe=void 0!==import.meta&&Boolean(!1);function le(e,n){return u(this,null,function*(){if(!Z)return;const t=function(e,n=!1){var t;const[o]=String(null!=e?e:"").split(":"),l=null!=(t=null==o?void 0:o.trim().toLowerCase())?t:"";return l?!Q||Q.has(l)?l:(n&&oe&&!ne.has(l)&&(ne.add(l),console.warn(`[MarkdownCodeBlockNode] Language "${l}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"}(n,Boolean(e&&e.length));try{yield Z.updateCode(e,t)}catch(o){"plaintext"!==t?(oe&&!te.has(t)&&(te.add(t),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${t}", retrying as plaintext.`,o)),yield Z.updateCode(e,"plaintext")):oe&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",o)}})}function re(){return u(this,null,function*(){if(E.value)return ee(),null==Z||Z.dispose(),Z=void 0,void(g.value=!1);yield function(){return u(this,null,function*(){if(!G)try{const e=yield import("stream-markdown");G=e.createShikiStreamRenderer,J=e.registerHighlight,ee=e.disposeHighlighter;const n=Array.isArray(e.defaultLanguages)?e.defaultLanguages:void 0;Q=n?new Set(n.map(e=>e.toLowerCase())):void 0,null==J||J({themes:o.themes})}catch(e){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",e)}})}(),d.value&&v.value?(null==J||J({themes:o.themes}),!Z&&G&&(Z=G(v.value,{theme:O()}),g.value=!0),Z?!1===o.stream&&o.loading?K(o.node.code):(K(o.node.code),yield le(o.node.code,a.value),yield X()):K(o.node.code)):K(o.node.code)})}re(),_(()=>{re()}),C(()=>o.themes,()=>u(null,null,function*(){J&&J({themes:o.themes})})),C(()=>o.loading,e=>{e||re()}),C(()=>[o.node.code,o.node.language],e=>u(null,[e],function*([e,n]){if(n!==a.value&&(a.value=n.trim()),d.value&&v.value){if(E.value)return ee(),void(null==Z||Z.dispose());Z||(K(e),yield re()),Z&&e&&(!1===o.stream&&o.loading||(K(e),yield le(e,n),yield X()))}else K(e)}));const ae=C(()=>[o.darkTheme,o.lightTheme],()=>u(null,null,function*(){if(d.value&&v.value){if(E.value)return ee(),null==Z||Z.dispose(),ae();Z||(yield re()),null==Z||Z.setTheme(O())}}));function ie(){const e=d.value;if(!e||s.value)return;const n=e.scrollTop;n<B.value?x.value=!1:function(e,n=50){return e.scrollHeight-e.scrollTop-e.clientHeight<=n}(e)&&(x.value=!0),B.value=n}function se(){return u(this,null,function*(){try{"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(o.node.code)),i.value=!0,l("copy",o.node.code),setTimeout(()=>{i.value=!1},1e3)}catch(e){console.error("Copy failed:",e)}})}function ue(e){return!e||e.disabled}function ce(e,n,t="top"){if(ue(e.currentTarget))return;const l=e,r=null!=(null==l?void 0:l.clientX)&&null!=(null==l?void 0:l.clientY)?{x:l.clientX,y:l.clientY}:void 0;Ae(e.currentTarget,n,t,!1,r,o.isDark)}function de(){Pe()}function ve(e){if(ue(e.currentTarget))return;const n=i.value?r("common.copied")||"Copied":r("common.copy")||"Copy",t=e,l=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;Ae(e.currentTarget,n,"top",!1,l,o.isDark)}function me(){s.value=!s.value;const e=d.value;e&&(s.value?(e.style.maxHeight="none",e.style.overflow="visible"):(e.style.maxHeight="500px",e.style.overflow="auto",x.value=!0,q(()=>{e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)})))}function he(){c.value=!c.value}function pe(){if(!A.value)return;const e=(a.value||o.node.language).toLowerCase(),n="html"===e?"HTML Preview":"SVG Preview";l("previewCode",{type:"html"===e?"text/html":"image/svg+xml",content:o.node.code,title:n})}return C(()=>o.node.code,()=>u(null,null,function*(){if(s.value||!x.value)return;yield q();const e=d.value;e&&e.scrollHeight>e.clientHeight&&(e.scrollTop=e.scrollHeight)})),(n,t)=>E.value?(p(),R(w(Mo),{key:0,node:e.node,"is-dark":o.isDark,loading:o.loading},null,8,["node","is-dark","loading"])):(p(),h("div",{key:1,style:D(P.value),class:T(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[o.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",o.isDark?"is-dark":""]])},[o.showHeader?(p(),h("div",Co,[z(n.$slots,"header-left",{},()=>[y("div",Bo,[y("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:N.value},null,8,To),y("span",Io,b(S.value),1)])],!0),z(n.$slots,"header-right",{},()=>[y("div",jo,[y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":c.value,onClick:he,onMouseenter:t[0]||(t[0]=e=>ce(e,c.value?w(r)("common.expand")||"Expand":w(r)("common.collapse")||"Collapse")),onFocus:t[1]||(t[1]=e=>ce(e,c.value?w(r)("common.expand")||"Expand":w(r)("common.collapse")||"Collapse")),onMouseleave:de,onBlur:de},[(p(),h("svg",{style:D({rotate:c.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...t[17]||(t[17]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,$o),o.showFontSizeButtons&&o.enableFontSizeControl?(p(),h(k,{key:0},[y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(j.value)&&j.value<=10,onClick:t[2]||(t[2]=e=>function(){const e=Math.max(10,j.value-1);j.value=e}()),onMouseenter:t[3]||(t[3]=e=>ce(e,w(r)("common.decrease")||"Decrease")),onFocus:t[4]||(t[4]=e=>ce(e,w(r)("common.decrease")||"Decrease")),onMouseleave:de,onBlur:de},[...t[18]||(t[18]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,So),y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!$.value||j.value===I.value,onClick:t[5]||(t[5]=e=>{j.value=I.value}),onMouseenter:t[6]||(t[6]=e=>ce(e,w(r)("common.reset")||"Reset")),onFocus:t[7]||(t[7]=e=>ce(e,w(r)("common.reset")||"Reset")),onMouseleave:de,onBlur:de},[...t[19]||(t[19]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),y("path",{d:"M3 3v5h5"})])],-1)])],40,Lo),y("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!!Number.isFinite(j.value)&&j.value>=36,onClick:t[8]||(t[8]=e=>function(){const e=Math.min(36,j.value+1);j.value=e}()),onMouseenter:t[9]||(t[9]=e=>ce(e,w(r)("common.increase")||"Increase")),onFocus:t[10]||(t[10]=e=>ce(e,w(r)("common.increase")||"Increase")),onMouseleave:de,onBlur:de},[...t[20]||(t[20]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Ho)],64)):H("",!0),o.showCopyButton?(p(),h("button",{key:1,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":i.value?w(r)("common.copied")||"Copied":w(r)("common.copy")||"Copy",onClick:se,onMouseenter:t[11]||(t[11]=e=>ve(e)),onFocus:t[12]||(t[12]=e=>ve(e)),onMouseleave:de,onBlur:de},[i.value?(p(),h("svg",Do,[...t[22]||(t[22]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(p(),h("svg",No,[...t[21]||(t[21]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,Eo)):H("",!0),o.showExpandButton?(p(),h("button",{key:2,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":s.value,onClick:me,onMouseenter:t[13]||(t[13]=e=>ce(e,s.value?w(r)("common.collapse")||"Collapse":w(r)("common.expand")||"Expand")),onFocus:t[14]||(t[14]=e=>ce(e,s.value?w(r)("common.collapse")||"Collapse":w(r)("common.expand")||"Expand")),onMouseleave:de,onBlur:de},[s.value?(p(),h("svg",Ao,[...t[23]||(t[23]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M15 3h6v6m0-6l-7 7M3 21l7-7m-1 7H3v-6"},null,-1)])])):(p(),h("svg",Po,[...t[24]||(t[24]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m14 10l7-7m-1 7h-6V4M3 21l7-7m-6 0h6v6"},null,-1)])]))],40,zo)):H("",!0),A.value&&o.showPreviewButton?(p(),h("button",{key:3,type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":w(r)("common.preview")||"Preview",onClick:pe,onMouseenter:t[15]||(t[15]=e=>ce(e,w(r)("common.preview")||"Preview")),onFocus:t[16]||(t[16]=e=>ce(e,w(r)("common.preview")||"Preview")),onMouseleave:de,onBlur:de},[...t[25]||(t[25]=[y("svg",{"data-v-3d59cc65":"",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("path",{d:"M2.062 12.348a1 1 0 0 1 0-.696a10.75 10.75 0 0 1 19.876 0a1 1 0 0 1 0 .696a10.75 10.75 0 0 1-19.876 0"}),y("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Vo)):H("",!0)])],!0)])):H("",!0),Y(y("div",{ref_key:"codeBlockContent",ref:d,class:"code-block-content",style:D(V.value),onScroll:ie},[y("div",{ref_key:"rendererTarget",ref:v,class:"code-block-render"},null,512),g.value?H("",!0):(p(),h("div",{key:0,class:"code-fallback-plain",innerHTML:m.value},null,8,Ro))],36),[[U,!(c.value||!e.stream&&e.loading)]]),Y(y("div",Oo,[z(n.$slots,"loading",{loading:e.loading,stream:e.stream},()=>[t[26]||(t[26]=y("div",{class:"loading-skeleton"},[y("div",{class:"skeleton-line"}),y("div",{class:"skeleton-line"}),y("div",{class:"skeleton-line short"})],-1))],!0)],512),[[U,!e.stream&&e.loading]])],6))}}),[["__scopeId","data-v-34bf55f7"]]);Ko.install=e=>{e.component(Ko.__name,Ko)};let Fo=null,Wo=null,Xo=!1;const Zo=/* @__PURE__ */new Map,qo=/* @__PURE__ */new Map;let Yo=5;const Uo=/* @__PURE__ */new Set;function Go(){if(Zo.size<Yo&&Uo.size){const n=Array.from(Uo);Uo.clear();for(const t of n)try{t()}catch(e){}}}function Jo(e){Fo=e,Wo=null,Fo.onmessage=e=>{const{id:n,html:t,error:o}=e.data,l=Zo.get(n);if(l)if(Zo.delete(n),clearTimeout(l.timeoutId),Go(),o)l.reject(new Error(o));else{const{content:n,displayMode:o}=e.data;if(n){const e=`${o?"d":"i"}:${n}`;if(qo.set(e,t),qo.size>200){const e=qo.keys().next().value;qo.delete(e)}}l.resolve(t)}},Fo.onerror=e=>{console.error("[katexWorkerClient] Worker error:",e);for(const[n,t]of Zo.entries())clearTimeout(t.timeoutId),t.reject(new Error(`Worker error: ${e.message}`));Zo.clear(),Go()}}function Qo(){var e;Fo&&(null==(e=Fo.terminate)||e.call(Fo)),Fo=null,Wo=null}function el(e){Xo=!!e,Fo&&Fo.postMessage({type:"init",debug:Xo})}function nl(e,n=!0,t=2e3,o){return u(this,null,function*(){if(performance.now(),!an()){const e=new Error("KaTeX rendering disabled");return e.name="KaTeXDisabled",e.code="KATEX_DISABLED",Promise.reject(e)}if(Wo)return Promise.reject(Wo);const l=`${n?"d":"i"}:${e}`,r=qo.get(l);if(r)return Promise.resolve(r);const a=Fo||(Wo=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Wo.name="WorkerInitError",Wo.code="WORKER_INIT_ERROR",null);if(!a)return Promise.reject(Wo);if(Zo.size>=Yo){const e=new Error("Worker busy");return e.name="WorkerBusy",e.code="WORKER_BUSY",e.busy=!0,e.inFlight=Zo.size,e.max=Yo,Promise.reject(e)}return new Promise((l,r)=>{if(null==o?void 0:o.aborted){const e=new Error("Aborted");return e.name="AbortError",void r(e)}const i=Math.random().toString(36).slice(2),s=globalThis.setTimeout(()=>{Zo.delete(i);const e=new Error("Worker render timed out");e.name="WorkerTimeout",e.code="WORKER_TIMEOUT",r(e),Go()},t);o&&o.addEventListener("abort",()=>{globalThis.clearTimeout(s),Zo.has(i)&&Zo.delete(i);const e=new Error("Aborted");e.name="AbortError",r(e),Go()},{once:!0});const u=l,c=r;Zo.set(i,{resolve:e=>{u(e)},reject:e=>{c(e)},timeoutId:s}),a.postMessage({id:i,content:e,displayMode:n})})})}function tl(e,n=!0,t){const o=`${n?"d":"i"}:${e}`;if(qo.set(o,t),qo.size>200){const e=qo.keys().next().value;qo.delete(e)}}function ol(){return{inFlight:Zo.size,max:Yo}}function ll(e){Number.isFinite(e)&&e>0&&(Yo=Math.floor(e))}const rl="WORKER_BUSY";function al(){return Zo.size>=Yo}function il(e=2e3,n){return Zo.size<Yo?Promise.resolve():new Promise((t,o)=>{let l,r=!1;const a=()=>{r||(r=!0,l&&globalThis.clearTimeout(l),Uo.delete(a),t())};if(Uo.add(a),l=globalThis.setTimeout(()=>{if(r)return;r=!0,Uo.delete(a);const e=new Error("Wait for worker slot timed out");e.name="WorkerBusyTimeout",e.code="WORKER_BUSY_TIMEOUT",o(e)},e),queueMicrotask(()=>Go()),n){const e=()=>{if(r)return;r=!0,l&&globalThis.clearTimeout(l),Uo.delete(a);const e=new Error("Aborted");e.name="AbortError",o(e)};n.aborted?e():n.addEventListener("abort",e,{once:!0})}})}const sl={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function ul(e){null!=e.timeout&&(sl.timeout=Math.max(0,Math.floor(e.timeout))),null!=e.waitTimeout&&(sl.waitTimeout=Math.max(0,Math.floor(e.waitTimeout))),null!=e.backoffMs&&(sl.backoffMs=Math.max(0,Math.floor(e.backoffMs))),null!=e.maxRetries&&(sl.maxRetries=Math.max(0,Math.floor(e.maxRetries)))}function cl(){return i({},sl)}function dl(e){return u(this,arguments,function*(e,n=!0,t={}){var o,l,r,a;if(!an()){const e=new Error("KaTeX rendering disabled");throw e.name="KaTeXDisabled",e.code="KATEX_DISABLED",e}const i=null!=(o=t.timeout)?o:sl.timeout,s=null!=(l=t.waitTimeout)?l:sl.waitTimeout,u=null!=(r=t.backoffMs)?r:sl.backoffMs,c=null!=(a=t.maxRetries)?a:sl.maxRetries,d=t.signal;let v=0;for(;;){if(null==d?void 0:d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}try{return yield nl(e,n,i,d)}catch(m){if((null==m?void 0:m.code)!==rl||v>=c)throw m;if(v++,yield il(s,d).catch(()=>{}),null==d?void 0:d.aborted){const e=new Error("Aborted");throw e.name="AbortError",e}u>0&&(yield new Promise(e=>globalThis.setTimeout(e,u*v)))}}})}const vl=V(()=>import("./index4.js")),ml=V(()=>import("./index3.js")),hl=V(()=>import("./index2.js")),pl=V(()=>Promise.resolve().then(()=>_o)),gl={AdmonitionNode:xt,BlockquoteNode:oe,CheckboxNode:ae,CodeBlockNode:vl,DefinitionListNode:ce,EmojiNode:ve,FootnoteNode:On,FootnoteReferenceNode:xe,FootnoteAnchorNode:Pn,HardBreakNode:Fn,HeadingNode:Xn,HtmlInlineNode:be,HighlightNode:Nn,ImageNode:Je,InlineCodeNode:_e,PreCodeNode:Qn,InsertNode:Hn,LinkNode:Sn,ListItemNode:Zn,ListNode:qn,MathBlockNode:ml,MathInlineNode:hl,MermaidBlockNode:pl,ParagraphNode:Un,StrikethroughNode:Cn,StrongNode:Mn,SubscriptNode:xn,SuperscriptNode:wn,TableNode:rt,TextNode:vn,ThematicBreakNode:it,ReferenceNode:pn,MarkdownCodeBlockNode:Ko},fl={install(e,n){Object.entries(gl).forEach(([n,t])=>{e.component(n,t)}),(null==n?void 0:n.getLanguageIcon)&&Tt(n.getLanguageIcon),(null==n?void 0:n.mathOptions)&&v(n.mathOptions)}};export{on as $,xt as A,oe as B,ae as C,ce as D,ve as E,Pn as F,_e as G,Fn as H,Je as I,Hn as J,an as K,Vt as L,Sn as M,Zn as N,qn as O,Ko as P,ht as Q,ml as R,hl as S,pl as T,Un as U,pn as V,rl as W,fe as X,pe as Y,Re as Z,te as _,Fe as a,zt as a0,Cn as a1,Mn as a2,xn as a3,wn as a4,rt as a5,vn as a6,it as a7,fl as a8,Tt as a9,Jo as aa,Qo as ab,el as ac,nl as ad,ol as ae,ll as af,al as ag,il as ah,ul as ai,cl as aj,Xt as ak,Zt as al,qt as am,Yt as an,Ut as ao,Gt as ap,Jt as aq,eo as ar,no as as,to as at,St as b,Qn as c,Ae as d,dl as e,sn as f,Ct as g,Pe as h,tl as i,we as j,vl as k,Lt as l,rn as m,jt as n,Pt as o,ln as p,At as q,$t as r,Ht as s,On as t,Oe as u,xe as v,ge as w,Xn as x,Nn as y,be as z};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.blockquote[data-v-eeadc8a3]{font-weight:500;font-style:italic;border-left:.25rem solid var(--blockquote-border-color,#e2e8f0);quotes:"“" "”" "‘" "’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.blockquote[data-v-eeadc8a3] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.checkbox-node[data-v-8dc6c46f]{margin-right:.5rem;vertical-align:middle}.checkbox-input[data-v-8dc6c46f]{margin:0;cursor:default}.definition-list[data-v-f88691d6]{margin:0 0 1rem}.definition-term[data-v-f88691d6]{font-weight:600;margin-top:.5rem}.definition-desc[data-v-f88691d6]{margin-left:1rem;margin-bottom:.5rem}.definition-list[data-v-f88691d6] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-01af0fee]{font-size:.75em;line-height:0}.footnote-link[data-v-01af0fee]{color:#0366d6;text-decoration:none}.footnote-link[data-v-01af0fee]:hover{text-decoration:underline}.html-inline-node[data-v-e632756e]{display:inline}.html-inline-node--loading[data-v-e632756e]{opacity:.85}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:opacity .22s ease,transform .22s ease}.img-switch-enter-from[data-v-7ca79b66],.img-switch-leave-to[data-v-7ca79b66]{opacity:0;transform:translateY(6px)}.img-switch-enter-to[data-v-7ca79b66],.img-switch-leave-from[data-v-7ca79b66]{opacity:1;transform:translateY(0)}.placeholder-layer[data-v-7ca79b66]{will-change:transform,opacity}@media(prefers-reduced-motion:reduce){.spinner[data-v-7ca79b66]{animation:none!important}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:none!important}}.text-node[data-v-56f30838]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-56f30838]{display:inline-flex;justify-content:center;width:100%}.superscript-node[data-v-6dc1e3ba]{font-size:.8em;vertical-align:super}.subscript-node[data-v-69de9b81]{font-size:.8em;vertical-align:sub}.strong-node[data-v-af3ce037]{font-weight:700}.strikethrough-node[data-v-904d5bd1]{text-decoration:line-through}.link-node[data-v-0753b32c]{color:var(--link-color, #0366d6);text-decoration:none}.link-node[data-v-0753b32c]:hover{text-decoration:underline;text-underline-offset:.2rem}.link-loading .link-text-wrapper[data-v-0753b32c]{position:relative}.link-loading .link-text[data-v-0753b32c]{position:relative;z-index:2}.underline-anim[data-v-0753b32c]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;transform-origin:center center;will-change:transform,opacity;opacity:var(--underline-opacity, .9);transform:scaleX(0);animation:underlineLoop-0753b32c var(--underline-duration, .8s) var(--underline-timing, linear) var(--underline-iteration, infinite)}@keyframes underlineLoop-0753b32c{0%{transform:scaleX(0);opacity:var(--underline-opacity, .9)}75%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}99%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}to{transform:scaleX(0);opacity:0}}.insert-node[data-v-ab1ec9bc]{text-decoration:underline}.highlight-node[data-v-38e31bf6]{background-color:#ff0;padding:0 .2rem}.emphasis-node[data-v-8264674d]{font-style:italic}.footnote-anchor[data-v-4756ce0d]{margin-left:.5rem}.markstream-vue [class*=footnote-] :deep(.markdown-renderer),.markstream-vue .flex-1 :deep(.markdown-renderer){content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.hard-break[data-v-50c58f70]{display:block}.heading-node[data-v-e3e7e2ce]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-e3e7e2ce]{margin-top:0}.heading-1[data-v-e3e7e2ce]{margin-top:0;margin-bottom:calc(8 / 9 * 1em);font-size:2.25rem;line-height:2.5rem;font-weight:800;line-height:calc(10 / 9 * 1)}.heading-2[data-v-e3e7e2ce]{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:700;line-height:calc(4 / 3 * 1)}.heading-3[data-v-e3e7e2ce]{margin-top:1.6em;margin-bottom:calc(3 / 5 * 1em);font-size:1.25rem;line-height:1.75rem;font-weight:600;line-height:calc(5 / 3 * 1)}.heading-4[data-v-e3e7e2ce]{margin-top:1.5rem;margin-bottom:.5rem;font-size:1rem;line-height:1.5rem;font-weight:600}.heading-5[data-v-e3e7e2ce],.heading-6[data-v-e3e7e2ce]{margin:0;font-size:1rem;line-height:1.5rem}ol>.list-item[data-v-7a618746]::marker{color:var(--list-item-counter-marker,#64748b);line-height:1.6}ul>.list-item[data-v-7a618746]::marker{color:var(--list-item-marker,#cbd5e1)}.list-item[data-v-7a618746] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:none}.list-node[data-v-79057d57]{margin-top:1.25rem;margin-bottom:1.25rem;padding-left:1.625em}.list-decimal[data-v-79057d57]{list-style-type:decimal}.list-disc[data-v-79057d57]{list-style-type:disc}@media not all and (min-width:1024px){.list-disc[data-v-79057d57]{margin-top:calc(4 / 3 * 1em);margin-bottom:calc(4 / 3 * 1em);padding-left:calc(14 / 9 * 1em)}}.paragraph-node[data-v-0117537a]{margin:1.25em 0}li .paragraph-node[data-v-0117537a]{margin:0}.text-node[data-v-0117537a]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-0117537a]{display:inline-flex;justify-content:center;width:100%}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:2px solid var(--vmdr-focus, #3b82f6);outline-offset:2px}.table-node-wrapper[data-v-a874491c]{position:relative}.table-node--loading tbody td[data-v-a874491c]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-a874491c]>*{visibility:hidden}.table-node--loading tbody td[data-v-a874491c]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.25rem;background:linear-gradient(90deg,rgba(148,163,184,.16) 25%,rgba(148,163,184,.28),rgba(148,163,184,.16) 75%);background-size:200% 100%;animation:table-node-shimmer-a874491c 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-a874491c]{position:relative;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-a874491c]{width:2.5rem;height:2.5rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-a874491c],.table-node-fade-leave-active[data-v-a874491c]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-a874491c],.table-node-fade-leave-to[data-v-a874491c]{opacity:0}[data-v-a874491c] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-a874491c] .table-node .markdown-renderer .node-slot,[data-v-a874491c] .table-node .markdown-renderer .node-content,[data-v-a874491c] .table-node .markdown-renderer .node-space{display:contents}@keyframes table-node-shimmer-a874491c{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-a874491c]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-a874491c]{margin-top:0}.sr-only[data-v-a874491c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-639cbad9]{margin-top:3rem;margin-bottom:3rem;border-top-width:1px;border-color:var(--hr-border-color,#e2e8f0)}.html-block-node__placeholder[data-v-ed22b926]{display:flex;flex-direction:column;gap:.35rem;padding:.5rem 0}.html-block-node__placeholder-bar[data-v-ed22b926]{display:block;height:.8rem;border-radius:9999px;background-image:linear-gradient(90deg,rgba(148,163,184,.35),rgba(148,163,184,.1),rgba(148,163,184,.35));background-size:200% 100%;animation:html-block-node-shimmer-ed22b926 1.2s ease infinite}@keyframes html-block-node-shimmer-ed22b926{0%{background-position:0% 0%}to{background-position:200% 0%}}.markdown-renderer[data-v-748c8207]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-748c8207]{content-visibility:visible;contain-intrinsic-size:auto}.node-slot[data-v-748c8207],.node-content[data-v-748c8207]{width:100%}.node-placeholder[data-v-748c8207]{width:100%;min-height:1rem;margin:.25rem 0;border-radius:.5rem;background-image:linear-gradient(90deg,rgba(148,163,184,.18),rgba(148,163,184,.05),rgba(148,163,184,.18));background-size:200% 100%;animation:node-placeholder-shimmer-748c8207 1.1s ease-in-out infinite}.node-placeholder[data-v-748c8207]:first-child{margin-top:0}@keyframes node-placeholder-shimmer-748c8207{0%{background-position:200% 0%}to{background-position:-200% 0%}}.node-spacer[data-v-748c8207]{width:100%}.unknown-node[data-v-748c8207]{color:#6a737d;font-style:italic;margin:1rem 0}.markstream-vue .typewriter-enter-from{opacity:0}.markstream-vue .typewriter-enter-active{transition:opacity var(--typewriter-fade-duration, .9s) var(--typewriter-fade-ease, ease-out);will-change:opacity}.markstream-vue .typewriter-enter-to{opacity:1}.admonition[data-v-5e95c2b7]{--admonition-bg: #f8f8f8;--admonition-border: #eaecef;--admonition-header-bg: rgba(0, 0, 0, .03);--admonition-text: #111827;--admonition-muted: #374151;--admonition-note-color: #448aff;--admonition-tip-color: #00bfa5;--admonition-warning-color: #ff9100;--admonition-danger-color: #ff5252;margin:1rem 0;padding:0;border-radius:4px;border-left:4px solid var(--admonition-border);background-color:var(--admonition-bg);color:var(--admonition-text);overflow:hidden}.admonition-header[data-v-5e95c2b7]{padding:.5rem 1rem;font-weight:600;display:flex;align-items:center;background-color:var(--admonition-header-bg);color:var(--admonition-muted)}.admonition-icon[data-v-5e95c2b7]{margin-right:.5rem;color:inherit}.admonition-content[data-v-5e95c2b7]{padding:.5rem 1rem 1rem;color:var(--admonition-text)}.admonition-note[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-note .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-info[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-tip[data-v-5e95c2b7]{border-left-color:var(--admonition-tip-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.06);color:var(--admonition-tip-color)}.admonition-warning[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-danger[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-error[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-error .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-caution[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-caution .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-content[data-v-5e95c2b7] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.admonition-toggle[data-v-5e95c2b7]{margin-left:auto;background:transparent;border:none;color:inherit;cursor:pointer;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}.admonition-toggle[data-v-5e95c2b7]:focus{outline:2px solid rgba(0,0,0,.08);outline-offset:2px}.admonition.is-dark[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition.is-dark .admonition-note .admonition-header[data-v-5e95c2b7],.admonition.is-dark .admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition.is-dark .admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition.is-dark .admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition.is-dark .admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}@media(prefers-color-scheme:dark){.admonition[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition-note .admonition-header[data-v-5e95c2b7],.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}}._mermaid[data-v-3636e700]{font-family:inherit;transition:opacity .2s ease-in-out;content-visibility:auto;contain:content;contain-intrinsic-size:360px 240px}._mermaid[data-v-3636e700] svg{width:100%;height:auto;display:block}.fullscreen[data-v-3636e700]{width:100%;max-height:100%!important;height:100%!important}.mermaid-action-btn[data-v-3636e700]{font-family:inherit}.mermaid-action-btn[data-v-3636e700]:active{transform:scale(.98)}.mermaid-dialog-enter-from[data-v-3636e700],.mermaid-dialog-leave-to[data-v-3636e700]{opacity:0}.mermaid-dialog-enter-active[data-v-3636e700],.mermaid-dialog-leave-active[data-v-3636e700]{transition:opacity .2s ease}.mermaid-dialog-enter-from .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-to .dialog-panel[data-v-3636e700]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-from .dialog-panel[data-v-3636e700]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-active .dialog-panel[data-v-3636e700]{transition:transform .2s ease,opacity .2s ease}.code-block-container[data-v-34bf55f7]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-block-content[data-v-34bf55f7]{max-height:min(70vh,500px);overflow:auto;transition:max-height .3s ease;font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);line-height:var(--vscode-editor-line-height, 1.5)}.code-block-render[data-v-34bf55f7]{min-height:1px}[data-v-34bf55f7] .code-block-render pre,[data-v-34bf55f7] .code-block-content .shiki{font-family:inherit;font-size:inherit;line-height:inherit}[data-v-34bf55f7] .code-block-content .shiki-fallback{padding:1rem;margin:0;background:transparent;color:inherit;white-space:pre;font-family:inherit;font-size:inherit;line-height:inherit}.code-fallback-plain[data-v-34bf55f7]{white-space:pre;overflow:auto;background:transparent;color:inherit;font-size:inherit;line-height:inherit;font-family:inherit}[data-v-34bf55f7] .code-block-content pre{padding:1rem}.code-action-btn[data-v-34bf55f7]{cursor:pointer;opacity:.7;transition:opacity .2s}.code-action-btn[data-v-34bf55f7]:hover{opacity:1}.code-action-btn[data-v-34bf55f7]:disabled{opacity:.3;cursor:not-allowed}.code-loading-placeholder[data-v-34bf55f7]{padding:1rem;min-height:120px}.loading-skeleton[data-v-34bf55f7]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-34bf55f7]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-34bf55f7 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-34bf55f7]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-34bf55f7]{width:60%}@keyframes code-skeleton-shimmer-34bf55f7{0%{background-position:100% 0}to{background-position:0 0}}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.markstream-vue .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.markstream-vue .pointer-events-none{pointer-events:none}.markstream-vue .\!visible{visibility:visible!important}.markstream-vue .visible{visibility:visible}.markstream-vue .collapse{visibility:collapse}.markstream-vue .static{position:static}.markstream-vue .fixed{position:fixed}.markstream-vue .absolute{position:absolute}.markstream-vue .relative{position:relative}.markstream-vue .inset-0{top:0;right:0;bottom:0;left:0}.markstream-vue .right-2{right:.5rem}.markstream-vue .right-6{right:1.5rem}.markstream-vue .top-2{top:.5rem}.markstream-vue .top-6{top:1.5rem}.markstream-vue .z-10{z-index:10}.markstream-vue .z-50{z-index:50}.markstream-vue .z-\[9999\]{z-index:9999}.markstream-vue .m-0{margin:0}.markstream-vue .mx-0\.5{margin-left:.125rem;margin-right:.125rem}.markstream-vue .my-0{margin-top:0;margin-bottom:0}.markstream-vue .my-2{margin-top:.5rem;margin-bottom:.5rem}.markstream-vue .my-4{margin-top:1rem;margin-bottom:1rem}.markstream-vue .my-5{margin-top:1.25rem;margin-bottom:1.25rem}.markstream-vue .my-8{margin-top:2rem;margin-bottom:2rem}.markstream-vue .mb-2{margin-bottom:.5rem}.markstream-vue .mb-4{margin-bottom:1rem}.markstream-vue .mb-\[calc\(3\/5\*1em\)\]{margin-bottom:calc(3 / 5 * 1em)}.markstream-vue .mb-\[calc\(8\/9\*1em\)\]{margin-bottom:calc(8 / 9 * 1em)}.markstream-vue .mr-2{margin-right:.5rem}.markstream-vue .mt-0{margin-top:0}.markstream-vue .mt-2{margin-top:.5rem}.markstream-vue .mt-6{margin-top:1.5rem}.markstream-vue .mt-8{margin-top:2rem}.markstream-vue .mt-\[calc\(8\/5\*1em\)\]{margin-top:1.6em}.markstream-vue .block{display:block}.markstream-vue .inline-block{display:inline-block}.markstream-vue .inline{display:inline}.markstream-vue .flex{display:flex}.markstream-vue .inline-flex{display:inline-flex}.markstream-vue .table{display:table}.markstream-vue .contents{display:contents}.markstream-vue .list-item{display:list-item}.markstream-vue .hidden{display:none}.markstream-vue .h-3{height:.75rem}.markstream-vue .h-4{height:1rem}.markstream-vue .h-auto{height:auto}.markstream-vue .h-full{height:100%}.markstream-vue .max-h-full{max-height:100%}.markstream-vue .min-h-\[360px\]{min-height:360px}.markstream-vue .min-h-\[40px\]{min-height:40px}.markstream-vue .min-h-full{min-height:100%}.markstream-vue .w-2\/3{width:66.666667%}.markstream-vue .w-3{width:.75rem}.markstream-vue .w-4{width:1rem}.markstream-vue .w-4\/5{width:80%}.markstream-vue .w-full{width:100%}.markstream-vue .max-w-96{max-width:24rem}.markstream-vue .max-w-full{max-width:100%}.markstream-vue .flex-1{flex:1 1 0%}.markstream-vue .flex-shrink-0{flex-shrink:0}.markstream-vue .shrink{flex-shrink:1}.markstream-vue .grow{flex-grow:1}.markstream-vue .table-fixed{table-layout:fixed}.markstream-vue .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.markstream-vue .animate-spin{animation:spin 1s linear infinite}.markstream-vue .cursor-grab{cursor:grab}.markstream-vue .cursor-grabbing{cursor:grabbing}.markstream-vue .cursor-not-allowed{cursor:not-allowed}.markstream-vue .cursor-pointer{cursor:pointer}.markstream-vue .resize{resize:both}.markstream-vue .list-decimal{list-style-type:decimal}.markstream-vue .list-disc{list-style-type:disc}.markstream-vue .items-center{align-items:center}.markstream-vue .items-baseline{align-items:baseline}.markstream-vue .justify-center{justify-content:center}.markstream-vue .justify-between{justify-content:space-between}.markstream-vue .gap-1\.5{gap:.375rem}.markstream-vue .gap-2{gap:.5rem}.markstream-vue :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.markstream-vue :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.markstream-vue .overflow-hidden{overflow:hidden}.markstream-vue .overflow-x-auto{overflow-x:auto}.markstream-vue .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markstream-vue .whitespace-normal{white-space:normal}.markstream-vue .whitespace-nowrap{white-space:nowrap}.markstream-vue .whitespace-pre-wrap{white-space:pre-wrap}.markstream-vue .break-words{overflow-wrap:break-word}.markstream-vue .rounded{border-radius:.25rem}.markstream-vue .rounded-full{border-radius:9999px}.markstream-vue .rounded-lg{border-radius:.5rem}.markstream-vue .rounded-md{border-radius:.375rem}.markstream-vue .border{border-width:1px}.markstream-vue .border-2{border-width:2px}.markstream-vue .border-b{border-bottom-width:1px}.markstream-vue .border-t{border-top-width:1px}.markstream-vue .border-solid{border-style:solid}.markstream-vue .border-\[\#eaecef\]{--tw-border-opacity: 1;border-color:rgb(234 236 239 / var(--tw-border-opacity, 1))}.markstream-vue .border-\[var\(--hr-border-color\,\#e2e8f0\)\]{border-color:var(--hr-border-color,#e2e8f0)}.markstream-vue .border-\[var\(--table-border\,\#cbd5e1\)\]{border-color:var(--table-border,#cbd5e1)}.markstream-vue .border-current{border-color:currentColor}.markstream-vue .border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.markstream-vue .border-gray-400\/5{border-color:rgba(156,163,175,.05)}.markstream-vue .border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.markstream-vue .border-gray-700\/30{border-color:rgba(55,65,81,.3)}.markstream-vue .border-t-transparent{border-top-color:transparent}.markstream-vue .bg-black\/70{background-color:rgba(0,0,0,.7)}.markstream-vue .bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-secondary{background-color:hsl(var(--secondary),214.3 21.44% 93.4%)}.markstream-vue .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.markstream-vue .p-0\.5{padding:.125rem}.markstream-vue .p-2{padding:.5rem}.markstream-vue .p-4{padding:1rem}.markstream-vue .p-\[calc\(4\/7\*1em\)\]{padding:calc(4 / 7 * 1em)}.markstream-vue .px-1{padding-left:.25rem;padding-right:.25rem}.markstream-vue .px-1\.5{padding-left:.375rem;padding-right:.375rem}.markstream-vue .px-2\.5{padding-left:.625rem;padding-right:.625rem}.markstream-vue .px-3{padding-left:.75rem;padding-right:.75rem}.markstream-vue .px-4{padding-left:1rem;padding-right:1rem}.markstream-vue .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.markstream-vue .py-1{padding-top:.25rem;padding-bottom:.25rem}.markstream-vue .py-2{padding-top:.5rem;padding-bottom:.5rem}.markstream-vue .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.markstream-vue .pl-1\.5{padding-left:.375rem}.markstream-vue .pl-\[calc\(13\/8\*1em\)\]{padding-left:1.625em}.markstream-vue .pt-2{padding-top:.5rem}.markstream-vue .text-left{text-align:left}.markstream-vue .text-center{text-align:center}.markstream-vue .text-right{text-align:right}.markstream-vue .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.markstream-vue .text-2xl{font-size:1.5rem;line-height:2rem}.markstream-vue .text-4xl{font-size:2.25rem;line-height:2.5rem}.markstream-vue .text-\[85\%\]{font-size:85%}.markstream-vue .text-base{font-size:1rem;line-height:1.5rem}.markstream-vue .text-sm{font-size:.875rem;line-height:1.25rem}.markstream-vue .text-xl{font-size:1.25rem;line-height:1.75rem}.markstream-vue .text-xs{font-size:.75rem;line-height:1rem}.markstream-vue .font-medium{font-weight:500}.markstream-vue .font-semibold{font-weight:600}.markstream-vue .uppercase{text-transform:uppercase}.markstream-vue .lowercase{text-transform:lowercase}.markstream-vue .italic{font-style:italic}.markstream-vue .leading-\[calc\(10\/9\*1\)\]{line-height:calc(10 / 9 * 1)}.markstream-vue .leading-\[calc\(4\/3\*1\)\]{line-height:calc(4 / 3 * 1)}.markstream-vue .leading-\[calc\(5\/3\*1\)\]{line-height:calc(5 / 3 * 1)}.markstream-vue .leading-\[normal\]{line-height:normal}.markstream-vue .leading-relaxed{line-height:1.625}.markstream-vue .text-\[\#0366d6\]{--tw-text-opacity: 1;color:rgb(3 102 214 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.markstream-vue .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.markstream-vue .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.markstream-vue .underline{text-decoration-line:underline}.markstream-vue .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.markstream-vue .opacity-0{opacity:0}.markstream-vue .opacity-100{opacity:1}.markstream-vue .opacity-50{opacity:.5}.markstream-vue .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .outline{outline-style:solid}.markstream-vue .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .backdrop-blur{--tw-backdrop-blur: blur(8px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .duration-100{transition-duration:.1s}.markstream-vue .duration-200{transition-duration:.2s}.markstream-vue .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.markstream-vue .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.markstream-vue{--border: 214.3 31.8% 91.4%;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--secondary: 210 40% 96%;--muted: 210 40% 96%;--muted-foreground: 215.4 16.3% 46.9%}.dark .markstream-vue,.markstream-vue.dark{--border: 217.2 32.6% 17.5%;--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--secondary: 217.2 32.6% 17.5%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%}.markstream-vue .before\:content-\[\'\'\]:before{--tw-content: "";content:var(--tw-content)}.markstream-vue .after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.markstream-vue .hover\:bg-\[var\(--vscode-editor-selectionBackground\)\]:hover{background-color:var(--vscode-editor-selectionBackground)}.markstream-vue .hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.markstream-vue .hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.markstream-vue .hover\:bg-secondary:hover{background-color:hsl(var(--secondary),214.3 21.44% 93.4%)}.markstream-vue .hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.markstream-vue .hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}@media not all and (min-width:1024px){.markstream-vue .max-lg\:my-\[calc\(4\/3\*1em\)\]{margin-top:calc(4 / 3 * 1em);margin-bottom:calc(4 / 3 * 1em)}.markstream-vue .max-lg\:pl-\[calc\(14\/9\*1em\)\]{padding-left:calc(14 / 9 * 1em)}}.tooltip-enter-from[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-to[data-v-993f63aa],.tooltip-leave-from[data-v-993f63aa]{opacity:1;transform:translateY(0) scale(1)}.tooltip-leave-to[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-active[data-v-993f63aa],.tooltip-leave-active[data-v-993f63aa]{transition:opacity .12s linear}.tooltip-element[data-v-993f63aa]{transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s cubic-bezier(.16,1,.3,1)}.math-inline-wrapper[data-v-fbd3ae11]{position:relative;display:inline-block}.math-inline[data-v-fbd3ae11]{display:inline-block;vertical-align:middle}.math-inline__loading[data-v-fbd3ae11]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-fbd3ae11]{width:1rem;height:1rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-fbd3ae11],.table-node-fade-leave-active[data-v-fbd3ae11]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-fbd3ae11],.table-node-fade-leave-to[data-v-fbd3ae11]{opacity:0}.sr-only[data-v-fbd3ae11]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-loading-overlay[data-v-dab27d4f]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:40px}.math-loading-spinner[data-v-dab27d4f]{width:20px;height:20px;border:2px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.6);border-radius:50%;animation:math-spin-dab27d4f .8s linear infinite}@keyframes math-spin-dab27d4f{to{transform:rotate(360deg)}}.math-rendering[data-v-dab27d4f]{opacity:.3;transition:opacity .2s ease}.math-fade-enter-active[data-v-dab27d4f],.math-fade-leave-active[data-v-dab27d4f]{transition:opacity .3s ease}.math-fade-enter-from[data-v-dab27d4f],.math-fade-leave-to[data-v-dab27d4f]{opacity:0}@media(prefers-color-scheme:dark){.math-loading-overlay[data-v-dab27d4f]{background-color:rgba(0,0,0,.6)}.math-loading-spinner[data-v-dab27d4f]{border-color:rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.8)}}.html-preview-frame__backdrop[data-v-3cf0ed56]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame__backdrop--dark[data-v-3cf0ed56]{background-color:rgba(15,23,42,.8)}.html-preview-frame[data-v-3cf0ed56]{width:80vw;max-width:960px;height:70vh;background-color:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}.html-preview-frame--dark[data-v-3cf0ed56]{background-color:#020617;color:#e5e7eb;box-shadow:0 10px 40px rgba(0,0,0,.6)}.html-preview-frame__header[data-v-3cf0ed56]{display:flex;justify-content:space-between;align-items:center;padding:.4rem .75rem;border-bottom:1px solid rgba(0,0,0,.06)}.html-preview-frame--dark .html-preview-frame__header[data-v-3cf0ed56]{border-bottom-color:rgba(148,163,184,.35)}.html-preview-frame__title[data-v-3cf0ed56]{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-3cf0ed56]{width:.5rem;height:.5rem;border-radius:999px;background-color:#22c55e}.html-preview-frame--dark .html-preview-frame__dot[data-v-3cf0ed56]{background-color:#4ade80}.html-preview-frame__label[data-v-3cf0ed56]{white-space:nowrap}.html-preview-frame__close[data-v-3cf0ed56]{border:none;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}.html-preview-frame__close--dark[data-v-3cf0ed56]{color:#e5e7eb}.html-preview-frame__iframe[data-v-3cf0ed56]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-3cf0ed56]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-acbbd971]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-editor-container[data-v-acbbd971]{transition:height .18s ease,max-height .18s ease}.code-block-container.is-rendering .code-height-placeholder[data-v-acbbd971]{background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;min-height:120px;background:linear-gradient(90deg,rgba(0,0,0,.04) 25%,rgba(0,0,0,.08) 37%,rgba(0,0,0,.04) 63%)}.code-loading-placeholder[data-v-acbbd971]{padding:1rem;min-height:120px}.loading-skeleton[data-v-acbbd971]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-acbbd971]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-acbbd971]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-acbbd971]{width:60%}@keyframes code-skeleton-shimmer-acbbd971{0%{background-position:100% 0}to{background-position:0 0}}.code-action-btn[data-v-acbbd971]{font-family:inherit}.code-action-btn[data-v-acbbd971]:active{transform:scale(.98)}.code-action-btn[data-v-acbbd971]:disabled{opacity:.5;cursor:not-allowed}.code-action-btn[data-v-acbbd971]:disabled:hover{background-color:transparent}.icon-slot[data-v-acbbd971]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-acbbd971] svg,.icon-slot[data-v-acbbd971] img{display:block;width:100%;height:100%}[data-v-acbbd971] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}
|
|
1
|
+
.blockquote[data-v-eeadc8a3]{font-weight:500;font-style:italic;border-left:.25rem solid var(--blockquote-border-color,#e2e8f0);quotes:"“" "”" "‘" "’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.blockquote[data-v-eeadc8a3] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.checkbox-node[data-v-8dc6c46f]{margin-right:.5rem;vertical-align:middle}.checkbox-input[data-v-8dc6c46f]{margin:0;cursor:default}.definition-list[data-v-f88691d6]{margin:0 0 1rem}.definition-term[data-v-f88691d6]{font-weight:600;margin-top:.5rem}.definition-desc[data-v-f88691d6]{margin-left:1rem;margin-bottom:.5rem}.definition-list[data-v-f88691d6] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-01af0fee]{font-size:.75em;line-height:0}.footnote-link[data-v-01af0fee]{color:#0366d6;text-decoration:none}.footnote-link[data-v-01af0fee]:hover{text-decoration:underline}.html-inline-node[data-v-e632756e]{display:inline}.html-inline-node--loading[data-v-e632756e]{opacity:.85}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:opacity .22s ease,transform .22s ease}.img-switch-enter-from[data-v-7ca79b66],.img-switch-leave-to[data-v-7ca79b66]{opacity:0;transform:translateY(6px)}.img-switch-enter-to[data-v-7ca79b66],.img-switch-leave-from[data-v-7ca79b66]{opacity:1;transform:translateY(0)}.placeholder-layer[data-v-7ca79b66]{will-change:transform,opacity}@media(prefers-reduced-motion:reduce){.spinner[data-v-7ca79b66]{animation:none!important}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:none!important}}.text-node[data-v-56f30838]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-56f30838]{display:inline-flex;justify-content:center;width:100%}.superscript-node[data-v-6dc1e3ba]{font-size:.8em;vertical-align:super}.subscript-node[data-v-69de9b81]{font-size:.8em;vertical-align:sub}.strong-node[data-v-af3ce037]{font-weight:700}.strikethrough-node[data-v-904d5bd1]{text-decoration:line-through}.link-node[data-v-0753b32c]{color:var(--link-color, #0366d6);text-decoration:none}.link-node[data-v-0753b32c]:hover{text-decoration:underline;text-underline-offset:.2rem}.link-loading .link-text-wrapper[data-v-0753b32c]{position:relative}.link-loading .link-text[data-v-0753b32c]{position:relative;z-index:2}.underline-anim[data-v-0753b32c]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;transform-origin:center center;will-change:transform,opacity;opacity:var(--underline-opacity, .9);transform:scaleX(0);animation:underlineLoop-0753b32c var(--underline-duration, .8s) var(--underline-timing, linear) var(--underline-iteration, infinite)}@keyframes underlineLoop-0753b32c{0%{transform:scaleX(0);opacity:var(--underline-opacity, .9)}75%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}99%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}to{transform:scaleX(0);opacity:0}}.insert-node[data-v-ab1ec9bc]{text-decoration:underline}.highlight-node[data-v-38e31bf6]{background-color:#ff0;padding:0 .2rem}.emphasis-node[data-v-8264674d]{font-style:italic}.footnote-anchor[data-v-4756ce0d]{margin-left:.5rem}.markstream-vue [class*=footnote-] :deep(.markdown-renderer),.markstream-vue .flex-1 :deep(.markdown-renderer){content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.hard-break[data-v-50c58f70]{display:block}.heading-node[data-v-e3e7e2ce]{font-weight:500;line-height:1.25}hr+.heading-node[data-v-e3e7e2ce]{margin-top:0}.heading-1[data-v-e3e7e2ce]{margin-top:0;margin-bottom:calc(8 / 9 * 1em);font-size:2.25rem;line-height:2.5rem;font-weight:800;line-height:calc(10 / 9 * 1)}.heading-2[data-v-e3e7e2ce]{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:700;line-height:calc(4 / 3 * 1)}.heading-3[data-v-e3e7e2ce]{margin-top:1.6em;margin-bottom:calc(3 / 5 * 1em);font-size:1.25rem;line-height:1.75rem;font-weight:600;line-height:calc(5 / 3 * 1)}.heading-4[data-v-e3e7e2ce]{margin-top:1.5rem;margin-bottom:.5rem;font-size:1rem;line-height:1.5rem;font-weight:600}.heading-5[data-v-e3e7e2ce],.heading-6[data-v-e3e7e2ce]{margin:0;font-size:1rem;line-height:1.5rem}ol>.list-item[data-v-7a618746]::marker{color:var(--list-item-counter-marker,#64748b);line-height:1.6}ul>.list-item[data-v-7a618746]::marker{color:var(--list-item-marker,#cbd5e1)}.list-item[data-v-7a618746] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:none}.list-node[data-v-79057d57]{margin-top:1.25rem;margin-bottom:1.25rem;padding-left:1.625em}.list-decimal[data-v-79057d57]{list-style-type:decimal}.list-disc[data-v-79057d57]{list-style-type:disc}@media not all and (min-width:1024px){.list-disc[data-v-79057d57]{margin-top:calc(4 / 3 * 1em);margin-bottom:calc(4 / 3 * 1em);padding-left:calc(14 / 9 * 1em)}}.paragraph-node[data-v-0117537a]{margin:1.25em 0}li .paragraph-node[data-v-0117537a]{margin:0}.text-node[data-v-0117537a]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-0117537a]{display:inline-flex;justify-content:center;width:100%}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:2px solid var(--vmdr-focus, #3b82f6);outline-offset:2px}.table-node-wrapper[data-v-a874491c]{position:relative}.table-node--loading tbody td[data-v-a874491c]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-a874491c]>*{visibility:hidden}.table-node--loading tbody td[data-v-a874491c]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.25rem;background:linear-gradient(90deg,rgba(148,163,184,.16) 25%,rgba(148,163,184,.28),rgba(148,163,184,.16) 75%);background-size:200% 100%;animation:table-node-shimmer-a874491c 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-a874491c]{position:relative;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-a874491c]{width:2.5rem;height:2.5rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-a874491c],.table-node-fade-leave-active[data-v-a874491c]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-a874491c],.table-node-fade-leave-to[data-v-a874491c]{opacity:0}[data-v-a874491c] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-a874491c] .table-node .markdown-renderer .node-slot,[data-v-a874491c] .table-node .markdown-renderer .node-content,[data-v-a874491c] .table-node .markdown-renderer .node-space{display:contents}@keyframes table-node-shimmer-a874491c{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-a874491c]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-a874491c]{margin-top:0}.sr-only[data-v-a874491c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-639cbad9]{margin-top:3rem;margin-bottom:3rem;border-top-width:1px;border-color:var(--hr-border-color,#e2e8f0)}.vmr-container[data-v-44f317be]{margin:1rem 0;padding:1rem}.html-block-node__placeholder[data-v-ed22b926]{display:flex;flex-direction:column;gap:.35rem;padding:.5rem 0}.html-block-node__placeholder-bar[data-v-ed22b926]{display:block;height:.8rem;border-radius:9999px;background-image:linear-gradient(90deg,rgba(148,163,184,.35),rgba(148,163,184,.1),rgba(148,163,184,.35));background-size:200% 100%;animation:html-block-node-shimmer-ed22b926 1.2s ease infinite}@keyframes html-block-node-shimmer-ed22b926{0%{background-position:0% 0%}to{background-position:200% 0%}}.markdown-renderer[data-v-14605a64]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-14605a64]{content-visibility:visible;contain-intrinsic-size:auto}.node-slot[data-v-14605a64],.node-content[data-v-14605a64]{width:100%}.node-placeholder[data-v-14605a64]{width:100%;min-height:1rem;margin:.25rem 0;border-radius:.5rem;background-image:linear-gradient(90deg,rgba(148,163,184,.18),rgba(148,163,184,.05),rgba(148,163,184,.18));background-size:200% 100%;animation:node-placeholder-shimmer-14605a64 1.1s ease-in-out infinite}.node-placeholder[data-v-14605a64]:first-child{margin-top:0}@keyframes node-placeholder-shimmer-14605a64{0%{background-position:200% 0%}to{background-position:-200% 0%}}.node-spacer[data-v-14605a64]{width:100%}.unknown-node[data-v-14605a64]{color:#6a737d;font-style:italic;margin:1rem 0}.markstream-vue .typewriter-enter-from{opacity:0}.markstream-vue .typewriter-enter-active{transition:opacity var(--typewriter-fade-duration, .9s) var(--typewriter-fade-ease, ease-out);will-change:opacity}.markstream-vue .typewriter-enter-to{opacity:1}.admonition[data-v-5e95c2b7]{--admonition-bg: #f8f8f8;--admonition-border: #eaecef;--admonition-header-bg: rgba(0, 0, 0, .03);--admonition-text: #111827;--admonition-muted: #374151;--admonition-note-color: #448aff;--admonition-tip-color: #00bfa5;--admonition-warning-color: #ff9100;--admonition-danger-color: #ff5252;margin:1rem 0;padding:0;border-radius:4px;border-left:4px solid var(--admonition-border);background-color:var(--admonition-bg);color:var(--admonition-text);overflow:hidden}.admonition-header[data-v-5e95c2b7]{padding:.5rem 1rem;font-weight:600;display:flex;align-items:center;background-color:var(--admonition-header-bg);color:var(--admonition-muted)}.admonition-icon[data-v-5e95c2b7]{margin-right:.5rem;color:inherit}.admonition-content[data-v-5e95c2b7]{padding:.5rem 1rem 1rem;color:var(--admonition-text)}.admonition-note[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-note .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-info[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-tip[data-v-5e95c2b7]{border-left-color:var(--admonition-tip-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.06);color:var(--admonition-tip-color)}.admonition-warning[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-danger[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-error[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-error .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-caution[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-caution .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-content[data-v-5e95c2b7] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.admonition-toggle[data-v-5e95c2b7]{margin-left:auto;background:transparent;border:none;color:inherit;cursor:pointer;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}.admonition-toggle[data-v-5e95c2b7]:focus{outline:2px solid rgba(0,0,0,.08);outline-offset:2px}.admonition.is-dark[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition.is-dark .admonition-note .admonition-header[data-v-5e95c2b7],.admonition.is-dark .admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition.is-dark .admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition.is-dark .admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition.is-dark .admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}@media(prefers-color-scheme:dark){.admonition[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition-note .admonition-header[data-v-5e95c2b7],.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}}._mermaid[data-v-3636e700]{font-family:inherit;transition:opacity .2s ease-in-out;content-visibility:auto;contain:content;contain-intrinsic-size:360px 240px}._mermaid[data-v-3636e700] svg{width:100%;height:auto;display:block}.fullscreen[data-v-3636e700]{width:100%;max-height:100%!important;height:100%!important}.mermaid-action-btn[data-v-3636e700]{font-family:inherit}.mermaid-action-btn[data-v-3636e700]:active{transform:scale(.98)}.mermaid-dialog-enter-from[data-v-3636e700],.mermaid-dialog-leave-to[data-v-3636e700]{opacity:0}.mermaid-dialog-enter-active[data-v-3636e700],.mermaid-dialog-leave-active[data-v-3636e700]{transition:opacity .2s ease}.mermaid-dialog-enter-from .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-to .dialog-panel[data-v-3636e700]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-from .dialog-panel[data-v-3636e700]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-active .dialog-panel[data-v-3636e700]{transition:transform .2s ease,opacity .2s ease}.code-block-container[data-v-34bf55f7]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-block-content[data-v-34bf55f7]{max-height:min(70vh,500px);overflow:auto;transition:max-height .3s ease;font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);line-height:var(--vscode-editor-line-height, 1.5)}.code-block-render[data-v-34bf55f7]{min-height:1px}[data-v-34bf55f7] .code-block-render pre,[data-v-34bf55f7] .code-block-content .shiki{font-family:inherit;font-size:inherit;line-height:inherit}[data-v-34bf55f7] .code-block-content .shiki-fallback{padding:1rem;margin:0;background:transparent;color:inherit;white-space:pre;font-family:inherit;font-size:inherit;line-height:inherit}.code-fallback-plain[data-v-34bf55f7]{white-space:pre;overflow:auto;background:transparent;color:inherit;font-size:inherit;line-height:inherit;font-family:inherit}[data-v-34bf55f7] .code-block-content pre{padding:1rem}.code-action-btn[data-v-34bf55f7]{cursor:pointer;opacity:.7;transition:opacity .2s}.code-action-btn[data-v-34bf55f7]:hover{opacity:1}.code-action-btn[data-v-34bf55f7]:disabled{opacity:.3;cursor:not-allowed}.code-loading-placeholder[data-v-34bf55f7]{padding:1rem;min-height:120px}.loading-skeleton[data-v-34bf55f7]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-34bf55f7]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-34bf55f7 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-34bf55f7]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-34bf55f7]{width:60%}@keyframes code-skeleton-shimmer-34bf55f7{0%{background-position:100% 0}to{background-position:0 0}}.\!container{width:100%!important}.container{width:100%}@media(min-width:640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media(min-width:768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media(min-width:1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media(min-width:1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media(min-width:1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.markstream-vue .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.markstream-vue .pointer-events-none{pointer-events:none}.markstream-vue .\!visible{visibility:visible!important}.markstream-vue .visible{visibility:visible}.markstream-vue .collapse{visibility:collapse}.markstream-vue .static{position:static}.markstream-vue .fixed{position:fixed}.markstream-vue .absolute{position:absolute}.markstream-vue .relative{position:relative}.markstream-vue .inset-0{top:0;right:0;bottom:0;left:0}.markstream-vue .right-2{right:.5rem}.markstream-vue .right-6{right:1.5rem}.markstream-vue .top-2{top:.5rem}.markstream-vue .top-6{top:1.5rem}.markstream-vue .z-10{z-index:10}.markstream-vue .z-50{z-index:50}.markstream-vue .z-\[9999\]{z-index:9999}.markstream-vue .m-0{margin:0}.markstream-vue .mx-0\.5{margin-left:.125rem;margin-right:.125rem}.markstream-vue .my-0{margin-top:0;margin-bottom:0}.markstream-vue .my-2{margin-top:.5rem;margin-bottom:.5rem}.markstream-vue .my-4{margin-top:1rem;margin-bottom:1rem}.markstream-vue .my-5{margin-top:1.25rem;margin-bottom:1.25rem}.markstream-vue .my-8{margin-top:2rem;margin-bottom:2rem}.markstream-vue .mb-2{margin-bottom:.5rem}.markstream-vue .mb-4{margin-bottom:1rem}.markstream-vue .mb-\[calc\(3\/5\*1em\)\]{margin-bottom:calc(3 / 5 * 1em)}.markstream-vue .mb-\[calc\(8\/9\*1em\)\]{margin-bottom:calc(8 / 9 * 1em)}.markstream-vue .mr-2{margin-right:.5rem}.markstream-vue .mt-0{margin-top:0}.markstream-vue .mt-2{margin-top:.5rem}.markstream-vue .mt-6{margin-top:1.5rem}.markstream-vue .mt-8{margin-top:2rem}.markstream-vue .mt-\[calc\(8\/5\*1em\)\]{margin-top:1.6em}.markstream-vue .block{display:block}.markstream-vue .inline-block{display:inline-block}.markstream-vue .inline{display:inline}.markstream-vue .flex{display:flex}.markstream-vue .inline-flex{display:inline-flex}.markstream-vue .table{display:table}.markstream-vue .contents{display:contents}.markstream-vue .list-item{display:list-item}.markstream-vue .hidden{display:none}.markstream-vue .h-3{height:.75rem}.markstream-vue .h-4{height:1rem}.markstream-vue .h-auto{height:auto}.markstream-vue .h-full{height:100%}.markstream-vue .max-h-full{max-height:100%}.markstream-vue .min-h-\[360px\]{min-height:360px}.markstream-vue .min-h-\[40px\]{min-height:40px}.markstream-vue .min-h-full{min-height:100%}.markstream-vue .w-2\/3{width:66.666667%}.markstream-vue .w-3{width:.75rem}.markstream-vue .w-4{width:1rem}.markstream-vue .w-4\/5{width:80%}.markstream-vue .w-full{width:100%}.markstream-vue .max-w-96{max-width:24rem}.markstream-vue .max-w-full{max-width:100%}.markstream-vue .flex-1{flex:1 1 0%}.markstream-vue .flex-shrink-0{flex-shrink:0}.markstream-vue .shrink{flex-shrink:1}.markstream-vue .grow{flex-grow:1}.markstream-vue .table-fixed{table-layout:fixed}.markstream-vue .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.markstream-vue .animate-spin{animation:spin 1s linear infinite}.markstream-vue .cursor-grab{cursor:grab}.markstream-vue .cursor-grabbing{cursor:grabbing}.markstream-vue .cursor-not-allowed{cursor:not-allowed}.markstream-vue .cursor-pointer{cursor:pointer}.markstream-vue .resize{resize:both}.markstream-vue .list-decimal{list-style-type:decimal}.markstream-vue .list-disc{list-style-type:disc}.markstream-vue .items-center{align-items:center}.markstream-vue .items-baseline{align-items:baseline}.markstream-vue .justify-center{justify-content:center}.markstream-vue .justify-between{justify-content:space-between}.markstream-vue .gap-1\.5{gap:.375rem}.markstream-vue .gap-2{gap:.5rem}.markstream-vue :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.markstream-vue :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.markstream-vue .overflow-hidden{overflow:hidden}.markstream-vue .overflow-x-auto{overflow-x:auto}.markstream-vue .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.markstream-vue .whitespace-normal{white-space:normal}.markstream-vue .whitespace-nowrap{white-space:nowrap}.markstream-vue .whitespace-pre-wrap{white-space:pre-wrap}.markstream-vue .break-words{overflow-wrap:break-word}.markstream-vue .rounded{border-radius:.25rem}.markstream-vue .rounded-full{border-radius:9999px}.markstream-vue .rounded-lg{border-radius:.5rem}.markstream-vue .rounded-md{border-radius:.375rem}.markstream-vue .border{border-width:1px}.markstream-vue .border-2{border-width:2px}.markstream-vue .border-b{border-bottom-width:1px}.markstream-vue .border-t{border-top-width:1px}.markstream-vue .border-solid{border-style:solid}.markstream-vue .border-\[\#eaecef\]{--tw-border-opacity: 1;border-color:rgb(234 236 239 / var(--tw-border-opacity, 1))}.markstream-vue .border-\[var\(--hr-border-color\,\#e2e8f0\)\]{border-color:var(--hr-border-color,#e2e8f0)}.markstream-vue .border-\[var\(--table-border\,\#cbd5e1\)\]{border-color:var(--table-border,#cbd5e1)}.markstream-vue .border-current{border-color:currentColor}.markstream-vue .border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.markstream-vue .border-gray-400\/5{border-color:rgba(156,163,175,.05)}.markstream-vue .border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.markstream-vue .border-gray-700\/30{border-color:rgba(55,65,81,.3)}.markstream-vue .border-t-transparent{border-top-color:transparent}.markstream-vue .bg-black\/70{background-color:rgba(0,0,0,.7)}.markstream-vue .bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.markstream-vue .bg-secondary{background-color:hsl(var(--secondary),214.3 21.44% 93.4%)}.markstream-vue .bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.markstream-vue .p-0\.5{padding:.125rem}.markstream-vue .p-2{padding:.5rem}.markstream-vue .p-4{padding:1rem}.markstream-vue .p-\[calc\(4\/7\*1em\)\]{padding:calc(4 / 7 * 1em)}.markstream-vue .px-1{padding-left:.25rem;padding-right:.25rem}.markstream-vue .px-1\.5{padding-left:.375rem;padding-right:.375rem}.markstream-vue .px-2\.5{padding-left:.625rem;padding-right:.625rem}.markstream-vue .px-3{padding-left:.75rem;padding-right:.75rem}.markstream-vue .px-4{padding-left:1rem;padding-right:1rem}.markstream-vue .py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.markstream-vue .py-1{padding-top:.25rem;padding-bottom:.25rem}.markstream-vue .py-2{padding-top:.5rem;padding-bottom:.5rem}.markstream-vue .py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.markstream-vue .pl-1\.5{padding-left:.375rem}.markstream-vue .pl-\[calc\(13\/8\*1em\)\]{padding-left:1.625em}.markstream-vue .pt-2{padding-top:.5rem}.markstream-vue .text-left{text-align:left}.markstream-vue .text-center{text-align:center}.markstream-vue .text-right{text-align:right}.markstream-vue .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.markstream-vue .text-2xl{font-size:1.5rem;line-height:2rem}.markstream-vue .text-4xl{font-size:2.25rem;line-height:2.5rem}.markstream-vue .text-\[85\%\]{font-size:85%}.markstream-vue .text-base{font-size:1rem;line-height:1.5rem}.markstream-vue .text-sm{font-size:.875rem;line-height:1.25rem}.markstream-vue .text-xl{font-size:1.25rem;line-height:1.75rem}.markstream-vue .text-xs{font-size:.75rem;line-height:1rem}.markstream-vue .font-medium{font-weight:500}.markstream-vue .font-semibold{font-weight:600}.markstream-vue .uppercase{text-transform:uppercase}.markstream-vue .lowercase{text-transform:lowercase}.markstream-vue .italic{font-style:italic}.markstream-vue .leading-\[calc\(10\/9\*1\)\]{line-height:calc(10 / 9 * 1)}.markstream-vue .leading-\[calc\(4\/3\*1\)\]{line-height:calc(4 / 3 * 1)}.markstream-vue .leading-\[calc\(5\/3\*1\)\]{line-height:calc(5 / 3 * 1)}.markstream-vue .leading-\[normal\]{line-height:normal}.markstream-vue .leading-relaxed{line-height:1.625}.markstream-vue .text-\[\#0366d6\]{--tw-text-opacity: 1;color:rgb(3 102 214 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-200{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.markstream-vue .text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.markstream-vue .text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.markstream-vue .text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.markstream-vue .underline{text-decoration-line:underline}.markstream-vue .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.markstream-vue .opacity-0{opacity:0}.markstream-vue .opacity-100{opacity:1}.markstream-vue .opacity-50{opacity:.5}.markstream-vue .shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.markstream-vue .outline{outline-style:solid}.markstream-vue .blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.markstream-vue .backdrop-blur{--tw-backdrop-blur: blur(8px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .backdrop-filter{backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.markstream-vue .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.markstream-vue .duration-100{transition-duration:.1s}.markstream-vue .duration-200{transition-duration:.2s}.markstream-vue .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.markstream-vue .ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.markstream-vue{--border: 214.3 31.8% 91.4%;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--secondary: 210 40% 96%;--muted: 210 40% 96%;--muted-foreground: 215.4 16.3% 46.9%}.dark .markstream-vue,.markstream-vue.dark{--border: 217.2 32.6% 17.5%;--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--secondary: 217.2 32.6% 17.5%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%}.markstream-vue .before\:content-\[\'\'\]:before{--tw-content: "";content:var(--tw-content)}.markstream-vue .after\:content-\[\'\'\]:after{--tw-content: "";content:var(--tw-content)}.markstream-vue .hover\:bg-\[var\(--vscode-editor-selectionBackground\)\]:hover{background-color:var(--vscode-editor-selectionBackground)}.markstream-vue .hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.markstream-vue .hover\:bg-gray-700:hover{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.markstream-vue .hover\:bg-secondary:hover{background-color:hsl(var(--secondary),214.3 21.44% 93.4%)}.markstream-vue .hover\:text-gray-200:hover{--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.markstream-vue .hover\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.markstream-vue .hover\:underline:hover{text-decoration-line:underline}@media not all and (min-width:1024px){.markstream-vue .max-lg\:my-\[calc\(4\/3\*1em\)\]{margin-top:calc(4 / 3 * 1em);margin-bottom:calc(4 / 3 * 1em)}.markstream-vue .max-lg\:pl-\[calc\(14\/9\*1em\)\]{padding-left:calc(14 / 9 * 1em)}}.tooltip-enter-from[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-to[data-v-993f63aa],.tooltip-leave-from[data-v-993f63aa]{opacity:1;transform:translateY(0) scale(1)}.tooltip-leave-to[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-active[data-v-993f63aa],.tooltip-leave-active[data-v-993f63aa]{transition:opacity .12s linear}.tooltip-element[data-v-993f63aa]{transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s cubic-bezier(.16,1,.3,1)}.math-inline-wrapper[data-v-fbd3ae11]{position:relative;display:inline-block}.math-inline[data-v-fbd3ae11]{display:inline-block;vertical-align:middle}.math-inline__loading[data-v-fbd3ae11]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-fbd3ae11]{width:1rem;height:1rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-fbd3ae11],.table-node-fade-leave-active[data-v-fbd3ae11]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-fbd3ae11],.table-node-fade-leave-to[data-v-fbd3ae11]{opacity:0}.sr-only[data-v-fbd3ae11]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-loading-overlay[data-v-dab27d4f]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:40px}.math-loading-spinner[data-v-dab27d4f]{width:20px;height:20px;border:2px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.6);border-radius:50%;animation:math-spin-dab27d4f .8s linear infinite}@keyframes math-spin-dab27d4f{to{transform:rotate(360deg)}}.math-rendering[data-v-dab27d4f]{opacity:.3;transition:opacity .2s ease}.math-fade-enter-active[data-v-dab27d4f],.math-fade-leave-active[data-v-dab27d4f]{transition:opacity .3s ease}.math-fade-enter-from[data-v-dab27d4f],.math-fade-leave-to[data-v-dab27d4f]{opacity:0}@media(prefers-color-scheme:dark){.math-loading-overlay[data-v-dab27d4f]{background-color:rgba(0,0,0,.6)}.math-loading-spinner[data-v-dab27d4f]{border-color:rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.8)}}.html-preview-frame__backdrop[data-v-3cf0ed56]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame__backdrop--dark[data-v-3cf0ed56]{background-color:rgba(15,23,42,.8)}.html-preview-frame[data-v-3cf0ed56]{width:80vw;max-width:960px;height:70vh;background-color:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}.html-preview-frame--dark[data-v-3cf0ed56]{background-color:#020617;color:#e5e7eb;box-shadow:0 10px 40px rgba(0,0,0,.6)}.html-preview-frame__header[data-v-3cf0ed56]{display:flex;justify-content:space-between;align-items:center;padding:.4rem .75rem;border-bottom:1px solid rgba(0,0,0,.06)}.html-preview-frame--dark .html-preview-frame__header[data-v-3cf0ed56]{border-bottom-color:rgba(148,163,184,.35)}.html-preview-frame__title[data-v-3cf0ed56]{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-3cf0ed56]{width:.5rem;height:.5rem;border-radius:999px;background-color:#22c55e}.html-preview-frame--dark .html-preview-frame__dot[data-v-3cf0ed56]{background-color:#4ade80}.html-preview-frame__label[data-v-3cf0ed56]{white-space:nowrap}.html-preview-frame__close[data-v-3cf0ed56]{border:none;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}.html-preview-frame__close--dark[data-v-3cf0ed56]{color:#e5e7eb}.html-preview-frame__iframe[data-v-3cf0ed56]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-3cf0ed56]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-acbbd971]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-editor-container[data-v-acbbd971]{transition:height .18s ease,max-height .18s ease}.code-block-container.is-rendering .code-height-placeholder[data-v-acbbd971]{background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;min-height:120px;background:linear-gradient(90deg,rgba(0,0,0,.04) 25%,rgba(0,0,0,.08) 37%,rgba(0,0,0,.04) 63%)}.code-loading-placeholder[data-v-acbbd971]{padding:1rem;min-height:120px}.loading-skeleton[data-v-acbbd971]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-acbbd971]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-acbbd971]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-acbbd971]{width:60%}@keyframes code-skeleton-shimmer-acbbd971{0%{background-position:100% 0}to{background-position:0 0}}.code-action-btn[data-v-acbbd971]{font-family:inherit}.code-action-btn[data-v-acbbd971]:active{transform:scale(.98)}.code-action-btn[data-v-acbbd971]:disabled{opacity:.5;cursor:not-allowed}.code-action-btn[data-v-acbbd971]:disabled:hover{background-color:transparent}.icon-slot[data-v-acbbd971]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-acbbd971] svg,.icon-slot[data-v-acbbd971] img{display:block;width:100%;height:100%}[data-v-acbbd971] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}
|
package/dist/index.tailwind.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.blockquote[data-v-eeadc8a3]{font-weight:500;font-style:italic;border-left:.25rem solid var(--blockquote-border-color,#e2e8f0);quotes:"“" "”" "‘" "’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.blockquote[data-v-eeadc8a3] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.checkbox-node[data-v-8dc6c46f]{margin-right:.5rem;vertical-align:middle}.checkbox-input[data-v-8dc6c46f]{margin:0;cursor:default}.definition-list[data-v-f88691d6]{margin:0 0 1rem}.definition-term[data-v-f88691d6]{font-weight:600;margin-top:.5rem}.definition-desc[data-v-f88691d6]{margin-left:1rem;margin-bottom:.5rem}.definition-list[data-v-f88691d6] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-01af0fee]{font-size:.75em;line-height:0}.footnote-link[data-v-01af0fee]{color:#0366d6;text-decoration:none}.footnote-link[data-v-01af0fee]:hover{text-decoration:underline}.html-inline-node[data-v-e632756e]{display:inline}.html-inline-node--loading[data-v-e632756e]{opacity:.85}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:opacity .22s ease,transform .22s ease}.img-switch-enter-from[data-v-7ca79b66],.img-switch-leave-to[data-v-7ca79b66]{opacity:0;transform:translateY(6px)}.img-switch-enter-to[data-v-7ca79b66],.img-switch-leave-from[data-v-7ca79b66]{opacity:1;transform:translateY(0)}.placeholder-layer[data-v-7ca79b66]{will-change:transform,opacity}@media(prefers-reduced-motion:reduce){.spinner[data-v-7ca79b66]{animation:none!important}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:none!important}}.text-node[data-v-56f30838]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-56f30838]{display:inline-flex;justify-content:center;width:100%}.superscript-node[data-v-6dc1e3ba]{font-size:.8em;vertical-align:super}.subscript-node[data-v-69de9b81]{font-size:.8em;vertical-align:sub}.strong-node[data-v-af3ce037]{font-weight:700}.strikethrough-node[data-v-904d5bd1]{text-decoration:line-through}.link-node[data-v-0753b32c]{color:var(--link-color, #0366d6);text-decoration:none}.link-node[data-v-0753b32c]:hover{text-decoration:underline;text-underline-offset:.2rem}.link-loading .link-text-wrapper[data-v-0753b32c]{position:relative}.link-loading .link-text[data-v-0753b32c]{position:relative;z-index:2}.underline-anim[data-v-0753b32c]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;transform-origin:center center;will-change:transform,opacity;opacity:var(--underline-opacity, .9);transform:scaleX(0);animation:underlineLoop-0753b32c var(--underline-duration, .8s) var(--underline-timing, linear) var(--underline-iteration, infinite)}@keyframes underlineLoop-0753b32c{0%{transform:scaleX(0);opacity:var(--underline-opacity, .9)}75%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}99%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}to{transform:scaleX(0);opacity:0}}.insert-node[data-v-ab1ec9bc]{text-decoration:underline}.highlight-node[data-v-38e31bf6]{background-color:#ff0;padding:0 .2rem}.emphasis-node[data-v-8264674d]{font-style:italic}.footnote-anchor[data-v-4756ce0d]{margin-left:.5rem}.markstream-vue [class*=footnote-] :deep(.markdown-renderer),.markstream-vue .flex-1 :deep(.markdown-renderer){content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.hard-break[data-v-50c58f70]{display:block}.heading-node[data-v-e3e7e2ce]{@apply font-medium leading-tight;}hr+.heading-node[data-v-e3e7e2ce]{@apply mt-0;}.heading-1[data-v-e3e7e2ce]{@apply mt-0 mb-[calc(8/9*1em)] text-4xl leading-[calc(10/9*1)] font-extrabold;}.heading-2[data-v-e3e7e2ce]{@apply mt-8 mb-4 text-2xl leading-[calc(4/3*1)] font-bold;}.heading-3[data-v-e3e7e2ce]{@apply mt-[1.6em] mb-[calc(3/5*1em)] text-xl font-semibold leading-[calc(5/3*1)];}.heading-4[data-v-e3e7e2ce]{@apply mt-6 mb-2 text-base font-semibold;}.heading-5[data-v-e3e7e2ce],.heading-6[data-v-e3e7e2ce]{@apply m-0 text-base;}ol>.list-item[data-v-7a618746]::marker{color:var(--list-item-counter-marker,#64748b);line-height:1.6}ul>.list-item[data-v-7a618746]::marker{color:var(--list-item-marker,#cbd5e1)}.list-item[data-v-7a618746] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:none}.list-node[data-v-79057d57]{@apply my-5 pl-[1.625em];}.list-decimal[data-v-79057d57]{list-style-type:decimal}.list-disc[data-v-79057d57]{list-style-type:disc;@apply max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)];}.paragraph-node[data-v-0117537a]{margin:1.25em 0}li .paragraph-node[data-v-0117537a]{margin:0}.text-node[data-v-0117537a]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-0117537a]{display:inline-flex;justify-content:center;width:100%}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:2px solid var(--vmdr-focus, #3b82f6);outline-offset:2px}.table-node-wrapper[data-v-a874491c]{position:relative}.table-node--loading tbody td[data-v-a874491c]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-a874491c]>*{visibility:hidden}.table-node--loading tbody td[data-v-a874491c]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.25rem;background:linear-gradient(90deg,rgba(148,163,184,.16) 25%,rgba(148,163,184,.28),rgba(148,163,184,.16) 75%);background-size:200% 100%;animation:table-node-shimmer-a874491c 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-a874491c]{position:relative;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-a874491c]{width:2.5rem;height:2.5rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-a874491c],.table-node-fade-leave-active[data-v-a874491c]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-a874491c],.table-node-fade-leave-to[data-v-a874491c]{opacity:0}[data-v-a874491c] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-a874491c] .table-node .markdown-renderer .node-slot,[data-v-a874491c] .table-node .markdown-renderer .node-content,[data-v-a874491c] .table-node .markdown-renderer .node-space{display:contents}@keyframes table-node-shimmer-a874491c{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-a874491c]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-a874491c]{margin-top:0}.sr-only[data-v-a874491c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-639cbad9]{@apply border-t border-[var(--hr-border-color,#e2e8f0)] my-12;}.html-block-node__placeholder[data-v-ed22b926]{display:flex;flex-direction:column;gap:.35rem;padding:.5rem 0}.html-block-node__placeholder-bar[data-v-ed22b926]{display:block;height:.8rem;border-radius:9999px;background-image:linear-gradient(90deg,rgba(148,163,184,.35),rgba(148,163,184,.1),rgba(148,163,184,.35));background-size:200% 100%;animation:html-block-node-shimmer-ed22b926 1.2s ease infinite}@keyframes html-block-node-shimmer-ed22b926{0%{background-position:0% 0%}to{background-position:200% 0%}}.markdown-renderer[data-v-748c8207]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-748c8207]{content-visibility:visible;contain-intrinsic-size:auto}.node-slot[data-v-748c8207],.node-content[data-v-748c8207]{width:100%}.node-placeholder[data-v-748c8207]{width:100%;min-height:1rem;margin:.25rem 0;border-radius:.5rem;background-image:linear-gradient(90deg,rgba(148,163,184,.18),rgba(148,163,184,.05),rgba(148,163,184,.18));background-size:200% 100%;animation:node-placeholder-shimmer-748c8207 1.1s ease-in-out infinite}.node-placeholder[data-v-748c8207]:first-child{margin-top:0}@keyframes node-placeholder-shimmer-748c8207{0%{background-position:200% 0%}to{background-position:-200% 0%}}.node-spacer[data-v-748c8207]{width:100%}.unknown-node[data-v-748c8207]{color:#6a737d;font-style:italic;margin:1rem 0}.markstream-vue .typewriter-enter-from{opacity:0}.markstream-vue .typewriter-enter-active{transition:opacity var(--typewriter-fade-duration, .9s) var(--typewriter-fade-ease, ease-out);will-change:opacity}.markstream-vue .typewriter-enter-to{opacity:1}.admonition[data-v-5e95c2b7]{--admonition-bg: #f8f8f8;--admonition-border: #eaecef;--admonition-header-bg: rgba(0, 0, 0, .03);--admonition-text: #111827;--admonition-muted: #374151;--admonition-note-color: #448aff;--admonition-tip-color: #00bfa5;--admonition-warning-color: #ff9100;--admonition-danger-color: #ff5252;margin:1rem 0;padding:0;border-radius:4px;border-left:4px solid var(--admonition-border);background-color:var(--admonition-bg);color:var(--admonition-text);overflow:hidden}.admonition-header[data-v-5e95c2b7]{padding:.5rem 1rem;font-weight:600;display:flex;align-items:center;background-color:var(--admonition-header-bg);color:var(--admonition-muted)}.admonition-icon[data-v-5e95c2b7]{margin-right:.5rem;color:inherit}.admonition-content[data-v-5e95c2b7]{padding:.5rem 1rem 1rem;color:var(--admonition-text)}.admonition-note[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-note .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-info[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-tip[data-v-5e95c2b7]{border-left-color:var(--admonition-tip-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.06);color:var(--admonition-tip-color)}.admonition-warning[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-danger[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-error[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-error .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-caution[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-caution .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-content[data-v-5e95c2b7] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.admonition-toggle[data-v-5e95c2b7]{margin-left:auto;background:transparent;border:none;color:inherit;cursor:pointer;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}.admonition-toggle[data-v-5e95c2b7]:focus{outline:2px solid rgba(0,0,0,.08);outline-offset:2px}.admonition.is-dark[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition.is-dark .admonition-note .admonition-header[data-v-5e95c2b7],.admonition.is-dark .admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition.is-dark .admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition.is-dark .admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition.is-dark .admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}@media(prefers-color-scheme:dark){.admonition[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition-note .admonition-header[data-v-5e95c2b7],.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}}._mermaid[data-v-3636e700]{font-family:inherit;transition:opacity .2s ease-in-out;content-visibility:auto;contain:content;contain-intrinsic-size:360px 240px}._mermaid[data-v-3636e700] svg{width:100%;height:auto;display:block}.fullscreen[data-v-3636e700]{width:100%;max-height:100%!important;height:100%!important}.mermaid-action-btn[data-v-3636e700]{font-family:inherit}.mermaid-action-btn[data-v-3636e700]:active{transform:scale(.98)}.mermaid-dialog-enter-from[data-v-3636e700],.mermaid-dialog-leave-to[data-v-3636e700]{opacity:0}.mermaid-dialog-enter-active[data-v-3636e700],.mermaid-dialog-leave-active[data-v-3636e700]{transition:opacity .2s ease}.mermaid-dialog-enter-from .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-to .dialog-panel[data-v-3636e700]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-from .dialog-panel[data-v-3636e700]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-active .dialog-panel[data-v-3636e700]{transition:transform .2s ease,opacity .2s ease}.code-block-container[data-v-34bf55f7]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-block-content[data-v-34bf55f7]{max-height:min(70vh,500px);overflow:auto;transition:max-height .3s ease;font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);line-height:var(--vscode-editor-line-height, 1.5)}.code-block-render[data-v-34bf55f7]{min-height:1px}[data-v-34bf55f7] .code-block-render pre,[data-v-34bf55f7] .code-block-content .shiki{font-family:inherit;font-size:inherit;line-height:inherit}[data-v-34bf55f7] .code-block-content .shiki-fallback{padding:1rem;margin:0;background:transparent;color:inherit;white-space:pre;font-family:inherit;font-size:inherit;line-height:inherit}.code-fallback-plain[data-v-34bf55f7]{white-space:pre;overflow:auto;background:transparent;color:inherit;font-size:inherit;line-height:inherit;font-family:inherit}[data-v-34bf55f7] .code-block-content pre{padding:1rem}.code-action-btn[data-v-34bf55f7]{cursor:pointer;opacity:.7;transition:opacity .2s}.code-action-btn[data-v-34bf55f7]:hover{opacity:1}.code-action-btn[data-v-34bf55f7]:disabled{opacity:.3;cursor:not-allowed}.code-loading-placeholder[data-v-34bf55f7]{padding:1rem;min-height:120px}.loading-skeleton[data-v-34bf55f7]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-34bf55f7]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-34bf55f7 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-34bf55f7]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-34bf55f7]{width:60%}@keyframes code-skeleton-shimmer-34bf55f7{0%{background-position:100% 0}to{background-position:0 0}}@tailwind components;@tailwind utilities;.markstream-vue{--border: 214.3 31.8% 91.4%;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--secondary: 210 40% 96%;--muted: 210 40% 96%;--muted-foreground: 215.4 16.3% 46.9%}.dark .markstream-vue,.markstream-vue.dark{--border: 217.2 32.6% 17.5%;--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--secondary: 217.2 32.6% 17.5%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%}.tooltip-enter-from[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-to[data-v-993f63aa],.tooltip-leave-from[data-v-993f63aa]{opacity:1;transform:translateY(0) scale(1)}.tooltip-leave-to[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-active[data-v-993f63aa],.tooltip-leave-active[data-v-993f63aa]{transition:opacity .12s linear}.tooltip-element[data-v-993f63aa]{transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s cubic-bezier(.16,1,.3,1)}.math-inline-wrapper[data-v-fbd3ae11]{position:relative;display:inline-block}.math-inline[data-v-fbd3ae11]{display:inline-block;vertical-align:middle}.math-inline__loading[data-v-fbd3ae11]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-fbd3ae11]{width:1rem;height:1rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-fbd3ae11],.table-node-fade-leave-active[data-v-fbd3ae11]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-fbd3ae11],.table-node-fade-leave-to[data-v-fbd3ae11]{opacity:0}.sr-only[data-v-fbd3ae11]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-loading-overlay[data-v-dab27d4f]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:40px}.math-loading-spinner[data-v-dab27d4f]{width:20px;height:20px;border:2px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.6);border-radius:50%;animation:math-spin-dab27d4f .8s linear infinite}@keyframes math-spin-dab27d4f{to{transform:rotate(360deg)}}.math-rendering[data-v-dab27d4f]{opacity:.3;transition:opacity .2s ease}.math-fade-enter-active[data-v-dab27d4f],.math-fade-leave-active[data-v-dab27d4f]{transition:opacity .3s ease}.math-fade-enter-from[data-v-dab27d4f],.math-fade-leave-to[data-v-dab27d4f]{opacity:0}@media(prefers-color-scheme:dark){.math-loading-overlay[data-v-dab27d4f]{background-color:rgba(0,0,0,.6)}.math-loading-spinner[data-v-dab27d4f]{border-color:rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.8)}}.html-preview-frame__backdrop[data-v-3cf0ed56]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame__backdrop--dark[data-v-3cf0ed56]{background-color:rgba(15,23,42,.8)}.html-preview-frame[data-v-3cf0ed56]{width:80vw;max-width:960px;height:70vh;background-color:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}.html-preview-frame--dark[data-v-3cf0ed56]{background-color:#020617;color:#e5e7eb;box-shadow:0 10px 40px rgba(0,0,0,.6)}.html-preview-frame__header[data-v-3cf0ed56]{display:flex;justify-content:space-between;align-items:center;padding:.4rem .75rem;border-bottom:1px solid rgba(0,0,0,.06)}.html-preview-frame--dark .html-preview-frame__header[data-v-3cf0ed56]{border-bottom-color:rgba(148,163,184,.35)}.html-preview-frame__title[data-v-3cf0ed56]{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-3cf0ed56]{width:.5rem;height:.5rem;border-radius:999px;background-color:#22c55e}.html-preview-frame--dark .html-preview-frame__dot[data-v-3cf0ed56]{background-color:#4ade80}.html-preview-frame__label[data-v-3cf0ed56]{white-space:nowrap}.html-preview-frame__close[data-v-3cf0ed56]{border:none;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}.html-preview-frame__close--dark[data-v-3cf0ed56]{color:#e5e7eb}.html-preview-frame__iframe[data-v-3cf0ed56]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-3cf0ed56]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-acbbd971]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-editor-container[data-v-acbbd971]{transition:height .18s ease,max-height .18s ease}.code-block-container.is-rendering .code-height-placeholder[data-v-acbbd971]{background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;min-height:120px;background:linear-gradient(90deg,rgba(0,0,0,.04) 25%,rgba(0,0,0,.08) 37%,rgba(0,0,0,.04) 63%)}.code-loading-placeholder[data-v-acbbd971]{padding:1rem;min-height:120px}.loading-skeleton[data-v-acbbd971]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-acbbd971]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-acbbd971]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-acbbd971]{width:60%}@keyframes code-skeleton-shimmer-acbbd971{0%{background-position:100% 0}to{background-position:0 0}}.code-action-btn[data-v-acbbd971]{font-family:inherit}.code-action-btn[data-v-acbbd971]:active{transform:scale(.98)}.code-action-btn[data-v-acbbd971]:disabled{opacity:.5;cursor:not-allowed}.code-action-btn[data-v-acbbd971]:disabled:hover{background-color:transparent}.icon-slot[data-v-acbbd971]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-acbbd971] svg,.icon-slot[data-v-acbbd971] img{display:block;width:100%;height:100%}[data-v-acbbd971] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}
|
|
1
|
+
.blockquote[data-v-eeadc8a3]{font-weight:500;font-style:italic;border-left:.25rem solid var(--blockquote-border-color,#e2e8f0);quotes:"“" "”" "‘" "’";margin-top:1.6em;margin-bottom:1.6em;padding-left:1em}.blockquote[data-v-eeadc8a3] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.checkbox-node[data-v-8dc6c46f]{margin-right:.5rem;vertical-align:middle}.checkbox-input[data-v-8dc6c46f]{margin:0;cursor:default}.definition-list[data-v-f88691d6]{margin:0 0 1rem}.definition-term[data-v-f88691d6]{font-weight:600;margin-top:.5rem}.definition-desc[data-v-f88691d6]{margin-left:1rem;margin-bottom:.5rem}.definition-list[data-v-f88691d6] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.emoji-node[data-v-de55dc97]{display:inline-block}.footnote-reference[data-v-01af0fee]{font-size:.75em;line-height:0}.footnote-link[data-v-01af0fee]{color:#0366d6;text-decoration:none}.footnote-link[data-v-01af0fee]:hover{text-decoration:underline}.html-inline-node[data-v-e632756e]{display:inline}.html-inline-node--loading[data-v-e632756e]{opacity:.85}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:opacity .22s ease,transform .22s ease}.img-switch-enter-from[data-v-7ca79b66],.img-switch-leave-to[data-v-7ca79b66]{opacity:0;transform:translateY(6px)}.img-switch-enter-to[data-v-7ca79b66],.img-switch-leave-from[data-v-7ca79b66]{opacity:1;transform:translateY(0)}.placeholder-layer[data-v-7ca79b66]{will-change:transform,opacity}@media(prefers-reduced-motion:reduce){.spinner[data-v-7ca79b66]{animation:none!important}.img-switch-enter-active[data-v-7ca79b66],.img-switch-leave-active[data-v-7ca79b66]{transition:none!important}}.text-node[data-v-56f30838]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-56f30838]{display:inline-flex;justify-content:center;width:100%}.superscript-node[data-v-6dc1e3ba]{font-size:.8em;vertical-align:super}.subscript-node[data-v-69de9b81]{font-size:.8em;vertical-align:sub}.strong-node[data-v-af3ce037]{font-weight:700}.strikethrough-node[data-v-904d5bd1]{text-decoration:line-through}.link-node[data-v-0753b32c]{color:var(--link-color, #0366d6);text-decoration:none}.link-node[data-v-0753b32c]:hover{text-decoration:underline;text-underline-offset:.2rem}.link-loading .link-text-wrapper[data-v-0753b32c]{position:relative}.link-loading .link-text[data-v-0753b32c]{position:relative;z-index:2}.underline-anim[data-v-0753b32c]{position:absolute;left:0;right:0;height:var(--underline-height, 2px);bottom:var(--underline-bottom, -3px);background:currentColor;transform-origin:center center;will-change:transform,opacity;opacity:var(--underline-opacity, .9);transform:scaleX(0);animation:underlineLoop-0753b32c var(--underline-duration, .8s) var(--underline-timing, linear) var(--underline-iteration, infinite)}@keyframes underlineLoop-0753b32c{0%{transform:scaleX(0);opacity:var(--underline-opacity, .9)}75%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}99%{transform:scaleX(1);opacity:var(--underline-opacity, .9)}to{transform:scaleX(0);opacity:0}}.insert-node[data-v-ab1ec9bc]{text-decoration:underline}.highlight-node[data-v-38e31bf6]{background-color:#ff0;padding:0 .2rem}.emphasis-node[data-v-8264674d]{font-style:italic}.footnote-anchor[data-v-4756ce0d]{margin-left:.5rem}.markstream-vue [class*=footnote-] :deep(.markdown-renderer),.markstream-vue .flex-1 :deep(.markdown-renderer){content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.hard-break[data-v-50c58f70]{display:block}.heading-node[data-v-e3e7e2ce]{@apply font-medium leading-tight;}hr+.heading-node[data-v-e3e7e2ce]{@apply mt-0;}.heading-1[data-v-e3e7e2ce]{@apply mt-0 mb-[calc(8/9*1em)] text-4xl leading-[calc(10/9*1)] font-extrabold;}.heading-2[data-v-e3e7e2ce]{@apply mt-8 mb-4 text-2xl leading-[calc(4/3*1)] font-bold;}.heading-3[data-v-e3e7e2ce]{@apply mt-[1.6em] mb-[calc(3/5*1em)] text-xl font-semibold leading-[calc(5/3*1)];}.heading-4[data-v-e3e7e2ce]{@apply mt-6 mb-2 text-base font-semibold;}.heading-5[data-v-e3e7e2ce],.heading-6[data-v-e3e7e2ce]{@apply m-0 text-base;}ol>.list-item[data-v-7a618746]::marker{color:var(--list-item-counter-marker,#64748b);line-height:1.6}ul>.list-item[data-v-7a618746]::marker{color:var(--list-item-marker,#cbd5e1)}.list-item[data-v-7a618746] .markdown-renderer{content-visibility:visible;contain-intrinsic-size:0px 0px;contain:none}.list-node[data-v-79057d57]{@apply my-5 pl-[1.625em];}.list-decimal[data-v-79057d57]{list-style-type:decimal}.list-disc[data-v-79057d57]{list-style-type:disc;@apply max-lg:my-[calc(4/3*1em)] max-lg:pl-[calc(14/9*1em)];}.paragraph-node[data-v-0117537a]{margin:1.25em 0}li .paragraph-node[data-v-0117537a]{margin:0}.text-node[data-v-0117537a]{display:inline;font-weight:inherit;vertical-align:baseline}.text-node-center[data-v-0117537a]{display:inline-flex;justify-content:center;width:100%}.markstream-vue pre[class^=language-],.markstream-vue pre[class*=" language-"]{white-space:pre;overflow:auto;-moz-tab-size:2;-o-tab-size:2;tab-size:2;font-variant-ligatures:none;contain:content;backface-visibility:hidden;transform:translateZ(0);-webkit-font-smoothing:antialiased}.markstream-vue pre[class^=language-]>code,.markstream-vue pre[class*=" language-"]>code{display:block}.markstream-vue pre[class^=language-]:focus,.markstream-vue pre[class*=" language-"]:focus{outline:2px solid var(--vmdr-focus, #3b82f6);outline-offset:2px}.table-node-wrapper[data-v-a874491c]{position:relative}.table-node--loading tbody td[data-v-a874491c]{position:relative;overflow:hidden}.table-node--loading tbody td[data-v-a874491c]>*{visibility:hidden}.table-node--loading tbody td[data-v-a874491c]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.25rem;background:linear-gradient(90deg,rgba(148,163,184,.16) 25%,rgba(148,163,184,.28),rgba(148,163,184,.16) 75%);background-size:200% 100%;animation:table-node-shimmer-a874491c 1.2s linear infinite;will-change:background-position}.table-node__loading[data-v-a874491c]{position:relative;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.table-node__spinner[data-v-a874491c]{width:2.5rem;height:2.5rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-a874491c],.table-node-fade-leave-active[data-v-a874491c]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-a874491c],.table-node-fade-leave-to[data-v-a874491c]{opacity:0}[data-v-a874491c] .table-node .markdown-renderer{display:contents;content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}[data-v-a874491c] .table-node .markdown-renderer .node-slot,[data-v-a874491c] .table-node .markdown-renderer .node-content,[data-v-a874491c] .table-node .markdown-renderer .node-space{display:contents}@keyframes table-node-shimmer-a874491c{0%{background-position:0% 0%}50%{background-position:100% 0%}to{background-position:200% 0%}}.hr+.table-node-wrapper[data-v-a874491c]{margin-top:0}.hr+.table-node-wrapper .table-node[data-v-a874491c]{margin-top:0}.sr-only[data-v-a874491c]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.hr-node[data-v-639cbad9]{@apply border-t border-[var(--hr-border-color,#e2e8f0)] my-12;}.vmr-container[data-v-44f317be]{margin:1rem 0;padding:1rem}.html-block-node__placeholder[data-v-ed22b926]{display:flex;flex-direction:column;gap:.35rem;padding:.5rem 0}.html-block-node__placeholder-bar[data-v-ed22b926]{display:block;height:.8rem;border-radius:9999px;background-image:linear-gradient(90deg,rgba(148,163,184,.35),rgba(148,163,184,.1),rgba(148,163,184,.35));background-size:200% 100%;animation:html-block-node-shimmer-ed22b926 1.2s ease infinite}@keyframes html-block-node-shimmer-ed22b926{0%{background-position:0% 0%}to{background-position:200% 0%}}.markdown-renderer[data-v-14605a64]{position:relative;contain:layout;content-visibility:auto;contain-intrinsic-size:800px 600px}.markdown-renderer.virtualized[data-v-14605a64]{content-visibility:visible;contain-intrinsic-size:auto}.node-slot[data-v-14605a64],.node-content[data-v-14605a64]{width:100%}.node-placeholder[data-v-14605a64]{width:100%;min-height:1rem;margin:.25rem 0;border-radius:.5rem;background-image:linear-gradient(90deg,rgba(148,163,184,.18),rgba(148,163,184,.05),rgba(148,163,184,.18));background-size:200% 100%;animation:node-placeholder-shimmer-14605a64 1.1s ease-in-out infinite}.node-placeholder[data-v-14605a64]:first-child{margin-top:0}@keyframes node-placeholder-shimmer-14605a64{0%{background-position:200% 0%}to{background-position:-200% 0%}}.node-spacer[data-v-14605a64]{width:100%}.unknown-node[data-v-14605a64]{color:#6a737d;font-style:italic;margin:1rem 0}.markstream-vue .typewriter-enter-from{opacity:0}.markstream-vue .typewriter-enter-active{transition:opacity var(--typewriter-fade-duration, .9s) var(--typewriter-fade-ease, ease-out);will-change:opacity}.markstream-vue .typewriter-enter-to{opacity:1}.admonition[data-v-5e95c2b7]{--admonition-bg: #f8f8f8;--admonition-border: #eaecef;--admonition-header-bg: rgba(0, 0, 0, .03);--admonition-text: #111827;--admonition-muted: #374151;--admonition-note-color: #448aff;--admonition-tip-color: #00bfa5;--admonition-warning-color: #ff9100;--admonition-danger-color: #ff5252;margin:1rem 0;padding:0;border-radius:4px;border-left:4px solid var(--admonition-border);background-color:var(--admonition-bg);color:var(--admonition-text);overflow:hidden}.admonition-header[data-v-5e95c2b7]{padding:.5rem 1rem;font-weight:600;display:flex;align-items:center;background-color:var(--admonition-header-bg);color:var(--admonition-muted)}.admonition-icon[data-v-5e95c2b7]{margin-right:.5rem;color:inherit}.admonition-content[data-v-5e95c2b7]{padding:.5rem 1rem 1rem;color:var(--admonition-text)}.admonition-note[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-note .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-info[data-v-5e95c2b7]{border-left-color:var(--admonition-note-color)}.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.06);color:var(--admonition-note-color)}.admonition-tip[data-v-5e95c2b7]{border-left-color:var(--admonition-tip-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.06);color:var(--admonition-tip-color)}.admonition-warning[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-danger[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-error[data-v-5e95c2b7]{border-left-color:var(--admonition-danger-color)}.admonition-error .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.06);color:var(--admonition-danger-color)}.admonition-caution[data-v-5e95c2b7]{border-left-color:var(--admonition-warning-color)}.admonition-caution .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.06);color:var(--admonition-warning-color)}.admonition-content[data-v-5e95c2b7] .markdown-renderer{content-visibility:visible;contain:content;contain-intrinsic-size:0px 0px}.admonition-toggle[data-v-5e95c2b7]{margin-left:auto;background:transparent;border:none;color:inherit;cursor:pointer;padding:.25rem .5rem;border-radius:4px;font-size:.9rem}.admonition-toggle[data-v-5e95c2b7]:focus{outline:2px solid rgba(0,0,0,.08);outline-offset:2px}.admonition.is-dark[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition.is-dark .admonition-note .admonition-header[data-v-5e95c2b7],.admonition.is-dark .admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition.is-dark .admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition.is-dark .admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition.is-dark .admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}@media(prefers-color-scheme:dark){.admonition[data-v-5e95c2b7]{--admonition-bg: #0b1220;--admonition-border: rgba(255, 255, 255, .06);--admonition-header-bg: rgba(255, 255, 255, .03);--admonition-text: #e6eef8;--admonition-muted: #cbd5e1}.admonition-note .admonition-header[data-v-5e95c2b7],.admonition-info .admonition-header[data-v-5e95c2b7]{background-color:rgba(68,138,255,.12);color:var(--admonition-note-color)}.admonition-tip .admonition-header[data-v-5e95c2b7]{background-color:rgba(0,191,165,.12);color:var(--admonition-tip-color)}.admonition-warning .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,145,0,.12);color:var(--admonition-warning-color)}.admonition-danger .admonition-header[data-v-5e95c2b7]{background-color:rgba(255,82,82,.12);color:var(--admonition-danger-color)}}._mermaid[data-v-3636e700]{font-family:inherit;transition:opacity .2s ease-in-out;content-visibility:auto;contain:content;contain-intrinsic-size:360px 240px}._mermaid[data-v-3636e700] svg{width:100%;height:auto;display:block}.fullscreen[data-v-3636e700]{width:100%;max-height:100%!important;height:100%!important}.mermaid-action-btn[data-v-3636e700]{font-family:inherit}.mermaid-action-btn[data-v-3636e700]:active{transform:scale(.98)}.mermaid-dialog-enter-from[data-v-3636e700],.mermaid-dialog-leave-to[data-v-3636e700]{opacity:0}.mermaid-dialog-enter-active[data-v-3636e700],.mermaid-dialog-leave-active[data-v-3636e700]{transition:opacity .2s ease}.mermaid-dialog-enter-from .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-to .dialog-panel[data-v-3636e700]{transform:translateY(8px) scale(.98);opacity:.98}.mermaid-dialog-enter-to .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-from .dialog-panel[data-v-3636e700]{transform:translateY(0) scale(1);opacity:1}.mermaid-dialog-enter-active .dialog-panel[data-v-3636e700],.mermaid-dialog-leave-active .dialog-panel[data-v-3636e700]{transition:transform .2s ease,opacity .2s ease}.code-block-container[data-v-34bf55f7]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-block-content[data-v-34bf55f7]{max-height:min(70vh,500px);overflow:auto;transition:max-height .3s ease;font-family:var(--vscode-editor-font-family, "Fira Code", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);line-height:var(--vscode-editor-line-height, 1.5)}.code-block-render[data-v-34bf55f7]{min-height:1px}[data-v-34bf55f7] .code-block-render pre,[data-v-34bf55f7] .code-block-content .shiki{font-family:inherit;font-size:inherit;line-height:inherit}[data-v-34bf55f7] .code-block-content .shiki-fallback{padding:1rem;margin:0;background:transparent;color:inherit;white-space:pre;font-family:inherit;font-size:inherit;line-height:inherit}.code-fallback-plain[data-v-34bf55f7]{white-space:pre;overflow:auto;background:transparent;color:inherit;font-size:inherit;line-height:inherit;font-family:inherit}[data-v-34bf55f7] .code-block-content pre{padding:1rem}.code-action-btn[data-v-34bf55f7]{cursor:pointer;opacity:.7;transition:opacity .2s}.code-action-btn[data-v-34bf55f7]:hover{opacity:1}.code-action-btn[data-v-34bf55f7]:disabled{opacity:.3;cursor:not-allowed}.code-loading-placeholder[data-v-34bf55f7]{padding:1rem;min-height:120px}.loading-skeleton[data-v-34bf55f7]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-34bf55f7]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-34bf55f7 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-34bf55f7]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-34bf55f7]{width:60%}@keyframes code-skeleton-shimmer-34bf55f7{0%{background-position:100% 0}to{background-position:0 0}}@tailwind components;@tailwind utilities;.markstream-vue{--border: 214.3 31.8% 91.4%;--background: 0 0% 100%;--foreground: 222.2 84% 4.9%;--secondary: 210 40% 96%;--muted: 210 40% 96%;--muted-foreground: 215.4 16.3% 46.9%}.dark .markstream-vue,.markstream-vue.dark{--border: 217.2 32.6% 17.5%;--background: 222.2 84% 4.9%;--foreground: 210 40% 98%;--secondary: 217.2 32.6% 17.5%;--muted: 217.2 32.6% 17.5%;--muted-foreground: 215 20.2% 65.1%}.tooltip-enter-from[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-to[data-v-993f63aa],.tooltip-leave-from[data-v-993f63aa]{opacity:1;transform:translateY(0) scale(1)}.tooltip-leave-to[data-v-993f63aa]{opacity:0;transform:translateY(-6px) scale(.98)}.tooltip-enter-active[data-v-993f63aa],.tooltip-leave-active[data-v-993f63aa]{transition:opacity .12s linear}.tooltip-element[data-v-993f63aa]{transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s cubic-bezier(.16,1,.3,1)}.math-inline-wrapper[data-v-fbd3ae11]{position:relative;display:inline-block}.math-inline[data-v-fbd3ae11]{display:inline-block;vertical-align:middle}.math-inline__loading[data-v-fbd3ae11]{display:inline-flex;align-items:center;justify-content:center;pointer-events:none}.math-inline__spinner[data-v-fbd3ae11]{width:1rem;height:1rem;border-radius:9999px;border:2px solid rgba(94,104,121,.25);border-top-color:rgba(94,104,121,.8);will-change:transform}.table-node-fade-enter-active[data-v-fbd3ae11],.table-node-fade-leave-active[data-v-fbd3ae11]{transition:opacity .18s ease}.table-node-fade-enter-from[data-v-fbd3ae11],.table-node-fade-leave-to[data-v-fbd3ae11]{opacity:0}.sr-only[data-v-fbd3ae11]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.math-loading-overlay[data-v-dab27d4f]{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(2px);min-height:40px}.math-loading-spinner[data-v-dab27d4f]{width:20px;height:20px;border:2px solid rgba(0,0,0,.1);border-top-color:rgba(0,0,0,.6);border-radius:50%;animation:math-spin-dab27d4f .8s linear infinite}@keyframes math-spin-dab27d4f{to{transform:rotate(360deg)}}.math-rendering[data-v-dab27d4f]{opacity:.3;transition:opacity .2s ease}.math-fade-enter-active[data-v-dab27d4f],.math-fade-leave-active[data-v-dab27d4f]{transition:opacity .3s ease}.math-fade-enter-from[data-v-dab27d4f],.math-fade-leave-to[data-v-dab27d4f]{opacity:0}@media(prefers-color-scheme:dark){.math-loading-overlay[data-v-dab27d4f]{background-color:rgba(0,0,0,.6)}.math-loading-spinner[data-v-dab27d4f]{border-color:rgba(255,255,255,.2);border-top-color:rgba(255,255,255,.8)}}.html-preview-frame__backdrop[data-v-3cf0ed56]{position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:50}.html-preview-frame__backdrop--dark[data-v-3cf0ed56]{background-color:rgba(15,23,42,.8)}.html-preview-frame[data-v-3cf0ed56]{width:80vw;max-width:960px;height:70vh;background-color:#fff;border-radius:.5rem;overflow:hidden;box-shadow:0 10px 40px rgba(0,0,0,.25);display:flex;flex-direction:column}.html-preview-frame--dark[data-v-3cf0ed56]{background-color:#020617;color:#e5e7eb;box-shadow:0 10px 40px rgba(0,0,0,.6)}.html-preview-frame__header[data-v-3cf0ed56]{display:flex;justify-content:space-between;align-items:center;padding:.4rem .75rem;border-bottom:1px solid rgba(0,0,0,.06)}.html-preview-frame--dark .html-preview-frame__header[data-v-3cf0ed56]{border-bottom-color:rgba(148,163,184,.35)}.html-preview-frame__title[data-v-3cf0ed56]{display:inline-flex;align-items:center;gap:.4rem;font-size:.75rem;font-weight:500;letter-spacing:.02em;text-transform:uppercase;opacity:.85}.html-preview-frame__dot[data-v-3cf0ed56]{width:.5rem;height:.5rem;border-radius:999px;background-color:#22c55e}.html-preview-frame--dark .html-preview-frame__dot[data-v-3cf0ed56]{background-color:#4ade80}.html-preview-frame__label[data-v-3cf0ed56]{white-space:nowrap}.html-preview-frame__close[data-v-3cf0ed56]{border:none;background:transparent;font-size:1.25rem;line-height:1;cursor:pointer}.html-preview-frame__close--dark[data-v-3cf0ed56]{color:#e5e7eb}.html-preview-frame__iframe[data-v-3cf0ed56]{width:100%;height:100%;border:none;display:block}@media(max-width:640px){.html-preview-frame[data-v-3cf0ed56]{width:100vw;height:80vh;border-radius:0}}.code-block-container[data-v-acbbd971]{contain:content;content-visibility:auto;contain-intrinsic-size:320px 180px}.code-editor-container[data-v-acbbd971]{transition:height .18s ease,max-height .18s ease}.code-block-container.is-rendering .code-height-placeholder[data-v-acbbd971]{background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;min-height:120px;background:linear-gradient(90deg,rgba(0,0,0,.04) 25%,rgba(0,0,0,.08) 37%,rgba(0,0,0,.04) 63%)}.code-loading-placeholder[data-v-acbbd971]{padding:1rem;min-height:120px}.loading-skeleton[data-v-acbbd971]{display:flex;flex-direction:column;gap:.75rem}.skeleton-line[data-v-acbbd971]{height:1rem;background:linear-gradient(90deg,rgba(0,0,0,.06) 25%,rgba(0,0,0,.12) 37%,rgba(0,0,0,.06) 63%);background-size:400% 100%;animation:code-skeleton-shimmer-acbbd971 1.2s ease-in-out infinite;border-radius:.25rem}.code-block-container.is-dark .skeleton-line[data-v-acbbd971]{background:linear-gradient(90deg,rgba(255,255,255,.06) 25%,rgba(255,255,255,.12) 37%,rgba(255,255,255,.06) 63%);background-size:400% 100%}.skeleton-line.short[data-v-acbbd971]{width:60%}@keyframes code-skeleton-shimmer-acbbd971{0%{background-position:100% 0}to{background-position:0 0}}.code-action-btn[data-v-acbbd971]{font-family:inherit}.code-action-btn[data-v-acbbd971]:active{transform:scale(.98)}.code-action-btn[data-v-acbbd971]:disabled{opacity:.5;cursor:not-allowed}.code-action-btn[data-v-acbbd971]:disabled:hover{background-color:transparent}.icon-slot[data-v-acbbd971]{display:inline-flex;align-items:center;justify-content:center}.icon-slot[data-v-acbbd971] svg,.icon-slot[data-v-acbbd971] img{display:block;width:100%;height:100%}[data-v-acbbd971] .monaco-diff-editor .diffOverview{background-color:var(--vscode-editor-background)}
|
package/dist/tailwind.ts
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.4-beta.0",
|
|
5
5
|
"packageManager": "pnpm@10.26.1",
|
|
6
6
|
"description": "Vue 3 Markdown renderer optimized for large docs: progressive Mermaid, streaming diff code blocks, and fast real-time preview.",
|
|
7
7
|
"author": "Simon He",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
},
|
|
130
130
|
"dependencies": {
|
|
131
131
|
"@floating-ui/dom": "^1.7.4",
|
|
132
|
-
"stream-markdown-parser": "^0.0.
|
|
132
|
+
"stream-markdown-parser": "^0.0.47"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
135
|
"@antfu/eslint-config": "^5.4.1",
|