ranui 0.2.1-alpha.1 → 0.2.1-alpha.4

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 (312) hide show
  1. package/dist/abnfDiagram-VRR7QNED-CH_pIv_l.cjs +1 -0
  2. package/dist/abnfDiagram-VRR7QNED-CTsqwzwi.js +95 -0
  3. package/dist/arc-D25LhgTs.cjs +1 -0
  4. package/dist/arc-DRPGof21.js +82 -0
  5. package/dist/architecture-TIHT7OUA-BbBd15_y.cjs +1 -0
  6. package/dist/architecture-TIHT7OUA-pbFO1xSx.js +5 -0
  7. package/dist/architectureDiagram-ZJ3FMSHR-8mjyXr-w.js +4279 -0
  8. package/dist/architectureDiagram-ZJ3FMSHR-D_jWFFZx.cjs +36 -0
  9. package/dist/array-By5736M5.js +7 -0
  10. package/dist/array-C3cbN3GY.cjs +1 -0
  11. package/dist/blockDiagram-677ZJIJ3-3F79MOSt.js +3321 -0
  12. package/dist/blockDiagram-677ZJIJ3-Cx35khWe.cjs +132 -0
  13. package/dist/builder.d.ts +2 -2
  14. package/dist/builder.js +39 -34
  15. package/dist/{builtin-D9djWkCE.js → builtin-1lUEp_ro.js} +83 -76
  16. package/dist/button-Cj-XSCsd.js +117 -0
  17. package/dist/button.js +1 -1
  18. package/dist/c4Diagram-LMCZKHZV-Cxn_gqu_.js +3064 -0
  19. package/dist/c4Diagram-LMCZKHZV-TRNb3Gvl.cjs +10 -0
  20. package/dist/{card-CqJa4Q_v.js → card-BHN9Xp4S.js} +2 -2
  21. package/dist/card.js +1 -1
  22. package/dist/channel-C9WSNwcS.cjs +1 -0
  23. package/dist/channel-k5-UxdcV.js +5 -0
  24. package/dist/{checkbox-CThC9-vy.js → checkbox-O_J_n1_W.js} +10 -10
  25. package/dist/checkbox.js +1 -1
  26. package/dist/chunk-2Q5K7J3B-CTMy5FII.cjs +1 -0
  27. package/dist/chunk-2Q5K7J3B-DlFVJRAn.js +15 -0
  28. package/dist/chunk-32BRIVSS-BXVdG_nV.cjs +1 -0
  29. package/dist/chunk-32BRIVSS-jAuAwMVV.js +68 -0
  30. package/dist/chunk-52WLFC77-BChUrU24.cjs +10 -0
  31. package/dist/chunk-52WLFC77-wpL7en7e.js +630 -0
  32. package/dist/chunk-5VM5RSS4-Cni2Ogq2.js +19 -0
  33. package/dist/chunk-5VM5RSS4-DudUFQ_Z.cjs +15 -0
  34. package/dist/chunk-7BUUIJ7U-9hiBbc7O.js +87 -0
  35. package/dist/chunk-7BUUIJ7U-DMv_UkjI.cjs +1 -0
  36. package/dist/chunk-C7G6YPKG-CA-DNpvI.js +71 -0
  37. package/dist/chunk-C7G6YPKG-CKEeW9TM.cjs +1 -0
  38. package/dist/chunk-EX3LRPZG-BCmf0iDq.js +2137 -0
  39. package/dist/chunk-EX3LRPZG-DbfbNdXo.cjs +231 -0
  40. package/dist/chunk-FWX5IMBZ-D11-gbhc.cjs +1 -0
  41. package/dist/chunk-FWX5IMBZ-DZ5VYvm5.js +60 -0
  42. package/dist/chunk-HOUHSVGY-BGB3dOvI.cjs +1 -0
  43. package/dist/chunk-HOUHSVGY-DRQcQeMT.js +268 -0
  44. package/dist/chunk-ICXQ74PX-BbT9JaEW.cjs +2 -0
  45. package/dist/chunk-ICXQ74PX-DR8rL-xF.js +1377 -0
  46. package/dist/chunk-JWPE2WC7-CGEmUMMZ.js +8 -0
  47. package/dist/chunk-JWPE2WC7-D8EnWK1B.cjs +1 -0
  48. package/dist/chunk-KEIR6QF5-B2Op7cFH.js +22155 -0
  49. package/dist/chunk-KEIR6QF5-C4fcHpY0.cjs +161 -0
  50. package/dist/chunk-MOJQB5TN-BC46HDyu.js +516 -0
  51. package/dist/chunk-MOJQB5TN-oOeq982_.cjs +88 -0
  52. package/dist/chunk-OGEWGWER-BV51ll2w.js +33 -0
  53. package/dist/chunk-OGEWGWER-DX8sW1dT.cjs +1 -0
  54. package/dist/chunk-PUDLZKDR-48YaqVoF.cjs +156 -0
  55. package/dist/chunk-PUDLZKDR-NdMR0Ft5.js +4282 -0
  56. package/dist/chunk-Q4XR5HBZ-3BHjjc9u.js +1709 -0
  57. package/dist/chunk-Q4XR5HBZ-aBnPq509.cjs +70 -0
  58. package/dist/chunk-RYQCIY6F-BER2T9t0.js +246 -0
  59. package/dist/chunk-RYQCIY6F-DVRzSnsI.cjs +1 -0
  60. package/dist/chunk-V7JOEXUC-Cr_hr02u.js +3467 -0
  61. package/dist/chunk-V7JOEXUC-DHizzTla.cjs +206 -0
  62. package/dist/chunk-VAUOI2AC-DfQf5L2_.cjs +1 -0
  63. package/dist/chunk-VAUOI2AC-izt0o4id.js +11 -0
  64. package/dist/chunk-VR4S4FIN-CJi5okl4.js +26 -0
  65. package/dist/chunk-VR4S4FIN-KiwnPF31.cjs +1 -0
  66. package/dist/chunk-WYO6CB5R-DDHkKowO.js +4535 -0
  67. package/dist/chunk-WYO6CB5R-u4mJNOcO.cjs +127 -0
  68. package/dist/chunk-XXDRQBXY-BB1i_53q.js +9 -0
  69. package/dist/chunk-XXDRQBXY-C8VGLZmt.cjs +1 -0
  70. package/dist/chunk-Y2CYZVJY-0JxdZxki.js +13 -0
  71. package/dist/chunk-Y2CYZVJY-DPaYLFFP.cjs +1 -0
  72. package/dist/chunk-ZGVPDNZ5-6uMbTJXy.js +3841 -0
  73. package/dist/chunk-ZGVPDNZ5-Cw5_HJba.cjs +62 -0
  74. package/dist/chunk-ZIRB5QZD-C7OH2FI2.js +1280 -0
  75. package/dist/chunk-ZIRB5QZD-aLu-4ITN.cjs +32 -0
  76. package/dist/classDiagram-OUVF2IWQ-D6rqYIh0.cjs +1 -0
  77. package/dist/classDiagram-OUVF2IWQ-Df0ghim9.js +30 -0
  78. package/dist/classDiagram-v2-EOCWNBFH-D6rqYIh0.cjs +1 -0
  79. package/dist/classDiagram-v2-EOCWNBFH-Df0ghim9.js +30 -0
  80. package/dist/{colorpicker-XNxDRcQ-.js → colorpicker-mebH0XLm.js} +8 -8
  81. package/dist/colorpicker.js +1 -1
  82. package/dist/components/glass/index.d.ts +52 -0
  83. package/dist/components/icon/core-icons.d.ts +13 -0
  84. package/dist/components/icon/index.d.ts +1 -1
  85. package/dist/components/mermaid/index.d.ts +52 -0
  86. package/dist/components/modal/index.d.ts +9 -0
  87. package/dist/content-YOKzMoc7.js +39 -0
  88. package/dist/content.js +5 -0
  89. package/dist/cose-bilkent-JH36ORCC-BUxFTdey.cjs +1 -0
  90. package/dist/cose-bilkent-JH36ORCC-DTwvJlGw.js +2353 -0
  91. package/dist/cynefin-VYW2F7L2-6c1GOGXW.cjs +1 -0
  92. package/dist/cynefin-VYW2F7L2-ALQKF7N6.js +5 -0
  93. package/dist/cynefinDiagram-TSTJHNR4-Bjt4QTVh.js +355 -0
  94. package/dist/cynefinDiagram-TSTJHNR4-ISDORSxO.cjs +62 -0
  95. package/dist/cytoscape.esm-CFq1_DTa.js +18906 -0
  96. package/dist/cytoscape.esm-pygMw4dR.cjs +321 -0
  97. package/dist/dagre-D1-W1tt6.cjs +1 -0
  98. package/dist/dagre-D8GLTwuf.js +1578 -0
  99. package/dist/dagre-VKFMJZFB-DXI69qAN.cjs +4 -0
  100. package/dist/dagre-VKFMJZFB-Dfku86Az.js +341 -0
  101. package/dist/defaultLocale-0M_kMcEH.js +184 -0
  102. package/dist/defaultLocale-DSqtvhxg.cjs +1 -0
  103. package/dist/diagram-FQU43EPY-BAiRt5eL.cjs +3 -0
  104. package/dist/diagram-FQU43EPY-BvQ5jmVn.js +452 -0
  105. package/dist/diagram-G47NLZAW-DGnmEa8u.cjs +24 -0
  106. package/dist/diagram-G47NLZAW-DT2BBA0T.js +498 -0
  107. package/dist/diagram-NH7WQ7WH-DxgkStA3.cjs +24 -0
  108. package/dist/diagram-NH7WQ7WH-W7jg4Vh8.js +135 -0
  109. package/dist/diagram-OA4YK3LP-DkvFII73.cjs +30 -0
  110. package/dist/diagram-OA4YK3LP-jU--aqQl.js +317 -0
  111. package/dist/diagram-WEI45ONY-C_Qhf4ny.js +215 -0
  112. package/dist/diagram-WEI45ONY-XvzRFmmY.cjs +41 -0
  113. package/dist/dist-C0Fwsvsq.js +70 -0
  114. package/dist/dist-C20XxSsP.cjs +1 -0
  115. package/dist/{dropdown-CCvsambb.js → dropdown-CzGAVWYC.js} +4 -4
  116. package/dist/dropdown.js +1 -1
  117. package/dist/ebnfDiagram-CCIWWBDH-Cu8bAlhC.cjs +1 -0
  118. package/dist/ebnfDiagram-CCIWWBDH-Gnr20Oc1.js +112 -0
  119. package/dist/erDiagram-Q63AITRT-CxLSa9Yv.cjs +85 -0
  120. package/dist/erDiagram-Q63AITRT-D0Hh9b-W.js +1822 -0
  121. package/dist/eventmodeling-45OFAUF4-C6VXxUn1.cjs +1 -0
  122. package/dist/eventmodeling-45OFAUF4-DMpGs2yI.js +5 -0
  123. package/dist/factory-ZNhcQ4tf.js +482 -0
  124. package/dist/flowDiagram-23GEKE2U-B6gASEYG.cjs +1 -0
  125. package/dist/flowDiagram-23GEKE2U-BY4wE2vw.js +19 -0
  126. package/dist/{form-Ceq3uJzz.js → form-B8afuJlF.js} +5 -5
  127. package/dist/form.js +1 -1
  128. package/dist/ganttDiagram-NO4QXBWP-B40Eabk0.js +3125 -0
  129. package/dist/ganttDiagram-NO4QXBWP-DZT79qJr.cjs +292 -0
  130. package/dist/gitGraph-TEB2WS4Q-BbtF3MDr.cjs +1 -0
  131. package/dist/gitGraph-TEB2WS4Q-D6Ru11Cs.js +5 -0
  132. package/dist/gitGraphDiagram-IHSO6WYX-BUJNSssA.js +754 -0
  133. package/dist/gitGraphDiagram-IHSO6WYX-DW06165m.cjs +106 -0
  134. package/dist/glass-BniIptBE.js +115 -0
  135. package/dist/glass.js +5 -0
  136. package/dist/graphlib-CCKThIKP.js +1104 -0
  137. package/dist/graphlib-Du-578Js.cjs +1 -0
  138. package/dist/{icon-C_ENrJ3F.js → icon-GZrfSeon.js} +77 -25
  139. package/dist/icon.js +1 -1
  140. package/dist/icons.js +1 -1
  141. package/dist/iife/button.iife.js +1 -1
  142. package/dist/iife/card.iife.js +1 -1
  143. package/dist/iife/checkbox.iife.js +1 -1
  144. package/dist/iife/colorpicker.iife.js +2 -2
  145. package/dist/iife/content.iife.js +1 -0
  146. package/dist/iife/dropdown.iife.js +1 -1
  147. package/dist/iife/form.iife.js +1 -1
  148. package/dist/iife/glass.iife.js +1 -0
  149. package/dist/iife/icon.iife.js +1 -1
  150. package/dist/iife/image.iife.js +1 -1
  151. package/dist/iife/input.iife.js +1 -1
  152. package/dist/iife/loading.iife.js +1 -1
  153. package/dist/iife/math.iife.js +14 -14
  154. package/dist/iife/mermaid.iife.js +3535 -0
  155. package/dist/iife/message.iife.js +1 -1
  156. package/dist/iife/modal.iife.js +1 -1
  157. package/dist/iife/player.iife.js +8 -8
  158. package/dist/iife/popover.iife.js +1 -1
  159. package/dist/iife/progress.iife.js +1 -1
  160. package/dist/iife/radar.iife.js +1 -1
  161. package/dist/iife/route.iife.js +1 -1
  162. package/dist/iife/router.iife.js +1 -1
  163. package/dist/iife/scratch.iife.js +1 -1
  164. package/dist/iife/section.iife.js +1 -1
  165. package/dist/iife/select.iife.js +2 -2
  166. package/dist/iife/skeleton.iife.js +1 -1
  167. package/dist/iife/tab.iife.js +1 -1
  168. package/dist/iife/tabpane.iife.js +1 -1
  169. package/dist/iife/theme-switch.iife.js +1 -1
  170. package/dist/{image-B7MBI5n_.js → image-CqoQfJoV.js} +4 -4
  171. package/dist/image.js +1 -1
  172. package/dist/index.cjs +38 -37
  173. package/dist/index.d.ts +8 -0
  174. package/dist/index.iife.js +3623 -88
  175. package/dist/index.js +88 -84
  176. package/dist/info-DKCQHKI2-DNOtUIin.cjs +1 -0
  177. package/dist/info-DKCQHKI2-Df7h9MSE.js +5 -0
  178. package/dist/infoDiagram-FWYZ7A6U-C8dZc-Ki.cjs +2 -0
  179. package/dist/infoDiagram-FWYZ7A6U-Dc0m9qAx.js +21 -0
  180. package/dist/init-1VpIn1S3.js +16 -0
  181. package/dist/init-CbDwVtpO.cjs +1 -0
  182. package/dist/{input-RNqdEHPf.js → input-BlwAXu7I.js} +6 -6
  183. package/dist/input.js +1 -1
  184. package/dist/ishikawaDiagram-FXEZZL3T-BugNyysB.cjs +70 -0
  185. package/dist/ishikawaDiagram-FXEZZL3T-DuFtHOmf.js +742 -0
  186. package/dist/journeyDiagram-5HDEW3XC-Bshelnhq.js +928 -0
  187. package/dist/journeyDiagram-5HDEW3XC-ItmURvA2.cjs +139 -0
  188. package/dist/kanban-definition-HUTT4EX6-BL512R2A.cjs +89 -0
  189. package/dist/kanban-definition-HUTT4EX6-Dogv2paU.js +1050 -0
  190. package/dist/katex-Cq3Y8cmK.cjs +257 -0
  191. package/dist/katex-Pg2EqTH0.js +23485 -0
  192. package/dist/line-BIPmUVxO.js +33 -0
  193. package/dist/line-CAB5QHC6.cjs +1 -0
  194. package/dist/linear-B2AM4ZBe.js +259 -0
  195. package/dist/linear-CSAfNEpl.cjs +1 -0
  196. package/dist/{link-DURZzd7u.js → link-BCrmHvXP.js} +3 -3
  197. package/dist/link.js +1 -1
  198. package/dist/{loading-B9MFI03l.js → loading-M6gWxLbm.js} +4 -4
  199. package/dist/loading.js +1 -1
  200. package/dist/map-BC2bk_rV.cjs +1 -0
  201. package/dist/map-DMSWkcq6.js +208 -0
  202. package/dist/{math-CudIwEXZ.js → math-8E-45Y8e.js} +4 -4
  203. package/dist/math.js +1 -1
  204. package/dist/mermaid-C1oQyPE3.js +261 -0
  205. package/dist/mermaid-parser.core-DYumW1vq.cjs +6 -0
  206. package/dist/mermaid-parser.core-uIDZYuBu.js +654 -0
  207. package/dist/mermaid.core-B2d5lQW2.js +1085 -0
  208. package/dist/mermaid.core-a1hgpWfs.cjs +10 -0
  209. package/dist/mermaid.js +5 -0
  210. package/dist/{message-DW7qWpEm.js → message-CNdmbeLf.js} +6 -6
  211. package/dist/message.js +1 -1
  212. package/dist/mindmap-definition-LN4V7U3C-DYZgIZym.cjs +96 -0
  213. package/dist/mindmap-definition-LN4V7U3C-f7s5ZePP.js +1070 -0
  214. package/dist/{modal-CrvGKL2B.js → modal-gRagDkTb.js} +40 -24
  215. package/dist/modal.js +1 -1
  216. package/dist/ordinal-BMN81JG2.js +64 -0
  217. package/dist/ordinal-BplLHIij.cjs +1 -0
  218. package/dist/packet-7NZHBO7P-4PLslLZJ.js +5 -0
  219. package/dist/packet-7NZHBO7P-DeyLCrSn.cjs +1 -0
  220. package/dist/path-Bja5PoYn.js +82 -0
  221. package/dist/path-DmfWsuKi.cjs +1 -0
  222. package/dist/pegDiagram-2B236MQR-B-Xeh55J.js +107 -0
  223. package/dist/pegDiagram-2B236MQR-Bo5Nj40u.cjs +1 -0
  224. package/dist/pie-RZYD4A2V-DBE9a8Kz.js +5 -0
  225. package/dist/pie-RZYD4A2V-pDNZ2ZyB.cjs +1 -0
  226. package/dist/pieDiagram-ENE6RG2P-BkSiP4iu.cjs +39 -0
  227. package/dist/pieDiagram-ENE6RG2P-CVSE95zc.js +207 -0
  228. package/dist/{player-BKQaaT7o.js → player-CAQ5Og2P.js} +196 -195
  229. package/dist/player.js +1 -1
  230. package/dist/{popover-CvYIVgUS.js → popover-BZKSLe3D.js} +22 -54
  231. package/dist/popover.js +1 -1
  232. package/dist/{progress-C6jctsFH.js → progress-vk40tuhm.js} +5 -5
  233. package/dist/progress.js +1 -1
  234. package/dist/quadrantDiagram-ABIIQ3AL-BDmdDGsh.cjs +7 -0
  235. package/dist/quadrantDiagram-ABIIQ3AL-TJ8FmqES.js +2058 -0
  236. package/dist/{radar-BUb4EzmG.js → radar-Bg0cexzU.js} +5 -5
  237. package/dist/radar-I7S5WNFK-CY5ycn2a.cjs +1 -0
  238. package/dist/radar-I7S5WNFK-DFTxtd_t.js +5 -0
  239. package/dist/radar.js +1 -1
  240. package/dist/railroad-3IZDKUUU-DALJwv16.js +5 -0
  241. package/dist/railroad-3IZDKUUU-DGzXHqt7.cjs +1 -0
  242. package/dist/railroad-abnf-AHOZXSZD-BCIHdSw6.cjs +1 -0
  243. package/dist/railroad-abnf-AHOZXSZD-CntW2udQ.js +5 -0
  244. package/dist/railroad-ebnf-EBAXGLYW-4vFZrfHF.cjs +1 -0
  245. package/dist/railroad-ebnf-EBAXGLYW-s_1ZOb_9.js +5 -0
  246. package/dist/railroad-peg-LSFZ7HO6-CaM5A0Ml.js +5 -0
  247. package/dist/railroad-peg-LSFZ7HO6-D_oFW1Bo.cjs +1 -0
  248. package/dist/railroadDiagram-RFXS5EU6-0lS5wYI7.js +83 -0
  249. package/dist/railroadDiagram-RFXS5EU6-DJKAtnQk.cjs +1 -0
  250. package/dist/ranui.css +1 -1
  251. package/dist/requirementDiagram-TGXJPOKE-Bg701bNl.cjs +84 -0
  252. package/dist/requirementDiagram-TGXJPOKE-viCQLyJd.js +2301 -0
  253. package/dist/rolldown-runtime-9ZSF5uba.js +16 -0
  254. package/dist/rolldown-runtime-CAnuVJ4g.cjs +1 -0
  255. package/dist/rough.esm-BWe9E0Nz.js +1387 -0
  256. package/dist/rough.esm-BfSi6CZE.cjs +1 -0
  257. package/dist/{route-Djrf9UR_.js → route-CGwS0cd_.js} +10 -10
  258. package/dist/route.js +1 -1
  259. package/dist/{router-BU2KhtxV.js → router-BK6DEkcN.js} +5 -5
  260. package/dist/router.js +1 -1
  261. package/dist/sankeyDiagram-HTMAVEWB-CV6_AuMF.js +974 -0
  262. package/dist/sankeyDiagram-HTMAVEWB-K-nGMsuS.cjs +40 -0
  263. package/dist/{scratch-CO4I2dIa.js → scratch-ClF1awGi.js} +2 -2
  264. package/dist/scratch.js +1 -1
  265. package/dist/{section-CsUkp8bv.js → section-BL0V7Kjf.js} +2 -2
  266. package/dist/section.js +1 -1
  267. package/dist/{select-Dn26ajJZ.js → select-BIFVbQIj.js} +13 -13
  268. package/dist/select.js +1 -1
  269. package/dist/sequenceDiagram-DBY2YBRQ-4GdkLnUr.cjs +162 -0
  270. package/dist/sequenceDiagram-DBY2YBRQ-B9WNesh2.js +4326 -0
  271. package/dist/sizeCapture-X5ZJPWSS-BUY3-n09.cjs +1 -0
  272. package/dist/sizeCapture-X5ZJPWSS-D7rGsqTl.js +48 -0
  273. package/dist/{skeleton-BuMLhvzQ.js → skeleton-D7JIbROq.js} +5 -5
  274. package/dist/skeleton.js +1 -1
  275. package/dist/src-C9EhKhbk.cjs +1 -0
  276. package/dist/src-DtRLxcYO.js +2104 -0
  277. package/dist/stateDiagram-2N3HPSRC-B7VpgjJu.cjs +1 -0
  278. package/dist/stateDiagram-2N3HPSRC-DxH4BMSh.js +237 -0
  279. package/dist/stateDiagram-v2-6OUMAXLB-CQv7GIaO.cjs +1 -0
  280. package/dist/stateDiagram-v2-6OUMAXLB-CWfn6e7n.js +30 -0
  281. package/dist/swimlanes-5IMT3BWC-DcADNGpg.js +5258 -0
  282. package/dist/swimlanes-5IMT3BWC-o-MjdPlw.cjs +1 -0
  283. package/dist/swimlanesDiagram-G3AALYLV-D-rmAGky.cjs +8 -0
  284. package/dist/swimlanesDiagram-G3AALYLV-DDtDtl1L.js +31 -0
  285. package/dist/{tab-40fDkuox.js → tab-DFVtDJb2.js} +5 -5
  286. package/dist/tab.js +1 -1
  287. package/dist/{tabpane-F4Pd7JtC.js → tabpane-C3qZGN-D.js} +5 -5
  288. package/dist/tabpane.js +1 -1
  289. package/dist/test/ssr/stream.test.d.ts +1 -0
  290. package/dist/{theme-switch-B09egc6h.js → theme-switch-BXNH5uPD.js} +45 -45
  291. package/dist/theme-switch.js +1 -1
  292. package/dist/timeline-definition-FHXFAJF6-C80VjPLh.js +1119 -0
  293. package/dist/timeline-definition-FHXFAJF6-DOwvOb3S.cjs +120 -0
  294. package/dist/treeView-QDETBFTQ-B1Ejxfpg.cjs +1 -0
  295. package/dist/treeView-QDETBFTQ-vTKOZls1.js +5 -0
  296. package/dist/treemap-6X3UGDF4-D0FeO_NX.cjs +1 -0
  297. package/dist/treemap-6X3UGDF4-Ddzv6Gqd.js +5 -0
  298. package/dist/utils/builder/core.d.ts +135 -3
  299. package/dist/utils/builder/index.d.ts +1 -1
  300. package/dist/{utils-DBfrRFoE.js → utils-D1iZnChu.js} +38 -31
  301. package/dist/vennDiagram-L72KCM5P-BYHB7OW8.js +1955 -0
  302. package/dist/vennDiagram-L72KCM5P-CidVJK6y.cjs +34 -0
  303. package/dist/wardley-OPB4EBWU-C1hXbbD4.cjs +1 -0
  304. package/dist/wardley-OPB4EBWU-DBgFLc64.js +5 -0
  305. package/dist/wardleyDiagram-EHGQE667--ubmCaWM.js +652 -0
  306. package/dist/wardleyDiagram-EHGQE667-K6ckkRZS.cjs +78 -0
  307. package/dist/xychartDiagram-FW5EYKEG-CzdokxrM.cjs +7 -0
  308. package/dist/xychartDiagram-FW5EYKEG-DLqWcTPt.js +2154 -0
  309. package/docs/BUILDER.md +170 -2
  310. package/package.json +7 -1
  311. package/dist/button-BfYw0fes.js +0 -117
  312. package/dist/factory-DCrO37si.js +0 -334
