@sme.up/ketchup2 2.9.0 → 2.11.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 (384) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button/button-types.d.ts +2 -2
  8. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  9. package/dist/basic-components/cell/cell-types.d.ts +15 -6
  10. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  11. package/dist/basic-components/cell/cell-utils.d.ts +10 -4
  12. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  14. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
  19. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  20. package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
  21. package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
  22. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  23. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  24. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  27. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  28. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  29. package/dist/basic-components/text/text-types.d.ts +3 -1
  30. package/dist/basic-components/text/text-types.d.ts.map +1 -1
  31. package/dist/basic-components/text/text.d.ts.map +1 -1
  32. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  33. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  34. package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
  35. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  36. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  37. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  38. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  39. package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  40. package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  41. package/dist/channel-CcHUzwZl.js +5 -0
  42. package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  43. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  44. package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  45. package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  46. package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  47. package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
  48. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  49. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  50. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  51. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  52. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  53. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  54. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  55. package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  56. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  57. package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  58. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  59. package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  60. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  61. package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  62. package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  63. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  64. package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  65. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  66. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  67. package/dist/components/box-list/box-list.d.ts.map +1 -1
  68. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  69. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  70. package/dist/components/calendar/calendar-types.d.ts +49 -4
  71. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  72. package/dist/components/calendar/calendar-utils.d.ts +160 -16
  73. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  74. package/dist/components/calendar/calendar.d.ts.map +1 -1
  75. package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
  76. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
  77. package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
  78. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  79. package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
  80. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
  81. package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
  82. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  83. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  84. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  85. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  86. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  87. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  88. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  89. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  90. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  91. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  92. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  93. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  94. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  95. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  96. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  97. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  98. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  99. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-types.d.ts +206 -38
  101. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  102. package/dist/components/data-table/data-table.d.ts.map +1 -1
  103. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  104. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  105. package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
  106. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
  107. package/dist/components/data-table/footer/footer-types.d.ts +23 -6
  108. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  109. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  110. package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
  111. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  112. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  113. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
  114. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  115. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  116. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  117. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  118. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  119. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  120. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  121. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  122. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  123. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  124. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  125. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  126. package/dist/components/data-table/header/header-types.d.ts +37 -21
  127. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  128. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  129. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  130. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  131. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  132. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  133. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  134. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  135. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  136. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  137. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  138. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  139. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  140. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  141. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  142. package/dist/components/data-table/state/datatable-state.d.ts +15 -8
  143. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  144. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  145. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  146. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  147. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  148. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  149. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  150. package/dist/components/drawer/drawer.d.ts.map +1 -1
  151. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
  152. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
  153. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
  154. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
  155. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
  156. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
  157. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
  158. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
  159. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
  160. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
  161. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
  162. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
  163. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
  164. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
  165. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  166. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  167. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  168. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  169. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
  170. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
  171. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
  172. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
  173. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  174. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  175. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  176. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  177. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  178. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  179. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  180. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  181. package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
  182. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
  183. package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
  184. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
  185. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
  186. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
  187. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
  188. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
  189. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
  190. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
  191. package/dist/components/input-panel/assets/data.d.ts +1 -0
  192. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  193. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  194. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  195. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  196. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  197. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  198. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  199. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  200. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  201. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  202. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  203. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  204. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  205. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  206. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  207. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  208. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  209. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  210. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  211. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  212. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  213. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  214. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  215. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  216. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  217. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  218. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  219. package/dist/components/pdf/pdf-types.d.ts +17 -2
  220. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  221. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  222. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  223. package/dist/components/pdf/pdf.d.ts.map +1 -1
  224. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  225. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  226. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
  227. package/dist/context/interaction-context.d.ts +16 -0
  228. package/dist/context/interaction-context.d.ts.map +1 -0
  229. package/dist/context/test-utils.d.ts.map +1 -1
  230. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  231. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  232. package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  233. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  234. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  235. package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  236. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  237. package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  238. package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  239. package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  240. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  241. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  242. package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  243. package/dist/echarts-C7ehbnCk.js +15485 -0
  244. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  245. package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  246. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  247. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  248. package/dist/functional-components/badge/badge-assets.d.ts +1 -0
  249. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  250. package/dist/functional-components/badge/badge-utils.d.ts +5 -0
  251. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  252. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  253. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  254. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  255. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  256. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  257. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  258. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  259. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  260. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  261. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
  262. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  263. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  264. package/dist/functional-components/row/row-types.d.ts +50 -1
  265. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  266. package/dist/functional-components/row/row.d.ts.map +1 -1
  267. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  268. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  269. package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  270. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  271. package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  272. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
  273. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
  274. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  275. package/dist/hooks/useFloating.d.ts.map +1 -1
  276. package/dist/hooks/useVirtualListScroll.d.ts +14 -2
  277. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  278. package/dist/index.d.ts +5 -3
  279. package/dist/index.d.ts.map +1 -1
  280. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  281. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  282. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  283. package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  284. package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  285. package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  286. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  287. package/dist/ketchup2.css +1 -1
  288. package/dist/ketchup2.es.js +25778 -68770
  289. package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
  290. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  291. package/dist/locale/en/translation.json.d.ts +40 -4
  292. package/dist/locale/it/translation.json.d.ts +40 -4
  293. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  294. package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  295. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  296. package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  297. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  298. package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  299. package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  300. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  301. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  302. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  303. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  304. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  305. package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  306. package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  307. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  308. package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  309. package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  310. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  311. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  312. package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  313. package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  314. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  315. package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  316. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  317. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  318. package/dist/types/data-structures.d.ts +16 -1
  319. package/dist/types/data-structures.d.ts.map +1 -1
  320. package/dist/types/global.d.ts +7 -2
  321. package/dist/types/global.d.ts.map +1 -1
  322. package/dist/types/translation.d.ts +40 -5
  323. package/dist/types/translation.d.ts.map +1 -1
  324. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  325. package/dist/utils/floating-layer.d.ts +11 -0
  326. package/dist/utils/floating-layer.d.ts.map +1 -0
  327. package/dist/utils/legacy.d.ts +7 -0
  328. package/dist/utils/legacy.d.ts.map +1 -1
  329. package/dist/utils/object-styles.d.ts +12 -0
  330. package/dist/utils/object-styles.d.ts.map +1 -0
  331. package/dist/utils/object-styles.test.d.ts +2 -0
  332. package/dist/utils/object-styles.test.d.ts.map +1 -0
  333. package/dist/utils/objects.d.ts +20 -1
  334. package/dist/utils/objects.d.ts.map +1 -1
  335. package/dist/utils/totals/totals-registry.d.ts +17 -0
  336. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  337. package/dist/utils/totals/totals-utils.d.ts +70 -7
  338. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  339. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  340. package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  341. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  342. package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  343. package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  344. package/package.json +7 -5
  345. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  346. package/dist/channel-CuEby436.js +0 -5
  347. package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
  348. package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
  349. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
  350. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  351. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
  352. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
  353. package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
  354. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  355. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
  356. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
  357. package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
  358. package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
  359. package/dist/components/echarts/echarts-graph.d.ts +0 -4
  360. package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
  361. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  362. package/dist/dagre-D5csT9sx.js +0 -1934
  363. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
  364. package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
  365. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  366. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
  367. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  368. package/dist/hooks/useClickOutside.d.ts.map +0 -1
  369. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  370. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
  371. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  372. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  373. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  374. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  375. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  376. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  377. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  378. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
  379. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
  380. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
  381. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  382. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  383. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
  384. /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
