@toimc/markdown 0.0.1 → 0.0.3

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 (284) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +165 -0
  3. package/dist/{bash-Cm4CVo6v.js → bash-CB7IBf-7.js} +0 -1
  4. package/dist/{CodeBlock.vue.d.ts → components/CodeBlock.vue.d.ts} +10 -1
  5. package/dist/components/CodeBlock.vue.d.ts.map +1 -0
  6. package/dist/components/LatexBlock.vue.d.ts.map +1 -0
  7. package/dist/components/MarkdownRenderer.vue.d.ts.map +1 -0
  8. package/dist/components/MermaidBlock.vue.d.ts.map +1 -0
  9. package/dist/composables/useMarkdownIt.d.ts.map +1 -1
  10. package/dist/css-BNAk6GUm.js +1 -0
  11. package/dist/css-CSuiabBd.cjs +1 -0
  12. package/dist/css-XGfOcSWP.js +2 -0
  13. package/dist/css-hISgu-gn.cjs +1 -0
  14. package/dist/{github-dark-C85MA6EW.js → github-dark-HjHQSF6c.js} +1 -2
  15. package/dist/{github-light-Dzg0sEwI.js → github-light-BS4bTP_A.js} +1 -2
  16. package/dist/{go-BEdBk4fh.js → go-DM5FkVJr.js} +0 -1
  17. package/dist/{html-CptZ4PZn.cjs → html-B74xNLl7.cjs} +1 -1
  18. package/dist/html-BfvIZbOy.cjs +1 -0
  19. package/dist/{html-Ctxsat8s.js → html-CPRPPrI5.js} +4 -5
  20. package/dist/html-CicqKfTr.js +1 -0
  21. package/dist/index.cjs +63 -61
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index.mjs +6136 -5530
  25. package/dist/{javascript-Bk0bJ4nQ.js → javascript-BA7R0ZzU.js} +0 -1
  26. package/dist/javascript-D3uiIYXW.js +1 -0
  27. package/dist/json-BxN5JlXF.js +1 -0
  28. package/dist/{json-DFt_0dbD.js → json-DzGpsm5O.js} +0 -1
  29. package/dist/{jsx-BHkwOr0x.js → jsx-OQctj7OM.js} +0 -1
  30. package/dist/katex.css +1 -1
  31. package/dist/{markdown-nUtTZkU8.js → markdown-CNVZ8ok-.js} +0 -1
  32. package/dist/markdown.css +1 -1
  33. package/dist/{python-D0AaDoWC.js → python-BHaXfePs.js} +0 -1
  34. package/dist/rust-CbGaYpW0.js +2 -0
  35. package/dist/rust-rQqn7k8G.cjs +1 -0
  36. package/dist/{scss-CoGT9c_3.js → scss-C-hhxfjO.js} +2 -3
  37. package/dist/{scss-BY5CCWQ_.cjs → scss-t_1qNxqd.cjs} +1 -1
  38. package/dist/sql-DbsWPbnd.js +2 -0
  39. package/dist/sql-Dz4D2KVE.cjs +1 -0
  40. package/dist/{tsx-Cb6KMAZH.js → tsx-6akVe_f1.js} +0 -1
  41. package/dist/typescript-BV-txBTG.js +1 -0
  42. package/dist/{typescript-C4BXhs_3.js → typescript-DB3hlC91.js} +0 -1
  43. package/dist/utils/formula-guard.d.ts +13 -0
  44. package/dist/utils/formula-guard.d.ts.map +1 -0
  45. package/dist/utils/split-lines.d.ts +10 -0
  46. package/dist/utils/split-lines.d.ts.map +1 -0
  47. package/dist/{vue-DG6ivzcc.cjs → vue-Dsb5eNKu.cjs} +1 -1
  48. package/dist/{vue-DcTnNxpt.js → vue-wUrCEfyQ.js} +9 -10
  49. package/dist/{yaml-DXmkPuRD.js → yaml-CcAIbj8h.js} +0 -1
  50. package/package.json +21 -17
  51. package/dist/CodeBlock.test.d.ts +0 -2
  52. package/dist/CodeBlock.test.d.ts.map +0 -1
  53. package/dist/CodeBlock.vue.d.ts.map +0 -1
  54. package/dist/LatexBlock.test.d.ts +0 -2
  55. package/dist/LatexBlock.test.d.ts.map +0 -1
  56. package/dist/LatexBlock.vue.d.ts.map +0 -1
  57. package/dist/MarkdownRenderer.test.d.ts +0 -2
  58. package/dist/MarkdownRenderer.test.d.ts.map +0 -1
  59. package/dist/MarkdownRenderer.vue.d.ts.map +0 -1
  60. package/dist/MermaidBlock.test.d.ts +0 -2
  61. package/dist/MermaidBlock.test.d.ts.map +0 -1
  62. package/dist/MermaidBlock.vue.d.ts.map +0 -1
  63. package/dist/abnfDiagram-N423BO3Z-CpvDGmAd.cjs +0 -1
  64. package/dist/abnfDiagram-N423BO3Z-DuAPsGBR.js +0 -89
  65. package/dist/arc-CFxpoaLu.js +0 -82
  66. package/dist/arc-Dh2Zrypi.cjs +0 -1
  67. package/dist/architecture-TIHT7OUA-CUym9zMN.cjs +0 -1
  68. package/dist/architecture-TIHT7OUA-DDwCCw0y.js +0 -3
  69. package/dist/architectureDiagram-T3A2C74G-CS6-PQjR.cjs +0 -36
  70. package/dist/architectureDiagram-T3A2C74G-d7xzbLJQ.js +0 -4155
  71. package/dist/array-CApNbSU9.js +0 -6
  72. package/dist/array-DZSRzHA_.cjs +0 -1
  73. package/dist/blockDiagram-VBNYF7ZC-CnvNE8Hq.js +0 -3157
  74. package/dist/blockDiagram-VBNYF7ZC-DVl7vKmv.cjs +0 -132
  75. package/dist/c4Diagram-5PPSVZJV-B1RTcquO.js +0 -2982
  76. package/dist/c4Diagram-5PPSVZJV-Djkk0hzr.cjs +0 -10
  77. package/dist/channel-CNZiSge7.cjs +0 -1
  78. package/dist/channel-CqlbSsMQ.js +0 -5
  79. package/dist/chunk-2GRJ4B5K-BgeLbn06.cjs +0 -1
  80. package/dist/chunk-2GRJ4B5K-C5VToU5T.js +0 -61
  81. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +0 -1
  82. package/dist/chunk-2Q5K7J3B-C3WfnuyI.js +0 -15
  83. package/dist/chunk-4I5QYGJK-Bs8S-Wfu.js +0 -275
  84. package/dist/chunk-4I5QYGJK-CBqJO_mi.cjs +0 -1
  85. package/dist/chunk-5RXB4S5H-BnJ1P9K2.js +0 -2042
  86. package/dist/chunk-5RXB4S5H-BtEDiC1U.cjs +0 -231
  87. package/dist/chunk-5VM5RSS4-BsUXY5k9.js +0 -5
  88. package/dist/chunk-5VM5RSS4-CwDmQ9T_.cjs +0 -15
  89. package/dist/chunk-6Q2QTUOP-C0P-wtth.js +0 -490
  90. package/dist/chunk-6Q2QTUOP-UC-G8b3B.cjs +0 -88
  91. package/dist/chunk-7BUUIJ7U-CZdUK2qY.js +0 -82
  92. package/dist/chunk-7BUUIJ7U-MzS1pW_S.cjs +0 -1
  93. package/dist/chunk-7Z6QIM7H-CJdupq9f.js +0 -593
  94. package/dist/chunk-7Z6QIM7H-CUGcycR0.cjs +0 -10
  95. package/dist/chunk-GF5L2VYU-CDGpCl8Z.js +0 -3357
  96. package/dist/chunk-GF5L2VYU-DWhSvqYP.cjs +0 -206
  97. package/dist/chunk-I66GZJ75-D8wVRUgw.cjs +0 -127
  98. package/dist/chunk-I66GZJ75-xmbkwRyp.js +0 -3754
  99. package/dist/chunk-JQJVKLGR-B-jNEb9r.js +0 -4135
  100. package/dist/chunk-JQJVKLGR-CbhQdRxu.cjs +0 -156
  101. package/dist/chunk-JWPE2WC7-B8JIODrM.js +0 -8
  102. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +0 -1
  103. package/dist/chunk-KBJHAD2P-BMuT9eJO.cjs +0 -1
  104. package/dist/chunk-KBJHAD2P-CCpB6hWQ.js +0 -26
  105. package/dist/chunk-KEIR6QF5-RwFi50en.js +0 -21456
  106. package/dist/chunk-KEIR6QF5-rUKzMPy0.cjs +0 -161
  107. package/dist/chunk-NSK5VX7P-BO1SrWAL.js +0 -1335
  108. package/dist/chunk-NSK5VX7P-BiC_63US.cjs +0 -2
  109. package/dist/chunk-QR6OTTB3-BSxbyKp_.cjs +0 -62
  110. package/dist/chunk-QR6OTTB3-CGxJcV-X.js +0 -3738
  111. package/dist/chunk-RYQCIY6F-Lf2oVMMh.cjs +0 -1
  112. package/dist/chunk-RYQCIY6F-UBebC0ib.js +0 -241
  113. package/dist/chunk-UBXNYLIW-BURVNZm2.cjs +0 -1
  114. package/dist/chunk-UBXNYLIW-fOGkdEwd.js +0 -32
  115. package/dist/chunk-W5SLKNZC-BLFqePZ1.cjs +0 -1
  116. package/dist/chunk-W5SLKNZC-C2SYjJjL.js +0 -67
  117. package/dist/chunk-WRU74C26-Cr4HTCc1.cjs +0 -70
  118. package/dist/chunk-WRU74C26-UGtU6H2a.js +0 -1636
  119. package/dist/chunk-XXDRQBXY-GENMsCHk.js +0 -9
  120. package/dist/chunk-XXDRQBXY-yMT3rT5Y.cjs +0 -1
  121. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +0 -1
  122. package/dist/chunk-Y2CYZVJY-DO9UHHon.js +0 -12
  123. package/dist/classDiagram-JCYQIIEL-DUjWUDYG.cjs +0 -1
  124. package/dist/classDiagram-JCYQIIEL-Dm9anlJw.js +0 -30
  125. package/dist/classDiagram-v2-OCEON4UE-Bl-vyFyz.js +0 -30
  126. package/dist/classDiagram-v2-OCEON4UE-DUjWUDYG.cjs +0 -1
  127. package/dist/composables/useHighlighter.test.d.ts +0 -2
  128. package/dist/composables/useHighlighter.test.d.ts.map +0 -1
  129. package/dist/composables/useMarkdownIt.test.d.ts +0 -2
  130. package/dist/composables/useMarkdownIt.test.d.ts.map +0 -1
  131. package/dist/composables/useShikiTokenizer.test.d.ts +0 -2
  132. package/dist/composables/useShikiTokenizer.test.d.ts.map +0 -1
  133. package/dist/composables/useStreamingMarkdown.test.d.ts +0 -2
  134. package/dist/composables/useStreamingMarkdown.test.d.ts.map +0 -1
  135. package/dist/cose-bilkent-JH36ORCC-C1RCVzVZ.cjs +0 -1
  136. package/dist/cose-bilkent-JH36ORCC-C5FbROLY.js +0 -2254
  137. package/dist/css-BbwcBM_4.js +0 -2
  138. package/dist/css-CEHhC-OC.cjs +0 -1
  139. package/dist/css-Ca3W2DHx.cjs +0 -1
  140. package/dist/css-HuzvwXs-.js +0 -3
  141. package/dist/cynefin-VYW2F7L2-CMgnLl46.js +0 -3
  142. package/dist/cynefin-VYW2F7L2-DVi1CF5b.cjs +0 -1
  143. package/dist/cynefinDiagram-MW4NZA55-CkZY080C.cjs +0 -62
  144. package/dist/cynefinDiagram-MW4NZA55-DbAAx9CC.js +0 -355
  145. package/dist/cytoscape.esm-BKhIYxsH.cjs +0 -321
  146. package/dist/cytoscape.esm-DMXbtFI-.js +0 -18145
  147. package/dist/dagre-DarAkhy1.cjs +0 -1
  148. package/dist/dagre-VZM6K2ZE-CpL0s3GG.js +0 -328
  149. package/dist/dagre-VZM6K2ZE-D1_S1oSj.cjs +0 -4
  150. package/dist/dagre-x4cMb6gU.js +0 -1699
  151. package/dist/defaultLocale-ybN1Vtvg.cjs +0 -1
  152. package/dist/defaultLocale-yzzuPw6P.js +0 -198
  153. package/dist/diagram-7IWD3JNH-BXvOBw2z.js +0 -300
  154. package/dist/diagram-7IWD3JNH-W-Kjft6l.cjs +0 -30
  155. package/dist/diagram-B4RE2ZJO-C4lLgW4X.cjs +0 -3
  156. package/dist/diagram-B4RE2ZJO-DyAAD_bR.js +0 -432
  157. package/dist/diagram-LBJQPF4R-BTgCWP5o.cjs +0 -24
  158. package/dist/diagram-LBJQPF4R-BbMQOpt2.js +0 -134
  159. package/dist/diagram-Q27KOJAE-ink_R6qE.js +0 -527
  160. package/dist/diagram-Q27KOJAE-v-ZMzCxs.cjs +0 -24
  161. package/dist/diagram-UB23O5K3-BXTm2BG0.cjs +0 -41
  162. package/dist/diagram-UB23O5K3-C6rqCJBb.js +0 -214
  163. package/dist/dist-BP2me-br.js +0 -59
  164. package/dist/dist-Dwv2VYAL.cjs +0 -1
  165. package/dist/ebnfDiagram-BXEA7PRR-C80cjdjP.js +0 -100
  166. package/dist/ebnfDiagram-BXEA7PRR-lKO9XwUp.cjs +0 -1
  167. package/dist/erDiagram-JOGREHBK-Blwfr6w3.js +0 -1727
  168. package/dist/erDiagram-JOGREHBK-ChgcmULa.cjs +0 -85
  169. package/dist/eventmodeling-45OFAUF4-BDhzj03B.js +0 -3
  170. package/dist/eventmodeling-45OFAUF4-BtU19idK.cjs +0 -1
  171. package/dist/flowDiagram-UKHOOZJN-Co0JpKUU.js +0 -16
  172. package/dist/flowDiagram-UKHOOZJN-db1Ur2LI.cjs +0 -1
  173. package/dist/ganttDiagram-PKOTCBZU-Byi4E8Ye.js +0 -3073
  174. package/dist/ganttDiagram-PKOTCBZU-C_Vwv1o8.cjs +0 -292
  175. package/dist/gitGraph-TEB2WS4Q-CAeGPNFR.cjs +0 -1
  176. package/dist/gitGraph-TEB2WS4Q-DJA_hE4G.js +0 -3
  177. package/dist/gitGraphDiagram-DS77QQ5N-BG8AQVtP.js +0 -733
  178. package/dist/gitGraphDiagram-DS77QQ5N-DK9VJTjf.cjs +0 -106
  179. package/dist/graphlib-BaETKKSa.cjs +0 -1
  180. package/dist/graphlib-DoD0LnUK.js +0 -1267
  181. package/dist/html-BH9giSUA.js +0 -2
  182. package/dist/html-DtqQp8LO.cjs +0 -1
  183. package/dist/info-DKCQHKI2-BD_vOCz6.js +0 -3
  184. package/dist/info-DKCQHKI2-p0Lazone.cjs +0 -1
  185. package/dist/infoDiagram-6WML65LV-B6PBOy7T.js +0 -20
  186. package/dist/infoDiagram-6WML65LV-nBSrP53Z.cjs +0 -2
  187. package/dist/init-BJdqMO10.cjs +0 -1
  188. package/dist/init-sjaVZO3f.js +0 -13
  189. package/dist/ishikawaDiagram-WSZJBQD7-BxEkaF2A.js +0 -719
  190. package/dist/ishikawaDiagram-WSZJBQD7-CjyKQ_N6.cjs +0 -70
  191. package/dist/javascript--0qAxhnA.js +0 -2
  192. package/dist/journeyDiagram-NVQOT4AX-BPCuqjbW.js +0 -884
  193. package/dist/journeyDiagram-NVQOT4AX-DKgEeNcy.cjs +0 -139
  194. package/dist/json-DVwBUiza.js +0 -2
  195. package/dist/kanban-definition-27J2QSJJ-BeKnR9zB.cjs +0 -89
  196. package/dist/kanban-definition-27J2QSJJ-D1pVuCv2.js +0 -974
  197. package/dist/katex-BfeHGk4M.js +0 -21977
  198. package/dist/katex-CEF6MvLx.cjs +0 -257
  199. package/dist/line-8EHPtDZA.cjs +0 -1
  200. package/dist/line-BifI9Y7j.js +0 -34
  201. package/dist/linear-Nt9BuHfn.cjs +0 -1
  202. package/dist/linear-l8AD1ib_.js +0 -288
  203. package/dist/map-CCpPjiU9.cjs +0 -1
  204. package/dist/map-DUk1uXZC.js +0 -241
  205. package/dist/mermaid-parser.core-BupC9XGF.js +0 -638
  206. package/dist/mermaid-parser.core-aXxW1VLR.cjs +0 -6
  207. package/dist/mermaid.core-C05C5gh_.cjs +0 -41
  208. package/dist/mermaid.core-CxM-VhZd.js +0 -2297
  209. package/dist/mindmap-definition-FAOFIHXS-B_k8KOvw.js +0 -1006
  210. package/dist/mindmap-definition-FAOFIHXS-CKPAiVKf.cjs +0 -96
  211. package/dist/ordinal-Bm_chml2.cjs +0 -1
  212. package/dist/ordinal-CNQzPcrr.js +0 -65
  213. package/dist/packet-7NZHBO7P-CVdRavgo.cjs +0 -1
  214. package/dist/packet-7NZHBO7P-CgBlALV1.js +0 -3
  215. package/dist/path-DIS6ck99.cjs +0 -1
  216. package/dist/path-DVvH25eQ.js +0 -84
  217. package/dist/pegDiagram-VL7TDLO6-B5Jhedbv.cjs +0 -1
  218. package/dist/pegDiagram-VL7TDLO6-PP-A-3Lv.js +0 -94
  219. package/dist/pie-RZYD4A2V-CryPC-P_.js +0 -3
  220. package/dist/pie-RZYD4A2V-CwDJ0bEW.cjs +0 -1
  221. package/dist/pieDiagram-7S7Q4E2Y-CgDU9E10.cjs +0 -39
  222. package/dist/pieDiagram-7S7Q4E2Y-CxNt1xaN.js +0 -203
  223. package/dist/quadrantDiagram-CIZ2JOQS-CMUanfcR.js +0 -2001
  224. package/dist/quadrantDiagram-CIZ2JOQS-vybEBK1o.cjs +0 -7
  225. package/dist/radar-I7S5WNFK-DaVgEjvC.cjs +0 -1
  226. package/dist/radar-I7S5WNFK-DgzJDRy3.js +0 -3
  227. package/dist/railroad-3IZDKUUU-BPsrMjqz.cjs +0 -1
  228. package/dist/railroad-3IZDKUUU-DFp3mbpB.js +0 -3
  229. package/dist/railroad-abnf-AHOZXSZD-BRjidKH0.js +0 -3
  230. package/dist/railroad-abnf-AHOZXSZD-ZpHq_KEy.cjs +0 -1
  231. package/dist/railroad-ebnf-EBAXGLYW-B45niwuq.cjs +0 -1
  232. package/dist/railroad-ebnf-EBAXGLYW-PgrDWact.js +0 -3
  233. package/dist/railroad-peg-LSFZ7HO6-CMKir81Y.js +0 -3
  234. package/dist/railroad-peg-LSFZ7HO6-DUsuEX2Z.cjs +0 -1
  235. package/dist/railroadDiagram-AXF67PYL-D7y_2yAa.cjs +0 -1
  236. package/dist/railroadDiagram-AXF67PYL-iLkvx2oU.js +0 -76
  237. package/dist/renderers/tokensToHtml.test.d.ts +0 -2
  238. package/dist/renderers/tokensToHtml.test.d.ts.map +0 -1
  239. package/dist/requirementDiagram-LRYGKXZP-Bs2mCDzB.js +0 -2223
  240. package/dist/requirementDiagram-LRYGKXZP-lA2nVr6h.cjs +0 -84
  241. package/dist/rolldown-runtime-B0aSnxlc.js +0 -20
  242. package/dist/rolldown-runtime-DF3sbh8G.cjs +0 -1
  243. package/dist/rough.esm-B2w_aYoc.js +0 -1361
  244. package/dist/rough.esm-ChRLLRha.cjs +0 -1
  245. package/dist/rust-BrRMzTsN.js +0 -3
  246. package/dist/rust-DWYDZl_E.cjs +0 -1
  247. package/dist/sankeyDiagram-W5VNT64P-BxYQllhE.js +0 -972
  248. package/dist/sankeyDiagram-W5VNT64P-vPci5pOT.cjs +0 -40
  249. package/dist/sequenceDiagram-SI44F4Z6-BNu1-3EN.cjs +0 -162
  250. package/dist/sequenceDiagram-SI44F4Z6-E6AoYU_R.js +0 -4156
  251. package/dist/sizeCapture-X5ZJPWSS-8gbZlYqg.js +0 -46
  252. package/dist/sizeCapture-X5ZJPWSS-bJ2ZX4Du.cjs +0 -1
  253. package/dist/sql-CF-HzF4U.cjs +0 -1
  254. package/dist/sql-DvCCsF21.js +0 -3
  255. package/dist/src-C7bjHtAI.js +0 -2139
  256. package/dist/src-D9o9TOtH.cjs +0 -1
  257. package/dist/stateDiagram-OKZ733FA-B7ITlY91.cjs +0 -1
  258. package/dist/stateDiagram-OKZ733FA-BfcOAK65.js +0 -220
  259. package/dist/stateDiagram-v2-UEYNNEHI-BHO-uUPG.js +0 -30
  260. package/dist/stateDiagram-v2-UEYNNEHI-lgGjJyRM.cjs +0 -1
  261. package/dist/swimlanes-SLNWSIFB-BHIPInzG.js +0 -5069
  262. package/dist/swimlanes-SLNWSIFB-C-Z31wMl.cjs +0 -1
  263. package/dist/swimlanesDiagram-ULZ7WXOC-C8pvRoyc.cjs +0 -8
  264. package/dist/swimlanesDiagram-ULZ7WXOC-CK6AVyRM.js +0 -30
  265. package/dist/timeline-definition-Z64GVDOM-C31otJwb.cjs +0 -120
  266. package/dist/timeline-definition-Z64GVDOM-rUKJY7cp.js +0 -1069
  267. package/dist/treeView-QDETBFTQ-BkNUN560.cjs +0 -1
  268. package/dist/treeView-QDETBFTQ-DVp4aTZQ.js +0 -3
  269. package/dist/treemap-6X3UGDF4-BbBnHMHJ.js +0 -3
  270. package/dist/treemap-6X3UGDF4-BcO657a2.cjs +0 -1
  271. package/dist/typescript-DFf19o_s.js +0 -2
  272. package/dist/utils/extractCompleteMarkdown.test.d.ts +0 -2
  273. package/dist/utils/extractCompleteMarkdown.test.d.ts.map +0 -1
  274. package/dist/vennDiagram-T6HMQDX7-DjlTuTEH.cjs +0 -34
  275. package/dist/vennDiagram-T6HMQDX7-vxMe-3nF.js +0 -1880
  276. package/dist/wardley-OPB4EBWU-B-RXhnoN.js +0 -3
  277. package/dist/wardley-OPB4EBWU-CiILNYeL.cjs +0 -1
  278. package/dist/wardleyDiagram-T6FBY63Y-BMQLZV1W.cjs +0 -78
  279. package/dist/wardleyDiagram-T6FBY63Y-C_Q2NmJu.js +0 -645
  280. package/dist/xychartDiagram-ELKLHX3M-Bsa_zeyd.cjs +0 -7
  281. package/dist/xychartDiagram-ELKLHX3M-OcVmrPL6.js +0 -2101
  282. /package/dist/{LatexBlock.vue.d.ts → components/LatexBlock.vue.d.ts} +0 -0
  283. /package/dist/{MarkdownRenderer.vue.d.ts → components/MarkdownRenderer.vue.d.ts} +0 -0
  284. /package/dist/{MermaidBlock.vue.d.ts → components/MermaidBlock.vue.d.ts} +0 -0
