@sme.up/ketchup2 1.17.0 → 1.18.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 (230) hide show
  1. package/dist/{_baseIsEqual-zRt14Ap0.cjs → _baseIsEqual-CEeDg5JY.cjs} +1 -1
  2. package/dist/{_baseIsEqual-BrnlrwQv.js → _baseIsEqual-DGkLOOUv.js} +83 -83
  3. package/dist/{_basePickBy-DaYAjwaD.js → _basePickBy-B1R94gYg.js} +28 -28
  4. package/dist/{_basePickBy-BwchXmnn.cjs → _basePickBy-DaIc-wgz.cjs} +1 -1
  5. package/dist/{_baseUniq-j7VEd75I.cjs → _baseUniq-DTfHgbiF.cjs} +1 -1
  6. package/dist/{_baseUniq-CJjUNseB.js → _baseUniq-Fo_obzds.js} +54 -54
  7. package/dist/{arc-iP-iR4iy.cjs → arc-BDhRalCq.cjs} +1 -1
  8. package/dist/{arc-Cbowbc-5.js → arc-DvVEbzqi.js} +1 -1
  9. package/dist/{architecture-U656AL7Q-CJqkeE6i.cjs → architecture-U656AL7Q-Bf9nK-g5.cjs} +1 -1
  10. package/dist/{architecture-U656AL7Q-BT3xXsaU.js → architecture-U656AL7Q-xWSQ4SRv.js} +1 -1
  11. package/dist/{architectureDiagram-VXUJARFQ-D18f521a.cjs → architectureDiagram-VXUJARFQ-CfqXQSfK.cjs} +1 -1
  12. package/dist/{architectureDiagram-VXUJARFQ-BnZiAhjd.js → architectureDiagram-VXUJARFQ-DZV4IIVV.js} +3 -3
  13. package/dist/assets/imageListAssets.d.ts +12 -0
  14. package/dist/assets/imageListAssets.d.ts.map +1 -0
  15. package/dist/assets/layoutAssets.d.ts +1 -0
  16. package/dist/assets/layoutAssets.d.ts.map +1 -1
  17. package/dist/assets/svg/fullscreen_exit.svg +1 -0
  18. package/dist/assets/svg/remove.svg +1 -0
  19. package/dist/basic-components/autocomplete/autocomplete.d.ts.map +1 -1
  20. package/dist/basic-components/button/button-types.d.ts +4 -0
  21. package/dist/basic-components/button/button-types.d.ts.map +1 -1
  22. package/dist/basic-components/button-group/button-group.d.ts.map +1 -1
  23. package/dist/basic-components/cell/cell-types.d.ts +7 -6
  24. package/dist/basic-components/cell/cell-types.d.ts.map +1 -1
  25. package/dist/basic-components/cell/cell.d.ts.map +1 -1
  26. package/dist/basic-components/icon/icon.d.ts.map +1 -1
  27. package/dist/basic-components/image/image-types.d.ts +45 -2
  28. package/dist/basic-components/image/image-types.d.ts.map +1 -1
  29. package/dist/basic-components/image/image-utils.d.ts +2 -1
  30. package/dist/basic-components/image/image-utils.d.ts.map +1 -1
  31. package/dist/basic-components/image/image.d.ts.map +1 -1
  32. package/dist/basic-components/input-number/input-number-types.d.ts +2 -1
  33. package/dist/basic-components/input-number/input-number-types.d.ts.map +1 -1
  34. package/dist/basic-components/input-number/input-number.d.ts.map +1 -1
  35. package/dist/basic-components/list/list-types.d.ts +1 -0
  36. package/dist/basic-components/list/list-types.d.ts.map +1 -1
  37. package/dist/basic-components/list/list.d.ts.map +1 -1
  38. package/dist/basic-components/select/select.d.ts.map +1 -1
  39. package/dist/basic-components/text-editor/text-editor.d.ts.map +1 -1
  40. package/dist/basic-components/textarea/textarea.d.ts.map +1 -1
  41. package/dist/basic-components/textfield/textfield.d.ts.map +1 -1
  42. package/dist/basic-components/time-picker/time-picker.d.ts.map +1 -1
  43. package/dist/{blockDiagram-VD42YOAC-B55mPKua.cjs → blockDiagram-VD42YOAC-BkkV6LWv.cjs} +1 -1
  44. package/dist/{blockDiagram-VD42YOAC-wDySglDu.js → blockDiagram-VD42YOAC-tKn8dzo0.js} +5 -5
  45. package/dist/{c4Diagram-YG6GDRKO-BC0Wpsyx.js → c4Diagram-YG6GDRKO-B0gjRSdn.js} +2 -2
  46. package/dist/{c4Diagram-YG6GDRKO-DjBFG-JS.cjs → c4Diagram-YG6GDRKO-RBwhYEc2.cjs} +1 -1
  47. package/dist/channel-0VH3jwlj.cjs +1 -0
  48. package/dist/{channel-Dx9i3vCP.js → channel-3tFaSeKk.js} +1 -1
  49. package/dist/{chunk-4BX2VUAB-BiIRR12o.cjs → chunk-4BX2VUAB-Boz0nX9s.cjs} +1 -1
  50. package/dist/{chunk-4BX2VUAB-OFih-SVK.js → chunk-4BX2VUAB-D3u0w2gk.js} +1 -1
  51. package/dist/{chunk-55IACEB6-Ci8lQrba.js → chunk-55IACEB6-BpT8GkSp.js} +1 -1
  52. package/dist/{chunk-55IACEB6-5cFwCu9G.cjs → chunk-55IACEB6-DVWliiDK.cjs} +1 -1
  53. package/dist/{chunk-B4BG7PRW-Br09zvFH.cjs → chunk-B4BG7PRW-Bmq8n4Hs.cjs} +1 -1
  54. package/dist/{chunk-B4BG7PRW-BKVozipd.js → chunk-B4BG7PRW-DH5WVTGe.js} +4 -4
  55. package/dist/{chunk-DI55MBZ5-2iIK9cGZ.js → chunk-DI55MBZ5-CnYYh3n2.js} +3 -3
  56. package/dist/{chunk-DI55MBZ5-BC6LLziw.cjs → chunk-DI55MBZ5-DVb6521f.cjs} +1 -1
  57. package/dist/{chunk-FMBD7UC4-C5LdwLLI.js → chunk-FMBD7UC4-CfbK5tDm.js} +1 -1
  58. package/dist/{chunk-FMBD7UC4-6IkqlaCK.cjs → chunk-FMBD7UC4-Cou9fU3U.cjs} +1 -1
  59. package/dist/{chunk-QN33PNHL-B6jssVTN.js → chunk-QN33PNHL-CCaezjI9.js} +1 -1
  60. package/dist/{chunk-QN33PNHL-CGZrzSBB.cjs → chunk-QN33PNHL-bDqDrxJR.cjs} +1 -1
  61. package/dist/{chunk-QZHKN3VN-C4xVo3en.js → chunk-QZHKN3VN-B_jBa8Xi.js} +1 -1
  62. package/dist/{chunk-QZHKN3VN-BgTxUHVI.cjs → chunk-QZHKN3VN-agaSkAKB.cjs} +1 -1
  63. package/dist/{chunk-TZMSLE5B-BxgV5j7R.cjs → chunk-TZMSLE5B-DhehdAHS.cjs} +1 -1
  64. package/dist/{chunk-TZMSLE5B-CtxV03nX.js → chunk-TZMSLE5B-L3IDdUIe.js} +1 -1
  65. package/dist/{classDiagram-2ON5EDUG-BuS2b4J0.cjs → classDiagram-2ON5EDUG-SmUoP7ZW.cjs} +1 -1
  66. package/dist/{classDiagram-v2-WZHVMYZB-CZpmcSlb.js → classDiagram-2ON5EDUG-vQpFohnj.js} +2 -2
  67. package/dist/{classDiagram-v2-WZHVMYZB-BuS2b4J0.cjs → classDiagram-v2-WZHVMYZB-SmUoP7ZW.cjs} +1 -1
  68. package/dist/{classDiagram-2ON5EDUG-CZpmcSlb.js → classDiagram-v2-WZHVMYZB-vQpFohnj.js} +2 -2
  69. package/dist/clone-B_ggB8XZ.cjs +1 -0
  70. package/dist/{clone-DkJx__A-.js → clone-YOXgx4TW.js} +1 -1
  71. package/dist/{cloneDeep-Dq3F6jwh.js → cloneDeep-BKtU4IKb.js} +1 -1
  72. package/dist/{cloneDeep-DQDCvru6.cjs → cloneDeep-CAsH5xlb.cjs} +1 -1
  73. package/dist/components/box-list/box-list-types.d.ts +1 -3
  74. package/dist/components/box-list/box-list-types.d.ts.map +1 -1
  75. package/dist/components/box-list/box-list.d.ts.map +1 -1
  76. package/dist/components/field/field-types.d.ts +0 -1
  77. package/dist/components/field/field-types.d.ts.map +1 -1
  78. package/dist/components/field/field.d.ts.map +1 -1
  79. package/dist/components/image-list/components/error-boundary.d.ts +16 -0
  80. package/dist/components/image-list/components/error-boundary.d.ts.map +1 -0
  81. package/dist/components/image-list/components/image-list-drill-down.d.ts +4 -0
  82. package/dist/components/image-list/components/image-list-drill-down.d.ts.map +1 -0
  83. package/dist/components/image-list/components/image-list-item.d.ts +3 -0
  84. package/dist/components/image-list/components/image-list-item.d.ts.map +1 -0
  85. package/dist/components/image-list/hooks/useNavigation.d.ts +16 -0
  86. package/dist/components/image-list/hooks/useNavigation.d.ts.map +1 -0
  87. package/dist/components/image-list/hooks/useSelection.d.ts +26 -0
  88. package/dist/components/image-list/hooks/useSelection.d.ts.map +1 -0
  89. package/dist/components/image-list/image-list.d.ts +5 -0
  90. package/dist/components/image-list/image-list.d.ts.map +1 -0
  91. package/dist/components/image-list/types/image-list-types.d.ts +69 -0
  92. package/dist/components/image-list/types/image-list-types.d.ts.map +1 -0
  93. package/dist/components/image-list/utils/image-list-utils.d.ts +7 -0
  94. package/dist/components/image-list/utils/image-list-utils.d.ts.map +1 -0
  95. package/dist/components/input-panel/input-panel.d.ts +2 -1
  96. package/dist/components/input-panel/input-panel.d.ts.map +1 -1
  97. package/dist/components/mind-map/components/MindMapCanvas.d.ts +13 -1
  98. package/dist/components/mind-map/components/MindMapCanvas.d.ts.map +1 -1
  99. package/dist/components/mind-map/components/MindMapNode.d.ts +10 -4
  100. package/dist/components/mind-map/components/MindMapNode.d.ts.map +1 -1
  101. package/dist/components/mind-map/hooks/useMindMapAutofit.d.ts +45 -0
  102. package/dist/components/mind-map/hooks/useMindMapAutofit.d.ts.map +1 -0
  103. package/dist/components/mind-map/hooks/useMindMapLayout.d.ts +4 -3
  104. package/dist/components/mind-map/hooks/useMindMapLayout.d.ts.map +1 -1
  105. package/dist/components/mind-map/hooks/useMindMapNodeDimensions.d.ts +23 -0
  106. package/dist/components/mind-map/hooks/useMindMapNodeDimensions.d.ts.map +1 -0
  107. package/dist/components/mind-map/hooks/useMindMapState.d.ts +2 -2
  108. package/dist/components/mind-map/hooks/useMindMapState.d.ts.map +1 -1
  109. package/dist/components/mind-map/hooks/useMindMapViewport.d.ts +33 -0
  110. package/dist/components/mind-map/hooks/useMindMapViewport.d.ts.map +1 -0
  111. package/dist/components/mind-map/hooks/useViewportBounds.d.ts +27 -0
  112. package/dist/components/mind-map/hooks/useViewportBounds.d.ts.map +1 -0
  113. package/dist/components/mind-map/layouts/radial-layout.d.ts +3 -0
  114. package/dist/components/mind-map/layouts/radial-layout.d.ts.map +1 -0
  115. package/dist/components/mind-map/layouts/vertical-layout.d.ts +3 -0
  116. package/dist/components/mind-map/layouts/vertical-layout.d.ts.map +1 -0
  117. package/dist/components/mind-map/{types/index.d.ts → mind-map-types.d.ts} +54 -11
  118. package/dist/components/mind-map/mind-map-types.d.ts.map +1 -0
  119. package/dist/components/mind-map/mind-map.d.ts +3 -2
  120. package/dist/components/mind-map/mind-map.d.ts.map +1 -1
  121. package/dist/components/mind-map/utils/coordinates.d.ts +1 -1
  122. package/dist/components/mind-map/utils/coordinates.d.ts.map +1 -1
  123. package/dist/components/mind-map/utils/geometry-utils.d.ts +27 -0
  124. package/dist/components/mind-map/utils/geometry-utils.d.ts.map +1 -0
  125. package/dist/components/mind-map/utils/graph-utils.d.ts +88 -0
  126. package/dist/components/mind-map/utils/graph-utils.d.ts.map +1 -0
  127. package/dist/components/mind-map/utils/layout.d.ts +1 -1
  128. package/dist/components/mind-map/utils/layout.d.ts.map +1 -1
  129. package/dist/components/mind-map/utils/tree.d.ts +4 -2
  130. package/dist/components/mind-map/utils/tree.d.ts.map +1 -1
  131. package/dist/components/mind-map/utils/validation.d.ts +1 -1
  132. package/dist/components/mind-map/utils/validation.d.ts.map +1 -1
  133. package/dist/components/toolbar/toolbar-node.d.ts.map +1 -1
  134. package/dist/{cose-bilkent-S5V4N54A-C00aP448.js → cose-bilkent-S5V4N54A-DD8g8ODW.js} +5 -5
  135. package/dist/{cose-bilkent-S5V4N54A-BJ6Tuyyj.cjs → cose-bilkent-S5V4N54A-DdSoONjd.cjs} +1 -1
  136. package/dist/{dagre-6UL2VRFP-BrXTKrJq.cjs → dagre-6UL2VRFP-B2AtgfKt.cjs} +1 -1
  137. package/dist/{dagre-6UL2VRFP-JMTi_XHD.js → dagre-6UL2VRFP-BjOVGWYT.js} +6 -6
  138. package/dist/{diagram-PSM6KHXK-fvIjUcFM.js → diagram-PSM6KHXK-D3n0zVfd.js} +4 -4
  139. package/dist/{diagram-PSM6KHXK-LkgNpU18.cjs → diagram-PSM6KHXK-D_fCWLTY.cjs} +1 -1
  140. package/dist/{diagram-QEK2KX5R-BQNAJB1W.cjs → diagram-QEK2KX5R-CIX1p2TE.cjs} +1 -1
  141. package/dist/{diagram-QEK2KX5R-BcuMWz8M.js → diagram-QEK2KX5R-D4IV84fI.js} +3 -3
  142. package/dist/{diagram-S2PKOQOG-DT8r8nnd.cjs → diagram-S2PKOQOG-DQyeu84g.cjs} +1 -1
  143. package/dist/{diagram-S2PKOQOG-BGEqeYnW.js → diagram-S2PKOQOG-D_bz5gIz.js} +3 -3
  144. package/dist/{erDiagram-Q2GNP2WA-CJoyV-_s.cjs → erDiagram-Q2GNP2WA-CA3u15D8.cjs} +1 -1
  145. package/dist/{erDiagram-Q2GNP2WA-DYRIEzOM.js → erDiagram-Q2GNP2WA-FaG72Sma.js} +4 -4
  146. package/dist/{flowDiagram-NV44I4VS-BqXm80wW.cjs → flowDiagram-NV44I4VS-CR_U7F3i.cjs} +1 -1
  147. package/dist/{flowDiagram-NV44I4VS-B2Zj_x6B.js → flowDiagram-NV44I4VS-Cqs3UFBQ.js} +5 -5
  148. package/dist/functional-components/badge/badge-types.d.ts +20 -16
  149. package/dist/functional-components/badge/badge-types.d.ts.map +1 -1
  150. package/dist/functional-components/badge/badge-utils.d.ts +28 -3
  151. package/dist/functional-components/badge/badge-utils.d.ts.map +1 -1
  152. package/dist/functional-components/badge/badge.d.ts.map +1 -1
  153. package/dist/functional-components/layout/layout-utils.d.ts.map +1 -1
  154. package/dist/functional-components/layout/layout.d.ts.map +1 -1
  155. package/dist/{ganttDiagram-JELNMOA3-08_dE0Q5.js → ganttDiagram-JELNMOA3-64EHKpud.js} +2 -2
  156. package/dist/{ganttDiagram-JELNMOA3-DCEQry87.cjs → ganttDiagram-JELNMOA3-CN1LWzl3.cjs} +1 -1
  157. package/dist/{gitGraph-F6HP7TQM-Y9JkwqbB.js → gitGraph-F6HP7TQM-BHF2Px3a.js} +1 -1
  158. package/dist/{gitGraph-F6HP7TQM-4Bs7cINB.cjs → gitGraph-F6HP7TQM-g-uFxP-W.cjs} +1 -1
  159. package/dist/{gitGraphDiagram-NY62KEGX-B1DItGjE.js → gitGraphDiagram-NY62KEGX-BMZgJCnk.js} +4 -4
  160. package/dist/{gitGraphDiagram-NY62KEGX-BvyOJS_E.cjs → gitGraphDiagram-NY62KEGX-gkspcAEl.cjs} +1 -1
  161. package/dist/{graph-QS_Q5MPp.cjs → graph-BAbMYZfV.cjs} +1 -1
  162. package/dist/{graph-ZrTDk0Hg.js → graph-Bl9cAjm8.js} +7 -7
  163. package/dist/{index-CT8MFfo6.cjs → index-DIIaXWro.cjs} +158 -151
  164. package/dist/{index-tQish5_K.js → index-D_kILrIh.js} +27038 -26300
  165. package/dist/index.d.ts +3 -0
  166. package/dist/index.d.ts.map +1 -1
  167. package/dist/info-NVLQJR56-Coo8EJ5Z.js +5 -0
  168. package/dist/{info-NVLQJR56-CHsZUaj2.cjs → info-NVLQJR56-srf2MBEA.cjs} +1 -1
  169. package/dist/{infoDiagram-WHAUD3N6-i83aw0dt.cjs → infoDiagram-WHAUD3N6-DA8ixL4V.cjs} +1 -1
  170. package/dist/{infoDiagram-WHAUD3N6-jVuB8rdT.js → infoDiagram-WHAUD3N6-xpWWBRHb.js} +2 -2
  171. package/dist/{journeyDiagram-XKPGCS4Q-C0xONv2Z.js → journeyDiagram-XKPGCS4Q-CiHV35D-.js} +4 -4
  172. package/dist/{journeyDiagram-XKPGCS4Q-cTUhYkyL.cjs → journeyDiagram-XKPGCS4Q-DF1jSlK-.cjs} +1 -1
  173. package/dist/{kanban-definition-3W4ZIXB7-gAgaqJpb.js → kanban-definition-3W4ZIXB7-BWGryLGw.js} +2 -2
  174. package/dist/{kanban-definition-3W4ZIXB7-BZbVKwOt.cjs → kanban-definition-3W4ZIXB7-gS0oGytB.cjs} +1 -1
  175. package/dist/ketchup2.cjs.js +1 -1
  176. package/dist/ketchup2.css +1 -1
  177. package/dist/ketchup2.es.js +21 -20
  178. package/dist/{layout-9wrCML1i.cjs → layout-BAOkTpMt.cjs} +1 -1
  179. package/dist/{layout-CvVc3iSj.js → layout-DqfckNJZ.js} +51 -51
  180. package/dist/{linear-BFKUXJJJ.js → linear-BwTuJ7Vo.js} +5 -5
  181. package/dist/{linear-jeDn-4pB.cjs → linear-CDB37PVm.cjs} +1 -1
  182. package/dist/locale/en/translation.json.d.ts +7 -2
  183. package/dist/locale/it/translation.json.d.ts +7 -2
  184. package/dist/{mermaid-parser.core-KMjRAYYm.cjs → mermaid-parser.core-2c535U97.cjs} +2 -2
  185. package/dist/{mermaid-parser.core-CKYvvyAq.js → mermaid-parser.core-Kh2GaZjn.js} +12 -12
  186. package/dist/{mindmap-definition-VGOIOE7T-Dthy0WmT.js → mindmap-definition-VGOIOE7T-CHXB52JE.js} +3 -3
  187. package/dist/{mindmap-definition-VGOIOE7T-DmaEElVQ.cjs → mindmap-definition-VGOIOE7T-Dbf-IjJg.cjs} +1 -1
  188. package/dist/{packet-BFZMPI3H-DywTQVQ_.cjs → packet-BFZMPI3H-CHjUkc3K.cjs} +1 -1
  189. package/dist/{packet-BFZMPI3H-CpS-F5a_.js → packet-BFZMPI3H-CWlKzkUT.js} +1 -1
  190. package/dist/{pie-7BOR55EZ-ChNKQdbq.cjs → pie-7BOR55EZ-DF8jDFu6.cjs} +1 -1
  191. package/dist/pie-7BOR55EZ-ev26J3c5.js +5 -0
  192. package/dist/{pieDiagram-ADFJNKIX-CvGdCgan.js → pieDiagram-ADFJNKIX-BS47ESx3.js} +13 -13
  193. package/dist/{pieDiagram-ADFJNKIX-DivYnpIG.cjs → pieDiagram-ADFJNKIX-CUXoHrUo.cjs} +1 -1
  194. package/dist/{quadrantDiagram-AYHSOK5B-DMcJ8r-L.js → quadrantDiagram-AYHSOK5B-BDCNfr1M.js} +2 -2
  195. package/dist/{quadrantDiagram-AYHSOK5B-Bf9-HbUq.cjs → quadrantDiagram-AYHSOK5B-DR-GeD40.cjs} +1 -1
  196. package/dist/{quill-i2umgPvo.js → quill-CL1W1hro.js} +3 -3
  197. package/dist/{quill-DQZOmBqc.cjs → quill-izWMIyId.cjs} +1 -1
  198. package/dist/{radar-NHE76QYJ-DZuF23ek.cjs → radar-NHE76QYJ-CTPycyar.cjs} +1 -1
  199. package/dist/radar-NHE76QYJ-CrwtClJN.js +5 -0
  200. package/dist/{requirementDiagram-UZGBJVZJ-Bl2E6Fyl.js → requirementDiagram-UZGBJVZJ-CUfIh-7P.js} +3 -3
  201. package/dist/{requirementDiagram-UZGBJVZJ-C617ntCl.cjs → requirementDiagram-UZGBJVZJ-vOYjKcHP.cjs} +1 -1
  202. package/dist/{sankeyDiagram-TZEHDZUN-DPYxVtOl.js → sankeyDiagram-TZEHDZUN-Ddj4CqOU.js} +1 -1
  203. package/dist/{sankeyDiagram-TZEHDZUN-DJMSsNjh.cjs → sankeyDiagram-TZEHDZUN-Dn5DcHZn.cjs} +1 -1
  204. package/dist/{sequenceDiagram-WL72ISMW-V7RqENZQ.js → sequenceDiagram-WL72ISMW-DCp5IF0l.js} +3 -3
  205. package/dist/{sequenceDiagram-WL72ISMW-CGkxXC50.cjs → sequenceDiagram-WL72ISMW-DzATBRBb.cjs} +1 -1
  206. package/dist/{stateDiagram-FKZM4ZOC-qkCLTpNh.js → stateDiagram-FKZM4ZOC-CYSSqqZ6.js} +4 -4
  207. package/dist/{stateDiagram-FKZM4ZOC-COnDROTh.cjs → stateDiagram-FKZM4ZOC-Du6jFWWB.cjs} +1 -1
  208. package/dist/{stateDiagram-v2-4FDKWEC3-DVl2lm_B.cjs → stateDiagram-v2-4FDKWEC3-BAYfudRi.cjs} +1 -1
  209. package/dist/{stateDiagram-v2-4FDKWEC3-corE_iho.js → stateDiagram-v2-4FDKWEC3-Cxj_JYYu.js} +2 -2
  210. package/dist/{timeline-definition-IT6M3QCI-CyuUeVWe.js → timeline-definition-IT6M3QCI-Dw1JJhHl.js} +2 -2
  211. package/dist/{timeline-definition-IT6M3QCI-7sh02DJC.cjs → timeline-definition-IT6M3QCI-fZZ7KhwG.cjs} +1 -1
  212. package/dist/{treemap-KMMF4GRG-C78aS1uB.cjs → treemap-KMMF4GRG-DIf-BmJb.cjs} +1 -1
  213. package/dist/{treemap-KMMF4GRG-BxfekPoY.js → treemap-KMMF4GRG-DOx8Kmfm.js} +1 -1
  214. package/dist/types/data-structures.d.ts +2 -0
  215. package/dist/types/data-structures.d.ts.map +1 -1
  216. package/dist/types/translation.d.ts +7 -2
  217. package/dist/types/translation.d.ts.map +1 -1
  218. package/dist/{xychartDiagram-PRI3JC2R-vfxLXpzQ.js → xychartDiagram-PRI3JC2R-CHFF9E0J.js} +12 -12
  219. package/dist/{xychartDiagram-PRI3JC2R-wzZbTURO.cjs → xychartDiagram-PRI3JC2R-Cg1xVYiM.cjs} +1 -1
  220. package/package.json +11 -11
  221. package/dist/channel-CwKSkgJF.cjs +0 -1
  222. package/dist/clone-DPavQMkb.cjs +0 -1
  223. package/dist/components/mind-map/hooks/useMindMapPan.d.ts +0 -14
  224. package/dist/components/mind-map/hooks/useMindMapPan.d.ts.map +0 -1
  225. package/dist/components/mind-map/types/index.d.ts.map +0 -1
  226. package/dist/info-NVLQJR56-COZxNJP_.js +0 -5
  227. package/dist/pie-7BOR55EZ-B-Fv4j6j.js +0 -5
  228. package/dist/radar-NHE76QYJ-DEY-dBFC.js +0 -5
  229. package/dist/time-picker-dropdown-B_7NChVW.cjs +0 -1
  230. package/dist/time-picker-dropdown-CTaNEXXR.js +0 -122
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-BiIRR12o.cjs"),j=require("./chunk-QZHKN3VN-BgTxUHVI.cjs"),s=require("./index-CT8MFfo6.cjs"),K=require("./mermaid-parser.core-KMjRAYYm.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-Boz0nX9s.cjs"),j=require("./chunk-QZHKN3VN-agaSkAKB.cjs"),s=require("./index-DIIaXWro.cjs"),K=require("./mermaid-parser.core-2c535U97.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
2
2
  ${o-a/2-w/2},${y+v}
