@sme.up/ketchup2 1.4.0 → 1.6.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 (237) hide show
  1. package/dist/_basePickBy-B6LialOA.js +151 -0
  2. package/dist/_basePickBy-Cp1jDLqY.cjs +1 -0
  3. package/dist/_baseUniq-DVDmJvCh.js +614 -0
  4. package/dist/_baseUniq-nmEWBwYw.cjs +1 -0
  5. package/dist/arc-CEU53J5p.cjs +1 -0
  6. package/dist/arc-DY9lVoW5.js +83 -0
  7. package/dist/architecture-O4VJ6CD3-D6muUqd4.js +5 -0
  8. package/dist/architecture-O4VJ6CD3-bJ_1C0Zf.cjs +1 -0
  9. package/dist/architectureDiagram-VXUJARFQ-ClJdEDO3.js +4661 -0
  10. package/dist/architectureDiagram-VXUJARFQ-Nn9XUh0Q.cjs +36 -0
  11. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  12. package/dist/assets/svg/info_outline.svg +1 -0
  13. package/dist/assets/svg/more_horiz.svg +1 -0
  14. package/dist/assets/svg/smeup-ai.svg +4 -0
  15. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  16. package/dist/basic-components/button/button-types.d.ts +2 -2
  17. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  18. package/dist/basic-components/button/button-utils.d.ts +2 -2
  19. package/dist/basic-components/button/button-utils.d.ts.map +1 -1
  20. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  21. package/dist/basic-components/cell/cell-types.d.ts +11 -0
  22. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  24. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  25. package/dist/basic-components/combobox/combobox.d.ts.map +1 -1
  26. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  27. package/dist/basic-components/list/list-types.d.ts +1 -0
  28. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  29. package/dist/basic-components/list/list.d.ts.map +1 -1
  30. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts +4 -0
  31. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  32. package/dist/basic-components/mulitple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification-types.d.ts +5 -0
  34. package/dist/basic-components/notification/notification-types.d.ts.map +1 -0
  35. package/dist/basic-components/notification/notification.d.ts +4 -0
  36. package/dist/basic-components/notification/notification.d.ts.map +1 -0
  37. package/dist/basic-components/text/text.d.ts.map +1 -1
  38. package/dist/basic-components/textarea/textarea-types.d.ts +1 -0
  39. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  40. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  41. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  42. package/dist/basic-components/tree/tree.assets.d.ts.map +1 -1
  43. package/dist/basic-components/typography/typography-types.d.ts +14 -1
  44. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  45. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  46. package/dist/blockDiagram-VD42YOAC-B44HyGVt.cjs +122 -0
  47. package/dist/blockDiagram-VD42YOAC-BmflobDW.js +2261 -0
  48. package/dist/c4Diagram-YG6GDRKO-B-P2-hDh.cjs +10 -0
  49. package/dist/c4Diagram-YG6GDRKO-BS1FWcjl.js +1580 -0
  50. package/dist/channel-BV6Uh6EZ.js +5 -0
  51. package/dist/channel-DzXAJtya.cjs +1 -0
  52. package/dist/chunk-4BX2VUAB-BJZ1vQr9.js +8 -0
  53. package/dist/chunk-4BX2VUAB-B_ZYGc02.cjs +1 -0
  54. package/dist/chunk-55IACEB6-CLxuqzmA.js +8 -0
  55. package/dist/chunk-55IACEB6-CZ_-WQkE.cjs +1 -0
  56. package/dist/chunk-B4BG7PRW-CAoVudRf.js +1375 -0
  57. package/dist/chunk-B4BG7PRW-DgVx49jz.cjs +165 -0
  58. package/dist/chunk-DI55MBZ5-CLSmi7TN.cjs +220 -0
  59. package/dist/chunk-DI55MBZ5-CRHiuZe8.js +1370 -0
  60. package/dist/chunk-FMBD7UC4-Czxrc5If.js +19 -0
  61. package/dist/chunk-FMBD7UC4-DKJyLwV-.cjs +15 -0
  62. package/dist/chunk-QN33PNHL-4MRql7R0.cjs +1 -0
  63. package/dist/chunk-QN33PNHL-DhcutEk3.js +19 -0
  64. package/dist/chunk-QZHKN3VN-BKpxOymE.cjs +1 -0
  65. package/dist/chunk-QZHKN3VN-DHzNcVH-.js +15 -0
  66. package/dist/chunk-TZMSLE5B-CUTZm_Mo.cjs +1 -0
  67. package/dist/chunk-TZMSLE5B-zmb3g2xE.js +64 -0
  68. package/dist/classDiagram-2ON5EDUG-BAv5yqTF.cjs +1 -0
  69. package/dist/classDiagram-2ON5EDUG-CL66znZJ.js +16 -0
  70. package/dist/classDiagram-v2-WZHVMYZB-BAv5yqTF.cjs +1 -0
  71. package/dist/classDiagram-v2-WZHVMYZB-CL66znZJ.js +16 -0
  72. package/dist/clone-B3Eg32bl.cjs +1 -0
  73. package/dist/clone-BAhCV7QZ.js +8 -0
  74. package/dist/components/app-bar/app-bar.d.ts.map +1 -1
  75. package/dist/components/app-bar/app-bar.data.d.ts +2 -0
  76. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  77. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts +17 -0
  78. package/dist/components/breadcrumbs/breadcrumbs-types.d.ts.map +1 -0
  79. package/dist/components/breadcrumbs/breadcrumbs.d.ts +4 -0
  80. package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
  81. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  82. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  83. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  84. package/dist/components/echarts/echarts-graph-types.d.ts +8 -0
  85. package/dist/components/echarts/echarts-graph-types.d.ts.map +1 -0
  86. package/dist/components/echarts/echarts-graph.d.ts +4 -0
  87. package/dist/components/echarts/echarts-graph.d.ts.map +1 -0
  88. package/dist/components/field/field-types.d.ts +2 -0
  89. package/dist/components/field/field-types.d.ts.map +1 -1
  90. package/dist/components/field/field.d.ts.map +1 -1
  91. package/dist/components/input-panel/assets/data.d.ts +2 -0
  92. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  93. package/dist/components/input-panel/input-panel-types.d.ts +5 -0
  94. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  95. package/dist/components/input-panel/input-panel-utils.d.ts +17 -2
  96. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  97. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  98. package/dist/components/mermaid/mermaid-types.d.ts +8 -0
  99. package/dist/components/mermaid/mermaid-types.d.ts.map +1 -0
  100. package/dist/components/mermaid/mermaid.d.ts +4 -0
  101. package/dist/components/mermaid/mermaid.d.ts.map +1 -0
  102. package/dist/components/notification-widget/notification-widget-types.d.ts +12 -0
  103. package/dist/components/notification-widget/notification-widget-types.d.ts.map +1 -0
  104. package/dist/components/notification-widget/notification-widget.assets.d.ts +3 -0
  105. package/dist/components/notification-widget/notification-widget.assets.d.ts.map +1 -0
  106. package/dist/components/notification-widget/notification-widget.d.ts +4 -0
  107. package/dist/components/notification-widget/notification-widget.d.ts.map +1 -0
  108. package/dist/components/path/path-node.d.ts +5 -0
  109. package/dist/components/path/path-node.d.ts.map +1 -0
  110. package/dist/components/path/path-types.d.ts +68 -0
  111. package/dist/components/path/path-types.d.ts.map +1 -0
  112. package/dist/components/path/path.d.ts +4 -0
  113. package/dist/components/path/path.d.ts.map +1 -0
  114. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  115. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  116. package/dist/components/tab-bar/tab-bar-types.d.ts +15 -0
  117. package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
  118. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  119. package/dist/components/toolbar/assets/data.d.ts +7 -0
  120. package/dist/components/toolbar/assets/data.d.ts.map +1 -0
  121. package/dist/components/toolbar/toolbar-node.d.ts +3 -0
  122. package/dist/components/toolbar/toolbar-node.d.ts.map +1 -0
  123. package/dist/components/toolbar/toolbar-types.d.ts +78 -0
  124. package/dist/components/toolbar/toolbar-types.d.ts.map +1 -0
  125. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts +12 -0
  126. package/dist/components/toolbar/toolbar-utils/useKeyboardNavigation.d.ts.map +1 -0
  127. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts +8 -0
  128. package/dist/components/toolbar/toolbar-utils/useToolbarInteractions.d.ts.map +1 -0
  129. package/dist/components/toolbar/toolbar-utils/utils.d.ts +12 -0
  130. package/dist/components/toolbar/toolbar-utils/utils.d.ts.map +1 -0
  131. package/dist/components/toolbar/toolbar.d.ts +3 -0
  132. package/dist/components/toolbar/toolbar.d.ts.map +1 -0
  133. package/dist/cose-bilkent-S5V4N54A-CXUgNIhF.js +2608 -0
  134. package/dist/cose-bilkent-S5V4N54A-Cwq5tiLA.cjs +1 -0
  135. package/dist/cytoscape.esm-CamnA8MN.js +18735 -0
  136. package/dist/cytoscape.esm-uM8noIeE.cjs +331 -0
  137. package/dist/dagre-6UL2VRFP-CTbq7ORA.cjs +4 -0
  138. package/dist/dagre-6UL2VRFP-CsS5EFGW.js +444 -0
  139. package/dist/defaultLocale-D7EN2tov.js +171 -0
  140. package/dist/defaultLocale-DIVzfLaQ.cjs +1 -0
  141. package/dist/diagram-PSM6KHXK-CFcTzPF8.cjs +24 -0
  142. package/dist/diagram-PSM6KHXK-YKTCI_7z.js +532 -0
  143. package/dist/diagram-QEK2KX5R-BEClDZ4k.cjs +43 -0
  144. package/dist/diagram-QEK2KX5R-CcZCzLby.js +217 -0
  145. package/dist/diagram-S2PKOQOG-DKBRpWrK.cjs +24 -0
  146. package/dist/diagram-S2PKOQOG-Y83t5Da-.js +142 -0
  147. package/dist/erDiagram-Q2GNP2WA-5CruL17O.cjs +60 -0
  148. package/dist/erDiagram-Q2GNP2WA-Opu3ARB6.js +841 -0
  149. package/dist/flowDiagram-NV44I4VS-BbaIeVre.cjs +162 -0
  150. package/dist/flowDiagram-NV44I4VS-gkAKereJ.js +1620 -0
  151. package/dist/functional-components/filter-group/filter-builder-types.d.ts +1 -3
  152. package/dist/functional-components/filter-group/filter-builder-types.d.ts.map +1 -1
  153. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  154. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts +12 -0
  155. package/dist/functional-components/helper-tooltip/helper-tooltip-types.d.ts.map +1 -0
  156. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts +3 -0
  157. package/dist/functional-components/helper-tooltip/helper-tooltip.d.ts.map +1 -0
  158. package/dist/functional-components/label/label-types.d.ts +4 -0
  159. package/dist/functional-components/label/label-types.d.ts.map +1 -1
  160. package/dist/functional-components/label/label.d.ts.map +1 -1
  161. package/dist/ganttDiagram-LVOFAZNH-B2kjhiE2.cjs +267 -0
  162. package/dist/ganttDiagram-LVOFAZNH-C54h5Bw4.js +2505 -0
  163. package/dist/gitGraph-ZV4HHKMB-CBEQhdS2.js +5 -0
  164. package/dist/gitGraph-ZV4HHKMB-DYT2T5uG.cjs +1 -0
  165. package/dist/gitGraphDiagram-NY62KEGX-Bpi_cePd.cjs +65 -0
  166. package/dist/gitGraphDiagram-NY62KEGX-S-pRqr3b.js +699 -0
  167. package/dist/graph-C1g271vn.cjs +1 -0
  168. package/dist/graph-C_QYlmwV.js +247 -0
  169. package/dist/hooks/useFloating.d.ts +2 -2
  170. package/dist/hooks/useFloating.d.ts.map +1 -1
  171. package/dist/index-CrHtig09.cjs +392 -0
  172. package/dist/index-DWeebcIQ.js +71429 -0
  173. package/dist/index.d.ts +40 -16
  174. package/dist/index.d.ts.map +1 -1
  175. package/dist/info-63CPKGFF-DFJJ8WM_.js +5 -0
  176. package/dist/info-63CPKGFF-MtLEvjGU.cjs +1 -0
  177. package/dist/infoDiagram-F6ZHWCRC-CNRQyhbb.cjs +2 -0
  178. package/dist/infoDiagram-F6ZHWCRC-DEtOKmNB.js +24 -0
  179. package/dist/init-CHZsXQcr.cjs +1 -0
  180. package/dist/init-DjUOC4st.js +16 -0
  181. package/dist/journeyDiagram-XKPGCS4Q-3ZUFHmst.js +836 -0
  182. package/dist/journeyDiagram-XKPGCS4Q-gRYnUMxc.cjs +139 -0
  183. package/dist/kanban-definition-3W4ZIXB7-Bwj4VFdZ.js +719 -0
  184. package/dist/kanban-definition-3W4ZIXB7-Dt685GXI.cjs +89 -0
  185. package/dist/katex-C2g-EhzP.cjs +261 -0
  186. package/dist/katex-CUSbq6rG.js +11692 -0
  187. package/dist/ketchup2.cjs.js +1 -50
  188. package/dist/ketchup2.css +1 -1
  189. package/dist/ketchup2.es.js +27 -7643
  190. package/dist/layout-Bhv89T5Y.cjs +1 -0
  191. package/dist/layout-C1uUiR9-.js +1324 -0
  192. package/dist/linear-CR5ROFQD.cjs +1 -0
  193. package/dist/linear-DyqA-LhX.js +259 -0
  194. package/dist/locale/en/translation.json.d.ts +5 -0
  195. package/dist/locale/it/translation.json.d.ts +5 -0
  196. package/dist/mermaid-parser.core-DMEz4diY.cjs +128 -0
  197. package/dist/mermaid-parser.core-_B_M89_-.js +12966 -0
  198. package/dist/mindmap-definition-VGOIOE7T-DFq8jWcw.cjs +68 -0
  199. package/dist/mindmap-definition-VGOIOE7T-DoGzqmVl.js +758 -0
  200. package/dist/ordinal-CagbB1m8.cjs +1 -0
  201. package/dist/ordinal-DfAQgscy.js +61 -0
  202. package/dist/packet-HUATNLJX-Dv7JBjbi.js +5 -0
  203. package/dist/packet-HUATNLJX-wFxM-SlC.cjs +1 -0
  204. package/dist/pie-WTHONI2E-DZfhIIRd.cjs +1 -0
  205. package/dist/pie-WTHONI2E-gLd9fr_z.js +5 -0
  206. package/dist/pieDiagram-ADFJNKIX-K2lT_O-Y.js +161 -0
  207. package/dist/pieDiagram-ADFJNKIX-hH9aE0Q_.cjs +30 -0
  208. package/dist/quadrantDiagram-AYHSOK5B-AnaSBQtW.js +1022 -0
  209. package/dist/quadrantDiagram-AYHSOK5B-DI-PC8V-.cjs +7 -0
  210. package/dist/radar-NJJJXTRR-BIXqh1MI.cjs +1 -0
  211. package/dist/radar-NJJJXTRR-rw52LzAi.js +5 -0
  212. package/dist/requirementDiagram-UZGBJVZJ-BqeKS5M7.cjs +64 -0
  213. package/dist/requirementDiagram-UZGBJVZJ-CkGm4u8a.js +850 -0
  214. package/dist/sankeyDiagram-TZEHDZUN-CqdQ5OcU.js +810 -0
  215. package/dist/sankeyDiagram-TZEHDZUN-RiKKYqxR.cjs +10 -0
  216. package/dist/sequenceDiagram-WL72ISMW-Bof9txlA.cjs +145 -0
  217. package/dist/sequenceDiagram-WL72ISMW-CiCppIOZ.js +2511 -0
  218. package/dist/stateDiagram-FKZM4ZOC-Bb4kdkNA.js +263 -0
  219. package/dist/stateDiagram-FKZM4ZOC-CtjWXmXj.cjs +1 -0
  220. package/dist/stateDiagram-v2-4FDKWEC3-B4ibGBn-.js +16 -0
  221. package/dist/stateDiagram-v2-4FDKWEC3-CbIZTApi.cjs +1 -0
  222. package/dist/timeline-definition-IT6M3QCI-9g18juq0.js +797 -0
  223. package/dist/timeline-definition-IT6M3QCI-T3O9mr34.cjs +61 -0
  224. package/dist/treemap-75Q7IDZK-C3U-LE7s.js +5 -0
  225. package/dist/treemap-75Q7IDZK-D-aoF_HJ.cjs +1 -0
  226. package/dist/types/data-structures.d.ts +57 -0
  227. package/dist/types/data-structures.d.ts.map +1 -1
  228. package/dist/types/global.d.ts +2 -1
  229. package/dist/types/global.d.ts.map +1 -1
  230. package/dist/types/translation.d.ts +4 -1
  231. package/dist/types/translation.d.ts.map +1 -1
  232. package/dist/utils/data-structures.d.ts +2 -1
  233. package/dist/utils/data-structures.d.ts.map +1 -1
  234. package/dist/utils/wrapper-types/date.d.ts.map +1 -1
  235. package/dist/xychartDiagram-PRI3JC2R-4n3Pt2Kc.cjs +7 -0
  236. package/dist/xychartDiagram-PRI3JC2R-CcmXJ1KX.js +1340 -0
  237. package/package.json +39 -26
