@toimc/markdown 0.0.1

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 (347) hide show
  1. package/dist/CodeBlock.test.d.ts +2 -0
  2. package/dist/CodeBlock.test.d.ts.map +1 -0
  3. package/dist/CodeBlock.vue.d.ts +12 -0
  4. package/dist/CodeBlock.vue.d.ts.map +1 -0
  5. package/dist/LatexBlock.test.d.ts +2 -0
  6. package/dist/LatexBlock.test.d.ts.map +1 -0
  7. package/dist/LatexBlock.vue.d.ts +8 -0
  8. package/dist/LatexBlock.vue.d.ts.map +1 -0
  9. package/dist/MarkdownRenderer.test.d.ts +2 -0
  10. package/dist/MarkdownRenderer.test.d.ts.map +1 -0
  11. package/dist/MarkdownRenderer.vue.d.ts +8 -0
  12. package/dist/MarkdownRenderer.vue.d.ts.map +1 -0
  13. package/dist/MermaidBlock.test.d.ts +2 -0
  14. package/dist/MermaidBlock.test.d.ts.map +1 -0
  15. package/dist/MermaidBlock.vue.d.ts +7 -0
  16. package/dist/MermaidBlock.vue.d.ts.map +1 -0
  17. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +1 -0
  18. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +89 -0
  19. package/dist/arc-CFxpoaLu.js +82 -0
  20. package/dist/arc-Dh2Zrypi.cjs +1 -0
  21. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +1 -0
  22. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +3 -0
  23. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +36 -0
  24. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +4155 -0
  25. package/dist/array-CApNbSU9.js +6 -0
  26. package/dist/array-DZSRzHA_.cjs +1 -0
  27. package/dist/bash-B3CVAkVJ.cjs +1 -0
  28. package/dist/bash-Cm4CVo6v.js +3 -0
  29. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +3157 -0
  30. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +132 -0
  31. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +2982 -0
  32. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +10 -0
  33. package/dist/channel-CNZiSge7.cjs +1 -0
  34. package/dist/channel-CqlbSsMQ.js +5 -0
  35. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +1 -0
  36. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +61 -0
  37. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  38. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +15 -0
  39. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +275 -0
  40. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +1 -0
  41. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +2042 -0
  42. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +231 -0
  43. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +5 -0
  44. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +15 -0
  45. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +490 -0
  46. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +88 -0
  47. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +82 -0
  48. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +1 -0
  49. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +593 -0
  50. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +10 -0
  51. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +3357 -0
  52. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +206 -0
  53. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +127 -0
  54. package/dist/chunk-I66GZJ75-xmbkwRyp.js +3754 -0
  55. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +4135 -0
  56. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +156 -0
  57. package/dist/chunk-JWPE2WC7-B8JIODrM.js +8 -0
  58. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  59. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +1 -0
  60. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +26 -0
  61. package/dist/chunk-KEIR6QF5-RwFi50en.js +21456 -0
  62. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +161 -0
  63. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +1335 -0
  64. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +2 -0
  65. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +62 -0
  66. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +3738 -0
  67. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +1 -0
  68. package/dist/chunk-RYQCIY6F-UBebC0ib.js +241 -0
  69. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +1 -0
  70. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +32 -0
  71. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +1 -0
  72. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +67 -0
  73. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +70 -0
  74. package/dist/chunk-WRU74C26-UGtU6H2a.js +1636 -0
  75. package/dist/chunk-XXDRQBXY-GENMsCHk.js +9 -0
  76. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +1 -0
  77. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  78. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +12 -0
  79. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +1 -0
  80. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +30 -0
  81. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +30 -0
  82. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +1 -0
  83. package/dist/composables/useHighlighter.d.ts +20 -0
  84. package/dist/composables/useHighlighter.d.ts.map +1 -0
  85. package/dist/composables/useHighlighter.test.d.ts +2 -0
  86. package/dist/composables/useHighlighter.test.d.ts.map +1 -0
  87. package/dist/composables/useMarkdownIt.d.ts +4 -0
  88. package/dist/composables/useMarkdownIt.d.ts.map +1 -0
  89. package/dist/composables/useMarkdownIt.test.d.ts +2 -0
  90. package/dist/composables/useMarkdownIt.test.d.ts.map +1 -0
  91. package/dist/composables/useShikiTokenizer.d.ts +17 -0
  92. package/dist/composables/useShikiTokenizer.d.ts.map +1 -0
  93. package/dist/composables/useShikiTokenizer.test.d.ts +2 -0
  94. package/dist/composables/useShikiTokenizer.test.d.ts.map +1 -0
  95. package/dist/composables/useStreamingMarkdown.d.ts +6 -0
  96. package/dist/composables/useStreamingMarkdown.d.ts.map +1 -0
  97. package/dist/composables/useStreamingMarkdown.test.d.ts +2 -0
  98. package/dist/composables/useStreamingMarkdown.test.d.ts.map +1 -0
  99. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +1 -0
  100. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +2254 -0
  101. package/dist/css-BbwcBM_4.js +2 -0
  102. package/dist/css-CEHhC-OC.cjs +1 -0
  103. package/dist/css-Ca3W2DHx.cjs +1 -0
  104. package/dist/css-HuzvwXs-.js +3 -0
  105. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +3 -0
  106. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +1 -0
  107. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +62 -0
  108. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +355 -0
  109. package/dist/cytoscape.esm-BKhIYxsH.cjs +321 -0
  110. package/dist/cytoscape.esm-DMXbtFI-.js +18145 -0
  111. package/dist/dagre-DarAkhy1.cjs +1 -0
  112. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +328 -0
  113. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +4 -0
  114. package/dist/dagre-x4cMb6gU.js +1699 -0
  115. package/dist/defaultLocale-ybN1Vtvg.cjs +1 -0
  116. package/dist/defaultLocale-yzzuPw6P.js +198 -0
  117. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +300 -0
  118. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +30 -0
  119. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +3 -0
  120. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +432 -0
  121. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +24 -0
  122. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +134 -0
  123. package/dist/diagram-Q27KOJAE-ink_R6qE.js +527 -0
  124. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +24 -0
  125. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +41 -0
  126. package/dist/diagram-UB23O5K3-C6rqCJBb.js +214 -0
  127. package/dist/dist-BP2me-br.js +59 -0
  128. package/dist/dist-Dwv2VYAL.cjs +1 -0
  129. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +100 -0
  130. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +1 -0
  131. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +1727 -0
  132. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +85 -0
  133. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +3 -0
  134. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +1 -0
  135. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +16 -0
  136. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +1 -0
  137. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  138. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  139. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  140. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  141. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  142. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  143. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  144. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  145. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  146. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  147. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  148. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  149. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  150. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  151. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  152. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  153. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  154. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  155. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  156. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  157. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  158. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  159. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  160. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  161. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  162. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  163. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  164. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  165. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  166. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  167. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  168. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  169. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  170. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  171. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  172. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  173. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  174. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  175. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  176. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  177. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  178. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  179. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  180. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  181. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  182. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  183. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  184. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  185. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  186. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  187. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  188. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  189. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  190. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  191. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  192. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  193. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  194. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  195. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  196. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  197. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +3073 -0
  198. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +292 -0
  199. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +1 -0
  200. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +3 -0
  201. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +733 -0
  202. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +106 -0
  203. package/dist/github-dark-C85MA6EW.js +4 -0
  204. package/dist/github-dark-lSLm2DGc.cjs +1 -0
  205. package/dist/github-light-5VJ9LmmZ.cjs +1 -0
  206. package/dist/github-light-Dzg0sEwI.js +4 -0
  207. package/dist/go-BEdBk4fh.js +3 -0
  208. package/dist/go-DZ-Uc_xo.cjs +1 -0
  209. package/dist/graphlib-BaETKKSa.cjs +1 -0
  210. package/dist/graphlib-DoD0LnUK.js +1267 -0
  211. package/dist/html-BH9giSUA.js +2 -0
  212. package/dist/html-CptZ4PZn.cjs +1 -0
  213. package/dist/html-Ctxsat8s.js +10 -0
  214. package/dist/html-DtqQp8LO.cjs +1 -0
  215. package/dist/index.cjs +683 -0
  216. package/dist/index.d.ts +7 -0
  217. package/dist/index.d.ts.map +1 -0
  218. package/dist/index.mjs +55235 -0
  219. package/dist/info-DKCQHKI2-BD_vOCz6.js +3 -0
  220. package/dist/info-DKCQHKI2-p0Lazone.cjs +1 -0
  221. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +20 -0
  222. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +2 -0
  223. package/dist/init-BJdqMO10.cjs +1 -0
  224. package/dist/init-sjaVZO3f.js +13 -0
  225. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +719 -0
  226. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +70 -0
  227. package/dist/javascript--0qAxhnA.js +2 -0
  228. package/dist/javascript-Bk0bJ4nQ.js +3 -0
  229. package/dist/javascript-D7PTxwgo.cjs +1 -0
  230. package/dist/javascript-Dr3Aumve.cjs +1 -0
  231. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +884 -0
  232. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +139 -0
  233. package/dist/json-Ay3bKyOM.cjs +1 -0
  234. package/dist/json-DFt_0dbD.js +3 -0
  235. package/dist/json-DKYh8vgu.cjs +1 -0
  236. package/dist/json-DVwBUiza.js +2 -0
  237. package/dist/jsx-BHkwOr0x.js +3 -0
  238. package/dist/jsx-BxUD2I2g.cjs +1 -0
  239. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +89 -0
  240. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +974 -0
  241. package/dist/katex-BfeHGk4M.js +21977 -0
  242. package/dist/katex-CEF6MvLx.cjs +257 -0
  243. package/dist/katex.css +1 -0
  244. package/dist/line-8EHPtDZA.cjs +1 -0
  245. package/dist/line-BifI9Y7j.js +34 -0
  246. package/dist/linear-Nt9BuHfn.cjs +1 -0
  247. package/dist/linear-l8AD1ib_.js +288 -0
  248. package/dist/map-CCpPjiU9.cjs +1 -0
  249. package/dist/map-DUk1uXZC.js +241 -0
  250. package/dist/markdown-DJNo_Vtk.cjs +1 -0
  251. package/dist/markdown-nUtTZkU8.js +3 -0
  252. package/dist/markdown.css +2 -0
  253. package/dist/mermaid-parser.core-BupC9XGF.js +638 -0
  254. package/dist/mermaid-parser.core-aXxW1VLR.cjs +6 -0
  255. package/dist/mermaid.core-C05C5gh_.cjs +41 -0
  256. package/dist/mermaid.core-CxM-VhZd.js +2297 -0
  257. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +1006 -0
  258. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +96 -0
  259. package/dist/ordinal-Bm_chml2.cjs +1 -0
  260. package/dist/ordinal-CNQzPcrr.js +65 -0
  261. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +1 -0
  262. package/dist/packet-7NZHBO7P-CgBlALV1.js +3 -0
  263. package/dist/path-DIS6ck99.cjs +1 -0
  264. package/dist/path-DVvH25eQ.js +84 -0
  265. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +1 -0
  266. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +94 -0
  267. package/dist/pie-RZYD4A2V-CryPC-P_.js +3 -0
  268. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +1 -0
  269. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +39 -0
  270. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +203 -0
  271. package/dist/python-CoEq_Gwh.cjs +1 -0
  272. package/dist/python-D0AaDoWC.js +3 -0
  273. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +2001 -0
  274. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +7 -0
  275. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +1 -0
  276. package/dist/radar-I7S5WNFK-DgzJDRy3.js +3 -0
  277. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +1 -0
  278. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +3 -0
  279. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +3 -0
  280. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +1 -0
  281. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +1 -0
  282. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +3 -0
  283. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +3 -0
  284. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +1 -0
  285. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +1 -0
  286. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +76 -0
  287. package/dist/renderers/tokensToHtml.d.ts +11 -0
  288. package/dist/renderers/tokensToHtml.d.ts.map +1 -0
  289. package/dist/renderers/tokensToHtml.test.d.ts +2 -0
  290. package/dist/renderers/tokensToHtml.test.d.ts.map +1 -0
  291. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +2223 -0
  292. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +84 -0
  293. package/dist/rolldown-runtime-B0aSnxlc.js +20 -0
  294. package/dist/rolldown-runtime-DF3sbh8G.cjs +1 -0
  295. package/dist/rough.esm-B2w_aYoc.js +1361 -0
  296. package/dist/rough.esm-ChRLLRha.cjs +1 -0
  297. package/dist/rust-BrRMzTsN.js +3 -0
  298. package/dist/rust-DWYDZl_E.cjs +1 -0
  299. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +972 -0
  300. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +40 -0
  301. package/dist/scss-BY5CCWQ_.cjs +1 -0
  302. package/dist/scss-CoGT9c_3.js +5 -0
  303. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +162 -0
  304. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +4156 -0
  305. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +46 -0
  306. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +1 -0
  307. package/dist/sql-CF-HzF4U.cjs +1 -0
  308. package/dist/sql-DvCCsF21.js +3 -0
  309. package/dist/src-C7bjHtAI.js +2139 -0
  310. package/dist/src-D9o9TOtH.cjs +1 -0
  311. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +1 -0
  312. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +220 -0
  313. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +30 -0
  314. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +1 -0
  315. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +5069 -0
  316. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +1 -0
  317. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +8 -0
  318. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +30 -0
  319. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +120 -0
  320. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +1069 -0
  321. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +1 -0
  322. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +3 -0
  323. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +3 -0
  324. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +1 -0
  325. package/dist/tsx-C0_HfRFA.cjs +1 -0
  326. package/dist/tsx-Cb6KMAZH.js +3 -0
  327. package/dist/typescript-8c29HXpw.cjs +1 -0
  328. package/dist/typescript-C4BXhs_3.js +3 -0
  329. package/dist/typescript-DFf19o_s.js +2 -0
  330. package/dist/typescript-DqeHC96Z.cjs +1 -0
  331. package/dist/utils/extractCompleteMarkdown.d.ts +10 -0
  332. package/dist/utils/extractCompleteMarkdown.d.ts.map +1 -0
  333. package/dist/utils/extractCompleteMarkdown.test.d.ts +2 -0
  334. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +1 -0
  335. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +34 -0
  336. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +1880 -0
  337. package/dist/vue-DG6ivzcc.cjs +1 -0
  338. package/dist/vue-DcTnNxpt.js +21 -0
  339. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +3 -0
  340. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +1 -0
  341. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +78 -0
  342. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +645 -0
  343. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +7 -0
  344. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +2101 -0
  345. package/dist/yaml-CLS1q7Pp.cjs +1 -0
  346. package/dist/yaml-DXmkPuRD.js +3 -0
  347. package/package.json +51 -0
