@sme.up/ketchup2 2.0.0 → 2.2.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 (460) hide show
  1. package/dist/arc-CqG9Hxdf.cjs +1 -0
  2. package/dist/arc-Klgb378K.js +80 -0
  3. package/dist/architecture-YZFGNWBL-BRqToLcm.js +3 -0
  4. package/dist/architecture-YZFGNWBL-BTOWQWD9.cjs +1 -0
  5. package/dist/architectureDiagram-Q4EWVU46-CX_6DnSJ.cjs +36 -0
  6. package/dist/architectureDiagram-Q4EWVU46-CnzjcVBn.js +4057 -0
  7. package/dist/array-D8NZ46Ht.js +6 -0
  8. package/dist/array-Dxz0O8Q3.cjs +1 -0
  9. package/dist/assets/buttonListAssets.d.ts +8 -0
  10. package/dist/assets/buttonListAssets.d.ts.map +1 -1
  11. package/dist/assets/imageListAssets.d.ts +3 -1
  12. package/dist/assets/imageListAssets.d.ts.map +1 -1
  13. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  14. package/dist/basic-components/button/button-types.d.ts +4 -0
  15. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  16. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts +16 -0
  17. package/dist/basic-components/button-dropdown/button-dropdown-types.d.ts.map +1 -0
  18. package/dist/basic-components/button-dropdown/button-dropdown.d.ts +4 -0
  19. package/dist/basic-components/button-dropdown/button-dropdown.d.ts.map +1 -0
  20. package/dist/basic-components/button-list/button-list-types.d.ts +6 -0
  21. package/dist/basic-components/button-list/button-list-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-list/button-list.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-utils.d.ts +11 -4
  24. package/dist/basic-components/cell/cell-utils.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/image/image.d.ts.map +1 -1
  27. package/dist/basic-components/image-cell/image-cell-types.d.ts +12 -3
  28. package/dist/basic-components/image-cell/image-cell-types.d.ts.map +1 -1
  29. package/dist/basic-components/image-cell/image-cell.d.ts.map +1 -1
  30. package/dist/basic-components/list/list-types.d.ts +0 -1
  31. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  32. package/dist/basic-components/list/list.d.ts.map +1 -1
  33. package/dist/basic-components/notification/notification.assets.d.ts.map +1 -1
  34. package/dist/basic-components/select/select.d.ts.map +1 -1
  35. package/dist/basic-components/text/text.d.ts.map +1 -1
  36. package/dist/basic-components/text-editor/text-editor-utils.d.ts.map +1 -1
  37. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  38. package/dist/blockDiagram-DXYQGD6D-B0NvV2Ph.js +3033 -0
  39. package/dist/blockDiagram-DXYQGD6D-D6DypQdM.cjs +132 -0
  40. package/dist/c4Diagram-AHTNJAMY-DPijI3_r.js +2961 -0
  41. package/dist/c4Diagram-AHTNJAMY-Dgwv-e5O.cjs +10 -0
  42. package/dist/channel-CRWct3-i.js +5 -0
  43. package/dist/channel-DkTvdPpU.cjs +1 -0
  44. package/dist/chunk-2KRD3SAO-Ca3zDQyj.js +23 -0
  45. package/dist/chunk-2KRD3SAO-oZrIWZvV.cjs +1 -0
  46. package/dist/chunk-336JU56O-DQhIGd25.cjs +1 -0
  47. package/dist/chunk-336JU56O-DkZvWJVe.js +49 -0
  48. package/dist/chunk-426QAEUC-CDXJVpQr.js +9 -0
  49. package/dist/chunk-426QAEUC-CqN26l3E.cjs +1 -0
  50. package/dist/chunk-4BX2VUAB-BW54-JWg.js +8 -0
  51. package/dist/chunk-4BX2VUAB-Qba52sxc.cjs +1 -0
  52. package/dist/chunk-4TB4RGXK-B0SIkKDf.cjs +206 -0
  53. package/dist/chunk-4TB4RGXK-D2LRzcEP.js +3253 -0
  54. package/dist/chunk-55IACEB6-Bu3k0Yz5.js +8 -0
  55. package/dist/chunk-55IACEB6-DPatBzu7.cjs +1 -0
  56. package/dist/chunk-5FUZZQ4R-Cj5KbGC7.cjs +62 -0
  57. package/dist/chunk-5FUZZQ4R-D3C0F0Tr.js +3638 -0
  58. package/dist/chunk-5PVQY5BW-DEPZKGvb.cjs +2 -0
  59. package/dist/chunk-5PVQY5BW-Dn8n6moB.js +1299 -0
  60. package/dist/chunk-67CJDMHE-2Qg7i1xJ.cjs +1 -0
  61. package/dist/chunk-67CJDMHE-YMBkJcAO.js +23 -0
  62. package/dist/chunk-7N4EOEYR-C-GuhRgW.js +35 -0
  63. package/dist/chunk-7N4EOEYR-jNBQwvHx.cjs +1 -0
  64. package/dist/chunk-AA7GKIK3-B_ZB6dou.js +30 -0
  65. package/dist/chunk-AA7GKIK3-dqnTmnvO.cjs +1 -0
  66. package/dist/chunk-BSJP7CBP-CFzYPvgr.cjs +1 -0
  67. package/dist/chunk-BSJP7CBP-oNTXVRA7.js +82 -0
  68. package/dist/chunk-CIAEETIT-ClHUj0Su.cjs +1 -0
  69. package/dist/chunk-CIAEETIT-XlxsAz-4.js +23 -0
  70. package/dist/chunk-D-IZpNpi.cjs +1 -0
  71. package/dist/chunk-EDXVE4YY-1dwNWzc7.cjs +1 -0
  72. package/dist/chunk-EDXVE4YY-CGNVB686.js +25 -0
  73. package/dist/chunk-ENJZ2VHE-BAWfx0nA.cjs +10 -0
  74. package/dist/chunk-ENJZ2VHE-CZ7BvL2h.js +560 -0
  75. package/dist/{chunk-FMBD7UC4-C1wIcaJH.js → chunk-FMBD7UC4-CS9_r76V.cjs} +2 -6
  76. package/dist/chunk-FMBD7UC4-RRSc9jqt.js +5 -0
  77. package/dist/chunk-FOC6F5B3-DcZs851j.cjs +1 -0
  78. package/dist/chunk-FOC6F5B3-E9n6-juB.js +23 -0
  79. package/dist/chunk-ICPOFSXX-fQJ5ufMR.js +3320 -0
  80. package/dist/chunk-ICPOFSXX-hY6BIZ4Y.cjs +122 -0
  81. package/dist/chunk-K5T4RW27-BzDQkjC7.cjs +94 -0
  82. package/dist/chunk-K5T4RW27-DY7TOEqa.js +16070 -0
  83. package/dist/chunk-KGLVRYIC-5OJpfQCj.js +23 -0
  84. package/dist/chunk-KGLVRYIC-DnbIkai8.cjs +1 -0
  85. package/dist/chunk-LIHQZDEY-59I4-LWb.js +64 -0
  86. package/dist/chunk-LIHQZDEY-CrogR3nT.cjs +1 -0
  87. package/dist/chunk-ORNJ4GCN-CcrEtiCn.cjs +1 -0
  88. package/dist/chunk-ORNJ4GCN-CwkOSFbS.js +31 -0
  89. package/dist/chunk-OYMX7WX6-CrK-lehh.cjs +231 -0
  90. package/dist/chunk-OYMX7WX6-DJkGVCqi.js +2014 -0
  91. package/dist/chunk-QZHKN3VN-Bx8I6l3c.js +15 -0
  92. package/dist/chunk-QZHKN3VN-CSMKL2rB.cjs +1 -0
  93. package/dist/chunk-U2HBQHQK-CJ77uizk.cjs +70 -0
  94. package/dist/chunk-U2HBQHQK-Ceyeq0IV.js +1879 -0
  95. package/dist/chunk-WQLz0Won.js +20 -0
  96. package/dist/chunk-X2U36JSP-CtXjVqek.cjs +1 -0
  97. package/dist/chunk-X2U36JSP-VxRY65ea.js +67 -0
  98. package/dist/chunk-XPW4576I-BcWkx-AL.js +1146 -0
  99. package/dist/chunk-XPW4576I-D8Pp6a3j.cjs +32 -0
  100. package/dist/chunk-YZCP3GAM-D6P3SWmL.js +60 -0
  101. package/dist/chunk-YZCP3GAM-qxaNo0r8.cjs +1 -0
  102. package/dist/chunk-ZZ45TVLE-BfSqZnT4.cjs +1 -0
  103. package/dist/chunk-ZZ45TVLE-X2jolXSO.js +32 -0
  104. package/dist/classDiagram-6PBFFD2Q-BT4_JTnP.cjs +1 -0
  105. package/dist/classDiagram-6PBFFD2Q-Dgaxt4wI.js +29 -0
  106. package/dist/classDiagram-v2-HSJHXN6E-CWhiK6nm.js +29 -0
  107. package/dist/classDiagram-v2-HSJHXN6E-DkBLzgTv.cjs +1 -0
  108. package/dist/clone-CQQwPjME.cjs +1 -0
  109. package/dist/clone-Dwbh_blD.js +8 -0
  110. package/dist/components/drawer/drawer-types.d.ts +4 -0
  111. package/dist/components/drawer/drawer-types.d.ts.map +1 -1
  112. package/dist/components/image-list/components/image-list-command-panel.d.ts +15 -0
  113. package/dist/components/image-list/components/image-list-command-panel.d.ts.map +1 -0
  114. package/dist/components/image-list/components/image-list-command-trigger.d.ts +16 -0
  115. package/dist/components/image-list/components/image-list-command-trigger.d.ts.map +1 -0
  116. package/dist/components/image-list/components/image-list-filter-picker.d.ts +14 -0
  117. package/dist/components/image-list/components/image-list-filter-picker.d.ts.map +1 -0
  118. package/dist/components/image-list/components/image-list-h-strip.d.ts.map +1 -1
  119. package/dist/components/image-list/components/image-list-json-viewer.d.ts +11 -0
  120. package/dist/components/image-list/components/image-list-json-viewer.d.ts.map +1 -0
  121. package/dist/components/image-list/components/image-list-menu.d.ts.map +1 -1
  122. package/dist/components/image-list/components/image-list-navigation-picker.d.ts +6 -2
  123. package/dist/components/image-list/components/image-list-navigation-picker.d.ts.map +1 -1
  124. package/dist/components/image-list/components/image-list-sort-picker.d.ts +14 -0
  125. package/dist/components/image-list/components/image-list-sort-picker.d.ts.map +1 -0
  126. package/dist/components/image-list/components/image-list-v-strip.d.ts.map +1 -1
  127. package/dist/components/image-list/components/items/image-list-card-item.d.ts +5 -0
  128. package/dist/components/image-list/components/items/image-list-card-item.d.ts.map +1 -0
  129. package/dist/components/image-list/components/items/image-list-folder-item.d.ts.map +1 -1
  130. package/dist/components/image-list/components/items/image-list-item.d.ts.map +1 -1
  131. package/dist/components/image-list/components/menu-nav-item.d.ts.map +1 -1
  132. package/dist/components/image-list/components/navigation-modes/image-list-catalog.d.ts.map +1 -1
  133. package/dist/components/image-list/components/navigation-modes/image-list-explorer.d.ts.map +1 -1
  134. package/dist/components/image-list/components/navigation-modes/image-list-tree.d.ts.map +1 -1
  135. package/dist/components/image-list/components/strip-item.d.ts.map +1 -1
  136. package/dist/components/image-list/hooks/useCommandPickers.d.ts +13 -0
  137. package/dist/components/image-list/hooks/useCommandPickers.d.ts.map +1 -0
  138. package/dist/components/image-list/image-list-column-utils.d.ts +9 -0
  139. package/dist/components/image-list/image-list-column-utils.d.ts.map +1 -0
  140. package/dist/components/image-list/image-list-context.d.ts +5 -2
  141. package/dist/components/image-list/image-list-context.d.ts.map +1 -1
  142. package/dist/components/image-list/image-list-debug-utils.d.ts +13 -0
  143. package/dist/components/image-list/image-list-debug-utils.d.ts.map +1 -0
  144. package/dist/components/image-list/image-list-filter-context.d.ts +9 -0
  145. package/dist/components/image-list/image-list-filter-context.d.ts.map +1 -0
  146. package/dist/components/image-list/image-list-filter-utils.d.ts +12 -0
  147. package/dist/components/image-list/image-list-filter-utils.d.ts.map +1 -0
  148. package/dist/components/image-list/image-list-sort-context.d.ts +9 -0
  149. package/dist/components/image-list/image-list-sort-context.d.ts.map +1 -0
  150. package/dist/components/image-list/image-list-sort-utils.d.ts +13 -0
  151. package/dist/components/image-list/image-list-sort-utils.d.ts.map +1 -0
  152. package/dist/components/image-list/image-list-state-context.d.ts +5 -0
  153. package/dist/components/image-list/image-list-state-context.d.ts.map +1 -0
  154. package/dist/components/image-list/image-list-types.d.ts +45 -2
  155. package/dist/components/image-list/image-list-types.d.ts.map +1 -1
  156. package/dist/components/image-list/image-list-utils.d.ts +24 -1
  157. package/dist/components/image-list/image-list-utils.d.ts.map +1 -1
  158. package/dist/components/image-list/image-list.d.ts +1 -1
  159. package/dist/components/image-list/image-list.d.ts.map +1 -1
  160. package/dist/components/planner/planner-assets.d.ts +1 -1
  161. package/dist/components/planner/planner-assets.d.ts.map +1 -1
  162. package/dist/components/planner/planner-types.d.ts +1 -1
  163. package/dist/components/planner/planner-types.d.ts.map +1 -1
  164. package/dist/components/planner/planner-utils.d.ts +6 -5
  165. package/dist/components/planner/planner-utils.d.ts.map +1 -1
  166. package/dist/components/planner/planner.d.ts.map +1 -1
  167. package/dist/components/scaffold/context/scaffold-provider.d.ts.map +1 -1
  168. package/dist/components/scaffold/scaffold-types.d.ts +1 -0
  169. package/dist/components/scaffold/scaffold-types.d.ts.map +1 -1
  170. package/dist/components/timeline/timeline-types.d.ts +6 -2
  171. package/dist/components/timeline/timeline-types.d.ts.map +1 -1
  172. package/dist/components/timeline/timeline.d.ts.map +1 -1
  173. package/dist/components/toolbar/toolbar.d.ts.map +1 -1
  174. package/dist/components/tooltip/tooltip.d.ts.map +1 -1
  175. package/dist/cose-bilkent-S5V4N54A-B30Rh9DR.js +2250 -0
  176. package/dist/cose-bilkent-S5V4N54A-Bhdp-wcb.cjs +1 -0
  177. package/dist/cytoscape.esm-CPjF_mSK.js +18100 -0
  178. package/dist/cytoscape.esm-CrBwLFXE.cjs +321 -0
  179. package/dist/dagre-BcwvU6ZF.cjs +1 -0
  180. package/dist/dagre-D17h-Z-U.js +1606 -0
  181. package/dist/dagre-KV5264BT-BnEKAAAn.js +293 -0
  182. package/dist/dagre-KV5264BT-DRbiLA37.cjs +4 -0
  183. package/dist/defaultLocale-Dcyuaxxg.js +201 -0
  184. package/dist/defaultLocale-DtzyZW63.cjs +1 -0
  185. package/dist/diagram-5BDNPKRD-B_Fa4dpl.js +101 -0
  186. package/dist/diagram-5BDNPKRD-CPN8m2Hl.cjs +10 -0
  187. package/dist/diagram-G4DWMVQ6-VpXkNb67.cjs +24 -0
  188. package/dist/diagram-G4DWMVQ6-iYV58Drq.js +524 -0
  189. package/dist/diagram-MMDJMWI5-DGk_PUo9.cjs +43 -0
  190. package/dist/diagram-MMDJMWI5-DUpEI5ug.js +213 -0
  191. package/dist/diagram-TYMM5635-BH_-vSv9.cjs +24 -0
  192. package/dist/diagram-TYMM5635-DHHPZ5ZJ.js +133 -0
  193. package/dist/dist-BgvMZbfo.cjs +1 -0
  194. package/dist/dist-DL30VIBI.js +60 -0
  195. package/dist/erDiagram-SMLLAGMA-C8FM7wbJ.js +1700 -0
  196. package/dist/erDiagram-SMLLAGMA-vuYEmfFA.cjs +85 -0
  197. package/dist/flatten-BE1bWL-7.js +40 -0
  198. package/dist/flatten-DxvYSoR8.cjs +1 -0
  199. package/dist/flowDiagram-DWJPFMVM-BGtX2gw0.js +4145 -0
  200. package/dist/flowDiagram-DWJPFMVM-DWuKiJeo.cjs +162 -0
  201. package/dist/functional-components/action/action-types.d.ts +32 -2
  202. package/dist/functional-components/action/action-types.d.ts.map +1 -1
  203. package/dist/functional-components/action/action-utils.d.ts +13 -1
  204. package/dist/functional-components/action/action-utils.d.ts.map +1 -1
  205. package/dist/functional-components/action/action.d.ts.map +1 -1
  206. package/dist/functional-components/action-list/action-list.d.ts.map +1 -1
  207. package/dist/functional-components/action-list/dual-list/dual-list.d.ts.map +1 -1
  208. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts +18 -0
  209. package/dist/functional-components/timeline-engine/components/gantt/bar/gantt-bar.d.ts.map +1 -0
  210. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt-assets.d.ts +2 -0
  211. package/dist/functional-components/timeline-engine/components/gantt/gantt-assets.d.ts.map +1 -0
  212. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/gantt.d.ts +3 -3
  213. package/dist/functional-components/timeline-engine/components/gantt/gantt.d.ts.map +1 -0
  214. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/grid/gantt-grid.d.ts +3 -5
  215. package/dist/functional-components/timeline-engine/components/gantt/grid/gantt-grid.d.ts.map +1 -0
  216. package/dist/functional-components/timeline-engine/components/gantt/header/gantt-header.d.ts.map +1 -0
  217. package/dist/functional-components/timeline-engine/components/gantt/today-indicator/gantt-today-indicator.d.ts.map +1 -0
  218. package/dist/functional-components/{gantt → timeline-engine/components/gantt}/types/gantt-types.d.ts +27 -6
  219. package/dist/functional-components/timeline-engine/components/gantt/types/gantt-types.d.ts.map +1 -0
  220. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts +27 -0
  221. package/dist/functional-components/timeline-engine/components/task-list/task-list-types.d.ts.map +1 -0
  222. package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list-utils.d.ts +4 -4
  223. package/dist/functional-components/timeline-engine/components/task-list/task-list-utils.d.ts.map +1 -0
  224. package/dist/functional-components/timeline-engine/components/task-list/task-list.d.ts.map +1 -0
  225. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts +24 -0
  226. package/dist/functional-components/timeline-engine/timeline-engine-types.d.ts.map +1 -0
  227. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts +119 -0
  228. package/dist/functional-components/timeline-engine/timeline-engine-utils.d.ts.map +1 -0
  229. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts +2 -0
  230. package/dist/functional-components/timeline-engine/timeline-engine-utils.test.d.ts.map +1 -0
  231. package/dist/functional-components/timeline-engine/timeline-engine.d.ts +8 -0
  232. package/dist/functional-components/timeline-engine/timeline-engine.d.ts.map +1 -0
  233. package/dist/ganttDiagram-T4ZO3ILL-C25CnBTv.cjs +292 -0
  234. package/dist/ganttDiagram-T4ZO3ILL-PY1BUp5b.js +3077 -0
  235. package/dist/gitGraph-7Q5UKJZL-DZea3ltD.cjs +1 -0
  236. package/dist/gitGraph-7Q5UKJZL-sjlqDwJ_.js +3 -0
  237. package/dist/gitGraphDiagram-UUTBAWPF-0lCBo9nK.cjs +106 -0
  238. package/dist/gitGraphDiagram-UUTBAWPF-CDIW9-sX.js +728 -0
  239. package/dist/graphlib-CdgJ32J_.cjs +1 -0
  240. package/dist/graphlib-DbQkSsC8.js +373 -0
  241. package/dist/hooks/useClickOutside.d.ts.map +1 -1
  242. package/dist/hooks/useFocusTrap.d.ts.map +1 -1
  243. package/dist/hooks/useGanttMath.d.ts +1 -1
  244. package/dist/hooks/useGanttMath.d.ts.map +1 -1
  245. package/dist/hooks/useVirtualListScroll.d.ts.map +1 -1
  246. package/dist/identity-KQSjemTb.cjs +1 -0
  247. package/dist/identity-g0dsMjx7.js +393 -0
  248. package/dist/info-OMHHGYJF-Bk0VWVNW.js +3 -0
  249. package/dist/info-OMHHGYJF-C8QtwF0k.cjs +1 -0
  250. package/dist/infoDiagram-42DDH7IO-CQLxpytS.js +19 -0
  251. package/dist/infoDiagram-42DDH7IO-Da__a_a_.cjs +2 -0
  252. package/dist/init-B2MubQrj.cjs +1 -0
  253. package/dist/init-BO60vQHJ.js +15 -0
  254. package/dist/isEmpty-CA3kJuev.cjs +1 -0
  255. package/dist/isEmpty-RwX-oIQS.js +35 -0
  256. package/dist/ishikawaDiagram-UXIWVN3A-BblrAmns.js +718 -0
  257. package/dist/ishikawaDiagram-UXIWVN3A-BfkF39Xv.cjs +70 -0
  258. package/dist/journeyDiagram-VCZTEJTY-CCOZ1XFK.js +883 -0
  259. package/dist/journeyDiagram-VCZTEJTY-UwcVOFtb.cjs +139 -0
  260. package/dist/kanban-definition-6JOO6SKY-BWwfbdd6.js +973 -0
  261. package/dist/kanban-definition-6JOO6SKY-Coxpi43B.cjs +89 -0
  262. package/dist/katex-Du5WiYIy.js +22000 -0
  263. package/dist/katex-SAH56fvc.cjs +257 -0
  264. package/dist/ketchup2.cjs.js +197 -1
  265. package/dist/ketchup2.css +2 -1
  266. package/dist/ketchup2.es.js +132798 -52
  267. package/dist/line-C7oijaT4.cjs +1 -0
  268. package/dist/line-CrxZdHmO.js +34 -0
  269. package/dist/linear-BsPvNLJv.js +289 -0
  270. package/dist/linear-CxHa1DsM.cjs +1 -0
  271. package/dist/mermaid-parser.core-CERDf-UG.js +69 -0
  272. package/dist/mermaid-parser.core-DHpvGOZR.cjs +3 -0
  273. package/dist/mindmap-definition-QFDTVHPH--xULjpFZ.cjs +96 -0
  274. package/dist/mindmap-definition-QFDTVHPH-dYQoMeA6.js +978 -0
  275. package/dist/ordinal-C-VoL0XF.js +65 -0
  276. package/dist/ordinal-Civr0hZL.cjs +1 -0
  277. package/dist/packet-4T2RLAQJ-X0BMsNFj.js +3 -0
  278. package/dist/packet-4T2RLAQJ-lvmQnXPI.cjs +1 -0
  279. package/dist/path-Civic7PQ.cjs +1 -0
  280. package/dist/path-CvfwEr8y.js +85 -0
  281. package/dist/pie-ZZUOXDRM-CJ_fU5k1.js +3 -0
  282. package/dist/pie-ZZUOXDRM-Dp4APKqR.cjs +1 -0
  283. package/dist/pieDiagram-DEJITSTG-7we8s9eC.cjs +30 -0
  284. package/dist/pieDiagram-DEJITSTG-Dj5pX4fC.js +165 -0
  285. package/dist/quadrantDiagram-34T5L4WZ-B3BFuPYQ.cjs +7 -0
  286. package/dist/quadrantDiagram-34T5L4WZ-BKNOJBiR.js +1974 -0
  287. package/dist/radar-PYXPWWZC-BHWJy_E1.cjs +1 -0
  288. package/dist/radar-PYXPWWZC-DgZIW9Ah.js +3 -0
  289. package/dist/reduce-B7WW9rkU.cjs +1 -0
  290. package/dist/reduce-DNnkcf3M.js +532 -0
  291. package/dist/requirementDiagram-MS252O5E-BemsEy3Y.cjs +84 -0
  292. package/dist/requirementDiagram-MS252O5E-r3eZu57d.js +2221 -0
  293. package/dist/rough.esm-1mqTSjCt.js +1352 -0
  294. package/dist/rough.esm-BLKo1fIQ.cjs +1 -0
  295. package/dist/sankeyDiagram-XADWPNL6-B9YCkPHh.cjs +10 -0
  296. package/dist/sankeyDiagram-XADWPNL6-ErTVVewH.js +920 -0
  297. package/dist/sequenceDiagram-FGHM5R23-BmqbzzHY.js +4157 -0
  298. package/dist/sequenceDiagram-FGHM5R23-CBpQL6X2.cjs +157 -0
  299. package/dist/src-BQiFKP24.js +2146 -0
  300. package/dist/src-DFxq-N5I.cjs +1 -0
  301. package/dist/stateDiagram-FHFEXIEX-CL9LE-W1.js +217 -0
  302. package/dist/stateDiagram-FHFEXIEX-Cju5Z2VS.cjs +1 -0
  303. package/dist/stateDiagram-v2-QKLJ7IA2-BHoytfGp.js +27 -0
  304. package/dist/stateDiagram-v2-QKLJ7IA2-DO1H6Vqa.cjs +1 -0
  305. package/dist/timeline-definition-GMOUNBTQ-BeTHmikc.cjs +120 -0
  306. package/dist/timeline-definition-GMOUNBTQ-DgcI7XnE.js +1068 -0
  307. package/dist/treeView-SZITEDCU-CT5vX0q9.cjs +1 -0
  308. package/dist/treeView-SZITEDCU-Df3xzFtO.js +3 -0
  309. package/dist/treemap-W4RFUUIX-Bk_jVZ7D.cjs +1 -0
  310. package/dist/treemap-W4RFUUIX-ClUtdSdn.js +3 -0
  311. package/dist/types/data-structures.d.ts +9 -1
  312. package/dist/types/data-structures.d.ts.map +1 -1
  313. package/dist/utils/data-structures.d.ts +2 -0
  314. package/dist/utils/data-structures.d.ts.map +1 -1
  315. package/dist/utils/style.d.ts +13 -2
  316. package/dist/utils/style.d.ts.map +1 -1
  317. package/dist/utils/translation.d.ts.map +1 -1
  318. package/dist/v4-6yr83DbP.cjs +1 -0
  319. package/dist/v4-BR71w5_q.js +33 -0
  320. package/dist/vennDiagram-DHZGUBPP-7tx3VVDU.js +1858 -0
  321. package/dist/vennDiagram-DHZGUBPP-C16dnMoe.cjs +34 -0
  322. package/dist/wardley-RL74JXVD-BtHQbnUy.js +3 -0
  323. package/dist/wardley-RL74JXVD-y8RO5Iqv.cjs +1 -0
  324. package/dist/wardleyDiagram-NUSXRM2D-DGKU7A2U.js +578 -0
  325. package/dist/wardleyDiagram-NUSXRM2D-DY51LHBa.cjs +20 -0
  326. package/dist/xychartDiagram-5P7HB3ND--7RYyckP.js +2044 -0
  327. package/dist/xychartDiagram-5P7HB3ND-Cj0HUNew.cjs +7 -0
  328. package/package.json +31 -31
  329. package/dist/_basePickBy-CPekwY_Z.js +0 -151
  330. package/dist/_basePickBy-DDhgLyLp.cjs +0 -1
  331. package/dist/_baseUniq-CAhfZr5S.js +0 -614
  332. package/dist/_baseUniq-bLb2QO_4.cjs +0 -1
  333. package/dist/arc-CnmUepZA.cjs +0 -1
  334. package/dist/arc-Md6Ds0JZ.js +0 -83
  335. package/dist/architecture-7HQA4BMR-DLImbuCr.js +0 -6
  336. package/dist/architecture-7HQA4BMR-zD1jCFXs.cjs +0 -1
  337. package/dist/architectureDiagram-VXUJARFQ-BkTy7RJA.js +0 -4661
  338. package/dist/architectureDiagram-VXUJARFQ-Vl-ya9R6.cjs +0 -36
  339. package/dist/blockDiagram-VD42YOAC-C9AJNM79.js +0 -2256
  340. package/dist/blockDiagram-VD42YOAC-D_EmYywD.cjs +0 -122
  341. package/dist/c4Diagram-YG6GDRKO-BfwBYulK.cjs +0 -10
  342. package/dist/c4Diagram-YG6GDRKO-YW-l-SYp.js +0 -1580
  343. package/dist/channel-BGeX_R6w.cjs +0 -1
  344. package/dist/channel-lqmaHMPZ.js +0 -5
  345. package/dist/chunk-4BX2VUAB-C6nahV0u.cjs +0 -1
  346. package/dist/chunk-4BX2VUAB-UMbIiF-V.js +0 -8
  347. package/dist/chunk-55IACEB6-CH_wWg2p.js +0 -8
  348. package/dist/chunk-55IACEB6-Cxt8uWHb.cjs +0 -1
  349. package/dist/chunk-B4BG7PRW-CTNZzNh0.js +0 -1375
  350. package/dist/chunk-B4BG7PRW-ekpXKNa3.cjs +0 -165
  351. package/dist/chunk-DI55MBZ5-BrLh6Fue.js +0 -1370
  352. package/dist/chunk-DI55MBZ5-TYqUGYGr.cjs +0 -220
  353. package/dist/chunk-FMBD7UC4-D0Nmh8EL.cjs +0 -15
  354. package/dist/chunk-QN33PNHL-B91UelWj.js +0 -19
  355. package/dist/chunk-QN33PNHL-KGNgU1-8.cjs +0 -1
  356. package/dist/chunk-QZHKN3VN-IV7jnz-R.js +0 -15
  357. package/dist/chunk-QZHKN3VN-ajuovO9B.cjs +0 -1
  358. package/dist/chunk-TZMSLE5B-Bkf7U79o.cjs +0 -1
  359. package/dist/chunk-TZMSLE5B-DArsm2Pn.js +0 -64
  360. package/dist/classDiagram-2ON5EDUG-C0_Gqd5k.js +0 -16
  361. package/dist/classDiagram-2ON5EDUG-Cnous8-m.cjs +0 -1
  362. package/dist/classDiagram-v2-WZHVMYZB-C0_Gqd5k.js +0 -16
  363. package/dist/classDiagram-v2-WZHVMYZB-Cnous8-m.cjs +0 -1
  364. package/dist/clone-B_MxWhab.js +0 -8
  365. package/dist/clone-D6gFD6F-.cjs +0 -1
  366. package/dist/cose-bilkent-S5V4N54A-DHZ_jZYH.js +0 -2608
  367. package/dist/cose-bilkent-S5V4N54A-Da7jSuau.cjs +0 -1
  368. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  369. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  370. package/dist/dagre-6UL2VRFP-CI2ww-SU.js +0 -444
  371. package/dist/dagre-6UL2VRFP-qOR4yAIQ.cjs +0 -4
  372. package/dist/defaultLocale-D7EN2tov.js +0 -171
  373. package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
  374. package/dist/diagram-PSM6KHXK-1g8345m3.js +0 -531
  375. package/dist/diagram-PSM6KHXK-DHWL3g5V.cjs +0 -24
  376. package/dist/diagram-QEK2KX5R-B-VP4dVY.js +0 -217
  377. package/dist/diagram-QEK2KX5R-DDWbMmAv.cjs +0 -43
  378. package/dist/diagram-S2PKOQOG-BbSGqLET.js +0 -142
  379. package/dist/diagram-S2PKOQOG-Djw9RGNh.cjs +0 -24
  380. package/dist/erDiagram-Q2GNP2WA-CxY1P4hJ.js +0 -841
  381. package/dist/erDiagram-Q2GNP2WA-Pw9i-eBN.cjs +0 -60
  382. package/dist/flowDiagram-NV44I4VS-BOr3T0H8.js +0 -1620
  383. package/dist/flowDiagram-NV44I4VS-D9VKU1cV.cjs +0 -162
  384. package/dist/functional-components/gantt/bar/gantt-bar.d.ts +0 -17
  385. package/dist/functional-components/gantt/bar/gantt-bar.d.ts.map +0 -1
  386. package/dist/functional-components/gantt/gantt-assets.d.ts.map +0 -1
  387. package/dist/functional-components/gantt/gantt.d.ts.map +0 -1
  388. package/dist/functional-components/gantt/grid/gantt-grid.d.ts.map +0 -1
  389. package/dist/functional-components/gantt/header/gantt-header.d.ts.map +0 -1
  390. package/dist/functional-components/gantt/today-indicator/gantt-today-indicator.d.ts.map +0 -1
  391. package/dist/functional-components/gantt/types/gantt-types.d.ts.map +0 -1
  392. package/dist/functional-components/task-list/task-list-types.d.ts +0 -22
  393. package/dist/functional-components/task-list/task-list-types.d.ts.map +0 -1
  394. package/dist/functional-components/task-list/task-list-utils.d.ts.map +0 -1
  395. package/dist/functional-components/task-list/task-list.d.ts.map +0 -1
  396. package/dist/ganttDiagram-JELNMOA3-B4T6J11z.js +0 -2670
  397. package/dist/ganttDiagram-JELNMOA3-C4Y4VT0h.cjs +0 -267
  398. package/dist/gitGraph-G5XIXVHT-C5QaeLIs.cjs +0 -1
  399. package/dist/gitGraph-G5XIXVHT-bOZ2ppp1.js +0 -6
  400. package/dist/gitGraphDiagram-V2S2FVAM-CteUW9ML.js +0 -699
  401. package/dist/gitGraphDiagram-V2S2FVAM-D_v6ae_z.cjs +0 -65
  402. package/dist/graph-BBPk5jyk.cjs +0 -1
  403. package/dist/graph-h6vsxKyr.js +0 -247
  404. package/dist/hooks/usePlannerSync.d.ts +0 -11
  405. package/dist/hooks/usePlannerSync.d.ts.map +0 -1
  406. package/dist/index-CYQM-t1d.cjs +0 -390
  407. package/dist/index-FiV1b00w.js +0 -133122
  408. package/dist/info-VBDWY6EO-BEIYBsnB.cjs +0 -1
  409. package/dist/info-VBDWY6EO-BQAW_660.js +0 -6
  410. package/dist/infoDiagram-HS3SLOUP-DMalb3kC.js +0 -24
  411. package/dist/infoDiagram-HS3SLOUP-Tepm6ygN.cjs +0 -2
  412. package/dist/init-CHZsXQcr.cjs +0 -1
  413. package/dist/init-DjUOC4st.js +0 -16
  414. package/dist/journeyDiagram-XKPGCS4Q-CzePcKne.cjs +0 -139
  415. package/dist/journeyDiagram-XKPGCS4Q-D0u-RLFV.js +0 -834
  416. package/dist/kanban-definition-3W4ZIXB7-BSCzAsMJ.js +0 -719
  417. package/dist/kanban-definition-3W4ZIXB7-DdbH9sci.cjs +0 -89
  418. package/dist/katex-C2g-EhzP.cjs +0 -261
  419. package/dist/katex-CUSbq6rG.js +0 -11692
  420. package/dist/layout-6z7-eUnZ.js +0 -1335
  421. package/dist/layout-DbcrMh5B.cjs +0 -1
  422. package/dist/linear-BKevCbhh.js +0 -259
  423. package/dist/linear-C7uVEtWW.cjs +0 -1
  424. package/dist/mermaid-parser.core-Cwy51n_e.js +0 -17907
  425. package/dist/mermaid-parser.core-DQ2yhapR.cjs +0 -160
  426. package/dist/mindmap-definition-VGOIOE7T-CcEisj0R.cjs +0 -68
  427. package/dist/mindmap-definition-VGOIOE7T-xp6GmSIx.js +0 -758
  428. package/dist/ordinal-B6-f3MAq.js +0 -61
  429. package/dist/ordinal-CagbB1m8.cjs +0 -1
  430. package/dist/packet-DYOGHKS2-BGgwnMhM.js +0 -6
  431. package/dist/packet-DYOGHKS2-BWg8qxI8.cjs +0 -1
  432. package/dist/pie-VRWISCQL-DhM8CUW4.cjs +0 -1
  433. package/dist/pie-VRWISCQL-DrWIWm7W.js +0 -6
  434. package/dist/pieDiagram-ADFJNKIX-BdvacM-Z.cjs +0 -30
  435. package/dist/pieDiagram-ADFJNKIX-D6Fa7W_r.js +0 -161
  436. package/dist/quadrantDiagram-AYHSOK5B-CHMoSBvg.js +0 -1022
  437. package/dist/quadrantDiagram-AYHSOK5B-ddq5zZEg.cjs +0 -7
  438. package/dist/radar-ZZBFDIW7-CPvW4Njh.js +0 -6
  439. package/dist/radar-ZZBFDIW7-YJK72BlV.cjs +0 -1
  440. package/dist/requirementDiagram-UZGBJVZJ-Cr9HnGVO.js +0 -850
  441. package/dist/requirementDiagram-UZGBJVZJ-NdpzVbnf.cjs +0 -64
  442. package/dist/sankeyDiagram-TZEHDZUN-3f19WwKd.js +0 -810
  443. package/dist/sankeyDiagram-TZEHDZUN-D2Hzq4Kr.cjs +0 -10
  444. package/dist/sequenceDiagram-WL72ISMW-Cu-7V--6.js +0 -2511
  445. package/dist/sequenceDiagram-WL72ISMW-Nk6vhSK9.cjs +0 -145
  446. package/dist/stateDiagram-FKZM4ZOC-BSnDKUaW.cjs +0 -1
  447. package/dist/stateDiagram-FKZM4ZOC-BleTIniP.js +0 -263
  448. package/dist/stateDiagram-v2-4FDKWEC3-7EjW078x.js +0 -16
  449. package/dist/stateDiagram-v2-4FDKWEC3-BJPzO53y.cjs +0 -1
  450. package/dist/timeline-definition-IT6M3QCI-CFTjPpKy.js +0 -795
  451. package/dist/timeline-definition-IT6M3QCI-CfaGtuF2.cjs +0 -61
  452. package/dist/treemap-GDKQZRPO-CtDdEOaj.cjs +0 -1
  453. package/dist/treemap-GDKQZRPO-DlODAdQ2.js +0 -6
  454. package/dist/utils/wbs-utils.d.ts +0 -143
  455. package/dist/utils/wbs-utils.d.ts.map +0 -1
  456. package/dist/xychartDiagram-PRI3JC2R-mShGv2CD.cjs +0 -7
  457. package/dist/xychartDiagram-PRI3JC2R-vEJER5zT.js +0 -1340
  458. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/header/gantt-header.d.ts +0 -0
  459. /package/dist/functional-components/{gantt → timeline-engine/components/gantt}/today-indicator/gantt-today-indicator.d.ts +0 -0
  460. /package/dist/functional-components/{task-list → timeline-engine/components/task-list}/task-list.d.ts +0 -0
