@intent-hq/web 2.342.4 → 2.342.6

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 (161) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CYkYJCIe.js → 1XQU3Y04.js} +1 -1
  3. package/web/app/immutable/chunks/{5KtPZQMj.js → 1cBRNdrT.js} +1 -1
  4. package/web/app/immutable/chunks/{D4m_3H3b.js → 34EP1V4U.js} +1 -1
  5. package/web/app/immutable/chunks/{t9E12oJ3.js → 3UFVWcav.js} +1 -1
  6. package/web/app/immutable/chunks/{NM7qy67Z.js → 5MJ74bom.js} +1 -1
  7. package/web/app/immutable/chunks/{DIw4K70V.js → 8GRPg7Be.js} +1 -1
  8. package/web/app/immutable/chunks/{Cth8kMss.js → B8esy8Vu.js} +1 -1
  9. package/web/app/immutable/chunks/{BGxSDng4.js → B9pffw5f.js} +1 -1
  10. package/web/app/immutable/chunks/{CTCotWuX.js → BAGnnBCG.js} +1 -1
  11. package/web/app/immutable/chunks/{jqA28ECO.js → BAKJw_70.js} +1 -1
  12. package/web/app/immutable/chunks/{ClPZ-dnm.js → BAq1pHdg.js} +1 -1
  13. package/web/app/immutable/chunks/{DV-obrTk.js → BDaNM4HC.js} +1 -1
  14. package/web/app/immutable/chunks/{DDm2Bs3C.js → BFEnkdqB.js} +1 -1
  15. package/web/app/immutable/chunks/{CVKwboeu.js → BJL3vZfi.js} +1 -1
  16. package/web/app/immutable/chunks/{C8qlJ0Ks.js → BKSBgVEt.js} +1 -1
  17. package/web/app/immutable/chunks/{CFgR764H.js → BLvT7caV.js} +1 -1
  18. package/web/app/immutable/chunks/{BmytRNPE.js → BNPwBixc.js} +1 -1
  19. package/web/app/immutable/chunks/{CICfpKca.js → BP-Q7b0i.js} +1 -1
  20. package/web/app/immutable/chunks/{CpUxooti.js → BPJT_jmR.js} +1 -1
  21. package/web/app/immutable/chunks/{Cf4bZipG.js → BPnWvR4U.js} +1 -1
  22. package/web/app/immutable/chunks/{BI2l6wE6.js → BQPPEUu1.js} +1 -1
  23. package/web/app/immutable/chunks/{7HuWq_hr.js → BTQOjzCX.js} +1 -1
  24. package/web/app/immutable/chunks/{C8KtEq0s.js → BVtokOo_.js} +1 -1
  25. package/web/app/immutable/chunks/{CD69NP_A.js → BY6vo3uD.js} +1 -1
  26. package/web/app/immutable/chunks/{D0LCHW4n.js → BYcqhPVA.js} +2 -2
  27. package/web/app/immutable/chunks/{B9Rr6BpD.js → BdINg18V.js} +1 -1
  28. package/web/app/immutable/chunks/{DgtpjRdr.js → BfRwjOCA.js} +1 -1
  29. package/web/app/immutable/chunks/{uZlZnPJv.js → BfqGTcOP.js} +1 -1
  30. package/web/app/immutable/chunks/{BtxzFh2d.js → BiJM57Y-.js} +1 -1
  31. package/web/app/immutable/chunks/{BGqqSLU-.js → BjxSeDhE.js} +2 -2
  32. package/web/app/immutable/chunks/{LUvhmWrd.js → Bl3ku6zY.js} +1 -1
  33. package/web/app/immutable/chunks/{BwfLVMMM.js → BlxdQMTv.js} +1 -1
  34. package/web/app/immutable/chunks/{Ci8LBOxa.js → BmLaJ9xx.js} +1 -1
  35. package/web/app/immutable/chunks/{BkT4AaId.js → BmZEWeMm.js} +1 -1
  36. package/web/app/immutable/chunks/{B2sG3ycV.js → BnOitAd5.js} +3 -3
  37. package/web/app/immutable/chunks/{Dt0R2Ktk.js → BokY6u4h.js} +1 -1
  38. package/web/app/immutable/chunks/{DgiTVZJP.js → BpIyu9yy.js} +1 -1
  39. package/web/app/immutable/chunks/{BS1TtWt_.js → BqJU57xs.js} +1 -1
  40. package/web/app/immutable/chunks/{CQWXQG41.js → Bxcfvdut.js} +1 -1
  41. package/web/app/immutable/chunks/{D-CZRaat.js → BywpJ9Jr.js} +1 -1
  42. package/web/app/immutable/chunks/{D5YUYmA3.js → C44zP9aX.js} +1 -1
  43. package/web/app/immutable/chunks/{5Cz4WZpZ.js → C4EYhr_S.js} +1 -1
  44. package/web/app/immutable/chunks/{BVg9yzXR.js → C9QANngy.js} +1 -1
  45. package/web/app/immutable/chunks/{DumOb8FY.js → CBZtJT-n.js} +1 -1
  46. package/web/app/immutable/chunks/{_d_cQJ1G.js → CCRKTTsT.js} +1 -1
  47. package/web/app/immutable/chunks/{CmwgdR7R.js → CH88el2F.js} +1 -1
  48. package/web/app/immutable/chunks/{D-XhH1EI.js → CJ6UQw63.js} +1 -1
  49. package/web/app/immutable/chunks/{BFw-QJi_.js → CJXKaPZY.js} +1 -1
  50. package/web/app/immutable/chunks/{DxzBH9If.js → CO4Qh4-v.js} +1 -1
  51. package/web/app/immutable/chunks/{C3fOi3VT.js → COFMFdMU.js} +1 -1
  52. package/web/app/immutable/chunks/{ZvX_fEaP.js → CQ4I_Mdn.js} +1 -1
  53. package/web/app/immutable/chunks/{DOJHO8tY.js → CQx6ZF60.js} +1 -1
  54. package/web/app/immutable/chunks/{BAKm0uzb.js → CRsmjbca.js} +1 -1
  55. package/web/app/immutable/chunks/{D2wzgv1F.js → CTGhMPAl.js} +1 -1
  56. package/web/app/immutable/chunks/{BuvdM8FN.js → CZfVnA69.js} +2 -2
  57. package/web/app/immutable/chunks/{DfEfJ41H.js → Cdb-RlPf.js} +1 -1
  58. package/web/app/immutable/chunks/{CNpCGMBp.js → CgAIgZYS.js} +1 -1
  59. package/web/app/immutable/chunks/{DRUHoPvO.js → CjN3bu3h.js} +1 -1
  60. package/web/app/immutable/chunks/{CgO3N0Eh.js → Ck2rWFI2.js} +12 -12
  61. package/web/app/immutable/chunks/{Os4z29kc.js → Co1GOV8m.js} +1 -1
  62. package/web/app/immutable/chunks/{BGlD6YLC.js → Coekp85l.js} +1 -1
  63. package/web/app/immutable/chunks/{Dtat8Jyj.js → CrvrVD-n.js} +1 -1
  64. package/web/app/immutable/chunks/{DYJF6z7c.js → CvYPF82-.js} +4 -4
  65. package/web/app/immutable/chunks/{BbmXR-SH.js → CwVL3hLj.js} +1 -1
  66. package/web/app/immutable/chunks/{CxvlNIyu.js → Cxon-xet.js} +1 -1
  67. package/web/app/immutable/chunks/{CRgdXK-6.js → D1IC4eoI.js} +1 -1
  68. package/web/app/immutable/chunks/D3QcPFoL.js +18 -0
  69. package/web/app/immutable/chunks/{C17WHWXN.js → D4BOXNo3.js} +3 -3
  70. package/web/app/immutable/chunks/{CqND6pvG.js → D5Ky76z6.js} +1 -1
  71. package/web/app/immutable/chunks/{CyAWaGyu.js → D6fq3jd3.js} +1 -1
  72. package/web/app/immutable/chunks/{DMIUJOUV.js → D6mwmUlO.js} +2 -2
  73. package/web/app/immutable/chunks/{Cqu-aR4t.js → D7Rp1YzU.js} +1 -1
  74. package/web/app/immutable/chunks/{LPPUEsZT.js → D9piAIpK.js} +1 -1
  75. package/web/app/immutable/chunks/{mS-9NIEA.js → DA09cdDe.js} +4 -4
  76. package/web/app/immutable/chunks/{CvZnx98i.js → DBkwUnB3.js} +1 -1
  77. package/web/app/immutable/chunks/{DQDdpgUG.js → DCdtmpaz.js} +1 -1
  78. package/web/app/immutable/chunks/{Bb4ph25I.js → DEwhJbS-.js} +1 -1
  79. package/web/app/immutable/chunks/{C_7QOYdw.js → DGu3KEOd.js} +1 -1
  80. package/web/app/immutable/chunks/{DRlYzKsv.js → DH9p1XHN.js} +1 -1
  81. package/web/app/immutable/chunks/{Dvj55vXN.js → DHOmmgcl.js} +2 -2
  82. package/web/app/immutable/chunks/{DEgM7-3u.js → DI_OiaCT.js} +1 -1
  83. package/web/app/immutable/chunks/{1KURqqMz.js → DJtGLOxa.js} +1 -1
  84. package/web/app/immutable/chunks/{COgT-EXe.js → DK7bkBKS.js} +1 -1
  85. package/web/app/immutable/chunks/{DSnMQfNF.js → DKpqyoHF.js} +1 -1
  86. package/web/app/immutable/chunks/{ChiWSNHv.js → DQzntlzl.js} +3 -3
  87. package/web/app/immutable/chunks/{B8XCEZm-.js → DS-PgUc7.js} +1 -1
  88. package/web/app/immutable/chunks/{CFR39oq5.js → DU6dXL8V.js} +1 -1
  89. package/web/app/immutable/chunks/{BONdHkQs.js → DVBxlkFp.js} +1 -1
  90. package/web/app/immutable/chunks/{C_hDvi-s.js → DVjUIntK.js} +1 -1
  91. package/web/app/immutable/chunks/{DB4b4MsO.js → DbPC6tLA.js} +1 -1
  92. package/web/app/immutable/chunks/{DuD5Wxpm.js → Dcv7OLYk.js} +1 -1
  93. package/web/app/immutable/chunks/{BeeSTXCF.js → DdbGGrJT.js} +1 -1
  94. package/web/app/immutable/chunks/{DxtKR96k.js → DerHBx5w.js} +1 -1
  95. package/web/app/immutable/chunks/{BRm0glkU.js → Dgglyxba.js} +1 -1
  96. package/web/app/immutable/chunks/{DKTzyP0R.js → Dng3CYSh.js} +1 -1
  97. package/web/app/immutable/chunks/DqN3eEdL.js +175 -0
  98. package/web/app/immutable/chunks/{CBR1HO24.js → Dqm94Bm7.js} +1 -1
  99. package/web/app/immutable/chunks/{C4jx-XZh.js → DqmXJyxa.js} +4 -4
  100. package/web/app/immutable/chunks/{Bau8iVXk.js → DsnPbcrG.js} +1 -1
  101. package/web/app/immutable/chunks/{CkMQV99G.js → DtLFy1HX.js} +1 -1
  102. package/web/app/immutable/chunks/{DUpM6F7J.js → DuHPqQGE.js} +1 -1
  103. package/web/app/immutable/chunks/{Bj2crfQp.js → Duzuaj0l.js} +1 -1
  104. package/web/app/immutable/chunks/{L-ubqpH9.js → DxWaTKL0.js} +3 -3
  105. package/web/app/immutable/chunks/{B6A6cgF-.js → DzGcLQsv.js} +1 -1
  106. package/web/app/immutable/chunks/{CkPDW0xR.js → F3N2tbK9.js} +1 -1
  107. package/web/app/immutable/chunks/{PeAPKDUF.js → F9fxsiNO.js} +1 -1
  108. package/web/app/immutable/chunks/{bijN4Zym.js → G9eRzhXv.js} +1 -1
  109. package/web/app/immutable/chunks/{BvQPs1Xx.js → H3AlxZF2.js} +1 -1
  110. package/web/app/immutable/chunks/{ztS7waxk.js → O5gmiwkz.js} +1 -1
  111. package/web/app/immutable/chunks/{Dc7eHIw9.js → QFw_XNQ-.js} +1 -1
  112. package/web/app/immutable/chunks/SYPnLWme.js +1 -0
  113. package/web/app/immutable/chunks/{C4lA6Qko.js → VlZpY_zn.js} +1 -1
  114. package/web/app/immutable/chunks/{D0ypGvvA.js → XIVGG58R.js} +1 -1
  115. package/web/app/immutable/chunks/{DjFKdLks.js → Xd2ADnnE.js} +1 -1
  116. package/web/app/immutable/chunks/{DXeiIMAg.js → Ye026sG_.js} +1 -1
  117. package/web/app/immutable/chunks/{BtxvvbW8.js → ZuHjZPjN.js} +1 -1
  118. package/web/app/immutable/chunks/{BnMYxi1T.js → _MlFNRUP.js} +1 -1
  119. package/web/app/immutable/chunks/_RTfq0v6.js +4 -0
  120. package/web/app/immutable/chunks/{VPc0uUzO.js → af2M07Jp.js} +1 -1
  121. package/web/app/immutable/chunks/{8a4AenV7.js → b31Z8LKe.js} +1 -1
  122. package/web/app/immutable/chunks/{CRVLrgxJ.js → cf3hShp0.js} +1 -1
  123. package/web/app/immutable/chunks/{3KbBjGJm.js → dF445d6n.js} +1 -1
  124. package/web/app/immutable/chunks/{zGggXnza.js → ftrEOorZ.js} +2 -2
  125. package/web/app/immutable/chunks/{CUfd6v40.js → fwxl4rBI.js} +1 -1
  126. package/web/app/immutable/chunks/{BAdws6Fu.js → gLnFSVct.js} +2 -2
  127. package/web/app/immutable/chunks/{DdI6xQc_.js → iSPSrAXS.js} +1 -1
  128. package/web/app/immutable/chunks/{DTnOOoUt.js → iZrGkeHG.js} +1 -1
  129. package/web/app/immutable/chunks/{CxMzoxX3.js → jJxI_UAc.js} +1 -1
  130. package/web/app/immutable/chunks/{CUMVOvj8.js → jpkdFrp6.js} +1 -1
  131. package/web/app/immutable/chunks/{DEpTpabV.js → k5gd82i4.js} +1 -1
  132. package/web/app/immutable/chunks/{DkqCzXww.js → mO0YX6Up.js} +1 -1
  133. package/web/app/immutable/chunks/{DwdKjBer.js → o3OBOoSf.js} +1 -1
  134. package/web/app/immutable/chunks/{CEhJvA02.js → q8sNwmKq.js} +1 -1
  135. package/web/app/immutable/chunks/{B1NzFEuO.js → r7GEgyab.js} +2 -2
  136. package/web/app/immutable/chunks/{B1cObw1z.js → rqpOGBN5.js} +1 -1
  137. package/web/app/immutable/chunks/{H0MOjDP3.js → u9XHqibz.js} +1 -1
  138. package/web/app/immutable/chunks/{D78kBZDL.js → wMidnPXT.js} +3 -3
  139. package/web/app/immutable/chunks/{WIMBPpA0.js → zzo-K1GZ.js} +1 -1
  140. package/web/app/immutable/entry/{app.4WfHy_Zl.js → app.F7HSlLyZ.js} +2 -2
  141. package/web/app/immutable/entry/start.CUFDKLDi.js +1 -0
  142. package/web/app/immutable/nodes/{0.vO0Tybn6.js → 0.Bl0xo6es.js} +1 -1
  143. package/web/app/immutable/nodes/{1.Bfh_ynUg.js → 1.BIjEngSs.js} +1 -1
  144. package/web/app/immutable/nodes/{10.CbLOWaiK.js → 10.CxhXAvUx.js} +1 -1
  145. package/web/app/immutable/nodes/{14.CgOJLuna.js → 14.CgIrR2xa.js} +1 -1
  146. package/web/app/immutable/nodes/{17.CeWDuaDv.js → 17.B_Cve8Oj.js} +2 -2
  147. package/web/app/immutable/nodes/{2.BJIFazOq.js → 2.Lo576kSK.js} +4 -4
  148. package/web/app/immutable/nodes/{3.BfaIoPwI.js → 3.KCA5aN-y.js} +1 -1
  149. package/web/app/immutable/nodes/{4.CIKjzhEc.js → 4.BA93tNs_.js} +1 -1
  150. package/web/app/immutable/nodes/{5.D0xlWd9R.js → 5.CK2zLy3y.js} +1 -1
  151. package/web/app/immutable/nodes/{6.CXDD93jK.js → 6.Cv46jHXT.js} +1 -1
  152. package/web/app/immutable/nodes/{7.Om4HLRbN.js → 7.Cy3olq8_.js} +1 -1
  153. package/web/app/immutable/nodes/{8.3MB3X1xo.js → 8.DzgEjwaM.js} +4 -4
  154. package/web/app/immutable/nodes/{9.CawzZbso.js → 9.Ddzgkod6.js} +4 -4
  155. package/web/app/version.json +1 -1
  156. package/web/index.html +9 -9
  157. package/web/app/immutable/chunks/CAZtHQBF.js +0 -175
  158. package/web/app/immutable/chunks/CKJ3ApuI.js +0 -1
  159. package/web/app/immutable/chunks/Cg2SHWhQ.js +0 -18
  160. package/web/app/immutable/chunks/CpMT4a7n.js +0 -4
  161. package/web/app/immutable/entry/start.gUgDD-in.js +0 -1
