@orangelogic/design-system 3.67.0 → 3.69.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/library/chunks/{abnfDiagram-N423BO3Z.BdDkSL0S.js → abnfDiagram-N423BO3Z.H1zwr_k6.js} +3 -3
  2. package/library/chunks/{architectureDiagram-T3A2C74G.BPW98p0m.js → architectureDiagram-T3A2C74G.AxjW1Pvo.js} +5 -5
  3. package/library/chunks/{block-width.DJlTVJlj.js → block-width.CloTv8Nc.js} +1 -1
  4. package/library/chunks/{blockDiagram-VBNYF7ZC.2el4_mfU.js → blockDiagram-VBNYF7ZC.BA5YJ5tg.js} +6 -6
  5. package/library/chunks/{c4Diagram-5PPSVZJV.CB1meuC0.js → c4Diagram-5PPSVZJV.B1weqOqz.js} +3 -3
  6. package/library/chunks/{channel.Df7qi9B0.js → channel.Bqlqmufs.js} +1 -1
  7. package/library/chunks/{chunk-2GRJ4B5K.gGaxW0lA.js → chunk-2GRJ4B5K.BOBf1_FX.js} +1 -1
  8. package/library/chunks/{chunk-4I5QYGJK.BfgT5lel.js → chunk-4I5QYGJK.DfO_P7bO.js} +1 -1
  9. package/library/chunks/{chunk-5RXB4S5H.CF2ZeQiS.js → chunk-5RXB4S5H.oisV3Q1b.js} +5 -5
  10. package/library/chunks/{chunk-6Q2QTUOP.BKuPYCzj.js → chunk-6Q2QTUOP.ByglL7sM.js} +2 -2
  11. package/library/chunks/{chunk-7Z6QIM7H.ChD5saA-.js → chunk-7Z6QIM7H.BXSFN_6B.js} +6 -6
  12. package/library/chunks/{chunk-GF5L2VYU.D7Kyf8tv.js → chunk-GF5L2VYU.BBRVN_Sz.js} +5 -5
  13. package/library/chunks/{chunk-I66GZJ75.H0-SV6eJ.js → chunk-I66GZJ75.lUTR0Zxp.js} +1 -1
  14. package/library/chunks/{chunk-JQJVKLGR.vSmZrVfn.js → chunk-JQJVKLGR.dOAJ_eec.js} +7 -7
  15. package/library/chunks/{chunk-KBJHAD2P.BFtv98WB.js → chunk-KBJHAD2P.Bfz5cQAa.js} +1 -1
  16. package/library/chunks/{chunk-NSK5VX7P.CigvU-YZ.js → chunk-NSK5VX7P.BkWzMz1o.js} +1 -1
  17. package/library/chunks/{chunk-QR6OTTB3.DXgKvg29.js → chunk-QR6OTTB3.DyBl4spZ.js} +6 -6
  18. package/library/chunks/{chunk-UBXNYLIW.Cwnmh6rE.js → chunk-UBXNYLIW.BjkOeuJd.js} +2 -2
  19. package/library/chunks/{chunk-W5SLKNZC.BGc7e7pD.js → chunk-W5SLKNZC.DzlXmWcA.js} +1 -1
  20. package/library/chunks/{chunk-WRU74C26.DI6bT2w6.js → chunk-WRU74C26.BDl8PZFV.js} +3 -3
  21. package/library/chunks/{classDiagram-JCYQIIEL.64BYmngb.js → classDiagram-JCYQIIEL.P36yteOv.js} +12 -12
  22. package/library/chunks/{classDiagram-v2-OCEON4UE.BZauU1et.js → classDiagram-v2-OCEON4UE.C05djrx3.js} +12 -12
  23. package/library/chunks/{config-manager.e-4cpoFX.js → config-manager.Dga8yCuU.js} +1 -1
  24. package/library/chunks/{cynefinDiagram-MW4NZA55.DcUv6X--.js → cynefinDiagram-MW4NZA55.CN3dX-zy.js} +3 -3
  25. package/library/chunks/{dagre-VZM6K2ZE.REv4K_Qj.js → dagre-VZM6K2ZE.DpSsP2YW.js} +8 -8
  26. package/library/chunks/{diagram-7IWD3JNH.C6XfUay-.js → diagram-7IWD3JNH.C3K0gCHG.js} +4 -4
  27. package/library/chunks/{diagram-B4RE2ZJO.Bp-nT294.js → diagram-B4RE2ZJO.BULgC23C.js} +2 -2
  28. package/library/chunks/{diagram-LBJQPF4R.DM8MEbI5.js → diagram-LBJQPF4R.BmYYTkym.js} +3 -3
  29. package/library/chunks/{diagram-Q27KOJAE.DYhFE9pI.js → diagram-Q27KOJAE.Bj5ayV3p.js} +5 -5
  30. package/library/chunks/{diagram-UB23O5K3.BONLndDU.js → diagram-UB23O5K3.Bu_lTx_A.js} +3 -3
  31. package/library/chunks/{ebnfDiagram-BXEA7PRR.vgCVWkh_.js → ebnfDiagram-BXEA7PRR.Cg96HHIs.js} +3 -3
  32. package/library/chunks/{erDiagram-JOGREHBK.l02-sIjI.js → erDiagram-JOGREHBK.CrJ962th.js} +11 -11
  33. package/library/chunks/flowDiagram-UKHOOZJN.Bj_loY7-.js +16 -0
  34. package/library/chunks/{ganttDiagram-PKOTCBZU.CD-H_noy.js → ganttDiagram-PKOTCBZU.D216_p5R.js} +2 -2
  35. package/library/chunks/{gitGraphDiagram-DS77QQ5N.eu4pijfq.js → gitGraphDiagram-DS77QQ5N.BGTaYiUE.js} +2 -2
  36. package/library/chunks/{infoDiagram-6WML65LV.Xm33NlcD.js → infoDiagram-6WML65LV.BHVojFJh.js} +2 -2
  37. package/library/chunks/{ishikawaDiagram-WSZJBQD7.B-DjIT2K.js → ishikawaDiagram-WSZJBQD7.nZsYnPcQ.js} +3 -3
  38. package/library/chunks/{journeyDiagram-NVQOT4AX.ByuFaAO4.js → journeyDiagram-NVQOT4AX.BXUxAk98.js} +2 -2
  39. package/library/chunks/{kanban-definition-27J2QSJJ.BEAgE6i7.js → kanban-definition-27J2QSJJ.Bg8-oEtc.js} +8 -8
  40. package/library/chunks/{katex.DaGFosgJ.js → katex.BqirFtOb.js} +1 -1
  41. package/library/chunks/katex.KcI9vfm6.js +21947 -0
  42. package/library/chunks/{markdown.Ce5rh6vN.js → markdown.C1P0ctPs.js} +186 -99
  43. package/library/chunks/{mermaid.core.CUTdrxBG.js → mermaid.core.m1JI7kDY.js} +48 -48
  44. package/library/chunks/{mindmap-definition-FAOFIHXS.rbw_pav-.js → mindmap-definition-FAOFIHXS.DwjOzYq5.js} +10 -10
  45. package/library/chunks/{pegDiagram-VL7TDLO6.BAxarQjC.js → pegDiagram-VL7TDLO6.BaVddVr3.js} +3 -3
  46. package/library/chunks/{pieDiagram-7S7Q4E2Y.Du6akIPM.js → pieDiagram-7S7Q4E2Y.lZiCqBKs.js} +3 -3
  47. package/library/chunks/{quadrantDiagram-CIZ2JOQS.0LTMJXU8.js → quadrantDiagram-CIZ2JOQS.DswnHa_z.js} +1 -1
  48. package/library/chunks/{railroadDiagram-AXF67PYL.BU5cQCmX.js → railroadDiagram-AXF67PYL.RYtWvnP4.js} +3 -3
  49. package/library/chunks/{requirementDiagram-LRYGKXZP.BM4tLaE8.js → requirementDiagram-LRYGKXZP.BhxZAEJL.js} +10 -10
  50. package/library/chunks/{sankeyDiagram-W5VNT64P.r2kIOMLC.js → sankeyDiagram-W5VNT64P.Dk8npZSg.js} +1 -1
  51. package/library/chunks/{sequenceDiagram-SI44F4Z6.CJ50A-EW.js → sequenceDiagram-SI44F4Z6.BNjBc769.js} +4 -4
  52. package/library/chunks/{src.CMHHq5o2.js → src.dACFJV5g.js} +1 -1
  53. package/library/chunks/{stateDiagram-OKZ733FA.DZ7h0fa_.js → stateDiagram-OKZ733FA.DkiIgxjd.js} +12 -12
  54. package/library/chunks/{stateDiagram-v2-UEYNNEHI.BhaYePWf.js → stateDiagram-v2-UEYNNEHI.oVj_Ex1_.js} +12 -12
  55. package/library/chunks/{swimlanes-SLNWSIFB.B31m3AJi.js → swimlanes-SLNWSIFB.DKU7qXJ7.js} +8 -8
  56. package/library/chunks/{swimlanesDiagram-ULZ7WXOC.DkcvdPqC.js → swimlanesDiagram-ULZ7WXOC.DYwYMO_K.js} +12 -12
  57. package/library/chunks/{timeline-definition-Z64GVDOM.CNKRW4xi.js → timeline-definition-Z64GVDOM.agRZ87Zs.js} +3 -3
  58. package/library/chunks/{vennDiagram-T6HMQDX7.CObwvEEr.js → vennDiagram-T6HMQDX7.Cd9lVObe.js} +3 -3
  59. package/library/chunks/{wardleyDiagram-T6FBY63Y.BTL3nwWJ.js → wardleyDiagram-T6FBY63Y.yCklp5Oa.js} +3 -3
  60. package/library/chunks/{xychartDiagram-ELKLHX3M.DMDlz8tK.js → xychartDiagram-ELKLHX3M.CLuRN0XK.js} +5 -5
  61. package/library/components/atoms.js +2 -2
  62. package/library/components/markdown.js +1 -1
  63. package/library/components/types.js +6 -6
  64. package/library/package.json +1 -1
  65. package/library/packages/atoms/src/components/markdown/markdown.d.ts +12 -3
  66. package/library/packages/atoms/src/components/markdown/parser.d.ts +7 -2
  67. package/library/packages/tools/src/tiptap/utils/md/schema.d.ts +1 -1
  68. package/library/packages/types/src/markdown.d.ts +5 -0
  69. package/library/react-web-component.d.ts +4 -0
  70. package/package.json +1 -1
  71. package/library/chunks/flowDiagram-UKHOOZJN.BoFivhJR.js +0 -16
