@sme.up/ketchup2 2.7.0 → 2.8.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 (344) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-CVbkjF8U.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-w3BipdfE.cjs → arc-DBilzVYt.cjs} +1 -1
  5. package/dist/architecture-7GRP2DOG-DYFsLst2.js +3 -0
  6. package/dist/architecture-7GRP2DOG-DdhuGtEz.cjs +1 -0
  7. package/dist/architectureDiagram-5GKGNRK7-B080D0D_.cjs +36 -0
  8. package/dist/{architectureDiagram-3BPJPVTR-B6VZAtZU.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -251
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  11. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  12. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  16. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  17. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  18. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  19. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  20. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  21. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  22. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  24. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  27. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  28. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  30. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  31. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  32. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  33. package/dist/{c4Diagram-AAUBKEIU-CdT8VCbo.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  34. package/dist/channel-BvUly9jN.cjs +1 -0
  35. package/dist/{channel-C-LAmObA.js → channel-D6agWknC.js} +1 -1
  36. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  37. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  38. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  39. package/dist/{chunk-QZHKN3VN-lYfzaOt9.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  40. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  41. package/dist/{chunk-3OPIFGDE-Bs2mXISw.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  42. package/dist/{chunk-FMBD7UC4-BURT0llY.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  43. package/dist/{chunk-FMBD7UC4-BIKI8zae.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  44. package/dist/{chunk-5ZQYHXKU-B_nOC8-n.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  45. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  46. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  47. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  48. package/dist/{chunk-CSCIHK7Q-BEk3YcEH.js → chunk-DU6HZSFF-CNSdkWoH.js} +997 -764
  49. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  50. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  51. package/dist/{chunk-ND2GUHAM-Ca12h-m9.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  52. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  53. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  54. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  55. package/dist/{chunk-O5CBEL6O-DbWeP4Au.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  56. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  57. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  58. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  59. package/dist/{chunk-AQP2D5EJ-vJ_pitKp.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  60. package/dist/{chunk-4BX2VUAB-zglw1T4d.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  61. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  62. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  63. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  64. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  65. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  66. package/dist/{chunk-KSCS5N6A-BemQomLE.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  67. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  68. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  69. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  70. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  71. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  72. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  73. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  74. package/dist/{flowDiagram-I6XJVG4X-DnsxKD0w.js → chunk-SHT3W25Y-DJgD-hyF.js} +566 -522
  75. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  76. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  77. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  78. package/dist/{chunk-727SXJPM-Dj8nsm0O.cjs → chunk-TICWLB2K-1u0p_luB.cjs} +7 -7
  79. package/dist/{chunk-727SXJPM-CDeV7mmg.js → chunk-TICWLB2K-DqSHwYf9.js} +183 -177
  80. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  81. package/dist/{chunk-LZXEDZCA-J9irjuVP.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  82. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  83. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  84. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  85. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  86. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  87. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  88. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  89. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  90. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  91. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  92. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  93. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  94. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  95. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  96. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  97. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  98. package/dist/components/data-table/data-table-types.d.ts +52 -1
  99. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table.d.ts.map +1 -1
  101. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  102. package/dist/components/data-table/header/header-types.d.ts +7 -1
  103. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  104. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  105. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  106. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  107. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  108. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  109. package/dist/components/workflow-designer/workflow-designer-types.d.ts +40 -7
  110. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -1
  111. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +80 -1
  112. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -1
  113. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  114. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  115. package/dist/components/workflow-designer/workflow-designer.d.ts +4 -3
  116. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -1
  117. package/dist/{cose-bilkent-S5V4N54A-BhA3VnPW.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +25 -24
  118. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  119. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  120. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  121. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  122. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  123. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  124. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  125. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  126. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  127. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  128. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  129. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  130. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  131. package/dist/{diagram-2AECGRRQ-23vM90dy.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  132. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  133. package/dist/{diagram-KO2AKTUF-BEnEQF6b.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  134. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  135. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  136. package/dist/{diagram-OG6HWLK6-Cfbv6mIH.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  137. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  138. package/dist/{diagram-LMA3HP47-OWxAHrmz.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  139. package/dist/{dist-Btd8EZyy.js → dist-C7OpkiTz.js} +2 -3
  140. package/dist/dist-DrOEvFlx.cjs +1 -0
  141. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  142. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  143. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  144. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  145. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  146. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  147. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  148. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  149. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  150. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  151. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  152. package/dist/functional-components/row/row-types.d.ts +5 -0
  153. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  154. package/dist/functional-components/row/row.d.ts.map +1 -1
  155. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  156. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  157. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  158. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  159. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  160. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  161. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  162. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  163. package/dist/{ganttDiagram-6RSMTGT7-CwbJqdwB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +675 -671
  164. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  165. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  166. package/dist/{gitGraphDiagram-PVQCEYII-mL2WiT98.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  167. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  168. package/dist/index.d.ts +4 -1
  169. package/dist/index.d.ts.map +1 -1
  170. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  171. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  172. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  173. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  174. package/dist/{ishikawaDiagram-YF4QCWOH-DGOgWzve.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  175. package/dist/{ishikawaDiagram-YF4QCWOH-DAWMXD1l.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  176. package/dist/{journeyDiagram-JHISSGLW-CHVTMdrq.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  177. package/dist/{journeyDiagram-JHISSGLW-DfnmJPLn.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  178. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  179. package/dist/{kanban-definition-UN3LZRKU-upKA3b5x.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  180. package/dist/katex-DUe6VLjC.cjs +257 -0
  181. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  182. package/dist/ketchup2.cjs.js +156 -154
  183. package/dist/ketchup2.css +1 -1
  184. package/dist/ketchup2.es.js +31759 -29656
  185. package/dist/{line-DIhSUgmA.js → line-BEo8vh4N.js} +1 -1
  186. package/dist/{line-CzwncDY3.cjs → line-wiGgVVGi.cjs} +1 -1
  187. package/dist/{linear-DUAteVwl.js → linear-BNesvT28.js} +1 -1
  188. package/dist/{linear-1lpO_WlJ.cjs → linear-YA14Lx5Z.cjs} +1 -1
  189. package/dist/locale/en/translation.json.d.ts +16 -0
  190. package/dist/locale/it/translation.json.d.ts +16 -0
  191. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  192. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  193. package/dist/{mindmap-definition-RKZ34NQL-C8cZ7xN-.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  194. package/dist/{mindmap-definition-RKZ34NQL-C3YkCJDi.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  195. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  196. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  197. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  198. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  199. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  200. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  201. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  202. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  203. package/dist/{quadrantDiagram-W4KKPZXB-C2oA-eGZ.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  204. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  205. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  206. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  207. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  208. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  209. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  210. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  211. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  212. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  213. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  214. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  215. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  216. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  217. package/dist/{requirementDiagram-4Y6WPE33-BEGryahw.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  218. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  219. package/dist/{sankeyDiagram-5OEKKPKP-VPzKV4zM.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  220. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  221. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  222. package/dist/{sequenceDiagram-3UESZ5HK-Bc30_Cm2.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  223. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  224. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  225. package/dist/src-B16ML7oM.cjs +1 -0
  226. package/dist/{src-DjDATEq3.js → src-D-6ZfKf9.js} +500 -507
  227. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  228. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  229. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  230. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  231. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  232. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  233. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  234. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  235. package/dist/{timeline-definition-PNZ67QCA-1z911Ume.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  236. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  237. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  238. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  239. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  240. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  241. package/dist/types/translation.d.ts +17 -1
  242. package/dist/types/translation.d.ts.map +1 -1
  243. package/dist/utils/data-structures.d.ts +2 -1
  244. package/dist/utils/data-structures.d.ts.map +1 -1
  245. package/dist/{vennDiagram-CIIHVFJN-BiLcQ0SR.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  246. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  247. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  248. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  249. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  250. package/dist/{wardleyDiagram-YWT4CUSO-Bq-BejOl.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  251. package/dist/{xychartDiagram-2RQKCTM6-B13zquXC.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  252. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  253. package/package.json +5 -2
  254. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  255. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  256. package/dist/architectureDiagram-3BPJPVTR-DlnXl9d5.cjs +0 -36
  257. package/dist/blockDiagram-GPEHLZMM-BohmRoCC.js +0 -3157
  258. package/dist/blockDiagram-GPEHLZMM-rfyR2Ffl.cjs +0 -132
  259. package/dist/c4Diagram-AAUBKEIU-Du1vqJYZ.cjs +0 -10
  260. package/dist/channel-DJpMBAs-.cjs +0 -1
  261. package/dist/chunk-2J33WTMH-BMqA-riF.js +0 -25
  262. package/dist/chunk-2J33WTMH-BQs9SXq8.cjs +0 -1
  263. package/dist/chunk-3OPIFGDE-Bk_ByTBh.cjs +0 -62
  264. package/dist/chunk-4BX2VUAB-C8VW0QW0.cjs +0 -1
  265. package/dist/chunk-55IACEB6-CNxnI3nm.cjs +0 -1
  266. package/dist/chunk-55IACEB6-CmKDx-YO.js +0 -8
  267. package/dist/chunk-5ZQYHXKU-DMrStm4M.cjs +0 -2
  268. package/dist/chunk-AQP2D5EJ-CYuEYK6i.cjs +0 -231
  269. package/dist/chunk-BSJP7CBP-CSCICPww.cjs +0 -1
  270. package/dist/chunk-BSJP7CBP-YsQACkyC.js +0 -82
  271. package/dist/chunk-CSCIHK7Q-BAdl6GW-.cjs +0 -124
  272. package/dist/chunk-KSCS5N6A-DsN7gJEf.cjs +0 -10
  273. package/dist/chunk-L5ZTLDWV-BQCNoMVG.js +0 -32
  274. package/dist/chunk-L5ZTLDWV-BbLRyKcx.cjs +0 -1
  275. package/dist/chunk-LZXEDZCA-rjLYyX5U.cjs +0 -1
  276. package/dist/chunk-ND2GUHAM-1o9Sjy2_.cjs +0 -1
  277. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  278. package/dist/chunk-NZK2D7GU-CPxdSJTy.js +0 -67
  279. package/dist/chunk-NZK2D7GU-CRneGIrP.cjs +0 -1
  280. package/dist/chunk-O5CBEL6O-Cd4Z5Dy9.cjs +0 -70
  281. package/dist/chunk-QZHKN3VN-ZJ4hLUIw.cjs +0 -1
  282. package/dist/chunk-WU5MYG2G-DuCEb9G-.js +0 -9
  283. package/dist/chunk-WU5MYG2G-ExiaHFbF.cjs +0 -1
  284. package/dist/chunk-XPW4576I-BybfDrup.cjs +0 -32
  285. package/dist/chunk-XPW4576I-D3DQ47oC.js +0 -1146
  286. package/dist/classDiagram-4FO5ZUOK-CRX1QumH.js +0 -29
  287. package/dist/classDiagram-4FO5ZUOK-yTAlLFG2.cjs +0 -1
  288. package/dist/classDiagram-v2-Q7XG4LA2-oM01mYfB.js +0 -29
  289. package/dist/classDiagram-v2-Q7XG4LA2-yTAlLFG2.cjs +0 -1
  290. package/dist/cose-bilkent-S5V4N54A-D7fhWOP4.cjs +0 -1
  291. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  292. package/dist/dagre-BM42HDAG-DfpR5Mml.js +0 -297
  293. package/dist/dagre-BM42HDAG-kORxgFz_.cjs +0 -4
  294. package/dist/diagram-2AECGRRQ-B0IEGKjr.cjs +0 -43
  295. package/dist/diagram-5GNKFQAL-BEY9x4us.js +0 -101
  296. package/dist/diagram-5GNKFQAL-vb6e35PR.cjs +0 -10
  297. package/dist/diagram-KO2AKTUF-9V_zu-2x.cjs +0 -3
  298. package/dist/diagram-LMA3HP47-BN_geiB9.cjs +0 -24
  299. package/dist/diagram-OG6HWLK6-6OnEK9-6.cjs +0 -24
  300. package/dist/dist-D8RD2QWc.cjs +0 -1
  301. package/dist/erDiagram-TEJ5UH35-6OEXIM6m.js +0 -1700
  302. package/dist/erDiagram-TEJ5UH35-CzsOt0l4.cjs +0 -85
  303. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  304. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  305. package/dist/flowDiagram-I6XJVG4X-DR1CMtZZ.cjs +0 -162
  306. package/dist/ganttDiagram-6RSMTGT7-C5t5_mjf.cjs +0 -292
  307. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  308. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  309. package/dist/gitGraphDiagram-PVQCEYII-CLdgm7yJ.cjs +0 -106
  310. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  311. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  312. package/dist/infoDiagram-5YYISTIA-BIM8xaiE.js +0 -19
  313. package/dist/infoDiagram-5YYISTIA-CbnHgs-I.cjs +0 -2
  314. package/dist/kanban-definition-UN3LZRKU-CbeoJJE7.cjs +0 -89
  315. package/dist/katex-CkiTumqg.cjs +0 -257
  316. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  317. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  318. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  319. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  320. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  321. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  322. package/dist/pieDiagram-4H26LBE5-BvhguaHn.js +0 -165
  323. package/dist/pieDiagram-4H26LBE5-DpDrJBQK.cjs +0 -30
  324. package/dist/quadrantDiagram-W4KKPZXB-hWSN7YfD.cjs +0 -7
  325. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  326. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  327. package/dist/requirementDiagram-4Y6WPE33-GmjmsbiY.cjs +0 -84
  328. package/dist/sankeyDiagram-5OEKKPKP-DbGAx-Bm.cjs +0 -40
  329. package/dist/sequenceDiagram-3UESZ5HK-D85rpewi.cjs +0 -162
  330. package/dist/src-DEmZ9bFr.cjs +0 -1
  331. package/dist/stateDiagram-AJRCARHV-Bg4Y3HPa.cjs +0 -1
  332. package/dist/stateDiagram-AJRCARHV-wqjltbKb.js +0 -217
  333. package/dist/stateDiagram-v2-BHNVJYJU-Cgrf5tQC.js +0 -27
  334. package/dist/stateDiagram-v2-BHNVJYJU-D_Tzn4WM.cjs +0 -1
  335. package/dist/timeline-definition-PNZ67QCA-Dpu3hfhP.cjs +0 -120
  336. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  337. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  338. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  339. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  340. package/dist/vennDiagram-CIIHVFJN-BLBDqWTG.cjs +0 -34
  341. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  342. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  343. package/dist/wardleyDiagram-YWT4CUSO-dzyAWKiV.cjs +0 -78
  344. package/dist/xychartDiagram-2RQKCTM6-DA3O42Dk.cjs +0 -7
@@ -1,15 +1,17 @@
1
- import { g as e, h as t } from "./src-DjDATEq3.js";
2
- import { H as n, K as r, U as i, a, s as o, v as s, w as c, x as l, y as u } from "./chunk-CSCIHK7Q-BEk3YcEH.js";
3
- import { g as d, s as f } from "./chunk-5ZQYHXKU-B_nOC8-n.js";
4
- import { r as p } from "./chunk-LZXEDZCA-J9irjuVP.js";
5
- import { t as m } from "./chunk-55IACEB6-CmKDx-YO.js";
6
- import { t as h } from "./chunk-2J33WTMH-BMqA-riF.js";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-AQP2D5EJ.mjs
8
- var g = (function() {
9
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
1
+ import { m as e, p as t } from "./src-D-6ZfKf9.js";
2
+ import { H as n, K as r, U as i, a, ot as o, s, v as c, w as l, x as u, y as d } from "./chunk-DU6HZSFF-CNSdkWoH.js";
3
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
+ import { g as p, s as m } from "./chunk-75Z2AOVW-BwUD389x.js";
5
+ import { r as h } from "./chunk-TLUHSLCS-opHh7fd-.js";
6
+ import { t as g } from "./chunk-F27PBJKO-DKsmevT5.js";
7
+ import { t as _ } from "./chunk-XXDRQBXY-BZK6GgVm.js";
8
+ import { t as v } from "./chunk-POPQ4Y6H-CaEkosGL.js";
9
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/chunk-IMKFNOWR.mjs
10
+ var y = (function() {
11
+ var e = /* @__PURE__ */ f(function(e, t, n, r) {
10
12
  for (n ||= {}, r = e.length; r--; n[e[r]] = t);
11
13
  return n;
12
- }, "o"), n = [1, 2], r = [1, 3], i = [1, 4], a = [2, 4], o = [1, 9], s = [1, 11], c = [1, 16], l = [1, 17], u = [1, 18], d = [1, 19], f = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
14
+ }, "o"), t = [1, 2], n = [1, 3], r = [1, 4], i = [2, 4], a = [1, 9], o = [1, 11], s = [1, 16], c = [1, 17], l = [1, 18], u = [1, 19], d = [1, 33], p = [1, 20], m = [1, 21], h = [1, 22], g = [1, 23], _ = [1, 24], v = [1, 26], y = [1, 27], b = [1, 28], x = [1, 29], S = [1, 30], C = [1, 31], w = [1, 32], T = [1, 35], E = [1, 36], D = [1, 37], O = [1, 38], k = [1, 34], A = [
13
15
  1,
14
16
  4,
15
17
  5,
@@ -94,7 +96,7 @@ var g = (function() {
94
96
  54,
95
97
  57
96
98
  ], N = {
97
- trace: /* @__PURE__ */ t(function() {}, "trace"),
99
+ trace: /* @__PURE__ */ f(function() {}, "trace"),
98
100
  yy: {},
99
101
  symbols_: {
100
102
  error: 2,
@@ -261,7 +263,7 @@ var g = (function() {
261
263
  [30, 1],
262
264
  [30, 1]
263
265
  ],
264
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
266
+ performAction: /* @__PURE__ */ f(function(e, t, n, r, i, a, o) {
265
267
  var s = a.length - 1;
266
268
  switch (i) {
267
269
  case 3: return r.setRootDoc(a[s]), a[s];
@@ -471,22 +473,22 @@ var g = (function() {
471
473
  table: [
472
474
  {
473
475
  3: 1,
474
- 4: n,
475
- 5: r,
476
- 6: i
476
+ 4: t,
477
+ 5: n,
478
+ 6: r
477
479
  },
478
480
  { 1: [3] },
479
481
  {
480
482
  3: 5,
481
- 4: n,
482
- 5: r,
483
- 6: i
483
+ 4: t,
484
+ 5: n,
485
+ 6: r
484
486
  },
485
487
  {
486
488
  3: 6,
487
- 4: n,
488
- 5: r,
489
- 6: i
489
+ 4: t,
490
+ 5: n,
491
+ 6: r
490
492
  },
491
493
  e([
492
494
  1,
@@ -514,24 +516,24 @@ var g = (function() {
514
516
  53,
515
517
  54,
516
518
  57
517
- ], a, { 7: 7 }),
519
+ ], i, { 7: 7 }),
518
520
  { 1: [2, 1] },
519
521
  { 1: [2, 2] },
520
522
  {
521
523
  1: [2, 3],
522
- 4: o,
523
- 5: s,
524
+ 4: a,
525
+ 5: o,
524
526
  8: 8,
525
527
  9: 10,
526
528
  10: 12,
527
529
  11: 13,
528
530
  12: 14,
529
531
  13: 15,
530
- 16: c,
531
- 17: l,
532
- 19: u,
533
- 22: d,
534
- 24: f,
532
+ 16: s,
533
+ 17: c,
534
+ 19: l,
535
+ 22: u,
536
+ 24: d,
535
537
  25: p,
536
538
  26: m,
537
539
  27: h,
@@ -558,11 +560,11 @@ var g = (function() {
558
560
  11: 13,
559
561
  12: 14,
560
562
  13: 15,
561
- 16: c,
562
- 17: l,
563
- 19: u,
564
- 22: d,
565
- 24: f,
563
+ 16: s,
564
+ 17: c,
565
+ 19: l,
566
+ 22: u,
567
+ 24: d,
566
568
  25: p,
567
569
  26: m,
568
570
  27: h,
@@ -611,7 +613,7 @@ var g = (function() {
611
613
  e(A, [2, 31]),
612
614
  {
613
615
  13: 51,
614
- 24: f,
616
+ 24: d,
615
617
  57: k
616
618
  },
617
619
  {
@@ -630,11 +632,11 @@ var g = (function() {
630
632
  e(A, [2, 13]),
631
633
  {
632
634
  13: 58,
633
- 24: f,
635
+ 24: d,
634
636
  57: k
635
637
  },
636
638
  e(A, [2, 17]),
637
- e(M, a, { 7: 59 }),
639
+ e(M, i, { 7: 59 }),
638
640
  { 24: [1, 60] },
639
641
  { 24: [1, 61] },
640
642
  { 23: [1, 62] },
@@ -654,20 +656,20 @@ var g = (function() {
654
656
  { 24: [1, 70] },
655
657
  e(A, [2, 14], { 14: [1, 71] }),
656
658
  {
657
- 4: o,
658
- 5: s,
659
+ 4: a,
660
+ 5: o,
659
661
  8: 8,
660
662
  9: 10,
661
663
  10: 12,
662
664
  11: 13,
663
665
  12: 14,
664
666
  13: 15,
665
- 16: c,
666
- 17: l,
667
- 19: u,
667
+ 16: s,
668
+ 17: c,
669
+ 19: l,
668
670
  21: [1, 72],
669
- 22: d,
670
- 24: f,
671
+ 22: u,
672
+ 24: d,
671
673
  25: p,
672
674
  26: m,
673
675
  27: h,
@@ -700,26 +702,26 @@ var g = (function() {
700
702
  e(j, [2, 47]),
701
703
  e(A, [2, 15]),
702
704
  e(A, [2, 19]),
703
- e(M, a, { 7: 78 }),
705
+ e(M, i, { 7: 78 }),
704
706
  e(A, [2, 26]),
705
707
  e(A, [2, 27]),
706
708
  { 5: [1, 79] },
707
709
  { 5: [1, 80] },
708
710
  {
709
- 4: o,
710
- 5: s,
711
+ 4: a,
712
+ 5: o,
711
713
  8: 8,
712
714
  9: 10,
713
715
  10: 12,
714
716
  11: 13,
715
717
  12: 14,
716
718
  13: 15,
717
- 16: c,
718
- 17: l,
719
- 19: u,
719
+ 16: s,
720
+ 17: c,
721
+ 19: l,
720
722
  21: [1, 81],
721
- 22: d,
722
- 24: f,
723
+ 22: u,
724
+ 24: d,
723
725
  25: p,
724
726
  26: m,
725
727
  27: h,
@@ -749,35 +751,35 @@ var g = (function() {
749
751
  47: [2, 48],
750
752
  48: [2, 49]
751
753
  },
752
- parseError: /* @__PURE__ */ t(function(e, t) {
754
+ parseError: /* @__PURE__ */ f(function(e, t) {
753
755
  if (t.recoverable) this.trace(e);
754
756
  else {
755
757
  var n = Error(e);
756
758
  throw n.hash = t, n;
757
759
  }
758
760
  }, "parseError"),
759
- parse: /* @__PURE__ */ t(function(e) {
760
- var n = this, r = [0], i = [], a = [null], o = [], s = this.table, c = "", l = 0, u = 0, d = 0, f = 2, p = 1, m = o.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
761
+ parse: /* @__PURE__ */ f(function(e) {
762
+ var t = this, n = [0], r = [], i = [null], a = [], o = this.table, s = "", c = 0, l = 0, u = 0, d = 2, p = 1, m = a.slice.call(arguments, 1), h = Object.create(this.lexer), g = { yy: {} };
761
763
  for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
762
764
  h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
763
765
  var v = h.yylloc;
764
- o.push(v);
766
+ a.push(v);
765
767
  var y = h.options && h.options.ranges;
766
768
  typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
767
769
  function b(e) {
768
- r.length -= 2 * e, a.length -= e, o.length -= e;
770
+ n.length -= 2 * e, i.length -= e, a.length -= e;
769
771
  }
770
- t(b, "popStack");
772
+ f(b, "popStack");
771
773
  function x() {
772
- var e = i.pop() || h.lex() || p;
773
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
774
+ var e = r.pop() || h.lex() || p;
775
+ return typeof e != "number" && (e instanceof Array && (r = e, e = r.pop()), e = t.symbols_[e] || e), e;
774
776
  }
775
- t(x, "lex");
777
+ f(x, "lex");
776
778
  for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
777
- if (w = r[r.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = s[w] && s[w][S]), T === void 0 || !T.length || !T[0]) {
779
+ if (w = n[n.length - 1], this.defaultActions[w] ? T = this.defaultActions[w] : (S ??= x(), T = o[w] && o[w][S]), T === void 0 || !T.length || !T[0]) {
778
780
  var M = "";
779
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
780
- M = h.showPosition ? "Parse error on line " + (l + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (l + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
781
+ for (O in j = [], o[w]) this.terminals_[O] && O > d && j.push("'" + this.terminals_[O] + "'");
782
+ M = h.showPosition ? "Parse error on line " + (c + 1) + ":\n" + h.showPosition() + "\nExpecting " + j.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : "Parse error on line " + (c + 1) + ": Unexpected " + (S == p ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(M, {
781
783
  text: h.match,
782
784
  token: this.terminals_[S] || S,
783
785
  line: h.yylineno,
@@ -788,24 +790,24 @@ var g = (function() {
788
790
  if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
789
791
  switch (T[0]) {
790
792
  case 1:
791
- r.push(S), a.push(h.yytext), o.push(h.yylloc), r.push(T[1]), S = null, C ? (S = C, C = null) : (u = h.yyleng, c = h.yytext, l = h.yylineno, v = h.yylloc, d > 0 && d--);
793
+ n.push(S), i.push(h.yytext), a.push(h.yylloc), n.push(T[1]), S = null, C ? (S = C, C = null) : (l = h.yyleng, s = h.yytext, c = h.yylineno, v = h.yylloc, u > 0 && u--);
792
794
  break;
793
795
  case 2:
794
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
795
- first_line: o[o.length - (k || 1)].first_line,
796
- last_line: o[o.length - 1].last_line,
797
- first_column: o[o.length - (k || 1)].first_column,
798
- last_column: o[o.length - 1].last_column
799
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
800
- c,
801
- u,
796
+ if (k = this.productions_[T[1]][1], D.$ = i[i.length - k], D._$ = {
797
+ first_line: a[a.length - (k || 1)].first_line,
798
+ last_line: a[a.length - 1].last_line,
799
+ first_column: a[a.length - (k || 1)].first_column,
800
+ last_column: a[a.length - 1].last_column
801
+ }, y && (D._$.range = [a[a.length - (k || 1)].range[0], a[a.length - 1].range[1]]), E = this.performAction.apply(D, [
802
+ s,
802
803
  l,
804
+ c,
803
805
  g.yy,
804
806
  T[1],
805
- a,
806
- o
807
+ i,
808
+ a
807
809
  ].concat(m)), E !== void 0) return E;
808
- k && (r = r.slice(0, -1 * k * 2), a = a.slice(0, -1 * k), o = o.slice(0, -1 * k)), r.push(this.productions_[T[1]][0]), a.push(D.$), o.push(D._$), A = s[r[r.length - 2]][r[r.length - 1]], r.push(A);
810
+ k && (n = n.slice(0, -1 * k * 2), i = i.slice(0, -1 * k), a = a.slice(0, -1 * k)), n.push(this.productions_[T[1]][0]), i.push(D.$), a.push(D._$), A = o[n[n.length - 2]][n[n.length - 1]], n.push(A);
809
811
  break;
810
812
  case 3: return !0;
811
813
  }
@@ -816,11 +818,11 @@ var g = (function() {
816
818
  N.lexer = /* @__PURE__ */ (function() {
817
819
  return {
818
820
  EOF: 1,
819
- parseError: /* @__PURE__ */ t(function(e, t) {
821
+ parseError: /* @__PURE__ */ f(function(e, t) {
820
822
  if (this.yy.parser) this.yy.parser.parseError(e, t);
821
823
  else throw Error(e);
822
824
  }, "parseError"),
823
- setInput: /* @__PURE__ */ t(function(e, t) {
825
+ setInput: /* @__PURE__ */ f(function(e, t) {
824
826
  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 = {
825
827
  first_line: 1,
826
828
  first_column: 0,
@@ -828,11 +830,11 @@ var g = (function() {
828
830
  last_column: 0
829
831
  }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
830
832
  }, "setInput"),
831
- input: /* @__PURE__ */ t(function() {
833
+ input: /* @__PURE__ */ f(function() {
832
834
  var e = this._input[0];
833
835
  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;
834
836
  }, "input"),
835
- unput: /* @__PURE__ */ t(function(e) {
837
+ unput: /* @__PURE__ */ f(function(e) {
836
838
  var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
837
839
  this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
838
840
  var r = this.match.split(/(?:\r\n?|\n)/g);
@@ -845,10 +847,10 @@ var g = (function() {
845
847
  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
846
848
  }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
847
849
  }, "unput"),
848
- more: /* @__PURE__ */ t(function() {
850
+ more: /* @__PURE__ */ f(function() {
849
851
  return this._more = !0, this;
850
852
  }, "more"),
851
- reject: /* @__PURE__ */ t(function() {
853
+ reject: /* @__PURE__ */ f(function() {
852
854
  if (this.options.backtrack_lexer) this._backtrack = !0;
853
855
  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(), {
854
856
  text: "",
@@ -857,22 +859,22 @@ var g = (function() {
857
859
  });
858
860
  return this;
859
861
  }, "reject"),
860
- less: /* @__PURE__ */ t(function(e) {
862
+ less: /* @__PURE__ */ f(function(e) {
861
863
  this.unput(this.match.slice(e));
862
864
  }, "less"),
863
- pastInput: /* @__PURE__ */ t(function() {
865
+ pastInput: /* @__PURE__ */ f(function() {
864
866
  var e = this.matched.substr(0, this.matched.length - this.match.length);
865
867
  return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
866
868
  }, "pastInput"),
867
- upcomingInput: /* @__PURE__ */ t(function() {
869
+ upcomingInput: /* @__PURE__ */ f(function() {
868
870
  var e = this.match;
869
871
  return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
870
872
  }, "upcomingInput"),
871
- showPosition: /* @__PURE__ */ t(function() {
873
+ showPosition: /* @__PURE__ */ f(function() {
872
874
  var e = this.pastInput(), t = Array(e.length + 1).join("-");
873
875
  return e + this.upcomingInput() + "\n" + t + "^";
874
876
  }, "showPosition"),
875
- test_match: /* @__PURE__ */ t(function(e, t) {
877
+ test_match: /* @__PURE__ */ f(function(e, t) {
876
878
  var n, r, i;
877
879
  if (this.options.backtrack_lexer && (i = {
878
880
  yylineno: this.yylineno,
@@ -905,7 +907,7 @@ var g = (function() {
905
907
  }
906
908
  return !1;
907
909
  }, "test_match"),
908
- next: /* @__PURE__ */ t(function() {
910
+ next: /* @__PURE__ */ f(function() {
909
911
  if (this.done) return this.EOF;
910
912
  this._input || (this.done = !0);
911
913
  var e, t, n, r;
@@ -925,39 +927,39 @@ var g = (function() {
925
927
  line: this.yylineno
926
928
  });
927
929
  }, "next"),
928
- lex: /* @__PURE__ */ t(function() {
930
+ lex: /* @__PURE__ */ f(function() {
929
931
  return this.next() || this.lex();
930
932
  }, "lex"),
931
- begin: /* @__PURE__ */ t(function(e) {
933
+ begin: /* @__PURE__ */ f(function(e) {
932
934
  this.conditionStack.push(e);
933
935
  }, "begin"),
934
- popState: /* @__PURE__ */ t(function() {
936
+ popState: /* @__PURE__ */ f(function() {
935
937
  return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
936
938
  }, "popState"),
937
- _currentRules: /* @__PURE__ */ t(function() {
939
+ _currentRules: /* @__PURE__ */ f(function() {
938
940
  return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
939
941
  }, "_currentRules"),
940
- topState: /* @__PURE__ */ t(function(e) {
942
+ topState: /* @__PURE__ */ f(function(e) {
941
943
  return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
942
944
  }, "topState"),
943
- pushState: /* @__PURE__ */ t(function(e) {
945
+ pushState: /* @__PURE__ */ f(function(e) {
944
946
  this.begin(e);
945
947
  }, "pushState"),
946
- stateStackSize: /* @__PURE__ */ t(function() {
948
+ stateStackSize: /* @__PURE__ */ f(function() {
947
949
  return this.conditionStack.length;
948
950
  }, "stateStackSize"),
949
951
  options: { "case-insensitive": !0 },
950
- performAction: /* @__PURE__ */ t(function(e, n, r, i) {
951
- function a() {
952
- let t = n.yytext.indexOf("%%");
953
- if (t === 0) return !1;
954
- if (t > 0) {
955
- let r = n.yytext.slice(0, t), i = n.yytext.slice(t);
956
- i && e.lexer.unput(i), n.yytext = r;
952
+ performAction: /* @__PURE__ */ f(function(e, t, n, r) {
953
+ function i() {
954
+ let n = t.yytext.indexOf("%%");
955
+ if (n === 0) return !1;
956
+ if (n > 0) {
957
+ let r = t.yytext.slice(0, n), i = t.yytext.slice(n);
958
+ i && e.lexer.unput(i), t.yytext = r;
957
959
  }
958
960
  return !0;
959
961
  }
960
- switch (t(a, "processId"), r) {
962
+ switch (f(i, "processId"), n) {
961
963
  case 0: return 38;
962
964
  case 1: return 40;
963
965
  case 2: return 39;
@@ -1005,12 +1007,12 @@ var g = (function() {
1005
1007
  case 36:
1006
1008
  this.pushState("STATE");
1007
1009
  break;
1008
- case 37: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1009
- case 38: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1010
- case 39: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1011
- case 40: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 25;
1012
- case 41: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 26;
1013
- case 42: return this.popState(), n.yytext = n.yytext.slice(0, -10).trim(), 27;
1010
+ case 37: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1011
+ case 38: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1012
+ case 39: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1013
+ case 40: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 25;
1014
+ case 41: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 26;
1015
+ case 42: return this.popState(), t.yytext = t.yytext.slice(0, -10).trim(), 27;
1014
1016
  case 43: return 51;
1015
1017
  case 44: return 52;
1016
1018
  case 45: return 53;
@@ -1019,42 +1021,43 @@ var g = (function() {
1019
1021
  this.pushState("STATE_STRING");
1020
1022
  break;
1021
1023
  case 48: return this.pushState("STATE_ID"), "AS";
1022
- case 49: return a() ? (this.popState(), "ID") : void 0;
1024
+ case 49: return i() ? (this.popState(), "ID") : void 0;
1023
1025
  case 50:
1024
1026
  this.popState();
1025
1027
  break;
1026
1028
  case 51: return "STATE_DESCR";
1027
- case 52: return 19;
1028
- case 53:
1029
+ case 52: throw Error("Error: State name must be a single word. Found: \"" + t.yytext.trim() + "\"");
1030
+ case 53: return 19;
1031
+ case 54:
1029
1032
  this.popState();
1030
1033
  break;
1031
- case 54: return this.popState(), this.pushState("struct"), 20;
1032
- case 55: return this.popState(), 21;
1033
- case 56: break;
1034
- case 57: return this.begin("NOTE"), 29;
1035
- case 58: return this.popState(), this.pushState("NOTE_ID"), 59;
1036
- case 59: return this.popState(), this.pushState("NOTE_ID"), 60;
1037
- case 60:
1034
+ case 55: return this.popState(), this.pushState("struct"), 20;
1035
+ case 56: return this.popState(), 21;
1036
+ case 57: break;
1037
+ case 58: return this.begin("NOTE"), 29;
1038
+ case 59: return this.popState(), this.pushState("NOTE_ID"), 59;
1039
+ case 60: return this.popState(), this.pushState("NOTE_ID"), 60;
1040
+ case 61:
1038
1041
  this.popState(), this.pushState("FLOATING_NOTE");
1039
1042
  break;
1040
- case 61: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1041
- case 62: break;
1042
- case 63: return "NOTE_TEXT";
1043
- case 64: return a() ? (this.popState(), "ID") : void 0;
1044
- case 65: return a() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1045
- case 66: return this.popState(), n.yytext = n.yytext.substr(2).trim(), 31;
1046
- case 67: return this.popState(), n.yytext = n.yytext.slice(0, -8).trim(), 31;
1047
- case 68: return 6;
1043
+ case 62: return this.popState(), this.pushState("FLOATING_NOTE_ID"), "AS";
1044
+ case 63: break;
1045
+ case 64: return "NOTE_TEXT";
1046
+ case 65: return i() ? (this.popState(), "ID") : void 0;
1047
+ case 66: return i() ? (this.popState(), this.pushState("NOTE_TEXT"), 24) : void 0;
1048
+ case 67: return this.popState(), t.yytext = t.yytext.substr(2).trim(), 31;
1049
+ case 68: return this.popState(), t.yytext = t.yytext.slice(0, -8).trim(), 31;
1048
1050
  case 69: return 6;
1049
- case 70: return 16;
1050
- case 71: return 57;
1051
- case 72: return a() ? 24 : void 0;
1052
- case 73: return n.yytext = n.yytext.trim(), 14;
1053
- case 74: return 15;
1054
- case 75: return 28;
1055
- case 76: return 58;
1056
- case 77: return 5;
1057
- case 78: return "INVALID";
1051
+ case 70: return 6;
1052
+ case 71: return 16;
1053
+ case 72: return 57;
1054
+ case 73: return i() ? 24 : void 0;
1055
+ case 74: return t.yytext = t.yytext.trim(), 14;
1056
+ case 75: return 15;
1057
+ case 76: return 28;
1058
+ case 77: return 58;
1059
+ case 78: return 5;
1060
+ case 79: return "INVALID";
1058
1061
  }
1059
1062
  }, "anonymous"),
1060
1063
  rules: [
@@ -1110,6 +1113,7 @@ var g = (function() {
1110
1113
  /^(?:[^\n\{]*)/i,
1111
1114
  /^(?:["])/i,
1112
1115
  /^(?:[^"]*)/i,
1116
+ /^(?:\w+\s+\w+.*?\{)/i,
1113
1117
  /^(?:[^\n\s\{]+)/i,
1114
1118
  /^(?:\n)/i,
1115
1119
  /^(?:\{)/i,
@@ -1160,43 +1164,43 @@ var g = (function() {
1160
1164
  44,
1161
1165
  45,
1162
1166
  46,
1163
- 55,
1164
1167
  56,
1165
1168
  57,
1166
- 71,
1169
+ 58,
1167
1170
  72,
1168
1171
  73,
1169
1172
  74,
1170
1173
  75,
1171
- 76
1174
+ 76,
1175
+ 77
1172
1176
  ],
1173
1177
  inclusive: !1
1174
1178
  },
1175
1179
  FLOATING_NOTE_ID: {
1176
- rules: [64],
1180
+ rules: [65],
1177
1181
  inclusive: !1
1178
1182
  },
1179
1183
  FLOATING_NOTE: {
1180
1184
  rules: [
1181
- 61,
1182
1185
  62,
1183
- 63
1186
+ 63,
1187
+ 64
1184
1188
  ],
1185
1189
  inclusive: !1
1186
1190
  },
1187
1191
  NOTE_TEXT: {
1188
- rules: [66, 67],
1192
+ rules: [67, 68],
1189
1193
  inclusive: !1
1190
1194
  },
1191
1195
  NOTE_ID: {
1192
- rules: [65],
1196
+ rules: [66],
1193
1197
  inclusive: !1
1194
1198
  },
1195
1199
  NOTE: {
1196
1200
  rules: [
1197
- 58,
1198
1201
  59,
1199
- 60
1202
+ 60,
1203
+ 61
1200
1204
  ],
1201
1205
  inclusive: !1
1202
1206
  },
@@ -1284,7 +1288,8 @@ var g = (function() {
1284
1288
  48,
1285
1289
  52,
1286
1290
  53,
1287
- 54
1291
+ 54,
1292
+ 55
1288
1293
  ],
1289
1294
  inclusive: !1
1290
1295
  },
@@ -1319,18 +1324,18 @@ var g = (function() {
1319
1324
  30,
1320
1325
  33,
1321
1326
  36,
1322
- 54,
1323
- 57,
1324
- 68,
1327
+ 55,
1328
+ 58,
1325
1329
  69,
1326
1330
  70,
1327
1331
  71,
1328
1332
  72,
1329
1333
  73,
1330
1334
  74,
1331
- 76,
1335
+ 75,
1332
1336
  77,
1333
- 78
1337
+ 78,
1338
+ 79
1334
1339
  ],
1335
1340
  inclusive: !0
1336
1341
  }
@@ -1340,100 +1345,101 @@ var g = (function() {
1340
1345
  function P() {
1341
1346
  this.yy = {};
1342
1347
  }
1343
- return t(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1348
+ return f(P, "Parser"), P.prototype = N, N.Parser = P, new P();
1344
1349
  })();
1345
- g.parser = g;
1346
- var _ = g, v = "TB", y = "TB", b = "dir", x = "state", S = "root", C = "relation", w = "classDef", T = "style", E = "applyClass", D = "default", O = "divider", k = "fill:none", A = "fill: #333", j = "c", M = "markdown", N = "normal", P = "rect", F = "rectWithTitle", ee = "stateStart", te = "stateEnd", I = "divider", L = "roundedWithTitle", ne = "note", re = "noteGroup", R = "statediagram", ie = `${R}-state`, ae = "transition", oe = "note", se = `${ae} note-edge`, ce = `${R}-${oe}`, le = `${R}-cluster`, ue = `${R}-cluster-alt`, z = "parent", B = "note", de = "state", V = "----", fe = `${V}${B}`, H = `${V}${z}`, U = /* @__PURE__ */ t((e, t = y) => {
1350
+ y.parser = y;
1351
+ var b = y, x = "TB", S = "TB", C = "dir", w = "state", T = "root", E = "relation", D = "classDef", O = "style", k = "applyClass", A = "default", j = "divider", M = "fill:none", N = "fill: #333", P = "c", ee = "markdown", F = "normal", I = "rect", L = "rectWithTitle", te = "stateStart", ne = "stateEnd", R = "divider", re = "roundedWithTitle", ie = "note", ae = "noteGroup", z = "statediagram", oe = `${z}-state`, B = "transition", se = "note", ce = `${B} note-edge`, le = `${z}-${se}`, ue = `${z}-cluster`, de = `${z}-cluster-alt`, V = "parent", H = "note", fe = "state", U = "----", pe = `${U}${H}`, W = `${U}${V}`, G = /* @__PURE__ */ f((e, t = S) => {
1347
1352
  if (!e.doc) return t;
1348
1353
  let n = t;
1349
1354
  for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1350
1355
  return n;
1351
- }, "getDir"), pe = {
1352
- getClasses: /* @__PURE__ */ t(function(e, t) {
1356
+ }, "getDir"), me = {
1357
+ getClasses: /* @__PURE__ */ f(function(e, t) {
1353
1358
  return t.db.getClasses();
1354
1359
  }, "getClasses"),
1355
- draw: /* @__PURE__ */ t(async function(t, n, r, i) {
1360
+ draw: /* @__PURE__ */ f(async function(t, n, r, i) {
1356
1361
  e.info("REF0:"), e.info("Drawing state diagram (v2)", n);
1357
- let { securityLevel: a, state: o, layout: s } = l();
1362
+ let { securityLevel: a, state: o, layout: s } = u();
1358
1363
  i.db.extract(i.db.getRootDocV2());
1359
- let c = i.db.getData(), u = m(n, a);
1360
- c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, l().look === "neo" ? c.markers = ["barbNeo"] : c.markers = ["barb"], c.diagramId = n, await p(c, u);
1364
+ let c = i.db.getData(), l = _(n, a);
1365
+ c.type = i.type, c.layoutAlgorithm = s, c.nodeSpacing = o?.nodeSpacing || 50, c.rankSpacing = o?.rankSpacing || 50, u().look === "neo" ? c.markers = ["barbNeo"] : c.markers = ["barb"], c.diagramId = n, await h(c, l);
1361
1366
  try {
1362
1367
  (typeof i.db.getLinks == "function" ? i.db.getLinks() : /* @__PURE__ */ new Map()).forEach((t, n) => {
1363
- let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "";
1368
+ let r = typeof n == "string" ? n : typeof n?.id == "string" ? n.id : "", i = c.nodes.find((e) => e.id === r);
1364
1369
  if (!r) {
1365
1370
  e.warn("⚠️ Invalid or missing stateId from key:", JSON.stringify(n));
1366
1371
  return;
1367
1372
  }
1368
- let i = u.node()?.querySelectorAll("g"), a;
1369
- if (i?.forEach((e) => {
1370
- e.textContent?.trim() === r && (a = e);
1371
- }), !a) {
1373
+ let a = l.node()?.querySelectorAll("g.node, g.rough-node"), o;
1374
+ if (a?.forEach((e) => {
1375
+ let t = e.textContent?.trim();
1376
+ (e.id === i?.domId || t === r) && (o = e);
1377
+ }), !o) {
1372
1378
  e.warn("⚠️ Could not find node matching text:", r);
1373
1379
  return;
1374
1380
  }
1375
- let o = a.parentNode;
1376
- if (!o) {
1381
+ let s = o.parentNode;
1382
+ if (!s) {
1377
1383
  e.warn("⚠️ Node has no parent, cannot wrap:", r);
1378
1384
  return;
1379
1385
  }
1380
- let s = document.createElementNS("http://www.w3.org/2000/svg", "a"), c = t.url.replace(/^"+|"+$/g, "");
1381
- if (s.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", c), s.setAttribute("target", "_blank"), t.tooltip) {
1386
+ let u = document.createElementNS("http://www.w3.org/2000/svg", "a"), d = t.url.replace(/^"+|"+$/g, "");
1387
+ if (u.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", d), u.setAttribute("target", "_blank"), t.tooltip) {
1382
1388
  let e = t.tooltip.replace(/^"+|"+$/g, "");
1383
- s.setAttribute("title", e);
1389
+ u.setAttribute("title", e), o.setAttribute("title", e);
1384
1390
  }
1385
- o.replaceChild(s, a), s.appendChild(a), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
1391
+ s.replaceChild(u, o), u.appendChild(o), e.info("🔗 Wrapped node in <a> tag for:", r, t.url);
1386
1392
  });
1387
1393
  } catch (t) {
1388
1394
  e.error("❌ Error injecting clickable links:", t);
1389
1395
  }
1390
- d.insertTitle(u, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), h(u, 8, R, o?.useMaxWidth ?? !0);
1396
+ p.insertTitle(l, "statediagramTitleText", o?.titleTopMargin ?? 25, i.db.getDiagramTitle()), v(l, 8, z, o?.useMaxWidth ?? !0);
1391
1397
  }, "draw"),
1392
- getDir: U
1393
- }, W = /* @__PURE__ */ new Map(), G = 0;
1394
- function K(e = "", t = 0, n = "", r = V) {
1395
- return `${de}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1398
+ getDir: G
1399
+ }, K = /* @__PURE__ */ new Map(), q = 0;
1400
+ function J(e = "", t = 0, n = "", r = U) {
1401
+ return `${fe}-${e}${n !== null && n.length > 0 ? `${r}${n}` : ""}-${t}`;
1396
1402
  }
1397
- t(K, "stateDomId");
1398
- var me = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1403
+ f(J, "stateDomId");
1404
+ var he = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1399
1405
  e.trace("items", n), n.forEach((e) => {
1400
1406
  switch (e.stmt) {
1401
- case x:
1402
- X(t, e, r, i, a, s, c, u);
1407
+ case w:
1408
+ Z(t, e, r, i, a, o, c, l);
1403
1409
  break;
1404
- case D:
1405
- X(t, e, r, i, a, s, c, u);
1410
+ case A:
1411
+ Z(t, e, r, i, a, o, c, l);
1406
1412
  break;
1407
- case C:
1413
+ case E:
1408
1414
  {
1409
- X(t, e.state1, r, i, a, s, c, u), X(t, e.state2, r, i, a, s, c, u);
1415
+ Z(t, e.state1, r, i, a, o, c, l), Z(t, e.state2, r, i, a, o, c, l);
1410
1416
  let n = c === "neo", d = {
1411
- id: "edge" + G,
1417
+ id: "edge" + q,
1412
1418
  start: e.state1.id,
1413
1419
  end: e.state2.id,
1414
1420
  arrowhead: "normal",
1415
1421
  arrowTypeEnd: n ? "arrow_barb_neo" : "arrow_barb",
1416
- style: k,
1422
+ style: M,
1417
1423
  labelStyle: "",
1418
- label: o.sanitizeText(e.description ?? "", l()),
1419
- arrowheadStyle: A,
1420
- labelpos: j,
1421
- labelType: M,
1422
- thickness: N,
1423
- classes: ae,
1424
+ label: s.sanitizeText(e.description ?? "", u()),
1425
+ arrowheadStyle: N,
1426
+ labelpos: P,
1427
+ labelType: ee,
1428
+ thickness: F,
1429
+ classes: B,
1424
1430
  look: c
1425
1431
  };
1426
- a.push(d), G++;
1432
+ a.push(d), q++;
1427
1433
  }
1428
1434
  break;
1429
1435
  }
1430
1436
  });
1431
- }, "setupDoc"), q = /* @__PURE__ */ t((e, t = y) => {
1437
+ }, "setupDoc"), ge = /* @__PURE__ */ f((e, t = S) => {
1432
1438
  let n = t;
1433
1439
  if (e.doc) for (let t of e.doc) t.stmt === "dir" && (n = t.value);
1434
1440
  return n;
1435
1441
  }, "getDir");
1436
- function J(e, t, n) {
1442
+ function Y(e, t, n) {
1437
1443
  if (!t.id || t.id === "</join></fork>" || t.id === "</choice>") return;
1438
1444
  t.cssClasses && (Array.isArray(t.cssCompiledStyles) || (t.cssCompiledStyles = []), t.cssClasses.split(" ").forEach((e) => {
1439
1445
  let r = n.get(e);
@@ -1442,77 +1448,77 @@ function J(e, t, n) {
1442
1448
  let r = e.find((e) => e.id === t.id);
1443
1449
  r ? Object.assign(r, t) : e.push(t);
1444
1450
  }
1445
- t(J, "insertOrUpdateNode");
1446
- function Y(e) {
1451
+ f(Y, "insertOrUpdateNode");
1452
+ function X(e) {
1447
1453
  return e?.classes?.join(" ") ?? "";
1448
1454
  }
1449
- t(Y, "getClassesFromDbInfo");
1450
- function he(e) {
1455
+ f(X, "getClassesFromDbInfo");
1456
+ function _e(e) {
1451
1457
  return e?.styles ?? [];
1452
1458
  }
1453
- t(he, "getStylesFromDbInfo");
1454
- var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1455
- let d = n.id, f = r.get(d), p = Y(f), m = he(f), h = l();
1459
+ f(_e, "getStylesFromDbInfo");
1460
+ var Z = /* @__PURE__ */ f((t, n, r, i, a, o, c, l) => {
1461
+ let d = n.id, f = r.get(d), p = X(f), m = _e(f), h = u();
1456
1462
  if (e.info("dataFetcher parsedItem", n, f, m), d !== "root") {
1457
- let r = P;
1458
- n.start === !0 ? r = ee : n.start === !1 && (r = te), n.type !== D && (r = n.type), W.get(d) || W.set(d, {
1463
+ let r = I;
1464
+ n.start === !0 ? r = te : n.start === !1 && (r = ne), n.type !== A && (r = n.type), K.get(d) || K.set(d, {
1459
1465
  id: d,
1460
1466
  shape: r,
1461
- description: o.sanitizeText(d, h),
1462
- cssClasses: `${p} ${ie}`,
1467
+ description: s.sanitizeText(d, h),
1468
+ cssClasses: `${p} ${oe}`,
1463
1469
  cssStyles: m
1464
1470
  });
1465
- let l = W.get(d);
1466
- n.description && (Array.isArray(l.description) ? (l.shape = F, l.description.push(n.description)) : l.description?.length && l.description.length > 0 ? (l.shape = F, l.description === d ? l.description = [n.description] : l.description = [l.description, n.description]) : (l.shape = P, l.description = n.description), l.description = o.sanitizeTextOrArray(l.description, h)), l.description?.length === 1 && l.shape === F && (l.type === "group" ? l.shape = L : l.shape = P), !l.type && n.doc && (e.info("Setting cluster for XCX", d, q(n)), l.type = "group", l.isGroup = !0, l.dir = q(n), l.shape = n.type === O ? I : L, l.cssClasses = `${l.cssClasses} ${le} ${s ? ue : ""}`);
1471
+ let u = K.get(d);
1472
+ n.description && (Array.isArray(u.description) ? (u.shape = L, u.description.push(n.description)) : u.description?.length && u.description.length > 0 ? (u.shape = L, u.description === d ? u.description = [n.description] : u.description = [u.description, n.description]) : (u.shape = I, u.description = n.description), u.description = s.sanitizeTextOrArray(u.description, h)), u.description?.length === 1 && u.shape === L && (u.type === "group" ? u.shape = re : u.shape = I), !u.type && n.doc && (e.info("Setting cluster for XCX", d, ge(n)), u.type = "group", u.isGroup = !0, u.dir = ge(n), u.shape = n.type === j ? R : re, u.cssClasses = `${u.cssClasses} ${ue} ${o ? de : ""}`);
1467
1473
  let f = {
1468
1474
  labelStyle: "",
1469
- shape: l.shape,
1470
- label: l.description,
1471
- cssClasses: l.cssClasses,
1475
+ shape: u.shape,
1476
+ label: u.description,
1477
+ cssClasses: u.cssClasses,
1472
1478
  cssCompiledStyles: [],
1473
- cssStyles: l.cssStyles,
1479
+ cssStyles: u.cssStyles,
1474
1480
  id: d,
1475
- dir: l.dir,
1476
- domId: K(d, G),
1477
- type: l.type,
1478
- isGroup: l.type === "group",
1481
+ dir: u.dir,
1482
+ domId: J(d, q),
1483
+ type: u.type,
1484
+ isGroup: u.type === "group",
1479
1485
  padding: 8,
1480
1486
  rx: 10,
1481
1487
  ry: 10,
1482
1488
  look: c,
1483
1489
  labelType: "markdown"
1484
1490
  };
1485
- if (f.shape === I && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
1491
+ if (f.shape === R && (f.label = ""), t && t.id !== "root" && (e.trace("Setting node ", d, " to be child of its parent ", t.id), f.parentId = t.id), f.centerLabel = !0, n.note) {
1486
1492
  let e = {
1487
1493
  labelStyle: "",
1488
- shape: ne,
1494
+ shape: ie,
1489
1495
  label: n.note.text,
1490
1496
  labelType: "markdown",
1491
- cssClasses: ce,
1497
+ cssClasses: le,
1492
1498
  cssStyles: [],
1493
1499
  cssCompiledStyles: [],
1494
- id: d + fe + "-" + G,
1495
- domId: K(d, G, B),
1496
- type: l.type,
1497
- isGroup: l.type === "group",
1500
+ id: d + pe + "-" + q,
1501
+ domId: J(d, q, H),
1502
+ type: u.type,
1503
+ isGroup: u.type === "group",
1498
1504
  padding: h.flowchart?.padding,
1499
1505
  look: c,
1500
1506
  position: n.note.position
1501
- }, t = d + H, r = {
1507
+ }, t = d + W, r = {
1502
1508
  labelStyle: "",
1503
- shape: re,
1509
+ shape: ae,
1504
1510
  label: n.note.text,
1505
- cssClasses: l.cssClasses,
1511
+ cssClasses: u.cssClasses,
1506
1512
  cssStyles: [],
1507
- id: d + H,
1508
- domId: K(d, G, z),
1513
+ id: d + W,
1514
+ domId: J(d, q, V),
1509
1515
  type: "group",
1510
1516
  isGroup: !0,
1511
1517
  padding: 16,
1512
1518
  look: c,
1513
1519
  position: n.note.position
1514
1520
  };
1515
- G++, r.id = t, e.parentId = t, J(i, r, u), J(i, e, u), J(i, f, u);
1521
+ q++, r.id = t, e.parentId = t, Y(i, r, l), Y(i, e, l), Y(i, f, l);
1516
1522
  let o = d, s = e.id;
1517
1523
  n.note.position === "left of" && (o = e.id, s = d), a.push({
1518
1524
  id: o + "-" + s,
@@ -1520,21 +1526,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1520
1526
  end: s,
1521
1527
  arrowhead: "none",
1522
1528
  arrowTypeEnd: "",
1523
- style: k,
1529
+ style: M,
1524
1530
  labelStyle: "",
1525
- classes: se,
1526
- arrowheadStyle: A,
1527
- labelpos: j,
1528
- labelType: M,
1529
- thickness: N,
1531
+ classes: ce,
1532
+ arrowheadStyle: N,
1533
+ labelpos: P,
1534
+ labelType: ee,
1535
+ thickness: F,
1530
1536
  look: c
1531
1537
  });
1532
- } else J(i, f, u);
1538
+ } else Y(i, f, l);
1533
1539
  }
1534
- n.doc && (e.trace("Adding nodes children "), me(n, n.doc, r, i, a, !s, c, u));
1535
- }, "dataFetcher"), ge = /* @__PURE__ */ t(() => {
1536
- W.clear(), G = 0;
1537
- }, "reset"), Z = {
1540
+ n.doc && (e.trace("Adding nodes children "), he(n, n.doc, r, i, a, !o, c, l));
1541
+ }, "dataFetcher"), ve = /* @__PURE__ */ f(() => {
1542
+ K.clear(), q = 0;
1543
+ }, "reset"), Q = {
1538
1544
  START_NODE: "[*]",
1539
1545
  START_TYPE: "start",
1540
1546
  END_NODE: "[*]",
@@ -1543,16 +1549,16 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1543
1549
  FILL_KEYWORD: "fill",
1544
1550
  BG_FILL: "bgFill",
1545
1551
  STYLECLASS_SEP: ","
1546
- }, _e = /* @__PURE__ */ t(() => /* @__PURE__ */ new Map(), "newClassesList"), Q = /* @__PURE__ */ t(() => ({
1552
+ }, ye = /* @__PURE__ */ f(() => /* @__PURE__ */ new Map(), "newClassesList"), be = /* @__PURE__ */ f(() => ({
1547
1553
  relations: [],
1548
1554
  states: /* @__PURE__ */ new Map(),
1549
1555
  documents: {}
1550
- }), "newDoc"), $ = /* @__PURE__ */ t((e) => JSON.parse(JSON.stringify(e)), "clone"), ve = class {
1556
+ }), "newDoc"), $ = /* @__PURE__ */ f((e) => JSON.parse(JSON.stringify(e)), "clone"), xe = class {
1551
1557
  constructor(e) {
1552
- this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = _e(), this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.getAccTitle = u, this.setAccTitle = i, this.getAccDescription = s, this.setAccDescription = n, this.setDiagramTitle = r, this.getDiagramTitle = c, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this);
1558
+ this.version = e, this.nodes = [], this.edges = [], this.rootDoc = [], this.classes = ye(), this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.dividerCnt = 0, this.links = /* @__PURE__ */ new Map(), this.funs = [], this.getAccTitle = d, this.setAccTitle = i, this.getAccDescription = c, this.setAccDescription = n, this.setDiagramTitle = r, this.getDiagramTitle = l, this.clear(), this.setRootDoc = this.setRootDoc.bind(this), this.getDividerId = this.getDividerId.bind(this), this.setDirection = this.setDirection.bind(this), this.trimColon = this.trimColon.bind(this), this.bindFunctions = this.bindFunctions.bind(this);
1553
1559
  }
1554
1560
  static {
1555
- t(this, "StateDB");
1561
+ f(this, "StateDB");
1556
1562
  }
1557
1563
  static {
1558
1564
  this.relationType = {
@@ -1565,27 +1571,27 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1565
1571
  extract(e) {
1566
1572
  this.clear(!0);
1567
1573
  for (let t of Array.isArray(e) ? e : e.doc) switch (t.stmt) {
1568
- case x:
1574
+ case w:
1569
1575
  this.addState(t.id.trim(), t.type, t.doc, t.description, t.note);
1570
1576
  break;
1571
- case C:
1577
+ case E:
1572
1578
  this.addRelation(t.state1, t.state2, t.description);
1573
1579
  break;
1574
- case w:
1580
+ case D:
1575
1581
  this.addStyleClass(t.id.trim(), t.classes);
1576
1582
  break;
1577
- case T:
1583
+ case O:
1578
1584
  this.handleStyleDef(t);
1579
1585
  break;
1580
- case E:
1586
+ case k:
1581
1587
  this.setCssClass(t.id.trim(), t.styleClass);
1582
1588
  break;
1583
1589
  case "click":
1584
1590
  this.addLink(t.id, t.url, t.tooltip);
1585
1591
  break;
1586
1592
  }
1587
- let t = this.getStates(), n = l();
1588
- ge(), X(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1593
+ let t = this.getStates(), n = u();
1594
+ ve(), Z(void 0, this.getRootDocV2(), t, this.nodes, this.edges, !0, n.look, this.classes);
1589
1595
  for (let e of this.nodes) if (Array.isArray(e.label)) {
1590
1596
  if (e.description = e.label.slice(1), e.isGroup && e.description.length > 0) throw Error(`Group nodes can only have label. Remove the additional description for node [${e.id}]`);
1591
1597
  e.label = e.label[0];
@@ -1606,20 +1612,20 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1606
1612
  e.info("Setting root doc", t), this.rootDoc = t, this.version === 1 ? this.extract(t) : this.extract(this.getRootDocV2());
1607
1613
  }
1608
1614
  docTranslator(e, t, n) {
1609
- if (t.stmt === C) {
1615
+ if (t.stmt === E) {
1610
1616
  this.docTranslator(e, t.state1, !0), this.docTranslator(e, t.state2, !1);
1611
1617
  return;
1612
1618
  }
1613
- if (t.stmt === x && (t.id === Z.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== S && t.stmt !== x || !t.doc) return;
1619
+ if (t.stmt === w && (t.id === Q.START_NODE ? (t.id = e.id + (n ? "_start" : "_end"), t.start = n) : t.id = t.id.trim()), t.stmt !== T && t.stmt !== w || !t.doc) return;
1614
1620
  let r = [], i = [];
1615
- for (let e of t.doc) if (e.type === O) {
1621
+ for (let e of t.doc) if (e.type === j) {
1616
1622
  let t = $(e);
1617
1623
  t.doc = $(i), r.push(t), i = [];
1618
1624
  } else i.push(e);
1619
1625
  if (r.length > 0 && i.length > 0) {
1620
1626
  let e = {
1621
- stmt: x,
1622
- id: f(),
1627
+ stmt: w,
1628
+ id: m(),
1623
1629
  type: "divider",
1624
1630
  doc: $(i)
1625
1631
  };
@@ -1629,21 +1635,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1629
1635
  }
1630
1636
  getRootDocV2() {
1631
1637
  return this.docTranslator({
1632
- id: S,
1633
- stmt: S
1638
+ id: T,
1639
+ stmt: T
1634
1640
  }, {
1635
- id: S,
1636
- stmt: S,
1641
+ id: T,
1642
+ stmt: T,
1637
1643
  doc: this.rootDoc
1638
1644
  }, !0), {
1639
- id: S,
1645
+ id: T,
1640
1646
  doc: this.rootDoc
1641
1647
  };
1642
1648
  }
1643
- addState(t, n = D, r = void 0, i = void 0, a = void 0, s = void 0, c = void 0, u = void 0) {
1649
+ addState(t, n = A, r = void 0, i = void 0, a = void 0, o = void 0, c = void 0, l = void 0) {
1644
1650
  let d = t?.trim();
1645
1651
  if (!this.currentDocument.states.has(d)) e.info("Adding state ", d, i), this.currentDocument.states.set(d, {
1646
- stmt: x,
1652
+ stmt: w,
1647
1653
  id: d,
1648
1654
  descriptions: [],
1649
1655
  type: n,
@@ -1661,12 +1667,12 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1661
1667
  if (i && (e.info("Setting state description", d, i), (Array.isArray(i) ? i : [i]).forEach((e) => this.addDescription(d, e.trim()))), a) {
1662
1668
  let e = this.currentDocument.states.get(d);
1663
1669
  if (!e) throw Error(`State not found: ${d}`);
1664
- e.note = a, e.note.text = o.sanitizeText(e.note.text, l());
1670
+ e.note = a, e.note.text = s.sanitizeText(e.note.text, u());
1665
1671
  }
1666
- s && (e.info("Setting state classes", d, s), (Array.isArray(s) ? s : [s]).forEach((e) => this.setCssClass(d, e.trim()))), c && (e.info("Setting state styles", d, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(d, e.trim()))), u && (e.info("Setting state styles", d, c), (Array.isArray(u) ? u : [u]).forEach((e) => this.setTextStyle(d, e.trim())));
1672
+ o && (e.info("Setting state classes", d, o), (Array.isArray(o) ? o : [o]).forEach((e) => this.setCssClass(d, e.trim()))), c && (e.info("Setting state styles", d, c), (Array.isArray(c) ? c : [c]).forEach((e) => this.setStyle(d, e.trim()))), l && (e.info("Setting state styles", d, c), (Array.isArray(l) ? l : [l]).forEach((e) => this.setTextStyle(d, e.trim())));
1667
1673
  }
1668
1674
  clear(e) {
1669
- this.nodes = [], this.edges = [], this.documents = { root: Q() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = _e(), e || (this.links = /* @__PURE__ */ new Map(), a());
1675
+ this.nodes = [], this.edges = [], this.funs = [this.setupToolTips.bind(this)], this.documents = { root: be() }, this.currentDocument = this.documents.root, this.startEndCount = 0, this.classes = ye(), e || (this.links = /* @__PURE__ */ new Map(), a());
1670
1676
  }
1671
1677
  getState(e) {
1672
1678
  return this.currentDocument.states.get(e);
@@ -1690,39 +1696,39 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1690
1696
  return this.links;
1691
1697
  }
1692
1698
  startIdIfNeeded(e = "") {
1693
- return e === Z.START_NODE ? (this.startEndCount++, `${Z.START_TYPE}${this.startEndCount}`) : e;
1699
+ return e === Q.START_NODE ? (this.startEndCount++, `${Q.START_TYPE}${this.startEndCount}`) : e;
1694
1700
  }
1695
- startTypeIfNeeded(e = "", t = D) {
1696
- return e === Z.START_NODE ? Z.START_TYPE : t;
1701
+ startTypeIfNeeded(e = "", t = A) {
1702
+ return e === Q.START_NODE ? Q.START_TYPE : t;
1697
1703
  }
1698
1704
  endIdIfNeeded(e = "") {
1699
- return e === Z.END_NODE ? (this.startEndCount++, `${Z.END_TYPE}${this.startEndCount}`) : e;
1705
+ return e === Q.END_NODE ? (this.startEndCount++, `${Q.END_TYPE}${this.startEndCount}`) : e;
1700
1706
  }
1701
- endTypeIfNeeded(e = "", t = D) {
1702
- return e === Z.END_NODE ? Z.END_TYPE : t;
1707
+ endTypeIfNeeded(e = "", t = A) {
1708
+ return e === Q.END_NODE ? Q.END_TYPE : t;
1703
1709
  }
1704
1710
  addRelationObjs(e, t, n = "") {
1705
- let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), s = this.startTypeIfNeeded(t.id.trim(), t.type);
1706
- this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, s, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1711
+ let r = this.startIdIfNeeded(e.id.trim()), i = this.startTypeIfNeeded(e.id.trim(), e.type), a = this.startIdIfNeeded(t.id.trim()), o = this.startTypeIfNeeded(t.id.trim(), t.type);
1712
+ this.addState(r, i, e.doc, e.description, e.note, e.classes, e.styles, e.textStyles), this.addState(a, o, t.doc, t.description, t.note, t.classes, t.styles, t.textStyles), this.currentDocument.relations.push({
1707
1713
  id1: r,
1708
1714
  id2: a,
1709
- relationTitle: o.sanitizeText(n, l())
1715
+ relationTitle: s.sanitizeText(n, u())
1710
1716
  });
1711
1717
  }
1712
1718
  addRelation(e, t, n) {
1713
1719
  if (typeof e == "object" && typeof t == "object") this.addRelationObjs(e, t, n);
1714
1720
  else if (typeof e == "string" && typeof t == "string") {
1715
- let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), s = this.endTypeIfNeeded(t);
1716
- this.addState(r, i), this.addState(a, s), this.currentDocument.relations.push({
1721
+ let r = this.startIdIfNeeded(e.trim()), i = this.startTypeIfNeeded(e), a = this.endIdIfNeeded(t.trim()), o = this.endTypeIfNeeded(t);
1722
+ this.addState(r, i), this.addState(a, o), this.currentDocument.relations.push({
1717
1723
  id1: r,
1718
1724
  id2: a,
1719
- relationTitle: n ? o.sanitizeText(n, l()) : void 0
1725
+ relationTitle: n ? s.sanitizeText(n, u()) : void 0
1720
1726
  });
1721
1727
  }
1722
1728
  }
1723
1729
  addDescription(e, t) {
1724
1730
  let n = this.currentDocument.states.get(e), r = t.startsWith(":") ? t.replace(":", "").trim() : t;
1725
- n?.descriptions?.push(o.sanitizeText(r, l()));
1731
+ n?.descriptions?.push(s.sanitizeText(r, u()));
1726
1732
  }
1727
1733
  cleanupLabel(e) {
1728
1734
  return e.startsWith(":") ? e.slice(2).trim() : e.trim();
@@ -1737,10 +1743,10 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1737
1743
  textStyles: []
1738
1744
  });
1739
1745
  let n = this.classes.get(e);
1740
- t && n && t.split(Z.STYLECLASS_SEP).forEach((e) => {
1746
+ t && n && t.split(Q.STYLECLASS_SEP).forEach((e) => {
1741
1747
  let t = e.replace(/([^;]*);/, "$1").trim();
1742
- if (RegExp(Z.COLOR_KEYWORD).exec(e)) {
1743
- let e = t.replace(Z.FILL_KEYWORD, Z.BG_FILL).replace(Z.COLOR_KEYWORD, Z.FILL_KEYWORD);
1748
+ if (RegExp(Q.COLOR_KEYWORD).exec(e)) {
1749
+ let e = t.replace(Q.FILL_KEYWORD, Q.BG_FILL).replace(Q.COLOR_KEYWORD, Q.FILL_KEYWORD);
1744
1750
  n.textStyles.push(e);
1745
1751
  }
1746
1752
  n.styles.push(t);
@@ -1749,6 +1755,17 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1749
1755
  getClasses() {
1750
1756
  return this.classes;
1751
1757
  }
1758
+ setupToolTips(e) {
1759
+ let n = g();
1760
+ t(e).select("svg").selectAll("g.node, g.rough-node").on("mouseover", (e) => {
1761
+ let r = t(e.currentTarget), i = r.attr("title");
1762
+ if (i === null) return;
1763
+ let a = e.currentTarget?.getBoundingClientRect();
1764
+ n.transition().duration(200).style("opacity", ".9"), n.style("left", window.scrollX + a.left + (a.right - a.left) / 2 + "px").style("top", window.scrollY + a.bottom + "px"), n.html(o.sanitize(i)), r.classed("hover", !0);
1765
+ }).on("mouseout", (e) => {
1766
+ n.transition().duration(500).style("opacity", 0), t(e.currentTarget).classed("hover", !1);
1767
+ });
1768
+ }
1752
1769
  setCssClass(e, t) {
1753
1770
  e.split(",").forEach((e) => {
1754
1771
  let n = this.getState(e);
@@ -1765,16 +1782,21 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1765
1782
  setTextStyle(e, t) {
1766
1783
  this.getState(e)?.textStyles?.push(t);
1767
1784
  }
1785
+ bindFunctions(e) {
1786
+ this.funs.forEach((t) => {
1787
+ t(e);
1788
+ });
1789
+ }
1768
1790
  getDirectionStatement() {
1769
- return this.rootDoc.find((e) => e.stmt === b);
1791
+ return this.rootDoc.find((e) => e.stmt === C);
1770
1792
  }
1771
1793
  getDirection() {
1772
- return this.getDirectionStatement()?.value ?? v;
1794
+ return this.getDirectionStatement()?.value ?? x;
1773
1795
  }
1774
1796
  setDirection(e) {
1775
1797
  let t = this.getDirectionStatement();
1776
1798
  t ? t.value = e : this.rootDoc.unshift({
1777
- stmt: b,
1799
+ stmt: C,
1778
1800
  value: e
1779
1801
  });
1780
1802
  }
@@ -1782,19 +1804,19 @@ var X = /* @__PURE__ */ t((t, n, r, i, a, s, c, u) => {
1782
1804
  return e.startsWith(":") ? e.slice(1).trim() : e.trim();
1783
1805
  }
1784
1806
  getData() {
1785
- let e = l();
1807
+ let e = u();
1786
1808
  return {
1787
1809
  nodes: this.nodes,
1788
1810
  edges: this.edges,
1789
1811
  other: {},
1790
1812
  config: e,
1791
- direction: U(this.getRootDocV2())
1813
+ direction: G(this.getRootDocV2())
1792
1814
  };
1793
1815
  }
1794
1816
  getConfig() {
1795
- return l().state;
1817
+ return u().state;
1796
1818
  }
1797
- }, ye = /* @__PURE__ */ t((e) => `
1819
+ }, Se = /* @__PURE__ */ f((e) => `
1798
1820
  defs [id$="-barbEnd"] {
1799
1821
  fill: ${e.transitionColor};
1800
1822
  stroke: ${e.transitionColor};
@@ -2021,4 +2043,4 @@ g.stateGroup line {
2021
2043
  }
2022
2044
  `, "getStyles");
2023
2045
  //#endregion
2024
- export { ye as i, _ as n, pe as r, ve as t };
2046
+ export { Se as i, b as n, me as r, xe as t };