docmedown 0.1.7 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (304) hide show
  1. package/LICENSE +201 -21
  2. package/README.md +86 -37
  3. package/dist/architecture-7GRP2DOG-B8Xs9IfY.mjs +2 -0
  4. package/dist/architecture-7GRP2DOG-Vdsw7WC7.js +1 -0
  5. package/dist/cli.js +672 -1294
  6. package/dist/cynefin-OW5HDTMX-DU6kwwck.js +1 -0
  7. package/dist/cynefin-OW5HDTMX-F0P2M_lQ.mjs +2 -0
  8. package/dist/docmedown-compiler.js +228 -0
  9. package/dist/docmedown-mermaid.js +3588 -0
  10. package/dist/docmedown.cjs +7264 -80
  11. package/dist/docmedown.iife.js +7624 -424
  12. package/dist/docmedown.mjs +15531 -15009
  13. package/dist/docmedown.web.js +7628 -0
  14. package/dist/eventmodeling-NTZA5JFV-D58ICByZ.js +1 -0
  15. package/dist/eventmodeling-NTZA5JFV-SxxTo5cJ.mjs +2 -0
  16. package/dist/gitGraph-4MIJSDKK-C_R2a4aQ.mjs +2 -0
  17. package/dist/gitGraph-4MIJSDKK-CdMj8HJ8.js +1 -0
  18. package/dist/info-A6RAGUB7-CG4UBCfn.js +1 -0
  19. package/dist/info-A6RAGUB7-DmjQlHTj.mjs +2 -0
  20. package/dist/mermaid-BvOI3ZSW.js +3334 -0
  21. package/dist/mermaid-Cx9uSfoz.mjs +116948 -0
  22. package/dist/packet-AYTQ26CC-CMuoEJn0.js +1 -0
  23. package/dist/packet-AYTQ26CC-tdMo_iPL.mjs +2 -0
  24. package/dist/pie-WAS4IAKB-C1hjX8y0.js +1 -0
  25. package/dist/pie-WAS4IAKB-DG2Bio1G.mjs +2 -0
  26. package/dist/prism-CeBRmKvl.js +2 -0
  27. package/dist/prism-CummdiZX.mjs +1588 -0
  28. package/dist/radar-RG4KPBEZ-DHxYOB0f.mjs +2 -0
  29. package/dist/radar-RG4KPBEZ-Dvyo3gdA.js +1 -0
  30. package/dist/railroad-74A4TZTK-1sb9Z_QQ.js +1 -0
  31. package/dist/railroad-74A4TZTK-CwztrSkE.mjs +2 -0
  32. package/dist/railroad-abnf-HS5TGJTU-4264fZjH.js +1 -0
  33. package/dist/railroad-abnf-HS5TGJTU-BKCsR9iC.mjs +2 -0
  34. package/dist/railroad-ebnf-LZEXJU2U-BXErl5kO.js +1 -0
  35. package/dist/railroad-ebnf-LZEXJU2U-DzDOfuxK.mjs +2 -0
  36. package/dist/railroad-peg-WCYAUIDC-B6gNHamV.mjs +2 -0
  37. package/dist/railroad-peg-WCYAUIDC-D7pSwRGa.js +1 -0
  38. package/dist/rolldown-runtime-B0aSnxlc.mjs +20 -0
  39. package/dist/rolldown-runtime-DF3sbh8G.js +1 -0
  40. package/dist/svelte-compiler-loader-Deqbdbvf.js +1 -0
  41. package/dist/svelte-compiler-loader-DtYQgEKV.mjs +50 -0
  42. package/dist/svelte-runtime-Brc440dp.js +5 -0
  43. package/dist/svelte-runtime-CgCk_bw1.mjs +40 -0
  44. package/dist/treeView-Q6P3EWNA-DArM8kFH.mjs +2 -0
  45. package/dist/treeView-Q6P3EWNA-JstiGzov.js +1 -0
  46. package/dist/treemap-WGGIJYW6-CMIcmEVN.mjs +2 -0
  47. package/dist/treemap-WGGIJYW6-Dq6fFckz.js +1 -0
  48. package/dist/ts-compiler-BMDmcNn5.mjs +93 -0
  49. package/dist/ts-compiler-U7pTMJjY.js +3 -0
  50. package/dist/types/runtime/bridges/dynamic-component.d.ts +43 -0
  51. package/dist/types/runtime/bridges/element-bridge.d.ts +24 -0
  52. package/dist/types/runtime/bridges/index.d.ts +3 -0
  53. package/dist/types/runtime/bridges/react-bridge.d.ts +35 -0
  54. package/dist/types/runtime/compiler-cache.d.ts +18 -0
  55. package/dist/types/runtime/config-schema.d.ts +2 -0
  56. package/dist/types/runtime/favicons.d.ts +28 -0
  57. package/dist/types/runtime/loader/local-loader.d.ts +13 -0
  58. package/dist/types/runtime/markdown/component-body.d.ts +7 -0
  59. package/dist/types/runtime/markdown/escape.d.ts +1 -0
  60. package/dist/types/runtime/markdown/highlighter.d.ts +32 -6
  61. package/dist/types/runtime/markdown/katex.d.ts +5 -0
  62. package/dist/types/runtime/markdown/mermaid-engine.d.ts +1 -0
  63. package/dist/types/runtime/markdown/mermaid-loader.d.ts +19 -0
  64. package/dist/types/runtime/markdown/mermaid.d.ts +6 -0
  65. package/dist/types/runtime/markdown/tables.d.ts +68 -0
  66. package/dist/types/runtime/media.d.ts +30 -0
  67. package/dist/types/runtime/motion.d.ts +134 -0
  68. package/dist/types/runtime/offline-export.d.ts +9 -2
  69. package/dist/types/runtime/router.d.ts +40 -2
  70. package/dist/types/runtime/splash.d.ts +90 -0
  71. package/dist/types/runtime/svelte-compiler-engine.d.ts +1 -0
  72. package/dist/types/runtime/svelte-compiler-loader.d.ts +14 -0
  73. package/dist/types/runtime/svelte-runtime.d.ts +29 -0
  74. package/dist/types/runtime/svelte-tag.d.ts +7 -0
  75. package/dist/types/runtime/ts-compiler.d.ts +24 -0
  76. package/dist/types/runtime/types.d.ts +1 -0
  77. package/dist/types/ui/doc-context.svelte.d.ts +198 -0
  78. package/dist/types/ui/index.d.ts +33 -0
  79. package/dist/types/ui/registry.d.ts +52 -0
  80. package/dist/types/ui/theme.svelte.d.ts +32 -0
  81. package/dist/wardley-WFR3VGLG-BK9BA6h6.mjs +2 -0
  82. package/dist/wardley-WFR3VGLG-Cbs7W-dU.js +1 -0
  83. package/package.json +61 -48
  84. package/schemas/docs.schema.json +186 -181
  85. package/templates/.dmd/CounterWidget.svelte +29 -0
  86. package/templates/README.md +2 -2
  87. package/templates/favicon.svg +12 -0
  88. package/templates/favicons/favicon-book.svg +11 -0
  89. package/templates/favicons/favicon-markdown.svg +11 -0
  90. package/templates/favicons/favicon-minimal.svg +15 -0
  91. package/templates/favicons/favicon-terminal.svg +14 -0
  92. package/templates/favicons/favicon.svg +12 -0
  93. package/templates/guides/custom-components.md +82 -22
  94. package/templates/index.html +6 -3
  95. package/dist/abnfDiagram-VCTEODGH-CtQBp0Qv.mjs +0 -89
  96. package/dist/abnfDiagram-VCTEODGH-mccrzlD_.js +0 -1
  97. package/dist/arc-DgPKXEdT.mjs +0 -82
  98. package/dist/arc-n7TW7Bis.js +0 -1
  99. package/dist/architecture-7GRP2DOG-B7myQ46f.js +0 -1
  100. package/dist/architecture-7GRP2DOG-Cxj1ussQ.mjs +0 -3
  101. package/dist/architectureDiagram-5GKGNRK7-BdTCu5T3.js +0 -36
  102. package/dist/architectureDiagram-5GKGNRK7-CkgZa-G1.mjs +0 -4154
  103. package/dist/array-CApNbSU9.mjs +0 -6
  104. package/dist/array-DZSRzHA_.js +0 -1
  105. package/dist/blockDiagram-I7D4REHJ-CSYvpxQw.js +0 -129
  106. package/dist/blockDiagram-I7D4REHJ-CYngfPD9.mjs +0 -1922
  107. package/dist/c4Diagram-7LVT6UL2-B-sz5MUK.js +0 -38
  108. package/dist/c4Diagram-7LVT6UL2-DEzxFf2b.mjs +0 -3010
  109. package/dist/channel-LgHproiI.mjs +0 -5
  110. package/dist/channel-yqu0m4cl.js +0 -1
  111. package/dist/chunk-2E4U76K2-BOyeRQsI.js +0 -1
  112. package/dist/chunk-2E4U76K2-CoTrgtfg.mjs +0 -348
  113. package/dist/chunk-2Q5K7J3B-D4EgYPOq.mjs +0 -15
  114. package/dist/chunk-2Q5K7J3B-DhjCNjaM.js +0 -1
  115. package/dist/chunk-4HAMMTFA-GFyfmcSO.js +0 -62
  116. package/dist/chunk-4HAMMTFA-VgWPe1ng.mjs +0 -4188
  117. package/dist/chunk-5VM5RSS4-GINalzIv.js +0 -15
  118. package/dist/chunk-5VM5RSS4-TqxtqrwE.mjs +0 -5
  119. package/dist/chunk-75Z2AOVW-DYouz5MZ.js +0 -2
  120. package/dist/chunk-75Z2AOVW-Dz0Sko9Y.mjs +0 -1330
  121. package/dist/chunk-CLGD4ZFX-C5J-e2io.js +0 -1
  122. package/dist/chunk-CLGD4ZFX-DBkwyMMv.mjs +0 -14
  123. package/dist/chunk-DU6HZSFF-BEQZSmUu.mjs +0 -3836
  124. package/dist/chunk-DU6HZSFF-CWc5ewtb.js +0 -127
  125. package/dist/chunk-F27PBJKO-8jvY_jJK.js +0 -1
  126. package/dist/chunk-F27PBJKO-DFH3sRZG.mjs +0 -61
  127. package/dist/chunk-FOHPRMQF-LRqOLsSw.mjs +0 -21456
  128. package/dist/chunk-FOHPRMQF-tmTlwTeH.js +0 -161
  129. package/dist/chunk-GMAD6QVW-BZeZ4fdb.mjs +0 -1863
  130. package/dist/chunk-GMAD6QVW-DEQiTa0c.js +0 -72
  131. package/dist/chunk-GVQU2GXP-B1D3J05J.mjs +0 -37
  132. package/dist/chunk-GVQU2GXP-CdJIWN41.js +0 -1
  133. package/dist/chunk-IMKFNOWR-BmZb9U1f.mjs +0 -2042
  134. package/dist/chunk-IMKFNOWR-CPJsszGN.js +0 -231
  135. package/dist/chunk-JWPE2WC7-DIKiF5cm.mjs +0 -8
  136. package/dist/chunk-JWPE2WC7-p1fYVdYc.js +0 -1
  137. package/dist/chunk-L3NEJ4N5-TzDiVs78.js +0 -1
  138. package/dist/chunk-L3NEJ4N5-lal8wUID.mjs +0 -245
  139. package/dist/chunk-LNGE3PJU-BQX75wkM.js +0 -34
  140. package/dist/chunk-LNGE3PJU-DJ9JuXV6.mjs +0 -1521
  141. package/dist/chunk-OSK3NFVY-9AWK88m1.mjs +0 -672
  142. package/dist/chunk-OSK3NFVY-CHzvVe8m.js +0 -10
  143. package/dist/chunk-P2QGCYS3-6q3AXPt5.mjs +0 -67
  144. package/dist/chunk-P2QGCYS3-DKZzpRQW.js +0 -1
  145. package/dist/chunk-POPQ4Y6H-Dd7J9tx3.mjs +0 -26
  146. package/dist/chunk-POPQ4Y6H-T5C7wpjf.js +0 -1
  147. package/dist/chunk-PWAF6VOD-BYG76tEe.mjs +0 -275
  148. package/dist/chunk-PWAF6VOD-DxZLuCEw.js +0 -1
  149. package/dist/chunk-SHT3W25Y-B2Wes8jn.mjs +0 -4183
  150. package/dist/chunk-SHT3W25Y-BQjHSn5K.js +0 -168
  151. package/dist/chunk-SVP7TREG-BFMd615E.js +0 -88
  152. package/dist/chunk-SVP7TREG-CynckzeF.mjs +0 -490
  153. package/dist/chunk-TICWLB2K-BfCuoR1V.mjs +0 -3357
  154. package/dist/chunk-TICWLB2K-agcyBfUp.js +0 -206
  155. package/dist/chunk-TLUHSLCS-CUrWaKDG.mjs +0 -59
  156. package/dist/chunk-TLUHSLCS-Drx_a7am.js +0 -1
  157. package/dist/chunk-XXDRQBXY-AAk1-Cyg.js +0 -1
  158. package/dist/chunk-XXDRQBXY-DpR8eYzz.mjs +0 -9
  159. package/dist/chunk-Y2CYZVJY-CnmLqFtv.js +0 -1
  160. package/dist/chunk-Y2CYZVJY-i11wjrBe.mjs +0 -12
  161. package/dist/classDiagram-ZZMXUADV-B7IN9zcX.js +0 -1
  162. package/dist/classDiagram-ZZMXUADV-tcy6gxSB.mjs +0 -30
  163. package/dist/classDiagram-v2-VYDZK3BY-B7IN9zcX.js +0 -1
  164. package/dist/classDiagram-v2-VYDZK3BY-D5wM6Acp.mjs +0 -30
  165. package/dist/cose-bilkent-JH36ORCC-DBUPO3qJ.js +0 -1
  166. package/dist/cose-bilkent-JH36ORCC-Slpx4WIt.mjs +0 -2253
  167. package/dist/cynefin-OW5HDTMX--QVnfGi1.mjs +0 -3
  168. package/dist/cynefin-OW5HDTMX-lNKysi7S.js +0 -1
  169. package/dist/cynefinDiagram-5FMLGOSQ-CsFONYqx.js +0 -62
  170. package/dist/cynefinDiagram-5FMLGOSQ-DsrxYBcg.mjs +0 -355
  171. package/dist/cytoscape.esm-C5TvPYYm.mjs +0 -18148
  172. package/dist/cytoscape.esm-CBmWJr5M.js +0 -321
  173. package/dist/dagre-CZ6P9L_h.js +0 -1
  174. package/dist/dagre-GXQ25YYZ-CQszk-7P.js +0 -4
  175. package/dist/dagre-GXQ25YYZ-ecYByRSn.mjs +0 -425
  176. package/dist/dagre-J_1oH0eY.mjs +0 -1934
  177. package/dist/defaultLocale-N-0uLSyg.mjs +0 -198
  178. package/dist/defaultLocale-ybN1Vtvg.js +0 -1
  179. package/dist/diagram-S7CK7UJ4-CTMvxX__.js +0 -30
  180. package/dist/diagram-S7CK7UJ4-DxCghfa-.mjs +0 -301
  181. package/dist/diagram-UQ7AKVKN-1viEkqlG.js +0 -41
  182. package/dist/diagram-UQ7AKVKN-BA7Z_oB7.mjs +0 -214
  183. package/dist/diagram-VSXAHHWV-DgVT19mq.js +0 -3
  184. package/dist/diagram-VSXAHHWV-Dtqo03M5.mjs +0 -432
  185. package/dist/diagram-VX7I27RA-CNw0pOX_.js +0 -24
  186. package/dist/diagram-VX7I27RA-GMPRt8Zh.mjs +0 -527
  187. package/dist/diagram-Z3DM3KII-C6XdQK_Q.mjs +0 -134
  188. package/dist/diagram-Z3DM3KII-CPkBr3FT.js +0 -24
  189. package/dist/dist-CXWJafG_.js +0 -1
  190. package/dist/dist-DNdLIC8h.mjs +0 -59
  191. package/dist/ebnfDiagram-PWID7BFC-CseVsyL3.js +0 -1
  192. package/dist/ebnfDiagram-PWID7BFC-D_dBDXWC.mjs +0 -100
  193. package/dist/erDiagram-RLTQ6QDP-DFwfQTRS.js +0 -99
  194. package/dist/erDiagram-RLTQ6QDP-DP7ddGMH.mjs +0 -1966
  195. package/dist/eventmodeling-NTZA5JFV-CzxVg0l5.js +0 -1
  196. package/dist/eventmodeling-NTZA5JFV-Djsy__5n.mjs +0 -3
  197. package/dist/flowDiagram-HODETNUW-7hSJfI3W.js +0 -1
  198. package/dist/flowDiagram-HODETNUW-Dqu5Lr19.mjs +0 -17
  199. package/dist/ganttDiagram-EL5Y4UJY-KNL3tzTD.mjs +0 -3072
  200. package/dist/ganttDiagram-EL5Y4UJY-aiLqNWgi.js +0 -292
  201. package/dist/gitGraph-4MIJSDKK-DnElfqX7.js +0 -1
  202. package/dist/gitGraph-4MIJSDKK-xuKJBT2e.mjs +0 -3
  203. package/dist/gitGraphDiagram-WWUBYQGX-D4gSo_-e.js +0 -106
  204. package/dist/gitGraphDiagram-WWUBYQGX-Dooss5fG.mjs +0 -733
  205. package/dist/graphlib-BaETKKSa.js +0 -1
  206. package/dist/graphlib-XW-Jr8pF.mjs +0 -1267
  207. package/dist/info-A6RAGUB7-ClYskpn6.mjs +0 -3
  208. package/dist/info-A6RAGUB7-DDvvt-fW.js +0 -1
  209. package/dist/infoDiagram-27XIBGKW-B2-y2mdQ.mjs +0 -20
  210. package/dist/infoDiagram-27XIBGKW-DYQ9NzfL.js +0 -2
  211. package/dist/init-BJdqMO10.js +0 -1
  212. package/dist/init-CsQUQz36.mjs +0 -13
  213. package/dist/ishikawaDiagram-5VMMS53U-ULIhoYO5.js +0 -70
  214. package/dist/ishikawaDiagram-5VMMS53U-xAArNh-1.mjs +0 -719
  215. package/dist/journeyDiagram-3NMN7TZE-BBMYNZRL.js +0 -139
  216. package/dist/journeyDiagram-3NMN7TZE-BH-uKqP7.mjs +0 -884
  217. package/dist/kanban-definition-UXKFOSKX-Be49llXr.mjs +0 -976
  218. package/dist/kanban-definition-UXKFOSKX-CDL5yJkq.js +0 -89
  219. package/dist/line-BEwhHSLl.js +0 -1
  220. package/dist/line-CiXRog8O.mjs +0 -34
  221. package/dist/linear-75tfjrny.js +0 -1
  222. package/dist/linear-Ncx_RuON.mjs +0 -288
  223. package/dist/mermaid-parser.core-BBApyu_y.js +0 -6
  224. package/dist/mermaid-parser.core-BRHibdUE.mjs +0 -638
  225. package/dist/mindmap-definition-YA3MSWOX-Chy7XP_5.mjs +0 -1006
  226. package/dist/mindmap-definition-YA3MSWOX-DOda-fkL.js +0 -96
  227. package/dist/ordinal-B1BNQwUR.mjs +0 -65
  228. package/dist/ordinal-B9aFWmF9.js +0 -1
  229. package/dist/packet-AYTQ26CC-CorIy9Ul.js +0 -1
  230. package/dist/packet-AYTQ26CC-DWH8gXJK.mjs +0 -3
  231. package/dist/path-CnWkkRiY.mjs +0 -84
  232. package/dist/path-DIS6ck99.js +0 -1
  233. package/dist/pegDiagram-XKGWAZYB-Cdw6MeON.js +0 -1
  234. package/dist/pegDiagram-XKGWAZYB-uNfxRaq1.mjs +0 -94
  235. package/dist/pie-WAS4IAKB-Cn5eK-5P.mjs +0 -3
  236. package/dist/pie-WAS4IAKB-D84xrSoY.js +0 -1
  237. package/dist/pieDiagram-E7YTZNPT-Bd6mvpJw.js +0 -39
  238. package/dist/pieDiagram-E7YTZNPT-Cczo96a2.mjs +0 -203
  239. package/dist/quadrantDiagram-AXDQQJYC-BPfgvMsS.js +0 -7
  240. package/dist/quadrantDiagram-AXDQQJYC-eqRNtVRl.mjs +0 -2001
  241. package/dist/radar-RG4KPBEZ-DvkxGdO6.mjs +0 -3
  242. package/dist/radar-RG4KPBEZ-R2sQOLL9.js +0 -1
  243. package/dist/railroad-74A4TZTK-BOZIf6ts.js +0 -1
  244. package/dist/railroad-74A4TZTK-CrQzn8Nm.mjs +0 -3
  245. package/dist/railroad-abnf-HS5TGJTU-BZYetxLz.mjs +0 -3
  246. package/dist/railroad-abnf-HS5TGJTU-CXU1aC4B.js +0 -1
  247. package/dist/railroad-ebnf-LZEXJU2U-D29kI3YW.js +0 -1
  248. package/dist/railroad-ebnf-LZEXJU2U-qgzTOmN6.mjs +0 -3
  249. package/dist/railroad-peg-WCYAUIDC-Bjs9Ws3P.mjs +0 -3
  250. package/dist/railroad-peg-WCYAUIDC-CXviP0hz.js +0 -1
  251. package/dist/railroadDiagram-O6MQD6OU-58kvwt7H.mjs +0 -76
  252. package/dist/railroadDiagram-O6MQD6OU-CKY3uzTc.js +0 -1
  253. package/dist/requirementDiagram-BXWQKSXE-0hZ04Q6h.js +0 -84
  254. package/dist/requirementDiagram-BXWQKSXE-CS673B5n.mjs +0 -2224
  255. package/dist/rough.esm-ChRLLRha.js +0 -1
  256. package/dist/rough.esm-DXYGHN3m.mjs +0 -1361
  257. package/dist/sankeyDiagram-P5KCCOFB-D1D6HfAM.mjs +0 -972
  258. package/dist/sankeyDiagram-P5KCCOFB-ciJb9Zr8.js +0 -40
  259. package/dist/sequenceDiagram-WJ2MYXX4-BXEznuI6.js +0 -162
  260. package/dist/sequenceDiagram-WJ2MYXX4-CI1VT8AG.mjs +0 -4156
  261. package/dist/sizeCapture-INFHLROL-BihkCH-7.js +0 -1
  262. package/dist/sizeCapture-INFHLROL-BmxqyOLj.mjs +0 -46
  263. package/dist/src-B4mN2BMl.js +0 -1
  264. package/dist/src-D_hsMyeP.mjs +0 -2154
  265. package/dist/stateDiagram-D77RDMKH-BQrSs72W.mjs +0 -220
  266. package/dist/stateDiagram-D77RDMKH-D2PtkW2U.js +0 -1
  267. package/dist/stateDiagram-v2-MP3YSRHH-CCbvNfk-.mjs +0 -30
  268. package/dist/stateDiagram-v2-MP3YSRHH-Dq1QuPeN.js +0 -1
  269. package/dist/swimlanes-42K2YHIH-CA316NPm.mjs +0 -4979
  270. package/dist/swimlanes-42K2YHIH-DlggBCTy.js +0 -1
  271. package/dist/swimlanesDiagram-VR7AAH4N-BV9PEIoG.js +0 -8
  272. package/dist/swimlanesDiagram-VR7AAH4N-BfrOCfdf.mjs +0 -31
  273. package/dist/timeline-definition-24CTP7MA-Bkd8rWNJ.js +0 -120
  274. package/dist/timeline-definition-24CTP7MA-BvkqNYt1.mjs +0 -1069
  275. package/dist/treeView-Q6P3EWNA-Aof3Cp1M.mjs +0 -3
  276. package/dist/treeView-Q6P3EWNA-BTzvdwbb.js +0 -1
  277. package/dist/treemap-WGGIJYW6-BNXGg99p.mjs +0 -3
  278. package/dist/treemap-WGGIJYW6-DfR4P2Hh.js +0 -1
  279. package/dist/types/runtime/app.d.ts +0 -9
  280. package/dist/types/runtime/components/AppearanceMenu.d.ts +0 -2
  281. package/dist/types/runtime/components/Builtins.d.ts +0 -44
  282. package/dist/types/runtime/components/Content.d.ts +0 -2
  283. package/dist/types/runtime/components/DmdRegistry.d.ts +0 -19
  284. package/dist/types/runtime/components/Layout.d.ts +0 -2
  285. package/dist/types/runtime/components/MermaidDiagram.d.ts +0 -16
  286. package/dist/types/runtime/components/Navbar.d.ts +0 -2
  287. package/dist/types/runtime/components/OfflineDownloadButton.d.ts +0 -2
  288. package/dist/types/runtime/components/OfflineNotice.d.ts +0 -6
  289. package/dist/types/runtime/components/Sidebar.d.ts +0 -2
  290. package/dist/types/runtime/components/TableOfContents.d.ts +0 -8
  291. package/dist/types/runtime/index.d.ts +0 -8
  292. package/dist/types/runtime/markdown/renderer.d.ts +0 -7
  293. package/dist/types/runtime/provider/DocProvider.d.ts +0 -40
  294. package/dist/types/runtime/provider/ThemeProvider.d.ts +0 -25
  295. package/dist/types/runtime/search/SearchModal.d.ts +0 -11
  296. package/dist/vennDiagram-4TSXK5OY-BOUFXjso.js +0 -34
  297. package/dist/vennDiagram-4TSXK5OY-CeOg3-hU.mjs +0 -1880
  298. package/dist/wardley-WFR3VGLG-BOYcSLd1.mjs +0 -3
  299. package/dist/wardley-WFR3VGLG-DWDqJSgm.js +0 -1
  300. package/dist/wardleyDiagram-VM6X3IG4-BhWgMjFr.js +0 -78
  301. package/dist/wardleyDiagram-VM6X3IG4-C31KoRmF.mjs +0 -645
  302. package/dist/xychartDiagram-S5SC5T6Z-1yU8zz6I.js +0 -7
  303. package/dist/xychartDiagram-S5SC5T6Z-BK7upFom.mjs +0 -2210
  304. package/templates/.dmd/components.js +0 -25
