markstream-vue 0.0.3-beta.6 → 0.0.3-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,246 +0,0 @@
1
- "use strict";var Ao=Object.create;var Rn=Object.defineProperty,Ho=Object.defineProperties,jo=Object.getOwnPropertyDescriptor,Po=Object.getOwnPropertyDescriptors,Fo=Object.getOwnPropertyNames,Qn=Object.getOwnPropertySymbols,Ko=Object.getPrototypeOf,to=Object.prototype.hasOwnProperty,Oo=Object.prototype.propertyIsEnumerable;var eo=(t,o,n)=>o in t?Rn(t,o,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[o]=n,q=(t,o)=>{for(var n in o||(o={}))to.call(o,n)&&eo(t,n,o[n]);if(Qn)for(var n of Qn(o))Oo.call(o,n)&&eo(t,n,o[n]);return t},st=(t,o)=>Ho(t,Po(o));var Wo=(t,o,n,s)=>{if(o&&typeof o=="object"||typeof o=="function")for(let l of Fo(o))!to.call(t,l)&&l!==n&&Rn(t,l,{get:()=>o[l],enumerable:!(s=jo(o,l))||s.enumerable});return t};var Wt=(t,o,n)=>(n=t!=null?Ao(Ko(t)):{},Wo(o||!t||!t.__esModule?Rn(n,"default",{value:t,enumerable:!0}):n,t));var L=(t,o,n)=>new Promise((s,l)=>{var m=g=>{try{f(n.next(g))}catch(h){l(h)}},u=g=>{try{f(n.throw(g))}catch(h){l(h)}},f=g=>g.done?s(g.value):Promise.resolve(g.value).then(m,u);f((n=n.apply(t,o)).next())});const Bn=require("stream-markdown-parser"),e=require("vue"),Xt=require("@floating-ui/dom");var zn=typeof document!="undefined"?document.currentScript:null;const Xo=["cite"],Uo=e.defineComponent({__name:"BlockquoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("blockquote",{class:"blockquote",dir:"auto",cite:t.node.cite},[e.withMemo([o.node.children],()=>e.createVNode(e.unref(je),{"index-key":`blockquote-${o.indexKey}`,nodes:o.node.children||[],"custom-id":o.customId,typewriter:o.typewriter,onCopy:s[0]||(s[0]=l=>n.$emit("copy",l))},null,8,["index-key","nodes","custom-id","typewriter"]),s,1)],8,Xo))}}),P=(t,o)=>{const n=t.__vccOpts||t;for(const[s,l]of o)n[s]=l;return n},Yt=P(Uo,[["__scopeId","data-v-eeadc8a3"]]);Yt.install=t=>{t.component(Yt.__name,Yt)};const Yo={class:"checkbox-node"},qo=["checked"],Zo=e.defineComponent({__name:"CheckboxNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("span",Yo,[e.createElementVNode("input",{type:"checkbox",checked:t.node.checked,disabled:"",class:"checkbox-input"},null,8,qo)]))}}),et=P(Zo,[["__scopeId","data-v-8dc6c46f"]]);et.install=t=>{t.component(et.__name,et)};const Go={class:"definition-list"},Jo={class:"definition-term"},Qo={class:"definition-desc"},er=e.defineComponent({__name:"DefinitionListNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("dl",Go,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.node.items,(l,m)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:m},[e.createElementVNode("dt",Jo,[e.createVNode(e.unref(je),{"index-key":`definition-term-${o.indexKey}-${m}`,nodes:l.term,"custom-id":o.customId,typewriter:o.typewriter,onCopy:s[0]||(s[0]=u=>n.$emit("copy",u))},null,8,["index-key","nodes","custom-id","typewriter"])]),e.createElementVNode("dd",Qo,[e.createVNode(e.unref(je),{"index-key":`definition-desc-${o.indexKey}-${m}`,nodes:l.definition,"custom-id":o.customId,typewriter:o.typewriter,onCopy:s[1]||(s[1]=u=>n.$emit("copy",u))},null,8,["index-key","nodes","custom-id","typewriter"])])],64))),128))]))}}),qt=P(er,[["__scopeId","data-v-f88691d6"]]);qt.install=t=>{t.component(qt.__name,qt)};const tr={class:"emoji-node"},nr=e.defineComponent({__name:"EmojiNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("span",tr,e.toDisplayString(t.node.name),1))}}),ge=P(nr,[["__scopeId","data-v-de55dc97"]]);ge.install=t=>{t.component(ge.__name,ge)};const hn="__global__",Vt={};function or(t,o){typeof t=="string"?Vt[t]=o||{}:Vt[hn]=t||{}}function tt(t){return t?Vt[t]||Vt[hn]||{}:Vt[hn]||{}}function rr(t){if(t===hn)throw new Error("removeCustomComponents: use clearGlobalCustomComponents() to clear the global mapping");delete Vt[t]}function ar(){delete Vt[hn]}const lr=["id"],ir=["title"],sr=e.defineComponent({__name:"FootnoteReferenceNode",props:{node:{}},setup(t){const n=`#footnote-${t.node.id}`;function s(){if(typeof document=="undefined")return;const l=document.querySelector(n);l?l.scrollIntoView({behavior:"smooth"}):console.warn(`Element with href: ${n} not found`)}return(l,m)=>(e.openBlock(),e.createElementBlock("sup",{id:`fnref-${t.node.id}`,class:"footnote-reference",onClick:s},[e.createElementVNode("span",{href:n,title:`查看脚注 ${t.node.id}`,class:"footnote-link cursor-pointer"},"["+e.toDisplayString(t.node.id)+"]",9,ir)],8,lr))}}),we=P(sr,[["__scopeId","data-v-01af0fee"]]);we.install=t=>{t.component(we.__name,we)};const cr=e.defineComponent({__name:"HtmlInlineNode",props:{node:{}},setup(t){const o=t,n=e.ref(null),s=typeof window!="undefined";function l(){if(!s||!n.value)return;const u=n.value;u.innerHTML="";const f=document.createElement("template");f.innerHTML=o.node.content,u.appendChild(f.content.cloneNode(!0))}function m(){if(!n.value)return;const u=n.value;u.innerHTML="",u.textContent=o.node.content}return e.onMounted(()=>{o.node.loading&&!o.node.autoClosed?m():l()}),e.watch(()=>[o.node.content,o.node.loading,o.node.autoClosed],()=>{o.node.loading&&!o.node.autoClosed?m():l()}),e.onBeforeUnmount(()=>{n.value&&(n.value.innerHTML="")}),(u,f)=>(e.openBlock(),e.createElementBlock("span",{ref_key:"containerRef",ref:n,class:e.normalizeClass(["html-inline-node",{"html-inline-node--loading":o.node.loading}])},null,2))}}),ke=P(cr,[["__scopeId","data-v-e632756e"]]);ke.install=t=>{t.component(ke.__name,ke)};const ur={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-['']"},ye=e.defineComponent({__name:"InlineCodeNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("code",ur,e.toDisplayString(t.node.code),1))}});ye.install=t=>{t.component(ye.__name,ye)};const dr=["id"],mr=e.defineComponent({__name:"Tooltip",props:{visible:{type:Boolean},anchorEl:{},content:{},placement:{},offset:{},originX:{},originY:{},id:{},isDark:{type:[Boolean,null]}},setup(t){const o=t,n=e.computed(()=>{if(o.isDark!==void 0&&o.isDark!==null)return!!o.isDark;if(typeof document!="undefined")try{if(document.documentElement.classList.contains("dark")||window!=null&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}catch(g){}return!1}),s=e.ref(null),l=e.ref({transform:"translate3d(0px, 0px, 0px)",left:"0px",top:"0px"}),m=e.ref(!1);let u=null;function f(){return L(this,null,function*(){var x,S;if(!o.anchorEl||!s.value)return;const g=[Xt.offset((x=o.offset)!=null?x:8),Xt.flip(),Xt.shift({padding:8})],{x:h,y}=yield Xt.computePosition(o.anchorEl,s.value,{placement:(S=o.placement)!=null?S:"top",middleware:g,strategy:"fixed"});l.value.transform=`translate3d(${Math.round(h)}px, ${Math.round(y)}px, 0)`,l.value.left="0px",l.value.top="0px"})}return e.watch(()=>o.visible,g=>L(null,null,function*(){if(g)if(m.value=!1,yield e.nextTick(),o.anchorEl&&s.value)try{const h=o.anchorEl.getBoundingClientRect();yield f();const y=l.value.transform;if(o.originX!=null&&o.originY!=null){const x=Math.abs(Number(o.originX)-h.left),S=Math.abs(Number(o.originY)-h.top);Math.hypot(x,S)>120?(l.value.transform=`translate3d(${Math.round(o.originX)}px, ${Math.round(o.originY)}px, 0)`,yield e.nextTick(),m.value=!0,yield e.nextTick(),l.value.transform=y):m.value=!0}else m.value=!0;u=Xt.autoUpdate(o.anchorEl,s.value,f)}catch(h){yield f(),m.value=!0,u=Xt.autoUpdate(o.anchorEl,s.value,f)}else m.value=!0;else m.value=!1,u&&(u(),u=null)})),e.watch([()=>o.anchorEl,()=>o.placement,()=>o.content],()=>L(null,null,function*(){o.visible&&o.anchorEl&&s.value&&(yield e.nextTick(),yield f())})),e.onBeforeUnmount(()=>{u&&u()}),(g,h)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"tooltip",appear:""},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{id:o.id,ref_key:"tooltip",ref:s,style:e.normalizeStyle({position:"fixed",left:l.value.left,top:l.value.top,transform:l.value.transform}),class:e.normalizeClass(["z-[9999] inline-block text-base py-2 px-3 rounded-md shadow-md whitespace-nowrap pointer-events-none tooltip-element border",[n.value?"bg-gray-900 text-white border-gray-700 border is-dark":"bg-white text-gray-900 border-gray-200 border"]]),role:"tooltip"},e.toDisplayString(t.content),15,dr),[[e.vShow,t.visible&&m.value]])]),_:1})]))}}),fr=P(mr,[["__scopeId","data-v-993f63aa"]]),Kn=e.ref(!1),mo=e.ref(""),fo=e.ref("top"),mn=e.ref(null),pn=e.ref(null),On=e.ref(null),Wn=e.ref(null),ho=e.ref(null);let Mn=null,Cn=null;function po(){Mn&&(clearTimeout(Mn),Mn=null),Cn&&(clearTimeout(Cn),Cn=null)}let no=!1;function hr(){if(no||typeof document=="undefined")return;no=!0;const t=document.createElement("div");t.setAttribute("data-singleton-tooltip","1"),document.body.appendChild(t);const o={setup(){return()=>{var n;return e.h(fr,{visible:Kn.value,"anchor-el":mn.value,content:mo.value,placement:fo.value,id:pn.value,originX:On.value,originY:Wn.value,isDark:(n=ho.value)!=null?n:void 0})}}};e.createApp(o).mount(t)}function on(t,o,n="top",s=!1,l,m){if(!t)return;hr(),po();const u=()=>{var f,g;pn.value=`tooltip-${Date.now()}-${Math.floor(Math.random()*1e3)}`,mn.value=t,mo.value=o,fo.value=n,On.value=(f=l==null?void 0:l.x)!=null?f:null,Wn.value=(g=l==null?void 0:l.y)!=null?g:null,ho.value=typeof m=="boolean"?m:null,Kn.value=!0;try{t.setAttribute("aria-describedby",pn.value)}catch(h){}};s?u():Mn=setTimeout(u,80)}function Nn(t=!1){po();const o=()=>{if(mn.value&&pn.value)try{mn.value.removeAttribute("aria-describedby")}catch(n){}Kn.value=!1,mn.value=null,pn.value=null,On.value=null,Wn.value=null};t?o():Cn=setTimeout(o,120)}function pr(t){return(t.split(".").pop()||t).replace(/[_-]/g," ").replace(/([A-Z])/g," $1").replace(/\s+/g," ").replace(/\b\w/g,n=>n.toUpperCase()).trim()}const vo={"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 vr(t){Object.assign(vo,t)}function _n(){try{const o=globalThis.$vueI18nUse||null;if(o&&typeof o=="function")try{const n=o();if(n&&typeof n.t=="function")return{t:n.t.bind(n)}}catch(n){}}catch(o){}const t=o=>{var n;return(n=vo[o])!=null?n:pr(o)};return L(null,null,function*(){try{const o=yield import("vue-i18n"),n=o.useI18n||o.default&&o.default.useI18n;if(n&&typeof n=="function")try{const s=n();if(s&&typeof s.t=="function")try{globalThis.$vueI18nUse=()=>s}catch(l){}}catch(s){}}catch(o){}}),{t}}const go=Symbol("ViewportPriority");function gr(t,o){const n=typeof window!="undefined"&&typeof document!="undefined",s=typeof o=="boolean"?e.ref(o):o;let l=null,m=null;const u=new WeakMap;function f(h){var S,V,E;if(l||!n)return l;if(typeof IntersectionObserver=="undefined")return null;const y=(S=t==null?void 0:t(h!=null?h:null))!=null?S:null,x=m||{};return l=new IntersectionObserver(X=>{for(const I of X){const b=u.get(I.target);if(!b)continue;if(I.isIntersecting||I.intersectionRatio>0){if(!b.visible.value){b.visible.value=!0;try{b.resolve()}catch(K){}}l==null||l.unobserve(I.target),u.delete(I.target)}}},{root:y,rootMargin:(V=x.rootMargin)!=null?V:"300px",threshold:(E=x.threshold)!=null?E:0}),l}const g=(h,y)=>{const x=e.ref(!1);let S=!1,V;const E=new Promise(b=>{V=()=>{S||(S=!0,b())}}),X=()=>{try{l==null||l.unobserve(h)}catch(b){}u.delete(h)};if(!n||!s.value)return x.value=!0,V(),{isVisible:x,whenVisible:E,destroy:X};!m&&y&&(m=q({},y));const I=f(h);return I?(u.set(h,{resolve:V,visible:x}),I.observe(h),{isVisible:x,whenVisible:E,destroy:X}):(x.value=!0,V(),{isVisible:x,whenVisible:E,destroy:X})};return e.provide(go,g),g}function Sn(){const t=e.inject(go,void 0);if(t)return t;const o=new WeakMap;let n=null;const s=()=>n||(typeof window=="undefined"||typeof IntersectionObserver=="undefined"?null:(n=new IntersectionObserver(m=>{for(const u of m){const f=o.get(u.target);if(!f)continue;if(u.isIntersecting||u.intersectionRatio>0){if(!f.visible.value){f.visible.value=!0;try{f.resolve()}catch(h){}}n==null||n.unobserve(u.target),o.delete(u.target)}}},{root:null,rootMargin:"300px",threshold:0}),n));return m=>{const u=e.ref(!1);let f=!1,g;const h=new Promise(S=>{g=()=>{f||(f=!0,S())}}),y=()=>{try{n==null||n.unobserve(m)}catch(S){}o.delete(m)},x=s();return x?(o.set(m,{resolve:g,visible:u}),x.observe(m),{isVisible:u,whenVisible:h,destroy:y}):(u.value=!0,g(),{isVisible:u,whenVisible:h,destroy:y})}}const wr={class:"relative inline-block"},kr=["src","alt","title","loading","tabindex","aria-label"],yr={class:"text-sm whitespace-nowrap"},xr={key:1,class:"text-sm text-gray-500"},br={key:"error",class:"px-4 py-2 bg-gray-100 flex items-center justify-center rounded-lg gap-2 text-red-500"},Br={class:"text-sm whitespace-nowrap"},Mr={key:0,class:"mt-2 text-sm text-gray-500 italic"},Cr=e.defineComponent({__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(t,{emit:o}){const n=t,s=o,l=e.ref(!1),m=e.ref(!1),u=e.ref(!1),f=e.ref(null),g=Sn(),h=e.ref(null),y=e.ref(typeof window=="undefined");typeof window!="undefined"&&e.watch(()=>f.value,Z=>{var Y;if((Y=h.value)==null||Y.destroy(),h.value=null,!Z){y.value=!1;return}const K=g(Z,{rootMargin:"400px"});h.value=K,y.value=K.isVisible.value,K.whenVisible.then(()=>{y.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var Z;(Z=h.value)==null||Z.destroy(),h.value=null});const x=e.computed(()=>m.value&&n.fallbackSrc?n.fallbackSrc:n.node.src),S=e.computed(()=>!n.lazy||y.value),V=e.computed(()=>/\.svg(?:\?|$)/i.test(x.value));function E(){n.fallbackSrc&&!u.value?(u.value=!0,m.value=!0):(m.value=!0,s("error",n.node.src))}function X(){l.value=!0,m.value=!1,s("load",x.value)}function I(Z){Z.preventDefault(),!(!l.value||m.value)&&s("click",[Z,x.value])}const{t:b}=_n();return e.watch(x,()=>{l.value=!1,m.value=!1}),(Z,K)=>(e.openBlock(),e.createElementBlock("figure",{ref_key:"figureRef",ref:f,class:"text-center my-8"},[e.createElementVNode("div",wr,[e.createVNode(e.Transition,{name:"img-switch",mode:"out-in"},{default:e.withCtx(()=>{var Y,te,$,Le,ee;return[!t.node.loading&&!m.value&&S.value?(e.openBlock(),e.createElementBlock("img",{key:"image",src:x.value,alt:String((te=(Y=n.node.alt)!=null?Y:n.node.title)!=null?te:""),title:String((Le=($=n.node.title)!=null?$:n.node.alt)!=null?Le:""),class:e.normalizeClass(["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:e.normalizeStyle(V.value?{minHeight:n.svgMinHeight,width:"100%",height:"auto",objectFit:"contain"}:void 0),loading:n.lazy?"lazy":"eager",decoding:"async",tabindex:l.value?0:-1,"aria-label":(ee=n.node.alt)!=null?ee:e.unref(b)("image.preview"),onError:E,onLoad:X,onClick:I},null,46,kr)):m.value?!t.node.loading&&!n.fallbackSrc?(e.openBlock(),e.createElementBlock("div",br,[e.renderSlot(Z.$slots,"error",{node:n.node,displaySrc:x.value,imageLoaded:l.value,hasError:m.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:V.value},()=>[K[1]||(K[1]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24"},[e.createElementVNode("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)),e.createElementVNode("span",Br,e.toDisplayString(e.unref(b)("image.loadError")),1)],!0)])):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:"placeholder",class:"placeholder-layer max-w-96 inline-flex items-center justify-center gap-2",style:e.normalizeStyle(V.value?{minHeight:n.svgMinHeight,width:"100%"}:{minHeight:"6rem"})},[n.usePlaceholder?e.renderSlot(Z.$slots,"placeholder",{key:0,node:n.node,displaySrc:x.value,imageLoaded:l.value,hasError:m.value,fallbackSrc:n.fallbackSrc,lazy:n.lazy,isSvg:V.value},()=>[K[0]||(K[0]=e.createElementVNode("div",{class:"w-4 h-4 rounded-full border-2 border-solid border-current border-t-transparent animate-spin","aria-hidden":"true"},null,-1)),e.createElementVNode("span",yr,e.toDisplayString(e.unref(b)("image.loading")),1)],!0):(e.openBlock(),e.createElementBlock("span",xr,e.toDisplayString(t.node.raw),1))],4))]}),_:3})]),n.showCaption&&n.node.alt?(e.openBlock(),e.createElementBlock("figcaption",Mr,e.toDisplayString(n.node.alt),1)):e.createCommentVNode("",!0)],512))}}),gt=P(Cr,[["__scopeId","data-v-7ca79b66"]]);gt.install=t=>{t.component(gt.__name,gt)};let dn=null,En=!1,Xn=wo;function wo(){return L(null,null,function*(){const t=yield import("katex");return yield import("katex/contrib/mhchem"),t})}function Er(){dn=null,En=!1}function Un(t){Xn=t,Er()}function Tr(t){Un(t!=null?t:wo)}function Nr(){Un(null)}function Yn(){return typeof Xn=="function"}function In(){return L(this,null,function*(){if(dn)return dn;if(En)return null;const t=Xn;if(!t)return En=!0,null;try{const o=yield t();if(o)return dn=o,dn}catch(o){}return En=!0,null})}const An=e.shallowRef(!1);let oo=null;function ko(){return oo||(oo=In().then(t=>{An.value=!!t}).catch(()=>{An.value=!1})),e.readonly(An)}const _r=e.defineComponent({__name:"TextNode",props:{node:{}},emits:["copy"],setup(t){const o=ko();return(n,s)=>(e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass([[e.unref(o)&&t.node.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},e.toDisplayString(t.node.content),3))}}),de=P(_r,[["__scopeId","data-v-56f30838"]]);de.install=t=>{t.component(de.__name,de)};const ut=e.defineAsyncComponent(()=>L(null,null,function*(){var o,n;if(typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((n=(o=globalThis.process)==null?void 0:o.env)==null?void 0:n.NODE_ENV)==="test")return s=>{var l,m;return e.h(de,st(q({},s),{node:st(q({},s.node),{content:(m=s.node.raw)!=null?m:`$${(l=s.node.content)!=null?l:""}$`})}))};try{if(yield In())return(yield Promise.resolve().then(()=>require("./index-BqQOMeNc.cjs"))).default}catch(s){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".',s)}return s=>{var l,m;return e.h(de,st(q({},s),{node:st(q({},s.node),{content:(m=s.node.raw)!=null?m:`$${(l=s.node.content)!=null?l:""}$`})}))}})),Sr=e.defineAsyncComponent(()=>L(null,null,function*(){try{if(yield In())return(yield Promise.resolve().then(()=>require("./index-Bjfg9_i9.cjs"))).default}catch(t){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".',t)}return t=>{var o,n;return e.h(de,st(q({},t),{node:st(q({},t.node),{content:(n=t.node.raw)!=null?n:`$$${(o=t.node.content)!=null?o:""}$$`})}))}})),xe=e.defineComponent({__name:"ReferenceNode",props:{node:{},messageId:{},threadId:{}},emits:["click","mouseEnter","mouseLeave"],setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("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:n[0]||(n[0]=s=>o.$emit("click",s,t.node.id,t.messageId,t.threadId)),onMouseenter:n[1]||(n[1]=s=>o.$emit("mouseEnter",s,t.node.id,t.messageId,t.threadId)),onMouseleave:n[2]||(n[2]=s=>o.$emit("mouseLeave",s,t.node.id,t.messageId,t.threadId))},e.toDisplayString(t.node.id),33))}});xe.install=t=>{t.component(xe.__name,xe)};const Ir={class:"superscript-node"},$r={key:1},Vr=e.defineComponent({__name:"SuperscriptNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,emphasis:Pe,footnote_reference:we,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,emoji:ge,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("sup",Ir,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"superscript"}-${f}`},[s[u.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:0,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"superscript"}-${f}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",$r,e.toDisplayString(u.content||u.raw),1))],64))),128))]))}}),Se=P(Vr,[["__scopeId","data-v-6dc1e3ba"]]);Se.install=t=>{t.component(Se.__name,Se)};const Lr={class:"subscript-node"},Dr={key:1},Rr=e.defineComponent({__name:"SubscriptNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,emphasis:Pe,footnote_reference:we,strikethrough:Be,highlight:Ve,insert:$e,superscript:Se,emoji:ge,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("sub",Lr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"subscript"}-${f}`},[s[u.type]?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:0,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"subscript"}-${f}`},null,8,["node","custom-id","index-key"])):(e.openBlock(),e.createElementBlock("span",Dr,e.toDisplayString(u.content||u.raw),1))],64))),128))]))}}),Ie=P(Rr,[["__scopeId","data-v-69de9b81"]]);Ie.install=t=>{t.component(Ie.__name,Ie)};const zr={class:"strong-node"},Ar=e.defineComponent({__name:"StrongNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,emphasis:Pe,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,emoji:ge,footnote_reference:we,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("strong",zr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"strong"}-${f}`,"index-key":`${t.indexKey||"strong"}-${f}`,node:u,"custom-id":o.customId},null,8,["index-key","node","custom-id"]))),128))]))}}),be=P(Ar,[["__scopeId","data-v-af3ce037"]]);be.install=t=>{t.component(be.__name,be)};const Hr={class:"strikethrough-node"},jr=e.defineComponent({__name:"StrikethroughNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,emphasis:Pe,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,emoji:ge,footnote_reference:we,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("del",Hr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"strikethrough"}-${f}`,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"strikethrough"}-${f}`},null,8,["node","custom-id","index-key"]))),128))]))}}),Be=P(jr,[["__scopeId","data-v-904d5bd1"]]);Be.install=t=>{t.component(Be.__name,Be)};const Pr=["href","title","aria-label","aria-hidden"],Fr=["aria-hidden"],Kr={class:"link-text-wrapper relative inline-flex"},Or={class:"leading-[normal] link-text"},Wr={class:"leading-[normal] link-text"},Xr=e.defineComponent({__name:"LinkNode",props:{node:{},indexKey:{},customId:{},showTooltip:{type:Boolean,default:!0},color:{},underlineHeight:{},underlineBottom:{},animationDuration:{},animationOpacity:{},animationTiming:{},animationIteration:{}},setup(t){const o=t,n=e.computed(()=>{var h,y,x,S,V,E;const g=o.underlineBottom!==void 0?typeof o.underlineBottom=="number"?`${o.underlineBottom}px`:String(o.underlineBottom):"-3px";return{"--link-color":(h=o.color)!=null?h:"#0366d6","--underline-height":`${(y=o.underlineHeight)!=null?y:2}px`,"--underline-bottom":g,"--underline-opacity":String((x=o.animationOpacity)!=null?x:.9),"--underline-duration":`${(S=o.animationDuration)!=null?S:.8}s`,"--underline-timing":(V=o.animationTiming)!=null?V:"linear","--underline-iteration":typeof o.animationIteration=="number"?String(o.animationIteration):(E=o.animationIteration)!=null?E:"infinite"}}),s={text:de,strong:be,strikethrough:Be,emphasis:Pe,image:gt,html_inline:ke},l=e.useAttrs();function m(g){var S,V,E;if(!o.showTooltip)return;const h=g,y=(h==null?void 0:h.clientX)!=null&&(h==null?void 0:h.clientY)!=null?{x:h.clientX,y:h.clientY}:void 0,x=((S=o.node)==null?void 0:S.title)||((V=o.node)==null?void 0:V.href)||((E=o.node)==null?void 0:E.text)||"";on(g.currentTarget,x,"top",!1,y)}function u(){o.showTooltip&&Nn()}const f=e.computed(()=>{var g,h;return String((h=(g=o.node.title)!=null?g:o.node.href)!=null?h:"")});return(g,h)=>t.node.loading?(e.openBlock(),e.createElementBlock("span",e.mergeProps({key:1,class:"link-loading inline-flex items-baseline gap-1.5","aria-hidden":t.node.loading?"false":"true"},e.unref(l),{style:n.value}),[e.createElementVNode("span",Kr,[e.createElementVNode("span",Or,[e.createElementVNode("span",Wr,e.toDisplayString(t.node.text),1)]),h[1]||(h[1]=e.createElementVNode("span",{class:"underline-anim","aria-hidden":"true"},null,-1))])],16,Fr)):(e.openBlock(),e.createElementBlock("a",e.mergeProps({key:0,class:"link-node",href:t.node.href,title:t.showTooltip?"":f.value,"aria-label":`Link: ${f.value}`,"aria-hidden":t.node.loading?"true":"false",target:"_blank",rel:"noopener noreferrer"},e.unref(l),{style:n.value,onMouseenter:h[0]||(h[0]=y=>m(y)),onMouseleave:u}),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(y,x)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[y.type]),{key:`${t.indexKey||"emphasis"}-${x}`,node:y,"custom-id":o.customId,"index-key":`${t.indexKey||"link-text"}-${x}`},null,8,["node","custom-id","index-key"]))),128))],16,Pr))}}),Me=P(Xr,[["__scopeId","data-v-0753b32c"]]);Me.install=t=>{t.component(Me.__name,Me)};const Ur={class:"insert-node"},Yr=e.defineComponent({__name:"InsertNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,emphasis:Pe,strikethrough:Be,highlight:Ve,subscript:Ie,superscript:Se,emoji:ge,footnote_reference:we,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("ins",Ur,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"insert"}-${f}`,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"insert"}-${f}`},null,8,["node","custom-id","index-key"]))),128))]))}}),$e=P(Yr,[["__scopeId","data-v-ab1ec9bc"]]);$e.install=t=>{t.component($e.__name,$e)};const qr={class:"highlight-node"},Zr=e.defineComponent({__name:"HighlightNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,emphasis:Pe,strikethrough:Be,insert:$e,subscript:Ie,superscript:Se,emoji:ge,footnote_reference:we,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("mark",qr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"highlight"}-${f}`,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"highlight"}-${f}`},null,8,["node","custom-id","index-key"]))),128))]))}}),Ve=P(Zr,[["__scopeId","data-v-38e31bf6"]]);Ve.install=t=>{t.component(Ve.__name,Ve)};const Gr={class:"emphasis-node"},Jr=e.defineComponent({__name:"EmphasisNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,html_inline:ke,strong:be,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,emoji:ge,footnote_reference:we,math_inline:ut,reference:xe},n);return(l,m)=>(e.openBlock(),e.createElementBlock("em",Gr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"emphasis"}-${f}`,node:u,"custom-id":o.customId,"index-key":`${t.indexKey||"emphasis"}-${f}`},null,8,["node","custom-id","index-key"]))),128))]))}}),Pe=P(Jr,[["__scopeId","data-v-8264674d"]]);Pe.install=t=>{t.component(Pe.__name,Pe)};const Qr=["href","title"],ea=e.defineComponent({__name:"FootnoteAnchorNode",props:{node:{}},setup(t){const o=t;function n(s){var u;if(s.preventDefault(),typeof document=="undefined")return;const l=`fnref-${String((u=o.node.id)!=null?u:"")}`,m=document.getElementById(l);m&&m.scrollIntoView({behavior:"smooth"})}return(s,l)=>(e.openBlock(),e.createElementBlock("a",{class:"footnote-anchor text-sm text-[#0366d6] hover:underline cursor-pointer",href:`#fnref-${t.node.id}`,title:`返回引用 ${t.node.id}`,onClick:n}," ↩︎ ",8,Qr))}}),Lt=P(ea,[["__scopeId","data-v-4756ce0d"]]);Lt.install=t=>{t.component(Lt.__name,Lt)};const ta=["id"],na={class:"flex-1"},Zt=e.defineComponent({__name:"FootnoteNode",props:{node:{},indexKey:{},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t;return(n,s)=>(e.openBlock(),e.createElementBlock("div",{id:`fnref--${t.node.id}`,class:"flex mt-2 mb-2 text-sm leading-relaxed border-t border-[#eaecef] pt-2"},[e.createElementVNode("div",na,[e.withMemo([o.node.children],()=>e.createVNode(e.unref(je),{"index-key":`footnote-${o.indexKey}`,nodes:o.node.children,"custom-id":o.customId,typewriter:o.typewriter,onCopy:s[0]||(s[0]=l=>n.$emit("copy",l))},null,8,["index-key","nodes","custom-id","typewriter"]),s,1)])],8,ta))}});Zt.install=t=>{t.component(Zt.__name,Zt)};const oa={class:"hard-break"},ra=e.defineComponent({__name:"HardBreakNode",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("br",oa))}}),Bt=P(ra,[["__scopeId","data-v-50c58f70"]]);Bt.install=t=>{t.component(Bt.__name,Bt)};const aa=e.defineComponent({__name:"HeadingNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({text:de,inline_code:ye,link:Me,image:gt,strong:be,emphasis:Pe,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,emoji:ge,checkbox:et,checkbox_input:et,footnote_reference:we,hardbreak:Bt,math_inline:ut,reference:xe},n);return(l,m)=>e.withMemo([t.node.children],()=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(`h${t.node.level}`),{class:e.normalizeClass(["heading-node",[`heading-${t.node.level}`]]),dir:"auto"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(u,f,g,h)=>{const y=[u];if(h&&h.key===`${t.indexKey||"heading"}-${f}`&&e.isMemoSame(h,y))return h;const x=(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[u.type]),{key:`${t.indexKey||"heading"}-${f}`,"custom-id":o.customId,node:u,"index-key":`${t.indexKey||"heading"}-${f}`},null,8,["custom-id","node","index-key"]));return x.memo=y,x},m,0),128))]),_:1},8,["class"])),m,2)}}),Hn=P(aa,[["__scopeId","data-v-e3e7e2ce"]]),$n=Hn;$n.install=t=>{t.component(Hn.__name,Hn)};const la=e.defineComponent({__name:"ListItemNode",props:{item:{},indexKey:{},value:{},customId:{},typewriter:{type:Boolean}},emits:["copy"],setup(t){const o=t,n=e.computed(()=>o.value==null?{}:{value:o.value});return(s,l)=>(e.openBlock(),e.createElementBlock("li",e.mergeProps({class:"list-item pl-1.5 my-2",dir:"auto"},n.value),[e.withMemo([o.item.children],()=>e.createVNode(e.unref(je),{"index-key":`list-item-${o.indexKey}`,nodes:o.item.children,"custom-id":o.customId,typewriter:o.typewriter,"batch-rendering":!1,onCopy:l[0]||(l[0]=m=>s.$emit("copy",m))},null,8,["index-key","nodes","custom-id","typewriter"]),l,1)],16))}}),Gt=P(la,[["__scopeId","data-v-7a618746"]]);Gt.install=t=>{t.component(Gt.__name,Gt)};const ia=e.defineComponent({__name:"ListNode",props:{node:{},customId:{},indexKey:{},typewriter:{type:Boolean}},emits:["copy"],setup(t){return(o,n)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(t.node.ordered?"ol":"ul"),{class:e.normalizeClass(["list-node",{"list-decimal":t.node.ordered,"list-disc":!t.node.ordered}])},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.items,(s,l,m,u)=>{var h;const f=[s];if(u&&u.key===`${t.indexKey||"list"}-${l}`&&e.isMemoSame(u,f))return u;const g=(e.openBlock(),e.createBlock(e.unref(Gt),{key:`${t.indexKey||"list"}-${l}`,item:s,"custom-id":t.customId,"index-key":`${t.indexKey||"list"}-${l}`,typewriter:t.typewriter,value:t.node.ordered?((h=t.node.start)!=null?h:1)+l:void 0,onCopy:n[0]||(n[0]=y=>o.$emit("copy",y))},null,8,["item","custom-id","index-key","typewriter","value"]));return g.memo=f,g},n,1),128))]),_:1},8,["class"]))}}),Jt=P(ia,[["__scopeId","data-v-79057d57"]]);Jt.install=t=>{t.component(Jt.__name,Jt)};const sa="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";function yo(t){try{if(typeof globalThis!="undefined"&&typeof globalThis.requestAnimationFrame=="function")return globalThis.requestAnimationFrame(t)}catch(o){}return globalThis.setTimeout(t,0)}const qn=()=>import("mermaid");let Ut=null,Zn=qn;function ca(){Ut=null}function Gn(t){Zn=t,ca()}function ua(t){Gn(t!=null?t:qn)}function da(){Gn(null)}function xo(){return typeof Zn=="function"}function ma(t){if(!t)return t;const o=t&&t.default?t.default:t;if(o&&(typeof o.render=="function"||typeof o.parse=="function"||typeof o.initialize=="function"))return o;if(o&&o.mermaidAPI&&(typeof o.mermaidAPI.render=="function"||typeof o.mermaidAPI.parse=="function")){const n=o.mermaidAPI;return st(q({},o),{render:n.render.bind(n),parse:n.parse?n.parse.bind(n):void 0,initialize:s=>typeof o.initialize=="function"?o.initialize(s):n.initialize?n.initialize(s):void 0})}return t.mermaid&&typeof t.mermaid.render=="function"?t.mermaid:o}function fa(t){if(t)try{const o=t==null?void 0:t.initialize;t.initialize=n=>{const s=q({suppressErrorRendering:!0},n||{});if(typeof o=="function")return o.call(t,s);if(t!=null&&t.mermaidAPI&&typeof t.mermaidAPI.initialize=="function")return t.mermaidAPI.initialize(s)}}catch(o){}}function ha(){return L(this,null,function*(){if(Ut)return Ut;const t=Zn;if(!t)return null;let o;try{o=yield t()}catch(n){throw t===qn?new Error('Optional dependency "mermaid" is not installed. Please install it to enable mermaid diagrams.'):n}return o?(Ut=ma(o),fa(Ut),Ut):null})}let he=null,Mt=null;const ue=new Map,pa=5;let Tn=pa,jn=!1;function va(t){jn=!!t}function ga(t){Number.isFinite(t)&&t>0&&(Tn=Math.floor(t))}function wa(){return{inFlight:ue.size,max:Tn}}const bo="WORKER_BUSY",Bo="MERMAID_DISABLED";function ka(t){he=t,Mt=null;const o=t;he.onmessage=n=>{if(he!==o)return;const{id:s,ok:l,result:m,error:u}=n.data,f=ue.get(s);f&&(l===!1||u?f.reject(new Error(u||"Unknown error")):f.resolve(m))},he.onerror=n=>{var s,l;if(he===o){if(ue.size===0){(s=console.debug)==null||s.call(console,"[mermaidWorkerClient] Worker error (no pending):",(n==null?void 0:n.message)||n);return}try{jn?console.error("[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n):(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker error:",(n==null?void 0:n.message)||n)}catch(m){}for(const[m,u]of ue.entries())u.reject(new Error(`Worker error: ${n.message}`));ue.clear()}},he.onmessageerror=n=>{var s,l;if(he===o){if(ue.size===0){(s=console.debug)==null||s.call(console,"[mermaidWorkerClient] Worker messageerror (no pending):",n);return}try{jn?console.error("[mermaidWorkerClient] Worker messageerror:",n):(l=console.debug)==null||l.call(console,"[mermaidWorkerClient] Worker messageerror:",n)}catch(m){}for(const[m,u]of ue.entries())u.reject(new Error("Worker messageerror"));ue.clear()}}}function ya(){var t;if(he)try{for(const[o,n]of ue.entries())n.reject(new Error("Worker cleared"));ue.clear(),(t=he.terminate)==null||t.call(he)}catch(o){}he=null,Mt=null}function xa(){return he||(Mt=new Error("[mermaidWorkerClient] No worker instance set. Please inject a Worker via setMermaidWorker()."),Mt.name="WorkerInitError",Mt.code="WORKER_INIT_ERROR",null)}function Mo(t,o,n=1400){if(!xo()){const l=new Error("Mermaid rendering disabled");return l.name="MermaidDisabled",l.code=Bo,Promise.reject(l)}if(Mt)return Promise.reject(Mt);const s=xa();if(!s)return Promise.reject(Mt);if(ue.size>=Tn){const l=new Error("Worker busy");return l.name="WorkerBusy",l.code=bo,l.inFlight=ue.size,l.max=Tn,Promise.reject(l)}return new Promise((l,m)=>{const u=Math.random().toString(36).slice(2);let f=!1,g;const h=()=>{f||(f=!0,g!=null&&globalThis.clearTimeout(g),ue.delete(u))},y={resolve:x=>{h(),l(x)},reject:x=>{h(),m(x)}};ue.set(u,y);try{s.postMessage({id:u,action:t,payload:o})}catch(x){ue.delete(u),m(x);return}g=globalThis.setTimeout(()=>{const x=new Error("Worker call timed out");x.name="WorkerTimeout",x.code="WORKER_TIMEOUT";const S=ue.get(u);S&&S.reject(x)},n)})}function Co(t,o,n=1400){return L(this,null,function*(){try{return yield Mo("canParse",{code:t,theme:o},n)}catch(s){return Promise.reject(s)}})}function Eo(t,o,n=1400){return L(this,null,function*(){try{return yield Mo("findPrefix",{code:t,theme:o},n)}catch(s){return Promise.reject(s)}})}function Pn(){if(he)try{for(const[t,o]of ue.entries())o.reject(new Error("Worker terminated"));ue.clear(),he.terminate()}finally{he=null}}const ba={key:0},Ba={key:1,class:"flex items-center space-x-2 overflow-hidden"},Ma=["src"],Ca={key:2},Ea={class:"flex items-center space-x-1"},Ta={class:"flex items-center space-x-1"},Na={key:4},_a={key:5,class:"flex items-center space-x-1"},Sa=["aria-pressed"],Ia={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"},$a={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"},Va=["disabled"],La=["disabled"],Da={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"},Ra={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"},za={key:1,class:"relative"},Aa={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},Ha={class:"flex items-center gap-2 backdrop-blur rounded-lg"},ja={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},Pa=300,Fa=500,Ka=3,Oa=e.defineComponent({__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(t,{emit:o}){var sn,cn;const n=t,s=o,l={USE_PROFILES:{svg:!0},FORBID_TAGS:["script"],FORBID_ATTR:[/^on/i],ADD_TAGS:["style"],ADD_ATTR:["style"],SAFE_FOR_TEMPLATES:!0},m=e.ref(!1),u=e.computed(()=>n.isStrict?"strict":"loose"),f=e.computed(()=>({startOnLoad:!1,securityLevel:u.value,dompurifyConfig:u.value==="strict"?l:void 0,flowchart:u.value==="strict"?{htmlLabels:!1}:void 0}));function g(a){return a.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#")}const h=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],y=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function x(a){if(!a)return"";const r=a.trim();return y.test(r)?r:""}function S(a){const r=new Set(["script"]),c=[a,...Array.from(a.querySelectorAll("*"))];for(const w of c){if(r.has(w.tagName.toLowerCase())){w.remove();continue}const _=Array.from(w.attributes);for(const T of _){const R=T.name;if(/^on/i.test(R)){w.removeAttribute(R);continue}if(R==="style"&&T.value){const D=T.value;if(h.some(ne=>ne.test(D))){w.removeAttribute(R);continue}}if((R==="href"||R==="xlink:href")&&T.value){const D=x(T.value);if(!D){w.removeAttribute(R);continue}D!==T.value&&w.setAttribute(R,D)}}}}function V(a){if(typeof window=="undefined"||typeof DOMParser=="undefined"||!a)return null;const r=g(a),w=new DOMParser().parseFromString(r,"image/svg+xml").documentElement;if(!w||w.nodeName.toLowerCase()!=="svg")return null;const _=w;return S(_),_}function E(a,r){if(!a)return"";try{a.replaceChildren()}catch(w){a.innerHTML=""}const c=V(r);return c?(a.appendChild(c),a.innerHTML):""}function X(a){if(a)try{a.replaceChildren()}catch(r){a.innerHTML=""}}function I(a,r){if(!a)return"";if(u.value==="strict")return E(a,r);try{a.replaceChildren()}catch(c){a.innerHTML=""}if(r)try{a.insertAdjacentHTML("afterbegin",r)}catch(c){a.innerHTML=r}return a.innerHTML}const{t:b}=_n();function Z(){return L(this,null,function*(){try{const a=yield ha();return m.value=!!a,a}catch(a){throw m.value=!1,a}})}typeof window!="undefined"&&L(null,null,function*(){var a;try{const r=yield Z();if(!r)return;(a=r==null?void 0:r.initialize)==null||a.call(r,q({},f.value))}catch(r){m.value=!1,console.warn("[markstream-vue] Failed to initialize mermaid renderer. Call enableMermaid() to configure a loader.",r)}});const K=e.ref(!1),Y=e.ref(!1),te=e.ref(),$=e.ref(),Le=e.ref(),ee=e.ref(null),Ce=Sn(),nt=e.ref(null),A=e.ref(typeof window=="undefined"),wt=e.ref(),G=e.computed(()=>n.node.code.replace(/\]::([^:])/g,"]:::$1").replace(/:::subgraphNode$/gm,"::subgraphNode"));function ve(a,r=G.value){const c=r,_=`%%{init: {"theme": "${a==="dark"?"dark":"default"}"}}%%
2
- `;return c.trim().startsWith("%%{")?c:_+c}const C=e.ref(1),O=e.ref(0),j=e.ref(0),Ee=e.ref(!1),De=e.ref({x:0,y:0}),F=e.ref(!1),oe=e.ref(!1),J=e.ref(!1),dt=e.ref(null),ot=e.ref(0),mt=e.ref(!1);let ie=null,me=null,rt=0;const kt=(sn=globalThis.requestIdleCallback)!=null?sn:((a,r)=>setTimeout(()=>a({didTimeout:!0}),16)),Ye=yn(()=>{kt(()=>{St()},{timeout:500})},Pa);function Fe(){me!=null&&(globalThis.clearTimeout(me),me=null)}function se(a=600){if(typeof globalThis=="undefined")return;const r=Math.max(0,a);Fe();const c=()=>{if(me=null,n.loading||J.value||!A.value){const w=Math.min(1200,Math.max(300,r*1.2));se(w);return}Ye()};me=globalThis.setTimeout(c,r)}const W=e.ref("360px");let ce=null;const Q=e.ref(!1),pe=e.ref(!1),Ke=e.ref({}),at=e.ref(null),Te=e.ref(""),Et=e.ref(0);let re=null;const v=e.ref(!1),k=e.ref({zoom:1,translateX:0,translateY:0,containerHeight:"360px"}),M=e.computed(()=>n.enableWheelZoom?{wheel:fe}:{}),z=e.computed(()=>{var a,r,c,w;return{worker:(a=n.workerTimeoutMs)!=null?a:1400,parse:(r=n.parseTimeoutMs)!=null?r:1800,render:(c=n.renderTimeoutMs)!=null?c:2500,fullRender:(w=n.fullRenderTimeoutMs)!=null?w:4e3}}),Re=(cn=globalThis.cancelIdleCallback)!=null?cn:(a=>clearTimeout(a));let qe=null,Oe=null,yt=!1,Ze=800,ze=null,At=0,ft=!0;typeof window!="undefined"&&e.watch(()=>te.value,a=>{var c;if((c=nt.value)==null||c.destroy(),nt.value=null,!a){A.value=!1;return}const r=Ce(a,{rootMargin:"400px"});nt.value=r,A.value=r.isVisible.value,r.whenVisible.then(()=>{A.value=!0})},{immediate:!0}),e.onBeforeUnmount(()=>{var a;(a=nt.value)==null||a.destroy(),nt.value=null});function Ge(a,r){const c=r==null?void 0:r.timeoutMs,w=r==null?void 0:r.signal;if(w!=null&&w.aborted)return Promise.reject(new DOMException("Aborted","AbortError"));let _=null,T=!1,R=null;return new Promise((D,ne)=>{const le=()=>{_!=null&&clearTimeout(_),R&&w&&w.removeEventListener("abort",R)};c&&c>0&&(_=globalThis.setTimeout(()=>{T||(T=!0,le(),ne(new Error("Operation timed out")))},c)),w&&(R=()=>{T||(T=!0,le(),ne(new DOMException("Aborted","AbortError")))},w.addEventListener("abort",R)),a().then(Ot=>{T||(T=!0,le(),D(Ot))}).catch(Ot=>{T||(T=!0,le(),ne(Ot))})})}function Tt(a){if(typeof document=="undefined"||!$.value)return;const r=document.createElement("div");r.className="text-red-500 p-4",r.textContent="Failed to render diagram: ";const c=document.createElement("span");c.textContent=a instanceof Error?a.message:"Unknown error",r.appendChild(c),X($.value),$.value.appendChild(r),W.value="360px",v.value=!0,Qe()}function ht(a){const r=typeof a=="string"?a:typeof(a==null?void 0:a.message)=="string"?a.message:"";return typeof r=="string"&&/timed out/i.test(r)}function xt(a){const r=a;return!r||r.disabled}function ae(a,r,c="top"){if(xt(a.currentTarget))return;const w=a,_=(w==null?void 0:w.clientX)!=null&&(w==null?void 0:w.clientY)!=null?{x:w.clientX,y:w.clientY}:void 0;on(a.currentTarget,r,c,!1,_,n.isDark)}function U(){Nn()}function gn(a){if(xt(a.currentTarget))return;const r=K.value?b("common.copied")||"Copied":b("common.copy")||"Copy",c=a,w=(c==null?void 0:c.clientX)!=null&&(c==null?void 0:c.clientY)!=null?{x:c.clientX,y:c.clientY}:void 0;on(a.currentTarget,r,"top",!1,w,n.isDark)}function wn(a,r){const w=`%%{init: {"theme": "${r==="dark"?"dark":"default"}"}}%%
3
- `;return a.trimStart().startsWith("%%{")?a:w+a}function rn(){return ft&&!F.value&&!Q.value&&!v.value}function an(a){const r=a.split(/\r?\n/);for(;r.length>0;){const w=r[r.length-1].trimEnd();if(w===""){r.pop();continue}if(/^[-=~>|<\s]+$/.test(w.trim())||/(?:--|==|~~|->|<-|-\||-\)|-x|o-|\|-|\.-)\s*$/.test(w)||/[-|><]$/.test(w)||/(?:graph|flowchart|sequenceDiagram|classDiagram|stateDiagram|erDiagram|gantt)\s*$/i.test(w)){r.pop();continue}break}return r.join(`
4
- `)}function Vn(a,r,c){return L(this,null,function*(){var D,ne;const w=yield Z();if(!w)return;const _=w,T=wn(a,r);if(typeof _.parse=="function")return yield Ge(()=>_.parse(T),{timeoutMs:(D=c==null?void 0:c.timeoutMs)!=null?D:z.value.parse,signal:c==null?void 0:c.signal}),!0;const R=`mermaid-parse-${Math.random().toString(36).slice(2,9)}`;return yield Ge(()=>w.render(R,T),{timeoutMs:(ne=c==null?void 0:c.timeoutMs)!=null?ne:z.value.render,signal:c==null?void 0:c.signal}),!0})}function Nt(a,r,c){return L(this,null,function*(){var w;try{return yield Co(a,r,(w=c==null?void 0:c.timeoutMs)!=null?w:z.value.worker)}catch(_){return yield Vn(a,r,c)}})}function Ln(a,r,c){return L(this,null,function*(){var _;try{if(yield Nt(a,r,c))return{fullOk:!0,prefixOk:!1}}catch(T){if((T==null?void 0:T.name)==="AbortError")throw T}let w=an(a);if(w&&w.trim()&&w!==a)try{try{const R=yield Eo(a,r,(_=c==null?void 0:c.timeoutMs)!=null?_:z.value.worker);R&&R.trim()&&(w=R)}catch(R){}if(yield Nt(w,r,c))return{fullOk:!1,prefixOk:!0,prefix:w}}catch(T){if((T==null?void 0:T.name)==="AbortError")throw T}return{fullOk:!1,prefixOk:!1}})}const Ht=e.computed(()=>F.value||J.value||Y.value);function jt(a){if(!te.value||!$.value)return;const r=$.value.querySelector("svg");if(!r)return;let c=0,w=0;const _=r.getAttribute("viewBox"),T=r.getAttribute("width"),R=r.getAttribute("height");if(_){const D=_.split(" ");D.length===4&&(c=Number.parseFloat(D[2]),w=Number.parseFloat(D[3]))}if((!c||!w)&&T&&R&&(c=Number.parseFloat(T),w=Number.parseFloat(R)),Number.isNaN(c)||Number.isNaN(w)||c<=0||w<=0)try{const D=r.getBBox();D&&D.width>0&&D.height>0&&(c=D.width,w=D.height)}catch(D){console.error("Failed to get SVG BBox:",D);return}if(c>0&&w>0){const D=w/c;let le=(a!=null?a:te.value.clientWidth)*D;le>w&&(le=w),W.value=`${le}px`}}const Je=e.ref(!1),ln=e.computed(()=>({transform:`translate(${O.value}px, ${j.value}px) scale(${C.value})`}));function kn(a){a.key==="Escape"&&Je.value&&Pt()}function Dn(){if(Je.value=!0,typeof document!="undefined")try{document.body.style.overflow="hidden"}catch(a){}if(typeof window!="undefined")try{window.addEventListener("keydown",kn)}catch(a){}e.nextTick(()=>{if(te.value&&Le.value){const a=te.value.cloneNode(!0);a.classList.add("fullscreen");const r=a.querySelector("[data-mermaid-wrapper]");r&&(ee.value=r,r.style.transform=ln.value.transform),X(Le.value),Le.value.appendChild(a)}})}function Pt(){if(Je.value=!1,Le.value&&X(Le.value),ee.value=null,typeof document!="undefined")try{document.body.style.overflow=""}catch(a){}if(typeof window!="undefined")try{window.removeEventListener("keydown",kn)}catch(a){}}function yn(a,r){let c=null;return(...w)=>{c&&clearTimeout(c),c=setTimeout(()=>a(...w),r)}}function xn(){if(!F.value||!m.value)return;const a=G.value.length;a!==ot.value&&(mt.value=!0,ot.value=a,ie&&clearTimeout(ie),ie=setTimeout(()=>{mt.value&&F.value&&G.value.trim()&&(mt.value=!1,lt("preview"))},Fa))}e.watch(ln,a=>{Je.value&&ee.value&&(ee.value.style.transform=a.transform)},{immediate:!0});function i(){C.value<3&&(C.value+=.1)}function d(){C.value>.5&&(C.value-=.1)}function p(){C.value=1,O.value=0,j.value=0}function N(a){Ee.value=!0,a instanceof MouseEvent?De.value={x:a.clientX-O.value,y:a.clientY-j.value}:De.value={x:a.touches[0].clientX-O.value,y:a.touches[0].clientY-j.value}}function B(a){if(!Ee.value)return;let r,c;a instanceof MouseEvent?(r=a.clientX,c=a.clientY):(r=a.touches[0].clientX,c=a.touches[0].clientY),O.value=r-De.value.x,j.value=c-De.value.y}function H(){Ee.value=!1}function fe(a){if(n.enableWheelZoom&&(a.ctrlKey||a.metaKey)){if(a.preventDefault(),!te.value)return;const r=te.value.getBoundingClientRect(),c=a.clientX-r.left,w=a.clientY-r.top,_=r.width/2,T=r.height/2,R=c-_,D=w-T,ne=(R-O.value)/C.value,le=(D-j.value)/C.value,zo=-a.deltaY*.01,bn=Math.min(Math.max(C.value+zo,.5),3);bn!==C.value&&(O.value=R-ne*bn,j.value=D-le*bn,C.value=bn)}}function Ae(){return L(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(G.value)),K.value=!0,s("copy",G.value),setTimeout(()=>{K.value=!1},1e3)}catch(a){console.error("Failed to copy:",a)}})}function We(a,r=null){return L(this,null,function*(){try{const c=r!=null?r:new XMLSerializer().serializeToString(a),w=new Blob([c],{type:"image/svg+xml;charset=utf-8"}),_=URL.createObjectURL(w);if(typeof document!="undefined"){const T=document.createElement("a");T.href=_,T.download=`mermaid-diagram-${Date.now()}.svg`;try{document.body.appendChild(T),T.click(),document.body.removeChild(T)}catch(R){}URL.revokeObjectURL(_)}}catch(c){console.error("Failed to export SVG:",c)}})}function Ne(){var w;const a=(w=$.value)==null?void 0:w.querySelector("svg");if(!a){console.error("SVG element not found");return}const r=new XMLSerializer().serializeToString(a),c={payload:{type:"export"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:a,svgString:r};s("export",c),c.defaultPrevented||We(a,r)}function Xe(){var w,_;const a=(_=(w=$.value)==null?void 0:w.querySelector("svg"))!=null?_:null,r=a?new XMLSerializer().serializeToString(a):null,c={payload:{type:"open-modal"},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0},svgElement:a,svgString:r};s("openModal",c),c.defaultPrevented||Dn()}function bt(a){const r={payload:{type:"toggle-mode",target:a},defaultPrevented:!1,preventDefault(){this.defaultPrevented=!0}};s("toggleMode",a,r),r.defaultPrevented||lt(a)}function lt(a){return L(this,null,function*(){const r=wt.value;if(!r){oe.value=!0,F.value=a==="source";return}const c=r.getBoundingClientRect().height;r.style.height=`${c}px`,r.style.overflow="hidden",oe.value=!0,F.value=a==="source",yield e.nextTick();const w=r.scrollHeight;r.style.transition="height 180ms ease",r.offsetHeight,r.style.height=`${w}px`;const _=()=>{r.style.transition="",r.style.height="",r.style.overflow="",r.removeEventListener("transitionend",T)};function T(){_()}r.addEventListener("transitionend",T),setTimeout(()=>_(),220)})}function He(){return L(this,null,function*(){if(J.value)return dt.value;if(!$.value&&(yield e.nextTick(),!$.value)){console.warn("Mermaid container not ready");return}return J.value=!0,dt.value=L(null,null,function*(){var a;$.value&&($.value.style.opacity="0");try{const r=yield Z();if(!r)return;const c=`mermaid-${Date.now()}-${Math.random().toString(36).substring(2,11)}`;!Q.value&&!pe.value&&((a=r.initialize)==null||a.call(r,st(q({},f.value),{dompurifyConfig:q({},l)})));const w=n.isDark?"dark":"light",_=ve(w),T=yield Ge(()=>r.render(c,_),{timeoutMs:z.value.fullRender}),R=T==null?void 0:T.svg;if($.value){const D=I($.value,R);!Q.value&&!pe.value&&(jt(),Q.value=!0,k.value={zoom:C.value,translateX:O.value,translateY:j.value,containerHeight:W.value});const ne=n.isDark?"dark":"light";D&&(Ke.value[ne]=D),pe.value&&(pe.value=!1),v.value=!1,rt=0,Fe()}}catch(r){const c=ht(r),w=rt+1;if(c&&w<=Ka){rt=w;const _=Math.min(1200,600*w);se(_)}else rt=0,Fe(),console.error("Failed to render mermaid diagram:",r),n.loading===!1&&Tt(r)}finally{yield e.nextTick(),$.value&&($.value.style.opacity="1"),J.value=!1,dt.value=null}}),dt.value})}function _t(a){return L(this,null,function*(){if(rn()&&!(!$.value&&(yield e.nextTick(),!$.value))&&!J.value){J.value=!0;try{const r=yield Z();if(!r)return;const c=`mermaid-partial-${Date.now()}-${Math.random().toString(36).slice(2,9)}`,w=n.isDark?"dark":"light",_=an(a),T=_&&_.trim()?_:a,R=wn(T,w);$.value&&($.value.style.opacity="0");const D=yield Ge(()=>r.render(c,R),{timeoutMs:z.value.render}),ne=D==null?void 0:D.svg;$.value&&ne&&(I($.value,ne),jt())}catch(r){}finally{yield e.nextTick(),$.value&&($.value.style.opacity="1"),J.value=!1}}})}function St(){return L(this,null,function*(){var D,ne;const a=Date.now(),r=++Et.value;re&&re.abort(),re=new AbortController;const c=re.signal,w=n.isDark?"dark":"light",_=G.value,T=_.replace(/\s+/g,"");if(!_.trim()){$.value&&X($.value),at.value=null,Te.value="",v.value=!1;return}if(T===Te.value)return;try{const le=yield Ln(_,w,{signal:c,timeoutMs:z.value.worker});if(le.fullOk){yield He(),Et.value===r&&(at.value=(ne=(D=$.value)==null?void 0:D.innerHTML)!=null?ne:null,Te.value=T,v.value=!1);return}const Ot=At&&a<=At;if(le.prefixOk&&le.prefix&&rn()&&!Ot){yield _t(le.prefix);return}}catch(le){if((le==null?void 0:le.name)==="AbortError")return}if(Et.value!==r||v.value)return;const R=Ke.value[w];R&&$.value&&I($.value,R)})}function Qe(){yt&&(yt=!1,Ze=800,ft=!1,ze&&(ze.abort(),ze=null),qe&&(globalThis.clearTimeout(qe),qe=null),Oe&&(Re(Oe),Oe=null),At=Date.now())}function it(){if(Qe(),re){try{re.abort()}catch(a){}re=null}if(ze){try{ze.abort()}catch(a){}ze=null}Pn(),Fe(),rt=0}function Ft(a=800){yt&&(qe&&globalThis.clearTimeout(qe),qe=globalThis.setTimeout(()=>{Oe=kt(()=>L(null,null,function*(){if(!yt)return;if(F.value||Q.value){Qe();return}const r=n.isDark?"dark":"light",c=G.value;if(!c.trim()){Ft(Ze);return}ze&&ze.abort(),ze=new AbortController;try{if((yield Nt(c,r,{signal:ze.signal,timeoutMs:z.value.worker}))&&(yield He(),Q.value)){Qe();return}}catch(w){}Ze=Math.min(Math.floor(Ze*1.5),4e3),Ft(Ze)}),{timeout:500})},a))}function Kt(){yt||F.value||Q.value||(yt=!0,At=0,ft=!0,Ft(500))}e.watch(()=>G.value,()=>{Q.value=!1,Ke.value={},Ye(),!F.value&&m.value&&Kt(),xn()}),e.watch(()=>n.isDark,()=>L(null,null,function*(){if(!Q.value||v.value)return;const a=n.isDark?"dark":"light",r=Ke.value[a];if(r){$.value&&I($.value,r);return}const c={zoom:C.value,translateX:O.value,translateY:j.value,containerHeight:W.value},w=C.value!==1||O.value!==0||j.value!==0;pe.value=!0,w&&(C.value=1,O.value=0,j.value=0,yield e.nextTick()),yield He(),w&&(yield e.nextTick(),C.value=c.zoom,O.value=c.translateX,j.value=c.translateY,W.value=c.containerHeight,k.value=c)})),e.watch(()=>F.value,a=>L(null,null,function*(){if(a)Qe(),Q.value&&(k.value={zoom:C.value,translateX:O.value,translateY:j.value,containerHeight:W.value});else{if(v.value)return;const r=n.isDark?"dark":"light";if(Q.value&&Ke.value[r]){yield e.nextTick(),$.value&&I($.value,Ke.value[r]),C.value=k.value.zoom,O.value=k.value.translateX,j.value=k.value.translateY,W.value=k.value.containerHeight;return}if(yield e.nextTick(),!m.value)return;yield St(),Kt()}})),e.watch(()=>n.loading,(a,r)=>L(null,null,function*(){if(r===!0&&a===!1){const c=G.value.trim();if(!c)return it();const w=n.isDark?"dark":"light",_=c.replace(/\s+/g,"");if(Q.value&&_===Te.value){yield e.nextTick(),$.value&&!$.value.querySelector("svg")&&Ke.value[w]&&I($.value,Ke.value[w]),it();return}try{yield Nt(c,w,{timeoutMs:z.value.worker}),yield He(),Te.value=_,v.value=!1,it()}catch(T){it(),Tt(T)}}})),e.watch(te,a=>{ce&&ce.disconnect(),a&&!Q.value&&!pe.value&&(ce=new ResizeObserver(r=>{r&&r.length>0&&!Q.value&&!pe.value&&yo(()=>{const c=r[0].contentRect.width;jt(c)})}),ce.observe(a))},{immediate:!0}),e.onMounted(()=>L(null,null,function*(){yield e.nextTick(),oe.value||(F.value=!m.value),A.value&&(Ye(),ot.value=G.value.length)})),e.watch(()=>m.value,a=>{oe.value||(F.value=!a)}),e.watch(()=>A.value,a=>{a&&(Q.value||(Ye(),ot.value=G.value.length),!n.loading&&!Q.value&&Ye())},{immediate:!1}),e.onUnmounted(()=>{ie&&clearTimeout(ie),ce&&ce.disconnect(),re&&(re.abort(),re=null),Pn(),Qe(),Fe()}),e.watch(()=>Y.value,a=>L(null,null,function*(){a?(Qe(),re&&re.abort()):Q.value||(yield e.nextTick(),Ye(),F.value||Kt())}),{immediate:!1});const It=e.computed(()=>n.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(a,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":n.loading}]])},[n.showHeader?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["mermaid-block-header flex justify-between items-center px-4 py-2.5 border-b",n.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[a.$slots["header-left"]?(e.openBlock(),e.createElementBlock("div",ba,[e.renderSlot(a.$slots,"header-left",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",Ba,[e.createElementVNode("img",{src:e.unref(sa),class:"w-4 h-4 my-0",alt:"Mermaid"},null,8,Ma),e.createElementVNode("span",{class:e.normalizeClass(["text-sm font-medium font-mono truncate",n.isDark?"text-gray-400":"text-gray-600"])},"Mermaid",2)])),a.$slots["header-center"]?(e.openBlock(),e.createElementBlock("div",Ca,[e.renderSlot(a.$slots,"header-center",{},void 0,!0)])):n.showModeToggle&&m.value?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(["flex items-center space-x-1 rounded-md p-0.5",n.isDark?"bg-gray-700":"bg-gray-100"])},[e.createElementVNode("button",{class:e.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[F.value?n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:r[0]||(r[0]=()=>bt("preview")),onMouseenter:r[1]||(r[1]=c=>ae(c,e.unref(b)("common.preview")||"Preview")),onFocus:r[2]||(r[2]=c=>ae(c,e.unref(b)("common.preview")||"Preview")),onMouseleave:U,onBlur:U},[e.createElementVNode("div",Ea,[r[21]||(r[21]=e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("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"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)),e.createElementVNode("span",null,e.toDisplayString(e.unref(b)("common.preview")||"Preview"),1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["px-2.5 py-1 text-xs rounded transition-colors",[F.value?n.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":n.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:r[3]||(r[3]=()=>bt("source")),onMouseenter:r[4]||(r[4]=c=>ae(c,e.unref(b)("common.source")||"Source")),onFocus:r[5]||(r[5]=c=>ae(c,e.unref(b)("common.source")||"Source")),onMouseleave:U,onBlur:U},[e.createElementVNode("div",Ta,[r[22]||(r[22]=e.createElementVNode("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"},[e.createElementVNode("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)),e.createElementVNode("span",null,e.toDisplayString(e.unref(b)("common.source")||"Source"),1)])],34)],2)):e.createCommentVNode("",!0),a.$slots["header-right"]?(e.openBlock(),e.createElementBlock("div",Na,[e.renderSlot(a.$slots,"header-right",{},void 0,!0)])):(e.openBlock(),e.createElementBlock("div",_a,[n.showCollapseButton?(e.openBlock(),e.createElementBlock("button",{key:0,class:e.normalizeClass(It.value),"aria-pressed":Y.value,onClick:r[6]||(r[6]=c=>Y.value=!Y.value),onMouseenter:r[7]||(r[7]=c=>ae(c,Y.value?e.unref(b)("common.expand")||"Expand":e.unref(b)("common.collapse")||"Collapse")),onFocus:r[8]||(r[8]=c=>ae(c,Y.value?e.unref(b)("common.expand")||"Expand":e.unref(b)("common.collapse")||"Collapse")),onMouseleave:U,onBlur:U},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({rotate:Y.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"},[...r[23]||(r[23]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,Sa)):e.createCommentVNode("",!0),n.showCopyButton?(e.openBlock(),e.createElementBlock("button",{key:1,class:e.normalizeClass(It.value),onClick:Ae,onMouseenter:r[9]||(r[9]=c=>gn(c)),onFocus:r[10]||(r[10]=c=>gn(c)),onMouseleave:U,onBlur:U},[K.value?(e.openBlock(),e.createElementBlock("svg",$a,[...r[25]||(r[25]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",Ia,[...r[24]||(r[24]=[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.createElementVNode("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)):e.createCommentVNode("",!0),n.showExportButton&&m.value?(e.openBlock(),e.createElementBlock("button",{key:2,class:e.normalizeClass(`${It.value} ${Ht.value?"opacity-50 cursor-not-allowed":""}`),disabled:Ht.value,onClick:Ne,onMouseenter:r[11]||(r[11]=c=>ae(c,e.unref(b)("common.export")||"Export")),onFocus:r[12]||(r[12]=c=>ae(c,e.unref(b)("common.export")||"Export")),onMouseleave:U,onBlur:U},[...r[26]||(r[26]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),e.createElementVNode("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,Va)):e.createCommentVNode("",!0),n.showFullscreenButton&&m.value?(e.openBlock(),e.createElementBlock("button",{key:3,class:e.normalizeClass(`${It.value} ${Ht.value?"opacity-50 cursor-not-allowed":""}`),disabled:Ht.value,onClick:Xe,onMouseenter:r[13]||(r[13]=c=>ae(c,Je.value?e.unref(b)("common.minimize")||"Minimize":e.unref(b)("common.open")||"Open")),onFocus:r[14]||(r[14]=c=>ae(c,Je.value?e.unref(b)("common.minimize")||"Minimize":e.unref(b)("common.open")||"Open")),onMouseleave:U,onBlur:U},[Je.value?(e.openBlock(),e.createElementBlock("svg",Ra,[...r[28]||(r[28]=[e.createElementVNode("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)])])):(e.openBlock(),e.createElementBlock("svg",Da,[...r[27]||(r[27]=[e.createElementVNode("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,La)):e.createCommentVNode("",!0)]))],2)):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"modeContainerRef",ref:wt},[F.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["p-4",n.isDark?"bg-gray-900":"bg-gray-50"])},[e.createElementVNode("pre",{class:e.normalizeClass(["text-sm font-mono whitespace-pre-wrap",n.isDark?"text-gray-300":"text-gray-700"])},e.toDisplayString(G.value),3)],2)):(e.openBlock(),e.createElementBlock("div",za,[n.showZoomControls?(e.openBlock(),e.createElementBlock("div",Aa,[e.createElementVNode("div",Ha,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:i,onMouseenter:r[15]||(r[15]=c=>ae(c,e.unref(b)("common.zoomIn")||"Zoom in")),onFocus:r[16]||(r[16]=c=>ae(c,e.unref(b)("common.zoomIn")||"Zoom in")),onMouseleave:U,onBlur:U},[...r[29]||(r[29]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:d,onMouseenter:r[17]||(r[17]=c=>ae(c,e.unref(b)("common.zoomOut")||"Zoom out")),onFocus:r[18]||(r[18]=c=>ae(c,e.unref(b)("common.zoomOut")||"Zoom out")),onMouseleave:U,onBlur:U},[...r[30]||(r[30]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:p,onMouseenter:r[19]||(r[19]=c=>ae(c,e.unref(b)("common.resetZoom")||"Reset zoom")),onFocus:r[20]||(r[20]=c=>ae(c,e.unref(b)("common.resetZoom")||"Reset zoom")),onMouseleave:U,onBlur:U},e.toDisplayString(Math.round(C.value*100))+"% ",35)])])):e.createCommentVNode("",!0),e.createElementVNode("div",e.mergeProps({ref_key:"mermaidContainer",ref:te,class:["min-h-[360px] relative transition-all duration-100 overflow-hidden block",n.isDark?"bg-gray-900":"bg-gray-50"],style:{height:W.value}},e.toHandlers(M.value,!0),{onMousedown:N,onMousemove:B,onMouseup:H,onMouseleave:H,onTouchstartPassive:N,onTouchmovePassive:B,onTouchendPassive:H}),[e.createElementVNode("div",{"data-mermaid-wrapper":"",class:e.normalizeClass(["absolute inset-0 cursor-grab",{"cursor-grabbing":Ee.value}]),style:e.normalizeStyle(ln.value)},[e.createElementVNode("div",{ref_key:"mermaidContent",ref:$,class:"_mermaid w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],16),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"mermaid-dialog",appear:""},{default:e.withCtx(()=>[Je.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:e.withModifiers(Pt,["self"])},[e.createElementVNode("div",{class:e.normalizeClass(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",n.isDark?"bg-gray-900":"bg-white"])},[e.createElementVNode("div",ja,[e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:i},[...r[31]||(r[31]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:d},[...r[32]||(r[32]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("circle",{cx:"11",cy:"11",r:"8"}),e.createElementVNode("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),e.createElementVNode("button",{class:e.normalizeClass(["p-2 text-xs rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:p},e.toDisplayString(Math.round(C.value*100))+"% ",3),e.createElementVNode("button",{class:e.normalizeClass(["inline-flex items-center justify-center p-2 rounded transition-colors",[n.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Pt},[...r[33]||(r[33]=[e.createElementVNode("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"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),e.createElementVNode("div",e.mergeProps({ref_key:"modalContent",ref:Le,class:"w-full h-full flex items-center justify-center p-4 overflow-hidden"},e.toHandlers(M.value,!0),{onMousedown:N,onMousemove:B,onMouseup:H,onMouseleave:H,onTouchstartPassive:N,onTouchmovePassive:B,onTouchendPassive:H}),null,16)],2)])):e.createCommentVNode("",!0)]),_:1})]))]))],512),[[e.vShow,!Y.value]])],2))}}),Dt=P(Oa,[["__scopeId","data-v-3636e700"]]);Dt.install=t=>{t.component(Dt.__name,Dt)};const Wa={dir:"auto",class:"paragraph-node"},Xa=e.defineComponent({__name:"ParagraphNode",props:{node:{},customId:{},indexKey:{}},setup(t){const o=t,n=tt(o.customId),s=q({inline_code:ye,image:gt,link:Me,hardbreak:Bt,emphasis:Pe,strong:be,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,html_inline:ke,emoji:ge,checkbox:et,math_inline:ut,checkbox_input:et,reference:xe,footnote_anchor:Lt,footnote_reference:we},n),l=ko();return(m,u)=>(e.openBlock(),e.createElementBlock("p",Wa,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.children,(f,g)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:`${t.indexKey||"paragraph"}-${g}`},[f.type!=="text"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s[f.type]),{key:0,node:f,"index-key":`${t.indexKey}-${g}`,"custom-id":o.customId},null,8,["node","index-key","custom-id"])):(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass([[e.unref(l)&&f.center?"text-node-center":""],"whitespace-pre-wrap break-words text-node"])},e.toDisplayString(f.content),3))],64))),128))]))}}),Qt=P(Xa,[["__scopeId","data-v-0117537a"]]);Qt.install=t=>{t.component(Qt.__name,Qt)};const Ua=["aria-busy","aria-label","data-language"],Ya=["textContent"],Rt=e.defineComponent({__name:"PreCodeNode",props:{node:{}},setup(t){const o=t,n=e.computed(()=>{var g,h,y;const m=String((h=(g=o.node)==null?void 0:g.language)!=null?h:"");return String((y=String(m).split(/\s+/g)[0])!=null?y:"").toLowerCase().replace(/[^\w-]/g,"")||"plaintext"}),s=e.computed(()=>`language-${n.value}`),l=e.computed(()=>{const m=n.value;return m?`Code block: ${m}`:"Code block"});return(m,u)=>(e.openBlock(),e.createElementBlock("pre",{class:e.normalizeClass([s.value]),"aria-busy":t.node.loading===!0,"aria-label":l.value,"data-language":n.value,tabindex:"0"},[e.createElementVNode("code",{translate:"no",textContent:e.toDisplayString(t.node.code)},null,8,Ya)],10,Ua))}});Rt.install=t=>{t.component(Rt.__name,Rt)};const qa={class:"table-node-wrapper"},Za=["aria-busy"],Ga={class:"border-[var(--table-border,#cbd5e1)]"},Ja={class:"border-b"},Qa={key:0,class:"table-node__loading",role:"status","aria-live":"polite"},el=e.defineComponent({__name:"TableNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t){const o=t,n=e.computed(()=>{var u,f,g,h;return(h=(g=(f=(u=o.node)==null?void 0:u.header)==null?void 0:f.cells)==null?void 0:g.length)!=null?h:0}),s=e.computed(()=>{const u=n.value||1,f=Math.floor(100/u);return Array.from({length:u}).map((g,h)=>h===u-1?`${100-f*(u-1)}%`:`${f}%`)}),l=e.computed(()=>{var u;return(u=o.node.loading)!=null?u:!1}),m=e.computed(()=>{var u;return(u=o.node.rows)!=null?u:[]});return(u,f)=>(e.openBlock(),e.createElementBlock("div",qa,[e.createElementVNode("table",{class:e.normalizeClass(["w-full my-8 text-sm table-fixed table-node",{"table-node--loading":l.value}]),"aria-busy":l.value},[e.createElementVNode("colgroup",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(g,h)=>(e.openBlock(),e.createElementBlock("col",{key:`col-${h}`,style:e.normalizeStyle({width:g})},null,4))),128))]),e.createElementVNode("thead",Ga,[e.createElementVNode("tr",Ja,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.node.header.cells,(g,h)=>(e.openBlock(),e.createElementBlock("th",{key:`header-${h}`,dir:"auto",class:e.normalizeClass(["font-semibold p-[calc(4/7*1em)] overflow-x-auto",[g.align==="right"?"text-right":g.align==="center"?"text-center":"text-left"]])},[e.createVNode(e.unref(je),{nodes:g.children,"index-key":`table-th-${o.indexKey}`,"custom-id":o.customId,typewriter:o.typewriter,onCopy:f[0]||(f[0]=y=>u.$emit("copy",y))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(g,h)=>(e.openBlock(),e.createElementBlock("tr",{key:`row-${h}`,class:e.normalizeClass(["border-[var(--table-border,#cbd5e1)]",[h<m.value.length-1?"border-b":""]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.cells,(y,x)=>(e.openBlock(),e.createElementBlock("td",{key:`cell-${h}-${x}`,class:e.normalizeClass(["p-[calc(4/7*1em)] overflow-x-auto",[y.align==="right"?"text-right":y.align==="center"?"text-center":"text-left"]]),dir:"auto"},[e.createVNode(e.unref(je),{nodes:y.children,"index-key":`table-td-${o.indexKey}`,"custom-id":o.customId,typewriter:o.typewriter,onCopy:f[1]||(f[1]=S=>u.$emit("copy",S))},null,8,["nodes","index-key","custom-id","typewriter"])],2))),128))],2))),128))])],10,Za),e.createVNode(e.Transition,{name:"table-node-fade"},{default:e.withCtx(()=>[l.value?(e.openBlock(),e.createElementBlock("div",Qa,[e.renderSlot(u.$slots,"loading",{isLoading:l.value},()=>[f[2]||(f[2]=e.createElementVNode("span",{class:"table-node__spinner animate-spin","aria-hidden":"true"},null,-1)),f[3]||(f[3]=e.createElementVNode("span",{class:"sr-only"},"Loading",-1))],!0)])):e.createCommentVNode("",!0)]),_:3})]))}}),en=P(el,[["__scopeId","data-v-a874491c"]]);en.install=t=>{t.component(en.__name,en)};const tl={},nl={class:"hr-node"};function ol(t,o){return e.openBlock(),e.createElementBlock("hr",nl)}const tn=P(tl,[["render",ol],["__scopeId","data-v-639cbad9"]]);tn.install=t=>{t.component(tn.__name,tn)};const rl={key:1,class:"html-block-node__placeholder"},al=e.defineComponent({__name:"HtmlBlockNode",props:{node:{}},setup(t){const o=t,n=e.computed(()=>{const h=o.node.attrs;if(h){if(Array.isArray(h)){const y={};for(const x of h){if(!x||x.length<2)continue;const[S,V]=x;S!=null&&(y[String(S)]=V==null?"":String(V))}return y}return h}}),s=e.ref(null),l=e.ref(typeof window=="undefined"),m=e.ref(o.node.content),u=Sn(),f=e.ref(null),g=!!o.node.loading;return typeof window!="undefined"?(e.watch(s,h=>{var x,S;if((S=(x=f.value)==null?void 0:x.destroy)==null||S.call(x),f.value=null,!g){l.value=!0,m.value=o.node.content;return}if(!h){l.value=!1;return}const y=u(h,{rootMargin:"400px"});f.value=y,l.value=y.isVisible.value,y.whenVisible.then(()=>{l.value=!0})},{immediate:!0}),e.watch(()=>o.node.content,h=>{(!g||l.value)&&(m.value=h)})):l.value=!0,e.onBeforeUnmount(()=>{var h,y;(y=(h=f.value)==null?void 0:h.destroy)==null||y.call(h),f.value=null}),(h,y)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps({ref_key:"htmlRef",ref:s,class:"html-block-node"},n.value),[l.value?e.withMemo([m.value],()=>(e.openBlock(),e.createElementBlock("div",{key:0,innerHTML:m.value},null,8,["innerHTML"])),y,0):(e.openBlock(),e.createElementBlock("div",rl,[e.renderSlot(h.$slots,"placeholder",{node:t.node},()=>[y[1]||(y[1]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar"},null,-1)),y[2]||(y[2]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-4/5"},null,-1)),y[3]||(y[3]=e.createElementVNode("span",{class:"html-block-node__placeholder-bar w-2/3"},null,-1))],!0)]))],16))}}),ll=P(al,[["__scopeId","data-v-ed22b926"]]),il={class:"unknown-node"},ro=e.defineComponent({__name:"FallbackComponent",props:{node:{}},setup(t){return(o,n)=>(e.openBlock(),e.createElementBlock("div",il,e.toDisplayString(t.node.raw),1))}}),sl=["data-node-index","data-node-type"],cl=900,ul=640,dl=200,ml=1800,fl=e.defineComponent({__name:"NodeRenderer",props:{content:{},nodes:{},parseOptions:{},customMarkdownIt:{},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(t,{emit:o}){var Pt,yn,xn;const n=t,s=o,l=e.ref(),m=e.ref(!1),u=/auto|scroll|overlay/i;function f(i){if(typeof window=="undefined")return null;const d=i!=null?i:l.value;if(!d)return null;const p=d.ownerDocument||document,N=p.scrollingElement||p.documentElement;let B=d;for(;B&&!(B===p.body||B===N);){const H=window.getComputedStyle(B),fe=(H.overflowY||"").toLowerCase(),Ae=(H.overflow||"").toLowerCase();if(u.test(fe)||u.test(Ae))return B;B=B.parentElement}return null}const g=n.customId?`renderer-${n.customId}`:`renderer-${Date.now()}-${Math.random().toString(36).slice(2)}`,h=Bn.getMarkdown(g),y=e.computed(()=>{const i=n.customHtmlTags;return!i||i.length===0?h:Bn.getMarkdown(g,{customHtmlTags:i})}),x=e.computed(()=>{const i=y.value;return n.customMarkdownIt?n.customMarkdownIt(i):i});function S(i){const d=String(i!=null?i:"").trim();if(!d)return"";const p=d.match(/^[<\s/]*([A-Z][\w-]*)/i);return p?p[1].toLowerCase():""}const V=e.computed(()=>{var B,H,fe;const i=(B=n.parseOptions)!=null?B:{},d=(H=n.customHtmlTags)!=null?H:[],p=(fe=i.customHtmlTags)!=null?fe:[],N=[...d,...p].map(S).filter(Boolean);return N.length?st(q({},i),{customHtmlTags:Array.from(new Set(N))}):i}),E=e.computed(()=>{var i;if((i=n.nodes)!=null&&i.length)return e.markRaw(n.nodes.slice());if(n.content){const d=Bn.parseMarkdownToStructure(n.content,x.value,V.value);return e.markRaw(d)}return[]}),X=e.computed(()=>{var i;return Math.max(1,(i=n.maxLiveNodes)!=null?i:320)}),I=e.computed(()=>{var i;return((i=n.maxLiveNodes)!=null?i:0)<=0?!1:E.value.length>X.value}),b=e.computed(()=>!(n.viewportPriority===!1||m.value||n.deferNodesUntilVisible===!1||I.value||E.value.length>cl)),Z=gr(i=>{var d;return f((d=i!=null?i:l.value)!=null?d:null)},b),K=typeof window!="undefined",Y=K&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame.bind(window):null,te=K&&typeof window.cancelAnimationFrame=="function"?window.cancelAnimationFrame.bind(window):null,$=typeof globalThis!="undefined"&&typeof globalThis.process!="undefined"&&((yn=(Pt=globalThis.process)==null?void 0:Pt.env)==null?void 0:yn.NODE_ENV)==="test",Le=K&&typeof window.requestIdleCallback=="function",ee=e.computed(()=>{var d;const i=Math.trunc((d=n.renderBatchSize)!=null?d:80);return Number.isFinite(i)?Math.max(0,i):0}),Ce=e.computed(()=>{var d;const i=Math.trunc((d=n.initialRenderBatchSize)!=null?d:ee.value);return Number.isFinite(i)?Math.max(0,i):ee.value}),nt=e.computed(()=>n.batchRendering!==!1&&ee.value>0&&K&&!$),A=e.ref(0),wt=e.ref({key:n.indexKey,total:0}),G=e.ref(Math.max(1,ee.value||1)),ve=e.reactive({}),C=new Map,O=new Map,j=new Map,Ee=e.ref(null);let De=null,F=null;const oe=e.computed(()=>!1),J=e.computed(()=>{var i;return nt.value&&((i=n.maxLiveNodes)!=null?i:0)<=0}),dt=e.ref({batchSize:ee.value,initial:Ce.value,delay:(xn=n.renderBatchDelay)!=null?xn:16,enabled:J.value}),ot=e.computed(()=>!!Z&&(oe.value||I.value)),mt=e.computed(()=>{var i;return Math.max(0,(i=n.liveNodeBuffer)!=null?i:60)}),ie=e.ref(0),me=e.reactive({start:0,end:0}),rt=new Map,kt=e.computed(()=>{if(!I.value)return E.value.length;const i=mt.value,d=Math.max(me.end+i,Ce.value),p=Math.min(E.value.length,d);return Math.max(A.value,p)});function Ye(i){var N,B,H;const d=f((N=l.value)!=null?N:null);if(d)return d;const p=(H=(B=l.value)==null?void 0:B.ownerDocument)!=null?H:typeof document!="undefined"?document:null;return(p==null?void 0:p.scrollingElement)||(p==null?void 0:p.documentElement)||null}function Fe(){De&&(De(),De=null),Ee.value=null}function se(){if(!K||!I.value)return;const i=Ye();if(!i||Ee.value===i)return;Fe();const d=()=>ce();i.addEventListener("scroll",d,{passive:!0}),Ee.value=i,De=()=>{i.removeEventListener("scroll",d)}}function W(){var d,p,N;if(!F)return;const i=(N=(p=(d=l.value)==null?void 0:d.ownerDocument)==null?void 0:p.defaultView)!=null?N:typeof window!="undefined"?window:null;F.viaTimeout?i?i.clearTimeout(F.id):clearTimeout(F.id):te==null||te(F.id),F=null}function ce(i={}){var p,N,B;if(!I.value)return;if(!K){Q(!0);return}if(i.immediate){W(),Q(!0);return}if(F)return;const d=()=>{F=null,Q()};if(Y)F={id:Y(d),viaTimeout:!1};else{const H=(B=(N=(p=l.value)==null?void 0:p.ownerDocument)==null?void 0:N.defaultView)!=null?B:typeof window!="undefined"?window:null;F={id:H?H.setTimeout(d,16):setTimeout(d,16),viaTimeout:!0}}}function Q(i=!1){var lt,He,_t,St,Qe,it,Ft,Kt,It,sn,cn;if(!I.value)return;const d=Ee.value||Ye();if(!d)return;const p=d.ownerDocument||((lt=l.value)==null?void 0:lt.ownerDocument)||document,N=(p==null?void 0:p.defaultView)||(typeof window!="undefined"?window:null),B=d===(p==null?void 0:p.documentElement)||d===(p==null?void 0:p.body),H=B?null:d.getBoundingClientRect(),fe=B?0:H.top,Ae=B?(_t=(He=N==null?void 0:N.innerHeight)!=null?He:d.clientHeight)!=null?_t:0:H.bottom,We=Array.from(j.entries()).sort((a,r)=>a[0]-r[0]);let Ne=null,Xe=null;for(const[a,r]of We){if(!r)continue;const c=r.getBoundingClientRect();c.bottom<=fe||c.top>=Ae||(Ne==null&&(Ne=a),Xe=a)}if(Ne==null||Xe==null){const a=l.value;if(!a)return;const r=B?{top:0}:d.getBoundingClientRect(),c=a.getBoundingClientRect(),w=B?(Ft=(it=(St=p==null?void 0:p.documentElement)==null?void 0:St.scrollTop)!=null?it:(Qe=p==null?void 0:p.body)==null?void 0:Qe.scrollTop)!=null?Ft:0:d.scrollTop,_=c.top-(B?0:r.top)+w,T=Math.max(0,w-_),R=B?(cn=(sn=(It=N==null?void 0:N.innerHeight)!=null?It:(Kt=p==null?void 0:p.documentElement)==null?void 0:Kt.clientHeight)!=null?sn:d.clientHeight)!=null?cn:0:d.clientHeight,D=T+Math.max(0,R)*.5,ne=Re(D);ie.value=pe(ne,0,Math.max(0,E.value.length-1));return}const bt=Math.round((Ne+Xe)/2);!i&&Math.abs(bt-ie.value)<=1||(ie.value=pe(bt,0,Math.max(0,E.value.length-1)))}function pe(i,d,p){return Math.min(Math.max(i,d),p)}function Ke(){const i=E.value.length;if(!I.value||i===0){me.start=0,me.end=i;return}const d=Math.min(X.value,i),p=mt.value,N=pe(ie.value-p,0,Math.max(0,i-d));me.start=N,me.end=Math.min(i,N+d)}const at=e.reactive({}),Te=e.reactive({total:0,count:0});function Et(i,d){if(!Number.isFinite(d)||d<=0)return;const p=at[i];at[i]=d,p?Te.total+=d-p:(Te.total+=d,Te.count++)}const re=e.computed(()=>Te.count>0?Math.max(12,Te.total/Te.count):32);function v(i,d){var N;if(i>=d)return 0;let p=0;for(let B=i;B<d;B++)p+=(N=at[B])!=null?N:re.value;return p}const k=e.computed(()=>{if(!I.value)return E.value.map((N,B)=>({node:N,index:B}));const i=E.value.length,d=pe(me.start,0,i),p=pe(me.end,d,i);return E.value.slice(d,p).map((N,B)=>({node:N,index:d+B}))}),M=e.computed(()=>I.value?v(0,Math.min(me.start,E.value.length)):0),z=e.computed(()=>{if(!I.value)return 0;const i=E.value.length,d=Math.min(me.end,i);return v(d,i)});function Re(i){var N;if(i<=0)return 0;let d=i;const p=E.value;for(let B=0;B<p.length;B++){const H=(N=at[B])!=null?N:re.value;if(d<=H)return B;d-=H}return Math.max(0,p.length-1)}function qe(i){if(C.size&&I.value)for(const[d,p]of C)d>=i&&(p.destroy(),C.delete(d),oe.value&&delete ve[d],U(d),j.delete(d))}function Oe(i,d){oe.value&&(ve[i]=d),d&&(I.value?ce():ie.value=pe(i,0,Math.max(0,E.value.length-1)))}function yt(i){return J.value&&i>=A.value?!1:!oe.value||i<Ce.value?!0:ve[i]===!0}function Ze(i){const d=C.get(i);d&&(d.destroy(),C.delete(i)),U(i)}function ze(i,d){if(d?j.set(i,d):j.delete(i),d||U(i),!ot.value||!Z){Ze(i),d?Oe(i,!0):oe.value&&delete ve[i];return}if(!I.value&&oe.value&&!m.value&&C.size>=ul&&(wn(),!ot.value||!Z)){Ze(i),d?Oe(i,!0):oe.value&&delete ve[i];return}if(i<Ce.value&&!I.value){Ze(i),Oe(i,!0);return}if(!d){Ze(i),oe.value&&delete ve[i];return}Ze(i);const p=Z(d,{rootMargin:"400px"});p&&(C.set(i,p),Oe(i,p.isVisible.value),oe.value&&gn(i),p.whenVisible.then(()=>{U(i),Oe(i,!0)}).catch(()=>{}).finally(()=>{C.get(i)===p&&C.delete(i);try{p.destroy()}catch(N){}}),I.value&&ce())}function At(i,d){if(!d){rt.delete(i);return}rt.set(i,d),queueMicrotask(()=>{Et(i,d.offsetHeight)})}let ft=null,Ge=null,Tt=!1,ht=null,xt=null;function ae(){K&&(ft!=null&&(te==null||te(ft),ft=null),Ge!=null&&(window.clearTimeout(Ge),Ge=null),xt!=null&&typeof window.cancelIdleCallback=="function"&&(window.cancelIdleCallback(xt),xt=null),Tt=!1,ht=null)}function U(i){if(!K)return;const d=O.get(i);d!=null&&(window.clearTimeout(d),O.delete(i))}function gn(i){if(!K||!oe.value)return;U(i);const d=window.setTimeout(()=>{O.delete(i),Oe(i,!0)},ml);O.set(i,d)}function wn(i){if(!m.value){m.value=!0;for(const d of C.values())d.destroy();if(C.clear(),K)for(const d of O.values())window.clearTimeout(d);O.clear();for(const d of Object.keys(ve))delete ve[d]}}function rn(i,d={}){var fe,Ae;if(!J.value)return;const p=kt.value;if(A.value>=p)return;const N=Math.max(1,i),B=We=>{var He;ft=null,Ge=null,xt=null,Tt=!1;const Ne=ht!=null?ht:N;ht=null;const Xe=Math.max(2,(He=n.renderBatchBudgetMs)!=null?He:6),bt=_t=>{const St=typeof performance!="undefined"?performance.now():Date.now();A.value=Math.min(p,A.value+Math.max(1,_t)),qe(A.value);const it=(typeof performance!="undefined"?performance.now():Date.now())-St;return Vn(it),it};let lt=Ne;for(;bt(lt),!(A.value>=p||!We||(typeof We.timeRemaining=="function"?We.timeRemaining():0)<=Xe*.5);)lt=Math.max(1,Math.round(G.value));A.value<p&&an()};if(!K||d.immediate){B();return}const H=Math.max(0,(fe=n.renderBatchDelay)!=null?fe:16);if(ht=ht!=null?Math.max(ht,N):N,!Tt){if(Tt=!0,!$&&Le&&window.requestIdleCallback){const We=Math.max(0,(Ae=n.renderBatchIdleTimeoutMs)!=null?Ae:120);xt=window.requestIdleCallback(Ne=>{B(Ne)},{timeout:We});return}if(!Y||$){Ge=window.setTimeout(()=>B(),H);return}ft=Y(()=>{if(H===0){B();return}Ge=window.setTimeout(()=>B(),H)})}}function an(){if(!J.value)return;const i=nt.value?Math.max(1,Math.round(G.value)):Math.max(1,ee.value);rn(i)}function Vn(i){var B;if(!J.value)return;const d=Math.max(2,(B=n.renderBatchBudgetMs)!=null?B:6),p=Math.max(1,ee.value||1),N=Math.max(1,Math.floor(p/4));i>d*1.2?G.value=Math.max(N,Math.floor(G.value*.7)):i<d*.5&&G.value<p&&(G.value=Math.min(p,Math.ceil(G.value*1.2)))}e.watch([()=>E.value,()=>E.value.length,()=>J.value,()=>ee.value,()=>Ce.value,()=>n.renderBatchDelay,()=>n.indexKey],()=>{var He;const d=E.value.length,p=wt.value,N=n.indexKey,B=N!==void 0&&N!==p.key,H=d!==p.total,fe=B||H;wt.value={key:N,total:d};const Ae=dt.value,We=(He=n.renderBatchDelay)!=null?He:16,Ne=Ae.batchSize!==ee.value||Ae.initial!==Ce.value||Ae.delay!==We||Ae.enabled!==J.value;dt.value={batchSize:ee.value,initial:Ce.value,delay:We,enabled:J.value},(fe||Ne||!J.value)&&ae(),(fe||Ne)&&(G.value=Math.max(1,ee.value||1)),fe&&I.value&&ce({immediate:!0});const Xe=kt.value;if(!d){A.value=0,qe(0);return}if(!J.value){A.value=Xe,qe(A.value);return}B||p.total===0||Ne?A.value=Math.min(Xe,Ce.value):A.value=Math.min(A.value,Xe);const lt=Math.max(1,Ce.value||ee.value||d);A.value<Xe?rn(lt,{immediate:!K}):qe(A.value)},{immediate:!0}),e.watch(()=>I.value,i=>{if(!i){Fe(),W();return}se(),ce({immediate:!0})},{immediate:!0}),e.watch(()=>l.value,()=>{I.value&&(se(),ce({immediate:!0}))}),e.watch(()=>E.value.length,()=>{I.value&&ce({immediate:!0})}),e.watch(()=>oe.value,i=>{if(!i){for(const d of C.values())d.destroy();C.clear();for(const d of Array.from(O.keys()))U(d);for(const d of Object.keys(ve))delete ve[d];for(const[d,p]of j)p&&Oe(d,!0);return}for(const[d,p]of j)ze(d,p)},{immediate:!1}),e.watch([()=>n.viewportPriority,()=>E.value.length],([i,d])=>{if(i===!1){m.value=!1;return}m.value&&d<=dl&&(m.value=!1)}),e.watch(()=>A.value,()=>{I.value&&ce({immediate:!0})}),e.watch([ie,X,mt,()=>E.value.length,I],()=>{Ke()},{immediate:!0}),e.watch(()=>kt.value,(i,d)=>{J.value&&(typeof d=="number"&&i<=d||i>A.value&&an())}),e.onBeforeUnmount(()=>{ae();for(const i of C.values())i.destroy();C.clear();for(const i of Array.from(O.keys()))U(i);Fe(),W()});const Nt=e.defineAsyncComponent(()=>L(null,null,function*(){try{return(yield Promise.resolve().then(()=>require("./index-BOwgCLNK.cjs"))).default}catch(i){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".',i),Rt}})),Ln=e.computed(()=>n.renderCodeBlocksAsPre?Rt:Nt),Ht={text:de,paragraph:Qt,heading:$n,code_block:Nt,list:Jt,blockquote:Yt,table:en,definition_list:qt,footnote:Zt,footnote_reference:we,footnote_anchor:Lt,admonition:nn,hardbreak:Bt,link:Me,image:gt,thematic_break:tn,math_inline:ut,math_block:Sr,strong:be,emphasis:Pe,strikethrough:Be,highlight:Ve,insert:$e,subscript:Ie,superscript:Se,emoji:ge,checkbox:et,checkbox_input:et,inline_code:ye,html_inline:ke,reference:xe,html_block:ll};function jt(i){var N;if(!i)return ro;const d=tt(n.customId),p=d[String(i.type)];if(i.type==="code_block"){if(String((N=i.language)!=null?N:"").trim().toLowerCase()==="mermaid")return d.mermaid||Dt;if(p)return p;const H=d.code_block;return H||Ln.value}return p||Ht[String(i.type)]||ro}function Je(i){var d;return(i==null?void 0:i.type)==="code_block"&&String((d=i.language)!=null?d:"").trim().toLowerCase()==="mermaid"?{}:i.type==="code_block"?q({stream:n.codeBlockStream,darkTheme:n.codeBlockDarkTheme,lightTheme:n.codeBlockLightTheme,monacoOptions:n.codeBlockMonacoOptions,themes:n.themes,minWidth:n.codeBlockMinWidth,maxWidth:n.codeBlockMaxWidth},n.codeBlockProps||{}):{typewriter:n.typewriter}}function ln(i){s("click",i)}function kn(i){var p;(p=i.target)!=null&&p.closest("[data-node-index]")&&s("mouseover",i)}function Dn(i){var p;(p=i.target)!=null&&p.closest("[data-node-index]")&&s("mouseout",i)}return(i,d)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:l,class:e.normalizeClass(["markstream-vue markdown-renderer",[{dark:n.isDark}]]),onClick:ln,onMouseover:kn,onMouseout:Dn},[I.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"node-spacer",style:e.normalizeStyle({height:`${M.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,p=>{var N;return e.openBlock(),e.createElementBlock("div",{key:p.index,ref_for:!0,ref:B=>ze(p.index,B),class:"node-slot","data-node-index":p.index,"data-node-type":p.node.type},[yt(p.index)?(e.openBlock(),e.createElementBlock("div",{key:0,ref_for:!0,ref:B=>At(p.index,B),class:"node-content"},[p.node.type!=="code_block"&&n.typewriter!==!1?(e.openBlock(),e.createBlock(e.Transition,{key:0,name:"typewriter",appear:""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(jt(p.node)),e.mergeProps({node:p.node,loading:p.node.loading,"index-key":`${t.indexKey||"markdown-renderer"}-${p.index}`},{ref_for:!0},Je(p.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:d[0]||(d[0]=B=>s("copy",B)),onHandleArtifactClick:d[1]||(d[1]=B=>s("handleArtifactClick",B))}),null,16,["node","loading","index-key","custom-id","is-dark"]))]),_:2},1024)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(jt(p.node)),e.mergeProps({key:1,node:p.node,loading:p.node.loading,"index-key":`${t.indexKey||"markdown-renderer"}-${p.index}`},{ref_for:!0},Je(p.node),{"custom-id":n.customId,"is-dark":n.isDark,onCopy:d[2]||(d[2]=B=>s("copy",B)),onHandleArtifactClick:d[3]||(d[3]=B=>s("handleArtifactClick",B))}),null,16,["node","loading","index-key","custom-id","is-dark"]))],512)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"node-placeholder",style:e.normalizeStyle({height:`${(N=at[p.index])!=null?N:re.value}px`})},null,4))],8,sl)}),128)),I.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:"node-spacer",style:e.normalizeStyle({height:`${z.value}px`}),"aria-hidden":"true"},null,4)):e.createCommentVNode("",!0)],34))}}),je=P(fl,[["__scopeId","data-v-ec150609"]]);je.install=t=>{var n,s;const o=(s=(n=je.__name)!=null?n:je.name)!=null?s:"NodeRenderer";t.component(o,je)};const hl={key:0,class:"admonition-icon"},pl={class:"admonition-title"},vl=["aria-expanded","aria-controls","title"],gl={key:0},wl={key:1},kl=["id"],yl=e.defineComponent({__name:"AdmonitionNode",props:{node:{},indexKey:{},isDark:{type:Boolean},typewriter:{type:Boolean},customId:{}},emits:["copy"],setup(t,{emit:o}){var h;const n=t,s=o,l={note:"ℹ️",info:"ℹ️",tip:"💡",warning:"⚠️",danger:"❗",error:"⛔",caution:"⚠️"},m=e.computed(()=>{if(n.node.title&&n.node.title.trim().length)return n.node.title;const y=n.node.kind||"note";return y.charAt(0).toUpperCase()+y.slice(1)}),u=e.ref(n.node.collapsible?!((h=n.node.open)==null||h):!1);function f(){n.node.collapsible&&(u.value=!u.value)}const g=`admonition-${Math.random().toString(36).slice(2,9)}`;return(y,x)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["admonition",[`admonition-${n.node.kind}`,n.isDark?"is-dark":""]])},[e.createElementVNode("div",{id:g,class:"admonition-header"},[l[n.node.kind]?(e.openBlock(),e.createElementBlock("span",hl,e.toDisplayString(l[n.node.kind]),1)):e.createCommentVNode("",!0),e.createElementVNode("span",pl,e.toDisplayString(m.value),1),n.node.collapsible?(e.openBlock(),e.createElementBlock("button",{key:1,class:"admonition-toggle","aria-expanded":!u.value,"aria-controls":`${g}-content`,title:u.value?"Expand":"Collapse",onClick:f},[u.value?(e.openBlock(),e.createElementBlock("span",gl,"▶")):(e.openBlock(),e.createElementBlock("span",wl,"▼"))],8,vl)):e.createCommentVNode("",!0)]),e.withDirectives(e.createElementVNode("div",{id:`${g}-content`,class:"admonition-content","aria-labelledby":g},[e.withMemo([n.node.children],()=>e.createVNode(e.unref(je),{"index-key":`admonition-${t.indexKey}`,nodes:n.node.children,"custom-id":n.customId,typewriter:n.typewriter,onCopy:x[0]||(x[0]=S=>s("copy",S))},null,8,["index-key","nodes","custom-id","typewriter"]),x,1)],8,kl),[[e.vShow,!u.value]])],2))}}),nn=P(yl,[["__scopeId","data-v-5e95c2b7"]]);nn.install=t=>{t.component(nn.__name,nn)};let ao=!1;function xl(t){return L(this,null,function*(){if(!ao)return ao=!0,t.preloadMonacoWorkers()})}let un=null,lo=!1;function bl(){return L(this,null,function*(){if(un)return un;if(lo)return null;try{return un=yield import("stream-monaco"),yield xl(un),un}catch(t){return lo=!0,null}})}const Bl='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',Ml=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
5
- <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" />
6
- </svg>
7
- `,Cl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
8
- <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" />
9
- <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" />
10
- </svg>
11
- `,El=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
12
- <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" />
13
- </svg>
14
- `,Tl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
15
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
16
- <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />
17
- <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />
18
- <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />
19
- <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />
20
- <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />
21
- <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" />
22
- </g>
23
- </svg>
24
- `,Nl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
25
- <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" />
26
- </svg>
27
- `,_l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
28
- <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" />
29
- <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" />
30
- </svg>
31
- `,Sl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
32
- <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" />
33
- </svg>
34
- `,Il=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
35
- <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" />
36
- </svg>
37
- `,$l=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
38
- <g fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round">
39
- <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" />
40
- <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" />
41
- </g>
42
- </svg>
43
- `,Vl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
44
- <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
45
- <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" />
46
- <path d="M3.5 11V3.5H11m-7.5 0 8 8" />
47
- </g>
48
- </svg>
49
- `,Ll='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',Dl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
50
- <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" />
51
- </svg>
52
- `,Rl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
53
- <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" />
54
- </svg>
55
- `,zl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
56
- <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
57
- <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />
58
- <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" />
59
- </g>
60
- </svg>
61
- `,Al=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
62
- <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" />
63
- </svg>
64
- `,Hl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
65
- <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" />
66
- </svg>
67
- `,jl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
68
- <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">
69
- <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" />
70
- <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" />
71
- </g>
72
- </svg>
73
- `,Pl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
74
- <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" />
75
- </svg>
76
- `,Fl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
77
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
78
- <path stroke="#ef9f76" d="M1.5 1.5h13L13 13l-5 2-5-2z" />
79
- <path stroke="#c6d0f5" d="M11 4.5H5l.25 3h5.5l-.25 3-2.5 1-2.5-1-.08-1" />
80
- </g>
81
- </svg>
82
- `,Kl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
83
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
84
- <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" />
85
- <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" />
86
- <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" />
87
- </g>
88
- </svg>
89
- `,Ol=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
90
- <g fill="none" stroke="#99d1db" stroke-linecap="round" stroke-linejoin="round">
91
- <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" />
92
- <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" />
93
- <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" />
94
- <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" />
95
- </g>
96
- </svg>
97
- `,Wl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
98
- <g fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round">
99
- <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" />
100
- <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" />
101
- </g>
102
- </svg>
103
- `,Xl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
104
- <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" />
105
- </svg>
106
- `,Ul=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
107
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
108
- <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
109
- <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
110
- <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />
111
- </g>
112
- </svg>
113
- `,Yl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
114
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
115
- <path stroke="#ca9ee6" d="M2.5 13.5h11L8 8" />
116
- <path stroke="#ef9f76" d="M8.03 2.5h5.47l-8 8" />
117
- <path stroke="#e78284" d="M2.5 13.5V8" />
118
- <path stroke="#85c1dc" d="M8 2.5H2.5V8l3-2.5" />
119
- </g>
120
- </svg>
121
- `,ql=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
122
- <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">
123
- <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" />
124
- <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" />
125
- </g>
126
- </svg>
127
- `,Zl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
128
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
129
- <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" />
130
- <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" />
131
- </g>
132
- </svg>
133
- `,Gl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
134
- <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" />
135
- </svg>
136
- `,Jl=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
137
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
138
- <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" />
139
- <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" />
140
- </g>
141
- </svg>
142
- `,Ql=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
143
- <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" />
144
- </svg>
145
- `,ei=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
146
- <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" />
147
- </svg>
148
- `,ti='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',ni='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',oi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
149
- <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
150
- <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" />
151
- <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" />
152
- <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />
153
- </g>
154
- </svg>
155
- `,ri=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
156
- <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" />
157
- </svg>
158
- `,ai=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
159
- <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" />
160
- </svg>
161
- `,li=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
162
- <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" />
163
- </svg>
164
- `,ii=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
165
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
166
- <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" />
167
- <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" />
168
- <path stroke="#8caaee" d="M2.98 10.5H4.5c0-1.5 0-2 1-2h2M7.5 3.5v0" />
169
- <path stroke="#e5c890" d="m 8.5,12.5 v 0" />
170
- </g>
171
- </svg>
172
- `,si=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
173
- <g fill="none" stroke-linecap="round" stroke-linejoin="round">
174
- <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" />
175
- <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" />
176
- </g>
177
- </svg>
178
- `,ci=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
179
- <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" />
180
- </svg>
181
- `,ui=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
182
- <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">
183
- <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" />
184
- <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" />
185
- </g>
186
- </svg>
187
- `,di=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
188
- <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" />
189
- </svg>
190
- `,mi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
191
- <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" />
192
- </svg>
193
- `,fi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
194
- <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
195
- <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" />
196
- <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" />
197
- </g>
198
- </svg>
199
- `,hi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
200
- <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" />
201
- </svg>
202
- `,pi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
203
- <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" />
204
- </svg>
205
- `,vi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16"><!-- Icon from Lucide by Lucide Contributors - https://github.com/lucide-icons/lucide/blob/main/LICENSE --><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>',gi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
206
- <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" />
207
- </svg>
208
- `,wi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
209
- <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" />
210
- </svg>
211
- `,ki=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
212
- <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" />
213
- </svg>
214
- `,yi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
215
- <g fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round">
216
- <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" />
217
- <path d="m8.5 1.5 5 5h-4a1 1 0 01-1-1zm-3 10h5m-5-3h5m-5-3h1" />
218
- </g>
219
- </svg>
220
- `,xi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
221
- <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
222
- <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" />
223
- <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" />
224
- <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" />
225
- <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" />
226
- </g>
227
- </svg>
228
- `,bi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
229
- <g fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round">
230
- <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" />
231
- <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" />
232
- </g>
233
- </svg>
234
- `,Bi='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16"><!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --><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>',Mi=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
235
- <g fill="none" stroke="#a6d189" stroke-linecap="round" stroke-linejoin="round">
236
- <path d="M1 1.5h5.44L8 4.56 9.56 1.5H15l-6.99 13z" />
237
- <path d="M12.05 1.73 8 9.28 3.95 1.73" />
238
- </g>
239
- </svg>
240
- `,Ci=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
241
- <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" />
242
- </svg>
243
- `,Ei=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">
244
- <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="M2.5 1.5h3l3 4 3-4h3l-9 13h-3L7 8z" />
245
- </svg>
246
- `;let Fn=null;function To(t){Fn=t!=null?t:null}const Ti={"":"",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 Ni(t){if(!t)return"";const o=t.trim();if(!o)return"";const[n]=o.split(/\s+/),[s]=n.split(":");return s.toLowerCase()}function Jn(t){var n;const o=Ni(t);return(n=Ti[o])!=null?n:o}function _i(t){const o=Jn(t);if(!o)return"plaintext";switch(o){case"plain":return"plaintext";case"jsx":return"javascript";case"tsx":return"typescript";default:return o}}function No(t){if(Fn){const n=Fn(t);if(n!=null&&n!=="")return n}switch(Jn(t)){case"javascript":case"js":return Wl;case"typescript":case"ts":return bi;case"jsx":return Ol;case"tsx":return xi;case"html":return Fl;case"css":return $l;case"scss":return di;case"json":return Xl;case"python":case"py":return ii;case"ruby":case"rb":return ci;case"go":case"golang":return Hl;case"r":return si;case"java":return Kl;case"kotlin":case"kt":return Yl;case"c":return El;case"cpp":case"c++":return _l;case"cs":case"csharp":return Il;case"php":return ai;case"scala":return mi;case"shell":case"sh":case"bash":case"zsh":case"powershell":case"ps1":case"bat":case"batch":case"shellscript":return fi;case"sql":return pi;case"yaml":case"yml":return Ei;case"markdown":case"md":return Gl;case"xml":return Ci;case"rust":case"rs":return ui;case"swift":return wi;case"perl":return ri;case"lua":return Zl;case"haskell":return Pl;case"erlang":return zl;case"clojure":return Tl;case"vue":return Mi;case"svg":return gi;case"mermaid":return Ql;case"dart":return Vl;case"assembly":return Cl;case"dockerfile":return Dl;case"fortran":return Al;case"lisp":return ql;case"ocaml":return oi;case"prolog":return li;case"groovy":return jl;case"matlab":return Jl;case"cobol":return Nl;case"ada":return Bl;case"julia":return Ul;case"elixir":return Rl;case"vb.net":return Bi;case"nim":return ei;case"crystal":return Sl;case"d":return Ll;case"applescript":return Ml;case"solidity":return hi;case"objectivec":return ti;case"objectivecpp":return ni;case"terraform":return ki;case"plain":case"text":case"":return yi;default:return vi}}const _o={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"},Si={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)"}},Ii={class:"flex items-center space-x-2"},$i=["innerHTML"],Vi={class:"text-sm font-medium font-mono"},Li={class:"flex items-center space-x-2"},Di=["aria-pressed"],Ri=["disabled"],zi=["disabled"],Ai=["disabled"],Hi=["aria-label"],ji={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"},Pi={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"},Fi=["aria-pressed"],Ki={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"},Oi={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"},Wi=["aria-label"],Xi=["innerHTML"],Ui={class:"code-loading-placeholder"},io=10,so=36,co=1,Yi=e.defineComponent({__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(t,{emit:o}){var re;const n=t,s=o,{t:l}=_n(),m=e.ref(String((re=n.node.language)!=null?re:"")),u=e.ref(!1),f=e.ref(!1),g=e.ref(!1),h=e.ref(null),y=e.ref(null),x=e.ref(""),S=e.ref(!1);let V;const E=e.ref(!0),X=e.ref(0),I=e.ref(14),b=e.ref(I.value),Z=e.computed(()=>{const v=I.value,k=b.value;return typeof v=="number"&&Number.isFinite(v)&&v>0&&typeof k=="number"&&Number.isFinite(k)&&k>0}),K=e.computed(()=>{const v=m.value.trim().toLowerCase();return _o[v]||v.charAt(0).toUpperCase()+v.slice(1)}),Y=e.computed(()=>m.value.trim().toLowerCase()==="mermaid"),te=e.computed(()=>{const v=m.value.trim().toLowerCase();return No(v.split(":")[0])}),$=e.computed(()=>{const v=m.value.trim().toLowerCase();return n.isShowPreview&&(v==="html"||v==="svg")}),Le=e.computed(()=>{const v={},k=Re=>{if(Re!=null)return typeof Re=="number"?`${Re}px`:String(Re)},M=k(n.minWidth),z=k(n.maxWidth);return M&&(v.minWidth=M),z&&(v.maxWidth=z),v}),ee=e.computed(()=>({fontSize:`${b.value}px`}));function Ce(){return n.isDark?n.darkTheme:n.lightTheme}function nt(v){return v.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function A(v){if(V==null||V.disconnect(),V=void 0,!v){x.value="",S.value=!1;return}x.value=`<pre class="shiki shiki-fallback"><code>${nt(v)}</code></pre>`,S.value=!1}function wt(){x.value="",S.value=!0}function G(){var k;const v=y.value;return v?v.childNodes.length>0?!0:!!((k=v.textContent)!=null&&k.trim().length):!1}function ve(){return L(this,null,function*(){if(yield e.nextTick(),G()){wt();return}const v=y.value;v&&(V==null||V.disconnect(),V=new MutationObserver(()=>{G()&&(wt(),V==null||V.disconnect(),V=void 0)}),V.observe(v,{childList:!0,subtree:!0}))})}let C,O,j,Ee=()=>{},De;const F=new Set,oe=new Set,J=typeof{url:typeof document=="undefined"?require("url").pathToFileURL(__filename).href:zn&&zn.tagName.toUpperCase()==="SCRIPT"&&zn.src||new URL("exports-ISf5W5H7.cjs",document.baseURI).href}!="undefined"&&!1;function dt(v,k=!1){var Re;const[M]=String(v!=null?v:"").split(":"),z=(Re=M==null?void 0:M.trim().toLowerCase())!=null?Re:"";return z?!De||De.has(z)?z:(k&&J&&!F.has(z)&&(F.add(z),console.warn(`[MarkdownCodeBlockNode] Language "${z}" not preloaded in stream-markdown; falling back to plaintext.`)),"plaintext"):"plaintext"}function ot(v,k){return L(this,null,function*(){if(!C)return;const M=dt(k,!!(v&&v.length));try{yield C.updateCode(v,M)}catch(z){M!=="plaintext"?(J&&!oe.has(M)&&(oe.add(M),console.warn(`[MarkdownCodeBlockNode] Failed to render language "${M}", retrying as plaintext.`,z)),yield C.updateCode(v,"plaintext")):J&&console.warn("[MarkdownCodeBlockNode] Failed to render code block even as plaintext.",z)}})}function mt(){return L(this,null,function*(){if(!O)try{const v=yield import("stream-markdown");O=v.createShikiStreamRenderer,j=v.registerHighlight,Ee=v.disposeHighlighter;const k=Array.isArray(v.defaultLanguages)?v.defaultLanguages:void 0;De=k?new Set(k.map(M=>M.toLowerCase())):void 0,j==null||j({themes:n.themes})}catch(v){console.warn("[MarkdownCodeBlockNode] stream-markdown not available:",v)}})}function ie(){return L(this,null,function*(){if(Y.value){Ee(),C==null||C.dispose(),C=void 0,S.value=!1;return}if(yield mt(),!h.value||!y.value){A(n.node.code);return}if(j==null||j({themes:n.themes}),!C&&O&&(C=O(y.value,{theme:Ce()}),S.value=!0),!C){A(n.node.code);return}if(n.stream===!1&&n.loading){A(n.node.code);return}A(n.node.code),yield ot(n.node.code,m.value),yield ve()})}ie(),e.onMounted(()=>{ie()}),e.watch(()=>n.themes,()=>L(null,null,function*(){j&&j({themes:n.themes})})),e.watch(()=>n.loading,v=>{v||ie()}),e.watch(()=>[n.node.code,n.node.language],M=>L(null,[M],function*([v,k]){if(k!==m.value&&(m.value=k.trim()),!h.value||!y.value){A(v);return}if(Y.value){Ee(),C==null||C.dispose();return}C||(A(v),yield ie()),!(!C||!v)&&(n.stream===!1&&n.loading||(A(v),yield ot(v,k),yield ve()))}));const me=e.watch(()=>[n.darkTheme,n.lightTheme],()=>L(null,null,function*(){if(!(!h.value||!y.value)){if(Y.value)return Ee(),C==null||C.dispose(),me();C||(yield ie()),C==null||C.setTheme(Ce())}}));e.watch(()=>n.node.code,()=>L(null,null,function*(){if(f.value||!E.value)return;yield e.nextTick();const v=h.value;v&&v.scrollHeight>v.clientHeight&&(v.scrollTop=v.scrollHeight)}));function rt(v,k=50){return v.scrollHeight-v.scrollTop-v.clientHeight<=k}function kt(){const v=h.value;if(!v||f.value)return;const k=v.scrollTop;k<X.value?E.value=!1:rt(v)&&(E.value=!0),X.value=k}function Ye(){return L(this,null,function*(){try{typeof navigator!="undefined"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function"&&(yield navigator.clipboard.writeText(n.node.code)),u.value=!0,s("copy",n.node.code),setTimeout(()=>{u.value=!1},1e3)}catch(v){console.error("Copy failed:",v)}})}function Fe(v){const k=v;return!k||k.disabled}function se(v,k,M="top"){if(Fe(v.currentTarget))return;const z=v,Re=(z==null?void 0:z.clientX)!=null&&(z==null?void 0:z.clientY)!=null?{x:z.clientX,y:z.clientY}:void 0;on(v.currentTarget,k,M,!1,Re,n.isDark)}function W(){Nn()}function ce(v){if(Fe(v.currentTarget))return;const k=u.value?l("common.copied")||"Copied":l("common.copy")||"Copy",M=v,z=(M==null?void 0:M.clientX)!=null&&(M==null?void 0:M.clientY)!=null?{x:M.clientX,y:M.clientY}:void 0;on(v.currentTarget,k,"top",!1,z,n.isDark)}function Q(){f.value=!f.value;const v=h.value;v&&(f.value?(v.style.maxHeight="none",v.style.overflow="visible"):(v.style.maxHeight="500px",v.style.overflow="auto",E.value=!0,e.nextTick(()=>{v.scrollHeight>v.clientHeight&&(v.scrollTop=v.scrollHeight)})))}function pe(){g.value=!g.value}function Ke(){const v=Math.min(so,b.value+co);b.value=v}function at(){const v=Math.max(io,b.value-co);b.value=v}function Te(){b.value=I.value}function Et(){if(!$.value)return;const v=(m.value||n.node.language).toLowerCase(),k=v==="html"?"text/html":"image/svg+xml",M=v==="html"?"HTML Preview":"SVG Preview";s("previewCode",{type:k,content:n.node.code,title:M})}return(v,k)=>Y.value?(e.openBlock(),e.createBlock(e.unref(Dt),{key:0,node:t.node,"is-dark":n.isDark,loading:n.loading},null,8,["node","is-dark","loading"])):(e.openBlock(),e.createElementBlock("div",{key:1,style:e.normalizeStyle(Le.value),class:e.normalizeClass(["code-block-container my-4 rounded-lg border overflow-hidden shadow-sm",[n.isDark?"border-gray-700/30 bg-gray-900":"border-gray-200 bg-white",n.isDark?"is-dark":""]])},[n.showHeader?(e.openBlock(),e.createElementBlock("div",Si,[e.renderSlot(v.$slots,"header-left",{},()=>[e.createElementVNode("div",Ii,[e.createElementVNode("span",{class:"icon-slot h-4 w-4 flex-shrink-0",innerHTML:te.value},null,8,$i),e.createElementVNode("span",Vi,e.toDisplayString(K.value),1)])],!0),e.renderSlot(v.$slots,"header-right",{},()=>[e.createElementVNode("div",Li,[e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":g.value,onClick:pe,onMouseenter:k[0]||(k[0]=M=>se(M,g.value?e.unref(l)("common.expand")||"Expand":e.unref(l)("common.collapse")||"Collapse")),onFocus:k[1]||(k[1]=M=>se(M,g.value?e.unref(l)("common.expand")||"Expand":e.unref(l)("common.collapse")||"Collapse")),onMouseleave:W,onBlur:W},[(e.openBlock(),e.createElementBlock("svg",{style:e.normalizeStyle({rotate:g.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"},[...k[17]||(k[17]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,Di),n.showFontSizeButtons&&n.enableFontSizeControl?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(b.value)?b.value<=io:!1,onClick:k[2]||(k[2]=M=>at()),onMouseenter:k[3]||(k[3]=M=>se(M,e.unref(l)("common.decrease")||"Decrease")),onFocus:k[4]||(k[4]=M=>se(M,e.unref(l)("common.decrease")||"Decrease")),onMouseleave:W,onBlur:W},[...k[18]||(k[18]=[e.createElementVNode("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"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14"})],-1)])],40,Ri),e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:!Z.value||b.value===I.value,onClick:k[5]||(k[5]=M=>Te()),onMouseenter:k[6]||(k[6]=M=>se(M,e.unref(l)("common.reset")||"Reset")),onFocus:k[7]||(k[7]=M=>se(M,e.unref(l)("common.reset")||"Reset")),onMouseleave:W,onBlur:W},[...k[19]||(k[19]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("path",{d:"M3 12a9 9 0 1 0 9-9a9.75 9.75 0 0 0-6.74 2.74L3 8"}),e.createElementVNode("path",{d:"M3 3v5h5"})])],-1)])],40,zi),e.createElementVNode("button",{type:"button",class:"code-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]",disabled:Number.isFinite(b.value)?b.value>=so:!1,onClick:k[8]||(k[8]=M=>Ke()),onMouseenter:k[9]||(k[9]=M=>se(M,e.unref(l)("common.increase")||"Increase")),onFocus:k[10]||(k[10]=M=>se(M,e.unref(l)("common.increase")||"Increase")),onMouseleave:W,onBlur:W},[...k[20]||(k[20]=[e.createElementVNode("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"},[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M5 12h14m-7-7v14"})],-1)])],40,Ai)],64)):e.createCommentVNode("",!0),n.showCopyButton?(e.openBlock(),e.createElementBlock("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":u.value?e.unref(l)("common.copied")||"Copied":e.unref(l)("common.copy")||"Copy",onClick:Ye,onMouseenter:k[11]||(k[11]=M=>ce(M)),onFocus:k[12]||(k[12]=M=>ce(M)),onMouseleave:W,onBlur:W},[u.value?(e.openBlock(),e.createElementBlock("svg",Pi,[...k[22]||(k[22]=[e.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(e.openBlock(),e.createElementBlock("svg",ji,[...k[21]||(k[21]=[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),e.createElementVNode("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,Hi)):e.createCommentVNode("",!0),n.showExpandButton?(e.openBlock(),e.createElementBlock("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":f.value,onClick:Q,onMouseenter:k[13]||(k[13]=M=>se(M,f.value?e.unref(l)("common.collapse")||"Collapse":e.unref(l)("common.expand")||"Expand")),onFocus:k[14]||(k[14]=M=>se(M,f.value?e.unref(l)("common.collapse")||"Collapse":e.unref(l)("common.expand")||"Expand")),onMouseleave:W,onBlur:W},[f.value?(e.openBlock(),e.createElementBlock("svg",Ki,[...k[23]||(k[23]=[e.createElementVNode("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)])])):(e.openBlock(),e.createElementBlock("svg",Oi,[...k[24]||(k[24]=[e.createElementVNode("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,Fi)):e.createCommentVNode("",!0),$.value&&n.showPreviewButton?(e.openBlock(),e.createElementBlock("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":e.unref(l)("common.preview")||"Preview",onClick:Et,onMouseenter:k[15]||(k[15]=M=>se(M,e.unref(l)("common.preview")||"Preview")),onFocus:k[16]||(k[16]=M=>se(M,e.unref(l)("common.preview")||"Preview")),onMouseleave:W,onBlur:W},[...k[25]||(k[25]=[e.createElementVNode("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"},[e.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[e.createElementVNode("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"}),e.createElementVNode("circle",{cx:"12",cy:"12",r:"3"})])],-1)])],40,Wi)):e.createCommentVNode("",!0)])],!0)])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("div",{ref_key:"codeBlockContent",ref:h,class:"code-block-content",style:e.normalizeStyle(ee.value),onScroll:kt},[e.createElementVNode("div",{ref_key:"rendererTarget",ref:y,class:"code-block-render"},null,512),S.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:"code-fallback-plain",innerHTML:x.value},null,8,Xi))],36),[[e.vShow,!g.value&&(t.stream?!0:!t.loading)]]),e.withDirectives(e.createElementVNode("div",Ui,[e.renderSlot(v.$slots,"loading",{loading:t.loading,stream:t.stream},()=>[k[26]||(k[26]=e.createElementVNode("div",{class:"loading-skeleton"},[e.createElementVNode("div",{class:"skeleton-line"}),e.createElementVNode("div",{class:"skeleton-line"}),e.createElementVNode("div",{class:"skeleton-line short"})],-1))],!0)],512),[[e.vShow,!t.stream&&t.loading]])],6))}}),fn=P(Yi,[["__scopeId","data-v-34bf55f7"]]);fn.install=t=>{t.component(fn.__name,fn)};let Ue=null,Ct=null,uo=!1;const _e=new Map,pt=new Map,So=200;let zt=5;const $t=new Set;function vn(){if(_e.size<zt&&$t.size){const t=Array.from($t);$t.clear();for(const o of t)try{o()}catch(n){}}}let ct=null;function qi(t){Ue=t,Ct=null,Ue.onmessage=o=>{const{id:n,html:s,error:l}=o.data,m=_e.get(n);if(m)if(_e.delete(n),clearTimeout(m.timeoutId),vn(),l)m.reject(new Error(l));else{const{content:u,displayMode:f}=o.data;if(u){const g=`${f?"d":"i"}:${u}`;if(pt.set(g,s),pt.size>So){const h=pt.keys().next().value;pt.delete(h)}}m.resolve(s)}},Ue.onerror=o=>{console.error("[katexWorkerClient] Worker error:",o);for(const[n,s]of _e.entries())clearTimeout(s.timeoutId),s.reject(new Error(`Worker error: ${o.message}`));_e.clear(),vn()}}function Zi(){var t;Ue&&((t=Ue.terminate)==null||t.call(Ue)),Ue=null,Ct=null}function Gi(){return Ue||(Ct=new Error("[katexWorkerClient] No worker instance set. Please inject a Worker via setKaTeXWorker()."),Ct.name="WorkerInitError",Ct.code="WORKER_INIT_ERROR",null)}function Ji(t){uo=!!t,Ue&&Ue.postMessage({type:"init",debug:uo})}function Io(t,o=!0,n=2e3,s){return L(this,null,function*(){const l=performance.now();if(!Yn()){const g=new Error("KaTeX rendering disabled");return g.name="KaTeXDisabled",g.code="KATEX_DISABLED",Promise.reject(g)}if(Ct)return Promise.reject(Ct);const m=`${o?"d":"i"}:${t}`,u=pt.get(m);if(u)return ct&&ct.recordRender({type:"cache-hit",duration:performance.now()-l,formulaLength:t.length,timestamp:Date.now(),success:!0}),Promise.resolve(u);const f=Gi();if(!f)return Promise.reject(Ct);if(_e.size>=zt){const g=new Error("Worker busy");return g.name="WorkerBusy",g.code="WORKER_BUSY",g.busy=!0,g.inFlight=_e.size,g.max=zt,ct&&ct.recordRender({type:"worker",duration:performance.now()-l,formulaLength:t.length,timestamp:Date.now(),success:!1,error:"busy"}),Promise.reject(g)}return new Promise((g,h)=>{if(s!=null&&s.aborted){const b=new Error("Aborted");b.name="AbortError",h(b);return}const y=Math.random().toString(36).slice(2),x=globalThis.setTimeout(()=>{_e.delete(y);const b=new Error("Worker render timed out");b.name="WorkerTimeout",b.code="WORKER_TIMEOUT",ct&&ct.recordRender({type:"worker",duration:performance.now()-l,formulaLength:t.length,timestamp:Date.now(),success:!1,error:"timeout"}),h(b),vn()},n),S=()=>{globalThis.clearTimeout(x),_e.has(y)&&_e.delete(y);const b=new Error("Aborted");b.name="AbortError",h(b),vn()};s&&s.addEventListener("abort",S,{once:!0});const V=g,E=h,X=b=>{ct&&ct.recordRender({type:"worker",duration:performance.now()-l,formulaLength:t.length,timestamp:Date.now(),success:!0}),V(b)},I=b=>{ct&&ct.recordRender({type:"worker",duration:performance.now()-l,formulaLength:t.length,timestamp:Date.now(),success:!1,error:(b==null?void 0:b.message)||String(b)}),E(b)};_e.set(y,{resolve:X,reject:I,timeoutId:x}),f.postMessage({id:y,content:t,displayMode:o})})})}function Qi(t,o=!0,n){const s=`${o?"d":"i"}:${t}`;if(pt.set(s,n),pt.size>So){const l=pt.keys().next().value;pt.delete(l)}}function es(){return{inFlight:_e.size,max:zt}}function ts(t){Number.isFinite(t)&&t>0&&(zt=Math.floor(t))}const $o="WORKER_BUSY";function ns(){return _e.size>=zt}function Vo(t=2e3,o){return _e.size<zt?Promise.resolve():new Promise((n,s)=>{let l=!1,m;const u=()=>{l||(l=!0,m&&globalThis.clearTimeout(m),$t.delete(u),n())};if($t.add(u),m=globalThis.setTimeout(()=>{if(l)return;l=!0,$t.delete(u);const f=new Error("Wait for worker slot timed out");f.name="WorkerBusyTimeout",f.code="WORKER_BUSY_TIMEOUT",s(f)},t),queueMicrotask(()=>vn()),o){const f=()=>{if(l)return;l=!0,m&&globalThis.clearTimeout(m),$t.delete(u);const g=new Error("Aborted");g.name="AbortError",s(g)};o.aborted?f():o.addEventListener("abort",f,{once:!0})}})}const vt={timeout:2e3,waitTimeout:1500,backoffMs:30,maxRetries:1};function os(t){t.timeout!=null&&(vt.timeout=Math.max(0,Math.floor(t.timeout))),t.waitTimeout!=null&&(vt.waitTimeout=Math.max(0,Math.floor(t.waitTimeout))),t.backoffMs!=null&&(vt.backoffMs=Math.max(0,Math.floor(t.backoffMs))),t.maxRetries!=null&&(vt.maxRetries=Math.max(0,Math.floor(t.maxRetries)))}function rs(){return q({},vt)}function as(s){return L(this,arguments,function*(t,o=!0,n={}){var y,x,S,V;if(!Yn()){const E=new Error("KaTeX rendering disabled");throw E.name="KaTeXDisabled",E.code="KATEX_DISABLED",E}const l=(y=n.timeout)!=null?y:vt.timeout,m=(x=n.waitTimeout)!=null?x:vt.waitTimeout,u=(S=n.backoffMs)!=null?S:vt.backoffMs,f=(V=n.maxRetries)!=null?V:vt.maxRetries,g=n.signal;let h=0;for(;;){if(g!=null&&g.aborted){const E=new Error("Aborted");throw E.name="AbortError",E}try{return yield Io(t,o,l,g)}catch(E){if((E==null?void 0:E.code)!==$o||h>=f)throw E;if(h++,yield Vo(m,g).catch(()=>{}),g!=null&&g.aborted){const X=new Error("Aborted");throw X.name="AbortError",X}u>0&&(yield new Promise(X=>globalThis.setTimeout(X,u*h)))}}})}const Lo=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BOwgCLNK.cjs"))),Do=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-Bjfg9_i9.cjs"))),Ro=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BqQOMeNc.cjs"))),ls={AdmonitionNode:nn,BlockquoteNode:Yt,CheckboxNode:et,CodeBlockNode:Lo,DefinitionListNode:qt,EmojiNode:ge,FootnoteNode:Zt,FootnoteReferenceNode:we,FootnoteAnchorNode:Lt,HardBreakNode:Bt,HeadingNode:$n,HtmlInlineNode:ke,HighlightNode:Ve,ImageNode:gt,InlineCodeNode:ye,PreCodeNode:Rt,InsertNode:$e,LinkNode:Me,ListItemNode:Gt,ListNode:Jt,MathBlockNode:Do,MathInlineNode:Ro,MermaidBlockNode:Dt,ParagraphNode:Qt,StrikethroughNode:Be,StrongNode:be,SubscriptNode:Ie,SuperscriptNode:Se,TableNode:en,TextNode:de,ThematicBreakNode:tn,ReferenceNode:xe,MarkdownCodeBlockNode:fn},is={install(t,o){Object.entries(ls).forEach(([n,s])=>{t.component(n,s)}),o!=null&&o.getLanguageIcon&&To(o.getLanguageIcon),o!=null&&o.mathOptions&&Bn.setDefaultMathOptions(o.mathOptions)}};exports.AdmonitionNode=nn;exports.BlockquoteNode=Yt;exports.CheckboxNode=et;exports.CodeBlockNode=Lo;exports.DefinitionListNode=qt;exports.EmojiNode=ge;exports.FootnoteAnchorNode=Lt;exports.FootnoteReferenceNode=we;exports.HardBreakNode=Bt;exports.HighlightNode=Ve;exports.HtmlInlineNode=ke;exports.ImageNode=gt;exports.InsertNode=$e;exports.LinkNode=Me;exports.ListItemNode=Gt;exports.ListNode=Jt;exports.MERMAID_DISABLED_CODE=Bo;exports.MERMAID_WORKER_BUSY_CODE=bo;exports.MarkdownCodeBlockNode=fn;exports.MathBlockNode=Do;exports.MathInlineNode=Ro;exports.MermaidBlockNode=Dt;exports.NodeRenderer=je;exports.ParagraphNode=Qt;exports.StrikethroughNode=Be;exports.StrongNode=be;exports.SubscriptNode=Ie;exports.SuperscriptNode=Se;exports.TableNode=en;exports.TextNode=de;exports.ThematicBreakNode=tn;exports.VueRendererMarkdown=is;exports.WORKER_BUSY_CODE=$o;exports._HeadingNode=$n;exports._export_sfc=P;exports._sfc_main=Rt;exports._sfc_main$1=Zt;exports._sfc_main$2=ye;exports._sfc_main$3=xe;exports.canParseOffthread=Co;exports.clearGlobalCustomComponents=ar;exports.clearKaTeXWorker=Zi;exports.clearMermaidWorker=ya;exports.disableKatex=Nr;exports.disableMermaid=da;exports.enableKatex=Tr;exports.enableMermaid=ua;exports.findPrefixOffthread=Eo;exports.getCustomNodeComponents=tt;exports.getKaTeXBackpressureDefaults=rs;exports.getKaTeXWorkerLoad=es;exports.getKatex=In;exports.getLanguageIcon=No;exports.getMermaidWorkerLoad=wa;exports.getUseMonaco=bl;exports.hideTooltip=Nn;exports.isKaTeXWorkerBusy=ns;exports.isKatexEnabled=Yn;exports.isMermaidEnabled=xo;exports.languageMap=_o;exports.normalizeLanguageIdentifier=Jn;exports.removeCustomComponents=rr;exports.renderKaTeXInWorker=Io;exports.renderKaTeXWithBackpressure=as;exports.resolveMonacoLanguageId=_i;exports.safeRaf=yo;exports.setCustomComponents=or;exports.setDefaultI18nMap=vr;exports.setKaTeXBackpressureDefaults=os;exports.setKaTeXCache=Qi;exports.setKaTeXWorker=qi;exports.setKaTeXWorkerDebug=Ji;exports.setKaTeXWorkerMaxConcurrency=ts;exports.setKatexLoader=Un;exports.setLanguageIconResolver=To;exports.setMermaidLoader=Gn;exports.setMermaidWorker=ka;exports.setMermaidWorkerClientDebug=va;exports.setMermaidWorkerMaxConcurrency=ga;exports.showTooltipForAnchor=on;exports.terminateWorker=Pn;exports.useSafeI18n=_n;exports.useViewportPriority=Sn;exports.waitForKaTeXWorkerSlot=Vo;