@sme.up/ketchup2 2.2.0 → 2.4.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 (394) hide show
  1. package/dist/{arc-Klgb378K.js → arc-D80gVCcI.js} +2 -2
  2. package/dist/{arc-CqG9Hxdf.cjs → arc-MUYNnJxV.cjs} +1 -1
  3. package/dist/architecture-7EHR7CIX-Bnyu5zgG.js +3 -0
  4. package/dist/architecture-7EHR7CIX-CKF7-4kH.cjs +1 -0
  5. package/dist/architectureDiagram-3BPJPVTR-BrmPrClJ.cjs +36 -0
  6. package/dist/{architectureDiagram-Q4EWVU46-CnzjcVBn.js → architectureDiagram-3BPJPVTR-EFK4DMha.js} +167 -166
  7. package/dist/assets/svg/barcode.svg +1 -0
  8. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  9. package/dist/basic-components/barcode/barcode-types.d.ts +16 -0
  10. package/dist/basic-components/barcode/barcode-types.d.ts.map +1 -0
  11. package/dist/basic-components/barcode/barcode.d.ts +3 -0
  12. package/dist/basic-components/barcode/barcode.d.ts.map +1 -0
  13. package/dist/basic-components/cell/cell-types.d.ts +7 -0
  14. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  15. package/dist/basic-components/cell/cell-utils.d.ts +3 -2
  16. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  17. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  18. package/dist/basic-components/cell/tests/utils.d.ts.map +1 -1
  19. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  20. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  21. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts +4 -0
  22. package/dist/basic-components/qr-code/corners/qr-code-corner-utils.d.ts.map +1 -0
  23. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts +13 -0
  24. package/dist/basic-components/qr-code/corners/qr-code-corner.d.ts.map +1 -0
  25. package/dist/basic-components/qr-code/qr-code-encoding.d.ts +9 -0
  26. package/dist/basic-components/qr-code/qr-code-encoding.d.ts.map +1 -0
  27. package/dist/basic-components/qr-code/qr-code-error-correction.d.ts +10 -0
  28. package/dist/basic-components/qr-code/qr-code-error-correction.d.ts.map +1 -0
  29. package/dist/basic-components/qr-code/qr-code-helpers.d.ts +15 -0
  30. package/dist/basic-components/qr-code/qr-code-helpers.d.ts.map +1 -0
  31. package/dist/basic-components/qr-code/qr-code-mask.d.ts +9 -0
  32. package/dist/basic-components/qr-code/qr-code-mask.d.ts.map +1 -0
  33. package/dist/basic-components/qr-code/qr-code-matrix.d.ts +3 -0
  34. package/dist/basic-components/qr-code/qr-code-matrix.d.ts.map +1 -0
  35. package/dist/basic-components/qr-code/qr-code-renderer.d.ts +8 -0
  36. package/dist/basic-components/qr-code/qr-code-renderer.d.ts.map +1 -0
  37. package/dist/basic-components/qr-code/qr-code-types.d.ts +122 -0
  38. package/dist/basic-components/qr-code/qr-code-types.d.ts.map +1 -0
  39. package/dist/basic-components/qr-code/qr-code.d.ts +8 -0
  40. package/dist/basic-components/qr-code/qr-code.d.ts.map +1 -0
  41. package/dist/basic-components/text-editor/text-editor-utils.d.ts +11 -0
  42. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  43. package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
  44. package/dist/basic-components/textarea/textarea-types.d.ts +2 -2
  45. package/dist/basic-components/textarea/textarea-types.d.ts.map +1 -1
  46. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  47. package/dist/basic-components/textfield/textfield-types.d.ts +5 -0
  48. package/dist/basic-components/textfield/textfield-types.d.ts.map +1 -1
  49. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  50. package/dist/basic-components/tree/tree.d.ts.map +1 -1
  51. package/dist/basic-components/tree/tree.types.d.ts +6 -0
  52. package/dist/basic-components/tree/tree.types.d.ts.map +1 -1
  53. package/dist/basic-components/typography/typography-types.d.ts +1 -1
  54. package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
  55. package/dist/{blockDiagram-DXYQGD6D-B0NvV2Ph.js → blockDiagram-GPEHLZMM-C3UgY0Z5.js} +999 -877
  56. package/dist/blockDiagram-GPEHLZMM-CuzoKhJT.cjs +132 -0
  57. package/dist/{c4Diagram-AHTNJAMY-Dgwv-e5O.cjs → c4Diagram-AAUBKEIU-DU8uXbgK.cjs} +6 -6
  58. package/dist/{c4Diagram-AHTNJAMY-DPijI3_r.js → c4Diagram-AAUBKEIU-klnmEOUo.js} +279 -279
  59. package/dist/channel-BbRDdbmM.js +5 -0
  60. package/dist/channel-intTktDQ.cjs +1 -0
  61. package/dist/chunk-2J33WTMH-EmvF7iYC.js +25 -0
  62. package/dist/chunk-2J33WTMH-PlcpVW8G.cjs +1 -0
  63. package/dist/{chunk-5FUZZQ4R-D3C0F0Tr.js → chunk-3OPIFGDE-C7wE5oN7.js} +957 -929
  64. package/dist/chunk-3OPIFGDE-CT5oNC5X.cjs +62 -0
  65. package/dist/{chunk-4BX2VUAB-BW54-JWg.js → chunk-4BX2VUAB-BO1KRGb1.js} +1 -1
  66. package/dist/{chunk-4BX2VUAB-Qba52sxc.cjs → chunk-4BX2VUAB-CtDGlaPx.cjs} +1 -1
  67. package/dist/{chunk-7N4EOEYR-C-GuhRgW.js → chunk-4EGX6M5U-BMVrizoY.js} +12 -12
  68. package/dist/{chunk-7N4EOEYR-jNBQwvHx.cjs → chunk-4EGX6M5U-VENLmgBt.cjs} +1 -1
  69. package/dist/{chunk-55IACEB6-DPatBzu7.cjs → chunk-55IACEB6-VJP3Osm7.cjs} +1 -1
  70. package/dist/{chunk-55IACEB6-Bu3k0Yz5.js → chunk-55IACEB6-b_Ivgrk-.js} +1 -1
  71. package/dist/chunk-5DO6E6H7-Cx6Mfbjl.cjs +1 -0
  72. package/dist/chunk-5DO6E6H7-QuTLwcim.js +23 -0
  73. package/dist/chunk-5ZQYHXKU-BMnKD7Zq.cjs +2 -0
  74. package/dist/{chunk-5PVQY5BW-Dn8n6moB.js → chunk-5ZQYHXKU-C4uam08j.js} +527 -461
  75. package/dist/chunk-727SXJPM-DTmqhRKX.cjs +206 -0
  76. package/dist/{chunk-4TB4RGXK-D2LRzcEP.js → chunk-727SXJPM-Dof0vDVV.js} +650 -554
  77. package/dist/{chunk-OYMX7WX6-CrK-lehh.cjs → chunk-AQP2D5EJ-DdWeFQ4O.cjs} +5 -5
  78. package/dist/{chunk-OYMX7WX6-DJkGVCqi.js → chunk-AQP2D5EJ-N9ii4fwJ.js} +349 -339
  79. package/dist/{chunk-LIHQZDEY-59I4-LWb.js → chunk-BR22UD5L-CS6hURQQ.js} +15 -15
  80. package/dist/{chunk-LIHQZDEY-CrogR3nT.cjs → chunk-BR22UD5L-wI1vkyAT.cjs} +1 -1
  81. package/dist/{chunk-BSJP7CBP-oNTXVRA7.js → chunk-BSJP7CBP-Bx5APwBA.js} +1 -1
  82. package/dist/{chunk-BSJP7CBP-CFzYPvgr.cjs → chunk-BSJP7CBP-CaeBFqNU.cjs} +1 -1
  83. package/dist/{chunk-ICPOFSXX-fQJ5ufMR.js → chunk-CSCIHK7Q-9WKhcDqw.js} +132 -38
  84. package/dist/chunk-CSCIHK7Q-BPMuICCz.cjs +123 -0
  85. package/dist/chunk-FHYWG6QK-CfRqYwCI.js +23 -0
  86. package/dist/chunk-FHYWG6QK-DxmnARsZ.cjs +1 -0
  87. package/dist/{chunk-FMBD7UC4-RRSc9jqt.js → chunk-FMBD7UC4-BbggSGOg.js} +1 -1
  88. package/dist/{chunk-FMBD7UC4-CS9_r76V.cjs → chunk-FMBD7UC4-CiO_59ls.cjs} +1 -1
  89. package/dist/{chunk-ENJZ2VHE-CZ7BvL2h.js → chunk-KSCS5N6A-BY1s4eGg.js} +205 -205
  90. package/dist/chunk-KSCS5N6A-DO8jEi0y.cjs +10 -0
  91. package/dist/{chunk-ZZ45TVLE-BfSqZnT4.cjs → chunk-L5ZTLDWV-BE9udiOh.cjs} +1 -1
  92. package/dist/{chunk-ZZ45TVLE-X2jolXSO.js → chunk-L5ZTLDWV-D3UwMopa.js} +8 -8
  93. package/dist/{chunk-336JU56O-DQhIGd25.cjs → chunk-LZXEDZCA-Dpz_wx3M.cjs} +1 -1
  94. package/dist/{chunk-336JU56O-DkZvWJVe.js → chunk-LZXEDZCA-KzBFuWPU.js} +18 -18
  95. package/dist/chunk-MPE355IW-4bpROspE.js +23 -0
  96. package/dist/chunk-MPE355IW-CxPw_dPP.cjs +1 -0
  97. package/dist/chunk-MZUSXYTE-DA5mUG5B.js +30 -0
  98. package/dist/chunk-MZUSXYTE-DIg1BPts.cjs +1 -0
  99. package/dist/chunk-N66VUXT2-DSbygtq1.cjs +1 -0
  100. package/dist/chunk-N66VUXT2-pDZ1b-B3.js +54 -0
  101. package/dist/{chunk-YZCP3GAM-D6P3SWmL.js → chunk-ND2GUHAM-CHTke4K8.js} +17 -17
  102. package/dist/{chunk-YZCP3GAM-qxaNo0r8.cjs → chunk-ND2GUHAM-DdBSZTft.cjs} +1 -1
  103. package/dist/chunk-NNHCCRGN-D_orSz6n.js +20630 -0
  104. package/dist/chunk-NNHCCRGN-aKMHXBzL.cjs +159 -0
  105. package/dist/{chunk-X2U36JSP-VxRY65ea.js → chunk-NZK2D7GU-BVOINLmx.js} +13 -13
  106. package/dist/{chunk-X2U36JSP-CtXjVqek.cjs → chunk-NZK2D7GU-_twqedIe.cjs} +1 -1
  107. package/dist/{chunk-U2HBQHQK-CJ77uizk.cjs → chunk-O5CBEL6O-CDvi2oZo.cjs} +6 -6
  108. package/dist/{chunk-U2HBQHQK-Ceyeq0IV.js → chunk-O5CBEL6O-VsMF4aZB.js} +108 -108
  109. package/dist/chunk-PUPMXCY4-CKjhJQnN.js +23 -0
  110. package/dist/chunk-PUPMXCY4-DsS_t57r.cjs +1 -0
  111. package/dist/{chunk-QZHKN3VN-CSMKL2rB.cjs → chunk-QZHKN3VN-CHjRGMI2.cjs} +1 -1
  112. package/dist/{chunk-QZHKN3VN-Bx8I6l3c.js → chunk-QZHKN3VN-DCddt14Q.js} +1 -1
  113. package/dist/chunk-UIBZB4QT-BZf7vqd9.cjs +1 -0
  114. package/dist/chunk-UIBZB4QT-BvFllM0Q.js +23 -0
  115. package/dist/chunk-WCWK7LTN-D_C1as0Y.js +31 -0
  116. package/dist/chunk-WCWK7LTN-Dl2uC9ZD.cjs +1 -0
  117. package/dist/chunk-WU5MYG2G-DgyP9QDj.cjs +1 -0
  118. package/dist/chunk-WU5MYG2G-mQn7Wt-i.js +9 -0
  119. package/dist/{chunk-XPW4576I-BcWkx-AL.js → chunk-XPW4576I-BCowsgDU.js} +1 -1
  120. package/dist/{chunk-XPW4576I-D8Pp6a3j.cjs → chunk-XPW4576I-D_mwgMVU.cjs} +1 -1
  121. package/dist/classDiagram-4FO5ZUOK-5DyhpZRK.cjs +1 -0
  122. package/dist/classDiagram-4FO5ZUOK-BHGLQIkz.js +29 -0
  123. package/dist/classDiagram-v2-Q7XG4LA2-CCAbBo05.js +29 -0
  124. package/dist/classDiagram-v2-Q7XG4LA2-D4TX4CLT.cjs +1 -0
  125. package/dist/components/dash-list/assets/dash-list.data.d.ts +1 -0
  126. package/dist/components/dash-list/assets/dash-list.data.d.ts.map +1 -1
  127. package/dist/components/dash-list/dash-list-types.d.ts +1 -0
  128. package/dist/components/dash-list/dash-list-types.d.ts.map +1 -1
  129. package/dist/components/dash-list/dash-list.d.ts.map +1 -1
  130. package/dist/components/dash-list/dash-list.utils.d.ts +1 -3
  131. package/dist/components/dash-list/dash-list.utils.d.ts.map +1 -1
  132. package/dist/components/field/field-types.d.ts +6 -0
  133. package/dist/components/field/field-types.d.ts.map +1 -1
  134. package/dist/components/field/field.d.ts.map +1 -1
  135. package/dist/components/htm/htm-types.d.ts +4 -0
  136. package/dist/components/htm/htm-types.d.ts.map +1 -1
  137. package/dist/components/htm/htm.d.ts.map +1 -1
  138. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  139. package/dist/components/input-panel/input-panel-types.d.ts +6 -0
  140. package/dist/components/input-panel/input-panel-types.d.ts.map +1 -1
  141. package/dist/components/input-panel/input-panel-utils.d.ts.map +1 -1
  142. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  143. package/dist/components/pdf/pdf-types.d.ts +8 -0
  144. package/dist/components/pdf/pdf-types.d.ts.map +1 -1
  145. package/dist/components/pdf/pdf-utils.d.ts +1 -1
  146. package/dist/components/pdf/pdf-utils.d.ts.map +1 -1
  147. package/dist/components/pdf/pdf.d.ts.map +1 -1
  148. package/dist/components/planner/planner-assets.d.ts +2 -2
  149. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  150. package/dist/components/planner/planner-utils.d.ts +1 -0
  151. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  152. package/dist/components/planner/planner.d.ts.map +1 -1
  153. package/dist/components/tab-bar/tab-bar-types.d.ts +1 -1
  154. package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
  155. package/dist/components/timeline/timeline.d.ts.map +1 -1
  156. package/dist/components/tooltip/tooltip-assets.d.ts +1 -0
  157. package/dist/components/tooltip/tooltip-assets.d.ts.map +1 -1
  158. package/dist/components/tooltip/tooltip-types.d.ts +4 -16
  159. package/dist/components/tooltip/tooltip-types.d.ts.map +1 -1
  160. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  161. package/dist/context/obj-metadata-context.d.ts +8 -0
  162. package/dist/context/obj-metadata-context.d.ts.map +1 -0
  163. package/dist/{cose-bilkent-S5V4N54A-B30Rh9DR.js → cose-bilkent-S5V4N54A-Bfb7U01p.js} +26 -27
  164. package/dist/cose-bilkent-S5V4N54A-CE-7Sw0Y.cjs +1 -0
  165. package/dist/dagre-BM42HDAG-BhbA1R8l.cjs +4 -0
  166. package/dist/dagre-BM42HDAG-D87Rv2R4.js +297 -0
  167. package/dist/dagre-CC68z3y6.cjs +1 -0
  168. package/dist/dagre-Cg4CV48I.js +1936 -0
  169. package/dist/diagram-2AECGRRQ-C6vI3yau.cjs +43 -0
  170. package/dist/{diagram-MMDJMWI5-DUpEI5ug.js → diagram-2AECGRRQ-OSYCK0tv.js} +36 -36
  171. package/dist/diagram-5GNKFQAL-BS9rRMAe.cjs +10 -0
  172. package/dist/diagram-5GNKFQAL-DnquluB9.js +101 -0
  173. package/dist/diagram-KO2AKTUF-CFi6eQYd.js +431 -0
  174. package/dist/diagram-KO2AKTUF-CjA_KTJj.cjs +3 -0
  175. package/dist/{diagram-TYMM5635-DHHPZ5ZJ.js → diagram-LMA3HP47-Cwm5bzeM.js} +38 -38
  176. package/dist/diagram-LMA3HP47-DBwSTp2j.cjs +24 -0
  177. package/dist/diagram-OG6HWLK6-BdLnbUYy.cjs +24 -0
  178. package/dist/{diagram-G4DWMVQ6-iYV58Drq.js → diagram-OG6HWLK6-DvGk1j55.js} +93 -93
  179. package/dist/{dist-DL30VIBI.js → dist-9MKIBfY4.js} +1 -1
  180. package/dist/dist-DC1YYeHc.cjs +1 -0
  181. package/dist/{erDiagram-SMLLAGMA-C8FM7wbJ.js → erDiagram-TEJ5UH35-B17mqgD_.js} +164 -164
  182. package/dist/erDiagram-TEJ5UH35-NlRiP_bX.cjs +85 -0
  183. package/dist/eventmodeling-FCH6USID-BVaFiLQO.js +3 -0
  184. package/dist/eventmodeling-FCH6USID-leiC8dtX.cjs +1 -0
  185. package/dist/{flowDiagram-DWJPFMVM-BGtX2gw0.js → flowDiagram-I6XJVG4X-C2G6Tgw_.js} +444 -444
  186. package/dist/{flowDiagram-DWJPFMVM-DWuKiJeo.cjs → flowDiagram-I6XJVG4X-ChI_6giU.cjs} +9 -9
  187. package/dist/functional-components/row/row-types.d.ts +6 -0
  188. package/dist/functional-components/row/row-types.d.ts.map +1 -1
  189. package/dist/functional-components/row/row.d.ts.map +1 -1
  190. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -1
  191. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts +106 -0
  192. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.d.ts.map +1 -0
  193. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts +2 -0
  194. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow-utils.test.d.ts.map +1 -0
  195. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts +38 -0
  196. package/dist/functional-components/timeline-engine/components/gantt/farrow/gantt-farrow.d.ts.map +1 -0
  197. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts +23 -20
  198. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -1
  199. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -1
  200. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts +13 -2
  201. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -1
  202. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +4 -0
  203. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -1
  204. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +24 -0
  205. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -1
  206. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -1
  207. package/dist/ganttDiagram-6RSMTGT7-B0DHqd7u.cjs +292 -0
  208. package/dist/{ganttDiagram-T4ZO3ILL-PY1BUp5b.js → ganttDiagram-6RSMTGT7-Bb6bqcaS.js} +278 -276
  209. package/dist/gitGraph-WXDBUCRP-BFFuTWG4.cjs +1 -0
  210. package/dist/gitGraph-WXDBUCRP-Fz2kRwJ-.js +3 -0
  211. package/dist/gitGraphDiagram-PVQCEYII-BzbgPrwe.cjs +106 -0
  212. package/dist/{gitGraphDiagram-UUTBAWPF-CDIW9-sX.js → gitGraphDiagram-PVQCEYII-DiJUr7lO.js} +255 -255
  213. package/dist/graphlib-B1zohIOM.js +1266 -0
  214. package/dist/graphlib-B5AXIZA4.cjs +1 -0
  215. package/dist/hooks/useFloating.d.ts.map +1 -1
  216. package/dist/index.d.ts +7 -1
  217. package/dist/index.d.ts.map +1 -1
  218. package/dist/info-J43DQDTF-CLRXRK49.js +3 -0
  219. package/dist/info-J43DQDTF-CmpcAuH-.cjs +1 -0
  220. package/dist/infoDiagram-5YYISTIA-C8P9DHlE.js +19 -0
  221. package/dist/infoDiagram-5YYISTIA-fhwEAAjF.cjs +2 -0
  222. package/dist/{ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs → ishikawaDiagram-YF4QCWOH-j6IZz59g.cjs} +6 -6
  223. package/dist/{ishikawaDiagram-UXIWVN3A-BblrAmns.js → ishikawaDiagram-YF4QCWOH-rqNbTKZp.js} +134 -134
  224. package/dist/{journeyDiagram-VCZTEJTY-UwcVOFtb.cjs → journeyDiagram-JHISSGLW-BhHdd4y3.cjs} +6 -6
  225. package/dist/{journeyDiagram-VCZTEJTY-CCOZ1XFK.js → journeyDiagram-JHISSGLW-peUJlm3L.js} +180 -180
  226. package/dist/{kanban-definition-6JOO6SKY-BWwfbdd6.js → kanban-definition-UN3LZRKU-DLxDqiQn.js} +151 -151
  227. package/dist/{kanban-definition-6JOO6SKY-Coxpi43B.cjs → kanban-definition-UN3LZRKU-TUg1x5yJ.cjs} +8 -8
  228. package/dist/{katex-SAH56fvc.cjs → katex-HkVgAsLB.cjs} +1 -1
  229. package/dist/ketchup2.cjs.js +107 -110
  230. package/dist/ketchup2.css +1 -1
  231. package/dist/ketchup2.es.js +90621 -90697
  232. package/dist/{line-CrxZdHmO.js → line-BhAnxCE8.js} +3 -3
  233. package/dist/line-CpcTW4h-.cjs +1 -0
  234. package/dist/{linear-CxHa1DsM.cjs → linear-D0eFmsG1.cjs} +1 -1
  235. package/dist/{linear-BsPvNLJv.js → linear-lSeWuvgy.js} +3 -3
  236. package/dist/locale/en/translation.json.d.ts +3 -0
  237. package/dist/locale/it/translation.json.d.ts +3 -0
  238. package/dist/{mermaid-parser.core-CERDf-UG.js → mermaid-parser.core-Dz33ts1l.js} +24 -19
  239. package/dist/mermaid-parser.core-HQxPJrkY.cjs +3 -0
  240. package/dist/{mindmap-definition-QFDTVHPH--xULjpFZ.cjs → mindmap-definition-RKZ34NQL-D9BOsg5W.cjs} +29 -29
  241. package/dist/{mindmap-definition-QFDTVHPH-dYQoMeA6.js → mindmap-definition-RKZ34NQL-DHkmUkxh.js} +148 -148
  242. package/dist/{ordinal-Civr0hZL.cjs → ordinal-BnUYNBtU.cjs} +1 -1
  243. package/dist/{ordinal-C-VoL0XF.js → ordinal-MD9_ORcM.js} +1 -1
  244. package/dist/packet-YPE3B663-BwjweAZY.cjs +1 -0
  245. package/dist/packet-YPE3B663-D1Hr9AQm.js +3 -0
  246. package/dist/pie-LRSECV5Y-CpDfN1P0.js +3 -0
  247. package/dist/pie-LRSECV5Y-I1-OkIXi.cjs +1 -0
  248. package/dist/{pieDiagram-DEJITSTG-Dj5pX4fC.js → pieDiagram-4H26LBE5-ByA7ytZx.js} +40 -40
  249. package/dist/pieDiagram-4H26LBE5-CrLJh4L9.cjs +30 -0
  250. package/dist/{quadrantDiagram-34T5L4WZ-BKNOJBiR.js → quadrantDiagram-W4KKPZXB-CHHpmu1l.js} +547 -520
  251. package/dist/quadrantDiagram-W4KKPZXB-CalC_db_.cjs +7 -0
  252. package/dist/radar-GUYGQ44K-BXt3oO8c.cjs +1 -0
  253. package/dist/radar-GUYGQ44K-ByzrmbOz.js +3 -0
  254. package/dist/{requirementDiagram-MS252O5E-r3eZu57d.js → requirementDiagram-4Y6WPE33-BVcDFSx8.js} +165 -165
  255. package/dist/requirementDiagram-4Y6WPE33-SsePLT8d.cjs +84 -0
  256. package/dist/sankeyDiagram-5OEKKPKP-BgvTZ7jd.cjs +40 -0
  257. package/dist/{sankeyDiagram-XADWPNL6-ErTVVewH.js → sankeyDiagram-5OEKKPKP-C-ODz9lV.js} +202 -153
  258. package/dist/{sequenceDiagram-FGHM5R23-BmqbzzHY.js → sequenceDiagram-3UESZ5HK-Cnc0aDO4.js} +786 -779
  259. package/dist/sequenceDiagram-3UESZ5HK-DEVLteqD.cjs +162 -0
  260. package/dist/src-BgvDIw01.cjs +1 -0
  261. package/dist/{src-BQiFKP24.js → src-v9RrE_4h.js} +578 -563
  262. package/dist/stateDiagram-AJRCARHV-CuHe6Iji.js +217 -0
  263. package/dist/stateDiagram-AJRCARHV-D_yPvIRw.cjs +1 -0
  264. package/dist/stateDiagram-v2-BHNVJYJU-CTnE6fOT.cjs +1 -0
  265. package/dist/stateDiagram-v2-BHNVJYJU-DqstYMSl.js +27 -0
  266. package/dist/{timeline-definition-GMOUNBTQ-DgcI7XnE.js → timeline-definition-PNZ67QCA-Bj1BItRB.js} +324 -324
  267. package/dist/{timeline-definition-GMOUNBTQ-BeTHmikc.cjs → timeline-definition-PNZ67QCA-Cynbc96w.cjs} +48 -48
  268. package/dist/treeView-BLDUP644-CxLhpd93.js +3 -0
  269. package/dist/treeView-BLDUP644-DMwVx0AR.cjs +1 -0
  270. package/dist/treemap-LRROVOQU-BqmiLdFI.js +3 -0
  271. package/dist/treemap-LRROVOQU-XhaFZdvI.cjs +1 -0
  272. package/dist/types/translation.d.ts +4 -1
  273. package/dist/types/translation.d.ts.map +1 -1
  274. package/dist/utils/translation.d.ts.map +1 -1
  275. package/dist/v4-BpDBEhLK.js +30 -0
  276. package/dist/v4-CA8ev9YY.cjs +1 -0
  277. package/dist/{vennDiagram-DHZGUBPP-7tx3VVDU.js → vennDiagram-CIIHVFJN-CdmcxixA.js} +192 -192
  278. package/dist/vennDiagram-CIIHVFJN-Dm4D6omA.cjs +34 -0
  279. package/dist/wardley-L42UT6IY-C7UjBmVh.js +3 -0
  280. package/dist/wardley-L42UT6IY-DFAYOpjD.cjs +1 -0
  281. package/dist/{wardleyDiagram-NUSXRM2D-DY51LHBa.cjs → wardleyDiagram-YWT4CUSO-C-DdutxP.cjs} +61 -3
  282. package/dist/{wardleyDiagram-NUSXRM2D-DGKU7A2U.js → wardleyDiagram-YWT4CUSO-D1o116Wi.js} +272 -206
  283. package/dist/{xychartDiagram-5P7HB3ND--7RYyckP.js → xychartDiagram-2RQKCTM6-Byw7djcg.js} +213 -213
  284. package/dist/{xychartDiagram-5P7HB3ND-Cj0HUNew.cjs → xychartDiagram-2RQKCTM6-D0D4PIQS.cjs} +6 -6
  285. package/package.json +6 -6
  286. package/dist/architecture-YZFGNWBL-BRqToLcm.js +0 -3
  287. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +0 -1
  288. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +0 -36
  289. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +0 -132
  290. package/dist/channel-CRWct3-i.js +0 -5
  291. package/dist/channel-DkTvdPpU.cjs +0 -1
  292. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +0 -23
  293. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +0 -1
  294. package/dist/chunk-426QAEUC-CDXJVpQr.js +0 -9
  295. package/dist/chunk-426QAEUC-CqN26l3E.cjs +0 -1
  296. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +0 -206
  297. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +0 -62
  298. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +0 -2
  299. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +0 -1
  300. package/dist/chunk-67CJDMHE-YMBkJcAO.js +0 -23
  301. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +0 -30
  302. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +0 -1
  303. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +0 -1
  304. package/dist/chunk-CIAEETIT-XlxsAz-4.js +0 -23
  305. package/dist/chunk-D-IZpNpi.cjs +0 -1
  306. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +0 -1
  307. package/dist/chunk-EDXVE4YY-CGNVB686.js +0 -25
  308. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +0 -10
  309. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +0 -1
  310. package/dist/chunk-FOC6F5B3-E9n6-juB.js +0 -23
  311. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +0 -122
  312. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +0 -94
  313. package/dist/chunk-K5T4RW27-DY7TOEqa.js +0 -16070
  314. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +0 -23
  315. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +0 -1
  316. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +0 -1
  317. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +0 -31
  318. package/dist/chunk-WQLz0Won.js +0 -20
  319. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +0 -1
  320. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +0 -29
  321. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +0 -29
  322. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +0 -1
  323. package/dist/clone-CQQwPjME.cjs +0 -1
  324. package/dist/clone-Dwbh_blD.js +0 -8
  325. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +0 -1
  326. package/dist/dagre-BcwvU6ZF.cjs +0 -1
  327. package/dist/dagre-D17h-Z-U.js +0 -1606
  328. package/dist/dagre-KV5264BT-BnEKAAAn.js +0 -293
  329. package/dist/dagre-KV5264BT-DRbiLA37.cjs +0 -4
  330. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +0 -101
  331. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +0 -10
  332. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +0 -24
  333. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +0 -43
  334. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +0 -24
  335. package/dist/dist-BgvMZbfo.cjs +0 -1
  336. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +0 -85
  337. package/dist/flatten-BE1bWL-7.js +0 -40
  338. package/dist/flatten-DxvYSoR8.cjs +0 -1
  339. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +0 -292
  340. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +0 -1
  341. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +0 -3
  342. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +0 -106
  343. package/dist/graphlib-CdgJ32J_.cjs +0 -1
  344. package/dist/graphlib-DbQkSsC8.js +0 -373
  345. package/dist/identity-KQSjemTb.cjs +0 -1
  346. package/dist/identity-g0dsMjx7.js +0 -393
  347. package/dist/info-OMHHGYJF-Bk0VWVNW.js +0 -3
  348. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +0 -1
  349. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +0 -19
  350. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +0 -2
  351. package/dist/isEmpty-CA3kJuev.cjs +0 -1
  352. package/dist/isEmpty-RwX-oIQS.js +0 -35
  353. package/dist/line-C7oijaT4.cjs +0 -1
  354. package/dist/mermaid-parser.core-DHpvGOZR.cjs +0 -3
  355. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +0 -3
  356. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +0 -1
  357. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +0 -3
  358. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +0 -1
  359. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +0 -30
  360. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +0 -7
  361. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +0 -1
  362. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +0 -3
  363. package/dist/reduce-B7WW9rkU.cjs +0 -1
  364. package/dist/reduce-DNnkcf3M.js +0 -532
  365. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +0 -84
  366. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +0 -10
  367. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +0 -157
  368. package/dist/src-DFxq-N5I.cjs +0 -1
  369. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +0 -217
  370. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +0 -1
  371. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +0 -27
  372. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +0 -1
  373. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +0 -1
  374. package/dist/treeView-SZITEDCU-Df3xzFtO.js +0 -3
  375. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +0 -1
  376. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +0 -3
  377. package/dist/v4-6yr83DbP.cjs +0 -1
  378. package/dist/v4-BR71w5_q.js +0 -33
  379. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +0 -34
  380. package/dist/wardley-RL74JXVD-BtHQbnUy.js +0 -3
  381. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +0 -1
  382. /package/dist/{array-D8NZ46Ht.js → array-CBdkHBGa.js} +0 -0
  383. /package/dist/{array-Dxz0O8Q3.cjs → array-Cx1JwiGD.cjs} +0 -0
  384. /package/dist/{cytoscape.esm-CrBwLFXE.cjs → cytoscape.esm-BzblyxzZ.cjs} +0 -0
  385. /package/dist/{cytoscape.esm-CPjF_mSK.js → cytoscape.esm-VShrX2U1.js} +0 -0
  386. /package/dist/{defaultLocale-DtzyZW63.cjs → defaultLocale-Bj_Ndo9V.cjs} +0 -0
  387. /package/dist/{defaultLocale-Dcyuaxxg.js → defaultLocale-dGy1YRID.js} +0 -0
  388. /package/dist/{init-BO60vQHJ.js → init-B7h4SEX5.js} +0 -0
  389. /package/dist/{init-B2MubQrj.cjs → init-CEL65JUo.cjs} +0 -0
  390. /package/dist/{katex-Du5WiYIy.js → katex-DWDh1q_h.js} +0 -0
  391. /package/dist/{path-CvfwEr8y.js → path-CAXMhBzK.js} +0 -0
  392. /package/dist/{path-Civic7PQ.cjs → path-CRahBUHI.cjs} +0 -0
  393. /package/dist/{rough.esm-BLKo1fIQ.cjs → rough.esm-BEA_SCZB.cjs} +0 -0
  394. /package/dist/{rough.esm-1mqTSjCt.js → rough.esm-TWNWL4Us.js} +0 -0