@@ -1,1330 +0,0 @@
1
- import { m as e, p as t } from "./src-D_hsMyeP.mjs";
2
- import { n } from "./chunk-Y2CYZVJY-i11wjrBe.mjs";
3
- import { R as r, h as i, p as a, r as o, s } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { t as c } from "./dist-DNdLIC8h.mjs";
5
- //#region node_modules/d3-shape/src/curve/linear.js
6
- function l(e) {
7
- this._context = e;
8
- }
9
- l.prototype = {
10
- areaStart: function() {
11
- this._line = 0;
12
- },
13
- areaEnd: function() {
14
- this._line = NaN;
15
- },
16
- lineStart: function() {
17
- this._point = 0;
18
- },
19
- lineEnd: function() {
20
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
21
- },
22
- point: function(e, t) {
23
- switch (e = +e, t = +t, this._point) {
24
- case 0:
25
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
26
- break;
27
- case 1: this._point = 2;
28
- default: this._context.lineTo(e, t);
29
- }
30
- }
31
- };
32
- function u(e) {
33
- return new l(e);
34
- }
35
- //#endregion
36
- //#region node_modules/d3-shape/src/curve/bump.js
37
- var d = class {
38
- constructor(e, t) {
39
- this._context = e, this._x = t;
40
- }
41
- areaStart() {
42
- this._line = 0;
43
- }
44
- areaEnd() {
45
- this._line = NaN;
46
- }
47
- lineStart() {
48
- this._point = 0;
49
- }
50
- lineEnd() {
51
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
52
- }
53
- point(e, t) {
54
- switch (e = +e, t = +t, this._point) {
55
- case 0:
56
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
57
- break;
58
- case 1: this._point = 2;
59
- default: this._x ? this._context.bezierCurveTo(this._x0 = (this._x0 + e) / 2, this._y0, this._x0, t, e, t) : this._context.bezierCurveTo(this._x0, this._y0 = (this._y0 + t) / 2, e, this._y0, e, t);
60
- }
61
- this._x0 = e, this._y0 = t;
62
- }
63
- };
64
- function f(e) {
65
- return new d(e, !0);
66
- }
67
- function ee(e) {
68
- return new d(e, !1);
69
- }
70
- //#endregion
71
- //#region node_modules/d3-shape/src/noop.js
72
- function p() {}
73
- //#endregion
74
- //#region node_modules/d3-shape/src/curve/basis.js
75
- function m(e, t, n) {
76
- e._context.bezierCurveTo((2 * e._x0 + e._x1) / 3, (2 * e._y0 + e._y1) / 3, (e._x0 + 2 * e._x1) / 3, (e._y0 + 2 * e._y1) / 3, (e._x0 + 4 * e._x1 + t) / 6, (e._y0 + 4 * e._y1 + n) / 6);
77
- }
78
- function h(e) {
79
- this._context = e;
80
- }
81
- h.prototype = {
82
- areaStart: function() {
83
- this._line = 0;
84
- },
85
- areaEnd: function() {
86
- this._line = NaN;
87
- },
88
- lineStart: function() {
89
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
90
- },
91
- lineEnd: function() {
92
- switch (this._point) {
93
- case 3: m(this, this._x1, this._y1);
94
- case 2: this._context.lineTo(this._x1, this._y1);
95
- }
96
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
97
- },
98
- point: function(e, t) {
99
- switch (e = +e, t = +t, this._point) {
100
- case 0:
101
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
102
- break;
103
- case 1:
104
- this._point = 2;
105
- break;
106
- case 2: this._point = 3, this._context.lineTo((5 * this._x0 + this._x1) / 6, (5 * this._y0 + this._y1) / 6);
107
- default: m(this, e, t);
108
- }
109
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
110
- }
111
- };
112
- function te(e) {
113
- return new h(e);
114
- }
115
- //#endregion
116
- //#region node_modules/d3-shape/src/curve/basisClosed.js
117
- function ne(e) {
118
- this._context = e;
119
- }
120
- ne.prototype = {
121
- areaStart: p,
122
- areaEnd: p,
123
- lineStart: function() {
124
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = NaN, this._point = 0;
125
- },
126
- lineEnd: function() {
127
- switch (this._point) {
128
- case 1:
129
- this._context.moveTo(this._x2, this._y2), this._context.closePath();
130
- break;
131
- case 2:
132
- this._context.moveTo((this._x2 + 2 * this._x3) / 3, (this._y2 + 2 * this._y3) / 3), this._context.lineTo((this._x3 + 2 * this._x2) / 3, (this._y3 + 2 * this._y2) / 3), this._context.closePath();
133
- break;
134
- case 3: this.point(this._x2, this._y2), this.point(this._x3, this._y3), this.point(this._x4, this._y4);
135
- }
136
- },
137
- point: function(e, t) {
138
- switch (e = +e, t = +t, this._point) {
139
- case 0:
140
- this._point = 1, this._x2 = e, this._y2 = t;
141
- break;
142
- case 1:
143
- this._point = 2, this._x3 = e, this._y3 = t;
144
- break;
145
- case 2:
146
- this._point = 3, this._x4 = e, this._y4 = t, this._context.moveTo((this._x0 + 4 * this._x1 + e) / 6, (this._y0 + 4 * this._y1 + t) / 6);
147
- break;
148
- default: m(this, e, t);
149
- }
150
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
151
- }
152
- };
153
- function re(e) {
154
- return new ne(e);
155
- }
156
- //#endregion
157
- //#region node_modules/d3-shape/src/curve/basisOpen.js
158
- function ie(e) {
159
- this._context = e;
160
- }
161
- ie.prototype = {
162
- areaStart: function() {
163
- this._line = 0;
164
- },
165
- areaEnd: function() {
166
- this._line = NaN;
167
- },
168
- lineStart: function() {
169
- this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
170
- },
171
- lineEnd: function() {
172
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
173
- },
174
- point: function(e, t) {
175
- switch (e = +e, t = +t, this._point) {
176
- case 0:
177
- this._point = 1;
178
- break;
179
- case 1:
180
- this._point = 2;
181
- break;
182
- case 2:
183
- this._point = 3;
184
- var n = (this._x0 + 4 * this._x1 + e) / 6, r = (this._y0 + 4 * this._y1 + t) / 6;
185
- this._line ? this._context.lineTo(n, r) : this._context.moveTo(n, r);
186
- break;
187
- case 3: this._point = 4;
188
- default: m(this, e, t);
189
- }
190
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t;
191
- }
192
- };
193
- function ae(e) {
194
- return new ie(e);
195
- }
196
- //#endregion
197
- //#region node_modules/d3-shape/src/curve/bundle.js
198
- function oe(e, t) {
199
- this._basis = new h(e), this._beta = t;
200
- }
201
- oe.prototype = {
202
- lineStart: function() {
203
- this._x = [], this._y = [], this._basis.lineStart();
204
- },
205
- lineEnd: function() {
206
- var e = this._x, t = this._y, n = e.length - 1;
207
- if (n > 0) for (var r = e[0], i = t[0], a = e[n] - r, o = t[n] - i, s = -1, c; ++s <= n;) c = s / n, this._basis.point(this._beta * e[s] + (1 - this._beta) * (r + c * a), this._beta * t[s] + (1 - this._beta) * (i + c * o));
208
- this._x = this._y = null, this._basis.lineEnd();
209
- },
210
- point: function(e, t) {
211
- this._x.push(+e), this._y.push(+t);
212
- }
213
- };
214
- var se = (function e(t) {
215
- function n(e) {
216
- return t === 1 ? new h(e) : new oe(e, t);
217
- }
218
- return n.beta = function(t) {
219
- return e(+t);
220
- }, n;
221
- })(.85);
222
- //#endregion
223
- //#region node_modules/d3-shape/src/curve/cardinal.js
224
- function g(e, t, n) {
225
- e._context.bezierCurveTo(e._x1 + e._k * (e._x2 - e._x0), e._y1 + e._k * (e._y2 - e._y0), e._x2 + e._k * (e._x1 - t), e._y2 + e._k * (e._y1 - n), e._x2, e._y2);
226
- }
227
- function _(e, t) {
228
- this._context = e, this._k = (1 - t) / 6;
229
- }
230
- _.prototype = {
231
- areaStart: function() {
232
- this._line = 0;
233
- },
234
- areaEnd: function() {
235
- this._line = NaN;
236
- },
237
- lineStart: function() {
238
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
239
- },
240
- lineEnd: function() {
241
- switch (this._point) {
242
- case 2:
243
- this._context.lineTo(this._x2, this._y2);
244
- break;
245
- case 3: g(this, this._x1, this._y1);
246
- }
247
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
248
- },
249
- point: function(e, t) {
250
- switch (e = +e, t = +t, this._point) {
251
- case 0:
252
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
253
- break;
254
- case 1:
255
- this._point = 2, this._x1 = e, this._y1 = t;
256
- break;
257
- case 2: this._point = 3;
258
- default: g(this, e, t);
259
- }
260
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
261
- }
262
- };
263
- var ce = (function e(t) {
264
- function n(e) {
265
- return new _(e, t);
266
- }
267
- return n.tension = function(t) {
268
- return e(+t);
269
- }, n;
270
- })(0);
271
- //#endregion
272
- //#region node_modules/d3-shape/src/curve/cardinalClosed.js
273
- function v(e, t) {
274
- this._context = e, this._k = (1 - t) / 6;
275
- }
276
- v.prototype = {
277
- areaStart: p,
278
- areaEnd: p,
279
- lineStart: function() {
280
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
281
- },
282
- lineEnd: function() {
283
- switch (this._point) {
284
- case 1:
285
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
286
- break;
287
- case 2:
288
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
289
- break;
290
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
291
- }
292
- },
293
- point: function(e, t) {
294
- switch (e = +e, t = +t, this._point) {
295
- case 0:
296
- this._point = 1, this._x3 = e, this._y3 = t;
297
- break;
298
- case 1:
299
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
300
- break;
301
- case 2:
302
- this._point = 3, this._x5 = e, this._y5 = t;
303
- break;
304
- default: g(this, e, t);
305
- }
306
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
307
- }
308
- };
309
- var le = (function e(t) {
310
- function n(e) {
311
- return new v(e, t);
312
- }
313
- return n.tension = function(t) {
314
- return e(+t);
315
- }, n;
316
- })(0);
317
- //#endregion
318
- //#region node_modules/d3-shape/src/curve/cardinalOpen.js
319
- function y(e, t) {
320
- this._context = e, this._k = (1 - t) / 6;
321
- }
322
- y.prototype = {
323
- areaStart: function() {
324
- this._line = 0;
325
- },
326
- areaEnd: function() {
327
- this._line = NaN;
328
- },
329
- lineStart: function() {
330
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
331
- },
332
- lineEnd: function() {
333
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
334
- },
335
- point: function(e, t) {
336
- switch (e = +e, t = +t, this._point) {
337
- case 0:
338
- this._point = 1;
339
- break;
340
- case 1:
341
- this._point = 2;
342
- break;
343
- case 2:
344
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
345
- break;
346
- case 3: this._point = 4;
347
- default: g(this, e, t);
348
- }
349
- this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
350
- }
351
- };
352
- var ue = (function e(t) {
353
- function n(e) {
354
- return new y(e, t);
355
- }
356
- return n.tension = function(t) {
357
- return e(+t);
358
- }, n;
359
- })(0);
360
- //#endregion
361
- //#region node_modules/d3-shape/src/curve/catmullRom.js
362
- function b(e, t, n) {
363
- var r = e._x1, i = e._y1, a = e._x2, o = e._y2;
364
- if (e._l01_a > 1e-12) {
365
- var s = 2 * e._l01_2a + 3 * e._l01_a * e._l12_a + e._l12_2a, c = 3 * e._l01_a * (e._l01_a + e._l12_a);
366
- r = (r * s - e._x0 * e._l12_2a + e._x2 * e._l01_2a) / c, i = (i * s - e._y0 * e._l12_2a + e._y2 * e._l01_2a) / c;
367
- }
368
- if (e._l23_a > 1e-12) {
369
- var l = 2 * e._l23_2a + 3 * e._l23_a * e._l12_a + e._l12_2a, u = 3 * e._l23_a * (e._l23_a + e._l12_a);
370
- a = (a * l + e._x1 * e._l23_2a - t * e._l12_2a) / u, o = (o * l + e._y1 * e._l23_2a - n * e._l12_2a) / u;
371
- }
372
- e._context.bezierCurveTo(r, i, a, o, e._x2, e._y2);
373
- }
374
- function de(e, t) {
375
- this._context = e, this._alpha = t;
376
- }
377
- de.prototype = {
378
- areaStart: function() {
379
- this._line = 0;
380
- },
381
- areaEnd: function() {
382
- this._line = NaN;
383
- },
384
- lineStart: function() {
385
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
386
- },
387
- lineEnd: function() {
388
- switch (this._point) {
389
- case 2:
390
- this._context.lineTo(this._x2, this._y2);
391
- break;
392
- case 3: this.point(this._x2, this._y2);
393
- }
394
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
395
- },
396
- point: function(e, t) {
397
- if (e = +e, t = +t, this._point) {
398
- var n = this._x2 - e, r = this._y2 - t;
399
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
400
- }
401
- switch (this._point) {
402
- case 0:
403
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
404
- break;
405
- case 1:
406
- this._point = 2;
407
- break;
408
- case 2: this._point = 3;
409
- default: b(this, e, t);
410
- }
411
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
412
- }
413
- };
414
- var fe = (function e(t) {
415
- function n(e) {
416
- return t ? new de(e, t) : new _(e, 0);
417
- }
418
- return n.alpha = function(t) {
419
- return e(+t);
420
- }, n;
421
- })(.5);
422
- //#endregion
423
- //#region node_modules/d3-shape/src/curve/catmullRomClosed.js
424
- function pe(e, t) {
425
- this._context = e, this._alpha = t;
426
- }
427
- pe.prototype = {
428
- areaStart: p,
429
- areaEnd: p,
430
- lineStart: function() {
431
- this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
432
- },
433
- lineEnd: function() {
434
- switch (this._point) {
435
- case 1:
436
- this._context.moveTo(this._x3, this._y3), this._context.closePath();
437
- break;
438
- case 2:
439
- this._context.lineTo(this._x3, this._y3), this._context.closePath();
440
- break;
441
- case 3: this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
442
- }
443
- },
444
- point: function(e, t) {
445
- if (e = +e, t = +t, this._point) {
446
- var n = this._x2 - e, r = this._y2 - t;
447
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
448
- }
449
- switch (this._point) {
450
- case 0:
451
- this._point = 1, this._x3 = e, this._y3 = t;
452
- break;
453
- case 1:
454
- this._point = 2, this._context.moveTo(this._x4 = e, this._y4 = t);
455
- break;
456
- case 2:
457
- this._point = 3, this._x5 = e, this._y5 = t;
458
- break;
459
- default: b(this, e, t);
460
- }
461
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
462
- }
463
- };
464
- var me = (function e(t) {
465
- function n(e) {
466
- return t ? new pe(e, t) : new v(e, 0);
467
- }
468
- return n.alpha = function(t) {
469
- return e(+t);
470
- }, n;
471
- })(.5);
472
- //#endregion
473
- //#region node_modules/d3-shape/src/curve/catmullRomOpen.js
474
- function he(e, t) {
475
- this._context = e, this._alpha = t;
476
- }
477
- he.prototype = {
478
- areaStart: function() {
479
- this._line = 0;
480
- },
481
- areaEnd: function() {
482
- this._line = NaN;
483
- },
484
- lineStart: function() {
485
- this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
486
- },
487
- lineEnd: function() {
488
- (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
489
- },
490
- point: function(e, t) {
491
- if (e = +e, t = +t, this._point) {
492
- var n = this._x2 - e, r = this._y2 - t;
493
- this._l23_a = Math.sqrt(this._l23_2a = (n * n + r * r) ** +this._alpha);
494
- }
495
- switch (this._point) {
496
- case 0:
497
- this._point = 1;
498
- break;
499
- case 1:
500
- this._point = 2;
501
- break;
502
- case 2:
503
- this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
504
- break;
505
- case 3: this._point = 4;
506
- default: b(this, e, t);
507
- }
508
- this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = e, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
509
- }
510
- };
511
- var ge = (function e(t) {
512
- function n(e) {
513
- return t ? new he(e, t) : new y(e, 0);
514
- }
515
- return n.alpha = function(t) {
516
- return e(+t);
517
- }, n;
518
- })(.5);
519
- //#endregion
520
- //#region node_modules/d3-shape/src/curve/linearClosed.js
521
- function _e(e) {
522
- this._context = e;
523
- }
524
- _e.prototype = {
525
- areaStart: p,
526
- areaEnd: p,
527
- lineStart: function() {
528
- this._point = 0;
529
- },
530
- lineEnd: function() {
531
- this._point && this._context.closePath();
532
- },
533
- point: function(e, t) {
534
- e = +e, t = +t, this._point ? this._context.lineTo(e, t) : (this._point = 1, this._context.moveTo(e, t));
535
- }
536
- };
537
- function ve(e) {
538
- return new _e(e);
539
- }
540
- //#endregion
541
- //#region node_modules/d3-shape/src/curve/monotone.js
542
- function ye(e) {
543
- return e < 0 ? -1 : 1;
544
- }
545
- function be(e, t, n) {
546
- var r = e._x1 - e._x0, i = t - e._x1, a = (e._y1 - e._y0) / (r || i < 0 && -0), o = (n - e._y1) / (i || r < 0 && -0), s = (a * i + o * r) / (r + i);
547
- return (ye(a) + ye(o)) * Math.min(Math.abs(a), Math.abs(o), .5 * Math.abs(s)) || 0;
548
- }
549
- function xe(e, t) {
550
- var n = e._x1 - e._x0;
551
- return n ? (3 * (e._y1 - e._y0) / n - t) / 2 : t;
552
- }
553
- function x(e, t, n) {
554
- var r = e._x0, i = e._y0, a = e._x1, o = e._y1, s = (a - r) / 3;
555
- e._context.bezierCurveTo(r + s, i + s * t, a - s, o - s * n, a, o);
556
- }
557
- function S(e) {
558
- this._context = e;
559
- }
560
- S.prototype = {
561
- areaStart: function() {
562
- this._line = 0;
563
- },
564
- areaEnd: function() {
565
- this._line = NaN;
566
- },
567
- lineStart: function() {
568
- this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
569
- },
570
- lineEnd: function() {
571
- switch (this._point) {
572
- case 2:
573
- this._context.lineTo(this._x1, this._y1);
574
- break;
575
- case 3: x(this, this._t0, xe(this, this._t0));
576
- }
577
- (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
578
- },
579
- point: function(e, t) {
580
- var n = NaN;
581
- if (e = +e, t = +t, e !== this._x1 || t !== this._y1) {
582
- switch (this._point) {
583
- case 0:
584
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
585
- break;
586
- case 1:
587
- this._point = 2;
588
- break;
589
- case 2:
590
- this._point = 3, x(this, xe(this, n = be(this, e, t)), n);
591
- break;
592
- default: x(this, this._t0, n = be(this, e, t));
593
- }
594
- this._x0 = this._x1, this._x1 = e, this._y0 = this._y1, this._y1 = t, this._t0 = n;
595
- }
596
- }
597
- };
598
- function Se(e) {
599
- this._context = new Ce(e);
600
- }
601
- (Se.prototype = Object.create(S.prototype)).point = function(e, t) {
602
- S.prototype.point.call(this, t, e);
603
- };
604
- function Ce(e) {
605
- this._context = e;
606
- }
607
- Ce.prototype = {
608
- moveTo: function(e, t) {
609
- this._context.moveTo(t, e);
610
- },
611
- closePath: function() {
612
- this._context.closePath();
613
- },
614
- lineTo: function(e, t) {
615
- this._context.lineTo(t, e);
616
- },
617
- bezierCurveTo: function(e, t, n, r, i, a) {
618
- this._context.bezierCurveTo(t, e, r, n, a, i);
619
- }
620
- };
621
- function we(e) {
622
- return new S(e);
623
- }
624
- function Te(e) {
625
- return new Se(e);
626
- }
627
- //#endregion
628
- //#region node_modules/d3-shape/src/curve/natural.js
629
- function Ee(e) {
630
- this._context = e;
631
- }
632
- Ee.prototype = {
633
- areaStart: function() {
634
- this._line = 0;
635
- },
636
- areaEnd: function() {
637
- this._line = NaN;
638
- },
639
- lineStart: function() {
640
- this._x = [], this._y = [];
641
- },
642
- lineEnd: function() {
643
- var e = this._x, t = this._y, n = e.length;
644
- if (n) {
645
- if (this._line ? this._context.lineTo(e[0], t[0]) : this._context.moveTo(e[0], t[0]), n === 2) this._context.lineTo(e[1], t[1]);
646
- else for (var r = De(e), i = De(t), a = 0, o = 1; o < n; ++a, ++o) this._context.bezierCurveTo(r[0][a], i[0][a], r[1][a], i[1][a], e[o], t[o]);
647
- }
648
- (this._line || this._line !== 0 && n === 1) && this._context.closePath(), this._line = 1 - this._line, this._x = this._y = null;
649
- },
650
- point: function(e, t) {
651
- this._x.push(+e), this._y.push(+t);
652
- }
653
- };
654
- function De(e) {
655
- var t, n = e.length - 1, r, i = Array(n), a = Array(n), o = Array(n);
656
- for (i[0] = 0, a[0] = 2, o[0] = e[0] + 2 * e[1], t = 1; t < n - 1; ++t) i[t] = 1, a[t] = 4, o[t] = 4 * e[t] + 2 * e[t + 1];
657
- for (i[n - 1] = 2, a[n - 1] = 7, o[n - 1] = 8 * e[n - 1] + e[n], t = 1; t < n; ++t) r = i[t] / a[t - 1], a[t] -= r, o[t] -= r * o[t - 1];
658
- for (i[n - 1] = o[n - 1] / a[n - 1], t = n - 2; t >= 0; --t) i[t] = (o[t] - i[t + 1]) / a[t];
659
- for (a[n - 1] = (e[n] + i[n - 1]) / 2, t = 0; t < n - 1; ++t) a[t] = 2 * e[t + 1] - i[t + 1];
660
- return [i, a];
661
- }
662
- function Oe(e) {
663
- return new Ee(e);
664
- }
665
- //#endregion
666
- //#region node_modules/d3-shape/src/curve/step.js
667
- function C(e, t) {
668
- this._context = e, this._t = t;
669
- }
670
- C.prototype = {
671
- areaStart: function() {
672
- this._line = 0;
673
- },
674
- areaEnd: function() {
675
- this._line = NaN;
676
- },
677
- lineStart: function() {
678
- this._x = this._y = NaN, this._point = 0;
679
- },
680
- lineEnd: function() {
681
- 0 < this._t && this._t < 1 && this._point === 2 && this._context.lineTo(this._x, this._y), (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line >= 0 && (this._t = 1 - this._t, this._line = 1 - this._line);
682
- },
683
- point: function(e, t) {
684
- switch (e = +e, t = +t, this._point) {
685
- case 0:
686
- this._point = 1, this._line ? this._context.lineTo(e, t) : this._context.moveTo(e, t);
687
- break;
688
- case 1: this._point = 2;
689
- default: if (this._t <= 0) this._context.lineTo(this._x, t), this._context.lineTo(e, t);
690
- else {
691
- var n = this._x * (1 - this._t) + e * this._t;
692
- this._context.lineTo(n, this._y), this._context.lineTo(n, t);
693
- }
694
- }
695
- this._x = e, this._y = t;
696
- }
697
- };
698
- function w(e) {
699
- return new C(e, .5);
700
- }
701
- function T(e) {
702
- return new C(e, 0);
703
- }
704
- function ke(e) {
705
- return new C(e, 1);
706
- }
707
- //#endregion
708
- //#region node_modules/es-toolkit/dist/compat/predicate/isPlainObject.mjs
709
- function E(e) {
710
- if (typeof e != "object" || !e) return !1;
711
- if (Object.getPrototypeOf(e) === null) return !0;
712
- if (Object.prototype.toString.call(e) !== "[object Object]") {
713
- let t = e[Symbol.toStringTag];
714
- return t == null || !Object.getOwnPropertyDescriptor(e, Symbol.toStringTag)?.writable ? !1 : e.toString() === `[object ${t}]`;
715
- }
716
- let t = e;
717
- for (; Object.getPrototypeOf(t) !== null;) t = Object.getPrototypeOf(t);
718
- return Object.getPrototypeOf(e) === t;
719
- }
720
- //#endregion
721
- //#region node_modules/es-toolkit/dist/function/noop.mjs
722
- function Ae() {}
723
- //#endregion
724
- //#region node_modules/es-toolkit/dist/compat/_internal/getSymbols.mjs
725
- function je(e) {
726
- return Object.getOwnPropertySymbols(e).filter((t) => Object.prototype.propertyIsEnumerable.call(e, t));
727
- }
728
- //#endregion
729
- //#region node_modules/es-toolkit/dist/compat/_internal/getTag.mjs
730
- function D(e) {
731
- return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Object.prototype.toString.call(e);
732
- }
733
- //#endregion
734
- //#region node_modules/es-toolkit/dist/compat/_internal/tags.mjs
735
- var Me = "[object RegExp]", O = "[object String]", k = "[object Number]", A = "[object Boolean]", j = "[object Arguments]", Ne = "[object Symbol]", Pe = "[object Date]", Fe = "[object Map]", Ie = "[object Set]", Le = "[object Array]", Re = "[object ArrayBuffer]", ze = "[object Object]", M = "[object DataView]", Be = "[object Uint8Array]", Ve = "[object Uint8ClampedArray]", He = "[object Uint16Array]", Ue = "[object Uint32Array]", We = "[object Int8Array]", Ge = "[object Int16Array]", Ke = "[object Int32Array]", qe = "[object Float32Array]", Je = "[object Float64Array]", Ye = typeof globalThis == "object" && globalThis || typeof window == "object" && window || typeof self == "object" && self || typeof global == "object" && global || (function() {
736
- return this;
737
- })();
738
- //#endregion
739
- //#region node_modules/es-toolkit/dist/predicate/isBuffer.mjs
740
- function N(e) {
741
- return Ye.Buffer !== void 0 && Ye.Buffer.isBuffer(e);
742
- }
743
- //#endregion
744
- //#region node_modules/es-toolkit/dist/predicate/isLength.mjs
745
- function Xe(e) {
746
- return Number.isSafeInteger(e) && e >= 0;
747
- }
748
- //#endregion
749
- //#region node_modules/es-toolkit/dist/compat/predicate/isArrayLike.mjs
750
- function Ze(e) {
751
- return e != null && typeof e != "function" && Xe(e.length);
752
- }
753
- //#endregion
754
- //#region node_modules/es-toolkit/dist/_internal/isUnsafeProperty.mjs
755
- function Qe(e) {
756
- return e === "__proto__";
757
- }
758
- //#endregion
759
- //#region node_modules/es-toolkit/dist/predicate/isPrimitive.mjs
760
- function P(e) {
761
- return e == null || typeof e != "object" && typeof e != "function";
762
- }
763
- //#endregion
764
- //#region node_modules/es-toolkit/dist/predicate/isTypedArray.mjs
765
- function F(e) {
766
- return ArrayBuffer.isView(e) && !(e instanceof DataView);
767
- }
768
- //#endregion
769
- //#region node_modules/es-toolkit/dist/object/cloneDeepWith.mjs
770
- function $e(e, t) {
771
- return I(e, void 0, e, /* @__PURE__ */ new Map(), t);
772
- }
773
- function I(e, t, n, r = /* @__PURE__ */ new Map(), i = void 0) {
774
- let a = i?.(e, t, n, r);
775
- if (a !== void 0) return a;
776
- if (P(e)) return e;
777
- if (r.has(e)) return r.get(e);
778
- if (Array.isArray(e)) {
779
- let t = Array(e.length);
780
- r.set(e, t);
781
- for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
782
- return Object.hasOwn(e, "index") && (t.index = e.index), Object.hasOwn(e, "input") && (t.input = e.input), t;
783
- }
784
- if (e instanceof Date) return new Date(e.getTime());
785
- if (e instanceof RegExp) {
786
- let t = new RegExp(e.source, e.flags);
787
- return t.lastIndex = e.lastIndex, t;
788
- }
789
- if (e instanceof Map) {
790
- let t = /* @__PURE__ */ new Map();
791
- r.set(e, t);
792
- for (let [a, o] of e) t.set(a, I(o, a, n, r, i));
793
- return t;
794
- }
795
- if (e instanceof Set) {
796
- let t = /* @__PURE__ */ new Set();
797
- r.set(e, t);
798
- for (let a of e) t.add(I(a, void 0, n, r, i));
799
- return t;
800
- }
801
- if (N(e)) return e.subarray();
802
- if (F(e)) {
803
- let t = new (Object.getPrototypeOf(e)).constructor(e.length);
804
- r.set(e, t);
805
- for (let a = 0; a < e.length; a++) t[a] = I(e[a], a, n, r, i);
806
- return t;
807
- }
808
- if (e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
809
- if (e instanceof DataView) {
810
- let t = new DataView(e.buffer.slice(0), e.byteOffset, e.byteLength);
811
- return r.set(e, t), L(t, e, n, r, i), t;
812
- }
813
- if (typeof File < "u" && e instanceof File) {
814
- let t = new File([e], e.name, { type: e.type });
815
- return r.set(e, t), L(t, e, n, r, i), t;
816
- }
817
- if (typeof Blob < "u" && e instanceof Blob) {
818
- let t = new Blob([e], { type: e.type });
819
- return r.set(e, t), L(t, e, n, r, i), t;
820
- }
821
- if (e instanceof Error) {
822
- let t = structuredClone(e);
823
- return r.set(e, t), t.message = e.message, t.name = e.name, t.stack = e.stack, t.cause = e.cause, t.constructor = e.constructor, L(t, e, n, r, i), t;
824
- }
825
- if (e instanceof Boolean) {
826
- let t = new Boolean(e.valueOf());
827
- return r.set(e, t), L(t, e, n, r, i), t;
828
- }
829
- if (e instanceof Number) {
830
- let t = new Number(e.valueOf());
831
- return r.set(e, t), L(t, e, n, r, i), t;
832
- }
833
- if (e instanceof String) {
834
- let t = new String(e.valueOf());
835
- return r.set(e, t), L(t, e, n, r, i), t;
836
- }
837
- if (typeof e == "object" && et(e)) {
838
- let t = Object.create(Object.getPrototypeOf(e));
839
- return r.set(e, t), L(t, e, n, r, i), t;
840
- }
841
- return e;
842
- }
843
- function L(e, t, n = e, r, i) {
844
- let a = [...Object.keys(t), ...je(t)];
845
- for (let o = 0; o < a.length; o++) {
846
- let s = a[o], c = Object.getOwnPropertyDescriptor(e, s);
847
- (c == null || c.writable) && (e[s] = I(t[s], s, n, r, i));
848
- }
849
- }
850
- function et(e) {
851
- switch (D(e)) {
852
- case j:
853
- case Le:
854
- case Re:
855
- case M:
856
- case A:
857
- case Pe:
858
- case qe:
859
- case Je:
860
- case We:
861
- case Ge:
862
- case Ke:
863
- case Fe:
864
- case k:
865
- case ze:
866
- case Me:
867
- case Ie:
868
- case O:
869
- case Ne:
870
- case Be:
871
- case Ve:
872
- case He:
873
- case Ue: return !0;
874
- default: return !1;
875
- }
876
- }
877
- //#endregion
878
- //#region node_modules/es-toolkit/dist/compat/object/cloneDeepWith.mjs
879
- function tt(e, t) {
880
- return $e(e, (n, r, i, a) => {
881
- let o = t?.(n, r, i, a);
882
- if (o !== void 0) return o;
883
- if (typeof e == "object") {
884
- if (D(e) === "[object Object]" && typeof e.constructor != "function") {
885
- let t = {};
886
- return a.set(e, t), L(t, e, i, a), t;
887
- }
888
- switch (Object.prototype.toString.call(e)) {
889
- case k:
890
- case O:
891
- case A: {
892
- let t = new e.constructor(e?.valueOf());
893
- return L(t, e), t;
894
- }
895
- case j: {
896
- let t = {};
897
- return L(t, e), t.length = e.length, t[Symbol.iterator] = e[Symbol.iterator], t;
898
- }
899
- default: return;
900
- }
901
- }
902
- });
903
- }
904
- //#endregion
905
- //#region node_modules/es-toolkit/dist/compat/object/cloneDeep.mjs
906
- function nt(e) {
907
- return tt(e);
908
- }
909
- //#endregion
910
- //#region node_modules/es-toolkit/dist/compat/predicate/isArguments.mjs
911
- function R(e) {
912
- return typeof e == "object" && !!e && D(e) === "[object Arguments]";
913
- }
914
- //#endregion
915
- //#region node_modules/es-toolkit/dist/compat/predicate/isObjectLike.mjs
916
- function z(e) {
917
- return typeof e == "object" && !!e;
918
- }
919
- //#endregion
920
- //#region node_modules/es-toolkit/dist/compat/predicate/isArrayLikeObject.mjs
921
- function rt(e) {
922
- return z(e) && Ze(e);
923
- }
924
- //#endregion
925
- //#region node_modules/es-toolkit/dist/compat/predicate/isTypedArray.mjs
926
- function B(e) {
927
- return F(e);
928
- }
929
- //#endregion
930
- //#region node_modules/es-toolkit/dist/compat/function/memoize.mjs
931
- function V(e, t) {
932
- if (typeof e != "function" || t != null && typeof t != "function") throw TypeError("Expected a function");
933
- let n = function(...r) {
934
- let i = t ? t.apply(this, r) : r[0], a = n.cache;
935
- if (a.has(i)) return a.get(i);
936
- let o = e.apply(this, r);
937
- return n.cache = a.set(i, o) || a, o;
938
- };
939
- return n.cache = new (V.Cache || Map)(), n;
940
- }
941
- V.Cache = Map;
942
- //#endregion
943
- //#region node_modules/es-toolkit/dist/object/clone.mjs
944
- function it(e) {
945
- if (P(e)) return e;
946
- if (Array.isArray(e) || F(e) || e instanceof ArrayBuffer || typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) return e.slice(0);
947
- let t = Object.getPrototypeOf(e);
948
- if (t == null) return Object.assign(Object.create(t), e);
949
- let n = t.constructor;
950
- if (e instanceof Date || e instanceof Map || e instanceof Set) return new n(e);
951
- if (e instanceof RegExp) {
952
- let t = new n(e);
953
- return t.lastIndex = e.lastIndex, t;
954
- }
955
- if (e instanceof DataView) return new n(e.buffer.slice(0));
956
- if (e instanceof Error) {
957
- let t;
958
- return t = e instanceof AggregateError ? new n(e.errors, e.message, { cause: e.cause }) : new n(e.message, { cause: e.cause }), t.stack = e.stack, Object.assign(t, e), t;
959
- }
960
- return typeof File < "u" && e instanceof File ? new n([e], e.name, {
961
- type: e.type,
962
- lastModified: e.lastModified
963
- }) : typeof e == "object" ? Object.assign(Object.create(t), e) : e;
964
- }
965
- //#endregion
966
- //#region node_modules/es-toolkit/dist/compat/object/mergeWith.mjs
967
- function at(e, ...t) {
968
- let n = t.slice(0, -1), r = t[t.length - 1], i = e;
969
- for (let e = 0; e < n.length; e++) {
970
- let t = n[e];
971
- i = H(i, t, r, /* @__PURE__ */ new Map());
972
- }
973
- return i;
974
- }
975
- function H(e, t, n, r) {
976
- if (P(e) && (e = Object(e)), typeof t != "object" || !t) return e;
977
- if (r.has(t)) return it(r.get(t));
978
- if (r.set(t, e), Array.isArray(t)) {
979
- t = t.slice();
980
- for (let e = 0; e < t.length; e++) t[e] = t[e] ?? void 0;
981
- }
982
- let i = [...Object.keys(t), ...je(t)];
983
- for (let a = 0; a < i.length; a++) {
984
- let o = i[a];
985
- if (Qe(o)) continue;
986
- let s = t[o], c = e[o];
987
- if (R(s) && (s = { ...s }), R(c) && (c = { ...c }), N(s) && (s = nt(s)), Array.isArray(s)) {
988
- if (Array.isArray(c)) {
989
- let e = [], t = Reflect.ownKeys(c);
990
- for (let n = 0; n < t.length; n++) {
991
- let r = t[n];
992
- e[r] = c[r];
993
- }
994
- c = e;
995
- } else if (rt(c)) {
996
- let e = [];
997
- for (let t = 0; t < c.length; t++) e[t] = c[t];
998
- c = e;
999
- } else c = [];
1000
- }
1001
- let l = n(c, s, o, e, t, r);
1002
- l === void 0 ? Array.isArray(s) || z(c) && z(s) && (E(c) || E(s) || B(c) || B(s)) ? e[o] = H(c, s, n, r) : c == null && E(s) ? e[o] = H({}, s, n, r) : c == null && B(s) ? e[o] = nt(s) : (c === void 0 || s !== void 0) && (e[o] = s) : e[o] = l;
1003
- }
1004
- return e;
1005
- }
1006
- //#endregion
1007
- //#region node_modules/es-toolkit/dist/compat/object/merge.mjs
1008
- function ot(e, ...t) {
1009
- return at(e, ...t, Ae);
1010
- }
1011
- //#endregion
1012
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-75Z2AOVW.mjs
1013
- var st = c(), ct = {
1014
- curveBasis: te,
1015
- curveBasisClosed: re,
1016
- curveBasisOpen: ae,
1017
- curveBumpX: f,
1018
- curveBumpY: ee,
1019
- curveBundle: se,
1020
- curveCardinalClosed: le,
1021
- curveCardinalOpen: ue,
1022
- curveCardinal: ce,
1023
- curveCatmullRomClosed: me,
1024
- curveCatmullRomOpen: ge,
1025
- curveCatmullRom: fe,
1026
- curveLinear: u,
1027
- curveLinearClosed: ve,
1028
- curveMonotoneX: we,
1029
- curveMonotoneY: Te,
1030
- curveNatural: Oe,
1031
- curveStep: w,
1032
- curveStepAfter: ke,
1033
- curveStepBefore: T
1034
- }, lt = /\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi, ut = /* @__PURE__ */ n(function(e, t) {
1035
- let n = dt(e, /(?:init\b)|(?:initialize\b)/), i = {};
1036
- if (Array.isArray(n)) {
1037
- let e = n.map((e) => e.args);
1038
- r(e), i = o(i, [...e]);
1039
- } else i = n.args;
1040
- if (!i) return;
1041
- let s = a(e, t), c = "config";
1042
- return i[c] !== void 0 && (s === "flowchart-v2" && (s = "flowchart"), i[s] = i[c], delete i[c]), i;
1043
- }, "detectInit"), dt = /* @__PURE__ */ n(function(t, n = null) {
1044
- try {
1045
- let r = RegExp(`[%]{2}(?![{]${lt.source})(?=[}][%]{2}).*
1046
- `, "ig");
1047
- t = t.trim().replace(r, "").replace(/'/gm, "\""), e.debug(`Detecting diagram directive${n === null ? "" : " type:" + n} based on the text:${t}`);
1048
- let a, o = [];
1049
- for (; (a = i.exec(t)) !== null;) if (a.index === i.lastIndex && i.lastIndex++, a && !n || n && a[1]?.match(n) || n && a[2]?.match(n)) {
1050
- let e = a[1] ? a[1] : a[2], t = a[3] ? a[3].trim() : a[4] ? JSON.parse(a[4].trim()) : null;
1051
- o.push({
1052
- type: e,
1053
- args: t
1054
- });
1055
- }
1056
- return o.length === 0 ? {
1057
- type: t,
1058
- args: null
1059
- } : o.length === 1 ? o[0] : o;
1060
- } catch (r) {
1061
- return e.error(`ERROR: ${r.message} - Unable to parse directive type: '${n}' based on the text: '${t}'`), {
1062
- type: void 0,
1063
- args: null
1064
- };
1065
- }
1066
- }, "detectDirective"), ft = /* @__PURE__ */ n(function(e) {
1067
- return e.replace(i, "");
1068
- }, "removeDirectives"), pt = /* @__PURE__ */ n(function(e, t) {
1069
- for (let [n, r] of t.entries()) if (r.match(e)) return n;
1070
- return -1;
1071
- }, "isSubstringInArray");
1072
- function U(e, t) {
1073
- return e ? ct[`curve${e.charAt(0).toUpperCase() + e.slice(1)}`] ?? t : t;
1074
- }
1075
- n(U, "interpolateToCurve");
1076
- function mt(e, t) {
1077
- let n = e.trim();
1078
- if (n) return t.securityLevel === "loose" ? n : (0, st.sanitizeUrl)(n);
1079
- }
1080
- n(mt, "formatUrl");
1081
- var ht = /* @__PURE__ */ n((t, ...n) => {
1082
- let r = t.split("."), i = r.length - 1, a = r[i], o = window;
1083
- for (let n = 0; n < i; n++) if (o = o[r[n]], !o) {
1084
- e.error(`Function name: ${t} not found in window`);
1085
- return;
1086
- }
1087
- o[a](...n);
1088
- }, "runFunc");
1089
- function W(e, t) {
1090
- return !e || !t ? 0 : Math.sqrt((t.x - e.x) ** 2 + (t.y - e.y) ** 2);
1091
- }
1092
- n(W, "distance");
1093
- function gt(e) {
1094
- let t, n = 0;
1095
- return e.forEach((e) => {
1096
- n += W(e, t), t = e;
1097
- }), G(e, n / 2);
1098
- }
1099
- n(gt, "traverseEdge");
1100
- function _t(e) {
1101
- return e.length === 1 ? e[0] : gt(e);
1102
- }
1103
- n(_t, "calcLabelPosition");
1104
- var vt = /* @__PURE__ */ n((e, t = 2) => {
1105
- let n = 10 ** t;
1106
- return Math.round(e * n) / n;
1107
- }, "roundNumber"), G = /* @__PURE__ */ n((e, t) => {
1108
- let n, r = t;
1109
- for (let t of e) {
1110
- if (n) {
1111
- let e = W(t, n);
1112
- if (e === 0) return n;
1113
- if (e < r) r -= e;
1114
- else {
1115
- let i = r / e;
1116
- if (i <= 0) return n;
1117
- if (i >= 1) return {
1118
- x: t.x,
1119
- y: t.y
1120
- };
1121
- if (i > 0 && i < 1) return {
1122
- x: vt((1 - i) * n.x + i * t.x, 5),
1123
- y: vt((1 - i) * n.y + i * t.y, 5)
1124
- };
1125
- }
1126
- }
1127
- n = t;
1128
- }
1129
- throw Error("Could not find a suitable point for the given distance");
1130
- }, "calculatePoint"), yt = /* @__PURE__ */ n((t, n, r) => {
1131
- e.info(`our points ${JSON.stringify(n)}`), n[0] !== r && (n = n.reverse());
1132
- let i = G(n, 25), a = t ? 10 : 5, o = Math.atan2(n[0].y - i.y, n[0].x - i.x), s = {
1133
- x: 0,
1134
- y: 0
1135
- };
1136
- return s.x = Math.sin(o) * a + (n[0].x + i.x) / 2, s.y = -Math.cos(o) * a + (n[0].y + i.y) / 2, s;
1137
- }, "calcCardinalityPosition");
1138
- function bt(t, n, r) {
1139
- let i = structuredClone(r);
1140
- e.info("our points", i), n !== "start_left" && n !== "start_right" && i.reverse();
1141
- let a = G(i, 25 + t), o = 10 + t * .5, s = Math.atan2(i[0].y - a.y, i[0].x - a.x), c = {
1142
- x: 0,
1143
- y: 0
1144
- };
1145
- return n === "start_left" ? (c.x = Math.sin(s + Math.PI) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s + Math.PI) * o + (i[0].y + a.y) / 2) : n === "end_right" ? (c.x = Math.sin(s - Math.PI) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s - Math.PI) * o + (i[0].y + a.y) / 2 - 5) : n === "end_left" ? (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2 - 5, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2 - 5) : (c.x = Math.sin(s) * o + (i[0].x + a.x) / 2, c.y = -Math.cos(s) * o + (i[0].y + a.y) / 2), c;
1146
- }
1147
- n(bt, "calcTerminalLabelPosition");
1148
- function K(e) {
1149
- let t = "", n = "";
1150
- for (let r of e) r !== void 0 && (r.startsWith("color:") || r.startsWith("text-align:") ? n = n + r + ";" : t = t + r + ";");
1151
- return {
1152
- style: t,
1153
- labelStyle: n
1154
- };
1155
- }
1156
- n(K, "getStylesFromArray");
1157
- var xt = 0, St = /* @__PURE__ */ n(() => (xt++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + xt), "generateId");
1158
- function Ct(e) {
1159
- let t = "";
1160
- for (let n = 0; n < e; n++) t += "0123456789abcdef".charAt(Math.floor(Math.random() * 16));
1161
- return t;
1162
- }
1163
- n(Ct, "makeRandomHex");
1164
- var wt = /* @__PURE__ */ n((e) => Ct(e.length), "random"), Tt = /* @__PURE__ */ n(function() {
1165
- return {
1166
- x: 0,
1167
- y: 0,
1168
- fill: void 0,
1169
- anchor: "start",
1170
- style: "#666",
1171
- width: 100,
1172
- height: 100,
1173
- textMargin: 0,
1174
- rx: 0,
1175
- ry: 0,
1176
- valign: void 0,
1177
- text: ""
1178
- };
1179
- }, "getTextObj"), Et = /* @__PURE__ */ n(function(e, t) {
1180
- let n = t.text.replace(s.lineBreakRegex, " "), [, r] = Z(t.fontSize), i = e.append("text");
1181
- i.attr("x", t.x), i.attr("y", t.y), i.style("text-anchor", t.anchor), i.style("font-family", t.fontFamily), i.style("font-size", r), i.style("font-weight", t.fontWeight), i.attr("fill", t.fill), t.class !== void 0 && i.attr("class", t.class);
1182
- let a = i.append("tspan");
1183
- return a.attr("x", t.x + t.textMargin * 2), a.attr("fill", t.fill), a.text(n), i;
1184
- }, "drawSimpleText"), Dt = V((e, t, n) => {
1185
- if (!e || (n = Object.assign({
1186
- fontSize: 12,
1187
- fontWeight: 400,
1188
- fontFamily: "Arial",
1189
- joinWith: "<br/>"
1190
- }, n), s.lineBreakRegex.test(e))) return e;
1191
- let r = e.split(" ").filter(Boolean), i = [], a = "";
1192
- return r.forEach((e, o) => {
1193
- let s = J(`${e} `, n), c = J(a, n);
1194
- if (s > t) {
1195
- let { hyphenatedStrings: r, remainingWord: o } = Ot(e, t, "-", n);
1196
- i.push(a, ...r), a = o;
1197
- } else c + s >= t ? (i.push(a), a = e) : a = [a, e].filter(Boolean).join(" ");
1198
- o + 1 === r.length && i.push(a);
1199
- }), i.filter((e) => e !== "").join(n.joinWith);
1200
- }, (e, t, n) => `${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`), Ot = V((e, t, n = "-", r) => {
1201
- r = Object.assign({
1202
- fontSize: 12,
1203
- fontWeight: 400,
1204
- fontFamily: "Arial",
1205
- margin: 0
1206
- }, r);
1207
- let i = [...e], a = [], o = "";
1208
- return i.forEach((e, s) => {
1209
- let c = `${o}${e}`;
1210
- if (J(c, r) >= t) {
1211
- let e = s + 1, t = i.length === e, r = `${c}${n}`;
1212
- a.push(t ? c : r), o = "";
1213
- } else o = c;
1214
- }), {
1215
- hyphenatedStrings: a,
1216
- remainingWord: o
1217
- };
1218
- }, (e, t, n = "-", r) => `${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`);
1219
- function q(e, t) {
1220
- return Y(e, t).height;
1221
- }
1222
- n(q, "calculateTextHeight");
1223
- function J(e, t) {
1224
- return Y(e, t).width;
1225
- }
1226
- n(J, "calculateTextWidth");
1227
- var Y = V((e, n) => {
1228
- let { fontSize: r = 12, fontFamily: i = "Arial", fontWeight: a = 400 } = n;
1229
- if (!e) return {
1230
- width: 0,
1231
- height: 0
1232
- };
1233
- let [, o] = Z(r), c = ["sans-serif", i], l = e.split(s.lineBreakRegex), u = [], d = t("body");
1234
- if (!d.remove) return {
1235
- width: 0,
1236
- height: 0,
1237
- lineHeight: 0
1238
- };
1239
- let f = d.append("svg");
1240
- for (let e of c) {
1241
- let t = 0, n = {
1242
- width: 0,
1243
- height: 0,
1244
- lineHeight: 0
1245
- };
1246
- for (let r of l) {
1247
- let i = Tt();
1248
- i.text = r || "​";
1249
- let s = Et(f, i).style("font-size", o).style("font-weight", a).style("font-family", e), c = (s._groups || s)[0][0].getBBox();
1250
- if (c.width === 0 && c.height === 0) throw Error("svg element not in render tree");
1251
- n.width = Math.round(Math.max(n.width, c.width)), t = Math.round(c.height), n.height += t, n.lineHeight = Math.round(Math.max(n.lineHeight, t));
1252
- }
1253
- u.push(n);
1254
- }
1255
- return f.remove(), u[isNaN(u[1].height) || isNaN(u[1].width) || isNaN(u[1].lineHeight) || u[0].height > u[1].height && u[0].width > u[1].width && u[0].lineHeight > u[1].lineHeight ? 0 : 1];
1256
- }, (e, t) => `${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`), kt = class {
1257
- constructor(e = !1, t) {
1258
- this.count = 0, this.count = t ? t.length : 0, this.next = e ? () => this.count++ : () => Date.now();
1259
- }
1260
- static {
1261
- n(this, "InitIDGenerator");
1262
- }
1263
- }, X, At = /* @__PURE__ */ n(function(e) {
1264
- return X ||= document.createElement("div"), e = escape(e).replace(/%26/g, "&").replace(/%23/g, "#").replace(/%3B/g, ";"), X.innerHTML = e, unescape(X.textContent);
1265
- }, "entityDecode");
1266
- function jt(e) {
1267
- return "str" in e;
1268
- }
1269
- n(jt, "isDetailedError");
1270
- var Mt = /* @__PURE__ */ n((e, t, n, r) => {
1271
- if (!r) return;
1272
- let i = e.node()?.getBBox();
1273
- i && e.append("text").text(r).attr("text-anchor", "middle").attr("x", i.x + i.width / 2).attr("y", -n).attr("class", t);
1274
- }, "insertTitle"), Z = /* @__PURE__ */ n((e) => {
1275
- if (typeof e == "number") return [e, e + "px"];
1276
- let t = parseInt(e ?? "", 10);
1277
- return Number.isNaN(t) ? [void 0, void 0] : e === String(t) ? [t, e + "px"] : [t, e];
1278
- }, "parseFontSize");
1279
- function Q(e, t) {
1280
- return ot({}, e, t);
1281
- }
1282
- n(Q, "cleanAndMerge");
1283
- var Nt = {
1284
- assignWithDepth: o,
1285
- wrapLabel: Dt,
1286
- calculateTextHeight: q,
1287
- calculateTextWidth: J,
1288
- calculateTextDimensions: Y,
1289
- cleanAndMerge: Q,
1290
- detectInit: ut,
1291
- detectDirective: dt,
1292
- isSubstringInArray: pt,
1293
- interpolateToCurve: U,
1294
- calcLabelPosition: _t,
1295
- calcCardinalityPosition: yt,
1296
- calcTerminalLabelPosition: bt,
1297
- formatUrl: mt,
1298
- getStylesFromArray: K,
1299
- generateId: St,
1300
- random: wt,
1301
- runFunc: ht,
1302
- entityDecode: At,
1303
- insertTitle: Mt,
1304
- isLabelCoordinateInPath: $,
1305
- parseFontSize: Z,
1306
- InitIDGenerator: kt
1307
- }, Pt = /* @__PURE__ */ n(function(e) {
1308
- let t = e;
1309
- return t = t.replace(/style.*:\S*#.*;/g, function(e) {
1310
- return e.substring(0, e.length - 1);
1311
- }), t = t.replace(/classDef.*:\S*#.*;/g, function(e) {
1312
- return e.substring(0, e.length - 1);
1313
- }), t = t.replace(/#\w+;/g, function(e) {
1314
- let t = e.substring(1, e.length - 1);
1315
- return /^\+?\d+$/.test(t) ? "fl°°" + t + "¶ß" : "fl°" + t + "¶ß";
1316
- }), t;
1317
- }, "encodeEntities"), Ft = /* @__PURE__ */ n(function(e) {
1318
- return e.replace(/fl°°/g, "&#").replace(/fl°/g, "&").replace(/¶ß/g, ";");
1319
- }, "decodeEntities"), It = /* @__PURE__ */ n((e, t, { counter: n = 0, prefix: r, suffix: i }, a) => a || `${r ? `${r}_` : ""}${e}_${t}_${n}${i ? `_${i}` : ""}`, "getEdgeId");
1320
- function Lt(e) {
1321
- return e ?? null;
1322
- }
1323
- n(Lt, "handleUndefinedAttr");
1324
- function $(e, t) {
1325
- let n = Math.round(e.x), r = Math.round(e.y), i = t.replace(/(\d+\.\d+)/g, (e) => Math.round(parseFloat(e)).toString());
1326
- return i.includes(n.toString()) || i.includes(r.toString());
1327
- }
1328
- n($, "isLabelCoordinateInPath");
1329
- //#endregion
1330
- export { ce as $, Je as A, Ne as B, j as C, M as D, A as E, k as F, D as G, Ue as H, ze as I, w as J, ke as K, Me as L, Ke as M, We as N, Pe as O, Fe as P, fe as Q, Ie as R, N as S, Le as T, Be as U, He as V, Ve as W, we as X, Oe as Y, Te as Z, Dt as _, Ft as a, P as b, It as c, U as d, te as et, jt as f, Nt as g, ft as h, Q as i, Ge as j, qe as k, K as l, wt as m, q as n, ee as nt, Pt as o, Z as p, T as q, J as r, u as rt, St as s, Y as t, f as tt, Lt as u, B as v, Re as w, Ze as x, R as y, O as z };