import { resolveComponent as k, openBlock as x, createElementBlock as _, createElementVNode as u, createTextVNode as m, toDisplayString as g, createVNode as y, withCtx as v } from "vue"; import { n as E } from "./index2.js"; const f = (t = "") => String(t).replace(/&/g, "&").replace(//g, ">"), P = (t = "") => String(t).replace(/[^\w\u4e00-\u9fa5-]/g, ""), c = (t = "") => { const n = [], r = []; let e = String(t); return e = e.replace(/`([^`]+)`/g, (o, a) => (n.push(`${f(a)}`), `\0C${n.length - 1}\0`)), e = e.replace(/<\/?span[^>]*>/g, (o) => (r.push(o), `\0S${r.length - 1}\0`)), e = f(e), e = e.replace(/\[([^\]]+)\]\(([^)]+)\)/g, '$1'), e = e.replace(/\*\*([^*]+)\*\*/g, "$1"), e = e.replace(/\u0000C(\d+)\u0000/g, (o, a) => n[+a]), e = e.replace(/\u0000S(\d+)\u0000/g, (o, a) => r[+a]), e; }, w = (t = "") => t.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((n) => n.trim()), I = (t = "") => /^\s*\|?[\s:|-]+\|?\s*$/.test(t) && t.includes("-"), S = (t = "") => { const n = String(t).replace(/\r\n/g, ` `).split(` `), r = n.length; let e = 0, o = "", a = null; const s = () => { a && (o += ` `, a = null); }; for (; e < r; ) { const i = n[e], b = i.match(/^```(\w*)\s*$/); if (b) { s(); const l = b[1]; e++; const d = []; for (; e < r && !/^```\s*$/.test(n[e]); ) d.push(n[e]), e++; e++, o += `
${f(d.join(`
`))}
`; continue; } if (/^\s*$/.test(i)) { s(), e++; continue; } if (/^-{3,}\s*$/.test(i)) { s(), o += `
`, e++; continue; } const p = i.match(/^(#{1,6})\s+(.*)$/); if (p) { s(); const l = p[1].length, d = p[2].trim(); o += `${c(d)} `, e++; continue; } if (/^>\s?/.test(i)) { s(); const l = []; for (; e < r && /^>\s?/.test(n[e]); ) l.push(n[e].replace(/^>\s?/, "")), e++; o += `
${S(l.join(` `))}
`; continue; } if (/^\s*\|/.test(i) && e + 1 < r && I(n[e + 1])) { s(); const l = w(i); e += 2; const d = []; for (; e < r && /^\s*\|/.test(n[e]); ) d.push(w(n[e])), e++; o += "" + l.map((h) => ``).join("") + "" + d.map((h) => "" + h.map((T) => ``).join("") + "").join("") + `
${c(h)}
${c(T)}
`; continue; } if (/^\s*[-*]\s+/.test(i)) { a !== "ul" && (s(), o += `