@intent-hq/web 2.301.0 → 2.301.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 (203) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{B7zUuO00.js → -8mBz6EW.js} +1 -1
  3. package/web/app/immutable/chunks/{BbJJ4Uie.js → 2Iga5834.js} +1 -1
  4. package/web/app/immutable/chunks/{BcmjbiBm.js → 3-bIA0_b.js} +2 -2
  5. package/web/app/immutable/chunks/{DrNVHvhK.js → 3cwLWYk-.js} +1 -1
  6. package/web/app/immutable/chunks/{9k5bnL8-.js → 6WuGSm1v.js} +2 -2
  7. package/web/app/immutable/chunks/{DKolS8Ht.js → 8FC2Ymrs.js} +1 -1
  8. package/web/app/immutable/chunks/{Ce-KYi-n.js → 90FT2TPG.js} +2 -2
  9. package/web/app/immutable/chunks/{B52XysAQ.js → 9Bp-qw-c.js} +1 -1
  10. package/web/app/immutable/chunks/{BPzYYRAs.js → 9pcH5qab.js} +4 -4
  11. package/web/app/immutable/chunks/{DhGPSsBf.js → Alw6Bgam.js} +1 -1
  12. package/web/app/immutable/chunks/{DtagNJGy.js → B-pxGJ33.js} +1 -1
  13. package/web/app/immutable/chunks/{BcpdiGRR.js → B1f-Dpa6.js} +1 -1
  14. package/web/app/immutable/chunks/{Citu-dNT.js → B1ySs1Ps.js} +1 -1
  15. package/web/app/immutable/chunks/{DmJbtm9p.js → B3pWDt4A.js} +2 -2
  16. package/web/app/immutable/chunks/{CQMDPYtj.js → B5FPkuba.js} +1 -1
  17. package/web/app/immutable/chunks/{D5_2GYC0.js → B5gRIzZb.js} +1 -1
  18. package/web/app/immutable/chunks/{DMnHL_j_.js → B9e_lQGd.js} +1 -1
  19. package/web/app/immutable/chunks/{DE5Vt-mk.js → BAJdDJmt.js} +1 -1
  20. package/web/app/immutable/chunks/{ggRICgWE.js → BBfmiZwR.js} +1 -1
  21. package/web/app/immutable/chunks/{KG68UpwU.js → BCFfKX9W.js} +1 -1
  22. package/web/app/immutable/chunks/{C9k7mgs4.js → BDUAehdP.js} +4 -4
  23. package/web/app/immutable/chunks/{COMfKjnL.js → BFnbk-Kf.js} +1 -1
  24. package/web/app/immutable/chunks/{CG9-31He.js → BGGzsVfR.js} +1 -1
  25. package/web/app/immutable/chunks/{mkPaye9m.js → BIDHEGct.js} +1 -1
  26. package/web/app/immutable/chunks/{DnCf3QiL.js → BIOk6wuV.js} +1 -1
  27. package/web/app/immutable/chunks/{CnWtv34Y.js → BJ_6izfA.js} +7 -7
  28. package/web/app/immutable/chunks/{D54_bMKf.js → BMPb03sg.js} +1 -1
  29. package/web/app/immutable/chunks/{Bloa0suE.js → BNVzhw1y.js} +1 -1
  30. package/web/app/immutable/chunks/{hOR9B4V4.js → BO9EbiHx.js} +1 -1
  31. package/web/app/immutable/chunks/{CXtOOnh0.js → BPC4nNQe.js} +1 -1
  32. package/web/app/immutable/chunks/{CoJOpuAN.js → BRKe81M1.js} +1 -1
  33. package/web/app/immutable/chunks/{Ce8PMxuE.js → BSuE_PI2.js} +1 -1
  34. package/web/app/immutable/chunks/{8Q_Was_5.js → BTIw3yd0.js} +1 -1
  35. package/web/app/immutable/chunks/{DaqPl4Tz.js → BTeM7_LX.js} +1 -1
  36. package/web/app/immutable/chunks/{ClOUpVZZ.js → BVTor63R.js} +1 -1
  37. package/web/app/immutable/chunks/{BhkBe7Jc.js → BW_04noU.js} +1 -1
  38. package/web/app/immutable/chunks/{bDcdMMyl.js → BWerHQW_.js} +1 -1
  39. package/web/app/immutable/chunks/{CItSvrO_.js → BX8IWbyz.js} +2 -2
  40. package/web/app/immutable/chunks/{Cu4QpKDr.js → BYZmS9Dk.js} +1 -1
  41. package/web/app/immutable/chunks/{DGW6wXEq.js → B_vcNRuc.js} +1 -1
  42. package/web/app/immutable/chunks/{DuInbvT4.js → BapFUUqZ.js} +1 -1
  43. package/web/app/immutable/chunks/{BAbzdNi8.js → BdCx7DnP.js} +1 -1
  44. package/web/app/immutable/chunks/{CUMro1vx.js → BghpE59-.js} +1 -1
  45. package/web/app/immutable/chunks/{B-JIdXlm.js → BhYLt5th.js} +1 -1
  46. package/web/app/immutable/chunks/{Drgj5uDM.js → Bk5SMnS3.js} +43 -43
  47. package/web/app/immutable/chunks/{C4-u_VtZ.js → BlDfHMda.js} +1 -1
  48. package/web/app/immutable/chunks/{DmUU4JxK.js → BlPj7Bqh.js} +1 -1
  49. package/web/app/immutable/chunks/{B220ai_K.js → Bo2QS6PZ.js} +1 -1
  50. package/web/app/immutable/chunks/{CJzvjWBQ.js → Bo7YWMXl.js} +1 -1
  51. package/web/app/immutable/chunks/{knnjLtf9.js → BuXA0uuF.js} +1 -1
  52. package/web/app/immutable/chunks/{C5MJ7BeC.js → BvgUrOVR.js} +1 -1
  53. package/web/app/immutable/chunks/{DIceyoUA.js → BxC2yVbF.js} +1 -1
  54. package/web/app/immutable/chunks/{CtcF6bbr.js → BxgeL5Cn.js} +2 -2
  55. package/web/app/immutable/chunks/{EzIyeu9q.js → BzDjODLF.js} +1 -1
  56. package/web/app/immutable/chunks/{BVJeg9VF.js → BzwTpGAs.js} +3 -3
  57. package/web/app/immutable/chunks/{DYywvoax.js → C-yDVBGV.js} +1 -1
  58. package/web/app/immutable/chunks/{qwx0AE4b.js → C0DySWij.js} +1 -1
  59. package/web/app/immutable/chunks/{CXqGB8i2.js → C4Zy0P7R.js} +1 -1
  60. package/web/app/immutable/chunks/{DsHbB0Gk.js → C4wwbPuR.js} +1 -1
  61. package/web/app/immutable/chunks/{DediWp9-.js → C6PYFU8v.js} +1 -1
  62. package/web/app/immutable/chunks/{DeI8FMuz.js → C9dil5-t.js} +1 -1
  63. package/web/app/immutable/chunks/{BXU_OYLJ.js → CB1wD_PC.js} +1 -1
  64. package/web/app/immutable/chunks/CDxER840.js +1 -0
  65. package/web/app/immutable/chunks/{tkZmaR4M.js → CEOoXkJa.js} +4 -4
  66. package/web/app/immutable/chunks/{CiBStNAr.js → CEs-7mch.js} +3 -3
  67. package/web/app/immutable/chunks/{Q-IbWJI_.js → CFgK9GfH.js} +1 -1
  68. package/web/app/immutable/chunks/{DZKVhZfO.js → CGwmPMQc.js} +1 -1
  69. package/web/app/immutable/chunks/{Cr5KYQBW.js → CHDy3QTf.js} +1 -1
  70. package/web/app/immutable/chunks/{DoOAeI0m.js → CK1vqkSE.js} +1 -1
  71. package/web/app/immutable/chunks/{BQY3g8uE.js → CKI5DKl7.js} +6 -6
  72. package/web/app/immutable/chunks/{0_FDVEla.js → CKj5bwOX.js} +1 -1
  73. package/web/app/immutable/chunks/{DELLe_1a.js → CMAl4tQM.js} +1 -1
  74. package/web/app/immutable/chunks/{k6s8dGrA.js → CMQqNZFP.js} +1 -1
  75. package/web/app/immutable/chunks/{BJn7bayT.js → CMS0Mt7v.js} +1 -1
  76. package/web/app/immutable/chunks/{B2jj_YAX.js → CORu-AyV.js} +1 -1
  77. package/web/app/immutable/chunks/{CMBaQAuw.js → COuOkYRg.js} +1 -1
  78. package/web/app/immutable/chunks/{Jf6CJclx.js → CPBiF1gr.js} +1 -1
  79. package/web/app/immutable/chunks/{B7VWEjxq.js → CS1PgLFW.js} +1 -1
  80. package/web/app/immutable/chunks/{DsrgAjSN.js → CSiZwu1h.js} +1 -1
  81. package/web/app/immutable/chunks/{6Ql_vn7X.js → CT_wb7-d.js} +1 -1
  82. package/web/app/immutable/chunks/{BRwNKwD7.js → CTt3kMm1.js} +1 -1
  83. package/web/app/immutable/chunks/{Dma9ms7u.js → CUl5WBR5.js} +1 -1
  84. package/web/app/immutable/chunks/{Bzu3FrPq.js → CUt6iXkF.js} +1 -1
  85. package/web/app/immutable/chunks/{BGv3Ttev.js → CYfBmNaT.js} +1 -1
  86. package/web/app/immutable/chunks/{B-OGKYEx.js → C_-tA5vs.js} +1 -1
  87. package/web/app/immutable/chunks/{Mjh5v3L0.js → C_VMQN67.js} +1 -1
  88. package/web/app/immutable/chunks/{DCv8NaxM.js → C_uqctJM.js} +1 -1
  89. package/web/app/immutable/chunks/{BEgosT1d.js → CaibRh-G.js} +1 -1
  90. package/web/app/immutable/chunks/{CeX5z_vs.js → Cavwt8Mn.js} +1 -1
  91. package/web/app/immutable/chunks/{Pq3i4zFA.js → Cdz-CHGd.js} +1 -1
  92. package/web/app/immutable/chunks/{B8S_XDvA.js → CfM2ZJef.js} +1 -1
  93. package/web/app/immutable/chunks/{DdV_6_CH.js → Cg_QSby7.js} +1 -1
  94. package/web/app/immutable/chunks/{DVnNWj1L.js → Cl5KdYjm.js} +1 -1
  95. package/web/app/immutable/chunks/{CS5VoVeF.js → Cn23SDXY.js} +1 -1
  96. package/web/app/immutable/chunks/{CixlkwsU.js → Cnlend6s.js} +1 -1
  97. package/web/app/immutable/chunks/{CZE4HQ01.js → CqnucWm4.js} +1 -1
  98. package/web/app/immutable/chunks/{DNyxd11M.js → Crq2Gvaa.js} +1 -1
  99. package/web/app/immutable/chunks/{BBNnH_sw.js → CsqCa0Sd.js} +2 -2
  100. package/web/app/immutable/chunks/{BspPTfLp.js → CuG6uIIP.js} +1 -1
  101. package/web/app/immutable/chunks/{BwlxTP6m.js → Cvg7bd3W.js} +1 -1
  102. package/web/app/immutable/chunks/{CHeQtCyR.js → CwnyA6hc.js} +1 -1
  103. package/web/app/immutable/chunks/{BWljXDfF.js → Cx089QrC.js} +1 -1
  104. package/web/app/immutable/chunks/{Denyu19x.js → D-s4Q5GN.js} +1 -1
  105. package/web/app/immutable/chunks/{CEFx_w_J.js → D2gIe4Fc.js} +1 -1
  106. package/web/app/immutable/chunks/{DZwXyTtM.js → D6IXX0lv.js} +1 -1
  107. package/web/app/immutable/chunks/{Dcbdz0Jw.js → D6Id8WlN.js} +1 -1
  108. package/web/app/immutable/chunks/{Dl3AQcJn.js → D9hi6Z3O.js} +1 -1
  109. package/web/app/immutable/chunks/{BLn5rsUE.js → D9iN-aHM.js} +1 -1
  110. package/web/app/immutable/chunks/{DvqgRsDd.js → DD1-zRxp.js} +1 -1
  111. package/web/app/immutable/chunks/{NDnZ2f46.js → DE5Smm9m.js} +1 -1
  112. package/web/app/immutable/chunks/{BEj-d9Cx.js → DFoGBie-.js} +1 -1
  113. package/web/app/immutable/chunks/{CzeYC5kK.js → DG__gHhd.js} +1 -1
  114. package/web/app/immutable/chunks/{Vx0IIPew.js → DIlG6FTS.js} +1 -1
  115. package/web/app/immutable/chunks/{BrAaVsFz.js → DK1vbm9l.js} +1 -1
  116. package/web/app/immutable/chunks/{8EDHNAa0.js → DKs2ftKN.js} +1 -1
  117. package/web/app/immutable/chunks/{B4Ys_Zqk.js → DLoJFSfZ.js} +1 -1
  118. package/web/app/immutable/chunks/{Ciihhv86.js → DMC7qMUv.js} +1 -1
  119. package/web/app/immutable/chunks/{T995SloE.js → DMcsIxoO.js} +1 -1
  120. package/web/app/immutable/chunks/{BeAhMSSb.js → DNmVxfYt.js} +8 -8
  121. package/web/app/immutable/chunks/{B_iqW4nZ.js → DOGdTp2m.js} +1 -1
  122. package/web/app/immutable/chunks/{UMA3RT0s.js → DR58OcKC.js} +1 -1
  123. package/web/app/immutable/chunks/{BggwWRGf.js → DR9205pL.js} +1 -1
  124. package/web/app/immutable/chunks/{p8msS16l.js → DTSOJB0e.js} +1 -1
  125. package/web/app/immutable/chunks/{CSdV5_bj.js → DXwDIYHN.js} +1 -1
  126. package/web/app/immutable/chunks/{DJ00LNUR.js → DYd7w17e.js} +1 -1
  127. package/web/app/immutable/chunks/{yQ0Z1VHW.js → DYrK-s5W.js} +1 -1
  128. package/web/app/immutable/chunks/{C-VIKqni.js → DYztlXyW.js} +1 -1
  129. package/web/app/immutable/chunks/{Dj_FVUHS.js → DZ5koqO7.js} +1 -1
  130. package/web/app/immutable/chunks/{D_Ou_6lS.js → D_m0iYjs.js} +1 -1
  131. package/web/app/immutable/chunks/{DvrTNX0e.js → DadwIC0R.js} +1 -1
  132. package/web/app/immutable/chunks/{B9G1J12P.js → DbKrZJmS.js} +6 -6
  133. package/web/app/immutable/chunks/{DU4GH855.js → DbY-sUwj.js} +1 -1
  134. package/web/app/immutable/chunks/{DZCBh97_.js → DcE_Ld1a.js} +1 -1
  135. package/web/app/immutable/chunks/{42GHkgj6.js → DdKmPHVm.js} +1 -1
  136. package/web/app/immutable/chunks/{SNezQIpP.js → DffgEGrv.js} +1 -1
  137. package/web/app/immutable/chunks/{eEZIbdzf.js → DfiXlh8D.js} +1 -1
  138. package/web/app/immutable/chunks/{DNKZQCox.js → DiDcqoCZ.js} +1 -1
  139. package/web/app/immutable/chunks/{Cu8J93FR.js → Dj5vfD48.js} +3 -3
  140. package/web/app/immutable/chunks/{i9DVPIlR.js → DjVfE_Ds.js} +1 -1
  141. package/web/app/immutable/chunks/{DBdfwYFa.js → Dkg7fAiD.js} +1 -1
  142. package/web/app/immutable/chunks/{DrHxWi1S.js → DkraFhXS.js} +1 -1
  143. package/web/app/immutable/chunks/{BWjmxT5D.js → DmtmsOtX.js} +1 -1
  144. package/web/app/immutable/chunks/{4I8WRxn6.js → Dovmtid-.js} +1 -1
  145. package/web/app/immutable/chunks/{BeLl-r8h.js → DpN6Ybfd.js} +1 -1
  146. package/web/app/immutable/chunks/{CVC-R1OI.js → DrWcQsKJ.js} +1 -1
  147. package/web/app/immutable/chunks/{CXdTWTzB.js → DvCCocml.js} +1 -1
  148. package/web/app/immutable/chunks/{DyVKK3zU.js → DwuPw74E.js} +1 -1
  149. package/web/app/immutable/chunks/{CzVv3uRF.js → Dz6pz6rM.js} +1 -1
  150. package/web/app/immutable/chunks/{DeBsmEqU.js → HcVsBsAl.js} +1 -1
  151. package/web/app/immutable/chunks/{DAjW_Z-R.js → Iu8s0xrk.js} +1 -1
  152. package/web/app/immutable/chunks/{Dzu7FPMr.js → LzWIYiXc.js} +1 -1
  153. package/web/app/immutable/chunks/{BlFUy1M_.js → McMSPwXq.js} +1 -1
  154. package/web/app/immutable/chunks/{CunMRDJl.js → NlCjCVxn.js} +1 -1
  155. package/web/app/immutable/chunks/{CjhAOkhP.js → NzxBab7c.js} +1 -1
  156. package/web/app/immutable/chunks/{7O3nfCeH.js → PeSBy6Q3.js} +1 -1
  157. package/web/app/immutable/chunks/{T1WqHZLZ.js → PnTDvXOe.js} +1 -1
  158. package/web/app/immutable/chunks/{BoaSTXep.js → SiYLjuDS.js} +1 -1
  159. package/web/app/immutable/chunks/{BXDl97pl.js → Syl_OSjA.js} +1 -1
  160. package/web/app/immutable/chunks/{w7xvX9oI.js → TV2_MWXe.js} +1 -1
  161. package/web/app/immutable/chunks/{BNrl_yXC.js → TWVlaXcj.js} +1 -1
  162. package/web/app/immutable/chunks/{BF75AbUh.js → U_cmHtqi.js} +1 -1
  163. package/web/app/immutable/chunks/{ClJKqwKB.js → UlQNHb3m.js} +1 -1
  164. package/web/app/immutable/chunks/{ymVYL-2H.js → Vwfej_EC.js} +1 -1
  165. package/web/app/immutable/chunks/{y8su61xq.js → WL4wAA6m.js} +2 -2
  166. package/web/app/immutable/chunks/{nz1YTpIq.js → XO84v1Z5.js} +1 -1
  167. package/web/app/immutable/chunks/{zl8SSmZq.js → b33seoH7.js} +1 -1
  168. package/web/app/immutable/chunks/{BL-4c5eP.js → dvgX5pbn.js} +1 -1
  169. package/web/app/immutable/chunks/{C9PGJX9n.js → fX819Pv6.js} +1 -1
  170. package/web/app/immutable/chunks/{CC4WmnL6.js → gMye6h60.js} +2 -2
  171. package/web/app/immutable/chunks/{BRMj8a4h.js → h6ZeyBNW.js} +1 -1
  172. package/web/app/immutable/chunks/{CXkYtIUm.js → ljZI5d7y.js} +1 -1
  173. package/web/app/immutable/chunks/{w0VuoJIl.js → mFLgyCOK.js} +1 -1
  174. package/web/app/immutable/chunks/{DBGO1w9a.js → pDn0_bm8.js} +1 -1
  175. package/web/app/immutable/chunks/{CvgQ9EkY.js → rgnRekX3.js} +1 -1
  176. package/web/app/immutable/chunks/{CM8AwG-k.js → sgMaD9-D.js} +1 -1
  177. package/web/app/immutable/chunks/{DWUInPKR.js → uR5KZKbl.js} +1 -1
  178. package/web/app/immutable/chunks/{CTmT5I7Z.js → udwHGMln.js} +1 -1
  179. package/web/app/immutable/chunks/{CUMzsmcb.js → ulG7NA7z.js} +1 -1
  180. package/web/app/immutable/chunks/{Cw1gOOP4.js → wD4fx_9g.js} +1 -1
  181. package/web/app/immutable/chunks/{Dmf4WObG.js → x0rjHUHa.js} +1 -1
  182. package/web/app/immutable/chunks/{C9jifMvI.js → yCx04g4X.js} +1 -1
  183. package/web/app/immutable/chunks/{BAXlZEur.js → yW4W7htU.js} +1 -1
  184. package/web/app/immutable/entry/{app.BgfLNpAH.js → app.CIVLA2a9.js} +2 -2
  185. package/web/app/immutable/entry/start.Cn76ZGVI.js +1 -0
  186. package/web/app/immutable/nodes/{0.B3w9utn7.js → 0.ACp4Nz4v.js} +1 -1
  187. package/web/app/immutable/nodes/{1.DaxXfawW.js → 1.DRnQyS6A.js} +1 -1
  188. package/web/app/immutable/nodes/{10.Ut2WO8-5.js → 10.CLkVRFBV.js} +1 -1
  189. package/web/app/immutable/nodes/{14.BS_itk_o.js → 14.9_BXzcxR.js} +1 -1
  190. package/web/app/immutable/nodes/{16.DXjz2v3H.js → 16.BMYUgPNR.js} +2 -2
  191. package/web/app/immutable/nodes/2.d5BGPrjO.js +9 -0
  192. package/web/app/immutable/nodes/{3.63ZtoTSA.js → 3.0E-ZGvKe.js} +1 -1
  193. package/web/app/immutable/nodes/{4.DDS6oK5o.js → 4.DSO5-jdr.js} +1 -1
  194. package/web/app/immutable/nodes/{5.DsTfq2mA.js → 5.BexFD7jH.js} +1 -1
  195. package/web/app/immutable/nodes/{6.BH8FJ3Wf.js → 6.CqlyGMy5.js} +1 -1
  196. package/web/app/immutable/nodes/{7.DW27zT40.js → 7.C2XKzJeK.js} +1 -1
  197. package/web/app/immutable/nodes/{8.B4CNA7De.js → 8.CMFpn5kb.js} +2 -2
  198. package/web/app/immutable/nodes/{9.Nt9iZ731.js → 9.BolTThFG.js} +1 -1
  199. package/web/app/version.json +1 -1
  200. package/web/index.html +9 -9
  201. package/web/app/immutable/chunks/DJ_9F2bm.js +0 -1
  202. package/web/app/immutable/entry/start.DFg06W-g.js +0 -1
  203. package/web/app/immutable/nodes/2.CYzMuwKR.js +0 -9
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CUA_VnXT.js","/app/immutable/chunks/WOicJa2k.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/Cb1eroFO.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/CWKAugar.js","/app/immutable/chunks/Ck8ZjaJh.js"])))=>i.map(i=>d[i]);
2
- import{t as Xt,bq as Y,a_ as D,by as Kt,bu as T,bs as Gt,b as Nt,bo as i,_ as Qt}from"./yZ5s7S5S.js";import{bs as Jt,ca as A,bH as z,c5 as ft,aD as Z,bj as Yt,a5 as S,bS as p,bA as F,b_ as b,W as h,bn as Zt,cd as tt,bV as _t,c9 as te,aA as et,bl as q,bO as y,ay as vt,aB as k}from"./B8o4lNgr.js";import{k as xt,l as ee}from"./D46WSk8U.js";import{b as re}from"./D2g8BuR1.js";import{b as se}from"./Bsxt04FP.js";import{Hb as u,B3 as ae,AV as ne,AU as ie,H5 as oe,AG as le,ia as ce,iB as ue}from"./WOicJa2k.js";import{a as de,T as pe,D as me,L as fe,o as _e}from"./BwEpZ6hl.js";import{F as rt,cV as ve,c4 as xe,cR as he}from"./ah7LAYm4.js";import{f as ht}from"./Dax20l9D.js";import{n as G}from"./BeRTGLrw.js";import"./Cb1eroFO.js";import"./ChTqQfQN.js";import"./BIqUw3gi.js";import{r as ge}from"./BR-wS1W8.js";import{selectScriptById as st,selectScriptRuntime as be,selectScriptOutput as gt,selectScriptRetainedOutput as ye,selectCanDeleteScript as bt}from"./Dmf4WObG.js";import{g as ke}from"./C3YfsJGu.js";import{bQ as we,dF as $e,dg as yt}from"./-1vWYJiy.js";import"./CM5eCs6m.js";import"./tzy2FJ3p.js";import"./hEq6dFYU.js";import{c as Ae}from"./DgBCXQ71.js";var kt=k("<!> ",1),Se=k('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=k('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Ce=k('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Oe=k('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=k('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Ie=k('<code class="text-muted-foreground font-mono text-xs"> </code>'),Le=k('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),Be=k('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function De(f,m){if(new.target)return Xt({component:De,...f});Jt(m,!0);const H=()=>T(It,"$outputAuthority",O),o=()=>T(St,"$runtime$",O),_=()=>T(Ft,"$output$",O),C=()=>T(Rt,"$codeFontFamilyCSS",O),E=()=>T(Ct,"$retainedOutput$",O),wt=()=>T(Ot,"$hidesAgentLifecycleActions$",O),at=()=>T(At,"$script$",O),[O,$t]=Gt();let w=Y(m,"scriptId",7),v=Y(m,"workspaceId",7),N=Y(m,"class",7,"");const R=tt(""),P=tt(""),nt=tt("");let Q=_t(!1);A(()=>R.set(v())),A(()=>P.set(w()));let I,n=null,U=null,V=null,W=null,L=null,j=null;const At=st(R,P),St=be(R,P),Ft=gt(R,P),Ct=ye(R,P,nt),Ot=we(R),Rt=ke(),It=$e(R),it=crypto.randomUUID();A(()=>{const t=v();return w(),()=>{t&&u.dispatch(ae(t,it))}}),A(()=>{const t=v(),e=w(),s=H(),r=o();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),z(Q,ft(()=>_().chunks.length===0),!0),u.dispatch(ne(t,e,l)),()=>u.dispatch(ie(t,e,l))});let X=_t(0);const Lt=te(()=>o().status==="exited"&&o().exitCode!=null&&o().exitCode!==0&&o().exitCode<128);function Bt(){if(!I||n)return;W=new pe(I);const t=W.getCurrentTheme();n=new me({allowProposedApi:!0,fontFamily:C(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),U=new _e,n.loadAddon(U);const e=new fe((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?ge(r).then(g=>{Qt(async()=>{const{getPanelLayoutManager:c}=await import("./CUA_VnXT.js").then(x=>x.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(v()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(I),W.applyTheme(n),j=requestAnimationFrame(()=>{j=null,U?.fit()}),V=new ResizeObserver(()=>{U?.fit()}),V.observe(I),Dt()}function Dt(){if(!n)return;const t=gt.select(u.state,v(),w());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),z(X,t.dropped+t.chunks.length)}function ot(){L!==null&&(cancelAnimationFrame(L),L=null),j!==null&&(cancelAnimationFrame(j),j=null),V?.disconnect(),V=null,W?.dispose(),W=null;const t=n;n=null,U=null,z(X,0),t&&de(t)}A(()=>{const t=_(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),z(X,s)}),A(()=>{const t=C();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function Tt(){u.dispatch(oe(v(),w()))}function qt(){if(!v()){G.error(i.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ce(v(),w(),E()?.text,it))}A(()=>{o().status==="idle"&&_().chunks.length===0&&ot()}),A(()=>{!(o().status==="idle"&&_().chunks.length===0)&&I&&!n&&(L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{L=null,Bt()}))}),Yt(()=>{ot()});var Et={get scriptId(){return w()},set scriptId(t){w(t),et()},get workspaceId(){return v()},set workspaceId(t){v(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Kt,$on:(t,e)=>Nt(m,t,e)},K=Be(),lt=S(K);{var Mt=t=>{var e=Se(),s=S(e),r=S(s),l=S(r);rt(l,{get icon(){return ve},size:"xs"}),F(r);var g=p(r,2),c=q(g,!0);F(s);var x=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:qt,children:(d,B)=>{var M=kt(),mt=vt(M);rt(mt,{get icon(){return he},size:"sm",class:"mr-1.5"});var Ht=p(mt);b(Vt=>y(Ht,` ${Vt??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),h(d,M)},$$slots:{default:!0}})};D(x,a=>{wt()||a($)})}F(e),b(a=>y(c,a),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:o().exitCode??0})]),h(t,e)};D(lt,t=>{Z(Lt)&&t(Mt)})}var ct=p(lt,2);{var Pt=t=>{var e=Oe(),s=S(e),r=q(s,!0),l=p(s,2),g=q(l,!0),c=p(l,2);{var x=a=>{var d=Fe();let B;var M=q(d,!0);b(()=>{B=ee(d,"",B,{"font-family":C()}),y(M,E().text)}),h(a,d)},$=a=>{var d=Ce(),B=q(d,!0);b(M=>y(B,M),[()=>E().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),h(a,d)};D(c,a=>{E().status==="available"?a(x):a($,-1)})}F(e),b((a,d)=>{y(r,a),y(g,d)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),se("open","toggle",e,a=>z(Q,a),()=>Z(Q)),h(t,e)};D(ct,t=>{E()&&t(Pt)})}var ut=p(ct,2);{var Ut=t=>{var e=Re(),s=q(e,!0);b(r=>y(s,r),[()=>i.terminal_scriptOutput_live_label()]),h(t,e)};D(ut,t=>{_().chunks.length>0&&E()&&t(Ut)})}var dt=p(ut,2);{var Wt=t=>{var e=Le(),s=S(e),r=p(S(s),2);{var l=c=>{var x=Ie(),$=q(x,!0);b(a=>y($,a),[()=>le(at())]),h(c,x)};D(r,c=>{at()&&c(l)})}var g=p(r,2);ht(g,{variant:"ghost",size:"xs",onclick:Tt,class:"text-muted-foreground hover:text-foreground",children:(c,x)=>{var $=kt(),a=vt($);rt(a,{get icon(){return xe},class:"h-3 w-3 mr-1"});var d=p(a);b(B=>y(d,` ${B??""}`),[()=>i.terminal_scriptOutput_run_label()]),h(c,$)},$$slots:{default:!0}}),F(s),F(e),h(t,e)};D(dt,t=>{o().status==="idle"&&_().chunks.length===0&&t(Wt)})}var J=p(dt,2);let pt;var jt=S(J);re(jt,t=>I=t,()=>I),F(J),F(K),b(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(J,1,"flex-1 relative overflow-hidden",null,pt,{hidden:o().status==="idle"&&_().chunks.length===0})}),h(f,K);var zt=Zt(Et);return $t(),zt}async function rr(f,m,H){const o=st.select(u.state,f,m);if(!o||!H()||!bt.select(u.state,f,m))return;const _=yt.select(u.state,f);if(!_){G.error(i.workspace_client_accessChanged_error());return}if(!await Ae({title:i.scripts_delete_title({name:o.name}),description:i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(_!==yt.select(u.state,f)){G.error(i.workspace_client_accessChanged_error());return}const C=st.select(u.state,f,m);if(!H()||!C||C.createdAt!==o.createdAt||C.name!==o.name||!bt.select(u.state,f,m)){G.error(i.scripts_delete_changed_error());return}u.dispatch(ue(f,m,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{De as S,rr as c};
2
+ import{t as Xt,bq as Y,a_ as D,by as Kt,bu as T,bs as Gt,b as Nt,bo as i,_ as Qt}from"./yZ5s7S5S.js";import{bs as Jt,ca as A,bH as z,c5 as ft,aD as Z,bj as Yt,a5 as S,bS as p,bA as F,b_ as b,W as h,bn as Zt,cd as tt,bV as _t,c9 as te,aA as et,bl as q,bO as y,ay as vt,aB as k}from"./B8o4lNgr.js";import{k as xt,l as ee}from"./D46WSk8U.js";import{b as re}from"./D2g8BuR1.js";import{b as se}from"./Bsxt04FP.js";import{Hb as u,B3 as ae,AV as ne,AU as ie,H5 as oe,AG as le,ia as ce,iB as ue}from"./WOicJa2k.js";import{a as de,T as pe,D as me,L as fe,o as _e}from"./BwEpZ6hl.js";import{F as rt,cV as ve,c4 as xe,cR as he}from"./ah7LAYm4.js";import{f as ht}from"./Dax20l9D.js";import{n as G}from"./BeRTGLrw.js";import"./Cb1eroFO.js";import"./ChTqQfQN.js";import"./BIqUw3gi.js";import{r as ge}from"./BR-wS1W8.js";import{selectScriptById as st,selectScriptRuntime as be,selectScriptOutput as gt,selectScriptRetainedOutput as ye,selectCanDeleteScript as bt}from"./x0rjHUHa.js";import{g as ke}from"./C3YfsJGu.js";import{bQ as we,dF as $e,dg as yt}from"./-1vWYJiy.js";import"./CM5eCs6m.js";import"./tzy2FJ3p.js";import"./hEq6dFYU.js";import{c as Ae}from"./DgBCXQ71.js";var kt=k("<!> ",1),Se=k('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Fe=k('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),Ce=k('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Oe=k('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Re=k('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Ie=k('<code class="text-muted-foreground font-mono text-xs"> </code>'),Le=k('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!></div></div>'),Be=k('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function De(f,m){if(new.target)return Xt({component:De,...f});Jt(m,!0);const H=()=>T(It,"$outputAuthority",O),o=()=>T(St,"$runtime$",O),_=()=>T(Ft,"$output$",O),C=()=>T(Rt,"$codeFontFamilyCSS",O),E=()=>T(Ct,"$retainedOutput$",O),wt=()=>T(Ot,"$hidesAgentLifecycleActions$",O),at=()=>T(At,"$script$",O),[O,$t]=Gt();let w=Y(m,"scriptId",7),v=Y(m,"workspaceId",7),N=Y(m,"class",7,"");const R=tt(""),P=tt(""),nt=tt("");let Q=_t(!1);A(()=>R.set(v())),A(()=>P.set(w()));let I,n=null,U=null,V=null,W=null,L=null,j=null;const At=st(R,P),St=be(R,P),Ft=gt(R,P),Ct=ye(R,P,nt),Ot=we(R),Rt=ke(),It=$e(R),it=crypto.randomUUID();A(()=>{const t=v();return w(),()=>{t&&u.dispatch(ae(t,it))}}),A(()=>{const t=v(),e=w(),s=H(),r=o();if(!s||!t||!e)return;r.status,r.startedAt;const l=crypto.randomUUID();return nt.set(l),z(Q,ft(()=>_().chunks.length===0),!0),u.dispatch(ne(t,e,l)),()=>u.dispatch(ie(t,e,l))});let X=_t(0);const Lt=te(()=>o().status==="exited"&&o().exitCode!=null&&o().exitCode!==0&&o().exitCode<128);function Bt(){if(!I||n)return;W=new pe(I);const t=W.getCurrentTheme();n=new me({allowProposedApi:!0,fontFamily:C(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),n.attachCustomKeyEventHandler(s=>{const r=s.metaKey||s.ctrlKey;return!(r&&s.key==="`"||r&&s.key==="j"||r&&s.key==="k")}),U=new _e,n.loadAddon(U);const e=new fe((s,r)=>{try{const l=new URL(r);l.hostname==="localhost"||l.hostname==="127.0.0.1"?ge(r).then(g=>{Qt(async()=>{const{getPanelLayoutManager:c}=await import("./CUA_VnXT.js").then(x=>x.p);return{getPanelLayoutManager:c}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url).then(({getPanelLayoutManager:c})=>{c(v()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(r,"_blank")}catch{window.open(r,"_blank")}});n.loadAddon(e),n.open(I),W.applyTheme(n),j=requestAnimationFrame(()=>{j=null,U?.fit()}),V=new ResizeObserver(()=>{U?.fit()}),V.observe(I),Dt()}function Dt(){if(!n)return;const t=gt.select(u.state,v(),w());t.chunks.length>0&&n.write(t.chunks.map(e=>e.text).join("")),z(X,t.dropped+t.chunks.length)}function ot(){L!==null&&(cancelAnimationFrame(L),L=null),j!==null&&(cancelAnimationFrame(j),j=null),V?.disconnect(),V=null,W?.dispose(),W=null;const t=n;n=null,U=null,z(X,0),t&&de(t)}A(()=>{const t=_(),e=ft(()=>Z(X)),s=t.dropped+t.chunks.length;if(!n||s<=e)return;const r=Math.max(e-t.dropped,0);n.write(t.chunks.slice(r).map(l=>l.text).join("")),z(X,s)}),A(()=>{const t=C();n&&n.options.fontFamily!==t&&(n.options.fontFamily=t)});function Tt(){u.dispatch(oe(v(),w()))}function qt(){if(!v()){G.error(i.terminal_scriptOutput_noWorkspace_error());return}u.dispatch(ce(v(),w(),E()?.text,it))}A(()=>{o().status==="idle"&&_().chunks.length===0&&ot()}),A(()=>{!(o().status==="idle"&&_().chunks.length===0)&&I&&!n&&(L!==null&&cancelAnimationFrame(L),L=requestAnimationFrame(()=>{L=null,Bt()}))}),Yt(()=>{ot()});var Et={get scriptId(){return w()},set scriptId(t){w(t),et()},get workspaceId(){return v()},set workspaceId(t){v(t),et()},get class(){return N()},set class(t=""){N(t),et()},$set:Kt,$on:(t,e)=>Nt(m,t,e)},K=Be(),lt=S(K);{var Mt=t=>{var e=Se(),s=S(e),r=S(s),l=S(r);rt(l,{get icon(){return ve},size:"xs"}),F(r);var g=p(r,2),c=q(g,!0);F(s);var x=p(s,2);{var $=a=>{ht(a,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:qt,children:(d,B)=>{var M=kt(),mt=vt(M);rt(mt,{get icon(){return he},size:"sm",class:"mr-1.5"});var Ht=p(mt);b(Vt=>y(Ht,` ${Vt??""}`),[()=>i.terminal_scriptOutput_askAiToFix_label()]),h(d,M)},$$slots:{default:!0}})};D(x,a=>{wt()||a($)})}F(e),b(a=>y(c,a),[()=>i.terminal_scriptOutput_buildFailed_label({exitCode:o().exitCode??0})]),h(t,e)};D(lt,t=>{Z(Lt)&&t(Mt)})}var ct=p(lt,2);{var Pt=t=>{var e=Oe(),s=S(e),r=q(s,!0),l=p(s,2),g=q(l,!0),c=p(l,2);{var x=a=>{var d=Fe();let B;var M=q(d,!0);b(()=>{B=ee(d,"",B,{"font-family":C()}),y(M,E().text)}),h(a,d)},$=a=>{var d=Ce(),B=q(d,!0);b(M=>y(B,M),[()=>E().status==="loading"?i.terminal_scriptOutput_retainedLoading_label():i.terminal_scriptOutput_retainedUnavailable_label()]),h(a,d)};D(c,a=>{E().status==="available"?a(x):a($,-1)})}F(e),b((a,d)=>{y(r,a),y(g,d)},[()=>i.terminal_scriptOutput_retained_label(),()=>i.terminal_scriptOutput_retained_description()]),se("open","toggle",e,a=>z(Q,a),()=>Z(Q)),h(t,e)};D(ct,t=>{E()&&t(Pt)})}var ut=p(ct,2);{var Ut=t=>{var e=Re(),s=q(e,!0);b(r=>y(s,r),[()=>i.terminal_scriptOutput_live_label()]),h(t,e)};D(ut,t=>{_().chunks.length>0&&E()&&t(Ut)})}var dt=p(ut,2);{var Wt=t=>{var e=Le(),s=S(e),r=p(S(s),2);{var l=c=>{var x=Ie(),$=q(x,!0);b(a=>y($,a),[()=>le(at())]),h(c,x)};D(r,c=>{at()&&c(l)})}var g=p(r,2);ht(g,{variant:"ghost",size:"xs",onclick:Tt,class:"text-muted-foreground hover:text-foreground",children:(c,x)=>{var $=kt(),a=vt($);rt(a,{get icon(){return xe},class:"h-3 w-3 mr-1"});var d=p(a);b(B=>y(d,` ${B??""}`),[()=>i.terminal_scriptOutput_run_label()]),h(c,$)},$$slots:{default:!0}}),F(s),F(e),h(t,e)};D(dt,t=>{o().status==="idle"&&_().chunks.length===0&&t(Wt)})}var J=p(dt,2);let pt;var jt=S(J);re(jt,t=>I=t,()=>I),F(J),F(K),b(()=>{xt(K,1,`script-output-viewer ${N()??""}`,"svelte-115p4sl"),pt=xt(J,1,"flex-1 relative overflow-hidden",null,pt,{hidden:o().status==="idle"&&_().chunks.length===0})}),h(f,K);var zt=Zt(Et);return $t(),zt}async function rr(f,m,H){const o=st.select(u.state,f,m);if(!o||!H()||!bt.select(u.state,f,m))return;const _=yt.select(u.state,f);if(!_){G.error(i.workspace_client_accessChanged_error());return}if(!await Ae({title:i.scripts_delete_title({name:o.name}),description:i.scripts_delete_description(),confirmLabel:i.scripts_delete_label(),destructive:!0}))return;if(_!==yt.select(u.state,f)){G.error(i.workspace_client_accessChanged_error());return}const C=st.select(u.state,f,m);if(!H()||!C||C.createdAt!==o.createdAt||C.name!==o.name||!bt.select(u.state,f,m)){G.error(i.scripts_delete_changed_error());return}u.dispatch(ue(f,m,i.terminal_quakeOverlay_deleteScriptFailed_error()))}export{De as S,rr as c};
@@ -1,3 +1,3 @@
1
- import{t as b,bq as d,a_ as D,by as P,b as S}from"./yZ5s7S5S.js";import{bs as $,a7 as A,ay as C,W as M,bn as N,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./BQY3g8uE.js";import{S as z,p as B}from"./BeLl-r8h.js";import{N as W}from"./w0VuoJIl.js";import{Hb as j,t$ as E,bh as J}from"./WOicJa2k.js";import{N as K}from"./CC4WmnL6.js";import{$ as O}from"./-1vWYJiy.js";function R(l,s){if(new.target)return b({component:R,...l});$(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
1
+ import{t as b,bq as d,a_ as D,by as P,b as S}from"./yZ5s7S5S.js";import{bs as $,a7 as A,ay as C,W as M,bn as N,aA as m,aD as i,c9 as c}from"./B8o4lNgr.js";import{D as f,M as x}from"./CKI5DKl7.js";import{S as z,p as B}from"./DpN6Ybfd.js";import{N as W}from"./mFLgyCOK.js";import{Hb as j,t$ as E,bh as J}from"./WOicJa2k.js";import{N as K}from"./gMye6h60.js";import{$ as O}from"./-1vWYJiy.js";function R(l,s){if(new.target)return b({component:R,...l});$(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,p=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
2
2
  ${t()}
3
3
  \`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return B(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?j.dispatch(E(a(),r.target,n)):r.type==="note"&&K(O(r.target,a()),{...n,workspaceId:J(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:P,$on:(e,r)=>S(s,e,r)},u=A(),y=C(u);{var h=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{x(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},I=e=>{f(e,{kind:"custom",children:(r,n)=>{{let _=c(()=>i(p)?.diagram??null),v=c(()=>i(p)?.error);z(r,{get diagram(){return i(_)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};D(y,e=>{o()==="mermaid"?e(h):e(I,-1)})}return M(l,u),N(w)}export{R as default};
@@ -1,4 +1,4 @@
1
- import{I as le}from"./DZwXyTtM.js";import{p as he}from"./BWljXDfF.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./BQY3g8uE.js";import{p as Ee}from"./DRGgTdjp.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"),De=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"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=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:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,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(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(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"),Ke=h(e=>e.branch,"parseCheckout"),Ue=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,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.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}=q(),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"./D6IXX0lv.js";import{p as he}from"./Cx089QrC.js";import{aP as $e,c9 as fe,c6 as ge,aK as ue,aL as ye,c7 as xe,f as h,aN as J,bC as w,c3 as me,aO as q,cx as pe,ce as be,a0 as we,a4 as B,$ as ke,ax as ve,bV as Ce}from"./CKI5DKl7.js";import{p as Ee}from"./DRGgTdjp.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"),De=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"),Pe=h(function(){return d.records.currBranch},"getCurrentBranch"),We=h(function(){return d.records.direction},"getDirection"),qe=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:De,getCommitsArray:ne,getCurrentBranch:Pe,getDirection:We,getHead:qe,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(Ke(o)),"Checkout"),CherryPicking:h(o=>r.cherryPick(Ue(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"),Ke=h(e=>e.branch,"parseCheckout"),Ue=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,P=new Map,z=[],I=0,y="LR",Je=h(()=>{C.clear(),E.clear(),P.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}=q(),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}
@@ -1 +1 @@
1
- import{y as p}from"./CenrrJuj.js";import{u as s,t as l}from"./B-OGKYEx.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as y}from"./Dmf4WObG.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!y.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
1
+ import{y as p}from"./CenrrJuj.js";import{u as s,t as l}from"./C_-tA5vs.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as y}from"./x0rjHUHa.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!y.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};