@@ -1,19 +1,19 @@
1
- import { B as e, C as t, V as n, W as r, _ as i, a, b as o, d as s, q as c, s as l, v as u, y as d } from "./chunk-ICPOFSXX-fQJ5ufMR.js";
2
- import { g as f, h as p, p as m } from "./src-BQiFKP24.js";
3
- import { h, p as g, r as _ } from "./chunk-5PVQY5BW-Dn8n6moB.js";
4
- import { t as v } from "./chunk-4BX2VUAB-BW54-JWg.js";
5
- import { t as y } from "./mermaid-parser.core-CERDf-UG.js";
6
- import { t as b } from "./chunk-QZHKN3VN-Bx8I6l3c.js";
7
- //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-UUTBAWPF.mjs
1
+ import { g as e, h as t, p as n } from "./src-v9RrE_4h.js";
2
+ import { H as r, K as i, U as a, Y as o, a as s, b as c, f as l, s as u, v as d, w as f, x as p, y as m } from "./chunk-CSCIHK7Q-9WKhcDqw.js";
3
+ import { g as h, i as g, m as _ } from "./chunk-5ZQYHXKU-C4uam08j.js";
4
+ import { t as v } from "./chunk-4BX2VUAB-BO1KRGb1.js";
5
+ import { t as y } from "./mermaid-parser.core-Dz33ts1l.js";
6
+ import { t as b } from "./chunk-QZHKN3VN-DCddt14Q.js";
7
+ //#region node_modules/mermaid/dist/chunks/mermaid.core/gitGraphDiagram-PVQCEYII.mjs
8
8
  var x = {
9
9
  NORMAL: 0,
10
10
  REVERSE: 1,
11
11
  HIGHLIGHT: 2,
12
12
  MERGE: 3,
13
13
  CHERRY_PICK: 4
14
- }, ee = s.gitGraph, S = /* @__PURE__ */ p(() => _({
14
+ }, ee = l.gitGraph, S = /* @__PURE__ */ t(() => g({
15
15
  ...ee,
16
- ...d().gitGraph
16
+ ...c().gitGraph
17
17
  }), "getConfig"), C = new b(() => {
18
18
  let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
19
19
  return {
@@ -32,9 +32,9 @@ var x = {
32
32
  };
33
33
  });
34
34
  function w() {
35
- return g({ length: 7 });
35
+ return _({ length: 7 });
36
36
  }
37
- p(w, "getID");
37
+ t(w, "getID");
38
38
  function T(e, t) {
39
39
  let n = /* @__PURE__ */ Object.create(null);
40
40
  return e.reduce((e, r) => {
@@ -42,162 +42,162 @@ function T(e, t) {
42
42
  return n[i] || (n[i] = !0, e.push(r)), e;
43
43
  }, []);
44
44
  }
45
- p(T, "uniqBy");
46
- var te = /* @__PURE__ */ p(function(e) {
45
+ t(T, "uniqBy");
46
+ var te = /* @__PURE__ */ t(function(e) {
47
47
  C.records.direction = e;
48
- }, "setDirection"), ne = /* @__PURE__ */ p(function(e) {
49
- f.debug("options str", e), e = e?.trim(), e ||= "{}";
48
+ }, "setDirection"), ne = /* @__PURE__ */ t(function(t) {
49
+ e.debug("options str", t), t = t?.trim(), t ||= "{}";
50
50
  try {
51
- C.records.options = JSON.parse(e);
52
- } catch (e) {
53
- f.error("error while parsing gitGraph options", e.message);
51
+ C.records.options = JSON.parse(t);
52
+ } catch (t) {
53
+ e.error("error while parsing gitGraph options", t.message);
54
54
  }
55
- }, "setOptions"), re = /* @__PURE__ */ p(function() {
55
+ }, "setOptions"), re = /* @__PURE__ */ t(function() {
56
56
  return C.records.options;
57
- }, "getOptions"), ie = /* @__PURE__ */ p(function(e) {
58
- let t = e.msg, n = e.id, r = e.type, i = e.tags;
59
- f.info("commit", t, n, r, i), f.debug("Entering commit:", t, n, r, i);
60
- let a = S();
61
- n = l.sanitizeText(n, a), t = l.sanitizeText(t, a), i = i?.map((e) => l.sanitizeText(e, a));
62
- let o = {
63
- id: n || C.records.seq + "-" + w(),
64
- message: t,
57
+ }, "getOptions"), ie = /* @__PURE__ */ t(function(t) {
58
+ let n = t.msg, r = t.id, i = t.type, a = t.tags;
59
+ e.info("commit", n, r, i, a), e.debug("Entering commit:", n, r, i, a);
60
+ let o = S();
61
+ r = u.sanitizeText(r, o), n = u.sanitizeText(n, o), a = a?.map((e) => u.sanitizeText(e, o));
62
+ let s = {
63
+ id: r || C.records.seq + "-" + w(),
64
+ message: n,
65
65
  seq: C.records.seq++,
66
- type: r ?? x.NORMAL,
67
- tags: i ?? [],
66
+ type: i ?? x.NORMAL,
67
+ tags: a ?? [],
68
68
  parents: C.records.head == null ? [] : [C.records.head.id],
69
69
  branch: C.records.currBranch
70
70
  };
71
- C.records.head = o, f.info("main branch", a.mainBranchName), C.records.commits.has(o.id) && f.warn(`Commit ID ${o.id} already exists`), C.records.commits.set(o.id, o), C.records.branches.set(C.records.currBranch, o.id), f.debug("in pushCommit " + o.id);
72
- }, "commit"), ae = /* @__PURE__ */ p(function(e) {
73
- let t = e.name, n = e.order;
74
- 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}")`);
75
- C.records.branches.set(t, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(t, {
76
- name: t,
77
- order: n
78
- }), E(t), f.debug("in createBranch");
79
- }, "branch"), oe = /* @__PURE__ */ p((e) => {
80
- let t = e.branch, n = e.id, r = e.type, i = e.tags, a = S();
81
- t = l.sanitizeText(t, a), n &&= l.sanitizeText(n, a);
82
- 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;
83
- if (c && u && c.branch === t) throw Error(`Cannot merge branch '${t}' into itself.`);
84
- if (C.records.currBranch === t) {
71
+ 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);
72
+ }, "commit"), ae = /* @__PURE__ */ t(function(t) {
73
+ let n = t.name, r = t.order;
74
+ if (n = u.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}")`);
75
+ C.records.branches.set(n, C.records.head == null ? null : C.records.head.id), C.records.branchConfig.set(n, {
76
+ name: n,
77
+ order: r
78
+ }), E(n), e.debug("in createBranch");
79
+ }, "branch"), oe = /* @__PURE__ */ t((t) => {
80
+ let n = t.branch, r = t.id, i = t.type, a = t.tags, o = S();
81
+ n = u.sanitizeText(n, o), r &&= u.sanitizeText(r, o);
82
+ let s = C.records.branches.get(C.records.currBranch), c = C.records.branches.get(n), l = s ? C.records.commits.get(s) : void 0, d = c ? C.records.commits.get(c) : void 0;
83
+ if (l && d && l.branch === n) throw Error(`Cannot merge branch '${n}' into itself.`);
84
+ if (C.records.currBranch === n) {
85
85
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
86
86
  throw e.hash = {
87
- text: `merge ${t}`,
88
- token: `merge ${t}`,
87
+ text: `merge ${n}`,
88
+ token: `merge ${n}`,
89
89
  expected: ["branch abc"]
90
90
  }, e;
91
91
  }
92
- if (c === void 0 || !c) {
92
+ if (l === void 0 || !l) {
93
93
  let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
94
94
  throw e.hash = {
95
- text: `merge ${t}`,
96
- token: `merge ${t}`,
95
+ text: `merge ${n}`,
96
+ token: `merge ${n}`,
97
97
  expected: ["commit"]
98
98
  }, e;
99
99
  }
100
- if (!C.records.branches.has(t)) {
101
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") does not exist");
100
+ if (!C.records.branches.has(n)) {
101
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") does not exist");
102
102
  throw e.hash = {
103
- text: `merge ${t}`,
104
- token: `merge ${t}`,
105
- expected: [`branch ${t}`]
103
+ text: `merge ${n}`,
104
+ token: `merge ${n}`,
105
+ expected: [`branch ${n}`]
106
106
  }, e;
107
107
  }
108
- if (u === void 0 || !u) {
109
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
108
+ if (d === void 0 || !d) {
109
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + n + ") has no commits");
110
110
  throw e.hash = {
111
- text: `merge ${t}`,
112
- token: `merge ${t}`,
111
+ text: `merge ${n}`,
112
+ token: `merge ${n}`,
113
113
  expected: ["\"commit\""]
114
114
  }, e;
115
115
  }
116
- if (c === u) {
116
+ if (l === d) {
117
117
  let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
118
118
  throw e.hash = {
119
- text: `merge ${t}`,
120
- token: `merge ${t}`,
119
+ text: `merge ${n}`,
120
+ token: `merge ${n}`,
121
121
  expected: ["branch abc"]
122
122
  }, e;
123
123
  }
124
- if (n && C.records.commits.has(n)) {
125
- let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + n + " already exists, use different custom id");
124
+ if (r && C.records.commits.has(r)) {
125
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Commit with id:" + r + " already exists, use different custom id");
126
126
  throw e.hash = {
127
- text: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
128
- token: `merge ${t} ${n} ${r} ${i?.join(" ")}`,
129
- expected: [`merge ${t} ${n}_UNIQUE ${r} ${i?.join(" ")}`]
127
+ text: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
128
+ token: `merge ${n} ${r} ${i} ${a?.join(" ")}`,
129
+ expected: [`merge ${n} ${r}_UNIQUE ${i} ${a?.join(" ")}`]
130
130
  }, e;
131
131
  }
132
- let d = s || "", p = {
133
- id: n || `${C.records.seq}-${w()}`,
134
- message: `merged branch ${t} into ${C.records.currBranch}`,
132
+ let f = c || "", p = {
133
+ id: r || `${C.records.seq}-${w()}`,
134
+ message: `merged branch ${n} into ${C.records.currBranch}`,
135
135
  seq: C.records.seq++,
136
- parents: C.records.head == null ? [] : [C.records.head.id, d],
136
+ parents: C.records.head == null ? [] : [C.records.head.id, f],
137
137
  branch: C.records.currBranch,
138
138
  type: x.MERGE,
139
- customType: r,
140
- customId: !!n,
141
- tags: i ?? []
139
+ customType: i,
140
+ customId: !!r,
141
+ tags: a ?? []
142
142
  };
143
- C.records.head = p, C.records.commits.set(p.id, p), C.records.branches.set(C.records.currBranch, p.id), f.debug(C.records.branches), f.debug("in mergeBranch");
144
- }, "merge"), se = /* @__PURE__ */ p(function(e) {
145
- let t = e.id, n = e.targetId, r = e.tags, i = e.parent;
146
- f.debug("Entering cherryPick:", t, n, r);
147
- let a = S();
148
- 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)) {
143
+ 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");
144
+ }, "merge"), se = /* @__PURE__ */ t(function(t) {
145
+ let n = t.id, r = t.targetId, i = t.tags, a = t.parent;
146
+ e.debug("Entering cherryPick:", n, r, i);
147
+ let o = S();
148
+ if (n = u.sanitizeText(n, o), r = u.sanitizeText(r, o), i = i?.map((e) => u.sanitizeText(e, o)), a = u.sanitizeText(a, o), !n || !C.records.commits.has(n)) {
149
149
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
150
150
  throw e.hash = {
151
- text: `cherryPick ${t} ${n}`,
152
- token: `cherryPick ${t} ${n}`,
151
+ text: `cherryPick ${n} ${r}`,
152
+ token: `cherryPick ${n} ${r}`,
153
153
  expected: ["cherry-pick abc"]
154
154
  }, e;
155
155
  }
156
- let o = C.records.commits.get(t);
157
- if (o === void 0 || !o) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
158
- 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.");
159
- let s = o.branch;
160
- 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.");
161
- if (!n || !C.records.commits.has(n)) {
162
- if (s === C.records.currBranch) {
156
+ let s = C.records.commits.get(n);
157
+ if (s === void 0 || !s) throw Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
158
+ 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.");
159
+ let c = s.branch;
160
+ 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.");
161
+ if (!r || !C.records.commits.has(r)) {
162
+ if (c === C.records.currBranch) {
163
163
  let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
164
164
  throw e.hash = {
165
- text: `cherryPick ${t} ${n}`,
166
- token: `cherryPick ${t} ${n}`,
165
+ text: `cherryPick ${n} ${r}`,
166
+ token: `cherryPick ${n} ${r}`,
167
167
  expected: ["cherry-pick abc"]
168
168
  }, e;
169
169
  }
170
- let e = C.records.branches.get(C.records.currBranch);
171
- if (e === void 0 || !e) {
170
+ let t = C.records.branches.get(C.records.currBranch);
171
+ if (t === void 0 || !t) {
172
172
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
173
173
  throw e.hash = {
174
- text: `cherryPick ${t} ${n}`,
175
- token: `cherryPick ${t} ${n}`,
174
+ text: `cherryPick ${n} ${r}`,
175
+ token: `cherryPick ${n} ${r}`,
176
176
  expected: ["cherry-pick abc"]
177
177
  }, e;
178
178
  }
179
- let a = C.records.commits.get(e);
180
- if (a === void 0 || !a) {
179
+ let o = C.records.commits.get(t);
180
+ if (o === void 0 || !o) {
181
181
  let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
182
182
  throw e.hash = {
183
- text: `cherryPick ${t} ${n}`,
184
- token: `cherryPick ${t} ${n}`,
183
+ text: `cherryPick ${n} ${r}`,
184
+ token: `cherryPick ${n} ${r}`,
185
185
  expected: ["cherry-pick abc"]
186
186
  }, e;
187
187
  }
188
- let c = {
188
+ let l = {
189
189
  id: C.records.seq + "-" + w(),
190
- message: `cherry-picked ${o?.message} into ${C.records.currBranch}`,
190
+ message: `cherry-picked ${s?.message} into ${C.records.currBranch}`,
191
191
  seq: C.records.seq++,
192
- parents: C.records.head == null ? [] : [C.records.head.id, o.id],
192
+ parents: C.records.head == null ? [] : [C.records.head.id, s.id],
193
193
  branch: C.records.currBranch,
194
194
  type: x.CHERRY_PICK,
195
- tags: r ? r.filter(Boolean) : [`cherry-pick:${o.id}${o.type === x.MERGE ? `|parent:${i}` : ""}`]
195
+ tags: i ? i.filter(Boolean) : [`cherry-pick:${s.id}${s.type === x.MERGE ? `|parent:${a}` : ""}`]
196
196
  };
197
- C.records.head = c, C.records.commits.set(c.id, c), C.records.branches.set(C.records.currBranch, c.id), f.debug(C.records.branches), f.debug("in cherryPick");
197
+ 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
198
  }
199
- }, "cherryPick"), E = /* @__PURE__ */ p(function(e) {
200
- if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
199
+ }, "cherryPick"), E = /* @__PURE__ */ t(function(e) {
200
+ if (e = u.sanitizeText(e, S()), C.records.branches.has(e)) {
201
201
  C.records.currBranch = e;
202
202
  let t = C.records.branches.get(C.records.currBranch);
203
203
  t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
@@ -214,49 +214,49 @@ function D(e, t, n) {
214
214
  let r = e.indexOf(t);
215
215
  r === -1 ? e.push(n) : e.splice(r, 1, n);
216
216
  }
217
- p(D, "upsert");
218
- function O(e) {
219
- let t = e.reduce((e, t) => e.seq > t.seq ? e : t, e[0]), n = "";
220
- e.forEach(function(e) {
221
- e === t ? n += " *" : n += " |";
217
+ t(D, "upsert");
218
+ function O(t) {
219
+ let n = t.reduce((e, t) => e.seq > t.seq ? e : t, t[0]), r = "";
220
+ t.forEach(function(e) {
221
+ e === n ? r += " *" : r += " |";
222
222
  });
223
- let r = [
224
- n,
225
- t.id,
226
- t.seq
223
+ let i = [
224
+ r,
225
+ n.id,
226
+ n.seq
227
227
  ];
228
- for (let e in C.records.branches) C.records.branches.get(e) === t.id && r.push(e);
229
- if (f.debug(r.join(" ")), t.parents && t.parents.length == 2 && t.parents[0] && t.parents[1]) {
230
- let n = C.records.commits.get(t.parents[0]);
231
- D(e, t, n), t.parents[1] && e.push(C.records.commits.get(t.parents[1]));
232
- } else if (t.parents.length == 0) return;
233
- else if (t.parents[0]) {
234
- let n = C.records.commits.get(t.parents[0]);
235
- D(e, t, n);
228
+ for (let e in C.records.branches) C.records.branches.get(e) === n.id && i.push(e);
229
+ if (e.debug(i.join(" ")), n.parents && n.parents.length == 2 && n.parents[0] && n.parents[1]) {
230
+ let e = C.records.commits.get(n.parents[0]);
231
+ D(t, n, e), n.parents[1] && t.push(C.records.commits.get(n.parents[1]));
232
+ } else if (n.parents.length == 0) return;
233
+ else if (n.parents[0]) {
234
+ let e = C.records.commits.get(n.parents[0]);
235
+ D(t, n, e);
236
236
  }
237
- e = T(e, (e) => e.id), O(e);
237
+ t = T(t, (e) => e.id), O(t);
238
238
  }
239
- p(O, "prettyPrintCommitHistory");
240
- var ce = /* @__PURE__ */ p(function() {
241
- f.debug(C.records.commits);
242
- let e = k()[0];
243
- O([e]);
244
- }, "prettyPrint"), le = /* @__PURE__ */ p(function() {
245
- C.reset(), a();
246
- }, "clear"), ue = /* @__PURE__ */ p(function() {
239
+ t(O, "prettyPrintCommitHistory");
240
+ var ce = /* @__PURE__ */ t(function() {
241
+ e.debug(C.records.commits);
242
+ let t = k()[0];
243
+ O([t]);
244
+ }, "prettyPrint"), le = /* @__PURE__ */ t(function() {
245
+ C.reset(), s();
246
+ }, "clear"), ue = /* @__PURE__ */ t(function() {
247
247
  return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
248
248
  ...e,
249
249
  order: parseFloat(`0.${t}`)
250
250
  }).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
251
- }, "getBranchesAsObjArray"), de = /* @__PURE__ */ p(function() {
251
+ }, "getBranchesAsObjArray"), de = /* @__PURE__ */ t(function() {
252
252
  return C.records.branches;
253
- }, "getBranches"), fe = /* @__PURE__ */ p(function() {
253
+ }, "getBranches"), fe = /* @__PURE__ */ t(function() {
254
254
  return C.records.commits;
255
- }, "getCommits"), k = /* @__PURE__ */ p(function() {
256
- let e = [...C.records.commits.values()];
257
- return e.forEach(function(e) {
258
- f.debug(e.id);
259
- }), e.sort((e, t) => e.seq - t.seq), e;
255
+ }, "getCommits"), k = /* @__PURE__ */ t(function() {
256
+ let t = [...C.records.commits.values()];
257
+ return t.forEach(function(t) {
258
+ e.debug(t.id);
259
+ }), t.sort((e, t) => e.seq - t.seq), t;
260
260
  }, "getCommitsArray"), A = {
261
261
  commitType: x,
262
262
  getConfig: S,
@@ -274,54 +274,54 @@ var ce = /* @__PURE__ */ p(function() {
274
274
  getBranches: de,
275
275
  getCommits: fe,
276
276
  getCommitsArray: k,
277
- getCurrentBranch: /* @__PURE__ */ p(function() {
277
+ getCurrentBranch: /* @__PURE__ */ t(function() {
278
278
  return C.records.currBranch;
279
279
  }, "getCurrentBranch"),
280
- getDirection: /* @__PURE__ */ p(function() {
280
+ getDirection: /* @__PURE__ */ t(function() {
281
281
  return C.records.direction;
282
282
  }, "getDirection"),
283
- getHead: /* @__PURE__ */ p(function() {
283
+ getHead: /* @__PURE__ */ t(function() {
284
284
  return C.records.head;
285
285
  }, "getHead"),
286
- setAccTitle: n,
287
- getAccTitle: u,
288
- getAccDescription: i,
289
- setAccDescription: e,
290
- setDiagramTitle: r,
291
- getDiagramTitle: t
292
- }, pe = /* @__PURE__ */ p((e, t) => {
286
+ setAccTitle: a,
287
+ getAccTitle: m,
288
+ getAccDescription: d,
289
+ setAccDescription: r,
290
+ setDiagramTitle: i,
291
+ getDiagramTitle: f
292
+ }, pe = /* @__PURE__ */ t((e, t) => {
293
293
  v(e, t), e.dir && t.setDirection(e.dir);
294
294
  for (let n of e.statements) me(n, t);
295
- }, "populate"), me = /* @__PURE__ */ p((e, t) => {
296
- let n = {
297
- Commit: /* @__PURE__ */ p((e) => t.commit(he(e)), "Commit"),
298
- Branch: /* @__PURE__ */ p((e) => t.branch(ge(e)), "Branch"),
299
- Merge: /* @__PURE__ */ p((e) => t.merge(_e(e)), "Merge"),
300
- Checkout: /* @__PURE__ */ p((e) => t.checkout(ve(e)), "Checkout"),
301
- CherryPicking: /* @__PURE__ */ p((e) => t.cherryPick(ye(e)), "CherryPicking")
302
- }[e.$type];
303
- n ? n(e) : f.error(`Unknown statement type: ${e.$type}`);
304
- }, "parseStatement"), he = /* @__PURE__ */ p((e) => ({
295
+ }, "populate"), me = /* @__PURE__ */ t((n, r) => {
296
+ let i = {
297
+ Commit: /* @__PURE__ */ t((e) => r.commit(he(e)), "Commit"),
298
+ Branch: /* @__PURE__ */ t((e) => r.branch(ge(e)), "Branch"),
299
+ Merge: /* @__PURE__ */ t((e) => r.merge(_e(e)), "Merge"),
300
+ Checkout: /* @__PURE__ */ t((e) => r.checkout(ve(e)), "Checkout"),
301
+ CherryPicking: /* @__PURE__ */ t((e) => r.cherryPick(ye(e)), "CherryPicking")
302
+ }[n.$type];
303
+ i ? i(n) : e.error(`Unknown statement type: ${n.$type}`);
304
+ }, "parseStatement"), he = /* @__PURE__ */ t((e) => ({
305
305
  id: e.id,
306
306
  msg: e.message ?? "",
307
307
  type: e.type === void 0 ? x.NORMAL : x[e.type],
308
308
  tags: e.tags ?? void 0
309
- }), "parseCommit"), ge = /* @__PURE__ */ p((e) => ({
309
+ }), "parseCommit"), ge = /* @__PURE__ */ t((e) => ({
310
310
  name: e.name,
311
311
  order: e.order ?? 0
312
- }), "parseBranch"), _e = /* @__PURE__ */ p((e) => ({
312
+ }), "parseBranch"), _e = /* @__PURE__ */ t((e) => ({
313
313
  branch: e.branch,
314
314
  id: e.id ?? "",
315
315
  type: e.type === void 0 ? void 0 : x[e.type],
316
316
  tags: e.tags ?? void 0
317
- }), "parseMerge"), ve = /* @__PURE__ */ p((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ p((e) => ({
317
+ }), "parseMerge"), ve = /* @__PURE__ */ t((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ t((e) => ({
318
318
  id: e.id,
319
319
  targetId: "",
320
320
  tags: e.tags?.length === 0 ? void 0 : e.tags,
321
321
  parent: e.parent
322
- }), "parseCherryPicking"), be = { parse: /* @__PURE__ */ p(async (e) => {
323
- let t = await y("gitGraph", e);
324
- f.debug(t), pe(t, A);
322
+ }), "parseCherryPicking"), be = { parse: /* @__PURE__ */ t(async (t) => {
323
+ let n = await y("gitGraph", t);
324
+ e.debug(n), pe(n, A);
325
325
  }, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
326
326
  "redux",
327
327
  "redux-dark",
@@ -332,27 +332,27 @@ var ce = /* @__PURE__ */ p(function() {
332
332
  "redux-dark",
333
333
  "redux-dark-color",
334
334
  "neo-dark"
335
- ]), z = /* @__PURE__ */ p((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__ */ p(() => {
335
+ ]), z = /* @__PURE__ */ t((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__ */ t(() => {
336
336
  B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
337
- }, "clear"), J = /* @__PURE__ */ p((e) => {
337
+ }, "clear"), J = /* @__PURE__ */ t((e) => {
338
338
  let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
339
339
  return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
340
340
  let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
341
341
  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);
342
342
  }), t;
343
- }, "drawText"), Y = /* @__PURE__ */ p((e) => {
344
- let t, n, r;
345
- return K === "BT" ? (n = /* @__PURE__ */ p((e, t) => e <= t, "comparisonFunc"), r = Infinity) : (n = /* @__PURE__ */ p((e, t) => e >= t, "comparisonFunc"), r = 0), e.forEach((e) => {
346
- let i = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
347
- i !== void 0 && n(i, r) && (t = e, r = i);
348
- }), t;
349
- }, "findClosestParent"), Se = /* @__PURE__ */ p((e) => {
343
+ }, "drawText"), Y = /* @__PURE__ */ t((e) => {
344
+ let n, r, i;
345
+ return K === "BT" ? (r = /* @__PURE__ */ t((e, t) => e <= t, "comparisonFunc"), i = Infinity) : (r = /* @__PURE__ */ t((e, t) => e >= t, "comparisonFunc"), i = 0), e.forEach((e) => {
346
+ let t = K === "TB" || K == "BT" ? V.get(e)?.y : V.get(e)?.x;
347
+ t !== void 0 && r(t, i) && (n = e, i = t);
348
+ }), n;
349
+ }, "findClosestParent"), Se = /* @__PURE__ */ t((e) => {
350
350
  let t = "", n = Infinity;
351
351
  return e.forEach((e) => {
352
352
  let r = V.get(e).y;
353
353
  r <= n && (t = e, n = r);
354
354
  }), t || void 0;
355
- }, "findClosestParentBT"), Ce = /* @__PURE__ */ p((e, t, n) => {
355
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ t((e, t, n) => {
356
356
  let r = n, i = n, a = [];
357
357
  e.forEach((e) => {
358
358
  let n = t.get(e);
@@ -372,13 +372,13 @@ var ce = /* @__PURE__ */ p(function() {
372
372
  });
373
373
  }
374
374
  });
375
- }, "setParallelBTPos"), we = /* @__PURE__ */ p((e) => {
375
+ }, "setParallelBTPos"), we = /* @__PURE__ */ t((e) => {
376
376
  let t = Y(e.parents.filter((e) => e !== null));
377
377
  if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
378
378
  let n = V.get(t)?.y;
379
379
  if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
380
380
  return n;
381
- }, "findClosestParentPos"), Te = /* @__PURE__ */ p((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ p((e, t) => {
381
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ t((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ t((e, t) => {
382
382
  let n = B.get(e.branch);
383
383
  if (!n) throw Error(`Branch not found for commit ${e.id}`);
384
384
  let r = n.pos, i = t + j;
@@ -389,7 +389,7 @@ var ce = /* @__PURE__ */ p(function() {
389
389
  x: r,
390
390
  y: i
391
391
  };
392
- }, "setCommitPosition"), De = /* @__PURE__ */ p((e, t, n) => {
392
+ }, "setCommitPosition"), De = /* @__PURE__ */ t((e, t, n) => {
393
393
  let r = B.get(e.branch);
394
394
  if (!r) throw Error(`Branch not found for commit ${e.id}`);
395
395
  let i = t + n, a = r.pos;
@@ -397,22 +397,22 @@ var ce = /* @__PURE__ */ p(function() {
397
397
  x: a,
398
398
  y: i
399
399
  });
400
- }, "setRootPosition"), Oe = /* @__PURE__ */ p((e, t, n, r, i, a) => {
401
- let { theme: s } = o(), c = I.has(s ?? ""), l = R.has(s ?? ""), u = xe.has(s ?? "");
402
- 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`);
403
- 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}`);
400
+ }, "setRootPosition"), Oe = /* @__PURE__ */ t((e, t, n, r, i, a) => {
401
+ let { theme: o } = p(), s = I.has(o ?? ""), c = R.has(o ?? ""), l = xe.has(o ?? "");
402
+ 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`);
403
+ 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}`);
404
404
  else {
405
405
  let o = e.append("circle");
406
- 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) {
406
+ 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
407
  let a = e.append("circle");
408
- 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)}`);
408
+ 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
409
  }
410
410
  if (a === x.REVERSE) {
411
- let a = e.append("path"), o = c ? 4 : 5;
412
- 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)}`);
411
+ let a = e.append("path"), o = s ? 4 : 5;
412
+ 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)}`);
413
413
  }
414
414
  }
415
- }, "drawCommitBullet"), ke = /* @__PURE__ */ p((e, t, n, r, i) => {
415
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ t((e, t, n, r, i) => {
416
416
  if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
417
417
  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();
418
418
  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)) if (K === "TB" || K === "BT") s.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")"), o.attr("transform", "rotate(-45, " + n.x + ", " + n.y + ")");
@@ -421,7 +421,7 @@ var ce = /* @__PURE__ */ p(function() {
421
421
  a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
422
422
  }
423
423
  }
424
- }, "drawCommitLabel"), Ae = /* @__PURE__ */ p((e, t, n, r) => {
424
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ t((e, t, n, r) => {
425
425
  if (t.tags.length > 0) {
426
426
  let i = 0, a = 0, o = 0, s = [];
427
427
  for (let r of t.tags.reverse()) {
@@ -454,7 +454,7 @@ var ce = /* @__PURE__ */ p(function() {
454
454
  }
455
455
  }
456
456
  }
457
- }, "drawCommitTags"), je = /* @__PURE__ */ p((e) => {
457
+ }, "drawCommitTags"), je = /* @__PURE__ */ t((e) => {
458
458
  switch (e.customType ?? e.type) {
459
459
  case x.NORMAL: return "commit-normal";
460
460
  case x.REVERSE: return "commit-reverse";
@@ -463,7 +463,7 @@ var ce = /* @__PURE__ */ p(function() {
463
463
  case x.CHERRY_PICK: return "commit-cherry-pick";
464
464
  default: return "commit-normal";
465
465
  }
466
- }, "getCommitClassType"), Me = /* @__PURE__ */ p((e, t, n, r) => {
466
+ }, "getCommitClassType"), Me = /* @__PURE__ */ t((e, t, n, r) => {
467
467
  let i = {
468
468
  x: 0,
469
469
  y: 0
@@ -478,57 +478,57 @@ var ce = /* @__PURE__ */ p(function() {
478
478
  else if (t === "BT") return (r.get(e.id) ?? i).y - M;
479
479
  else return 0;
480
480
  return 0;
481
- }, "calculatePosition"), Ne = /* @__PURE__ */ p((e, t, n) => {
481
+ }, "calculatePosition"), Ne = /* @__PURE__ */ t((e, t, n) => {
482
482
  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;
483
483
  if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
484
- let s = I.has(o().theme ?? "");
484
+ let o = I.has(p().theme ?? "");
485
485
  return {
486
486
  x: a,
487
- y: K === "TB" || K === "BT" ? r : i + (s ? L / 2 + 1 : -2),
487
+ y: K === "TB" || K === "BT" ? r : i + (o ? L / 2 + 1 : -2),
488
488
  posWithOffset: r
489
489
  };
490
- }, "getCommitPosition"), X = /* @__PURE__ */ p((e, t, n, r) => {
491
- 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__ */ p((e, n) => {
492
- let r = t.get(e)?.seq, i = t.get(n)?.seq;
490
+ }, "getCommitPosition"), X = /* @__PURE__ */ t((e, n, r, i) => {
491
+ let a = e.append("g").attr("class", "commit-bullets"), o = e.append("g").attr("class", "commit-labels"), s = K === "TB" || K === "BT" ? H : 0, c = [...n.keys()], l = i.parallelCommits ?? !1, u = /* @__PURE__ */ t((e, t) => {
492
+ let r = n.get(e)?.seq, i = n.get(t)?.seq;
493
493
  return r !== void 0 && i !== void 0 ? r - i : 0;
494
- }, "sortKeys"), u = s.sort(l);
495
- K === "BT" && (c && Ce(u, t, o), u = u.reverse()), u.forEach((e) => {
496
- let s = t.get(e);
497
- if (!s) throw Error(`Commit not found for key ${e}`);
498
- c && (o = Me(s, K, o, V));
499
- let l = Ne(s, o, c);
500
- if (n) {
501
- let e = je(s), t = s.customType ?? s.type;
502
- Oe(i, s, l, e, B.get(s.branch)?.index ?? 0, t), ke(a, s, l, o, r), Ae(a, s, l, o);
494
+ }, "sortKeys"), d = c.sort(u);
495
+ K === "BT" && (l && Ce(d, n, s), d = d.reverse()), d.forEach((e) => {
496
+ let t = n.get(e);
497
+ if (!t) throw Error(`Commit not found for key ${e}`);
498
+ l && (s = Me(t, K, s, V));
499
+ let c = Ne(t, s, l);
500
+ if (r) {
501
+ let e = je(t), n = t.customType ?? t.type;
502
+ Oe(a, t, c, e, B.get(t.branch)?.index ?? 0, n), ke(o, t, c, s, i), Ae(o, t, c, s);
503
503
  }
504
- K === "TB" || K === "BT" ? V.set(s.id, {
505
- x: l.x,
506
- y: l.posWithOffset
507
- }) : V.set(s.id, {
508
- x: l.posWithOffset,
509
- y: l.y
510
- }), o = K === "BT" && c ? o + M : o + M + j, o > G && (G = o);
504
+ K === "TB" || K === "BT" ? V.set(t.id, {
505
+ x: c.x,
506
+ y: c.posWithOffset
507
+ }) : V.set(t.id, {
508
+ x: c.posWithOffset,
509
+ y: c.y
510
+ }), s = K === "BT" && l ? s + M : s + M + j, s > G && (G = s);
511
511
  });
512
- }, "drawCommits"), Pe = /* @__PURE__ */ p((e, t, n, r, i) => {
513
- let a = (K === "TB" || K === "BT" ? n.x < r.x : n.y < r.y) ? t.branch : e.branch, o = /* @__PURE__ */ p((e) => e.branch === a, "isOnBranchToGetCurve"), s = /* @__PURE__ */ p((n) => n.seq > e.seq && n.seq < t.seq, "isBetweenCommits");
514
- return [...i.values()].some((e) => s(e) && o(e));
515
- }, "shouldRerouteArrow"), Z = /* @__PURE__ */ p((e, t, n = 0) => {
512
+ }, "drawCommits"), Pe = /* @__PURE__ */ t((e, n, r, i, a) => {
513
+ let o = (K === "TB" || K === "BT" ? r.x < i.x : r.y < i.y) ? n.branch : e.branch, s = /* @__PURE__ */ t((e) => e.branch === o, "isOnBranchToGetCurve"), c = /* @__PURE__ */ t((t) => t.seq > e.seq && t.seq < n.seq, "isBetweenCommits");
514
+ return [...a.values()].some((e) => c(e) && s(e));
515
+ }, "shouldRerouteArrow"), Z = /* @__PURE__ */ t((e, t, n = 0) => {
516
516
  let r = e + Math.abs(e - t) / 2;
517
517
  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);
518
- }, "findLane"), Fe = /* @__PURE__ */ p((e, t, n, r) => {
519
- let { theme: i } = o(), a = R.has(i ?? ""), s = V.get(t.id), c = V.get(n.id);
520
- if (s === void 0 || c === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
521
- let l = Pe(t, n, s, c, r), u = "", d = "", f = 0, p = 0, m = B.get(n.branch)?.index;
518
+ }, "findLane"), Fe = /* @__PURE__ */ t((e, t, n, r) => {
519
+ let { theme: i } = p(), a = R.has(i ?? ""), o = V.get(t.id), s = V.get(n.id);
520
+ if (o === void 0 || s === void 0) throw Error(`Commit positions not found for commits ${t.id} and ${n.id}`);
521
+ let c = Pe(t, n, o, s, r), l = "", u = "", d = 0, f = 0, m = B.get(n.branch)?.index;
522
522
  n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
523
523
  let h;
524
- if (l) {
525
- u = "A 10 10, 0, 0, 0,", d = "A 10 10, 0, 0, 1,", f = 10, p = 10;
526
- 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);
527
- 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}`);
528
- } 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}`));
524
+ if (c) {
525
+ l = "A 10 10, 0, 0, 0,", u = "A 10 10, 0, 0, 1,", d = 10, f = 10;
526
+ let e = o.y < s.y ? Z(o.y, s.y) : Z(s.y, o.y), n = o.x < s.x ? Z(o.x, s.x) : Z(s.x, o.x);
527
+ K === "TB" ? o.x < s.x ? h = `M ${o.x} ${o.y} L ${n - d} ${o.y} ${u} ${n} ${o.y + f} L ${n} ${s.y - d} ${l} ${n + f} ${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 + f} L ${n} ${s.y - d} ${u} ${n - f} ${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 - f} L ${n} ${s.y + d} ${u} ${n + f} ${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 - f} L ${n} ${s.y + d} ${l} ${n - f} ${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 + f} ${e} L ${s.x - d} ${e} ${u} ${s.x} ${e + f} 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 + f} ${e} L ${s.x - d} ${e} ${l} ${s.x} ${e - f} L ${s.x} ${s.y}`);
528
+ } else l = "A 20 20, 0, 0, 0,", u = "A 20 20, 0, 0, 1,", d = 20, f = 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 + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${u} ${s.x} ${o.y + f} 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, f = 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 - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${l} ${s.x} ${o.y + f} 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 + f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x - d} ${o.y} ${l} ${s.x} ${o.y - f} 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, f = 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 - f} ${s.y} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${s.x + d} ${o.y} ${u} ${s.x} ${o.y - f} 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 + f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y - d} ${l} ${o.x + f} ${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 - f} L ${s.x} ${s.y}` : `M ${o.x} ${o.y} L ${o.x} ${s.y + d} ${u} ${o.x + f} ${s.y} L ${s.x} ${s.y}`), o.y === s.y && (h = `M ${o.x} ${o.y} L ${s.x} ${s.y}`));
529
529
  if (h === void 0) throw Error("Line definition not found");
530
530
  e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
531
- }, "drawArrow"), Ie = /* @__PURE__ */ p((e, t) => {
531
+ }, "drawArrow"), Ie = /* @__PURE__ */ t((e, t) => {
532
532
  let n = e.append("g").attr("class", "commit-arrows");
533
533
  [...t.keys()].forEach((e) => {
534
534
  let r = t.get(e);
@@ -536,47 +536,47 @@ var ce = /* @__PURE__ */ p(function() {
536
536
  Fe(n, t.get(e), r, t);
537
537
  });
538
538
  });
539
- }, "drawArrows"), Le = /* @__PURE__ */ p((e, t, n, r) => {
540
- 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");
539
+ }, "drawArrows"), Le = /* @__PURE__ */ t((e, t, n, r) => {
540
+ let { look: i, theme: a, themeVariables: o } = p(), { dropShadow: s, THEME_COLOR_LIMIT: c } = o, l = I.has(a ?? ""), u = R.has(a ?? ""), d = e.append("g");
541
541
  t.forEach((e, t) => {
542
- let a = z(t, u ? l : F, d), o = B.get(e.name)?.pos;
542
+ let a = z(t, l ? c : F, u), o = B.get(e.name)?.pos;
543
543
  if (o === void 0) throw Error(`Position not found for branch ${e.name}`);
544
- let s = K === "TB" || K === "BT" ? o : u ? o + L / 2 + 1 : o - 2, p = f.append("line");
545
- 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);
546
- 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);
544
+ let f = K === "TB" || K === "BT" ? o : l ? o + L / 2 + 1 : o - 2, p = d.append("line");
545
+ 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);
546
+ let m = e.name, h = J(m), g = d.insert("rect"), _ = d.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + a);
547
547
  _.node().appendChild(h);
548
- let v = h.getBBox(), y = u ? 0 : 4, b = u ? 16 : 0, x = u ? L : 0;
549
- 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) + ")");
548
+ let v = h.getBBox(), y = l ? 0 : 4, b = l ? 16 : 0, x = l ? L : 0;
549
+ 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) + ")");
550
550
  });
551
- }, "drawBranches"), Re = /* @__PURE__ */ p(function(e, t, n, r, i) {
551
+ }, "drawBranches"), Re = /* @__PURE__ */ t(function(e, t, n, r, i) {
552
552
  return B.set(e, {
553
553
  pos: t,
554
554
  index: n
555
555
  }), t += 50 + (i ? 40 : 0) + (K === "TB" || K === "BT" ? r.width / 2 : 0), t;
556
- }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ p(function(e, t, n, r) {
557
- q(), f.debug("in gitgraph renderer", e + "\n", "id:", t, n);
558
- let i = r.db;
559
- if (!i.getConfig) {
560
- f.error("getConfig method is not available on db");
556
+ }, "setBranchPosition"), ze = { draw: /* @__PURE__ */ t(function(t, r, i, a) {
557
+ q(), e.debug("in gitgraph renderer", t + "\n", "id:", r, i);
558
+ let s = a.db;
559
+ if (!s.getConfig) {
560
+ e.error("getConfig method is not available on db");
561
561
  return;
562
562
  }
563
- let a = i.getConfig(), s = a.rotateCommitLabel ?? !1;
564
- U = i.getCommits();
565
- let l = i.getBranchesAsObjArray();
566
- K = i.getDirection();
567
- let u = m(`[id="${t}"]`), { look: d, theme: p, themeVariables: g } = o(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
563
+ let c = s.getConfig(), l = c.rotateCommitLabel ?? !1;
564
+ U = s.getCommits();
565
+ let u = s.getBranchesAsObjArray();
566
+ K = s.getDirection();
567
+ let d = n(`[id="${r}"]`), { look: f, theme: m, themeVariables: g } = p(), { useGradient: _, gradientStart: v, gradientStop: y, filterColor: b } = g;
568
568
  if (_) {
569
- 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%");
569
+ 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%");
570
570
  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);
571
571
  }
572
- d === "neo" && I.has(p ?? "") && 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);
572
+ f === "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);
573
573
  let x = 0;
574
- l.forEach((e, t) => {
575
- 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");
574
+ u.forEach((e, t) => {
575
+ let n = J(e.name), r = d.append("g"), i = r.insert("g").attr("class", "branchLabel"), a = i.insert("g").attr("class", "label branch-label");
576
576
  a.node()?.appendChild(n);
577
577
  let o = n.getBBox();
578
- x = Re(e.name, x, t, o, s), a.remove(), i.remove(), r.remove();
579
- }), X(u, U, !1, a), a.showBranches && Le(u, l, a, t), Ie(u, U), X(u, U, !0, a), h.insertTitle(u, "gitTitleText", a.titleTopMargin ?? 0, i.getDiagramTitle()), c(void 0, u, a.diagramPadding, a.useMaxWidth);
578
+ x = Re(e.name, x, t, o, l), a.remove(), i.remove(), r.remove();
579
+ }), X(d, U, !1, c), c.showBranches && Le(d, u, c, r), Ie(d, U), X(d, U, !0, c), h.insertTitle(d, "gitTitleText", c.titleTopMargin ?? 0, s.getDiagramTitle()), o(void 0, d, c.diagramPadding, c.useMaxWidth);
580
580
  }, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
581
581
  "redux",
582
582
  "redux-dark",
@@ -594,14 +594,14 @@ var ce = /* @__PURE__ */ p(function() {
594
594
  "redux-dark-color",
595
595
  "neo",
596
596
  "neo-dark"
597
- ]), We = /* @__PURE__ */ p((e) => {
597
+ ]), We = /* @__PURE__ */ t((e) => {
598
598
  let { svgId: t } = e, n = "";
599
599
  if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
600
600
  .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
601
601
  `;
602
602
  return n;
603
- }, "genGitGraphGradient"), Ge = /* @__PURE__ */ p((e) => {
604
- let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
603
+ }, "genGitGraphGradient"), Ge = /* @__PURE__ */ t((e) => {
604
+ let { theme: t, themeVariables: n } = c(), { borderColorArray: r } = n, i = $.has(t);
605
605
  if (Ve.has(t)) {
606
606
  let t = "";
607
607
  for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
@@ -656,7 +656,7 @@ var ce = /* @__PURE__ */ p(function() {
656
656
  `;
657
657
  return t;
658
658
  }
659
- }, "genColor"), Ke = /* @__PURE__ */ p((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
659
+ }, "genColor"), Ke = /* @__PURE__ */ t((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
660
660
  let n = t % Q;
661
661
  return `
662
662
  .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
@@ -669,8 +669,8 @@ var ce = /* @__PURE__ */ p(function() {
669
669
  parser: be,
670
670
  db: A,
671
671
  renderer: ze,
672
- styles: /* @__PURE__ */ p((e) => {
673
- let { theme: t } = d(), n = Ue.has(t);
672
+ styles: /* @__PURE__ */ t((e) => {
673
+ let { theme: t } = c(), n = Ue.has(t);
674
674
  return `
675
675
  .commit-id,
676
676
  .commit-msg,