@@ -0,0 +1,728 @@
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
8
+ var x = {
9
+ NORMAL: 0,
10
+ REVERSE: 1,
11
+ HIGHLIGHT: 2,
12
+ MERGE: 3,
13
+ CHERRY_PICK: 4
14
+ }, ee = s.gitGraph, S = /* @__PURE__ */ p(() => _({
15
+ ...ee,
16
+ ...d().gitGraph
17
+ }), "getConfig"), C = new b(() => {
18
+ let e = S(), t = e.mainBranchName, n = e.mainBranchOrder;
19
+ return {
20
+ mainBranchName: t,
21
+ commits: /* @__PURE__ */ new Map(),
22
+ head: null,
23
+ branchConfig: /* @__PURE__ */ new Map([[t, {
24
+ name: t,
25
+ order: n
26
+ }]]),
27
+ branches: /* @__PURE__ */ new Map([[t, null]]),
28
+ currBranch: t,
29
+ direction: "LR",
30
+ seq: 0,
31
+ options: {}
32
+ };
33
+ });
34
+ function w() {
35
+ return g({ length: 7 });
36
+ }
37
+ p(w, "getID");
38
+ function T(e, t) {
39
+ let n = /* @__PURE__ */ Object.create(null);
40
+ return e.reduce((e, r) => {
41
+ let i = t(r);
42
+ return n[i] || (n[i] = !0, e.push(r)), e;
43
+ }, []);
44
+ }
45
+ p(T, "uniqBy");
46
+ var te = /* @__PURE__ */ p(function(e) {
47
+ C.records.direction = e;
48
+ }, "setDirection"), ne = /* @__PURE__ */ p(function(e) {
49
+ f.debug("options str", e), e = e?.trim(), e ||= "{}";
50
+ try {
51
+ C.records.options = JSON.parse(e);
52
+ } catch (e) {
53
+ f.error("error while parsing gitGraph options", e.message);
54
+ }
55
+ }, "setOptions"), re = /* @__PURE__ */ p(function() {
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,
65
+ seq: C.records.seq++,
66
+ type: r ?? x.NORMAL,
67
+ tags: i ?? [],
68
+ parents: C.records.head == null ? [] : [C.records.head.id],
69
+ branch: C.records.currBranch
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) {
85
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Cannot merge a branch to itself");
86
+ throw e.hash = {
87
+ text: `merge ${t}`,
88
+ token: `merge ${t}`,
89
+ expected: ["branch abc"]
90
+ }, e;
91
+ }
92
+ if (c === void 0 || !c) {
93
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "merge". Current branch (${C.records.currBranch})has no commits`);
94
+ throw e.hash = {
95
+ text: `merge ${t}`,
96
+ token: `merge ${t}`,
97
+ expected: ["commit"]
98
+ }, e;
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");
102
+ throw e.hash = {
103
+ text: `merge ${t}`,
104
+ token: `merge ${t}`,
105
+ expected: [`branch ${t}`]
106
+ }, e;
107
+ }
108
+ if (u === void 0 || !u) {
109
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Branch to be merged (" + t + ") has no commits");
110
+ throw e.hash = {
111
+ text: `merge ${t}`,
112
+ token: `merge ${t}`,
113
+ expected: ["\"commit\""]
114
+ }, e;
115
+ }
116
+ if (c === u) {
117
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"merge\". Both branches have same head");
118
+ throw e.hash = {
119
+ text: `merge ${t}`,
120
+ token: `merge ${t}`,
121
+ expected: ["branch abc"]
122
+ }, e;
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");
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(" ")}`]
130
+ }, e;
131
+ }
132
+ let d = s || "", p = {
133
+ id: n || `${C.records.seq}-${w()}`,
134
+ message: `merged branch ${t} into ${C.records.currBranch}`,
135
+ seq: C.records.seq++,
136
+ parents: C.records.head == null ? [] : [C.records.head.id, d],
137
+ branch: C.records.currBranch,
138
+ type: x.MERGE,
139
+ customType: r,
140
+ customId: !!n,
141
+ tags: i ?? []
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)) {
149
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit id should exist and provided");
150
+ throw e.hash = {
151
+ text: `cherryPick ${t} ${n}`,
152
+ token: `cherryPick ${t} ${n}`,
153
+ expected: ["cherry-pick abc"]
154
+ }, e;
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) {
163
+ let e = /* @__PURE__ */ Error("Incorrect usage of \"cherryPick\". Source commit is already on current branch");
164
+ throw e.hash = {
165
+ text: `cherryPick ${t} ${n}`,
166
+ token: `cherryPick ${t} ${n}`,
167
+ expected: ["cherry-pick abc"]
168
+ }, e;
169
+ }
170
+ let e = C.records.branches.get(C.records.currBranch);
171
+ if (e === void 0 || !e) {
172
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
173
+ throw e.hash = {
174
+ text: `cherryPick ${t} ${n}`,
175
+ token: `cherryPick ${t} ${n}`,
176
+ expected: ["cherry-pick abc"]
177
+ }, e;
178
+ }
179
+ let a = C.records.commits.get(e);
180
+ if (a === void 0 || !a) {
181
+ let e = /* @__PURE__ */ Error(`Incorrect usage of "cherry-pick". Current branch (${C.records.currBranch})has no commits`);
182
+ throw e.hash = {
183
+ text: `cherryPick ${t} ${n}`,
184
+ token: `cherryPick ${t} ${n}`,
185
+ expected: ["cherry-pick abc"]
186
+ }, e;
187
+ }
188
+ let c = {
189
+ id: C.records.seq + "-" + w(),
190
+ message: `cherry-picked ${o?.message} into ${C.records.currBranch}`,
191
+ seq: C.records.seq++,
192
+ parents: C.records.head == null ? [] : [C.records.head.id, o.id],
193
+ branch: C.records.currBranch,
194
+ type: x.CHERRY_PICK,
195
+ tags: r ? r.filter(Boolean) : [`cherry-pick:${o.id}${o.type === x.MERGE ? `|parent:${i}` : ""}`]
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");
198
+ }
199
+ }, "cherryPick"), E = /* @__PURE__ */ p(function(e) {
200
+ if (e = l.sanitizeText(e, S()), C.records.branches.has(e)) {
201
+ C.records.currBranch = e;
202
+ let t = C.records.branches.get(C.records.currBranch);
203
+ t === void 0 || !t ? C.records.head = null : C.records.head = C.records.commits.get(t) ?? null;
204
+ } else {
205
+ let t = /* @__PURE__ */ Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
206
+ throw t.hash = {
207
+ text: `checkout ${e}`,
208
+ token: `checkout ${e}`,
209
+ expected: [`branch ${e}`]
210
+ }, t;
211
+ }
212
+ }, "checkout");
213
+ function D(e, t, n) {
214
+ let r = e.indexOf(t);
215
+ r === -1 ? e.push(n) : e.splice(r, 1, n);
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 += " |";
222
+ });
223
+ let r = [
224
+ n,
225
+ t.id,
226
+ t.seq
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);
236
+ }
237
+ e = T(e, (e) => e.id), O(e);
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() {
247
+ return [...C.records.branchConfig.values()].map((e, t) => e.order !== null && e.order !== void 0 ? e : {
248
+ ...e,
249
+ order: parseFloat(`0.${t}`)
250
+ }).sort((e, t) => (e.order ?? 0) - (t.order ?? 0)).map(({ name: e }) => ({ name: e }));
251
+ }, "getBranchesAsObjArray"), de = /* @__PURE__ */ p(function() {
252
+ return C.records.branches;
253
+ }, "getBranches"), fe = /* @__PURE__ */ p(function() {
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;
260
+ }, "getCommitsArray"), A = {
261
+ commitType: x,
262
+ getConfig: S,
263
+ setDirection: te,
264
+ setOptions: ne,
265
+ getOptions: re,
266
+ commit: ie,
267
+ branch: ae,
268
+ merge: oe,
269
+ cherryPick: se,
270
+ checkout: E,
271
+ prettyPrint: ce,
272
+ clear: le,
273
+ getBranchesAsObjArray: ue,
274
+ getBranches: de,
275
+ getCommits: fe,
276
+ getCommitsArray: k,
277
+ getCurrentBranch: /* @__PURE__ */ p(function() {
278
+ return C.records.currBranch;
279
+ }, "getCurrentBranch"),
280
+ getDirection: /* @__PURE__ */ p(function() {
281
+ return C.records.direction;
282
+ }, "getDirection"),
283
+ getHead: /* @__PURE__ */ p(function() {
284
+ return C.records.head;
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) => {
293
+ v(e, t), e.dir && t.setDirection(e.dir);
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) => ({
305
+ id: e.id,
306
+ msg: e.message ?? "",
307
+ type: e.type === void 0 ? x.NORMAL : x[e.type],
308
+ tags: e.tags ?? void 0
309
+ }), "parseCommit"), ge = /* @__PURE__ */ p((e) => ({
310
+ name: e.name,
311
+ order: e.order ?? 0
312
+ }), "parseBranch"), _e = /* @__PURE__ */ p((e) => ({
313
+ branch: e.branch,
314
+ id: e.id ?? "",
315
+ type: e.type === void 0 ? void 0 : x[e.type],
316
+ tags: e.tags ?? void 0
317
+ }), "parseMerge"), ve = /* @__PURE__ */ p((e) => e.branch, "parseCheckout"), ye = /* @__PURE__ */ p((e) => ({
318
+ id: e.id,
319
+ targetId: "",
320
+ tags: e.tags?.length === 0 ? void 0 : e.tags,
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);
325
+ }, "parse") }, j = 10, M = 40, N = 4, P = 2, F = 8, I = /* @__PURE__ */ new Set([
326
+ "redux",
327
+ "redux-dark",
328
+ "redux-color",
329
+ "redux-dark-color"
330
+ ]), L = 12, R = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), xe = /* @__PURE__ */ new Set([
331
+ "dark",
332
+ "redux-dark",
333
+ "redux-dark-color",
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(() => {
336
+ B.clear(), V.clear(), U.clear(), G = 0, W = [], K = "LR";
337
+ }, "clear"), J = /* @__PURE__ */ p((e) => {
338
+ let t = document.createElementNS("http://www.w3.org/2000/svg", "text");
339
+ return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((e) => {
340
+ let n = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
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
+ }), 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) => {
350
+ let t = "", n = Infinity;
351
+ return e.forEach((e) => {
352
+ let r = V.get(e).y;
353
+ r <= n && (t = e, n = r);
354
+ }), t || void 0;
355
+ }, "findClosestParentBT"), Ce = /* @__PURE__ */ p((e, t, n) => {
356
+ let r = n, i = n, a = [];
357
+ e.forEach((e) => {
358
+ let n = t.get(e);
359
+ if (!n) throw Error(`Commit not found for key ${e}`);
360
+ n.parents.length ? (r = Te(n), i = Math.max(r, i)) : a.push(n), Ee(n, r);
361
+ }), r = i, a.forEach((e) => {
362
+ De(e, r, n);
363
+ }), e.forEach((e) => {
364
+ let n = t.get(e);
365
+ if (n?.parents.length) {
366
+ let e = Se(n.parents);
367
+ r = V.get(e).y - M, r <= i && (i = r);
368
+ let t = B.get(n.branch).pos, a = r - j;
369
+ V.set(n.id, {
370
+ x: t,
371
+ y: a
372
+ });
373
+ }
374
+ });
375
+ }, "setParallelBTPos"), we = /* @__PURE__ */ p((e) => {
376
+ let t = Y(e.parents.filter((e) => e !== null));
377
+ if (!t) throw Error(`Closest parent not found for commit ${e.id}`);
378
+ let n = V.get(t)?.y;
379
+ if (n === void 0) throw Error(`Closest parent position not found for commit ${e.id}`);
380
+ return n;
381
+ }, "findClosestParentPos"), Te = /* @__PURE__ */ p((e) => we(e) + M, "calculateCommitPosition"), Ee = /* @__PURE__ */ p((e, t) => {
382
+ let n = B.get(e.branch);
383
+ if (!n) throw Error(`Branch not found for commit ${e.id}`);
384
+ let r = n.pos, i = t + j;
385
+ return V.set(e.id, {
386
+ x: r,
387
+ y: i
388
+ }), {
389
+ x: r,
390
+ y: i
391
+ };
392
+ }, "setCommitPosition"), De = /* @__PURE__ */ p((e, t, n) => {
393
+ let r = B.get(e.branch);
394
+ if (!r) throw Error(`Branch not found for commit ${e.id}`);
395
+ let i = t + n, a = r.pos;
396
+ V.set(e.id, {
397
+ x: a,
398
+ y: i
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}`);
404
+ else {
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) {
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)}`);
409
+ }
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)}`);
413
+ }
414
+ }
415
+ }, "drawCommitBullet"), ke = /* @__PURE__ */ p((e, t, n, r, i) => {
416
+ if (t.type !== x.CHERRY_PICK && (t.customId && t.type === x.MERGE || t.type !== x.MERGE) && i.showCommitLabel) {
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
+ 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 + ")");
419
+ else {
420
+ let e = -7.5 - (c.width + 10) / 25 * 9.5, t = 10 + c.width / 25 * 8.5;
421
+ a.attr("transform", "translate(" + e + ", " + t + ") rotate(-45, " + r + ", " + n.y + ")");
422
+ }
423
+ }
424
+ }, "drawCommitLabel"), Ae = /* @__PURE__ */ p((e, t, n, r) => {
425
+ if (t.tags.length > 0) {
426
+ let i = 0, a = 0, o = 0, s = [];
427
+ for (let r of t.tags.reverse()) {
428
+ let t = e.insert("polygon"), c = e.append("circle"), l = e.append("text").attr("y", n.y - 16 - i).attr("class", "tag-label").text(r), u = l.node()?.getBBox();
429
+ if (!u) throw Error("Tag bbox not found");
430
+ a = Math.max(a, u.width), o = Math.max(o, u.height), l.attr("x", n.posWithOffset - u.width / 2), s.push({
431
+ tag: l,
432
+ hole: c,
433
+ rect: t,
434
+ yOffset: i
435
+ }), i += 20;
436
+ }
437
+ for (let { tag: e, hole: t, rect: i, yOffset: c } of s) {
438
+ let s = o / 2, l = n.y - 19.2 - c;
439
+ if (i.attr("class", "tag-label-bkg").attr("points", `
440
+ ${r - a / 2 - N / 2},${l + P}
441
+ ${r - a / 2 - N / 2},${l - P}
442
+ ${n.posWithOffset - a / 2 - N},${l - s - P}
443
+ ${n.posWithOffset + a / 2 + N},${l - s - P}
444
+ ${n.posWithOffset + a / 2 + N},${l + s + P}
445
+ ${n.posWithOffset - a / 2 - N},${l + s + P}`), t.attr("cy", l).attr("cx", r - a / 2 + N / 2).attr("r", 1.5).attr("class", "tag-hole"), K === "TB" || K === "BT") {
446
+ let o = r + c;
447
+ i.attr("class", "tag-label-bkg").attr("points", `
448
+ ${n.x},${o + 2}
449
+ ${n.x},${o - 2}
450
+ ${n.x + j},${o - s - 2}
451
+ ${n.x + j + a + 4},${o - s - 2}
452
+ ${n.x + j + a + 4},${o + s + 2}
453
+ ${n.x + j},${o + s + 2}`).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), t.attr("cx", n.x + N / 2).attr("cy", o).attr("transform", "translate(12,12) rotate(45, " + n.x + "," + r + ")"), e.attr("x", n.x + 5).attr("y", o + 3).attr("transform", "translate(14,14) rotate(45, " + n.x + "," + r + ")");
454
+ }
455
+ }
456
+ }
457
+ }, "drawCommitTags"), je = /* @__PURE__ */ p((e) => {
458
+ switch (e.customType ?? e.type) {
459
+ case x.NORMAL: return "commit-normal";
460
+ case x.REVERSE: return "commit-reverse";
461
+ case x.HIGHLIGHT: return "commit-highlight";
462
+ case x.MERGE: return "commit-merge";
463
+ case x.CHERRY_PICK: return "commit-cherry-pick";
464
+ default: return "commit-normal";
465
+ }
466
+ }, "getCommitClassType"), Me = /* @__PURE__ */ p((e, t, n, r) => {
467
+ let i = {
468
+ x: 0,
469
+ y: 0
470
+ };
471
+ if (e.parents.length > 0) {
472
+ let n = Y(e.parents);
473
+ if (n) {
474
+ let a = r.get(n) ?? i;
475
+ return t === "TB" ? a.y + M : t === "BT" ? (r.get(e.id) ?? i).y - M : a.x + M;
476
+ }
477
+ } else if (t === "TB") return H;
478
+ else if (t === "BT") return (r.get(e.id) ?? i).y - M;
479
+ else return 0;
480
+ return 0;
481
+ }, "calculatePosition"), Ne = /* @__PURE__ */ p((e, t, n) => {
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
+ if (a === void 0 || i === void 0) throw Error(`Position were undefined for commit ${e.id}`);
484
+ let s = I.has(o().theme ?? "");
485
+ return {
486
+ x: a,
487
+ y: K === "TB" || K === "BT" ? r : i + (s ? L / 2 + 1 : -2),
488
+ posWithOffset: r
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;
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);
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);
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) => {
516
+ let r = e + Math.abs(e - t) / 2;
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;
522
+ n.type === x.MERGE && t.id !== n.parents[0] && (m = B.get(t.branch)?.index);
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}`));
529
+ if (h === void 0) throw Error("Line definition not found");
530
+ e.append("path").attr("d", h).attr("class", "arrow arrow" + z(m, F, a));
531
+ }, "drawArrow"), Ie = /* @__PURE__ */ p((e, t) => {
532
+ let n = e.append("g").attr("class", "commit-arrows");
533
+ [...t.keys()].forEach((e) => {
534
+ let r = t.get(e);
535
+ r.parents && r.parents.length > 0 && r.parents.forEach((e) => {
536
+ Fe(n, t.get(e), r, t);
537
+ });
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");
541
+ t.forEach((e, t) => {
542
+ let a = z(t, u ? l : F, d), o = B.get(e.name)?.pos;
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);
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) + ")");
550
+ });
551
+ }, "drawBranches"), Re = /* @__PURE__ */ p(function(e, t, n, r, i) {
552
+ return B.set(e, {
553
+ pos: t,
554
+ index: n
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");
561
+ return;
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;
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%");
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
+ }
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);
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");
576
+ a.node()?.appendChild(n);
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);
580
+ }, "draw") }, Q = 8, $ = /* @__PURE__ */ new Set([
581
+ "redux",
582
+ "redux-dark",
583
+ "redux-color",
584
+ "redux-dark-color"
585
+ ]), Be = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), Ve = /* @__PURE__ */ new Set(["neo", "neo-dark"]), He = /* @__PURE__ */ new Set([
586
+ "dark",
587
+ "redux-dark",
588
+ "redux-dark-color",
589
+ "neo-dark"
590
+ ]), Ue = /* @__PURE__ */ new Set([
591
+ "redux",
592
+ "redux-dark",
593
+ "redux-color",
594
+ "redux-dark-color",
595
+ "neo",
596
+ "neo-dark"
597
+ ]), We = /* @__PURE__ */ p((e) => {
598
+ let { svgId: t } = e, n = "";
599
+ if (e.useGradient && t) for (let r = 0; r < e.THEME_COLOR_LIMIT; r++) n += `
600
+ .label${r} { fill: ${e.mainBkg}; stroke: url(${t}-gradient); stroke-width: ${e.strokeWidth};}
601
+ `;
602
+ return n;
603
+ }, "genGitGraphGradient"), Ge = /* @__PURE__ */ p((e) => {
604
+ let { theme: t, themeVariables: n } = d(), { borderColorArray: r } = n, i = $.has(t);
605
+ if (Ve.has(t)) {
606
+ let t = "";
607
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) if (n === 0) t += `
608
+ .branch-label${n} { fill: ${e.nodeBorder};}
609
+ .commit${n} { stroke: ${e.nodeBorder}; }
610
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
611
+ .arrow${n} { stroke: ${e.nodeBorder}; }
612
+ .commit-bullets { fill: ${e.nodeBorder}; }
613
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
614
+ ${We(e)}`;
615
+ else {
616
+ let r = n % Q;
617
+ t += `
618
+ .branch-label${n} { fill: ${e["gitBranchLabel" + r]}; }
619
+ .commit${n} { stroke: ${e["git" + r]}; fill: ${e["git" + r]}; }
620
+ .commit-highlight${n} { stroke: ${e["gitInv" + r]}; fill: ${e["gitInv" + r]}; }
621
+ .arrow${n} { stroke: ${e["git" + r]}; }
622
+ `;
623
+ }
624
+ return t;
625
+ } else if (Be.has(t)) {
626
+ let n = "";
627
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) n += `
628
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
629
+ .commit${a} { stroke: ${e.nodeBorder}; }
630
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
631
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
632
+ .arrow${a} { stroke: ${e.nodeBorder}; }
633
+ .commit-bullets { fill: ${e.nodeBorder}; }
634
+ `;
635
+ else {
636
+ let o = a % r.length;
637
+ n += `
638
+ .branch-label${a} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
639
+ .commit${a} { stroke: ${r[o]}; fill: ${r[o]}; }
640
+ .commit-highlight${a} { stroke: ${r[o]}; fill: ${r[o]}; }
641
+ .label${a} { fill: ${He.has(t) ? e.mainBkg : r[o]}; stroke: ${r[o]}; stroke-width: ${e.strokeWidth}; }
642
+ .arrow${a} { stroke: ${r[o]}; }
643
+ `;
644
+ }
645
+ return n;
646
+ } else {
647
+ let t = "";
648
+ for (let n = 0; n < e.THEME_COLOR_LIMIT; n++) t += `
649
+ .branch-label${n} { fill: ${e.nodeBorder}; ${i ? `font-weight:${e.noteFontWeight}` : ""} }
650
+ .commit${n} { stroke: ${e.nodeBorder}; }
651
+ .commit-highlight${n} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
652
+ .label${n} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${i ? `font-weight:${e.noteFontWeight}` : ""}}
653
+ .arrow${n} { stroke: ${e.nodeBorder}; }
654
+ .commit-bullets { fill: ${e.nodeBorder}; }
655
+ .commit-cherry-pick${n} { stroke: ${e.nodeBorder}; }
656
+ `;
657
+ return t;
658
+ }
659
+ }, "genColor"), Ke = /* @__PURE__ */ p((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (e, t) => t).map((t) => {
660
+ let n = t % Q;
661
+ return `
662
+ .branch-label${t} { fill: ${e["gitBranchLabel" + n]}; }
663
+ .commit${t} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
664
+ .commit-highlight${t} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
665
+ .label${t} { fill: ${e["git" + n]}; }
666
+ .arrow${t} { stroke: ${e["git" + n]}; }
667
+ `;
668
+ }).join("\n")}`, "normalTheme"), qe = {
669
+ parser: be,
670
+ db: A,
671
+ renderer: ze,
672
+ styles: /* @__PURE__ */ p((e) => {
673
+ let { theme: t } = d(), n = Ue.has(t);
674
+ return `
675
+ .commit-id,
676
+ .commit-msg,
677
+ .branch-label {
678
+ fill: lightgrey;
679
+ color: lightgrey;
680
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
681
+ font-family: var(--mermaid-font-family);
682
+ }
683
+
684
+ ${n ? Ge(e) : Ke(e)}
685
+
686
+ .branch {
687
+ stroke-width: ${e.strokeWidth};
688
+ stroke: ${e.commitLineColor ?? e.lineColor};
689
+ stroke-dasharray: ${n ? "4 2" : "2"};
690
+ }
691
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${n ? e.nodeBorder : e.commitLabelColor}; ${n ? `font-weight:${e.noteFontWeight};` : ""}}
692
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${n ? "transparent" : e.commitLabelBackground}; opacity: ${n ? "" : .5}; }
693
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
694
+ .tag-label-bkg { fill: ${n ? e.mainBkg : e.tagLabelBackground}; stroke: ${n ? e.nodeBorder : e.tagLabelBorder}; ${n ? `filter:${e.dropShadow}` : ""} }
695
+ .tag-hole { fill: ${e.textColor}; }
696
+
697
+ .commit-merge {
698
+ stroke: ${n ? e.mainBkg : e.primaryColor};
699
+ fill: ${n ? e.mainBkg : e.primaryColor};
700
+ }
701
+ .commit-reverse {
702
+ stroke: ${n ? e.mainBkg : e.primaryColor};
703
+ fill: ${n ? e.mainBkg : e.primaryColor};
704
+ stroke-width: ${n ? e.strokeWidth : 3};
705
+ }
706
+ .commit-highlight-outer {
707
+ }
708
+ .commit-highlight-inner {
709
+ stroke: ${n ? e.mainBkg : e.primaryColor};
710
+ fill: ${n ? e.mainBkg : e.primaryColor};
711
+ }
712
+
713
+ .arrow {
714
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
715
+ stroke-width: ${$.has(t) ? e.strokeWidth : 8};
716
+ stroke-linecap: round;
717
+ fill: none
718
+ }
719
+ .gitTitleText {
720
+ text-anchor: middle;
721
+ font-size: 18px;
722
+ fill: ${e.textColor};
723
+ }
724
+ `;
725
+ }, "getStyles")
726
+ };
727
+ //#endregion
728
+ export { qe as diagram };