@sme.up/ketchup2 2.9.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (384) hide show
  1. package/dist/{abnfDiagram-VCTEODGH-DwAVRNNu.js → abnfDiagram-WEYOIA3C-BGzUWx_N.js} +18 -18
  2. package/dist/{arc-DXfwi1YX.js → arc-Cde31fHX.js} +1 -1
  3. package/dist/architecture-WOLXFQ4H-CjGAyYHf.js +2 -0
  4. package/dist/{architectureDiagram-5GKGNRK7-N1aPr2hw.js → architectureDiagram-ZHVYKT53-DH-D4G0y.js} +138 -153
  5. package/dist/assets/svg/magnify-minus.svg +1 -0
  6. package/dist/assets/svg/magnify-plus.svg +1 -0
  7. package/dist/basic-components/button/button-types.d.ts +2 -2
  8. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  9. package/dist/basic-components/cell/cell-types.d.ts +15 -6
  10. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  11. package/dist/basic-components/cell/cell-utils.d.ts +10 -4
  12. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  13. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  14. package/dist/basic-components/checkbox/checkbox.d.ts.map +1 -1
  15. package/dist/basic-components/chips/chips-types.d.ts +13 -0
  16. package/dist/basic-components/chips/chips-types.d.ts.map +1 -1
  17. package/dist/basic-components/chips/chips.d.ts.map +1 -1
  18. package/dist/basic-components/date-picker/date-picker-types.d.ts +6 -2
  19. package/dist/basic-components/date-picker/date-picker-types.d.ts.map +1 -1
  20. package/dist/basic-components/file-upload/file-upload-types.d.ts +2 -2
  21. package/dist/basic-components/file-upload/file-upload-types.d.ts.map +1 -1
  22. package/dist/basic-components/file-upload/file-upload.d.ts.map +1 -1
  23. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  24. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  25. package/dist/basic-components/multiple-autocomplete/multiple-autocomplete.d.ts.map +1 -1
  26. package/dist/basic-components/multiple-select/multiple-select.d.ts.map +1 -1
  27. package/dist/basic-components/radio/radio.d.ts.map +1 -1
  28. package/dist/basic-components/slider/slider.d.ts.map +1 -1
  29. package/dist/basic-components/text/text-types.d.ts +3 -1
  30. package/dist/basic-components/text/text-types.d.ts.map +1 -1
  31. package/dist/basic-components/text/text.d.ts.map +1 -1
  32. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  33. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  34. package/dist/basic-components/textfield/textfield-types.d.ts +10 -5
  35. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  36. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  37. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  38. package/dist/basic-components/typography/typography.d.ts.map +1 -1
  39. package/dist/{blockDiagram-I7D4REHJ-Cu18ws5-.js → blockDiagram-RJAE7QA3-hRpbCaPL.js} +329 -316
  40. package/dist/{c4Diagram-7LVT6UL2-B-uBy_NE.js → c4Diagram-XDPPPE54-Bkqvkv8O.js} +350 -340
  41. package/dist/channel-CcHUzwZl.js +5 -0
  42. package/dist/{chunk-SVP7TREG-CyJlOPau.js → chunk-2E7WHVMD-DSYBrngB.js} +77 -77
  43. package/dist/chunk-4EMNKR2T-CndbTVTA.js +236 -0
  44. package/dist/{chunk-F27PBJKO-jIrOJO87.js → chunk-55XCU76K-B1HtPImz.js} +16 -16
  45. package/dist/{chunk-75Z2AOVW-Drsj7a97.js → chunk-7S6XSTFO-CN6S2H1-.js} +304 -305
  46. package/dist/{chunk-GMAD6QVW-D80II4AD.js → chunk-AQDTSKZB-DuUha9al.js} +386 -433
  47. package/dist/{chunk-DU6HZSFF-waeanndy.js → chunk-DSNLSHJZ-B1A8wsiA.js} +1227 -1043
  48. package/dist/chunk-DUW6YSOI-BdOla2G8.js +10 -0
  49. package/dist/chunk-EJLWFMJV-Cu6XnLfk.js +75 -0
  50. package/dist/chunk-HAGFOTED-IzyIoLzD.js +4487 -0
  51. package/dist/chunk-HNE4Q36P-7zVKLE_b.js +363 -0
  52. package/dist/chunk-J5ZVWO5B-CYzz6Pq8.js +12 -0
  53. package/dist/{chunk-LNGE3PJU-CtYcu9x8.js → chunk-LNGE3PJU-ByFTjlja.js} +15 -19
  54. package/dist/chunk-NGNAAXSQ-Tr--SG_c.js +19832 -0
  55. package/dist/{chunk-SHT3W25Y-Cri27Jke.js → chunk-NQOKRVIF-CEJ-prlJ.js} +483 -414
  56. package/dist/chunk-OYAV6JZA-Cypx4hYu.js +14 -0
  57. package/dist/{chunk-P2QGCYS3-BUeNZ170.js → chunk-UHW7PFBP-CoHGQVjo.js} +6 -6
  58. package/dist/chunk-VQ5W62QI-BSDHmyws.js +26 -0
  59. package/dist/{chunk-OSK3NFVY-CQhPF3Mc.js → chunk-WQQL4CDK-BJE6isq-.js} +312 -288
  60. package/dist/chunk-XXDRQBXY-CU-dbs05.js +9 -0
  61. package/dist/{chunk-PWAF6VOD-D37VoZ8H.js → chunk-YZO67HFG-Bcmpw0dX.js} +28 -28
  62. package/dist/{chunk-GVQU2GXP-DP3t_9Rl.js → chunk-ZAUX2LTX-Bu7BRVL6.js} +14 -14
  63. package/dist/chunk-ZCHMQSOR-BA1QQ4D6.js +354 -0
  64. package/dist/{chunk-TICWLB2K-Cw2iT_VD.js → classDiagram-v2-4MYWR3UA-Bnh650R8.js} +333 -293
  65. package/dist/components/app-bar/app-bar-utils.d.ts.map +1 -1
  66. package/dist/components/app-bar/app-bar.data.d.ts.map +1 -1
  67. package/dist/components/box-list/box-list.d.ts.map +1 -1
  68. package/dist/components/calendar/calendar-available-height.d.ts +14 -0
  69. package/dist/components/calendar/calendar-available-height.d.ts.map +1 -0
  70. package/dist/components/calendar/calendar-types.d.ts +49 -4
  71. package/dist/components/calendar/calendar-types.d.ts.map +1 -1
  72. package/dist/components/calendar/calendar-utils.d.ts +160 -16
  73. package/dist/components/calendar/calendar-utils.d.ts.map +1 -1
  74. package/dist/components/calendar/calendar.d.ts.map +1 -1
  75. package/dist/components/calendar/views/calendar-event-text.d.ts +23 -0
  76. package/dist/components/calendar/views/calendar-event-text.d.ts.map +1 -0
  77. package/dist/components/calendar/views/calendar-month-grid.d.ts +12 -4
  78. package/dist/components/calendar/views/calendar-month-grid.d.ts.map +1 -1
  79. package/dist/components/calendar/views/calendar-more-events.d.ts +19 -0
  80. package/dist/components/calendar/views/calendar-more-events.d.ts.map +1 -0
  81. package/dist/components/calendar/views/calendar-time-grid.d.ts +16 -2
  82. package/dist/components/calendar/views/calendar-time-grid.d.ts.map +1 -1
  83. package/dist/components/data-table/assets/data-table-row-actions.d.ts +1 -1
  84. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts +12 -0
  85. package/dist/components/data-table/cell-actions/cell-actions-types.d.ts.map +1 -0
  86. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts +29 -0
  87. package/dist/components/data-table/cell-actions/cell-actions-utils.d.ts.map +1 -0
  88. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts +2 -0
  89. package/dist/components/data-table/cell-actions/cell-actions-utils.test.d.ts.map +1 -0
  90. package/dist/components/data-table/cell-actions/cell-actions.d.ts +6 -0
  91. package/dist/components/data-table/cell-actions/cell-actions.d.ts.map +1 -0
  92. package/dist/components/data-table/column-menu/column-menu-types.d.ts +32 -0
  93. package/dist/components/data-table/column-menu/column-menu-types.d.ts.map +1 -0
  94. package/dist/components/data-table/column-menu/column-menu.d.ts +11 -0
  95. package/dist/components/data-table/column-menu/column-menu.d.ts.map +1 -0
  96. package/dist/components/data-table/columns/columns-utils.d.ts +11 -2
  97. package/dist/components/data-table/columns/columns-utils.d.ts.map +1 -1
  98. package/dist/components/data-table/columns/useColumnWidths.d.ts +24 -1
  99. package/dist/components/data-table/columns/useColumnWidths.d.ts.map +1 -1
  100. package/dist/components/data-table/data-table-types.d.ts +206 -38
  101. package/dist/components/data-table/data-table-types.d.ts.map +1 -1
  102. package/dist/components/data-table/data-table.d.ts.map +1 -1
  103. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts +19 -2
  104. package/dist/components/data-table/filtering/data-table-filter-utils.d.ts.map +1 -1
  105. package/dist/components/data-table/fixed/fixed-utils.d.ts +69 -0
  106. package/dist/components/data-table/fixed/fixed-utils.d.ts.map +1 -0
  107. package/dist/components/data-table/footer/footer-types.d.ts +23 -6
  108. package/dist/components/data-table/footer/footer-types.d.ts.map +1 -1
  109. package/dist/components/data-table/footer/footer.d.ts.map +1 -1
  110. package/dist/components/data-table/group-row/group-row-types.d.ts +38 -1
  111. package/dist/components/data-table/group-row/group-row-types.d.ts.map +1 -1
  112. package/dist/components/data-table/group-row/group-row.d.ts.map +1 -1
  113. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts +20 -5
  114. package/dist/components/data-table/grouping/buildFlatGroupedRows.d.ts.map +1 -1
  115. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts +11 -1
  116. package/dist/components/data-table/grouping/datatable-groups-utils.d.ts.map +1 -1
  117. package/dist/components/data-table/grouping/group-expansion.d.ts +16 -0
  118. package/dist/components/data-table/grouping/group-expansion.d.ts.map +1 -0
  119. package/dist/components/data-table/grouping/grouping-types.d.ts +9 -0
  120. package/dist/components/data-table/grouping/grouping-types.d.ts.map +1 -1
  121. package/dist/components/data-table/header/Header.d.ts.map +1 -1
  122. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts +44 -0
  123. package/dist/components/data-table/header/header-toolbar/header-toolbar-types.d.ts.map +1 -0
  124. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts +8 -0
  125. package/dist/components/data-table/header/header-toolbar/header-toolbar.d.ts.map +1 -0
  126. package/dist/components/data-table/header/header-types.d.ts +37 -21
  127. package/dist/components/data-table/header/header-types.d.ts.map +1 -1
  128. package/dist/components/data-table/load-more-row/load-more-row.d.ts +8 -0
  129. package/dist/components/data-table/load-more-row/load-more-row.d.ts.map +1 -0
  130. package/dist/components/data-table/load-more-row/load-more-types.d.ts +11 -0
  131. package/dist/components/data-table/load-more-row/load-more-types.d.ts.map +1 -0
  132. package/dist/components/data-table/sorting/buildDftSort.d.ts +16 -0
  133. package/dist/components/data-table/sorting/buildDftSort.d.ts.map +1 -0
  134. package/dist/components/data-table/sorting/buildDftSort.test.d.ts +2 -0
  135. package/dist/components/data-table/sorting/buildDftSort.test.d.ts.map +1 -0
  136. package/dist/components/data-table/sorting/parseDftSort.d.ts +4 -4
  137. package/dist/components/data-table/sorting/parseDftSort.d.ts.map +1 -1
  138. package/dist/components/data-table/sorting/sortTable-utils.d.ts +10 -0
  139. package/dist/components/data-table/sorting/sortTable-utils.d.ts.map +1 -1
  140. package/dist/components/data-table/sorting/useSortableTable.d.ts +10 -4
  141. package/dist/components/data-table/sorting/useSortableTable.d.ts.map +1 -1
  142. package/dist/components/data-table/state/datatable-state.d.ts +15 -8
  143. package/dist/components/data-table/state/datatable-state.d.ts.map +1 -1
  144. package/dist/components/data-table/stories/data-table-story-meta.d.ts +7 -0
  145. package/dist/components/data-table/stories/data-table-story-meta.d.ts.map +1 -0
  146. package/dist/components/data-table/useDataTableImperativeHandle.d.ts +23 -0
  147. package/dist/components/data-table/useDataTableImperativeHandle.d.ts.map +1 -0
  148. package/dist/components/data-table/useDataTableShortcuts.d.ts +19 -0
  149. package/dist/components/data-table/useDataTableShortcuts.d.ts.map +1 -0
  150. package/dist/components/drawer/drawer.d.ts.map +1 -1
  151. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts +26 -0
  152. package/dist/components/echarts-graph/builders/echarts-graph-builders-advanced.d.ts.map +1 -0
  153. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts +17 -0
  154. package/dist/components/echarts-graph/builders/echarts-graph-builders.d.ts.map +1 -0
  155. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts +151 -0
  156. package/dist/components/echarts-graph/data/echarts-graph-data.d.ts.map +1 -0
  157. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts +2 -0
  158. package/dist/components/echarts-graph/data/echarts-graph-data.test.d.ts.map +1 -0
  159. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts +164 -0
  160. package/dist/components/echarts-graph/data/echarts-graph-frame.d.ts.map +1 -0
  161. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts +26 -0
  162. package/dist/components/echarts-graph/data/echarts-graph-math.d.ts.map +1 -0
  163. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts +42 -0
  164. package/dist/components/echarts-graph/data/echarts-graph-time.d.ts.map +1 -0
  165. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts +12 -0
  166. package/dist/components/echarts-graph/data/echarts-graph-tree.d.ts.map +1 -0
  167. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts +2 -0
  168. package/dist/components/echarts-graph/data/echarts-graph-tree.test.d.ts.map +1 -0
  169. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts +197 -0
  170. package/dist/components/echarts-graph/data/echarts-graph-utils.d.ts.map +1 -0
  171. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts +2 -0
  172. package/dist/components/echarts-graph/data/echarts-graph-utils.test.d.ts.map +1 -0
  173. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts +34 -0
  174. package/dist/components/echarts-graph/echarts-graph-canvas.d.ts.map +1 -0
  175. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts +13 -0
  176. package/dist/components/echarts-graph/echarts-graph-from-table.d.ts.map +1 -0
  177. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts +12 -0
  178. package/dist/components/echarts-graph/echarts-graph-from-tree.d.ts.map +1 -0
  179. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts +16 -0
  180. package/dist/components/echarts-graph/echarts-graph-hooks.d.ts.map +1 -0
  181. package/dist/components/echarts-graph/echarts-graph-types.d.ts +229 -0
  182. package/dist/components/echarts-graph/echarts-graph-types.d.ts.map +1 -0
  183. package/dist/components/echarts-graph/echarts-graph.d.ts +18 -0
  184. package/dist/components/echarts-graph/echarts-graph.d.ts.map +1 -0
  185. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts +20 -0
  186. package/dist/components/echarts-graph/theme/echarts-graph-color.d.ts.map +1 -0
  187. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts +2 -0
  188. package/dist/components/echarts-graph/theme/echarts-graph-color.test.d.ts.map +1 -0
  189. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts +58 -0
  190. package/dist/components/echarts-graph/theme/echarts-graph-theme.d.ts.map +1 -0
  191. package/dist/components/input-panel/assets/data.d.ts +1 -0
  192. package/dist/components/input-panel/assets/data.d.ts.map +1 -1
  193. package/dist/components/input-panel/input-panel-types.d.ts +7 -1
  194. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  195. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  196. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  197. package/dist/components/json-form/document-adapter.test.d.ts +2 -0
  198. package/dist/components/json-form/document-adapter.test.d.ts.map +1 -0
  199. package/dist/components/json-form/expression-evaluator.test.d.ts +2 -0
  200. package/dist/components/json-form/expression-evaluator.test.d.ts.map +1 -0
  201. package/dist/components/json-form/model/document-adapter.d.ts +54 -0
  202. package/dist/components/json-form/model/document-adapter.d.ts.map +1 -0
  203. package/dist/components/json-form/model/json-form-ajv.d.ts +12 -0
  204. package/dist/components/json-form/model/json-form-ajv.d.ts.map +1 -0
  205. package/dist/components/json-form/model/json-pointer.d.ts +20 -0
  206. package/dist/components/json-form/model/json-pointer.d.ts.map +1 -0
  207. package/dist/components/json-form/model/native-json-types.d.ts +5 -0
  208. package/dist/components/json-form/model/native-json-types.d.ts.map +1 -0
  209. package/dist/components/json-form/model/shape-event-support.d.ts +10 -0
  210. package/dist/components/json-form/model/shape-event-support.d.ts.map +1 -0
  211. package/dist/components/json-form/rule-controller.test.d.ts +2 -0
  212. package/dist/components/json-form/rule-controller.test.d.ts.map +1 -0
  213. package/dist/components/json-form/rules/expression-evaluator.d.ts +58 -0
  214. package/dist/components/json-form/rules/expression-evaluator.d.ts.map +1 -0
  215. package/dist/components/json-form/rules/rule-controller.d.ts +50 -0
  216. package/dist/components/json-form/rules/rule-controller.d.ts.map +1 -0
  217. package/dist/components/pdf/assets/pdf-fixtures.d.ts +6 -0
  218. package/dist/components/pdf/assets/pdf-fixtures.d.ts.map +1 -0
  219. package/dist/components/pdf/pdf-types.d.ts +17 -2
  220. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  221. package/dist/components/pdf/pdf-utils.d.ts +30 -1
  222. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  223. package/dist/components/pdf/pdf.d.ts.map +1 -1
  224. package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
  225. package/dist/components/toolbar/toolbar-nodes/toolbar-plain-node.d.ts.map +1 -1
  226. package/dist/components/workflow-designer/workflow-designer-metadata-panel.d.ts.map +1 -1
  227. package/dist/context/interaction-context.d.ts +16 -0
  228. package/dist/context/interaction-context.d.ts.map +1 -0
  229. package/dist/context/test-utils.d.ts.map +1 -1
  230. package/dist/{cose-bilkent-JH36ORCC-Qs_Z6zBZ.js → cose-bilkent-JH36ORCC-DYLyHByQ.js} +77 -89
  231. package/dist/cynefin-EF2NZ3EQ-DZ1CSrfW.js +2 -0
  232. package/dist/{cynefinDiagram-5FMLGOSQ-3Ha1hdlV.js → cynefinDiagram-WF24UDRP-bU_4r-FZ.js} +64 -64
  233. package/dist/{cytoscape.esm-C5TvPYYm.js → cytoscape.esm-BvXLQ91B.js} +412 -513
  234. package/dist/dagre-NK4GIZVX-B72HOuil.js +2352 -0
  235. package/dist/{diagram-VX7I27RA-BNmG1sig.js → diagram-CBK3MWTC-B-q-tUxd.js} +80 -80
  236. package/dist/diagram-I5XIIV2D-CMzniFEf.js +134 -0
  237. package/dist/{diagram-S7CK7UJ4-BuDHTdHA.js → diagram-ODIL2UCW-CrlDp0MP.js} +46 -54
  238. package/dist/{diagram-VSXAHHWV-CrQQCs-B.js → diagram-PFBEJUXE-hnrdzEe4.js} +136 -121
  239. package/dist/{diagram-UQ7AKVKN-uvzJGj43.js → diagram-RJA3I4VV-DZW7CxE5.js} +43 -43
  240. package/dist/diagram-TYUNFSNR-cRJNHRy2.js +5069 -0
  241. package/dist/{dist-CsrMlyO_.js → dist-Bj7IMbKd.js} +1 -1
  242. package/dist/{ebnfDiagram-PWID7BFC-DMx8xAFO.js → ebnfDiagram-V4P3TTPT-Bm7KtfLA.js} +17 -17
  243. package/dist/echarts-C7ehbnCk.js +15485 -0
  244. package/dist/elk-QONTBCTQ-gWOTRRj4.js +47505 -0
  245. package/dist/{erDiagram-RLTQ6QDP-bkJ9nzVK.js → erDiagram-KYQIGQAA-WZEbQwWz.js} +150 -146
  246. package/dist/eventmodeling-K75KTNOO-CEn7YBG4.js +2 -0
  247. package/dist/flowDiagram-IUGLLWBU-CRV2Bl2C.js +16 -0
  248. package/dist/functional-components/badge/badge-assets.d.ts +1 -0
  249. package/dist/functional-components/badge/badge-assets.d.ts.map +1 -1
  250. package/dist/functional-components/badge/badge-utils.d.ts +5 -0
  251. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  252. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  253. package/dist/functional-components/filter-group/filter-builder-operators.d.ts +15 -0
  254. package/dist/functional-components/filter-group/filter-builder-operators.d.ts.map +1 -0
  255. package/dist/functional-components/filter-group/filter-builder.d.ts +15 -1
  256. package/dist/functional-components/filter-group/filter-builder.d.ts.map +1 -1
  257. package/dist/functional-components/group-bar/group-bar-types.d.ts +16 -0
  258. package/dist/functional-components/group-bar/group-bar-types.d.ts.map +1 -1
  259. package/dist/functional-components/group-bar/group-bar.d.ts.map +1 -1
  260. package/dist/functional-components/helper-text/helper-text-types.d.ts +1 -1
  261. package/dist/functional-components/multiple-field/multiple-field-types.d.ts +1 -0
  262. package/dist/functional-components/multiple-field/multiple-field-types.d.ts.map +1 -1
  263. package/dist/functional-components/multiple-field/multiple-field.d.ts.map +1 -1
  264. package/dist/functional-components/row/row-types.d.ts +50 -1
  265. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  266. package/dist/functional-components/row/row.d.ts.map +1 -1
  267. package/dist/functional-components/tree-picker/tree-picker-types.d.ts +5 -0
  268. package/dist/functional-components/tree-picker/tree-picker-types.d.ts.map +1 -1
  269. package/dist/{ganttDiagram-EL5Y4UJY-CL-ywzz_.js → ganttDiagram-R7GPNTJY-DFRGfQMr.js} +314 -310
  270. package/dist/gitGraph-VSP46ZUC-BSTikFaE.js +2 -0
  271. package/dist/{gitGraphDiagram-WWUBYQGX-aXhNDG6P.js → gitGraphDiagram-PDYL7XHY-nvoob8Ca.js} +250 -250
  272. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts +14 -0
  273. package/dist/hooks/useClickOutside/useClickOutside-assets.d.ts.map +1 -0
  274. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  275. package/dist/hooks/useFloating.d.ts.map +1 -1
  276. package/dist/hooks/useVirtualListScroll.d.ts +14 -2
  277. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  278. package/dist/index.d.ts +5 -3
  279. package/dist/index.d.ts.map +1 -1
  280. package/dist/info-OHQRW6UA-BGb3N889.js +2 -0
  281. package/dist/infoDiagram-MVDRKAX5-BqO_morw.js +20 -0
  282. package/dist/installCanvasRenderer-CgRxxRBg.js +29799 -0
  283. package/dist/{ishikawaDiagram-5VMMS53U-DK7HlH95.js → ishikawaDiagram-HPEHV2GE-BE3amLYE.js} +27 -29
  284. package/dist/{journeyDiagram-3NMN7TZE-CpuYEKcB.js → journeyDiagram-BOSHW7O7-DE8ndsCi.js} +111 -111
  285. package/dist/{kanban-definition-UXKFOSKX-aK8uKmyY.js → kanban-definition-FNSA4HC5-D72kc4EN.js} +135 -135
  286. package/dist/{katex-CT2p8LXT.js → katex-CDhNh-ZQ.js} +919 -1040
  287. package/dist/ketchup2.css +1 -1
  288. package/dist/ketchup2.es.js +25778 -68770
  289. package/dist/{line-DTqYMLoX.js → line-ltPB6XbC.js} +1 -1
  290. package/dist/{linear-CXc5xaa6.js → linear-i6_MPSGL.js} +2 -3
  291. package/dist/locale/en/translation.json.d.ts +40 -4
  292. package/dist/locale/it/translation.json.d.ts +40 -4
  293. package/dist/{mermaid-parser.core-BwVmI_Rq.js → mermaid-parser.core-zUi7tSl-.js} +166 -172
  294. package/dist/{mindmap-definition-YA3MSWOX-ZMYcmi9J.js → mindmap-definition-6OY57UG3-hH6Avsg4.js} +148 -145
  295. package/dist/packet-JDAUHWVQ-CKZoNg5j.js +2 -0
  296. package/dist/{pegDiagram-XKGWAZYB-DsfILwZN.js → pegDiagram-ECIUJNBX-D3xLhrRh.js} +19 -19
  297. package/dist/pie-XZMESJXO-BnbWY8rE.js +2 -0
  298. package/dist/{pieDiagram-E7YTZNPT-DcSLcLdd.js → pieDiagram-GNMPY74T-Bd_UXypi.js} +39 -39
  299. package/dist/{quadrantDiagram-AXDQQJYC-DSx3teop.js → quadrantDiagram-D57K4MC3-BAwweqT8.js} +149 -149
  300. package/dist/radar-ABXABTNO-D5CEmFBx.js +2 -0
  301. package/dist/railroad-I3PHUGI6-CxMiYaMH.js +2 -0
  302. package/dist/railroad-abnf-LNEFI6M7-C69KxGa-.js +2 -0
  303. package/dist/railroad-ebnf-DWYD2UWJ-D5Xd566k.js +2 -0
  304. package/dist/railroad-peg-JR7BVNR7-CD0OiqcS.js +2 -0
  305. package/dist/{railroadDiagram-O6MQD6OU-jOZRtNDi.js → railroadDiagram-Y72NRBL7-CPUbPgYX.js} +14 -14
  306. package/dist/{requirementDiagram-BXWQKSXE-D14hkkez.js → requirementDiagram-EQYSW5RA-BXstYS3w.js} +97 -93
  307. package/dist/rolldown-runtime-5HNE8Q1r.js +23 -0
  308. package/dist/{sankeyDiagram-P5KCCOFB-C0jmknYo.js → sankeyDiagram-SY24JHO5-Du-toJmg.js} +64 -64
  309. package/dist/{sequenceDiagram-WJ2MYXX4-C00egnMz.js → sequenceDiagram-BLEHNHQU-BNNnerZ-.js} +953 -868
  310. package/dist/{sizeCapture-INFHLROL-CHXIsPO_.js → sizeCapture-INFHLROL-DujrpAYz.js} +1 -1
  311. package/dist/{src-DQoflmwT.js → src-CY9Rz0Sf.js} +545 -566
  312. package/dist/{chunk-IMKFNOWR-8ItzAAcf.js → stateDiagram-v2-A6IESKWZ-CfjPf8h7.js} +364 -267
  313. package/dist/{swimlanes-42K2YHIH-CJcMmxXf.js → swimlanes-B3ENRKFQ-Dumwq89C.js} +1356 -1590
  314. package/dist/swimlanesDiagram-AYQRV4AK-Boz_Azx7.js +28 -0
  315. package/dist/{timeline-definition-24CTP7MA-D2xfYuSV.js → timeline-definition-JXYKGLGB-ClzmRQCu.js} +354 -350
  316. package/dist/treeView-D4JQ5SDB-C3ue8DID.js +2 -0
  317. package/dist/treemap-SAJKECNS-BWis-Wpv.js +2 -0
  318. package/dist/types/data-structures.d.ts +16 -1
  319. package/dist/types/data-structures.d.ts.map +1 -1
  320. package/dist/types/global.d.ts +7 -2
  321. package/dist/types/global.d.ts.map +1 -1
  322. package/dist/types/translation.d.ts +40 -5
  323. package/dist/types/translation.d.ts.map +1 -1
  324. package/dist/usecaseDiagram-WPOLBNNX-ruZhXlYQ.js +7175 -0
  325. package/dist/utils/floating-layer.d.ts +11 -0
  326. package/dist/utils/floating-layer.d.ts.map +1 -0
  327. package/dist/utils/legacy.d.ts +7 -0
  328. package/dist/utils/legacy.d.ts.map +1 -1
  329. package/dist/utils/object-styles.d.ts +12 -0
  330. package/dist/utils/object-styles.d.ts.map +1 -0
  331. package/dist/utils/object-styles.test.d.ts +2 -0
  332. package/dist/utils/object-styles.test.d.ts.map +1 -0
  333. package/dist/utils/objects.d.ts +20 -1
  334. package/dist/utils/objects.d.ts.map +1 -1
  335. package/dist/utils/totals/totals-registry.d.ts +17 -0
  336. package/dist/utils/totals/totals-registry.d.ts.map +1 -0
  337. package/dist/utils/totals/totals-utils.d.ts +70 -7
  338. package/dist/utils/totals/totals-utils.d.ts.map +1 -1
  339. package/dist/utils/wrapper-types/list.d.ts.map +1 -1
  340. package/dist/{vennDiagram-4TSXK5OY-C4XLgus_.js → vennDiagram-Q3Y3IDCW-L9GmqfCz.js} +118 -118
  341. package/dist/wardley-7MLQ67FV-DC0ayJCO.js +2 -0
  342. package/dist/{wardleyDiagram-VM6X3IG4-DFoKuS9s.js → wardleyDiagram-IVAIDKWA-Dz5K-UqN.js} +126 -126
  343. package/dist/{xychartDiagram-S5SC5T6Z-BzKKgVBe.js → xychartDiagram-4URNHDU4-C2xwRx5F.js} +141 -137
  344. package/package.json +7 -5
  345. package/dist/architecture-7GRP2DOG-BsytjMto.js +0 -3
  346. package/dist/channel-CuEby436.js +0 -5
  347. package/dist/chunk-2E4U76K2-ComA5SPA.js +0 -348
  348. package/dist/chunk-4HAMMTFA-CZgIgrp_.js +0 -4188
  349. package/dist/chunk-CLGD4ZFX-CLGio9rD.js +0 -14
  350. package/dist/chunk-FOHPRMQF-LRqOLsSw.js +0 -21456
  351. package/dist/chunk-L3NEJ4N5-qPot4t6M.js +0 -245
  352. package/dist/chunk-POPQ4Y6H-CU9oz17Z.js +0 -26
  353. package/dist/chunk-TLUHSLCS-BdsLNXjt.js +0 -59
  354. package/dist/chunk-XXDRQBXY-C1ZEFXGu.js +0 -9
  355. package/dist/classDiagram-ZZMXUADV-L32jCfMj.js +0 -30
  356. package/dist/classDiagram-v2-VYDZK3BY-BsnrDCgX.js +0 -30
  357. package/dist/components/echarts/echarts-graph-types.d.ts +0 -8
  358. package/dist/components/echarts/echarts-graph-types.d.ts.map +0 -1
  359. package/dist/components/echarts/echarts-graph.d.ts +0 -4
  360. package/dist/components/echarts/echarts-graph.d.ts.map +0 -1
  361. package/dist/cynefin-OW5HDTMX-BJXlKro0.js +0 -3
  362. package/dist/dagre-D5csT9sx.js +0 -1934
  363. package/dist/dagre-GXQ25YYZ-Bg7xf6xn.js +0 -425
  364. package/dist/diagram-Z3DM3KII-B6BrLhP0.js +0 -134
  365. package/dist/eventmodeling-NTZA5JFV-Cj-VH7yh.js +0 -3
  366. package/dist/flowDiagram-HODETNUW-BIvD7-ts.js +0 -17
  367. package/dist/gitGraph-4MIJSDKK-C9JGDovl.js +0 -3
  368. package/dist/hooks/useClickOutside.d.ts.map +0 -1
  369. package/dist/info-A6RAGUB7-CmZJKEaW.js +0 -3
  370. package/dist/infoDiagram-27XIBGKW-Je4heBlk.js +0 -20
  371. package/dist/packet-AYTQ26CC-B3tgRshR.js +0 -3
  372. package/dist/pie-WAS4IAKB-BRiI8kbI.js +0 -3
  373. package/dist/radar-RG4KPBEZ-ASOMQXFw.js +0 -3
  374. package/dist/railroad-74A4TZTK-oS840SLr.js +0 -3
  375. package/dist/railroad-abnf-HS5TGJTU-nnQAkZY2.js +0 -3
  376. package/dist/railroad-ebnf-LZEXJU2U-DBQIOba3.js +0 -3
  377. package/dist/railroad-peg-WCYAUIDC-fBPN2TVb.js +0 -3
  378. package/dist/stateDiagram-D77RDMKH-YfzmviNY.js +0 -220
  379. package/dist/stateDiagram-v2-MP3YSRHH-B6Hzx8T0.js +0 -30
  380. package/dist/swimlanesDiagram-VR7AAH4N-DirvhGBA.js +0 -31
  381. package/dist/treeView-Q6P3EWNA-BmvB2b-_.js +0 -3
  382. package/dist/treemap-WGGIJYW6-Cjjk75wA.js +0 -3
  383. package/dist/wardley-WFR3VGLG-BamDiE0x.js +0 -3
  384. /package/dist/hooks/{useClickOutside.d.ts → useClickOutside/useClickOutside.d.ts} +0 -0