@@ -1577,30 +1577,30 @@ function Kn(e) {
1577
1577
  V = e;
1578
1578
  }
1579
1579
  var H = { exec: () => null };
1580
- function qn(e) {
1580
+ function U(e) {
1581
1581
  let t = [];
1582
1582
  return (n) => {
1583
1583
  let r = Math.max(0, Math.min(3, n - 1)), i = t[r];
1584
1584
  return i || (i = e(r), t[r] = i), i;
1585
1585
  };
1586
1586
  }
1587
- function U(e, t = "") {
1587
+ function W(e, t = "") {
1588
1588
  let n = typeof e == "string" ? e : e.source, r = {
1589
1589
  replace: (e, t) => {
1590
1590
  let i = typeof t == "string" ? t : t.source;
1591
- return i = i.replace(W.caret, "$1"), n = n.replace(e, i), r;
1591
+ return i = i.replace(G.caret, "$1"), n = n.replace(e, i), r;
1592
1592
  },
1593
1593
  getRegex: () => new RegExp(n, t)
1594
1594
  };
1595
1595
  return r;
1596
1596
  }
1597
- var Jn = ((e = "") => {
1597
+ var qn = ((e = "") => {
1598
1598
  try {
1599
1599
  return !!RegExp("(?<=1)(?<!1)" + e);
1600
1600
  } catch {
1601
1601
  return !1;
1602
1602
  }
1603
- })(), W = {
1603
+ })(), G = {
1604
1604
  codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm,
1605
1605
  outputLinkReplace: /\\([\[\]])/g,
1606
1606
  indentCodeCompensation: /^(\s+)(?:```)/,
@@ -1651,86 +1651,86 @@ var Jn = ((e = "") => {
1651
1651
  notSpaceStart: /^\S*/,
1652
1652
  endingNewline: /\n$/,
1653
1653
  listItemRegex: (e) => RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),
1654
- nextBulletRegex: qn((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
1655
- hrRegex: qn((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
1656
- fencesBeginRegex: qn((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
1657
- headingBeginRegex: qn((e) => RegExp(`^ {0,${e}}#`)),
1658
- htmlBeginRegex: qn((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
1659
- blockquoteBeginRegex: qn((e) => RegExp(`^ {0,${e}}>`))
1660
- }, Yn = /^(?:[ \t]*(?:\n|$))+/, Xn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Zn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Qn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, $n = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, er = / {0,3}(?:[*+-]|\d{1,9}[.)])/, tr = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, nr = U(tr).replace(/bull/g, er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), rr = U(tr).replace(/bull/g, er).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), ir = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ar = /^[^\n]+/, or = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, sr = U(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", or).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), cr = U(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, er).getRegex(), lr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", ur = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, dr = U("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", ur).replace("tag", lr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), fr = (e) => U(ir).replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", lr).getRegex(), pr = fr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), mr = fr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), hr = {
1661
- blockquote: U(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", mr).getRegex(),
1662
- code: Xn,
1663
- def: sr,
1664
- fences: Zn,
1665
- heading: $n,
1666
- hr: Qn,
1667
- html: dr,
1668
- lheading: nr,
1669
- list: cr,
1670
- newline: Yn,
1671
- paragraph: pr,
1654
+ nextBulletRegex: U((e) => RegExp(`^ {0,${e}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),
1655
+ hrRegex: U((e) => RegExp(`^ {0,${e}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),
1656
+ fencesBeginRegex: U((e) => RegExp(`^ {0,${e}}(?:\`\`\`|~~~)`)),
1657
+ headingBeginRegex: U((e) => RegExp(`^ {0,${e}}#`)),
1658
+ htmlBeginRegex: U((e) => RegExp(`^ {0,${e}}<(?:[a-z].*>|!--)`, "i")),
1659
+ blockquoteBeginRegex: U((e) => RegExp(`^ {0,${e}}>`))
1660
+ }, Jn = /^(?:[ \t]*(?:\n|$))+/, Yn = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Xn = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, Zn = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Qn = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, $n = / {0,3}(?:[*+-]|\d{1,9}[.)])/, er = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, tr = W(er).replace(/bull/g, $n).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), nr = W(er).replace(/bull/g, $n).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}(?:\s|$)/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), rr = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/, ir = /^[^\n]+/, ar = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, or = W(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", ar).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), sr = W(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g, $n).getRegex(), cr = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", lr = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, ur = W("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", lr).replace("tag", cr).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), dr = (e) => W(rr).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", e).replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cr).getRegex(), fr = dr(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/), pr = dr(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/), mr = {
1661
+ blockquote: W(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", pr).getRegex(),
1662
+ code: Yn,
1663
+ def: or,
1664
+ fences: Xn,
1665
+ heading: Qn,
1666
+ hr: Zn,
1667
+ html: ur,
1668
+ lheading: tr,
1669
+ list: sr,
1670
+ newline: Jn,
1671
+ paragraph: fr,
1672
1672
  table: H,
1673
- text: ar
1674
- }, gr = U("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", lr).getRegex(), _r = {
1675
- ...hr,
1676
- lheading: rr,
1677
- table: gr,
1678
- paragraph: U(ir).replace("hr", Qn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", gr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", lr).getRegex()
1679
- }, vr = {
1680
- ...hr,
1681
- html: U("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", ur).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1673
+ text: ir
1674
+ }, hr = W("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cr).getRegex(), gr = {
1675
+ ...mr,
1676
+ lheading: nr,
1677
+ table: hr,
1678
+ paragraph: W(rr).replace("hr", Zn).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", hr).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~~~)[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", cr).getRegex()
1679
+ }, _r = {
1680
+ ...mr,
1681
+ html: W("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment", lr).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
1682
1682
  def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
1683
1683
  heading: /^(#{1,6})(.*)(?:\n+|$)/,
1684
1684
  fences: H,
1685
1685
  lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
1686
- paragraph: U(ir).replace("hr", Qn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", nr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1687
- }, yr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, br = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xr = /^( {2,}|\\)\n(?!\s*$)/, Sr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, G = /[\p{P}\p{S}]/u, K = /[\s\p{P}\p{S}]/u, Cr = /[^\s\p{P}\p{S}]/u, wr = U(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, K).getRegex(), Tr = /[\p{Pi}\p{Ps}"']/u, Er = /(?!~)[\p{P}\p{S}]/u, Dr = /(?!~)[\s\p{P}\p{S}]/u, Or = /(?:[^\s\p{P}\p{S}]|~)/u, kr = U(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", Jn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ar = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, jr = U(Ar, "u").replace(/punct/g, G).getRegex(), Mr = U(Ar, "u").replace(/punct/g, Er).getRegex(), Nr = U(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, Tr).replace(/punct/g, G).getRegex(), Pr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Fr = U(Pr, "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Ir = U(Pr, "gu").replace(/notPunctSpace/g, Or).replace(/punctSpace/g, Dr).replace(/punct/g, Er).getRegex(), Lr = U("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Rr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), zr = U("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Br = U(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, G).getRegex(), Vr = U("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, K).replace(/punct/g, G).getRegex(), Hr = U(/\\(punct)/, "gu").replace(/punct/g, G).getRegex(), Ur = U(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Wr = U(ur).replace("(?:-->|$)", "-->").getRegex(), Gr = U("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Wr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Kr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, qr = U(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Kr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Jr = U(/^!?\[(label)\]\[(ref)\]/).replace("label", Kr).replace("ref", or).getRegex(), Yr = U(/^!?\[(ref)\](?:\[\])?/).replace("ref", or).getRegex(), Xr = U("reflink|nolink(?!\\()", "g").replace("reflink", Jr).replace("nolink", Yr).getRegex(), Zr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Qr = {
1686
+ paragraph: W(rr).replace("hr", Zn).replace("heading", " *#{1,6} *[^\n]").replace("lheading", tr).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
1687
+ }, vr = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, yr = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, br = /^( {2,}|\\)\n(?!\s*$)/, xr = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, K = /[\p{P}\p{S}]/u, Sr = /[\s\p{P}\p{S}]/u, Cr = /[^\s\p{P}\p{S}]/u, wr = W(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, Sr).getRegex(), Tr = /[\p{Pi}\p{Ps}"']/u, Er = /(?!~)[\p{P}\p{S}]/u, Dr = /(?!~)[\s\p{P}\p{S}]/u, Or = /(?:[^\s\p{P}\p{S}]|~)/u, kr = W(/link|precode-code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-", qn ? "(?<!`)()" : "(^^|[^`])").replace("code", /(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), Ar = /^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/, jr = W(Ar, "u").replace(/punct/g, K).getRegex(), Mr = W(Ar, "u").replace(/punct/g, Er).getRegex(), Nr = W(/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/, "u").replace(/openQuote/g, Tr).replace(/punct/g, K).getRegex(), Pr = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", Fr = W(Pr, "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, Sr).replace(/punct/g, K).getRegex(), Ir = W(Pr, "gu").replace(/notPunctSpace/g, Or).replace(/punctSpace/g, Dr).replace(/punct/g, Er).getRegex(), Lr = W("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, Sr).replace(/punct/g, K).getRegex(), Rr = W("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, Sr).replace(/punct/g, K).getRegex(), zr = W("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, Sr).replace(/punct/g, K).getRegex(), Br = W(/^~~?(?:((?!~)punct)|[^\s~])/, "u").replace(/punct/g, K).getRegex(), Vr = W("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)", "gu").replace(/notPunctSpace/g, Cr).replace(/punctSpace/g, Sr).replace(/punct/g, K).getRegex(), Hr = W(/\\(punct)/, "gu").replace(/punct/g, K).getRegex(), Ur = W(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), Wr = W(lr).replace("(?:-->|$)", "-->").getRegex(), Gr = W("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", Wr).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), Kr = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/, qr = W(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label", Kr).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), Jr = W(/^!?\[(label)\]\[(ref)\]/).replace("label", Kr).replace("ref", ar).getRegex(), Yr = W(/^!?\[(ref)\](?:\[\])?/).replace("ref", ar).getRegex(), Xr = W("reflink|nolink(?!\\()", "g").replace("reflink", Jr).replace("nolink", Yr).getRegex(), Zr = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, Qr = {
1688
1688
  _backpedal: H,
1689
1689
  anyPunctuation: Hr,
1690
1690
  autolink: Ur,
1691
1691
  blockSkip: kr,
1692
- br: xr,
1693
- code: br,
1692
+ br,
1693
+ code: yr,
1694
1694
  del: H,
1695
1695
  delLDelim: H,
1696
1696
  delRDelim: H,
1697
1697
  emStrongLDelim: jr,
1698
1698
  emStrongRDelimAst: Fr,
1699
1699
  emStrongRDelimUnd: Rr,
1700
- escape: yr,
1700
+ escape: vr,
1701
1701
  link: qr,
1702
1702
  nolink: Yr,
1703
1703
  punctuation: wr,
1704
1704
  reflink: Jr,
1705
1705
  reflinkSearch: Xr,
1706
1706
  tag: Gr,
1707
- text: Sr,
1707
+ text: xr,
1708
1708
  url: H
1709
1709
  }, $r = {
1710
1710
  ...Qr,
1711
1711
  emStrongLDelim: Nr,
1712
1712
  emStrongRDelimAst: Lr,
1713
1713
  emStrongRDelimUnd: zr,
1714
- link: U(/^!?\[(label)\]\((.*?)\)/).replace("label", Kr).getRegex(),
1715
- reflink: U(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Kr).getRegex()
1714
+ link: W(/^!?\[(label)\]\((.*?)\)/).replace("label", Kr).getRegex(),
1715
+ reflink: W(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", Kr).getRegex()
1716
1716
  }, ei = {
1717
1717
  ...Qr,
1718
1718
  emStrongRDelimAst: Ir,
1719
1719
  emStrongLDelim: Mr,
1720
1720
  delLDelim: Br,
1721
1721
  delRDelim: Vr,
1722
- url: U(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Zr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1722
+ url: W(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", Zr).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),
1723
1723
  _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
1724
1724
  del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,
1725
- text: U(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Zr).getRegex()
1725
+ text: W(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", Zr).getRegex()
1726
1726
  }, ti = {
1727
1727
  ...ei,
1728
- br: U(xr).replace("{2,}", "*").getRegex(),
1729
- text: U(ei.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1728
+ br: W(br).replace("{2,}", "*").getRegex(),
1729
+ text: W(ei.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
1730
1730
  }, ni = {
1731
- normal: hr,
1732
- gfm: _r,
1733
- pedantic: vr
1731
+ normal: mr,
1732
+ gfm: gr,
1733
+ pedantic: _r
1734
1734
  }, ri = {
1735
1735
  normal: Qr,
1736
1736
  gfm: ei,
@@ -1745,29 +1745,29 @@ var Jn = ((e = "") => {
1745
1745
  }, ai = (e) => ii[e];
1746
1746
  function q(e, t) {
1747
1747
  if (t) {
1748
- if (W.escapeTest.test(e)) return e.replace(W.escapeReplace, ai);
1749
- } else if (W.escapeTestNoEncode.test(e)) return e.replace(W.escapeReplaceNoEncode, ai);
1748
+ if (G.escapeTest.test(e)) return e.replace(G.escapeReplace, ai);
1749
+ } else if (G.escapeTestNoEncode.test(e)) return e.replace(G.escapeReplaceNoEncode, ai);
1750
1750
  return e;
1751
1751
  }
1752
1752
  function oi(e) {
1753
1753
  try {
1754
- e = encodeURI(e).replace(W.percentDecode, "%");
1754
+ e = encodeURI(e).replace(G.percentDecode, "%");
1755
1755
  } catch {
1756
1756
  return null;
1757
1757
  }
1758
1758
  return e;
1759
1759
  }
1760
1760
  function si(e, t) {
1761
- let n = e.replace(W.findPipe, (e, t, n) => {
1761
+ let n = e.replace(G.findPipe, (e, t, n) => {
1762
1762
  let r = !1, i = t;
1763
1763
  for (; --i >= 0 && n[i] === "\\";) r = !r;
1764
1764
  return r ? "|" : " |";
1765
- }).split(W.splitPipe), r = 0;
1765
+ }).split(G.splitPipe), r = 0;
1766
1766
  if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), t) {
1767
1767
  if (n.length > t) n.splice(t);
1768
1768
  else for (; n.length < t;) n.push("");
1769
1769
  }
1770
- for (; r < n.length; r++) n[r] = n[r].trim().replace(W.slashPipe, "|");
1770
+ for (; r < n.length; r++) n[r] = n[r].trim().replace(G.slashPipe, "|");
1771
1771
  return n;
1772
1772
  }
1773
1773
  function J(e, t, n) {
@@ -1784,7 +1784,7 @@ function J(e, t, n) {
1784
1784
  }
1785
1785
  function ci(e) {
1786
1786
  let t = e.split("\n"), n = t.length - 1;
1787
- for (; n >= 0 && W.blankLine.test(t[n]);) n--;
1787
+ for (; n >= 0 && G.blankLine.test(t[n]);) n--;
1788
1788
  return t.length - n <= 2 ? e : t.slice(0, n + 1).join("\n");
1789
1789
  }
1790
1790
  function li(e, t) {
@@ -2301,7 +2301,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2301
2301
  top: !0
2302
2302
  };
2303
2303
  let t = {
2304
- other: W,
2304
+ other: G,
2305
2305
  block: ni.normal,
2306
2306
  inline: ri.normal
2307
2307
  };
@@ -2320,7 +2320,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2320
2320
  return new e(n).inlineTokens(t);
2321
2321
  }
2322
2322
  lex(e) {
2323
- e = e.replace(W.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
2323
+ e = e.replace(G.carriageReturn, "\n"), this.blockTokens(e, this.tokens);
2324
2324
  for (let e = 0; e < this.inlineQueue.length; e++) {
2325
2325
  let t = this.inlineQueue[e];
2326
2326
  this.inlineTokens(t.src, t.tokens);
@@ -2328,7 +2328,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2328
2328
  return this.inlineQueue = [], this.tokens;
2329
2329
  }
2330
2330
  blockTokens(e, t = [], n = !1) {
2331
- this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(W.tabCharGlobal, " ").replace(W.spaceLine, ""));
2331
+ this.tokenizer.lexer = this, this.options.pedantic && (e = e.replace(G.tabCharGlobal, " ").replace(G.spaceLine, ""));
2332
2332
  let r = 1 / 0;
2333
2333
  for (; e;) {
2334
2334
  if (e.length < r) r = e.length;
@@ -2520,7 +2520,7 @@ ${a}`, r = r.substring(0, r.length - t.text.length) + s.text;
2520
2520
  return "";
2521
2521
  }
2522
2522
  code({ text: e, lang: t, escaped: n }) {
2523
- let r = (t || "").match(W.notSpaceStart)?.[0], i = e.replace(W.endingNewline, "") + "\n";
2523
+ let r = (t || "").match(G.notSpaceStart)?.[0], i = e.replace(G.endingNewline, "") + "\n";
2524
2524
  return r ? "<pre><code class=\"language-" + q(r) + "\">" + (n ? i : q(i, !0)) + "</code></pre>\n" : "<pre><code>" + (n ? i : q(i, !0)) + "</code></pre>\n";
2525
2525
  }
2526
2526
  blockquote({ tokens: e }) {
@@ -3671,9 +3671,9 @@ var yi = /* @__PURE__ */ t(((e, t) => {
3671
3671
  f ||= (console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."), !0), n.plugins.fileHighlight.highlight.apply(this, arguments);
3672
3672
  };
3673
3673
  })();
3674
- })), bi = /* @__PURE__ */ e(yi(), 1), xi = "mermaid", Si = "cx-frontmatter", Ci = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3675
- function wi(e) {
3676
- let t = Ci.exec(e);
3674
+ })), bi = /* @__PURE__ */ e(yi(), 1), xi = "mermaid", Si = "cx-frontmatter", Ci = "cx-math", wi = /^ {0,3}\$\$[ \t]*\n((?:(?!\n[ \t]*\n)[\s\S])+?)\n[ \t]*\$\$[ \t]*(?:\n|$)/, Ti = /(?:^|\n) {0,3}\$\$[ \t]*\n/, Ei = Y.rules.block.gfm.paragraph, Di = /^\$\$((?:\\[\s\S]|[^\\$])+?)\$\$/, Oi = /^\$(?!\s)((?:\\[\s\S]|[^\\$])*?(?:\\[\s\S]|[^\\$\s]))\$(?!\d)/, ki = RegExp(`${Di.source.slice(1)}|${Oi.source.slice(1)}`, "g"), Ai = /^---[ \t]*\r?\n([\s\S]*?)\r?\n---[ \t]*(?:\r?\n|$)/;
3675
+ function ji(e) {
3676
+ let t = Ai.exec(e);
3677
3677
  if (!t) return {
3678
3678
  body: e,
3679
3679
  data: {},
@@ -3694,14 +3694,14 @@ function wi(e) {
3694
3694
  raw: n
3695
3695
  };
3696
3696
  }
3697
- function Ti(e, t) {
3698
- return `<details class="${Si}"><summary>${Ei(t)}</summary><pre>${Ei(e)}</pre></details>`;
3697
+ function Mi(e, t) {
3698
+ return `<details class="${Si}"><summary>${Ni(t)}</summary><pre>${Ni(e)}</pre></details>`;
3699
3699
  }
3700
- function Ei(e) {
3700
+ function Ni(e) {
3701
3701
  return e.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&#39;");
3702
3702
  }
3703
- var Di = { code({ escaped: e, lang: t, text: n }) {
3704
- let r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : Ei(n);
3703
+ var Pi = { code({ escaped: e, lang: t, text: n }) {
3704
+ let r = (t || "").match(/\S*/)?.[0]?.toLowerCase(), i = e ? n : Ni(n);
3705
3705
  if (r === "mermaid") return `<pre class="${xi}">${i}</pre>`;
3706
3706
  let a = [
3707
3707
  "ts",
@@ -3711,20 +3711,90 @@ var Di = { code({ escaped: e, lang: t, text: n }) {
3711
3711
  ].includes(r ?? "") ? "javascript" : r;
3712
3712
  return !a || !bi.languages[a] ? `<pre class="language-"><code>${i}</code></pre>` : `<pre class="language-${a}"><code>${(0, bi.highlight)(n, bi.languages[a], a)}</code></pre>`;
3713
3713
  } };
3714
- function Oi() {
3715
- let e = new _i();
3716
- return e.use({ renderer: Di }), e;
3714
+ function Fi(e, t, n) {
3715
+ return `<${e} class="${Ci}"${n ? " data-display" : ""}>${Ni(t.trim())}</${e}>`;
3716
+ }
3717
+ function Ii(e) {
3718
+ return e.replace(ki, (e) => "a".repeat(e.length));
3719
+ }
3720
+ var Li = class e extends X {
3721
+ static formulaToPlainText(e) {
3722
+ let t;
3723
+ return t = e.type === "mathInline" ? {
3724
+ raw: e.raw,
3725
+ text: e.raw,
3726
+ type: "text"
3727
+ } : e, t;
3728
+ }
3729
+ parseInline(t, n) {
3730
+ let r;
3731
+ return r = n === this.textRenderer ? t.map((t) => e.formulaToPlainText(t)) : t, super.parseInline(r, n);
3732
+ }
3733
+ }, Ri = {
3734
+ extensions: [{
3735
+ level: "block",
3736
+ name: "mathBlock",
3737
+ renderer: (e) => `${Fi("div", e.text, !0)}\n`,
3738
+ start(e) {
3739
+ let t;
3740
+ if (this.lexer.state.top) {
3741
+ let n = +!!e.startsWith("\n"), r = Ei.exec(e.slice(n))?.[0].length ?? 0;
3742
+ t = e.slice(0, n + r + 1).match(Ti)?.index;
3743
+ }
3744
+ return t;
3745
+ },
3746
+ tokenizer(e) {
3747
+ let t = wi.exec(e);
3748
+ return t ? {
3749
+ raw: t[0],
3750
+ text: t[1],
3751
+ type: "mathBlock"
3752
+ } : void 0;
3753
+ }
3754
+ }, {
3755
+ level: "inline",
3756
+ name: "mathInline",
3757
+ renderer: (e) => Fi("span", e.text, e.display),
3758
+ start: (e) => e.indexOf("$"),
3759
+ tokenizer(e) {
3760
+ let t = Di.exec(e);
3761
+ if (t) return {
3762
+ display: !0,
3763
+ raw: t[0],
3764
+ text: t[1],
3765
+ type: "mathInline"
3766
+ };
3767
+ let n = Oi.exec(e);
3768
+ return n ? {
3769
+ display: !1,
3770
+ raw: n[0],
3771
+ text: n[1],
3772
+ type: "mathInline"
3773
+ } : void 0;
3774
+ }
3775
+ }],
3776
+ hooks: {
3777
+ emStrongMask: Ii,
3778
+ provideParser(e) {
3779
+ let t;
3780
+ return t = e ? (e, t) => new Li(t).parse(e) : (e, t) => new Li(t).parseInline(e), t;
3781
+ }
3782
+ }
3783
+ };
3784
+ function zi({ math: e = !1 } = {}) {
3785
+ let t = new _i();
3786
+ return t.use({ renderer: Pi }), e && t.use(Ri), t;
3717
3787
  }
3718
3788
  //#endregion
3719
3789
  //#region ../../packages/atoms/src/components/markdown/styles.ts
3720
- var ki = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{margin:var(--cx-spacing-x-large) 0 var(--cx-spacing-medium);font-weight:var(--cx-font-weight-semibold);line-height:1.3;display:block}:host p,:host ul,:host ol,:host blockquote,:host pre{display:block}:host :first-child{margin-top:0}:host h1{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-2x-large)}:host h2{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-x-large)}:host h3{font-size:var(--cx-font-size-large)}:host h4{font-size:var(--cx-font-size-medium-large)}:host h5{font-size:var(--cx-font-size-medium)}:host h6{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-medium)}:host p{margin:0 0 var(--cx-spacing-medium)}:host ul,:host ol{margin:0 0 var(--cx-spacing-medium);padding-left:var(--cx-spacing-2x-large)}:host li+li{margin-top:var(--cx-spacing-2x-small)}:host li>ul,:host li>ol{margin-top:var(--cx-spacing-2x-small);margin-bottom:0}:host li>input[type=checkbox]{margin-right:var(--cx-spacing-2x-small)}:host blockquote{margin:0 0 var(--cx-spacing-medium);padding:var(--cx-spacing-small) var(--cx-spacing-medium);border-left:4px solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}:host blockquote blockquote{margin-top:var(--cx-spacing-small);background:0 0}:host blockquote>:last-child{margin-bottom:0}:host a{color:var(--cx-color-primary-600);text-decoration:none}:host a:hover{text-decoration:underline}:host hr{height:0;margin:var(--cx-spacing-x-large) 0;border:0;border-top:1px solid var(--cx-color-neutral-300)}:host img{max-width:100%;height:auto}:host :not(pre)>code:not([class*=language-]){border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.15em .35em;font-size:.9em}:host table{margin:0 0 var(--cx-spacing-medium);border-collapse:collapse;width:auto;max-width:100%}:host th,:host td{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-bottom:1px solid var(--cx-color-neutral-200)}:host th:not([align]),:host td:not([align]),:host th[align=left],:host td[align=left]{text-align:left}:host th[align=center],:host td[align=center]{text-align:center}:host th[align=right],:host td[align=right]{text-align:right}:host th{border-bottom:2px solid var(--cx-color-neutral-300);font-weight:var(--cx-font-weight-semibold);white-space:nowrap}:host tbody tr:last-child td{border-bottom:0}:host kbd{border:1px solid var(--cx-color-neutral-300);border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.1em .4em;font-size:.85em}`, Ai = r`:host code[class*=language-],:host pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}:host code[class*=language-] ::-moz-selection,:host code[class*=language-]::-moz-selection,:host pre[class*=language-] ::-moz-selection,:host pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}:host code[class*=language-] ::selection,:host code[class*=language-]::selection,:host pre[class*=language-] ::selection,:host pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{:host code[class*=language-],:host pre[class*=language-]{text-shadow:none}}:host pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:host :not(pre)>code[class*=language-],:host pre[class*=language-]{background:#f5f2f0}:host :not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}:host .token.cdata,:host .token.comment,:host .token.doctype,:host .token.prolog{color:#708090}:host .token.punctuation{color:#999}:host .token.namespace{opacity:.7}:host .token.boolean,:host .token.constant,:host .token.deleted,:host .token.number,:host .token.property,:host .token.symbol,:host .token.tag{color:#905}:host .token.attr-name,:host .token.builtin,:host .token.char,:host .token.inserted,:host .token.selector,:host .token.string{color:#690}:host .language-css .token.string,:host .style .token.string,:host .token.entity,:host .token.operator,:host .token.url{color:#9a6e3a;background:#ffffff80}:host .token.atrule,:host .token.attr-value,:host .token.keyword{color:#07a}:host .token.class-name,:host .token.function{color:#dd4a68}:host .token.important,:host .token.regex,:host .token.variable{color:#e90}:host .token.bold,:host .token.important{font-weight:700}:host .token.italic{font-style:italic}:host .token.entity{cursor:help}:host details.cx-frontmatter{margin:var(--cx-spacing-medium) 0;color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small)}:host details.cx-frontmatter summary{cursor:pointer}:host details.cx-frontmatter pre{margin:var(--cx-spacing-2x-small) 0 0;padding:var(--cx-spacing-small);border-radius:var(--cx-border-radius-medium);background:var(--cx-color-neutral-100);overflow-x:auto}:host pre.mermaid{margin:var(--cx-spacing-medium) 0;text-align:center;background:0 0;overflow-x:auto}:host pre.mermaid svg{max-width:100%;height:auto}:host .cx-code-block{position:relative}:host .cx-code-block>cx-icon-button{opacity:0;transition:opacity var(--cx-transition-fast) ease;position:absolute;inset-block-start:var(--cx-spacing-2x-small);inset-inline-end:var(--cx-spacing-2x-small)}:host .cx-code-block:hover>cx-icon-button,:host .cx-code-block:focus-within>cx-icon-button{opacity:1}`, ji = r`
3721
- ${ki}
3722
- ${Ai}
3723
- `, Mi = `pre.${xi}:not([data-processed])`, Ni = 0, Pi = "a[href], details, summary, button, cx-icon-button, input, label, [role=\"button\"], .clickable", Fi = "pre > code", Ii = "cx-code-block", Li = 1500, $ = class extends g {
3790
+ var Bi = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host h4,:host h5,:host h6{margin:var(--cx-spacing-x-large) 0 var(--cx-spacing-medium);font-weight:var(--cx-font-weight-semibold);line-height:1.3;display:block}:host p,:host ul,:host ol,:host blockquote,:host pre{display:block}:host :first-child{margin-top:0}:host h1{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-2x-large)}:host h2{padding-bottom:var(--cx-spacing-x-small);border-bottom:1px solid var(--cx-color-neutral-300);font-size:var(--cx-font-size-x-large)}:host h3{font-size:var(--cx-font-size-large)}:host h4{font-size:var(--cx-font-size-medium-large)}:host h5{font-size:var(--cx-font-size-medium)}:host h6{color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-medium)}:host p{margin:0 0 var(--cx-spacing-medium)}:host ul,:host ol{margin:0 0 var(--cx-spacing-medium);padding-left:var(--cx-spacing-2x-large)}:host li+li{margin-top:var(--cx-spacing-2x-small)}:host li>ul,:host li>ol{margin-top:var(--cx-spacing-2x-small);margin-bottom:0}:host li>input[type=checkbox]{margin-right:var(--cx-spacing-2x-small)}:host blockquote{margin:0 0 var(--cx-spacing-medium);padding:var(--cx-spacing-small) var(--cx-spacing-medium);border-left:4px solid var(--cx-color-neutral-300);background:var(--cx-color-neutral-100);color:var(--cx-color-neutral-700)}:host blockquote blockquote{margin-top:var(--cx-spacing-small);background:0 0}:host blockquote>:last-child{margin-bottom:0}:host a{color:var(--cx-color-primary-600);text-decoration:none}:host a:hover{text-decoration:underline}:host hr{height:0;margin:var(--cx-spacing-x-large) 0;border:0;border-top:1px solid var(--cx-color-neutral-300)}:host img{max-width:100%;height:auto}:host :not(pre)>code:not([class*=language-]){border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.15em .35em;font-size:.9em}:host table{margin:0 0 var(--cx-spacing-medium);border-collapse:collapse;width:auto;max-width:100%}:host th,:host td{padding:var(--cx-spacing-x-small) var(--cx-spacing-medium);border-bottom:1px solid var(--cx-color-neutral-200)}:host th:not([align]),:host td:not([align]),:host th[align=left],:host td[align=left]{text-align:left}:host th[align=center],:host td[align=center]{text-align:center}:host th[align=right],:host td[align=right]{text-align:right}:host th{border-bottom:2px solid var(--cx-color-neutral-300);font-weight:var(--cx-font-weight-semibold);white-space:nowrap}:host tbody tr:last-child td{border-bottom:0}:host kbd{border:1px solid var(--cx-color-neutral-300);border-radius:var(--cx-border-radius-small);background:var(--cx-color-neutral-100);font-family:var(--cx-font-mono);padding:.1em .4em;font-size:.85em}`, Vi = r`:host code[class*=language-],:host pre[class*=language-]{color:#000;text-shadow:0 1px #fff;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;tab-size:4;hyphens:none;background:0 0;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;line-height:1.5}:host code[class*=language-] ::-moz-selection,:host code[class*=language-]::-moz-selection,:host pre[class*=language-] ::-moz-selection,:host pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}:host code[class*=language-] ::selection,:host code[class*=language-]::selection,:host pre[class*=language-] ::selection,:host pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{:host code[class*=language-],:host pre[class*=language-]{text-shadow:none}}:host pre[class*=language-]{margin:.5em 0;padding:1em;overflow:auto}:host :not(pre)>code[class*=language-],:host pre[class*=language-]{background:#f5f2f0}:host :not(pre)>code[class*=language-]{white-space:normal;border-radius:.3em;padding:.1em}:host .token.cdata,:host .token.comment,:host .token.doctype,:host .token.prolog{color:#708090}:host .token.punctuation{color:#999}:host .token.namespace{opacity:.7}:host .token.boolean,:host .token.constant,:host .token.deleted,:host .token.number,:host .token.property,:host .token.symbol,:host .token.tag{color:#905}:host .token.attr-name,:host .token.builtin,:host .token.char,:host .token.inserted,:host .token.selector,:host .token.string{color:#690}:host .language-css .token.string,:host .style .token.string,:host .token.entity,:host .token.operator,:host .token.url{color:#9a6e3a;background:#ffffff80}:host .token.atrule,:host .token.attr-value,:host .token.keyword{color:#07a}:host .token.class-name,:host .token.function{color:#dd4a68}:host .token.important,:host .token.regex,:host .token.variable{color:#e90}:host .token.bold,:host .token.important{font-weight:700}:host .token.italic{font-style:italic}:host .token.entity{cursor:help}:host details.cx-frontmatter{margin:var(--cx-spacing-medium) 0;color:var(--cx-color-neutral-600);font-size:var(--cx-font-size-small)}:host details.cx-frontmatter summary{cursor:pointer}:host details.cx-frontmatter pre{margin:var(--cx-spacing-2x-small) 0 0;padding:var(--cx-spacing-small);border-radius:var(--cx-border-radius-medium);background:var(--cx-color-neutral-100);overflow-x:auto}:host pre.mermaid{margin:var(--cx-spacing-medium) 0;text-align:center;background:0 0;overflow-x:auto}:host pre.mermaid svg{max-width:100%;height:auto}:host .cx-code-block{position:relative}:host .cx-code-block>cx-icon-button{opacity:0;transition:opacity var(--cx-transition-fast) ease;position:absolute;inset-block-start:var(--cx-spacing-2x-small);inset-inline-end:var(--cx-spacing-2x-small)}:host .cx-code-block:hover>cx-icon-button,:host .cx-code-block:focus-within>cx-icon-button{opacity:1}`, Hi = r`
3791
+ ${Bi}
3792
+ ${Vi}
3793
+ `, Ui = `pre.${xi}:not([data-processed])`, Wi = `.${Ci}:not([data-processed])`, Gi = () => import("./katex.KcI9vfm6.js"), Ki = 0, qi = "a[href], details, summary, button, cx-icon-button, input, label, [role=\"button\"], .clickable", Ji = "pre > code", Yi = "cx-code-block", Xi = 1500, $ = class extends g {
3724
3794
  constructor(...e) {
3725
- super(...e), this.localize = new u(this), this.#n = Oi(), this.#r = /* @__PURE__ */ new Map(), this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.renderer = {}, this.extensions = [];
3795
+ super(...e), this.localize = new u(this), this.#n = zi(), this.#r = /* @__PURE__ */ new Map(), this.loadKatex = Gi, this.frontmatter = {}, this.classname = "", this.liveScript = !1, this.linkTarget = "", this.showMathNotation = !1, this.renderer = {}, this.extensions = [];
3726
3796
  }
3727
- static #e = this.styles = ji;
3797
+ static #e = this.styles = Hi;
3728
3798
  static #t = this.dependencies = { "cx-icon-button": p };
3729
3799
  #n;
3730
3800
  #r;
@@ -3734,11 +3804,14 @@ var ki = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3734
3804
  disconnectedCallback() {
3735
3805
  super.disconnectedCallback(), this.#r.forEach(clearTimeout), this.#r.clear();
3736
3806
  }
3807
+ willUpdate(e) {
3808
+ super.willUpdate(e), e.has("showMathNotation") && (this.hasUpdated ? this.handleRenderedWithNewMarkdown() : this.#l());
3809
+ }
3737
3810
  updateRendered() {
3738
3811
  this.rendered = this.#i();
3739
3812
  }
3740
3813
  handleClick(e) {
3741
- let t = e.target?.closest(Pi);
3814
+ let t = e.target?.closest(qi);
3742
3815
  t && this.contains(t) && e.stopPropagation();
3743
3816
  }
3744
3817
  handleRenderedWithNewMarkdown() {
@@ -3746,20 +3819,20 @@ var ki = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3746
3819
  }
3747
3820
  #i() {
3748
3821
  if (!this.markdown) return this.frontmatter = {}, "";
3749
- let { body: e, data: t, raw: n } = wi(this.markdown);
3822
+ let { body: e, data: t, raw: n } = ji(this.markdown);
3750
3823
  this.frontmatter = t;
3751
- let r = this.#n.parse(e), i = n ? Ti(n, this.localize.term("metadata")) + r : r;
3824
+ let r = this.#n.parse(e), i = n ? Mi(n, this.localize.term("metadata")) + r : r;
3752
3825
  return this.liveScript ? i : m(i);
3753
3826
  }
3754
3827
  #a() {
3755
3828
  if (this.linkTarget) for (let e of this.querySelectorAll("a[href]")) e.setAttribute("target", this.linkTarget), this.linkTarget === "_blank" && e.setAttribute("rel", "noopener noreferrer");
3756
3829
  }
3757
3830
  #o() {
3758
- for (let e of this.querySelectorAll(Fi)) {
3831
+ for (let e of this.querySelectorAll(Ji)) {
3759
3832
  let t = e.parentElement;
3760
- if (!t || t.parentElement?.classList.contains(Ii)) continue;
3833
+ if (!t || t.parentElement?.classList.contains(Yi)) continue;
3761
3834
  let n = document.createElement("div");
3762
- n.className = Ii, t.replaceWith(n), n.append(t, this.#s(e));
3835
+ n.className = Yi, t.replaceWith(n), n.append(t, this.#s(e));
3763
3836
  }
3764
3837
  }
3765
3838
  #s(e) {
@@ -3776,17 +3849,17 @@ var ki = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3776
3849
  }
3777
3850
  t.name = "check", t.label = this.localize.term("copied"), clearTimeout(this.#r.get(t)), this.#r.set(t, window.setTimeout(() => {
3778
3851
  t.name = "content_copy", t.label = this.localize.term("copy"), this.#r.delete(t);
3779
- }, Li));
3852
+ }, Xi));
3780
3853
  }
3781
3854
  #l() {
3782
- this.#n = Oi(), this.#n.use({
3855
+ this.#n = zi({ math: this.showMathNotation }), this.#n.use({
3783
3856
  extensions: this.extensions,
3784
3857
  renderer: this.renderer
3785
3858
  });
3786
3859
  }
3787
3860
  async #u(e) {
3788
3861
  try {
3789
- let { default: t } = await import("./mermaid.core.CUTdrxBG.js");
3862
+ let { default: t } = await import("./mermaid.core.m1JI7kDY.js");
3790
3863
  t.initialize({
3791
3864
  securityLevel: "strict",
3792
3865
  startOnLoad: !1,
@@ -3796,28 +3869,39 @@ var ki = r`:host{line-height:1.6;display:block}:host h1,:host h2,:host h3,:host
3796
3869
  let e = n.textContent ?? "";
3797
3870
  n.setAttribute("data-processed", "true");
3798
3871
  try {
3799
- Ni += 1;
3800
- let { bindFunctions: r, svg: i } = await t.render(`cx-mermaid-${Ni}`, e);
3872
+ Ki += 1;
3873
+ let { bindFunctions: r, svg: i } = await t.render(`cx-mermaid-${Ki}`, e);
3801
3874
  n.innerHTML = i, r?.(n);
3802
3875
  } catch {
3803
3876
  n.textContent = e;
3804
3877
  }
3805
3878
  }
3806
- } catch {} finally {
3807
- this.emit("cx-ready");
3879
+ } catch {}
3880
+ }
3881
+ async #d(e) {
3882
+ if (window.MathMLElement === void 0) return;
3883
+ let t = await this.loadKatex().catch(() => void 0);
3884
+ if (t) {
3885
+ for (let n of e) if (!n.hasAttribute("data-processed")) {
3886
+ n.setAttribute("data-processed", "true");
3887
+ try {
3888
+ n.innerHTML = t.renderToString(n.textContent ?? "", {
3889
+ displayMode: n.hasAttribute("data-display"),
3890
+ output: "mathml"
3891
+ });
3892
+ } catch {}
3893
+ }
3808
3894
  }
3809
3895
  }
3896
+ async #f() {
3897
+ let e = [], t = this.querySelectorAll(Ui), n = this.querySelectorAll(Wi);
3898
+ t.length > 0 && e.push(this.#u(t)), n.length > 0 && e.push(this.#d(n)), e.length > 0 && await Promise.all(e), this.emit("cx-ready");
3899
+ }
3810
3900
  render() {
3811
3901
  return n`<div class=${this.classname} @click=${this.handleClick}>${h(this.rendered)}</div>`;
3812
3902
  }
3813
3903
  updated() {
3814
- this.#a(), this.#o(), this.liveScript && zi(this);
3815
- let e = this.querySelectorAll(Mi);
3816
- if (e.length === 0) {
3817
- this.emit("cx-ready");
3818
- return;
3819
- }
3820
- this.#u(e);
3904
+ this.#a(), this.#o(), this.liveScript && Qi(this), this.#f();
3821
3905
  }
3822
3906
  };
3823
3907
  o([i({ type: String }), s("design:type", Object)], $.prototype, "classname", void 0), o([i({
@@ -3827,7 +3911,10 @@ o([i({ type: String }), s("design:type", Object)], $.prototype, "classname", voi
3827
3911
  }), s("design:type", Object)], $.prototype, "liveScript", void 0), o([i({
3828
3912
  attribute: "link-target",
3829
3913
  type: String
3830
- }), s("design:type", Object)], $.prototype, "linkTarget", void 0), o([i({ type: String }), s("design:type", String)], $.prototype, "markdown", void 0), o([i({ type: Object }), s("design:type", Object)], $.prototype, "renderer", void 0), o([i({ type: Object }), s("design:type", Array)], $.prototype, "extensions", void 0), o([a(), s("design:type", String)], $.prototype, "rendered", void 0), o([
3914
+ }), s("design:type", Object)], $.prototype, "linkTarget", void 0), o([i({
3915
+ attribute: "show-math-notation",
3916
+ type: Boolean
3917
+ }), s("design:type", Object)], $.prototype, "showMathNotation", void 0), o([i({ type: String }), s("design:type", String)], $.prototype, "markdown", void 0), o([i({ type: Object }), s("design:type", Object)], $.prototype, "renderer", void 0), o([i({ type: Object }), s("design:type", Array)], $.prototype, "extensions", void 0), o([a(), s("design:type", String)], $.prototype, "rendered", void 0), o([
3831
3918
  d("liveScript"),
3832
3919
  d("markdown"),
3833
3920
  s("design:type", Function),
@@ -3840,8 +3927,8 @@ o([i({ type: String }), s("design:type", Object)], $.prototype, "classname", voi
3840
3927
  s("design:paramtypes", []),
3841
3928
  s("design:returntype", void 0)
3842
3929
  ], $.prototype, "handleRenderedWithNewMarkdown", null), $ = o([l("cx-markdown")], $);
3843
- var Ri = $;
3844
- function zi(e) {
3930
+ var Zi = $;
3931
+ function Qi(e) {
3845
3932
  e.querySelectorAll("script").forEach((e) => {
3846
3933
  let t = document.createElement("script");
3847
3934
  e.src ? t.src = e.src : t.text = `(function() {\n${e.text}\n})();`, Array.from(e.attributes).forEach((e) => {
@@ -3850,4 +3937,4 @@ function zi(e) {
3850
3937
  });
3851
3938
  }
3852
3939
  //#endregion
3853
- export { Y as a, yi as i, ji as n, g as o, wi as r, Ri as t };
3940
+ export { Y as a, yi as i, Hi as n, g as o, ji as r, Zi as t };