@sme.up/ketchup2 2.6.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 (598) hide show
  1. package/dist/abnfDiagram-VCTEODGH-C9blQ78p.cjs +1 -0
  2. package/dist/abnfDiagram-VCTEODGH-DZIaCwNE.js +89 -0
  3. package/dist/{arc-yUAZoqJP.js → arc-7ZXqzxve.js} +1 -1
  4. package/dist/{arc-CYi2lpSd.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-CMX2LiQK.js → architectureDiagram-5GKGNRK7-BJvIxhbL.js} +338 -252
  9. package/dist/assets/svg/functions.svg +1 -0
  10. package/dist/basic-components/autocomplete/autocomplete-types.d.ts +2 -1
  11. package/dist/basic-components/autocomplete/autocomplete-types.d.ts.map +1 -1
  12. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  13. package/dist/basic-components/button/button-utils.d.ts.map +1 -1
  14. package/dist/basic-components/button-list/button-list-types.d.ts +2 -1
  15. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  17. package/dist/basic-components/cell/cell-types.d.ts +5 -0
  18. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  19. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  20. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  21. package/dist/basic-components/checkbox/checkbox-types.d.ts +5 -0
  22. package/dist/basic-components/checkbox/checkbox-types.d.ts.map +1 -1
  23. package/dist/basic-components/chips/chips-types.d.ts +15 -1
  24. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  25. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  26. package/dist/basic-components/chips-input/chips-input-types.d.ts +5 -0
  27. package/dist/basic-components/chips-input/chips-input-types.d.ts.map +1 -1
  28. package/dist/basic-components/chips-input/chips-input.d.ts.map +1 -1
  29. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts +5 -0
  30. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete-types.d.ts.map +1 -1
  31. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  32. package/dist/basic-components/multiple-select/multiple-select-types.d.ts +5 -0
  33. package/dist/basic-components/multiple-select/multiple-select-types.d.ts.map +1 -1
  34. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  35. package/dist/blockDiagram-I7D4REHJ-C5aW9ypR.js +1919 -0
  36. package/dist/blockDiagram-I7D4REHJ-fT7Of27R.cjs +129 -0
  37. package/dist/c4Diagram-7LVT6UL2-B1n5PnN5.cjs +38 -0
  38. package/dist/{c4Diagram-AAUBKEIU-BUOgTWLR.js → c4Diagram-7LVT6UL2-JxFfT5VH.js} +808 -789
  39. package/dist/channel-BvUly9jN.cjs +1 -0
  40. package/dist/{channel-CAhFwf6U.js → channel-D6agWknC.js} +1 -1
  41. package/dist/chunk-2E4U76K2-BiZwNOhf.cjs +1 -0
  42. package/dist/chunk-2E4U76K2-C8vehurw.js +346 -0
  43. package/dist/chunk-2Q5K7J3B-B8v9mTdK.cjs +1 -0
  44. package/dist/{chunk-QZHKN3VN-cS9OamWo.js → chunk-2Q5K7J3B-kzxEEeTu.js} +2 -2
  45. package/dist/chunk-4HAMMTFA-Db_fcZEn.cjs +62 -0
  46. package/dist/{chunk-3OPIFGDE-BYuWDDGY.js → chunk-4HAMMTFA-MZIwowe1.js} +1665 -1143
  47. package/dist/{chunk-FMBD7UC4-Cia16Ryi.js → chunk-5VM5RSS4-Cr17nBXp.js} +2 -2
  48. package/dist/{chunk-FMBD7UC4-BLLpskYF.cjs → chunk-5VM5RSS4-CwDmQ9T_.cjs} +1 -1
  49. package/dist/{chunk-5ZQYHXKU-BvO58_5C.js → chunk-75Z2AOVW-BwUD389x.js} +56 -55
  50. package/dist/chunk-75Z2AOVW-RbCLc-XL.cjs +2 -0
  51. package/dist/chunk-CLGD4ZFX-DKRy6g5T.js +10 -0
  52. package/dist/chunk-CLGD4ZFX-Dvn-kRD7.cjs +1 -0
  53. package/dist/{chunk-CSCIHK7Q-Drr_NBLR.js → chunk-DU6HZSFF-CNSdkWoH.js} +1584 -621
  54. package/dist/chunk-DU6HZSFF-mznJTFyO.cjs +127 -0
  55. package/dist/chunk-F27PBJKO-C5NrgqMI.cjs +1 -0
  56. package/dist/{chunk-ND2GUHAM-CKQ1Jk8O.js → chunk-F27PBJKO-DKsmevT5.js} +18 -17
  57. package/dist/chunk-FOHPRMQF-BYsnEQU5.cjs +161 -0
  58. package/dist/{chunk-NNHCCRGN-BB1q5NkR.js → chunk-FOHPRMQF-C49KxWOg.js} +5156 -4419
  59. package/dist/chunk-GMAD6QVW-BVSRANO9.cjs +72 -0
  60. package/dist/{chunk-O5CBEL6O-BIU6TcWp.js → chunk-GMAD6QVW-DKxKOKLF.js} +459 -503
  61. package/dist/chunk-GVQU2GXP-BiuaO1L5.cjs +1 -0
  62. package/dist/chunk-GVQU2GXP-w4KY-she.js +37 -0
  63. package/dist/chunk-IMKFNOWR-CusIwu2H.cjs +231 -0
  64. package/dist/{chunk-AQP2D5EJ-Cp3ieoZF.js → chunk-IMKFNOWR-DHxMOe_C.js} +313 -291
  65. package/dist/{chunk-4BX2VUAB-B74FMcxr.js → chunk-JWPE2WC7-Ccb0QaC8.js} +2 -2
  66. package/dist/chunk-JWPE2WC7-Cs1kjq8S.cjs +1 -0
  67. package/dist/chunk-L3NEJ4N5-B8UQMgqc.cjs +1 -0
  68. package/dist/chunk-L3NEJ4N5-CvNbHpcd.js +245 -0
  69. package/dist/chunk-LNGE3PJU-CiGrDO_F.js +1513 -0
  70. package/dist/chunk-LNGE3PJU-TgsSSByc.cjs +34 -0
  71. package/dist/{chunk-KSCS5N6A-pd39ksIM.js → chunk-OSK3NFVY-BmtDbEvT.js} +304 -195
  72. package/dist/chunk-OSK3NFVY-DE9_ERt9.cjs +10 -0
  73. package/dist/chunk-P2QGCYS3-DRvvOWJ2.js +67 -0
  74. package/dist/chunk-P2QGCYS3-DqT85Q-S.cjs +1 -0
  75. package/dist/chunk-POPQ4Y6H-CaEkosGL.js +26 -0
  76. package/dist/chunk-POPQ4Y6H-QqO5seyb.cjs +1 -0
  77. package/dist/chunk-PWAF6VOD-CbmhQpgH.js +277 -0
  78. package/dist/chunk-PWAF6VOD-CjrO-QHU.cjs +1 -0
  79. package/dist/{flowDiagram-I6XJVG4X-Dx5d6cgt.js → chunk-SHT3W25Y-DJgD-hyF.js} +581 -538
  80. package/dist/chunk-SHT3W25Y-DuMn9iH6.cjs +168 -0
  81. package/dist/chunk-SVP7TREG-BNwvtyzm.js +490 -0
  82. package/dist/chunk-SVP7TREG-CiwWyOxx.cjs +88 -0
  83. package/dist/chunk-TICWLB2K-1u0p_luB.cjs +206 -0
  84. package/dist/{chunk-727SXJPM-BDsxon3G.js → chunk-TICWLB2K-DqSHwYf9.js} +185 -180
  85. package/dist/chunk-TLUHSLCS-ZDzqyqeY.cjs +1 -0
  86. package/dist/{chunk-LZXEDZCA-oQMllZja.js → chunk-TLUHSLCS-opHh7fd-.js} +35 -25
  87. package/dist/chunk-XXDRQBXY-BF71LTT1.cjs +1 -0
  88. package/dist/chunk-XXDRQBXY-BZK6GgVm.js +9 -0
  89. package/dist/chunk-Y2CYZVJY-CnmLqFtv.cjs +1 -0
  90. package/dist/chunk-Y2CYZVJY-i11wjrBe.js +12 -0
  91. package/dist/classDiagram-ZZMXUADV-BTRkvFx4.js +30 -0
  92. package/dist/classDiagram-ZZMXUADV-CwAl_N60.cjs +1 -0
  93. package/dist/classDiagram-v2-VYDZK3BY-CFutvfy-.js +30 -0
  94. package/dist/classDiagram-v2-VYDZK3BY-CwAl_N60.cjs +1 -0
  95. package/dist/components/activity-timeline/activity-timeline-types.d.ts +46 -0
  96. package/dist/components/activity-timeline/activity-timeline-types.d.ts.map +1 -0
  97. package/dist/components/activity-timeline/activity-timeline.d.ts +4 -0
  98. package/dist/components/activity-timeline/activity-timeline.d.ts.map +1 -0
  99. package/dist/components/box-list/box-list.d.ts.map +1 -1
  100. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts +12 -0
  101. package/dist/components/data-table/assets/data-table-row-actions-collapsed.d.ts.map +1 -0
  102. package/dist/components/data-table/assets/data-table-row-actions.d.ts +11 -0
  103. package/dist/components/data-table/assets/data-table-row-actions.d.ts.map +1 -0
  104. package/dist/components/data-table/columns/useColumnWidths.d.ts +6 -1
  105. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  106. package/dist/components/data-table/data-table-types.d.ts +108 -4
  107. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  108. package/dist/components/data-table/data-table.d.ts.map +1 -1
  109. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  110. package/dist/components/data-table/header/header-types.d.ts +14 -4
  111. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  112. package/dist/components/data-table/sorting/parseDftSort.d.ts +14 -0
  113. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -0
  114. package/dist/components/data-table/sorting/parseDftSort.test.d.ts +2 -0
  115. package/dist/components/data-table/sorting/parseDftSort.test.d.ts.map +1 -0
  116. package/dist/components/data-table/sorting/sortTable-utils.d.ts +8 -9
  117. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  118. package/dist/components/data-table/sorting/useSortableTable.d.ts +3 -5
  119. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  120. package/dist/components/data-table/state/datatable-state.d.ts +1 -0
  121. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  122. package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
  123. package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
  124. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  125. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts +14 -0
  126. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -0
  127. package/dist/components/workflow-designer/workflow-designer-types.d.ts +109 -0
  128. package/dist/components/workflow-designer/workflow-designer-types.d.ts.map +1 -0
  129. package/dist/components/workflow-designer/workflow-designer-utils.d.ts +86 -0
  130. package/dist/components/workflow-designer/workflow-designer-utils.d.ts.map +1 -0
  131. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts +2 -0
  132. package/dist/components/workflow-designer/workflow-designer-utils.test.d.ts.map +1 -0
  133. package/dist/components/workflow-designer/workflow-designer.d.ts +15 -0
  134. package/dist/components/workflow-designer/workflow-designer.d.ts.map +1 -0
  135. package/dist/{cose-bilkent-S5V4N54A-DZmA7Nat.js → cose-bilkent-JH36ORCC-CE0T5PqO.js} +23 -23
  136. package/dist/cose-bilkent-JH36ORCC-D6t9R42P.cjs +1 -0
  137. package/dist/cynefin-OW5HDTMX-CsZ3W32G.cjs +1 -0
  138. package/dist/cynefin-OW5HDTMX-DlKRHClQ.js +3 -0
  139. package/dist/cynefinDiagram-5FMLGOSQ-D5vkxB9p.js +349 -0
  140. package/dist/cynefinDiagram-5FMLGOSQ-D95Uad6U.cjs +62 -0
  141. package/dist/{cytoscape.esm-BU21wl3m.js → cytoscape.esm-BQqfb1oS.js} +2260 -2206
  142. package/dist/cytoscape.esm-TdwWzXkE.cjs +321 -0
  143. package/dist/dagre-GXQ25YYZ-CFXgAmuL.js +423 -0
  144. package/dist/dagre-GXQ25YYZ-NS5a_ezX.cjs +4 -0
  145. package/dist/{dagre-B2BBwKNb.cjs → dagre-nX1Mh32P.cjs} +1 -1
  146. package/dist/{dagre-3-RnF0EK.js → dagre-qXSFUdzO.js} +131 -131
  147. package/dist/diagram-S7CK7UJ4-CTj-4VAh.cjs +30 -0
  148. package/dist/diagram-S7CK7UJ4-DrGNegqs.js +301 -0
  149. package/dist/{diagram-2AECGRRQ-BITzWXbn.js → diagram-UQ7AKVKN-LU56O9S9.js} +82 -81
  150. package/dist/diagram-UQ7AKVKN-eskbTWOc.cjs +41 -0
  151. package/dist/{diagram-KO2AKTUF-DwTH3Hoo.js → diagram-VSXAHHWV-CaQnupEx.js} +66 -65
  152. package/dist/diagram-VSXAHHWV-DzHhzg5V.cjs +3 -0
  153. package/dist/diagram-VX7I27RA-D7Ibz__z.cjs +24 -0
  154. package/dist/{diagram-OG6HWLK6-CPzvG6Xi.js → diagram-VX7I27RA-DH-s9daK.js} +105 -104
  155. package/dist/diagram-Z3DM3KII-BpFP72Tr.cjs +24 -0
  156. package/dist/{diagram-LMA3HP47-nYPIM4Uq.js → diagram-Z3DM3KII-DWhRX2l9.js} +21 -20
  157. package/dist/{dist-BEmBi80K.js → dist-C7OpkiTz.js} +2 -3
  158. package/dist/dist-DrOEvFlx.cjs +1 -0
  159. package/dist/ebnfDiagram-PWID7BFC-CtT2erlt.js +100 -0
  160. package/dist/ebnfDiagram-PWID7BFC-DXCy8fra.cjs +1 -0
  161. package/dist/erDiagram-RLTQ6QDP-B-cUtqmN.cjs +99 -0
  162. package/dist/erDiagram-RLTQ6QDP-CxxAoCSs.js +1966 -0
  163. package/dist/eventmodeling-NTZA5JFV-5J5w1INt.js +3 -0
  164. package/dist/eventmodeling-NTZA5JFV-DcUTtbEf.cjs +1 -0
  165. package/dist/flowDiagram-HODETNUW-B6sXxv0S.cjs +1 -0
  166. package/dist/flowDiagram-HODETNUW-BUvMJJnE.js +17 -0
  167. package/dist/functional-components/action-list/action-list-types.d.ts +0 -7
  168. package/dist/functional-components/action-list/action-list-types.d.ts.map +1 -1
  169. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  170. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +2 -0
  171. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  172. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  173. package/dist/functional-components/row/row-types.d.ts +13 -0
  174. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  175. package/dist/functional-components/row/row.d.ts.map +1 -1
  176. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +3 -1
  177. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  178. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  179. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +42 -0
  180. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -0
  181. package/dist/functional-components/tree-picker/tree-picker.d.ts +3 -0
  182. package/dist/functional-components/tree-picker/tree-picker.d.ts.map +1 -0
  183. package/dist/ganttDiagram-EL5Y4UJY-Bee0Pd-N.cjs +292 -0
  184. package/dist/{ganttDiagram-6RSMTGT7-CFuwKLrB.js → ganttDiagram-EL5Y4UJY-C04RZW4s.js} +642 -639
  185. package/dist/gitGraph-4MIJSDKK-BCt5iiZ5.js +3 -0
  186. package/dist/gitGraph-4MIJSDKK-BeFVwcRC.cjs +1 -0
  187. package/dist/{gitGraphDiagram-PVQCEYII-B2CaQTP_.js → gitGraphDiagram-WWUBYQGX-BTcuEGsY.js} +146 -145
  188. package/dist/gitGraphDiagram-WWUBYQGX-DA026nbS.cjs +106 -0
  189. package/dist/index.d.ts +6 -6
  190. package/dist/index.d.ts.map +1 -1
  191. package/dist/info-A6RAGUB7-C0KA0jej.cjs +1 -0
  192. package/dist/info-A6RAGUB7-DYBvudiC.js +3 -0
  193. package/dist/infoDiagram-27XIBGKW-B5nTXQEj.cjs +2 -0
  194. package/dist/infoDiagram-27XIBGKW-BoUOV42E.js +20 -0
  195. package/dist/{ishikawaDiagram-YF4QCWOH-CfOvUIo-.js → ishikawaDiagram-5VMMS53U-D15Hi9wp.js} +134 -133
  196. package/dist/{ishikawaDiagram-YF4QCWOH-CSRSkgHx.cjs → ishikawaDiagram-5VMMS53U-ptk0d5z2.cjs} +6 -6
  197. package/dist/{journeyDiagram-JHISSGLW-BMECXtd1.js → journeyDiagram-3NMN7TZE-BUb4frTN.js} +181 -180
  198. package/dist/{journeyDiagram-JHISSGLW-P42eSNEh.cjs → journeyDiagram-3NMN7TZE-CxVpPKa-.cjs} +8 -8
  199. package/dist/kanban-definition-UXKFOSKX-Cd_nphr7.cjs +89 -0
  200. package/dist/{kanban-definition-UN3LZRKU-DCzfGTs4.js → kanban-definition-UXKFOSKX-DkgBC20j.js} +141 -138
  201. package/dist/katex-DUe6VLjC.cjs +257 -0
  202. package/dist/{katex-D-2KeLwt.js → katex-Dyoqg6Cv.js} +1562 -1600
  203. package/dist/ketchup2.cjs.js +405 -101
  204. package/dist/ketchup2.css +1 -1
  205. package/dist/ketchup2.es.js +151183 -119083
  206. package/dist/{line-0G6sJTVA.js → line-BEo8vh4N.js} +1 -1
  207. package/dist/{line-CLmmMPn2.cjs → line-wiGgVVGi.cjs} +1 -1
  208. package/dist/{linear-BNWgac81.js → linear-BNesvT28.js} +1 -1
  209. package/dist/{linear-yBssgUAc.cjs → linear-YA14Lx5Z.cjs} +1 -1
  210. package/dist/locale/en/translation.json.d.ts +23 -0
  211. package/dist/locale/it/translation.json.d.ts +24 -1
  212. package/dist/mermaid-parser.core-CqChDTj1.cjs +6 -0
  213. package/dist/mermaid-parser.core-oFB-qEU8.js +638 -0
  214. package/dist/{mindmap-definition-RKZ34NQL-DbK4qO1Z.cjs → mindmap-definition-YA3MSWOX-0PG4raFG.cjs} +11 -11
  215. package/dist/{mindmap-definition-RKZ34NQL-DpX8ksst.js → mindmap-definition-YA3MSWOX-Cjs12XgD.js} +156 -154
  216. package/dist/packet-AYTQ26CC-BEwXWBE0.js +3 -0
  217. package/dist/packet-AYTQ26CC-DfXUrk97.cjs +1 -0
  218. package/dist/pegDiagram-XKGWAZYB-BuyVzOiH.js +94 -0
  219. package/dist/pegDiagram-XKGWAZYB-J7VwZsJf.cjs +1 -0
  220. package/dist/pie-WAS4IAKB-4NfHFfJd.cjs +1 -0
  221. package/dist/pie-WAS4IAKB-BOR5Wwai.js +3 -0
  222. package/dist/pieDiagram-E7YTZNPT-B-rPB0ZO.cjs +39 -0
  223. package/dist/pieDiagram-E7YTZNPT-D4bB4TDP.js +205 -0
  224. package/dist/{quadrantDiagram-W4KKPZXB-Bgw66PrU.js → quadrantDiagram-AXDQQJYC-B6Q9biU9.js} +293 -293
  225. package/dist/quadrantDiagram-AXDQQJYC-C5sdY1DW.cjs +7 -0
  226. package/dist/radar-RG4KPBEZ-BwLQFFzF.js +3 -0
  227. package/dist/radar-RG4KPBEZ-_epvvHKu.cjs +1 -0
  228. package/dist/railroad-74A4TZTK-CaWzRQE0.js +3 -0
  229. package/dist/railroad-74A4TZTK-D2qbdjOh.cjs +1 -0
  230. package/dist/railroad-abnf-HS5TGJTU-D2tm1mra.js +3 -0
  231. package/dist/railroad-abnf-HS5TGJTU-_ThxftPt.cjs +1 -0
  232. package/dist/railroad-ebnf-LZEXJU2U-CKpMMgXK.cjs +1 -0
  233. package/dist/railroad-ebnf-LZEXJU2U-KAuGgmQe.js +3 -0
  234. package/dist/railroad-peg-WCYAUIDC-B8bfIIor.cjs +1 -0
  235. package/dist/railroad-peg-WCYAUIDC-XB38GivH.js +3 -0
  236. package/dist/railroadDiagram-O6MQD6OU-C7LfgSGm.cjs +1 -0
  237. package/dist/railroadDiagram-O6MQD6OU-DFR4_PxB.js +76 -0
  238. package/dist/{requirementDiagram-4Y6WPE33-BzNEhq-x.js → requirementDiagram-BXWQKSXE-BfWCCTu8.js} +169 -166
  239. package/dist/requirementDiagram-BXWQKSXE-y2O3wvFe.cjs +84 -0
  240. package/dist/{sankeyDiagram-5OEKKPKP-06MsaQmt.js → sankeyDiagram-P5KCCOFB-B_3NESVW.js} +109 -108
  241. package/dist/sankeyDiagram-P5KCCOFB-z8VLw23o.cjs +40 -0
  242. package/dist/sequenceDiagram-WJ2MYXX4-3cWo24Xv.cjs +162 -0
  243. package/dist/{sequenceDiagram-3UESZ5HK-QEaDF4MY.js → sequenceDiagram-WJ2MYXX4-B8W9PUBb.js} +692 -688
  244. package/dist/sizeCapture-INFHLROL-CHXIsPO_.js +46 -0
  245. package/dist/sizeCapture-INFHLROL-bJ2ZX4Du.cjs +1 -0
  246. package/dist/src-B16ML7oM.cjs +1 -0
  247. package/dist/{src-GDFuItmC.js → src-D-6ZfKf9.js} +587 -579
  248. package/dist/stateDiagram-D77RDMKH-DghYG1f5.cjs +1 -0
  249. package/dist/stateDiagram-D77RDMKH-IwptGFzp.js +220 -0
  250. package/dist/stateDiagram-v2-MP3YSRHH-0rNAzd4v.cjs +1 -0
  251. package/dist/stateDiagram-v2-MP3YSRHH-NATCGJSV.js +30 -0
  252. package/dist/swimlanes-42K2YHIH-jhIjSCsq.js +4976 -0
  253. package/dist/swimlanes-42K2YHIH-svHo0tVy.cjs +1 -0
  254. package/dist/swimlanesDiagram-VR7AAH4N-DKxpX9Hj.js +31 -0
  255. package/dist/swimlanesDiagram-VR7AAH4N-DcDLe-u-.cjs +8 -0
  256. package/dist/{timeline-definition-PNZ67QCA-DoD4D5kw.js → timeline-definition-24CTP7MA-C6u6A92C.js} +212 -211
  257. package/dist/timeline-definition-24CTP7MA-CA62jwSB.cjs +120 -0
  258. package/dist/treeView-Q6P3EWNA-CkgGYPwy.js +3 -0
  259. package/dist/treeView-Q6P3EWNA-zIJfTe51.cjs +1 -0
  260. package/dist/treemap-WGGIJYW6-CooEnQQp.cjs +1 -0
  261. package/dist/treemap-WGGIJYW6-D4tTzsvR.js +3 -0
  262. package/dist/types/data-structures.d.ts +0 -1
  263. package/dist/types/data-structures.d.ts.map +1 -1
  264. package/dist/types/global.d.ts +1 -1
  265. package/dist/types/global.d.ts.map +1 -1
  266. package/dist/types/translation.d.ts +24 -1
  267. package/dist/types/translation.d.ts.map +1 -1
  268. package/dist/utils/data-structures.d.ts +2 -1
  269. package/dist/utils/data-structures.d.ts.map +1 -1
  270. package/dist/{vennDiagram-CIIHVFJN-Du1h-z8K.js → vennDiagram-4TSXK5OY-Bt9cyeRX.js} +324 -302
  271. package/dist/vennDiagram-4TSXK5OY-YKU1Lb_h.cjs +34 -0
  272. package/dist/wardley-WFR3VGLG-Cp2KFpcw.cjs +1 -0
  273. package/dist/wardley-WFR3VGLG-D1o3hFSK.js +3 -0
  274. package/dist/wardleyDiagram-VM6X3IG4-BvyabMK8.cjs +78 -0
  275. package/dist/{wardleyDiagram-YWT4CUSO-CjOm3Xnp.js → wardleyDiagram-VM6X3IG4-QkNx10Ny.js} +144 -143
  276. package/dist/{xychartDiagram-2RQKCTM6-D0hXWFFN.js → xychartDiagram-S5SC5T6Z-BSwoR01A.js} +729 -559
  277. package/dist/xychartDiagram-S5SC5T6Z-BtNTzcXw.cjs +7 -0
  278. package/package.json +6 -2
  279. package/dist/architecture-7EHR7CIX-Bzeobe9Y.cjs +0 -1
  280. package/dist/architecture-7EHR7CIX-C8NPmR2w.js +0 -3
  281. package/dist/architectureDiagram-3BPJPVTR-C8DI7_Rn.cjs +0 -36
  282. package/dist/assets/shapeListAssets.d.ts +0 -22
  283. package/dist/assets/shapeListAssets.d.ts.map +0 -1
  284. package/dist/basic-components/card/card-slot-resolver.d.ts +0 -6
  285. package/dist/basic-components/card/card-slot-resolver.d.ts.map +0 -1
  286. package/dist/basic-components/card/card-types.d.ts +0 -43
  287. package/dist/basic-components/card/card-types.d.ts.map +0 -1
  288. package/dist/basic-components/card/card.d.ts +0 -5
  289. package/dist/basic-components/card/card.d.ts.map +0 -1
  290. package/dist/basic-components/card/flow/aside/index.d.ts +0 -2
  291. package/dist/basic-components/card/flow/aside/index.d.ts.map +0 -1
  292. package/dist/basic-components/card/flow/compact/index.d.ts +0 -2
  293. package/dist/basic-components/card/flow/compact/index.d.ts.map +0 -1
  294. package/dist/basic-components/card/flow/editorial/index.d.ts +0 -2
  295. package/dist/basic-components/card/flow/editorial/index.d.ts.map +0 -1
  296. package/dist/basic-components/card/flow/minimal/index.d.ts +0 -2
  297. package/dist/basic-components/card/flow/minimal/index.d.ts.map +0 -1
  298. package/dist/basic-components/card/flow/overlay/index.d.ts +0 -2
  299. package/dist/basic-components/card/flow/overlay/index.d.ts.map +0 -1
  300. package/dist/basic-components/card/flow/shared/flow-layout.d.ts +0 -4
  301. package/dist/basic-components/card/flow/shared/flow-layout.d.ts.map +0 -1
  302. package/dist/basic-components/card/flow/split/index.d.ts +0 -2
  303. package/dist/basic-components/card/flow/split/index.d.ts.map +0 -1
  304. package/dist/basic-components/card/flow/spotlight/index.d.ts +0 -2
  305. package/dist/basic-components/card/flow/spotlight/index.d.ts.map +0 -1
  306. package/dist/basic-components/card/flow/tiles/index.d.ts +0 -2
  307. package/dist/basic-components/card/flow/tiles/index.d.ts.map +0 -1
  308. package/dist/basic-components/card/layout-registry.d.ts +0 -4
  309. package/dist/basic-components/card/layout-registry.d.ts.map +0 -1
  310. package/dist/basic-components/card/positional/collaborator/index.d.ts +0 -4
  311. package/dist/basic-components/card/positional/collaborator/index.d.ts.map +0 -1
  312. package/dist/basic-components/card/positional/detailed-object/index.d.ts +0 -5
  313. package/dist/basic-components/card/positional/detailed-object/index.d.ts.map +0 -1
  314. package/dist/basic-components/card/positional/financial/index.d.ts +0 -4
  315. package/dist/basic-components/card/positional/financial/index.d.ts.map +0 -1
  316. package/dist/basic-components/card/positional/folder-grid/index.d.ts +0 -4
  317. package/dist/basic-components/card/positional/folder-grid/index.d.ts.map +0 -1
  318. package/dist/basic-components/card/positional/hero/index.d.ts +0 -4
  319. package/dist/basic-components/card/positional/hero/index.d.ts.map +0 -1
  320. package/dist/basic-components/card/positional/product/index.d.ts +0 -4
  321. package/dist/basic-components/card/positional/product/index.d.ts.map +0 -1
  322. package/dist/basic-components/card/positional/shared/object-card.d.ts +0 -24
  323. package/dist/basic-components/card/positional/shared/object-card.d.ts.map +0 -1
  324. package/dist/basic-components/card/positional/shared/utils.d.ts +0 -26
  325. package/dist/basic-components/card/positional/shared/utils.d.ts.map +0 -1
  326. package/dist/basic-components/card/positional/simple-object/index.d.ts +0 -5
  327. package/dist/basic-components/card/positional/simple-object/index.d.ts.map +0 -1
  328. package/dist/basic-components/card/positional/tooltip/index.d.ts +0 -4
  329. package/dist/basic-components/card/positional/tooltip/index.d.ts.map +0 -1
  330. package/dist/basic-components/card/positional/trend/index.d.ts +0 -4
  331. package/dist/basic-components/card/positional/trend/index.d.ts.map +0 -1
  332. package/dist/blockDiagram-GPEHLZMM-C7mogpj_.cjs +0 -132
  333. package/dist/blockDiagram-GPEHLZMM-fcAaH_Ka.js +0 -3157
  334. package/dist/c4Diagram-AAUBKEIU-BjsHAdap.cjs +0 -10
  335. package/dist/cell-NyD4Bcyq.js +0 -6457
  336. package/dist/cell-dpOG-xr_.cjs +0 -6
  337. package/dist/channel-BzP1tmYc.cjs +0 -1
  338. package/dist/chunk-2J33WTMH-BulZYTKs.js +0 -25
  339. package/dist/chunk-2J33WTMH-DIfvCbWZ.cjs +0 -1
  340. package/dist/chunk-3OPIFGDE-Ohf7vgmX.cjs +0 -62
  341. package/dist/chunk-4BX2VUAB-DdliHvKq.cjs +0 -1
  342. package/dist/chunk-55IACEB6-D5PlvtBC.js +0 -8
  343. package/dist/chunk-55IACEB6-DzCdT-ru.cjs +0 -1
  344. package/dist/chunk-5ZQYHXKU-35HHGVyc.cjs +0 -2
  345. package/dist/chunk-727SXJPM-BCv3AEZb.cjs +0 -206
  346. package/dist/chunk-AQP2D5EJ-CPbTYzEZ.cjs +0 -231
  347. package/dist/chunk-BSJP7CBP-BjkTjHJ6.js +0 -82
  348. package/dist/chunk-BSJP7CBP-DtjFXF0S.cjs +0 -1
  349. package/dist/chunk-CSCIHK7Q-WWTYrQLt.cjs +0 -122
  350. package/dist/chunk-Dqa2HsxW.js +0 -20
  351. package/dist/chunk-KSCS5N6A-DSWnBtbV.cjs +0 -10
  352. package/dist/chunk-L5ZTLDWV-DXk-PQPS.js +0 -32
  353. package/dist/chunk-L5ZTLDWV-sRcGREMv.cjs +0 -1
  354. package/dist/chunk-LZXEDZCA-4kbGESh2.cjs +0 -1
  355. package/dist/chunk-ND2GUHAM-See9KDdJ.cjs +0 -1
  356. package/dist/chunk-NNHCCRGN-qV8bfiMQ.cjs +0 -159
  357. package/dist/chunk-NZK2D7GU-CqugOMaJ.js +0 -67
  358. package/dist/chunk-NZK2D7GU-FNVK0iHI.cjs +0 -1
  359. package/dist/chunk-O5CBEL6O-BU_i0jbb.cjs +0 -70
  360. package/dist/chunk-QZHKN3VN-DPdobKra.cjs +0 -1
  361. package/dist/chunk-WU5MYG2G-BL6T82Hi.js +0 -9
  362. package/dist/chunk-WU5MYG2G-qi7ZaL3o.cjs +0 -1
  363. package/dist/chunk-XPW4576I-B9aC8EBY.js +0 -1146
  364. package/dist/chunk-XPW4576I-Dsm0jctf.cjs +0 -32
  365. package/dist/chunk-mLOUI7ql.cjs +0 -1
  366. package/dist/classDiagram-4FO5ZUOK-Dc-Jypl3.js +0 -29
  367. package/dist/classDiagram-4FO5ZUOK-Dqxk6PU-.cjs +0 -1
  368. package/dist/classDiagram-v2-Q7XG4LA2-DZ44tKmY.js +0 -29
  369. package/dist/classDiagram-v2-Q7XG4LA2-Dqxk6PU-.cjs +0 -1
  370. package/dist/components/shape-list/components/error-boundary.d.ts +0 -16
  371. package/dist/components/shape-list/components/error-boundary.d.ts.map +0 -1
  372. package/dist/components/shape-list/components/shape-list-drill-down.d.ts +0 -4
  373. package/dist/components/shape-list/components/shape-list-drill-down.d.ts.map +0 -1
  374. package/dist/components/shape-list/components/toolbar/command-panel.d.ts +0 -15
  375. package/dist/components/shape-list/components/toolbar/command-panel.d.ts.map +0 -1
  376. package/dist/components/shape-list/components/toolbar/command-trigger.d.ts +0 -16
  377. package/dist/components/shape-list/components/toolbar/command-trigger.d.ts.map +0 -1
  378. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts +0 -14
  379. package/dist/components/shape-list/components/toolbar/filter-picker.d.ts.map +0 -1
  380. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts +0 -11
  381. package/dist/components/shape-list/components/toolbar/json-viewer.d.ts.map +0 -1
  382. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts +0 -15
  383. package/dist/components/shape-list/components/toolbar/navigation-picker.d.ts.map +0 -1
  384. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts +0 -14
  385. package/dist/components/shape-list/components/toolbar/sort-picker.d.ts.map +0 -1
  386. package/dist/components/shape-list/context/shape-list-context.d.ts +0 -31
  387. package/dist/components/shape-list/context/shape-list-context.d.ts.map +0 -1
  388. package/dist/components/shape-list/context/shape-list-filter-context.d.ts +0 -9
  389. package/dist/components/shape-list/context/shape-list-filter-context.d.ts.map +0 -1
  390. package/dist/components/shape-list/context/shape-list-sort-context.d.ts +0 -9
  391. package/dist/components/shape-list/context/shape-list-sort-context.d.ts.map +0 -1
  392. package/dist/components/shape-list/context/shape-list-state-context.d.ts +0 -5
  393. package/dist/components/shape-list/context/shape-list-state-context.d.ts.map +0 -1
  394. package/dist/components/shape-list/hooks/useCommandPickers.d.ts +0 -13
  395. package/dist/components/shape-list/hooks/useCommandPickers.d.ts.map +0 -1
  396. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts +0 -35
  397. package/dist/components/shape-list/hooks/useLazyShapeData.d.ts.map +0 -1
  398. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts +0 -2
  399. package/dist/components/shape-list/hooks/useLazyShapeData.test.d.ts.map +0 -1
  400. package/dist/components/shape-list/hooks/useNavigation.d.ts +0 -16
  401. package/dist/components/shape-list/hooks/useNavigation.d.ts.map +0 -1
  402. package/dist/components/shape-list/hooks/useSelection.d.ts +0 -34
  403. package/dist/components/shape-list/hooks/useSelection.d.ts.map +0 -1
  404. package/dist/components/shape-list/hooks/useStripOverflow.d.ts +0 -17
  405. package/dist/components/shape-list/hooks/useStripOverflow.d.ts.map +0 -1
  406. package/dist/components/shape-list/items/node-content.d.ts +0 -47
  407. package/dist/components/shape-list/items/node-content.d.ts.map +0 -1
  408. package/dist/components/shape-list/items/shape.d.ts +0 -20
  409. package/dist/components/shape-list/items/shape.d.ts.map +0 -1
  410. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts +0 -13
  411. package/dist/components/shape-list/navigation-modes/_shared/navigation-orchestrator.d.ts.map +0 -1
  412. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts +0 -4
  413. package/dist/components/shape-list/navigation-modes/_shared/panel/context-menu.d.ts.map +0 -1
  414. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts +0 -7
  415. package/dist/components/shape-list/navigation-modes/_shared/panel/index.d.ts.map +0 -1
  416. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts +0 -11
  417. package/dist/components/shape-list/navigation-modes/_shared/panel/item-content.d.ts.map +0 -1
  418. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts +0 -18
  419. package/dist/components/shape-list/navigation-modes/_shared/panel/panel.d.ts.map +0 -1
  420. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts +0 -8
  421. package/dist/components/shape-list/navigation-modes/_shared/panel/rail-item.d.ts.map +0 -1
  422. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts +0 -6
  423. package/dist/components/shape-list/navigation-modes/_shared/panel/section-view.d.ts.map +0 -1
  424. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts +0 -13
  425. package/dist/components/shape-list/navigation-modes/_shared/panel/shell.d.ts.map +0 -1
  426. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts +0 -9
  427. package/dist/components/shape-list/navigation-modes/_shared/panel/tree-item.d.ts.map +0 -1
  428. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts +0 -4
  429. package/dist/components/shape-list/navigation-modes/_shared/strip/index.d.ts.map +0 -1
  430. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts +0 -5
  431. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-child-popup.d.ts.map +0 -1
  432. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts +0 -5
  433. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-item.d.ts.map +0 -1
  434. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts +0 -5
  435. package/dist/components/shape-list/navigation-modes/_shared/strip/strip-overflow-button.d.ts.map +0 -1
  436. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts +0 -3
  437. package/dist/components/shape-list/navigation-modes/catalog/index.d.ts.map +0 -1
  438. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts +0 -5
  439. package/dist/components/shape-list/navigation-modes/catalog/shape-list-catalog.d.ts.map +0 -1
  440. package/dist/components/shape-list/navigation-modes/compact/index.d.ts +0 -3
  441. package/dist/components/shape-list/navigation-modes/compact/index.d.ts.map +0 -1
  442. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts +0 -5
  443. package/dist/components/shape-list/navigation-modes/compact/shape-list-compact.d.ts.map +0 -1
  444. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts +0 -4
  445. package/dist/components/shape-list/navigation-modes/explorer/index.d.ts.map +0 -1
  446. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts +0 -5
  447. package/dist/components/shape-list/navigation-modes/explorer/shape-list-explorer.d.ts.map +0 -1
  448. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts +0 -5
  449. package/dist/components/shape-list/navigation-modes/explorer/shape-list-tree.d.ts.map +0 -1
  450. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts +0 -3
  451. package/dist/components/shape-list/navigation-modes/h-strip/index.d.ts.map +0 -1
  452. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts +0 -5
  453. package/dist/components/shape-list/navigation-modes/h-strip/shape-list-h-strip.d.ts.map +0 -1
  454. package/dist/components/shape-list/navigation-modes/modal/index.d.ts +0 -3
  455. package/dist/components/shape-list/navigation-modes/modal/index.d.ts.map +0 -1
  456. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts +0 -5
  457. package/dist/components/shape-list/navigation-modes/modal/shape-list-modal.d.ts.map +0 -1
  458. package/dist/components/shape-list/navigation-modes/rail/index.d.ts +0 -3
  459. package/dist/components/shape-list/navigation-modes/rail/index.d.ts.map +0 -1
  460. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts +0 -11
  461. package/dist/components/shape-list/navigation-modes/rail/shape-list-rail.d.ts.map +0 -1
  462. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts +0 -3
  463. package/dist/components/shape-list/navigation-modes/sidebar/index.d.ts.map +0 -1
  464. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts +0 -11
  465. package/dist/components/shape-list/navigation-modes/sidebar/shape-list-sidebar.d.ts.map +0 -1
  466. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts +0 -3
  467. package/dist/components/shape-list/navigation-modes/slideshow/index.d.ts.map +0 -1
  468. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts +0 -5
  469. package/dist/components/shape-list/navigation-modes/slideshow/shape-list-slideshow.d.ts.map +0 -1
  470. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts +0 -3
  471. package/dist/components/shape-list/navigation-modes/v-strip/index.d.ts.map +0 -1
  472. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts +0 -5
  473. package/dist/components/shape-list/navigation-modes/v-strip/shape-list-v-strip.d.ts.map +0 -1
  474. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts +0 -3
  475. package/dist/components/shape-list/navigation-modes/workspace/index.d.ts.map +0 -1
  476. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts +0 -11
  477. package/dist/components/shape-list/navigation-modes/workspace/shape-list-workspace.d.ts.map +0 -1
  478. package/dist/components/shape-list/shape-list.d.ts +0 -5
  479. package/dist/components/shape-list/shape-list.d.ts.map +0 -1
  480. package/dist/components/shape-list/slots/renderers/brand.d.ts +0 -6
  481. package/dist/components/shape-list/slots/renderers/brand.d.ts.map +0 -1
  482. package/dist/components/shape-list/slots/renderers/cta.d.ts +0 -9
  483. package/dist/components/shape-list/slots/renderers/cta.d.ts.map +0 -1
  484. package/dist/components/shape-list/slots/renderers/icon.d.ts +0 -11
  485. package/dist/components/shape-list/slots/renderers/icon.d.ts.map +0 -1
  486. package/dist/components/shape-list/slots/renderers/section-header.d.ts +0 -7
  487. package/dist/components/shape-list/slots/renderers/section-header.d.ts.map +0 -1
  488. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts +0 -9
  489. package/dist/components/shape-list/slots/renderers/shape-cell.d.ts.map +0 -1
  490. package/dist/components/shape-list/slots/slot-config.d.ts +0 -7
  491. package/dist/components/shape-list/slots/slot-config.d.ts.map +0 -1
  492. package/dist/components/shape-list/slots/slot-model.d.ts +0 -6
  493. package/dist/components/shape-list/slots/slot-model.d.ts.map +0 -1
  494. package/dist/components/shape-list/slots/slot-node.d.ts +0 -9
  495. package/dist/components/shape-list/slots/slot-node.d.ts.map +0 -1
  496. package/dist/components/shape-list/slots/slot-render-utils.d.ts +0 -11
  497. package/dist/components/shape-list/slots/slot-render-utils.d.ts.map +0 -1
  498. package/dist/components/shape-list/slots/slot-types.d.ts +0 -151
  499. package/dist/components/shape-list/slots/slot-types.d.ts.map +0 -1
  500. package/dist/components/shape-list/slots/test/slot-model.test.d.ts +0 -2
  501. package/dist/components/shape-list/slots/test/slot-model.test.d.ts.map +0 -1
  502. package/dist/components/shape-list/types/shape-list-types.d.ts +0 -181
  503. package/dist/components/shape-list/types/shape-list-types.d.ts.map +0 -1
  504. package/dist/components/shape-list/utils/column-utils.d.ts +0 -9
  505. package/dist/components/shape-list/utils/column-utils.d.ts.map +0 -1
  506. package/dist/components/shape-list/utils/debug-utils.d.ts +0 -13
  507. package/dist/components/shape-list/utils/debug-utils.d.ts.map +0 -1
  508. package/dist/components/shape-list/utils/filter-utils.d.ts +0 -12
  509. package/dist/components/shape-list/utils/filter-utils.d.ts.map +0 -1
  510. package/dist/components/shape-list/utils/keyboard-utils.d.ts +0 -12
  511. package/dist/components/shape-list/utils/keyboard-utils.d.ts.map +0 -1
  512. package/dist/components/shape-list/utils/navigation-options.d.ts +0 -30
  513. package/dist/components/shape-list/utils/navigation-options.d.ts.map +0 -1
  514. package/dist/components/shape-list/utils/node-utils.d.ts +0 -12
  515. package/dist/components/shape-list/utils/node-utils.d.ts.map +0 -1
  516. package/dist/components/shape-list/utils/sort-utils.d.ts +0 -13
  517. package/dist/components/shape-list/utils/sort-utils.d.ts.map +0 -1
  518. package/dist/components/shape-list/utils/typeahead-utils.d.ts +0 -28
  519. package/dist/components/shape-list/utils/typeahead-utils.d.ts.map +0 -1
  520. package/dist/cose-bilkent-S5V4N54A-BxQyjZqX.cjs +0 -1
  521. package/dist/cytoscape.esm-CElDUMAx.cjs +0 -321
  522. package/dist/dagre-BM42HDAG-DwRqEen8.js +0 -297
  523. package/dist/dagre-BM42HDAG-E2Jw6uLH.cjs +0 -4
  524. package/dist/diagram-2AECGRRQ-BkwGTiAT.cjs +0 -43
  525. package/dist/diagram-5GNKFQAL-CvMOQgoH.cjs +0 -10
  526. package/dist/diagram-5GNKFQAL-bsRwDc-2.js +0 -101
  527. package/dist/diagram-KO2AKTUF-DKGDs9Ax.cjs +0 -3
  528. package/dist/diagram-LMA3HP47-BojSLu6w.cjs +0 -24
  529. package/dist/diagram-OG6HWLK6-bHqMXqif.cjs +0 -24
  530. package/dist/dist-Dwq87x4R.cjs +0 -1
  531. package/dist/erDiagram-TEJ5UH35-BxeM1F9k.js +0 -1700
  532. package/dist/erDiagram-TEJ5UH35-CqUBZsAh.cjs +0 -85
  533. package/dist/eventmodeling-FCH6USID-Cued7Lz2.cjs +0 -1
  534. package/dist/eventmodeling-FCH6USID-mCB8hc7X.js +0 -3
  535. package/dist/flowDiagram-I6XJVG4X-DsjMn89E.cjs +0 -162
  536. package/dist/functional-components/shape/index.d.ts +0 -9
  537. package/dist/functional-components/shape/index.d.ts.map +0 -1
  538. package/dist/functional-components/shape/shape-map.d.ts +0 -3
  539. package/dist/functional-components/shape/shape-map.d.ts.map +0 -1
  540. package/dist/functional-components/shape/shape-registry.d.ts +0 -25
  541. package/dist/functional-components/shape/shape-registry.d.ts.map +0 -1
  542. package/dist/functional-components/shape/shape-resolver.d.ts +0 -61
  543. package/dist/functional-components/shape/shape-resolver.d.ts.map +0 -1
  544. package/dist/functional-components/shape/shape-types.d.ts +0 -55
  545. package/dist/functional-components/shape/shape-types.d.ts.map +0 -1
  546. package/dist/functional-components/shape/shape.d.ts +0 -5
  547. package/dist/functional-components/shape/shape.d.ts.map +0 -1
  548. package/dist/functional-components/shape/slot-resolver.d.ts +0 -24
  549. package/dist/functional-components/shape/slot-resolver.d.ts.map +0 -1
  550. package/dist/functional-components/shape/slot-types.d.ts +0 -27
  551. package/dist/functional-components/shape/slot-types.d.ts.map +0 -1
  552. package/dist/functional-components/shape/useSlotResolver.d.ts +0 -13
  553. package/dist/functional-components/shape/useSlotResolver.d.ts.map +0 -1
  554. package/dist/ganttDiagram-6RSMTGT7-CG_knKFc.cjs +0 -292
  555. package/dist/gitGraph-WXDBUCRP-B23gOjfP.js +0 -3
  556. package/dist/gitGraph-WXDBUCRP-Bi-Y5dA7.cjs +0 -1
  557. package/dist/gitGraphDiagram-PVQCEYII-B-VOfNjd.cjs +0 -106
  558. package/dist/info-J43DQDTF-DC3N8SoX.js +0 -3
  559. package/dist/info-J43DQDTF-jRjlWVKj.cjs +0 -1
  560. package/dist/infoDiagram-5YYISTIA-22jaR465.cjs +0 -2
  561. package/dist/infoDiagram-5YYISTIA-CM-al6Jc.js +0 -19
  562. package/dist/jsx-runtime-DCATrIRp.js +0 -183
  563. package/dist/jsx-runtime-DtVwqYNW.cjs +0 -6
  564. package/dist/kanban-definition-UN3LZRKU-DplPe2EX.cjs +0 -89
  565. package/dist/katex-CkiTumqg.cjs +0 -257
  566. package/dist/mermaid-parser.core-ADyJ_PY4.cjs +0 -3
  567. package/dist/mermaid-parser.core-D6xVjl2t.js +0 -373
  568. package/dist/packet-YPE3B663-CGZxZ1Z0.cjs +0 -1
  569. package/dist/packet-YPE3B663-D2JW2EUF.js +0 -3
  570. package/dist/pie-LRSECV5Y-BHyd33ZA.js +0 -3
  571. package/dist/pie-LRSECV5Y-Ca_qbHEv.cjs +0 -1
  572. package/dist/pieDiagram-4H26LBE5-CCgLxjTB.js +0 -165
  573. package/dist/pieDiagram-4H26LBE5-DAhjc9WT.cjs +0 -30
  574. package/dist/purify.es-9OKVhuci.js +0 -735
  575. package/dist/purify.es-hdXGOu6N.cjs +0 -3
  576. package/dist/quadrantDiagram-W4KKPZXB-BBEQhVJy.cjs +0 -7
  577. package/dist/radar-GUYGQ44K-BpJWFTCm.js +0 -3
  578. package/dist/radar-GUYGQ44K-CYqWSxO_.cjs +0 -1
  579. package/dist/requirementDiagram-4Y6WPE33-L_lL0BcB.cjs +0 -84
  580. package/dist/sankeyDiagram-5OEKKPKP-Dy9K3F81.cjs +0 -40
  581. package/dist/sequenceDiagram-3UESZ5HK-C69YSjBM.cjs +0 -162
  582. package/dist/src-CFBvxm_0.cjs +0 -1
  583. package/dist/stateDiagram-AJRCARHV-BTzCb_Q-.js +0 -217
  584. package/dist/stateDiagram-AJRCARHV-CBbDL4Ct.cjs +0 -1
  585. package/dist/stateDiagram-v2-BHNVJYJU-BrQR0oUL.cjs +0 -1
  586. package/dist/stateDiagram-v2-BHNVJYJU-C7E3JbTB.js +0 -27
  587. package/dist/timeline-definition-PNZ67QCA-DJ9VKw6h.cjs +0 -120
  588. package/dist/treeView-BLDUP644-C9tQMbiq.js +0 -3
  589. package/dist/treeView-BLDUP644-DKh9BcaT.cjs +0 -1
  590. package/dist/treemap-LRROVOQU-2aferAph.cjs +0 -1
  591. package/dist/treemap-LRROVOQU-CBv3oGC3.js +0 -3
  592. package/dist/useObjectProtocol-3BhpCUjG.cjs +0 -3
  593. package/dist/useObjectProtocol-DZdggHDN.js +0 -4333
  594. package/dist/vennDiagram-CIIHVFJN-DeRVKdRG.cjs +0 -34
  595. package/dist/wardley-L42UT6IY-CIM0_V5T.js +0 -3
  596. package/dist/wardley-L42UT6IY-DjjjOB8T.cjs +0 -1
  597. package/dist/wardleyDiagram-YWT4CUSO-CaaSvy6n.cjs +0 -78
  598. package/dist/xychartDiagram-2RQKCTM6-CWncieig.cjs +0 -7
