markstream-vue 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -0
- package/README.zh-CN.md +21 -0
- package/dist/CodeBlockNode.js +1 -1
- package/dist/exports.js +1 -1
- package/dist/extended.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1635 -98
- package/dist/index.js +1 -1
- package/dist/index.px.css +1 -1
- package/dist/index.tailwind.css +1 -1
- package/dist/index2.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index4.js +1 -1
- package/dist/index5.js +1 -1
- package/dist/index6.js +1 -1
- package/dist/tailwind.ts +0 -0
- package/package.json +2 -1
- package/dist/languageIconExtended.js +0 -1
- package/dist/types/components/AdmonitionNode/AdmonitionNode.vue.d.ts +0 -26
- package/dist/types/components/AdmonitionNode/index.d.ts +0 -2
- package/dist/types/components/BlockquoteNode/BlockquoteNode.vue.d.ts +0 -23
- package/dist/types/components/BlockquoteNode/index.d.ts +0 -2
- package/dist/types/components/CheckboxNode/CheckboxNode.vue.d.ts +0 -9
- package/dist/types/components/CheckboxNode/index.d.ts +0 -2
- package/dist/types/components/CodeBlockNode/CodeBlockNode.vue.d.ts +0 -55
- package/dist/types/components/CodeBlockNode/HtmlPreviewFrame.vue.d.ts +0 -8
- package/dist/types/components/CodeBlockNode/index.d.ts +0 -2
- package/dist/types/components/CodeBlockNode/monaco.d.ts +0 -57
- package/dist/types/components/CodeBlockNode/monacoThemeScheduler.d.ts +0 -4
- package/dist/types/components/D2BlockNode/D2BlockNode.vue.d.ts +0 -16
- package/dist/types/components/D2BlockNode/d2.d.ts +0 -6
- package/dist/types/components/D2BlockNode/index.d.ts +0 -2
- package/dist/types/components/DefinitionListNode/DefinitionListNode.vue.d.ts +0 -29
- package/dist/types/components/DefinitionListNode/index.d.ts +0 -2
- package/dist/types/components/EmojiNode/EmojiNode.vue.d.ts +0 -10
- package/dist/types/components/EmojiNode/index.d.ts +0 -2
- package/dist/types/components/EmphasisNode/EmphasisNode.vue.d.ts +0 -16
- package/dist/types/components/EmphasisNode/index.d.ts +0 -2
- package/dist/types/components/FootnoteAnchorNode/FootnoteAnchorNode.vue.d.ts +0 -9
- package/dist/types/components/FootnoteAnchorNode/index.d.ts +0 -2
- package/dist/types/components/FootnoteNode/FootnoteNode.vue.d.ts +0 -21
- package/dist/types/components/FootnoteNode/index.d.ts +0 -2
- package/dist/types/components/FootnoteReferenceNode/FootnoteReferenceNode.vue.d.ts +0 -10
- package/dist/types/components/FootnoteReferenceNode/index.d.ts +0 -2
- package/dist/types/components/HardBreakNode/HardBreakNode.vue.d.ts +0 -9
- package/dist/types/components/HardBreakNode/index.d.ts +0 -2
- package/dist/types/components/HeadingNode/HeadingNode.vue.d.ts +0 -19
- package/dist/types/components/HeadingNode/index.d.ts +0 -2
- package/dist/types/components/HighlightNode/HighlightNode.vue.d.ts +0 -16
- package/dist/types/components/HighlightNode/index.d.ts +0 -2
- package/dist/types/components/HtmlBlockNode/HtmlBlockNode.vue.d.ts +0 -39
- package/dist/types/components/HtmlBlockNode/index.d.ts +0 -2
- package/dist/types/components/HtmlInlineNode/HtmlInlineNode.vue.d.ts +0 -12
- package/dist/types/components/HtmlInlineNode/index.d.ts +0 -2
- package/dist/types/components/ImageNode/ImageNode.vue.d.ts +0 -59
- package/dist/types/components/ImageNode/index.d.ts +0 -2
- package/dist/types/components/InfographicBlockNode/InfographicBlockNode.vue.d.ts +0 -46
- package/dist/types/components/InfographicBlockNode/index.d.ts +0 -2
- package/dist/types/components/InfographicBlockNode/infographic.d.ts +0 -3
- package/dist/types/components/InlineCodeNode/InlineCodeNode.vue.d.ts +0 -9
- package/dist/types/components/InlineCodeNode/index.d.ts +0 -2
- package/dist/types/components/InsertNode/InsertNode.vue.d.ts +0 -16
- package/dist/types/components/InsertNode/index.d.ts +0 -2
- package/dist/types/components/LinkNode/LinkNode.vue.d.ts +0 -5
- package/dist/types/components/LinkNode/index.d.ts +0 -2
- package/dist/types/components/ListItemNode/ListItemNode.vue.d.ts +0 -30
- package/dist/types/components/ListItemNode/index.d.ts +0 -2
- package/dist/types/components/ListNode/ListNode.vue.d.ts +0 -29
- package/dist/types/components/ListNode/index.d.ts +0 -2
- package/dist/types/components/MarkdownCodeBlockNode/MarkdownCodeBlockNode.vue.d.ts +0 -90
- package/dist/types/components/MarkdownCodeBlockNode/index.d.ts +0 -2
- package/dist/types/components/MathBlockNode/MathBlockNode.vue.d.ts +0 -5
- package/dist/types/components/MathBlockNode/index.d.ts +0 -2
- package/dist/types/components/MathInlineNode/MathInlineNode.vue.d.ts +0 -24
- package/dist/types/components/MathInlineNode/index.d.ts +0 -2
- package/dist/types/components/MathInlineNode/katex.d.ts +0 -7
- package/dist/types/components/MermaidBlockNode/MermaidBlockNode.vue.d.ts +0 -62
- package/dist/types/components/MermaidBlockNode/index.d.ts +0 -2
- package/dist/types/components/MermaidBlockNode/mermaid.d.ts +0 -6
- package/dist/types/components/NodeRenderer/FallbackComponent.vue.d.ts +0 -7
- package/dist/types/components/NodeRenderer/NodeRenderer.vue.d.ts +0 -34
- package/dist/types/components/NodeRenderer/asyncComponent.d.ts +0 -32
- package/dist/types/components/NodeRenderer/index.d.ts +0 -2
- package/dist/types/components/NodeRenderer/preloadMonaco.d.ts +0 -1
- package/dist/types/components/ParagraphNode/ParagraphNode.vue.d.ts +0 -17
- package/dist/types/components/ParagraphNode/index.d.ts +0 -2
- package/dist/types/components/PreCodeNode/PreCodeNode.vue.d.ts +0 -3
- package/dist/types/components/PreCodeNode/index.d.ts +0 -2
- package/dist/types/components/ReferenceNode/ReferenceNode.vue.d.ts +0 -19
- package/dist/types/components/ReferenceNode/index.d.ts +0 -2
- package/dist/types/components/StrikethroughNode/StrikethroughNode.vue.d.ts +0 -16
- package/dist/types/components/StrikethroughNode/index.d.ts +0 -2
- package/dist/types/components/StrongNode/StrongNode.vue.d.ts +0 -16
- package/dist/types/components/StrongNode/index.d.ts +0 -2
- package/dist/types/components/SubscriptNode/SubscriptNode.vue.d.ts +0 -16
- package/dist/types/components/SubscriptNode/index.d.ts +0 -2
- package/dist/types/components/SuperscriptNode/SuperscriptNode.vue.d.ts +0 -16
- package/dist/types/components/SuperscriptNode/index.d.ts +0 -2
- package/dist/types/components/TableNode/TableNode.vue.d.ts +0 -52
- package/dist/types/components/TableNode/index.d.ts +0 -2
- package/dist/types/components/TextNode/TextNode.vue.d.ts +0 -14
- package/dist/types/components/TextNode/index.d.ts +0 -2
- package/dist/types/components/ThematicBreakNode/ThematicBreakNode.vue.d.ts +0 -2
- package/dist/types/components/ThematicBreakNode/index.d.ts +0 -2
- package/dist/types/components/Tooltip/Tooltip.vue.d.ts +0 -15
- package/dist/types/components/Tooltip/index.d.ts +0 -2
- package/dist/types/components/VmrContainerNode/VmrContainerNode.vue.d.ts +0 -20
- package/dist/types/components/VmrContainerNode/index.d.ts +0 -2
- package/dist/types/components/__tests__/htmlNodes.integration.test.d.ts +0 -4
- package/dist/types/composables/rendererContext.d.ts +0 -19
- package/dist/types/composables/useKatexReady.d.ts +0 -1
- package/dist/types/composables/useSafeI18n.d.ts +0 -10
- package/dist/types/composables/useSingletonTooltip.d.ts +0 -11
- package/dist/types/composables/viewportPriority.d.ts +0 -21
- package/dist/types/exports.d.ts +0 -381
- package/dist/types/internal/heightEstimationExperiment.d.ts +0 -84
- package/dist/types/types/component-props.d.ts +0 -305
- package/dist/types/types/index.d.ts +0 -272
- package/dist/types/types/node-renderer-props.d.ts +0 -81
- package/dist/types/utils/__tests__/htmlRenderer.test.d.ts +0 -4
- package/dist/types/utils/htmlRenderer.d.ts +0 -20
- package/dist/types/utils/index.d.ts +0 -6
- package/dist/types/utils/katex-threshold.d.ts +0 -20
- package/dist/types/utils/languageIcon.d.ts +0 -8
- package/dist/types/utils/languageIconExtended.d.ts +0 -1
- package/dist/types/utils/nodeComponents.d.ts +0 -20
- package/dist/types/utils/performance-monitor.d.ts +0 -121
- package/dist/types/utils/safeRaf.d.ts +0 -2
- package/dist/types/workers/katexCdnWorker.d.ts +0 -52
- package/dist/types/workers/katexRenderer.worker.d.ts +0 -0
- package/dist/types/workers/katexWorkerClient.d.ts +0 -48
- package/dist/types/workers/mermaidCdnWorker.d.ts +0 -35
- package/dist/types/workers/mermaidParser.worker.d.ts +0 -1
- package/dist/types/workers/mermaidWorkerClient.d.ts +0 -21
package/dist/index5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=(e,o,t)=>new Promise((n,r)=>{var l=e=>{try{i(t.next(e))}catch(o){r(o)}},a=e=>{try{i(t.throw(e))}catch(o){r(o)}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(l,a);i((t=t.apply(e,o)).next())});import{defineComponent as o,ref as t,watch as n,computed as r,nextTick as l,onMounted as a,onBeforeUnmount as i,openBlock as s,createElementBlock as u,normalizeClass as c,renderSlot as d,createElementVNode as v,unref as h,toDisplayString as g,createCommentVNode as w,normalizeStyle as m,withDirectives as p,vShow as x,createBlock as y,Teleport as f,createVNode as C,Transition as k,withCtx as b,withModifiers as M}from"vue";import{b as B,u as F,e as D,h as j,_ as T}from"./exports.js";const $=()=>import("@antv/infographic");let E=null,H=$;const z=["data-markstream-mode"],L={key:0},Z={key:1,class:"flex items-center gap-x-2 overflow-hidden"},I=["src"],P={key:2},_={class:"flex items-center gap-x-1"},V={class:"flex items-center gap-x-1"},S={key:4},X={key:5,class:"flex items-center gap-x-1"},O=["aria-pressed"],Y={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"},R={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"},U=["disabled"],N=["disabled"],G={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"},q={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"},A={key:1,class:"relative"},J={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},K={class:"flex items-center gap-2 backdrop-blur rounded-lg"},Q={class:"markstream-vue"},W={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},ee=/* @__PURE__ */T(/* @__PURE__ */o({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(o,{emit:T}){const ee=o,{t:oe}=B(),te=F(),ne=t(!1),re=t(!1),le=t(),ae=t(),ie=t(!0),se=t(!1),ue=t("360px"),ce=t(!1),de=t(),ve=t(null),he=t(!1),ge=t(null),we=t("undefined"==typeof window);function me(){if(!ae.value)return;const e=ae.value.scrollHeight;e>0&&(ue.value=function(e){if(!ee.maxHeight||"none"===ee.maxHeight)return`${e}px`;const o=Number.parseFloat(String(ee.maxHeight));return Number.isFinite(o)?`${Math.min(e,o)}px`:`${e}px`}(e))}"undefined"!=typeof window&&n(()=>le.value,e=>{var o;if(null==(o=ge.value)||o.destroy(),ge.value=null,!e)return void(we.value=!1);const t=te(e,{rootMargin:"160px"});ge.value=t,we.value=t.isVisible.value,t.whenVisible.then(()=>{we.value=!0})},{immediate:!0});const pe=t(1),xe=t(0),ye=t(0),fe=t(!1),Ce=t({x:0,y:0}),ke=r(()=>ee.node.code),be=r(()=>ke.value);function Me(e){return!e||e.disabled}function Be(e,o,t="top"){if(Me(e.currentTarget))return;const n=e,r=null!=(null==n?void 0:n.clientX)&&null!=(null==n?void 0:n.clientY)?{x:n.clientX,y:n.clientY}:void 0;D(e.currentTarget,o,t,!1,r,ee.isDark)}function Fe(){j()}function De(e){if(Me(e.currentTarget))return;const o=ne.value?oe("common.copied")||"Copied":oe("common.copy")||"Copy",t=e,n=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;D(e.currentTarget,o,"top",!1,n,ee.isDark)}function je(){return e(this,null,function*(){try{const e=ke.value;"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(e)),ne.value=!0,setTimeout(()=>{ne.value=!1},1e3)}catch(e){console.error("Failed to copy:",e)}})}function Te(e){se.value=!0,ie.value="source"===e}function $e(){var o;const t=null==(o=ae.value)?void 0:o.querySelector("svg");t?function(o){e(this,null,function*(){try{const t=(new XMLSerializer).serializeToString(o),n=new Blob([t],{type:"image/svg+xml;charset=utf-8"}),r=URL.createObjectURL(n);if("undefined"!=typeof document){const o=document.createElement("a");o.href=r,o.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch(e){}URL.revokeObjectURL(r)}}catch(t){console.error("Failed to export SVG:",t)}})}(t):console.error("SVG element not found")}function Ee(e){"Escape"===e.key&&ce.value&&He()}function He(){if(ce.value=!1,de.value&&(de.value.innerHTML=""),ve.value=null,"undefined"!=typeof document)try{document.body.style.overflow=""}catch(e){}if("undefined"!=typeof window)try{window.removeEventListener("keydown",Ee)}catch(e){}}function ze(){!function(){if(ce.value=!0,"undefined"!=typeof document)try{document.body.style.overflow="hidden"}catch(e){}if("undefined"!=typeof window)try{window.addEventListener("keydown",Ee)}catch(e){}l(()=>{if(ae.value&&de.value){de.value.innerHTML="";const e=document.createElement("div");e.style.transition="transform 0.1s ease",e.style.transformOrigin="center center",e.style.width="100%",e.style.height="100%",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center";const o=ae.value.cloneNode(!0);o.classList.add("fullscreen"),o.style.height="auto",e.appendChild(o),de.value.appendChild(e),ve.value=e,e.style.transform=`translate(${xe.value}px, ${ye.value}px) scale(${pe.value})`}})}()}function Le(){pe.value<3&&(pe.value+=.1)}function Ze(){pe.value>.5&&(pe.value-=.1)}function Ie(){pe.value=1,xe.value=0,ye.value=0}function Pe(e){fe.value=!0,e instanceof MouseEvent?Ce.value={x:e.clientX-xe.value,y:e.clientY-ye.value}:Ce.value={x:e.touches[0].clientX-xe.value,y:e.touches[0].clientY-ye.value}}function _e(e){if(!fe.value)return;let o,t;e instanceof MouseEvent?(o=e.clientX,t=e.clientY):(o=e.touches[0].clientX,t=e.touches[0].clientY),xe.value=o-Ce.value.x,ye.value=t-Ce.value.y}function Ve(){fe.value=!1}let Se=null,Xe=!1,Oe=!1,Ye=!1,Re="";function Ue(o=!1){return e(this,null,function*(){var t;if(!we.value)return;if(!ae.value)return;if(Xe)return Oe=!0,void(Ye=Ye||o);const n=be.value;if(o||n!==Re||!he.value){Xe=!0;try{const o=yield function(){return e(this,null,function*(){if(E)return E;const e=H;if(!e)return null;let o;try{o=yield e()}catch(n){if(e===$)throw new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.');throw n}if(!o)return null;const t=o&&o.default?o.default:o;return E="function"==typeof t&&t.prototype&&t.prototype.render?t:o.Infographic?o.Infographic:t&&t.Infographic?t.Infographic:t,E})}();if(!o)return void console.warn("Infographic library failed to load.");Se&&(null==(t=Se.destroy)||t.call(Se),Se=null),ae.value.innerHTML="",Se=new o({container:ae.value,width:"100%",height:"100%"}),Se.render(ke.value),he.value=!0,Re=n,l(()=>{me()})}catch(r){console.error("Failed to render infographic:",r),he.value=!1,Re="",ae.value&&(ae.value.innerHTML=`<div class="text-red-500 p-4">Failed to render infographic: ${r instanceof Error?r.message:"Unknown error"}</div>`)}finally{if(Xe=!1,Oe){const e=Ye;Oe=!1,Ye=!1,l(()=>{Ue(e)})}}}})}function Ne(e=!1){!we.value||ie.value||re.value||l(()=>{Ue(e)})}n(()=>ke.value,()=>{Ne(!0)}),n(()=>ie.value,e=>{e||Ne()}),n(()=>re.value,e=>{e||Ne()}),n(()=>ee.maxHeight,()=>{l(()=>{me()})}),n(()=>we.value,e=>{!e||ie.value||re.value||Ne()}),a(()=>{se.value||(ie.value=!1),Ne()}),i(()=>{var e,o;if(null==(e=ge.value)||e.destroy(),ge.value=null,Se&&(null==(o=Se.destroy)||o.call(Se),Se=null),Re="","undefined"!=typeof window)try{window.removeEventListener("keydown",Ee)}catch(t){}});const Ge=r(()=>ee.isDark?"infographic-action-btn p-2 text-xs rounded text-gray-400 hover:bg-gray-700 hover:text-gray-200":"infographic-action-btn p-2 text-xs rounded text-gray-600 hover:bg-gray-200 hover:text-gray-700"),qe=r(()=>ie.value||re.value),Ae=r(()=>ie.value?"fallback":he.value?"preview":"pending"),Je=r(()=>({transform:`translate(${xe.value}px, ${ye.value}px) scale(${pe.value})`}));return n(Je,e=>{ce.value&&ve.value&&(ve.value.style.transform=e.transform)}),(e,o)=>(s(),u("div",{ref_key:"viewportTarget",ref:le,class:c(["my-4 rounded-lg border overflow-hidden shadow-sm",[ee.isDark?"border-gray-700/30":"border-gray-200",{"is-rendering":ee.loading}]]),"data-markstream-infographic":"1","data-markstream-mode":Ae.value},[ee.showHeader?(s(),u("div",{key:0,class:c(["infographic-block-header flex justify-between items-center px-4 py-2.5 border-b",ee.isDark?"bg-gray-800 border-gray-700/30":"bg-gray-50 border-gray-200"])},[e.$slots["header-left"]?(s(),u("div",L,[d(e.$slots,"header-left",{},void 0,!0)])):(s(),u("div",Z,[v("img",{src:h("data:image/svg+xml,%3csvg%20width='15.52'%20height='16'%20viewBox='0%200%20291%20300'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20d='M140.904%20239.376C128.83%20239.683%20119.675%20239.299%20115.448%20243.843C110.902%20248.07%20111.288%20257.227%20110.979%20269.302C111.118%20274.675%20111.118%20279.478%20111.472%20283.52C111.662%20285.638%20111.95%20287.547%20112.406%20289.224C112.411%20289.243%20112.416%20289.259%20112.422%20289.28C112.462%20289.419%20112.496%20289.558%20112.539%20289.691C113.168%20291.787%20114.088%20293.491%20115.446%20294.758C116.662%20296.064%20118.283%20296.963%20120.264%20297.59C120.36%20297.614%20120.464%20297.646%20120.555%20297.675C120.56%20297.68%20120.56%20297.68%20120.566%20297.68C120.848%20297.768%20121.142%20297.846%20121.443%20297.923C121.454%20297.923%20121.464%20297.928%20121.478%20297.934C122.875%20298.272%20124.424%20298.507%20126.11%20298.678C126.326%20298.696%20126.542%20298.718%20126.763%20298.739C130.79%20299.086%20135.558%20299.088%20140.904%20299.222C152.974%20298.912%20162.128%20299.302%20166.36%20294.758C170.904%20290.526%20170.515%20281.371%20170.824%20269.302C170.515%20257.227%20170.907%20248.07%20166.36%20243.843C162.131%20239.299%20152.974%20239.683%20140.904%20239.376Z'%20fill='%23FF6376'%3e%3c/path%3e%3cpath%20d='M21.2155%20128.398C12.6555%20128.616%206.16484%20128.339%203.16751%20131.56C-0.0538222%20134.56%200.218178%20141.054%20-0.000488281%20149.608C0.218178%20158.168%20-0.0538222%20164.659%203.16751%20167.656C6.16484%20170.878%2012.6555%20170.606%2021.2155%20170.824C25.0262%20170.726%2028.4288%20170.726%2031.2955%20170.475C32.7968%20170.342%2034.1488%20170.136%2035.3382%20169.814C35.3542%20169.811%2035.3648%20169.806%2035.3782%20169.803C35.4768%20169.774%2035.5755%20169.747%2035.6688%20169.718C37.1568%20169.272%2038.3648%20168.622%2039.2635%20167.656C40.1915%20166.795%2040.8262%20165.646%2041.2715%20164.243C41.2875%20164.174%2041.3115%20164.102%2041.3328%20164.035C41.3328%20164.035%2041.3355%20164.032%2041.3355%20164.027C41.3968%20163.827%2041.4529%20163.622%2041.5062%20163.406C41.5062%20163.398%2041.5115%20163.392%2041.5142%20163.382C41.7542%20162.392%2041.9222%20161.294%2042.0422%20160.096C42.0555%20159.944%2042.0715%20159.792%2042.0848%20159.635C42.3328%20156.779%2042.3328%20153.398%2042.4262%20149.608C42.2075%20141.054%2042.4848%20134.56%2039.2635%20131.56C36.2635%20128.339%2029.7728%20128.616%2021.2155%20128.398Z'%20fill='%23FFCCCC'%3e%3c/path%3e%3cpath%20d='M81.0595%20184.171C70.8568%20184.433%2063.1208%20184.102%2059.5475%20187.942C55.7075%20191.518%2056.0328%20199.254%2055.7742%20209.454C56.0328%20219.657%2055.7075%20227.393%2059.5475%20230.963C63.1208%20234.803%2070.8568%20234.478%2081.0595%20234.739C85.6008%20234.622%2089.6595%20234.622%2093.0728%20234.323C94.8648%20234.163%2096.4755%20233.921%2097.8942%20233.534C97.9102%20233.529%2097.9235%20233.526%2097.9422%20233.521C98.0568%20233.486%2098.1742%20233.457%2098.2888%20233.422C100.06%20232.889%20101.5%20232.113%20102.569%20230.963C103.676%20229.937%20104.433%20228.566%20104.964%20226.894C104.985%20226.811%20105.012%20226.726%20105.036%20226.646C105.041%20226.643%20105.041%20226.643%20105.041%20226.638C105.116%20226.401%20105.18%20226.153%20105.244%20225.897C105.244%20225.889%20105.249%20225.881%20105.254%20225.867C105.54%20224.689%20105.74%20223.379%20105.881%20221.953C105.9%20221.771%20105.916%20221.59%20105.934%20221.403C106.228%20218.001%20106.228%20213.969%20106.342%20209.454C106.081%20199.254%20106.412%20191.518%20102.572%20187.942C98.9955%20184.102%2091.2568%20184.433%2081.0595%20184.171Z'%20fill='%23FF939F'%3e%3c/path%3e%3cpath%20d='M260.591%20151.87C215.652%20151.87%20203.02%20164.523%20203.02%20209.462H198.476C198.476%20164.523%20185.836%20151.881%20140.895%20151.881V147.337C185.836%20147.337%20198.487%20134.705%20198.487%2089.7659H203.02C203.02%20134.705%20215.652%20147.337%20260.591%20147.337V151.87ZM286.052%20124.158C281.82%20119.614%20272.66%20120.001%20260.591%20119.689C248.521%20119.385%20239.361%20119.771%20235.129%20115.227C230.585%20110.995%20230.983%20101.846%20230.671%2089.7659C230.513%2083.7312%20230.535%2078.4272%20230.023%2074.1019C229.513%2069.7659%20228.481%2066.4219%20226.209%2064.3046C221.967%2059.7606%20212.817%2060.1472%20200.748%2059.8459C188.681%2060.1472%20179.519%2059.7606%20175.287%2064.3046C170.753%2068.5366%20171.129%2077.6966%20170.828%2089.7659C170.516%20101.835%20170.9%20110.995%20166.356%20115.227C162.124%20119.771%20152.985%20119.374%20140.905%20119.689C138.873%20119.739%20136.924%20119.771%20135.071%20119.811C119.313%20118.697%20106.337%20112.318%20106.337%2089.7659C106.212%2084.6699%20106.233%2080.1792%20105.807%2076.5206C105.367%2072.8726%20104.492%2070.0379%20102.575%2068.2566C99.0013%2064.4112%2091.2573%2064.7446%2081.0653%2064.4832C70.86%2064.7446%2063.1186%2064.4112%2059.5533%2068.2566C55.708%2071.8299%2056.0306%2079.5632%2055.7693%2089.7659C56.0306%2099.9686%2055.708%20107.702%2059.5533%20111.278C63.1186%20115.113%2070.86%20114.79%2081.0653%20115.049C103.617%20115.049%20109.996%20128.035%20111.1%20143.803C111.068%20145.659%20111.028%20147.587%20110.975%20149.619C111.121%20154.987%20111.121%20159.79%20111.476%20163.835C111.663%20165.95%20111.945%20167.857%20112.404%20169.534C112.412%20169.555%20112.412%20169.566%20112.423%20169.598C112.465%20169.734%20112.497%20169.867%20112.537%20170.003C113.164%20172.099%20114.092%20173.809%20115.447%20175.07C116.665%20176.371%20118.281%20177.278%20120.271%20177.905C120.364%20177.934%20120.46%20177.955%20120.564%20177.987C120.855%20178.081%20121.145%20178.153%20121.439%20178.238C121.46%20178.238%20121.471%20178.238%20121.479%20178.249C122.876%20178.582%20124.42%20178.822%20126.108%20178.987C126.327%20179.009%20126.545%20179.03%20126.764%20179.051C130.788%20179.395%20135.559%20179.395%20140.905%20179.529C152.975%20179.843%20162.124%20179.457%20166.356%20184.001C170.9%20188.233%20170.516%20197.371%20170.828%20209.451C171.129%20221.529%20170.743%20230.681%20175.287%20234.91C179.519%20239.454%20188.681%20239.07%20200.748%20239.371C206.127%20239.235%20210.921%20239.235%20214.975%20238.881C217.079%20238.694%20218.985%20238.403%20220.676%20237.955C220.695%20237.945%20220.705%20237.934%20220.727%20237.934C220.873%20237.891%20220.999%20237.859%20221.135%20237.819C223.228%20237.193%20224.937%20236.265%20226.209%20234.91C227.511%20233.691%20228.409%20232.065%20229.044%20230.097C229.065%20230.003%20229.095%20229.899%20229.127%20229.803V229.793C229.22%20229.513%20229.295%20229.222%20229.367%20228.918C229.367%20228.897%20229.377%20228.897%20229.377%20228.878C229.721%20227.481%20229.951%20225.937%20230.127%20224.249C230.137%20224.03%20230.169%20223.811%20230.191%20223.593C230.535%20219.571%20230.535%20214.798%20230.671%20209.451C230.972%20197.371%20230.585%20188.233%20235.129%20184.001C239.361%20179.457%20248.511%20179.843%20260.591%20179.529C272.66%20179.227%20281.82%20179.614%20286.052%20175.07C290.596%20170.838%20290.209%20161.689%20290.511%20149.619C290.209%20137.539%20290.596%20128.379%20286.052%20124.158Z'%20fill='%23FF356A'%3e%3c/path%3e%3cpath%20d='M112.405%2049.848C112.411%2049.8694%20112.416%2049.8827%20112.421%2049.904C112.461%2050.0427%20112.499%2050.1814%20112.539%2050.3147C113.171%2052.4134%20114.088%2054.1147%20115.448%2055.384C116.661%2056.6907%20118.283%2057.5894%20120.264%2058.2134C120.36%2058.24%20120.464%2058.2694%20120.555%2058.3014C120.56%2058.3067%20120.56%2058.3067%20120.565%2058.3067C120.848%2058.3947%20121.141%2058.4694%20121.443%2058.5467C121.453%2058.5467%20121.464%2058.552%20121.48%2058.5574C122.875%2058.896%20124.424%2059.1334%20126.112%2059.3014C126.325%2059.3227%20126.541%2059.3414%20126.763%2059.3627C130.789%2059.712%20135.56%2059.712%20140.904%2059.8454C152.973%2059.5387%20162.128%2059.928%20166.36%2055.384C170.907%2051.152%20170.515%2041.9947%20170.824%2029.9254C170.517%2017.8507%20170.907%208.69602%20166.363%204.46935C162.131%20-0.0746511%20152.973%200.309349%20140.904%201.52588e-05C128.829%200.309349%20119.675%20-0.0746511%20115.448%204.46935C110.904%208.69602%20111.288%2017.8507%20110.979%2029.9254C111.117%2035.3014%20111.117%2040.1014%20111.472%2044.144C111.661%2046.2614%20111.949%2048.1707%20112.405%2049.848Z'%20fill='%23FF6376'%3e%3c/path%3e%3c/g%3e%3c/svg%3e"),class:"w-4 h-4 my-0",alt:"Infographic"},null,8,I),v("span",{class:c(["text-sm font-medium font-mono truncate",ee.isDark?"text-gray-400":"text-gray-600"])},"Infographic",2)])),e.$slots["header-center"]?(s(),u("div",P,[d(e.$slots,"header-center",{},void 0,!0)])):ee.showModeToggle?(s(),u("div",{key:3,class:c(["flex items-center gap-x-1 rounded-md p-0.5",ee.isDark?"bg-gray-700":"bg-gray-100"])},[v("button",{class:c(["px-2.5 py-1 text-xs rounded transition-colors",[ie.value?ee.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700":ee.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm"]]),onClick:o[0]||(o[0]=()=>Te("preview")),onMouseenter:o[1]||(o[1]=e=>Be(e,h(oe)("common.preview")||"Preview")),onFocus:o[2]||(o[2]=e=>Be(e,h(oe)("common.preview")||"Preview")),onMouseleave:Fe,onBlur:Fe},[v("div",_,[o[21]||(o[21]=v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("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"}),v("circle",{cx:"12",cy:"12",r:"3"})])],-1)),v("span",null,g(h(oe)("common.preview")||"Preview"),1)])],34),v("button",{class:c(["px-2.5 py-1 text-xs rounded transition-colors",[ie.value?ee.isDark?"bg-gray-600 text-gray-200 shadow-sm":"bg-white text-gray-700 shadow-sm":ee.isDark?"text-gray-400 hover:text-gray-200":"text-gray-500 hover:text-gray-700"]]),onClick:o[3]||(o[3]=()=>Te("source")),onMouseenter:o[4]||(o[4]=e=>Be(e,h(oe)("common.source")||"Source")),onFocus:o[5]||(o[5]=e=>Be(e,h(oe)("common.source")||"Source")),onMouseleave:Fe,onBlur:Fe},[v("div",V,[o[22]||(o[22]=v("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"},[v("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)),v("span",null,g(h(oe)("common.source")||"Source"),1)])],34)],2)):w("",!0),e.$slots["header-right"]?(s(),u("div",S,[d(e.$slots,"header-right",{},void 0,!0)])):(s(),u("div",X,[ee.showCollapseButton?(s(),u("button",{key:0,class:c(Ge.value),"aria-pressed":re.value,onClick:o[6]||(o[6]=e=>re.value=!re.value),onMouseenter:o[7]||(o[7]=e=>Be(e,re.value?h(oe)("common.expand")||"Expand":h(oe)("common.collapse")||"Collapse")),onFocus:o[8]||(o[8]=e=>Be(e,re.value?h(oe)("common.expand")||"Expand":h(oe)("common.collapse")||"Collapse")),onMouseleave:Fe,onBlur:Fe},[(s(),u("svg",{style:m({rotate:re.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"},[...o[23]||(o[23]=[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],42,O)):w("",!0),ee.showCopyButton?(s(),u("button",{key:1,class:c(Ge.value),onClick:je,onMouseenter:o[9]||(o[9]=e=>De(e)),onFocus:o[10]||(o[10]=e=>De(e)),onMouseleave:Fe,onBlur:Fe},[ne.value?(s(),u("svg",R,[...o[25]||(o[25]=[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(s(),u("svg",Y,[...o[24]||(o[24]=[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),v("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)):w("",!0),ee.showExportButton?(s(),u("button",{key:2,class:c(`${Ge.value} ${qe.value?"opacity-50 cursor-not-allowed":""}`),disabled:qe.value,onClick:$e,onMouseenter:o[11]||(o[11]=e=>Be(e,h(oe)("common.export")||"Export")),onFocus:o[12]||(o[12]=e=>Be(e,h(oe)("common.export")||"Export")),onMouseleave:Fe,onBlur:Fe},[...o[26]||(o[26]=[v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,U)):w("",!0),ee.showFullscreenButton?(s(),u("button",{key:3,class:c(`${Ge.value} ${qe.value?"opacity-50 cursor-not-allowed":""}`),disabled:qe.value,onClick:ze,onMouseenter:o[13]||(o[13]=e=>Be(e,ce.value?h(oe)("common.minimize")||"Minimize":h(oe)("common.open")||"Open")),onFocus:o[14]||(o[14]=e=>Be(e,ce.value?h(oe)("common.minimize")||"Minimize":h(oe)("common.open")||"Open")),onMouseleave:Fe,onBlur:Fe},[ce.value?(s(),u("svg",q,[...o[28]||(o[28]=[v("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)])])):(s(),u("svg",G,[...o[27]||(o[27]=[v("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,N)):w("",!0)]))],2)):w("",!0),p(v("div",null,[ie.value?(s(),u("div",{key:0,class:c(["p-4",ee.isDark?"bg-gray-900":"bg-gray-50"])},[v("pre",{class:c(["text-sm font-mono whitespace-pre-wrap",ee.isDark?"text-gray-300":"text-gray-700"])},g(ke.value),3)],2)):(s(),u("div",A,[ee.showZoomControls?(s(),u("div",J,[v("div",K,[v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Le,onMouseenter:o[15]||(o[15]=e=>Be(e,h(oe)("common.zoomIn")||"Zoom in")),onFocus:o[16]||(o[16]=e=>Be(e,h(oe)("common.zoomIn")||"Zoom in")),onMouseleave:Fe,onBlur:Fe},[...o[29]||(o[29]=[v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],34),v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ze,onMouseenter:o[17]||(o[17]=e=>Be(e,h(oe)("common.zoomOut")||"Zoom out")),onFocus:o[18]||(o[18]=e=>Be(e,h(oe)("common.zoomOut")||"Zoom out")),onMouseleave:Fe,onBlur:Fe},[...o[30]||(o[30]=[v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],34),v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ie,onMouseenter:o[19]||(o[19]=e=>Be(e,h(oe)("common.resetZoom")||"Reset zoom")),onFocus:o[20]||(o[20]=e=>Be(e,h(oe)("common.resetZoom")||"Reset zoom")),onMouseleave:Fe,onBlur:Fe},g(Math.round(100*pe.value))+"% ",35)])])):w("",!0),v("div",{class:c(["min-h-[360px] relative transition-all duration-100 overflow-hidden block",ee.isDark?"bg-gray-900":"bg-gray-50"]),style:m({height:ue.value}),onMousedown:Pe,onMousemove:_e,onMouseup:Ve,onMouseleave:Ve,onTouchstartPassive:Pe,onTouchmovePassive:_e,onTouchendPassive:Ve},[v("div",{class:c(["absolute inset-0 cursor-grab",{"cursor-grabbing":fe.value}]),style:m(Je.value)},[v("div",{ref_key:"infographicContainer",ref:ae,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],38)]))],512),[[x,!re.value]]),(s(),y(f,{to:"body"},[v("div",Q,[C(k,{name:"infographic-dialog",appear:""},{default:b(()=>[ce.value?(s(),u("div",{key:0,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/70 p-4",onClick:M(He,["self"])},[v("div",{class:c(["dialog-panel relative w-full h-full max-w-full max-h-full rounded shadow-lg overflow-hidden",ee.isDark?"bg-gray-900":"bg-white"])},[v("div",W,[v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Le},[...o[31]||(o[31]=[v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],2),v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ze},[...o[32]||(o[32]=[v("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"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],2),v("button",{class:c(["p-2 text-xs rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:Ie},g(Math.round(100*pe.value))+"% ",3),v("button",{class:c(["inline-flex items-center justify-center p-2 rounded transition-colors",[ee.isDark?"text-gray-400 hover:bg-gray-700":"text-gray-600 hover:bg-gray-200"]]),onClick:He},[...o[33]||(o[33]=[v("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"},[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])],2)]),v("div",{ref_key:"modalContent",ref:de,class:c(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!fe.value,"cursor-grabbing":fe.value}]),onMousedown:Pe,onMousemove:_e,onMouseup:Ve,onMouseleave:Ve,onTouchstartPassive:Pe,onTouchmovePassive:_e,onTouchendPassive:Ve},null,34)],2)])):w("",!0)]),_:1})])]))],10,z))}}),[["__scopeId","data-v-e17a4388"]]);ee.install=e=>{e.component(ee.__name,ee)};export{ee as default};
|
|
1
|
+
var e=(e,o,n)=>new Promise((t,l)=>{var i=e=>{try{a(n.next(e))}catch(o){l(o)}},r=e=>{try{a(n.throw(e))}catch(o){l(o)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,r);a((n=n.apply(e,o)).next())});import{defineComponent as o,ref as n,watch as t,computed as l,nextTick as i,onMounted as r,onBeforeUnmount as a,openBlock as s,createElementBlock as u,normalizeClass as c,renderSlot as d,createElementVNode as v,unref as h,toDisplayString as m,createCommentVNode as p,normalizeStyle as w,withDirectives as f,vShow as g,createBlock as C,Teleport as k,createVNode as x,Transition as y,withCtx as b,withModifiers as M}from"vue";import{b as B,u as F,e as j,h as T,_ as $}from"./exports.js";const E=()=>import("@antv/infographic");let H=null,L=E;const z=["data-markstream-mode"],Z={key:0,class:"infographic-block-header flex justify-between items-center border-b"},P={key:0},I={key:1,class:"flex items-center gap-x-2 overflow-hidden"},S=["innerHTML"],V={key:2},_={key:3,class:"infographic-mode-toggle flex items-center gap-0.5"},X={class:"flex items-center gap-x-1"},O={class:"flex items-center gap-x-1"},Y={key:4},N={key:5,class:"infographic-header-actions flex items-center"},D=["aria-pressed"],R={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:"action-icon"},U={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:"action-icon"},A=["disabled"],G=["disabled"],q={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:"action-icon"},J={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:"action-icon"},K={key:0,class:"infographic-source"},Q={class:"infographic-source-code text-sm font-mono whitespace-pre-wrap"},W={key:1,class:"relative"},ee={key:0,class:"absolute top-2 right-2 z-10 rounded-lg"},oe={class:"flex items-center gap-2 backdrop-blur rounded-lg"},ne={class:"dialog-panel infographic-modal-panel relative w-full h-full max-w-full max-h-full rounded overflow-hidden"},te={class:"absolute top-6 right-6 z-50 flex items-center gap-2"},le="infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",ie=/* @__PURE__ */$(/* @__PURE__ */o({__name:"InfographicBlockNode",props:{node:{},maxHeight:{default:void 0},loading:{type:Boolean,default:!0},isDark:{type:Boolean},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showFullscreenButton:{type:Boolean,default:!0},showZoomControls:{type:Boolean,default:!0}},emits:["copy","export","openModal"],setup(o,{emit:$}){const ie=o,{t:re}=B(),ae=F(),se=n(!1),ue=n(!1),ce=n(),de=n(),ve=n(!0),he=n(!1),me=n("360px"),pe=n(!1),we=n(),fe=n(null),ge=n(!1),Ce=n(null),ke=n("undefined"==typeof window);function xe(){if(!de.value)return;const e=de.value.scrollHeight;e>0&&(me.value=function(e){if("none"===ie.maxHeight)return`${e}px`;if(null!=ie.maxHeight){const o=Number.parseFloat(String(ie.maxHeight));if(Number.isFinite(o))return`${Math.min(e,o)}px`}const o=de.value;if(o){const n=getComputedStyle(o).getPropertyValue("--ms-size-code-max-height").trim(),t=Number.parseFloat(n);if(Number.isFinite(t))return`${Math.min(e,t)}px`}return`${Math.min(e,500)}px`}(e))}"undefined"!=typeof window&&t(()=>ce.value,e=>{var o;if(null==(o=Ce.value)||o.destroy(),Ce.value=null,!e)return void(ke.value=!1);const n=ae(e,{rootMargin:"160px"});Ce.value=n,ke.value=n.isVisible.value,n.whenVisible.then(()=>{ke.value=!0})},{immediate:!0});const ye=n(1),be=n(0),Me=n(0),Be=n(!1),Fe=n({x:0,y:0}),je=l(()=>ie.node.code),Te=l(()=>je.value);function $e(e){return!e||e.disabled}function Ee(e,o,n="top"){if($e(e.currentTarget))return;const t=e,l=null!=(null==t?void 0:t.clientX)&&null!=(null==t?void 0:t.clientY)?{x:t.clientX,y:t.clientY}:void 0;j(e.currentTarget,o,n,!1,l,ie.isDark)}function He(){T()}function Le(e){if($e(e.currentTarget))return;const o=se.value?re("common.copied")||"Copied":re("common.copy")||"Copy",n=e,t=null!=(null==n?void 0:n.clientX)&&null!=(null==n?void 0:n.clientY)?{x:n.clientX,y:n.clientY}:void 0;j(e.currentTarget,o,"top",!1,t,ie.isDark)}function ze(){return e(this,null,function*(){try{const e=je.value;"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(e)),se.value=!0,setTimeout(()=>{se.value=!1},1e3)}catch(e){console.error("Failed to copy:",e)}})}function Ze(e){he.value=!0,ve.value="source"===e}function Pe(){var o;const n=null==(o=de.value)?void 0:o.querySelector("svg");n?function(o){e(this,null,function*(){try{const n=(new XMLSerializer).serializeToString(o),t=new Blob([n],{type:"image/svg+xml;charset=utf-8"}),l=URL.createObjectURL(t);if("undefined"!=typeof document){const o=document.createElement("a");o.href=l,o.download=`infographic-${Date.now()}.svg`;try{document.body.appendChild(o),o.click(),document.body.removeChild(o)}catch(e){}URL.revokeObjectURL(l)}}catch(n){console.error("Failed to export SVG:",n)}})}(n):console.error("SVG element not found")}function Ie(e){"Escape"===e.key&&pe.value&&Se()}function Se(){if(pe.value=!1,we.value&&(we.value.innerHTML=""),fe.value=null,"undefined"!=typeof document)try{document.body.style.overflow=""}catch(e){}if("undefined"!=typeof window)try{window.removeEventListener("keydown",Ie)}catch(e){}}function Ve(){!function(){if(pe.value=!0,"undefined"!=typeof document)try{document.body.style.overflow="hidden"}catch(e){}if("undefined"!=typeof window)try{window.addEventListener("keydown",Ie)}catch(e){}i(()=>{if(de.value&&we.value){we.value.innerHTML="";const e=document.createElement("div");e.style.transition="transform 0.1s ease",e.style.transformOrigin="center center",e.style.width="100%",e.style.height="100%",e.style.display="flex",e.style.alignItems="center",e.style.justifyContent="center";const o=de.value.cloneNode(!0);o.classList.add("fullscreen"),o.style.height="auto",e.appendChild(o),we.value.appendChild(e),fe.value=e,e.style.transform=`translate(${be.value}px, ${Me.value}px) scale(${ye.value})`}})}()}function _e(){ye.value<3&&(ye.value+=.1)}function Xe(){ye.value>.5&&(ye.value-=.1)}function Oe(){ye.value=1,be.value=0,Me.value=0}function Ye(e){Be.value=!0,e instanceof MouseEvent?Fe.value={x:e.clientX-be.value,y:e.clientY-Me.value}:Fe.value={x:e.touches[0].clientX-be.value,y:e.touches[0].clientY-Me.value}}function Ne(e){if(!Be.value)return;let o,n;e instanceof MouseEvent?(o=e.clientX,n=e.clientY):(o=e.touches[0].clientX,n=e.touches[0].clientY),be.value=o-Fe.value.x,Me.value=n-Fe.value.y}function De(){Be.value=!1}let Re=null,Ue=!1,Ae=!1,Ge=!1,qe="";function Je(o=!1){return e(this,null,function*(){var n,t;if(!ke.value)return;if(!de.value)return;if(Ue)return Ae=!0,void(Ge=Ge||o);const l=Te.value;if(o||l!==qe||!ge.value){Ue=!0;try{const o=yield function(){return e(this,null,function*(){if(H)return H;const e=L;if(!e)return null;let o;try{o=yield e()}catch(t){if(e===E)throw new Error('Optional dependency "@antv/infographic" is not installed. Please install it to enable infographic diagrams.');throw t}if(!o)return null;const n=o&&o.default?o.default:o;return H="function"==typeof n&&n.prototype&&n.prototype.render?n:o.Infographic?o.Infographic:n&&n.Infographic?n.Infographic:n,H})}();if(!o)return void console.warn("Infographic library failed to load.");Re&&(null==(n=Re.destroy)||n.call(Re),Re=null),de.value.innerHTML="",Re=new o({container:de.value,width:"100%",height:"100%"});let r="";if(null==(t=Re.on)||t.call(Re,"error",e=>{const o=Array.isArray(e)?e:[e];r=o.map(e=>{var o;return e instanceof Error?e.message:"string"==typeof e?e:String(e&&"object"==typeof e&&"message"in e?null!=(o=e.message)?o:"":null!=e?e:"")}).filter(Boolean).join("; ")}),Re.render(je.value),r)throw new Error(r);if(!de.value.childNodes.length)throw new Error("Infographic render returned empty output.");ge.value=!0,qe=l,i(()=>{xe()})}catch(r){console.error("Failed to render infographic:",r),ge.value=!1,qe="",de.value&&(de.value.innerHTML=`<div style="padding: var(--ms-inset-panel-body); color: hsl(var(--ms-destructive))">Failed to render infographic: ${r instanceof Error?r.message:"Unknown error"}</div>`)}finally{if(Ue=!1,Ae){const e=Ge;Ae=!1,Ge=!1,i(()=>{Je(e)})}}}})}function Ke(e=!1){!ke.value||ve.value||ue.value||i(()=>{Je(e)})}t(()=>je.value,()=>{Ke(!0)}),t(()=>ve.value,e=>{e||Ke(!0)}),t(()=>ue.value,e=>{e||Ke()}),t(()=>ie.maxHeight,()=>{i(()=>{xe()})}),t(()=>ke.value,e=>{!e||ve.value||ue.value||Ke()}),r(()=>{he.value||(ve.value=!1),Ke()}),a(()=>{var e,o;if(null==(e=Ce.value)||e.destroy(),Ce.value=null,Re&&(null==(o=Re.destroy)||o.call(Re),Re=null),qe="","undefined"!=typeof window)try{window.removeEventListener("keydown",Ie)}catch(n){}});const Qe=l(()=>ve.value||ue.value),We=l(()=>ve.value?"fallback":ge.value?"preview":"pending"),eo=l(()=>({transform:`translate(${be.value}px, ${Me.value}px) scale(${ye.value})`}));return t(eo,e=>{pe.value&&fe.value&&(fe.value.style.transform=e.transform)}),(e,o)=>(s(),u("div",{ref_key:"viewportTarget",ref:ce,class:c(["infographic-block-container rounded-lg border overflow-hidden",[{"is-rendering":ie.loading,dark:ie.isDark}]]),"data-markstream-infographic":"1","data-markstream-mode":We.value},[ie.showHeader?(s(),u("div",Z,[e.$slots["header-left"]?(s(),u("div",P,[d(e.$slots,"header-left",{},void 0,!0)])):(s(),u("div",I,[v("span",{class:"icon-slot action-icon shrink-0",innerHTML:h('<svg width="15.52" height="16" viewBox="0 0 291 300" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path d="M140.904 239.376C128.83 239.683 119.675 239.299 115.448 243.843C110.902 248.07 111.288 257.227 110.979 269.302C111.118 274.675 111.118 279.478 111.472 283.52C111.662 285.638 111.95 287.547 112.406 289.224C112.411 289.243 112.416 289.259 112.422 289.28C112.462 289.419 112.496 289.558 112.539 289.691C113.168 291.787 114.088 293.491 115.446 294.758C116.662 296.064 118.283 296.963 120.264 297.59C120.36 297.614 120.464 297.646 120.555 297.675C120.56 297.68 120.56 297.68 120.566 297.68C120.848 297.768 121.142 297.846 121.443 297.923C121.454 297.923 121.464 297.928 121.478 297.934C122.875 298.272 124.424 298.507 126.11 298.678C126.326 298.696 126.542 298.718 126.763 298.739C130.79 299.086 135.558 299.088 140.904 299.222C152.974 298.912 162.128 299.302 166.36 294.758C170.904 290.526 170.515 281.371 170.824 269.302C170.515 257.227 170.907 248.07 166.36 243.843C162.131 239.299 152.974 239.683 140.904 239.376Z" fill="#FF6376"></path><path d="M21.2155 128.398C12.6555 128.616 6.16484 128.339 3.16751 131.56C-0.0538222 134.56 0.218178 141.054 -0.000488281 149.608C0.218178 158.168 -0.0538222 164.659 3.16751 167.656C6.16484 170.878 12.6555 170.606 21.2155 170.824C25.0262 170.726 28.4288 170.726 31.2955 170.475C32.7968 170.342 34.1488 170.136 35.3382 169.814C35.3542 169.811 35.3648 169.806 35.3782 169.803C35.4768 169.774 35.5755 169.747 35.6688 169.718C37.1568 169.272 38.3648 168.622 39.2635 167.656C40.1915 166.795 40.8262 165.646 41.2715 164.243C41.2875 164.174 41.3115 164.102 41.3328 164.035C41.3328 164.035 41.3355 164.032 41.3355 164.027C41.3968 163.827 41.4529 163.622 41.5062 163.406C41.5062 163.398 41.5115 163.392 41.5142 163.382C41.7542 162.392 41.9222 161.294 42.0422 160.096C42.0555 159.944 42.0715 159.792 42.0848 159.635C42.3328 156.779 42.3328 153.398 42.4262 149.608C42.2075 141.054 42.4848 134.56 39.2635 131.56C36.2635 128.339 29.7728 128.616 21.2155 128.398Z" fill="#FFCCCC"></path><path d="M81.0595 184.171C70.8568 184.433 63.1208 184.102 59.5475 187.942C55.7075 191.518 56.0328 199.254 55.7742 209.454C56.0328 219.657 55.7075 227.393 59.5475 230.963C63.1208 234.803 70.8568 234.478 81.0595 234.739C85.6008 234.622 89.6595 234.622 93.0728 234.323C94.8648 234.163 96.4755 233.921 97.8942 233.534C97.9102 233.529 97.9235 233.526 97.9422 233.521C98.0568 233.486 98.1742 233.457 98.2888 233.422C100.06 232.889 101.5 232.113 102.569 230.963C103.676 229.937 104.433 228.566 104.964 226.894C104.985 226.811 105.012 226.726 105.036 226.646C105.041 226.643 105.041 226.643 105.041 226.638C105.116 226.401 105.18 226.153 105.244 225.897C105.244 225.889 105.249 225.881 105.254 225.867C105.54 224.689 105.74 223.379 105.881 221.953C105.9 221.771 105.916 221.59 105.934 221.403C106.228 218.001 106.228 213.969 106.342 209.454C106.081 199.254 106.412 191.518 102.572 187.942C98.9955 184.102 91.2568 184.433 81.0595 184.171Z" fill="#FF939F"></path><path d="M260.591 151.87C215.652 151.87 203.02 164.523 203.02 209.462H198.476C198.476 164.523 185.836 151.881 140.895 151.881V147.337C185.836 147.337 198.487 134.705 198.487 89.7659H203.02C203.02 134.705 215.652 147.337 260.591 147.337V151.87ZM286.052 124.158C281.82 119.614 272.66 120.001 260.591 119.689C248.521 119.385 239.361 119.771 235.129 115.227C230.585 110.995 230.983 101.846 230.671 89.7659C230.513 83.7312 230.535 78.4272 230.023 74.1019C229.513 69.7659 228.481 66.4219 226.209 64.3046C221.967 59.7606 212.817 60.1472 200.748 59.8459C188.681 60.1472 179.519 59.7606 175.287 64.3046C170.753 68.5366 171.129 77.6966 170.828 89.7659C170.516 101.835 170.9 110.995 166.356 115.227C162.124 119.771 152.985 119.374 140.905 119.689C138.873 119.739 136.924 119.771 135.071 119.811C119.313 118.697 106.337 112.318 106.337 89.7659C106.212 84.6699 106.233 80.1792 105.807 76.5206C105.367 72.8726 104.492 70.0379 102.575 68.2566C99.0013 64.4112 91.2573 64.7446 81.0653 64.4832C70.86 64.7446 63.1186 64.4112 59.5533 68.2566C55.708 71.8299 56.0306 79.5632 55.7693 89.7659C56.0306 99.9686 55.708 107.702 59.5533 111.278C63.1186 115.113 70.86 114.79 81.0653 115.049C103.617 115.049 109.996 128.035 111.1 143.803C111.068 145.659 111.028 147.587 110.975 149.619C111.121 154.987 111.121 159.79 111.476 163.835C111.663 165.95 111.945 167.857 112.404 169.534C112.412 169.555 112.412 169.566 112.423 169.598C112.465 169.734 112.497 169.867 112.537 170.003C113.164 172.099 114.092 173.809 115.447 175.07C116.665 176.371 118.281 177.278 120.271 177.905C120.364 177.934 120.46 177.955 120.564 177.987C120.855 178.081 121.145 178.153 121.439 178.238C121.46 178.238 121.471 178.238 121.479 178.249C122.876 178.582 124.42 178.822 126.108 178.987C126.327 179.009 126.545 179.03 126.764 179.051C130.788 179.395 135.559 179.395 140.905 179.529C152.975 179.843 162.124 179.457 166.356 184.001C170.9 188.233 170.516 197.371 170.828 209.451C171.129 221.529 170.743 230.681 175.287 234.91C179.519 239.454 188.681 239.07 200.748 239.371C206.127 239.235 210.921 239.235 214.975 238.881C217.079 238.694 218.985 238.403 220.676 237.955C220.695 237.945 220.705 237.934 220.727 237.934C220.873 237.891 220.999 237.859 221.135 237.819C223.228 237.193 224.937 236.265 226.209 234.91C227.511 233.691 228.409 232.065 229.044 230.097C229.065 230.003 229.095 229.899 229.127 229.803V229.793C229.22 229.513 229.295 229.222 229.367 228.918C229.367 228.897 229.377 228.897 229.377 228.878C229.721 227.481 229.951 225.937 230.127 224.249C230.137 224.03 230.169 223.811 230.191 223.593C230.535 219.571 230.535 214.798 230.671 209.451C230.972 197.371 230.585 188.233 235.129 184.001C239.361 179.457 248.511 179.843 260.591 179.529C272.66 179.227 281.82 179.614 286.052 175.07C290.596 170.838 290.209 161.689 290.511 149.619C290.209 137.539 290.596 128.379 286.052 124.158Z" fill="#FF356A"></path><path d="M112.405 49.848C112.411 49.8694 112.416 49.8827 112.421 49.904C112.461 50.0427 112.499 50.1814 112.539 50.3147C113.171 52.4134 114.088 54.1147 115.448 55.384C116.661 56.6907 118.283 57.5894 120.264 58.2134C120.36 58.24 120.464 58.2694 120.555 58.3014C120.56 58.3067 120.56 58.3067 120.565 58.3067C120.848 58.3947 121.141 58.4694 121.443 58.5467C121.453 58.5467 121.464 58.552 121.48 58.5574C122.875 58.896 124.424 59.1334 126.112 59.3014C126.325 59.3227 126.541 59.3414 126.763 59.3627C130.789 59.712 135.56 59.712 140.904 59.8454C152.973 59.5387 162.128 59.928 166.36 55.384C170.907 51.152 170.515 41.9947 170.824 29.9254C170.517 17.8507 170.907 8.69602 166.363 4.46935C162.131 -0.0746511 152.973 0.309349 140.904 1.52588e-05C128.829 0.309349 119.675 -0.0746511 115.448 4.46935C110.904 8.69602 111.288 17.8507 110.979 29.9254C111.117 35.3014 111.117 40.1014 111.472 44.144C111.661 46.2614 111.949 48.1707 112.405 49.848Z" fill="#FF6376"></path></g></svg>\n')},null,8,S),o[21]||(o[21]=v("span",{class:"infographic-label font-medium font-mono truncate"},"Infographic",-1))])),e.$slots["header-center"]?(s(),u("div",V,[d(e.$slots,"header-center",{},void 0,!0)])):ie.showModeToggle?(s(),u("div",_,[v("button",{class:c(["infographic-mode-btn px-2 py-0.5 rounded transition-colors",[ve.value?"":"is-active"]]),onClick:o[0]||(o[0]=()=>Ze("preview")),onMouseenter:o[1]||(o[1]=e=>Ee(e,h(re)("common.preview")||"Preview")),onFocus:o[2]||(o[2]=e=>Ee(e,h(re)("common.preview")||"Preview")),onMouseleave:He,onBlur:He},[v("div",X,[o[22]||(o[22]=v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("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"}),v("circle",{cx:"12",cy:"12",r:"3"})])],-1)),v("span",null,m(h(re)("common.preview")||"Preview"),1)])],34),v("button",{class:c(["infographic-mode-btn px-2 py-0.5 rounded transition-colors",[ve.value?"is-active":""]]),onClick:o[3]||(o[3]=()=>Ze("source")),onMouseenter:o[4]||(o[4]=e=>Ee(e,h(re)("common.source")||"Source")),onFocus:o[5]||(o[5]=e=>Ee(e,h(re)("common.source")||"Source")),onMouseleave:He,onBlur:He},[v("div",O,[o[23]||(o[23]=v("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:"action-icon"},[v("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)),v("span",null,m(h(re)("common.source")||"Source"),1)])],34)])):p("",!0),e.$slots["header-right"]?(s(),u("div",Y,[d(e.$slots,"header-right",{},void 0,!0)])):(s(),u("div",N,[ie.showCollapseButton?(s(),u("button",{key:0,class:c(le),"aria-pressed":ue.value,onClick:o[6]||(o[6]=e=>ue.value=!ue.value),onMouseenter:o[7]||(o[7]=e=>Ee(e,ue.value?h(re)("common.expand")||"Expand":h(re)("common.collapse")||"Collapse")),onFocus:o[8]||(o[8]=e=>Ee(e,ue.value?h(re)("common.expand")||"Expand":h(re)("common.collapse")||"Collapse")),onMouseleave:He,onBlur:He},[(s(),u("svg",{style:w({rotate:ue.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:"action-icon"},[...o[24]||(o[24]=[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,D)):p("",!0),ie.showCopyButton?(s(),u("button",{key:1,class:c(le),onClick:ze,onMouseenter:o[9]||(o[9]=e=>Le(e)),onFocus:o[10]||(o[10]=e=>Le(e)),onMouseleave:He,onBlur:He},[se.value?(s(),u("svg",U,[...o[26]||(o[26]=[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(s(),u("svg",R,[...o[25]||(o[25]=[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),v("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],32)):p("",!0),ie.showExportButton?(s(),u("button",{key:2,class:c(`${le} ${Qe.value?"opacity-50 cursor-not-allowed":""}`),disabled:Qe.value,onClick:Pe,onMouseenter:o[11]||(o[11]=e=>Ee(e,h(re)("common.export")||"Export")),onFocus:o[12]||(o[12]=e=>Ee(e,h(re)("common.export")||"Export")),onMouseleave:He,onBlur:He},[...o[27]||(o[27]=[v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("path",{d:"M12 15V3m9 12v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),v("path",{d:"m7 10l5 5l5-5"})])],-1)])],42,A)):p("",!0),ie.showFullscreenButton?(s(),u("button",{key:3,class:c(`${le} ${Qe.value?"opacity-50 cursor-not-allowed":""}`),disabled:Qe.value,onClick:Ve,onMouseenter:o[13]||(o[13]=e=>Ee(e,pe.value?h(re)("common.minimize")||"Minimize":h(re)("common.open")||"Open")),onFocus:o[14]||(o[14]=e=>Ee(e,pe.value?h(re)("common.minimize")||"Minimize":h(re)("common.open")||"Open")),onMouseleave:He,onBlur:He},[pe.value?(s(),u("svg",J,[...o[29]||(o[29]=[v("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)])])):(s(),u("svg",q,[...o[28]||(o[28]=[v("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,G)):p("",!0)]))])):p("",!0),f(v("div",null,[ve.value?(s(),u("div",K,[v("pre",Q,m(je.value),1)])):(s(),u("div",W,[ie.showZoomControls?(s(),u("div",ee,[v("div",oe,[v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:_e,onMouseenter:o[15]||(o[15]=e=>Ee(e,h(re)("common.zoomIn")||"Zoom in")),onFocus:o[16]||(o[16]=e=>Ee(e,h(re)("common.zoomIn")||"Zoom in")),onMouseleave:He,onBlur:He},[...o[30]||(o[30]=[v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])],32),v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Xe,onMouseenter:o[17]||(o[17]=e=>Ee(e,h(re)("common.zoomOut")||"Zoom out")),onFocus:o[18]||(o[18]=e=>Ee(e,h(re)("common.zoomOut")||"Zoom out")),onMouseleave:He,onBlur:He},[...o[31]||(o[31]=[v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])],32),v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Oe,onMouseenter:o[19]||(o[19]=e=>Ee(e,h(re)("common.resetZoom")||"Reset zoom")),onFocus:o[20]||(o[20]=e=>Ee(e,h(re)("common.resetZoom")||"Reset zoom")),onMouseleave:He,onBlur:He},m(Math.round(100*ye.value))+"% ",33)])])):p("",!0),v("div",{class:"infographic-preview relative transition-all overflow-hidden block",style:w({height:me.value}),onMousedown:Ye,onMousemove:Ne,onMouseup:De,onMouseleave:De,onTouchstartPassive:Ye,onTouchmovePassive:Ne,onTouchendPassive:De},[v("div",{class:c(["absolute inset-0 cursor-grab",{"cursor-grabbing":Be.value}]),style:w(eo.value)},[v("div",{ref_key:"infographicContainer",ref:de,class:"w-full text-center flex items-center justify-center min-h-full"},null,512)],6)],36)]))],512),[[g,!ue.value]]),(s(),C(k,{to:"body"},[v("div",{class:c(["markstream-vue",{dark:ie.isDark}])},[x(y,{name:"infographic-dialog",appear:""},{default:b(()=>[pe.value?(s(),u("div",{key:0,class:"infographic-modal-overlay fixed inset-0 z-50 flex items-center justify-center p-4",onClick:M(Se,["self"])},[v("div",ne,[v("div",te,[v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:_e},[...o[32]||(o[32]=[v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M11 8v6m-3-3h6"})])],-1)])]),v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Xe},[...o[33]||(o[33]=[v("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:"action-icon"},[v("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[v("circle",{cx:"11",cy:"11",r:"8"}),v("path",{d:"m21 21l-4.35-4.35M8 11h6"})])],-1)])]),v("button",{class:"infographic-action-btn p-[var(--ms-action-btn-padding)] rounded",onClick:Oe},m(Math.round(100*ye.value))+"% ",1),v("button",{class:"infographic-action-btn inline-flex items-center justify-center p-[var(--ms-action-btn-padding)] rounded",onClick:Se},[...o[34]||(o[34]=[v("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:"action-icon"},[v("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M18 6L6 18M6 6l12 12"})],-1)])])]),v("div",{ref_key:"modalContent",ref:we,class:c(["w-full h-full flex items-center justify-center p-4 overflow-hidden",{"cursor-grab":!Be.value,"cursor-grabbing":Be.value}]),onMousedown:Ye,onMousemove:Ne,onMouseup:De,onMouseleave:De,onTouchstartPassive:Ye,onTouchmovePassive:Ne,onTouchendPassive:De},null,34)])])):p("",!0)]),_:1})],2)]))],10,z))}}),[["__scopeId","data-v-2bc6ee1a"]]);ie.install=e=>{e.component(ie.__name,ie)};export{ie as default};
|
package/dist/index6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=Object.defineProperty,o=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,r=(o,t,n)=>t in o?e(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,l=(e,l)=>{for(var a in l||(l={}))t.call(l,a)&&r(e,a,l[a]);if(o)for(var a of o(l))n.call(l,a)&&r(e,a,l[a]);return e},a=(e,o,t)=>new Promise((n,r)=>{var l=e=>{try{i(t.next(e))}catch(o){r(o)}},a=e=>{try{i(t.throw(e))}catch(o){r(o)}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(l,a);i((t=t.apply(e,o)).next())});import{defineComponent as i,ref as u,computed as s,watch as d,nextTick as c,onMounted as v,onBeforeUnmount as p,openBlock as m,createElementBlock as f,normalizeClass as g,createElementVNode as y,unref as h,toDisplayString as w,createCommentVNode as b,normalizeStyle as x,withDirectives as k,vShow as B}from"vue";import{b as D,u as C,e as M,h as E,j as A,_ as T}from"./exports.js";const j=["data-markstream-mode"],O={key:0,class:"d2-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)"}},F={class:"flex items-center gap-x-2"},H=["aria-label"],I={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},L={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},N=["aria-label"],P=["aria-pressed"],R={key:0,class:"d2-source px-4 py-4"},S={class:"d2-code"},_={key:0,class:"d2-error mt-2 text-xs"},$={key:1},U={key:0,class:"d2-source px-4 py-4"},V={class:"d2-code"},X={key:0,class:"d2-error mt-2 text-xs"},Y=["innerHTML"],q={key:0,class:"d2-error px-4 pb-3 text-xs"},z=/* @__PURE__ */T(/* @__PURE__ */i({__name:"D2BlockNode",props:{node:{},maxHeight:{default:"500px"},loading:{type:Boolean,default:!0},isDark:{type:Boolean},progressiveRender:{type:Boolean,default:!0},progressiveIntervalMs:{default:700},themeId:{},darkThemeId:{},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0}},setup(e){const o=e,{t}=D(),n=u(!1),r=u(!1),i=u(!1),T=u(!1),z=u(null),G=u(!1),J=u(""),K=u(0),Q=u(null),W=u(null),Z=u(null),ee=C(),oe=u(null),te=u("undefined"==typeof window),ne=s(()=>{var e;return null!=(e=o.node.code)?e:""}),re=s(()=>`${o.isDark?"dark":"light"}:${ne.value}`),le=s(()=>i.value||!T.value||!J.value),ae=s(()=>!!J.value),ie=s(()=>{if(le.value&&W.value)return{minHeight:`${W.value}px`}}),ue=s(()=>{if(o.maxHeight)return{maxHeight:"number"==typeof o.maxHeight?`${o.maxHeight}px`:String(o.maxHeight)}}),se="undefined"!=typeof window;let de=null,ce=!1,ve=!1,pe=0,me=null,fe=!1,ge=null,ye="";"undefined"!=typeof window&&d(()=>Z.value,e=>{var o;if(null==(o=oe.value)||o.destroy(),oe.value=null,!e)return void(te.value=!1);const t=ee(e,{rootMargin:"160px"});oe.value=t,te.value=t.isVisible.value,t.whenVisible.then(()=>{te.value=!0})},{immediate:!0});const he={N1:"#E5E7EB",N2:"#CBD5E1",N3:"#94A3B8",N4:"#64748B",N5:"#475569",N6:"#334155",N7:"#0B1220",B1:"#60A5FA",B2:"#3B82F6",B3:"#2563EB",B4:"#1D4ED8",B5:"#1E40AF",B6:"#111827",AA2:"#22D3EE",AA4:"#0EA5E9",AA5:"#0284C7",AB4:"#FBBF24",AB5:"#F59E0B"};function we(e){return!e||e.disabled}function be(e,t,n="top"){if(we(e.currentTarget))return;const r=e,l=null!=(null==r?void 0:r.clientX)&&null!=(null==r?void 0:r.clientY)?{x:r.clientX,y:r.clientY}:void 0;M(e.currentTarget,t,n,!1,l,o.isDark)}function xe(){E()}function ke(e){if(we(e.currentTarget))return;const r=n.value?t("common.copied")||"Copied":t("common.copy")||"Copy",l=e,a=null!=(null==l?void 0:l.clientX)&&null!=(null==l?void 0:l.clientY)?{x:l.clientX,y:l.clientY}:void 0;M(e.currentTarget,r,"top",!1,a,o.isDark)}function Be(){return a(this,null,function*(){try{const e=ne.value;"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(e)),n.value=!0,setTimeout(()=>{n.value=!1},1e3)}catch(e){console.error("Copy failed:",e)}})}function De(){r.value=!r.value}function Ce(e){i.value="source"===e}const Me=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],Ee=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function Ae(e){if(!e)return"";const o=e.trim();return Ee.test(o)?o:""}function Te(){J.value=""}function je(){return a(this,null,function*(){var e,t,n,r,u;if(!se||ve)return;if(!te.value)return;if(o.loading&&!o.progressiveRender)return;const s=re.value;if(s===ye&&!z.value&&J.value)return T.value=!0,void(o.loading&&(i.value=!1));const d=ne.value;if(!d)return Te(),z.value=null,void(ye="");const c=++K.value;G.value=!0,z.value=null;try{const v=yield function(){return a(this,null,function*(){if(de)return de;const e=yield A();if(!e)return null;if("function"==typeof e){const o=new e;return o&&"function"==typeof o.compile?de=o:"function"==typeof e.compile&&(de=e),de}return(null==e?void 0:e.D2)&&"function"==typeof e.D2?(de=new e.D2,de):("function"==typeof e.compile&&(de=e),de)})}();if(!v)return T.value=!1,i.value=!0,Te(),void(z.value="D2 is not available.");if("function"!=typeof v.compile||"function"!=typeof v.render)throw new TypeError("D2 instance is missing compile/render methods.");T.value=!0;const p=yield v.compile(d);if(c!==K.value)return;const m=null!=(e=null==p?void 0:p.diagram)?e:p,f=null!=(n=null!=(t=null==p?void 0:p.renderOptions)?t:null==p?void 0:p.options)?n:{},g=null!=(r=o.themeId)?r:f.themeID,y=null!=(u=o.darkThemeId)?u:f.darkThemeID,h=l({},f);if(h.themeID=o.isDark&&null!=y?y:g,h.darkThemeID=null,h.darkThemeOverrides=null,o.isDark){const e=f.themeOverrides&&"object"==typeof f.themeOverrides?f.themeOverrides:null;h.themeOverrides=l(l({},he),e||{})}const w=yield v.render(m,h);if(c!==K.value)return;const b=function(e){return e?"string"==typeof e?e:"string"==typeof e.svg?e.svg:"string"==typeof e.data?e.data:"":""}(w);if(!b)throw new Error("D2 render returned empty output.");!function(e){const o=function(e){if("undefined"==typeof window||"undefined"==typeof DOMParser)return"";if(!e)return"";const o=e.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),t=(new DOMParser).parseFromString(o,"image/svg+xml").documentElement;if(!t||"svg"!==t.nodeName.toLowerCase())return"";const n=t;return function(e){const o=/* @__PURE__ */new Set(["script"]),t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){if(o.has(n.tagName.toLowerCase())){n.remove();continue}const e=Array.from(n.attributes);for(const o of e){const e=o.name;if(/^on/i.test(e))n.removeAttribute(e);else{if("style"===e&&o.value){const t=o.value;if(Me.some(e=>e.test(t))){n.removeAttribute(e);continue}}if(("href"===e||"xlink:href"===e)&&o.value){const t=Ae(o.value);if(!t){n.removeAttribute(e);continue}t!==o.value&&n.setAttribute(e,t)}}}}}(n),n.classList.add("markstream-d2-root-svg"),n.outerHTML}(e);J.value=o||""}(b),ye=s,o.loading&&(i.value=!1),z.value=null}catch(v){if(c!==K.value)return;const e=(null==v?void 0:v.message)?String(v.message):"D2 render failed.";o.loading||(z.value=e),ye="",e.includes("@terrastruct/d2")&&(T.value=!1,i.value=!0)}finally{c===K.value&&(G.value=!1,fe&&(fe=!1,Oe()))}})}function Oe(e=!1){if(ce)return;if(!se)return;if(ve)return;if(G.value)return void(fe=!0);const t=Math.max(120,Number(o.progressiveIntervalMs)||0),n=Date.now()-pe;if(!e&&n<t)return fe=!0,void(null==me&&(me=window.setTimeout(()=>{me=null,fe&&(fe=!1,Oe(!0))},Math.max(0,t-n))));ce=!0;const r=()=>{ce=!1,pe=Date.now(),je()};"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(r):setTimeout(r,0)}function Fe(){if(J.value)try{const e=new Blob([J.value],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(e);if("undefined"!=typeof document){const e=document.createElement("a");e.href=o,e.download=`d2-diagram-${Date.now()}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}URL.revokeObjectURL(o)}catch(e){console.error("Failed to export SVG:",e)}}function He(){const e=Q.value;if(!e)return;const o=e.getBoundingClientRect().height;o>0&&(W.value=o)}return d(()=>[o.node.code,o.loading,o.isDark],()=>{Oe()},{immediate:!0}),d(()=>o.loading,(e,o)=>{o&&!e&&Oe(!0)}),d(()=>te.value,e=>{e&&Oe(!0)}),d(()=>[le.value,J.value,ne.value],()=>{c(()=>{He()})}),v(()=>{c(()=>{He()}),"undefined"!=typeof ResizeObserver&&(ge=new ResizeObserver(()=>{He()}),Q.value&&ge.observe(Q.value))}),p(()=>{var e;ve=!0,ye="",null==(e=oe.value)||e.destroy(),oe.value=null,null!=me&&(clearTimeout(me),me=null),null==ge||ge.disconnect(),ge=null}),(e,l)=>(m(),f("div",{ref_key:"viewportTarget",ref:Z,class:g(["d2-block-container my-4 rounded-lg border overflow-hidden shadow-sm",o.isDark?"border-gray-700/30 bg-gray-900 text-gray-100":"border-gray-200 bg-white text-gray-900"]),"data-markstream-d2":"1","data-markstream-mode":le.value?"fallback":"preview"},[o.showHeader?(m(),f("div",O,[l[16]||(l[16]=y("div",{class:"flex items-center gap-x-2"},[y("span",{class:"text-sm font-medium font-mono"},"D2")],-1)),y("div",F,[o.showModeToggle?(m(),f("div",{key:0,class:g(["flex items-center gap-x-1 rounded-md p-0.5",o.isDark?"bg-gray-700":"bg-gray-100"])},[y("button",{type:"button",class:g(["mode-btn px-2 py-1 text-xs rounded",i.value?"":"is-active"]),onClick:l[0]||(l[0]=e=>Ce("preview")),onMouseenter:l[1]||(l[1]=e=>be(e,h(t)("common.preview")||"Preview")),onFocus:l[2]||(l[2]=e=>be(e,h(t)("common.preview")||"Preview")),onMouseleave:xe,onBlur:xe},w(h(t)("common.preview")||"Preview"),35),y("button",{type:"button",class:g(["mode-btn px-2 py-1 text-xs rounded",i.value?"is-active":""]),onClick:l[3]||(l[3]=e=>Ce("source")),onMouseenter:l[4]||(l[4]=e=>be(e,h(t)("common.source")||"Source")),onFocus:l[5]||(l[5]=e=>be(e,h(t)("common.source")||"Source")),onMouseleave:xe,onBlur:xe},w(h(t)("common.source")||"Source"),35)],2)):b("",!0),o.showCopyButton?(m(),f("button",{key:1,type:"button",class:"d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":n.value?h(t)("common.copied")||"Copied":h(t)("common.copy")||"Copy",onClick:Be,onMouseenter:l[6]||(l[6]=e=>ke(e)),onFocus:l[7]||(l[7]=e=>ke(e)),onMouseleave:xe,onBlur:xe},[n.value?(m(),f("svg",L,[...l[13]||(l[13]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(m(),f("svg",I,[...l[12]||(l[12]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,H)):b("",!0),o.showExportButton&&J.value?(m(),f("button",{key:2,type:"button",class:"d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-label":h(t)("common.export")||"Export",onClick:Fe,onMouseenter:l[8]||(l[8]=e=>be(e,h(t)("common.export")||"Export")),onFocus:l[9]||(l[9]=e=>be(e,h(t)("common.export")||"Export")),onMouseleave:xe,onBlur:xe},[...l[14]||(l[14]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v12m0-12l-4 4m4-4l4 4M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"})],-1)])],40,N)):b("",!0),o.showCollapseButton?(m(),f("button",{key:3,type:"button",class:"d2-action-btn p-2 text-xs rounded-md transition-colors hover:bg-[var(--vscode-editor-selectionBackground)]","aria-pressed":r.value,onClick:De,onMouseenter:l[10]||(l[10]=e=>be(e,r.value?h(t)("common.expand")||"Expand":h(t)("common.collapse")||"Collapse")),onFocus:l[11]||(l[11]=e=>be(e,r.value?h(t)("common.expand")||"Expand":h(t)("common.collapse")||"Collapse")),onMouseleave:xe,onBlur:xe},[(m(),f("svg",{style:x({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"w-3 h-3"},[...l[15]||(l[15]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,P)):b("",!0)])])):b("",!0),k(y("div",{ref_key:"bodyRef",ref:Q,class:"d2-block-body",style:x(ie.value)},[o.loading&&!ae.value?(m(),f("div",R,[y("pre",S,[y("code",null,w(ne.value),1)]),z.value?(m(),f("p",_,w(z.value),1)):b("",!0)])):(m(),f("div",$,[le.value?(m(),f("div",U,[y("pre",V,[y("code",null,w(ne.value),1)]),z.value?(m(),f("p",X,w(z.value),1)):b("",!0)])):(m(),f("div",{key:1,class:"d2-render",style:x(ue.value)},[y("div",{class:"d2-svg",innerHTML:J.value},null,8,Y),z.value?(m(),f("p",q,w(z.value),1)):b("",!0)],4))]))],4),[[B,!r.value]])],10,j))}}),[["__scopeId","data-v-90ebc4d2"]]);z.install=e=>{e.component(z.__name,z)};export{z as default};
|
|
1
|
+
var e=Object.defineProperty,o=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable,r=(o,t,n)=>t in o?e(o,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[t]=n,l=(e,l)=>{for(var a in l||(l={}))t.call(l,a)&&r(e,a,l[a]);if(o)for(var a of o(l))n.call(l,a)&&r(e,a,l[a]);return e},a=(e,o,t)=>new Promise((n,r)=>{var l=e=>{try{i(t.next(e))}catch(o){r(o)}},a=e=>{try{i(t.throw(e))}catch(o){r(o)}},i=e=>e.done?n(e.value):Promise.resolve(e.value).then(l,a);i((t=t.apply(e,o)).next())});import{defineComponent as i,ref as u,computed as s,watch as d,nextTick as c,onMounted as v,onBeforeUnmount as m,openBlock as p,createElementBlock as f,normalizeClass as g,createElementVNode as y,unref as h,toDisplayString as w,createCommentVNode as b,normalizeStyle as k,withDirectives as x,vShow as B}from"vue";import{b as D,u as C,e as M,h as E,j as A,_ as T}from"./exports.js";const j=["data-markstream-mode"],O={key:0,class:"d2-block-header flex justify-between items-center border-b"},F={class:"d2-header-actions flex items-center"},H={key:0,class:"d2-mode-toggle flex items-center gap-0.5"},I=["aria-label"],L={key:0,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},N={key:1,xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},P=["aria-label"],R=["aria-pressed"],S={key:0,class:"d2-source"},_={class:"d2-code"},$={key:0,class:"d2-error mt-2 text-xs"},U={key:1},V={key:0,class:"d2-source"},X={class:"d2-code"},Y={key:0,class:"d2-error mt-2 text-xs"},q=["innerHTML"],z={key:0,class:"d2-error px-4 pb-3 text-xs"},G=/* @__PURE__ */T(/* @__PURE__ */i({__name:"D2BlockNode",props:{node:{},maxHeight:{default:void 0},loading:{type:Boolean,default:!0},isDark:{type:Boolean},progressiveRender:{type:Boolean,default:!0},progressiveIntervalMs:{default:700},themeId:{},darkThemeId:{},showHeader:{type:Boolean,default:!0},showModeToggle:{type:Boolean,default:!0},showCopyButton:{type:Boolean,default:!0},showExportButton:{type:Boolean,default:!0},showCollapseButton:{type:Boolean,default:!0}},setup(e){const o=e,{t}=D(),n=u(!1),r=u(!1),i=u(!1),T=u(!1),G=u(null),J=u(!1),K=u(""),Q=u(0),W=u(null),Z=u(null),ee=u(null),oe=C(),te=u(null),ne=u("undefined"==typeof window),re=s(()=>{var e;return null!=(e=o.node.code)?e:""}),le=s(()=>`${o.isDark?"dark":"light"}:${re.value}`),ae=s(()=>i.value||!T.value||!K.value),ie=s(()=>!!K.value),ue=s(()=>{if(ae.value&&Z.value)return{minHeight:`${Z.value}px`}}),se=s(()=>"none"===o.maxHeight?{maxHeight:"none"}:null!=o.maxHeight?{maxHeight:"number"==typeof o.maxHeight?`${o.maxHeight}px`:String(o.maxHeight)}:void 0),de="undefined"!=typeof window;let ce=null,ve=!1,me=!1,pe=0,fe=null,ge=!1,ye=null,he="";"undefined"!=typeof window&&d(()=>ee.value,e=>{var o;if(null==(o=te.value)||o.destroy(),te.value=null,!e)return void(ne.value=!1);const t=oe(e,{rootMargin:"160px"});te.value=t,ne.value=t.isVisible.value,t.whenVisible.then(()=>{ne.value=!0})},{immediate:!0});const we={N1:"#E5E7EB",N2:"#CBD5E1",N3:"#94A3B8",N4:"#64748B",N5:"#475569",N6:"#334155",N7:"#0B1220",B1:"#60A5FA",B2:"#3B82F6",B3:"#2563EB",B4:"#1D4ED8",B5:"#1E40AF",B6:"#111827",AA2:"#22D3EE",AA4:"#0EA5E9",AA5:"#0284C7",AB4:"#FBBF24",AB5:"#F59E0B"};function be(e){return!e||e.disabled}function ke(e,t,n="top"){if(be(e.currentTarget))return;const r=e,l=null!=(null==r?void 0:r.clientX)&&null!=(null==r?void 0:r.clientY)?{x:r.clientX,y:r.clientY}:void 0;M(e.currentTarget,t,n,!1,l,o.isDark)}function xe(){E()}function Be(e){if(be(e.currentTarget))return;const r=n.value?t("common.copied")||"Copied":t("common.copy")||"Copy",l=e,a=null!=(null==l?void 0:l.clientX)&&null!=(null==l?void 0:l.clientY)?{x:l.clientX,y:l.clientY}:void 0;M(e.currentTarget,r,"top",!1,a,o.isDark)}function De(){return a(this,null,function*(){try{const e=re.value;"undefined"!=typeof navigator&&navigator.clipboard&&"function"==typeof navigator.clipboard.writeText&&(yield navigator.clipboard.writeText(e)),n.value=!0,setTimeout(()=>{n.value=!1},1e3)}catch(e){console.error("Copy failed:",e)}})}function Ce(){r.value=!r.value}function Me(e){i.value="source"===e}const Ee=[/javascript:/i,/expression\s*\(/i,/url\s*\(\s*javascript:/i,/@import/i],Ae=/^(?:https?:|mailto:|tel:|#|\/|data:image\/(?:png|gif|jpe?g|webp);)/i;function Te(e){if(!e)return"";const o=e.trim();return Ae.test(o)?o:""}function je(){K.value=""}function Oe(){return a(this,null,function*(){var e,t,n,r,u;if(!de||me)return;if(!ne.value)return;if(o.loading&&!o.progressiveRender)return;const s=le.value;if(s===he&&!G.value&&K.value)return T.value=!0,void(o.loading&&(i.value=!1));const d=re.value;if(!d)return je(),G.value=null,void(he="");const c=++Q.value;J.value=!0,G.value=null;try{const v=yield function(){return a(this,null,function*(){if(ce)return ce;const e=yield A();if(!e)return null;if("function"==typeof e){const o=new e;return o&&"function"==typeof o.compile?ce=o:"function"==typeof e.compile&&(ce=e),ce}return(null==e?void 0:e.D2)&&"function"==typeof e.D2?(ce=new e.D2,ce):("function"==typeof e.compile&&(ce=e),ce)})}();if(!v)return T.value=!1,i.value=!0,je(),void(G.value="D2 is not available.");if("function"!=typeof v.compile||"function"!=typeof v.render)throw new TypeError("D2 instance is missing compile/render methods.");T.value=!0;const m=yield v.compile(d);if(c!==Q.value)return;const p=null!=(e=null==m?void 0:m.diagram)?e:m,f=null!=(n=null!=(t=null==m?void 0:m.renderOptions)?t:null==m?void 0:m.options)?n:{},g=null!=(r=o.themeId)?r:f.themeID,y=null!=(u=o.darkThemeId)?u:f.darkThemeID,h=l({},f);if(h.themeID=o.isDark&&null!=y?y:g,h.darkThemeID=null,h.darkThemeOverrides=null,o.isDark){const e=f.themeOverrides&&"object"==typeof f.themeOverrides?f.themeOverrides:null;h.themeOverrides=l(l({},we),e||{})}const w=yield v.render(p,h);if(c!==Q.value)return;const b=function(e){return e?"string"==typeof e?e:"string"==typeof e.svg?e.svg:"string"==typeof e.data?e.data:"":""}(w);if(!b)throw new Error("D2 render returned empty output.");!function(e){const o=function(e){if("undefined"==typeof window||"undefined"==typeof DOMParser)return"";if(!e)return"";const o=e.replace(/["']\s*javascript:/gi,"#").replace(/\bjavascript:/gi,"#").replace(/["']\s*vbscript:/gi,"#").replace(/\bvbscript:/gi,"#").replace(/\bdata:text\/html/gi,"#"),t=(new DOMParser).parseFromString(o,"image/svg+xml").documentElement;if(!t||"svg"!==t.nodeName.toLowerCase())return"";const n=t;return function(e){const o=/* @__PURE__ */new Set(["script"]),t=[e,...Array.from(e.querySelectorAll("*"))];for(const n of t){if(o.has(n.tagName.toLowerCase())){n.remove();continue}const e=Array.from(n.attributes);for(const o of e){const e=o.name;if(/^on/i.test(e))n.removeAttribute(e);else{if("style"===e&&o.value){const t=o.value;if(Ee.some(e=>e.test(t))){n.removeAttribute(e);continue}}if(("href"===e||"xlink:href"===e)&&o.value){const t=Te(o.value);if(!t){n.removeAttribute(e);continue}t!==o.value&&n.setAttribute(e,t)}}}}}(n),n.classList.add("markstream-d2-root-svg"),n.outerHTML}(e);K.value=o||""}(b),he=s,o.loading&&(i.value=!1),G.value=null}catch(v){if(c!==Q.value)return;const e=(null==v?void 0:v.message)?String(v.message):"D2 render failed.";o.loading||(G.value=e),he="",e.includes("@terrastruct/d2")&&(T.value=!1,i.value=!0)}finally{c===Q.value&&(J.value=!1,ge&&(ge=!1,Fe()))}})}function Fe(e=!1){if(ve)return;if(!de)return;if(me)return;if(J.value)return void(ge=!0);const t=Math.max(120,Number(o.progressiveIntervalMs)||0),n=Date.now()-pe;if(!e&&n<t)return ge=!0,void(null==fe&&(fe=window.setTimeout(()=>{fe=null,ge&&(ge=!1,Fe(!0))},Math.max(0,t-n))));ve=!0;const r=()=>{ve=!1,pe=Date.now(),Oe()};"undefined"!=typeof window&&"function"==typeof window.requestAnimationFrame?window.requestAnimationFrame(r):setTimeout(r,0)}function He(){if(K.value)try{const e=new Blob([K.value],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(e);if("undefined"!=typeof document){const e=document.createElement("a");e.href=o,e.download=`d2-diagram-${Date.now()}.svg`,document.body.appendChild(e),e.click(),document.body.removeChild(e)}URL.revokeObjectURL(o)}catch(e){console.error("Failed to export SVG:",e)}}function Ie(){const e=W.value;if(!e)return;const o=e.getBoundingClientRect().height;o>0&&(Z.value=o)}return d(()=>[o.node.code,o.loading,o.isDark],()=>{Fe()},{immediate:!0}),d(()=>o.loading,(e,o)=>{o&&!e&&Fe(!0)}),d(()=>ne.value,e=>{e&&Fe(!0)}),d(()=>[ae.value,K.value,re.value],()=>{c(()=>{Ie()})}),v(()=>{c(()=>{Ie()}),"undefined"!=typeof ResizeObserver&&(ye=new ResizeObserver(()=>{Ie()}),W.value&&ye.observe(W.value))}),m(()=>{var e;me=!0,he="",null==(e=te.value)||e.destroy(),te.value=null,null!=fe&&(clearTimeout(fe),fe=null),null==ye||ye.disconnect(),ye=null}),(e,l)=>(p(),f("div",{ref_key:"viewportTarget",ref:ee,class:g(["d2-block-container rounded-lg border overflow-hidden",{dark:o.isDark}]),"data-markstream-d2":"1","data-markstream-mode":ae.value?"fallback":"preview"},[o.showHeader?(p(),f("div",O,[l[16]||(l[16]=y("div",{class:"flex items-center gap-x-2"},[y("span",{class:"d2-label font-medium font-mono"},"D2")],-1)),y("div",F,[o.showModeToggle?(p(),f("div",H,[y("button",{type:"button",class:g(["mode-btn px-2 py-0.5 rounded",i.value?"":"is-active"]),onClick:l[0]||(l[0]=e=>Me("preview")),onMouseenter:l[1]||(l[1]=e=>ke(e,h(t)("common.preview")||"Preview")),onFocus:l[2]||(l[2]=e=>ke(e,h(t)("common.preview")||"Preview")),onMouseleave:xe,onBlur:xe},w(h(t)("common.preview")||"Preview"),35),y("button",{type:"button",class:g(["mode-btn px-2 py-0.5 rounded",i.value?"is-active":""]),onClick:l[3]||(l[3]=e=>Me("source")),onMouseenter:l[4]||(l[4]=e=>ke(e,h(t)("common.source")||"Source")),onFocus:l[5]||(l[5]=e=>ke(e,h(t)("common.source")||"Source")),onMouseleave:xe,onBlur:xe},w(h(t)("common.source")||"Source"),35)])):b("",!0),o.showCopyButton?(p(),f("button",{key:1,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-label":n.value?h(t)("common.copied")||"Copied":h(t)("common.copy")||"Copy",onClick:De,onMouseenter:l[6]||(l[6]=e=>Be(e)),onFocus:l[7]||(l[7]=e=>Be(e)),onMouseleave:xe,onBlur:xe},[n.value?(p(),f("svg",N,[...l[13]||(l[13]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M20 6L9 17l-5-5"},null,-1)])])):(p(),f("svg",L,[...l[12]||(l[12]=[y("g",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2"},[y("rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2"}),y("path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"})],-1)])]))],40,I)):b("",!0),o.showExportButton&&K.value?(p(),f("button",{key:2,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-label":h(t)("common.export")||"Export",onClick:He,onMouseenter:l[8]||(l[8]=e=>ke(e,h(t)("common.export")||"Export")),onFocus:l[9]||(l[9]=e=>ke(e,h(t)("common.export")||"Export")),onMouseleave:xe,onBlur:xe},[...l[14]||(l[14]=[y("svg",{xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 3v12m0-12l-4 4m4-4l4 4M4 14v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4"})],-1)])],40,P)):b("",!0),o.showCollapseButton?(p(),f("button",{key:3,type:"button",class:"d2-action-btn p-[var(--ms-action-btn-padding)] rounded-md","aria-pressed":r.value,onClick:Ce,onMouseenter:l[10]||(l[10]=e=>ke(e,r.value?h(t)("common.expand")||"Expand":h(t)("common.collapse")||"Collapse")),onFocus:l[11]||(l[11]=e=>ke(e,r.value?h(t)("common.expand")||"Expand":h(t)("common.collapse")||"Collapse")),onMouseleave:xe,onBlur:xe},[(p(),f("svg",{style:k({rotate:r.value?"0deg":"90deg"}),xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"img",width:"1em",height:"1em",viewBox:"0 0 24 24",class:"action-icon"},[...l[15]||(l[15]=[y("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"m9 18l6-6l-6-6"},null,-1)])],4))],40,R)):b("",!0)])])):b("",!0),x(y("div",{ref_key:"bodyRef",ref:W,class:"d2-block-body",style:k(ue.value)},[o.loading&&!ie.value?(p(),f("div",S,[y("pre",_,[y("code",null,w(re.value),1)]),G.value?(p(),f("p",$,w(G.value),1)):b("",!0)])):(p(),f("div",U,[ae.value?(p(),f("div",V,[y("pre",X,[y("code",null,w(re.value),1)]),G.value?(p(),f("p",Y,w(G.value),1)):b("",!0)])):(p(),f("div",{key:1,class:"d2-render",style:k(se.value)},[y("div",{class:"d2-svg",innerHTML:K.value},null,8,q),G.value?(p(),f("p",z,w(G.value),1)):b("",!0)],4))]))],4),[[B,!r.value]])],10,j))}}),[["__scopeId","data-v-9be36d9c"]]);G.install=e=>{e.component(G.__name,G)};export{G as default};
|
package/dist/tailwind.ts
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markstream-vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"description": "Streaming-friendly Vue 3 Markdown renderer for docs sites, AI chat UIs, and large documents.",
|
|
6
6
|
"author": "Simon He",
|
|
7
7
|
"license": "MIT",
|
|
@@ -180,6 +180,7 @@
|
|
|
180
180
|
"lint-staged": "^13.3.0",
|
|
181
181
|
"lz-string": "^1.5.0",
|
|
182
182
|
"markdown-it-emoji": "^3.0.0",
|
|
183
|
+
"material-icon-theme": "^5.33.1",
|
|
183
184
|
"picocolors": "^1.1.1",
|
|
184
185
|
"playwright-core": "^1.59.0",
|
|
185
186
|
"postcss-cli": "^11.0.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const a='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<defs><linearGradient id="SVGMV3iTbAN" x1="185.455" x2="181.955" y1="1601.641" y2="1630.224" gradientTransform="translate(-62.523 -666.646)scale(.427)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff"/><stop offset="1" stop-color="#fff" stop-opacity="0"/></linearGradient><linearGradient id="SVGniw2Mvsa" x1="176.136" x2="172.636" y1="1600.5" y2="1629.083" href="#SVGMV3iTbAN"/></defs><path fill="#b03931" d="m3.978 15.462l-.009-6.953a.59.59 0 0 1 .531-.562h.076l6.074-.009a15.7 15.7 0 0 1 6.067.95a8.9 8.9 0 0 1 2.244 1.359a4.47 4.47 0 0 1 2.946-1.083a4.11 4.11 0 0 1 4.276 3.92A4.11 4.11 0 0 1 21.907 17c-.089 0-.177-.008-.265-.012a7 7 0 0 1-.232.953a85 85 0 0 1 8.59 2.6V2H2v13.4q.992.02 1.978.062m22.8-7.944a1.32 1.32 0 0 1 1.374 1.259a1.379 1.379 0 0 1-2.747 0a1.32 1.32 0 0 1 1.375-1.26Z"/><path fill="#b03931" d="M17.861 15.787a4.11 4.11 0 0 0-1.748-3.458a5.8 5.8 0 0 0-1.508-.822a7.4 7.4 0 0 0-1.629-.438a22 22 0 0 0-2.588-.1H7.769l.006 4.737a89 89 0 0 1 9.91 1.408a5 5 0 0 0 .176-1.327m3.132 3.192a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035"/><path fill="url(#SVGMV3iTbAN)" d="M20.993 18.979a7.9 7.9 0 0 1-2.128 2.582a9.7 9.7 0 0 1-3.256 1.71a11.6 11.6 0 0 1-1.971.472h-.015a32 32 0 0 1-3.326.111l-5.625.022a.616.616 0 0 1-.686-.681l-.01-7.734Q2.992 15.42 2 15.4V30h28v-9.456a85 85 0 0 0-8.59-2.6a7 7 0 0 1-.417 1.035" opacity=".3"/><path fill="#b03931" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z"/><path fill="url(#SVGniw2Mvsa)" d="M10.477 20.835a16 16 0 0 0 2.877-.2a7.6 7.6 0 0 0 1.628-.5a5.6 5.6 0 0 0 1.187-.748a4.46 4.46 0 0 0 1.518-2.271a89 89 0 0 0-9.91-1.408l.006 5.133Z" opacity=".3"/><path fill="#fff" d="M20.383 11.746a7 7 0 0 1 1.36 4.148a6.6 6.6 0 0 1-.1 1.1c.088 0 .176.012.265.012a4.11 4.11 0 0 0 4.276-3.92a4.11 4.11 0 0 0-4.276-3.92a4.47 4.47 0 0 0-2.946 1.083a8 8 0 0 1 1.421 1.497"/><ellipse cx="26.78" cy="8.777" fill="#fff" rx="1.374" ry="1.259"/><path fill="#fff" d="m4.673 23.877l5.625-.022a32 32 0 0 0 3.326-.111h.015a11.5 11.5 0 0 0 1.971-.472a9.7 9.7 0 0 0 3.256-1.71a7.9 7.9 0 0 0 2.128-2.582a7 7 0 0 0 .417-1.034a7 7 0 0 0 .332-2.051a7 7 0 0 0-1.36-4.148a8 8 0 0 0-1.421-1.5a8.9 8.9 0 0 0-2.244-1.359a15.7 15.7 0 0 0-6.067-.95l-6.074.009h-.076a.59.59 0 0 0-.532.562l.009 6.952l.01 7.734a.616.616 0 0 0 .685.682m3.1-12.908h2.619a22 22 0 0 1 2.588.1a7.4 7.4 0 0 1 1.629.438a5.8 5.8 0 0 1 1.508.822a4.12 4.12 0 0 1 1.748 3.458a5 5 0 0 1-.175 1.327a4.46 4.46 0 0 1-1.518 2.271a5.6 5.6 0 0 1-1.187.748a7.7 7.7 0 0 1-1.628.5a16 16 0 0 1-2.877.2H7.786L7.78 15.7Z"/></svg>',n={ada:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#0f23c3" d="M24.554 20.075c.209.27 1.356.961 1.37 1.246a7 7 0 0 0-1.4-.324a17 17 0 0 1-1.412-.48a9.2 9.2 0 0 1-2.375-1.3A3.15 3.15 0 0 1 19.3 16.75a1.72 1.72 0 0 1 1.767-1.822a3.6 3.6 0 0 1 1.593.321c.146.066 1.31.606 1.256.809a5.5 5.5 0 0 0-1.41-.112c-.649.244-.4.828-.168 1.311a8 8 0 0 0 1.078 1.554c.164.194.884 1.271 1.138 1.264"/><path fill="#1a1978" d="M24.141 16.276c.128-.59.819-1.384 1.344-.773a4.2 4.2 0 0 1 .578 1.918c.12.656.2 1.327.261 1.982c.038.379.34 1.794.123 2.075a23 23 0 0 1-2.922-2.838a3.76 3.76 0 0 1-.925-1.7c-.1-1.073.879-.73 1.541-.664"/><path fill="#0f23c3" d="M26.3 17.781c.141-.732-.406-2.592-1.067-2.949a.06.06 0 0 0 .044-.007c-.156-.444-1.359 1.116-1.228 1.174c-.316-.138.774-1.984.988-2.16c.7-.578 1.372-.086 1.845.543a6.04 6.04 0 0 1 .733 4.434a4.5 4.5 0 0 1-.421 1.312c-.1.22-.45 1.1-.682 1.174a14.8 14.8 0 0 0-.212-3.521"/><path fill="#d2d2d2" d="M3.687 8.4c.179-.188-.041-1.527.324-1.548c.262-.015.553 1.741.627 1.968a9.2 9.2 0 0 0 1.127 2.329a7.53 7.53 0 0 0 4.016 2.978a4.55 4.55 0 0 0 2.366.2c.931-.208 1.82-.577 2.757-.765c1.35-.27 3.342-.352 4.438.647c.7.641.376.76.043 1.421a2.44 2.44 0 0 0 .178 2.562c.235.342 1.033.827.675 1.094c-.567.424-1.277-.452-1.636-.776c-1.4-1.264-2.711-1.313-4.492-1.074a9 9 0 0 1-4.883-.708A9.47 9.47 0 0 1 3.687 8.4M19.941 30a3.6 3.6 0 0 1-2.325-.817c.469-.092 1.021.025 1.508-.044a9.7 9.7 0 0 0 1.754-.43a10.5 10.5 0 0 0 3.022-1.554a6.55 6.55 0 0 0 2.757-5.214c.149-.088.316 1.034.319 1.091a5.8 5.8 0 0 1-.19 1.727a6.9 6.9 0 0 1-1.423 2.774A7.3 7.3 0 0 1 19.941 30"/><path fill="#d2d2d2" d="M18.962 19.109a5.8 5.8 0 0 1-2.05.859a13.4 13.4 0 0 1-2.224.549a8.86 8.86 0 0 1-4.435-.51a9.94 9.94 0 0 1-3.849-2.4c-.352-.367-2.104-2.417-1.548-3.05c.248-.282.875.846 1 .992a5 5 0 0 0 1.357 1.11a10.9 10.9 0 0 0 4.035 1.456a6.7 6.7 0 0 0 2.34-.094a13 13 0 0 1 1.694-.485a4 4 0 0 1 2.113.457c.344.17 1.523.743 1.567 1.116m9.351-4.031a19.3 19.3 0 0 1-.453 3.774c-.176-.242.016-1.47 0-1.792a6 6 0 0 0-.384-2.087a4.9 4.9 0 0 0-1.376-1.661a15 15 0 0 1-1.27-1.536c-1.837-2.382-3.245-5.211-2.9-8.3c.034-.308.069-1.448.411-1.445c.152 0 .266 1.561.29 1.718a12.5 12.5 0 0 0 1.224 4.116c.67 1.222 1.947 2.023 2.825 3.1a6.58 6.58 0 0 1 1.633 4.113M15.7 26.935a10.85 10.85 0 0 0 6.436-.687a6.94 6.94 0 0 0 4.278-4.418c.319.2-.048 1.529-.128 1.781a5.7 5.7 0 0 1-1.01 1.813a8.9 8.9 0 0 1-3.257 2.514c-1.703.772-5.662 1.652-6.319-1.003"/><path fill="#d2d2d2" d="M19.151 19.376c.367 2.107-2.957 3.124-4.478 3.213c-1.859.11-4.929-.292-6.06-2.031c-.673-1.035.781-.09 1.188.058a8.7 8.7 0 0 0 3.06.5a11.6 11.6 0 0 0 3.305-.5a14 14 0 0 0 1.533-.576c.301-.132 1.124-.691 1.452-.664m4.991 4.084c.4-.945-1.883-1.578-2.445-1.858a4.9 4.9 0 0 1-1.315-.867c-.181-.181-.872-.92-.807-1.219a5 5 0 0 1 1.087-.175a6 6 0 0 1 .855.588a10 10 0 0 0 .964.5a16 16 0 0 0 2.119.771c.308.09 1.549.208 1.727.428c-.04.296-1.97 2.021-2.185 1.832"/><path fill="#d2d2d2" d="M26.1 22.172c.265.43-1.08 1.831-1.363 2.105a9.3 9.3 0 0 1-2.566 1.728a7.8 7.8 0 0 1-2.56.753c-.679.058-1.966-.124-2.141-.979a7 7 0 0 1 1.177-.086c.462-.059.921-.149 1.376-.246a13 13 0 0 0 2.184-.645a11.5 11.5 0 0 0 2.084-1.11a11 11 0 0 0 1.078-.822c.105-.089.617-.702.731-.698m-7.342-10.207c-.1-1.308 2.612-1.3 3.271-1.092a5.98 5.98 0 0 1 2.982 2.475c-1.082.8-2.449.094-3.3-.654a4.3 4.3 0 0 0-1.481-1.029c-.809-.265-.818.094-1.472.3"/><path fill="#d2d2d2" d="M25.783 13.341c-.444-.029-.316.071-.647-.212c-.358-.307-.614-.795-.945-1.141c-.534-.558-1.242-.895-1.723-1.485a7.27 7.27 0 0 1-1.624-4.848c.018-1.489.407.187.551.675a12.3 12.3 0 0 0 1.126 2.708a46 46 0 0 0 3.4 4.321c-.039.002-.097-.021-.138-.018m-5.715 1.415c.033-.625-.911-.792-1.211-1.42c-.164-.343-.211-.569.029-.7c.082-.045.383.012.5-.02c.271-.076.335-.273.581-.4a1.193 1.193 0 0 1 1.633 1.021a1.82 1.82 0 0 1-1.532 1.519"/><path fill="#d2d2d2" d="M20.5 14.745a1.93 1.93 0 0 0 1.323-1.7c.524.139.928.658 1.521.771a2.6 2.6 0 0 0 1.029-.017c.207-.045.54-.274.721-.259c-.033.163-.464.546-.565.717a4.2 4.2 0 0 0-.388.9c-.229.741-.061.739-.709.311a4.3 4.3 0 0 0-1.957-.72c-.266-.026-.881.019-.975-.003m-.595 5.989a2.01 2.01 0 0 1-1.4 1.712c-.205.091-2.018.733-2.032.348c-.007-.2 1.624-.954 1.809-1.11a3.4 3.4 0 0 0 .867-1.071c.055-.112.232-.925.271-.943c.224-.106.488.93.485 1.064m-8.532-8.202a10.6 10.6 0 0 1 3.71-.914a10.3 10.3 0 0 1 1.865.024c.366.039 1.469.054 1.74.343a.255.255 0 0 1-.273.173c-.037.077.251.371.3.425c-.034.034-1.445-.4-1.572-.424a10.6 10.6 0 0 0-2.282-.134a16 16 0 0 0-1.841.194a6.2 6.2 0 0 1-1.647.313m11.139-1.801a1.89 1.89 0 0 1-1.517-.6c-.247-.349-.737-1.692-.385-2.021c.209-.2.384.662.484.846a11 11 0 0 0 1.418 1.775m5.276 8.469a19 19 0 0 1-.749 3.313c-.173-.077-.275-.778-.562-.95a4.1 4.1 0 0 0 .76-1.154c.152-.302.303-1.046.551-1.209m-7.807-7.357c-.132.268-.932 1.1-1.118.481c-.107-.356.876-.841 1.118-.481m-.747.45c.228.006.012-.248.012-.266c-.001-.043-.368.266-.012.266"/></svg>',applescript:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M14.4561802 11.3673353C13.0276218 14.1261537 11.8858593 15.5 10.8437759 15.5 10.3588459 15.5 9.88231005 15.3491298 9.41749082 15.0543006 8.74000639 14.6241577 7.8668418 14.6059458 7.17068967 15.0074382 6.60881451 15.3319356 6.07177167 15.5 5.56305868 15.5 4.02887542 15.5 1.5 10.9491129 1.5 8.45090396 1.5 5.78581061 2.95006811 3.551507 5.15647301 3.551507 6.19383481 3.551507 7.09007204 4.20001691 7.84308619 4.497206 8.16210316 4.62512517 8.52255587 4.61592787 8.83410596 4.47192 9.44477141 4.18872223 10.2497236 3.551507 11.2503615 3.551507 12.4715175 3.551507 13.5338865 4.33779342 14.4184071 5.47479877 14.5532906 5.64778615 14.5172013 5.89341518 14.3377895 6.02349446 13.3500923 6.736546 12.8746057 7.53893969 12.8746057 8.45090396 12.8746057 9.36404821 13.3502672 10.1652619 14.3377895 10.8793249 14.4946576 10.992887 14.5445377 11.1984946 14.4561802 11.3673353ZM8.5 3C8.5 3 8.3468635 1.3936039 10 1" />\n</svg>\n',assembly:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <rect width="8" height="13.001" x="4" y="1.499" fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" rx="2.286" ry="2.286" />\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="M 4,4.500025 H 1.5 M 4,7.9999993 H 1.5 M 4,11.499973 H 1.5 m 13,-6.999948 H 12 m 2.5,3.4999743 H 12 m 2.5,3.4999737 H 12" />\n</svg>\n',clojure:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M14.17 10.03A6.5 6.5 0 011.81 6.02" />\n <path stroke="#8caaee" d="M1.87 5.85A6.5 6.5 0 0114.22 9.9" />\n <path stroke="#a6d189" d="M6.36 4.9a3.5 3.5 0 103.41 6.12" />\n <path stroke="#8caaee" d="M9.77 11.02a3.5 3.5 0 00-3.03-6.29" />\n <path stroke="#c6d0f5" d="M8 7.5s-1.66 2.48-1.5 3.65" />\n <path stroke="#c6d0f5" d="M1.81 6.02C2.47 5 3.83 4.49 5 4.46c4.06 0 3 5.56 5.03 6.86 1.21.52 3.5-.21 4.15-1.32" />\n </g>\n</svg>\n',cobol:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M6.74 2.24c.32-1.32 2.2-1.32 2.52 0a1.3 1.3 0 001.93.8c1.15-.7 2.48.62 1.77 1.77a1.3 1.3 0 00.8 1.93c1.32.32 1.32 2.2 0 2.52a1.3 1.3 0 00-.8 1.93c.7 1.15-.62 2.48-1.77 1.77a1.3 1.3 0 00-1.93.8c-.32 1.32-2.2 1.32-2.52 0a1.3 1.3 0 00-1.93-.8c-1.15.7-2.48-.62-1.77-1.77a1.3 1.3 0 00-.8-1.93c-1.32-.32-1.32-2.2 0-2.52a1.3 1.3 0 00.8-1.93c-.7-1.15.62-2.48 1.77-1.77a1.3 1.3 0 001.93-.8M10 6.5a2.5 2.5 0 100 3" />\n</svg>\n',crystal:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#c6d0f5" stroke-linecap="round" stroke-linejoin="round" d="m 15.4712,10.050637 -5.433601,5.433968 c -0.015,0.01505 -0.04554,0.01505 -0.09055,0.01505 L 2.536327,13.517264 c -0.015,0 -0.04501,-0.01505 -0.06055,-0.06072 L 0.50026325,6.0396501 a 0.21432208,0.21495127 0 0 1 0.015,-0.090817 L 5.9483283,0.5154023 c 0.015,-0.0150465 0.04501,-0.0150465 0.09055,-0.0150465 l 7.4101857,1.997972 c 0.015,0 0.04501,0.015046 0.06055,0.060724 l 1.977121,7.4158186 c 0.03001,0.03063 0.01608,0.060724 -0.01554,0.07577 M 8.2121063,4.1480782 0.93801425,6.1154197 q -0.0225,0 0,0.04514 L 6.2655263,11.50371 c 0.015,0.01505 0.015,0 0.04501,0 l 1.962119,-7.2803988 c -0.03054,-0.075233 -0.06055,-0.075233 -0.06055,-0.075233" />\n</svg>\n',d:a,dart:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M7 14.5h4.5v-3h3V7L9.17 1.64c-.28-.29-.8-.47-1.17-.29L3.5 3.5 1.35 8c-.18.37 0 .88.3 1.17z" />\n <path d="M3.5 11V3.5H11m-7.5 0 8 8" />\n </g>\n</svg>\n',dlang:a,dockerfile:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M.5 8.5H11l.75-.5a5.35 5.35 0 010-3.5c1 .6 1 1.88 1.74 2 .77-.09 1.23.01 2 .52 0 0-.97 1.77-2.5 1.98-1.93 3.65-4.5 5.5-6.98 5.5C0 14.5.5 8.5.5 8.5m1 0v-2m0 0h8m-6 2v-4m0 0h4m-2-2h2m-2 6v-6m2 6v-6m2 6v-2" />\n</svg>\n',elixir:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M8.03 14.5C5 14.5 3.5 12.49 3.5 10.01c0-2.82 2.25-7.02 4.62-8.48a.24.24 0 01.24 0c.08.04.12.12.11.2-.13 1.25.22 2.5.98 3.54.3.43.63.8 1.02 1.27.54.66.94 1.03 1.52 2.08l.01.02c.33.56.5 1.2.5 1.84 0 2.03-1.69 4.02-4.47 4.02" />\n</svg>\n',erlang:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M6.5 5.5c0-1.25 1-2 2-2s2 .75 2 2z" />\n <path d="M13.5 13c.47-.57 1.12-1.24 1.5-2l-2.25-1.25c-.74 1.36-1.76 2.75-3.25 2.75-2.1 0-3-2.3-3-5h8c.05-1.61-.31-3.45-1-4.5M3 13c-1.08-1.3-1.5-3-1.5-5S2.1 4.24 3 3" />\n </g>\n</svg>\n',fortran:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M7.5 14.5v-1l-1-1v-3h2l1 2h1v-6h-1l-1 2h-2v-4h5l1 3h1v-5h-11v1l1 1v9l-1 1.25v.75z" />\n</svg>\n',groovy:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#85c1dc" stroke-linecap="round" stroke-linejoin="round">\n <path d="M11.68 5.38c.4.19.54.68 1.53 3.25 1 2.57-.92 4.07-.92 4.07s-6.73 2.47-6.73 1.63c-.18-.92-1.92-2.08-1.92-2.08s-.52-.63.06-.75c5.89-1.27 6.96-.61 7.3-2" />\n <path d="M7.38 10.63C2.62 10.88 2.48 8.08 2.5 8 3.6 4.6 9.24.91 10.8 1.58 14.07 3.04 9.2 8.96 7 8.5c-4.02-.83 1.5-4 1.5-4" />\n </g>\n</svg>\n',haskell:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="M12.5 4.5h3m-1.5 3h1.5m-10 6 2.5-5-2.5-5H8l5.6 10h-2.53l-1.52-2.92L8 13.5zm-5 0 2.5-5-2.5-5H3l2.5 5-2.5 5z" />\n</svg>\n',julia:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#a6d189" d="M10.5 5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#e78284" d="M6.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n <path stroke="#ca9ee6" d="M14.5 11a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0" />\n </g>\n</svg>\n',lisp:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round">\n <path d="M.5 5.06v6.07C.5 12.41.82 13 2.27 13h5.6c1.04 0 1.63-.51 1.63-1.62 0-.85-.2-1.88-1.5-1.88h-.36C6.4 9.5 6 8.77 6 7.75 6 6.81 6.8 6 7.49 6h2.68" />\n <path d="M3.5 10.5V4.99C3.5 3.89 3.62 3 5 3h9c.97 0 1.5.99 1.5 1.63.12 1.55-.98 1.62-2.1 2.16-.58.26-1.4.52-1.4.98V11" />\n </g>\n</svg>\n',lua:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#c6d0f5" d="M10.5 7A1.5 1.5 0 019 8.5 1.5 1.5 0 017.5 7 1.5 1.5 0 019 5.5 1.5 1.5 0 0110.5 7" />\n <path stroke="#8caaee" d="M7 2.5a6.5 6.5 0 100 13 6.5 6.5 0 000-13m7-2a1.5 1.5 0 100 3 1.5 1.5 0 000-3" />\n </g>\n</svg>\n',matlab:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#85c1dc" d="M4 11 .5 8.5 5 7q.78-1.77 1.89-1.89c.74-.07 1.94-1.28 3.61-3.61M5 7l1.5 1.5" />\n <path stroke="#ef9f76" d="m15.5 12.5-5-11C8.5 6.83 6.33 10 4 11c1.67-.33 2.67.83 3 3.5 3.5-1.5 3.5-3.5 5-4s1.5 1.5 3.5 2" />\n </g>\n</svg>\n',nim:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e5c890" stroke-linecap="round" stroke-linejoin="round" d="M1 7 .5 4.5l1.01.67c.28-.27.47-.48 1.18-.85l.56-1.82L4.5 3.84c.77-.18 1.53-.36 2.4-.33L8 1.5l1.1 2.01c.87-.03 1.63.15 2.4.33l1.25-1.34.56 1.82c.7.37.9.58 1.18.85l1.01-.67L15 7m-1.5 1C13 6.5 11 5.5 8 5.5S3 6.5 2.5 8m11.5.75L13.5 8l-1 1.5-1.5.5-3-1.5L5 10l-1.5-.5-1-1.5-.5.75L1 7l1.25 3.75C3 12.75 6 13.5 8 13.5s5-.75 5.75-2.75L15 7z" />\n</svg>\n',objectivec:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M11.29 15.976a8.9 8.9 0 0 0 1.039 4.557a4.82 4.82 0 0 0 5.579 2.13a3.79 3.79 0 0 0 2.734-3.181c.095-.535.1-.54.1-.54c1.537.222 4.014.582 5.55.8l-.1.389A9.96 9.96 0 0 1 23.8 24.9a8.35 8.35 0 0 1-4.747 2.378a12.93 12.93 0 0 1-7.322-.725a8.98 8.98 0 0 1-5.106-5.524A14.35 14.35 0 0 1 6.642 10.9a9.32 9.32 0 0 1 7.929-6.24a11.8 11.8 0 0 1 5.9.491a8.47 8.47 0 0 1 5.456 6.1c.083.311.1.369.1.369c-1.709.311-3.821.705-5.518 1.075c-.323-1.695-1.122-3.029-2.831-3.445a4.656 4.656 0 0 0-5.853 3.158a9 9 0 0 0-.341 1.273a11 11 0 0 0-.194 2.295"/><path fill="#c2c2c2" d="M2.033 30V2h5.934v2.227H4.723v23.546h3.244V30zm27.934-.001h-5.934v-2.228h3.244V4.226h-3.244V1.999h5.934z"/></svg>',objectivecpp:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#c2c2c2" d="M19.5 24.833a11.24 11.24 0 0 1-5.13 1.009a8.37 8.37 0 0 1-6.492-2.576A9.75 9.75 0 0 1 5.512 16.4a10.4 10.4 0 0 1 2.659-7.406a9.02 9.02 0 0 1 6.9-2.841a12.2 12.2 0 0 1 4.43.7v4.129a7.5 7.5 0 0 0-4.108-1.142a5.28 5.28 0 0 0-4.075 1.685A6.48 6.48 0 0 0 9.766 16.1a6.37 6.37 0 0 0 1.464 4.4a5.02 5.02 0 0 0 3.941 1.639a8.03 8.03 0 0 0 4.329-1.223Z"/><path fill="#c2c2c2" d="M16.572 15.081V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zm6.44 0V13.24h1.841v1.841h1.84v1.84h-1.84v1.841h-1.841v-1.841h-1.839V15.08zM2.035 30V2.001h5.933v2.227H4.725v23.545h3.243V30z"/><path fill="#c2c2c2" d="M29.965 29.999h-5.933v-2.228h3.243V4.227h-3.243V2h5.933z"/></svg>',ocaml:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round">\n <path d="M1.5 8V3c0-.83.67-1.5 1.5-1.5h10c.83 0 1.5.67 1.5 1.5v10c0 .83-.67 1.5-1.5 1.5H9" />\n <path d="m1.5 8 1.14-2.3q.09-.21.36-.24a.8.8 0 01.44.13c.18.12.23.53.28.64.06.1.64 1.23.85 1.23.2 0 .71-1.47.71-1.47s.37-.49.72-.49.55.32.67.49c.12.16.24 1.76.46 2.01s1.32.87 1.67.73c.34-.13.53-.4.63-.73.1-.34-.14-.75 0-1a1.1 1.1 0 011.02-.55c.56.03 2.05.56 2.05 1.05q0 .75-1.5.75c-.48 1.33.28 2.22-3 2.25l1 4" />\n <path d="m4.5 14.5 1.5-4 1 4zm-2 0 1.5-4-1.5-.5-1 1.54V14l1 .49Z" />\n </g>\n</svg>\n',perl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#8caaee" stroke-linecap="round" stroke-linejoin="round" d="M12.5 14.5v-3.34c-1-.66-1-1.35-1-2.66m-3 1 .02 2.53.98 2.47m-4-5v5m9 0V9.23s.17-1.73-1-1.73c0-1.5-.5-6-2.5-6S8.75 4.25 8.75 4.25A3.67 3.67 0 006.5 7.12v-3.5c0-.63-.85-1.32-1.5-1.32-.92 0-1.33.59-1.5 1.2H2.25c-.42.11-.75.59-.75 1 0 .5.28 1 .75 1h1.22l.02 3c.01.75.51 1 1.51 1h4.5" />\n</svg>\n',prolog:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M4.5 13.5c-.33.33-.5.67-.5 1s.17.67.5 1c.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.83.5-1.5h2c0 .67.17 1.17.5 1.5.17-.67.5-1 1-1s.83.33 1 1c.33-.33.5-.67.5-1s-.17-.67-.5-1l1-1 1.25 1.25c0-2.75 1-2.75 1-5.75a7.1 7.1 0 00-2-5.25A3.64 3.64 0 0113 .5c-1.17 0-2 .42-2.5 1.25A3.08 3.08 0 008 .5c-1 0-1.83.42-2.5 1.25C5 .92 4.17.5 3 .5c.5.83.58 1.58.25 2.25a7.1 7.1 0 00-2 5.25c0 3 1 3 1 5.75L3.5 12.5zm6-5a2 2 0 100-4 2 2 0 000 4m-5 0a2 2 0 100-4 2 2 0 000 4M7 8l1 2.5L9 8m1.5-1.5" />\n</svg>\n',r:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <g fill="none" stroke-linecap="round" stroke-linejoin="round">\n <path stroke="#838ba7" d="M13.5 9.5c.63-.7 1-1.54 1-2.43 0-2.52-2.91-4.57-6.5-4.57S1.5 4.55 1.5 7.07c0 1.9 1.65 3.53 4 4.22" />\n <path stroke="#8caaee" d="M10.5 9.5c.4 0 .86.34 1 .7l1 3.3m-5 0v-8h3.05c.95 0 1.95 1 1.95 2s-1 2-1.95 2H7.5Z" />\n </g>\n</svg>\n',scala:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#e78284" stroke-linecap="round" stroke-linejoin="round" d="m2.5 2.48 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1zm0 5 11-.98v3.04l-11 1z" />\n</svg>\n',solidity:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m3 11.5 2.5 4 2.5-4 2.5 4 2.5-4-2.5-4-2.5 4m2.5 4h-5m7.5-4H3m10-7-2.5-4-2.5 4-2.5-4-2.5 4 2.5 4 2.5-4M5.5.5h5M3 4.5h10" />\n</svg>\n',svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="m4.54 10 6.92-4m-6.92 4a1.5 1.5 0 10-2.6 1.5 1.5 1.5 0 002.6-1.5M8 4v8m0-8a1.5 1.5 0 100-3 1.5 1.5 0 000 3M4.54 6l6.92 4M4.54 6a1.5 1.5 0 10-2.6-1.5A1.5 1.5 0 004.54 6M8 12a1.5 1.5 0 100 3 1.5 1.5 0 000-3m3.46-2a1.5 1.5 0 102.6 1.5 1.5 1.5 0 00-2.6-1.5m0-4a1.5 1.5 0 102.6-1.5 1.5 1.5 0 00-2.6 1.5" />\n</svg>\n',swift:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ef9f76" stroke-linecap="round" stroke-linejoin="round" d="M14.34 10.2c.34-1.08 1.1-5.07-4.45-8.62a.48.48 0 00-.6.07.44.44 0 00-.02.6c.03.02 2.07 2.5 1.34 5.34-1.26-.86-6.24-4.81-6.24-4.81L7.25 7.5 1.9 4.05S5.68 8.7 8 10.45c-1.12.4-3.56.82-6.78-1.18a.48.48 0 00-.58.06.44.44 0 00-.08.56c.11.18 2.7 4.36 8.14 4.36 1.5 0 2.37-.42 3.08-.77.43-.2.77-.37 1.14-.37.93 0 1.54.92 1.54.93.1.14.27.22.44.21a.46.46 0 00.4-.28c.67-1.55-.49-3.2-.96-3.78h0Z" />\n</svg>\n',terraform:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16">\n <path fill="none" stroke="#ca9ee6" stroke-linecap="round" stroke-linejoin="round" d="m1.5 6 8 4.25 4-2.25m-12-2V1.5l8 4.25 4-2.25V8m-4-2.25v8.75M5.53 3.82 5.5 12.5l4 2" />\n</svg>\n',"vb.net":'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" width="16" height="16">\x3c!-- Icon from VSCode Icons by Roberto Huertas - https://github.com/vscode-icons/vscode-icons/blob/master/LICENSE --\x3e<path fill="#00519a" d="M6.67 7.836L9 18.915l2.336-11.079H16l-4.664 16.328H6.672L2 7.836Zm11.661 0h7.6a4.08 4.08 0 0 1 2.9 1.749a3.8 3.8 0 0 1 .571 2.04a4 4 0 0 1-.571 2.034a4.1 4.1 0 0 1-2.341 1.763a4.1 4.1 0 0 1 2.929 1.756a3.8 3.8 0 0 1 .58 2.1a4.66 4.66 0 0 1-.579 2.546a5.05 5.05 0 0 1-3.5 2.338h-7.589ZM23 14.252h1.166a1.754 1.754 0 0 0 0-3.5H23Zm0 7h1.39a2.047 2.047 0 0 0 0-4.089H23Z"/></svg>'};export{n as EXTENDED_LANGUAGE_ICON_MAP};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
export type AdmonitionKind = 'note' | 'info' | 'tip' | 'warning' | 'danger' | 'caution' | 'error';
|
|
2
|
-
interface AdmonitionNode {
|
|
3
|
-
type: 'admonition';
|
|
4
|
-
kind: AdmonitionKind;
|
|
5
|
-
title?: string;
|
|
6
|
-
children: {
|
|
7
|
-
type: string;
|
|
8
|
-
raw: string;
|
|
9
|
-
}[];
|
|
10
|
-
raw: string;
|
|
11
|
-
collapsible?: boolean;
|
|
12
|
-
open?: boolean;
|
|
13
|
-
}
|
|
14
|
-
type __VLS_Props = {
|
|
15
|
-
node: AdmonitionNode;
|
|
16
|
-
indexKey: number | string;
|
|
17
|
-
isDark?: boolean;
|
|
18
|
-
typewriter?: boolean;
|
|
19
|
-
customId?: string;
|
|
20
|
-
};
|
|
21
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
-
copy: (...args: any[]) => void;
|
|
23
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
24
|
-
onCopy?: (...args: any[]) => any;
|
|
25
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
|
-
export default _default;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
interface NodeChild {
|
|
2
|
-
type: string;
|
|
3
|
-
raw: string;
|
|
4
|
-
[key: string]: unknown;
|
|
5
|
-
}
|
|
6
|
-
interface BlockquoteNode {
|
|
7
|
-
type: 'blockquote';
|
|
8
|
-
children: NodeChild[];
|
|
9
|
-
raw: string;
|
|
10
|
-
cite?: string;
|
|
11
|
-
}
|
|
12
|
-
type __VLS_Props = {
|
|
13
|
-
node: BlockquoteNode;
|
|
14
|
-
indexKey: string | number;
|
|
15
|
-
typewriter?: boolean;
|
|
16
|
-
customId?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
19
|
-
copy: (text: string) => any;
|
|
20
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
-
onCopy?: (text: string) => any;
|
|
22
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLQuoteElement>;
|
|
23
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
node: {
|
|
3
|
-
type: 'checkbox';
|
|
4
|
-
checked: boolean;
|
|
5
|
-
raw: string;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
9
|
-
export default _default;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { CodeBlockMonacoTheme, CodeBlockNodeProps } from '../../types/component-props';
|
|
2
|
-
type __VLS_Props = CodeBlockNodeProps & {
|
|
3
|
-
estimatedHeightPx?: number;
|
|
4
|
-
estimatedContentHeightPx?: number;
|
|
5
|
-
};
|
|
6
|
-
declare function __VLS_template(): {
|
|
7
|
-
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
'header-left'?(_: {}): any;
|
|
10
|
-
'header-right'?(_: {}): any;
|
|
11
|
-
loading?(_: {
|
|
12
|
-
loading: boolean;
|
|
13
|
-
stream: boolean;
|
|
14
|
-
}): any;
|
|
15
|
-
};
|
|
16
|
-
refs: {
|
|
17
|
-
container: HTMLDivElement;
|
|
18
|
-
codeEditor: HTMLDivElement;
|
|
19
|
-
};
|
|
20
|
-
rootEl: any;
|
|
21
|
-
};
|
|
22
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
-
copy: (...args: any[]) => void;
|
|
25
|
-
previewCode: (...args: any[]) => void;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onCopy?: (...args: any[]) => any;
|
|
28
|
-
onPreviewCode?: (...args: any[]) => any;
|
|
29
|
-
}>, {
|
|
30
|
-
isDark: boolean;
|
|
31
|
-
loading: boolean;
|
|
32
|
-
stream: boolean;
|
|
33
|
-
darkTheme: CodeBlockMonacoTheme;
|
|
34
|
-
lightTheme: CodeBlockMonacoTheme;
|
|
35
|
-
isShowPreview: boolean;
|
|
36
|
-
enableFontSizeControl: boolean;
|
|
37
|
-
minWidth: string | number;
|
|
38
|
-
maxWidth: string | number;
|
|
39
|
-
showHeader: boolean;
|
|
40
|
-
showCopyButton: boolean;
|
|
41
|
-
showExpandButton: boolean;
|
|
42
|
-
showPreviewButton: boolean;
|
|
43
|
-
showCollapseButton: boolean;
|
|
44
|
-
showFontSizeButtons: boolean;
|
|
45
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
46
|
-
container: HTMLDivElement;
|
|
47
|
-
codeEditor: HTMLDivElement;
|
|
48
|
-
}, any>;
|
|
49
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
|
-
export default _default;
|
|
51
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
52
|
-
new (): {
|
|
53
|
-
$slots: S;
|
|
54
|
-
};
|
|
55
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
code: string;
|
|
3
|
-
isDark?: boolean;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
title?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
-
export default _default;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { CodeBlockMonacoOptions, CodeBlockMonacoTheme } from '../../types/component-props';
|
|
2
|
-
export interface MonacoDisposableLike {
|
|
3
|
-
dispose?: () => void;
|
|
4
|
-
}
|
|
5
|
-
export interface MonacoModelLike {
|
|
6
|
-
getLineCount?: () => number;
|
|
7
|
-
}
|
|
8
|
-
export interface MonacoEditorViewLike {
|
|
9
|
-
getModel?: () => MonacoModelLike | null | undefined;
|
|
10
|
-
getOption?: (option: unknown) => unknown;
|
|
11
|
-
updateOptions?: (options: Record<string, unknown>) => void;
|
|
12
|
-
layout?: () => void;
|
|
13
|
-
getContentHeight?: () => number;
|
|
14
|
-
onDidContentSizeChange?: (listener: () => void) => MonacoDisposableLike | void;
|
|
15
|
-
onDidLayoutChange?: (listener: () => void) => MonacoDisposableLike | void;
|
|
16
|
-
}
|
|
17
|
-
export interface MonacoDiffLineChangeLike {
|
|
18
|
-
originalStartLineNumber?: number;
|
|
19
|
-
originalEndLineNumber?: number;
|
|
20
|
-
modifiedStartLineNumber?: number;
|
|
21
|
-
modifiedEndLineNumber?: number;
|
|
22
|
-
}
|
|
23
|
-
export interface MonacoDiffEditorViewLike extends MonacoEditorViewLike {
|
|
24
|
-
getOriginalEditor?: () => MonacoEditorViewLike | null | undefined;
|
|
25
|
-
getModifiedEditor?: () => MonacoEditorViewLike | null | undefined;
|
|
26
|
-
getLineChanges?: () => MonacoDiffLineChangeLike[] | null | undefined;
|
|
27
|
-
onDidUpdateDiff?: (listener: () => void) => MonacoDisposableLike | void;
|
|
28
|
-
}
|
|
29
|
-
export interface MonacoNamespaceLike {
|
|
30
|
-
EditorOption?: {
|
|
31
|
-
fontInfo?: unknown;
|
|
32
|
-
lineHeight?: unknown;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface MonacoRuntimeOptions extends Omit<CodeBlockMonacoOptions, 'theme'> {
|
|
36
|
-
theme?: CodeBlockMonacoTheme;
|
|
37
|
-
themes?: CodeBlockMonacoTheme[];
|
|
38
|
-
onThemeChange?: () => void;
|
|
39
|
-
}
|
|
40
|
-
export interface MonacoHelpers {
|
|
41
|
-
createEditor?: (container: HTMLElement, code: string, language: string) => Promise<unknown> | unknown;
|
|
42
|
-
createDiffEditor?: (container: HTMLElement, original: string, modified: string, language: string) => Promise<unknown> | unknown;
|
|
43
|
-
updateCode?: (code: string, language: string) => Promise<unknown> | unknown;
|
|
44
|
-
updateDiff?: (original: string, modified: string, language: string) => Promise<unknown> | unknown;
|
|
45
|
-
getEditor?: () => MonacoNamespaceLike | null;
|
|
46
|
-
getEditorView?: () => MonacoEditorViewLike | null;
|
|
47
|
-
getDiffEditorView?: () => MonacoDiffEditorViewLike | null;
|
|
48
|
-
cleanupEditor?: () => void;
|
|
49
|
-
safeClean?: () => void;
|
|
50
|
-
refreshDiffPresentation?: () => void;
|
|
51
|
-
setTheme?: (theme: CodeBlockMonacoTheme | undefined) => Promise<void> | void;
|
|
52
|
-
}
|
|
53
|
-
export interface MonacoModule {
|
|
54
|
-
useMonaco?: (options: MonacoRuntimeOptions) => MonacoHelpers | null | undefined;
|
|
55
|
-
detectLanguage?: (code: string) => string;
|
|
56
|
-
}
|
|
57
|
-
export declare function getUseMonaco(): Promise<MonacoModule | null>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { CodeBlockMonacoTheme } from '../../types/component-props';
|
|
2
|
-
type SetTheme = (theme: CodeBlockMonacoTheme | undefined) => Promise<void> | void;
|
|
3
|
-
export declare function scheduleGlobalMonacoTheme(setTheme: SetTheme, theme: CodeBlockMonacoTheme | null | undefined): Promise<void>;
|
|
4
|
-
export {};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { D2BlockNodeProps } from '../../types/component-props';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<D2BlockNodeProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<D2BlockNodeProps> & Readonly<{}>, {
|
|
3
|
-
loading: boolean;
|
|
4
|
-
showHeader: boolean;
|
|
5
|
-
showCopyButton: boolean;
|
|
6
|
-
showCollapseButton: boolean;
|
|
7
|
-
maxHeight: string | null;
|
|
8
|
-
showModeToggle: boolean;
|
|
9
|
-
showExportButton: boolean;
|
|
10
|
-
progressiveRender: boolean;
|
|
11
|
-
progressiveIntervalMs: number;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
-
viewportTarget: HTMLDivElement;
|
|
14
|
-
bodyRef: HTMLDivElement;
|
|
15
|
-
}, HTMLDivElement>;
|
|
16
|
-
export default _default;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export type D2Loader = () => Promise<any> | any;
|
|
2
|
-
export declare function setD2Loader(loader: D2Loader | null): void;
|
|
3
|
-
export declare function enableD2(loader?: D2Loader): void;
|
|
4
|
-
export declare function disableD2(): void;
|
|
5
|
-
export declare function isD2Enabled(): boolean;
|
|
6
|
-
export declare function getD2(): Promise<any>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
interface DefinitionItemNode {
|
|
2
|
-
type: 'definition_item';
|
|
3
|
-
term: {
|
|
4
|
-
type: string;
|
|
5
|
-
raw: string;
|
|
6
|
-
}[];
|
|
7
|
-
definition: {
|
|
8
|
-
type: string;
|
|
9
|
-
raw: string;
|
|
10
|
-
}[];
|
|
11
|
-
raw: string;
|
|
12
|
-
}
|
|
13
|
-
interface DefinitionListNode {
|
|
14
|
-
type: 'definition_list';
|
|
15
|
-
items: DefinitionItemNode[];
|
|
16
|
-
raw: string;
|
|
17
|
-
}
|
|
18
|
-
type __VLS_Props = {
|
|
19
|
-
node: DefinitionListNode;
|
|
20
|
-
indexKey: string | number;
|
|
21
|
-
typewriter?: boolean;
|
|
22
|
-
customId?: string;
|
|
23
|
-
};
|
|
24
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
copy: (...args: any[]) => void;
|
|
26
|
-
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
onCopy?: (...args: any[]) => any;
|
|
28
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDListElement>;
|
|
29
|
-
export default _default;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
node: {
|
|
3
|
-
type: 'emoji';
|
|
4
|
-
name: string;
|
|
5
|
-
markup: string;
|
|
6
|
-
raw: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
10
|
-
export default _default;
|