@intent-hq/web 2.300.0 → 2.300.1

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 (202) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{Ba3Gl_Rx.js → -j8RilKC.js} +2 -2
  3. package/web/app/immutable/chunks/{B-g-NIPK.js → 0-b4ZvTK.js} +1 -1
  4. package/web/app/immutable/chunks/{D2MsQ7CI.js → 1-VabEZ0.js} +1 -1
  5. package/web/app/immutable/chunks/{BcK8h34a.js → 2DcZXs_F.js} +1 -1
  6. package/web/app/immutable/chunks/{DBntrybU.js → 2N3bEpgZ.js} +1 -1
  7. package/web/app/immutable/chunks/{CnpqP3W5.js → 2ZXwYJuA.js} +1 -1
  8. package/web/app/immutable/chunks/{DzZaDWGS.js → 3pZ2C7Oz.js} +1 -1
  9. package/web/app/immutable/chunks/{CDcsX4P8.js → 3sRD2IoY.js} +1 -1
  10. package/web/app/immutable/chunks/{C5BrZ9Uc.js → 4MuDb8sG.js} +1 -1
  11. package/web/app/immutable/chunks/{eUunsB8W.js → 5D7P8R1M.js} +1 -1
  12. package/web/app/immutable/chunks/{CEniOKQx.js → 5GrgBznS.js} +1 -1
  13. package/web/app/immutable/chunks/{Bhrt6-Mt.js → 5sBQ6rKD.js} +1 -1
  14. package/web/app/immutable/chunks/{BkjJpsAb.js → 6bctAAQ4.js} +2 -2
  15. package/web/app/immutable/chunks/{BLML8tyL.js → 7lKdD900.js} +1 -1
  16. package/web/app/immutable/chunks/{BxSRgl_K.js → 9A9__2dZ.js} +1 -1
  17. package/web/app/immutable/chunks/{CWh86ZYE.js → B00a-E5y.js} +1 -1
  18. package/web/app/immutable/chunks/{D8sxBEHk.js → B08ZRfRe.js} +1 -1
  19. package/web/app/immutable/chunks/{EOrMcKth.js → B1BoYgO3.js} +1 -1
  20. package/web/app/immutable/chunks/{CfXQV99h.js → B23FAgl4.js} +1 -1
  21. package/web/app/immutable/chunks/{BxepIPme.js → B2YeO1vq.js} +1 -1
  22. package/web/app/immutable/chunks/{C9oKpMS_.js → B5FD8FRF.js} +1 -1
  23. package/web/app/immutable/chunks/{CaAuKVV3.js → B648LYGe.js} +1 -1
  24. package/web/app/immutable/chunks/{B87LX9tB.js → B6GFXjaE.js} +4 -4
  25. package/web/app/immutable/chunks/{CsBt-DEV.js → B9UG1fIf.js} +1 -1
  26. package/web/app/immutable/chunks/{Jwfh1VUw.js → BBKgmsAl.js} +1 -1
  27. package/web/app/immutable/chunks/{BMvMJI9S.js → BBi8ZQ4f.js} +1 -1
  28. package/web/app/immutable/chunks/{DBdZimKy.js → BFq_nebX.js} +1 -1
  29. package/web/app/immutable/chunks/{DuBklFcM.js → BKBZBubB.js} +1 -1
  30. package/web/app/immutable/chunks/{C0fkUg5D.js → BKb2X4nY.js} +1 -1
  31. package/web/app/immutable/chunks/{ZfjlDNse.js → BKoNmPdl.js} +1 -1
  32. package/web/app/immutable/chunks/{D3C_wxG-.js → BL66wtH1.js} +1 -1
  33. package/web/app/immutable/chunks/{BaasjTfD.js → BPhCmCpT.js} +1 -1
  34. package/web/app/immutable/chunks/{C_DS9aXk.js → BQ3lIAxU.js} +1 -1
  35. package/web/app/immutable/chunks/{BN1F2G9L.js → BRFS4VDU.js} +1 -1
  36. package/web/app/immutable/chunks/{CQzSGmOk.js → BRX8YzX5.js} +1 -1
  37. package/web/app/immutable/chunks/{CfjGsJrO.js → BS-h7rm3.js} +1 -1
  38. package/web/app/immutable/chunks/{V4P2F4m3.js → BTiFAxnk.js} +1 -1
  39. package/web/app/immutable/chunks/{DNzn6PzZ.js → BVLclYIV.js} +1 -1
  40. package/web/app/immutable/chunks/{DdWrNe4g.js → BVR4ypbe.js} +1 -1
  41. package/web/app/immutable/chunks/{BJTOTozZ.js → BVT8FnwX.js} +1 -1
  42. package/web/app/immutable/chunks/{CdqaycPl.js → BVnCu4HK.js} +1 -1
  43. package/web/app/immutable/chunks/{BF2JOf_h.js → BWAM175S.js} +1 -1
  44. package/web/app/immutable/chunks/{DFcDTHE7.js → BWaQmmKL.js} +1 -1
  45. package/web/app/immutable/chunks/{GIJe6jEe.js → BXDqRhfc.js} +1 -1
  46. package/web/app/immutable/chunks/{Bu2F6uGB.js → BcN0a7iZ.js} +1 -1
  47. package/web/app/immutable/chunks/{DMlNL7XW.js → BeXyu8S7.js} +6 -6
  48. package/web/app/immutable/chunks/{C6wHGKVx.js → BggFqLcQ.js} +1 -1
  49. package/web/app/immutable/chunks/{DNu-EOlZ.js → BiyBBgWJ.js} +1 -1
  50. package/web/app/immutable/chunks/{Bkg2jzs8.js → Bkny4U08.js} +1 -1
  51. package/web/app/immutable/chunks/{DJrVxxbZ.js → BnoYK4Cg.js} +1 -1
  52. package/web/app/immutable/chunks/{DfRs59bc.js → BoVqnGlE.js} +1 -1
  53. package/web/app/immutable/chunks/{8tKgHmPk.js → BpS2Zkky.js} +1 -1
  54. package/web/app/immutable/chunks/{CJj6zr8B.js → BqQtQly_.js} +1 -1
  55. package/web/app/immutable/chunks/{DEqIZOTX.js → BsU6XLOF.js} +1 -1
  56. package/web/app/immutable/chunks/{BJbo_kKO.js → ByOlSVuA.js} +1 -1
  57. package/web/app/immutable/chunks/{ByZjDy8O.js → BzvRDF8m.js} +1 -1
  58. package/web/app/immutable/chunks/{Cxw8qNpn.js → C0sDoyzY.js} +1 -1
  59. package/web/app/immutable/chunks/{B9P5rUiO.js → C0yADNxK.js} +1 -1
  60. package/web/app/immutable/chunks/{Dp45taKt.js → C2RKkR8r.js} +1 -1
  61. package/web/app/immutable/chunks/{JMt_KPti.js → C6MidKO1.js} +1 -1
  62. package/web/app/immutable/chunks/{BhglH0qV.js → C7NJtCoD.js} +2 -2
  63. package/web/app/immutable/chunks/{CdlxRh10.js → C7jsu14h.js} +1 -1
  64. package/web/app/immutable/chunks/{pViJ0C09.js → C9KORVFh.js} +1 -1
  65. package/web/app/immutable/chunks/{1jD1K4t9.js → CAdJgRT-.js} +1 -1
  66. package/web/app/immutable/chunks/{kbiSNU8S.js → CCOyeB8l.js} +1 -1
  67. package/web/app/immutable/chunks/{qpzd1Snw.js → CGXAF4r8.js} +1 -1
  68. package/web/app/immutable/chunks/{E8EFUfsc.js → CHHzckiT.js} +1 -1
  69. package/web/app/immutable/chunks/{DpwvNWlF.js → CI_dqO7A.js} +1 -1
  70. package/web/app/immutable/chunks/{B4cRl4XZ.js → CIhr4uzF.js} +1 -1
  71. package/web/app/immutable/chunks/{Dw3FugoV.js → CJB0AMOQ.js} +2 -2
  72. package/web/app/immutable/chunks/{Irb_xhXc.js → CKXP5Dfl.js} +1 -1
  73. package/web/app/immutable/chunks/{D7rRJFzn.js → CLt_MpVR.js} +1 -1
  74. package/web/app/immutable/chunks/{g4ZkGYVX.js → CLwukbv5.js} +1 -1
  75. package/web/app/immutable/chunks/{58UGOK_x.js → CMT8W8d8.js} +1 -1
  76. package/web/app/immutable/chunks/{Bcwj2Z7c.js → CMxICaSn.js} +1 -1
  77. package/web/app/immutable/chunks/{CCZ7kcPP.js → CNcMC2eS.js} +1 -1
  78. package/web/app/immutable/chunks/{fBLUmxyl.js → CTb5E7ts.js} +1 -1
  79. package/web/app/immutable/chunks/{L35vxo_x.js → CUPUpXuX.js} +1 -1
  80. package/web/app/immutable/chunks/{CVj7bpe9.js → CURgPz9A.js} +1 -1
  81. package/web/app/immutable/chunks/{DGnZRFrD.js → CViglT06.js} +1 -1
  82. package/web/app/immutable/chunks/{DW-SCc7t.js → CYIyfTfT.js} +1 -1
  83. package/web/app/immutable/chunks/{DRPtDW2A.js → CZ0U9o7-.js} +1 -1
  84. package/web/app/immutable/chunks/{neAtdZ03.js → CZL3_4T_.js} +1 -1
  85. package/web/app/immutable/chunks/{BIXM_U1Z.js → Ca7foKhO.js} +1 -1
  86. package/web/app/immutable/chunks/{CZugVkfN.js → CbB5VTQO.js} +1 -1
  87. package/web/app/immutable/chunks/{DkpprR-E.js → CbSjEe9c.js} +1 -1
  88. package/web/app/immutable/chunks/{CSSOAZoU.js → Cc7p6my_.js} +6 -6
  89. package/web/app/immutable/chunks/{N6q6QTTx.js → CcJbNmRb.js} +1 -1
  90. package/web/app/immutable/chunks/{B6R8-b5U.js → CcRQKkS2.js} +1 -1
  91. package/web/app/immutable/chunks/{CVbstW5g.js → CeO1YObE.js} +1 -1
  92. package/web/app/immutable/chunks/{KVl6LsXf.js → CjJmucSj.js} +1 -1
  93. package/web/app/immutable/chunks/{QaGc_6xV.js → CkiTXhNV.js} +1 -1
  94. package/web/app/immutable/chunks/{DqZp-_1t.js → Cl4oF0_T.js} +1 -1
  95. package/web/app/immutable/chunks/{CiJPyUxP.js → CojjevwO.js} +3 -3
  96. package/web/app/immutable/chunks/{DwO2fxa6.js → ConaHaDS.js} +1 -1
  97. package/web/app/immutable/chunks/{DfYbWhJy.js → CqShCtgy.js} +1 -1
  98. package/web/app/immutable/chunks/{B8b1g0xo.js → Cs8-gQAN.js} +1 -1
  99. package/web/app/immutable/chunks/{BCKk6VLR.js → CtPUg4ad.js} +1 -1
  100. package/web/app/immutable/chunks/{ejHd6Wjx.js → CwSA3Dwr.js} +1 -1
  101. package/web/app/immutable/chunks/{3MzspyfQ.js → Cz3L4t3K.js} +1 -1
  102. package/web/app/immutable/chunks/{pb4lGxfr.js → D1YVXYbM.js} +7 -7
  103. package/web/app/immutable/chunks/{bzpGnhNm.js → D1mml-OO.js} +1 -1
  104. package/web/app/immutable/chunks/{Cv92lPPx.js → D31GMMqw.js} +1 -1
  105. package/web/app/immutable/chunks/{BCAXQH9B.js → D4Mfx79s.js} +1 -1
  106. package/web/app/immutable/chunks/{BM96cMym.js → D6tg0AFH.js} +1 -1
  107. package/web/app/immutable/chunks/{BNkOj7Iq.js → D7tJZDri.js} +1 -1
  108. package/web/app/immutable/chunks/{Cfeu2Jlr.js → D8RydOZp.js} +1 -1
  109. package/web/app/immutable/chunks/{BM44mGhh.js → DB9IAENr.js} +1 -1
  110. package/web/app/immutable/chunks/{Posh1PTV.js → DBYwZc8q.js} +1 -1
  111. package/web/app/immutable/chunks/{Cz9zjNu0.js → DD1B8iWW.js} +1 -1
  112. package/web/app/immutable/chunks/{CBlh2RgL.js → DDDplTKI.js} +1 -1
  113. package/web/app/immutable/chunks/{BsbUKqyQ.js → DD_wk1WS.js} +2 -2
  114. package/web/app/immutable/chunks/{C4GUFULr.js → DDs4Vg0U.js} +1 -1
  115. package/web/app/immutable/chunks/{DEKRv2SA.js → DEMyUrKD.js} +1 -1
  116. package/web/app/immutable/chunks/DGR4UUG4.js +1 -0
  117. package/web/app/immutable/chunks/{CebKpXnw.js → DHUOIULZ.js} +1 -1
  118. package/web/app/immutable/chunks/{QXxjhZE8.js → DJPQ2gWl.js} +1 -1
  119. package/web/app/immutable/chunks/{Cyt32IzK.js → DOP6s1nq.js} +4 -4
  120. package/web/app/immutable/chunks/{CIQ2KSkd.js → DOb83nqS.js} +1 -1
  121. package/web/app/immutable/chunks/{BHOlTerP.js → DOlRZEzP.js} +1 -1
  122. package/web/app/immutable/chunks/{EaXPzvmD.js → DOpzySCS.js} +1 -1
  123. package/web/app/immutable/chunks/{BPYkHxEz.js → DPODhnzy.js} +2 -2
  124. package/web/app/immutable/chunks/{ZJF5u8sT.js → DPaNvpDi.js} +1 -1
  125. package/web/app/immutable/chunks/{B5hMYT01.js → DR4IMcDF.js} +1 -1
  126. package/web/app/immutable/chunks/{CcjAwET4.js → DSoSzq2S.js} +1 -1
  127. package/web/app/immutable/chunks/{CUFD0_NB.js → DUb-Rw9h.js} +1 -1
  128. package/web/app/immutable/chunks/{C3u5H0Sx.js → DW3NYbCg.js} +1 -1
  129. package/web/app/immutable/chunks/{Ba2NpplL.js → D_HBTAOp.js} +2 -2
  130. package/web/app/immutable/chunks/{ChhEI5-A.js → D_fVcaam.js} +1 -1
  131. package/web/app/immutable/chunks/{zZaNF0gw.js → DayXN3MG.js} +1 -1
  132. package/web/app/immutable/chunks/{CQeSP20x.js → DczZ5XlV.js} +3 -3
  133. package/web/app/immutable/chunks/{DBQ6-GLb.js → DfARSELN.js} +1 -1
  134. package/web/app/immutable/chunks/{BW4Lb1gb.js → DfZpv0e6.js} +1 -1
  135. package/web/app/immutable/chunks/{hjPR6Rnc.js → Dj9vAmvP.js} +1 -1
  136. package/web/app/immutable/chunks/{B2Q9zOdQ.js → DjJQPfKI.js} +1 -1
  137. package/web/app/immutable/chunks/{DLk_QjTP.js → Djo4Utna.js} +1 -1
  138. package/web/app/immutable/chunks/{CIWCsQ8M.js → DnSvdDJQ.js} +1 -1
  139. package/web/app/immutable/chunks/{BbB0oN_T.js → Dp-w6U2a.js} +1 -1
  140. package/web/app/immutable/chunks/{D5eSz8Yy.js → Dpront9T.js} +1 -1
  141. package/web/app/immutable/chunks/{GLxqtUdl.js → DsUUGZq_.js} +1 -1
  142. package/web/app/immutable/chunks/{DJKO9mMv.js → DvuFiJGX.js} +1 -1
  143. package/web/app/immutable/chunks/{BwlSugdR.js → DxZVPzM-.js} +1 -1
  144. package/web/app/immutable/chunks/{Bb1UDU6X.js → Dy75eCEg.js} +1 -1
  145. package/web/app/immutable/chunks/{Dps6NMO7.js → EZewBOPv.js} +1 -1
  146. package/web/app/immutable/chunks/{BCyYdDY9.js → GgqVQsTS.js} +1 -1
  147. package/web/app/immutable/chunks/{Dh3Ryezx.js → IFT0w_rv.js} +1 -1
  148. package/web/app/immutable/chunks/{BpOsjl4B.js → J1JvTxzS.js} +1 -1
  149. package/web/app/immutable/chunks/{BEp708sp.js → KoGdyFdq.js} +1 -1
  150. package/web/app/immutable/chunks/{CWRCHISo.js → MSSSP_6i.js} +1 -1
  151. package/web/app/immutable/chunks/{Cqdkb92f.js → MkI4_nBU.js} +1 -1
  152. package/web/app/immutable/chunks/{BghIZW1D.js → Ozne-tFy.js} +6 -6
  153. package/web/app/immutable/chunks/{CahmCdEz.js → Q0MFbJMW.js} +1 -1
  154. package/web/app/immutable/chunks/{gybWrTHf.js → QvMOlSpE.js} +1 -1
  155. package/web/app/immutable/chunks/{DZtggwE6.js → TKDyISXm.js} +3 -3
  156. package/web/app/immutable/chunks/{DlgeVS0W.js → UiwXoSAw.js} +1 -1
  157. package/web/app/immutable/chunks/{BYPBR4fh.js → VIc8fDOK.js} +1 -1
  158. package/web/app/immutable/chunks/{8M4qD2wt.js → WAk1in99.js} +1 -1
  159. package/web/app/immutable/chunks/{DgdBkeOv.js → WC951FwE.js} +1 -1
  160. package/web/app/immutable/chunks/{DLf4jaE4.js → WhG7Bgtb.js} +1 -1
  161. package/web/app/immutable/chunks/{CNvdiqGE.js → XRDpypMz.js} +1 -1
  162. package/web/app/immutable/chunks/{DBavb7qJ.js → YJmoM74E.js} +1 -1
  163. package/web/app/immutable/chunks/{CXuptX8T.js → cF3AJqS4.js} +1 -1
  164. package/web/app/immutable/chunks/{Bmtrue3d.js → dJdm8RiY.js} +1 -1
  165. package/web/app/immutable/chunks/{VBUrUMy_.js → f3mINTV_.js} +1 -1
  166. package/web/app/immutable/chunks/{DDXtES5I.js → g8wzFaTr.js} +1 -1
  167. package/web/app/immutable/chunks/{lgAZgfoh.js → h-HGzFkJ.js} +4 -4
  168. package/web/app/immutable/chunks/{fzsNMINk.js → iYBu_bIg.js} +1 -1
  169. package/web/app/immutable/chunks/{BhVtbuhY.js → igt8MaJ4.js} +1 -1
  170. package/web/app/immutable/chunks/{BNg9ANty.js → l4QAkguk.js} +1 -1
  171. package/web/app/immutable/chunks/{DVpL0nyD.js → lfN_4jdk.js} +1 -1
  172. package/web/app/immutable/chunks/{BlvFC0m2.js → nn-FB5iu.js} +1 -1
  173. package/web/app/immutable/chunks/{CKQ8NUgf.js → qVOvfVaw.js} +1 -1
  174. package/web/app/immutable/chunks/{s81wpUv4.js → qoEkEEyr.js} +1 -1
  175. package/web/app/immutable/chunks/{VSh28uJa.js → seZ3kiWB.js} +1 -1
  176. package/web/app/immutable/chunks/{uV-IGUNy.js → txAxF1ra.js} +1 -1
  177. package/web/app/immutable/chunks/{B4bjCAKW.js → vTk7TgiT.js} +1 -1
  178. package/web/app/immutable/chunks/{DMNf8Xuf.js → waEdGUDl.js} +1 -1
  179. package/web/app/immutable/chunks/{efd11D73.js → x9rbYKj9.js} +1 -1
  180. package/web/app/immutable/chunks/{Bxl01mZe.js → xn0HgFL2.js} +1 -1
  181. package/web/app/immutable/chunks/{BLBkfdhM.js → xnqT8zWA.js} +1 -1
  182. package/web/app/immutable/chunks/{k1UqmefG.js → yr_icLi6.js} +1 -1
  183. package/web/app/immutable/chunks/{BGarQU0H.js → zFZ2p9zT.js} +1 -1
  184. package/web/app/immutable/entry/{app.Chckz9N7.js → app.MRheiWYu.js} +2 -2
  185. package/web/app/immutable/entry/start.CSXPreJt.js +1 -0
  186. package/web/app/immutable/nodes/{0.DV4OxTlt.js → 0.CtDeqO-b.js} +1 -1
  187. package/web/app/immutable/nodes/{1.Ck6qIYNd.js → 1.DkbI4cS2.js} +1 -1
  188. package/web/app/immutable/nodes/{10.BJGM7dzF.js → 10.m8CCWmGC.js} +1 -1
  189. package/web/app/immutable/nodes/{14.vxfsp_3g.js → 14.ByaMuLhR.js} +1 -1
  190. package/web/app/immutable/nodes/{16.CrYjJL43.js → 16.BmFYAQ9C.js} +2 -2
  191. package/web/app/immutable/nodes/{2.F1jEoAFf.js → 2.B4Inck9s.js} +3 -3
  192. package/web/app/immutable/nodes/{3.CTi33PwH.js → 3.C3UUZ7iK.js} +1 -1
  193. package/web/app/immutable/nodes/{4.CEVSI3tX.js → 4.CtX4qgJE.js} +1 -1
  194. package/web/app/immutable/nodes/{5.Cwr-dRRa.js → 5.yLkRrv3R.js} +1 -1
  195. package/web/app/immutable/nodes/{6.CirgPdsp.js → 6.CjUsIDeG.js} +1 -1
  196. package/web/app/immutable/nodes/{7.BTCmHFrX.js → 7.DCFEio1e.js} +1 -1
  197. package/web/app/immutable/nodes/{8.Ccr1GUq8.js → 8.CGM4vick.js} +2 -2
  198. package/web/app/immutable/nodes/{9.DtRI4gIT.js → 9.V5qvVUf3.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/CE7Mossj.js +0 -1
  202. package/web/app/immutable/entry/start.BEWBWLRT.js +0 -1
@@ -1,4 +1,4 @@
1
- import{I as he}from"./BIXM_U1Z.js";import{p as $e}from"./Cxw8qNpn.js";import{p as fe}from"./BhVtbuhY.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./pb4lGxfr.js";import{c3 as Be,g as K}from"./CSSOAZoU.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;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}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};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")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?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",a?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}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
1
+ import{I as he}from"./Ca7foKhO.js";import{p as $e}from"./C0sDoyzY.js";import{p as fe}from"./igt8MaJ4.js";import{O as ge,aI as ue,aF as ye,K as xe,L as me,aG as pe,a as h,M as Z,ad as w,N as W,aV as be,aL as we,k as ke,p as B,j as ve,y as Ce,at as Ee}from"./D1YVXYbM.js";import{c3 as Be,g as K}from"./Cc7p6my_.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Te=Ce.gitGraph,S=h(()=>ve({...Te,...Z().gitGraph}),"getConfig"),d=new he(()=>{const e=S(),r=e.mainBranchName,t=e.mainBranchOrder;return{mainBranchName:r,commits:new Map,head:null,branchConfig:new Map([[r,{name:r,order:t}]]),branches:new Map([[r,null]]),currBranch:r,direction:"LR",seq:0,options:{}}});function N(){return Ee({length:7})}K(N,"getID");h(N,"getID");function ee(e,r){const t=Object.create(null);return e.reduce((s,o)=>{const i=r(o);return t[i]||(t[i]=!0,s.push(o)),s},[])}K(ee,"uniqBy");h(ee,"uniqBy");var Le=h(function(e){d.records.direction=e},"setDirection"),Me=h(function(e){w.debug("options str",e),e=e?.trim(),e=e||"{}";try{d.records.options=JSON.parse(e)}catch(r){w.error("error while parsing gitGraph options",r.message)}},"setOptions"),Ie=h(function(){return d.records.options},"getOptions"),Re=h(function(e){let r=e.msg,t=e.id;const s=e.type;let o=e.tags;w.info("commit",r,t,s,o),w.debug("Entering commit:",r,t,s,o);const i=S();t=B.sanitizeText(t,i),r=B.sanitizeText(r,i),o=o?.map(a=>B.sanitizeText(a,i));const n={id:t||d.records.seq+"-"+N(),message:r,seq:d.records.seq++,type:s??m.NORMAL,tags:o??[],parents:d.records.head==null?[]:[d.records.head.id],branch:d.records.currBranch};d.records.head=n,w.info("main branch",i.mainBranchName),d.records.commits.has(n.id)&&w.warn(`Commit ID ${n.id} already exists`),d.records.commits.set(n.id,n),d.records.branches.set(d.records.currBranch,n.id),w.debug("in pushCommit "+n.id)},"commit"),Oe=h(function(e){let r=e.name;const t=e.order;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}")`);d.records.branches.set(r,d.records.head!=null?d.records.head.id:null),d.records.branchConfig.set(r,{name:r,order:t}),ne(r),w.debug("in createBranch")},"branch"),_e=h(e=>{let r=e.branch,t=e.id;const s=e.type,o=e.tags,i=S();r=B.sanitizeText(r,i),t&&(t=B.sanitizeText(t,i));const n=d.records.branches.get(d.records.currBranch),a=d.records.branches.get(r),l=n?d.records.commits.get(n):void 0,f=a?d.records.commits.get(a):void 0;if(l&&f&&l.branch===r)throw new Error(`Cannot merge branch '${r}' into itself.`);if(d.records.currBranch===r){const c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(l===void 0||!l){const c=new Error(`Incorrect usage of "merge". Current branch (${d.records.currBranch})has no commits`);throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["commit"]},c}if(!d.records.branches.has(r)){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") does not exist");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:[`branch ${r}`]},c}if(f===void 0||!f){const c=new Error('Incorrect usage of "merge". Branch to be merged ('+r+") has no commits");throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:['"commit"']},c}if(l===f){const c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${r}`,token:`merge ${r}`,expected:["branch abc"]},c}if(t&&d.records.commits.has(t)){const c=new Error('Incorrect usage of "merge". Commit with id:'+t+" already exists, use different custom id");throw c.hash={text:`merge ${r} ${t} ${s} ${o?.join(" ")}`,token:`merge ${r} ${t} ${s} ${o?.join(" ")}`,expected:[`merge ${r} ${t}_UNIQUE ${s} ${o?.join(" ")}`]},c}const g=a||"",$={id:t||`${d.records.seq}-${N()}`,message:`merged branch ${r} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,g],branch:d.records.currBranch,type:m.MERGE,customType:s,customId:!!t,tags:o??[]};d.records.head=$,d.records.commits.set($.id,$),d.records.branches.set(d.records.currBranch,$.id),w.debug(d.records.branches),w.debug("in mergeBranch")},"merge"),Ge=h(function(e){let r=e.id,t=e.targetId,s=e.tags,o=e.parent;w.debug("Entering cherryPick:",r,t,s);const i=S();if(r=B.sanitizeText(r,i),t=B.sanitizeText(t,i),s=s?.map(l=>B.sanitizeText(l,i)),o=B.sanitizeText(o,i),!r||!d.records.commits.has(r)){const l=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw l.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},l}const n=d.records.commits.get(r);if(n===void 0||!n)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(o&&!(Array.isArray(n.parents)&&n.parents.includes(o)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const a=n.branch;if(n.type===m.MERGE&&!o)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!t||!d.records.commits.has(t)){if(a===d.records.currBranch){const $=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const l=d.records.branches.get(d.records.currBranch);if(l===void 0||!l){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const f=d.records.commits.get(l);if(f===void 0||!f){const $=new Error(`Incorrect usage of "cherry-pick". Current branch (${d.records.currBranch})has no commits`);throw $.hash={text:`cherryPick ${r} ${t}`,token:`cherryPick ${r} ${t}`,expected:["cherry-pick abc"]},$}const g={id:d.records.seq+"-"+N(),message:`cherry-picked ${n?.message} into ${d.records.currBranch}`,seq:d.records.seq++,parents:d.records.head==null?[]:[d.records.head.id,n.id],branch:d.records.currBranch,type:m.CHERRY_PICK,tags:s?s.filter(Boolean):[`cherry-pick:${n.id}${n.type===m.MERGE?`|parent:${o}`:""}`]};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")}},"cherryPick"),ne=h(function(e){if(e=B.sanitizeText(e,S()),d.records.branches.has(e)){d.records.currBranch=e;const r=d.records.branches.get(d.records.currBranch);r===void 0||!r?d.records.head=null:d.records.head=d.records.commits.get(r)??null}else{const r=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${e}")`);throw r.hash={text:`checkout ${e}`,token:`checkout ${e}`,expected:[`branch ${e}`]},r}},"checkout");function z(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}K(z,"upsert");h(z,"upsert");function U(e){const r=e.reduce((o,i)=>o.seq>i.seq?o:i,e[0]);let t="";e.forEach(function(o){o===r?t+=" *":t+=" |"});const s=[t,r.id,r.seq];for(const o in d.records.branches)d.records.branches.get(o)===r.id&&s.push(o);if(w.debug(s.join(" ")),r.parents&&r.parents.length==2&&r.parents[0]&&r.parents[1]){const o=d.records.commits.get(r.parents[0]);z(e,r,o),r.parents[1]&&e.push(d.records.commits.get(r.parents[1]))}else{if(r.parents.length==0)return;if(r.parents[0]){const o=d.records.commits.get(r.parents[0]);z(e,r,o)}}e=ee(e,o=>o.id),U(e)}K(U,"prettyPrintCommitHistory");h(U,"prettyPrintCommitHistory");var He=h(function(){w.debug(d.records.commits);const e=se()[0];U([e])},"prettyPrint"),Se=h(function(){d.reset(),ke()},"clear"),Ae=h(function(){return[...d.records.branchConfig.values()].map((r,t)=>r.order!==null&&r.order!==void 0?r:{...r,order:parseFloat(`0.${t}`)}).sort((r,t)=>(r.order??0)-(t.order??0)).map(({name:r})=>({name:r}))},"getBranchesAsObjArray"),De=h(function(){return d.records.branches},"getBranches"),Pe=h(function(){return d.records.commits},"getCommits"),se=h(function(){const e=[...d.records.commits.values()];return e.forEach(function(r){w.debug(r.id)}),e.sort((r,t)=>r.seq-t.seq),e},"getCommitsArray"),qe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),Ne=h(function(){return d.records.head},"getHead"),oe={commitType:m,getConfig:S,setDirection:Le,setOptions:Me,getOptions:Ie,commit:Re,branch:Oe,merge:_e,cherryPick:Ge,checkout:ne,prettyPrint:He,clear:Se,getBranchesAsObjArray:Ae,getBranches:De,getCommits:Pe,getCommitsArray:se,getCurrentBranch:qe,getDirection:We,getHead:Ne,setAccTitle:pe,getAccTitle:me,getAccDescription:xe,setAccDescription:ye,setDiagramTitle:ue,getDiagramTitle:ge},Fe=h((e,r)=>{$e(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)ze(t,r)},"populate"),ze=h((e,r)=>{const s={Commit:h(o=>r.commit(Ye(o)),"Commit"),Branch:h(o=>r.branch(je(o)),"Branch"),Merge:h(o=>r.merge(Ke(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ve(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),Ye=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),je=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),Ke=h(e=>({branch:e.branch,id:e.id??"",type:e.type!==void 0?m[e.type]:void 0,tags:e.tags??void 0}),"parseMerge"),Ue=h(e=>e.branch,"parseCheckout"),Ve=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Xe={parse:h(async e=>{const r=await fe("gitGraph",e);w.debug(r),Fe(r,oe)},"parse")},O=10,_=40,L=4,I=2,G=8,V=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),Q=12,re=new Set(["redux-color","redux-dark-color"]),Je=new Set(["dark","redux-dark","redux-dark-color","neo-dark"]),H=h((e,r,t=!1)=>t&&e>0?(e-1)%(r-1)+1:e%r,"calcColorIndex"),C=new Map,E=new Map,Y=30,P=new Map,j=[],R=0,y="LR",Qe=h(()=>{C.clear(),E.clear(),P.clear(),R=0,j=[],y="LR"},"clear"),ce=h(e=>{const r=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof e=="string"?e.split(/\\n|\n|<br\s*\/?>/gi):e).forEach(s=>{const o=document.createElementNS("http://www.w3.org/2000/svg","tspan");o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),o.setAttribute("dy","1em"),o.setAttribute("x","0"),o.setAttribute("class","row"),o.textContent=s.trim(),r.appendChild(o)}),r},"drawText"),ie=h(e=>{let r,t,s;return y==="BT"?(t=h((o,i)=>o<=i,"comparisonFunc"),s=1/0):(t=h((o,i)=>o>=i,"comparisonFunc"),s=0),e.forEach(o=>{const i=y==="TB"||y=="BT"?E.get(o)?.y:E.get(o)?.x;i!==void 0&&t(i,s)&&(r=o,s=i)}),r},"findClosestParent"),Ze=h(e=>{let r="",t=1/0;return e.forEach(s=>{const o=E.get(s).y;o<=t&&(r=s,t=o)}),r||void 0},"findClosestParentBT"),er=h((e,r,t)=>{let s=t,o=t;const i=[];e.forEach(n=>{const a=r.get(n);if(!a)throw new Error(`Commit not found for key ${n}`);a.parents.length?(s=tr(a),o=Math.max(s,o)):i.push(a),ar(a,s)}),s=o,i.forEach(n=>{nr(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Ze(a.parents);s=E.get(l).y-_,s<=o&&(o=s);const f=C.get(a.branch).pos,g=s-O;E.set(a.id,{x:f,y:g})}})},"setParallelBTPos"),rr=h(e=>{const r=ie(e.parents.filter(s=>s!==null));if(!r)throw new Error(`Closest parent not found for commit ${e.id}`);const t=E.get(r)?.y;if(t===void 0)throw new Error(`Closest parent position not found for commit ${e.id}`);return t},"findClosestParentPos"),tr=h(e=>rr(e)+_,"calculateCommitPosition"),ar=h((e,r)=>{const t=C.get(e.branch);if(!t)throw new Error(`Branch not found for commit ${e.id}`);const s=t.pos,o=r+O;return E.set(e.id,{x:s,y:o}),{x:s,y:o}},"setCommitPosition"),nr=h((e,r,t)=>{const s=C.get(e.branch);if(!s)throw new Error(`Branch not found for commit ${e.id}`);const o=r+t,i=s.pos;E.set(e.id,{x:i,y:o})},"setRootPosition"),sr=h((e,r,t,s,o,i)=>{const{theme:n}=W(),a=V.has(n??""),l=re.has(n??""),f=Je.has(n??"");if(i===m.HIGHLIGHT)e.append("rect").attr("x",t.x-10+(a?3:0)).attr("y",t.y-10+(a?3:0)).attr("width",a?14:20).attr("height",a?14:20).attr("class",`commit ${r.id} commit-highlight${H(o,G,l)} ${s}-outer`),e.append("rect").attr("x",t.x-6+(a?2:0)).attr("y",t.y-6+(a?2:0)).attr("width",a?8:12).attr("height",a?8:12).attr("class",`commit ${r.id} commit${H(o,G,l)} ${s}-inner`);else if(i===m.CHERRY_PICK)e.append("circle").attr("cx",t.x).attr("cy",t.y).attr("r",a?7:10).attr("class",`commit ${r.id} ${s}`),e.append("circle").attr("cx",t.x-3).attr("cy",t.y+2).attr("r",a?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",a?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}`);else{const g=e.append("circle");if(g.attr("cx",t.x),g.attr("cy",t.y),g.attr("r",a?7:10),g.attr("class",`commit ${r.id} commit${H(o,G,l)}`),i===m.MERGE){const $=e.append("circle");$.attr("cx",t.x),$.attr("cy",t.y),$.attr("r",a?5:6),$.attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}if(i===m.REVERSE){const $=e.append("path"),c=a?4:5;$.attr("d",`M ${t.x-c},${t.y-c}L${t.x+c},${t.y+c}M${t.x-c},${t.y+c}L${t.x+c},${t.y-c}`).attr("class",`commit ${s} ${r.id} commit${H(o,G,l)}`)}}},"drawCommitBullet"),or=h((e,r,t,s,o)=>{if(r.type!==m.CHERRY_PICK&&(r.customId&&r.type===m.MERGE||r.type!==m.MERGE)&&o.showCommitLabel){const i=e.append("g"),n=i.insert("rect").attr("class","commit-label-bkg"),a=i.append("text").attr("x",s).attr("y",t.y+25).attr("class","commit-label").text(r.id),l=a.node()?.getBBox();if(l&&(n.attr("x",t.posWithOffset-l.width/2-I).attr("y",t.y+13.5).attr("width",l.width+2*I).attr("height",l.height+2*I),y==="TB"||y==="BT"?(n.attr("x",t.x-(l.width+4*L+5)).attr("y",t.y-12),a.attr("x",t.x-(l.width+4*L)).attr("y",t.y+l.height-12)):a.attr("x",t.posWithOffset-l.width/2),o.rotateCommitLabel))if(y==="TB"||y==="BT")a.attr("transform","rotate(-45, "+t.x+", "+t.y+")"),n.attr("transform","rotate(-45, "+t.x+", "+t.y+")");else{const f=-7.5-(l.width+10)/25*9.5,g=10+l.width/25*8.5;i.attr("transform","translate("+f+", "+g+") rotate(-45, "+s+", "+t.y+")")}}},"drawCommitLabel"),cr=h((e,r,t,s)=>{if(r.tags.length>0){let o=0,i=0,n=0;const a=[];for(const l of r.tags.reverse()){const f=e.insert("polygon"),g=e.append("circle"),$=e.append("text").attr("y",t.y-16-o).attr("class","tag-label").text(l),c=$.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");i=Math.max(i,c.width),n=Math.max(n,c.height),$.attr("x",t.posWithOffset-c.width/2),a.push({tag:$,hole:g,rect:f,yOffset:o}),o+=20}for(const{tag:l,hole:f,rect:g,yOffset:$}of a){const c=n/2,x=t.y-19.2-$;if(g.attr("class","tag-label-bkg").attr("points",`
2
2
  ${s-i/2-L/2},${x+I}
3
3
  ${s-i/2-L/2},${x-I}
4
4
  ${t.posWithOffset-i/2-L},${x-c-I}