@@ -1,18 +1,18 @@
1
- import { m as e, p as t } from "./src-DQoflmwT.js";
2
- import { H as n, U as r, c as i, r as a, s as o, v as s, x as l, y as u, z as d } from "./chunk-DU6HZSFF-waeanndy.js";
3
- import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { _ as p, n as m, r as h } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
- import "./chunk-P2QGCYS3-BUeNZ170.js";
6
- import "./chunk-PWAF6VOD-D37VoZ8H.js";
7
- import "./chunk-GMAD6QVW-D80II4AD.js";
8
- import { o as g } from "./chunk-4HAMMTFA-CZgIgrp_.js";
9
- import { a as _ } from "./chunk-F27PBJKO-jIrOJO87.js";
10
- //#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-7LVT6UL2.mjs
11
- var v = (function() {
12
- var e = /* @__PURE__ */ f(function(e, t, n, r) {
1
+ import { H as e, U as t, _ as n, b as r, c as i, r as a, s as o, v as s, z as l } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as u } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { m as d, p as f } from "./src-CY9Rz0Sf.js";
4
+ import { n as p, r as m, v as h } from "./chunk-7S6XSTFO-CN6S2H1-.js";
5
+ import "./chunk-UHW7PFBP-CoHGQVjo.js";
6
+ import "./chunk-YZO67HFG-Bcmpw0dX.js";
7
+ import "./chunk-AQDTSKZB-DuUha9al.js";
8
+ import { r as g, s as _ } from "./chunk-HAGFOTED-IzyIoLzD.js";
9
+ import { a as v } from "./chunk-55XCU76K-B1HtPImz.js";
10
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/c4Diagram-XDPPPE54.mjs
11
+ var y = (function() {
12
+ var e = /* @__PURE__ */ u(function(e, t, n, r) {
13
13
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
14
14
  return n;
15
- }, "o"), t = [1, 24], n = [1, 25], r = [1, 26], i = [1, 27], a = [1, 28], o = [1, 63], s = [1, 64], l = [1, 65], u = [1, 66], d = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
15
+ }, "o"), t = [1, 24], n = [1, 25], r = [1, 26], i = [1, 27], a = [1, 28], o = [1, 63], s = [1, 64], l = [1, 65], d = [1, 66], f = [1, 67], p = [1, 68], m = [1, 69], h = [1, 29], g = [1, 30], _ = [1, 31], v = [1, 32], y = [1, 33], b = [1, 34], x = [1, 35], S = [1, 36], C = [1, 37], w = [1, 38], T = [1, 39], E = [1, 40], D = [1, 41], O = [1, 42], k = [1, 43], A = [1, 44], j = [1, 45], M = [1, 46], N = [1, 47], P = [1, 48], F = [1, 50], I = [1, 51], L = [1, 52], R = [1, 53], z = [1, 54], B = [1, 55], V = [1, 56], H = [1, 57], U = [1, 58], W = [1, 59], G = [1, 60], ee = [14, 42], te = [
16
16
  14,
17
17
  34,
18
18
  36,
@@ -113,7 +113,7 @@ var v = (function() {
113
113
  77,
114
114
  79,
115
115
  80
116
- ], ae = [12, 33], oe = [
116
+ ], Z = [12, 33], ae = [
117
117
  34,
118
118
  36,
119
119
  37,
@@ -152,8 +152,8 @@ var v = (function() {
152
152
  72,
153
153
  73,
154
154
  74
155
- ], se = {
156
- trace: /* @__PURE__ */ f(function() {}, "trace"),
155
+ ], oe = {
156
+ trace: /* @__PURE__ */ u(function() {}, "trace"),
157
157
  yy: {},
158
158
  symbols_: {
159
159
  error: 2,
@@ -383,7 +383,7 @@ var v = (function() {
383
383
  [75, 1],
384
384
  [75, 1]
385
385
  ],
386
- performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
386
+ performAction: /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
387
387
  var s = a.length - 1;
388
388
  switch (i) {
389
389
  case 3:
@@ -597,8 +597,8 @@ var v = (function() {
597
597
  34: o,
598
598
  36: s,
599
599
  37: l,
600
- 38: u,
601
- 39: d,
600
+ 38: d,
601
+ 39: f,
602
602
  40: p,
603
603
  41: m,
604
604
  43: 23,
@@ -650,8 +650,8 @@ var v = (function() {
650
650
  34: o,
651
651
  36: s,
652
652
  37: l,
653
- 38: u,
654
- 39: d,
653
+ 38: d,
654
+ 39: f,
655
655
  40: p,
656
656
  41: m,
657
657
  43: 23,
@@ -703,8 +703,8 @@ var v = (function() {
703
703
  34: o,
704
704
  36: s,
705
705
  37: l,
706
- 38: u,
707
- 39: d,
706
+ 38: d,
707
+ 39: f,
708
708
  40: p,
709
709
  41: m,
710
710
  43: 23,
@@ -756,8 +756,8 @@ var v = (function() {
756
756
  34: o,
757
757
  36: s,
758
758
  37: l,
759
- 38: u,
760
- 39: d,
759
+ 38: d,
760
+ 39: f,
761
761
  40: p,
762
762
  41: m,
763
763
  43: 23,
@@ -809,8 +809,8 @@ var v = (function() {
809
809
  34: o,
810
810
  36: s,
811
811
  37: l,
812
- 38: u,
813
- 39: d,
812
+ 38: d,
813
+ 39: f,
814
814
  40: p,
815
815
  41: m,
816
816
  43: 23,
@@ -856,8 +856,8 @@ var v = (function() {
856
856
  34: o,
857
857
  36: s,
858
858
  37: l,
859
- 38: u,
860
- 39: d,
859
+ 38: d,
860
+ 39: f,
861
861
  40: p,
862
862
  41: m,
863
863
  44: h,
@@ -1157,8 +1157,8 @@ var v = (function() {
1157
1157
  34: o,
1158
1158
  36: s,
1159
1159
  37: l,
1160
- 38: u,
1161
- 39: d,
1160
+ 38: d,
1161
+ 39: f,
1162
1162
  40: p,
1163
1163
  41: m,
1164
1164
  43: 23,
@@ -1286,8 +1286,8 @@ var v = (function() {
1286
1286
  34: o,
1287
1287
  36: s,
1288
1288
  37: l,
1289
- 38: u,
1290
- 39: d,
1289
+ 38: d,
1290
+ 39: f,
1291
1291
  40: p,
1292
1292
  41: m,
1293
1293
  44: h,
@@ -1373,13 +1373,13 @@ var v = (function() {
1373
1373
  },
1374
1374
  { 12: [1, 136] },
1375
1375
  { 33: [1, 137] },
1376
- e(ae, [2, 28]),
1377
- e(ae, [2, 29]),
1378
- e(ae, [2, 30]),
1379
- e(ae, [2, 31]),
1380
- e(ae, [2, 32]),
1381
- e(ae, [2, 33]),
1382
- e(ae, [2, 34]),
1376
+ e(Z, [2, 28]),
1377
+ e(Z, [2, 29]),
1378
+ e(Z, [2, 30]),
1379
+ e(Z, [2, 31]),
1380
+ e(Z, [2, 32]),
1381
+ e(Z, [2, 33]),
1382
+ e(Z, [2, 34]),
1383
1383
  { 1: [2, 9] },
1384
1384
  { 1: [2, 10] },
1385
1385
  { 1: [2, 11] },
@@ -1390,9 +1390,9 @@ var v = (function() {
1390
1390
  e(ie, [2, 74]),
1391
1391
  e(X, [2, 24]),
1392
1392
  e(X, [2, 35]),
1393
- e(oe, [2, 25]),
1394
- e(oe, [2, 26], { 12: [1, 138] }),
1395
- e(oe, [2, 27])
1393
+ e(ae, [2, 25]),
1394
+ e(ae, [2, 26], { 12: [1, 138] }),
1395
+ e(ae, [2, 27])
1396
1396
  ],
1397
1397
  defaultActions: {
1398
1398
  2: [2, 1],
@@ -1408,15 +1408,15 @@ var v = (function() {
1408
1408
  128: [2, 11],
1409
1409
  129: [2, 12]
1410
1410
  },
1411
- parseError: /* @__PURE__ */ f(function(e, t) {
1411
+ parseError: /* @__PURE__ */ u(function(e, t) {
1412
1412
  if (t.recoverable) this.trace(e);
1413
1413
  else {
1414
1414
  var n = Error(e);
1415
1415
  throw n.hash = t, n;
1416
1416
  }
1417
1417
  }, "parseError"),
1418
- parse: /* @__PURE__ */ f(function(e) {
1419
- var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, u = 0, d = 0, p = 2, m = 1, h = a.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1418
+ parse: /* @__PURE__ */ u(function(e) {
1419
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", l = 0, d = 0, f = 0, p = 2, m = 1, h = a.slice.call(arguments, 1), g = Object.create(this.lexer), _ = { yy: {} };
1420
1420
  for (var v in this.yy) Object.prototype.hasOwnProperty.call(this.yy, v) && (_.yy[v] = this.yy[v]);
1421
1421
  g.setInput(e, _.yy), _.yy.lexer = g, _.yy.parser = this, g.yylloc === void 0 && (g.yylloc = {});
1422
1422
  var y = g.yylloc;
@@ -1426,12 +1426,12 @@ var v = (function() {
1426
1426
  function x(e) {
1427
1427
  n.length -= 2 * e, i.length -= e, a.length -= e;
1428
1428
  }
1429
- f(x, "popStack");
1429
+ u(x, "popStack");
1430
1430
  function S() {
1431
1431
  var e = r.pop() || g.lex() || m;
1432
1432
  return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
1433
1433
  }
1434
- f(S, "lex");
1434
+ u(S, "lex");
1435
1435
  for (var C, w, T, E, D, O = {}, k, A, j, M;;) {
1436
1436
  if (T = n[n.length - 1], this.defaultActions[T] ? E = this.defaultActions[T] : (C ??= S(), E = o[T] && o[T][C]), E === void 0 || !E.length || !E[0]) {
1437
1437
  var N = "";
@@ -1447,7 +1447,7 @@ var v = (function() {
1447
1447
  if (E[0] instanceof Array && E.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
1448
1448
  switch (E[0]) {
1449
1449
  case 1:
1450
- n.push(C), i.push(g.yytext), a.push(g.yylloc), n.push(E[1]), C = null, w ? (C = w, w = null) : (u = g.yyleng, s = g.yytext, l = g.yylineno, y = g.yylloc, d > 0 && d--);
1450
+ n.push(C), i.push(g.yytext), a.push(g.yylloc), n.push(E[1]), C = null, w ? (C = w, w = null) : (d = g.yyleng, s = g.yytext, l = g.yylineno, y = g.yylloc, f > 0 && f--);
1451
1451
  break;
1452
1452
  case 2:
1453
1453
  if (A = this.productions_[E[1]][1], O.$ = i[i.length - A], O._$ = {
@@ -1457,7 +1457,7 @@ var v = (function() {
1457
1457
  last_column: a[a.length - 1].last_column
1458
1458
  }, b && (O._$.range = [a[a.length - (A || 1)].range[0], a[a.length - 1].range[1]]), D = this.performAction.apply(O, [
1459
1459
  s,
1460
- u,
1460
+ d,
1461
1461
  l,
1462
1462
  _.yy,
1463
1463
  E[1],
@@ -1472,14 +1472,14 @@ var v = (function() {
1472
1472
  return !0;
1473
1473
  }, "parse")
1474
1474
  };
1475
- se.lexer = /* @__PURE__ */ (function() {
1475
+ oe.lexer = /* @__PURE__ */ (function() {
1476
1476
  return {
1477
1477
  EOF: 1,
1478
- parseError: /* @__PURE__ */ f(function(e, t) {
1478
+ parseError: /* @__PURE__ */ u(function(e, t) {
1479
1479
  if (this.yy.parser) this.yy.parser.parseError(e, t);
1480
1480
  else throw Error(e);
1481
1481
  }, "parseError"),
1482
- setInput: /* @__PURE__ */ f(function(e, t) {
1482
+ setInput: /* @__PURE__ */ u(function(e, t) {
1483
1483
  return this.yy = t || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
1484
1484
  first_line: 1,
1485
1485
  first_column: 0,
@@ -1487,11 +1487,11 @@ var v = (function() {
1487
1487
  last_column: 0
1488
1488
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
1489
1489
  }, "setInput"),
1490
- input: /* @__PURE__ */ f(function() {
1490
+ input: /* @__PURE__ */ u(function() {
1491
1491
  var e = this._input[0];
1492
1492
  return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
1493
1493
  }, "input"),
1494
- unput: /* @__PURE__ */ f(function(e) {
1494
+ unput: /* @__PURE__ */ u(function(e) {
1495
1495
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
1496
1496
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
1497
1497
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -1504,10 +1504,10 @@ var v = (function() {
1504
1504
  last_column: n ? (n.length === r.length ? this.yylloc.first_column : 0) + r[r.length - n.length].length - n[0].length : this.yylloc.first_column - t
1505
1505
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
1506
1506
  }, "unput"),
1507
- more: /* @__PURE__ */ f(function() {
1507
+ more: /* @__PURE__ */ u(function() {
1508
1508
  return this._more = !0, this;
1509
1509
  }, "more"),
1510
- reject: /* @__PURE__ */ f(function() {
1510
+ reject: /* @__PURE__ */ u(function() {
1511
1511
  if (this.options.backtrack_lexer) this._backtrack = !0;
1512
1512
  else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
1513
1513
  text: "",
@@ -1516,22 +1516,22 @@ var v = (function() {
1516
1516
  });
1517
1517
  return this;
1518
1518
  }, "reject"),
1519
- less: /* @__PURE__ */ f(function(e) {
1519
+ less: /* @__PURE__ */ u(function(e) {
1520
1520
  this.unput(this.match.slice(e));
1521
1521
  }, "less"),
1522
- pastInput: /* @__PURE__ */ f(function() {
1522
+ pastInput: /* @__PURE__ */ u(function() {
1523
1523
  var e = this.matched.substr(0, this.matched.length - this.match.length);
1524
1524
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
1525
1525
  }, "pastInput"),
1526
- upcomingInput: /* @__PURE__ */ f(function() {
1526
+ upcomingInput: /* @__PURE__ */ u(function() {
1527
1527
  var e = this.match;
1528
1528
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
1529
1529
  }, "upcomingInput"),
1530
- showPosition: /* @__PURE__ */ f(function() {
1530
+ showPosition: /* @__PURE__ */ u(function() {
1531
1531
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
1532
1532
  return e + this.upcomingInput() + "\n" + t + "^";
1533
1533
  }, "showPosition"),
1534
- test_match: /* @__PURE__ */ f(function(e, t) {
1534
+ test_match: /* @__PURE__ */ u(function(e, t) {
1535
1535
  var n, r, i;
1536
1536
  if (this.options.backtrack_lexer && (i = {
1537
1537
  yylineno: this.yylineno,
@@ -1564,7 +1564,7 @@ var v = (function() {
1564
1564
  }
1565
1565
  return !1;
1566
1566
  }, "test_match"),
1567
- next: /* @__PURE__ */ f(function() {
1567
+ next: /* @__PURE__ */ u(function() {
1568
1568
  if (this.done) return this.EOF;
1569
1569
  this._input || (this.done = !0);
1570
1570
  var e, t, n, r;
@@ -1586,29 +1586,29 @@ var v = (function() {
1586
1586
  line: this.yylineno
1587
1587
  });
1588
1588
  }, "next"),
1589
- lex: /* @__PURE__ */ f(function() {
1589
+ lex: /* @__PURE__ */ u(function() {
1590
1590
  return this.next() || this.lex();
1591
1591
  }, "lex"),
1592
- begin: /* @__PURE__ */ f(function(e) {
1592
+ begin: /* @__PURE__ */ u(function(e) {
1593
1593
  this.conditionStack.push(e);
1594
1594
  }, "begin"),
1595
- popState: /* @__PURE__ */ f(function() {
1595
+ popState: /* @__PURE__ */ u(function() {
1596
1596
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
1597
1597
  }, "popState"),
1598
- _currentRules: /* @__PURE__ */ f(function() {
1598
+ _currentRules: /* @__PURE__ */ u(function() {
1599
1599
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
1600
1600
  }, "_currentRules"),
1601
- topState: /* @__PURE__ */ f(function(e) {
1601
+ topState: /* @__PURE__ */ u(function(e) {
1602
1602
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
1603
1603
  }, "topState"),
1604
- pushState: /* @__PURE__ */ f(function(e) {
1604
+ pushState: /* @__PURE__ */ u(function(e) {
1605
1605
  this.begin(e);
1606
1606
  }, "pushState"),
1607
- stateStackSize: /* @__PURE__ */ f(function() {
1607
+ stateStackSize: /* @__PURE__ */ u(function() {
1608
1608
  return this.conditionStack.length;
1609
1609
  }, "stateStackSize"),
1610
1610
  options: {},
1611
- performAction: /* @__PURE__ */ f(function(e, t, n, r) {
1611
+ performAction: /* @__PURE__ */ u(function(e, t, n, r) {
1612
1612
  switch (n) {
1613
1613
  case 0: return 6;
1614
1614
  case 1: return 7;
@@ -2271,143 +2271,148 @@ var v = (function() {
2271
2271
  }
2272
2272
  };
2273
2273
  })();
2274
- function Z() {
2274
+ function se() {
2275
2275
  this.yy = {};
2276
2276
  }
2277
- return f(Z, "Parser"), Z.prototype = se, se.Parser = Z, new Z();
2277
+ return u(se, "Parser"), se.prototype = oe, oe.Parser = se, new se();
2278
2278
  })();
2279
- v.parser = v;
2280
- var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__PURE__ */ f((e, t) => {
2279
+ y.parser = y;
2280
+ var b = y, x = /* @__PURE__ */ u((e) => r()[e], "getRequiredConfig"), S = /* @__PURE__ */ new Set([
2281
+ "label",
2282
+ "descr",
2283
+ "techn",
2284
+ "type"
2285
+ ]), C = /* @__PURE__ */ u((e, t) => {
2281
2286
  for (let [n, r] of Object.entries(t)) if (r !== void 0) {
2282
2287
  if (typeof r == "object") {
2283
2288
  let [t, n] = Object.entries(r)[0];
2284
- e[t] = n;
2289
+ e[t] = S.has(t) ? { text: n } : n;
2285
2290
  } else e[n] = r;
2286
2291
  }
2287
- }, "assignAttributes"), S = /* @__PURE__ */ f(() => ({
2292
+ }, "assignAttributes"), w = /* @__PURE__ */ u(() => ({
2288
2293
  alias: "global",
2289
2294
  label: { text: "global" },
2290
2295
  type: { text: "global" },
2291
2296
  tags: null,
2292
2297
  link: null,
2293
2298
  parentBoundary: ""
2294
- }), "createGlobalBoundary"), C = [], w = [""], T = "global", E = "", D = [S()], O = [], k = "", A = !1, j = 4, M = 2, N, P = /* @__PURE__ */ f(function() {
2295
- return N;
2296
- }, "getC4Type"), F = /* @__PURE__ */ f(function(e) {
2297
- N = d(e, l());
2298
- }, "setC4Type"), I = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l) {
2299
+ }), "createGlobalBoundary"), T = [], E = [""], D = "global", O = "", k = [w()], A = [], j = "", M = !1, N = 4, P = 2, F, I = /* @__PURE__ */ u(function() {
2300
+ return F;
2301
+ }, "getC4Type"), L = /* @__PURE__ */ u(function(e) {
2302
+ F = l(e, r());
2303
+ }, "setC4Type"), R = /* @__PURE__ */ u(function(e, t, n, r, i, a, o, s, l) {
2299
2304
  if (e == null || t == null || n == null || r == null) return;
2300
- let u = {}, d = O.find((e) => e.from === t && e.to === n);
2301
- if (d ? u = d : O.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn = { text: "" };
2305
+ let u = {}, d = A.find((e) => e.from === t && e.to === n);
2306
+ if (d ? u = d : A.push(u), u.type = e, u.from = t, u.to = n, u.label = { text: r }, i == null) u.techn ??= { text: "" };
2302
2307
  else if (typeof i == "object") {
2303
2308
  let [e, t] = Object.entries(i)[0];
2304
- u[e] = { text: t };
2309
+ u[e] = S.has(e) ? { text: t } : t;
2305
2310
  } else u.techn = { text: i };
2306
- if (a == null) u.descr = { text: "" };
2311
+ if (a == null) u.descr ??= { text: "" };
2307
2312
  else if (typeof a == "object") {
2308
2313
  let [e, t] = Object.entries(a)[0];
2309
- u[e] = { text: t };
2314
+ u[e] = S.has(e) ? { text: t } : t;
2310
2315
  } else u.descr = { text: a };
2311
- x(u, {
2316
+ C(u, {
2312
2317
  sprite: o,
2313
2318
  tags: s,
2314
2319
  link: l
2315
- }), u.wrap = Z();
2316
- }, "addRel"), L = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
2320
+ }), u.wrap = le();
2321
+ }, "addRel"), z = /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
2317
2322
  if (t === null || n === null) return;
2318
- let s = {}, l = C.find((e) => e.alias === t);
2319
- if (l && t === l.alias ? s = l : (s.alias = t, C.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr = { text: "" };
2323
+ let s = {}, l = T.find((e) => e.alias === t);
2324
+ if (l && t === l.alias ? s = l : (s.alias = t, T.push(s)), n == null ? s.label = { text: "" } : s.label = { text: n }, r == null) s.descr ??= { text: "" };
2320
2325
  else if (typeof r == "object") {
2321
2326
  let [e, t] = Object.entries(r)[0];
2322
- s[e] = { text: t };
2327
+ s[e] = S.has(e) ? { text: t } : t;
2323
2328
  } else s.descr = { text: r };
2324
- x(s, {
2329
+ C(s, {
2325
2330
  sprite: i,
2326
2331
  tags: a,
2327
2332
  link: o
2328
- }), s.typeC4Shape = { text: e }, s.parentBoundary = T, s.wrap = Z();
2329
- }, "addPersonOrSystem"), R = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2333
+ }), s.typeC4Shape = { text: e }, s.parentBoundary = D, s.wrap = le();
2334
+ }, "addPersonOrSystem"), B = /* @__PURE__ */ u(function(e, t, n, r, i, a, o, s) {
2330
2335
  if (t === null || n === null) return;
2331
- let l = {}, u = C.find((e) => e.alias === t);
2332
- if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2336
+ let l = {}, u = T.find((e) => e.alias === t);
2337
+ if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
2333
2338
  else if (typeof r == "object") {
2334
2339
  let [e, t] = Object.entries(r)[0];
2335
- l[e] = { text: t };
2340
+ l[e] = S.has(e) ? { text: t } : t;
2336
2341
  } else l.techn = { text: r };
2337
- if (i == null) l.descr = { text: "" };
2342
+ if (i == null) l.descr ??= { text: "" };
2338
2343
  else if (typeof i == "object") {
2339
2344
  let [e, t] = Object.entries(i)[0];
2340
- l[e] = { text: t };
2345
+ l[e] = S.has(e) ? { text: t } : t;
2341
2346
  } else l.descr = { text: i };
2342
- x(l, {
2347
+ C(l, {
2343
2348
  sprite: a,
2344
2349
  tags: o,
2345
2350
  link: s
2346
- }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2347
- }, "addContainer"), z = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2351
+ }), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
2352
+ }, "addContainer"), V = /* @__PURE__ */ u(function(e, t, n, r, i, a, o, s) {
2348
2353
  if (t === null || n === null) return;
2349
- let l = {}, u = C.find((e) => e.alias === t);
2350
- if (u && t === u.alias ? l = u : (l.alias = t, C.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn = { text: "" };
2354
+ let l = {}, u = T.find((e) => e.alias === t);
2355
+ if (u && t === u.alias ? l = u : (l.alias = t, T.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.techn ??= { text: "" };
2351
2356
  else if (typeof r == "object") {
2352
2357
  let [e, t] = Object.entries(r)[0];
2353
- l[e] = { text: t };
2358
+ l[e] = S.has(e) ? { text: t } : t;
2354
2359
  } else l.techn = { text: r };
2355
- if (i == null) l.descr = { text: "" };
2360
+ if (i == null) l.descr ??= { text: "" };
2356
2361
  else if (typeof i == "object") {
2357
2362
  let [e, t] = Object.entries(i)[0];
2358
- l[e] = { text: t };
2363
+ l[e] = S.has(e) ? { text: t } : t;
2359
2364
  } else l.descr = { text: i };
2360
- x(l, {
2365
+ C(l, {
2361
2366
  sprite: a,
2362
2367
  tags: o,
2363
2368
  link: s
2364
- }), l.wrap = Z(), l.typeC4Shape = { text: e }, l.parentBoundary = T;
2365
- }, "addComponent"), B = /* @__PURE__ */ f(function(e, t, n, r, i) {
2369
+ }), l.wrap = le(), l.typeC4Shape = { text: e }, l.parentBoundary = D;
2370
+ }, "addComponent"), H = /* @__PURE__ */ u(function(e, t, n, r, i) {
2366
2371
  if (e === null || t === null) return;
2367
- let a = {}, o = D.find((t) => t.alias === e);
2368
- if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2372
+ let a = {}, o = k.find((t) => t.alias === e);
2373
+ if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "system" };
2369
2374
  else if (typeof n == "object") {
2370
2375
  let [e, t] = Object.entries(n)[0];
2371
- a[e] = { text: t };
2376
+ a[e] = S.has(e) ? { text: t } : t;
2372
2377
  } else a.type = { text: n };
2373
- x(a, {
2378
+ C(a, {
2374
2379
  tags: r,
2375
2380
  link: i
2376
- }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2377
- }, "addPersonOrSystemBoundary"), V = /* @__PURE__ */ f(function(e, t, n, r, i) {
2381
+ }), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
2382
+ }, "addPersonOrSystemBoundary"), U = /* @__PURE__ */ u(function(e, t, n, r, i) {
2378
2383
  if (e === null || t === null) return;
2379
- let a = {}, o = D.find((t) => t.alias === e);
2380
- if (o && e === o.alias ? a = o : (a.alias = e, D.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2384
+ let a = {}, o = k.find((t) => t.alias === e);
2385
+ if (o && e === o.alias ? a = o : (a.alias = e, k.push(a)), t == null ? a.label = { text: "" } : a.label = { text: t }, n == null) a.type = { text: "container" };
2381
2386
  else if (typeof n == "object") {
2382
2387
  let [e, t] = Object.entries(n)[0];
2383
- a[e] = { text: t };
2388
+ a[e] = S.has(e) ? { text: t } : t;
2384
2389
  } else a.type = { text: n };
2385
- x(a, {
2390
+ C(a, {
2386
2391
  tags: r,
2387
2392
  link: i
2388
- }), a.parentBoundary = T, a.wrap = Z(), E = T, T = e, w.push(E);
2389
- }, "addContainerBoundary"), H = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s) {
2393
+ }), a.parentBoundary = D, a.wrap = le(), O = D, D = e, E.push(O);
2394
+ }, "addContainerBoundary"), W = /* @__PURE__ */ u(function(e, t, n, r, i, a, o, s) {
2390
2395
  if (t === null || n === null) return;
2391
- let l = {}, u = D.find((e) => e.alias === t);
2392
- if (u && t === u.alias ? l = u : (l.alias = t, D.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2396
+ let l = {}, u = k.find((e) => e.alias === t);
2397
+ if (u && t === u.alias ? l = u : (l.alias = t, k.push(l)), n == null ? l.label = { text: "" } : l.label = { text: n }, r == null) l.type = { text: "node" };
2393
2398
  else if (typeof r == "object") {
2394
2399
  let [e, t] = Object.entries(r)[0];
2395
- l[e] = { text: t };
2400
+ l[e] = S.has(e) ? { text: t } : t;
2396
2401
  } else l.type = { text: r };
2397
- if (i == null) l.descr = { text: "" };
2402
+ if (i == null) l.descr ??= { text: "" };
2398
2403
  else if (typeof i == "object") {
2399
2404
  let [e, t] = Object.entries(i)[0];
2400
- l[e] = { text: t };
2405
+ l[e] = S.has(e) ? { text: t } : t;
2401
2406
  } else l.descr = { text: i };
2402
- x(l, {
2407
+ C(l, {
2403
2408
  tags: o,
2404
2409
  link: s
2405
- }), l.nodeType = e, l.parentBoundary = T, l.wrap = Z(), E = T, T = t, w.push(E);
2406
- }, "addDeploymentNode"), U = /* @__PURE__ */ f(function() {
2407
- T = E, w.pop(), E = w.pop(), w.push(E);
2408
- }, "popBoundaryParseStack"), W = /* @__PURE__ */ f(function(e, t, n, r, i, a, o, s, l, u, d) {
2409
- let f = C.find((e) => e.alias === t);
2410
- if (!(f === void 0 && (f = D.find((e) => e.alias === t), f === void 0))) {
2410
+ }), l.nodeType = e, l.parentBoundary = D, l.wrap = le(), O = D, D = t, E.push(O);
2411
+ }, "addDeploymentNode"), G = /* @__PURE__ */ u(function() {
2412
+ D = O, E.pop(), O = E.pop(), E.push(O);
2413
+ }, "popBoundaryParseStack"), ee = /* @__PURE__ */ u(function(e, t, n, r, i, a, o, s, l, u, d) {
2414
+ let f = T.find((e) => e.alias === t);
2415
+ if (!(f === void 0 && (f = k.find((e) => e.alias === t), f === void 0))) {
2411
2416
  if (n != null) {
2412
2417
  if (typeof n == "object") {
2413
2418
  let [e, t] = Object.entries(n)[0];
@@ -2463,8 +2468,8 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2463
2468
  } else f.legendSprite = d;
2464
2469
  }
2465
2470
  }
2466
- }, "updateElStyle"), G = /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
2467
- let s = O.find((e) => e.from === t && e.to === n);
2471
+ }, "updateElStyle"), te = /* @__PURE__ */ u(function(e, t, n, r, i, a, o) {
2472
+ let s = A.find((e) => e.from === t && e.to === n);
2468
2473
  if (s !== void 0) {
2469
2474
  if (r != null) {
2470
2475
  if (typeof r == "object") {
@@ -2491,8 +2496,8 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2491
2496
  } else s.offsetY = parseInt(o);
2492
2497
  }
2493
2498
  }
2494
- }, "updateRelStyle"), ee = /* @__PURE__ */ f(function(e, t, n) {
2495
- let r = j, i = M;
2499
+ }, "updateRelStyle"), ne = /* @__PURE__ */ u(function(e, t, n) {
2500
+ let r = N, i = P;
2496
2501
  if (typeof t == "object") {
2497
2502
  let e = Object.values(t)[0];
2498
2503
  r = parseInt(e);
@@ -2501,64 +2506,64 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2501
2506
  let e = Object.values(n)[0];
2502
2507
  i = parseInt(e);
2503
2508
  } else i = parseInt(n);
2504
- r >= 1 && (j = r), i >= 1 && (M = i);
2505
- }, "updateLayoutConfig"), te = /* @__PURE__ */ f(function() {
2506
- return j;
2507
- }, "getC4ShapeInRow"), ne = /* @__PURE__ */ f(function() {
2508
- return M;
2509
- }, "getC4BoundaryInRow"), K = /* @__PURE__ */ f(function() {
2510
- return T;
2511
- }, "getCurrentBoundaryParse"), q = /* @__PURE__ */ f(function() {
2512
- return E;
2513
- }, "getParentBoundaryParse"), J = /* @__PURE__ */ f(function(e) {
2514
- return e == null ? C : C.filter((t) => t.parentBoundary === e);
2515
- }, "getC4ShapeArray"), Y = /* @__PURE__ */ f(function(e) {
2516
- return C.find((t) => t.alias === e);
2517
- }, "getC4Shape"), X = /* @__PURE__ */ f(function(e) {
2518
- return Object.keys(J(e));
2519
- }, "getC4ShapeKeys"), re = /* @__PURE__ */ f(function(e) {
2520
- return e == null ? D : D.filter((t) => t.parentBoundary === e);
2521
- }, "getBoundaries"), ie = re, ae = /* @__PURE__ */ f(function() {
2509
+ r >= 1 && (N = r), i >= 1 && (P = i);
2510
+ }, "updateLayoutConfig"), K = /* @__PURE__ */ u(function() {
2511
+ return N;
2512
+ }, "getC4ShapeInRow"), q = /* @__PURE__ */ u(function() {
2513
+ return P;
2514
+ }, "getC4BoundaryInRow"), J = /* @__PURE__ */ u(function() {
2515
+ return D;
2516
+ }, "getCurrentBoundaryParse"), Y = /* @__PURE__ */ u(function() {
2522
2517
  return O;
2523
- }, "getRels"), oe = /* @__PURE__ */ f(function() {
2524
- return k;
2525
- }, "getTitle"), se = /* @__PURE__ */ f(function(e) {
2526
- A = e;
2527
- }, "setWrap"), Z = /* @__PURE__ */ f(function() {
2518
+ }, "getParentBoundaryParse"), X = /* @__PURE__ */ u(function(e) {
2519
+ return e == null ? T : T.filter((t) => t.parentBoundary === e);
2520
+ }, "getC4ShapeArray"), re = /* @__PURE__ */ u(function(e) {
2521
+ return T.find((t) => t.alias === e) ?? k.find((t) => t.alias === e);
2522
+ }, "getC4Shape"), ie = /* @__PURE__ */ u(function(e) {
2523
+ return Object.keys(X(e));
2524
+ }, "getC4ShapeKeys"), Z = /* @__PURE__ */ u(function(e) {
2525
+ return e == null ? k : k.filter((t) => t.parentBoundary === e);
2526
+ }, "getBoundaries"), ae = Z, oe = /* @__PURE__ */ u(function() {
2528
2527
  return A;
2529
- }, "autoWrap"), ce = {
2530
- addPersonOrSystem: L,
2531
- addPersonOrSystemBoundary: B,
2532
- addContainer: R,
2533
- addContainerBoundary: V,
2534
- addComponent: z,
2535
- addDeploymentNode: H,
2536
- popBoundaryParseStack: U,
2537
- addRel: I,
2538
- updateElStyle: W,
2539
- updateRelStyle: G,
2540
- updateLayoutConfig: ee,
2541
- autoWrap: Z,
2542
- setWrap: se,
2543
- getC4ShapeArray: J,
2544
- getC4Shape: Y,
2545
- getC4ShapeKeys: X,
2546
- getBoundaries: re,
2547
- getBoundarys: ie,
2548
- getCurrentBoundaryParse: K,
2549
- getParentBoundaryParse: q,
2550
- getRels: ae,
2551
- getTitle: oe,
2552
- getC4Type: P,
2553
- getC4ShapeInRow: te,
2554
- getC4BoundaryInRow: ne,
2555
- setAccTitle: r,
2556
- getAccTitle: u,
2557
- getAccDescription: s,
2558
- setAccDescription: n,
2559
- getConfig: /* @__PURE__ */ f(() => b("c4"), "getConfig"),
2560
- clear: /* @__PURE__ */ f(function() {
2561
- C = [], D = [S()], E = "", T = "global", w = [""], O = [], w = [""], k = "", A = !1, j = 4, M = 2;
2528
+ }, "getRels"), se = /* @__PURE__ */ u(function() {
2529
+ return j;
2530
+ }, "getTitle"), ce = /* @__PURE__ */ u(function(e) {
2531
+ M = e;
2532
+ }, "setWrap"), le = /* @__PURE__ */ u(function() {
2533
+ return M;
2534
+ }, "autoWrap"), ue = {
2535
+ addPersonOrSystem: z,
2536
+ addPersonOrSystemBoundary: H,
2537
+ addContainer: B,
2538
+ addContainerBoundary: U,
2539
+ addComponent: V,
2540
+ addDeploymentNode: W,
2541
+ popBoundaryParseStack: G,
2542
+ addRel: R,
2543
+ updateElStyle: ee,
2544
+ updateRelStyle: te,
2545
+ updateLayoutConfig: ne,
2546
+ autoWrap: le,
2547
+ setWrap: ce,
2548
+ getC4ShapeArray: X,
2549
+ getC4Shape: re,
2550
+ getC4ShapeKeys: ie,
2551
+ getBoundaries: Z,
2552
+ getBoundarys: ae,
2553
+ getCurrentBoundaryParse: J,
2554
+ getParentBoundaryParse: Y,
2555
+ getRels: oe,
2556
+ getTitle: se,
2557
+ getC4Type: I,
2558
+ getC4ShapeInRow: K,
2559
+ getC4BoundaryInRow: q,
2560
+ setAccTitle: t,
2561
+ getAccTitle: s,
2562
+ getAccDescription: n,
2563
+ setAccDescription: e,
2564
+ getConfig: /* @__PURE__ */ u(() => x("c4"), "getConfig"),
2565
+ clear: /* @__PURE__ */ u(function() {
2566
+ T = [], k = [w()], O = "", D = "global", E = [""], A = [], E = [""], j = "", M = !1, N = 4, P = 2;
2562
2567
  }, "clear"),
2563
2568
  LINETYPE: {
2564
2569
  SOLID: 0,
@@ -2594,13 +2599,13 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2594
2599
  RIGHTOF: 1,
2595
2600
  OVER: 2
2596
2601
  },
2597
- setTitle: /* @__PURE__ */ f(function(e) {
2598
- k = d(e, l());
2602
+ setTitle: /* @__PURE__ */ u(function(e) {
2603
+ j = l(e, r());
2599
2604
  }, "setTitle"),
2600
- setC4Type: F
2601
- }, le = /* @__PURE__ */ f(function(e, t) {
2602
- return _(e, t);
2603
- }, "drawRect"), ue = /* @__PURE__ */ f((e, t, n, r) => {
2605
+ setC4Type: L
2606
+ }, de = /* @__PURE__ */ u(function(e, t) {
2607
+ return v(e, t);
2608
+ }, "drawRect"), fe = /* @__PURE__ */ u((e, t, n, r) => {
2604
2609
  let i = e.append("g"), a = 0;
2605
2610
  for (let e of t) {
2606
2611
  let t = e.textColor ? e.textColor : "#444444", o = e.lineColor ? e.lineColor : "#444444", s = e.offsetX ? parseInt(String(e.offsetX)) : 0, l = e.offsetY ? parseInt(String(e.offsetY)) : 0;
@@ -2612,17 +2617,17 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2612
2617
  t.attr("fill", "none").attr("stroke-width", "1").attr("stroke", o).attr("d", "Mstartx,starty Qcontrolx,controly stopx,stopy ".replaceAll("startx", e.startPoint.x).replaceAll("starty", e.startPoint.y).replaceAll("controlx", e.startPoint.x + (e.endPoint.x - e.startPoint.x) / 2 - (e.endPoint.x - e.startPoint.x) / 4).replaceAll("controly", e.startPoint.y + (e.endPoint.y - e.startPoint.y) / 2).replaceAll("stopx", e.endPoint.x).replaceAll("stopy", e.endPoint.y)), e.type !== "rel_b" && t.attr("marker-end", "url(#" + r + "-arrowhead)"), (e.type === "birel" || e.type === "rel_b") && t.attr("marker-start", "url(#" + r + "-arrowend)");
2613
2618
  }
2614
2619
  let u = e.label.width, d = n.messageFont();
2615
- ye(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), ye(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
2620
+ xe(n)(e.label.text, i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + l, u, e.label.height, { fill: t }, d), e.techn && e.techn.text !== "" && (d = n.messageFont(), xe(n)("[" + e.techn.text + "]", i, Math.min(e.startPoint.x, e.endPoint.x) + Math.abs(e.endPoint.x - e.startPoint.x) / 2 + s, Math.min(e.startPoint.y, e.endPoint.y) + Math.abs(e.endPoint.y - e.startPoint.y) / 2 + n.messageFontSize + 5 + l, Math.max(u, e.techn.width), e.techn.height, {
2616
2621
  fill: t,
2617
2622
  "font-style": "italic"
2618
2623
  }, d));
2619
2624
  }
2620
- }, "drawRels"), de = /* @__PURE__ */ f(function(e, t, n) {
2625
+ }, "drawRels"), pe = /* @__PURE__ */ u(function(e, t, n) {
2621
2626
  let r = e.append("g"), i = t.bgColor ? t.bgColor : "none", a = t.borderColor ? t.borderColor : "#444444", o = t.fontColor ? t.fontColor : "black", s = {
2622
2627
  "stroke-width": 1,
2623
2628
  "stroke-dasharray": "7.0,7.0"
2624
2629
  };
2625
- t.nodeType && (s = { "stroke-width": 1 }), le(r, {
2630
+ t.nodeType && (s = { "stroke-width": 1 }), de(r, {
2626
2631
  x: t.x,
2627
2632
  y: t.y,
2628
2633
  fill: i,
@@ -2634,27 +2639,27 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2634
2639
  attrs: s
2635
2640
  });
2636
2641
  let l = n.boundaryFont();
2637
- l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, ye(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, ye(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, ye(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2638
- }, "drawBoundary"), fe = /* @__PURE__ */ f(function(e, t) {
2642
+ l.fontWeight = "bold", l.fontSize += 2, l.fontColor = o, xe(n)(t.label.text, r, t.x, t.y + t.label.Y, t.width, t.height, { fill: "#444444" }, l), t.type && t.type.text !== "" && (l = n.boundaryFont(), l.fontColor = o, xe(n)(t.type.text, r, t.x, t.y + t.type.Y, t.width, t.height, { fill: "#444444" }, l)), t.descr && t.descr.text !== "" && (l = n.boundaryFont(), l.fontSize -= 2, l.fontColor = o, xe(n)(t.descr.text, r, t.x, t.y + t.descr.Y, t.width, t.height, { fill: "#444444" }, l));
2643
+ }, "drawBoundary"), me = /* @__PURE__ */ u(function(e, t) {
2639
2644
  e.append("defs").append("symbol").attr("id", t + "-database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr("d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z");
2640
- }, "insertDatabaseIcon"), pe = /* @__PURE__ */ f(function(e, t) {
2645
+ }, "insertDatabaseIcon"), he = /* @__PURE__ */ u(function(e, t) {
2641
2646
  e.append("defs").append("symbol").attr("id", t + "-computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z");
2642
- }, "insertComputerIcon"), me = /* @__PURE__ */ f(function(e, t) {
2647
+ }, "insertComputerIcon"), ge = /* @__PURE__ */ u(function(e, t) {
2643
2648
  e.append("defs").append("symbol").attr("id", t + "-clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr("d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z");
2644
- }, "insertClockIcon"), he = /* @__PURE__ */ f(function(e, t) {
2649
+ }, "insertClockIcon"), _e = /* @__PURE__ */ u(function(e, t) {
2645
2650
  e.append("defs").append("marker").attr("id", t + "-arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z");
2646
- }, "insertArrowHead"), ge = /* @__PURE__ */ f(function(e, t) {
2651
+ }, "insertArrowHead"), ve = /* @__PURE__ */ u(function(e, t) {
2647
2652
  e.append("defs").append("marker").attr("id", t + "-arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z");
2648
- }, "insertArrowEnd"), _e = /* @__PURE__ */ f(function(e, t) {
2653
+ }, "insertArrowEnd"), ye = /* @__PURE__ */ u(function(e, t) {
2649
2654
  e.append("defs").append("marker").attr("id", t + "-filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
2650
- }, "insertArrowFilledHead"), ve = /* @__PURE__ */ f(function(e, t) {
2655
+ }, "insertArrowFilledHead"), be = /* @__PURE__ */ u(function(e, t) {
2651
2656
  let n = e.append("defs").append("marker").attr("id", t + "-crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4);
2652
2657
  n.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), n.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7");
2653
- }, "insertArrowCrossHead"), ye = /* @__PURE__ */ (function() {
2658
+ }, "insertArrowCrossHead"), xe = /* @__PURE__ */ (function() {
2654
2659
  function e(e, t, n, i, a, o, s) {
2655
2660
  r(t.append("text").attr("x", n + a / 2).attr("y", i + o / 2 + 5).style("text-anchor", "middle").text(e), s);
2656
2661
  }
2657
- f(e, "byText");
2662
+ u(e, "byText");
2658
2663
  function t(e, t, n, i, a, s, l, u) {
2659
2664
  let { fontSize: d, fontFamily: f, fontWeight: p } = u, m = e.split(o.lineBreakRegex);
2660
2665
  for (let e = 0; e < m.length; e++) {
@@ -2662,57 +2667,57 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2662
2667
  s.append("tspan").attr("dy", o).text(m[e]).attr("alignment-baseline", "mathematical"), r(s, l);
2663
2668
  }
2664
2669
  }
2665
- f(t, "byTspan");
2670
+ u(t, "byTspan");
2666
2671
  function n(e, n, i, a, o, s, l, u) {
2667
2672
  let d = n.append("switch"), f = d.append("foreignObject").attr("x", i).attr("y", a).attr("width", o).attr("height", s).append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
2668
2673
  f.append("div").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), t(e, d, i, a, o, s, l, u), r(f, l);
2669
2674
  }
2670
- f(n, "byFo");
2675
+ u(n, "byFo");
2671
2676
  function r(e, t) {
2672
2677
  for (let n in t) t.hasOwnProperty(n) && e.attr(n, t[n]);
2673
2678
  }
2674
- return f(r, "_setTextAttrs"), function(r) {
2679
+ return u(r, "_setTextAttrs"), function(r) {
2675
2680
  return r.textPlacement === "fo" ? n : r.textPlacement === "old" ? e : t;
2676
2681
  };
2677
2682
  })(), Q = {
2678
- drawRect: le,
2679
- drawBoundary: de,
2680
- drawRels: ue,
2681
- insertArrowHead: he,
2682
- insertArrowEnd: ge,
2683
- insertArrowFilledHead: _e,
2684
- insertArrowCrossHead: ve,
2685
- insertDatabaseIcon: fe,
2686
- insertComputerIcon: pe,
2687
- insertClockIcon: me
2688
- }, be = /* @__PURE__ */ f((e, n) => {
2689
- if (n === "sandbox") {
2690
- let n = t("#i" + e).node()?.contentDocument;
2691
- if (!n) throw Error(`Sandbox iframe #i${e} is missing its content document`);
2683
+ drawRect: de,
2684
+ drawBoundary: pe,
2685
+ drawRels: fe,
2686
+ insertArrowHead: _e,
2687
+ insertArrowEnd: ve,
2688
+ insertArrowFilledHead: ye,
2689
+ insertArrowCrossHead: be,
2690
+ insertDatabaseIcon: me,
2691
+ insertComputerIcon: he,
2692
+ insertClockIcon: ge
2693
+ }, Se = /* @__PURE__ */ u((e, t) => {
2694
+ if (t === "sandbox") {
2695
+ let t = f("#i" + e).node()?.contentDocument;
2696
+ if (!t) throw Error(`Sandbox iframe #i${e} is missing its content document`);
2692
2697
  return {
2693
- root: t(n.body),
2694
- doc: n
2698
+ root: f(t.body),
2699
+ doc: t
2695
2700
  };
2696
2701
  }
2697
2702
  return {
2698
- root: t("body"),
2703
+ root: f("body"),
2699
2704
  doc: document
2700
2705
  };
2701
- }, "getDiagramRoot"), xe = /* @__PURE__ */ new Set([
2706
+ }, "getDiagramRoot"), Ce = /* @__PURE__ */ new Set([
2702
2707
  "system_queue",
2703
2708
  "external_system_queue",
2704
2709
  "container_queue",
2705
2710
  "external_container_queue",
2706
2711
  "component_queue",
2707
2712
  "external_component_queue"
2708
- ]), Se = /* @__PURE__ */ new Set([
2713
+ ]), we = /* @__PURE__ */ new Set([
2709
2714
  "system_db",
2710
2715
  "external_system_db",
2711
2716
  "container_db",
2712
2717
  "external_container_db",
2713
2718
  "component_db",
2714
2719
  "external_component_db"
2715
- ]), Ce = {
2720
+ ]), Te = {
2716
2721
  person: "person",
2717
2722
  box: "rounded",
2718
2723
  rounded: "rounded",
@@ -2722,27 +2727,27 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2722
2727
  queue: "h-cyl",
2723
2728
  pipe: "h-cyl",
2724
2729
  component: "fr-rect"
2725
- }, we = /* @__PURE__ */ f((e) => e ? Ce[e.toLowerCase()] : void 0, "keywordShape"), Te = /* @__PURE__ */ f((e) => {
2726
- let t = we(e.shape) ?? we(e.sprite);
2730
+ }, Ee = /* @__PURE__ */ u((e) => e ? Te[e.toLowerCase()] : void 0, "keywordShape"), De = /* @__PURE__ */ u((e) => {
2731
+ let t = Ee(e.shape) ?? Ee(e.sprite);
2727
2732
  if (t) return t;
2728
2733
  if (e.tags) for (let t of e.tags.split(",")) {
2729
- let e = we(t.trim());
2734
+ let e = Ee(t.trim());
2730
2735
  if (e) return e;
2731
2736
  }
2732
2737
  let n = e.typeC4Shape.text;
2733
- return n === "person" || n === "external_person" ? "person" : Se.has(n) ? "cylinder" : xe.has(n) ? "h-cyl" : "rounded";
2734
- }, "resolveNodeShape"), Ee = {
2738
+ return n === "person" || n === "external_person" ? "person" : we.has(n) ? "cylinder" : Ce.has(n) ? "h-cyl" : "rounded";
2739
+ }, "resolveNodeShape"), Oe = {
2735
2740
  person: "Person",
2736
2741
  system: "Software System",
2737
2742
  container: "Container",
2738
2743
  component: "Component"
2739
- }, De = /* @__PURE__ */ f((e) => {
2744
+ }, ke = /* @__PURE__ */ u((e) => {
2740
2745
  let t = e.replace(/^external_/, "").replace(/_(db|queue)$/, "");
2741
- return Ee[t] ?? t.replace(/_/g, " ");
2742
- }, "stereotypeLabel"), Oe = /* @__PURE__ */ f((e) => e.startsWith("external_"), "isExternal"), ke = /* @__PURE__ */ f((e) => {
2743
- let t = De(e.typeC4Shape.text);
2746
+ return Oe[t] ?? t.replace(/_/g, " ");
2747
+ }, "stereotypeLabel"), Ae = /* @__PURE__ */ u((e) => e.startsWith("external_"), "isExternal"), je = /* @__PURE__ */ u((e) => {
2748
+ let t = ke(e.typeC4Shape.text);
2744
2749
  return e.techn?.text ? `[${t}: ${e.techn.text}]` : `[${t}]`;
2745
- }, "stereotypeText"), Ae = [
2750
+ }, "stereotypeText"), Me = [
2746
2751
  "person",
2747
2752
  "system",
2748
2753
  "system_db",
@@ -2753,17 +2758,17 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2753
2758
  "component",
2754
2759
  "component_db",
2755
2760
  "component_queue"
2756
- ].flatMap((e) => [e, `external_${e}`]), je = new Set(Ae), Me = /* @__PURE__ */ f((e) => je.has(e), "isC4ElementType"), Ne = /* @__PURE__ */ f((e, t) => {
2757
- let n = e.typeC4Shape.text, r = e.bgColor ?? (Me(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Me(n) && t[`${n}_border_color`]), a = [];
2761
+ ].flatMap((e) => [e, `external_${e}`]), Ne = new Set(Me), Pe = /* @__PURE__ */ u((e) => Ne.has(e), "isC4ElementType"), Fe = /* @__PURE__ */ u((e, t) => {
2762
+ let n = e.typeC4Shape.text, r = e.bgColor ?? (Pe(n) && t[`${n}_bg_color`]), i = e.borderColor ?? (Pe(n) && t[`${n}_border_color`]), a = [];
2758
2763
  return r && a.push(`fill:${r}`), i && a.push(`stroke:${i}`), a.push(`color:${e.fontColor ?? "#FFFFFF"}`), a;
2759
- }, "elementCssStyles"), Pe = /* @__PURE__ */ f((e, t, n, r, i) => {
2764
+ }, "elementCssStyles"), Ie = /* @__PURE__ */ u((e, t, n, r, i) => {
2760
2765
  let a = e.typeC4Shape.text, o = ["c4-shape", `c4-${a}`];
2761
- Oe(a) && o.push("c4-external");
2762
- let s = Te(e), l = Ne(e, t);
2766
+ Ae(a) && o.push("c4-external");
2767
+ let s = De(e), l = Fe(e, t);
2763
2768
  return (s === "rounded" || s === "fr-rect") && l.push("rx:12px", "ry:12px"), {
2764
2769
  id: e.alias,
2765
2770
  label: e.label.text,
2766
- stereotype: ke(e),
2771
+ stereotype: je(e),
2767
2772
  description: e.descr?.text ? [e.descr.text] : void 0,
2768
2773
  labelType: "string",
2769
2774
  isGroup: !1,
@@ -2775,14 +2780,14 @@ var y = v, b = /* @__PURE__ */ f((e) => l()[e], "getRequiredConfig"), x = /* @__
2775
2780
  useHtmlLabels: !1,
2776
2781
  width: i
2777
2782
  };
2778
- }, "buildC4Node"), Fe = 0, Ie = 0, Le = 4, Re = 2;
2779
- v.yy = ce;
2780
- var $ = {}, ze = class {
2783
+ }, "buildC4Node"), Le = 0, Re = 0, ze = 4, Be = 2;
2784
+ y.yy = ue;
2785
+ var $ = {}, Ve = class {
2781
2786
  static {
2782
- f(this, "Bounds");
2787
+ u(this, "Bounds");
2783
2788
  }
2784
2789
  constructor(e) {
2785
- this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, Be(e.db.getConfig());
2790
+ this.name = "", this.data = {}, this.data.startx = void 0, this.data.stopx = void 0, this.data.starty = void 0, this.data.stopy = void 0, this.data.widthLimit = void 0, this.nextData = {}, this.nextData.startx = void 0, this.nextData.stopx = void 0, this.nextData.starty = void 0, this.nextData.stopy = void 0, this.nextData.cnt = 0, He(e.db.getConfig());
2786
2791
  }
2787
2792
  setData(e, t, n, r) {
2788
2793
  this.nextData.startx = this.data.startx = e, this.nextData.stopx = this.data.stopx = t, this.nextData.starty = this.data.starty = n, this.nextData.stopy = this.data.stopy = r;
@@ -2793,7 +2798,7 @@ var $ = {}, ze = class {
2793
2798
  insert(e) {
2794
2799
  this.nextData.cnt = this.nextData.cnt + 1;
2795
2800
  let t = this.nextData.stopx, n = this.data.widthLimit, r = this.nextData.startx === this.nextData.stopx ? t + e.margin : t + e.margin * 2, i = r + e.width, a = this.nextData.starty + e.margin * 2, o = a + e.height;
2796
- (r >= n || i >= n || this.nextData.cnt > Le) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
2801
+ (r >= n || i >= n || this.nextData.cnt > ze) && (r = this.nextData.startx + e.margin + $.nextLinePaddingX, a = this.nextData.stopy + e.margin * 2, this.nextData.stopx = i = r + e.width, this.nextData.starty = this.nextData.stopy, this.nextData.stopy = o = a + e.height, this.nextData.cnt = 1), e.x = r, e.y = a, this.updateVal(this.data, "startx", r, Math.min), this.updateVal(this.data, "starty", a, Math.min), this.updateVal(this.data, "stopx", i, Math.max), this.updateVal(this.data, "stopy", o, Math.max), this.updateVal(this.nextData, "startx", r, Math.min), this.updateVal(this.nextData, "starty", a, Math.min), this.updateVal(this.nextData, "stopx", i, Math.max), this.updateVal(this.nextData, "stopy", o, Math.max);
2797
2802
  }
2798
2803
  init(e) {
2799
2804
  this.name = "", this.data = {
@@ -2808,102 +2813,107 @@ var $ = {}, ze = class {
2808
2813
  starty: void 0,
2809
2814
  stopy: void 0,
2810
2815
  cnt: 0
2811
- }, Be(e.db.getConfig());
2816
+ }, He(e.db.getConfig());
2812
2817
  }
2813
2818
  bumpLastMargin(e) {
2814
2819
  this.data.stopx += e, this.data.stopy += e;
2815
2820
  }
2816
- }, Be = /* @__PURE__ */ f(function(e) {
2821
+ }, He = /* @__PURE__ */ u(function(e) {
2817
2822
  a($, e), e?.fontFamily && ($.personFontFamily = $.systemFontFamily = $.messageFontFamily = e.fontFamily), e?.fontSize && ($.personFontSize = $.systemFontSize = $.messageFontSize = e.fontSize), e?.fontWeight && ($.personFontWeight = $.systemFontWeight = $.messageFontWeight = e.fontWeight);
2818
- }, "setConf"), Ve = /* @__PURE__ */ f((e) => ({
2823
+ }, "setConf"), Ue = /* @__PURE__ */ u((e) => ({
2819
2824
  fontFamily: e.boundaryFontFamily,
2820
2825
  fontSize: e.boundaryFontSize,
2821
2826
  fontWeight: e.boundaryFontWeight
2822
- }), "boundaryFont"), He = /* @__PURE__ */ f((e) => ({
2827
+ }), "boundaryFont"), We = /* @__PURE__ */ u((e) => ({
2823
2828
  fontFamily: e.messageFontFamily,
2824
2829
  fontSize: e.messageFontSize,
2825
2830
  fontWeight: e.messageFontWeight
2826
2831
  }), "messageFont");
2827
- function Ue(e, t, n, r, i) {
2832
+ function Ge(e, t, n, r, i) {
2828
2833
  let a = t[e];
2829
2834
  if (!a.width) {
2830
- if (n) a.text = p(a.text, i, r), a.textLines = a.text.split(o.lineBreakRegex).length, a.width = i, a.height = m(a.text, r);
2835
+ if (n) a.text = h(a.text, i, r), a.textLines = a.text.split(o.lineBreakRegex).length, a.width = i, a.height = p(a.text, r);
2831
2836
  else {
2832
2837
  let e = a.text.split(o.lineBreakRegex);
2833
2838
  a.textLines = e.length;
2834
2839
  let t = 0;
2835
2840
  a.height = 0, a.width = 0;
2836
- for (let n of e) a.width = Math.max(h(n, r), a.width), t = m(n, r), a.height += t;
2841
+ for (let n of e) a.width = Math.max(m(n, r), a.width), t = p(n, r), a.height += t;
2837
2842
  }
2838
2843
  }
2839
2844
  return a;
2840
2845
  }
2841
- f(Ue, "calcC4ShapeTextWH");
2842
- var We = /* @__PURE__ */ f(function(e, t, n) {
2846
+ u(Ge, "calcC4ShapeTextWH");
2847
+ var Ke = /* @__PURE__ */ u(function(e, t, n) {
2843
2848
  let r = n.data.startx, i = n.data.starty;
2844
- t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.label.y = $.c4ShapeMargin - 35;
2845
- let a = t.wrap && $.wrap, o = Ve($);
2846
- o.fontSize += 2, o.fontWeight = "bold", Ue("label", t, a, o, h(t.label.text, o)), Q.drawBoundary(e, t, $);
2847
- }, "drawBoundary"), Ge = /* @__PURE__ */ f(async function(e, t, n, r) {
2848
- let i = l(), a = i.look ?? "classic", o = { config: i }, s = t.attr("id") ?? "", u = r.map((e) => n[Number(e)]), d = /* @__PURE__ */ f((e) => {
2849
- let t = e.shape ? g[e.shape] : void 0;
2849
+ t.x = r, t.y = i, t.width = n.data.stopx - r, t.height = n.data.stopy - i, t.intersect = (e) => g.rect({
2850
+ x: t.x + t.width / 2,
2851
+ y: t.y + t.height / 2,
2852
+ width: t.width,
2853
+ height: t.height
2854
+ }, e), t.label.y = $.c4ShapeMargin - 35;
2855
+ let a = t.wrap && $.wrap, o = Ue($);
2856
+ o.fontSize += 2, o.fontWeight = "bold", Ge("label", t, a, o, m(t.label.text, o)), Q.drawBoundary(e, t, $);
2857
+ }, "drawBoundary"), qe = /* @__PURE__ */ u(async function(e, t, n, i) {
2858
+ let a = r(), o = a.look ?? "classic", s = { config: a }, l = t.attr("id") ?? "", d = i.map((e) => n[Number(e)]), f = /* @__PURE__ */ u((e) => {
2859
+ let t = e.shape ? _[e.shape] : void 0;
2850
2860
  if (!t) throw Error(`C4: no shape handler for "${e.shape}"`);
2851
2861
  return t;
2852
2862
  }, "shapeHandlerFor");
2853
- await Promise.all(u.map(async (e) => {
2854
- let n = Pe(e, $, $.c4ShapePadding, a, $.width);
2855
- n.domId = `${s}-${n.id}`;
2856
- let r = await d(n)(t, n, o);
2863
+ await Promise.all(d.map(async (e) => {
2864
+ let n = Ie(e, $, $.c4ShapePadding, o, $.width);
2865
+ n.domId = `${l}-${n.id}`;
2866
+ let r = await f(n)(t, n, s);
2857
2867
  e.width = n.width ?? $.width, e.height = n.height ?? $.height, e.margin = $.c4ShapeMargin, r.remove();
2858
2868
  }));
2859
- for (let t of u) e.insert(t);
2860
- await Promise.all(u.map(async (e) => {
2861
- let n = Pe(e, $, $.c4ShapePadding, a, $.width);
2862
- n.domId = `${s}-${n.id}`, n.x = e.x + e.width / 2, n.y = e.y + e.height / 2;
2869
+ for (let t of d) e.insert(t);
2870
+ await Promise.all(d.map(async (e) => {
2871
+ let n = Ie(e, $, $.c4ShapePadding, o, $.width);
2872
+ n.domId = `${l}-${n.id}`, n.x = e.x + e.width / 2, n.y = e.y + e.height / 2;
2863
2873
  let r = t.append("g").attr("transform", `translate(${e.x + e.width / 2}, ${e.y + e.height / 2})`);
2864
- await d(n)(r, n, o), e.intersect = n.intersect;
2874
+ await f(n)(r, n, s), e.intersect = n.intersect;
2865
2875
  })), e.bumpLastMargin($.c4ShapeMargin);
2866
- }, "drawC4ShapeArray"), Ke = class {
2876
+ }, "drawC4ShapeArray"), Je = class {
2867
2877
  static {
2868
- f(this, "Point");
2878
+ u(this, "Point");
2869
2879
  }
2870
2880
  constructor(e, t) {
2871
2881
  this.x = e, this.y = t;
2872
2882
  }
2873
- }, qe = /* @__PURE__ */ f(function(e, t) {
2874
- if (!e.intersect) throw Error(`C4 shape "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2883
+ }, Ye = /* @__PURE__ */ u(function(e, t) {
2884
+ if (!e.intersect) throw Error(`C4 element "${e.alias}" has no intersect function. Please report this to https://github.com/mermaid-js/mermaid/issues`);
2875
2885
  let { x: n, y: r } = e.intersect(t);
2876
- return new Ke(n, r);
2877
- }, "getIntersectPoint"), Je = /* @__PURE__ */ f(function(e, t) {
2886
+ return new Je(n, r);
2887
+ }, "getIntersectPoint"), Xe = /* @__PURE__ */ u(function(e, t) {
2878
2888
  let n = {
2879
2889
  x: 0,
2880
2890
  y: 0
2881
2891
  };
2882
2892
  n.x = t.x + t.width / 2, n.y = t.y + t.height / 2;
2883
- let r = qe(e, n);
2893
+ let r = Ye(e, n);
2884
2894
  return n.x = e.x + e.width / 2, n.y = e.y + e.height / 2, {
2885
2895
  startPoint: r,
2886
- endPoint: qe(t, n)
2896
+ endPoint: Ye(t, n)
2887
2897
  };
2888
- }, "getIntersectPoints"), Ye = /* @__PURE__ */ f(function(e, t, n, r, i) {
2898
+ }, "getIntersectPoints"), Ze = /* @__PURE__ */ u(function(e, t, n, r, i) {
2889
2899
  let a = r.db.getC4Type(), o = 0;
2890
2900
  for (let e of t) {
2891
2901
  o += 1;
2892
- let t = e.wrap && $.wrap, r = He($);
2902
+ let t = e.wrap && $.wrap, r = We($);
2893
2903
  a === "C4Dynamic" && (e.label.text = o + ": " + e.label.text);
2894
- let i = h(e.label.text, r);
2895
- Ue("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = h(e.techn.text, r), Ue("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = h(e.descr.text, r), Ue("descr", e, t, r, i));
2904
+ let i = m(e.label.text, r);
2905
+ Ge("label", e, t, r, i), e.techn && e.techn.text !== "" && (i = m(e.techn.text, r), Ge("techn", e, t, r, i)), e.descr && e.descr.text !== "" && (i = m(e.descr.text, r), Ge("descr", e, t, r, i));
2896
2906
  let s = n(e.from), l = n(e.to);
2897
- if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape`);
2898
- let u = Je(s, l);
2907
+ if (!s || !l) throw Error(`C4 rel "${e.from}" -> "${e.to}" references an unknown shape or boundary`);
2908
+ let u = Xe(s, l);
2899
2909
  if (!u.startPoint || !u.endPoint) throw Error(`Could not calculate intersection points for rel "${e.from}" -> "${e.to}"`);
2900
2910
  e.startPoint = u.startPoint, e.endPoint = u.endPoint;
2901
2911
  }
2902
2912
  Q.drawRels(e, t, $, i);
2903
2913
  }, "drawRels");
2904
- async function Xe(e, t, n, r, i) {
2905
- let a = i.db, o = new ze(i);
2906
- o.data.widthLimit = n.data.widthLimit / Math.min(Re, r.length);
2914
+ async function Qe(e, t, n, r, i) {
2915
+ let a = i.db, o = new Ve(i);
2916
+ o.data.widthLimit = n.data.widthLimit / Math.min(Be, r.length);
2907
2917
  for (let [s, l] of r.entries()) {
2908
2918
  let r = 0;
2909
2919
  l.image = {
@@ -2911,21 +2921,21 @@ async function Xe(e, t, n, r, i) {
2911
2921
  height: 0,
2912
2922
  Y: 0
2913
2923
  }, l.sprite && (l.image.width = 48, l.image.height = 48, l.image.Y = r, r = l.image.Y + l.image.height);
2914
- let u = l.wrap && $.wrap, d = Ve($);
2924
+ let u = l.wrap && $.wrap, d = Ue($);
2915
2925
  d.fontSize += 2, d.fontWeight = "bold";
2916
- let f = Ue("label", l, u, d, o.data.widthLimit);
2926
+ let f = Ge("label", l, u, d, o.data.widthLimit);
2917
2927
  if (f.Y = r + 8, r = f.Y + f.height, l.type && l.type.text !== "") {
2918
2928
  l.type.text = "[" + l.type.text + "]";
2919
- let e = Ue("type", l, u, Ve($), o.data.widthLimit);
2929
+ let e = Ge("type", l, u, Ue($), o.data.widthLimit);
2920
2930
  e.Y = r + 5, r = e.Y + e.height;
2921
2931
  }
2922
2932
  if (l.descr && l.descr.text !== "") {
2923
- let e = Ve($);
2933
+ let e = Ue($);
2924
2934
  e.fontSize -= 2;
2925
- let t = Ue("descr", l, u, e, o.data.widthLimit);
2935
+ let t = Ge("descr", l, u, e, o.data.widthLimit);
2926
2936
  t.Y = r + 20, r = t.Y + t.height;
2927
2937
  }
2928
- if (s == 0 || s % Re === 0) {
2938
+ if (s == 0 || s % Be === 0) {
2929
2939
  let e = n.data.startx + $.diagramMarginX, t = n.data.stopy + $.diagramMarginY + r;
2930
2940
  o.setData(e, e, t, t);
2931
2941
  } else {
@@ -2934,47 +2944,47 @@ async function Xe(e, t, n, r, i) {
2934
2944
  }
2935
2945
  o.name = l.alias;
2936
2946
  let p = a.getC4ShapeArray(l.alias), m = a.getC4ShapeKeys(l.alias);
2937
- m.length > 0 && await Ge(o, e, p, m), t = l.alias;
2947
+ m.length > 0 && await qe(o, e, p, m), t = l.alias;
2938
2948
  let h = a.getBoundaries(t);
2939
- h.length > 0 && await Xe(e, t, o, h, i), l.alias !== "global" && We(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Fe = Math.max(Fe, n.data.stopx), Ie = Math.max(Ie, n.data.stopy);
2949
+ h.length > 0 && await Qe(e, t, o, h, i), l.alias !== "global" && Ke(e, l, o), n.data.stopy = Math.max(o.data.stopy + $.c4ShapeMargin, n.data.stopy), n.data.stopx = Math.max(o.data.stopx + $.c4ShapeMargin, n.data.stopx), Le = Math.max(Le, n.data.stopx), Re = Math.max(Re, n.data.stopy);
2940
2950
  }
2941
2951
  }
2942
- f(Xe, "drawInsideBoundary");
2943
- var Ze = {
2944
- drawPersonOrSystemArray: Ge,
2945
- drawBoundary: We,
2946
- setConf: Be,
2947
- draw: /* @__PURE__ */ f(async function(t, n, r, a) {
2948
- $ = b("c4");
2949
- let o = l().securityLevel, { root: s } = be(n, o), u = a.db;
2950
- u.setWrap($.wrap), Le = u.getC4ShapeInRow(), Re = u.getC4BoundaryInRow(), e.debug(`C:${JSON.stringify($, null, 2)}`);
2951
- let d = s.select(`[id="${n}"]`);
2952
- Q.insertComputerIcon(d, n), Q.insertDatabaseIcon(d, n), Q.insertClockIcon(d, n);
2953
- let f = new ze(a);
2954
- f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Fe = $.diagramMarginX, Ie = $.diagramMarginY;
2955
- let p = u.getTitle();
2956
- await Xe(d, "", f, u.getBoundaries(""), a), Q.insertArrowHead(d, n), Q.insertArrowEnd(d, n), Q.insertArrowCrossHead(d, n), Q.insertArrowFilledHead(d, n), Ye(d, u.getRels(), u.getC4Shape, a, n), f.data.stopx = Fe, f.data.stopy = Ie;
2957
- let m = f.data, h = m.startx, g = m.starty, _ = Ie - g + 2 * $.diagramMarginY, v = Fe - h, y = v + 2 * $.diagramMarginX;
2958
- p && d.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), i(d, _, y, $.useMaxWidth);
2959
- let x = p ? 60 : 0;
2960
- d.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + x) + " " + y + " " + (_ + x)), e.debug("models:", m);
2952
+ u(Qe, "drawInsideBoundary");
2953
+ var $e = {
2954
+ drawPersonOrSystemArray: qe,
2955
+ drawBoundary: Ke,
2956
+ setConf: He,
2957
+ draw: /* @__PURE__ */ u(async function(e, t, n, a) {
2958
+ $ = x("c4");
2959
+ let o = r().securityLevel, { root: s } = Se(t, o), l = a.db;
2960
+ l.setWrap($.wrap), ze = l.getC4ShapeInRow(), Be = l.getC4BoundaryInRow(), d.debug(`C:${JSON.stringify($, null, 2)}`);
2961
+ let u = s.select(`[id="${t}"]`);
2962
+ Q.insertComputerIcon(u, t), Q.insertDatabaseIcon(u, t), Q.insertClockIcon(u, t);
2963
+ let f = new Ve(a);
2964
+ f.setData($.diagramMarginX, $.diagramMarginX, $.diagramMarginY, $.diagramMarginY), f.data.widthLimit = screen.availWidth, Le = $.diagramMarginX, Re = $.diagramMarginY;
2965
+ let p = l.getTitle();
2966
+ await Qe(u, "", f, l.getBoundaries(""), a), Q.insertArrowHead(u, t), Q.insertArrowEnd(u, t), Q.insertArrowCrossHead(u, t), Q.insertArrowFilledHead(u, t), Ze(u, l.getRels(), l.getC4Shape, a, t), f.data.stopx = Le, f.data.stopy = Re;
2967
+ let m = f.data, h = m.startx, g = m.starty, _ = Re - g + 2 * $.diagramMarginY, v = Le - h, y = v + 2 * $.diagramMarginX;
2968
+ p && u.append("text").text(p).attr("x", v / 2 - 4 * $.diagramMarginX).attr("y", g + $.diagramMarginY), i(u, _, y, $.useMaxWidth);
2969
+ let b = p ? 60 : 0;
2970
+ u.attr("viewBox", h - $.diagramMarginX + " -" + ($.diagramMarginY + b) + " " + y + " " + (_ + b)), d.debug("models:", m);
2961
2971
  }, "draw")
2962
- }, Qe = /* @__PURE__ */ f(() => {
2963
- let e = l().c4 ?? {}, t = new CSSStyleSheet();
2964
- for (let n of Ae) {
2972
+ }, et = /* @__PURE__ */ u(() => {
2973
+ let e = r().c4 ?? {}, t = new CSSStyleSheet();
2974
+ for (let n of Me) {
2965
2975
  let r = t.cssRules[t.insertRule(`.c4-shape.c4-${n} .label {}`, t.cssRules.length)], i = e[`${n}FontFamily`], a = e[`${n}FontSize`], o = e[`${n}FontWeight`];
2966
2976
  i && r.style.setProperty("font-family", i), a && r.style.setProperty("font-size", typeof a == "number" ? `${a}px` : a), o && r.style.setProperty("font-weight", String(o));
2967
2977
  }
2968
2978
  return [...t.cssRules].filter((e) => e.style.length > 0).map((e) => ` ${e.cssText}`).join("\n");
2969
- }, "elementFontStyles"), $e = {
2970
- parser: y,
2971
- db: ce,
2972
- renderer: Ze,
2973
- styles: /* @__PURE__ */ f((e) => `.person {
2979
+ }, "elementFontStyles"), tt = {
2980
+ parser: b,
2981
+ db: ue,
2982
+ renderer: $e,
2983
+ styles: /* @__PURE__ */ u((e) => `.person {
2974
2984
  stroke: ${e.personBorder};
2975
2985
  fill: ${e.personBkg};
2976
2986
  }
2977
- ${Qe()}
2987
+ ${et()}
2978
2988
 
2979
2989
  /* The element font colour is set inline per element (default white); the
2980
2990
  label text takes it via currentColor. */
@@ -3002,9 +3012,9 @@ ${Qe()}
3002
3012
  stroke-width: 2px;
3003
3013
  }
3004
3014
  `, "getStyles"),
3005
- init: /* @__PURE__ */ f(({ c4: e, wrap: t }) => {
3006
- Ze.setConf(e), ce.setWrap(t);
3015
+ init: /* @__PURE__ */ u(({ c4: e, wrap: t }) => {
3016
+ $e.setConf(e), ue.setWrap(t);
3007
3017
  }, "init")
3008
3018
  };
3009
3019
  //#endregion
3010
- export { $e as diagram };
3020
+ export { tt as diagram };