@@ -0,0 +1,754 @@
1
+ import { n as de } from "./mermaid-parser.core-uIDZYuBu.js";
2
+ import { n as l } from "./chunk-Y2CYZVJY-0JxdZxki.js";
3
+ import { m as w, p as le } from "./src-DtRLxcYO.js";
4
+ import { H as he, K as $e, U as fe, Y as ge, a as ue, b as J, f as ye, s as B, v as xe, w as me, x as D, y as pe } from "./chunk-WYO6CB5R-DDHkKowO.js";
5
+ import { g as be, i as we, m as ke } from "./chunk-ICXQ74PX-DR8rL-xF.js";
6
+ import { t as Ce } from "./chunk-JWPE2WC7-CGEmUMMZ.js";
7
+ import { t as ve } from "./chunk-2Q5K7J3B-DlFVJRAn.js";
8
+ var m = {
9
+ NORMAL: 0,
10
+ REVERSE: 1,
11
+ HIGHLIGHT: 2,
12
+ MERGE: 3,
13
+ CHERRY_PICK: 4
14
+ }, Ee = ye.gitGraph, S = /* @__PURE__ */ l(() => we({
15
+ ...Ee,
16
+ ...J().gitGraph
17
+ }), "getConfig"), d = new ve(() => {
18
+ const e = S(), r = e.mainBranchName, t = e.mainBranchOrder;
19
+ return {
20
+ mainBranchName: r,
21
+ commits: /* @__PURE__ */ new Map(),
22
+ head: null,
23
+ branchConfig: /* @__PURE__ */ new Map([[r, {
24
+ name: r,
25
+ order: t
26
+ }]]),
27
+ branches: /* @__PURE__ */ new Map([[r, null]]),
28
+ currBranch: r,
29
+ direction: "LR",
30
+ seq: 0,
31
+ options: {}
32
+ };
33
+ });
34
+ function j() {
35
+ return ke({ length: 7 });
36
+ }
37
+ l(j, "getID");
38
+ function re(e, r) {
39
+ const t = /* @__PURE__ */ Object.create(null);
40
+ return e.reduce((s, o) => {
41
+ const c = r(o);
42
+ return t[c] || (t[c] = !0, s.push(o)), s;
43
+ }, []);
44
+ }
45
+ l(re, "uniqBy");
46
+ var Be = /* @__PURE__ */ l(function(e) {
47
+ d.records.direction = e;
48
+ }, "setDirection"), Te = /* @__PURE__ */ l(function(e) {
49
+ w.debug("options str", e), e = e?.trim(), e = e || "{}";
50
+ try {
51
+ d.records.options = JSON.parse(e);
52
+ } catch (r) {
53
+ w.error("error while parsing gitGraph options", r.message);
54
+ }
55
+ }, "setOptions"), Le = /* @__PURE__ */ l(function() {
56
+ return d.records.options;
57
+ }, "getOptions"), Me = /* @__PURE__ */ l(function(e) {
58
+ let r = e.msg, t = e.id;
59
+ const s = e.type;
60
+ let o = e.tags;
61
+ w.info("commit", r, t, s, o), w.debug("Entering commit:", r, t, s, o);
62
+ const c = S();
63
+ t = B.sanitizeText(t, c), r = B.sanitizeText(r, c), o = o?.map((n) => B.sanitizeText(n, c));
64
+ const a = {
65
+ id: t || d.records.seq + "-" + j(),
66
+ message: r,
67
+ seq: d.records.seq++,
68
+ type: s ?? m.NORMAL,
69
+ tags: o ?? [],
70
+ parents: d.records.head == null ? [] : [d.records.head.id],
71
+ branch: d.records.currBranch
72
+ };
73
+ d.records.head = a, w.info("main branch", c.mainBranchName), d.records.commits.has(a.id) && w.warn(`Commit ID ${a.id} already exists`), d.records.commits.set(a.id, a), d.records.branches.set(d.records.currBranch, a.id), w.debug("in pushCommit " + a.id);
74
+ }, "commit"), Re = /* @__PURE__ */ l(function(e) {
75
+ let r = e.name;
76
+ const t = e.order;
77
+ if (r = B.sanitizeText(r, S()), d.records.branches.has(r)) 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 ${r}")`);
78
+ d.records.branches.set(r, d.records.head != null ? d.records.head.id : null), d.records.branchConfig.set(r, {
79
+ name: r,
80
+ order: t
81
+ }), te(r), w.debug("in createBranch");
82
+ }, "branch"), Ie = /* @__PURE__ */ l((e) => {
83
+ let r = e.branch, t = e.id;
84
+ const s = e.type, o = e.tags, c = S();
85
+ r = B.sanitizeText(r, c), t && (t = B.sanitizeText(t, c));
86
+ const a = d.records.branches.get(d.records.currBranch), n = d.records.branches.get(r), $ = a ? d.records.commits.get(a) : void 0, f = n ? d.records.commits.get(n) : void 0;
87
+ if ($ && f && $.branch === r) throw new Error(`Cannot merge branch '${r}' into itself.`);
88
+ if (d.records.currBranch === r) {
89
+ const i = /* @__PURE__ */ new Error('Incorrect usage of "merge". Cannot merge a branch to itself');
90
+ throw i.hash = {
91
+ text: `merge ${r}`,
92
+ token: `merge ${r}`,
93
+ expected: ["branch abc"]
94
+ }, i;
95
+ }
96
+ if ($ === void 0 || !$) {
97
+ const i = /* @__PURE__ */ new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);
98
+ throw i.hash = {
99
+ text: `merge ${r}`,
100
+ token: `merge ${r}`,
101
+ expected: ["commit"]
102
+ }, i;
103
+ }
104
+ if (!d.records.branches.has(r)) {
105
+ const i = /* @__PURE__ */ new Error('Incorrect usage of "merge". Branch to be merged (' + r + ") does not exist");
106
+ throw i.hash = {
107
+ text: `merge ${r}`,
108
+ token: `merge ${r}`,
109
+ expected: [`branch ${r}`]
110
+ }, i;
111
+ }
112
+ if (f === void 0 || !f) {
113
+ const i = /* @__PURE__ */ new Error('Incorrect usage of "merge". Branch to be merged (' + r + ") has no commits");
114
+ throw i.hash = {
115
+ text: `merge ${r}`,
116
+ token: `merge ${r}`,
117
+ expected: ['"commit"']
118
+ }, i;
119
+ }
120
+ if ($ === f) {
121
+ const i = /* @__PURE__ */ new Error('Incorrect usage of "merge". Both branches have same head');
122
+ throw i.hash = {
123
+ text: `merge ${r}`,
124
+ token: `merge ${r}`,
125
+ expected: ["branch abc"]
126
+ }, i;
127
+ }
128
+ if (t && d.records.commits.has(t)) {
129
+ const i = /* @__PURE__ */ new Error('Incorrect usage of "merge". Commit with id:' + t + " already exists, use different custom id");
130
+ throw i.hash = {
131
+ text: `merge ${r} ${t} ${s} ${o?.join(" ")}`,
132
+ token: `merge ${r} ${t} ${s} ${o?.join(" ")}`,
133
+ expected: [`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]
134
+ }, i;
135
+ }
136
+ const g = n || "", h = {
137
+ id: t || `${d.records.seq}-${j()}`,
138
+ message: `merged branch ${r} into ${d.records.currBranch}`,
139
+ seq: d.records.seq++,
140
+ parents: d.records.head == null ? [] : [d.records.head.id, g],
141
+ branch: d.records.currBranch,
142
+ type: m.MERGE,
143
+ customType: s,
144
+ customId: !!t,
145
+ tags: o ?? []
146
+ };
147
+ d.records.head = h, d.records.commits.set(h.id, h), d.records.branches.set(d.records.currBranch, h.id), w.debug(d.records.branches), w.debug("in mergeBranch");
148
+ }, "merge"), Oe = /* @__PURE__ */ l(function(e) {
149
+ let r = e.id, t = e.targetId, s = e.tags, o = e.parent;
150
+ w.debug("Entering cherryPick:", r, t, s);
151
+ const c = S();
152
+ if (r = B.sanitizeText(r, c), t = B.sanitizeText(t, c), s = s?.map(($) => B.sanitizeText($, c)), o = B.sanitizeText(o, c), !r || !d.records.commits.has(r)) {
153
+ const $ = /* @__PURE__ */ new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
154
+ throw $.hash = {
155
+ text: `cherryPick ${r} ${t}`,
156
+ token: `cherryPick ${r} ${t}`,
157
+ expected: ["cherry-pick abc"]
158
+ }, $;
159
+ }
160
+ const a = d.records.commits.get(r);
161
+ if (a === void 0 || !a) throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');
162
+ if (o && !(Array.isArray(a.parents) && a.parents.includes(o))) throw /* @__PURE__ */ new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");
163
+ const n = a.branch;
164
+ if (a.type === m.MERGE && !o) throw /* @__PURE__ */ new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");
165
+ if (!t || !d.records.commits.has(t)) {
166
+ if (n === d.records.currBranch) {
167
+ const h = /* @__PURE__ */ new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');
168
+ throw h.hash = {
169
+ text: `cherryPick ${r} ${t}`,
170
+ token: `cherryPick ${r} ${t}`,
171
+ expected: ["cherry-pick abc"]
172
+ }, h;
173
+ }
174
+ const $ = d.records.branches.get(d.records.currBranch);
175
+ if ($ === void 0 || !$) {
176
+ const h = /* @__PURE__ */ new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);
177
+ throw h.hash = {
178
+ text: `cherryPick ${r} ${t}`,
179
+ token: `cherryPick ${r} ${t}`,
180
+ expected: ["cherry-pick abc"]
181
+ }, h;
182
+ }
183
+ const f = d.records.commits.get($);
184
+ if (f === void 0 || !f) {
185
+ const h = /* @__PURE__ */ new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);
186
+ throw h.hash = {
187
+ text: `cherryPick ${r} ${t}`,
188
+ token: `cherryPick ${r} ${t}`,
189
+ expected: ["cherry-pick abc"]
190
+ }, h;
191
+ }
192
+ const g = {
193
+ id: d.records.seq + "-" + j(),
194
+ message: `cherry-picked ${a?.message} into ${d.records.currBranch}`,
195
+ seq: d.records.seq++,
196
+ parents: d.records.head == null ? [] : [d.records.head.id, a.id],
197
+ branch: d.records.currBranch,
198
+ type: m.CHERRY_PICK,
199
+ tags: s ? s.filter(Boolean) : [`cherry-pick:${a.id}${a.type === m.MERGE ? `|parent:${o}` : ""}`]
200
+ };
201
+ d.records.head = g, d.records.commits.set(g.id, g), d.records.branches.set(d.records.currBranch, g.id), w.debug(d.records.branches), w.debug("in cherryPick");
202
+ }
203
+ }, "cherryPick"), te = /* @__PURE__ */ l(function(e) {
204
+ if (e = B.sanitizeText(e, S()), d.records.branches.has(e)) {
205
+ d.records.currBranch = e;
206
+ const r = d.records.branches.get(d.records.currBranch);
207
+ r === void 0 || !r ? d.records.head = null : d.records.head = d.records.commits.get(r) ?? null;
208
+ } else {
209
+ const r = /* @__PURE__ */ new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);
210
+ throw r.hash = {
211
+ text: `checkout ${e}`,
212
+ token: `checkout ${e}`,
213
+ expected: [`branch ${e}`]
214
+ }, r;
215
+ }
216
+ }, "checkout");
217
+ function V(e, r, t) {
218
+ const s = e.indexOf(r);
219
+ s === -1 ? e.push(t) : e.splice(s, 1, t);
220
+ }
221
+ l(V, "upsert");
222
+ function Q(e) {
223
+ const r = e.reduce((o, c) => o.seq > c.seq ? o : c, e[0]);
224
+ let t = "";
225
+ e.forEach(function(o) {
226
+ o === r ? t += " *" : t += " |";
227
+ });
228
+ const s = [
229
+ t,
230
+ r.id,
231
+ r.seq
232
+ ];
233
+ for (const o in d.records.branches) d.records.branches.get(o) === r.id && s.push(o);
234
+ if (w.debug(s.join(" ")), r.parents && r.parents.length == 2 && r.parents[0] && r.parents[1]) {
235
+ const o = d.records.commits.get(r.parents[0]);
236
+ V(e, r, o), r.parents[1] && e.push(d.records.commits.get(r.parents[1]));
237
+ } else {
238
+ if (r.parents.length == 0) return;
239
+ if (r.parents[0]) {
240
+ const o = d.records.commits.get(r.parents[0]);
241
+ V(e, r, o);
242
+ }
243
+ }
244
+ e = re(e, (o) => o.id), Q(e);
245
+ }
246
+ l(Q, "prettyPrintCommitHistory");
247
+ var _e = /* @__PURE__ */ l(function() {
248
+ w.debug(d.records.commits);
249
+ const e = ae()[0];
250
+ Q([e]);
251
+ }, "prettyPrint"), Ge = /* @__PURE__ */ l(function() {
252
+ d.reset(), ue();
253
+ }, "clear"), He = /* @__PURE__ */ l(function() {
254
+ return [...d.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : {
255
+ ...e,
256
+ order: parseFloat(`0.${r}`)
257
+ }).sort((e, r) => (e.order ?? 0) - (r.order ?? 0)).map(({ name: e }) => ({ name: e }));
258
+ }, "getBranchesAsObjArray"), Se = /* @__PURE__ */ l(function() {
259
+ return d.records.branches;
260
+ }, "getBranches"), Ae = /* @__PURE__ */ l(function() {
261
+ return d.records.commits;
262
+ }, "getCommits"), ae = /* @__PURE__ */ l(function() {
263
+ const e = [...d.records.commits.values()];
264
+ return e.forEach(function(r) {
265
+ w.debug(r.id);
266
+ }), e.sort((r, t) => r.seq - t.seq), e;
267
+ }, "getCommitsArray"), ne = {
268
+ commitType: m,
269
+ getConfig: S,
270
+ setDirection: Be,
271
+ setOptions: Te,
272
+ getOptions: Le,
273
+ commit: Me,
274
+ branch: Re,
275
+ merge: Ie,
276
+ cherryPick: Oe,
277
+ checkout: te,
278
+ prettyPrint: _e,
279
+ clear: Ge,
280
+ getBranchesAsObjArray: He,
281
+ getBranches: Se,
282
+ getCommits: Ae,
283
+ getCommitsArray: ae,
284
+ getCurrentBranch: /* @__PURE__ */ l(function() {
285
+ return d.records.currBranch;
286
+ }, "getCurrentBranch"),
287
+ getDirection: /* @__PURE__ */ l(function() {
288
+ return d.records.direction;
289
+ }, "getDirection"),
290
+ getHead: /* @__PURE__ */ l(function() {
291
+ return d.records.head;
292
+ }, "getHead"),
293
+ setAccTitle: fe,
294
+ getAccTitle: pe,
295
+ getAccDescription: xe,
296
+ setAccDescription: he,
297
+ setDiagramTitle: $e,
298
+ getDiagramTitle: me
299
+ }, We = /* @__PURE__ */ l((e, r) => {
300
+ Ce(e, r), e.dir && r.setDirection(e.dir);
301
+ for (const t of e.statements) qe(t, r);
302
+ }, "populate"), qe = /* @__PURE__ */ l((e, r) => {
303
+ const t = {
304
+ Commit: /* @__PURE__ */ l((s) => r.commit(Ne(s)), "Commit"),
305
+ Branch: /* @__PURE__ */ l((s) => r.branch(De(s)), "Branch"),
306
+ Merge: /* @__PURE__ */ l((s) => r.merge(ze(s)), "Merge"),
307
+ Checkout: /* @__PURE__ */ l((s) => r.checkout(Fe(s)), "Checkout"),
308
+ CherryPicking: /* @__PURE__ */ l((s) => r.cherryPick(Pe(s)), "CherryPicking")
309
+ }[e.$type];
310
+ t ? t(e) : w.error(`Unknown statement type: ${e.$type}`);
311
+ }, "parseStatement"), Ne = /* @__PURE__ */ l((e) => ({
312
+ id: e.id,
313
+ msg: e.message ?? "",
314
+ type: e.type !== void 0 ? m[e.type] : m.NORMAL,
315
+ tags: e.tags ?? void 0
316
+ }), "parseCommit"), De = /* @__PURE__ */ l((e) => ({
317
+ name: e.name,
318
+ order: e.order ?? 0
319
+ }), "parseBranch"), ze = /* @__PURE__ */ l((e) => ({
320
+ branch: e.branch,
321
+ id: e.id ?? "",
322
+ type: e.type !== void 0 ? m[e.type] : void 0,
323
+ tags: e.tags ?? void 0
324
+ }), "parseMerge"), Fe = /* @__PURE__ */ l((e) => e.branch, "parseCheckout"), Pe = /* @__PURE__ */ l((e) => ({
325
+ id: e.id,
326
+ targetId: "",
327
+ tags: e.tags?.length === 0 ? void 0 : e.tags,
328
+ parent: e.parent
329
+ }), "parseCherryPicking"), Ye = { parse: /* @__PURE__ */ l(async (e) => {
330
+ const r = await de("gitGraph", e);
331
+ w.debug(r), We(r, ne);
332
+ }, "parse") }, O = 10, _ = 40, L = 4, R = 2, G = 8, U = /* @__PURE__ */ new Set([
333
+ "redux",
334
+ "redux-dark",
335
+ "redux-color",
336
+ "redux-dark-color"
337
+ ]), X = 12, Z = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), je = /* @__PURE__ */ new Set([
338
+ "dark",
339
+ "redux-dark",
340
+ "redux-dark-color",
341
+ "neo-dark"
342
+ ]), H = /* @__PURE__ */ l((e, r, t = !1) => t && e > 0 ? (e - 1) % (r - 1) + 1 : e % r, "calcColorIndex"), v = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), P = 30, q = /* @__PURE__ */ new Map(), Y = [], I = 0, y = "LR", Ue = /* @__PURE__ */ l(() => {
343
+ v.clear(), E.clear(), q.clear(), I = 0, Y = [], y = "LR";
344
+ }, "clear"), se = /* @__PURE__ */ l((e) => {
345
+ const r = document.createElementNS("http://www.w3.org/2000/svg", "text");
346
+ return (typeof e == "string" ? e.split(/\\n|\n|<br\s*\/?>/gi) : e).forEach((t) => {
347
+ const s = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
348
+ s.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:space", "preserve"), s.setAttribute("dy", "1em"), s.setAttribute("x", "0"), s.setAttribute("class", "row"), s.textContent = t.trim(), r.appendChild(s);
349
+ }), r;
350
+ }, "drawText"), oe = /* @__PURE__ */ l((e) => {
351
+ let r, t, s;
352
+ return y === "BT" ? (t = /* @__PURE__ */ l((o, c) => o <= c, "comparisonFunc"), s = 1 / 0) : (t = /* @__PURE__ */ l((o, c) => o >= c, "comparisonFunc"), s = 0), e.forEach((o) => {
353
+ const c = y === "TB" || y == "BT" ? E.get(o)?.y : E.get(o)?.x;
354
+ c !== void 0 && t(c, s) && (r = o, s = c);
355
+ }), r;
356
+ }, "findClosestParent"), Ke = /* @__PURE__ */ l((e) => {
357
+ let r = "", t = 1 / 0;
358
+ return e.forEach((s) => {
359
+ const o = E.get(s).y;
360
+ o <= t && (r = s, t = o);
361
+ }), r || void 0;
362
+ }, "findClosestParentBT"), Ve = /* @__PURE__ */ l((e, r, t) => {
363
+ let s = t, o = t;
364
+ const c = [];
365
+ e.forEach((a) => {
366
+ const n = r.get(a);
367
+ if (!n) throw new Error(`Commit not found for key ${a}`);
368
+ n.parents.length ? (s = Je(n), o = Math.max(s, o)) : c.push(n), Qe(n, s);
369
+ }), s = o, c.forEach((a) => {
370
+ Ze(a, s, t);
371
+ }), e.forEach((a) => {
372
+ const n = r.get(a);
373
+ if (n?.parents.length) {
374
+ const $ = Ke(n.parents);
375
+ s = E.get($).y - _, s <= o && (o = s);
376
+ const f = v.get(n.branch).pos, g = s - O;
377
+ E.set(n.id, {
378
+ x: f,
379
+ y: g
380
+ });
381
+ }
382
+ });
383
+ }, "setParallelBTPos"), Xe = /* @__PURE__ */ l((e) => {
384
+ const r = oe(e.parents.filter((s) => s !== null));
385
+ if (!r) throw new Error(`Closest parent not found for commit ${e.id}`);
386
+ const t = E.get(r)?.y;
387
+ if (t === void 0) throw new Error(`Closest parent position not found for commit ${e.id}`);
388
+ return t;
389
+ }, "findClosestParentPos"), Je = /* @__PURE__ */ l((e) => Xe(e) + _, "calculateCommitPosition"), Qe = /* @__PURE__ */ l((e, r) => {
390
+ const t = v.get(e.branch);
391
+ if (!t) throw new Error(`Branch not found for commit ${e.id}`);
392
+ const s = t.pos, o = r + O;
393
+ return E.set(e.id, {
394
+ x: s,
395
+ y: o
396
+ }), {
397
+ x: s,
398
+ y: o
399
+ };
400
+ }, "setCommitPosition"), Ze = /* @__PURE__ */ l((e, r, t) => {
401
+ const s = v.get(e.branch);
402
+ if (!s) throw new Error(`Branch not found for commit ${e.id}`);
403
+ const o = r + t, c = s.pos;
404
+ E.set(e.id, {
405
+ x: c,
406
+ y: o
407
+ });
408
+ }, "setRootPosition"), er = /* @__PURE__ */ l((e, r, t, s, o, c) => {
409
+ const { theme: a } = D(), n = U.has(a ?? ""), $ = Z.has(a ?? ""), f = je.has(a ?? "");
410
+ if (c === m.HIGHLIGHT)
411
+ e.append("rect").attr("x", t.x - 10 + (n ? 3 : 0)).attr("y", t.y - 10 + (n ? 3 : 0)).attr("width", n ? 14 : 20).attr("height", n ? 14 : 20).attr("class", `commit ${r.id} commit-highlight${H(o, G, $)} ${s}-outer`), e.append("rect").attr("x", t.x - 6 + (n ? 2 : 0)).attr("y", t.y - 6 + (n ? 2 : 0)).attr("width", n ? 8 : 12).attr("height", n ? 8 : 12).attr("class", `commit ${r.id} commit${H(o, G, $)} ${s}-inner`);
412
+ else if (c === m.CHERRY_PICK)
413
+ e.append("circle").attr("cx", t.x).attr("cy", t.y).attr("r", n ? 7 : 10).attr("class", `commit ${r.id} ${s}`), e.append("circle").attr("cx", t.x - 3).attr("cy", t.y + 2).attr("r", n ? 2.5 : 2.75).attr("fill", f ? "#000000" : "#fff").attr("class", `commit ${r.id} ${s}`), e.append("circle").attr("cx", t.x + 3).attr("cy", t.y + 2).attr("r", n ? 2.5 : 2.75).attr("fill", f ? "#000000" : "#fff").attr("class", `commit ${r.id} ${s}`), e.append("line").attr("x1", t.x + 3).attr("y1", t.y + 1).attr("x2", t.x).attr("y2", t.y - 5).attr("stroke", f ? "#000000" : "#fff").attr("class", `commit ${r.id} ${s}`), e.append("line").attr("x1", t.x - 3).attr("y1", t.y + 1).attr("x2", t.x).attr("y2", t.y - 5).attr("stroke", f ? "#000000" : "#fff").attr("class", `commit ${r.id} ${s}`);
414
+ else {
415
+ const g = e.append("circle");
416
+ if (g.attr("cx", t.x), g.attr("cy", t.y), g.attr("r", n ? 7 : 10), g.attr("class", `commit ${r.id} commit${H(o, G, $)}`), c === m.MERGE) {
417
+ const h = e.append("circle");
418
+ h.attr("cx", t.x), h.attr("cy", t.y), h.attr("r", n ? 5 : 6), h.attr("class", `commit ${s} ${r.id} commit${H(o, G, $)}`);
419
+ }
420
+ if (c === m.REVERSE) {
421
+ const h = e.append("path"), i = n ? 4 : 5;
422
+ h.attr("d", `M ${t.x - i},${t.y - i}L${t.x + i},${t.y + i}M${t.x - i},${t.y + i}L${t.x + i},${t.y - i}`).attr("class", `commit ${s} ${r.id} commit${H(o, G, $)}`);
423
+ }
424
+ }
425
+ }, "drawCommitBullet"), rr = /* @__PURE__ */ l((e, r, t, s, o) => {
426
+ if (r.type !== m.CHERRY_PICK && (r.customId && r.type === m.MERGE || r.type !== m.MERGE) && o.showCommitLabel) {
427
+ const c = e.append("g"), a = c.insert("rect").attr("class", "commit-label-bkg"), n = c.append("text").attr("x", s).attr("y", t.y + 25).attr("class", "commit-label").text(r.id), $ = n.node()?.getBBox();
428
+ if ($ && (a.attr("x", t.posWithOffset - $.width / 2 - R).attr("y", t.y + 13.5).attr("width", $.width + 2 * R).attr("height", $.height + 2 * R), y === "TB" || y === "BT" ? (a.attr("x", t.x - ($.width + 4 * L + 5)).attr("y", t.y - 12), n.attr("x", t.x - ($.width + 4 * L)).attr("y", t.y + $.height - 12)) : n.attr("x", t.posWithOffset - $.width / 2), o.rotateCommitLabel))
429
+ if (y === "TB" || y === "BT")
430
+ n.attr("transform", "rotate(-45, " + t.x + ", " + t.y + ")"), a.attr("transform", "rotate(-45, " + t.x + ", " + t.y + ")");
431
+ else {
432
+ const f = -7.5 - ($.width + 10) / 25 * 9.5, g = 10 + $.width / 25 * 8.5;
433
+ c.attr("transform", "translate(" + f + ", " + g + ") rotate(-45, " + s + ", " + t.y + ")");
434
+ }
435
+ }
436
+ }, "drawCommitLabel"), tr = /* @__PURE__ */ l((e, r, t, s) => {
437
+ if (r.tags.length > 0) {
438
+ let o = 0, c = 0, a = 0;
439
+ const n = [];
440
+ for (const $ of r.tags.reverse()) {
441
+ const f = e.insert("polygon"), g = e.append("circle"), h = e.append("text").attr("y", t.y - 16 - o).attr("class", "tag-label").text($), i = h.node()?.getBBox();
442
+ if (!i) throw new Error("Tag bbox not found");
443
+ c = Math.max(c, i.width), a = Math.max(a, i.height), h.attr("x", t.posWithOffset - i.width / 2), n.push({
444
+ tag: h,
445
+ hole: g,
446
+ rect: f,
447
+ yOffset: o
448
+ }), o += 20;
449
+ }
450
+ for (const { tag: $, hole: f, rect: g, yOffset: h } of n) {
451
+ const i = a / 2, x = t.y - 19.2 - h;
452
+ if (g.attr("class", "tag-label-bkg").attr("points", `
453
+ ${s - c / 2 - L / 2},${x + R}
454
+ ${s - c / 2 - L / 2},${x - R}
455
+ ${t.posWithOffset - c / 2 - L},${x - i - R}
456
+ ${t.posWithOffset + c / 2 + L},${x - i - R}
457
+ ${t.posWithOffset + c / 2 + L},${x + i + R}
458
+ ${t.posWithOffset - c / 2 - L},${x + i + R}`), f.attr("cy", x).attr("cx", s - c / 2 + L / 2).attr("r", 1.5).attr("class", "tag-hole"), y === "TB" || y === "BT") {
459
+ const u = s + h;
460
+ g.attr("class", "tag-label-bkg").attr("points", `
461
+ ${t.x},${u + 2}
462
+ ${t.x},${u - 2}
463
+ ${t.x + O},${u - i - 2}
464
+ ${t.x + O + c + 4},${u - i - 2}
465
+ ${t.x + O + c + 4},${u + i + 2}
466
+ ${t.x + O},${u + i + 2}`).attr("transform", "translate(12,12) rotate(45, " + t.x + "," + s + ")"), f.attr("cx", t.x + L / 2).attr("cy", u).attr("transform", "translate(12,12) rotate(45, " + t.x + "," + s + ")"), $.attr("x", t.x + 5).attr("y", u + 3).attr("transform", "translate(14,14) rotate(45, " + t.x + "," + s + ")");
467
+ }
468
+ }
469
+ }
470
+ }, "drawCommitTags"), ar = /* @__PURE__ */ l((e) => {
471
+ switch (e.customType ?? e.type) {
472
+ case m.NORMAL:
473
+ return "commit-normal";
474
+ case m.REVERSE:
475
+ return "commit-reverse";
476
+ case m.HIGHLIGHT:
477
+ return "commit-highlight";
478
+ case m.MERGE:
479
+ return "commit-merge";
480
+ case m.CHERRY_PICK:
481
+ return "commit-cherry-pick";
482
+ default:
483
+ return "commit-normal";
484
+ }
485
+ }, "getCommitClassType"), nr = /* @__PURE__ */ l((e, r, t, s) => {
486
+ const o = {
487
+ x: 0,
488
+ y: 0
489
+ };
490
+ if (e.parents.length > 0) {
491
+ const c = oe(e.parents);
492
+ if (c) {
493
+ const a = s.get(c) ?? o;
494
+ return r === "TB" ? a.y + _ : r === "BT" ? (s.get(e.id) ?? o).y - _ : a.x + _;
495
+ }
496
+ } else return r === "TB" ? P : r === "BT" ? (s.get(e.id) ?? o).y - _ : 0;
497
+ return 0;
498
+ }, "calculatePosition"), sr = /* @__PURE__ */ l((e, r, t) => {
499
+ const s = y === "BT" && t ? r : r + O, o = v.get(e.branch)?.pos, c = y === "TB" || y === "BT" ? v.get(e.branch)?.pos : s;
500
+ if (c === void 0 || o === void 0) throw new Error(`Position were undefined for commit ${e.id}`);
501
+ const a = U.has(D().theme ?? "");
502
+ return {
503
+ x: c,
504
+ y: y === "TB" || y === "BT" ? s : o + (a ? X / 2 + 1 : -2),
505
+ posWithOffset: s
506
+ };
507
+ }, "getCommitPosition"), ee = /* @__PURE__ */ l((e, r, t, s) => {
508
+ const o = e.append("g").attr("class", "commit-bullets"), c = e.append("g").attr("class", "commit-labels");
509
+ let a = y === "TB" || y === "BT" ? P : 0;
510
+ const n = [...r.keys()], $ = s.parallelCommits ?? !1, f = /* @__PURE__ */ l((h, i) => {
511
+ const x = r.get(h)?.seq, u = r.get(i)?.seq;
512
+ return x !== void 0 && u !== void 0 ? x - u : 0;
513
+ }, "sortKeys");
514
+ let g = n.sort(f);
515
+ y === "BT" && ($ && Ve(g, r, a), g = g.reverse()), g.forEach((h) => {
516
+ const i = r.get(h);
517
+ if (!i) throw new Error(`Commit not found for key ${h}`);
518
+ $ && (a = nr(i, y, a, E));
519
+ const x = sr(i, a, $);
520
+ if (t) {
521
+ const u = ar(i), p = i.customType ?? i.type, b = v.get(i.branch)?.index ?? 0;
522
+ er(o, i, x, u, b, p), rr(c, i, x, a, s), tr(c, i, x, a);
523
+ }
524
+ y === "TB" || y === "BT" ? E.set(i.id, {
525
+ x: x.x,
526
+ y: x.posWithOffset
527
+ }) : E.set(i.id, {
528
+ x: x.posWithOffset,
529
+ y: x.y
530
+ }), a = y === "BT" && $ ? a + _ : a + _ + O, a > I && (I = a);
531
+ });
532
+ }, "drawCommits"), or = /* @__PURE__ */ l((e, r, t, s, o) => {
533
+ const c = (y === "TB" || y === "BT" ? t.x < s.x : t.y < s.y) ? r.branch : e.branch, a = /* @__PURE__ */ l(($) => $.branch === c, "isOnBranchToGetCurve"), n = /* @__PURE__ */ l(($) => $.seq > e.seq && $.seq < r.seq, "isBetweenCommits");
534
+ return [...o.values()].some(($) => n($) && a($));
535
+ }, "shouldRerouteArrow"), N = /* @__PURE__ */ l((e, r, t = 0) => {
536
+ const s = e + Math.abs(e - r) / 2;
537
+ return t > 5 ? s : Y.every((o) => Math.abs(o - s) >= 10) ? (Y.push(s), s) : N(e, r - Math.abs(e - r) / 5, t + 1);
538
+ }, "findLane"), cr = /* @__PURE__ */ l((e, r, t, s) => {
539
+ const { theme: o } = D(), c = Z.has(o ?? ""), a = E.get(r.id), n = E.get(t.id);
540
+ if (a === void 0 || n === void 0) throw new Error(`Commit positions not found for commits ${r.id} and ${t.id}`);
541
+ const $ = or(r, t, a, n, s);
542
+ let f = "", g = "", h = 0, i = 0, x = v.get(t.branch)?.index;
543
+ t.type === m.MERGE && r.id !== t.parents[0] && (x = v.get(r.branch)?.index);
544
+ let u;
545
+ if ($) {
546
+ f = "A 10 10, 0, 0, 0,", g = "A 10 10, 0, 0, 1,", h = 10, i = 10;
547
+ const p = a.y < n.y ? N(a.y, n.y) : N(n.y, a.y), b = a.x < n.x ? N(a.x, n.x) : N(n.x, a.x);
548
+ y === "TB" ? a.x < n.x ? u = `M ${a.x} ${a.y} L ${b - h} ${a.y} ${g} ${b} ${a.y + i} L ${b} ${n.y - h} ${f} ${b + i} ${n.y} L ${n.x} ${n.y}` : (x = v.get(r.branch)?.index, u = `M ${a.x} ${a.y} L ${b + h} ${a.y} ${f} ${b} ${a.y + i} L ${b} ${n.y - h} ${g} ${b - i} ${n.y} L ${n.x} ${n.y}`) : y === "BT" ? a.x < n.x ? u = `M ${a.x} ${a.y} L ${b - h} ${a.y} ${f} ${b} ${a.y - i} L ${b} ${n.y + h} ${g} ${b + i} ${n.y} L ${n.x} ${n.y}` : (x = v.get(r.branch)?.index, u = `M ${a.x} ${a.y} L ${b + h} ${a.y} ${g} ${b} ${a.y - i} L ${b} ${n.y + h} ${f} ${b - i} ${n.y} L ${n.x} ${n.y}`) : a.y < n.y ? u = `M ${a.x} ${a.y} L ${a.x} ${p - h} ${f} ${a.x + i} ${p} L ${n.x - h} ${p} ${g} ${n.x} ${p + i} L ${n.x} ${n.y}` : (x = v.get(r.branch)?.index, u = `M ${a.x} ${a.y} L ${a.x} ${p + h} ${g} ${a.x + i} ${p} L ${n.x - h} ${p} ${f} ${n.x} ${p - i} L ${n.x} ${n.y}`);
549
+ } else
550
+ f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", h = 20, i = 20, y === "TB" ? (a.x < n.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${a.x} ${n.y - h} ${f} ${a.x + i} ${n.y} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${n.x - h} ${a.y} ${g} ${n.x} ${a.y + i} L ${n.x} ${n.y}`), a.x > n.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", h = 20, i = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${a.x} ${n.y - h} ${g} ${a.x - i} ${n.y} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${n.x + h} ${a.y} ${f} ${n.x} ${a.y + i} L ${n.x} ${n.y}`), a.x === n.x && (u = `M ${a.x} ${a.y} L ${n.x} ${n.y}`)) : y === "BT" ? (a.x < n.x && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${a.x} ${n.y + h} ${g} ${a.x + i} ${n.y} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${n.x - h} ${a.y} ${f} ${n.x} ${a.y - i} L ${n.x} ${n.y}`), a.x > n.x && (f = "A 20 20, 0, 0, 0,", g = "A 20 20, 0, 0, 1,", h = 20, i = 20, t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${a.x} ${n.y + h} ${f} ${a.x - i} ${n.y} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${n.x + h} ${a.y} ${g} ${n.x} ${a.y - i} L ${n.x} ${n.y}`), a.x === n.x && (u = `M ${a.x} ${a.y} L ${n.x} ${n.y}`)) : (a.y < n.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${n.x - h} ${a.y} ${g} ${n.x} ${a.y + i} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${a.x} ${n.y - h} ${f} ${a.x + i} ${n.y} L ${n.x} ${n.y}`), a.y > n.y && (t.type === m.MERGE && r.id !== t.parents[0] ? u = `M ${a.x} ${a.y} L ${n.x - h} ${a.y} ${f} ${n.x} ${a.y - i} L ${n.x} ${n.y}` : u = `M ${a.x} ${a.y} L ${a.x} ${n.y + h} ${g} ${a.x + i} ${n.y} L ${n.x} ${n.y}`), a.y === n.y && (u = `M ${a.x} ${a.y} L ${n.x} ${n.y}`));
551
+ if (u === void 0) throw new Error("Line definition not found");
552
+ e.append("path").attr("d", u).attr("class", "arrow arrow" + H(x, G, c));
553
+ }, "drawArrow"), ir = /* @__PURE__ */ l((e, r) => {
554
+ const t = e.append("g").attr("class", "commit-arrows");
555
+ [...r.keys()].forEach((s) => {
556
+ const o = r.get(s);
557
+ o.parents && o.parents.length > 0 && o.parents.forEach((c) => {
558
+ cr(t, r.get(c), o, r);
559
+ });
560
+ });
561
+ }, "drawArrows"), dr = /* @__PURE__ */ l((e, r, t, s) => {
562
+ const { look: o, theme: c, themeVariables: a } = D(), { dropShadow: n, THEME_COLOR_LIMIT: $ } = a, f = U.has(c ?? ""), g = Z.has(c ?? ""), h = e.append("g");
563
+ r.forEach((i, x) => {
564
+ const u = H(x, f ? $ : G, g), p = v.get(i.name)?.pos;
565
+ if (p === void 0) throw new Error(`Position not found for branch ${i.name}`);
566
+ const b = y === "TB" || y === "BT" ? p : f ? p + X / 2 + 1 : p - 2, k = h.append("line");
567
+ k.attr("x1", 0), k.attr("y1", b), k.attr("x2", I), k.attr("y2", b), k.attr("class", "branch branch" + u), y === "TB" ? (k.attr("y1", P), k.attr("x1", p), k.attr("y2", I), k.attr("x2", p)) : y === "BT" && (k.attr("y1", I), k.attr("x1", p), k.attr("y2", P), k.attr("x2", p)), Y.push(b);
568
+ const K = i.name, W = se(K), T = h.insert("rect"), M = h.insert("g").attr("class", "branchLabel").insert("g").attr("class", "label branch-label" + u);
569
+ M.node().appendChild(W);
570
+ const C = W.getBBox(), z = f ? 0 : 4, F = f ? 16 : 0, A = f ? X : 0;
571
+ o === "neo" && T.attr("data-look", "neo"), T.attr("class", "branchLabelBkg label" + u).attr("style", o === "neo" ? `filter:${f ? `url(#${s}-drop-shadow)` : n}` : "").attr("rx", z).attr("ry", z).attr("x", -C.width - 4 - (t.rotateCommitLabel === !0 ? 30 : 0)).attr("y", -C.height / 2 + 10).attr("width", C.width + 18 + F).attr("height", C.height + 4 + A), M.attr("transform", "translate(" + (-C.width - 14 - (t.rotateCommitLabel === !0 ? 30 : 0) + F / 2) + ", " + (b - C.height / 2 - 2) + ")"), y === "TB" ? (T.attr("x", p - C.width / 2 - 10).attr("y", 0), M.attr("transform", "translate(" + (p - C.width / 2 - 5) + ", 0)"), f && (T.attr("transform", `translate(${-F / 2 - 3}, ${-A - 10})`), M.attr("transform", "translate(" + (p - C.width / 2 - 5) + ", " + (-A * 2 + 7) + ")"))) : y === "BT" ? (T.attr("x", p - C.width / 2 - 10).attr("y", I), M.attr("transform", "translate(" + (p - C.width / 2 - 5) + ", " + I + ")"), f && (T.attr("transform", `translate(${-F / 2 - 3}, ${A + 10})`), M.attr("transform", "translate(" + (p - C.width / 2 - 5) + ", " + (I + A * 2 + 4) + ")"))) : T.attr("transform", "translate(-19, " + (b - 12 - A / 2) + ")");
572
+ });
573
+ }, "drawBranches"), lr = /* @__PURE__ */ l(function(e, r, t, s, o) {
574
+ return v.set(e, {
575
+ pos: r,
576
+ index: t
577
+ }), r += 50 + (o ? 40 : 0) + (y === "TB" || y === "BT" ? s.width / 2 : 0), r;
578
+ }, "setBranchPosition"), hr = { draw: /* @__PURE__ */ l(function(e, r, t, s) {
579
+ Ue(), w.debug("in gitgraph renderer", e + `
580
+ `, "id:", r, t);
581
+ const o = s.db;
582
+ if (!o.getConfig) {
583
+ w.error("getConfig method is not available on db");
584
+ return;
585
+ }
586
+ const c = o.getConfig(), a = c.rotateCommitLabel ?? !1;
587
+ q = o.getCommits();
588
+ const n = o.getBranchesAsObjArray();
589
+ y = o.getDirection();
590
+ const $ = le(`[id="${r}"]`), { look: f, theme: g, themeVariables: h } = D(), { useGradient: i, gradientStart: x, gradientStop: u, filterColor: p } = h;
591
+ if (i) {
592
+ const k = $.append("defs").append("linearGradient").attr("id", r + "-gradient").attr("gradientUnits", "objectBoundingBox").attr("x1", "0%").attr("y1", "0%").attr("x2", "100%").attr("y2", "0%");
593
+ k.append("stop").attr("offset", "0%").attr("stop-color", x).attr("stop-opacity", 1), k.append("stop").attr("offset", "100%").attr("stop-color", u).attr("stop-opacity", 1);
594
+ }
595
+ f === "neo" && U.has(g ?? "") && $.append("defs").append("filter").attr("id", r + "-drop-shadow").attr("height", "130%").attr("width", "130%").append("feDropShadow").attr("dx", "4").attr("dy", "4").attr("stdDeviation", 0).attr("flood-opacity", "0.06").attr("flood-color", p);
596
+ let b = 0;
597
+ n.forEach((k, K) => {
598
+ const W = se(k.name), T = $.append("g"), M = T.insert("g").attr("class", "branchLabel"), C = M.insert("g").attr("class", "label branch-label");
599
+ C.node()?.appendChild(W);
600
+ const z = W.getBBox();
601
+ b = lr(k.name, b, K, z, a), C.remove(), M.remove(), T.remove();
602
+ }), ee($, q, !1, c), c.showBranches && dr($, n, c, r), ir($, q), ee($, q, !0, c), be.insertTitle($, "gitTitleText", c.titleTopMargin ?? 0, o.getDiagramTitle()), ge(void 0, $, c.diagramPadding, c.useMaxWidth);
603
+ }, "draw") }, ce = 8, ie = /* @__PURE__ */ new Set([
604
+ "redux",
605
+ "redux-dark",
606
+ "redux-color",
607
+ "redux-dark-color"
608
+ ]), $r = /* @__PURE__ */ new Set(["redux-color", "redux-dark-color"]), fr = /* @__PURE__ */ new Set(["neo", "neo-dark"]), gr = /* @__PURE__ */ new Set([
609
+ "dark",
610
+ "redux-dark",
611
+ "redux-dark-color",
612
+ "neo-dark"
613
+ ]), ur = /* @__PURE__ */ new Set([
614
+ "redux",
615
+ "redux-dark",
616
+ "redux-color",
617
+ "redux-dark-color",
618
+ "neo",
619
+ "neo-dark"
620
+ ]), yr = /* @__PURE__ */ l((e) => {
621
+ const { svgId: r } = e;
622
+ let t = "";
623
+ if (e.useGradient && r) for (let s = 0; s < e.THEME_COLOR_LIMIT; s++) t += `
624
+ .label${s} { fill: ${e.mainBkg}; stroke: url(${r}-gradient); stroke-width: ${e.strokeWidth};}
625
+ `;
626
+ return t;
627
+ }, "genGitGraphGradient"), xr = /* @__PURE__ */ l((e) => {
628
+ const { theme: r, themeVariables: t } = J(), { borderColorArray: s } = t, o = ie.has(r);
629
+ if (fr.has(r)) {
630
+ let c = "";
631
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) c += `
632
+ .branch-label${a} { fill: ${e.nodeBorder};}
633
+ .commit${a} { stroke: ${e.nodeBorder}; }
634
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
635
+ .arrow${a} { stroke: ${e.nodeBorder}; }
636
+ .commit-bullets { fill: ${e.nodeBorder}; }
637
+ .commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
638
+ ${yr(e)}`;
639
+ else {
640
+ const n = a % ce;
641
+ c += `
642
+ .branch-label${a} { fill: ${e["gitBranchLabel" + n]}; }
643
+ .commit${a} { stroke: ${e["git" + n]}; fill: ${e["git" + n]}; }
644
+ .commit-highlight${a} { stroke: ${e["gitInv" + n]}; fill: ${e["gitInv" + n]}; }
645
+ .arrow${a} { stroke: ${e["git" + n]}; }
646
+ `;
647
+ }
648
+ return c;
649
+ } else if ($r.has(r)) {
650
+ let c = "";
651
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) if (a === 0) c += `
652
+ .branch-label${a} { fill: ${e.nodeBorder}; ${o ? `font-weight:${e.noteFontWeight}` : ""} }
653
+ .commit${a} { stroke: ${e.nodeBorder}; }
654
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.mainBkg}; }
655
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${o ? `font-weight:${e.noteFontWeight}` : ""} }
656
+ .arrow${a} { stroke: ${e.nodeBorder}; }
657
+ .commit-bullets { fill: ${e.nodeBorder}; }
658
+ `;
659
+ else {
660
+ const n = a % s.length;
661
+ c += `
662
+ .branch-label${a} { fill: ${e.nodeBorder}; ${o ? `font-weight:${e.noteFontWeight}` : ""} }
663
+ .commit${a} { stroke: ${s[n]}; fill: ${s[n]}; }
664
+ .commit-highlight${a} { stroke: ${s[n]}; fill: ${s[n]}; }
665
+ .label${a} { fill: ${gr.has(r) ? e.mainBkg : s[n]}; stroke: ${s[n]}; stroke-width: ${e.strokeWidth}; }
666
+ .arrow${a} { stroke: ${s[n]}; }
667
+ `;
668
+ }
669
+ return c;
670
+ } else {
671
+ let c = "";
672
+ for (let a = 0; a < e.THEME_COLOR_LIMIT; a++) c += `
673
+ .branch-label${a} { fill: ${e.nodeBorder}; ${o ? `font-weight:${e.noteFontWeight}` : ""} }
674
+ .commit${a} { stroke: ${e.nodeBorder}; }
675
+ .commit-highlight${a} { stroke: ${e.nodeBorder}; fill: ${e.nodeBorder}; }
676
+ .label${a} { fill: ${e.mainBkg}; stroke: ${e.nodeBorder}; stroke-width: ${e.strokeWidth}; ${o ? `font-weight:${e.noteFontWeight}` : ""}}
677
+ .arrow${a} { stroke: ${e.nodeBorder}; }
678
+ .commit-bullets { fill: ${e.nodeBorder}; }
679
+ .commit-cherry-pick${a} { stroke: ${e.nodeBorder}; }
680
+ `;
681
+ return c;
682
+ }
683
+ }, "genColor"), mr = /* @__PURE__ */ l((e) => `${Array.from({ length: e.THEME_COLOR_LIMIT }, (r, t) => t).map((r) => {
684
+ const t = r % ce;
685
+ return `
686
+ .branch-label${r} { fill: ${e["gitBranchLabel" + t]}; }
687
+ .commit${r} { stroke: ${e["git" + t]}; fill: ${e["git" + t]}; }
688
+ .commit-highlight${r} { stroke: ${e["gitInv" + t]}; fill: ${e["gitInv" + t]}; }
689
+ .label${r} { fill: ${e["git" + t]}; }
690
+ .arrow${r} { stroke: ${e["git" + t]}; }
691
+ `;
692
+ }).join(`
693
+ `)}`, "normalTheme"), Br = {
694
+ parser: Ye,
695
+ db: ne,
696
+ renderer: hr,
697
+ styles: /* @__PURE__ */ l((e) => {
698
+ const { theme: r } = J(), t = ur.has(r);
699
+ return `
700
+ .commit-id,
701
+ .commit-msg,
702
+ .branch-label {
703
+ fill: lightgrey;
704
+ color: lightgrey;
705
+ font-family: 'trebuchet ms', verdana, arial, sans-serif;
706
+ font-family: var(--mermaid-font-family);
707
+ }
708
+
709
+ ${t ? xr(e) : mr(e)}
710
+
711
+ .branch {
712
+ stroke-width: ${e.strokeWidth};
713
+ stroke: ${e.commitLineColor ?? e.lineColor};
714
+ stroke-dasharray: ${t ? "4 2" : "2"};
715
+ }
716
+ .commit-label { font-size: ${e.commitLabelFontSize}; fill: ${t ? e.nodeBorder : e.commitLabelColor}; ${t ? `font-weight:${e.noteFontWeight};` : ""}}
717
+ .commit-label-bkg { font-size: ${e.commitLabelFontSize}; fill: ${t ? "transparent" : e.commitLabelBackground}; opacity: ${t ? "" : 0.5}; }
718
+ .tag-label { font-size: ${e.tagLabelFontSize}; fill: ${e.tagLabelColor};}
719
+ .tag-label-bkg { fill: ${t ? e.mainBkg : e.tagLabelBackground}; stroke: ${t ? e.nodeBorder : e.tagLabelBorder}; ${t ? `filter:${e.dropShadow}` : ""} }
720
+ .tag-hole { fill: ${e.textColor}; }
721
+
722
+ .commit-merge {
723
+ stroke: ${t ? e.mainBkg : e.primaryColor};
724
+ fill: ${t ? e.mainBkg : e.primaryColor};
725
+ }
726
+ .commit-reverse {
727
+ stroke: ${t ? e.mainBkg : e.primaryColor};
728
+ fill: ${t ? e.mainBkg : e.primaryColor};
729
+ stroke-width: ${t ? e.strokeWidth : 3};
730
+ }
731
+ .commit-highlight-outer {
732
+ }
733
+ .commit-highlight-inner {
734
+ stroke: ${t ? e.mainBkg : e.primaryColor};
735
+ fill: ${t ? e.mainBkg : e.primaryColor};
736
+ }
737
+
738
+ .arrow {
739
+ /* Intentional: neo themes keep the bold 8px arrow (like classic themes); only redux-geometry themes use the thinner options.strokeWidth. */
740
+ stroke-width: ${ie.has(r) ? e.strokeWidth : 8};
741
+ stroke-linecap: round;
742
+ fill: none
743
+ }
744
+ .gitTitleText {
745
+ text-anchor: middle;
746
+ font-size: 18px;
747
+ fill: ${e.textColor};
748
+ }
749
+ `;
750
+ }, "getStyles")
751
+ };
752
+ export {
753
+ Br as diagram
754
+ };