@@ -0,0 +1,758 @@
1
+ import { g as ae } from "./chunk-55IACEB6-CLxuqzmA.js";
2
+ import { s as oe } from "./chunk-QN33PNHL-DhcutEk3.js";
3
+ import { _ as c, l as O, o as ce, r as le, F as U, c as H, i as F, af as he, ag as ge, W as de, X as ue, Y as pe } from "./index-DWeebcIQ.js";
4
+ var W = function() {
5
+ var r = /* @__PURE__ */ c(function(L, s, t, a) {
6
+ for (t = t || {}, a = L.length; a--; t[L[a]] = s) ;
7
+ return t;
8
+ }, "o"), e = [1, 4], i = [1, 13], l = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], z = [1, 24], X = [1, 25], _ = [6, 7, 11], Y = [1, 6, 13, 15, 16, 19, 22], q = [1, 33], J = [1, 34], I = [1, 6, 7, 11, 13, 15, 16, 19, 22], B = {
9
+ trace: /* @__PURE__ */ c(function() {
10
+ }, "trace"),
11
+ yy: {},
12
+ symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
13
+ terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
14
+ productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
15
+ performAction: /* @__PURE__ */ c(function(s, t, a, o, d, n, R) {
16
+ var g = n.length - 1;
17
+ switch (d) {
18
+ case 6:
19
+ case 7:
20
+ return o;
21
+ case 8:
22
+ o.getLogger().trace("Stop NL ");
23
+ break;
24
+ case 9:
25
+ o.getLogger().trace("Stop EOF ");
26
+ break;
27
+ case 11:
28
+ o.getLogger().trace("Stop NL2 ");
29
+ break;
30
+ case 12:
31
+ o.getLogger().trace("Stop EOF2 ");
32
+ break;
33
+ case 15:
34
+ o.getLogger().info("Node: ", n[g].id), o.addNode(n[g - 1].length, n[g].id, n[g].descr, n[g].type);
35
+ break;
36
+ case 16:
37
+ o.getLogger().trace("Icon: ", n[g]), o.decorateNode({ icon: n[g] });
38
+ break;
39
+ case 17:
40
+ case 21:
41
+ o.decorateNode({ class: n[g] });
42
+ break;
43
+ case 18:
44
+ o.getLogger().trace("SPACELIST");
45
+ break;
46
+ case 19:
47
+ o.getLogger().trace("Node: ", n[g].id), o.addNode(0, n[g].id, n[g].descr, n[g].type);
48
+ break;
49
+ case 20:
50
+ o.decorateNode({ icon: n[g] });
51
+ break;
52
+ case 25:
53
+ o.getLogger().trace("node found ..", n[g - 2]), this.$ = { id: n[g - 1], descr: n[g - 1], type: o.getType(n[g - 2], n[g]) };
54
+ break;
55
+ case 26:
56
+ this.$ = { id: n[g], descr: n[g], type: o.nodeType.DEFAULT };
57
+ break;
58
+ case 27:
59
+ o.getLogger().trace("node found ..", n[g - 3]), this.$ = { id: n[g - 3], descr: n[g - 1], type: o.getType(n[g - 2], n[g]) };
60
+ break;
61
+ }
62
+ }, "anonymous"),
63
+ table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: i, 7: [1, 10], 9: 9, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(u, [2, 3]), { 1: [2, 2] }, r(u, [2, 4]), r(u, [2, 5]), { 1: [2, 6], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: i, 9: 22, 12: 11, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: z, 10: 23, 11: X }, r(_, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), r(_, [2, 18]), r(_, [2, 19]), r(_, [2, 20]), r(_, [2, 21]), r(_, [2, 23]), r(_, [2, 24]), r(_, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: z, 10: 32, 11: X }, { 1: [2, 7], 6: i, 12: 21, 13: l, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, r(Y, [2, 14], { 7: q, 11: J }), r(I, [2, 8]), r(I, [2, 9]), r(I, [2, 10]), r(_, [2, 15]), r(_, [2, 16]), r(_, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, r(Y, [2, 13], { 7: q, 11: J }), r(I, [2, 11]), r(I, [2, 12]), { 21: [1, 37] }, r(_, [2, 25]), r(_, [2, 27])],
64
+ defaultActions: { 2: [2, 1], 6: [2, 2] },
65
+ parseError: /* @__PURE__ */ c(function(s, t) {
66
+ if (t.recoverable)
67
+ this.trace(s);
68
+ else {
69
+ var a = new Error(s);
70
+ throw a.hash = t, a;
71
+ }
72
+ }, "parseError"),
73
+ parse: /* @__PURE__ */ c(function(s) {
74
+ var t = this, a = [0], o = [], d = [null], n = [], R = this.table, g = "", w = 0, K = 0, ie = 2, Q = 1, se = n.slice.call(arguments, 1), y = Object.create(this.lexer), x = { yy: {} };
75
+ for (var V in this.yy)
76
+ Object.prototype.hasOwnProperty.call(this.yy, V) && (x.yy[V] = this.yy[V]);
77
+ y.setInput(s, x.yy), x.yy.lexer = y, x.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
78
+ var G = y.yylloc;
79
+ n.push(G);
80
+ var ne = y.options && y.options.ranges;
81
+ typeof x.yy.parseError == "function" ? this.parseError = x.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
82
+ function re(b) {
83
+ a.length = a.length - 2 * b, d.length = d.length - b, n.length = n.length - b;
84
+ }
85
+ c(re, "popStack");
86
+ function Z() {
87
+ var b;
88
+ return b = o.pop() || y.lex() || Q, typeof b != "number" && (b instanceof Array && (o = b, b = o.pop()), b = t.symbols_[b] || b), b;
89
+ }
90
+ c(Z, "lex");
91
+ for (var E, v, S, j, T = {}, P, D, ee, M; ; ) {
92
+ if (v = a[a.length - 1], this.defaultActions[v] ? S = this.defaultActions[v] : ((E === null || typeof E > "u") && (E = Z()), S = R[v] && R[v][E]), typeof S > "u" || !S.length || !S[0]) {
93
+ var $ = "";
94
+ M = [];
95
+ for (P in R[v])
96
+ this.terminals_[P] && P > ie && M.push("'" + this.terminals_[P] + "'");
97
+ y.showPosition ? $ = "Parse error on line " + (w + 1) + `:
98
+ ` + y.showPosition() + `
99
+ Expecting ` + M.join(", ") + ", got '" + (this.terminals_[E] || E) + "'" : $ = "Parse error on line " + (w + 1) + ": Unexpected " + (E == Q ? "end of input" : "'" + (this.terminals_[E] || E) + "'"), this.parseError($, {
100
+ text: y.match,
101
+ token: this.terminals_[E] || E,
102
+ line: y.yylineno,
103
+ loc: G,
104
+ expected: M
105
+ });
106
+ }
107
+ if (S[0] instanceof Array && S.length > 1)
108
+ throw new Error("Parse Error: multiple actions possible at state: " + v + ", token: " + E);
109
+ switch (S[0]) {
110
+ case 1:
111
+ a.push(E), d.push(y.yytext), n.push(y.yylloc), a.push(S[1]), E = null, K = y.yyleng, g = y.yytext, w = y.yylineno, G = y.yylloc;
112
+ break;
113
+ case 2:
114
+ if (D = this.productions_[S[1]][1], T.$ = d[d.length - D], T._$ = {
115
+ first_line: n[n.length - (D || 1)].first_line,
116
+ last_line: n[n.length - 1].last_line,
117
+ first_column: n[n.length - (D || 1)].first_column,
118
+ last_column: n[n.length - 1].last_column
119
+ }, ne && (T._$.range = [
120
+ n[n.length - (D || 1)].range[0],
121
+ n[n.length - 1].range[1]
122
+ ]), j = this.performAction.apply(T, [
123
+ g,
124
+ K,
125
+ w,
126
+ x.yy,
127
+ S[1],
128
+ d,
129
+ n
130
+ ].concat(se)), typeof j < "u")
131
+ return j;
132
+ D && (a = a.slice(0, -1 * D * 2), d = d.slice(0, -1 * D), n = n.slice(0, -1 * D)), a.push(this.productions_[S[1]][0]), d.push(T.$), n.push(T._$), ee = R[a[a.length - 2]][a[a.length - 1]], a.push(ee);
133
+ break;
134
+ case 3:
135
+ return !0;
136
+ }
137
+ }
138
+ return !0;
139
+ }, "parse")
140
+ }, te = /* @__PURE__ */ function() {
141
+ var L = {
142
+ EOF: 1,
143
+ parseError: /* @__PURE__ */ c(function(t, a) {
144
+ if (this.yy.parser)
145
+ this.yy.parser.parseError(t, a);
146
+ else
147
+ throw new Error(t);
148
+ }, "parseError"),
149
+ // resets the lexer, sets new input
150
+ setInput: /* @__PURE__ */ c(function(s, t) {
151
+ return this.yy = t || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
152
+ first_line: 1,
153
+ first_column: 0,
154
+ last_line: 1,
155
+ last_column: 0
156
+ }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
157
+ }, "setInput"),
158
+ // consumes and returns one char from the input
159
+ input: /* @__PURE__ */ c(function() {
160
+ var s = this._input[0];
161
+ this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
162
+ var t = s.match(/(?:\r\n?|\n).*/g);
163
+ return t ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
164
+ }, "input"),
165
+ // unshifts one char (or a string) into the input
166
+ unput: /* @__PURE__ */ c(function(s) {
167
+ var t = s.length, a = s.split(/(?:\r\n?|\n)/g);
168
+ this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
169
+ var o = this.match.split(/(?:\r\n?|\n)/g);
170
+ this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
171
+ var d = this.yylloc.range;
172
+ return this.yylloc = {
173
+ first_line: this.yylloc.first_line,
174
+ last_line: this.yylineno + 1,
175
+ first_column: this.yylloc.first_column,
176
+ last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - t
177
+ }, this.options.ranges && (this.yylloc.range = [d[0], d[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
178
+ }, "unput"),
179
+ // When called from action, caches matched text and appends it on next action
180
+ more: /* @__PURE__ */ c(function() {
181
+ return this._more = !0, this;
182
+ }, "more"),
183
+ // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
184
+ reject: /* @__PURE__ */ c(function() {
185
+ if (this.options.backtrack_lexer)
186
+ this._backtrack = !0;
187
+ else
188
+ 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).
189
+ ` + this.showPosition(), {
190
+ text: "",
191
+ token: null,
192
+ line: this.yylineno
193
+ });
194
+ return this;
195
+ }, "reject"),
196
+ // retain first n characters of the match
197
+ less: /* @__PURE__ */ c(function(s) {
198
+ this.unput(this.match.slice(s));
199
+ }, "less"),
200
+ // displays already matched input, i.e. for error messages
201
+ pastInput: /* @__PURE__ */ c(function() {
202
+ var s = this.matched.substr(0, this.matched.length - this.match.length);
203
+ return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
204
+ }, "pastInput"),
205
+ // displays upcoming input, i.e. for error messages
206
+ upcomingInput: /* @__PURE__ */ c(function() {
207
+ var s = this.match;
208
+ return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
209
+ }, "upcomingInput"),
210
+ // displays the character position where the lexing error occurred, i.e. for error messages
211
+ showPosition: /* @__PURE__ */ c(function() {
212
+ var s = this.pastInput(), t = new Array(s.length + 1).join("-");
213
+ return s + this.upcomingInput() + `
214
+ ` + t + "^";
215
+ }, "showPosition"),
216
+ // test the lexed token: return FALSE when not a match, otherwise return token
217
+ test_match: /* @__PURE__ */ c(function(s, t) {
218
+ var a, o, d;
219
+ if (this.options.backtrack_lexer && (d = {
220
+ yylineno: this.yylineno,
221
+ yylloc: {
222
+ first_line: this.yylloc.first_line,
223
+ last_line: this.last_line,
224
+ first_column: this.yylloc.first_column,
225
+ last_column: this.yylloc.last_column
226
+ },
227
+ yytext: this.yytext,
228
+ match: this.match,
229
+ matches: this.matches,
230
+ matched: this.matched,
231
+ yyleng: this.yyleng,
232
+ offset: this.offset,
233
+ _more: this._more,
234
+ _input: this._input,
235
+ yy: this.yy,
236
+ conditionStack: this.conditionStack.slice(0),
237
+ done: this.done
238
+ }, this.options.ranges && (d.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
239
+ first_line: this.yylloc.last_line,
240
+ last_line: this.yylineno + 1,
241
+ first_column: this.yylloc.last_column,
242
+ last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
243
+ }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
244
+ return a;
245
+ if (this._backtrack) {
246
+ for (var n in d)
247
+ this[n] = d[n];
248
+ return !1;
249
+ }
250
+ return !1;
251
+ }, "test_match"),
252
+ // return next match in input
253
+ next: /* @__PURE__ */ c(function() {
254
+ if (this.done)
255
+ return this.EOF;
256
+ this._input || (this.done = !0);
257
+ var s, t, a, o;
258
+ this._more || (this.yytext = "", this.match = "");
259
+ for (var d = this._currentRules(), n = 0; n < d.length; n++)
260
+ if (a = this._input.match(this.rules[d[n]]), a && (!t || a[0].length > t[0].length)) {
261
+ if (t = a, o = n, this.options.backtrack_lexer) {
262
+ if (s = this.test_match(a, d[n]), s !== !1)
263
+ return s;
264
+ if (this._backtrack) {
265
+ t = !1;
266
+ continue;
267
+ } else
268
+ return !1;
269
+ } else if (!this.options.flex)
270
+ break;
271
+ }
272
+ return t ? (s = this.test_match(t, d[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
273
+ ` + this.showPosition(), {
274
+ text: "",
275
+ token: null,
276
+ line: this.yylineno
277
+ });
278
+ }, "next"),
279
+ // return next match that has a token
280
+ lex: /* @__PURE__ */ c(function() {
281
+ var t = this.next();
282
+ return t || this.lex();
283
+ }, "lex"),
284
+ // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
285
+ begin: /* @__PURE__ */ c(function(t) {
286
+ this.conditionStack.push(t);
287
+ }, "begin"),
288
+ // pop the previously active lexer condition state off the condition stack
289
+ popState: /* @__PURE__ */ c(function() {
290
+ var t = this.conditionStack.length - 1;
291
+ return t > 0 ? this.conditionStack.pop() : this.conditionStack[0];
292
+ }, "popState"),
293
+ // produce the lexer rule set which is active for the currently active lexer condition state
294
+ _currentRules: /* @__PURE__ */ c(function() {
295
+ return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
296
+ }, "_currentRules"),
297
+ // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
298
+ topState: /* @__PURE__ */ c(function(t) {
299
+ return t = this.conditionStack.length - 1 - Math.abs(t || 0), t >= 0 ? this.conditionStack[t] : "INITIAL";
300
+ }, "topState"),
301
+ // alias for begin(condition)
302
+ pushState: /* @__PURE__ */ c(function(t) {
303
+ this.begin(t);
304
+ }, "pushState"),
305
+ // return the number of states currently on the stack
306
+ stateStackSize: /* @__PURE__ */ c(function() {
307
+ return this.conditionStack.length;
308
+ }, "stateStackSize"),
309
+ options: { "case-insensitive": !0 },
310
+ performAction: /* @__PURE__ */ c(function(t, a, o, d) {
311
+ switch (o) {
312
+ case 0:
313
+ return t.getLogger().trace("Found comment", a.yytext), 6;
314
+ case 1:
315
+ return 8;
316
+ case 2:
317
+ this.begin("CLASS");
318
+ break;
319
+ case 3:
320
+ return this.popState(), 16;
321
+ case 4:
322
+ this.popState();
323
+ break;
324
+ case 5:
325
+ t.getLogger().trace("Begin icon"), this.begin("ICON");
326
+ break;
327
+ case 6:
328
+ return t.getLogger().trace("SPACELINE"), 6;
329
+ case 7:
330
+ return 7;
331
+ case 8:
332
+ return 15;
333
+ case 9:
334
+ t.getLogger().trace("end icon"), this.popState();
335
+ break;
336
+ case 10:
337
+ return t.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
338
+ case 11:
339
+ return t.getLogger().trace("Cloud"), this.begin("NODE"), 19;
340
+ case 12:
341
+ return t.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
342
+ case 13:
343
+ return t.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
344
+ case 14:
345
+ return this.begin("NODE"), 19;
346
+ case 15:
347
+ return this.begin("NODE"), 19;
348
+ case 16:
349
+ return this.begin("NODE"), 19;
350
+ case 17:
351
+ return this.begin("NODE"), 19;
352
+ case 18:
353
+ return 13;
354
+ case 19:
355
+ return 22;
356
+ case 20:
357
+ return 11;
358
+ case 21:
359
+ this.begin("NSTR2");
360
+ break;
361
+ case 22:
362
+ return "NODE_DESCR";
363
+ case 23:
364
+ this.popState();
365
+ break;
366
+ case 24:
367
+ t.getLogger().trace("Starting NSTR"), this.begin("NSTR");
368
+ break;
369
+ case 25:
370
+ return t.getLogger().trace("description:", a.yytext), "NODE_DESCR";
371
+ case 26:
372
+ this.popState();
373
+ break;
374
+ case 27:
375
+ return this.popState(), t.getLogger().trace("node end ))"), "NODE_DEND";
376
+ case 28:
377
+ return this.popState(), t.getLogger().trace("node end )"), "NODE_DEND";
378
+ case 29:
379
+ return this.popState(), t.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
380
+ case 30:
381
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
382
+ case 31:
383
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
384
+ case 32:
385
+ return this.popState(), t.getLogger().trace("node end (-"), "NODE_DEND";
386
+ case 33:
387
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
388
+ case 34:
389
+ return this.popState(), t.getLogger().trace("node end (("), "NODE_DEND";
390
+ case 35:
391
+ return t.getLogger().trace("Long description:", a.yytext), 20;
392
+ case 36:
393
+ return t.getLogger().trace("Long description:", a.yytext), 20;
394
+ }
395
+ }, "anonymous"),
396
+ rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
397
+ conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
398
+ };
399
+ return L;
400
+ }();
401
+ B.lexer = te;
402
+ function A() {
403
+ this.yy = {};
404
+ }
405
+ return c(A, "Parser"), A.prototype = B, B.Parser = A, new A();
406
+ }();
407
+ W.parser = W;
408
+ var fe = W, k = {
409
+ DEFAULT: 0,
410
+ NO_BORDER: 0,
411
+ ROUNDED_RECT: 1,
412
+ RECT: 2,
413
+ CIRCLE: 3,
414
+ CLOUD: 4,
415
+ BANG: 5,
416
+ HEXAGON: 6
417
+ }, C, ye = (C = class {
418
+ constructor() {
419
+ this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = k, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
420
+ }
421
+ clear() {
422
+ this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
423
+ }
424
+ getParent(e) {
425
+ for (let i = this.nodes.length - 1; i >= 0; i--)
426
+ if (this.nodes[i].level < e)
427
+ return this.nodes[i];
428
+ return null;
429
+ }
430
+ getMindmap() {
431
+ return this.nodes.length > 0 ? this.nodes[0] : null;
432
+ }
433
+ addNode(e, i, l, f) {
434
+ O.info("addNode", e, i, l, f);
435
+ let h = !1;
436
+ this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
437
+ const p = H();
438
+ let m = p.mindmap?.padding ?? U.mindmap.padding;
439
+ switch (f) {
440
+ case this.nodeType.ROUNDED_RECT:
441
+ case this.nodeType.RECT:
442
+ case this.nodeType.HEXAGON:
443
+ m *= 2;
444
+ break;
445
+ }
446
+ const u = {
447
+ id: this.count++,
448
+ nodeId: F(i, p),
449
+ level: e,
450
+ descr: F(l, p),
451
+ type: f,
452
+ children: [],
453
+ width: p.mindmap?.maxNodeWidth ?? U.mindmap.maxNodeWidth,
454
+ padding: m,
455
+ isRoot: h
456
+ }, N = this.getParent(e);
457
+ if (N)
458
+ N.children.push(u), this.nodes.push(u);
459
+ else if (h)
460
+ this.nodes.push(u);
461
+ else
462
+ throw new Error(
463
+ `There can be only one root. No parent could be found for ("${u.descr}")`
464
+ );
465
+ }
466
+ getType(e, i) {
467
+ switch (O.debug("In get type", e, i), e) {
468
+ case "[":
469
+ return this.nodeType.RECT;
470
+ case "(":
471
+ return i === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
472
+ case "((":
473
+ return this.nodeType.CIRCLE;
474
+ case ")":
475
+ return this.nodeType.CLOUD;
476
+ case "))":
477
+ return this.nodeType.BANG;
478
+ case "{{":
479
+ return this.nodeType.HEXAGON;
480
+ default:
481
+ return this.nodeType.DEFAULT;
482
+ }
483
+ }
484
+ setElementForId(e, i) {
485
+ this.elements[e] = i;
486
+ }
487
+ getElementById(e) {
488
+ return this.elements[e];
489
+ }
490
+ decorateNode(e) {
491
+ if (!e)
492
+ return;
493
+ const i = H(), l = this.nodes[this.nodes.length - 1];
494
+ e.icon && (l.icon = F(e.icon, i)), e.class && (l.class = F(e.class, i));
495
+ }
496
+ type2Str(e) {
497
+ switch (e) {
498
+ case this.nodeType.DEFAULT:
499
+ return "no-border";
500
+ case this.nodeType.RECT:
501
+ return "rect";
502
+ case this.nodeType.ROUNDED_RECT:
503
+ return "rounded-rect";
504
+ case this.nodeType.CIRCLE:
505
+ return "circle";
506
+ case this.nodeType.CLOUD:
507
+ return "cloud";
508
+ case this.nodeType.BANG:
509
+ return "bang";
510
+ case this.nodeType.HEXAGON:
511
+ return "hexgon";
512
+ // cspell: disable-line
513
+ default:
514
+ return "no-border";
515
+ }
516
+ }
517
+ /**
518
+ * Assign section numbers to nodes based on their position relative to root
519
+ * @param node - The mindmap node to process
520
+ * @param sectionNumber - The section number to assign (undefined for root)
521
+ */
522
+ assignSections(e, i) {
523
+ if (e.level === 0 ? e.section = void 0 : e.section = i, e.children)
524
+ for (const [l, f] of e.children.entries()) {
525
+ const h = e.level === 0 ? l : i;
526
+ this.assignSections(f, h);
527
+ }
528
+ }
529
+ /**
530
+ * Convert mindmap tree structure to flat array of nodes
531
+ * @param node - The mindmap node to process
532
+ * @param processedNodes - Array to collect processed nodes
533
+ */
534
+ flattenNodes(e, i) {
535
+ const l = ["mindmap-node"];
536
+ e.isRoot === !0 ? l.push("section-root", "section--1") : e.section !== void 0 && l.push(`section-${e.section}`), e.class && l.push(e.class);
537
+ const f = l.join(" "), h = /* @__PURE__ */ c((m) => {
538
+ switch (m) {
539
+ case k.CIRCLE:
540
+ return "mindmapCircle";
541
+ case k.RECT:
542
+ return "rect";
543
+ case k.ROUNDED_RECT:
544
+ return "rounded";
545
+ case k.CLOUD:
546
+ return "cloud";
547
+ case k.BANG:
548
+ return "bang";
549
+ case k.HEXAGON:
550
+ return "hexagon";
551
+ case k.DEFAULT:
552
+ return "defaultMindmapNode";
553
+ case k.NO_BORDER:
554
+ default:
555
+ return "rect";
556
+ }
557
+ }, "getShapeFromType"), p = {
558
+ id: e.id.toString(),
559
+ domId: "node_" + e.id.toString(),
560
+ label: e.descr,
561
+ isGroup: !1,
562
+ shape: h(e.type),
563
+ width: e.width,
564
+ height: e.height ?? 0,
565
+ padding: e.padding,
566
+ cssClasses: f,
567
+ cssStyles: [],
568
+ look: "default",
569
+ icon: e.icon,
570
+ x: e.x,
571
+ y: e.y,
572
+ // Mindmap-specific properties
573
+ level: e.level,
574
+ nodeId: e.nodeId,
575
+ type: e.type,
576
+ section: e.section
577
+ };
578
+ if (i.push(p), e.children)
579
+ for (const m of e.children)
580
+ this.flattenNodes(m, i);
581
+ }
582
+ /**
583
+ * Generate edges from parent-child relationships in mindmap tree
584
+ * @param node - The mindmap node to process
585
+ * @param edges - Array to collect edges
586
+ */
587
+ generateEdges(e, i) {
588
+ if (e.children)
589
+ for (const l of e.children) {
590
+ let f = "edge";
591
+ l.section !== void 0 && (f += ` section-edge-${l.section}`);
592
+ const h = e.level + 1;
593
+ f += ` edge-depth-${h}`;
594
+ const p = {
595
+ id: `edge_${e.id}_${l.id}`,
596
+ start: e.id.toString(),
597
+ end: l.id.toString(),
598
+ type: "normal",
599
+ curve: "basis",
600
+ thickness: "normal",
601
+ look: "default",
602
+ classes: f,
603
+ // Store mindmap-specific data
604
+ depth: e.level,
605
+ section: l.section
606
+ };
607
+ i.push(p), this.generateEdges(l, i);
608
+ }
609
+ }
610
+ /**
611
+ * Get structured data for layout algorithms
612
+ * Following the pattern established by ER diagrams
613
+ * @returns Structured data containing nodes, edges, and config
614
+ */
615
+ getData() {
616
+ const e = this.getMindmap(), i = H(), f = he().layout !== void 0, h = i;
617
+ if (f || (h.layout = "cose-bilkent"), !e)
618
+ return {
619
+ nodes: [],
620
+ edges: [],
621
+ config: h
622
+ };
623
+ O.debug("getData: mindmapRoot", e, i), this.assignSections(e);
624
+ const p = [], m = [];
625
+ this.flattenNodes(e, p), this.generateEdges(e, m), O.debug(
626
+ `getData: processed ${p.length} nodes and ${m.length} edges`
627
+ );
628
+ const u = /* @__PURE__ */ new Map();
629
+ for (const N of p)
630
+ u.set(N.id, {
631
+ shape: N.shape,
632
+ width: N.width,
633
+ height: N.height,
634
+ padding: N.padding
635
+ });
636
+ return {
637
+ nodes: p,
638
+ edges: m,
639
+ config: h,
640
+ // Store the root node for mindmap-specific layout algorithms
641
+ rootNode: e,
642
+ // Properties required by dagre layout algorithm
643
+ markers: ["point"],
644
+ // Mindmaps don't use markers
645
+ direction: "TB",
646
+ // Top-to-bottom direction for mindmaps
647
+ nodeSpacing: 50,
648
+ // Default spacing between nodes
649
+ rankSpacing: 50,
650
+ // Default spacing between ranks
651
+ // Add shapes for ELK compatibility
652
+ shapes: Object.fromEntries(u),
653
+ // Additional properties that layout algorithms might expect
654
+ type: "mindmap",
655
+ diagramId: "mindmap-" + ge()
656
+ };
657
+ }
658
+ // Expose logger to grammar
659
+ getLogger() {
660
+ return O;
661
+ }
662
+ }, c(C, "MindmapDB"), C), me = /* @__PURE__ */ c(async (r, e, i, l) => {
663
+ O.debug(`Rendering mindmap diagram
664
+ ` + r);
665
+ const f = l.db, h = f.getData(), p = ae(e, h.config.securityLevel);
666
+ h.type = l.type, h.layoutAlgorithm = ce(h.config.layout, {
667
+ fallback: "cose-bilkent"
668
+ }), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
669
+ u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
670
+ }), await le(h, p), oe(
671
+ p,
672
+ h.config.mindmap?.padding ?? U.mindmap.padding,
673
+ "mindmapDiagram",
674
+ h.config.mindmap?.useMaxWidth ?? U.mindmap.useMaxWidth
675
+ ));
676
+ }, "draw"), Ee = {
677
+ draw: me
678
+ }, _e = /* @__PURE__ */ c((r) => {
679
+ let e = "";
680
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++)
681
+ r["lineColor" + i] = r["lineColor" + i] || r["cScaleInv" + i], de(r["lineColor" + i]) ? r["lineColor" + i] = ue(r["lineColor" + i], 20) : r["lineColor" + i] = pe(r["lineColor" + i], 20);
682
+ for (let i = 0; i < r.THEME_COLOR_LIMIT; i++) {
683
+ const l = "" + (17 - 3 * i);
684
+ e += `
685
+ .section-${i - 1} rect, .section-${i - 1} path, .section-${i - 1} circle, .section-${i - 1} polygon, .section-${i - 1} path {
686
+ fill: ${r["cScale" + i]};
687
+ }
688
+ .section-${i - 1} text {
689
+ fill: ${r["cScaleLabel" + i]};
690
+ }
691
+ .node-icon-${i - 1} {
692
+ font-size: 40px;
693
+ color: ${r["cScaleLabel" + i]};
694
+ }
695
+ .section-edge-${i - 1}{
696
+ stroke: ${r["cScale" + i]};
697
+ }
698
+ .edge-depth-${i - 1}{
699
+ stroke-width: ${l};
700
+ }
701
+ .section-${i - 1} line {
702
+ stroke: ${r["cScaleInv" + i]} ;
703
+ stroke-width: 3;
704
+ }
705
+
706
+ .disabled, .disabled circle, .disabled text {
707
+ fill: lightgray;
708
+ }
709
+ .disabled text {
710
+ fill: #efefef;
711
+ }
712
+ `;
713
+ }
714
+ return e;
715
+ }, "genSections"), be = /* @__PURE__ */ c((r) => `
716
+ .edge {
717
+ stroke-width: 3;
718
+ }
719
+ ${_e(r)}
720
+ .section-root rect, .section-root path, .section-root circle, .section-root polygon {
721
+ fill: ${r.git0};
722
+ }
723
+ .section-root text {
724
+ fill: ${r.gitBranchLabel0};
725
+ }
726
+ .section-root span {
727
+ color: ${r.gitBranchLabel0};
728
+ }
729
+ .section-2 span {
730
+ color: ${r.gitBranchLabel0};
731
+ }
732
+ .icon-container {
733
+ height:100%;
734
+ display: flex;
735
+ justify-content: center;
736
+ align-items: center;
737
+ }
738
+ .edge {
739
+ fill: none;
740
+ }
741
+ .mindmap-node-label {
742
+ dy: 1em;
743
+ alignment-baseline: middle;
744
+ text-anchor: middle;
745
+ dominant-baseline: middle;
746
+ text-align: center;
747
+ }
748
+ `, "getStyles"), Se = be, Le = {
749
+ get db() {
750
+ return new ye();
751
+ },
752
+ renderer: Ee,
753
+ parser: fe,
754
+ styles: Se
755
+ };
756
+ export {
757
+ Le as diagram
758
+ };