@@ -1 +0,0 @@
1
- const e=require("./chunk-Y2CYZVJY-CnmLqFtv.cjs");var t=e.n((e,t)=>{if(t)return`translate(`+-e.width/2+`, `+-e.height/2+`)`;let n=e.x??0,r=e.y??0;return`translate(`+-(n+e.width/2)+`, `+-(r+e.height/2)+`)`},`computeLabelTransform`),n={aggregation:17.25,extension:17.25,composition:17.25,dependency:6,lollipop:13.5,arrow_point:4,arrow_barb:0,arrow_barb_neo:5.5},r={arrow_point:4,arrow_cross:12.5,arrow_circle:12.5};function i(e,t){if(e===void 0||t===void 0)return{angle:0,deltaX:0,deltaY:0};e=a(e),t=a(t);let[n,r]=[e.x,e.y],[i,o]=[t.x,t.y],s=i-n,c=o-r;return{angle:Math.atan(c/s),deltaX:s,deltaY:c}}e.n(i,`calculateDeltaAndAngle`);var a=e.n(e=>Array.isArray(e)?{x:e[0],y:e[1]}:e,`pointTransformer`),o=e.n(t=>({x:e.n(function(e,r,o){let s=0,c=a(o[0]).x<a(o[o.length-1]).x?`left`:`right`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaX:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.cos(e)*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaX:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.cos(e)*(r>=0?1:-1)}let l=Math.abs(a(e).x-a(o[o.length-1]).x),u=Math.abs(a(e).y-a(o[o.length-1]).y),d=Math.abs(a(e).x-a(o[0]).x),f=Math.abs(a(e).y-a(o[0]).y),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`right`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`right`?-1:1,s+=e}return a(e).x+s},`x`),y:e.n(function(e,r,o){let s=0,c=a(o[0]).y<a(o[o.length-1]).y?`down`:`up`;if(r===0&&Object.hasOwn(n,t.arrowTypeStart)){let{angle:e,deltaY:r}=i(o[0],o[1]);s=n[t.arrowTypeStart]*Math.abs(Math.sin(e))*(r>=0?1:-1)}else if(r===o.length-1&&Object.hasOwn(n,t.arrowTypeEnd)){let{angle:e,deltaY:r}=i(o[o.length-1],o[o.length-2]);s=n[t.arrowTypeEnd]*Math.abs(Math.sin(e))*(r>=0?1:-1)}let l=Math.abs(a(e).y-a(o[o.length-1]).y),u=Math.abs(a(e).x-a(o[o.length-1]).x),d=Math.abs(a(e).y-a(o[0]).y),f=Math.abs(a(e).x-a(o[0]).x),p=n[t.arrowTypeStart],m=n[t.arrowTypeEnd];if(l<m&&l>0&&u<m){let e=m+1-l;e*=c===`up`?-1:1,s-=e}if(d<p&&d>0&&f<p){let e=p+1-d;e*=c===`up`?-1:1,s+=e}return a(e).y+s},`y`)}),`getLineFunctionsWithOffset`);Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return t}});
@@ -1,593 +0,0 @@
1
- import { n as e } from "./chunk-Y2CYZVJY-DO9UHHon.js";
2
- import { m as t, p as n } from "./src-C7bjHtAI.js";
3
- import { T as r, b as i, x as a } from "./chunk-I66GZJ75-xmbkwRyp.js";
4
- import { $ as o, J as s, K as c, Q as l, X as u, Y as d, Z as f, et as p, g as m, nt as h, q as g, rt as _, tt as v, u as y } from "./chunk-NSK5VX7P-BO1SrWAL.js";
5
- import { t as b } from "./line-BifI9Y7j.js";
6
- import { n as x } from "./chunk-WRU74C26-UGtU6H2a.js";
7
- import { i as S, n as ee, r as C, t as w } from "./chunk-7BUUIJ7U-CZdUK2qY.js";
8
- import { n as T } from "./chunk-UBXNYLIW-fOGkdEwd.js";
9
- import { i as E, n as D } from "./chunk-W5SLKNZC-C2SYjJjL.js";
10
- import { t as te } from "./rough.esm-B2w_aYoc.js";
11
- import { r as O } from "./chunk-QR6OTTB3-CGxJcV-X.js";
12
- //#region ../../node_modules/.pnpm/mermaid@11.16.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-7Z6QIM7H.mjs
13
- var ne = /* @__PURE__ */ e((e, t, n, r, i, a = !1, o) => {
14
- t.arrowTypeStart && j(e, "start", t.arrowTypeStart, n, r, i, a, o), t.arrowTypeEnd && j(e, "end", t.arrowTypeEnd, n, r, i, a, o);
15
- }, "addEdgeMarkers"), k = {
16
- arrow_cross: {
17
- type: "cross",
18
- fill: !1
19
- },
20
- arrow_point: {
21
- type: "point",
22
- fill: !0
23
- },
24
- arrow_barb: {
25
- type: "barb",
26
- fill: !0
27
- },
28
- arrow_barb_neo: {
29
- type: "barb",
30
- fill: !0
31
- },
32
- arrow_circle: {
33
- type: "circle",
34
- fill: !1
35
- },
36
- aggregation: {
37
- type: "aggregation",
38
- fill: !1
39
- },
40
- extension: {
41
- type: "extension",
42
- fill: !1
43
- },
44
- composition: {
45
- type: "composition",
46
- fill: !0
47
- },
48
- dependency: {
49
- type: "dependency",
50
- fill: !0
51
- },
52
- lollipop: {
53
- type: "lollipop",
54
- fill: !1
55
- },
56
- only_one: {
57
- type: "onlyOne",
58
- fill: !1
59
- },
60
- zero_or_one: {
61
- type: "zeroOrOne",
62
- fill: !1
63
- },
64
- one_or_more: {
65
- type: "oneOrMore",
66
- fill: !1
67
- },
68
- zero_or_more: {
69
- type: "zeroOrMore",
70
- fill: !1
71
- },
72
- requirement_arrow: {
73
- type: "requirement_arrow",
74
- fill: !1
75
- },
76
- requirement_contains: {
77
- type: "requirement_contains",
78
- fill: !1
79
- }
80
- }, A = [
81
- "cross",
82
- "point",
83
- "circle",
84
- "lollipop",
85
- "aggregation",
86
- "extension",
87
- "composition",
88
- "dependency",
89
- "barb"
90
- ], j = /* @__PURE__ */ e((e, n, r, i, a, o, s = !1, c) => {
91
- let l = k[r], u = l && A.includes(l.type);
92
- if (!l) {
93
- t.warn(`Unknown arrow type: ${r}`);
94
- return;
95
- }
96
- let d = `${a}_${o}-${l.type}${n === "start" ? "Start" : "End"}${s && u ? "-margin" : ""}`;
97
- if (c && c.trim() !== "") {
98
- let t = `${d}_${c.replace(/[^\dA-Za-z]/g, "_")}`;
99
- if (!document.getElementById(t)) {
100
- let e = document.getElementById(d);
101
- if (e) {
102
- let n = e.cloneNode(!0);
103
- n.id = t, n.querySelectorAll("path, circle, line").forEach((e) => {
104
- e.setAttribute("stroke", c), l.fill && e.setAttribute("fill", c);
105
- }), e.parentNode?.appendChild(n);
106
- }
107
- }
108
- e.attr(`marker-${n}`, `url(${i}#${t})`);
109
- } else e.attr(`marker-${n}`, `url(${i}#${d})`);
110
- }, "addEdgeMarker"), re = /* @__PURE__ */ e((e) => typeof e == "string" ? e : a()?.flowchart?.curve, "resolveEdgeCurveType"), M = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), P = /* @__PURE__ */ e(() => {
111
- M.clear(), N.clear();
112
- }, "clear"), F = /* @__PURE__ */ e((e) => e ? typeof e == "string" ? e : e.reduce((e, t) => e + ";" + t, "") : "", "getLabelStyles"), I = /* @__PURE__ */ e(async (e, i) => {
113
- let o = a(), s = r(o), { labelStyles: c } = E(i);
114
- i.labelStyle = c;
115
- let l = e.insert("g").attr("class", "edgeLabel"), u = l.insert("g").attr("class", "label").attr("data-id", i.id), d = i.labelType === "markdown", f = await x(e, i.label, {
116
- style: F(i.labelStyle),
117
- useHtmlLabels: s,
118
- addSvgBackground: !0,
119
- isNode: !1,
120
- markdown: d,
121
- width: void 0
122
- }, o);
123
- u.node().appendChild(f), t.info("abc82", i, i.labelType);
124
- let p = f.getBBox(), m = p;
125
- if (s) {
126
- let e = f.children[0], t = n(f);
127
- p = e.getBoundingClientRect(), m = p, t.attr("width", p.width), t.attr("height", p.height);
128
- } else {
129
- let e = n(f).select("text").node();
130
- e && typeof e.getBBox == "function" && (m = e.getBBox());
131
- }
132
- u.attr("transform", w(m, s)), M.set(i.id, l), i.width = p.width, i.height = p.height;
133
- let h;
134
- if (i.startLabelLeft) {
135
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelLeft, F(i.labelStyle) || "", !1, !1);
136
- h = a;
137
- let o = a.getBBox();
138
- if (s) {
139
- let e = a.children[0], t = n(a);
140
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
141
- }
142
- r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startLeft = t, L(h, i.startLabelLeft);
143
- }
144
- if (i.startLabelRight) {
145
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(r, i.startLabelRight, F(i.labelStyle) || "", !1, !1);
146
- h = a;
147
- let o = a.getBBox();
148
- if (s) {
149
- let e = a.children[0], t = n(a);
150
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
151
- }
152
- r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).startRight = t, L(h, i.startLabelRight);
153
- }
154
- if (i.endLabelLeft) {
155
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelLeft, F(i.labelStyle) || "", !1, !1);
156
- h = a;
157
- let o = a.getBBox();
158
- if (s) {
159
- let e = a.children[0], t = n(a);
160
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
161
- }
162
- r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endLeft = t, L(h, i.endLabelLeft);
163
- }
164
- if (i.endLabelRight) {
165
- let t = e.insert("g").attr("class", "edgeTerminals"), r = t.insert("g").attr("class", "inner"), a = await O(t, i.endLabelRight, F(i.labelStyle) || "", !1, !1);
166
- h = a;
167
- let o = a.getBBox();
168
- if (s) {
169
- let e = a.children[0], t = n(a);
170
- o = e.getBoundingClientRect(), t.attr("width", o.width), t.attr("height", o.height);
171
- }
172
- r.attr("transform", w(o, s)), N.get(i.id) || N.set(i.id, {}), N.get(i.id).endRight = t, L(h, i.endLabelRight);
173
- }
174
- return f;
175
- }, "insertEdgeLabel");
176
- function L(e, t) {
177
- r(a()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
178
- }
179
- e(L, "setTerminalWidth");
180
- var R = /* @__PURE__ */ e((e, n) => {
181
- t.debug("Moving label abc88 ", e.id, e.label, M.get(e.id), n);
182
- let r = n.updatedPath ? n.updatedPath : n.originalPath, i = a(), { subGraphTitleTotalMargin: o } = T(i);
183
- if (e.label) {
184
- let i = M.get(e.id), a = e.x, s = e.y;
185
- if (r) {
186
- let i = m.calcLabelPosition(r);
187
- t.debug("Moving label " + e.label + " from (", a, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (a = i.x, s = i.y);
188
- }
189
- i.attr("transform", `translate(${a}, ${s + o / 2})`);
190
- }
191
- if (e.startLabelLeft) {
192
- let t = N.get(e.id).startLeft, n = e.x, i = e.y;
193
- if (r) {
194
- let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_left", r);
195
- n = t.x, i = t.y;
196
- }
197
- t.attr("transform", `translate(${n}, ${i})`);
198
- }
199
- if (e.startLabelRight) {
200
- let t = N.get(e.id).startRight, n = e.x, i = e.y;
201
- if (r) {
202
- let t = m.calcTerminalLabelPosition(e.arrowTypeStart ? 10 : 0, "start_right", r);
203
- n = t.x, i = t.y;
204
- }
205
- t.attr("transform", `translate(${n}, ${i})`);
206
- }
207
- if (e.endLabelLeft) {
208
- let t = N.get(e.id).endLeft, n = e.x, i = e.y;
209
- if (r) {
210
- let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_left", r);
211
- n = t.x, i = t.y;
212
- }
213
- t.attr("transform", `translate(${n}, ${i})`);
214
- }
215
- if (e.endLabelRight) {
216
- let t = N.get(e.id).endRight, n = e.x, i = e.y;
217
- if (r) {
218
- let t = m.calcTerminalLabelPosition(e.arrowTypeEnd ? 10 : 0, "end_right", r);
219
- n = t.x, i = t.y;
220
- }
221
- t.attr("transform", `translate(${n}, ${i})`);
222
- }
223
- }, "positionEdgeLabel"), ie = /* @__PURE__ */ e((e, t) => {
224
- if (!e?.isLabelEdge || !e?.id?.endsWith("-to-label") || !Array.isArray(t) || t.length !== 2) return t;
225
- let [n, r] = t, i = Math.abs(r.x - n.x), a = Math.abs(r.y - n.y);
226
- return i < .001 || a < .001 ? t : a >= i ? [
227
- n,
228
- {
229
- x: n.x,
230
- y: r.y
231
- },
232
- r
233
- ] : [
234
- n,
235
- {
236
- x: r.x,
237
- y: n.y
238
- },
239
- r
240
- ];
241
- }, "orthogonalizeToLabelClippedPoints"), z = /* @__PURE__ */ e((e, t) => {
242
- let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
243
- return i >= o || a >= s;
244
- }, "outsideNode"), B = /* @__PURE__ */ e((e, n, r) => {
245
- t.debug(`intersection calc abc89:
246
- outsidePoint: ${JSON.stringify(n)}
247
- insidePoint : ${JSON.stringify(r)}
248
- node : x:${e.x} y:${e.y} w:${e.width} h:${e.height}`);
249
- let i = e.x, a = e.y, o = Math.abs(i - r.x), s = e.width / 2, c = r.x < n.x ? s - o : s + o, l = e.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
250
- if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
251
- let e = r.y < n.y ? n.y - l - a : a - l - n.y;
252
- c = d * e / u;
253
- let i = {
254
- x: r.x < n.x ? r.x + c : r.x - d + c,
255
- y: r.y < n.y ? r.y + u - e : r.y - u + e
256
- };
257
- return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), t.debug(`abc89 top/bottom calc, Q ${u}, q ${e}, R ${d}, r ${c}`, i), i;
258
- }
259
- {
260
- c = r.x < n.x ? n.x - s - i : i - s - n.x;
261
- let e = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + e : r.y - e;
262
- return t.debug(`sides calc abc89, Q ${u}, q ${e}, R ${d}, r ${c}`, {
263
- _x: a,
264
- _y: o
265
- }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
266
- x: a,
267
- y: o
268
- };
269
- }
270
- }, "intersection"), V = /* @__PURE__ */ e((e, n) => {
271
- t.warn("abc88 cutPathAtIntersect", e, n);
272
- let r = [], i = e[0], a = !1;
273
- return e.forEach((e) => {
274
- if (t.info("abc88 checking point", e, n), !z(n, e) && !a) {
275
- let o = B(n, i, e);
276
- t.debug("abc88 inside", e, i, o), t.debug("abc88 intersection", o, n);
277
- let s = !1;
278
- r.forEach((e) => {
279
- s ||= e.x === o.x && e.y === o.y;
280
- }), r.some((e) => e.x === o.x && e.y === o.y) ? t.warn("abc88 no intersect", o, r) : r.push(o), a = !0;
281
- } else t.warn("abc88 outside", e, i), i = e, a || r.push(e);
282
- }), t.debug("returning points", r), r;
283
- }, "cutPathAtIntersect");
284
- function H(e) {
285
- let t = [], n = [];
286
- for (let r = 1; r < e.length - 1; r++) {
287
- let i = e[r - 1], a = e[r], o = e[r + 1];
288
- (i.x === a.x && a.y === o.y && Math.abs(a.x - o.x) > 5 && Math.abs(a.y - i.y) > 5 || i.y === a.y && a.x === o.x && Math.abs(a.x - i.x) > 5 && Math.abs(a.y - o.y) > 5) && (t.push(a), n.push(r));
289
- }
290
- return {
291
- cornerPoints: t,
292
- cornerPointPositions: n
293
- };
294
- }
295
- e(H, "extractCornerPoints");
296
- var U = /* @__PURE__ */ e(function(e, t, n) {
297
- let r = t.x - e.x, i = t.y - e.y, a = n / Math.sqrt(r * r + i * i);
298
- return {
299
- x: t.x - a * r,
300
- y: t.y - a * i
301
- };
302
- }, "findAdjacentPoint"), ae = /* @__PURE__ */ e(function(e) {
303
- let { cornerPointPositions: n } = H(e), r = [];
304
- for (let i = 0; i < e.length; i++) if (n.includes(i)) {
305
- let n = e[i - 1], a = e[i + 1], o = e[i], s = U(n, o, 5), c = U(a, o, 5), l = c.x - s.x, u = c.y - s.y;
306
- r.push(s);
307
- let d = Math.sqrt(2) * 2, f = {
308
- x: o.x,
309
- y: o.y
310
- };
311
- Math.abs(a.x - n.x) > 10 && Math.abs(a.y - n.y) >= 10 ? (t.debug("Corner point fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), f = o.x === s.x ? {
312
- x: l < 0 ? s.x - 5 + d : s.x + 5 - d,
313
- y: u < 0 ? s.y - d : s.y + d
314
- } : {
315
- x: l < 0 ? s.x - d : s.x + d,
316
- y: u < 0 ? s.y - 5 + d : s.y + 5 - d
317
- }) : t.debug("Corner point skipping fixing", Math.abs(a.x - n.x), Math.abs(a.y - n.y)), r.push(f, c);
318
- } else r.push(e[i]);
319
- return r;
320
- }, "fixCorners"), oe = /* @__PURE__ */ e((e, t, n) => {
321
- let r = e - t - n, i = Math.floor(r / 4);
322
- return `0 ${t} ${Array(i).fill("2 2").join(" ")} ${n}`;
323
- }, "generateDashArray"), W = /* @__PURE__ */ e(function(e, r, i, x, C, w, T, E = !1) {
324
- if (!T) throw Error(`insertEdge: missing diagramId for edge "${r.id}" \u2014 edge IDs require a diagram prefix for uniqueness`);
325
- let { handDrawnSeed: O, layout: k } = a(), A = r.points, j = !1, M = C;
326
- var N = w;
327
- let P = [];
328
- for (let e in r.cssCompiledStyles) D(e) || P.push(r.cssCompiledStyles[e]);
329
- if (k === "swimlane") {
330
- if (N.intersect && M.intersect && Array.isArray(A) && A.length >= 2) {
331
- if (A.length === 2) A = [M.intersect(A[0]), N.intersect(A[1])];
332
- else {
333
- let e = A.slice(1, -1), t = e[0], n = e[e.length - 1], r = .5, i = Math.abs(A[A.length - 1].x - n.x) < r && Math.abs(A[A.length - 1].y - n.y) < r, a = M.intersect(t), o = i ? n : N.intersect(n), s = Math.abs(o.x - n.x) < r && Math.abs(o.y - n.y) < r, c = Math.abs(a.x - t.x) < r && Math.abs(a.y - t.y) < r ? [] : [a], l = s ? [] : [o];
334
- A = [
335
- ...c,
336
- ...e,
337
- ...l
338
- ];
339
- }
340
- }
341
- A = ie(r, A);
342
- } else N.intersect && M.intersect && !E && (A = A.slice(1, r.points.length - 1), A.unshift(M.intersect(A[0])), A.push(N.intersect(A[A.length - 1])));
343
- let F = btoa(JSON.stringify(A));
344
- r.toCluster && (t.info("to cluster abc88", i.get(r.toCluster)), A = V(r.points, i.get(r.toCluster).node), j = !0), r.fromCluster && (t.debug("from cluster abc88", i.get(r.fromCluster), JSON.stringify(A, null, 2)), A = V(A.reverse(), i.get(r.fromCluster).node).reverse(), j = !0);
345
- let I = A.filter((e) => !Number.isNaN(e.y)), L = re(r.curve);
346
- L !== "rounded" && (I = ae(I));
347
- let R = _;
348
- switch (L) {
349
- case "linear":
350
- R = _;
351
- break;
352
- case "basis":
353
- R = p;
354
- break;
355
- case "cardinal":
356
- R = o;
357
- break;
358
- case "bumpX":
359
- R = v;
360
- break;
361
- case "bumpY":
362
- R = h;
363
- break;
364
- case "catmullRom":
365
- R = l;
366
- break;
367
- case "monotoneX":
368
- R = u;
369
- break;
370
- case "monotoneY":
371
- R = f;
372
- break;
373
- case "natural":
374
- R = d;
375
- break;
376
- case "step":
377
- R = s;
378
- break;
379
- case "stepAfter":
380
- R = c;
381
- break;
382
- case "stepBefore":
383
- R = g;
384
- break;
385
- case "rounded":
386
- R = _;
387
- break;
388
- default: R = p;
389
- }
390
- let { x: z, y: B } = ee(r), H = b().x(z).y(B).curve(R), U;
391
- switch (r.thickness) {
392
- case "normal":
393
- U = "edge-thickness-normal";
394
- break;
395
- case "thick":
396
- U = "edge-thickness-thick";
397
- break;
398
- case "invisible":
399
- U = "edge-thickness-invisible";
400
- break;
401
- default: U = "edge-thickness-normal";
402
- }
403
- switch (r.pattern) {
404
- case "solid":
405
- U += " edge-pattern-solid";
406
- break;
407
- case "dotted":
408
- U += " edge-pattern-dotted";
409
- break;
410
- case "dashed":
411
- U += " edge-pattern-dashed";
412
- break;
413
- default: U += " edge-pattern-solid";
414
- }
415
- let W, K = L === "rounded" ? G(q(I, r), 5) : H(I), J = Array.isArray(r.style) ? r.style : [r.style], Y = J.find((e) => e?.startsWith("stroke:")), X = "";
416
- r.animate && (X = "edge-animation-fast"), r.animation && (X = "edge-animation-" + r.animation);
417
- let Z = !1;
418
- if (r.look === "handDrawn") {
419
- let t = te.svg(e);
420
- Object.assign([], I);
421
- let i = t.path(K, {
422
- roughness: .3,
423
- seed: O
424
- });
425
- U += " transition", W = n(i).select("path").attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", J ? J.reduce((e, t) => e + ";" + t, "") : "");
426
- let a = W.attr("d");
427
- W.attr("d", a), e.node().appendChild(W.node());
428
- } else {
429
- let t = P.join(";"), n = J ? J.reduce((e, t) => e + t + ";", "") : "", i = (t ? t + ";" + n + ";" : n) + ";" + (J ? J.reduce((e, t) => e + ";" + t, "") : "");
430
- W = e.append("path").attr("d", K).attr("id", `${T}-${r.id}`).attr("class", " " + U + (r.classes ? " " + r.classes : "") + (X ? " " + X : "")).attr("style", i), Y = i.match(/stroke:([^;]+)/)?.[1], Z = r.animate === !0 || !!r.animation || t.includes("animation");
431
- let a = W.node(), o = typeof a.getTotalLength == "function" ? a.getTotalLength() : 0, s = S[r.arrowTypeStart] || 0, c = S[r.arrowTypeEnd] || 0;
432
- if (r.look === "neo" && !Z) {
433
- let e = `stroke-dasharray: ${r.pattern === "dotted" || r.pattern === "dashed" ? oe(o, s, c) : `0 ${s} ${o - s - c} ${c}`}; stroke-dashoffset: 0;`;
434
- W.attr("style", e + W.attr("style"));
435
- }
436
- }
437
- W.attr("data-edge", !0), W.attr("data-et", "edge"), W.attr("data-id", r.id), W.attr("data-points", F), W.attr("data-look", y(r.look)), r.showPoints && I.forEach((t) => {
438
- e.append("circle").style("stroke", "red").style("fill", "red").attr("r", 1).attr("cx", t.x).attr("cy", t.y);
439
- });
440
- let Q = "";
441
- (a().flowchart.arrowMarkerAbsolute || a().state.arrowMarkerAbsolute) && (Q = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, Q = Q.replace(/\(/g, "\\(").replace(/\)/g, "\\)")), t.info("arrowTypeStart", r.arrowTypeStart), t.info("arrowTypeEnd", r.arrowTypeEnd);
442
- let se = !Z && r?.look === "neo";
443
- ne(W, r, Q, T, x, se, Y);
444
- let ce = Math.floor(A.length / 2), le = A[ce];
445
- m.isLabelCoordinateInPath(le, W.attr("d")) || (j = !0);
446
- let $ = {};
447
- return j && ($.updatedPath = A), $.originalPath = r.points, $;
448
- }, "insertEdge");
449
- function G(e, t) {
450
- if (e.length < 2) return "";
451
- let n = "", r = e.length, i = 1e-5;
452
- for (let a = 0; a < r; a++) {
453
- let o = e[a], s = e[a - 1], c = e[a + 1];
454
- if (a === 0) n += `M${o.x},${o.y}`;
455
- else if (a === r - 1) n += `L${o.x},${o.y}`;
456
- else {
457
- let e = o.x - s.x, r = o.y - s.y, a = c.x - o.x, l = c.y - o.y, u = Math.hypot(e, r), d = Math.hypot(a, l);
458
- if (u < i || d < i) {
459
- n += `L${o.x},${o.y}`;
460
- continue;
461
- }
462
- let f = e / u, p = r / u, m = a / d, h = l / d, g = f * m + p * h, _ = Math.acos(Math.max(-1, Math.min(1, g)));
463
- if (_ < i || Math.abs(Math.PI - _) < i) {
464
- n += `L${o.x},${o.y}`;
465
- continue;
466
- }
467
- let v = Math.min(t / Math.sin(_ / 2), u / 2, d / 2), y = o.x - f * v, b = o.y - p * v, x = o.x + m * v, S = o.y + h * v;
468
- n += `L${y},${b}`, n += `Q${o.x},${o.y} ${x},${S}`;
469
- }
470
- }
471
- return n;
472
- }
473
- e(G, "generateRoundedPath");
474
- function K(e, t) {
475
- if (!e || !t) return {
476
- angle: 0,
477
- deltaX: 0,
478
- deltaY: 0
479
- };
480
- let n = t.x - e.x, r = t.y - e.y;
481
- return {
482
- angle: Math.atan2(r, n),
483
- deltaX: n,
484
- deltaY: r
485
- };
486
- }
487
- e(K, "calculateDeltaAndAngle");
488
- function q(e, t) {
489
- let n = e.map((e) => ({ ...e }));
490
- if (e.length >= 2 && C[t.arrowTypeStart]) {
491
- let r = C[t.arrowTypeStart], i = e[0], a = e[1], { angle: o } = K(i, a), s = r * Math.cos(o), c = r * Math.sin(o);
492
- n[0].x = i.x + s, n[0].y = i.y + c;
493
- }
494
- let r = e.length;
495
- if (r >= 2 && C[t.arrowTypeEnd]) {
496
- let i = C[t.arrowTypeEnd], a = e[r - 1], o = e[r - 2], { angle: s } = K(o, a), c = i * Math.cos(s), l = i * Math.sin(s);
497
- n[r - 1].x = a.x - c, n[r - 1].y = a.y - l;
498
- }
499
- return n;
500
- }
501
- e(q, "applyMarkerOffsetsToPoints");
502
- var J = /* @__PURE__ */ e((e, t, n, r) => {
503
- t.forEach((t) => {
504
- Y[t](e, n, r);
505
- });
506
- }, "insertMarkers"), Y = {
507
- extension: /* @__PURE__ */ e((e, n, r) => {
508
- t.trace("Making markers for ", r), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), e.append("marker").attr("id", r + "_" + n + "-extensionStart-margin").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,7 18,13 18,1").style("stroke-width", 2).style("stroke-dasharray", "0"), e.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd-margin").attr("class", "marker extension " + n).attr("refX", 9).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("viewBox", "0 0 20 14").append("polygon").attr("points", "10,1 10,13 18,7").style("stroke-width", 2).style("stroke-dasharray", "0");
509
- }, "extension"),
510
- composition: /* @__PURE__ */ e((e, t, n) => {
511
- e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart-margin").attr("class", "marker composition " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("viewBox", "0 0 15 15").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd-margin").attr("class", "marker composition " + t).attr("refX", 3.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
512
- }, "composition"),
513
- aggregation: /* @__PURE__ */ e((e, t, n) => {
514
- e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart-margin").attr("class", "marker aggregation " + t).attr("refX", 15).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd-margin").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 2).attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
515
- }, "aggregation"),
516
- dependency: /* @__PURE__ */ e((e, t, n) => {
517
- e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart-margin").attr("class", "marker dependency " + t).attr("refX", 4).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd-margin").attr("class", "marker dependency " + t).attr("refX", 16).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").style("stroke-width", 0).attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
518
- }, "dependency"),
519
- lollipop: /* @__PURE__ */ e((e, t, n) => {
520
- e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart-margin").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd-margin").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("circle").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6).attr("stroke-width", 2);
521
- }, "lollipop"),
522
- point: /* @__PURE__ */ e((e, t, n) => {
523
- e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 8).attr("markerHeight", 8).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 11.5).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 10.5).attr("markerHeight", 14).attr("orient", "auto").append("path").attr("d", "M 0 0 L 11.5 7 L 0 14 z").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 11.5 14").attr("refX", 1).attr("refY", 7).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11.5).attr("markerHeight", 14).attr("orient", "auto").append("polygon").attr("points", "0,7 11.5,14 11.5,0").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
524
- }, "point"),
525
- circle: /* @__PURE__ */ e((e, t, n) => {
526
- e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleEnd-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refY", 5).attr("refX", 12.25).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart-margin").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -2).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 14).attr("markerHeight", 14).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 0).style("stroke-dasharray", "1,0");
527
- }, "circle"),
528
- cross: /* @__PURE__ */ e((e, t, n) => {
529
- e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossEnd-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", 17.7).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5), e.append("marker").attr("id", n + "_" + t + "-crossStart-margin").attr("class", "marker cross " + t).attr("viewBox", "0 0 15 15").attr("refX", -3.5).attr("refY", 7.5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 1,1 L 14,14 M 1,14 L 14,1").attr("class", "arrowMarkerPath").style("stroke-width", 2.5).style("stroke-dasharray", "1,0");
530
- }, "cross"),
531
- barb: /* @__PURE__ */ e((e, t, n) => {
532
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
533
- }, "barb"),
534
- barbNeo: /* @__PURE__ */ e((e, t, n) => {
535
- let { themeVariables: r } = i(), { transitionColor: a } = r;
536
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd-margin").attr("refX", 17).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M 19,7 L11,14 L13,7 L11,0 Z").attr("fill", `${a}`);
537
- }, "barbNeo"),
538
- only_one: /* @__PURE__ */ e((e, t, n) => {
539
- e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18"), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18");
540
- }, "only_one"),
541
- zero_or_one: /* @__PURE__ */ e((e, t, n) => {
542
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
543
- r.append("circle").attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("d", "M9,0 L9,18");
544
- let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto");
545
- i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), i.append("path").attr("d", "M21,0 L21,18");
546
- }, "zero_or_one"),
547
- one_or_more: /* @__PURE__ */ e((e, t, n) => {
548
- e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18");
549
- }, "one_or_more"),
550
- zero_or_more: /* @__PURE__ */ e((e, t, n) => {
551
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
552
- r.append("circle").attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18");
553
- let i = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto");
554
- i.append("circle").attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), i.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18");
555
- }, "zero_or_more"),
556
- only_one_neo: /* @__PURE__ */ e((e, t, n) => {
557
- let { themeVariables: r } = i(), { strokeWidth: a } = r;
558
- e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneStart").attr("class", "marker onlyOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M9,0 L9,18 M15,0 L15,18").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-onlyOneEnd").attr("class", "marker onlyOne " + t).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M3,0 L3,18 M9,0 L9,18").attr("stroke-width", `${a}`);
559
- }, "only_one_neo"),
560
- zero_or_one_neo: /* @__PURE__ */ e((e, t, n) => {
561
- let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneStart").attr("class", "marker zeroOrOne " + t).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
562
- s.append("circle").attr("fill", o ?? "white").attr("cx", 21).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), s.append("path").attr("d", "M9,0 L9,18").attr("stroke-width", `${a}`);
563
- let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrOneEnd").attr("class", "marker zeroOrOne " + t).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
564
- c.append("circle").attr("fill", o ?? "white").attr("cx", 9).attr("cy", 9).attr("stroke-width", `${a}`).attr("r", 6), c.append("path").attr("d", "M21,0 L21,18").attr("stroke-width", `${a}`);
565
- }, "zero_or_one_neo"),
566
- one_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
567
- let { themeVariables: r } = i(), { strokeWidth: a } = r;
568
- e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreStart").attr("class", "marker oneOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("path").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27").attr("stroke-width", `${a}`), e.append("defs").append("marker").attr("id", n + "_" + t + "-oneOrMoreEnd").attr("class", "marker oneOrMore " + t).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto").append("path").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18").attr("stroke-width", `${a}`);
569
- }, "one_or_more_neo"),
570
- zero_or_more_neo: /* @__PURE__ */ e((e, t, n) => {
571
- let { themeVariables: r } = i(), { strokeWidth: a, mainBkg: o } = r, s = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreStart").attr("class", "marker zeroOrMore " + t).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("markerUnits", "userSpaceOnUse").attr("orient", "auto");
572
- s.append("circle").attr("fill", o ?? "white").attr("cx", 45.5).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), s.append("path").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18").attr("stroke-width", `${a}`);
573
- let c = e.append("defs").append("marker").attr("id", n + "_" + t + "-zeroOrMoreEnd").attr("class", "marker zeroOrMore " + t).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse");
574
- c.append("circle").attr("fill", o ?? "white").attr("cx", 11).attr("cy", 18).attr("r", 6).attr("stroke-width", `${a}`), c.append("path").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18").attr("stroke-width", `${a}`);
575
- }, "zero_or_more_neo"),
576
- requirement_arrow: /* @__PURE__ */ e((e, t, n) => {
577
- e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20");
578
- }, "requirement_arrow"),
579
- requirement_contains: /* @__PURE__ */ e((e, t, n) => {
580
- let r = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").append("g");
581
- r.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), r.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), r.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10);
582
- }, "requirement_contains"),
583
- requirement_arrow_neo: /* @__PURE__ */ e((e, t, n) => {
584
- let { themeVariables: r } = i(), { strokeWidth: a } = r;
585
- e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_arrowEnd").attr("refX", 20).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").attr("stroke-width", `${a}`).attr("viewBox", "0 0 25 20").append("path").attr("d", "M0,0\n L20,10\n M20,10\n L0,20").attr("stroke-linejoin", "miter");
586
- }, "requirement_arrow_neo"),
587
- requirement_contains_neo: /* @__PURE__ */ e((e, t, n) => {
588
- let { themeVariables: r } = i(), { strokeWidth: a } = r, o = e.append("defs").append("marker").attr("id", n + "_" + t + "-requirement_containsStart").attr("refX", 0).attr("refY", 10).attr("markerWidth", 20).attr("markerHeight", 20).attr("orient", "auto").attr("markerUnits", "userSpaceOnUse").append("g");
589
- o.append("circle").attr("cx", 10).attr("cy", 10).attr("r", 9).attr("fill", "none"), o.append("line").attr("x1", 1).attr("x2", 19).attr("y1", 10).attr("y2", 10), o.append("line").attr("y1", 1).attr("y2", 19).attr("x1", 10).attr("x2", 10), o.selectAll("*").attr("stroke-width", `${a}`);
590
- }, "requirement_contains_neo")
591
- }, X = J;
592
- //#endregion
593
- export { X as a, I as i, M as n, R as o, W as r, N as s, P as t };