@@ -0,0 +1 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./graphlib-BaETKKSa.cjs"),r=require("./map-CCpPjiU9.cjs");var i=4;function a(e){return r.r(e,i)}function o(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:s(e),edges:c(e)};return n.r(e.graph())||(t.value=a(e.graph())),t}function s(e){return r.t(e.nodes(),function(t){var r=e.node(t),i=e.parent(t),a={v:t};return n.r(r)||(a.value=r),n.r(i)||(a.parent=i),a})}function c(e){return r.t(e.edges(),function(t){var r=e.edge(t),i={v:t.v,w:t.w};return n.r(t.name)||(i.name=t.name),n.r(r)||(i.value=r),i})}var l=new Map,u=new Map,d=new Map,f=e.n(()=>{u.clear(),d.clear(),l.clear()},`clear`),p=e.n((e,n)=>{let r=u.get(n)||[];return t.m.trace(`In isDescendant`,n,` `,e,` = `,r.includes(e)),r.includes(e)},`isDescendant`),m=e.n((e,n)=>{let r=u.get(n)||[];return t.m.info(`Descendants of `,n,` is `,r),t.m.info(`Edge is `,e),e.v===n||e.w===n?!1:r?r.includes(e.v)||p(e.v,n)||p(e.w,n)||r.includes(e.w):(t.m.debug(`Tilt, `,n,`,not in descendants`),!1)},`edgeInCluster`),h=e.n((e,n,r,i)=>{t.m.warn(`Copying children of `,e,`root`,i,`data`,n.node(e),i);let a=n.children(e)||[];e!==i&&a.push(e),t.m.warn(`Copying (nodes) clusterId`,e,`nodes`,a),a.forEach(a=>{if(n.children(a).length>0)h(a,n,r,i);else{let o=n.node(a);t.m.info(`cp `,a,` to `,i,` with parent `,e),r.setNode(a,o),i!==n.parent(a)&&(t.m.warn(`Setting parent`,a,n.parent(a)),r.setParent(a,n.parent(a))),e!==i&&a!==e?(t.m.debug(`Setting parent`,a,e),r.setParent(a,e)):(t.m.info(`In copy `,e,`root`,i,`data`,n.node(e),i),t.m.debug(`Not Setting parent for node=`,a,`cluster!==rootId`,e!==i,`node!==clusterId`,a!==e));let s=n.edges(a);t.m.debug(`Copying Edges`,s),s.forEach(a=>{t.m.info(`Edge`,a);let o=n.edge(a.v,a.w,a.name);t.m.info(`Edge data`,o,i);try{if(m(a,i)){let e=u.get(i)||[],s=e.includes(a.v)||p(a.v,i)||a.v===i,c=e.includes(a.w)||p(a.w,i)||a.w===i;if(s&&c)t.m.info(`Copying as `,a.v,a.w,o,a.name),r.setEdge(a.v,a.w,o,a.name),t.m.info(`newGraph edges `,r.edges(),r.edge(r.edges()[0]));else{let e=s?i:a.v,r=c?i:a.w;t.m.info(`Rebinding cross-boundary edge as `,e,r,o,a.name),n.setEdge(e,r,o,a.name)}}else t.m.info(`Skipping copy of edge `,a.v,`-->`,a.w,` rootId: `,i,` clusterId:`,e)}catch(e){t.m.error(e)}})}t.m.debug(`Removing node`,a),n.removeNode(a)})},`copy`),g=e.n((e,t)=>{let n=t.children(e),r=[...n];for(let i of n)d.set(i,e),r=[...r,...g(i,t)];return r},`extractDescendants`),_=e.n((e,t,n)=>{let r=e.edges().filter(e=>e.v===t||e.w===t),i=e.edges().filter(e=>e.v===n||e.w===n),a=r.map(e=>({v:e.v===t?n:e.v,w:e.w===t?t:e.w})),o=i.map(e=>({v:e.v,w:e.w}));return a.filter(e=>o.some(t=>e.v===t.v&&e.w===t.w))},`findCommonEdges`),v=e.n((e,n,r)=>{let i=n.children(e);if(t.m.trace(`Searching children of id `,e,i),i.length<1)return e;let a;for(let e of i){let t=v(e,n,r),i=_(n,r,t);if(t){if(i.length>0)a=t;else return t}}return a},`findNonClusterChild`),y=e.n(e=>!l.has(e)||!l.get(e).externalConnections?e:l.has(e)?l.get(e).id:e,`getAnchorId`),b=e.n((e,n)=>{if(!e||n>10){t.m.debug(`Opting out, no graph `);return}t.m.debug(`Opting in, graph `),e.nodes().forEach(function(n){e.children(n).length>0&&(t.m.warn(`Cluster identified`,n,` Replacement id in edges: `,v(n,e,n)),u.set(n,g(n,e)),l.set(n,{id:v(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let r=e.children(n),i=e.edges();r.length>0?(t.m.debug(`Cluster identified`,n,u),i.forEach(e=>{p(e.v,n)^p(e.w,n)&&(t.m.warn(`Edge: `,e,` leaves cluster `,n),t.m.warn(`Descendants of XXX `,n,`: `,u.get(n)),l.get(n).externalConnections=!0)})):t.m.debug(`Not a cluster `,n,u)});for(let t of l.keys()){let n=l.get(t).id,r=e.parent(n);r!==t&&l.has(r)&&!l.get(r).externalConnections&&(l.get(t).id=r);let i=e.edges().some(e=>e.v===t);if(n&&l.get(t)?.externalConnections&&i&&w(e,n,t)){let r=T(e,t,e.parent(n));r&&(l.get(t).id=r)}}e.edges().forEach(function(n){let r=e.edge(n);t.m.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(n)),t.m.warn(`Edge `+n.v+` -> `+n.w+`: `+JSON.stringify(e.edge(n)));let i=n.v,a=n.w;if(t.m.warn(`Fix XXX`,l,`ids:`,n.v,n.w,`Translating: `,l.get(n.v),` --- `,l.get(n.w)),l.get(n.v)||l.get(n.w)){if(t.m.warn(`Fixing and trying - removing XXX`,n.v,n.w,n.name),i=y(n.v),a=y(n.w),e.removeEdge(n.v,n.w,n.name),i!==n.v){let t=e.parent(i);l.get(t).externalConnections=!0,r.fromCluster=n.v}if(a!==n.w){let t=e.parent(a);l.get(t).externalConnections=!0,r.toCluster=n.w}t.m.warn(`Fix Replacing with XXX`,i,a,n.name),e.setEdge(i,a,r,n.name)}}),t.m.warn(`Adjusted Graph`,o(e)),x(e,0),t.m.trace(l)},`adjustClustersAndEdges`),x=e.n((e,r)=>{if(t.m.warn(`extractor - `,r,o(e),e.children(`D`)),r>10){t.m.error(`Bailing out`);return}let i=e.nodes(),a=!1;for(let t of i){let n=e.children(t);a||=n.length>0}if(!a){t.m.debug(`Done, no node has children`,e.nodes());return}t.m.debug(`Nodes = `,i,r);for(let a of i)if(t.m.debug(`Extracting node`,a,l,l.has(a)&&!l.get(a).externalConnections,!e.parent(a),e.node(a),e.children(`D`),` Depth `,r),!l.has(a))t.m.debug(`Not a cluster`,a,r);else if(l.get(a)?.clusterData?.explicitDir&&e.children(a)&&e.children(a).length>0){t.m.warn(`Cluster with explicit dir, creating subgraph for children`,a,r);let i=l.get(a).clusterData.dir,s=new n.t({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});h(a,e,s,a);let c=e.node(a)||{};e.setNode(a,{...c,clusterNode:!0,id:a,clusterData:l.get(a).clusterData,label:l.get(a).label,graph:s}),t.m.warn(`Subgraph for cluster with explicit dir created:`,a,o(s))}else if(!l.get(a).externalConnections&&e.children(a)&&e.children(a).length>0){t.m.warn(`Cluster without external connections, without a parent and with children`,a,r);let i=e.graph().rankdir===`TB`?`LR`:`TB`;l.get(a)?.clusterData?.dir&&(i=l.get(a).clusterData.dir,t.m.warn(`Fixing dir`,l.get(a).clusterData.dir,i));let s=new n.t({multigraph:!0,compound:!0}).setGraph({rankdir:i,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});h(a,e,s,a);let c=e.node(a)||{};e.setNode(a,{...c,clusterNode:!0,id:a,clusterData:l.get(a).clusterData,label:l.get(a).label,graph:s}),t.m.debug(`Old graph after copy`,o(e))}else t.m.warn(`Cluster ** `,a,` **not meeting the criteria !externalConnections:`,!l.get(a).externalConnections,` no parent: `,!e.parent(a),` children `,e.children(a)&&e.children(a).length>0,e.children(`D`),r),t.m.debug(l);i=e.nodes(),t.m.warn(`New list of nodes`,i);for(let n of i){let i=e.node(n);t.m.warn(` Now next level`,n,i),i?.clusterNode&&x(i.graph,r+1)}},`extractor`),S=e.n((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(t=>{let r=S(e,e.children(t));n=[...n,...r]}),n},`sorter`),C=e.n(e=>S(e,e.children()),`sortNodesByHierarchy`),w=e.n((e,t,n)=>{let r=e.parent(t);for(;r&&r!==n;){let t=l.get(r);if(t&&!t.externalConnections)return!0;r=e.parent(r)}return!1},`isNodeInExtractableCluster`),T=e.n((e,t,n)=>{let r=e.children(t)??[];for(let i of r){if(i===n||p(i,n))continue;let r=v(i,e,t);if(r&&!w(e,r,t))return r}return null},`findSafeAnchorNode`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return v}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return l}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return b}});
@@ -0,0 +1,241 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
+ import { m as t } from "./src-C7bjHtAI.js";
3
+ import { r as n, t as r } from "./graphlib-DoD0LnUK.js";
4
+ import { r as i, t as a } from "./map-DUk1uXZC.js";
5
+ //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/clone.js
6
+ var o = 4;
7
+ function s(e) {
8
+ return i(e, o);
9
+ }
10
+ //#endregion
11
+ //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/json.js
12
+ function c(e) {
13
+ var t = {
14
+ options: {
15
+ directed: e.isDirected(),
16
+ multigraph: e.isMultigraph(),
17
+ compound: e.isCompound()
18
+ },
19
+ nodes: l(e),
20
+ edges: u(e)
21
+ };
22
+ return n(e.graph()) || (t.value = s(e.graph())), t;
23
+ }
24
+ function l(e) {
25
+ return a(e.nodes(), function(t) {
26
+ var r = e.node(t), i = e.parent(t), a = { v: t };
27
+ return n(r) || (a.value = r), n(i) || (a.parent = i), a;
28
+ });
29
+ }
30
+ function u(e) {
31
+ return a(e.edges(), function(t) {
32
+ var r = e.edge(t), i = {
33
+ v: t.v,
34
+ w: t.w
35
+ };
36
+ return n(t.name) || (i.name = t.name), n(r) || (i.value = r), i;
37
+ });
38
+ }
39
+ //#endregion
40
+ //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-RYQCIY6F.mjs
41
+ var d = /* @__PURE__ */ new Map(), f = /* @__PURE__ */ new Map(), p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ e(() => {
42
+ f.clear(), p.clear(), d.clear();
43
+ }, "clear"), h = /* @__PURE__ */ e((e, n) => {
44
+ let r = f.get(n) || [];
45
+ return t.trace("In isDescendant", n, " ", e, " = ", r.includes(e)), r.includes(e);
46
+ }, "isDescendant"), g = /* @__PURE__ */ e((e, n) => {
47
+ let r = f.get(n) || [];
48
+ return t.info("Descendants of ", n, " is ", r), t.info("Edge is ", e), e.v === n || e.w === n ? !1 : r ? r.includes(e.v) || h(e.v, n) || h(e.w, n) || r.includes(e.w) : (t.debug("Tilt, ", n, ",not in descendants"), !1);
49
+ }, "edgeInCluster"), _ = /* @__PURE__ */ e((e, n, r, i) => {
50
+ t.warn("Copying children of ", e, "root", i, "data", n.node(e), i);
51
+ let a = n.children(e) || [];
52
+ e !== i && a.push(e), t.warn("Copying (nodes) clusterId", e, "nodes", a), a.forEach((a) => {
53
+ if (n.children(a).length > 0) _(a, n, r, i);
54
+ else {
55
+ let o = n.node(a);
56
+ t.info("cp ", a, " to ", i, " with parent ", e), r.setNode(a, o), i !== n.parent(a) && (t.warn("Setting parent", a, n.parent(a)), r.setParent(a, n.parent(a))), e !== i && a !== e ? (t.debug("Setting parent", a, e), r.setParent(a, e)) : (t.info("In copy ", e, "root", i, "data", n.node(e), i), t.debug("Not Setting parent for node=", a, "cluster!==rootId", e !== i, "node!==clusterId", a !== e));
57
+ let s = n.edges(a);
58
+ t.debug("Copying Edges", s), s.forEach((a) => {
59
+ t.info("Edge", a);
60
+ let o = n.edge(a.v, a.w, a.name);
61
+ t.info("Edge data", o, i);
62
+ try {
63
+ if (g(a, i)) {
64
+ let e = f.get(i) || [], s = e.includes(a.v) || h(a.v, i) || a.v === i, c = e.includes(a.w) || h(a.w, i) || a.w === i;
65
+ if (s && c) t.info("Copying as ", a.v, a.w, o, a.name), r.setEdge(a.v, a.w, o, a.name), t.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]));
66
+ else {
67
+ let e = s ? i : a.v, r = c ? i : a.w;
68
+ t.info("Rebinding cross-boundary edge as ", e, r, o, a.name), n.setEdge(e, r, o, a.name);
69
+ }
70
+ } else t.info("Skipping copy of edge ", a.v, "-->", a.w, " rootId: ", i, " clusterId:", e);
71
+ } catch (e) {
72
+ t.error(e);
73
+ }
74
+ });
75
+ }
76
+ t.debug("Removing node", a), n.removeNode(a);
77
+ });
78
+ }, "copy"), v = /* @__PURE__ */ e((e, t) => {
79
+ let n = t.children(e), r = [...n];
80
+ for (let i of n) p.set(i, e), r = [...r, ...v(i, t)];
81
+ return r;
82
+ }, "extractDescendants"), y = /* @__PURE__ */ e((e, t, n) => {
83
+ let r = e.edges().filter((e) => e.v === t || e.w === t), i = e.edges().filter((e) => e.v === n || e.w === n), a = r.map((e) => ({
84
+ v: e.v === t ? n : e.v,
85
+ w: e.w === t ? t : e.w
86
+ })), o = i.map((e) => ({
87
+ v: e.v,
88
+ w: e.w
89
+ }));
90
+ return a.filter((e) => o.some((t) => e.v === t.v && e.w === t.w));
91
+ }, "findCommonEdges"), b = /* @__PURE__ */ e((e, n, r) => {
92
+ let i = n.children(e);
93
+ if (t.trace("Searching children of id ", e, i), i.length < 1) return e;
94
+ let a;
95
+ for (let e of i) {
96
+ let t = b(e, n, r), i = y(n, r, t);
97
+ if (t) {
98
+ if (i.length > 0) a = t;
99
+ else return t;
100
+ }
101
+ }
102
+ return a;
103
+ }, "findNonClusterChild"), x = /* @__PURE__ */ e((e) => !d.has(e) || !d.get(e).externalConnections ? e : d.has(e) ? d.get(e).id : e, "getAnchorId"), S = /* @__PURE__ */ e((e, n) => {
104
+ if (!e || n > 10) {
105
+ t.debug("Opting out, no graph ");
106
+ return;
107
+ }
108
+ t.debug("Opting in, graph "), e.nodes().forEach(function(n) {
109
+ e.children(n).length > 0 && (t.warn("Cluster identified", n, " Replacement id in edges: ", b(n, e, n)), f.set(n, v(n, e)), d.set(n, {
110
+ id: b(n, e, n),
111
+ clusterData: e.node(n)
112
+ }));
113
+ }), e.nodes().forEach(function(n) {
114
+ let r = e.children(n), i = e.edges();
115
+ r.length > 0 ? (t.debug("Cluster identified", n, f), i.forEach((e) => {
116
+ h(e.v, n) ^ h(e.w, n) && (t.warn("Edge: ", e, " leaves cluster ", n), t.warn("Descendants of XXX ", n, ": ", f.get(n)), d.get(n).externalConnections = !0);
117
+ })) : t.debug("Not a cluster ", n, f);
118
+ });
119
+ for (let t of d.keys()) {
120
+ let n = d.get(t).id, r = e.parent(n);
121
+ r !== t && d.has(r) && !d.get(r).externalConnections && (d.get(t).id = r);
122
+ let i = e.edges().some((e) => e.v === t);
123
+ if (n && d.get(t)?.externalConnections && i && E(e, n, t)) {
124
+ let r = D(e, t, e.parent(n));
125
+ r && (d.get(t).id = r);
126
+ }
127
+ }
128
+ e.edges().forEach(function(n) {
129
+ let r = e.edge(n);
130
+ t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(n)), t.warn("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(e.edge(n)));
131
+ let i = n.v, a = n.w;
132
+ if (t.warn("Fix XXX", d, "ids:", n.v, n.w, "Translating: ", d.get(n.v), " --- ", d.get(n.w)), d.get(n.v) || d.get(n.w)) {
133
+ if (t.warn("Fixing and trying - removing XXX", n.v, n.w, n.name), i = x(n.v), a = x(n.w), e.removeEdge(n.v, n.w, n.name), i !== n.v) {
134
+ let t = e.parent(i);
135
+ d.get(t).externalConnections = !0, r.fromCluster = n.v;
136
+ }
137
+ if (a !== n.w) {
138
+ let t = e.parent(a);
139
+ d.get(t).externalConnections = !0, r.toCluster = n.w;
140
+ }
141
+ t.warn("Fix Replacing with XXX", i, a, n.name), e.setEdge(i, a, r, n.name);
142
+ }
143
+ }), t.warn("Adjusted Graph", c(e)), C(e, 0), t.trace(d);
144
+ }, "adjustClustersAndEdges"), C = /* @__PURE__ */ e((e, n) => {
145
+ if (t.warn("extractor - ", n, c(e), e.children("D")), n > 10) {
146
+ t.error("Bailing out");
147
+ return;
148
+ }
149
+ let i = e.nodes(), a = !1;
150
+ for (let t of i) {
151
+ let n = e.children(t);
152
+ a ||= n.length > 0;
153
+ }
154
+ if (!a) {
155
+ t.debug("Done, no node has children", e.nodes());
156
+ return;
157
+ }
158
+ t.debug("Nodes = ", i, n);
159
+ for (let a of i) if (t.debug("Extracting node", a, d, d.has(a) && !d.get(a).externalConnections, !e.parent(a), e.node(a), e.children("D"), " Depth ", n), !d.has(a)) t.debug("Not a cluster", a, n);
160
+ else if (d.get(a)?.clusterData?.explicitDir && e.children(a) && e.children(a).length > 0) {
161
+ t.warn("Cluster with explicit dir, creating subgraph for children", a, n);
162
+ let i = d.get(a).clusterData.dir, o = new r({
163
+ multigraph: !0,
164
+ compound: !0
165
+ }).setGraph({
166
+ rankdir: i,
167
+ nodesep: 50,
168
+ ranksep: 50,
169
+ marginx: 8,
170
+ marginy: 8
171
+ }).setDefaultEdgeLabel(function() {
172
+ return {};
173
+ });
174
+ _(a, e, o, a);
175
+ let s = e.node(a) || {};
176
+ e.setNode(a, {
177
+ ...s,
178
+ clusterNode: !0,
179
+ id: a,
180
+ clusterData: d.get(a).clusterData,
181
+ label: d.get(a).label,
182
+ graph: o
183
+ }), t.warn("Subgraph for cluster with explicit dir created:", a, c(o));
184
+ } else if (!d.get(a).externalConnections && e.children(a) && e.children(a).length > 0) {
185
+ t.warn("Cluster without external connections, without a parent and with children", a, n);
186
+ let i = e.graph().rankdir === "TB" ? "LR" : "TB";
187
+ d.get(a)?.clusterData?.dir && (i = d.get(a).clusterData.dir, t.warn("Fixing dir", d.get(a).clusterData.dir, i));
188
+ let o = new r({
189
+ multigraph: !0,
190
+ compound: !0
191
+ }).setGraph({
192
+ rankdir: i,
193
+ nodesep: 50,
194
+ ranksep: 50,
195
+ marginx: 8,
196
+ marginy: 8
197
+ }).setDefaultEdgeLabel(function() {
198
+ return {};
199
+ });
200
+ _(a, e, o, a);
201
+ let s = e.node(a) || {};
202
+ e.setNode(a, {
203
+ ...s,
204
+ clusterNode: !0,
205
+ id: a,
206
+ clusterData: d.get(a).clusterData,
207
+ label: d.get(a).label,
208
+ graph: o
209
+ }), t.debug("Old graph after copy", c(e));
210
+ } else t.warn("Cluster ** ", a, " **not meeting the criteria !externalConnections:", !d.get(a).externalConnections, " no parent: ", !e.parent(a), " children ", e.children(a) && e.children(a).length > 0, e.children("D"), n), t.debug(d);
211
+ i = e.nodes(), t.warn("New list of nodes", i);
212
+ for (let r of i) {
213
+ let i = e.node(r);
214
+ t.warn(" Now next level", r, i), i?.clusterNode && C(i.graph, n + 1);
215
+ }
216
+ }, "extractor"), w = /* @__PURE__ */ e((e, t) => {
217
+ if (t.length === 0) return [];
218
+ let n = Object.assign([], t);
219
+ return t.forEach((t) => {
220
+ let r = w(e, e.children(t));
221
+ n = [...n, ...r];
222
+ }), n;
223
+ }, "sorter"), T = /* @__PURE__ */ e((e) => w(e, e.children()), "sortNodesByHierarchy"), E = /* @__PURE__ */ e((e, t, n) => {
224
+ let r = e.parent(t);
225
+ for (; r && r !== n;) {
226
+ let t = d.get(r);
227
+ if (t && !t.externalConnections) return !0;
228
+ r = e.parent(r);
229
+ }
230
+ return !1;
231
+ }, "isNodeInExtractableCluster"), D = /* @__PURE__ */ e((e, t, n) => {
232
+ let r = e.children(t) ?? [];
233
+ for (let i of r) {
234
+ if (i === n || h(i, n)) continue;
235
+ let r = b(i, e, t);
236
+ if (r && !E(e, r, t)) return r;
237
+ }
238
+ return null;
239
+ }, "findSafeAnchorNode");
240
+ //#endregion
241
+ export { T as a, b as i, m as n, c as o, d as r, S as t };
@@ -0,0 +1 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-I66GZJ75-D8wVRUgw.cjs"),n=require("./chunk-NSK5VX7P-BiC_63US.cjs");var r=e.n(({flowchart:e})=>{let t=e?.subGraphTitleMargin?.top??0,n=e?.subGraphTitleMargin?.bottom??0;return{subGraphTitleTopMargin:t,subGraphTitleBottomMargin:n,subGraphTitleTotalMargin:t+n}},`getSubGraphTitleMargins`);async function i(r,i){let a=r.getElementsByTagName(`img`);if(!a||a.length===0)return;let o=i.replace(/<img[^>]*>/g,``).trim()===``;await Promise.all([...a].map(r=>new Promise(i=>{function a(){if(r.style.display=`flex`,r.style.flexDirection=`column`,o){let e=t.x().fontSize?t.x().fontSize:window.getComputedStyle(document.body).fontSize,[i=t.f.fontSize]=n.p(e),a=i*5+`px`;r.style.minWidth=a,r.style.maxWidth=a}else r.style.width=`100%`;i(r)}e.n(a,`setupImage`),setTimeout(()=>{r.complete&&a()}),r.addEventListener(`error`,a),r.addEventListener(`load`,a)})))}e.n(i,`configureLabelImages`),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -0,0 +1,32 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
+ import { f as t, x as n } from "./chunk-I66GZJ75-xmbkwRyp.js";
3
+ import { p as r } from "./chunk-NSK5VX7P-BO1SrWAL.js";
4
+ //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-UBXNYLIW.mjs
5
+ var i = /* @__PURE__ */ e(({ flowchart: e }) => {
6
+ let t = e?.subGraphTitleMargin?.top ?? 0, n = e?.subGraphTitleMargin?.bottom ?? 0;
7
+ return {
8
+ subGraphTitleTopMargin: t,
9
+ subGraphTitleBottomMargin: n,
10
+ subGraphTitleTotalMargin: t + n
11
+ };
12
+ }, "getSubGraphTitleMargins");
13
+ async function a(i, a) {
14
+ let o = i.getElementsByTagName("img");
15
+ if (!o || o.length === 0) return;
16
+ let s = a.replace(/<img[^>]*>/g, "").trim() === "";
17
+ await Promise.all([...o].map((i) => new Promise((a) => {
18
+ function o() {
19
+ if (i.style.display = "flex", i.style.flexDirection = "column", s) {
20
+ let e = n().fontSize ? n().fontSize : window.getComputedStyle(document.body).fontSize, [a = t.fontSize] = r(e), o = a * 5 + "px";
21
+ i.style.minWidth = o, i.style.maxWidth = o;
22
+ } else i.style.width = "100%";
23
+ a(i);
24
+ }
25
+ e(o, "setupImage"), setTimeout(() => {
26
+ i.complete && o();
27
+ }), i.addEventListener("error", o), i.addEventListener("load", o);
28
+ })));
29
+ }
30
+ e(a, "configureLabelImages");
31
+ //#endregion
32
+ export { i as n, a as t };
@@ -0,0 +1 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./chunk-I66GZJ75-D8wVRUgw.cjs");var n=e.n(e=>{let{handDrawnSeed:n}=t.x();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:n}},`solidStateFill`),r=e.n(e=>{let t=i([...e.cssCompiledStyles||[],...e.cssStyles||[],...e.labelStyle||[]]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),i=e.n(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),a=e.n(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),o=e.n(e=>{let{stylesArray:t}=r(e),n=[],i=[],o=[],s=[];return t.forEach(e=>{let t=e[0];a(t)?n.push(e.join(`:`)+` !important`):(i.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&o.push(e.join(`:`)+` !important`),t===`fill`&&s.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:i.join(`;`),stylesArray:t,borderStyles:o,backgroundStyles:s}},`styles2String`),s=e.n((e,n)=>{let{themeVariables:i,handDrawnSeed:a}=t.x(),{nodeBorder:o,mainBkg:s}=i,{stylesMap:l}=r(e);return Object.assign({roughness:.7,fill:l.get(`fill`)||s,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:l.get(`stroke`)||o,seed:a,strokeWidth:l.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:c(l.get(`stroke-dasharray`))},n)},`userNodeOverrides`),c=e.n(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`);Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
@@ -0,0 +1,67 @@
1
+ import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
+ import { x as t } from "./chunk-I66GZJ75-xmbkwRyp.js";
3
+ //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-W5SLKNZC.mjs
4
+ var n = /* @__PURE__ */ e((e) => {
5
+ let { handDrawnSeed: n } = t();
6
+ return {
7
+ fill: e,
8
+ hachureAngle: 120,
9
+ hachureGap: 4,
10
+ fillWeight: 2,
11
+ roughness: .7,
12
+ stroke: e,
13
+ seed: n
14
+ };
15
+ }, "solidStateFill"), r = /* @__PURE__ */ e((e) => {
16
+ let t = i([
17
+ ...e.cssCompiledStyles || [],
18
+ ...e.cssStyles || [],
19
+ ...e.labelStyle || []
20
+ ]);
21
+ return {
22
+ stylesMap: t,
23
+ stylesArray: [...t]
24
+ };
25
+ }, "compileStyles"), i = /* @__PURE__ */ e((e) => {
26
+ let t = /* @__PURE__ */ new Map();
27
+ return e.forEach((e) => {
28
+ let [n, r] = e.split(":");
29
+ t.set(n.trim(), r?.trim());
30
+ }), t;
31
+ }, "styles2Map"), a = /* @__PURE__ */ e((e) => e === "color" || e === "font-size" || e === "font-family" || e === "font-weight" || e === "font-style" || e === "text-decoration" || e === "text-align" || e === "text-transform" || e === "line-height" || e === "letter-spacing" || e === "word-spacing" || e === "text-shadow" || e === "text-overflow" || e === "white-space" || e === "word-wrap" || e === "word-break" || e === "overflow-wrap" || e === "hyphens", "isLabelStyle"), o = /* @__PURE__ */ e((e) => {
32
+ let { stylesArray: t } = r(e), n = [], i = [], o = [], s = [];
33
+ return t.forEach((e) => {
34
+ let t = e[0];
35
+ a(t) ? n.push(e.join(":") + " !important") : (i.push(e.join(":") + " !important"), t.includes("stroke") && o.push(e.join(":") + " !important"), t === "fill" && s.push(e.join(":") + " !important"));
36
+ }), {
37
+ labelStyles: n.join(";"),
38
+ nodeStyles: i.join(";"),
39
+ stylesArray: t,
40
+ borderStyles: o,
41
+ backgroundStyles: s
42
+ };
43
+ }, "styles2String"), s = /* @__PURE__ */ e((e, n) => {
44
+ let { themeVariables: i, handDrawnSeed: a } = t(), { nodeBorder: o, mainBkg: s } = i, { stylesMap: l } = r(e);
45
+ return Object.assign({
46
+ roughness: .7,
47
+ fill: l.get("fill") || s,
48
+ fillStyle: "hachure",
49
+ fillWeight: 4,
50
+ hachureGap: 5.2,
51
+ stroke: l.get("stroke") || o,
52
+ seed: a,
53
+ strokeWidth: l.get("stroke-width")?.replace("px", "") || 1.3,
54
+ fillLineDash: [0, 0],
55
+ strokeLineDash: c(l.get("stroke-dasharray"))
56
+ }, n);
57
+ }, "userNodeOverrides"), c = /* @__PURE__ */ e((e) => {
58
+ if (!e) return [0, 0];
59
+ let t = e.trim().split(/\s+/).map(Number);
60
+ if (t.length === 1) {
61
+ let e = isNaN(t[0]) ? 0 : t[0];
62
+ return [e, e];
63
+ }
64
+ return [isNaN(t[0]) ? 0 : t[0], isNaN(t[1]) ? 0 : t[1]];
65
+ }, "getStrokeDashArray");
66
+ //#endregion
67
+ export { s as a, o as i, a as n, n as r, r as t };
@@ -0,0 +1,70 @@
1
+ const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs"),t=require("./src-D9o9TOtH.cjs"),n=require("./chunk-I66GZJ75-D8wVRUgw.cjs"),r=require("./chunk-NSK5VX7P-BiC_63US.cjs"),i=require("./chunk-4I5QYGJK-CBqJO_mi.cjs");function a(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var o=a();function s(e){o=e}var c={exec:()=>null};function l(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(d.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var u=(()=>{try{return!0}catch{return!1}})(),d={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},f=/^(?:[ \t]*(?:\n|$))+/,p=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ee=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,m=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,te=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,h=/(?:[*+-]|\d{1,9}[.)])/,g=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_=l(g).replace(/bull/g,h).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),ne=l(g).replace(/bull/g,h).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}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,re=/^[^\n]+/,y=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,ie=l(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,y).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),ae=l(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,h).getRegex(),b=`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`,x=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,oe=l(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\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`,x).replace(`tag`,b).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),se=l(v).replace(`hr`,m).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,b).getRegex(),S={blockquote:l(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,se).getRegex(),code:p,def:ie,fences:ee,heading:te,hr:m,html:oe,lheading:_,list:ae,newline:f,paragraph:se,table:c,text:re},ce=l(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,m).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,b).getRegex(),le={...S,lheading:ne,table:ce,paragraph:l(v).replace(`hr`,m).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,ce).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,b).getRegex()},ue={...S,html:l(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,x).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(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:c,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:l(v).replace(`hr`,m).replace(`heading`,` *#{1,6} *[^
2
+ ]`).replace(`lheading`,_).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`|fences`,``).replace(`|list`,``).replace(`|html`,``).replace(`|tag`,``).getRegex()},de=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,fe=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,pe=/^( {2,}|\\)\n(?!\s*$)/,me=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,C=/[\p{P}\p{S}]/u,w=/[\s\p{P}\p{S}]/u,he=/[^\s\p{P}\p{S}]/u,ge=l(/^((?![*_])punctSpace)/,`u`).replace(/punctSpace/g,w).getRegex(),_e=/(?!~)[\p{P}\p{S}]/u,ve=/(?!~)[\s\p{P}\p{S}]/u,ye=/(?:[^\s\p{P}\p{S}]|~)/u,be=l(/link|precode-code|html/,`g`).replace(`link`,/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace(`precode-`,u?"(?<!`)()":"(^^|[^`])").replace(`code`,/(?<b>`+)[^`]+\k<b>(?!`)/).replace(`html`,/<(?! )[^<>]*?>/).getRegex(),T=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,xe=l(T,`u`).replace(/punct/g,C).getRegex(),Se=l(T,`u`).replace(/punct/g,_e).getRegex(),E=`^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)`,Ce=l(E,`gu`).replace(/notPunctSpace/g,he).replace(/punctSpace/g,w).replace(/punct/g,C).getRegex(),we=l(E,`gu`).replace(/notPunctSpace/g,ye).replace(/punctSpace/g,ve).replace(/punct/g,_e).getRegex(),Te=l(`^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)`,`gu`).replace(/notPunctSpace/g,he).replace(/punctSpace/g,w).replace(/punct/g,C).getRegex(),Ee=l(/\\(punct)/,`gu`).replace(/punct/g,C).getRegex(),De=l(/^<(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(),Oe=l(x).replace(`(?:-->|$)`,`-->`).getRegex(),ke=l(`^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`,Oe).replace(`attribute`,/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),D=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ae=l(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace(`label`,D).replace(`href`,/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace(`title`,/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),O=l(/^!?\[(label)\]\[(ref)\]/).replace(`label`,D).replace(`ref`,y).getRegex(),k=l(/^!?\[(ref)\](?:\[\])?/).replace(`ref`,y).getRegex(),je=l(`reflink|nolink(?!\\()`,`g`).replace(`reflink`,O).replace(`nolink`,k).getRegex(),A=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,j={_backpedal:c,anyPunctuation:Ee,autolink:De,blockSkip:be,br:pe,code:fe,del:c,emStrongLDelim:xe,emStrongRDelimAst:Ce,emStrongRDelimUnd:Te,escape:de,link:Ae,nolink:k,punctuation:ge,reflink:O,reflinkSearch:je,tag:ke,text:me,url:c},Me={...j,link:l(/^!?\[(label)\]\((.*?)\)/).replace(`label`,D).getRegex(),reflink:l(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace(`label`,D).getRegex()},M={...j,emStrongRDelimAst:we,emStrongLDelim:Se,url:l(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace(`protocol`,A).replace(`email`,/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:l(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace(`protocol`,A).getRegex()},Ne={...M,br:l(pe).replace(`{2,}`,`*`).getRegex(),text:l(M.text).replace(`\\b_`,`\\b_| {2,}\\n`).replace(/\{2,\}/g,`*`).getRegex()},N={normal:S,gfm:le,pedantic:ue},P={normal:j,gfm:M,breaks:Ne,pedantic:Me},Pe={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},F=e=>Pe[e];function I(e,t){if(t){if(d.escapeTest.test(e))return e.replace(d.escapeReplace,F)}else if(d.escapeTestNoEncode.test(e))return e.replace(d.escapeReplaceNoEncode,F);return e}function L(e){try{e=encodeURI(e).replace(d.percentDecode,`%`)}catch{return null}return e}function Fe(e,t){let n=e.replace(d.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(d.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(d.slashPipe,`|`);return n}function R(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function Ie(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Le(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let c={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,c}function Re(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
3
+ `).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
4
+ `)}var z=class{options;rules;lexer;constructor(e){this.options=e||o}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:`space`,raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,``);return{type:`code`,raw:t[0],codeBlockStyle:`indented`,text:this.options.pedantic?e:R(e,`
5
+ `)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=Re(e,t[3]||``,this.rules);return{type:`code`,raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,`$1`):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=R(e,`#`);(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:`heading`,raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:`hr`,raw:R(t[0],`
6
+ `)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=R(t[0],`
7
+ `).split(`
8
+ `),n=``,r=``,i=[];for(;e.length>0;){let t=!1,a=[],o;for(o=0;o<e.length;o++)if(this.rules.other.blockquoteStart.test(e[o]))a.push(e[o]),t=!0;else if(!t)a.push(e[o]);else break;e=e.slice(o);let s=a.join(`
9
+ `),c=s.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,``);n=n?`${n}
11
+ ${s}`:s,r=r?`${r}
12
+ ${c}`:c;let l=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(c,i,!0),this.lexer.state.top=l,e.length===0)break;let u=i.at(-1);if(u?.type===`code`)break;if(u?.type===`blockquote`){let t=u,a=t.raw+`
13
+ `+e.join(`
14
+ `),o=this.blockquote(a);i[i.length-1]=o,n=n.substring(0,n.length-t.raw.length)+o.raw,r=r.substring(0,r.length-t.text.length)+o.text;break}if(u?.type===`list`){let t=u,a=t.raw+`
15
+ `+e.join(`
16
+ `),o=this.list(a);i[i.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-t.raw.length)+o.raw,e=a.substring(i.at(-1).raw.length).split(`
17
+ `);continue}}return{type:`blockquote`,raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:`list`,raw:``,ordered:r,start:r?+n.slice(0,-1):``,loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:`[*+-]`);let a=this.rules.other.listItemRegex(n),o=!1;for(;e;){let n=!1,r=``,s=``;if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let c=t[2].split(`
18
+ `,1)[0].replace(this.rules.other.listReplaceTabs,e=>` `.repeat(3*e.length)),l=e.split(`
19
+ `,1)[0],u=!c.trim(),d=0;if(this.options.pedantic?(d=2,s=c.trimStart()):u?d=t[1].length+1:(d=t[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,s=c.slice(d),d+=t[1].length),u&&this.rules.other.blankLine.test(l)&&(r+=l+`
20
+ `,e=e.substring(l.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(d),n=this.rules.other.hrRegex(d),i=this.rules.other.fencesBeginRegex(d),a=this.rules.other.headingBeginRegex(d),o=this.rules.other.htmlBeginRegex(d);for(;e;){let f=e.split(`
21
+ `,1)[0],p;if(l=f,this.options.pedantic?(l=l.replace(this.rules.other.listReplaceNesting,` `),p=l):p=l.replace(this.rules.other.tabCharGlobal,` `),i.test(l)||a.test(l)||o.test(l)||t.test(l)||n.test(l))break;if(p.search(this.rules.other.nonSpaceChar)>=d||!l.trim())s+=`
22
+ `+p.slice(d);else{if(u||c.replace(this.rules.other.tabCharGlobal,` `).search(this.rules.other.nonSpaceChar)>=4||i.test(c)||a.test(c)||n.test(c))break;s+=`
23
+ `+l}!u&&!l.trim()&&(u=!0),r+=f+`
24
+ `,e=e.substring(f.length+1),c=p.slice(d)}}i.loose||(o?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let f=null,p;this.options.gfm&&(f=this.rules.other.listIsTask.exec(s),f&&(p=f[0]!==`[ ] `,s=s.replace(this.rules.other.listReplaceTask,``))),i.items.push({type:`list_item`,raw:r,task:!!f,checked:p,loose:!1,text:s,tokens:[]}),i.raw+=r}let s=i.items.at(-1);if(s)s.raw=s.raw.trimEnd(),s.text=s.text.trimEnd();else return;i.raw=i.raw.trimEnd();for(let e=0;e<i.items.length;e++)if(this.lexer.state.top=!1,i.items[e].tokens=this.lexer.blockTokens(i.items[e].text,[]),!i.loose){let t=i.items[e].tokens.filter(e=>e.type===`space`);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}if(i.loose)for(let e=0;e<i.items.length;e++)i.items[e].loose=!0;return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:`html`,block:!0,raw:t[0],pre:t[1]===`pre`||t[1]===`script`||t[1]===`style`,text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal,` `),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,`$1`).replace(this.rules.inline.anyPunctuation,`$1`):``,r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,`$1`):t[3];return{type:`def`,tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=Fe(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,``).split(`|`),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,``).split(`
25
+ `):[],a={type:`table`,raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push(`right`):this.rules.other.tableAlignCenter.test(e)?a.align.push(`center`):this.rules.other.tableAlignLeft.test(e)?a.align.push(`left`):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(Fe(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:`heading`,raw:t[0],depth:t[2].charAt(0)===`=`?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
26
+ `?t[1].slice(0,-1):t[1];return{type:`paragraph`,raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:`text`,raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:`escape`,raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:`html`,raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=R(e.slice(0,-1),`\\`);if((e.length-t.length)%2==0)return}else{let e=Ie(t[2],`()`);if(e===-2)return;if(e>-1){let n=(t[0].indexOf(`!`)===0?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=``}}let n=t[2],r=``;if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):``;return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),Le(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,`$1`),title:r&&r.replace(this.rules.inline.anyPunctuation,`$1`)},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal,` `).toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:`text`,raw:e,text:e}}return Le(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=``){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,o=n,s=0,c=r[0][0]===`*`?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+n);(r=c.exec(t))!=null;){if(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!i)continue;if(a=[...i].length,r[3]||r[4]){o+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){s+=a;continue}if(o-=a,o>0)continue;a=Math.min(a,a+o+s);let t=[...r[0]][0].length,c=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=c.slice(1,-1);return{type:`em`,raw:c,text:e,tokens:this.lexer.inlineTokens(e)}}let l=c.slice(2,-2);return{type:`strong`,raw:c,text:l,tokens:this.lexer.inlineTokens(l)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal,` `),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:`codespan`,raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:`br`,raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:`del`,raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return t[2]===`@`?(e=t[1],n=`mailto:`+e):(e=t[1],n=e),{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if(t[2]===`@`)e=t[0],n=`mailto:`+e;else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??``;while(r!==t[0]);e=t[0],n=t[1]===`www.`?`http://`+t[0]:t[0]}return{type:`link`,raw:t[0],text:e,href:n,tokens:[{type:`text`,raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:`text`,raw:t[0],text:t[0],escaped:e}}}},B=class e{tokens;options;state;tokenizer;inlineQueue;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||o,this.options.tokenizer=this.options.tokenizer||new z,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:d,block:N.normal,inline:P.normal};this.options.pedantic?(t.block=N.pedantic,t.inline=P.pedantic):this.options.gfm&&(t.block=N.gfm,t.inline=this.options.breaks?P.breaks:P.gfm),this.tokenizer.rules=t}static get rules(){return{block:N,inline:P}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(d.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(d.tabCharGlobal,` `).replace(d.spaceLine,``));e;){let r;if(this.options.extensions?.block?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);r.raw.length===1&&n!==void 0?n.raw+=`
28
+ `:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
29
+ `)?``:`
30
+ `)+r.raw,n.text+=`
31
+ `+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`paragraph`||n?.type===`text`?(n.raw+=(n.raw.endsWith(`
32
+ `)?``:`
33
+ `)+r.raw,n.text+=`
34
+ `+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type===`paragraph`?(a.raw+=(a.raw.endsWith(`
35
+ `)?``:`
36
+ `)+r.raw,a.text+=`
37
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type===`text`?(n.raw+=(n.raw.endsWith(`
38
+ `)?``:`
39
+ `)+r.raw,n.text+=`
40
+ `+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n=e,r=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;(r=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)e.includes(r[0].slice(r[0].lastIndexOf(`[`)+1,-1))&&(n=n.slice(0,r.index)+`[`+`a`.repeat(r[0].length-2)+`]`+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(r=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,r.index)+`++`+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let i;for(;(r=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)i=r[2]?r[2].length:0,n=n.slice(0,r.index+i)+`[`+`a`.repeat(r[0].length-i-2)+`]`+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=this.options.hooks?.emStrongMask?.call({lexer:this},n)??n;let a=!1,o=``;for(;e;){a||(o=``),a=!1;let r;if(this.options.extensions?.inline?.some(n=>(r=n.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))continue;if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length);let n=t.at(-1);r.type===`text`&&n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,n,o)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;this.options.extensions.startInline.forEach(e=>{r=e.call({lexer:this},n),typeof r==`number`&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(r=this.tokenizer.inlineText(i)){e=e.substring(r.raw.length),r.raw.slice(-1)!==`_`&&(o=r.raw.slice(-1)),a=!0;let n=t.at(-1);n?.type===`text`?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){let t=`Infinite loop on byte: `+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},V=class{options;parser;constructor(e){this.options=e||o}space(e){return``}code({text:e,lang:t,escaped:n}){let r=(t||``).match(d.notSpaceStart)?.[0],i=e.replace(d.endingNewline,``)+`
41
+ `;return r?`<pre><code class="language-`+I(r)+`">`+(n?i:I(i,!0))+`</code></pre>
42
+ `:`<pre><code>`+(n?i:I(i,!0))+`</code></pre>
43
+ `}blockquote({tokens:e}){return`<blockquote>
44
+ ${this.parser.parse(e)}</blockquote>
45
+ `}html({text:e}){return e}def(e){return``}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
46
+ `}hr(e){return`<hr>
47
+ `}list(e){let t=e.ordered,n=e.start,r=``;for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?`ol`:`ul`,a=t&&n!==1?` start="`+n+`"`:``;return`<`+i+a+`>
48
+ `+r+`</`+i+`>
49
+ `}listitem(e){let t=``;if(e.task){let n=this.checkbox({checked:!!e.checked});e.loose?e.tokens[0]?.type===`paragraph`?(e.tokens[0].text=n+` `+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type===`text`&&(e.tokens[0].tokens[0].text=n+` `+I(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:`text`,raw:n+` `,text:n+` `,escaped:!0}):t+=n+` `}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
50
+ `}checkbox({checked:e}){return`<input `+(e?`checked="" `:``)+`disabled="" type="checkbox">`}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
51
+ `}table(e){let t=``,n=``;for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r=``;for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n=``;for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&=`<tbody>${r}</tbody>`,`<table>
52
+ <thead>
53
+ `+t+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:e}){return`<tr>
56
+ ${e}</tr>
57
+ `}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?`th`:`td`;return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
58
+ `}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${I(e,!0)}</code>`}br(e){return`<br>`}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=L(e);if(i===null)return r;e=i;let a=`<a href="`+e+`"`;return t&&(a+=` title="`+I(t)+`"`),a+=`>`+r+`</a>`,a}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=L(e);if(i===null)return I(n);e=i;let a=`<img src="${e}" alt="${n}"`;return t&&(a+=` title="${I(t)}"`),a+=`>`,a}text(e){return`tokens`in e&&e.tokens?this.parser.parseInline(e.tokens):`escaped`in e&&e.escaped?e.text:I(e.text)}},H=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return``+e}image({text:e}){return``+e}br(){return``}},U=class e{options;renderer;textRenderer;constructor(e){this.options=e||o,this.options.renderer=this.options.renderer||new V,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new H}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=i,t=this.options.extensions.renderers[e.type].call({parser:this},e);if(t!==!1||![`space`,`hr`,`heading`,`code`,`table`,`blockquote`,`list`,`html`,`def`,`paragraph`,`text`].includes(e.type)){n+=t||``;continue}}let a=i;switch(a.type){case`space`:n+=this.renderer.space(a);continue;case`hr`:n+=this.renderer.hr(a);continue;case`heading`:n+=this.renderer.heading(a);continue;case`code`:n+=this.renderer.code(a);continue;case`table`:n+=this.renderer.table(a);continue;case`blockquote`:n+=this.renderer.blockquote(a);continue;case`list`:n+=this.renderer.list(a);continue;case`html`:n+=this.renderer.html(a);continue;case`def`:n+=this.renderer.def(a);continue;case`paragraph`:n+=this.renderer.paragraph(a);continue;case`text`:{let i=a,o=this.renderer.text(i);for(;r+1<e.length&&e[r+1].type===`text`;)i=e[++r],o+=`
59
+ `+this.renderer.text(i);n+=t?this.renderer.paragraph({type:`paragraph`,raw:o,text:o,tokens:[{type:`text`,raw:o,text:o,escaped:!0}]}):o;continue}default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}parseInline(e,t=this.renderer){let n=``;for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(e!==!1||![`escape`,`html`,`link`,`image`,`strong`,`em`,`codespan`,`br`,`del`,`text`].includes(i.type)){n+=e||``;continue}}let a=i;switch(a.type){case`escape`:n+=t.text(a);break;case`html`:n+=t.html(a);break;case`link`:n+=t.link(a);break;case`image`:n+=t.image(a);break;case`strong`:n+=t.strong(a);break;case`em`:n+=t.em(a);break;case`codespan`:n+=t.codespan(a);break;case`br`:n+=t.br(a);break;case`del`:n+=t.del(a);break;case`text`:n+=t.text(a);break;default:{let e=`Token with "`+a.type+`" type was not found.`;if(this.options.silent)return console.error(e),``;throw Error(e)}}}return n}},W=class{options;block;constructor(e){this.options=e||o}static passThroughHooks=new Set([`preprocess`,`postprocess`,`processAllTokens`,`emStrongMask`]);static passThroughHooksRespectAsync=new Set([`preprocess`,`postprocess`,`processAllTokens`]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?B.lex:B.lexInline}provideParser(){return this.block?U.parse:U.parseInline}},G=new class{defaults=a();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=U;Renderer=V;TextRenderer=H;Lexer=B;Tokenizer=z;Hooks=W;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case`table`:{let e=r;for(let r of e.header)n=n.concat(this.walkTokens(r.tokens,t));for(let r of e.rows)for(let e of r)n=n.concat(this.walkTokens(e.tokens,t));break}case`list`:{let e=r;n=n.concat(this.walkTokens(e.items,t));break}default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error(`extension name required`);if(`renderer`in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return r===!1&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if(`tokenizer`in e){if(!e.level||e.level!==`block`&&e.level!==`inline`)throw Error(`extension level must be 'block' or 'inline'`);let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&(e.level===`block`?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:e.level===`inline`&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}`childTokens`in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new V(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if([`options`,`parser`].includes(n))continue;let r=n,i=e.renderer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n||``}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new z(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if([`options`,`rules`,`lexer`].includes(n))continue;let r=n,i=e.tokenizer[r],a=t[r];t[r]=(...e)=>{let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new W;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if([`options`,`block`].includes(n))continue;let r=n,i=e.hooks[r],a=t[r];t[r]=W.passThroughHooks.has(n)?e=>{if(this.defaults.async&&W.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let r=i.call(t,e);return a.call(t,r)}:(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return n===!1&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return n===!1&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return B.lex(e,t??this.defaults)}parser(e,t){return U.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(this.defaults.async===!0&&r.async===!1)return a(Error(`marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise.`));if(typeof t>`u`||t===null)return a(Error(`marked(): input parameter is undefined or null`));if(typeof t!=`string`)return a(Error(`marked(): input parameter is of type `+Object.prototype.toString.call(t)+`, string expected`));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await(i.hooks?await i.hooks.provideLexer():e?B.lex:B.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let o=await(i.hooks?await i.hooks.provideParser():e?U.parse:U.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(o):o})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?B.lex:B.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?U.parse:U.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=`
60
+ Please report this to https://github.com/markedjs/marked.`,e){let e=`<p>An error occurred:</p><pre>`+I(n.message+``,!0)+`</pre>`;return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function K(e,t){return G.parse(e,t)}K.options=K.setOptions=function(e){return G.setOptions(e),K.defaults=G.defaults,s(K.defaults),K},K.getDefaults=a,K.defaults=o,K.use=function(...e){return G.use(...e),K.defaults=G.defaults,s(K.defaults),K},K.walkTokens=function(e,t){return G.walkTokens(e,t)},K.parseInline=G.parseInline,K.Parser=U,K.parser=U.parse,K.Renderer=V,K.TextRenderer=H,K.Lexer=B,K.lexer=B.lex,K.Tokenizer=z,K.Hooks=W,K.parse=K,K.options,K.setOptions,K.use,K.walkTokens,K.parseInline,U.parse,B.lex;function ze(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Array.from(typeof e==`string`?[e]:e);r[r.length-1]=r[r.length-1].replace(/\r?\n([\t ]*)$/,``);var i=r.reduce(function(e,t){var n=t.match(/\n([\t ]+|(?!\s).)/g);return n?e.concat(n.map(function(e){return e.match(/[\t ]/g)?.length??0})):e},[]);if(i.length){var a=RegExp(`
61
+ [ ]{${Math.min.apply(Math,i)}}`,`g`);r=r.map(function(e){return e.replace(a,`
62
+ `)})}r[0]=r[0].replace(/^\r?\n/,``);var o=r[0];return t.forEach(function(e,t){var n=o.match(/(?:^|\n)( *)$/),i=n?n[1]:``,a=e;typeof e==`string`&&e.includes(`
63
+ `)&&(a=String(e).split(`
64
+ `).map(function(e,t){return t===0?e:`${i}${e}`}).join(`
65
+ `)),o+=a+r[t+1]}),o}function Be(e,{markdownAutoWrap:t}){return ze(e.replace(/<br\/>/g,`
66
+ `).replace(/\n{2,}/g,`
67
+ `))}e.n(Be,`preprocessMarkdown`);function Ve(e){return e.split(/\\n|\n|<br\s*\/?>/gi).map(e=>e.trim().match(/<[^>]+>|[^\s<>]+/g)?.map(e=>({content:e,type:`normal`}))??[])}e.n(Ve,`nonMarkdownToLines`);function He(t,n={}){let r=Be(t,n),i=K.lexer(r),a=[[]],o=0;function s(e,t=`normal`){e.type===`text`?e.text.split(`
68
+ `).forEach((e,n)=>{n!==0&&(o++,a.push([])),e.split(` `).forEach(e=>{e=e.replace(/&#39;/g,`'`),e&&a[o].push({content:e,type:t})})}):e.type===`strong`||e.type===`em`?e.tokens.forEach(t=>{s(t,e.type)}):e.type===`html`&&a[o].push({content:e.text,type:`normal`})}return e.n(s,`processNode`),i.forEach(e=>{e.type===`paragraph`?e.tokens?.forEach(e=>{s(e)}):e.type===`html`?a[o].push({content:e.text,type:`normal`}):a[o].push({content:e.raw,type:`normal`})}),a}e.n(He,`markdownToLines`);function Ue(e){return e?`<p>${e.replace(/\\n|\n/g,`<br />`)}</p>`:``}e.n(Ue,`nonMarkdownToHTML`);function We(n,{markdownAutoWrap:r}={}){let i=K.lexer(n);function a(e){return e.type===`text`?r===!1?e.text.replace(/\n */g,`<br/>`).replace(/ /g,`&nbsp;`):e.text.replace(/\n */g,`<br/>`):e.type===`strong`?`<strong>${e.tokens?.map(a).join(``)}</strong>`:e.type===`em`?`<em>${e.tokens?.map(a).join(``)}</em>`:e.type===`paragraph`?`<p>${e.tokens?.map(a).join(``)}</p>`:e.type===`space`?``:e.type===`html`?`${e.text}`:e.type===`escape`?e.text:(t.m.warn(`Unsupported markdown: ${e.type}`),e.raw)}return e.n(a,`output`),i.map(a).join(``)}e.n(We,`markdownToHTML`);function Ge(e){return Intl.Segmenter?[...new Intl.Segmenter().segment(e)].map(e=>e.segment):[...e]}e.n(Ge,`splitTextToChars`);function Ke(e,t){return q(e,[],Ge(t.content),t.type)}e.n(Ke,`splitWordToFitWidth`);function q(e,t,n,r){if(n.length===0)return[{content:t.join(``),type:r},{content:``,type:r}];let[i,...a]=n,o=[...t,i];return e([{content:o.join(``),type:r}])?q(e,o,a,r):(t.length===0&&i&&(t.push(i),n.shift()),[{content:t.join(``),type:r},{content:n.join(``),type:r}])}e.n(q,`splitWordToFitWidthRecursion`);function J(e,t){if(e.some(({content:e})=>e.includes(`
69
+ `)))throw Error(`splitLineToFitWidth does not support newlines in the line`);return Y(e,t)}e.n(J,`splitLineToFitWidth`);function Y(e,t,n=[],r=[]){if(e.length===0)return r.length>0&&n.push(r),n.length>0?n:[];let i=``;e[0].content===` `&&(i=` `,e.shift());let a=e.shift()??{content:` `,type:`normal`},o=[...r];if(i!==``&&o.push({content:i,type:`normal`}),o.push(a),t(o))return Y(e,t,n,o);if(r.length>0)n.push(r),e.unshift(a);else if(a.content){let[r,i]=Ke(t,a);n.push([r]),i.content&&e.unshift(i)}return Y(e,t,n)}e.n(Y,`splitLineToFitWidthRecursion`);function X(e,t){t&&e.attr(`style`,t)}e.n(X,`applyStyle`);var qe=16384;async function Je(e,t,r,i,a=!1,o=n.b()){let s=e.append(`foreignObject`);s.attr(`width`,`${Math.min(10*r,qe)}px`),s.attr(`height`,`${Math.min(10*r,qe)}px`);let c=s.append(`xhtml:div`),l=n.A(t.label)?await n.F(t.label.replace(n.s.lineBreakRegex,`
70
+ `),o):n.z(t.label,o),u=t.isNode?`nodeLabel`:`edgeLabel`,d=c.append(`span`);d.html(l),X(d,t.labelStyle),d.attr(`class`,`${u} ${i}`),X(c,t.labelStyle),c.style(`display`,`table-cell`),c.style(`white-space`,`nowrap`),c.style(`line-height`,`1.5`),r!==1/0&&(c.style(`max-width`,r+`px`),c.style(`text-align`,`center`)),c.attr(`xmlns`,`http://www.w3.org/1999/xhtml`),a&&c.attr(`class`,`labelBkg`);let f=c.node().getBoundingClientRect();return f.width===r&&(c.style(`display`,`table`),c.style(`white-space`,`break-spaces`),c.style(`width`,r+`px`),f=c.node().getBoundingClientRect()),s.node()}e.n(Je,`addHtmlSpan`);function Z(e,t,n,r=!1){let i=e.append(`tspan`).attr(`class`,`text-outer-tspan`).attr(`x`,0).attr(`y`,t*n-.1+`em`).attr(`dy`,n+`em`);return r&&i.attr(`text-anchor`,`middle`),i}e.n(Z,`createTspan`);function Ye(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,n);let a=i.node().getComputedTextLength();return r.remove(),a}e.n(Ye,`computeWidthOfText`);function Xe(e,t,n){let r=e.append(`text`),i=Z(r,1,t);$(i,[{content:n,type:`normal`}]);let a=i.node()?.getBoundingClientRect();return a&&r.remove(),a}e.n(Xe,`computeDimensionOfText`);function Ze(t,n,r,i=!1,a=!1){let o=1.1,s=n.append(`g`),c=s.insert(`rect`).attr(`class`,`background`).attr(`style`,`stroke: none`),l=s.append(`text`).attr(`y`,`-10.1`);a&&l.attr(`text-anchor`,`middle`);let u=0;for(let n of r){let r=e.n(e=>Ye(s,o,e)<=t,`checkWidth`),i=r(n)?[n]:J(n,r);for(let e of i)$(Z(l,u,o,a),e),u++}if(i){let e=l.node().getBBox();return c.attr(`x`,e.x-2).attr(`y`,e.y-2).attr(`width`,e.width+4).attr(`height`,e.height+4),s.node()}return l.node()}e.n(Ze,`createFormattedText`);function Q(e){return e.replace(/&(amp|lt|gt);/g,(e,t)=>{switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;default:return e}})}e.n(Q,`decodeHTMLEntities`);function $(e,t){e.text(``),t.forEach((t,n)=>{let r=e.append(`tspan`).attr(`font-style`,t.type===`em`?`italic`:`normal`).attr(`class`,`text-inner-tspan`).attr(`font-weight`,t.type===`strong`?`bold`:`normal`);n===0?r.text(Q(t.content)):r.text(` `+Q(t.content))})}e.n($,`updateTextContentAndStyles`);async function Qe(e,t={}){let r=[];e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,(e,a,o)=>(r.push((async()=>{let r=`${a}:${o}`;return await i.n(r)?await i.t(r,void 0,{class:`label-icon`}):`<i class='${n.z(e,t).replace(`:`,` `)}'></i>`})()),e));let a=await Promise.all(r);return e.replace(/(fa[bklrs]?):fa-([\w-]+)/g,()=>a.shift()??``)}e.n(Qe,`replaceIconSubstring`);var $e=e.n(async(e,i=``,{style:a=``,isTitle:o=!1,classes:s=``,useHtmlLabels:c=!0,markdown:l=!0,isNode:u=!0,width:d=200,addSvgBackground:f=!1}={},p)=>{if(t.m.debug(`XYZ createText`,i,a,o,s,c,u,`addSvgBackground: `,f),c){let t=l?We(i,p):Ue(i),o=await Qe(r.a(t),p),c=i.replace(/\\\\/g,`\\`);return await Je(e,{isNode:u,label:n.A(i)?c:o,labelStyle:a.replace(`fill:`,`color:`)},d,s,f,p)}{let n=r.a(i.replace(/<br\s*\/?>/g,`<br/>`)),s=Ze(d,e,l?He(n.replace(`<br>`,`<br/>`),p):Ve(n),i?f:!1,!u);if(u){/stroke:/.exec(a)&&(a=a.replace(`stroke:`,`lineColor:`));let e=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t.p(s).attr(`style`,e)}else{let e=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/background:/g,`fill:`);t.p(s).select(`rect`).attr(`style`,e.replace(/background:/g,`fill:`));let n=a.replace(/stroke:[^;]+;?/g,``).replace(/stroke-width:[^;]+;?/g,``).replace(/fill:[^;]+;?/g,``).replace(/color:/g,`fill:`);t.p(s).select(`text`).attr(`style`,n)}return o?t.p(s).selectAll(`tspan.text-outer-tspan`).classed(`title-row`,!0):t.p(s).selectAll(`tspan.text-outer-tspan`).classed(`row`,!0),s}},`createText`);Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return Xe}});