@@ -1,4 +1,4 @@
1
- import{I as le}from"./DRlYzKsv.js";import{p as he}from"./CkPDW0xR.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./DYJF6z7c.js";import{p as Ee}from"./2gme4FSl.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{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 Y(){return Ce({length:7})}h(Y,"getID");function te(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},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=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"),Me=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+"-"+Y(),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"),Ie=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}),ae(r),w.debug("in createBranch")},"branch"),Oe=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}-${Y()}`,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"),_e=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+"-"+Y(),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"),ae=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 V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(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]);V(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]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=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"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=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"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=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"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=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,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=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"),ce=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"),Qe=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"),Ze=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=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(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"),er=h(e=>{const r=ce(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"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=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"),ar=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"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.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"),sr=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-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),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"),or=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 le}from"./DH9p1XHN.js";import{p as he}from"./F3N2tbK9.js";import{Y as $e,b0 as fe,aZ as ge,U as ue,V as ye,a_ as xe,b as h,W as J,ay as w,aW as me,X as P,bh as pe,b4 as be,r as we,z as B,q as ke,O as ve,aM as Ce}from"./CvYPF82-.js";import{p as Ee}from"./2gme4FSl.js";var m={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},Be=ve.gitGraph,S=h(()=>ke({...Be,...J().gitGraph}),"getConfig"),d=new le(()=>{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 Y(){return Ce({length:7})}h(Y,"getID");function te(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},[])}h(te,"uniqBy");var Te=h(function(e){d.records.direction=e},"setDirection"),Le=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"),Me=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+"-"+Y(),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"),Ie=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}),ae(r),w.debug("in createBranch")},"branch"),Oe=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}-${Y()}`,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"),_e=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+"-"+Y(),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"),ae=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 V(e,r,t){const s=e.indexOf(r);s===-1?e.push(t):e.splice(s,1,t)}h(V,"upsert");function Q(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]);V(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]);V(e,r,o)}}e=te(e,o=>o.id),Q(e)}h(Q,"prettyPrintCommitHistory");var Ge=h(function(){w.debug(d.records.commits);const e=ne()[0];Q([e])},"prettyPrint"),He=h(function(){d.reset(),we()},"clear"),Se=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"),Ae=h(function(){return d.records.branches},"getBranches"),We=h(function(){return d.records.commits},"getCommits"),ne=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"),De=h(function(){return d.records.currBranch},"getCurrentBranch"),qe=h(function(){return d.records.direction},"getDirection"),Pe=h(function(){return d.records.head},"getHead"),se={commitType:m,getConfig:S,setDirection:Te,setOptions:Le,getOptions:Me,commit:Re,branch:Ie,merge:Oe,cherryPick:_e,checkout:ae,prettyPrint:Ge,clear:He,getBranchesAsObjArray:Se,getBranches:Ae,getCommits:We,getCommitsArray:ne,getCurrentBranch:De,getDirection:qe,getHead:Pe,setAccTitle:xe,getAccTitle:ye,getAccDescription:ue,setAccDescription:ge,setDiagramTitle:fe,getDiagramTitle:$e},Ne=h((e,r)=>{he(e,r),e.dir&&r.setDirection(e.dir);for(const t of e.statements)Fe(t,r)},"populate"),Fe=h((e,r)=>{const s={Commit:h(o=>r.commit(ze(o)),"Commit"),Branch:h(o=>r.branch(Ye(o)),"Branch"),Merge:h(o=>r.merge(je(o)),"Merge"),Checkout:h(o=>r.checkout(Ue(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ke(o)),"CherryPicking")}[e.$type];s?s(e):w.error(`Unknown statement type: ${e.$type}`)},"parseStatement"),ze=h(e=>({id:e.id,msg:e.message??"",type:e.type!==void 0?m[e.type]:m.NORMAL,tags:e.tags??void 0}),"parseCommit"),Ye=h(e=>({name:e.name,order:e.order??0}),"parseBranch"),je=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"),Ke=h(e=>({id:e.id,targetId:"",tags:e.tags?.length===0?void 0:e.tags,parent:e.parent}),"parseCherryPicking"),Ve={parse:h(async e=>{const r=await Ee("gitGraph",e);w.debug(r),Ne(r,se)},"parse")},O=10,_=40,L=4,R=2,G=8,j=new Set(["redux","redux-dark","redux-color","redux-dark-color"]),X=12,Z=new Set(["redux-color","redux-dark-color"]),Xe=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,F=30,D=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),D.clear(),I=0,z=[],y="LR"},"clear"),oe=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"),ce=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"),Qe=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"),Ze=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=rr(a),o=Math.max(s,o)):i.push(a),tr(a,s)}),s=o,i.forEach(n=>{ar(n,s,t)}),e.forEach(n=>{const a=r.get(n);if(a?.parents.length){const l=Qe(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"),er=h(e=>{const r=ce(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"),rr=h(e=>er(e)+_,"calculateCommitPosition"),tr=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"),ar=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"),nr=h((e,r,t,s,o,i)=>{const{theme:n}=P(),a=j.has(n??""),l=Z.has(n??""),f=Xe.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"),sr=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-R).attr("y",t.y+13.5).attr("width",l.width+2*R).attr("height",l.height+2*R),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"),or=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+R}
3
3
  ${s-i/2-L/2},${x-R}
4
4
  ${t.posWithOffset-i/2-L},${x-c-R}