@@ -1,20 +1,20 @@
1
- import { m as e, p as t } from "./src-DQoflmwT.js";
2
- import { H as n, K as r, U as i, Y as a, a as o, b as s, f as c, s as l, v as u, w as d, x as f, y as p } from "./chunk-DU6HZSFF-waeanndy.js";
3
- import { n as m } from "./chunk-Y2CYZVJY-i11wjrBe.js";
4
- import { g as h, i as g, m as _ } from "./chunk-75Z2AOVW-Drsj7a97.js";
5
- import { n as v } from "./mermaid-parser.core-BwVmI_Rq.js";
1
+ import { C as e, H as t, U as n, X as r, _ as i, a, b as o, f as s, q as c, s as l, v as u, y as d } from "./chunk-DSNLSHJZ-B1A8wsiA.js";
2
+ import { n as f } from "./chunk-Y2CYZVJY-i11wjrBe.js";
3
+ import { m as p, p as m } from "./src-CY9Rz0Sf.js";
4
+ import { _ as h, h as g, i as _ } from "./chunk-7S6XSTFO-CN6S2H1-.js";
5
+ import { n as v } from "./mermaid-parser.core-zUi7tSl-.js";
6
6
  import { t as y } from "./chunk-JWPE2WC7-Ccb0QaC8.js";