@@ -1,3157 +0,0 @@
1
- import { g as e, h as t, p as n } from "./src-GDFuItmC.js";
2
- import { O as r, T as i, a, b as o, c as s, rt as c, s as l, x as u, z as d } from "./chunk-CSCIHK7Q-Drr_NBLR.js";
3
- import { t as f } from "./channel-CAhFwf6U.js";
4
- import { A as p, B as m, C as h, D as g, E as _, F as v, H as y, I as b, L as x, M as S, N as C, O as w, P as T, R as E, S as D, T as O, U as k, V as A, W as j, a as M, et as ee, g as N, j as te, k as ne, l as re, v as ie, w as ae, x as oe, z as se } from "./chunk-5ZQYHXKU-BvO58_5C.js";
5
- import { t as ce } from "./line-0G6sJTVA.js";
6
- import { n as le, t as P } from "./chunk-BSJP7CBP-BjkTjHJ6.js";
7
- import { n as ue, t as de } from "./chunk-L5ZTLDWV-DXk-PQPS.js";
8
- import { n as fe } from "./chunk-O5CBEL6O-BIU6TcWp.js";
9
- import { t as pe } from "./chunk-FMBD7UC4-Cia16Ryi.js";
10
- import { t as me } from "./graphlib-VMWSbyYi.js";
11
- //#region node_modules/es-toolkit/dist/compat/predicate/isArray.mjs
12
- function he(e) {
13
- return Array.isArray(e);
14
- }
15
- //#endregion
16
- //#region node_modules/es-toolkit/dist/compat/object/clone.mjs
17
- function ge(e) {
18
- if (j(e)) return e;
19
- let t = k(e);
20
- if (!_e(e)) return {};
21
- if (he(e)) {
22
- let t = Array.from(e);
23
- return e.length > 0 && typeof e[0] == "string" && Object.hasOwn(e, "index") && (t.index = e.index, t.input = e.input), t;
24
- }
25
- if (ie(e)) {
26
- let t = e, n = t.constructor;
27
- return new n(t.buffer, t.byteOffset, t.length);
28
- }
29
- if (t === "[object ArrayBuffer]") return new ArrayBuffer(e.byteLength);
30
- if (t === "[object DataView]") {
31
- let t = e, n = t.buffer, r = t.byteOffset, i = t.byteLength, a = new ArrayBuffer(i), o = new Uint8Array(n, r, i);
32
- return new Uint8Array(a).set(o), new DataView(a);
33
- }
34
- if (t === "[object Boolean]" || t === "[object Number]" || t === "[object String]") {
35
- let n = e.constructor, r = new n(e.valueOf());
36
- return t === "[object String]" ? be(r, e) : ve(r, e), r;
37
- }
38
- if (t === "[object Date]") return new Date(Number(e));
39
- if (t === "[object RegExp]") {
40
- let t = e, n = new RegExp(t.source, t.flags);
41
- return n.lastIndex = t.lastIndex, n;
42
- }
43
- if (t === "[object Symbol]") return Object(Symbol.prototype.valueOf.call(e));
44
- if (t === "[object Map]") {
45
- let t = e, n = /* @__PURE__ */ new Map();
46
- return t.forEach((e, t) => {
47
- n.set(t, e);
48
- }), n;
49
- }
50
- if (t === "[object Set]") {
51
- let t = e, n = /* @__PURE__ */ new Set();
52
- return t.forEach((e) => {
53
- n.add(e);
54
- }), n;
55
- }
56
- if (t === "[object Arguments]") {
57
- let t = e, n = {};
58
- return ve(n, t), n.length = t.length, n[Symbol.iterator] = t[Symbol.iterator], n;
59
- }
60
- let n = {};
61
- return xe(n, e), ve(n, e), ye(n, e), n;
62
- }
63
- function _e(e) {
64
- switch (k(e)) {
65
- case oe:
66
- case h:
67
- case D:
68
- case O:
69
- case ae:
70
- case _:
71
- case g:
72
- case w:
73
- case te:
74
- case ne:
75
- case p:
76
- case S:
77
- case C:
78
- case T:
79
- case v:
80
- case b:
81
- case x:
82
- case E:
83
- case A:
84
- case y:
85
- case se:
86
- case m: return !0;
87
- default: return !1;
88
- }
89
- }
90
- function ve(e, t) {
91
- for (let n in t) Object.hasOwn(t, n) && (e[n] = t[n]);
92
- }
93
- function ye(e, t) {
94
- let n = Object.getOwnPropertySymbols(t);
95
- for (let r = 0; r < n.length; r++) {
96
- let i = n[r];
97
- Object.prototype.propertyIsEnumerable.call(t, i) && (e[i] = t[i]);
98
- }
99
- }
100
- function be(e, t) {
101
- let n = t.valueOf().length;
102
- for (let r in t) Object.hasOwn(t, r) && (Number.isNaN(Number(r)) || Number(r) >= n) && (e[r] = t[r]);
103
- }
104
- function xe(e, t) {
105
- let n = Object.getPrototypeOf(t);
106
- n !== null && typeof t.constructor == "function" && Object.setPrototypeOf(e, n);
107
- }
108
- //#endregion
109
- //#region node_modules/mermaid/dist/chunks/mermaid.core/blockDiagram-GPEHLZMM.mjs
110
- var Se = (function() {
111
- var e = /* @__PURE__ */ t(function(e, t, n, r) {
112
- for (n ||= {}, r = e.length; r--; n[e[r]] = t);
113
- return n;
114
- }, "o"), n = [1, 15], r = [1, 7], i = [1, 13], a = [1, 14], o = [1, 19], s = [1, 16], c = [1, 17], l = [1, 18], u = [8, 30], d = [
115
- 8,
116
- 10,
117
- 21,
118
- 28,
119
- 29,
120
- 30,
121
- 31,
122
- 39,
123
- 43,
124
- 46
125
- ], f = [1, 23], p = [1, 24], m = [
126
- 8,
127
- 10,
128
- 15,
129
- 16,
130
- 21,
131
- 28,
132
- 29,
133
- 30,
134
- 31,
135
- 39,
136
- 43,
137
- 46
138
- ], h = [
139
- 8,
140
- 10,
141
- 15,
142
- 16,
143
- 21,
144
- 27,
145
- 28,
146
- 29,
147
- 30,
148
- 31,
149
- 39,
150
- 43,
151
- 46
152
- ], g = [1, 49], _ = {
153
- trace: /* @__PURE__ */ t(function() {}, "trace"),
154
- yy: {},
155
- symbols_: {
156
- error: 2,
157
- spaceLines: 3,
158
- SPACELINE: 4,
159
- NL: 5,
160
- separator: 6,
161
- SPACE: 7,
162
- EOF: 8,
163
- start: 9,
164
- BLOCK_DIAGRAM_KEY: 10,
165
- document: 11,
166
- stop: 12,
167
- statement: 13,
168
- link: 14,
169
- LINK: 15,
170
- START_LINK: 16,
171
- LINK_LABEL: 17,
172
- STR: 18,
173
- nodeStatement: 19,
174
- columnsStatement: 20,
175
- SPACE_BLOCK: 21,
176
- blockStatement: 22,
177
- classDefStatement: 23,
178
- cssClassStatement: 24,
179
- styleStatement: 25,
180
- node: 26,
181
- SIZE: 27,
182
- COLUMNS: 28,
183
- "id-block": 29,
184
- end: 30,
185
- NODE_ID: 31,
186
- nodeShapeNLabel: 32,
187
- dirList: 33,
188
- DIR: 34,
189
- NODE_DSTART: 35,
190
- NODE_DEND: 36,
191
- BLOCK_ARROW_START: 37,
192
- BLOCK_ARROW_END: 38,
193
- classDef: 39,
194
- CLASSDEF_ID: 40,
195
- CLASSDEF_STYLEOPTS: 41,
196
- DEFAULT: 42,
197
- class: 43,
198
- CLASSENTITY_IDS: 44,
199
- STYLECLASS: 45,
200
- style: 46,
201
- STYLE_ENTITY_IDS: 47,
202
- STYLE_DEFINITION_DATA: 48,
203
- $accept: 0,
204
- $end: 1
205
- },
206
- terminals_: {
207
- 2: "error",
208
- 4: "SPACELINE",
209
- 5: "NL",
210
- 7: "SPACE",
211
- 8: "EOF",
212
- 10: "BLOCK_DIAGRAM_KEY",
213
- 15: "LINK",
214
- 16: "START_LINK",
215
- 17: "LINK_LABEL",
216
- 18: "STR",
217
- 21: "SPACE_BLOCK",
218
- 27: "SIZE",
219
- 28: "COLUMNS",
220
- 29: "id-block",
221
- 30: "end",
222
- 31: "NODE_ID",
223
- 34: "DIR",
224
- 35: "NODE_DSTART",
225
- 36: "NODE_DEND",
226
- 37: "BLOCK_ARROW_START",
227
- 38: "BLOCK_ARROW_END",
228
- 39: "classDef",
229
- 40: "CLASSDEF_ID",
230
- 41: "CLASSDEF_STYLEOPTS",
231
- 42: "DEFAULT",
232
- 43: "class",
233
- 44: "CLASSENTITY_IDS",
234
- 45: "STYLECLASS",
235
- 46: "style",
236
- 47: "STYLE_ENTITY_IDS",
237
- 48: "STYLE_DEFINITION_DATA"
238
- },
239
- productions_: [
240
- 0,
241
- [3, 1],
242
- [3, 2],
243
- [3, 2],
244
- [6, 1],
245
- [6, 1],
246
- [6, 1],
247
- [9, 3],
248
- [12, 1],
249
- [12, 1],
250
- [12, 2],
251
- [12, 2],
252
- [11, 1],
253
- [11, 2],
254
- [14, 1],
255
- [14, 4],
256
- [13, 1],
257
- [13, 1],
258
- [13, 1],
259
- [13, 1],
260
- [13, 1],
261
- [13, 1],
262
- [13, 1],
263
- [19, 3],
264
- [19, 2],
265
- [19, 1],
266
- [20, 1],
267
- [22, 4],
268
- [22, 3],
269
- [26, 1],
270
- [26, 2],
271
- [33, 1],
272
- [33, 2],
273
- [32, 3],
274
- [32, 4],
275
- [23, 3],
276
- [23, 3],
277
- [24, 3],
278
- [25, 3]
279
- ],
280
- performAction: /* @__PURE__ */ t(function(e, t, n, r, i, a, o) {
281
- var s = a.length - 1;
282
- switch (i) {
283
- case 4:
284
- r.getLogger().debug("Rule: separator (NL) ");
285
- break;
286
- case 5:
287
- r.getLogger().debug("Rule: separator (Space) ");
288
- break;
289
- case 6:
290
- r.getLogger().debug("Rule: separator (EOF) ");
291
- break;
292
- case 7:
293
- r.getLogger().debug("Rule: hierarchy: ", a[s - 1]), r.setHierarchy(a[s - 1]);
294
- break;
295
- case 8:
296
- r.getLogger().debug("Stop NL ");
297
- break;
298
- case 9:
299
- r.getLogger().debug("Stop EOF ");
300
- break;
301
- case 10:
302
- r.getLogger().debug("Stop NL2 ");
303
- break;
304
- case 11:
305
- r.getLogger().debug("Stop EOF2 ");
306
- break;
307
- case 12:
308
- r.getLogger().debug("Rule: statement: ", a[s]), typeof a[s].length == "number" ? this.$ = a[s] : this.$ = [a[s]];
309
- break;
310
- case 13:
311
- r.getLogger().debug("Rule: statement #2: ", a[s - 1]), this.$ = [a[s - 1]].concat(a[s]);
312
- break;
313
- case 14:
314
- r.getLogger().debug("Rule: link: ", a[s], e), this.$ = {
315
- edgeTypeStr: a[s],
316
- label: ""
317
- };
318
- break;
319
- case 15:
320
- r.getLogger().debug("Rule: LABEL link: ", a[s - 3], a[s - 1], a[s]), this.$ = {
321
- edgeTypeStr: a[s],
322
- label: a[s - 1]
323
- };
324
- break;
325
- case 18:
326
- let t = parseInt(a[s]), n = r.generateId();
327
- this.$ = {
328
- id: n,
329
- type: "space",
330
- label: "",
331
- width: t,
332
- children: []
333
- };
334
- break;
335
- case 23:
336
- r.getLogger().debug("Rule: (nodeStatement link node) ", a[s - 2], a[s - 1], a[s], " typestr: ", a[s - 1].edgeTypeStr);
337
- let i = r.edgeStrToEdgeData(a[s - 1].edgeTypeStr), o = r.edgeStrToEdgeStartData(a[s - 1].edgeTypeStr), c = r.edgeStrToThickness(a[s - 1].edgeTypeStr), l = r.edgeStrToPattern(a[s - 1].edgeTypeStr);
338
- this.$ = [
339
- {
340
- id: a[s - 2].id,
341
- label: a[s - 2].label,
342
- type: a[s - 2].type,
343
- directions: a[s - 2].directions
344
- },
345
- {
346
- id: a[s - 2].id + "-" + a[s].id,
347
- start: a[s - 2].id,
348
- end: a[s].id,
349
- label: a[s - 1].label,
350
- type: "edge",
351
- thickness: c,
352
- pattern: l,
353
- directions: a[s].directions,
354
- arrowTypeEnd: i,
355
- arrowTypeStart: o
356
- },
357
- {
358
- id: a[s].id,
359
- label: a[s].label,
360
- type: r.typeStr2Type(a[s].typeStr),
361
- directions: a[s].directions
362
- }
363
- ];
364
- break;
365
- case 24:
366
- r.getLogger().debug("Rule: nodeStatement (abc88 node size) ", a[s - 1], a[s]), this.$ = {
367
- id: a[s - 1].id,
368
- label: a[s - 1].label,
369
- type: r.typeStr2Type(a[s - 1].typeStr),
370
- directions: a[s - 1].directions,
371
- widthInColumns: parseInt(a[s], 10)
372
- };
373
- break;
374
- case 25:
375
- r.getLogger().debug("Rule: nodeStatement (node) ", a[s]), this.$ = {
376
- id: a[s].id,
377
- label: a[s].label,
378
- type: r.typeStr2Type(a[s].typeStr),
379
- directions: a[s].directions,
380
- widthInColumns: 1
381
- };
382
- break;
383
- case 26:
384
- r.getLogger().debug("APA123", this ? this : "na"), r.getLogger().debug("COLUMNS: ", a[s]), this.$ = {
385
- type: "column-setting",
386
- columns: a[s] === "auto" ? -1 : parseInt(a[s])
387
- };
388
- break;
389
- case 27:
390
- r.getLogger().debug("Rule: id-block statement : ", a[s - 2], a[s - 1]), r.generateId(), this.$ = {
391
- ...a[s - 2],
392
- type: "composite",
393
- children: a[s - 1]
394
- };
395
- break;
396
- case 28:
397
- r.getLogger().debug("Rule: blockStatement : ", a[s - 2], a[s - 1], a[s]);
398
- let u = r.generateId();
399
- this.$ = {
400
- id: u,
401
- type: "composite",
402
- label: "",
403
- children: a[s - 1]
404
- };
405
- break;
406
- case 29:
407
- r.getLogger().debug("Rule: node (NODE_ID separator): ", a[s]), this.$ = { id: a[s] };
408
- break;
409
- case 30:
410
- r.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ", a[s - 1], a[s]), this.$ = {
411
- id: a[s - 1],
412
- label: a[s].label,
413
- typeStr: a[s].typeStr,
414
- directions: a[s].directions
415
- };
416
- break;
417
- case 31:
418
- r.getLogger().debug("Rule: dirList: ", a[s]), this.$ = [a[s]];
419
- break;
420
- case 32:
421
- r.getLogger().debug("Rule: dirList: ", a[s - 1], a[s]), this.$ = [a[s - 1]].concat(a[s]);
422
- break;
423
- case 33:
424
- r.getLogger().debug("Rule: nodeShapeNLabel: ", a[s - 2], a[s - 1], a[s]), this.$ = {
425
- typeStr: a[s - 2] + a[s],
426
- label: a[s - 1]
427
- };
428
- break;
429
- case 34:
430
- r.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ", a[s - 3], a[s - 2], " #3:", a[s - 1], a[s]), this.$ = {
431
- typeStr: a[s - 3] + a[s],
432
- label: a[s - 2],
433
- directions: a[s - 1]
434
- };
435
- break;
436
- case 35:
437
- case 36:
438
- this.$ = {
439
- type: "classDef",
440
- id: a[s - 1].trim(),
441
- css: a[s].trim()
442
- };
443
- break;
444
- case 37:
445
- this.$ = {
446
- type: "applyClass",
447
- id: a[s - 1].trim(),
448
- styleClass: a[s].trim()
449
- };
450
- break;
451
- case 38:
452
- this.$ = {
453
- type: "applyStyles",
454
- id: a[s - 1].trim(),
455
- stylesStr: a[s].trim()
456
- };
457
- break;
458
- }
459
- }, "anonymous"),
460
- table: [
461
- {
462
- 9: 1,
463
- 10: [1, 2]
464
- },
465
- { 1: [3] },
466
- {
467
- 10: n,
468
- 11: 3,
469
- 13: 4,
470
- 19: 5,
471
- 20: 6,
472
- 21: r,
473
- 22: 8,
474
- 23: 9,
475
- 24: 10,
476
- 25: 11,
477
- 26: 12,
478
- 28: i,
479
- 29: a,
480
- 31: o,
481
- 39: s,
482
- 43: c,
483
- 46: l
484
- },
485
- { 8: [1, 20] },
486
- e(u, [2, 12], {
487
- 13: 4,
488
- 19: 5,
489
- 20: 6,
490
- 22: 8,
491
- 23: 9,
492
- 24: 10,
493
- 25: 11,
494
- 26: 12,
495
- 11: 21,
496
- 10: n,
497
- 21: r,
498
- 28: i,
499
- 29: a,
500
- 31: o,
501
- 39: s,
502
- 43: c,
503
- 46: l
504
- }),
505
- e(d, [2, 16], {
506
- 14: 22,
507
- 15: f,
508
- 16: p
509
- }),
510
- e(d, [2, 17]),
511
- e(d, [2, 18]),
512
- e(d, [2, 19]),
513
- e(d, [2, 20]),
514
- e(d, [2, 21]),
515
- e(d, [2, 22]),
516
- e(m, [2, 25], { 27: [1, 25] }),
517
- e(d, [2, 26]),
518
- {
519
- 19: 26,
520
- 26: 12,
521
- 31: o
522
- },
523
- {
524
- 10: n,
525
- 11: 27,
526
- 13: 4,
527
- 19: 5,
528
- 20: 6,
529
- 21: r,
530
- 22: 8,
531
- 23: 9,
532
- 24: 10,
533
- 25: 11,
534
- 26: 12,
535
- 28: i,
536
- 29: a,
537
- 31: o,
538
- 39: s,
539
- 43: c,
540
- 46: l
541
- },
542
- {
543
- 40: [1, 28],
544
- 42: [1, 29]
545
- },
546
- { 44: [1, 30] },
547
- { 47: [1, 31] },
548
- e(h, [2, 29], {
549
- 32: 32,
550
- 35: [1, 33],
551
- 37: [1, 34]
552
- }),
553
- { 1: [2, 7] },
554
- e(u, [2, 13]),
555
- {
556
- 26: 35,
557
- 31: o
558
- },
559
- { 31: [2, 14] },
560
- { 17: [1, 36] },
561
- e(m, [2, 24]),
562
- {
563
- 10: n,
564
- 11: 37,
565
- 13: 4,
566
- 14: 22,
567
- 15: f,
568
- 16: p,
569
- 19: 5,
570
- 20: 6,
571
- 21: r,
572
- 22: 8,
573
- 23: 9,
574
- 24: 10,
575
- 25: 11,
576
- 26: 12,
577
- 28: i,
578
- 29: a,
579
- 31: o,
580
- 39: s,
581
- 43: c,
582
- 46: l
583
- },
584
- { 30: [1, 38] },
585
- { 41: [1, 39] },
586
- { 41: [1, 40] },
587
- { 45: [1, 41] },
588
- { 48: [1, 42] },
589
- e(h, [2, 30]),
590
- { 18: [1, 43] },
591
- { 18: [1, 44] },
592
- e(m, [2, 23]),
593
- { 18: [1, 45] },
594
- { 30: [1, 46] },
595
- e(d, [2, 28]),
596
- e(d, [2, 35]),
597
- e(d, [2, 36]),
598
- e(d, [2, 37]),
599
- e(d, [2, 38]),
600
- { 36: [1, 47] },
601
- {
602
- 33: 48,
603
- 34: g
604
- },
605
- { 15: [1, 50] },
606
- e(d, [2, 27]),
607
- e(h, [2, 33]),
608
- { 38: [1, 51] },
609
- {
610
- 33: 52,
611
- 34: g,
612
- 38: [2, 31]
613
- },
614
- { 31: [2, 15] },
615
- e(h, [2, 34]),
616
- { 38: [2, 32] }
617
- ],
618
- defaultActions: {
619
- 20: [2, 7],
620
- 23: [2, 14],
621
- 50: [2, 15],
622
- 52: [2, 32]
623
- },
624
- parseError: /* @__PURE__ */ t(function(e, t) {
625
- if (t.recoverable) this.trace(e);
626
- else {
627
- var n = Error(e);
628
- throw n.hash = t, n;
629
- }
630
- }, "parseError"),
631
- parse: /* @__PURE__ */ t(function(e) {
632
- 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: {} };
633
- for (var _ in this.yy) Object.prototype.hasOwnProperty.call(this.yy, _) && (g.yy[_] = this.yy[_]);
634
- h.setInput(e, g.yy), g.yy.lexer = h, g.yy.parser = this, h.yylloc === void 0 && (h.yylloc = {});
635
- var v = h.yylloc;
636
- o.push(v);
637
- var y = h.options && h.options.ranges;
638
- typeof g.yy.parseError == "function" ? this.parseError = g.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
639
- function b(e) {
640
- r.length -= 2 * e, a.length -= e, o.length -= e;
641
- }
642
- t(b, "popStack");
643
- function x() {
644
- var e = i.pop() || h.lex() || p;
645
- return typeof e != "number" && (e instanceof Array && (i = e, e = i.pop()), e = n.symbols_[e] || e), e;
646
- }
647
- t(x, "lex");
648
- for (var S, C, w, T, E, D = {}, O, k, A, j;;) {
649
- 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]) {
650
- var M = "";
651
- for (O in j = [], s[w]) this.terminals_[O] && O > f && j.push("'" + this.terminals_[O] + "'");
652
- 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, {
653
- text: h.match,
654
- token: this.terminals_[S] || S,
655
- line: h.yylineno,
656
- loc: v,
657
- expected: j
658
- });
659
- }
660
- if (T[0] instanceof Array && T.length > 1) throw Error("Parse Error: multiple actions possible at state: " + w + ", token: " + S);
661
- switch (T[0]) {
662
- case 1:
663
- 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--);
664
- break;
665
- case 2:
666
- if (k = this.productions_[T[1]][1], D.$ = a[a.length - k], D._$ = {
667
- first_line: o[o.length - (k || 1)].first_line,
668
- last_line: o[o.length - 1].last_line,
669
- first_column: o[o.length - (k || 1)].first_column,
670
- last_column: o[o.length - 1].last_column
671
- }, y && (D._$.range = [o[o.length - (k || 1)].range[0], o[o.length - 1].range[1]]), E = this.performAction.apply(D, [
672
- c,
673
- u,
674
- l,
675
- g.yy,
676
- T[1],
677
- a,
678
- o
679
- ].concat(m)), E !== void 0) return E;
680
- 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);
681
- break;
682
- case 3: return !0;
683
- }
684
- }
685
- return !0;
686
- }, "parse")
687
- };
688
- _.lexer = /* @__PURE__ */ (function() {
689
- return {
690
- EOF: 1,
691
- parseError: /* @__PURE__ */ t(function(e, t) {
692
- if (this.yy.parser) this.yy.parser.parseError(e, t);
693
- else throw Error(e);
694
- }, "parseError"),
695
- setInput: /* @__PURE__ */ t(function(e, t) {
696
- 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 = {
697
- first_line: 1,
698
- first_column: 0,
699
- last_line: 1,
700
- last_column: 0
701
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
702
- }, "setInput"),
703
- input: /* @__PURE__ */ t(function() {
704
- var e = this._input[0];
705
- 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;
706
- }, "input"),
707
- unput: /* @__PURE__ */ t(function(e) {
708
- var t = e.length, n = e.split(/(?:\r\n?|\n)/g);
709
- this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - t), this.offset -= t;
710
- var r = this.match.split(/(?:\r\n?|\n)/g);
711
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), n.length - 1 && (this.yylineno -= n.length - 1);
712
- var i = this.yylloc.range;
713
- return this.yylloc = {
714
- first_line: this.yylloc.first_line,
715
- last_line: this.yylineno + 1,
716
- first_column: this.yylloc.first_column,
717
- 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
718
- }, this.options.ranges && (this.yylloc.range = [i[0], i[0] + this.yyleng - t]), this.yyleng = this.yytext.length, this;
719
- }, "unput"),
720
- more: /* @__PURE__ */ t(function() {
721
- return this._more = !0, this;
722
- }, "more"),
723
- reject: /* @__PURE__ */ t(function() {
724
- if (this.options.backtrack_lexer) this._backtrack = !0;
725
- 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(), {
726
- text: "",
727
- token: null,
728
- line: this.yylineno
729
- });
730
- return this;
731
- }, "reject"),
732
- less: /* @__PURE__ */ t(function(e) {
733
- this.unput(this.match.slice(e));
734
- }, "less"),
735
- pastInput: /* @__PURE__ */ t(function() {
736
- var e = this.matched.substr(0, this.matched.length - this.match.length);
737
- return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
738
- }, "pastInput"),
739
- upcomingInput: /* @__PURE__ */ t(function() {
740
- var e = this.match;
741
- return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
742
- }, "upcomingInput"),
743
- showPosition: /* @__PURE__ */ t(function() {
744
- var e = this.pastInput(), t = Array(e.length + 1).join("-");
745
- return e + this.upcomingInput() + "\n" + t + "^";
746
- }, "showPosition"),
747
- test_match: /* @__PURE__ */ t(function(e, t) {
748
- var n, r, i;
749
- if (this.options.backtrack_lexer && (i = {
750
- yylineno: this.yylineno,
751
- yylloc: {
752
- first_line: this.yylloc.first_line,
753
- last_line: this.last_line,
754
- first_column: this.yylloc.first_column,
755
- last_column: this.yylloc.last_column
756
- },
757
- yytext: this.yytext,
758
- match: this.match,
759
- matches: this.matches,
760
- matched: this.matched,
761
- yyleng: this.yyleng,
762
- offset: this.offset,
763
- _more: this._more,
764
- _input: this._input,
765
- yy: this.yy,
766
- conditionStack: this.conditionStack.slice(0),
767
- done: this.done
768
- }, this.options.ranges && (i.yylloc.range = this.yylloc.range.slice(0))), r = e[0].match(/(?:\r\n?|\n).*/g), r && (this.yylineno += r.length), this.yylloc = {
769
- first_line: this.yylloc.last_line,
770
- last_line: this.yylineno + 1,
771
- first_column: this.yylloc.last_column,
772
- last_column: r ? r[r.length - 1].length - r[r.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
773
- }, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], n = this.performAction.call(this, this.yy, this, t, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), n) return n;
774
- if (this._backtrack) {
775
- for (var a in i) this[a] = i[a];
776
- return !1;
777
- }
778
- return !1;
779
- }, "test_match"),
780
- next: /* @__PURE__ */ t(function() {
781
- if (this.done) return this.EOF;
782
- this._input || (this.done = !0);
783
- var e, t, n, r;
784
- this._more || (this.yytext = "", this.match = "");
785
- for (var i = this._currentRules(), a = 0; a < i.length; a++) if (n = this._input.match(this.rules[i[a]]), n && (!t || n[0].length > t[0].length)) {
786
- if (t = n, r = a, this.options.backtrack_lexer) {
787
- if (e = this.test_match(n, i[a]), e !== !1) return e;
788
- if (this._backtrack) {
789
- t = !1;
790
- continue;
791
- } else return !1;
792
- } else if (!this.options.flex) break;
793
- }
794
- return t ? (e = this.test_match(t, i[r]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
795
- text: "",
796
- token: null,
797
- line: this.yylineno
798
- });
799
- }, "next"),
800
- lex: /* @__PURE__ */ t(function() {
801
- return this.next() || this.lex();
802
- }, "lex"),
803
- begin: /* @__PURE__ */ t(function(e) {
804
- this.conditionStack.push(e);
805
- }, "begin"),
806
- popState: /* @__PURE__ */ t(function() {
807
- return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
808
- }, "popState"),
809
- _currentRules: /* @__PURE__ */ t(function() {
810
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
811
- }, "_currentRules"),
812
- topState: /* @__PURE__ */ t(function(e) {
813
- return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
814
- }, "topState"),
815
- pushState: /* @__PURE__ */ t(function(e) {
816
- this.begin(e);
817
- }, "pushState"),
818
- stateStackSize: /* @__PURE__ */ t(function() {
819
- return this.conditionStack.length;
820
- }, "stateStackSize"),
821
- options: {},
822
- performAction: /* @__PURE__ */ t(function(e, t, n, r) {
823
- switch (n) {
824
- case 0: return e.getLogger().debug("Found block-beta"), 10;
825
- case 1: return e.getLogger().debug("Found id-block"), 29;
826
- case 2: return e.getLogger().debug("Found block"), 10;
827
- case 3:
828
- e.getLogger().debug(".", t.yytext);
829
- break;
830
- case 4:
831
- e.getLogger().debug("_", t.yytext);
832
- break;
833
- case 5: return 5;
834
- case 6: return t.yytext = -1, 28;
835
- case 7: return t.yytext = t.yytext.replace(/columns\s+/, ""), e.getLogger().debug("COLUMNS (LEX)", t.yytext), 28;
836
- case 8:
837
- this.pushState("md_string");
838
- break;
839
- case 9: return "MD_STR";
840
- case 10:
841
- this.popState();
842
- break;
843
- case 11:
844
- this.pushState("string");
845
- break;
846
- case 12:
847
- e.getLogger().debug("LEX: POPPING STR:", t.yytext), this.popState();
848
- break;
849
- case 13: return e.getLogger().debug("LEX: STR end:", t.yytext), "STR";
850
- case 14: return t.yytext = t.yytext.replace(/space\:/, ""), e.getLogger().debug("SPACE NUM (LEX)", t.yytext), 21;
851
- case 15: return t.yytext = "1", e.getLogger().debug("COLUMNS (LEX)", t.yytext), 21;
852
- case 16: return 42;
853
- case 17: return "LINKSTYLE";
854
- case 18: return "INTERPOLATE";
855
- case 19: return this.pushState("CLASSDEF"), 39;
856
- case 20: return this.popState(), this.pushState("CLASSDEFID"), "DEFAULT_CLASSDEF_ID";
857
- case 21: return this.popState(), this.pushState("CLASSDEFID"), 40;
858
- case 22: return this.popState(), 41;
859
- case 23: return this.pushState("CLASS"), 43;
860
- case 24: return this.popState(), this.pushState("CLASS_STYLE"), 44;
861
- case 25: return this.popState(), 45;
862
- case 26: return this.pushState("STYLE_STMNT"), 46;
863
- case 27: return this.popState(), this.pushState("STYLE_DEFINITION"), 47;
864
- case 28: return this.popState(), 48;
865
- case 29: return this.pushState("acc_title"), "acc_title";
866
- case 30: return this.popState(), "acc_title_value";
867
- case 31: return this.pushState("acc_descr"), "acc_descr";
868
- case 32: return this.popState(), "acc_descr_value";
869
- case 33:
870
- this.pushState("acc_descr_multiline");
871
- break;
872
- case 34:
873
- this.popState();
874
- break;
875
- case 35: return "acc_descr_multiline_value";
876
- case 36: return 30;
877
- case 37: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
878
- case 38: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
879
- case 39: return this.popState(), e.getLogger().debug("Lex: ))"), "NODE_DEND";
880
- case 40: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
881
- case 41: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
882
- case 42: return this.popState(), e.getLogger().debug("Lex: (-"), "NODE_DEND";
883
- case 43: return this.popState(), e.getLogger().debug("Lex: -)"), "NODE_DEND";
884
- case 44: return this.popState(), e.getLogger().debug("Lex: (("), "NODE_DEND";
885
- case 45: return this.popState(), e.getLogger().debug("Lex: ]]"), "NODE_DEND";
886
- case 46: return this.popState(), e.getLogger().debug("Lex: ("), "NODE_DEND";
887
- case 47: return this.popState(), e.getLogger().debug("Lex: ])"), "NODE_DEND";
888
- case 48: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
889
- case 49: return this.popState(), e.getLogger().debug("Lex: /]"), "NODE_DEND";
890
- case 50: return this.popState(), e.getLogger().debug("Lex: )]"), "NODE_DEND";
891
- case 51: return this.popState(), e.getLogger().debug("Lex: )"), "NODE_DEND";
892
- case 52: return this.popState(), e.getLogger().debug("Lex: ]>"), "NODE_DEND";
893
- case 53: return this.popState(), e.getLogger().debug("Lex: ]"), "NODE_DEND";
894
- case 54: return e.getLogger().debug("Lexa: -)"), this.pushState("NODE"), 35;
895
- case 55: return e.getLogger().debug("Lexa: (-"), this.pushState("NODE"), 35;
896
- case 56: return e.getLogger().debug("Lexa: ))"), this.pushState("NODE"), 35;
897
- case 57: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
898
- case 58: return e.getLogger().debug("Lex: ((("), this.pushState("NODE"), 35;
899
- case 59: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
900
- case 60: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
901
- case 61: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
902
- case 62: return e.getLogger().debug("Lexc: >"), this.pushState("NODE"), 35;
903
- case 63: return e.getLogger().debug("Lexa: (["), this.pushState("NODE"), 35;
904
- case 64: return e.getLogger().debug("Lexa: )"), this.pushState("NODE"), 35;
905
- case 65: return this.pushState("NODE"), 35;
906
- case 66: return this.pushState("NODE"), 35;
907
- case 67: return this.pushState("NODE"), 35;
908
- case 68: return this.pushState("NODE"), 35;
909
- case 69: return this.pushState("NODE"), 35;
910
- case 70: return this.pushState("NODE"), 35;
911
- case 71: return this.pushState("NODE"), 35;
912
- case 72: return e.getLogger().debug("Lexa: ["), this.pushState("NODE"), 35;
913
- case 73: return this.pushState("BLOCK_ARROW"), e.getLogger().debug("LEX ARR START"), 37;
914
- case 74: return e.getLogger().debug("Lex: NODE_ID", t.yytext), 31;
915
- case 75: return e.getLogger().debug("Lex: EOF", t.yytext), 8;
916
- case 76:
917
- this.pushState("md_string");
918
- break;
919
- case 77:
920
- this.pushState("md_string");
921
- break;
922
- case 78: return "NODE_DESCR";
923
- case 79:
924
- this.popState();
925
- break;
926
- case 80:
927
- e.getLogger().debug("Lex: Starting string"), this.pushState("string");
928
- break;
929
- case 81:
930
- e.getLogger().debug("LEX ARR: Starting string"), this.pushState("string");
931
- break;
932
- case 82: return e.getLogger().debug("LEX: NODE_DESCR:", t.yytext), "NODE_DESCR";
933
- case 83:
934
- e.getLogger().debug("LEX POPPING"), this.popState();
935
- break;
936
- case 84:
937
- e.getLogger().debug("Lex: =>BAE"), this.pushState("ARROW_DIR");
938
- break;
939
- case 85: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (right): dir:", t.yytext), "DIR";
940
- case 86: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (left):", t.yytext), "DIR";
941
- case 87: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (x):", t.yytext), "DIR";
942
- case 88: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (y):", t.yytext), "DIR";
943
- case 89: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (up):", t.yytext), "DIR";
944
- case 90: return t.yytext = t.yytext.replace(/^,\s*/, ""), e.getLogger().debug("Lex (down):", t.yytext), "DIR";
945
- case 91: return t.yytext = "]>", e.getLogger().debug("Lex (ARROW_DIR end):", t.yytext), this.popState(), this.popState(), "BLOCK_ARROW_END";
946
- case 92: return e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
947
- case 93: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
948
- case 94: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
949
- case 95: return e.getLogger().debug("Lex: LINK", t.yytext), 15;
950
- case 96: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
951
- case 97: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
952
- case 98: return e.getLogger().debug("Lex: START_LINK", t.yytext), this.pushState("LLABEL"), 16;
953
- case 99:
954
- this.pushState("md_string");
955
- break;
956
- case 100: return e.getLogger().debug("Lex: Starting string"), this.pushState("string"), "LINK_LABEL";
957
- case 101: return this.popState(), e.getLogger().debug("Lex: LINK", "#" + t.yytext + "#"), 15;
958
- case 102: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
959
- case 103: return this.popState(), e.getLogger().debug("Lex: LINK", t.yytext), 15;
960
- case 104: return e.getLogger().debug("Lex: COLON", t.yytext), t.yytext = t.yytext.slice(1), 27;
961
- }
962
- }, "anonymous"),
963
- rules: [
964
- /^(?:block-beta\b)/,
965
- /^(?:block:)/,
966
- /^(?:block\b)/,
967
- /^(?:[\s]+)/,
968
- /^(?:[\n]+)/,
969
- /^(?:((\u000D\u000A)|(\u000A)))/,
970
- /^(?:columns\s+auto\b)/,
971
- /^(?:columns\s+[\d]+)/,
972
- /^(?:["][`])/,
973
- /^(?:[^`"]+)/,
974
- /^(?:[`]["])/,
975
- /^(?:["])/,
976
- /^(?:["])/,
977
- /^(?:[^"]*)/,
978
- /^(?:space[:]\d+)/,
979
- /^(?:space\b)/,
980
- /^(?:default\b)/,
981
- /^(?:linkStyle\b)/,
982
- /^(?:interpolate\b)/,
983
- /^(?:classDef\s+)/,
984
- /^(?:DEFAULT\s+)/,
985
- /^(?:\w+\s+)/,
986
- /^(?:[^\n]*)/,
987
- /^(?:class\s+)/,
988
- /^(?:(\w+)+((,\s*\w+)*))/,
989
- /^(?:[^\n]*)/,
990
- /^(?:style\s+)/,
991
- /^(?:(\w+)+((,\s*\w+)*))/,
992
- /^(?:[^\n]*)/,
993
- /^(?:accTitle\s*:\s*)/,
994
- /^(?:(?!\n||)*[^\n]*)/,
995
- /^(?:accDescr\s*:\s*)/,
996
- /^(?:(?!\n||)*[^\n]*)/,
997
- /^(?:accDescr\s*\{\s*)/,
998
- /^(?:[\}])/,
999
- /^(?:[^\}]*)/,
1000
- /^(?:end\b\s*)/,
1001
- /^(?:\(\(\()/,
1002
- /^(?:\)\)\))/,
1003
- /^(?:[\)]\))/,
1004
- /^(?:\}\})/,
1005
- /^(?:\})/,
1006
- /^(?:\(-)/,
1007
- /^(?:-\))/,
1008
- /^(?:\(\()/,
1009
- /^(?:\]\])/,
1010
- /^(?:\()/,
1011
- /^(?:\]\))/,
1012
- /^(?:\\\])/,
1013
- /^(?:\/\])/,
1014
- /^(?:\)\])/,
1015
- /^(?:[\)])/,
1016
- /^(?:\]>)/,
1017
- /^(?:[\]])/,
1018
- /^(?:-\))/,
1019
- /^(?:\(-)/,
1020
- /^(?:\)\))/,
1021
- /^(?:\))/,
1022
- /^(?:\(\(\()/,
1023
- /^(?:\(\()/,
1024
- /^(?:\{\{)/,
1025
- /^(?:\{)/,
1026
- /^(?:>)/,
1027
- /^(?:\(\[)/,
1028
- /^(?:\()/,
1029
- /^(?:\[\[)/,
1030
- /^(?:\[\|)/,
1031
- /^(?:\[\()/,
1032
- /^(?:\)\)\))/,
1033
- /^(?:\[\\)/,
1034
- /^(?:\[\/)/,
1035
- /^(?:\[\\)/,
1036
- /^(?:\[)/,
1037
- /^(?:<\[)/,
1038
- /^(?:[^\(\[\n\-\)\{\}\s\<\>:=]+)/,
1039
- /^(?:$)/,
1040
- /^(?:["][`])/,
1041
- /^(?:["][`])/,
1042
- /^(?:[^`"]+)/,
1043
- /^(?:[`]["])/,
1044
- /^(?:["])/,
1045
- /^(?:["])/,
1046
- /^(?:[^"]+)/,
1047
- /^(?:["])/,
1048
- /^(?:\]>\s*\()/,
1049
- /^(?:,?\s*right\s*)/,
1050
- /^(?:,?\s*left\s*)/,
1051
- /^(?:,?\s*x\s*)/,
1052
- /^(?:,?\s*y\s*)/,
1053
- /^(?:,?\s*up\s*)/,
1054
- /^(?:,?\s*down\s*)/,
1055
- /^(?:\)\s*)/,
1056
- /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1057
- /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1058
- /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1059
- /^(?:\s*~~[\~]+\s*)/,
1060
- /^(?:\s*[xo<]?--\s*)/,
1061
- /^(?:\s*[xo<]?==\s*)/,
1062
- /^(?:\s*[xo<]?-\.\s*)/,
1063
- /^(?:["][`])/,
1064
- /^(?:["])/,
1065
- /^(?:\s*[xo<]?--+[-xo>]\s*)/,
1066
- /^(?:\s*[xo<]?==+[=xo>]\s*)/,
1067
- /^(?:\s*[xo<]?-?\.+-[xo>]?\s*)/,
1068
- /^(?::\d+)/
1069
- ],
1070
- conditions: {
1071
- STYLE_DEFINITION: {
1072
- rules: [28],
1073
- inclusive: !1
1074
- },
1075
- STYLE_STMNT: {
1076
- rules: [27],
1077
- inclusive: !1
1078
- },
1079
- CLASSDEFID: {
1080
- rules: [22],
1081
- inclusive: !1
1082
- },
1083
- CLASSDEF: {
1084
- rules: [20, 21],
1085
- inclusive: !1
1086
- },
1087
- CLASS_STYLE: {
1088
- rules: [25],
1089
- inclusive: !1
1090
- },
1091
- CLASS: {
1092
- rules: [24],
1093
- inclusive: !1
1094
- },
1095
- LLABEL: {
1096
- rules: [
1097
- 99,
1098
- 100,
1099
- 101,
1100
- 102,
1101
- 103
1102
- ],
1103
- inclusive: !1
1104
- },
1105
- ARROW_DIR: {
1106
- rules: [
1107
- 85,
1108
- 86,
1109
- 87,
1110
- 88,
1111
- 89,
1112
- 90,
1113
- 91
1114
- ],
1115
- inclusive: !1
1116
- },
1117
- BLOCK_ARROW: {
1118
- rules: [
1119
- 76,
1120
- 81,
1121
- 84
1122
- ],
1123
- inclusive: !1
1124
- },
1125
- NODE: {
1126
- rules: [
1127
- 37,
1128
- 38,
1129
- 39,
1130
- 40,
1131
- 41,
1132
- 42,
1133
- 43,
1134
- 44,
1135
- 45,
1136
- 46,
1137
- 47,
1138
- 48,
1139
- 49,
1140
- 50,
1141
- 51,
1142
- 52,
1143
- 53,
1144
- 77,
1145
- 80
1146
- ],
1147
- inclusive: !1
1148
- },
1149
- md_string: {
1150
- rules: [
1151
- 9,
1152
- 10,
1153
- 78,
1154
- 79
1155
- ],
1156
- inclusive: !1
1157
- },
1158
- space: {
1159
- rules: [],
1160
- inclusive: !1
1161
- },
1162
- string: {
1163
- rules: [
1164
- 12,
1165
- 13,
1166
- 82,
1167
- 83
1168
- ],
1169
- inclusive: !1
1170
- },
1171
- acc_descr_multiline: {
1172
- rules: [34, 35],
1173
- inclusive: !1
1174
- },
1175
- acc_descr: {
1176
- rules: [32],
1177
- inclusive: !1
1178
- },
1179
- acc_title: {
1180
- rules: [30],
1181
- inclusive: !1
1182
- },
1183
- INITIAL: {
1184
- rules: [
1185
- 0,
1186
- 1,
1187
- 2,
1188
- 3,
1189
- 4,
1190
- 5,
1191
- 6,
1192
- 7,
1193
- 8,
1194
- 11,
1195
- 14,
1196
- 15,
1197
- 16,
1198
- 17,
1199
- 18,
1200
- 19,
1201
- 23,
1202
- 26,
1203
- 29,
1204
- 31,
1205
- 33,
1206
- 36,
1207
- 54,
1208
- 55,
1209
- 56,
1210
- 57,
1211
- 58,
1212
- 59,
1213
- 60,
1214
- 61,
1215
- 62,
1216
- 63,
1217
- 64,
1218
- 65,
1219
- 66,
1220
- 67,
1221
- 68,
1222
- 69,
1223
- 70,
1224
- 71,
1225
- 72,
1226
- 73,
1227
- 74,
1228
- 75,
1229
- 92,
1230
- 93,
1231
- 94,
1232
- 95,
1233
- 96,
1234
- 97,
1235
- 98,
1236
- 104
1237
- ],
1238
- inclusive: !0
1239
- }
1240
- }
1241
- };
1242
- })();
1243
- function v() {
1244
- this.yy = {};
1245
- }
1246
- return t(v, "Parser"), v.prototype = _, _.Parser = v, new v();
1247
- })();
1248
- Se.parser = Se;
1249
- var Ce = Se, F = /* @__PURE__ */ new Map(), I = [], L = /* @__PURE__ */ new Map(), we = "color", Te = "fill", Ee = "bgFill", De = ",", Oe = u(), R = /* @__PURE__ */ new Map(), z = "", ke = /* @__PURE__ */ t((e) => l.sanitizeText(e, Oe), "sanitizeText"), Ae = /* @__PURE__ */ t(function(e, t = "") {
1250
- let n = R.get(e);
1251
- n || (n = {
1252
- id: e,
1253
- styles: [],
1254
- textStyles: []
1255
- }, R.set(e, n)), t?.split(De).forEach((e) => {
1256
- let t = e.replace(/([^;]*);/, "$1").trim();
1257
- if (RegExp(we).exec(e)) {
1258
- let e = t.replace(Te, Ee).replace(we, Te);
1259
- n.textStyles.push(e);
1260
- }
1261
- n.styles.push(t);
1262
- });
1263
- }, "addStyleClass"), je = /* @__PURE__ */ t(function(e, t = "") {
1264
- let n = F.get(e);
1265
- t != null && (n.styles = t.split(De));
1266
- }, "addStyle2Node"), Me = /* @__PURE__ */ t(function(e, t) {
1267
- e.split(",").forEach(function(e) {
1268
- let n = F.get(e);
1269
- if (n === void 0) {
1270
- let t = e.trim();
1271
- n = {
1272
- id: t,
1273
- type: "na",
1274
- children: []
1275
- }, F.set(t, n);
1276
- }
1277
- n.classes ||= [], n.classes.push(t);
1278
- });
1279
- }, "setCssClass"), Ne = /* @__PURE__ */ t((t, n) => {
1280
- let r = t.flat(), i = [], a = r.find((e) => e?.type === "column-setting")?.columns ?? -1;
1281
- for (let t of r) {
1282
- if (typeof a == "number" && a > 0 && t.type !== "column-setting" && typeof t.widthInColumns == "number" && t.widthInColumns > a && e.warn(`Block ${t.id} width ${t.widthInColumns} exceeds configured column width ${a}`), t.label &&= ke(t.label), t.type === "classDef") {
1283
- Ae(t.id, t.css);
1284
- continue;
1285
- }
1286
- if (t.type === "applyClass") {
1287
- Me(t.id, t?.styleClass ?? "");
1288
- continue;
1289
- }
1290
- if (t.type === "applyStyles") {
1291
- t?.stylesStr && je(t.id, t?.stylesStr);
1292
- continue;
1293
- }
1294
- if (t.type === "column-setting") n.columns = t.columns ?? -1;
1295
- else if (t.type === "edge") {
1296
- let e = (L.get(t.id) ?? 0) + 1;
1297
- L.set(t.id, e), t.id = e + "-" + t.id, I.push(t);
1298
- } else {
1299
- t.label || (t.type === "composite" ? t.label = "" : t.label = t.id);
1300
- let e = F.get(t.id);
1301
- if (e === void 0 ? F.set(t.id, t) : (t.type !== "na" && (e.type = t.type), t.label !== t.id && (e.label = t.label)), t.children && Ne(t.children, t), t.type === "space") {
1302
- let e = t.width ?? 1;
1303
- for (let n = 0; n < e; n++) {
1304
- let e = ge(t);
1305
- e.id = e.id + "-" + n, F.set(e.id, e), i.push(e);
1306
- }
1307
- } else e === void 0 && i.push(t);
1308
- }
1309
- }
1310
- n.children = i;
1311
- }, "populateBlockDatabase"), Pe = [], B = {
1312
- id: "root",
1313
- type: "composite",
1314
- children: [],
1315
- columns: -1
1316
- }, Fe = /* @__PURE__ */ t(() => {
1317
- e.debug("Clear called"), a(), B = {
1318
- id: "root",
1319
- type: "composite",
1320
- children: [],
1321
- columns: -1
1322
- }, F = /* @__PURE__ */ new Map([["root", B]]), Pe = [], R = /* @__PURE__ */ new Map(), I = [], L = /* @__PURE__ */ new Map(), z = "";
1323
- }, "clear");
1324
- function Ie(t) {
1325
- switch (e.debug("typeStr2Type", t), t) {
1326
- case "[]": return "square";
1327
- case "()": return e.debug("we have a round"), "round";
1328
- case "(())": return "circle";
1329
- case ">]": return "rect_left_inv_arrow";
1330
- case "{}": return "diamond";
1331
- case "{{}}": return "hexagon";
1332
- case "([])": return "stadium";
1333
- case "[[]]": return "subroutine";
1334
- case "[()]": return "cylinder";
1335
- case "((()))": return "doublecircle";
1336
- case "[//]": return "lean_right";
1337
- case "[\\\\]": return "lean_left";
1338
- case "[/\\]": return "trapezoid";
1339
- case "[\\/]": return "inv_trapezoid";
1340
- case "<[]>": return "block_arrow";
1341
- default: return "na";
1342
- }
1343
- }
1344
- t(Ie, "typeStr2Type");
1345
- function Le(t) {
1346
- switch (e.debug("typeStr2Type", t), t) {
1347
- case "==": return "thick";
1348
- default: return "normal";
1349
- }
1350
- }
1351
- t(Le, "edgeTypeStr2Type");
1352
- function Re(e) {
1353
- switch (e.trim().slice(-1)) {
1354
- case "x": return "arrow_cross";
1355
- case "o": return "arrow_circle";
1356
- case ">": return "arrow_point";
1357
- default: return "";
1358
- }
1359
- }
1360
- t(Re, "edgeStrToEdgeData");
1361
- function ze(e) {
1362
- switch (e.trim().charAt(0)) {
1363
- case "x": return "arrow_cross";
1364
- case "o": return "arrow_circle";
1365
- case "<": return "arrow_point";
1366
- default: return "arrow_open";
1367
- }
1368
- }
1369
- t(ze, "edgeStrToEdgeStartData");
1370
- function Be(e) {
1371
- return e.includes("==") ? "thick" : "normal";
1372
- }
1373
- t(Be, "edgeStrToThickness");
1374
- function Ve(e) {
1375
- return e.includes(".-") ? "dotted" : "solid";
1376
- }
1377
- t(Ve, "edgeStrToPattern");
1378
- var He = 0, Ue = {
1379
- getConfig: /* @__PURE__ */ t(() => o().block, "getConfig"),
1380
- typeStr2Type: Ie,
1381
- edgeTypeStr2Type: Le,
1382
- edgeStrToEdgeData: Re,
1383
- edgeStrToEdgeStartData: ze,
1384
- edgeStrToThickness: Be,
1385
- edgeStrToPattern: Ve,
1386
- getLogger: /* @__PURE__ */ t(() => e, "getLogger"),
1387
- getBlocksFlat: /* @__PURE__ */ t(() => [...F.values()], "getBlocksFlat"),
1388
- getBlocks: /* @__PURE__ */ t(() => Pe || [], "getBlocks"),
1389
- getEdges: /* @__PURE__ */ t(() => I, "getEdges"),
1390
- setHierarchy: /* @__PURE__ */ t((e) => {
1391
- B.children = e, Ne(e, B), Pe = B.children;
1392
- }, "setHierarchy"),
1393
- getBlock: /* @__PURE__ */ t((e) => F.get(e), "getBlock"),
1394
- setBlock: /* @__PURE__ */ t((e) => {
1395
- F.set(e.id, e);
1396
- }, "setBlock"),
1397
- getColumns: /* @__PURE__ */ t((e) => {
1398
- let t = F.get(e);
1399
- return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
1400
- }, "getColumns"),
1401
- getClasses: /* @__PURE__ */ t(function() {
1402
- return R;
1403
- }, "getClasses"),
1404
- clear: Fe,
1405
- generateId: /* @__PURE__ */ t(() => (He++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + He), "generateId"),
1406
- setDiagramId: /* @__PURE__ */ t((e) => {
1407
- z = e;
1408
- }, "setDiagramId"),
1409
- getDiagramId: /* @__PURE__ */ t(() => z, "getDiagramId")
1410
- }, We = /* @__PURE__ */ t((e, t) => {
1411
- let n = f;
1412
- return c(n(e, "r"), n(e, "g"), n(e, "b"), t);
1413
- }, "fade"), Ge = /* @__PURE__ */ t((e) => `.label {
1414
- font-family: ${e.fontFamily};
1415
- color: ${e.nodeTextColor || e.textColor};
1416
- }
1417
- .cluster-label text {
1418
- fill: ${e.titleColor};
1419
- }
1420
- .cluster-label span,p {
1421
- color: ${e.titleColor};
1422
- }
1423
-
1424
-
1425
-
1426
- .label text,span,p {
1427
- fill: ${e.nodeTextColor || e.textColor};
1428
- color: ${e.nodeTextColor || e.textColor};
1429
- }
1430
-
1431
- .node rect,
1432
- .node circle,
1433
- .node ellipse,
1434
- .node polygon,
1435
- .node path {
1436
- fill: ${e.mainBkg};
1437
- stroke: ${e.nodeBorder};
1438
- stroke-width: 1px;
1439
- }
1440
- .flowchart-label text {
1441
- text-anchor: middle;
1442
- }
1443
- // .flowchart-label .text-outer-tspan {
1444
- // text-anchor: middle;
1445
- // }
1446
- // .flowchart-label .text-inner-tspan {
1447
- // text-anchor: start;
1448
- // }
1449
-
1450
- .node .label {
1451
- text-align: center;
1452
- }
1453
- .node.clickable {
1454
- cursor: pointer;
1455
- }
1456
-
1457
- .arrowheadPath {
1458
- fill: ${e.arrowheadColor};
1459
- }
1460
-
1461
- .edgePath .path {
1462
- stroke: ${e.lineColor};
1463
- stroke-width: 2.0px;
1464
- }
1465
-
1466
- .flowchart-link {
1467
- stroke: ${e.lineColor};
1468
- fill: none;
1469
- }
1470
-
1471
- .edgeLabel {
1472
- background-color: ${e.edgeLabelBackground};
1473
- /*
1474
- * This is for backward compatibility with existing code that didn't
1475
- * add a \`<p>\` around edge labels.
1476
- *
1477
- * TODO: We should probably remove this in a future release.
1478
- */
1479
- p {
1480
- margin: 0;
1481
- padding: 0;
1482
- display: inline;
1483
- }
1484
- rect {
1485
- opacity: 0.5;
1486
- background-color: ${e.edgeLabelBackground};
1487
- fill: ${e.edgeLabelBackground};
1488
- }
1489
- text-align: center;
1490
- }
1491
-
1492
- /* For html labels only */
1493
- .labelBkg {
1494
- background-color: ${e.edgeLabelBackground};
1495
- }
1496
-
1497
- .node .cluster {
1498
- // fill: ${We(e.mainBkg, .5)};
1499
- fill: ${We(e.clusterBkg, .5)};
1500
- stroke: ${We(e.clusterBorder, .2)};
1501
- box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
1502
- stroke-width: 1px;
1503
- }
1504
-
1505
- .cluster text {
1506
- fill: ${e.titleColor};
1507
- }
1508
-
1509
- .cluster span,p {
1510
- color: ${e.titleColor};
1511
- }
1512
- /* .cluster div {
1513
- color: ${e.titleColor};
1514
- } */
1515
-
1516
- div.mermaidTooltip {
1517
- position: absolute;
1518
- text-align: center;
1519
- max-width: 200px;
1520
- padding: 2px;
1521
- font-family: ${e.fontFamily};
1522
- font-size: 12px;
1523
- background: ${e.tertiaryColor};
1524
- border: 1px solid ${e.border2};
1525
- border-radius: 2px;
1526
- pointer-events: none;
1527
- z-index: 100;
1528
- }
1529
-
1530
- .flowchartTitleText {
1531
- text-anchor: middle;
1532
- font-size: 18px;
1533
- fill: ${e.textColor};
1534
- }
1535
- ${pe()}
1536
- `, "getStyles"), Ke = /* @__PURE__ */ t((e, t, n, r) => {
1537
- t.forEach((t) => {
1538
- qe[t](e, n, r);
1539
- });
1540
- }, "insertMarkers"), qe = {
1541
- extension: /* @__PURE__ */ t((t, n, r) => {
1542
- e.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionStart").attr("class", "marker extension " + n).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + n + "-extensionEnd").attr("class", "marker extension " + n).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z");
1543
- }, "extension"),
1544
- composition: /* @__PURE__ */ t((e, t, n) => {
1545
- e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionStart").attr("class", "marker composition " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-compositionEnd").attr("class", "marker composition " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1546
- }, "composition"),
1547
- aggregation: /* @__PURE__ */ t((e, t, n) => {
1548
- e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationStart").attr("class", "marker aggregation " + t).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-aggregationEnd").attr("class", "marker aggregation " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z");
1549
- }, "aggregation"),
1550
- dependency: /* @__PURE__ */ t((e, t, n) => {
1551
- e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyStart").attr("class", "marker dependency " + t).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), e.append("defs").append("marker").attr("id", n + "_" + t + "-dependencyEnd").attr("class", "marker dependency " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z");
1552
- }, "dependency"),
1553
- lollipop: /* @__PURE__ */ t((e, t, n) => {
1554
- e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopStart").attr("class", "marker lollipop " + t).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), e.append("defs").append("marker").attr("id", n + "_" + t + "-lollipopEnd").attr("class", "marker lollipop " + t).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6);
1555
- }, "lollipop"),
1556
- point: /* @__PURE__ */ t((e, t, n) => {
1557
- e.append("marker").attr("id", n + "_" + t + "-pointEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-pointStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1558
- }, "point"),
1559
- circle: /* @__PURE__ */ t((e, t, n) => {
1560
- e.append("marker").attr("id", n + "_" + t + "-circleEnd").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-circleStart").attr("class", "marker " + t).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0");
1561
- }, "circle"),
1562
- cross: /* @__PURE__ */ t((e, t, n) => {
1563
- e.append("marker").attr("id", n + "_" + t + "-crossEnd").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), e.append("marker").attr("id", n + "_" + t + "-crossStart").attr("class", "marker cross " + t).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0");
1564
- }, "cross"),
1565
- barb: /* @__PURE__ */ t((e, t, n) => {
1566
- e.append("defs").append("marker").attr("id", n + "_" + t + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
1567
- }, "barb")
1568
- }, Je = Ke, V = u()?.block?.padding ?? 8;
1569
- function Ye(e, t) {
1570
- if (e === 0 || !Number.isInteger(e)) throw Error("Columns must be an integer !== 0.");
1571
- if (t < 0 || !Number.isInteger(t)) throw Error("Position must be a non-negative integer." + t);
1572
- return e < 0 ? {
1573
- px: t,
1574
- py: 0
1575
- } : e === 1 ? {
1576
- px: 0,
1577
- py: t
1578
- } : {
1579
- px: t % e,
1580
- py: Math.floor(t / e)
1581
- };
1582
- }
1583
- t(Ye, "calculateBlockPosition");
1584
- var Xe = /* @__PURE__ */ t((t) => {
1585
- let n = 0, r = 0;
1586
- for (let i of t.children) {
1587
- let { width: t, height: a, x: o, y: s } = i.size ?? {
1588
- width: 0,
1589
- height: 0,
1590
- x: 0,
1591
- y: 0
1592
- };
1593
- if (e.debug("getMaxChildSize abc95 child:", i.id, "width:", t, "height:", a, "x:", o, "y:", s, i.type), i.type === "space") continue;
1594
- let c = t / (i.widthInColumns ?? 1);
1595
- c > n && (n = c), a > r && (r = a);
1596
- }
1597
- return {
1598
- width: n,
1599
- height: r
1600
- };
1601
- }, "getMaxChildSize");
1602
- function H(t, n, r = 0, i = 0) {
1603
- e.debug("setBlockSizes abc95 (start)", t.id, t?.size?.x, "block width =", t?.size, "siblingWidth", r), t?.size?.width || (t.size = {
1604
- width: r,
1605
- height: i,
1606
- x: 0,
1607
- y: 0
1608
- });
1609
- let a = 0, o = 0;
1610
- if (t.children?.length > 0) {
1611
- for (let e of t.children) H(e, n);
1612
- let s = Xe(t);
1613
- a = s.width, o = s.height, e.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", a, o);
1614
- for (let n of t.children) n.size && (e.debug(`abc95 Setting size of children of ${t.id} id=${n.id} ${a} ${o} ${JSON.stringify(n.size)}`), n.size.width = a * (n.widthInColumns ?? 1) + V * ((n.widthInColumns ?? 1) - 1), n.size.height = o, n.size.x = 0, n.size.y = 0, e.debug(`abc95 updating size of ${t.id} children child:${n.id} maxWidth:${a} maxHeight:${o}`));
1615
- for (let e of t.children) H(e, n, a, o);
1616
- let c = t.columns ?? -1, l = 0;
1617
- for (let e of t.children) l += e.widthInColumns ?? 1;
1618
- let u = t.children.length;
1619
- c > 0 && c < l && (u = c);
1620
- let d = Math.ceil(l / u), f = u * (a + V) + V, p = d * (o + V) + V;
1621
- if (f < r) {
1622
- e.debug(`Detected to small sibling: abc95 ${t.id} siblingWidth ${r} siblingHeight ${i} width ${f}`), f = r, p = i;
1623
- let n = (r - u * V - V) / u, s = (i - d * V - V) / d;
1624
- e.debug("Size indata abc88", t.id, "childWidth", n, "maxWidth", a), e.debug("Size indata abc88", t.id, "childHeight", s, "maxHeight", o), e.debug("Size indata abc88 xSize", u, "padding", V);
1625
- for (let e of t.children) e.size && (e.size.width = n, e.size.height = s, e.size.x = 0, e.size.y = 0);
1626
- }
1627
- if (e.debug(`abc95 (finale calc) ${t.id} xSize ${u} ySize ${d} columns ${c}${t.children.length} width=${Math.max(f, t.size?.width || 0)}`), f < (t?.size?.width || 0)) {
1628
- f = t?.size?.width || 0;
1629
- let n = c > 0 ? Math.min(t.children.length, c) : t.children.length;
1630
- if (n > 0) {
1631
- let r = (f - n * V - V) / n;
1632
- e.debug("abc95 (growing to fit) width", t.id, f, t.size?.width, r);
1633
- for (let e of t.children) e.size && (e.size.width = r);
1634
- }
1635
- }
1636
- t.size = {
1637
- width: f,
1638
- height: p,
1639
- x: 0,
1640
- y: 0
1641
- };
1642
- }
1643
- e.debug("setBlockSizes abc94 (done)", t.id, t?.size?.x, t?.size?.width, t?.size?.y, t?.size?.height);
1644
- }
1645
- t(H, "setBlockSizes");
1646
- function Ze(t, n) {
1647
- e.debug(`abc85 layout blocks (=>layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);
1648
- let r = t.columns ?? -1;
1649
- if (e.debug("layoutBlocks columns abc95", t.id, "=>", r, t), t.children && t.children.length > 0) {
1650
- let i = t?.children[0]?.size?.width ?? 0, a = t.children.length * i + (t.children.length - 1) * V;
1651
- e.debug("widthOfChildren 88", a, "posX");
1652
- let o = /* @__PURE__ */ new Map();
1653
- {
1654
- let e = 0;
1655
- for (let n of t.children) {
1656
- if (!n.size) continue;
1657
- let { py: t } = Ye(r, e), i = o.get(t) ?? 0;
1658
- n.size.height > i && o.set(t, n.size.height);
1659
- let a = n?.widthInColumns ?? 1;
1660
- r > 0 && (a = Math.min(a, r - e % r)), e += a;
1661
- }
1662
- }
1663
- let s = /* @__PURE__ */ new Map();
1664
- {
1665
- let e = 0, t = [...o.keys()].sort((e, t) => e - t);
1666
- for (let n of t) s.set(n, e), e += (o.get(n) ?? 0) + V;
1667
- }
1668
- let c = 0;
1669
- e.debug("abc91 block?.size?.x", t.id, t?.size?.x);
1670
- let l = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -V, u = 0;
1671
- for (let i of t.children) {
1672
- let a = t;
1673
- if (!i.size) continue;
1674
- let { width: d, height: f } = i.size, { px: p, py: m } = Ye(r, c);
1675
- if (m != u && (u = m, l = t?.size?.x ? t?.size?.x + (-t?.size?.width / 2 || 0) : -V, e.debug("New row in layout for block", t.id, " and child ", i.id, u)), e.debug(`abc89 layout blocks (child) id: ${i.id} Pos: ${c} (px, py) ${p},${m} (${a?.size?.x},${a?.size?.y}) parent: ${a.id} width: ${d}${V}`), a.size) {
1676
- let t = d / 2;
1677
- i.size.x = l + V + t, e.debug(`abc91 layout blocks (calc) px, pyid:${i.id} startingPos=X${l} new startingPosX${i.size.x} ${t} padding=${V} width=${d} halfWidth=${t} => x:${i.size.x} y:${i.size.y} ${i.widthInColumns} (width * (child?.w || 1)) / 2 ${d * (i?.widthInColumns ?? 1) / 2}`), l = i.size.x + t;
1678
- let n = s.get(m) ?? 0, r = o.get(m) ?? f;
1679
- i.size.y = a.size.y - a.size.height / 2 + n + r / 2 + V, e.debug(`abc88 layout blocks (calc) px, pyid:${i.id}startingPosX${l}${V}${t}=>x:${i.size.x}y:${i.size.y}${i.widthInColumns}(width * (child?.w || 1)) / 2${d * (i?.widthInColumns ?? 1) / 2}`);
1680
- }
1681
- i.children && Ze(i, n);
1682
- let h = i?.widthInColumns ?? 1;
1683
- r > 0 && (h = Math.min(h, r - c % r)), c += h, e.debug("abc88 columnsPos", i, c);
1684
- }
1685
- }
1686
- e.debug(`layout blocks (<==layoutBlocks) ${t.id} x: ${t?.size?.x} y: ${t?.size?.y} width: ${t?.size?.width}`);
1687
- }
1688
- t(Ze, "layoutBlocks");
1689
- function Qe(e, { minX: t, minY: n, maxX: r, maxY: i } = {
1690
- minX: 0,
1691
- minY: 0,
1692
- maxX: 0,
1693
- maxY: 0
1694
- }) {
1695
- if (e.size && e.id !== "root") {
1696
- let { x: a, y: o, width: s, height: c } = e.size;
1697
- a - s / 2 < t && (t = a - s / 2), o - c / 2 < n && (n = o - c / 2), a + s / 2 > r && (r = a + s / 2), o + c / 2 > i && (i = o + c / 2);
1698
- }
1699
- if (e.children) for (let a of e.children) ({minX: t, minY: n, maxX: r, maxY: i} = Qe(a, {
1700
- minX: t,
1701
- minY: n,
1702
- maxX: r,
1703
- maxY: i
1704
- }));
1705
- return {
1706
- minX: t,
1707
- minY: n,
1708
- maxX: r,
1709
- maxY: i
1710
- };
1711
- }
1712
- t(Qe, "findBounds");
1713
- function $e(t) {
1714
- let n = t.getBlock("root");
1715
- if (!n) return;
1716
- H(n, t, 0, 0), Ze(n, t), e.debug("getBlocks", JSON.stringify(n, null, 2));
1717
- let { minX: r, minY: i, maxX: a, maxY: o } = Qe(n), s = o - i;
1718
- return {
1719
- x: r,
1720
- y: i,
1721
- width: a - r,
1722
- height: s
1723
- };
1724
- }
1725
- t($e, "layout");
1726
- var U = /* @__PURE__ */ t(async (e, t, n, r = !1, a = !1) => {
1727
- let o = t || "";
1728
- typeof o == "object" && (o = o[0]);
1729
- let s = u(), c = i(s);
1730
- return await fe(e, o, {
1731
- style: n,
1732
- isTitle: r,
1733
- useHtmlLabels: c,
1734
- markdown: !1,
1735
- isNode: a,
1736
- width: Infinity
1737
- }, s);
1738
- }, "createLabel"), et = /* @__PURE__ */ t((e, t, n, r, i) => {
1739
- t.arrowTypeStart && nt(e, "start", t.arrowTypeStart, n, r, i), t.arrowTypeEnd && nt(e, "end", t.arrowTypeEnd, n, r, i);
1740
- }, "addEdgeMarkers"), tt = {
1741
- arrow_cross: "cross",
1742
- arrow_point: "point",
1743
- arrow_barb: "barb",
1744
- arrow_circle: "circle",
1745
- aggregation: "aggregation",
1746
- extension: "extension",
1747
- composition: "composition",
1748
- dependency: "dependency",
1749
- lollipop: "lollipop"
1750
- }, nt = /* @__PURE__ */ t((t, n, r, i, a, o) => {
1751
- let s = tt[r];
1752
- if (!s) {
1753
- e.warn(`Unknown arrow type: ${r}`);
1754
- return;
1755
- }
1756
- let c = n === "start" ? "Start" : "End";
1757
- t.attr(`marker-${n}`, `url(${i}#${a}_${o}-${s}${c})`);
1758
- }, "addEdgeMarker"), rt = {}, W = {}, it = /* @__PURE__ */ t(async (e, t) => {
1759
- let r = u(), a = i(r), o = e.insert("g").attr("class", "edgeLabel"), s = o.insert("g").attr("class", "label"), c = t.labelType === "markdown", l = await fe(e, t.label, {
1760
- style: t.labelStyle,
1761
- useHtmlLabels: a,
1762
- addSvgBackground: c,
1763
- isNode: !1,
1764
- markdown: c,
1765
- width: c ? void 0 : Infinity
1766
- }, r);
1767
- s.node().appendChild(l);
1768
- let d = l.getBBox(), f = d;
1769
- if (a) {
1770
- let e = l.children[0], t = n(l);
1771
- d = e.getBoundingClientRect(), f = d, t.attr("width", d.width), t.attr("height", d.height);
1772
- } else {
1773
- let e = n(l).select("text").node();
1774
- e && typeof e.getBBox == "function" && (f = e.getBBox());
1775
- }
1776
- s.attr("transform", P(f, a)), rt[t.id] = o, t.width = d.width, t.height = d.height;
1777
- let p;
1778
- if (t.startLabelLeft) {
1779
- let r = e.insert("g").attr("class", "edgeTerminals"), i = r.insert("g").attr("class", "inner"), o = await U(i, t.startLabelLeft, t.labelStyle);
1780
- p = o;
1781
- let s = o.getBBox();
1782
- if (a) {
1783
- let e = o.children[0], t = n(o);
1784
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1785
- }
1786
- i.attr("transform", P(s, a)), W[t.id] || (W[t.id] = {}), W[t.id].startLeft = r, G(p, t.startLabelLeft);
1787
- }
1788
- if (t.startLabelRight) {
1789
- let r = e.insert("g").attr("class", "edgeTerminals"), i = r.insert("g").attr("class", "inner"), o = await U(i, t.startLabelRight, t.labelStyle);
1790
- p = o;
1791
- let s = o.getBBox();
1792
- if (a) {
1793
- let e = o.children[0], t = n(o);
1794
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1795
- }
1796
- i.attr("transform", P(s, a)), W[t.id] || (W[t.id] = {}), W[t.id].startRight = r, G(p, t.startLabelRight);
1797
- }
1798
- if (t.endLabelLeft) {
1799
- let r = e.insert("g").attr("class", "edgeTerminals"), i = r.insert("g").attr("class", "inner"), o = await U(r, t.endLabelLeft, t.labelStyle);
1800
- p = o;
1801
- let s = o.getBBox();
1802
- if (a) {
1803
- let e = o.children[0], t = n(o);
1804
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1805
- }
1806
- i.attr("transform", P(s, a)), W[t.id] || (W[t.id] = {}), W[t.id].endLeft = r, G(p, t.endLabelLeft);
1807
- }
1808
- if (t.endLabelRight) {
1809
- let r = e.insert("g").attr("class", "edgeTerminals"), i = r.insert("g").attr("class", "inner"), o = await U(r, t.endLabelRight, t.labelStyle);
1810
- p = o;
1811
- let s = o.getBBox();
1812
- if (a) {
1813
- let e = o.children[0], t = n(o);
1814
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
1815
- }
1816
- i.attr("transform", P(s, a)), W[t.id] || (W[t.id] = {}), W[t.id].endRight = r, G(p, t.endLabelRight);
1817
- }
1818
- return l;
1819
- }, "insertEdgeLabel");
1820
- function G(e, t) {
1821
- i(u()) && e && (e.style.width = t.length * 9 + "px", e.style.height = "12px");
1822
- }
1823
- t(G, "setTerminalWidth");
1824
- var at = /* @__PURE__ */ t((t, n) => {
1825
- e.debug("Moving label abc88 ", t.id, t.label, rt[t.id], n);
1826
- let r = n.updatedPath ? n.updatedPath : n.originalPath, { subGraphTitleTotalMargin: i } = ue(u());
1827
- if (t.label) {
1828
- let a = rt[t.id], o = t.x, s = t.y;
1829
- if (r) {
1830
- let i = N.calcLabelPosition(r);
1831
- e.debug("Moving label " + t.label + " from (", o, ",", s, ") to (", i.x, ",", i.y, ") abc88"), n.updatedPath && (o = i.x, s = i.y);
1832
- }
1833
- a.attr("transform", `translate(${o}, ${s + i / 2})`);
1834
- }
1835
- if (t.startLabelLeft) {
1836
- let e = W[t.id].startLeft, n = t.x, i = t.y;
1837
- if (r) {
1838
- let e = N.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_left", r);
1839
- n = e.x, i = e.y;
1840
- }
1841
- e.attr("transform", `translate(${n}, ${i})`);
1842
- }
1843
- if (t.startLabelRight) {
1844
- let e = W[t.id].startRight, n = t.x, i = t.y;
1845
- if (r) {
1846
- let e = N.calcTerminalLabelPosition(t.arrowTypeStart ? 10 : 0, "start_right", r);
1847
- n = e.x, i = e.y;
1848
- }
1849
- e.attr("transform", `translate(${n}, ${i})`);
1850
- }
1851
- if (t.endLabelLeft) {
1852
- let e = W[t.id].endLeft, n = t.x, i = t.y;
1853
- if (r) {
1854
- let e = N.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_left", r);
1855
- n = e.x, i = e.y;
1856
- }
1857
- e.attr("transform", `translate(${n}, ${i})`);
1858
- }
1859
- if (t.endLabelRight) {
1860
- let e = W[t.id].endRight, n = t.x, i = t.y;
1861
- if (r) {
1862
- let e = N.calcTerminalLabelPosition(t.arrowTypeEnd ? 10 : 0, "end_right", r);
1863
- n = e.x, i = e.y;
1864
- }
1865
- e.attr("transform", `translate(${n}, ${i})`);
1866
- }
1867
- }, "positionEdgeLabel"), ot = /* @__PURE__ */ t((e, t) => {
1868
- let n = e.x, r = e.y, i = Math.abs(t.x - n), a = Math.abs(t.y - r), o = e.width / 2, s = e.height / 2;
1869
- return i >= o || a >= s;
1870
- }, "outsideNode"), st = /* @__PURE__ */ t((t, n, r) => {
1871
- e.debug(`intersection calc abc89:
1872
- outsidePoint: ${JSON.stringify(n)}
1873
- insidePoint : ${JSON.stringify(r)}
1874
- node : x:${t.x} y:${t.y} w:${t.width} h:${t.height}`);
1875
- let i = t.x, a = t.y, o = Math.abs(i - r.x), s = t.width / 2, c = r.x < n.x ? s - o : s + o, l = t.height / 2, u = Math.abs(n.y - r.y), d = Math.abs(n.x - r.x);
1876
- if (Math.abs(a - n.y) * s > Math.abs(i - n.x) * l) {
1877
- let t = r.y < n.y ? n.y - l - a : a - l - n.y;
1878
- c = d * t / u;
1879
- let i = {
1880
- x: r.x < n.x ? r.x + c : r.x - d + c,
1881
- y: r.y < n.y ? r.y + u - t : r.y - u + t
1882
- };
1883
- return c === 0 && (i.x = n.x, i.y = n.y), d === 0 && (i.x = n.x), u === 0 && (i.y = n.y), e.debug(`abc89 topp/bott calc, Q ${u}, q ${t}, R ${d}, r ${c}`, i), i;
1884
- } else {
1885
- c = r.x < n.x ? n.x - s - i : i - s - n.x;
1886
- let t = u * c / d, a = r.x < n.x ? r.x + d - c : r.x - d + c, o = r.y < n.y ? r.y + t : r.y - t;
1887
- return e.debug(`sides calc abc89, Q ${u}, q ${t}, R ${d}, r ${c}`, {
1888
- _x: a,
1889
- _y: o
1890
- }), c === 0 && (a = n.x, o = n.y), d === 0 && (a = n.x), u === 0 && (o = n.y), {
1891
- x: a,
1892
- y: o
1893
- };
1894
- }
1895
- }, "intersection"), ct = /* @__PURE__ */ t((t, n) => {
1896
- e.debug("abc88 cutPathAtIntersect", t, n);
1897
- let r = [], i = t[0], a = !1;
1898
- return t.forEach((e) => {
1899
- if (!ot(n, e) && !a) {
1900
- let t = st(n, i, e), o = !1;
1901
- r.forEach((e) => {
1902
- o ||= e.x === t.x && e.y === t.y;
1903
- }), r.some((e) => e.x === t.x && e.y === t.y) || r.push(t), a = !0;
1904
- } else i = e, a || r.push(e);
1905
- }), r;
1906
- }, "cutPathAtIntersect"), lt = /* @__PURE__ */ t(function(t, n, i, a, o, s, c) {
1907
- let l = i.points;
1908
- e.debug("abc88 InsertEdge: edge=", i, "e=", n);
1909
- let d = !1, f = s.node(n.v);
1910
- var p = s.node(n.w);
1911
- p?.intersect && f?.intersect && (l = l.slice(1, i.points.length - 1), l.unshift(f.intersect(l[0])), l.push(p.intersect(l[l.length - 1]))), i.toCluster && (e.debug("to cluster abc88", a[i.toCluster]), l = ct(i.points, a[i.toCluster].node), d = !0), i.fromCluster && (e.debug("from cluster abc88", a[i.fromCluster]), l = ct(l.reverse(), a[i.fromCluster].node).reverse(), d = !0);
1912
- let m = l.filter((e) => !Number.isNaN(e.y)), h = ee;
1913
- i.curve && (o === "graph" || o === "flowchart") && (h = i.curve);
1914
- let { x: g, y: _ } = le(i), v = ce().x(g).y(_).curve(h), y;
1915
- switch (i.thickness) {
1916
- case "normal":
1917
- y = "edge-thickness-normal";
1918
- break;
1919
- case "thick":
1920
- y = "edge-thickness-thick";
1921
- break;
1922
- case "invisible":
1923
- y = "edge-thickness-thick";
1924
- break;
1925
- default: y = "";
1926
- }
1927
- switch (i.pattern) {
1928
- case "solid":
1929
- y += " edge-pattern-solid";
1930
- break;
1931
- case "dotted":
1932
- y += " edge-pattern-dotted";
1933
- break;
1934
- case "dashed":
1935
- y += " edge-pattern-dashed";
1936
- break;
1937
- }
1938
- let b = t.append("path").attr("d", v(m)).attr("id", i.id).attr("class", " " + y + (i.classes ? " " + i.classes : "")).attr("style", i.style), x = "";
1939
- (u().flowchart.arrowMarkerAbsolute || u().state.arrowMarkerAbsolute) && (x = r(!0)), et(b, i, x, c, o);
1940
- let S = {};
1941
- return d && (S.updatedPath = l), S.originalPath = i.points, S;
1942
- }, "insertEdge"), ut = /* @__PURE__ */ t((e) => {
1943
- let t = /* @__PURE__ */ new Set();
1944
- for (let n of e) switch (n) {
1945
- case "x":
1946
- t.add("right"), t.add("left");
1947
- break;
1948
- case "y":
1949
- t.add("up"), t.add("down");
1950
- break;
1951
- default:
1952
- t.add(n);
1953
- break;
1954
- }
1955
- return t;
1956
- }, "expandAndDeduplicateDirections"), dt = /* @__PURE__ */ t((e, t, n, r) => {
1957
- let i = ut(e), a = t.height + 2 * n.padding, o = a / 2, s = r ?? t.width + 2 * o + n.padding, c = n.padding / 2;
1958
- return i.has("right") && i.has("left") && i.has("up") && i.has("down") ? [
1959
- {
1960
- x: 0,
1961
- y: 0
1962
- },
1963
- {
1964
- x: o,
1965
- y: 0
1966
- },
1967
- {
1968
- x: s / 2,
1969
- y: 2 * c
1970
- },
1971
- {
1972
- x: s - o,
1973
- y: 0
1974
- },
1975
- {
1976
- x: s,
1977
- y: 0
1978
- },
1979
- {
1980
- x: s,
1981
- y: -a / 3
1982
- },
1983
- {
1984
- x: s + 2 * c,
1985
- y: -a / 2
1986
- },
1987
- {
1988
- x: s,
1989
- y: -2 * a / 3
1990
- },
1991
- {
1992
- x: s,
1993
- y: -a
1994
- },
1995
- {
1996
- x: s - o,
1997
- y: -a
1998
- },
1999
- {
2000
- x: s / 2,
2001
- y: -a - 2 * c
2002
- },
2003
- {
2004
- x: o,
2005
- y: -a
2006
- },
2007
- {
2008
- x: 0,
2009
- y: -a
2010
- },
2011
- {
2012
- x: 0,
2013
- y: -2 * a / 3
2014
- },
2015
- {
2016
- x: -2 * c,
2017
- y: -a / 2
2018
- },
2019
- {
2020
- x: 0,
2021
- y: -a / 3
2022
- }
2023
- ] : i.has("right") && i.has("left") && i.has("up") ? [
2024
- {
2025
- x: o,
2026
- y: 0
2027
- },
2028
- {
2029
- x: s - o,
2030
- y: 0
2031
- },
2032
- {
2033
- x: s,
2034
- y: -a / 2
2035
- },
2036
- {
2037
- x: s - o,
2038
- y: -a
2039
- },
2040
- {
2041
- x: o,
2042
- y: -a
2043
- },
2044
- {
2045
- x: 0,
2046
- y: -a / 2
2047
- }
2048
- ] : i.has("right") && i.has("left") && i.has("down") ? [
2049
- {
2050
- x: 0,
2051
- y: 0
2052
- },
2053
- {
2054
- x: o,
2055
- y: -a
2056
- },
2057
- {
2058
- x: s - o,
2059
- y: -a
2060
- },
2061
- {
2062
- x: s,
2063
- y: 0
2064
- }
2065
- ] : i.has("right") && i.has("up") && i.has("down") ? [
2066
- {
2067
- x: 0,
2068
- y: 0
2069
- },
2070
- {
2071
- x: s,
2072
- y: -o
2073
- },
2074
- {
2075
- x: s,
2076
- y: -a + o
2077
- },
2078
- {
2079
- x: 0,
2080
- y: -a
2081
- }
2082
- ] : i.has("left") && i.has("up") && i.has("down") ? [
2083
- {
2084
- x: s,
2085
- y: 0
2086
- },
2087
- {
2088
- x: 0,
2089
- y: -o
2090
- },
2091
- {
2092
- x: 0,
2093
- y: -a + o
2094
- },
2095
- {
2096
- x: s,
2097
- y: -a
2098
- }
2099
- ] : i.has("right") && i.has("left") ? [
2100
- {
2101
- x: o,
2102
- y: 0
2103
- },
2104
- {
2105
- x: o,
2106
- y: -c
2107
- },
2108
- {
2109
- x: s - o,
2110
- y: -c
2111
- },
2112
- {
2113
- x: s - o,
2114
- y: 0
2115
- },
2116
- {
2117
- x: s,
2118
- y: -a / 2
2119
- },
2120
- {
2121
- x: s - o,
2122
- y: -a
2123
- },
2124
- {
2125
- x: s - o,
2126
- y: -a + c
2127
- },
2128
- {
2129
- x: o,
2130
- y: -a + c
2131
- },
2132
- {
2133
- x: o,
2134
- y: -a
2135
- },
2136
- {
2137
- x: 0,
2138
- y: -a / 2
2139
- }
2140
- ] : i.has("up") && i.has("down") ? [
2141
- {
2142
- x: s / 2,
2143
- y: 0
2144
- },
2145
- {
2146
- x: 0,
2147
- y: -c
2148
- },
2149
- {
2150
- x: o,
2151
- y: -c
2152
- },
2153
- {
2154
- x: o,
2155
- y: -a + c
2156
- },
2157
- {
2158
- x: 0,
2159
- y: -a + c
2160
- },
2161
- {
2162
- x: s / 2,
2163
- y: -a
2164
- },
2165
- {
2166
- x: s,
2167
- y: -a + c
2168
- },
2169
- {
2170
- x: s - o,
2171
- y: -a + c
2172
- },
2173
- {
2174
- x: s - o,
2175
- y: -c
2176
- },
2177
- {
2178
- x: s,
2179
- y: -c
2180
- }
2181
- ] : i.has("right") && i.has("up") ? [
2182
- {
2183
- x: 0,
2184
- y: 0
2185
- },
2186
- {
2187
- x: s,
2188
- y: -o
2189
- },
2190
- {
2191
- x: 0,
2192
- y: -a
2193
- }
2194
- ] : i.has("right") && i.has("down") ? [
2195
- {
2196
- x: 0,
2197
- y: 0
2198
- },
2199
- {
2200
- x: s,
2201
- y: 0
2202
- },
2203
- {
2204
- x: 0,
2205
- y: -a
2206
- }
2207
- ] : i.has("left") && i.has("up") ? [
2208
- {
2209
- x: s,
2210
- y: 0
2211
- },
2212
- {
2213
- x: 0,
2214
- y: -o
2215
- },
2216
- {
2217
- x: s,
2218
- y: -a
2219
- }
2220
- ] : i.has("left") && i.has("down") ? [
2221
- {
2222
- x: s,
2223
- y: 0
2224
- },
2225
- {
2226
- x: 0,
2227
- y: 0
2228
- },
2229
- {
2230
- x: s,
2231
- y: -a
2232
- }
2233
- ] : i.has("right") ? [
2234
- {
2235
- x: o,
2236
- y: -c
2237
- },
2238
- {
2239
- x: o,
2240
- y: -c
2241
- },
2242
- {
2243
- x: s - o,
2244
- y: -c
2245
- },
2246
- {
2247
- x: s - o,
2248
- y: 0
2249
- },
2250
- {
2251
- x: s,
2252
- y: -a / 2
2253
- },
2254
- {
2255
- x: s - o,
2256
- y: -a
2257
- },
2258
- {
2259
- x: s - o,
2260
- y: -a + c
2261
- },
2262
- {
2263
- x: o,
2264
- y: -a + c
2265
- },
2266
- {
2267
- x: o,
2268
- y: -a + c
2269
- }
2270
- ] : i.has("left") ? [
2271
- {
2272
- x: o,
2273
- y: 0
2274
- },
2275
- {
2276
- x: o,
2277
- y: -c
2278
- },
2279
- {
2280
- x: s - o,
2281
- y: -c
2282
- },
2283
- {
2284
- x: s - o,
2285
- y: -a + c
2286
- },
2287
- {
2288
- x: o,
2289
- y: -a + c
2290
- },
2291
- {
2292
- x: o,
2293
- y: -a
2294
- },
2295
- {
2296
- x: 0,
2297
- y: -a / 2
2298
- }
2299
- ] : i.has("up") ? [
2300
- {
2301
- x: o,
2302
- y: -c
2303
- },
2304
- {
2305
- x: o,
2306
- y: -a + c
2307
- },
2308
- {
2309
- x: 0,
2310
- y: -a + c
2311
- },
2312
- {
2313
- x: s / 2,
2314
- y: -a
2315
- },
2316
- {
2317
- x: s,
2318
- y: -a + c
2319
- },
2320
- {
2321
- x: s - o,
2322
- y: -a + c
2323
- },
2324
- {
2325
- x: s - o,
2326
- y: -c
2327
- }
2328
- ] : i.has("down") ? [
2329
- {
2330
- x: s / 2,
2331
- y: 0
2332
- },
2333
- {
2334
- x: 0,
2335
- y: -c
2336
- },
2337
- {
2338
- x: o,
2339
- y: -c
2340
- },
2341
- {
2342
- x: o,
2343
- y: -a + c
2344
- },
2345
- {
2346
- x: s - o,
2347
- y: -a + c
2348
- },
2349
- {
2350
- x: s - o,
2351
- y: -c
2352
- },
2353
- {
2354
- x: s,
2355
- y: -c
2356
- }
2357
- ] : [{
2358
- x: 0,
2359
- y: 0
2360
- }];
2361
- }, "getArrowPoints");
2362
- function ft(e, t) {
2363
- return e.intersect(t);
2364
- }
2365
- t(ft, "intersectNode");
2366
- var pt = ft;
2367
- function mt(e, t, n, r) {
2368
- var i = e.x, a = e.y, o = i - r.x, s = a - r.y, c = Math.sqrt(t * t * s * s + n * n * o * o), l = Math.abs(t * n * o / c);
2369
- r.x < i && (l = -l);
2370
- var u = Math.abs(t * n * s / c);
2371
- return r.y < a && (u = -u), {
2372
- x: i + l,
2373
- y: a + u
2374
- };
2375
- }
2376
- t(mt, "intersectEllipse");
2377
- var ht = mt;
2378
- function gt(e, t, n) {
2379
- return ht(e, t, t, n);
2380
- }
2381
- t(gt, "intersectCircle");
2382
- var _t = gt;
2383
- function vt(e, t, n, r) {
2384
- var i = t.y - e.y, a, o = e.x - t.x, s, c = t.x * e.y - e.x * t.y, l, u, d, f = i * n.x + o * n.y + c, p = i * r.x + o * r.y + c, m, h, g, _, v;
2385
- if (!(f !== 0 && p !== 0 && yt(f, p)) && (a = r.y - n.y, s = n.x - r.x, l = r.x * n.y - n.x * r.y, u = a * e.x + s * e.y + l, d = a * t.x + s * t.y + l, !(u !== 0 && d !== 0 && yt(u, d)) && (m = i * s - a * o, m !== 0))) return h = Math.abs(m / 2), g = o * l - s * c, _ = g < 0 ? (g - h) / m : (g + h) / m, g = a * c - i * l, v = g < 0 ? (g - h) / m : (g + h) / m, {
2386
- x: _,
2387
- y: v
2388
- };
2389
- }
2390
- t(vt, "intersectLine");
2391
- function yt(e, t) {
2392
- return e * t > 0;
2393
- }
2394
- t(yt, "sameSign");
2395
- var bt = vt, xt = St;
2396
- function St(e, t, n) {
2397
- var r = e.x, i = e.y, a = [], o = Infinity, s = Infinity;
2398
- typeof t.forEach == "function" ? t.forEach(function(e) {
2399
- o = Math.min(o, e.x), s = Math.min(s, e.y);
2400
- }) : (o = Math.min(o, t.x), s = Math.min(s, t.y));
2401
- for (var c = r - e.width / 2 - o, l = i - e.height / 2 - s, u = 0; u < t.length; u++) {
2402
- var d = t[u], f = t[u < t.length - 1 ? u + 1 : 0], p = bt(e, n, {
2403
- x: c + d.x,
2404
- y: l + d.y
2405
- }, {
2406
- x: c + f.x,
2407
- y: l + f.y
2408
- });
2409
- p && a.push(p);
2410
- }
2411
- return a.length ? (a.length > 1 && a.sort(function(e, t) {
2412
- var r = e.x - n.x, i = e.y - n.y, a = Math.sqrt(r * r + i * i), o = t.x - n.x, s = t.y - n.y, c = Math.sqrt(o * o + s * s);
2413
- return a < c ? -1 : a === c ? 0 : 1;
2414
- }), a[0]) : e;
2415
- }
2416
- t(St, "intersectPolygon");
2417
- var K = {
2418
- node: pt,
2419
- circle: _t,
2420
- ellipse: ht,
2421
- polygon: xt,
2422
- rect: /* @__PURE__ */ t((e, t) => {
2423
- var n = e.x, r = e.y, i = t.x - n, a = t.y - r, o = e.width / 2, s = e.height / 2, c, l;
2424
- return Math.abs(a) * o > Math.abs(i) * s ? (a < 0 && (s = -s), c = a === 0 ? 0 : s * i / a, l = s) : (i < 0 && (o = -o), c = o, l = i === 0 ? 0 : o * a / i), {
2425
- x: n + c,
2426
- y: r + l
2427
- };
2428
- }, "intersectRect")
2429
- }, q = /* @__PURE__ */ t(async (e, t, r, a) => {
2430
- let o = u(), s, c = t.useHtmlLabels || i(o);
2431
- s = r || "node default";
2432
- let l = e.insert("g").attr("class", s).attr("id", t.domId || t.id), f = l.insert("g").attr("class", "label").attr("style", t.labelStyle), p;
2433
- p = t.labelText === void 0 ? "" : typeof t.labelText == "string" ? t.labelText : t.labelText[0];
2434
- let m;
2435
- m = t.labelType === "markdown" ? fe(f, d(M(p), o), {
2436
- useHtmlLabels: c,
2437
- width: t.width || o.flowchart.wrappingWidth,
2438
- classes: "markdown-node-label"
2439
- }, o) : await U(f, d(M(p), o), t.labelStyle, !1, a);
2440
- let h = m.getBBox(), g = t.padding / 2;
2441
- if (i(o)) {
2442
- let e = m.children[0], t = n(m);
2443
- await de(e, p), h = e.getBoundingClientRect(), t.attr("width", h.width), t.attr("height", h.height);
2444
- }
2445
- return c ? f.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")") : f.attr("transform", "translate(0, " + -h.height / 2 + ")"), t.centerLabel && f.attr("transform", "translate(" + -h.width / 2 + ", " + -h.height / 2 + ")"), f.insert("rect", ":first-child"), {
2446
- shapeSvg: l,
2447
- bbox: h,
2448
- halfPadding: g,
2449
- label: f
2450
- };
2451
- }, "labelHelper"), J = /* @__PURE__ */ t((e, t) => {
2452
- let n = t.node().getBBox();
2453
- e.width = n.width, e.height = n.height;
2454
- }, "updateNodeBounds");
2455
- function Y(e, t, n, r) {
2456
- return e.insert("polygon", ":first-child").attr("points", r.map(function(e) {
2457
- return e.x + "," + e.y;
2458
- }).join(" ")).attr("class", "label-container").attr("transform", "translate(" + -t / 2 + "," + n / 2 + ")");
2459
- }
2460
- t(Y, "insertPolygonShape");
2461
- var Ct = /* @__PURE__ */ t(async (t, n) => {
2462
- n.useHtmlLabels || i(u()) || (n.centerLabel = !0);
2463
- let { shapeSvg: r, bbox: a, halfPadding: o } = await q(t, n, "node " + n.classes, !0);
2464
- e.info("Classes = ", n.classes);
2465
- let s = r.insert("rect", ":first-child");
2466
- return s.attr("rx", n.rx).attr("ry", n.ry).attr("x", -a.width / 2 - o).attr("y", -a.height / 2 - o).attr("width", a.width + n.padding).attr("height", a.height + n.padding), J(n, s), n.intersect = function(e) {
2467
- return K.rect(n, e);
2468
- }, r;
2469
- }, "note"), wt = /* @__PURE__ */ t((e) => e ? " " + e : "", "formatClass"), X = /* @__PURE__ */ t((e, t) => `${t || "node default"}${wt(e.classes)} ${wt(e.class)}`, "getClassesFromNode"), Tt = /* @__PURE__ */ t(async (t, n) => {
2470
- let { shapeSvg: r, bbox: i } = await q(t, n, X(n, void 0), !0), a = i.width + n.padding + (i.height + n.padding), o = [
2471
- {
2472
- x: a / 2,
2473
- y: 0
2474
- },
2475
- {
2476
- x: a,
2477
- y: -a / 2
2478
- },
2479
- {
2480
- x: a / 2,
2481
- y: -a
2482
- },
2483
- {
2484
- x: 0,
2485
- y: -a / 2
2486
- }
2487
- ];
2488
- e.info("Question main (Circle)");
2489
- let s = Y(r, a, a, o);
2490
- return s.attr("style", n.style), J(n, s), n.intersect = function(t) {
2491
- return e.warn("Intersect called"), K.polygon(n, o, t);
2492
- }, r;
2493
- }, "question"), Et = /* @__PURE__ */ t((e, t) => {
2494
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id);
2495
- return n.insert("polygon", ":first-child").attr("points", [
2496
- {
2497
- x: 0,
2498
- y: 28 / 2
2499
- },
2500
- {
2501
- x: 28 / 2,
2502
- y: 0
2503
- },
2504
- {
2505
- x: 0,
2506
- y: -28 / 2
2507
- },
2508
- {
2509
- x: -28 / 2,
2510
- y: 0
2511
- }
2512
- ].map(function(e) {
2513
- return e.x + "," + e.y;
2514
- }).join(" ")).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), t.width = 28, t.height = 28, t.intersect = function(e) {
2515
- return K.circle(t, 14, e);
2516
- }, n;
2517
- }, "choice"), Dt = /* @__PURE__ */ t(async (e, t) => {
2518
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = t.positioned ? t.height : r.height + t.padding, a = i / 4, o = t.positioned ? t.width : r.width + 2 * a + t.padding, s = [
2519
- {
2520
- x: a,
2521
- y: 0
2522
- },
2523
- {
2524
- x: o - a,
2525
- y: 0
2526
- },
2527
- {
2528
- x: o,
2529
- y: -i / 2
2530
- },
2531
- {
2532
- x: o - a,
2533
- y: -i
2534
- },
2535
- {
2536
- x: a,
2537
- y: -i
2538
- },
2539
- {
2540
- x: 0,
2541
- y: -i / 2
2542
- }
2543
- ], c = Y(n, o, i, s);
2544
- return c.attr("style", t.style), J(t, c), t.intersect = function(e) {
2545
- return K.polygon(t, s, e);
2546
- }, n;
2547
- }, "hexagon"), Ot = /* @__PURE__ */ t(async (e, t) => {
2548
- let { shapeSvg: n, bbox: r } = await q(e, t, void 0, !0), i = r.height + 2 * t.padding, a = i / 2, o = r.width + 2 * a + t.padding, s = t.positioned && (t.widthInColumns ?? 1) > 1 && t.width > o ? t.width : o, c = dt(t.directions, r, t, s), l = Y(n, s, i, c);
2549
- return l.attr("style", t.style), J(t, l), t.intersect = function(e) {
2550
- return K.polygon(t, c, e);
2551
- }, n;
2552
- }, "block_arrow"), kt = /* @__PURE__ */ t(async (e, t) => {
2553
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2554
- {
2555
- x: -a / 2,
2556
- y: 0
2557
- },
2558
- {
2559
- x: i,
2560
- y: 0
2561
- },
2562
- {
2563
- x: i,
2564
- y: -a
2565
- },
2566
- {
2567
- x: -a / 2,
2568
- y: -a
2569
- },
2570
- {
2571
- x: 0,
2572
- y: -a / 2
2573
- }
2574
- ];
2575
- return Y(n, i, a, o).attr("style", t.style), t.width = i + a, t.height = a, t.intersect = function(e) {
2576
- return K.polygon(t, o, e);
2577
- }, n;
2578
- }, "rect_left_inv_arrow"), At = /* @__PURE__ */ t(async (e, t) => {
2579
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2580
- {
2581
- x: -2 * a / 6,
2582
- y: 0
2583
- },
2584
- {
2585
- x: i - a / 6,
2586
- y: 0
2587
- },
2588
- {
2589
- x: i + 2 * a / 6,
2590
- y: -a
2591
- },
2592
- {
2593
- x: a / 6,
2594
- y: -a
2595
- }
2596
- ], s = Y(n, i, a, o);
2597
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2598
- return K.polygon(t, o, e);
2599
- }, n;
2600
- }, "lean_right"), jt = /* @__PURE__ */ t(async (e, t) => {
2601
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2602
- {
2603
- x: 2 * a / 6,
2604
- y: 0
2605
- },
2606
- {
2607
- x: i + a / 6,
2608
- y: 0
2609
- },
2610
- {
2611
- x: i - 2 * a / 6,
2612
- y: -a
2613
- },
2614
- {
2615
- x: -a / 6,
2616
- y: -a
2617
- }
2618
- ], s = Y(n, i, a, o);
2619
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2620
- return K.polygon(t, o, e);
2621
- }, n;
2622
- }, "lean_left"), Mt = /* @__PURE__ */ t(async (e, t) => {
2623
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2624
- {
2625
- x: -2 * a / 6,
2626
- y: 0
2627
- },
2628
- {
2629
- x: i + 2 * a / 6,
2630
- y: 0
2631
- },
2632
- {
2633
- x: i - a / 6,
2634
- y: -a
2635
- },
2636
- {
2637
- x: a / 6,
2638
- y: -a
2639
- }
2640
- ], s = Y(n, i, a, o);
2641
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2642
- return K.polygon(t, o, e);
2643
- }, n;
2644
- }, "trapezoid"), Nt = /* @__PURE__ */ t(async (e, t) => {
2645
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2646
- {
2647
- x: a / 6,
2648
- y: 0
2649
- },
2650
- {
2651
- x: i - a / 6,
2652
- y: 0
2653
- },
2654
- {
2655
- x: i + 2 * a / 6,
2656
- y: -a
2657
- },
2658
- {
2659
- x: -2 * a / 6,
2660
- y: -a
2661
- }
2662
- ], s = Y(n, i, a, o);
2663
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2664
- return K.polygon(t, o, e);
2665
- }, n;
2666
- }, "inv_trapezoid"), Pt = /* @__PURE__ */ t(async (e, t) => {
2667
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2668
- {
2669
- x: 0,
2670
- y: 0
2671
- },
2672
- {
2673
- x: i + a / 2,
2674
- y: 0
2675
- },
2676
- {
2677
- x: i,
2678
- y: -a / 2
2679
- },
2680
- {
2681
- x: i + a / 2,
2682
- y: -a
2683
- },
2684
- {
2685
- x: 0,
2686
- y: -a
2687
- }
2688
- ], s = Y(n, i, a, o);
2689
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2690
- return K.polygon(t, o, e);
2691
- }, n;
2692
- }, "rect_right_inv_arrow"), Ft = /* @__PURE__ */ t(async (e, t) => {
2693
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = i / 2, o = a / (2.5 + i / 50), s = r.height + o + t.padding, c = "M 0," + o + " a " + a + "," + o + " 0,0,0 " + i + " 0 a " + a + "," + o + " 0,0,0 " + -i + " 0 l 0," + s + " a " + a + "," + o + " 0,0,0 " + i + " 0 l 0," + -s;
2694
- return J(t, n.attr("label-offset-y", o).insert("path", ":first-child").attr("style", t.style).attr("d", c).attr("transform", "translate(" + -i / 2 + "," + -(s / 2 + o) + ")")), t.intersect = function(e) {
2695
- let n = K.rect(t, e), r = n.x - t.x;
2696
- if (a != 0 && (Math.abs(r) < t.width / 2 || Math.abs(r) == t.width / 2 && Math.abs(n.y - t.y) > t.height / 2 - o)) {
2697
- let i = o * o * (1 - r * r / (a * a));
2698
- i != 0 && (i = Math.sqrt(i)), i = o - i, e.y - t.y > 0 && (i = -i), n.y += i;
2699
- }
2700
- return n;
2701
- }, n;
2702
- }, "cylinder"), It = /* @__PURE__ */ t(async (t, n) => {
2703
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, "node " + n.classes + " " + n.class, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2704
- if (o.attr("class", "basic label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2705
- let t = new Set(Object.keys(n.props));
2706
- n.props.borders && (Z(o, n.props.borders, s, c), t.delete("borders")), t.forEach((t) => {
2707
- e.warn(`Unknown node property ${t}`);
2708
- });
2709
- }
2710
- return J(n, o), n.intersect = function(e) {
2711
- return K.rect(n, e);
2712
- }, r;
2713
- }, "rect"), Lt = /* @__PURE__ */ t(async (t, n) => {
2714
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, "node " + n.classes, !0), o = r.insert("rect", ":first-child"), s = n.positioned ? n.width : i.width + n.padding, c = n.positioned ? n.height : i.height + n.padding, l = n.positioned ? -s / 2 : -i.width / 2 - a, u = n.positioned ? -c / 2 : -i.height / 2 - a;
2715
- if (o.attr("class", "basic cluster composite label-container").attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("x", l).attr("y", u).attr("width", s).attr("height", c), n.props) {
2716
- let t = new Set(Object.keys(n.props));
2717
- n.props.borders && (Z(o, n.props.borders, s, c), t.delete("borders")), t.forEach((t) => {
2718
- e.warn(`Unknown node property ${t}`);
2719
- });
2720
- }
2721
- return J(n, o), n.intersect = function(e) {
2722
- return K.rect(n, e);
2723
- }, r;
2724
- }, "composite"), Rt = /* @__PURE__ */ t(async (t, n) => {
2725
- let { shapeSvg: r } = await q(t, n, "label", !0);
2726
- e.trace("Classes = ", n.class);
2727
- let i = r.insert("rect", ":first-child");
2728
- if (i.attr("width", 0).attr("height", 0), r.attr("class", "label edgeLabel"), n.props) {
2729
- let t = new Set(Object.keys(n.props));
2730
- n.props.borders && (Z(i, n.props.borders, 0, 0), t.delete("borders")), t.forEach((t) => {
2731
- e.warn(`Unknown node property ${t}`);
2732
- });
2733
- }
2734
- return J(n, i), n.intersect = function(e) {
2735
- return K.rect(n, e);
2736
- }, r;
2737
- }, "labelRect");
2738
- function Z(n, r, i, a) {
2739
- let o = [], s = /* @__PURE__ */ t((e) => {
2740
- o.push(e, 0);
2741
- }, "addBorder"), c = /* @__PURE__ */ t((e) => {
2742
- o.push(0, e);
2743
- }, "skipBorder");
2744
- r.includes("t") ? (e.debug("add top border"), s(i)) : c(i), r.includes("r") ? (e.debug("add right border"), s(a)) : c(a), r.includes("b") ? (e.debug("add bottom border"), s(i)) : c(i), r.includes("l") ? (e.debug("add left border"), s(a)) : c(a), n.attr("stroke-dasharray", o.join(" "));
2745
- }
2746
- t(Z, "applyNodePropertyBorders");
2747
- var zt = /* @__PURE__ */ t(async (t, r) => {
2748
- let a;
2749
- a = r.classes ? "node " + r.classes : "node default";
2750
- let o = t.insert("g").attr("class", a).attr("id", r.domId || r.id), s = o.insert("rect", ":first-child"), c = o.insert("line"), l = o.insert("g").attr("class", "label"), d = r.labelText.flat ? r.labelText.flat() : r.labelText, f = "";
2751
- f = typeof d == "object" ? d[0] : d, e.info("Label text abc79", f, d, typeof d == "object");
2752
- let p = await U(l, f, r.labelStyle, !0, !0), m = {
2753
- width: 0,
2754
- height: 0
2755
- };
2756
- if (i(u())) {
2757
- let e = p.children[0], t = n(p);
2758
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2759
- }
2760
- e.info("Text 2", d);
2761
- let h = d.slice(1, d.length), g = p.getBBox(), _ = await U(l, h.join ? h.join("<br/>") : h, r.labelStyle, !0, !0);
2762
- if (i(u())) {
2763
- let e = _.children[0], t = n(_);
2764
- m = e.getBoundingClientRect(), t.attr("width", m.width), t.attr("height", m.height);
2765
- }
2766
- let v = r.padding / 2;
2767
- return n(_).attr("transform", "translate( " + (m.width > g.width ? 0 : (g.width - m.width) / 2) + ", " + (g.height + v + 5) + ")"), n(p).attr("transform", "translate( " + (m.width < g.width ? 0 : -(g.width - m.width) / 2) + ", 0)"), m = l.node().getBBox(), l.attr("transform", "translate(" + -m.width / 2 + ", " + (-m.height / 2 - v + 3) + ")"), s.attr("class", "outer title-state").attr("x", -m.width / 2 - v).attr("y", -m.height / 2 - v).attr("width", m.width + r.padding).attr("height", m.height + r.padding), c.attr("class", "divider").attr("x1", -m.width / 2 - v).attr("x2", m.width / 2 + v).attr("y1", -m.height / 2 - v + g.height + v).attr("y2", -m.height / 2 - v + g.height + v), J(r, s), r.intersect = function(e) {
2768
- return K.rect(r, e);
2769
- }, o;
2770
- }, "rectWithTitle"), Bt = /* @__PURE__ */ t(async (e, t) => {
2771
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.height + t.padding, a = r.width + i / 4 + t.padding;
2772
- return J(t, n.insert("rect", ":first-child").attr("style", t.style).attr("rx", i / 2).attr("ry", i / 2).attr("x", -a / 2).attr("y", -i / 2).attr("width", a).attr("height", i)), t.intersect = function(e) {
2773
- return K.rect(t, e);
2774
- }, n;
2775
- }, "stadium"), Vt = /* @__PURE__ */ t(async (t, n) => {
2776
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, X(n, void 0), !0), o = r.insert("circle", ":first-child");
2777
- return o.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), e.info("Circle main"), J(n, o), n.intersect = function(t) {
2778
- return e.info("Circle intersect", n, i.width / 2 + a, t), K.circle(n, i.width / 2 + a, t);
2779
- }, r;
2780
- }, "circle"), Ht = /* @__PURE__ */ t(async (t, n) => {
2781
- let { shapeSvg: r, bbox: i, halfPadding: a } = await q(t, n, X(n, void 0), !0), o = r.insert("g", ":first-child"), s = o.insert("circle"), c = o.insert("circle");
2782
- return o.attr("class", n.class), s.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a + 5).attr("width", i.width + n.padding + 10).attr("height", i.height + n.padding + 10), c.attr("style", n.style).attr("rx", n.rx).attr("ry", n.ry).attr("r", i.width / 2 + a).attr("width", i.width + n.padding).attr("height", i.height + n.padding), e.info("DoubleCircle main"), J(n, s), n.intersect = function(t) {
2783
- return e.info("DoubleCircle intersect", n, i.width / 2 + a + 5, t), K.circle(n, i.width / 2 + a + 5, t);
2784
- }, r;
2785
- }, "doublecircle"), Ut = /* @__PURE__ */ t(async (e, t) => {
2786
- let { shapeSvg: n, bbox: r } = await q(e, t, X(t, void 0), !0), i = r.width + t.padding, a = r.height + t.padding, o = [
2787
- {
2788
- x: 0,
2789
- y: 0
2790
- },
2791
- {
2792
- x: i,
2793
- y: 0
2794
- },
2795
- {
2796
- x: i,
2797
- y: -a
2798
- },
2799
- {
2800
- x: 0,
2801
- y: -a
2802
- },
2803
- {
2804
- x: 0,
2805
- y: 0
2806
- },
2807
- {
2808
- x: -8,
2809
- y: 0
2810
- },
2811
- {
2812
- x: i + 8,
2813
- y: 0
2814
- },
2815
- {
2816
- x: i + 8,
2817
- y: -a
2818
- },
2819
- {
2820
- x: -8,
2821
- y: -a
2822
- },
2823
- {
2824
- x: -8,
2825
- y: 0
2826
- }
2827
- ], s = Y(n, i, a, o);
2828
- return s.attr("style", t.style), J(t, s), t.intersect = function(e) {
2829
- return K.polygon(t, o, e);
2830
- }, n;
2831
- }, "subroutine"), Wt = /* @__PURE__ */ t((e, t) => {
2832
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child");
2833
- return r.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), J(t, r), t.intersect = function(e) {
2834
- return K.circle(t, 7, e);
2835
- }, n;
2836
- }, "start"), Gt = /* @__PURE__ */ t((e, t, n) => {
2837
- let r = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = 70, a = 10;
2838
- return n === "LR" && (i = 10, a = 70), J(t, r.append("rect").attr("x", -1 * i / 2).attr("y", -1 * a / 2).attr("width", i).attr("height", a).attr("class", "fork-join")), t.height += t.padding / 2, t.width += t.padding / 2, t.intersect = function(e) {
2839
- return K.rect(t, e);
2840
- }, r;
2841
- }, "forkJoin"), Kt = {
2842
- rhombus: Tt,
2843
- composite: Lt,
2844
- question: Tt,
2845
- rect: It,
2846
- labelRect: Rt,
2847
- rectWithTitle: zt,
2848
- choice: Et,
2849
- circle: Vt,
2850
- doublecircle: Ht,
2851
- stadium: Bt,
2852
- hexagon: Dt,
2853
- block_arrow: Ot,
2854
- rect_left_inv_arrow: kt,
2855
- lean_right: At,
2856
- lean_left: jt,
2857
- trapezoid: Mt,
2858
- inv_trapezoid: Nt,
2859
- rect_right_inv_arrow: Pt,
2860
- cylinder: Ft,
2861
- start: Wt,
2862
- end: /* @__PURE__ */ t((e, t) => {
2863
- let n = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), r = n.insert("circle", ":first-child"), i = n.insert("circle", ":first-child");
2864
- return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), r.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), J(t, i), t.intersect = function(e) {
2865
- return K.circle(t, 7, e);
2866
- }, n;
2867
- }, "end"),
2868
- note: Ct,
2869
- subroutine: Ut,
2870
- fork: Gt,
2871
- join: Gt,
2872
- class_box: /* @__PURE__ */ t(async (e, t) => {
2873
- let r = t.padding / 2, a;
2874
- a = t.classes ? "node " + t.classes : "node default";
2875
- let o = e.insert("g").attr("class", a).attr("id", t.domId || t.id), s = o.insert("rect", ":first-child"), c = o.insert("line"), l = o.insert("line"), d = 0, f = 4, p = o.insert("g").attr("class", "label"), m = 0, h = t.classData.annotations?.[0], g = await U(p, t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", t.labelStyle, !0, !0), _ = g.getBBox();
2876
- if (i(u())) {
2877
- let e = g.children[0], t = n(g);
2878
- _ = e.getBoundingClientRect(), t.attr("width", _.width), t.attr("height", _.height);
2879
- }
2880
- t.classData.annotations[0] && (f += _.height + 4, d += _.width);
2881
- let v = t.classData.label;
2882
- t.classData.type !== void 0 && t.classData.type !== "" && (i(u()) ? v += "&lt;" + t.classData.type + "&gt;" : v += "<" + t.classData.type + ">");
2883
- let y = await U(p, v, t.labelStyle, !0, !0);
2884
- n(y).attr("class", "classTitle");
2885
- let b = y.getBBox();
2886
- if (i(u())) {
2887
- let e = y.children[0], t = n(y);
2888
- b = e.getBoundingClientRect(), t.attr("width", b.width), t.attr("height", b.height);
2889
- }
2890
- f += b.height + 4, b.width > d && (d = b.width);
2891
- let x = [];
2892
- t.classData.members.forEach(async (e) => {
2893
- let r = e.getDisplayDetails(), a = r.displayText;
2894
- i(u()) && (a = a.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2895
- let o = await U(p, a, r.cssStyle ? r.cssStyle : t.labelStyle, !0, !0), s = o.getBBox();
2896
- if (i(u())) {
2897
- let e = o.children[0], t = n(o);
2898
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
2899
- }
2900
- s.width > d && (d = s.width), f += s.height + 4, x.push(o);
2901
- }), f += 8;
2902
- let S = [];
2903
- if (t.classData.methods.forEach(async (e) => {
2904
- let r = e.getDisplayDetails(), a = r.displayText;
2905
- i(u()) && (a = a.replace(/</g, "&lt;").replace(/>/g, "&gt;"));
2906
- let o = await U(p, a, r.cssStyle ? r.cssStyle : t.labelStyle, !0, !0), s = o.getBBox();
2907
- if (i(u())) {
2908
- let e = o.children[0], t = n(o);
2909
- s = e.getBoundingClientRect(), t.attr("width", s.width), t.attr("height", s.height);
2910
- }
2911
- s.width > d && (d = s.width), f += s.height + 4, S.push(o);
2912
- }), f += 8, h) {
2913
- let e = (d - _.width) / 2;
2914
- n(g).attr("transform", "translate( " + (-1 * d / 2 + e) + ", " + -1 * f / 2 + ")"), m = _.height + 4;
2915
- }
2916
- let C = (d - b.width) / 2;
2917
- return n(y).attr("transform", "translate( " + (-1 * d / 2 + C) + ", " + (-1 * f / 2 + m) + ")"), m += b.height + 4, c.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -f / 2 - r + 8 + m).attr("y2", -f / 2 - r + 8 + m), m += 8, x.forEach((e) => {
2918
- n(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * f / 2 + m + 8 / 2) + ")");
2919
- let t = e?.getBBox();
2920
- m += (t?.height ?? 0) + 4;
2921
- }), m += 8, l.attr("class", "divider").attr("x1", -d / 2 - r).attr("x2", d / 2 + r).attr("y1", -f / 2 - r + 8 + m).attr("y2", -f / 2 - r + 8 + m), m += 8, S.forEach((e) => {
2922
- n(e).attr("transform", "translate( " + -d / 2 + ", " + (-1 * f / 2 + m) + ")");
2923
- let t = e?.getBBox();
2924
- m += (t?.height ?? 0) + 4;
2925
- }), s.attr("style", t.style).attr("class", "outer title-state").attr("x", -d / 2 - r).attr("y", -(f / 2) - r).attr("width", d + t.padding).attr("height", f + t.padding), J(t, s), t.intersect = function(e) {
2926
- return K.rect(t, e);
2927
- }, o;
2928
- }, "class_box")
2929
- }, Q = {}, qt = /* @__PURE__ */ t(async (e, t, n) => {
2930
- let r, i;
2931
- if (t.link) {
2932
- let a;
2933
- u().securityLevel === "sandbox" ? a = "_top" : t.linkTarget && (a = t.linkTarget || "_blank"), r = e.insert("svg:a").attr("xlink:href", t.link).attr("target", a), i = await Kt[t.shape](r, t, n);
2934
- } else i = await Kt[t.shape](e, t, n), r = i;
2935
- return t.tooltip && i.attr("title", t.tooltip), t.class && i.attr("class", "node default " + t.class), Q[t.id] = r, t.haveCallback && Q[t.id].attr("class", Q[t.id].attr("class") + " clickable"), r;
2936
- }, "insertNode"), Jt = /* @__PURE__ */ t((t) => {
2937
- let n = Q[t.id];
2938
- e.trace("Transforming node", t.diff, t, "translate(" + (t.x - t.width / 2 - 5) + ", " + t.width / 2 + ")");
2939
- let r = t.diff || 0;
2940
- return t.clusterNode ? n.attr("transform", "translate(" + (t.x + r - t.width / 2) + ", " + (t.y - t.height / 2 - 8) + ")") : n.attr("transform", "translate(" + t.x + ", " + t.y + ")"), r;
2941
- }, "positionNode");
2942
- function Yt(e, t, n = !1) {
2943
- let r = e, i = "default";
2944
- (r?.classes?.length || 0) > 0 && (i = (r?.classes ?? []).join(" ")), i += " flowchart-label";
2945
- let a = 0, s = "", c;
2946
- switch (r.type) {
2947
- case "round":
2948
- a = 5, s = "rect";
2949
- break;
2950
- case "composite":
2951
- a = 0, s = "composite", c = 0;
2952
- break;
2953
- case "square":
2954
- s = "rect";
2955
- break;
2956
- case "diamond":
2957
- s = "question";
2958
- break;
2959
- case "hexagon":
2960
- s = "hexagon";
2961
- break;
2962
- case "block_arrow":
2963
- s = "block_arrow";
2964
- break;
2965
- case "odd":
2966
- s = "rect_left_inv_arrow";
2967
- break;
2968
- case "lean_right":
2969
- s = "lean_right";
2970
- break;
2971
- case "lean_left":
2972
- s = "lean_left";
2973
- break;
2974
- case "trapezoid":
2975
- s = "trapezoid";
2976
- break;
2977
- case "inv_trapezoid":
2978
- s = "inv_trapezoid";
2979
- break;
2980
- case "rect_left_inv_arrow":
2981
- s = "rect_left_inv_arrow";
2982
- break;
2983
- case "circle":
2984
- s = "circle";
2985
- break;
2986
- case "ellipse":
2987
- s = "ellipse";
2988
- break;
2989
- case "stadium":
2990
- s = "stadium";
2991
- break;
2992
- case "subroutine":
2993
- s = "subroutine";
2994
- break;
2995
- case "cylinder":
2996
- s = "cylinder";
2997
- break;
2998
- case "group":
2999
- s = "rect";
3000
- break;
3001
- case "doublecircle":
3002
- s = "doublecircle";
3003
- break;
3004
- default: s = "rect";
3005
- }
3006
- let l = re(r?.styles ?? []), u = r.label, d = r.size ?? {
3007
- width: 0,
3008
- height: 0,
3009
- x: 0,
3010
- y: 0
3011
- }, f = t.getDiagramId();
3012
- return {
3013
- labelStyle: l.labelStyle,
3014
- shape: s,
3015
- labelText: u,
3016
- rx: a,
3017
- ry: a,
3018
- class: i,
3019
- style: l.style,
3020
- id: r.id,
3021
- domId: f ? `${f}-${r.id}` : r.id,
3022
- directions: r.directions,
3023
- width: d.width,
3024
- height: d.height,
3025
- x: d.x,
3026
- y: d.y,
3027
- positioned: n,
3028
- intersect: void 0,
3029
- type: r.type,
3030
- padding: c ?? o()?.block?.padding ?? 0,
3031
- widthInColumns: r.widthInColumns ?? 1
3032
- };
3033
- }
3034
- t(Yt, "getNodeFromBlock");
3035
- async function Xt(e, t, n) {
3036
- let r = Yt(t, n, !1);
3037
- if (r.type === "group") return;
3038
- let i = await qt(e, r, { config: o() }), a = i.node().getBBox(), s = n.getBlock(r.id);
3039
- s.size = {
3040
- width: a.width,
3041
- height: a.height,
3042
- x: 0,
3043
- y: 0,
3044
- node: i
3045
- }, n.setBlock(s), i.remove();
3046
- }
3047
- t(Xt, "calculateBlockSize");
3048
- async function Zt(e, t, n) {
3049
- let r = Yt(t, n, !0);
3050
- n.getBlock(r.id).type !== "space" && (await qt(e, r, { config: o() }), t.intersect = r?.intersect, Jt(r));
3051
- }
3052
- t(Zt, "insertBlockPositioned");
3053
- async function $(e, t, n, r) {
3054
- for (let i of t) await r(e, i, n), i.children && await $(e, i.children, n, r);
3055
- }
3056
- t($, "performOperations");
3057
- async function Qt(e, t, n) {
3058
- await $(e, t, n, Xt);
3059
- }
3060
- t(Qt, "calculateBlockSizes");
3061
- async function $t(e, t, n) {
3062
- await $(e, t, n, Zt);
3063
- }
3064
- t($t, "insertBlocks");
3065
- async function en(e, t, n, r, i) {
3066
- let a = new me({
3067
- multigraph: !0,
3068
- compound: !0
3069
- });
3070
- a.setGraph({
3071
- rankdir: "TB",
3072
- nodesep: 10,
3073
- ranksep: 10,
3074
- marginx: 8,
3075
- marginy: 8
3076
- });
3077
- for (let e of n) e.size && a.setNode(e.id, {
3078
- width: e.size.width,
3079
- height: e.size.height,
3080
- intersect: e.intersect
3081
- });
3082
- for (let n of t) if (n.start && n.end) {
3083
- let t = r.getBlock(n.start), o = r.getBlock(n.end);
3084
- if (t?.size && o?.size) {
3085
- let r = t.size, s = o.size, c = [
3086
- {
3087
- x: r.x,
3088
- y: r.y
3089
- },
3090
- {
3091
- x: r.x + (s.x - r.x) / 2,
3092
- y: r.y + (s.y - r.y) / 2
3093
- },
3094
- {
3095
- x: s.x,
3096
- y: s.y
3097
- }
3098
- ], l = i ? `${i}-${n.id}` : n.id, u = `${n.thickness === "thick" ? "edge-thickness-thick" : "edge-thickness-normal"} ${n.pattern === "dotted" ? "edge-pattern-dotted" : "edge-pattern-solid"} flowchart-link LS-a1 LE-b1`;
3099
- lt(e, {
3100
- v: n.start,
3101
- w: n.end,
3102
- name: l
3103
- }, {
3104
- ...n,
3105
- id: l,
3106
- arrowTypeEnd: n.arrowTypeEnd,
3107
- arrowTypeStart: n.arrowTypeStart,
3108
- points: c,
3109
- classes: u
3110
- }, void 0, "block", a, i), n.label && (await it(e, {
3111
- ...n,
3112
- label: n.label,
3113
- labelStyle: "stroke: #333; stroke-width: 1.5px;fill:none;",
3114
- arrowTypeEnd: n.arrowTypeEnd,
3115
- arrowTypeStart: n.arrowTypeStart,
3116
- points: c,
3117
- classes: u
3118
- }), at({
3119
- ...n,
3120
- x: c[1].x,
3121
- y: c[1].y
3122
- }, { originalPath: c }));
3123
- }
3124
- }
3125
- }
3126
- t(en, "insertEdges");
3127
- var tn = {
3128
- parser: Ce,
3129
- db: Ue,
3130
- renderer: {
3131
- draw: /* @__PURE__ */ t(async function(t, r, i, a) {
3132
- let { securityLevel: c, block: l } = o(), u = a.db;
3133
- u.setDiagramId(r);
3134
- let d;
3135
- c === "sandbox" && (d = n("#i" + r));
3136
- let f = n(c === "sandbox" ? d.nodes()[0].contentDocument.body : "body"), p = c === "sandbox" ? f.select(`[id="${r}"]`) : n(`[id="${r}"]`);
3137
- Je(p, [
3138
- "point",
3139
- "circle",
3140
- "cross"
3141
- ], a.type, r);
3142
- let m = u.getBlocks(), h = u.getBlocksFlat(), g = u.getEdges(), _ = p.insert("g").attr("class", "block");
3143
- await Qt(_, m, u);
3144
- let v = $e(u);
3145
- if (await $t(_, m, u), await en(_, g, h, u, r), v) {
3146
- let t = v, n = Math.max(1, Math.round(.125 * (t.width / t.height))), r = t.height + n + 10, i = t.width + 10, { useMaxWidth: a } = l;
3147
- s(p, r, i, !!a), e.debug("Here Bounds", v, t), p.attr("viewBox", `${t.x - 5} ${t.y - 5} ${t.width + 10} ${t.height + 10}`);
3148
- }
3149
- }, "draw"),
3150
- getClasses: /* @__PURE__ */ t(function(e, t) {
3151
- return t.db.getClasses();
3152
- }, "getClasses")
3153
- },
3154
- styles: Ge
3155
- };
3156
- //#endregion
3157
- export { tn as diagram };