@sme.up/ketchup2 2.0.0 → 2.2.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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,24 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./ordinal-Civr0hZL.cjs`),r=require(`./defaultLocale-DtzyZW63.cjs`),i=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),a=require(`./chunk-426QAEUC-CqN26l3E.cjs`),o=require(`./chunk-X2U36JSP-CtXjVqek.cjs`),s=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),c=require(`./mermaid-parser.core-DHpvGOZR.cjs`),l=require(`./chunk-EDXVE4YY-1dwNWzc7.cjs`);function u(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 d(){return this.eachAfter(u)}function f(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function p(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 m(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 h(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function g(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 _(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function v(e){for(var t=this,n=y(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 y(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 b(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function x(){return Array.from(this)}function S(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function C(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*w(){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 T(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=O)):t===void 0&&(t=D);for(var n=new j(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 j(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(A)}function E(){return T(this).eachBefore(k)}function D(e){return e.children}function O(e){return Array.isArray(e)?e[1]:null}function k(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function A(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function j(e){this.data=e,this.depth=this.height=0,this.parent=null}j.prototype=T.prototype={constructor:j,count:d,each:f,eachAfter:m,eachBefore:p,find:h,sum:g,sort:_,path:v,ancestors:b,descendants:x,leaves:S,links:C,copy:E,[Symbol.iterator]:w};function M(e){if(typeof e!=`function`)throw Error();return e}function N(){return 0}function P(e){return function(){return e}}function F(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 I(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 L(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 R=(1+Math.sqrt(5))/2;function z(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?I(c,n,r,i,h?r+=m*g/h:a):L(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var B=(function e(t){function n(e,n,r,i,a){z(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(R);function V(){var e=B,t=!1,n=1,r=1,i=[0],a=N,o=N,s=N,c=N,l=N;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(F),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=M(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:P(+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:P(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:P(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:P(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:P(+e),u):l},u}var H=class{constructor(){this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.setAccTitle=e.V,this.getAccTitle=e.v,this.setDiagramTitle=e.W,this.getDiagramTitle=e.C,this.getAccDescription=e._,this.setAccDescription=e.B}static{t.h(this,`TreeMapDB`)}getNodes(){return this.nodes}getConfig(){let t=e.d,n=e.y();return i.r({...t.treemap,...n.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=>{o.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(){e.a(),this.nodes=[],this.levels=new Map,this.outerNodes=[],this.classes=new Map,this.root=void 0}};function U(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.h(U,`buildHierarchy`);var W=t.h((e,n)=>{s.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=G(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=U(r),a=t.h((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`),G=t.h(e=>e.name?String(e.name):``,`getItemName`),K={parser:{yy:void 0},parse:t.h(async e=>{try{let n=await c.t(`treemap`,e);t.g.debug(`Treemap AST:`,n);let r=K.parser?.yy;if(!(r instanceof H))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.`);W(n,r)}catch(e){throw t.g.error(`Error parsing treemap:`,e),e}},`parse`)},q=10,J=10,Y=25,X={draw:t.h((i,s,c,u)=>{let d=u.db,f=d.getConfig(),p=f.padding??q,m=d.getDiagramTitle(),h=d.getRoot(),{themeVariables:g}=e.y();if(!h)return;let _=m?30:0,v=a.t(s),y=f.nodeWidth?f.nodeWidth*J:960,b=f.nodeHeight?f.nodeHeight*J:500,x=y,S=b+_;v.attr(`viewBox`,`0 0 ${x} ${S}`),e.c(v,S,x,f.useMaxWidth);let C;try{let e=f.valueFormat||`,`;if(e===`$0,0`)C=t.h(e=>`$`+r.t(`,`)(e),`valueFormat`);else if(e.startsWith(`$`)&&e.includes(`,`)){let n=/\.\d+/.exec(e),i=n?n[0]:``;C=t.h(e=>`$`+r.t(`,`+i)(e),`valueFormat`)}else if(e.startsWith(`$`)){let n=e.substring(1);C=t.h(e=>`$`+r.t(n||``)(e),`valueFormat`)}else C=r.t(e)}catch(e){t.g.error(`Error creating format function:`,e),C=r.t(`,`)}let w=n.t().range([`transparent`,g.cScale0,g.cScale1,g.cScale2,g.cScale3,g.cScale4,g.cScale5,g.cScale6,g.cScale7,g.cScale8,g.cScale9,g.cScale10,g.cScale11]),E=n.t().range([`transparent`,g.cScalePeer0,g.cScalePeer1,g.cScalePeer2,g.cScalePeer3,g.cScalePeer4,g.cScalePeer5,g.cScalePeer6,g.cScalePeer7,g.cScalePeer8,g.cScalePeer9,g.cScalePeer10,g.cScalePeer11]),D=n.t().range([g.cScaleLabel0,g.cScaleLabel1,g.cScaleLabel2,g.cScaleLabel3,g.cScaleLabel4,g.cScaleLabel5,g.cScaleLabel6,g.cScaleLabel7,g.cScaleLabel8,g.cScaleLabel9,g.cScaleLabel10,g.cScaleLabel11]);m&&v.append(`text`).attr(`x`,x/2).attr(`y`,_/2).attr(`class`,`treemapTitle`).attr(`text-anchor`,`middle`).attr(`dominant-baseline`,`middle`).text(m);let O=v.append(`g`).attr(`transform`,`translate(0, ${_})`).attr(`class`,`treemapContainer`),k=T(h).sum(e=>e.value??0).sort((e,t)=>(t.value??0)-(e.value??0)),A=V().size([y,b]).paddingTop(e=>e.children&&e.children.length>0?Y+J:0).paddingInner(p).paddingLeft(e=>e.children&&e.children.length>0?J:0).paddingRight(e=>e.children&&e.children.length>0?J:0).paddingBottom(e=>e.children&&e.children.length>0?J:0).round(!0)(k),j=A.descendants().filter(e=>e.children&&e.children.length>0),M=O.selectAll(`.treemapSection`).data(j).enter().append(`g`).attr(`class`,`treemapSection`).attr(`transform`,e=>`translate(${e.x0},${e.y0})`);M.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,Y).attr(`class`,`treemapSectionHeader`).attr(`fill`,`none`).attr(`fill-opacity`,.6).attr(`stroke-width`,.6).attr(`style`,e=>e.depth===0?`display: none;`:``),M.append(`clipPath`).attr(`id`,(e,t)=>`clip-section-${s}-${t}`).append(`rect`).attr(`width`,e=>Math.max(0,e.x1-e.x0-12)).attr(`height`,Y),M.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=>w(e.data.name)).attr(`fill-opacity`,.6).attr(`stroke`,e=>E(e.data.name)).attr(`stroke-width`,2).attr(`stroke-opacity`,.4).attr(`style`,e=>{if(e.depth===0)return`display: none;`;let t=o.i({cssCompiledStyles:e.data.cssCompiledStyles});return t.nodeStyles+`;`+t.borderStyles.join(`;`)}),M.append(`text`).attr(`class`,`treemapSectionLabel`).attr(`x`,6).attr(`y`,Y/2).attr(`dominant-baseline`,`middle`).text(e=>e.depth===0?``:e.data.name).attr(`font-weight`,`bold`).attr(`style`,e=>e.depth===0?`display: none;`:`dominant-baseline: middle; font-size: 12px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).each(function(e){if(e.depth===0)return;let n=t.p(this),r=e.data.name;n.text(r);let i=e.x1-e.x0,a;a=f.showValues!==!1&&e.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}}}),f.showValues!==!1&&M.append(`text`).attr(`class`,`treemapSectionValue`).attr(`x`,e=>e.x1-e.x0-10).attr(`y`,Y/2).attr(`text-anchor`,`end`).attr(`dominant-baseline`,`middle`).text(e=>e.value?C(e.value):``).attr(`font-style`,`italic`).attr(`style`,e=>e.depth===0?`display: none;`:`text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:`+D(e.data.name)+`; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`));let N=A.leaves(),P=O.selectAll(`.treemapLeafGroup`).data(N).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})`);P.append(`rect`).attr(`width`,e=>e.x1-e.x0).attr(`height`,e=>e.y1-e.y0).attr(`class`,`treemapLeaf`).attr(`fill`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`style`,e=>o.i({cssCompiledStyles:e.data.cssCompiledStyles}).nodeStyles).attr(`fill-opacity`,.3).attr(`stroke`,e=>e.parent?w(e.parent.data.name):w(e.data.name)).attr(`stroke-width`,3),P.append(`clipPath`).attr(`id`,(e,t)=>`clip-${s}-${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)),P.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: 38px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.data.name).each(function(e){let n=t.p(this),r=e.x1-e.x0,i=e.y1-e.y0,a=n.node(),o=r-8,s=i-8;if(o<10||s<10){n.style(`display`,`none`);return}let c=parseInt(n.style(`font-size`),10),l=.6;for(;a.getComputedTextLength()>o&&c>8;)c--,n.style(`font-size`,`${c}px`);let u=Math.max(6,Math.min(28,Math.round(c*l))),d=c+2+u;for(;d>s&&c>8&&(c--,u=Math.max(6,Math.min(28,Math.round(c*l))),!(u<6&&c===8));)n.style(`font-size`,`${c}px`),d=c+2+u;n.style(`font-size`,`${c}px`),(a.getComputedTextLength()>o||c<8||s<c)&&n.style(`display`,`none`)}),f.showValues!==!1&&P.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: 28px;fill:`+D(e.data.name)+`;`+o.i({cssCompiledStyles:e.data.cssCompiledStyles}).labelStyles.replace(`color:`,`fill:`)).attr(`clip-path`,(e,t)=>`url(#clip-${s}-${t})`).text(e=>e.value?C(e.value):``).each(function(e){let n=t.p(this),r=this.parentNode;if(!r){n.style(`display`,`none`);return}let i=t.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(6,Math.min(28,Math.round(a*.6)));n.style(`font-size`,`${o}px`);let s=(e.y1-e.y0)/2+a/2+2;n.attr(`y`,s);let c=e.x1-e.x0,l=e.y1-e.y0-4,u=c-8;n.node().getComputedTextLength()>u||s+o>l||o<6?n.style(`display`,`none`):n.style(`display`,null)}),l.t(v,f.diagramPadding??8,`flowchart`,f?.useMaxWidth||!1)},`draw`),getClasses:t.h(function(e,t){return t.db.getClasses()},`getClasses`)},Z={sectionStrokeColor:`black`,sectionStrokeWidth:`1`,sectionFillColor:`#efefef`,leafStrokeColor:`black`,leafStrokeWidth:`1`,leafFillColor:`#efefef`,labelFontSize:`12px`,valueFontSize:`10px`,titleFontSize:`14px`},Q={parser:K,get db(){return new H},renderer:X,styles:t.h(({treemap:t}={})=>{let n=i.r(e.E(),e.y().themeVariables),r=i.r(Z,t),a=r.titleColor??n.titleColor,o=r.labelColor??n.textColor,s=r.valueColor??n.textColor;return`
2
+ .treemapNode.section {
3
+ stroke: ${r.sectionStrokeColor};
4
+ stroke-width: ${r.sectionStrokeWidth};
5
+ fill: ${r.sectionFillColor};
6
+ }
7
+ .treemapNode.leaf {
8
+ stroke: ${r.leafStrokeColor};
9
+ stroke-width: ${r.leafStrokeWidth};
10
+ fill: ${r.leafFillColor};
11
+ }
12
+ .treemapLabel {
13
+ fill: ${o};
14
+ font-size: ${r.labelFontSize};
15
+ }
16
+ .treemapValue {
17
+ fill: ${s};
18
+ font-size: ${r.valueFontSize};
19
+ }
20
+ .treemapTitle {
21
+ fill: ${a};
22
+ font-size: ${r.titleFontSize};
23
+ }
24
+ `},`getStyles`)};exports.diagram=Q;
@@ -0,0 +1,524 @@
1
+ import { B as e, C as t, E as n, V as r, W as i, _ as a, a as o, c as s, d as c, v as l, y as u } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
+ import { g as d, h as f, p } from "./src-BQiFKP24.js";
3
+ import { t as m } from "./ordinal-C-VoL0XF.js";
4
+ import { t as h } from "./defaultLocale-Dcyuaxxg.js";
5
+ import { r as g } from "./chunk-5PVQY5BW-Dn8n6moB.js";
6
+ import { t as _ } from "./chunk-426QAEUC-CDXJVpQr.js";
7
+ import { i as v, n as y } from "./chunk-X2U36JSP-VxRY65ea.js";
8
+ import { t as b } from "./chunk-4BX2VUAB-BW54-JWg.js";
9
+ import { t as x } from "./mermaid-parser.core-CERDf-UG.js";
10
+ import { t as S } from "./chunk-EDXVE4YY-CGNVB686.js";
11
+ //#region node_modules/d3-hierarchy/src/hierarchy/count.js
12
+ function C(e) {
13
+ var t = 0, n = e.children, r = n && n.length;
14
+ if (!r) t = 1;
15
+ else for (; --r >= 0;) t += n[r].value;
16
+ e.value = t;
17
+ }
18
+ function w() {
19
+ return this.eachAfter(C);
20
+ }
21
+ //#endregion
22
+ //#region node_modules/d3-hierarchy/src/hierarchy/each.js
23
+ function T(e, t) {
24
+ let n = -1;
25
+ for (let r of this) e.call(t, r, ++n, this);
26
+ return this;
27
+ }
28
+ //#endregion
29
+ //#region node_modules/d3-hierarchy/src/hierarchy/eachBefore.js
30
+ function E(e, t) {
31
+ 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]);
32
+ return this;
33
+ }
34
+ //#endregion
35
+ //#region node_modules/d3-hierarchy/src/hierarchy/eachAfter.js
36
+ function D(e, t) {
37
+ 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]);
38
+ for (; n = i.pop();) e.call(t, n, ++c, this);
39
+ return this;
40
+ }
41
+ //#endregion
42
+ //#region node_modules/d3-hierarchy/src/hierarchy/find.js
43
+ function O(e, t) {
44
+ let n = -1;
45
+ for (let r of this) if (e.call(t, r, ++n, this)) return r;
46
+ }
47
+ //#endregion
48
+ //#region node_modules/d3-hierarchy/src/hierarchy/sum.js
49
+ function k(e) {
50
+ return this.eachAfter(function(t) {
51
+ for (var n = +e(t.data) || 0, r = t.children, i = r && r.length; --i >= 0;) n += r[i].value;
52
+ t.value = n;
53
+ });
54
+ }
55
+ //#endregion
56
+ //#region node_modules/d3-hierarchy/src/hierarchy/sort.js
57
+ function A(e) {
58
+ return this.eachBefore(function(t) {
59
+ t.children && t.children.sort(e);
60
+ });
61
+ }
62
+ //#endregion
63
+ //#region node_modules/d3-hierarchy/src/hierarchy/path.js
64
+ function j(e) {
65
+ for (var t = this, n = M(t, e), r = [t]; t !== n;) t = t.parent, r.push(t);
66
+ for (var i = r.length; e !== n;) r.splice(i, 0, e), e = e.parent;
67
+ return r;
68
+ }
69
+ function M(e, t) {
70
+ if (e === t) return e;
71
+ var n = e.ancestors(), r = t.ancestors(), i = null;
72
+ for (e = n.pop(), t = r.pop(); e === t;) i = e, e = n.pop(), t = r.pop();
73
+ return i;
74
+ }
75
+ //#endregion
76
+ //#region node_modules/d3-hierarchy/src/hierarchy/ancestors.js
77
+ function N() {
78
+ for (var e = this, t = [e]; e = e.parent;) t.push(e);
79
+ return t;
80
+ }
81
+ //#endregion
82
+ //#region node_modules/d3-hierarchy/src/hierarchy/descendants.js
83
+ function P() {
84
+ return Array.from(this);
85
+ }
86
+ //#endregion
87
+ //#region node_modules/d3-hierarchy/src/hierarchy/leaves.js
88
+ function F() {
89
+ var e = [];
90
+ return this.eachBefore(function(t) {
91
+ t.children || e.push(t);
92
+ }), e;
93
+ }
94
+ //#endregion
95
+ //#region node_modules/d3-hierarchy/src/hierarchy/links.js
96
+ function I() {
97
+ var e = this, t = [];
98
+ return e.each(function(n) {
99
+ n !== e && t.push({
100
+ source: n.parent,
101
+ target: n
102
+ });
103
+ }), t;
104
+ }
105
+ //#endregion
106
+ //#region node_modules/d3-hierarchy/src/hierarchy/iterator.js
107
+ function* L() {
108
+ var e = this, t, n = [e], r, i, a;
109
+ do
110
+ 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]);
111
+ while (n.length);
112
+ }
113
+ //#endregion
114
+ //#region node_modules/d3-hierarchy/src/hierarchy/index.js
115
+ function R(e, t) {
116
+ e instanceof Map ? (e = [void 0, e], t === void 0 && (t = V)) : t === void 0 && (t = B);
117
+ 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;
118
+ return n.eachBefore(U);
119
+ }
120
+ function z() {
121
+ return R(this).eachBefore(H);
122
+ }
123
+ function B(e) {
124
+ return e.children;
125
+ }
126
+ function V(e) {
127
+ return Array.isArray(e) ? e[1] : null;
128
+ }
129
+ function H(e) {
130
+ e.data.value !== void 0 && (e.value = e.data.value), e.data = e.data.data;
131
+ }
132
+ function U(e) {
133
+ var t = 0;
134
+ do
135
+ e.height = t;
136
+ while ((e = e.parent) && e.height < ++t);
137
+ }
138
+ function W(e) {
139
+ this.data = e, this.depth = this.height = 0, this.parent = null;
140
+ }
141
+ W.prototype = R.prototype = {
142
+ constructor: W,
143
+ count: w,
144
+ each: T,
145
+ eachAfter: D,
146
+ eachBefore: E,
147
+ find: O,
148
+ sum: k,
149
+ sort: A,
150
+ path: j,
151
+ ancestors: N,
152
+ descendants: P,
153
+ leaves: F,
154
+ links: I,
155
+ copy: z,
156
+ [Symbol.iterator]: L
157
+ };
158
+ //#endregion
159
+ //#region node_modules/d3-hierarchy/src/accessors.js
160
+ function G(e) {
161
+ if (typeof e != "function") throw Error();
162
+ return e;
163
+ }
164
+ //#endregion
165
+ //#region node_modules/d3-hierarchy/src/constant.js
166
+ function K() {
167
+ return 0;
168
+ }
169
+ function q(e) {
170
+ return function() {
171
+ return e;
172
+ };
173
+ }
174
+ //#endregion
175
+ //#region node_modules/d3-hierarchy/src/treemap/round.js
176
+ function J(e) {
177
+ e.x0 = Math.round(e.x0), e.y0 = Math.round(e.y0), e.x1 = Math.round(e.x1), e.y1 = Math.round(e.y1);
178
+ }
179
+ //#endregion
180
+ //#region node_modules/d3-hierarchy/src/treemap/dice.js
181
+ function ee(e, t, n, r, i) {
182
+ 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;
183
+ }
184
+ //#endregion
185
+ //#region node_modules/d3-hierarchy/src/treemap/slice.js
186
+ function te(e, t, n, r, i) {
187
+ 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;
188
+ }
189
+ //#endregion
190
+ //#region node_modules/d3-hierarchy/src/treemap/squarify.js
191
+ var ne = (1 + Math.sqrt(5)) / 2;
192
+ function re(e, t, n, r, i, a) {
193
+ 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;) {
194
+ p = i - n, m = a - r;
195
+ do
196
+ g = s[d++].value;
197
+ while (!g && d < f);
198
+ 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) {
199
+ if (g += l = s[d].value, l < _ && (_ = l), l > v && (v = l), S = g * g * x, y = Math.max(v / S, S / _), y > b) {
200
+ g -= l;
201
+ break;
202
+ }
203
+ b = y;
204
+ }
205
+ o.push(c = {
206
+ value: g,
207
+ dice: p < m,
208
+ children: s.slice(u, d)
209
+ }), 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;
210
+ }
211
+ return o;
212
+ }
213
+ var ie = (function e(t) {
214
+ function n(e, n, r, i, a) {
215
+ re(t, e, n, r, i, a);
216
+ }
217
+ return n.ratio = function(t) {
218
+ return e((t = +t) > 1 ? t : 1);
219
+ }, n;
220
+ })(ne);
221
+ //#endregion
222
+ //#region node_modules/d3-hierarchy/src/treemap/index.js
223
+ function ae() {
224
+ var e = ie, t = !1, n = 1, r = 1, i = [0], a = K, o = K, s = K, c = K, l = K;
225
+ function u(e) {
226
+ return e.x0 = e.y0 = 0, e.x1 = n, e.y1 = r, e.eachBefore(d), i = [0], t && e.eachBefore(J), e;
227
+ }
228
+ function d(t) {
229
+ var n = i[t.depth], r = t.x0 + n, u = t.y0 + n, d = t.x1 - n, f = t.y1 - n;
230
+ 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));
231
+ }
232
+ return u.round = function(e) {
233
+ return arguments.length ? (t = !!e, u) : t;
234
+ }, u.size = function(e) {
235
+ return arguments.length ? (n = +e[0], r = +e[1], u) : [n, r];
236
+ }, u.tile = function(t) {
237
+ return arguments.length ? (e = G(t), u) : e;
238
+ }, u.padding = function(e) {
239
+ return arguments.length ? u.paddingInner(e).paddingOuter(e) : u.paddingInner();
240
+ }, u.paddingInner = function(e) {
241
+ return arguments.length ? (a = typeof e == "function" ? e : q(+e), u) : a;
242
+ }, u.paddingOuter = function(e) {
243
+ return arguments.length ? u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e) : u.paddingTop();
244
+ }, u.paddingTop = function(e) {
245
+ return arguments.length ? (o = typeof e == "function" ? e : q(+e), u) : o;
246
+ }, u.paddingRight = function(e) {
247
+ return arguments.length ? (s = typeof e == "function" ? e : q(+e), u) : s;
248
+ }, u.paddingBottom = function(e) {
249
+ return arguments.length ? (c = typeof e == "function" ? e : q(+e), u) : c;
250
+ }, u.paddingLeft = function(e) {
251
+ return arguments.length ? (l = typeof e == "function" ? e : q(+e), u) : l;
252
+ }, u;
253
+ }
254
+ //#endregion
255
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/diagram-G4DWMVQ6.mjs
256
+ var Y = class {
257
+ constructor() {
258
+ this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.setAccTitle = r, this.getAccTitle = l, this.setDiagramTitle = i, this.getDiagramTitle = t, this.getAccDescription = a, this.setAccDescription = e;
259
+ }
260
+ static {
261
+ f(this, "TreeMapDB");
262
+ }
263
+ getNodes() {
264
+ return this.nodes;
265
+ }
266
+ getConfig() {
267
+ let e = c, t = u();
268
+ return g({
269
+ ...e.treemap,
270
+ ...t.treemap ?? {}
271
+ });
272
+ }
273
+ addNode(e, t) {
274
+ this.nodes.push(e), this.levels.set(e, t), t === 0 && (this.outerNodes.push(e), this.root ??= e);
275
+ }
276
+ getRoot() {
277
+ return {
278
+ name: "",
279
+ children: this.outerNodes
280
+ };
281
+ }
282
+ addClass(e, t) {
283
+ let n = this.classes.get(e) ?? {
284
+ id: e,
285
+ styles: [],
286
+ textStyles: []
287
+ }, r = t.replace(/\\,/g, "§§§").replace(/,/g, ";").replace(/§§§/g, ",").split(";");
288
+ r && r.forEach((e) => {
289
+ y(e) && (n?.textStyles ? n.textStyles.push(e) : n.textStyles = [e]), n?.styles ? n.styles.push(e) : n.styles = [e];
290
+ }), this.classes.set(e, n);
291
+ }
292
+ getClasses() {
293
+ return this.classes;
294
+ }
295
+ getStylesForClass(e) {
296
+ return this.classes.get(e)?.styles ?? [];
297
+ }
298
+ clear() {
299
+ o(), this.nodes = [], this.levels = /* @__PURE__ */ new Map(), this.outerNodes = [], this.classes = /* @__PURE__ */ new Map(), this.root = void 0;
300
+ }
301
+ };
302
+ function X(e) {
303
+ if (!e.length) return [];
304
+ let t = [], n = [];
305
+ return e.forEach((e) => {
306
+ let r = {
307
+ name: e.name,
308
+ children: e.type === "Leaf" ? void 0 : []
309
+ };
310
+ 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();
311
+ if (n.length === 0) t.push(r);
312
+ else {
313
+ let e = n[n.length - 1].node;
314
+ e.children ? e.children.push(r) : e.children = [r];
315
+ }
316
+ e.type !== "Leaf" && n.push({
317
+ node: r,
318
+ level: e.level
319
+ });
320
+ }), t;
321
+ }
322
+ f(X, "buildHierarchy");
323
+ var oe = /* @__PURE__ */ f((e, t) => {
324
+ b(e, t);
325
+ let n = [];
326
+ for (let n of e.TreemapRows ?? []) n.$type === "ClassDefStatement" && t.addClass(n.className ?? "", n.styleText ?? "");
327
+ for (let r of e.TreemapRows ?? []) {
328
+ let e = r.item;
329
+ if (!e) continue;
330
+ let i = r.indent ? parseInt(r.indent) : 0, a = se(e), o = e.classSelector ? t.getStylesForClass(e.classSelector) : [], s = o.length > 0 ? o : void 0, c = {
331
+ level: i,
332
+ name: a,
333
+ type: e.$type,
334
+ value: e.value,
335
+ classSelector: e.classSelector,
336
+ cssCompiledStyles: s
337
+ };
338
+ n.push(c);
339
+ }
340
+ let r = X(n), i = /* @__PURE__ */ f((e, n) => {
341
+ for (let r of e) t.addNode(r, n), r.children && r.children.length > 0 && i(r.children, n + 1);
342
+ }, "addNodesRecursively");
343
+ i(r, 0);
344
+ }, "populate"), se = /* @__PURE__ */ f((e) => e.name ? String(e.name) : "", "getItemName"), Z = {
345
+ parser: { yy: void 0 },
346
+ parse: /* @__PURE__ */ f(async (e) => {
347
+ try {
348
+ let t = await x("treemap", e);
349
+ d.debug("Treemap AST:", t);
350
+ let n = Z.parser?.yy;
351
+ if (!(n 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.");
352
+ oe(t, n);
353
+ } catch (e) {
354
+ throw d.error("Error parsing treemap:", e), e;
355
+ }
356
+ }, "parse")
357
+ }, ce = 10, Q = 10, $ = 25, le = {
358
+ draw: /* @__PURE__ */ f((e, t, n, r) => {
359
+ let i = r.db, a = i.getConfig(), o = a.padding ?? ce, c = i.getDiagramTitle(), l = i.getRoot(), { themeVariables: g } = u();
360
+ if (!l) return;
361
+ let y = c ? 30 : 0, b = _(t), x = a.nodeWidth ? a.nodeWidth * Q : 960, C = a.nodeHeight ? a.nodeHeight * Q : 500, w = x, T = C + y;
362
+ b.attr("viewBox", `0 0 ${w} ${T}`), s(b, T, w, a.useMaxWidth);
363
+ let E;
364
+ try {
365
+ let e = a.valueFormat || ",";
366
+ if (e === "$0,0") E = /* @__PURE__ */ f((e) => "$" + h(",")(e), "valueFormat");
367
+ else if (e.startsWith("$") && e.includes(",")) {
368
+ let t = /\.\d+/.exec(e), n = t ? t[0] : "";
369
+ E = /* @__PURE__ */ f((e) => "$" + h("," + n)(e), "valueFormat");
370
+ } else if (e.startsWith("$")) {
371
+ let t = e.substring(1);
372
+ E = /* @__PURE__ */ f((e) => "$" + h(t || "")(e), "valueFormat");
373
+ } else E = h(e);
374
+ } catch (e) {
375
+ d.error("Error creating format function:", e), E = h(",");
376
+ }
377
+ let D = m().range([
378
+ "transparent",
379
+ g.cScale0,
380
+ g.cScale1,
381
+ g.cScale2,
382
+ g.cScale3,
383
+ g.cScale4,
384
+ g.cScale5,
385
+ g.cScale6,
386
+ g.cScale7,
387
+ g.cScale8,
388
+ g.cScale9,
389
+ g.cScale10,
390
+ g.cScale11
391
+ ]), O = m().range([
392
+ "transparent",
393
+ g.cScalePeer0,
394
+ g.cScalePeer1,
395
+ g.cScalePeer2,
396
+ g.cScalePeer3,
397
+ g.cScalePeer4,
398
+ g.cScalePeer5,
399
+ g.cScalePeer6,
400
+ g.cScalePeer7,
401
+ g.cScalePeer8,
402
+ g.cScalePeer9,
403
+ g.cScalePeer10,
404
+ g.cScalePeer11
405
+ ]), k = m().range([
406
+ g.cScaleLabel0,
407
+ g.cScaleLabel1,
408
+ g.cScaleLabel2,
409
+ g.cScaleLabel3,
410
+ g.cScaleLabel4,
411
+ g.cScaleLabel5,
412
+ g.cScaleLabel6,
413
+ g.cScaleLabel7,
414
+ g.cScaleLabel8,
415
+ g.cScaleLabel9,
416
+ g.cScaleLabel10,
417
+ g.cScaleLabel11
418
+ ]);
419
+ c && b.append("text").attr("x", w / 2).attr("y", y / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(c);
420
+ let A = b.append("g").attr("transform", `translate(0, ${y})`).attr("class", "treemapContainer"), j = R(l).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(o).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})`);
421
+ 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, n) => `clip-section-${t}-${n}`).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) => {
422
+ if (e.depth === 0) return "display: none;";
423
+ let t = v({ cssCompiledStyles: e.data.cssCompiledStyles });
424
+ return t.nodeStyles + ";" + t.borderStyles.join(";");
425
+ }), 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("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) {
426
+ if (e.depth === 0) return;
427
+ let t = p(this), n = e.data.name;
428
+ t.text(n);
429
+ let r = e.x1 - e.x0, i;
430
+ i = a.showValues !== !1 && e.value ? r - 10 - 30 - 10 - 6 : r - 6 - 6;
431
+ let o = Math.max(15, i), s = t.node();
432
+ if (s.getComputedTextLength() > o) {
433
+ let e = n;
434
+ for (; e.length > 0;) {
435
+ if (e = n.substring(0, e.length - 1), e.length === 0) {
436
+ t.text("..."), s.getComputedTextLength() > o && t.text("");
437
+ break;
438
+ }
439
+ if (t.text(e + "..."), s.getComputedTextLength() <= o) break;
440
+ }
441
+ }
442
+ }), a.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:"));
443
+ let F = M.leaves(), I = 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})`);
444
+ I.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), I.append("clipPath").attr("id", (e, n) => `clip-${t}-${n}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), I.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: 38px;fill:" + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, n) => `url(#clip-${t}-${n})`).text((e) => e.data.name).each(function(e) {
445
+ let t = p(this), n = e.x1 - e.x0, r = e.y1 - e.y0, i = t.node(), a = n - 8, o = r - 8;
446
+ if (a < 10 || o < 10) {
447
+ t.style("display", "none");
448
+ return;
449
+ }
450
+ let s = parseInt(t.style("font-size"), 10), c = .6;
451
+ for (; i.getComputedTextLength() > a && s > 8;) s--, t.style("font-size", `${s}px`);
452
+ let l = Math.max(6, Math.min(28, Math.round(s * c))), u = s + 2 + l;
453
+ for (; u > o && s > 8 && (s--, l = Math.max(6, Math.min(28, Math.round(s * c))), !(l < 6 && s === 8));) t.style("font-size", `${s}px`), u = s + 2 + l;
454
+ t.style("font-size", `${s}px`), (i.getComputedTextLength() > a || s < 8 || o < s) && t.style("display", "none");
455
+ }), a.showValues !== !1 && I.append("text").attr("class", "treemapValue").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", function(e) {
456
+ return (e.y1 - e.y0) / 2;
457
+ }).attr("style", (e) => "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(e.data.name) + ";" + v({ cssCompiledStyles: e.data.cssCompiledStyles }).labelStyles.replace("color:", "fill:")).attr("clip-path", (e, n) => `url(#clip-${t}-${n})`).text((e) => e.value ? E(e.value) : "").each(function(e) {
458
+ let t = p(this), n = this.parentNode;
459
+ if (!n) {
460
+ t.style("display", "none");
461
+ return;
462
+ }
463
+ let r = p(n).select(".treemapLabel");
464
+ if (r.empty() || r.style("display") === "none") {
465
+ t.style("display", "none");
466
+ return;
467
+ }
468
+ let i = parseFloat(r.style("font-size")), a = Math.max(6, Math.min(28, Math.round(i * .6)));
469
+ t.style("font-size", `${a}px`);
470
+ let o = (e.y1 - e.y0) / 2 + i / 2 + 2;
471
+ t.attr("y", o);
472
+ let s = e.x1 - e.x0, c = e.y1 - e.y0 - 4, l = s - 8;
473
+ t.node().getComputedTextLength() > l || o + a > c || a < 6 ? t.style("display", "none") : t.style("display", null);
474
+ }), S(b, a.diagramPadding ?? 8, "flowchart", a?.useMaxWidth || !1);
475
+ }, "draw"),
476
+ getClasses: /* @__PURE__ */ f(function(e, t) {
477
+ return t.db.getClasses();
478
+ }, "getClasses")
479
+ }, ue = {
480
+ sectionStrokeColor: "black",
481
+ sectionStrokeWidth: "1",
482
+ sectionFillColor: "#efefef",
483
+ leafStrokeColor: "black",
484
+ leafStrokeWidth: "1",
485
+ leafFillColor: "#efefef",
486
+ labelFontSize: "12px",
487
+ valueFontSize: "10px",
488
+ titleFontSize: "14px"
489
+ }, de = {
490
+ parser: Z,
491
+ get db() {
492
+ return new Y();
493
+ },
494
+ renderer: le,
495
+ styles: /* @__PURE__ */ f(({ treemap: e } = {}) => {
496
+ let t = g(n(), u().themeVariables), r = g(ue, e), i = r.titleColor ?? t.titleColor, a = r.labelColor ?? t.textColor, o = r.valueColor ?? t.textColor;
497
+ return `
498
+ .treemapNode.section {
499
+ stroke: ${r.sectionStrokeColor};
500
+ stroke-width: ${r.sectionStrokeWidth};
501
+ fill: ${r.sectionFillColor};
502
+ }
503
+ .treemapNode.leaf {
504
+ stroke: ${r.leafStrokeColor};
505
+ stroke-width: ${r.leafStrokeWidth};
506
+ fill: ${r.leafFillColor};
507
+ }
508
+ .treemapLabel {
509
+ fill: ${a};
510
+ font-size: ${r.labelFontSize};
511
+ }
512
+ .treemapValue {
513
+ fill: ${o};
514
+ font-size: ${r.valueFontSize};
515
+ }
516
+ .treemapTitle {
517
+ fill: ${i};
518
+ font-size: ${r.titleFontSize};
519
+ }
520
+ `;
521
+ }, "getStyles")
522
+ };
523
+ //#endregion
524
+ export { de as diagram };
@@ -0,0 +1,43 @@
1
+ require(`./chunk-D-IZpNpi.cjs`);const e=require(`./chunk-ICPOFSXX-hY6BIZ4Y.cjs`),t=require(`./src-DFxq-N5I.cjs`),n=require(`./chunk-5PVQY5BW-DEPZKGvb.cjs`),r=require(`./chunk-426QAEUC-CqN26l3E.cjs`),i=require(`./chunk-4BX2VUAB-Qba52sxc.cjs`),a=require(`./mermaid-parser.core-DHpvGOZR.cjs`);var o={showLegend:!0,ticks:5,max:null,min:0,graticule:`circle`},s={axes:[],curves:[],options:o},c=structuredClone(s),l=e.d.radar,u=t.h(()=>n.r({...l,...e.y().radar}),`getConfig`),d=t.h(()=>c.axes,`getAxes`),f=t.h(()=>c.curves,`getCurves`),p=t.h(()=>c.options,`getOptions`),m=t.h(e=>{c.axes=e.map(e=>({name:e.name,label:e.label??e.name}))},`setAxes`),h=t.h(e=>{c.curves=e.map(e=>({name:e.name,label:e.label??e.name,entries:g(e.entries)}))},`setCurves`),g=t.h(e=>{if(e[0].axis==null)return e.map(e=>e.value);let t=d();if(t.length===0)throw Error(`Axes must be populated before curves for reference entries`);return t.map(t=>{let n=e.find(e=>e.axis?.$refText===t.name);if(n===void 0)throw Error(`Missing entry for axis `+t.label);return n.value})},`computeCurveEntries`),_={getAxes:d,getCurves:f,getOptions:p,setAxes:m,setCurves:h,setOptions:t.h(e=>{let t=e.reduce((e,t)=>(e[t.name]=t,e),{});c.options={showLegend:t.showLegend?.value??o.showLegend,ticks:t.ticks?.value??o.ticks,max:t.max?.value??o.max,min:t.min?.value??o.min,graticule:t.graticule?.value??o.graticule}},`setOptions`),getConfig:u,clear:t.h(()=>{e.a(),c=structuredClone(s)},`clear`),setAccTitle:e.V,getAccTitle:e.v,setDiagramTitle:e.W,getDiagramTitle:e.C,getAccDescription:e._,setAccDescription:e.B},v=t.h(e=>{i.t(e,_);let{axes:t,curves:n,options:r}=e;_.setAxes(t),_.setCurves(n),_.setOptions(r)},`populate`),y={parse:t.h(async e=>{let n=await a.t(`radar`,e);t.g.debug(n),v(n)},`parse`)},b=t.h((e,t,n,i)=>{let a=i.db,o=a.getAxes(),s=a.getCurves(),c=a.getOptions(),l=a.getConfig(),u=a.getDiagramTitle(),d=x(r.t(t),l),f=c.max??Math.max(...s.map(e=>Math.max(...e.entries))),p=c.min,m=Math.min(l.width,l.height)/2;S(d,o,m,c.ticks,c.graticule),C(d,o,m,l),w(d,o,s,p,f,c.graticule,l),D(d,s,c.showLegend,l),d.append(`text`).attr(`class`,`radarTitle`).text(u).attr(`x`,0).attr(`y`,-l.height/2-l.marginTop)},`draw`),x=t.h((t,n)=>{let r=n.width+n.marginLeft+n.marginRight,i=n.height+n.marginTop+n.marginBottom,a={x:n.marginLeft+n.width/2,y:n.marginTop+n.height/2};return e.c(t,i,r,n.useMaxWidth??!0),t.attr(`viewBox`,`0 0 ${r} ${i}`),t.append(`g`).attr(`transform`,`translate(${a.x}, ${a.y})`)},`drawFrame`),S=t.h((e,t,n,r,i)=>{if(i===`circle`)for(let t=0;t<r;t++){let i=n*(t+1)/r;e.append(`circle`).attr(`r`,i).attr(`class`,`radarGraticule`)}else if(i===`polygon`){let i=t.length;for(let a=0;a<r;a++){let o=n*(a+1)/r,s=t.map((e,t)=>{let n=2*t*Math.PI/i-Math.PI/2;return`${o*Math.cos(n)},${o*Math.sin(n)}`}).join(` `);e.append(`polygon`).attr(`points`,s).attr(`class`,`radarGraticule`)}}},`drawGraticule`),C=t.h((e,t,n,r)=>{let i=t.length;for(let a=0;a<i;a++){let o=t[a].label,s=2*a*Math.PI/i-Math.PI/2;e.append(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,n*r.axisScaleFactor*Math.cos(s)).attr(`y2`,n*r.axisScaleFactor*Math.sin(s)).attr(`class`,`radarAxisLine`),e.append(`text`).text(o).attr(`x`,n*r.axisLabelFactor*Math.cos(s)).attr(`y`,n*r.axisLabelFactor*Math.sin(s)).attr(`class`,`radarAxisLabel`)}},`drawAxes`);function w(e,t,n,r,i,a,o){let s=t.length,c=Math.min(o.width,o.height)/2;n.forEach((t,n)=>{if(t.entries.length!==s)return;let l=t.entries.map((e,t)=>{let n=2*Math.PI*t/s-Math.PI/2,a=T(e,r,i,c);return{x:a*Math.cos(n),y:a*Math.sin(n)}});a===`circle`?e.append(`path`).attr(`d`,E(l,o.curveTension)).attr(`class`,`radarCurve-${n}`):a===`polygon`&&e.append(`polygon`).attr(`points`,l.map(e=>`${e.x},${e.y}`).join(` `)).attr(`class`,`radarCurve-${n}`)})}t.h(w,`drawCurves`);function T(e,t,n,r){return r*(Math.min(Math.max(e,t),n)-t)/(n-t)}t.h(T,`relativeRadius`);function E(e,t){let n=e.length,r=`M${e[0].x},${e[0].y}`;for(let i=0;i<n;i++){let a=e[(i-1+n)%n],o=e[i],s=e[(i+1)%n],c=e[(i+2)%n],l={x:o.x+(s.x-a.x)*t,y:o.y+(s.y-a.y)*t},u={x:s.x-(c.x-o.x)*t,y:s.y-(c.y-o.y)*t};r+=` C${l.x},${l.y} ${u.x},${u.y} ${s.x},${s.y}`}return`${r} Z`}t.h(E,`closedRoundCurve`);function D(e,t,n,r){if(!n)return;let i=(r.width/2+r.marginRight)*3/4,a=-(r.height/2+r.marginTop)*3/4;t.forEach((t,n)=>{let r=e.append(`g`).attr(`transform`,`translate(${i}, ${a+n*20})`);r.append(`rect`).attr(`width`,12).attr(`height`,12).attr(`class`,`radarLegendBox-${n}`),r.append(`text`).attr(`x`,16).attr(`y`,0).attr(`class`,`radarLegendText`).text(t.label)})}t.h(D,`drawLegend`);var O={draw:b},k=t.h((e,t)=>{let n=``;for(let r=0;r<e.THEME_COLOR_LIMIT;r++){let i=e[`cScale${r}`];n+=`
2
+ .radarCurve-${r} {
3
+ color: ${i};
4
+ fill: ${i};
5
+ fill-opacity: ${t.curveOpacity};
6
+ stroke: ${i};
7
+ stroke-width: ${t.curveStrokeWidth};
8
+ }
9
+ .radarLegendBox-${r} {
10
+ fill: ${i};
11
+ fill-opacity: ${t.curveOpacity};
12
+ stroke: ${i};
13
+ }
14
+ `}return n},`genIndexStyles`),A=t.h(t=>{let r=n.r(e.E(),e.y().themeVariables);return{themeVariables:r,radarOptions:n.r(r.radar,t)}},`buildRadarStyleOptions`),j={parser:y,db:_,renderer:O,styles:t.h(({radar:e}={})=>{let{themeVariables:t,radarOptions:n}=A(e);return`
15
+ .radarTitle {
16
+ font-size: ${t.fontSize};
17
+ color: ${t.titleColor};
18
+ dominant-baseline: hanging;
19
+ text-anchor: middle;
20
+ }
21
+ .radarAxisLine {
22
+ stroke: ${n.axisColor};
23
+ stroke-width: ${n.axisStrokeWidth};
24
+ }
25
+ .radarAxisLabel {
26
+ dominant-baseline: middle;
27
+ text-anchor: middle;
28
+ font-size: ${n.axisLabelFontSize}px;
29
+ color: ${n.axisColor};
30
+ }
31
+ .radarGraticule {
32
+ fill: ${n.graticuleColor};
33
+ fill-opacity: ${n.graticuleOpacity};
34
+ stroke: ${n.graticuleColor};
35
+ stroke-width: ${n.graticuleStrokeWidth};
36
+ }
37
+ .radarLegendText {
38
+ text-anchor: start;
39
+ font-size: ${n.legendFontSize}px;
40
+ dominant-baseline: hanging;
41
+ }
42
+ ${k(t,n)}
43
+ `},`styles`)};exports.diagram=j;