3
3
  ${o-a/2-w/2},${y-v}
4
4
  ${n.posWithOffset-a/2-w},${y-d-v}
@@ -1 +1 @@
1
- "use strict";const u=require("./index-CT8MFfo6.cjs"),_=require("./_baseIsEqual-zRt14Ap0.cjs"),h=require("./_baseUniq-j7VEd75I.cjs");var E=u.baseRest(function(o){return h.baseUniq(h.baseFlatten(o,1,u.isArrayLikeObject,!0))}),y="\0",a="\0",p="";class g{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.constant$1(void 0),this._defaultEdgeLabelFn=u.constant$1(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _.keys(this._nodes)}sources(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._in[t])})}sinks(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return h.forEach(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],h.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),h.forEach(_.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],h.forEach(_.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h.isUndefined(t))t=a;else{t+="";for(var s=t;!h.isUndefined(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(h.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _.keys(t)}successors(e){var t=this._sucs[e];if(t)return _.keys(t)}neighbors(e){var t=this.predecessors(e);if(t)return E(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;h.forEach(this._nodes,function(n,d){e(d)&&t.setNode(d,n)}),h.forEach(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var d=s.parent(n);return d===void 0||t.hasNode(d)?(i[n]=d,d):d in i?i[d]:r(d)}return this._isCompound&&h.forEach(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return h.values(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return h.reduce(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,h.isUndefined(s)||(s=""+s);var d=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,d))return r&&(this._edgeLabels[d]=i),this;if(!h.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=O(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[d]=l,m(this._preds[t],e),m(this._sucs[e],t),this._in[t][d]=l,this._out[e][d]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],b(this._preds[t],e),b(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}g.prototype._nodeCount=0;g.prototype._edgeCount=0;function m(o,e){o[e]?o[e]++:o[e]=1}function b(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+p+r+p+(h.isUndefined(s)?y:s)}function O(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var d={v:i,w:r};return s&&(d.name=s),d}function f(o,e){return c(o,e.v,e.w,e.name)}exports.Graph=g;
1
+ "use strict";const u=require("./index-DIIaXWro.cjs"),_=require("./_baseIsEqual-CEeDg5JY.cjs"),h=require("./_baseUniq-DTfHgbiF.cjs");var E=u.baseRest(function(o){return h.baseUniq(h.baseFlatten(o,1,u.isArrayLikeObject,!0))}),y="\0",a="\0",p="";class g{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.constant$1(void 0),this._defaultEdgeLabelFn=u.constant$1(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return _.keys(this._nodes)}sources(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._in[t])})}sinks(){var e=this;return h.filter(this.nodes(),function(t){return u.isEmpty(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return h.forEach(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],h.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),h.forEach(_.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],h.forEach(_.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h.isUndefined(t))t=a;else{t+="";for(var s=t;!h.isUndefined(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(h.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return _.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return _.keys(t)}successors(e){var t=this._sucs[e];if(t)return _.keys(t)}neighbors(e){var t=this.predecessors(e);if(t)return E(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;h.forEach(this._nodes,function(n,d){e(d)&&t.setNode(d,n)}),h.forEach(this._edgeObjs,function(n){t.hasNode(n.v)&&t.hasNode(n.w)&&t.setEdge(n,s.edge(n))});var i={};function r(n){var d=s.parent(n);return d===void 0||t.hasNode(d)?(i[n]=d,d):d in i?i[d]:r(d)}return this._isCompound&&h.forEach(t.nodes(),function(n){t.setParent(n,r(n))}),t}setDefaultEdgeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return h.values(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return h.reduce(e,function(r,n){return i.length>1?s.setEdge(r,n,t):s.setEdge(r,n),n}),this}setEdge(){var e,t,s,i,r=!1,n=arguments[0];typeof n=="object"&&n!==null&&"v"in n?(e=n.v,t=n.w,s=n.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=n,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,h.isUndefined(s)||(s=""+s);var d=c(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,d))return r&&(this._edgeLabels[d]=i),this;if(!h.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=O(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[d]=l,m(this._preds[t],e),m(this._sucs[e],t),this._in[t][d]=l,this._out[e][d]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?f(this._isDirected,arguments[0]):c(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],b(this._preds[t],e),b(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=h.values(s);return t?h.filter(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}g.prototype._nodeCount=0;g.prototype._edgeCount=0;function m(o,e){o[e]?o[e]++:o[e]=1}function b(o,e){--o[e]||delete o[e]}function c(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}return i+p+r+p+(h.isUndefined(s)?y:s)}function O(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var n=i;i=r,r=n}var d={v:i,w:r};return s&&(d.name=s),d}function f(o,e){return c(o,e.v,e.w,e.name)}exports.Graph=g;
@@ -1,6 +1,6 @@
1
- import { aE as N, aF as j, aG as f, aH as b, aI as E } from "./index-tQish5_K.js";
2
- import { k as _ } from "./_baseIsEqual-BrnlrwQv.js";
3
- import { b as v, a as P, f as g, c as d, i as l, v as p, r as D } from "./_baseUniq-CJjUNseB.js";
1
+ import { aC as N, aD as j, aE as f, aF as b, aG as E } from "./index-D_kILrIh.js";
2
+ import { k as _ } from "./_baseIsEqual-DGkLOOUv.js";
3
+ import { b as v, a as P, f as g, c as d, i as l, v as p, r as D } from "./_baseUniq-Fo_obzds.js";
4
4
  var w = N(function(o) {
5
5
  return v(P(o, 1, j, !0));
6
6
  }), F = "\0", a = "\0", O = "";
@@ -177,7 +177,7 @@ class L {
177
177
  throw new Error("Cannot set a named edge when isMultigraph = false");
178
178
  this.setNode(e), this.setNode(t), this._edgeLabels[h] = r ? i : this._defaultEdgeLabelFn(e, t, s);
179
179
  var u = G(this._isDirected, e, t, s);
180
- return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, y(this._preds[t], e), y(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
180
+ return e = u.v, t = u.w, Object.freeze(u), this._edgeObjs[h] = u, C(this._preds[t], e), C(this._sucs[e], t), this._in[t][h] = u, this._out[e][h] = u, this._edgeCount++, this;
181
181
  }
182
182
  edge(e, t, s) {
183
183
  var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s);
@@ -189,7 +189,7 @@ class L {
189
189
  }
190
190
  removeEdge(e, t, s) {
191
191
  var i = arguments.length === 1 ? m(this._isDirected, arguments[0]) : c(this._isDirected, e, t, s), r = this._edgeObjs[i];
192
- return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], C(this._preds[t], e), C(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
192
+ return r && (e = r.v, t = r.w, delete this._edgeLabels[i], delete this._edgeObjs[i], y(this._preds[t], e), y(this._sucs[e], t), delete this._in[t][i], delete this._out[e][i], this._edgeCount--), this;
193
193
  }
194
194
  inEdges(e, t) {
195
195
  var s = this._in[e];
@@ -217,10 +217,10 @@ class L {
217
217
  }
218
218
  L.prototype._nodeCount = 0;
219
219
  L.prototype._edgeCount = 0;
220
- function y(o, e) {
220
+ function C(o, e) {
221
221
  o[e] ? o[e]++ : o[e] = 1;
222
222
  }
223
- function C(o, e) {
223
+ function y(o, e) {
224
224
  --o[e] || delete o[e];
225
225
  }
226
226
  function c(o, e, t, s) {