7
7
  import { t as b } from "./chunk-2Q5K7J3B-kzxEEeTu.js";
8
- //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-WWUBYQGX.mjs
8
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PDYL7XHY.mjs
9
9
  var x = {
10
10
  NORMAL: 0,
11
11
  REVERSE: 1,
12
12
  HIGHLIGHT: 2,
13
13
  MERGE: 3,
14
14
  CHERRY_PICK: 4
15
- }, ee = c.gitGraph, S = /* @__PURE__ */ m(() => g({
15
+ }, ee = s.gitGraph, S = /* @__PURE__ */ f(() => _({
16
16
  ...ee,
17
- ...s().gitGraph
17
+ ...d().gitGraph
18
18
  }), "getConfig"), C = new b(() => {
19
19
  let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
20
20
  return {
@@ -33,9 +33,9 @@ var x = {
33
33
  };
34
34
  });
35
35
  function w() {
36
- return _({ length: 7 });
36
+ return g({ length: 7 });
37
37
  }
38
- m(w, "getID");
38
+ f(w, "getID");
39
39
  function T(e, t) {
40
40
  let n = /* @__PURE__ */ Object.create(null);
41
41
  return e.reduce((e, r) => {
@@ -43,161 +43,161 @@ function T(e, t) {
43
43
  return n[i] || (n[i] = !0, e.push(r)), e;
44
44
  }, []);
45
45
  }
46
- m(T, "uniqBy");
47
- var te = /* @__PURE__ */ m(function(e) {
46
+ f(T, "uniqBy");
47
+ var te = /* @__PURE__ */ f(function(e) {
48
48
  C.records.direction = e;
49
- }, "setDirection"), ne = /* @__PURE__ */ m(function(t) {
50
- e.debug("options str", t), t = t?.trim(), t ||= "{}";
49
+ }, "setDirection"), ne = /* @__PURE__ */ f(function(e) {
50
+ p.debug("options str", e), e = e?.trim(), e ||= "{}";
51
51
  try {
52
- C.records.options = JSON.parse(t);
53
- } catch (t) {
54
- e.error("error while parsing gitGraph options", t.message);
52
+ C.records.options = JSON.parse(e);
53
+ } catch (e) {
54
+ p.error("error while parsing gitGraph options", e.message);
55
55
  }
56
- }, "setOptions"), re = /* @__PURE__ */ m(function() {
56
+ }, "setOptions"), re = /* @__PURE__ */ f(function() {
57
57
  return C.records.options;
58
- }, "getOptions"), ie = /* @__PURE__ */ m(function(t) {
59
- let n = t.msg, r = t.id, i = t.type, a = t.tags;
60
- e.info("commit", n, r, i, a), e.debug("Entering commit:", n, r, i, a);
61
- let o = S();
62
- r = l.sanitizeText(r, o), n = l.sanitizeText(n, o), a = a?.map((e) => l.sanitizeText(e, o));
63
- let s = {
64
- id: r || C.records.seq + "-" + w(),
65
- message: n,
58
+ }, "getOptions"), ie = /* @__PURE__ */ f(function(e) {
59
+ let t = e.msg, n = e.id, r = e.type, i = e.tags;
60
+ p.info("commit", t, n, r, i), p.debug("Entering commit:", t, n, r, i);
61
+ let a = S();
62
+ n = l.sanitizeText(n, a), t = l.sanitizeText(t, a), i = i?.map((e) => l.sanitizeText(e, a));
63
+ let o = {
64
+ id: n || C.records.seq + "-" + w(),
65
+ message: t,
66
66
  seq: C.records.seq++,
67
- type: i ?? x.NORMAL,
68
- tags: a ?? [],
67
+ type: r ?? x.NORMAL,
68
+ tags: i ?? [],
69
69
  parents: C.records.head == null ? [] : [C.records.head.id],
70
70
  branch: C.records.currBranch
71
71
  };
72
- C.records.head = s, e.info("main branch", o.mainBranchName), C.records.commits.has(s.id) && e.warn(`Commit ID ${s.id} already exists`), C.records.commits.set(s.id, s), C.records.branches.set(C.records.currBranch, s.id), e.debug("in pushCommit " + s.id);
73
- }, "commit"), ae = /* @__PURE__ */ m(function(t) {
74
- let n = t.name, r = t.order;
75
- if (n = l.sanitizeText(n, S()), C.records.branches.has(n)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${n}")`);
76
- C.records.branches.set(n, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(n, {
77
- name: n,
78
- order: r
79
- }), E(n), e.debug("in createBranch");
80
- }, "branch"), oe = /* @__PURE__ */ m((t) => {
81
- let n = t.branch, r = t.id, i = t.type, a = t.tags, o = S();
82
- n = l.sanitizeText(n, o), r &&= l.sanitizeText(r, o);
83
- let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(n), u = s ? C.records.commits.get(s) : void 0, d = c ? C.records.commits.get(c) : void 0;
84
- if (u && d && u.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
85
- if (C.records.currBranch === n) {
72
+ C.records.head = o, p.info("main branch", a.mainBranchName), C.records.commits.has(o.id) && p.warn(`Commit ID ${o.id} already exists`), C.records.commits.set(o.id, o), C.records.branches.set(C.records.currBranch, o.id), p.debug("in pushCommit " + o.id);
73
+ }, "commit"), ae = /* @__PURE__ */ f(function(e) {
74
+ let t = e.name, n = e.order;
75
+ if (t = l.sanitizeText(t, S()), C.records.branches.has(t)) throw Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${t}")`);
76
+ C.records.branches.set(t, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(t, {
77
+ name: t,
78
+ order: n
79
+ }), E(t), p.debug("in createBranch");
80
+ }, "branch"), oe = /* @__PURE__ */ f((e) => {
81
+ let t = e.branch, n = e.id, r = e.type, i = e.tags, a = S();
82
+ t = l.sanitizeText(t, a), n &&= l.sanitizeText(n, a);
83
+ let o = C.records.branches.get(C.records.currBranch), s = C.records.branches.get(t), c = o ? C.records.commits.get(o) : void 0, u = s ? C.records.commits.get(s) : void 0;
84
+ if (c && u && c.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
85
+ if (C.records.currBranch === t) {
86
86
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
87
87
  throw e.hash = {
88
- text: `merge ${n}`,
89
- token: `merge ${n}`,
88
+ text: `merge ${t}`,
89
+ token: `merge ${t}`,
90
90
  expected: ["branch abc"]
91
91
  }, e;
92
92
  }
93
- if (u === void 0 || !u) {
93
+ if (c === void 0 || !c) {
94
94
  let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
95
95
  throw e.hash = {
96
- text: `merge ${n}`,
97
- token: `merge ${n}`,
96
+ text: `merge ${t}`,
97
+ token: `merge ${t}`,
98
98
  expected: ["commit"]
99
99
  }, e;
100
100
  }
101
- if (!C.records.branches.has(n)) {
102
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
101
+ if (!C.records.branches.has(t)) {
102
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
103
103
  throw e.hash = {
104
- text: `merge ${n}`,
105
- token: `merge ${n}`,
106
- expected: [`branch ${n}`]
104
+ text: `merge ${t}`,
105
+ token: `merge ${t}`,
106
+ expected: [`branch ${t}`]
107
107
  }, e;
108
108
  }
109
- if (d === void 0 || !d) {
110
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
109
+ if (u === void 0 || !u) {
110
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
111
111
  throw e.hash = {
112
- text: `merge ${n}`,
113
- token: `merge ${n}`,
112
+ text: `merge ${t}`,
113
+ token: `merge ${t}`,
114
114
  expected: ["\"commit\""]
115
115
  }, e;
116
116
  }
117
- if (u === d) {
117
+ if (c === u) {
118
118
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
119
119
  throw e.hash = {
120
- text: `merge ${n}`,
121
- token: `merge ${n}`,
120
+ text: `merge ${t}`,
121
+ token: `merge ${t}`,
122
122
  expected: ["branch abc"]
123
123
  }, e;
124
124
  }
125
- if (r && C.records.commits.has(r)) {
126
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
125
+ if (n && C.records.commits.has(n)) {
126
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
127
127
  throw e.hash = {
128
- text: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
129
- token: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
130
- expected: [`merge ${n} ${r}_UNIQUE ${i} ${a?.join(" ")}`]
128
+ text: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
129
+ token: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
130
+ expected: [`merge ${t} ${n}_UNIQUE ${r} ${i?.join(" ")}`]
131
131
  }, e;
132
132
  }
133
- let f = c || "", p = {
134
- id: r || `${C.records.seq}-${w()}`,
135
- message: `merged branch ${n} into ${C.records.currBranch}`,
133
+ let d = s || "", f = {
134
+ id: n || `${C.records.seq}-${w()}`,
135
+ message: `merged branch ${t} into ${C.records.currBranch}`,
136
136
  seq: C.records.seq++,
137
- parents: C.records.head == null ? [] : [C.records.head.id, f],
137
+ parents: C.records.head == null ? [] : [C.records.head.id, d],
138
138
  branch: C.records.currBranch,
139
139
  type: x.MERGE,
140
- customType: i,
141
- customId: !!r,
142
- tags: a ?? []
140
+ customType: r,
141
+ customId: !!n,
142
+ tags: i ?? []
143
143
  };
144
- C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id), e.debug(C.records.branches), e.debug("in mergeBranch");
145
- }, "merge"), se = /* @__PURE__ */ m(function(t) {
146
- let n = t.id, r = t.targetId, i = t.tags, a = t.parent;
147
- e.debug("Entering cherryPick:", n, r, i);
148
- let o = S();
149
- if (n = l.sanitizeText(n, o), r = l.sanitizeText(r, o), i = i?.map((e) => l.sanitizeText(e, o)), a = l.sanitizeText(a, o), !n || !C.records.commits.has(n)) {
144
+ C.records.head = f, C.records.commits.set(f.id, f), C.records.branches.set(C.records.currBranch, f.id), p.debug(C.records.branches), p.debug("in mergeBranch");
145
+ }, "merge"), se = /* @__PURE__ */ f(function(e) {
146
+ let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
147
+ p.debug("Entering cherryPick:", t, n, r);
148
+ let a = S();
149
+ if (t = l.sanitizeText(t, a), n = l.sanitizeText(n, a), r = r?.map((e) => l.sanitizeText(e, a)), i = l.sanitizeText(i, a), !t || !C.records.commits.has(t)) {
150
150
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
151
151
  throw e.hash = {
152
- text: `cherryPick ${n} ${r}`,
153
- token: `cherryPick ${n} ${r}`,
152
+ text: `cherryPick ${t} ${n}`,
153
+ token: `cherryPick ${t} ${n}`,
154
154
  expected: ["cherry-pick abc"]
155
155
  }, e;
156
156
  }
157
- let s = C.records.commits.get(n);
158
- if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
159
- if (a && !(Array.isArray(s.parents) && s.parents.includes(a))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
160
- let c = s.branch;
161
- if (s.type === x.MERGE && !a) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
162
- if (!r || !C.records.commits.has(r)) {
163
- if (c === C.records.currBranch) {
157
+ let o = C.records.commits.get(t);
158
+ if (o === void 0 || !o) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
159
+ if (i && !(Array.isArray(o.parents) && o.parents.includes(i))) throw /* @__PURE__ */ Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
160
+ let s = o.branch;
161
+ if (o.type === x.MERGE && !i) throw /* @__PURE__ */ Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
162
+ if (!n || !C.records.commits.has(n)) {
163
+ if (s === C.records.currBranch) {
164
164
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
165
165
  throw e.hash = {
166
- text: `cherryPick ${n} ${r}`,
167
- token: `cherryPick ${n} ${r}`,
166
+ text: `cherryPick ${t} ${n}`,
167
+ token: `cherryPick ${t} ${n}`,
168
168
  expected: ["cherry-pick abc"]
169
169
  }, e;
170
170
  }
171
- let t = C.records.branches.get(C.records.currBranch);
172
- if (t === void 0 || !t) {
171
+ let e = C.records.branches.get(C.records.currBranch);
172
+ if (e === void 0 || !e) {
173
173
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
174
174
  throw e.hash = {
175
- text: `cherryPick ${n} ${r}`,
176
- token: `cherryPick ${n} ${r}`,
175
+ text: `cherryPick ${t} ${n}`,
176
+ token: `cherryPick ${t} ${n}`,
177
177
  expected: ["cherry-pick abc"]
178
178
  }, e;
179
179
  }
180
- let o = C.records.commits.get(t);
181
- if (o === void 0 || !o) {
180
+ let a = C.records.commits.get(e);
181
+ if (a === void 0 || !a) {
182
182
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
183
183
  throw e.hash = {
184
- text: `cherryPick ${n} ${r}`,
185
- token: `cherryPick ${n} ${r}`,
184
+ text: `cherryPick ${t} ${n}`,
185
+ token: `cherryPick ${t} ${n}`,
186
186
  expected: ["cherry-pick abc"]
187
187
  }, e;
188
188
  }
189
- let l = {
189
+ let c = {
190
190
  id: C.records.seq + "-" + w(),
191
- message: `cherry-picked ${s?.message} into ${C.records.currBranch}`,
191
+ message: `cherry-picked ${o?.message} into ${C.records.currBranch}`,
192
192
  seq: C.records.seq++,
193
- parents: C.records.head == null ? [] : [C.records.head.id, s.id],
193
+ parents: C.records.head == null ? [] : [C.records.head.id, o.id],
194
194
  branch: C.records.currBranch,
195
195
  type: x.CHERRY_PICK,
196
- tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === x.MERGE ? `|parent:${a}` : ""}`]
196
+ tags: r ? r.filter(Boolean) : [`cherry-pick:${o.id}${o.type === x.MERGE ? `|parent:${i}` : ""}`]
197
197
  };
198
- C.records.head = l, C.records.commits.set(l.id, l), C.records.branches.set(C.records.currBranch, l.id), e.debug(C.records.branches), e.debug("in cherryPick");
198
+ C.records.head = c, C.records.commits.set(c.id, c), C.records.branches.set(C.records.currBranch, c.id), p.debug(C.records.branches), p.debug("in cherryPick");
199
199
  }
200
- }, "cherryPick"), E = /* @__PURE__ */ m(function(e) {
200
+ }, "cherryPick"), E = /* @__PURE__ */ f(function(e) {
201
201
  if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
202
202
  C.records.currBranch = e;
203
203
  let t = C.records.branches.get(C.records.currBranch);
@@ -215,49 +215,49 @@ function D(e, t, n) {
215
215
  let r = e.indexOf(t);
216
216
  r === -1 ? e.push(n) : e.splice(r, 1, n);
217
217
  }
218
- m(D, "upsert");
219
- function O(t) {
220
- let n = t.reduce((e, t) => e.seq > t.seq ? e : t, t[0]), r = "";
221
- t.forEach(function(e) {
222
- r += e === n ? " *" : " |";
218
+ f(D, "upsert");
219
+ function O(e) {
220
+ let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
221
+ e.forEach(function(e) {
222
+ n += e === t ? " *" : " |";
223
223
  });
224
- let i = [
225
- r,
226
- n.id,
227
- n.seq
224
+ let r = [
225
+ n,
226
+ t.id,
227
+ t.seq
228
228
  ];
229
- for (let e in C.records.branches) C.records.branches.get(e) === n.id && i.push(e);
230
- if (e.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
231
- let e = C.records.commits.get(n.parents[0]);
232
- D(t, n, e), n.parents[1] && t.push(C.records.commits.get(n.parents[1]));
233
- } else if (n.parents.length == 0) return;
234
- else if (n.parents[0]) {
235
- let e = C.records.commits.get(n.parents[0]);
236
- D(t, n, e);
229
+ for (let e in C.records.branches) C.records.branches.get(e) === t.id && r.push(e);
230
+ if (p.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
231
+ let n = C.records.commits.get(t.parents[0]);
232
+ D(e, t, n), t.parents[1] && e.push(C.records.commits.get(t.parents[1]));
233
+ } else if (t.parents.length == 0) return;
234
+ else if (t.parents[0]) {
235
+ let n = C.records.commits.get(t.parents[0]);
236
+ D(e, t, n);
237
237
  }
238
- t = T(t, (e) => e.id), O(t);
238
+ e = T(e, (e) => e.id), O(e);
239
239
  }
240
- m(O, "prettyPrintCommitHistory");
241
- var ce = /* @__PURE__ */ m(function() {
242
- e.debug(C.records.commits);
243
- let t = k()[0];
244
- O([t]);
245
- }, "prettyPrint"), le = /* @__PURE__ */ m(function() {
246
- C.reset(), o();
247
- }, "clear"), ue = /* @__PURE__ */ m(function() {
240
+ f(O, "prettyPrintCommitHistory");
241
+ var ce = /* @__PURE__ */ f(function() {
242
+ p.debug(C.records.commits);
243
+ let e = k()[0];
244
+ O([e]);
245
+ }, "prettyPrint"), le = /* @__PURE__ */ f(function() {
246
+ C.reset(), a();
247
+ }, "clear"), ue = /* @__PURE__ */ f(function() {
248
248
  return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
249
249
  ...e,
250
250
  order: parseFloat(`0.${t}`)
251
251
  }).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
252
- }, "getBranchesAsObjArray"), de = /* @__PURE__ */ m(function() {
252
+ }, "getBranchesAsObjArray"), de = /* @__PURE__ */ f(function() {
253
253
  return C.records.branches;
254
- }, "getBranches"), fe = /* @__PURE__ */ m(function() {
254
+ }, "getBranches"), fe = /* @__PURE__ */ f(function() {
255
255
  return C.records.commits;
256
- }, "getCommits"), k = /* @__PURE__ */ m(function() {
257
- let t = [...C.records.commits.values()];
258
- return t.forEach(function(t) {
259
- e.debug(t.id);
260
- }), t.sort((e, t) => e.seq - t.seq), t;
256
+ }, "getCommits"), k = /* @__PURE__ */ f(function() {
257
+ let e = [...C.records.commits.values()];
258
+ return e.forEach(function(e) {
259
+ p.debug(e.id);
260
+ }), e.sort((e, t) => e.seq - t.seq), e;
261
261
  }, "getCommitsArray"), A = {
262
262
  commitType: x,
263
263
  getConfig: S,
@@ -275,54 +275,54 @@ var ce = /* @__PURE__ */ m(function() {
275
275
  getBranches: de,
276
276
  getCommits: fe,
277
277
  getCommitsArray: k,
278
- getCurrentBranch: /* @__PURE__ */ m(function() {
278
+ getCurrentBranch: /* @__PURE__ */ f(function() {
279
279
  return C.records.currBranch;
280
280
  }, "getCurrentBranch"),
281
- getDirection: /* @__PURE__ */ m(function() {
281
+ getDirection: /* @__PURE__ */ f(function() {
282
282
  return C.records.direction;
283
283
  }, "getDirection"),
284
- getHead: /* @__PURE__ */ m(function() {
284
+ getHead: /* @__PURE__ */ f(function() {
285
285
  return C.records.head;
286
286
  }, "getHead"),
287
- setAccTitle: i,
288
- getAccTitle: p,
289
- getAccDescription: u,
290
- setAccDescription: n,
291
- setDiagramTitle: r,
292
- getDiagramTitle: d
293
- }, pe = /* @__PURE__ */ m((e, t) => {
287
+ setAccTitle: n,
288
+ getAccTitle: u,
289
+ getAccDescription: i,
290
+ setAccDescription: t,
291
+ setDiagramTitle: c,
292
+ getDiagramTitle: e
293
+ }, pe = /* @__PURE__ */ f((e, t) => {
294
294
  y(e, t), e.dir && t.setDirection(e.dir);
295
295
  for (let n of e.statements) me(n, t);
296
- }, "populate"), me = /* @__PURE__ */ m((t, n) => {
297
- let r = {
298
- Commit: /* @__PURE__ */ m((e) => n.commit(he(e)), "Commit"),
299
- Branch: /* @__PURE__ */ m((e) => n.branch(ge(e)), "Branch"),
300
- Merge: /* @__PURE__ */ m((e) => n.merge(_e(e)), "Merge"),
301
- Checkout: /* @__PURE__ */ m((e) => n.checkout(ve(e)), "Checkout"),
302
- CherryPicking: /* @__PURE__ */ m((e) => n.cherryPick(ye(e)), "CherryPicking")
303
- }[t.$type];
304
- r ? r(t) : e.error(`Unknown statement type: ${t.$type}`);
305
- }, "parseStatement"), he = /* @__PURE__ */ m((e) => ({
296
+ }, "populate"), me = /* @__PURE__ */ f((e, t) => {
297
+ let n = {
298
+ Commit: /* @__PURE__ */ f((e) => t.commit(he(e)), "Commit"),
299
+ Branch: /* @__PURE__ */ f((e) => t.branch(ge(e)), "Branch"),
300
+ Merge: /* @__PURE__ */ f((e) => t.merge(_e(e)), "Merge"),
301
+ Checkout: /* @__PURE__ */ f((e) => t.checkout(ve(e)), "Checkout"),
302
+ CherryPicking: /* @__PURE__ */ f((e) => t.cherryPick(ye(e)), "CherryPicking")
303
+ }[e.$type];
304
+ n ? n(e) : p.error(`Unknown statement type: ${e.$type}`);
305
+ }, "parseStatement"), he = /* @__PURE__ */ f((e) => ({
306
306
  id: e.id,
307
307
  msg: e.message ?? "",
308
308
  type: e.type === void 0 ? x.NORMAL : x[e.type],
309
309
  tags: e.tags ?? void 0
310
- }), "parseCommit"), ge = /* @__PURE__ */ m((e) => ({
310
+ }), "parseCommit"), ge = /* @__PURE__ */ f((e) => ({
311
311
  name: e.name,
312
312
  order: e.order ?? 0
313
- }), "parseBranch"), _e = /* @__PURE__ */ m((e) => ({
313
+ }), "parseBranch"), _e = /* @__PURE__ */ f((e) => ({
314
314
  branch: e.branch,
315
315
  id: e.id ?? "",
316
316
  type: e.type === void 0 ? void 0 : x[e.type],
317
317
  tags: e.tags ?? void 0
318
- }), "parseMerge"), ve = /* @__PURE__ */ m((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ m((e) => ({
318
+ }), "parseMerge"), ve = /* @__PURE__ */ f((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ f((e) => ({
319
319
  id: e.id,
320
320
  targetId: "",
321
321
  tags: e.tags?.length === 0 ? void 0 : e.tags,
322
322
  parent: e.parent
323
- }), "parseCherryPicking"), be = { parse: /* @__PURE__ */ m(async (t) => {
324
- let n = await v("gitGraph", t);
325
- e.debug(n), pe(n, A);
323
+ }), "parseCherryPicking"), be = { parse: /* @__PURE__ */ f(async (e) => {
324
+ let t = await v("gitGraph", e);
325
+ p.debug(t), pe(t, A);
326
326
  }, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
327
327
  "redux",
328
328
  "redux-dark",
@@ -333,38 +333,38 @@ var ce = /* @__PURE__ */ m(function() {
333
333
  "redux-dark",
334
334
  "redux-dark-color",
335
335
  "neo-dark"
336
- ]), z = /* @__PURE__ */ m((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", Se = /* @__PURE__ */ m(() => {
336
+ ]), z = /* @__PURE__ */ f((e, t, n = !1) => n && e > 0 ? (e - 1) % (t - 1) + 1 : e % t, "calcColorIndex"), B = /* @__PURE__ */ new Map(), V = /* @__PURE__ */ new Map(), H = 30, U = /* @__PURE__ */ new Map(), W = [], G = 0, K = "LR", q = /* @__PURE__ */ f(() => {
337
337
  B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
338
- }, "clear"), q = /* @__PURE__ */ m((e) => {
338
+ }, "clear"), J = /* @__PURE__ */ f((e) => {
339
339
  let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
340
340
  return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
341
341
  let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
342
342
  n.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), n.setAttribute("dy", "1em"), n.setAttribute("x", "0"), n.setAttribute("class", "row"), n.textContent = e.trim(), t.appendChild(n);
343
343
  }), t;
344
- }, "drawText"), J = /* @__PURE__ */ m((e) => {
344
+ }, "drawText"), Y = /* @__PURE__ */ f((e) => {
345
345
  let t, n, r;
346
- return K === "BT" ? (n = /* @__PURE__ */ m((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ m((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
346
+ return K === "BT" ? (n = /* @__PURE__ */ f((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ f((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
347
347
  let i = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
348
348
  i !== void 0 && n(i, r) && (t = e, r = i);
349
349
  }), t;
350
- }, "findClosestParent"), Ce = /* @__PURE__ */ m((e) => {
350
+ }, "findClosestParent"), Se = /* @__PURE__ */ f((e) => {
351
351
  let t = "", n = Infinity;
352
352
  return e.forEach((e) => {
353
353
  let r = V.get(e).y;
354
354
  r <= n && (t = e, n = r);
355
355
  }), t || void 0;
356
- }, "findClosestParentBT"), we = /* @__PURE__ */ m((e, t, n) => {
356
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ f((e, t, n) => {
357
357
  let r = n, i = n, a = [];
358
358
  e.forEach((e) => {
359
359
  let n = t.get(e);
360
360
  if (!n) throw Error(`Commit not found for key ${e}`);
361
- n.parents.length ? (r = Ee(n), i = Math.max(r, i)) : a.push(n), De(n, r);
361
+ n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
362
362
  }), r = i, a.forEach((e) => {
363
- Oe(e, r, n);
363
+ De(e, r, n);
364
364
  }), e.forEach((e) => {
365
365
  let n = t.get(e);
366
366
  if (n?.parents.length) {
367
- let e = Ce(n.parents);
367
+ let e = Se(n.parents);
368
368
  r = V.get(e).y - M, r <= i && (i = r);
369
369
  let t = B.get(n.branch).pos, a = r - j;
370
370
  V.set(n.id, {
@@ -373,13 +373,13 @@ var ce = /* @__PURE__ */ m(function() {
373
373
  });
374
374
  }
375
375
  });
376
- }, "setParallelBTPos"), Te = /* @__PURE__ */ m((e) => {
377
- let t = J(e.parents.filter((e) => e !== null));
376
+ }, "setParallelBTPos"), we = /* @__PURE__ */ f((e) => {
377
+ let t = Y(e.parents.filter((e) => e !== null));
378
378
  if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
379
379
  let n = V.get(t)?.y;
380
380
  if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
381
381
  return n;
382
- }, "findClosestParentPos"), Ee = /* @__PURE__ */ m((e) => Te(e) + M, "calculateCommitPosition"), De = /* @__PURE__ */ m((e, t) => {
382
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ f((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ f((e, t) => {
383
383
  let n = B.get(e.branch);
384
384
  if (!n) throw Error(`Branch not found for commit ${e.id}`);
385
385
  let r = n.pos, i = t + j;
@@ -390,7 +390,7 @@ var ce = /* @__PURE__ */ m(function() {
390
390
  x: r,
391
391
  y: i
392
392
  };
393
- }, "setCommitPosition"), Oe = /* @__PURE__ */ m((e, t, n) => {
393
+ }, "setCommitPosition"), De = /* @__PURE__ */ f((e, t, n) => {
394
394
  let r = B.get(e.branch);
395
395
  if (!r) throw Error(`Branch not found for commit ${e.id}`);
396
396
  let i = t + n, a = r.pos;
@@ -398,22 +398,22 @@ var ce = /* @__PURE__ */ m(function() {
398
398
  x: a,
399
399
  y: i
400
400
  });
401
- }, "setRootPosition"), ke = /* @__PURE__ */ m((e, t, n, r, i, a) => {
402
- let { theme: o } = f(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
403
- if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (s ? 3 : 0)).attr("y", n.y - 10 + (s ? 3 : 0)).attr("width", s ? 14 : 20).attr("height", s ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, c)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (s ? 2 : 0)).attr("y", n.y - 6 + (s ? 2 : 0)).attr("width", s ? 8 : 12).attr("height", s ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, c)} ${r}-inner`);
404
- else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", s ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", s ? 2.5 : 2.75).attr("fill", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", l ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
401
+ }, "setRootPosition"), Oe = /* @__PURE__ */ f((e, t, n, r, i, a) => {
402
+ let { theme: s } = o(), c = I.has(s ?? ""), l = R.has(s ?? ""), u = xe.has(s ?? "");
403
+ if (a === x.HIGHLIGHT) e.append("rect").attr("x", n.x - 10 + (c ? 3 : 0)).attr("y", n.y - 10 + (c ? 3 : 0)).attr("width", c ? 14 : 20).attr("height", c ? 14 : 20).attr("class", `commit ${t.id} commit-highlight${z(i, F, l)} ${r}-outer`), e.append("rect").attr("x", n.x - 6 + (c ? 2 : 0)).attr("y", n.y - 6 + (c ? 2 : 0)).attr("width", c ? 8 : 12).attr("height", c ? 8 : 12).attr("class", `commit ${t.id} commit${z(i, F, l)} ${r}-inner`);
404
+ else if (a === x.CHERRY_PICK) e.append("circle").attr("cx", n.x).attr("cy", n.y).attr("r", c ? 7 : 10).attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x - 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("circle").attr("cx", n.x + 3).attr("cy", n.y + 2).attr("r", c ? 2.5 : 2.75).attr("fill", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x + 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`), e.append("line").attr("x1", n.x - 3).attr("y1", n.y + 1).attr("x2", n.x).attr("y2", n.y - 5).attr("stroke", u ? "#000000" : "#fff").attr("class", `commit ${t.id} ${r}`);
405
405
  else {
406
406
  let o = e.append("circle");
407
- if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", s ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, c)}`), a === x.MERGE) {
407
+ if (o.attr("cx", n.x), o.attr("cy", n.y), o.attr("r", c ? 7 : 10), o.attr("class", `commit ${t.id} commit${z(i, F, l)}`), a === x.MERGE) {
408
408
  let a = e.append("circle");
409
- a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", s ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
409
+ a.attr("cx", n.x), a.attr("cy", n.y), a.attr("r", c ? 5 : 6), a.attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
410
410
  }
411
411
  if (a === x.REVERSE) {
412
- let a = e.append("path"), o = s ? 4 : 5;
413
- a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, c)}`);
412
+ let a = e.append("path"), o = c ? 4 : 5;
413
+ a.attr("d", `M ${n.x - o},${n.y - o}L${n.x + o},${n.y + o}M${n.x - o},${n.y + o}L${n.x + o},${n.y - o}`).attr("class", `commit ${r} ${t.id} commit${z(i, F, l)}`);
414
414
  }
415
415
  }
416
- }, "drawCommitBullet"), Ae = /* @__PURE__ */ m((e, t, n, r, i) => {
416
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ f((e, t, n, r, i) => {
417
417
  if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
418
418
  let a = e.append("g"), o = a.insert("rect").attr("class", "commit-label-bkg"), s = a.append("text").attr("x", r).attr("y", n.y + 25).attr("class", "commit-label").text(t.id), c = s.node()?.getBBox();
419
419
  if (c && (o.attr("x", n.posWithOffset - c.width / 2 - P).attr("y", n.y + 13.5).attr("width", c.width + 2 * P).attr("height", c.height + 2 * P), K === "TB" || K === "BT" ? (o.attr("x", n.x - (c.width + 4 * N + 5)).attr("y", n.y - 12), s.attr("x", n.x - (c.width + 4 * N)).attr("y", n.y + c.height - 12)) : s.attr("x", n.posWithOffset - c.width / 2), i.rotateCommitLabel)) {
@@ -424,7 +424,7 @@ var ce = /* @__PURE__ */ m(function() {
424
424
  }
425
425
  }
426
426
  }
427
- }, "drawCommitLabel"), je = /* @__PURE__ */ m((e, t, n, r) => {
427
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ f((e, t, n, r) => {
428
428
  if (t.tags.length > 0) {
429
429
  let i = 0, a = 0, o = 0, s = [];
430
430
  for (let r of t.tags.reverse()) {
@@ -457,7 +457,7 @@ var ce = /* @__PURE__ */ m(function() {
457
457
  }
458
458
  }
459
459
  }
460
- }, "drawCommitTags"), Me = /* @__PURE__ */ m((e) => {
460
+ }, "drawCommitTags"), je = /* @__PURE__ */ f((e) => {
461
461
  switch (e.customType ?? e.type) {
462
462
  case x.NORMAL: return "commit-normal";
463
463
  case x.REVERSE: return "commit-reverse";
@@ -466,13 +466,13 @@ var ce = /* @__PURE__ */ m(function() {
466
466
  case x.CHERRY_PICK: return "commit-cherry-pick";
467
467
  default: return "commit-normal";
468
468
  }
469
- }, "getCommitClassType"), Ne = /* @__PURE__ */ m((e, t, n, r) => {
469
+ }, "getCommitClassType"), Me = /* @__PURE__ */ f((e, t, n, r) => {
470
470
  let i = {
471
471
  x: 0,
472
472
  y: 0
473
473
  };
474
474
  if (e.parents.length > 0) {
475
- let n = J(e.parents);
475
+ let n = Y(e.parents);
476
476
  if (n) {
477
477
  let a = r.get(n) ?? i;
478
478
  return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
@@ -481,28 +481,28 @@ var ce = /* @__PURE__ */ m(function() {
481
481
  else if (t === "BT") return (r.get(e.id) ?? i).y - M;
482
482
  else return 0;
483
483
  return 0;
484
- }, "calculatePosition"), Pe = /* @__PURE__ */ m((e, t, n) => {
484
+ }, "calculatePosition"), Ne = /* @__PURE__ */ f((e, t, n) => {
485
485
  let r = K === "BT" && n ? t : t + j, i = B.get(e.branch)?.pos, a = K === "TB" || K === "BT" ? B.get(e.branch)?.pos : r;
486
486
  if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
487
- let o = I.has(f().theme ?? "");
487
+ let s = I.has(o().theme ?? "");
488
488
  return {
489
489
  x: a,
490
- y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
490
+ y: K === "TB" || K === "BT" ? r : i + (s ? L / 2 + 1 : -2),
491
491
  posWithOffset: r
492
492
  };
493
- }, "getCommitPosition"), Y = /* @__PURE__ */ m((e, t, n, r) => {
494
- let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = K === "TB" || K === "BT" ? H : 0, s = [...t.keys()], c = r.parallelCommits ?? !1, l = /* @__PURE__ */ m((e, n) => {
493
+ }, "getCommitPosition"), X = /* @__PURE__ */ f((e, t, n, r) => {
494
+ let i = e.append("g").attr("class", "commit-bullets"), a = e.append("g").attr("class", "commit-labels"), o = K === "TB" || K === "BT" ? H : 0, s = [...t.keys()], c = r.parallelCommits ?? !1, l = /* @__PURE__ */ f((e, n) => {
495
495
  let r = t.get(e)?.seq, i = t.get(n)?.seq;
496
496
  return r !== void 0 && i !== void 0 ? r - i : 0;
497
497
  }, "sortKeys"), u = s.sort(l);
498
- K === "BT" && (c && we(u, t, o), u = u.reverse()), u.forEach((e) => {
498
+ K === "BT" && (c && Ce(u, t, o), u = u.reverse()), u.forEach((e) => {
499
499
  let s = t.get(e);
500
500
  if (!s) throw Error(`Commit not found for key ${e}`);
501
- c && (o = Ne(s, K, o, V));
502
- let l = Pe(s, o, c);
501
+ c && (o = Me(s, K, o, V));
502
+ let l = Ne(s, o, c);
503
503
  if (n) {
504
- let e = Me(s), t = s.customType ?? s.type, n = B.get(s.branch)?.index ?? 0;
505
- ke(i, s, l, e, n, t), Ae(a, s, l, o, r), je(a, s, l, o);
504
+ let e = je(s), t = s.customType ?? s.type, n = B.get(s.branch)?.index ?? 0;
505
+ Oe(i, s, l, e, n, t), ke(a, s, l, o, r), Ae(a, s, l, o);
506
506
  }
507
507
  K === "TB" || K === "BT" ? V.set(s.id, {
508
508
  x: l.x,
@@ -512,80 +512,80 @@ var ce = /* @__PURE__ */ m(function() {
512
512
  y: l.y
513
513
  }), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
514
514
  });
515
- }, "drawCommits"), Fe = /* @__PURE__ */ m((e, t, n, r, i) => {
516
- let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ m((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ m((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
515
+ }, "drawCommits"), Pe = /* @__PURE__ */ f((e, t, n, r, i) => {
516
+ let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ f((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ f((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
517
517
  return [...i.values()].some((e) => s(e) && o(e));
518
- }, "shouldRerouteArrow"), X = /* @__PURE__ */ m((e, t, n = 0) => {
518
+ }, "shouldRerouteArrow"), Z = /* @__PURE__ */ f((e, t, n = 0) => {
519
519
  let r = e + Math.abs(e - t) / 2;
520
- return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : X(e, t - Math.abs(e - t) / 5, n + 1);
521
- }, "findLane"), Ie = /* @__PURE__ */ m((e, t, n, r) => {
522
- let { theme: i } = f(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
523
- if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
524
- let c = Fe(t, n, o, s, r), l = "", u = "", d = 0, p = 0, m = B.get(n.branch)?.index;
520
+ return n > 5 ? r : W.every((e) => Math.abs(e - r) >= 10) ? (W.push(r), r) : Z(e, t - Math.abs(e - t) / 5, n + 1);
521
+ }, "findLane"), Fe = /* @__PURE__ */ f((e, t, n, r) => {
522
+ let { theme: i } = o(), a = R.has(i ?? ""), s = V.get(t.id), c = V.get(n.id);
523
+ if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
524
+ let l = Pe(t, n, s, c, r), u = "", d = "", f = 0, p = 0, m = B.get(n.branch)?.index;
525
525
  n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
526
526
  let h;
527
- if (c) {
528
- l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, p = 10;
529
- let e = o.y < s.y ? X(o.y, s.y) : X(s.y, o.y), n = o.x < s.x ? X(o.x, s.x) : X(s.x, o.x);
530
- K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y + p} L ${n} ${s.y - d} ${l} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${l} ${n} ${o.y + p} L ${n} ${s.y - d} ${u} ${n - p} ${s.y} L ${s.x} ${s.y}`) : K === "BT" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${l} ${n} ${o.y - p} L ${n} ${s.y + d} ${u} ${n + p} ${s.y} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${n + d} ${o.y} ${u} ${n} ${o.y - p} L ${n} ${s.y + d} ${l} ${n - p} ${s.y} L ${s.x} ${s.y}`) : o.y < s.y ? h = `M ${o.x} ${o.y} L ${o.x} ${e - d} ${l} ${o.x + p} ${e} L ${s.x - d} ${e} ${u} ${s.x} ${e + p} L ${s.x} ${s.y}` : (m = B.get(t.branch)?.index, h = `M ${o.x} ${o.y} L ${o.x} ${e + d} ${u} ${o.x + p} ${e} L ${s.x - d} ${e} ${l} ${s.x} ${e - p} L ${s.x} ${s.y}`);
531
- } else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, K === "TB" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${u} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${l} ${s.x} ${o.y + p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : K === "BT" ? (o.x < s.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x > s.x && (l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${l} ${o.x - p} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${u} ${s.x} ${o.y - p} L ${s.x} ${s.y}`), o.x === s.x && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`)) : (o.y < s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y > s.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - p} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + p} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
527
+ if (l) {
528
+ u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
529
+ let e = s.y < c.y ? Z(s.y, c.y) : Z(c.y, s.y), n = s.x < c.x ? Z(s.x, c.x) : Z(c.x, s.x);
530
+ K === "TB" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${d} ${n} ${s.y + p} L ${n} ${c.y - f} ${u} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${u} ${n} ${s.y + p} L ${n} ${c.y - f} ${d} ${n - p} ${c.y} L ${c.x} ${c.y}`) : K === "BT" ? s.x < c.x ? h = `M ${s.x} ${s.y} L ${n - f} ${s.y} ${u} ${n} ${s.y - p} L ${n} ${c.y + f} ${d} ${n + p} ${c.y} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${n + f} ${s.y} ${d} ${n} ${s.y - p} L ${n} ${c.y + f} ${u} ${n - p} ${c.y} L ${c.x} ${c.y}`) : s.y < c.y ? h = `M ${s.x} ${s.y} L ${s.x} ${e - f} ${u} ${s.x + p} ${e} L ${c.x - f} ${e} ${d} ${c.x} ${e + p} L ${c.x} ${c.y}` : (m = B.get(t.branch)?.index, h = `M ${s.x} ${s.y} L ${s.x} ${e + f} ${d} ${s.x + p} ${e} L ${c.x - f} ${e} ${u} ${c.x} ${e - p} L ${c.x} ${c.y}`);
531
+ } else u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, K === "TB" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${d} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${u} ${c.x} ${s.y + p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : K === "BT" ? (s.x < c.x && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x > c.x && (u = "A 20 20, 0, 0, 0,", d = "A 20 20, 0, 0, 1,", f = 20, p = 20, h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${u} ${s.x - p} ${c.y} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${c.x + f} ${s.y} ${d} ${c.x} ${s.y - p} L ${c.x} ${c.y}`), s.x === c.x && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`)) : (s.y < c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${d} ${c.x} ${s.y + p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y - f} ${u} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y > c.y && (h = n.type === x.MERGE && t.id !== n.parents[0] ? `M ${s.x} ${s.y} L ${c.x - f} ${s.y} ${u} ${c.x} ${s.y - p} L ${c.x} ${c.y}` : `M ${s.x} ${s.y} L ${s.x} ${c.y + f} ${d} ${s.x + p} ${c.y} L ${c.x} ${c.y}`), s.y === c.y && (h = `M ${s.x} ${s.y} L ${c.x} ${c.y}`));
532
532
  if (h === void 0) throw Error("Line definition not found");
533
533
  e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
534
- }, "drawArrow"), Le = /* @__PURE__ */ m((e, t) => {
534
+ }, "drawArrow"), Ie = /* @__PURE__ */ f((e, t) => {
535
535
  let n = e.append("g").attr("class", "commit-arrows");
536
536
  [...t.keys()].forEach((e) => {
537
537
  let r = t.get(e);
538
538
  r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
539
- Ie(n, t.get(e), r, t);
539
+ Fe(n, t.get(e), r, t);
540
540
  });
541
541
  });
542
- }, "drawArrows"), Re = /* @__PURE__ */ m((e, t, n, r) => {
543
- let { look: i, theme: a, themeVariables: o } = f(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), u = R.has(a ?? ""), d = e.append("g");
542
+ }, "drawArrows"), Le = /* @__PURE__ */ f((e, t, n, r) => {
543
+ let { look: i, theme: a, themeVariables: s } = o(), { dropShadow: c, THEME_COLOR_LIMIT: l } = s, u = I.has(a ?? ""), d = R.has(a ?? ""), f = e.append("g");
544
544
  t.forEach((e, t) => {
545
- let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
545
+ let a = z(t, u ? l : F, d), o = B.get(e.name)?.pos;
546
546
  if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
547
- let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
548
- p.attr("x1", 0), p.attr("y1", f), p.attr("x2", G), p.attr("y2", f), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(f);
549
- let m = e.name, h = q(m), g = d.insert("rect"), _ = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
547
+ let s = K === "TB" || K === "BT" ? o : u ? o + L / 2 + 1 : o - 2, p = f.append("line");
548
+ p.attr("x1", 0), p.attr("y1", s), p.attr("x2", G), p.attr("y2", s), p.attr("class", "branch branch" + a), K === "TB" ? (p.attr("y1", H), p.attr("x1", o), p.attr("y2", G), p.attr("x2", o)) : K === "BT" && (p.attr("y1", G), p.attr("x1", o), p.attr("y2", H), p.attr("x2", o)), W.push(s);
549
+ let m = e.name, h = J(m), g = f.insert("rect"), _ = f.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
550
550
  _.node().appendChild(h);
551
- let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
552
- i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${l ? `url(#${r}-drop-shadow)` : s}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -v.height / 2 + 10).attr("width", v.width + 18 + b).attr("height", v.height + 4 + x), _.attr("transform", "translate(" + (-v.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (f - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), l && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (f - 12 - x / 2) + ")");
551
+ let v = h.getBBox(), y = u ? 0 : 4, b = u ? 16 : 0, x = u ? L : 0;
552
+ i === "neo" && g.attr("data-look", "neo"), g.attr("class", "branchLabelBkg label" + a).attr("style", i === "neo" ? `filter:${u ? `url(#${r}-drop-shadow)` : c}` : "").attr("rx", y).attr("ry", y).attr("x", -v.width - 4 - (n.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -v.height / 2 + 10).attr("width", v.width + 18 + b).attr("height", v.height + 4 + x), _.attr("transform", "translate(" + (-v.width - 14 - (n.rotateCommitLabel === !0 ? 30 : 0) + b / 2) + ", " + (s - v.height / 2 - 2) + ")"), K === "TB" ? (g.attr("x", o - v.width / 2 - 10).attr("y", 0), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", 0)"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${-x - 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (-x * 2 + 7) + ")"))) : K === "BT" ? (g.attr("x", o - v.width / 2 - 10).attr("y", G), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + G + ")"), u && (g.attr("transform", `translate(${-b / 2 - 3}, ${x + 10})`), _.attr("transform", "translate(" + (o - v.width / 2 - 5) + ", " + (G + x * 2 + 4) + ")"))) : g.attr("transform", "translate(-19, " + (s - 12 - x / 2) + ")");
553
553
  });
554
- }, "drawBranches"), ze = /* @__PURE__ */ m(function(e, t, n, r, i) {
554
+ }, "drawBranches"), Re = /* @__PURE__ */ f(function(e, t, n, r, i) {
555
555
  return B.set(e, {
556
556
  pos: t,
557
557
  index: n
558
558
  }), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
559
- }, "setBranchPosition"), Be = { draw: /* @__PURE__ */ m(function(n, r, i, o) {
560
- Se(), e.debug("in gitgraph renderer", n + "\n", "id:", r, i);
561
- let s = o.db;
562
- if (!s.getConfig) {
563
- e.error("getConfig method is not available on db");
559
+ }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ f(function(e, t, n, i) {
560
+ q(), p.debug("in gitgraph renderer", e + "\n", "id:", t, n);
561
+ let a = i.db;
562
+ if (!a.getConfig) {
563
+ p.error("getConfig method is not available on db");
564
564
  return;
565
565
  }
566
- let c = s.getConfig(), l = c.rotateCommitLabel ?? !1;
567
- U = s.getCommits();
568
- let u = s.getBranchesAsObjArray();
569
- K = s.getDirection();
570
- let d = t(`[id="${r}"]`), { look: p, theme: m, themeVariables: g } = f(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
566
+ let s = a.getConfig(), c = s.rotateCommitLabel ?? !1;
567
+ U = a.getCommits();
568
+ let l = a.getBranchesAsObjArray();
569
+ K = a.getDirection();
570
+ let u = m(`[id="${t}"]`), { look: d, theme: f, themeVariables: g } = o(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
571
571
  if (_) {
572
- let e = d.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
572
+ let e = u.append("defs").append("linearGradient").attr("id", t + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
573
573
  e.append("stop").attr("offset", "0%").attr("stop-color", v).attr("stop-opacity", 1), e.append("stop").attr("offset", "100%").attr("stop-color", y).attr("stop-opacity", 1);
574
574
  }
575
- p === "neo" && I.has(m ?? "") && d.append("defs").append("filter").attr("id", r + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", b);
575
+ d === "neo" && I.has(f ?? "") && u.append("defs").append("filter").attr("id", t + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", b);
576
576
  let x = 0;
577
- u.forEach((e, t) => {
578
- let n = q(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
577
+ l.forEach((e, t) => {
578
+ let n = J(e.name), r = u.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
579
579
  a.node()?.appendChild(n);
580
580
  let o = n.getBBox();
581
- x = ze(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
582
- }), Y(d, U, !1, c), c.showBranches && Re(d, u, c, r), Le(d, U), Y(d, U, !0, c), h.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), a(void 0, d, c.diagramPadding, c.useMaxWidth);
583
- }, "draw") }, Z = 8, Q = /* @__PURE__ */ new Set([
581
+ x = Re(e.name, x, t, o, c), a.remove(), i.remove(), r.remove();
582
+ }), X(u, U, !1, s), s.showBranches && Le(u, l, s, t), Ie(u, U), X(u, U, !0, s), h.insertTitle(u, "gitTitleText", s.titleTopMargin ?? 0, a.getDiagramTitle()), r(void 0, u, s.diagramPadding, s.useMaxWidth);
583
+ }, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
584
584
  "redux",
585
585
  "redux-dark",
586
586
  "redux-color",
587
587
  "redux-dark-color"
588
- ]), $ = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
588
+ ]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
589
589
  "dark",
590
590
  "redux-dark",
591
591
  "redux-dark-color",
@@ -597,14 +597,14 @@ var ce = /* @__PURE__ */ m(function() {
597
597
  "redux-dark-color",
598
598
  "neo",
599
599
  "neo-dark"
600
- ]), We = /* @__PURE__ */ m((e) => {
600
+ ]), We = /* @__PURE__ */ f((e) => {
601
601
  let { svgId: t } = e, n = "";
602
602
  if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
603
603
  .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
604
604
  `;
605
605
  return n;
606
- }, "genGitGraphGradient"), Ge = /* @__PURE__ */ m((e) => {
607
- let { theme: t, themeVariables: n } = s(), { borderColorArray: r } = n, i = Q.has(t);
606
+ }, "genGitGraphGradient"), Ge = /* @__PURE__ */ f((e) => {
607
+ let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
608
608
  if (Ve.has(t)) {
609
609
  let t = "";
610
610
  for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
@@ -616,7 +616,7 @@ var ce = /* @__PURE__ */ m(function() {
616
616
  .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
617
617
  ${We(e)}`;
618
618
  else {
619
- let r = n % Z;
619
+ let r = n % Q;
620
620
  t += `
621
621
  .branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
622
622
  .commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
@@ -626,7 +626,7 @@ var ce = /* @__PURE__ */ m(function() {
626
626
  }
627
627
  return t;
628
628
  }
629
- if ($.has(t)) {
629
+ if (Be.has(t)) {
630
630
  let n = "";
631
631
  for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
632
632
  .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
@@ -661,8 +661,8 @@ var ce = /* @__PURE__ */ m(function() {
661
661
  `;
662
662
  return t;
663
663
  }
664
- }, "genColor"), Ke = /* @__PURE__ */ m((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
665
- let n = t % Z;
664
+ }, "genColor"), Ke = /* @__PURE__ */ f((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
665
+ let n = t % Q;
666
666
  return `
667
667
  .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
668
668
  .commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
@@ -673,9 +673,9 @@ var ce = /* @__PURE__ */ m(function() {
673
673
  }).join("\n")}`, "normalTheme"), qe = {
674
674
  parser: be,
675
675
  db: A,
676
- renderer: Be,
677
- styles: /* @__PURE__ */ m((e) => {
678
- let { theme: t } = s(), n = Ue.has(t);
676
+ renderer: ze,
677
+ styles: /* @__PURE__ */ f((e) => {
678
+ let { theme: t } = d(), n = Ue.has(t);
679
679
  return `
680
680
  .commit-id,
681
681
  .commit-msg,
@@ -717,7 +717,7 @@ var ce = /* @__PURE__ */ m(function() {
717
717
 
718
718
  .arrow {
719
719
  /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
720
- stroke-width: ${Q.has(t) ? e.strokeWidth : 8};
720
+ stroke-width: ${$.has(t) ? e.strokeWidth : 8};
721
721
  stroke-linecap: round;
722
722
  fill: none
723
723
  }