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,24 +0,0 @@
1
- const e=require("./src-B4mN2BMl.js"),t=require("./chunk-Y2CYZVJY-CnmLqFtv.js"),n=require("./chunk-DU6HZSFF-CWc5ewtb.js"),r=require("./ordinal-B9aFWmF9.js"),i=require("./defaultLocale-ybN1Vtvg.js"),a=require("./chunk-75Z2AOVW-DYouz5MZ.js"),o=require("./chunk-CLGD4ZFX-C5J-e2io.js"),s=require("./chunk-P2QGCYS3-DKZzpRQW.js"),c=require("./mermaid-parser.core-BBApyu_y.js"),l=require("./chunk-JWPE2WC7-p1fYVdYc.js"),u=require("./chunk-POPQ4Y6H-T5C7wpjf.js");function d(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function f(){return this.eachAfter(d)}function p(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function m(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function h(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function g(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function _(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function v(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function y(e){for(var t=this,n=b(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function b(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function x(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function S(){return Array.from(this)}function C(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function w(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*T(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function E(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=k)):t===void 0&&(t=O);for(var n=new M(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new M(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(j)}function D(){return E(this).eachBefore(A)}function O(e){return e.children}function k(e){return Array.isArray(e)?e[1]:null}function A(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function j(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function M(e){this.data=e,this.depth=this.height=0,this.parent=null}M.prototype=E.prototype={constructor:M,count:f,each:p,eachAfter:h,eachBefore:m,find:g,sum:_,sort:v,path:y,ancestors:x,descendants:S,leaves:C,links:w,copy:D,[Symbol.iterator]:T};function N(e){if(typeof e!=`function`)throw Error();return e}function P(){return 0}function F(e){return function(){return e}}function I(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function L(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function R(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var z=(1+Math.sqrt(5))/2;function B(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?L(c,n,r,i,h?r+=m*g/h:a):R(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var V=(function e(t){function n(e,n,r,i,a){B(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(z);function H(){var e=V,t=!1,n=1,r=1,i=[0],a=P,o=P,s=P,c=P,l=P;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(I),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=N(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:F(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:F(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:F(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:F(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:F(+e),u):l},u}var U=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=n.U,this.getAccTitle=n.y,this.setDiagramTitle=n.K,this.getDiagramTitle=n.w,this.getAccDescription=n.v,this.setAccDescription=n.H}static{t.n(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let e=n.f,t=n.b();return a.i({...e.treemap,...t.treemap??{}})}addNode(e,t){this.nodes.push(e),this.levels.set(e,t),t===0&&(this.outerNodes.push(e),this.root??=e)}getRoot(){return{name:``,children:this.outerNodes}}addClass(e,t){let n=this.classes.get(e)??{id:e,styles:[],textStyles:[]},r=t.replace(/\\,/g,`§§§`).replace(/,/g,`;`).replace(/§§§/g,`,`).split(`;`);r&&r.forEach(e=>{s.n(e)&&(n?.textStyles?n.textStyles.push(e):n.textStyles=[e]),n?.styles?n.styles.push(e):n.styles=[e]}),this.classes.set(e,n)}getClasses(){return this.classes}getStylesForClass(e){return this.classes.get(e)?.styles??[]}clear(){n.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function W(e){if(!e.length)return[];let t=[],n=[];return e.forEach(e=>{let r={name:e.name,children:e.type===`Leaf`?void 0:[]};for(r.classSelector=e?.classSelector,e?.cssCompiledStyles&&(r.cssCompiledStyles=e.cssCompiledStyles),e.type===`Leaf`&&e.value!==void 0&&(r.value=e.value);n.length>0&&n[n.length-1].level>=e.level;)n.pop();if(n.length===0)t.push(r);else{let e=n[n.length-1].node;e.children?e.children.push(r):e.children=[r]}e.type!==`Leaf`&&n.push({node:r,level:e.level})}),t}t.n(W,`buildHierarchy`);var G=t.n((e,n)=>{l.t(e,n);let r=[];for(let t of e.TreemapRows??[])t.$type===`ClassDefStatement`&&n.addClass(t.className??``,t.styleText??``);for(let t of e.TreemapRows??[]){let e=t.item;if(!e)continue;let i=t.indent?parseInt(t.indent):0,a=K(e),o=e.classSelector?n.getStylesForClass(e.classSelector):[],s=o.length>0?o:void 0,c={level:i,name:a,type:e.$type,value:e.value,classSelector:e.classSelector,cssCompiledStyles:s};r.push(c)}let i=W(r),a=t.n((e,t)=>{for(let r of e)n.addNode(r,t),r.children&&r.children.length>0&&a(r.children,t+1)},`addNodesRecursively`);a(i,0)},`populate`),K=t.n(e=>e.name?String(e.name):``,`getItemName`),q={parser:{yy:void 0},parse:t.n(async t=>{try{let n=await c.n(`treemap`,t);e.m.debug(`Treemap AST:`,n);let r=q.parser?.yy;if(!(r instanceof U))throw Error(`parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.`);G(n,r)}catch(t){throw e.m.error(`Error parsing treemap:`,t),t}},`parse`)},J=10,Y=10,X=25,Z={draw:t.n((a,c,l,d)=>{let f=d.db,p=f.getConfig(),m=p.padding??J,h=f.getDiagramTitle(),g=f.getRoot(),{themeVariables:_}=n.b();if(!g)return;let v=h?30:0,y=o.t(c),b=p.nodeWidth?p.nodeWidth*Y:960,x=p.nodeHeight?p.nodeHeight*Y:500,S=b,C=x+v;y.attr(`viewBox`,`0 0 ${S} ${C}`),n.c(y,C,S,p.useMaxWidth);let w;try{let e=p.valueFormat||`,`;if(e===`$0,0`)w=t.n(e=>`$`+i.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),r=n?n[0]:``;w=t.n(e=>`$`+i.t(`,`+r)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);w=t.n(e=>`$`+i.t(n||``)(e),`valueFormat`)}else w=i.t(e)}catch(t){e.m.error(`Error creating format function:`,t),w=i.t(`,`)}let T=r.t().range([`transparent`,_.cScale0,_.cScale1,_.cScale2,_.cScale3,_.cScale4,_.cScale5,_.cScale6,_.cScale7,_.cScale8,_.cScale9,_.cScale10,_.cScale11]),D=r.t().range([`transparent`,_.cScalePeer0,_.cScalePeer1,_.cScalePeer2,_.cScalePeer3,_.cScalePeer4,_.cScalePeer5,_.cScalePeer6,_.cScalePeer7,_.cScalePeer8,_.cScalePeer9,_.cScalePeer10,_.cScalePeer11]),O=r.t().range([_.cScaleLabel0,_.cScaleLabel1,_.cScaleLabel2,_.cScaleLabel3,_.cScaleLabel4,_.cScaleLabel5,_.cScaleLabel6,_.cScaleLabel7,_.cScaleLabel8,_.cScaleLabel9,_.cScaleLabel10,_.cScaleLabel11]);h&&y.append(`text`).attr(`x`,S/2).attr(`y`,v/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(h);let k=y.append(`g`).attr(`transform`,`translate(0, ${v})`).attr(`class`,`treemapContainer`),A=E(g).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),j=H().size([b,x]).paddingTop(e=>e.children&&e.children.length>0?X+Y:0).paddingInner(m).paddingLeft(e=>e.children&&e.children.length>0?Y:0).paddingRight(e=>e.children&&e.children.length>0?Y:0).paddingBottom(e=>e.children&&e.children.length>0?Y:0).round(!0)(A),M=j.descendants().filter(e=>e.children&&e.children.length>0),N=k.selectAll(`.treemapSection`).data(M).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,X).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),N.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${c}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,X),N.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,(e,t)=>`treemapSection section${t}`).attr(`fill`,e=>T(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>D(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=s.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),N.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,X/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`clip-path`,(e,t)=>`url(#clip-section-${c}-${t})`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+s.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(t){if(t.depth===0)return;let n=e.p(this),r=t.data.name;n.text(r);let i=t.x1-t.x0,a;a=p.showValues!==!1&&t.value?i-10-30-10-6:i-6-6;let o=Math.max(15,a),s=n.node();if(s.getComputedTextLength()>o){let e=r;for(;e.length>0;){if(e=r.substring(0,e.length-1),e.length===0){n.text(`...`),s.getComputedTextLength()>o&&n.text(``);break}if(n.text(e+`...`),s.getComputedTextLength()<=o)break}}}),p.showValues!==!1&&N.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,X/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?w(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+O(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+s.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let P=j.leaves(),F=P.length>20,I=F?16:38,L=F?14:28,R=F?4:8,z=F?4:6,B=F?2:4,V=F?8:10,U=F?1:2,W=k.selectAll(`.treemapLeafGroup`).data(P).enter().append(`g`).attr(`class`,(e,t)=>`treemapNode treemapLeafGroup leaf${t}${e.data.classSelector?` ${e.data.classSelector}`:``}x`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);W.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`style`,e=>s.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?T(e.parent.data.name):T(e.data.name)).attr(`stroke-width`,3),W.append(`clipPath`).attr(`id`,(e,t)=>`clip-${c}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-4)).attr(`height`,e=>Math.max(0,e.y1-e.y0-4)),W.append(`text`).attr(`class`,`treemapLabel`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,e=>(e.y1-e.y0)/2).attr(`style`,e=>`text-anchor: middle; dominant-baseline: middle; font-size: ${I}px;fill:`+O(e.data.name)+`;`+s.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${c}-${t})`).text(e=>e.data.name).each(function(t){let n=e.p(this),r=t.x1-t.x0,i=t.y1-t.y0,a=n.node(),o=r-2*B,s=i-2*B;if(o<V||s<V){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>R;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(z,Math.min(L,Math.round(c*l))),d=c+U+u;for(;d>s&&c>R&&(c--,u=Math.max(z,Math.min(L,Math.round(c*l))),!(u<z&&c===R));)n.style(`font-size`,`${c}px`),d=c+U+u;n.style(`font-size`,`${c}px`),F?(c<R||s<R)&&n.style(`display`,`none`):(a.getComputedTextLength()>o||c<R||s<c)&&n.style(`display`,`none`)}),p.showValues!==!1&&W.append(`text`).attr(`class`,`treemapValue`).attr(`x`,e=>(e.x1-e.x0)/2).attr(`y`,function(e){return(e.y1-e.y0)/2}).attr(`style`,e=>`text-anchor: middle; dominant-baseline: hanging; font-size: ${L}px;fill:`+O(e.data.name)+`;`+s.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${c}-${t})`).text(e=>e.value?w(e.value):``).each(function(t){let n=e.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=e.p(r).select(`.treemapLabel`);if(i.empty()||i.style(`display`)===`none`){n.style(`display`,`none`);return}let a=parseFloat(i.style(`font-size`)),o=Math.max(z,Math.min(L,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(t.y1-t.y0)/2+a/2+U;n.attr(`y`,s);let c=t.x1-t.x0,l=t.y1-t.y0-4,u=c-2*B;n.node().getComputedTextLength()>u||s+o>l||o<z?n.style(`display`,`none`):n.style(`display`,null)});let G=p.diagramPadding??8;u.t(y,G,`flowchart`,p?.useMaxWidth||!1)},`draw`),getClasses:t.n(function(e,t){return t.db.getClasses()},`getClasses`)},Q={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},$={parser:q,get db(){return new U},renderer:Z,styles:t.n(({treemap:e}={})=>{let t=n.D(),r=n.b(),i=a.i(t,r.themeVariables),o=a.i(Q,e),s=o.titleColor??i.titleColor,c=o.labelColor??i.textColor,l=o.valueColor??i.textColor;return`
2
- .treemapNode.section {
3
- stroke: ${o.sectionStrokeColor};
4
- stroke-width: ${o.sectionStrokeWidth};
5
- fill: ${o.sectionFillColor};
6
- }
7
- .treemapNode.leaf {
8
- stroke: ${o.leafStrokeColor};
9
- stroke-width: ${o.leafStrokeWidth};
10
- fill: ${o.leafFillColor};
11
- }
12
- .treemapLabel {
13
- fill: ${c};
14
- font-size: ${o.labelFontSize};
15
- }
16
- .treemapValue {
17
- fill: ${l};
18
- font-size: ${o.valueFontSize};
19
- }
20
- .treemapTitle {
21
- fill: ${s};
22
- font-size: ${o.titleFontSize};
23
- }
24
- `},`getStyles`)};exports.diagram=$;
@@ -1,527 +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 { D as r, H as i, K as a, U as o, a as s, b as c, c as l, f as u, v as d, w as f, y as p } from "./chunk-DU6HZSFF-BEQZSmUu.mjs";
4
- import { t as m } from "./ordinal-B1BNQwUR.mjs";
5
- import { t as h } from "./defaultLocale-N-0uLSyg.mjs";
6
- import { i as g } from "./chunk-75Z2AOVW-Dz0Sko9Y.mjs";
7
- import { t as _ } from "./chunk-CLGD4ZFX-DBkwyMMv.mjs";
8
- import { i as v, n as y } from "./chunk-P2QGCYS3-6q3AXPt5.mjs";
9
- import { n as b } from "./mermaid-parser.core-BRHibdUE.mjs";
10
- import { t as x } from "./chunk-JWPE2WC7-DIKiF5cm.mjs";
11
- import { t as S } from "./chunk-POPQ4Y6H-Dd7J9tx3.mjs";
12
- //#region node_modules/d3-hierarchy/src/hierarchy/count.js
13
- function C(e) {
14
- var t = 0, n = e.children, r = n && n.length;
15
- if (!r) t = 1;
16
- else for (; --r >= 0;) t += n[r].value;
17
- e.value = t;
18
- }
19
- function w() {
20
- return this.eachAfter(C);
21
- }
22
- //#endregion
23
- //#region node_modules/d3-hierarchy/src/hierarchy/each.js
24
- function T(e, t) {
25
- let n = -1;
26
- for (let r of this) e.call(t, r, ++n, this);
27
- return this;
28
- }
29
- //#endregion
30
- //#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
31
- function E(e, t) {
32
- for (var n = this, r = [n], i, a, o = -1; n = r.pop();) if (e.call(t, n, ++o, this), i = n.children) for (a = i.length - 1; a >= 0; --a) r.push(i[a]);
33
- return this;
34
- }
35
- //#endregion
36
- //#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
37
- function D(e, t) {
38
- for (var n = this, r = [n], i = [], a, o, s, c = -1; n = r.pop();) if (i.push(n), a = n.children) for (o = 0, s = a.length; o < s; ++o) r.push(a[o]);
39
- for (; n = i.pop();) e.call(t, n, ++c, this);
40
- return this;
41
- }
42
- //#endregion
43
- //#region node_modules/d3-hierarchy/src/hierarchy/find.js
44
- function O(e, t) {
45
- let n = -1;
46
- for (let r of this) if (e.call(t, r, ++n, this)) return r;
47
- }
48
- //#endregion
49
- //#region node_modules/d3-hierarchy/src/hierarchy/sum.js
50
- function k(e) {
51
- return this.eachAfter(function(t) {
52
- for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
53
- t.value = n;
54
- });
55
- }
56
- //#endregion
57
- //#region node_modules/d3-hierarchy/src/hierarchy/sort.js
58
- function A(e) {
59
- return this.eachBefore(function(t) {
60
- t.children && t.children.sort(e);
61
- });
62
- }
63
- //#endregion
64
- //#region node_modules/d3-hierarchy/src/hierarchy/path.js
65
- function j(e) {
66
- for (var t = this, n = M(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
67
- for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
68
- return r;
69
- }
70
- function M(e, t) {
71
- if (e === t) return e;
72
- var n = e.ancestors(), r = t.ancestors(), i = null;
73
- for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
74
- return i;
75
- }
76
- //#endregion
77
- //#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
78
- function N() {
79
- for (var e = this, t = [e]; e = e.parent;) t.push(e);
80
- return t;
81
- }
82
- //#endregion
83
- //#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
84
- function P() {
85
- return Array.from(this);
86
- }
87
- //#endregion
88
- //#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
89
- function F() {
90
- var e = [];
91
- return this.eachBefore(function(t) {
92
- t.children || e.push(t);
93
- }), e;
94
- }
95
- //#endregion
96
- //#region node_modules/d3-hierarchy/src/hierarchy/links.js
97
- function I() {
98
- var e = this, t = [];
99
- return e.each(function(n) {
100
- n !== e && t.push({
101
- source: n.parent,
102
- target: n
103
- });
104
- }), t;
105
- }
106
- //#endregion
107
- //#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
108
- function* L() {
109
- var e = this, t, n = [e], r, i, a;
110
- do
111
- for (t = n.reverse(), n = []; e = t.pop();) if (yield e, r = e.children) for (i = 0, a = r.length; i < a; ++i) n.push(r[i]);
112
- while (n.length);
113
- }
114
- //#endregion
115
- //#region node_modules/d3-hierarchy/src/hierarchy/index.js
116
- function R(e, t) {
117
- e instanceof Map ? (e = [void 0, e], t === void 0 && (t = V)) : t === void 0 && (t = B);
118
- for (var n = new W(e), r, i = [n], a, o, s, c; r = i.pop();) if ((o = t(r.data)) && (c = (o = Array.from(o)).length)) for (r.children = o, s = c - 1; s >= 0; --s) i.push(a = o[s] = new W(o[s])), a.parent = r, a.depth = r.depth + 1;
119
- return n.eachBefore(U);
120
- }
121
- function z() {
122
- return R(this).eachBefore(H);
123
- }
124
- function B(e) {
125
- return e.children;
126
- }
127
- function V(e) {
128
- return Array.isArray(e) ? e[1] : null;
129
- }
130
- function H(e) {
131
- e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
132
- }
133
- function U(e) {
134
- var t = 0;
135
- do
136
- e.height = t;
137
- while ((e = e.parent) && e.height < ++t);
138
- }
139
- function W(e) {
140
- this.data = e, this.depth = this.height = 0, this.parent = null;
141
- }
142
- W.prototype = R.prototype = {
143
- constructor: W,
144
- count: w,
145
- each: T,
146
- eachAfter: D,
147
- eachBefore: E,
148
- find: O,
149
- sum: k,
150
- sort: A,
151
- path: j,
152
- ancestors: N,
153
- descendants: P,
154
- leaves: F,
155
- links: I,
156
- copy: z,
157
- [Symbol.iterator]: L
158
- };
159
- //#endregion
160
- //#region node_modules/d3-hierarchy/src/accessors.js
161
- function G(e) {
162
- if (typeof e != "function") throw Error();
163
- return e;
164
- }
165
- //#endregion
166
- //#region node_modules/d3-hierarchy/src/constant.js
167
- function K() {
168
- return 0;
169
- }
170
- function q(e) {
171
- return function() {
172
- return e;
173
- };
174
- }
175
- //#endregion
176
- //#region node_modules/d3-hierarchy/src/treemap/round.js
177
- function J(e) {
178
- e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
179
- }
180
- //#endregion
181
- //#region node_modules/d3-hierarchy/src/treemap/dice.js
182
- function ee(e, t, n, r, i) {
183
- for (var a = e.children, o, s = -1, c = a.length, l = e.value && (r - t) / e.value; ++s < c;) o = a[s], o.y0 = n, o.y1 = i, o.x0 = t, o.x1 = t += o.value * l;
184
- }
185
- //#endregion
186
- //#region node_modules/d3-hierarchy/src/treemap/slice.js
187
- function te(e, t, n, r, i) {
188
- for (var a = e.children, o, s = -1, c = a.length, l = e.value && (i - n) / e.value; ++s < c;) o = a[s], o.x0 = t, o.x1 = r, o.y0 = n, o.y1 = n += o.value * l;
189
- }
190
- //#endregion
191
- //#region node_modules/d3-hierarchy/src/treemap/squarify.js
192
- var ne = (1 + Math.sqrt(5)) / 2;
193
- function re(e, t, n, r, i, a) {
194
- for (var o = [], s = t.children, c, l, u = 0, d = 0, f = s.length, p, m, h = t.value, g, _, v, y, b, x, S; u < f;) {
195
- p = i - n, m = a - r;
196
- do
197
- g = s[d++].value;
198
- while (!g && d < f);
199
- for (_ = v = g, x = Math.max(m / p, p / m) / (h * e), S = g * g * x, b = Math.max(v / S, S / _); d < f; ++d) {
200
- if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
201
- g -= l;
202
- break;
203
- }
204
- b = y;
205
- }
206
- o.push(c = {
207
- value: g,
208
- dice: p < m,
209
- children: s.slice(u, d)
210
- }), c.dice ? ee(c, n, r, i, h ? r += m * g / h : a) : te(c, n, r, h ? n += p * g / h : i, a), h -= g, u = d;
211
- }
212
- return o;
213
- }
214
- var ie = (function e(t) {
215
- function n(e, n, r, i, a) {
216
- re(t, e, n, r, i, a);
217
- }
218
- return n.ratio = function(t) {
219
- return e((t = +t) > 1 ? t : 1);
220
- }, n;
221
- })(ne);
222
- //#endregion
223
- //#region node_modules/d3-hierarchy/src/treemap/index.js
224
- function ae() {
225
- var e = ie, t = !1, n = 1, r = 1, i = [0], a = K, o = K, s = K, c = K, l = K;
226
- function u(e) {
227
- return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(J), e;
228
- }
229
- function d(t) {
230
- var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
231
- d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), t.x0 = r, t.y0 = u, t.x1 = d, t.y1 = f, t.children && (n = i[t.depth + 1] = a(t) / 2, r += l(t) - n, u += o(t) - n, d -= s(t) - n, f -= c(t) - n, d < r && (r = d = (r + d) / 2), f < u && (u = f = (u + f) / 2), e(t, r, u, d, f));
232
- }
233
- return u.round = function(e) {
234
- return arguments.length ? (t = !!e, u) : t;
235
- }, u.size = function(e) {
236
- return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
237
- }, u.tile = function(t) {
238
- return arguments.length ? (e = G(t), u) : e;
239
- }, u.padding = function(e) {
240
- return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
241
- }, u.paddingInner = function(e) {
242
- return arguments.length ? (a = typeof e == "function" ? e : q(+e), u) : a;
243
- }, u.paddingOuter = function(e) {
244
- return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
245
- }, u.paddingTop = function(e) {
246
- return arguments.length ? (o = typeof e == "function" ? e : q(+e), u) : o;
247
- }, u.paddingRight = function(e) {
248
- return arguments.length ? (s = typeof e == "function" ? e : q(+e), u) : s;
249
- }, u.paddingBottom = function(e) {
250
- return arguments.length ? (c = typeof e == "function" ? e : q(+e), u) : c;
251
- }, u.paddingLeft = function(e) {
252
- return arguments.length ? (l = typeof e == "function" ? e : q(+e), u) : l;
253
- }, u;
254
- }
255
- //#endregion
256
- //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-VX7I27RA.mjs
257
- var Y = class {
258
- constructor() {
259
- this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = o, this.getAccTitle = p, this.setDiagramTitle = a, this.getDiagramTitle = f, this.getAccDescription = d, this.setAccDescription = i;
260
- }
261
- static {
262
- n(this, "TreeMapDB");
263
- }
264
- getNodes() {
265
- return this.nodes;
266
- }
267
- getConfig() {
268
- let e = u, t = c();
269
- return g({
270
- ...e.treemap,
271
- ...t.treemap ?? {}
272
- });
273
- }
274
- addNode(e, t) {
275
- this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
276
- }
277
- getRoot() {
278
- return {
279
- name: "",
280
- children: this.outerNodes
281
- };
282
- }
283
- addClass(e, t) {
284
- let n = this.classes.get(e) ?? {
285
- id: e,
286
- styles: [],
287
- textStyles: []
288
- }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
289
- r && r.forEach((e) => {
290
- y(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
291
- }), this.classes.set(e, n);
292
- }
293
- getClasses() {
294
- return this.classes;
295
- }
296
- getStylesForClass(e) {
297
- return this.classes.get(e)?.styles ?? [];
298
- }
299
- clear() {
300
- s(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
301
- }
302
- };
303
- function X(e) {
304
- if (!e.length) return [];
305
- let t = [], n = [];
306
- return e.forEach((e) => {
307
- let r = {
308
- name: e.name,
309
- children: e.type === "Leaf" ? void 0 : []
310
- };
311
- for (r.classSelector = e?.classSelector, e?.cssCompiledStyles && (r.cssCompiledStyles = e.cssCompiledStyles), e.type === "Leaf" && e.value !== void 0 && (r.value = e.value); n.length > 0 && n[n.length - 1].level >= e.level;) n.pop();
312
- if (n.length === 0) t.push(r);
313
- else {
314
- let e = n[n.length - 1].node;
315
- e.children ? e.children.push(r) : e.children = [r];
316
- }
317
- e.type !== "Leaf" && n.push({
318
- node: r,
319
- level: e.level
320
- });
321
- }), t;
322
- }
323
- n(X, "buildHierarchy");
324
- var oe = /* @__PURE__ */ n((e, t) => {
325
- x(e, t);
326
- let r = [];
327
- for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
328
- for (let n of e.TreemapRows ?? []) {
329
- let e = n.item;
330
- if (!e) continue;
331
- let i = n.indent ? parseInt(n.indent) : 0, a = se(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
332
- level: i,
333
- name: a,
334
- type: e.$type,
335
- value: e.value,
336
- classSelector: e.classSelector,
337
- cssCompiledStyles: s
338
- };
339
- r.push(c);
340
- }
341
- let i = X(r), a = /* @__PURE__ */ n((e, n) => {
342
- for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && a(r.children, n + 1);
343
- }, "addNodesRecursively");
344
- a(i, 0);
345
- }, "populate"), se = /* @__PURE__ */ n((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
346
- parser: { yy: void 0 },
347
- parse: /* @__PURE__ */ n(async (t) => {
348
- try {
349
- let n = await b("treemap", t);
350
- e.debug("Treemap AST:", n);
351
- let r = Z.parser?.yy;
352
- if (!(r instanceof Y)) throw Error("parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");
353
- oe(n, r);
354
- } catch (t) {
355
- throw e.error("Error parsing treemap:", t), t;
356
- }
357
- }, "parse")
358
- }, ce = 10, Q = 10, $ = 25, le = {
359
- draw: /* @__PURE__ */ n((r, i, a, o) => {
360
- let s = o.db, u = s.getConfig(), d = u.padding ?? ce, f = s.getDiagramTitle(), p = s.getRoot(), { themeVariables: g } = c();
361
- if (!p) return;
362
- let y = f ? 30 : 0, b = _(i), x = u.nodeWidth ? u.nodeWidth * Q : 960, C = u.nodeHeight ? u.nodeHeight * Q : 500, w = x, T = C + y;
363
- b.attr("viewBox", `0 0 ${w} ${T}`), l(b, T, w, u.useMaxWidth);
364
- let E;
365
- try {
366
- let e = u.valueFormat || ",";
367
- if (e === "$0,0") E = /* @__PURE__ */ n((e) => "$" + h(",")(e), "valueFormat");
368
- else if (e.startsWith("$") && e.includes(",")) {
369
- let t = /\.\d+/.exec(e), r = t ? t[0] : "";
370
- E = /* @__PURE__ */ n((e) => "$" + h("," + r)(e), "valueFormat");
371
- } else if (e.startsWith("$")) {
372
- let t = e.substring(1);
373
- E = /* @__PURE__ */ n((e) => "$" + h(t || "")(e), "valueFormat");
374
- } else E = h(e);
375
- } catch (t) {
376
- e.error("Error creating format function:", t), E = h(",");
377
- }
378
- let D = m().range([
379
- "transparent",
380
- g.cScale0,
381
- g.cScale1,
382
- g.cScale2,
383
- g.cScale3,
384
- g.cScale4,
385
- g.cScale5,
386
- g.cScale6,
387
- g.cScale7,
388
- g.cScale8,
389
- g.cScale9,
390
- g.cScale10,
391
- g.cScale11
392
- ]), O = m().range([
393
- "transparent",
394
- g.cScalePeer0,
395
- g.cScalePeer1,
396
- g.cScalePeer2,
397
- g.cScalePeer3,
398
- g.cScalePeer4,
399
- g.cScalePeer5,
400
- g.cScalePeer6,
401
- g.cScalePeer7,
402
- g.cScalePeer8,
403
- g.cScalePeer9,
404
- g.cScalePeer10,
405
- g.cScalePeer11
406
- ]), k = m().range([
407
- g.cScaleLabel0,
408
- g.cScaleLabel1,
409
- g.cScaleLabel2,
410
- g.cScaleLabel3,
411
- g.cScaleLabel4,
412
- g.cScaleLabel5,
413
- g.cScaleLabel6,
414
- g.cScaleLabel7,
415
- g.cScaleLabel8,
416
- g.cScaleLabel9,
417
- g.cScaleLabel10,
418
- g.cScaleLabel11
419
- ]);
420
- f && b.append("text").attr("x", w / 2).attr("y", y / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(f);
421
- let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(p).sum((e) => e.value ?? 0).sort((e, t) => (t.value ?? 0) - (e.value ?? 0)), M = ae().size([x, C]).paddingTop((e) => e.children && e.children.length > 0 ? $ + Q : 0).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? Q : 0).paddingRight((e) => e.children && e.children.length > 0 ? Q : 0).paddingBottom((e) => e.children && e.children.length > 0 ? Q : 0).round(!0)(j), N = M.descendants().filter((e) => e.children && e.children.length > 0), P = A.selectAll(".treemapSection").data(N).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
422
- P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", $).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", .6).attr("stroke-width", .6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), P.append("clipPath").attr("id", (e, t) => `clip-section-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", $), P.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, t) => `treemapSection section${t}`).attr("fill", (e) => D(e.data.name)).attr("fill-opacity", .6).attr("stroke", (e) => O(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", .4).attr("style", (e) => {
423
- if (e.depth === 0) return "display: none;";
424
- let t = v({ cssCompiledStyles: e.data.cssCompiledStyles });
425
- return t.nodeStyles + ";" + t.borderStyles.join(";");
426
- }), P.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", $ / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("clip-path", (e, t) => `url(#clip-section-${i}-${t})`).attr("style", (e) => e.depth === 0 ? "display: none;" : "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).each(function(e) {
427
- if (e.depth === 0) return;
428
- let n = t(this), r = e.data.name;
429
- n.text(r);
430
- let i = e.x1 - e.x0, a;
431
- a = u.showValues !== !1 && e.value ? i - 10 - 30 - 10 - 6 : i - 6 - 6;
432
- let o = Math.max(15, a), s = n.node();
433
- if (s.getComputedTextLength() > o) {
434
- let e = r;
435
- for (; e.length > 0;) {
436
- if (e = r.substring(0, e.length - 1), e.length === 0) {
437
- n.text("..."), s.getComputedTextLength() > o && n.text("");
438
- break;
439
- }
440
- if (n.text(e + "..."), s.getComputedTextLength() <= o) break;
441
- }
442
- }
443
- }), u.showValues !== !1 && P.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", $ / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? E(e.value) : "").attr("font-style", "italic").attr("style", (e) => e.depth === 0 ? "display: none;" : "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:"));
444
- let F = M.leaves(), I = F.length > 20, L = I ? 16 : 38, z = I ? 14 : 28, B = I ? 4 : 8, V = I ? 4 : 6, H = I ? 2 : 4, U = I ? 8 : 10, W = I ? 1 : 2, G = A.selectAll(".treemapLeafGroup").data(F).enter().append("g").attr("class", (e, t) => `treemapNode treemapLeafGroup leaf${t}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
445
- G.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("style", (e) => v({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", .3).attr("stroke", (e) => e.parent ? D(e.parent.data.name) : D(e.data.name)).attr("stroke-width", 3), G.append("clipPath").attr("id", (e, t) => `clip-${i}-${t}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), G.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => `text-anchor: middle; dominant-baseline: middle; font-size: ${L}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.data.name).each(function(e) {
446
- let n = t(this), r = e.x1 - e.x0, i = e.y1 - e.y0, a = n.node(), o = r - 2 * H, s = i - 2 * H;
447
- if (o < U || s < U) {
448
- n.style("display", "none");
449
- return;
450
- }
451
- let c = parseInt(n.style("font-size"), 10), l = .6;
452
- for (; a.getComputedTextLength() > o && c > B;) c--, n.style("font-size", `${c}px`);
453
- let u = Math.max(V, Math.min(z, Math.round(c * l))), d = c + W + u;
454
- for (; d > s && c > B && (c--, u = Math.max(V, Math.min(z, Math.round(c * l))), !(u < V && c === B));) n.style("font-size", `${c}px`), d = c + W + u;
455
- n.style("font-size", `${c}px`), I ? (c < B || s < B) && n.style("display", "none") : (a.getComputedTextLength() > o || c < B || s < c) && n.style("display", "none");
456
- }), u.showValues !== !1 && G.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
457
- return (e.y1 - e.y0) / 2;
458
- }).attr("style", (e) => `text-anchor: middle; dominant-baseline: hanging; font-size: ${z}px;fill:` + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, t) => `url(#clip-${i}-${t})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
459
- let n = t(this), r = this.parentNode;
460
- if (!r) {
461
- n.style("display", "none");
462
- return;
463
- }
464
- let i = t(r).select(".treemapLabel");
465
- if (i.empty() || i.style("display") === "none") {
466
- n.style("display", "none");
467
- return;
468
- }
469
- let a = parseFloat(i.style("font-size")), o = Math.max(V, Math.min(z, Math.round(a * .6)));
470
- n.style("font-size", `${o}px`);
471
- let s = (e.y1 - e.y0) / 2 + a / 2 + W;
472
- n.attr("y", s);
473
- let c = e.x1 - e.x0, l = e.y1 - e.y0 - 4, u = c - 2 * H;
474
- n.node().getComputedTextLength() > u || s + o > l || o < V ? n.style("display", "none") : n.style("display", null);
475
- });
476
- let K = u.diagramPadding ?? 8;
477
- S(b, K, "flowchart", u?.useMaxWidth || !1);
478
- }, "draw"),
479
- getClasses: /* @__PURE__ */ n(function(e, t) {
480
- return t.db.getClasses();
481
- }, "getClasses")
482
- }, ue = {
483
- sectionStrokeColor: "black",
484
- sectionStrokeWidth: "1",
485
- sectionFillColor: "#efefef",
486
- leafStrokeColor: "black",
487
- leafStrokeWidth: "1",
488
- leafFillColor: "#efefef",
489
- labelFontSize: "12px",
490
- valueFontSize: "10px",
491
- titleFontSize: "14px"
492
- }, de = {
493
- parser: Z,
494
- get db() {
495
- return new Y();
496
- },
497
- renderer: le,
498
- styles: /* @__PURE__ */ n(({ treemap: e } = {}) => {
499
- let t = r(), n = c(), i = g(t, n.themeVariables), a = g(ue, e), o = a.titleColor ?? i.titleColor, s = a.labelColor ?? i.textColor, l = a.valueColor ?? i.textColor;
500
- return `
501
- .treemapNode.section {
502
- stroke: ${a.sectionStrokeColor};
503
- stroke-width: ${a.sectionStrokeWidth};
504
- fill: ${a.sectionFillColor};
505
- }
506
- .treemapNode.leaf {
507
- stroke: ${a.leafStrokeColor};
508
- stroke-width: ${a.leafStrokeWidth};
509
- fill: ${a.leafFillColor};
510
- }
511
- .treemapLabel {
512
- fill: ${s};
513
- font-size: ${a.labelFontSize};
514
- }
515
- .treemapValue {
516
- fill: ${l};
517
- font-size: ${a.valueFontSize};
518
- }
519
- .treemapTitle {
520
- fill: ${o};
521
- font-size: ${a.titleFontSize};
522
- }
523
- `;
524
- }, "getStyles")
525
- };
526
- //#endregion
527
- export { de as diagram };