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