@intent-hq/web 2.300.1 → 2.301.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (247) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{D24Lh2xV.js → -1vWYJiy.js} +1 -1
  3. package/web/app/immutable/chunks/{Cz3L4t3K.js → 0_FDVEla.js} +1 -1
  4. package/web/app/immutable/chunks/{CeO1YObE.js → 42GHkgj6.js} +1 -1
  5. package/web/app/immutable/chunks/{CUPUpXuX.js → 4I8WRxn6.js} +1 -1
  6. package/web/app/immutable/chunks/{uuGBA4cr.js → 4byfznQh.js} +1 -1
  7. package/web/app/immutable/chunks/{5sBQ6rKD.js → 6Ql_vn7X.js} +1 -1
  8. package/web/app/immutable/chunks/{CoKvDYIY.js → 6hOEL6g0.js} +1 -1
  9. package/web/app/immutable/chunks/{Cl4oF0_T.js → 7O3nfCeH.js} +1 -1
  10. package/web/app/immutable/chunks/{DayXN3MG.js → 8EDHNAa0.js} +1 -1
  11. package/web/app/immutable/chunks/{BS-h7rm3.js → 8Q_Was_5.js} +1 -1
  12. package/web/app/immutable/chunks/{D_HBTAOp.js → 9k5bnL8-.js} +2 -2
  13. package/web/app/immutable/chunks/{DD1B8iWW.js → B-JIdXlm.js} +1 -1
  14. package/web/app/immutable/chunks/{C0yADNxK.js → B-OGKYEx.js} +2 -2
  15. package/web/app/immutable/chunks/{CLwukbv5.js → B220ai_K.js} +1 -1
  16. package/web/app/immutable/chunks/{D_fVcaam.js → B2jj_YAX.js} +1 -1
  17. package/web/app/immutable/chunks/{BWAM175S.js → B4Ys_Zqk.js} +1 -1
  18. package/web/app/immutable/chunks/{7lKdD900.js → B52XysAQ.js} +1 -1
  19. package/web/app/immutable/chunks/{Cr3qamxz.js → B6wnyXxa.js} +1 -1
  20. package/web/app/immutable/chunks/{qoEkEEyr.js → B7VWEjxq.js} +1 -1
  21. package/web/app/immutable/chunks/{B00a-E5y.js → B7zUuO00.js} +1 -1
  22. package/web/app/immutable/chunks/{ByOlSVuA.js → B8S_XDvA.js} +1 -1
  23. package/web/app/immutable/chunks/{BeXyu8S7.js → B9G1J12P.js} +2 -2
  24. package/web/app/immutable/chunks/{B2YeO1vq.js → BAXlZEur.js} +1 -1
  25. package/web/app/immutable/chunks/{BKoNmPdl.js → BAbzdNi8.js} +1 -1
  26. package/web/app/immutable/chunks/{-j8RilKC.js → BBNnH_sw.js} +2 -2
  27. package/web/app/immutable/chunks/{BOBlxuhv.js → BDHBtQ3l.js} +1 -1
  28. package/web/app/immutable/chunks/{BnoYK4Cg.js → BEgosT1d.js} +1 -1
  29. package/web/app/immutable/chunks/{DfZpv0e6.js → BEj-d9Cx.js} +1 -1
  30. package/web/app/immutable/chunks/{cF3AJqS4.js → BF75AbUh.js} +1 -1
  31. package/web/app/immutable/chunks/{Djo4Utna.js → BGv3Ttev.js} +1 -1
  32. package/web/app/immutable/chunks/{ClQcbOPg.js → BH5cuIQi.js} +1 -1
  33. package/web/app/immutable/chunks/BJn7bayT.js +1 -0
  34. package/web/app/immutable/chunks/{BVnCu4HK.js → BL-4c5eP.js} +1 -1
  35. package/web/app/immutable/chunks/BLn5rsUE.js +5 -0
  36. package/web/app/immutable/chunks/{C1ANrPzv.js → BNPFPBlO.js} +1 -1
  37. package/web/app/immutable/chunks/{EZewBOPv.js → BNrl_yXC.js} +1 -1
  38. package/web/app/immutable/chunks/{B6GFXjaE.js → BPzYYRAs.js} +4 -4
  39. package/web/app/immutable/chunks/{Cc7p6my_.js → BQY3g8uE.js} +6 -6
  40. package/web/app/immutable/chunks/{0nqxMME2.js → BR-wS1W8.js} +1 -1
  41. package/web/app/immutable/chunks/{KoGdyFdq.js → BRMj8a4h.js} +1 -1
  42. package/web/app/immutable/chunks/{Dp-w6U2a.js → BRwNKwD7.js} +1 -1
  43. package/web/app/immutable/chunks/{DW4Kmsyn.js → BU8fu6L_.js} +1 -1
  44. package/web/app/immutable/chunks/{CojjevwO.js → BVJeg9VF.js} +3 -3
  45. package/web/app/immutable/chunks/{BXDqRhfc.js → BWjmxT5D.js} +1 -1
  46. package/web/app/immutable/chunks/{DsUUGZq_.js → BWljXDfF.js} +1 -1
  47. package/web/app/immutable/chunks/{1-VabEZ0.js → BXDl97pl.js} +1 -1
  48. package/web/app/immutable/chunks/{B5FD8FRF.js → BXU_OYLJ.js} +1 -1
  49. package/web/app/immutable/chunks/{C_A8Orac.js → BYk_qw69.js} +1 -1
  50. package/web/app/immutable/chunks/{Bx4lXaHY.js → BYxkGGC-.js} +1 -1
  51. package/web/app/immutable/chunks/{D6tg0AFH.js → B_iqW4nZ.js} +1 -1
  52. package/web/app/immutable/chunks/{seZ3kiWB.js → BbJJ4Uie.js} +1 -1
  53. package/web/app/immutable/chunks/{DD_wk1WS.js → BcmjbiBm.js} +2 -2
  54. package/web/app/immutable/chunks/{CTb5E7ts.js → BcpdiGRR.js} +1 -1
  55. package/web/app/immutable/chunks/{COWTRkIf.js → Bd69ye4n.js} +1 -1
  56. package/web/app/immutable/chunks/{gM93sUNx.js → Bd9XSgIb.js} +1 -1
  57. package/web/app/immutable/chunks/{BFq_nebX.js → BeAhMSSb.js} +1 -1
  58. package/web/app/immutable/chunks/{dJdm8RiY.js → BeLl-r8h.js} +1 -1
  59. package/web/app/immutable/chunks/{3cdteGtc.js → BeRTGLrw.js} +1 -1
  60. package/web/app/immutable/chunks/{DPaNvpDi.js → BggwWRGf.js} +1 -1
  61. package/web/app/immutable/chunks/{zFZ2p9zT.js → BhkBe7Jc.js} +1 -1
  62. package/web/app/immutable/chunks/{vTk7TgiT.js → BlFUy1M_.js} +1 -1
  63. package/web/app/immutable/chunks/{MSSSP_6i.js → Bloa0suE.js} +1 -1
  64. package/web/app/immutable/chunks/{CYIyfTfT.js → BoaSTXep.js} +1 -1
  65. package/web/app/immutable/chunks/{DvuFiJGX.js → BrAaVsFz.js} +1 -1
  66. package/web/app/immutable/chunks/{DDs4Vg0U.js → BspPTfLp.js} +1 -1
  67. package/web/app/immutable/chunks/{9ZGNcJrk.js → BvUM18CV.js} +1 -1
  68. package/web/app/immutable/chunks/{BO3uDFyf.js → BwEpZ6hl.js} +3 -3
  69. package/web/app/immutable/chunks/{C6MidKO1.js → BwlxTP6m.js} +1 -1
  70. package/web/app/immutable/chunks/{BBKgmsAl.js → Bzu3FrPq.js} +1 -1
  71. package/web/app/immutable/chunks/{BRFS4VDU.js → C-VIKqni.js} +1 -1
  72. package/web/app/immutable/chunks/{x9rbYKj9.js → C4-u_VtZ.js} +1 -1
  73. package/web/app/immutable/chunks/C5MJ7BeC.js +227 -0
  74. package/web/app/immutable/chunks/{BPhCmCpT.js → C9PGJX9n.js} +1 -1
  75. package/web/app/immutable/chunks/{CqShCtgy.js → C9jifMvI.js} +1 -1
  76. package/web/app/immutable/chunks/{DOP6s1nq.js → C9k7mgs4.js} +4 -4
  77. package/web/app/immutable/chunks/{CjZ3vck_.js → CBDImldB.js} +1 -1
  78. package/web/app/immutable/chunks/{s1gAk8mT.js → CBYPZH-W.js} +1 -1
  79. package/web/app/immutable/chunks/{CJB0AMOQ.js → CC4WmnL6.js} +2 -2
  80. package/web/app/immutable/chunks/{C2RKkR8r.js → CEFx_w_J.js} +1 -1
  81. package/web/app/immutable/chunks/{DJPQ2gWl.js → CG9-31He.js} +1 -1
  82. package/web/app/immutable/chunks/{waEdGUDl.js → CHeQtCyR.js} +1 -1
  83. package/web/app/immutable/chunks/{3sRD2IoY.js → CItSvrO_.js} +1 -1
  84. package/web/app/immutable/chunks/{CcRQKkS2.js → CJzvjWBQ.js} +1 -1
  85. package/web/app/immutable/chunks/{CwSA3Dwr.js → CM8AwG-k.js} +3 -3
  86. package/web/app/immutable/chunks/{5GrgBznS.js → CMBaQAuw.js} +1 -1
  87. package/web/app/immutable/chunks/{BB2kR3UP.js → CNGkxhSe.js} +1 -1
  88. package/web/app/immutable/chunks/{BBi8ZQ4f.js → COMfKjnL.js} +1 -1
  89. package/web/app/immutable/chunks/{BVR4ypbe.js → CQMDPYtj.js} +1 -1
  90. package/web/app/immutable/chunks/{GgqVQsTS.js → CS5VoVeF.js} +1 -1
  91. package/web/app/immutable/chunks/{CZL3_4T_.js → CSdV5_bj.js} +1 -1
  92. package/web/app/immutable/chunks/{igt8MaJ4.js → CTmT5I7Z.js} +1 -1
  93. package/web/app/immutable/chunks/{BggFqLcQ.js → CUMro1vx.js} +1 -1
  94. package/web/app/immutable/chunks/{DB9IAENr.js → CUMzsmcb.js} +1 -1
  95. package/web/app/immutable/chunks/{CGXAF4r8.js → CVC-R1OI.js} +1 -1
  96. package/web/app/immutable/chunks/{B23FAgl4.js → CXdTWTzB.js} +1 -1
  97. package/web/app/immutable/chunks/{DOpzySCS.js → CXkYtIUm.js} +1 -1
  98. package/web/app/immutable/chunks/{IFT0w_rv.js → CXqGB8i2.js} +1 -1
  99. package/web/app/immutable/chunks/{C0sDoyzY.js → CXtOOnh0.js} +1 -1
  100. package/web/app/immutable/chunks/{BKBZBubB.js → CZE4HQ01.js} +1 -1
  101. package/web/app/immutable/chunks/{dAdxFhG6.js → CbF4ODHW.js} +1 -1
  102. package/web/app/immutable/chunks/{XRDpypMz.js → Ce-KYi-n.js} +1 -1
  103. package/web/app/immutable/chunks/{BsU6XLOF.js → Ce8PMxuE.js} +1 -1
  104. package/web/app/immutable/chunks/{DOlRZEzP.js → CeX5z_vs.js} +1 -1
  105. package/web/app/immutable/chunks/{DYFbONVh.js → CenrrJuj.js} +2 -2
  106. package/web/app/immutable/chunks/{B0WURFIt.js → Cf891EVZ.js} +1 -1
  107. package/web/app/immutable/chunks/{DczZ5XlV.js → CiBStNAr.js} +3 -3
  108. package/web/app/immutable/chunks/{yr_icLi6.js → Ciihhv86.js} +1 -1
  109. package/web/app/immutable/chunks/{C7jsu14h.js → Citu-dNT.js} +1 -1
  110. package/web/app/immutable/chunks/{5D7P8R1M.js → CixlkwsU.js} +1 -1
  111. package/web/app/immutable/chunks/{DSoSzq2S.js → CjhAOkhP.js} +1 -1
  112. package/web/app/immutable/chunks/{Dpront9T.js → ClJKqwKB.js} +1 -1
  113. package/web/app/immutable/chunks/{DfARSELN.js → ClOUpVZZ.js} +3 -3
  114. package/web/app/immutable/chunks/{D1YVXYbM.js → CnWtv34Y.js} +7 -7
  115. package/web/app/immutable/chunks/{BRX8YzX5.js → CoJOpuAN.js} +1 -1
  116. package/web/app/immutable/chunks/{BQ3lIAxU.js → Cr5KYQBW.js} +1 -1
  117. package/web/app/immutable/chunks/{DPODhnzy.js → CtcF6bbr.js} +2 -2
  118. package/web/app/immutable/chunks/{BzvRDF8m.js → Cu4QpKDr.js} +1 -1
  119. package/web/app/immutable/chunks/{TKDyISXm.js → Cu8J93FR.js} +3 -3
  120. package/web/app/immutable/chunks/{DDDplTKI.js → CunMRDJl.js} +1 -1
  121. package/web/app/immutable/chunks/{DEMyUrKD.js → CvgQ9EkY.js} +1 -1
  122. package/web/app/immutable/chunks/{f3mINTV_.js → Cw1gOOP4.js} +1 -1
  123. package/web/app/immutable/chunks/{DUb-Rw9h.js → CzVv3uRF.js} +1 -1
  124. package/web/app/immutable/chunks/{YJmoM74E.js → CzeYC5kK.js} +1 -1
  125. package/web/app/immutable/chunks/{CqbBHiiS.js → D1IlJCd0.js} +1 -1
  126. package/web/app/immutable/chunks/{CcJbNmRb.js → D54_bMKf.js} +1 -1
  127. package/web/app/immutable/chunks/{Ca7foKhO.js → D5_2GYC0.js} +1 -1
  128. package/web/app/immutable/chunks/{BoVqnGlE.js → DAjW_Z-R.js} +1 -1
  129. package/web/app/immutable/chunks/{4MuDb8sG.js → DBGO1w9a.js} +1 -1
  130. package/web/app/immutable/chunks/{CbSjEe9c.js → DBdfwYFa.js} +1 -1
  131. package/web/app/immutable/chunks/{CjJmucSj.js → DCv8NaxM.js} +1 -1
  132. package/web/app/immutable/chunks/{WAk1in99.js → DE5Vt-mk.js} +1 -1
  133. package/web/app/immutable/chunks/{CZ0U9o7-.js → DELLe_1a.js} +1 -1
  134. package/web/app/immutable/chunks/{D8RydOZp.js → DGW6wXEq.js} +1 -1
  135. package/web/app/immutable/chunks/{xnqT8zWA.js → DIceyoUA.js} +1 -1
  136. package/web/app/immutable/chunks/{l4QAkguk.js → DJ00LNUR.js} +1 -1
  137. package/web/app/immutable/chunks/DJ_9F2bm.js +1 -0
  138. package/web/app/immutable/chunks/{CtPUg4ad.js → DKolS8Ht.js} +1 -1
  139. package/web/app/immutable/chunks/{CNsCQ6no.js → DMaQDnJk.js} +1 -1
  140. package/web/app/immutable/chunks/{CbB5VTQO.js → DMnHL_j_.js} +1 -1
  141. package/web/app/immutable/chunks/{BpS2Zkky.js → DNKZQCox.js} +1 -1
  142. package/web/app/immutable/chunks/{lfN_4jdk.js → DNyxd11M.js} +1 -1
  143. package/web/app/immutable/chunks/{D7tJZDri.js → DU4GH855.js} +1 -1
  144. package/web/app/immutable/chunks/{DxZVPzM-.js → DVnNWj1L.js} +1 -1
  145. package/web/app/immutable/chunks/{BTiFAxnk.js → DWUInPKR.js} +1 -1
  146. package/web/app/immutable/chunks/{Cs8-gQAN.js → DYywvoax.js} +1 -1
  147. package/web/app/immutable/chunks/{D1mml-OO.js → DZCBh97_.js} +1 -1
  148. package/web/app/immutable/chunks/{CIhr4uzF.js → DZKVhZfO.js} +1 -1
  149. package/web/app/immutable/chunks/{BVLclYIV.js → DZwXyTtM.js} +1 -1
  150. package/web/app/immutable/chunks/{iYBu_bIg.js → D_Ou_6lS.js} +1 -1
  151. package/web/app/immutable/chunks/{DHUOIULZ.js → DaqPl4Tz.js} +1 -1
  152. package/web/app/immutable/chunks/{CyAayV8v.js → Dax20l9D.js} +2 -2
  153. package/web/app/immutable/chunks/{DR4IMcDF.js → Dcbdz0Jw.js} +1 -1
  154. package/web/app/immutable/chunks/{C9KORVFh.js → DdV_6_CH.js} +1 -1
  155. package/web/app/immutable/chunks/{BiyBBgWJ.js → DeBsmEqU.js} +1 -1
  156. package/web/app/immutable/chunks/{CViglT06.js → DeI8FMuz.js} +1 -1
  157. package/web/app/immutable/chunks/{xn0HgFL2.js → DediWp9-.js} +1 -1
  158. package/web/app/immutable/chunks/{BVT8FnwX.js → Denyu19x.js} +1 -1
  159. package/web/app/immutable/chunks/{BmZ0oFC-.js → DgBCXQ71.js} +1 -1
  160. package/web/app/immutable/chunks/{CHHzckiT.js → DhGPSsBf.js} +1 -1
  161. package/web/app/immutable/chunks/{BcN0a7iZ.js → Dj_FVUHS.js} +1 -1
  162. package/web/app/immutable/chunks/{BPC4bZ2e.js → DkibMP99.js} +1 -1
  163. package/web/app/immutable/chunks/{CMxICaSn.js → Dl3AQcJn.js} +1 -1
  164. package/web/app/immutable/chunks/{6bctAAQ4.js → DmJbtm9p.js} +2 -2
  165. package/web/app/immutable/chunks/{QvMOlSpE.js → DmUU4JxK.js} +1 -1
  166. package/web/app/immutable/chunks/{CI_dqO7A.js → Dma9ms7u.js} +1 -1
  167. package/web/app/immutable/chunks/{Bkny4U08.js → Dmf4WObG.js} +1 -1
  168. package/web/app/immutable/chunks/{CMT8W8d8.js → DnCf3QiL.js} +1 -1
  169. package/web/app/immutable/chunks/{B1BoYgO3.js → DoOAeI0m.js} +1 -1
  170. package/web/app/immutable/chunks/{AFSjjw3j.js → Do_TqlrK.js} +1 -1
  171. package/web/app/immutable/chunks/{DnSvdDJQ.js → DrHxWi1S.js} +1 -1
  172. package/web/app/immutable/chunks/{VIc8fDOK.js → DrNVHvhK.js} +1 -1
  173. package/web/app/immutable/chunks/{Ozne-tFy.js → Drgj5uDM.js} +41 -41
  174. package/web/app/immutable/chunks/{2ZXwYJuA.js → DsHbB0Gk.js} +1 -1
  175. package/web/app/immutable/chunks/{UiwXoSAw.js → DsrgAjSN.js} +1 -1
  176. package/web/app/immutable/chunks/{DOb83nqS.js → DtagNJGy.js} +1 -1
  177. package/web/app/immutable/chunks/{Dj9vAmvP.js → DuInbvT4.js} +1 -1
  178. package/web/app/immutable/chunks/{WhG7Bgtb.js → DvqgRsDd.js} +1 -1
  179. package/web/app/immutable/chunks/{BWaQmmKL.js → DvrTNX0e.js} +1 -1
  180. package/web/app/immutable/chunks/{2N3bEpgZ.js → DyVKK3zU.js} +1 -1
  181. package/web/app/immutable/chunks/{DjJQPfKI.js → Dzu7FPMr.js} +1 -1
  182. package/web/app/immutable/chunks/{CAdJgRT-.js → EzIyeu9q.js} +1 -1
  183. package/web/app/immutable/chunks/{BuBWlA2n.js → IISaQsK0.js} +1 -1
  184. package/web/app/immutable/chunks/IJYL54f1.js +1 -0
  185. package/web/app/immutable/chunks/{CLt_MpVR.js → Jf6CJclx.js} +1 -1
  186. package/web/app/immutable/chunks/{J1JvTxzS.js → KG68UpwU.js} +1 -1
  187. package/web/app/immutable/chunks/{DzxV-zrJ.js → M8sdbvOT.js} +1 -1
  188. package/web/app/immutable/chunks/{D31GMMqw.js → Mjh5v3L0.js} +1 -1
  189. package/web/app/immutable/chunks/{DW3NYbCg.js → NDnZ2f46.js} +1 -1
  190. package/web/app/immutable/chunks/{_wdKNOb8.js → NPItrD9R.js} +1 -1
  191. package/web/app/immutable/chunks/{qVOvfVaw.js → Pq3i4zFA.js} +1 -1
  192. package/web/app/immutable/chunks/{ConaHaDS.js → Q-IbWJI_.js} +1 -1
  193. package/web/app/immutable/chunks/{BL66wtH1.js → SNezQIpP.js} +1 -1
  194. package/web/app/immutable/chunks/{DBYwZc8q.js → T1WqHZLZ.js} +1 -1
  195. package/web/app/immutable/chunks/{Dy75eCEg.js → T995SloE.js} +1 -1
  196. package/web/app/immutable/chunks/{2DcZXs_F.js → UMA3RT0s.js} +1 -1
  197. package/web/app/immutable/chunks/{D_0pJDZv.js → UakvtOgc.js} +1 -1
  198. package/web/app/immutable/chunks/{CURgPz9A.js → Vx0IIPew.js} +1 -1
  199. package/web/app/immutable/chunks/{B648LYGe.js → bDcdMMyl.js} +1 -1
  200. package/web/app/immutable/chunks/{g8wzFaTr.js → eEZIbdzf.js} +1 -1
  201. package/web/app/immutable/chunks/{BKb2X4nY.js → ggRICgWE.js} +1 -1
  202. package/web/app/immutable/chunks/{CNcMC2eS.js → hOR9B4V4.js} +1 -1
  203. package/web/app/immutable/chunks/{B9UG1fIf.js → i9DVPIlR.js} +1 -1
  204. package/web/app/immutable/chunks/{Q0MFbJMW.js → k6s8dGrA.js} +1 -1
  205. package/web/app/immutable/chunks/{0-b4ZvTK.js → knnjLtf9.js} +1 -1
  206. package/web/app/immutable/chunks/{DHZp-IFS.js → mNkJFQiA.js} +1 -1
  207. package/web/app/immutable/chunks/{B08ZRfRe.js → mkPaye9m.js} +1 -1
  208. package/web/app/immutable/chunks/{WC951FwE.js → nz1YTpIq.js} +1 -1
  209. package/web/app/immutable/chunks/{CuGpCjd7.js → oqxFFnht.js} +1 -1
  210. package/web/app/immutable/chunks/{CCOyeB8l.js → p8msS16l.js} +1 -1
  211. package/web/app/immutable/chunks/{MkI4_nBU.js → qwx0AE4b.js} +1 -1
  212. package/web/app/immutable/chunks/{h-HGzFkJ.js → tkZmaR4M.js} +4 -4
  213. package/web/app/immutable/chunks/{CilxFmmt.js → tzy2FJ3p.js} +1 -1
  214. package/web/app/immutable/chunks/{7L5DlLPB.js → vt-D6r-U.js} +1 -1
  215. package/web/app/immutable/chunks/{CKXP5Dfl.js → w0VuoJIl.js} +1 -1
  216. package/web/app/immutable/chunks/{nn-FB5iu.js → w7xvX9oI.js} +1 -1
  217. package/web/app/immutable/chunks/{C7NJtCoD.js → y8su61xq.js} +2 -2
  218. package/web/app/immutable/chunks/{3pZ2C7Oz.js → yQ0Z1VHW.js} +1 -1
  219. package/web/app/immutable/chunks/{CkiTXhNV.js → ymVYL-2H.js} +3 -3
  220. package/web/app/immutable/chunks/{txAxF1ra.js → zl8SSmZq.js} +1 -1
  221. package/web/app/immutable/entry/{app.MRheiWYu.js → app.BgfLNpAH.js} +2 -2
  222. package/web/app/immutable/entry/start.DFg06W-g.js +1 -0
  223. package/web/app/immutable/nodes/{0.CtDeqO-b.js → 0.B3w9utn7.js} +1 -1
  224. package/web/app/immutable/nodes/{1.DkbI4cS2.js → 1.DaxXfawW.js} +1 -1
  225. package/web/app/immutable/nodes/{10.m8CCWmGC.js → 10.Ut2WO8-5.js} +1 -1
  226. package/web/app/immutable/nodes/{12.C6vEm_M7.js → 12.CEAVKYuu.js} +1 -1
  227. package/web/app/immutable/nodes/{13.DPA662Yd.js → 13.CJ1HRZcd.js} +1 -1
  228. package/web/app/immutable/nodes/{14.ByaMuLhR.js → 14.BS_itk_o.js} +1 -1
  229. package/web/app/immutable/nodes/{15.Byubc7Em.js → 15.CZGq0vsg.js} +1 -1
  230. package/web/app/immutable/nodes/{16.BmFYAQ9C.js → 16.DXjz2v3H.js} +2 -2
  231. package/web/app/immutable/nodes/{2.B4Inck9s.js → 2.CYzMuwKR.js} +4 -4
  232. package/web/app/immutable/nodes/{3.C3UUZ7iK.js → 3.63ZtoTSA.js} +1 -1
  233. package/web/app/immutable/nodes/{4.CtX4qgJE.js → 4.DDS6oK5o.js} +1 -1
  234. package/web/app/immutable/nodes/{5.yLkRrv3R.js → 5.DsTfq2mA.js} +1 -1
  235. package/web/app/immutable/nodes/6.BH8FJ3Wf.js +1 -0
  236. package/web/app/immutable/nodes/{7.DCFEio1e.js → 7.DW27zT40.js} +1 -1
  237. package/web/app/immutable/nodes/{8.CGM4vick.js → 8.B4CNA7De.js} +4 -4
  238. package/web/app/immutable/nodes/{9.V5qvVUf3.js → 9.Nt9iZ731.js} +4 -4
  239. package/web/app/version.json +1 -1
  240. package/web/index.html +9 -9
  241. package/web/app/immutable/chunks/9A9__2dZ.js +0 -1
  242. package/web/app/immutable/chunks/BqQtQly_.js +0 -5
  243. package/web/app/immutable/chunks/D4Mfx79s.js +0 -227
  244. package/web/app/immutable/chunks/DGR4UUG4.js +0 -1
  245. package/web/app/immutable/chunks/W-gkWrYK.js +0 -1
  246. package/web/app/immutable/entry/start.CSXPreJt.js +0 -1
  247. package/web/app/immutable/nodes/6.CjUsIDeG.js +0 -1
@@ -1 +1 @@
1
- import{b8 as ce,aR as ue,by as fe,ao as Z,_ as $,ae as A,c0 as ze,c5 as Ae,aG as ve,bI as ge,bV as M,br as We,bH as L,aD as u,bs as be,a5 as Be,bA as Me,W,bn as me,aA as b,aB as j,bo as De,ay as qe,bS as He,c9 as k,be as Ve,b$ as Xe,b_ as Ye,bO as je}from"./B8o4lNgr.js";import{t as he,bq as m,by as pe,br as ye,b as xe,a_ as ee}from"./yZ5s7S5S.js";import{c as V,f as D}from"./D46WSk8U.js";import{b as te}from"./D2g8BuR1.js";import{s as Ge}from"./Cb1eroFO.js";import{H as re,E as Ue,c as Je}from"./Dfbagr79.js";import"./CM5eCs6m.js";import{bL as Ke}from"./CyAayV8v.js";function ne(e,t,n=t){var a=new WeakSet;ce(e,"input",async s=>{Z&&e.type==="checkbox"&&$();var i=s?e.defaultValue:e.value;if(i=q(e)?H(i):i,n(i),A!==null&&a.add(A),await ze(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ue&&e.defaultValue!==e.value||Ae(t)==null&&e.value)&&(n(q(e)?H(e.value):e.value),A!==null&&a.add(A)),fe(()=>{Z&&e.type==="checkbox"&&$();var s=t();if(e===document.activeElement){var i=A;if(a.has(i))return}q(e)&&s===H(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function H(e){return e===""?null:+e}function Qe(e,t,n=t){ce(e,"change",()=>{n(e.files)}),ue&&e.files&&n(e.files),fe(()=>{e.files=t()})}let N=[],R=[],I=null,B=!1,z=0;function se(e){if(e.pending){e.pending=!1,z-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}const X=-1;let Y=null;function _e(e){e.pending&&(e.pending=!1,z-=1,!(z>0||B)&&(I!==null&&I!==X&&cancelAnimationFrame(I),I=null,Y=null,N=[],R=[]))}function G(){const e=globalThis.requestAnimationFrame;if(I!==null&&Y===e)return;Y=e,I=X;const t=e(Ze);I===X&&(I=t)}function Ze(){I=null,B=!0;try{for(;N.length>0;){const e=N;N=[];for(const t of e)se(t)}for(;R.length>0;){const e=R;R=[];for(const t of e)se(t)}}finally{B=!1}z>0?G():(N=[],R=[])}function pt(e){const t={fn:e,pending:!0};return z+=1,N.push(t),B||G(),()=>_e(t)}function yt(e){const t={fn:e,pending:!0};return z+=1,R.push(t),B||G(),()=>_e(t)}const we=Symbol("owned-popup-context"),Ie=Symbol("owned-popup-close");function xt(e){ge(we,e)}function $e(){return ve(we)}function _t(e){ge(Ie,e)}function et(){return ve(Ie)}function wt(e){const t=$e(),n=e??et();return a=>({destroy:t?.register(a,n)})}function ae(e,t,n){const a=t+n;return e<t?t-e:e>a?e-a:0}function tt(e,t,n="y"){let a=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=ae(e.x,f.left,f.width),l=ae(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(a=i,s=d)}return a}function It(e,t={}){const n=t.axis??"y",a=new Map;let s=M(null),i=M(We([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&L(s,tt(u(f),u(i),n),!0)},_=g=>{const o=getComputedStyle(e),v=T=>Number.parseFloat(T)||0,x=o.boxSizing==="border-box",w=Number.parseFloat(o.width)+(x?0:v(o.paddingLeft)+v(o.paddingRight)+v(o.borderLeftWidth)+v(o.borderRightWidth)),P=Number.parseFloat(o.height)+(x?0:v(o.paddingTop)+v(o.paddingBottom)+v(o.borderTopWidth)+v(o.borderBottomWidth)),p=T=>Math.abs(T-1)<.001?1:T;return{x:p(w>0&&g.width/w||1),y:p(P>0&&g.height/P||1)}},S=()=>{const g=e.getBoundingClientRect(),{x:o,y:v}=_(g),x=[];for(const[w,P]of a){const p=P.getBoundingClientRect();x[w]={top:(p.top-g.top)/v-e.clientTop+e.scrollTop,left:(p.left-g.left)/o-e.clientLeft+e.scrollLeft,width:p.width/o,height:p.height/v}}L(i,x,!0),d()},C=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});C?.observe(e);const E=()=>{L(c,u(c)+1)},O=g=>{const o=e.getBoundingClientRect(),{x:v,y:x}=_(o);L(f,{x:(g.clientX-o.left)/v-e.clientLeft+e.scrollLeft,y:(g.clientY-o.top)/x-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},F=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",E),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",F),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(g){L(s,g,!0)},registerItem(g,o){const v=a.get(g);v&&C?.unobserve?.(v),o?(a.set(g,o),C?.observe(o)):a.delete(g),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),C?.disconnect(),e.removeEventListener("pointerenter",E),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",F)}}}const St=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(a){(a.hover!==n.hover||a.index!==n.index)&&(n.hover.registerItem(n.index,null),a.hover.registerItem(a.index,e)),n=a},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var rt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),nt=j("<p><!></p>");function Se(e,t){if(new.target)return he({component:Se,...e});be(t,!0);let n=m(t,"tone",7,"helper"),a=m(t,"children",7),s=m(t,"class",7),i=ye(t,rt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return a()},set children(d){a(d),b()},get class(){return s()},set class(d){s(d),b()},$set:pe,$on:(d,_)=>xe(t,d,_)},c=nt();V(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>D("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Be(c);return Ge(l,a),Me(c),re(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),re(2,c,()=>Je,()=>({tier:"fast"})),W(e,c),me(f)}const Ce="data-[state=hover]:bg-hover",oe=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ce} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ce} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,ie="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",st="focus-visible:outline-none focus-visible:shadow-none";function le(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),de=j("<input/>"),it=j("<!> <!>",1);function lt(e,t){const n=De();if(new.target)return he({component:lt,...e});be(t,!0);const a=Ke();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),_=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),C=m(t,"message",7),E=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),F=m(t,"aria-describedby",7),g=m(t,"aria-invalid",7),o=m(t,"class",7),v=m(t,"data-slot",7,"input"),x=ye(t,ot);const w=k(()=>typeof l()=="string"?l():a),P=k(()=>typeof l()=="number"?l():void 0),p=k(()=>E()??C()),T=k(()=>[F(),u(p)?O():void 0].filter(Boolean).join(" ")||void 0),U=k(()=>E()?!0:g());function Ee(){s()?.focus()}function Oe(){s()?.blur()}function Pe(){s()?.select()}function Te(r,h,y){s()?.setSelectionRange(r,h,y)}var Le={focus:Ee,blur:Oe,select:Pe,setSelectionRange:Te,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return _()},set variant(r="default"){_(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return C()},set message(r){C(r),b()},get error(){return E()},set error(r){E(r),b()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),b()},get"aria-describedby"(){return F()},set"aria-describedby"(r){F(r),b()},get"aria-invalid"(){return g()},set"aria-invalid"(r){g(r),b()},get class(){return o()},set class(r){o(r),b()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),b()},$set:pe,$on:(r,h)=>xe(t,r,h)},J=it(),K=qe(J);{var Fe=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),class:y,type:"file",size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),...x}),[()=>D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",oe,"focus-visible:-outline-offset-2",le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),Qe(h,d),ne(h,f),W(r,h)},ke=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":_()==="search"?"search":void 0,class:y,type:c(),size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...x}),[()=>_()==="search"?D("flex selection:bg-primary selection:text-primary-foreground",at,o()):D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",oe,st,le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),ne(h,f),W(r,h)};ee(K,r=>{c()==="file"?r(Fe):r(ke,-1)})}var Ne=He(K,2);{var Re=r=>{{let h=k(()=>E()?"error":"helper");Se(r,{get id(){return O()},get tone(){return u(h)},children:(y,dt)=>{Ve();var Q=Xe();Ye(()=>je(Q,u(p))),W(y,Q)},$$slots:{default:!0}})}};ee(Ne,r=>{u(p)&&r(Re)})}return W(e,J),me(Le)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Qe as d,ne as e,wt as f,It as g,et as h,$e as i,yt as j,_t as k,xt as l,oe as m,ie as n,Pt as o,St as p,le as q,at as r,pt as s,st as t};
1
+ import{b8 as ce,aR as ue,by as fe,ao as Z,_ as $,ae as A,c0 as ze,c5 as Ae,aG as ve,bI as ge,bV as M,br as We,bH as L,aD as u,bs as be,a5 as Be,bA as Me,W,bn as me,aA as b,aB as j,bo as De,ay as qe,bS as He,c9 as k,be as Ve,b$ as Xe,b_ as Ye,bO as je}from"./B8o4lNgr.js";import{t as he,bq as m,by as pe,br as ye,b as xe,a_ as ee}from"./yZ5s7S5S.js";import{c as V,f as D}from"./D46WSk8U.js";import{b as te}from"./D2g8BuR1.js";import{s as Ge}from"./Cb1eroFO.js";import{H as re,E as Ue,c as Je}from"./Dfbagr79.js";import"./CM5eCs6m.js";import{bL as Ke}from"./Dax20l9D.js";function ne(e,t,n=t){var a=new WeakSet;ce(e,"input",async s=>{Z&&e.type==="checkbox"&&$();var i=s?e.defaultValue:e.value;if(i=q(e)?H(i):i,n(i),A!==null&&a.add(A),await ze(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(ue&&e.defaultValue!==e.value||Ae(t)==null&&e.value)&&(n(q(e)?H(e.value):e.value),A!==null&&a.add(A)),fe(()=>{Z&&e.type==="checkbox"&&$();var s=t();if(e===document.activeElement){var i=A;if(a.has(i))return}q(e)&&s===H(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function q(e){var t=e.type;return t==="number"||t==="range"}function H(e){return e===""?null:+e}function Qe(e,t,n=t){ce(e,"change",()=>{n(e.files)}),ue&&e.files&&n(e.files),fe(()=>{e.files=t()})}let N=[],R=[],I=null,B=!1,z=0;function se(e){if(e.pending){e.pending=!1,z-=1;try{e.fn()}catch(t){queueMicrotask(()=>{throw t})}}}const X=-1;let Y=null;function _e(e){e.pending&&(e.pending=!1,z-=1,!(z>0||B)&&(I!==null&&I!==X&&cancelAnimationFrame(I),I=null,Y=null,N=[],R=[]))}function G(){const e=globalThis.requestAnimationFrame;if(I!==null&&Y===e)return;Y=e,I=X;const t=e(Ze);I===X&&(I=t)}function Ze(){I=null,B=!0;try{for(;N.length>0;){const e=N;N=[];for(const t of e)se(t)}for(;R.length>0;){const e=R;R=[];for(const t of e)se(t)}}finally{B=!1}z>0?G():(N=[],R=[])}function pt(e){const t={fn:e,pending:!0};return z+=1,N.push(t),B||G(),()=>_e(t)}function yt(e){const t={fn:e,pending:!0};return z+=1,R.push(t),B||G(),()=>_e(t)}const we=Symbol("owned-popup-context"),Ie=Symbol("owned-popup-close");function xt(e){ge(we,e)}function $e(){return ve(we)}function _t(e){ge(Ie,e)}function et(){return ve(Ie)}function wt(e){const t=$e(),n=e??et();return a=>({destroy:t?.register(a,n)})}function ae(e,t,n){const a=t+n;return e<t?t-e:e>a?e-a:0}function tt(e,t,n="y"){let a=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=ae(e.x,f.left,f.width),l=ae(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(a=i,s=d)}return a}function It(e,t={}){const n=t.axis??"y",a=new Map;let s=M(null),i=M(We([])),f=M(null),c=M(0),l;const d=()=>{u(f)&&L(s,tt(u(f),u(i),n),!0)},_=g=>{const o=getComputedStyle(e),v=T=>Number.parseFloat(T)||0,x=o.boxSizing==="border-box",w=Number.parseFloat(o.width)+(x?0:v(o.paddingLeft)+v(o.paddingRight)+v(o.borderLeftWidth)+v(o.borderRightWidth)),P=Number.parseFloat(o.height)+(x?0:v(o.paddingTop)+v(o.paddingBottom)+v(o.borderTopWidth)+v(o.borderBottomWidth)),p=T=>Math.abs(T-1)<.001?1:T;return{x:p(w>0&&g.width/w||1),y:p(P>0&&g.height/P||1)}},S=()=>{const g=e.getBoundingClientRect(),{x:o,y:v}=_(g),x=[];for(const[w,P]of a){const p=P.getBoundingClientRect();x[w]={top:(p.top-g.top)/v-e.clientTop+e.scrollTop,left:(p.left-g.left)/o-e.clientLeft+e.scrollLeft,width:p.width/o,height:p.height/v}}L(i,x,!0),d()},C=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});C?.observe(e);const E=()=>{L(c,u(c)+1)},O=g=>{const o=e.getBoundingClientRect(),{x:v,y:x}=_(o);L(f,{x:(g.clientX-o.left)/v-e.clientLeft+e.scrollLeft,y:(g.clientY-o.top)/x-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},F=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",E),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",F),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(g){L(s,g,!0)},registerItem(g,o){const v=a.get(g);v&&C?.unobserve?.(v),o?(a.set(g,o),C?.observe(o)):a.delete(g),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),C?.disconnect(),e.removeEventListener("pointerenter",E),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",F)}}}const St=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(a){(a.hover!==n.hover||a.index!==n.index)&&(n.hover.registerItem(n.index,null),a.hover.registerItem(a.index,e)),n=a},destroy(){n.hover.registerItem(n.index,null)}}},Ct="p-1",Et="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",Ot="ml-auto first-line-icon w-(--menu-icon-size)";var rt=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),nt=j("<p><!></p>");function Se(e,t){if(new.target)return he({component:Se,...e});be(t,!0);let n=m(t,"tone",7,"helper"),a=m(t,"children",7),s=m(t,"class",7),i=ye(t,rt);var f={get tone(){return n()},set tone(d="helper"){n(d),b()},get children(){return a()},set children(d){a(d),b()},get class(){return s()},set class(d){s(d),b()},$set:pe,$on:(d,_)=>xe(t,d,_)},c=nt();V(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>D("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Be(c);return Ge(l,a),Me(c),re(1,c,()=>Ue,()=>({tier:"fast",y:-2,scale:1})),re(2,c,()=>Je,()=>({tier:"fast"})),W(e,c),me(f)}const Ce="data-[state=hover]:bg-hover",oe=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${Ce} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,Pt=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${Ce} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,ie="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",st="focus-visible:outline-none focus-visible:shadow-none";function le(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const at="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var ot=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),de=j("<input/>"),it=j("<!> <!>",1);function lt(e,t){const n=De();if(new.target)return he({component:lt,...e});be(t,!0);const a=Ke();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),_=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),C=m(t,"message",7),E=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),F=m(t,"aria-describedby",7),g=m(t,"aria-invalid",7),o=m(t,"class",7),v=m(t,"data-slot",7,"input"),x=ye(t,ot);const w=k(()=>typeof l()=="string"?l():a),P=k(()=>typeof l()=="number"?l():void 0),p=k(()=>E()??C()),T=k(()=>[F(),u(p)?O():void 0].filter(Boolean).join(" ")||void 0),U=k(()=>E()?!0:g());function Ee(){s()?.focus()}function Oe(){s()?.blur()}function Pe(){s()?.select()}function Te(r,h,y){s()?.setSelectionRange(r,h,y)}var Le={focus:Ee,blur:Oe,select:Pe,setSelectionRange:Te,get ref(){return s()},set ref(r){s(r),b()},get id(){return i()},set id(r){i(r),b()},get value(){return f()},set value(r){f(r),b()},get type(){return c()},set type(r){c(r),b()},get size(){return l()},set size(r){l(r),b()},get files(){return d()},set files(r){d(r),b()},get variant(){return _()},set variant(r="default"){_(r),b()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),b()},get message(){return C()},set message(r){C(r),b()},get error(){return E()},set error(r){E(r),b()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),b()},get"aria-describedby"(){return F()},set"aria-describedby"(r){F(r),b()},get"aria-invalid"(){return g()},set"aria-invalid"(r){g(r),b()},get class(){return o()},set class(r){o(r),b()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),b()},$set:pe,$on:(r,h)=>xe(t,r,h)},J=it(),K=qe(J);{var Fe=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),class:y,type:"file",size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),...x}),[()=>D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",oe,"focus-visible:-outline-offset-2",le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),Qe(h,d),ne(h,f),W(r,h)},ke=r=>{var h=de();V(h,y=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":_()==="search"?"search":void 0,class:y,type:c(),size:u(P),"aria-describedby":u(T),"aria-invalid":u(U),autocorrect:"off",autocapitalize:"off",spellcheck:"false",...x}),[()=>_()==="search"?D("flex selection:bg-primary selection:text-primary-foreground",at,o()):D("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",oe,st,le(u(w)),S()&&ie,o())],void 0,void 0,void 0,!0),te(h,y=>s(y),()=>s()),ne(h,f),W(r,h)};ee(K,r=>{c()==="file"?r(Fe):r(ke,-1)})}var Ne=He(K,2);{var Re=r=>{{let h=k(()=>E()?"error":"helper");Se(r,{get id(){return O()},get tone(){return u(h)},children:(y,dt)=>{Ve();var Q=Xe();Ye(()=>je(Q,u(p))),W(y,Q)},$$slots:{default:!0}})}};ee(Ne,r=>{u(p)&&r(Re)})}return W(e,J),me(Le)}export{lt as I,Ct as O,Se as a,Ot as b,Et as c,Qe as d,ne as e,wt as f,It as g,et as h,$e as i,yt as j,_t as k,xt as l,oe as m,ie as n,Pt as o,St as p,le as q,at as r,pt as s,st as t};
@@ -1 +1 @@
1
- import{a as o}from"./D1YVXYbM.js";import{g as r}from"./Cc7p6my_.js";var l=1;function n(){if(!(typeof globalThis>"u"))return globalThis}r(n,"getCaptureGlobal");o(n,"getCaptureGlobal");function p(){return!!n()?.mermaidCaptureSizes}r(p,"shouldCaptureSizes");o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}r(u,"capturedFromLocation");o(u,"capturedFromLocation");function d(i,a){const t=n();if(!t)return;const e=a.node(),m=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const s={svgId:m,sizes:i};t.mermaidCapturedSizes.push(s),t.mermaidLastCapturedSizes=s}r(d,"emitCapturedSizes");o(d,"emitCapturedSizes");function c(i,a){const t=[];for(const e of a.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:l,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},i)}r(c,"captureNodeSizes");o(c,"captureNodeSizes");export{c as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{a as o}from"./CnWtv34Y.js";import{g as r}from"./BQY3g8uE.js";var l=1;function n(){if(!(typeof globalThis>"u"))return globalThis}r(n,"getCaptureGlobal");o(n,"getCaptureGlobal");function p(){return!!n()?.mermaidCaptureSizes}r(p,"shouldCaptureSizes");o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}r(u,"capturedFromLocation");o(u,"capturedFromLocation");function d(i,a){const t=n();if(!t)return;const e=a.node(),m=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const s={svgId:m,sizes:i};t.mermaidCapturedSizes.push(s),t.mermaidLastCapturedSizes=s}r(d,"emitCapturedSizes");o(d,"emitCapturedSizes");function c(i,a){const t=[];for(const e of a.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:l,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},i)}r(c,"captureNodeSizes");o(c,"captureNodeSizes");export{c as captureNodeSizes,p as shouldCaptureSizes};
@@ -1,4 +1,4 @@
1
- import{f as o,aO as ot,bQ as ut,c4 as dt,v as yt,a0 as ft,a4 as pt,c9 as it,aL as gt,c7 as kt,aK as mt,c6 as wt,aP as _t,a6 as bt}from"./Cc7p6my_.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,p.length=p.length-B,n.length=n.length-B}o(X,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}o(tt,"lex");for(var M,W,N,Y,F={},U,V,et,Z;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var Q="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
1
+ import{f as o,aO as ot,bQ as ut,c4 as dt,v as yt,a0 as ft,a4 as pt,c9 as it,aL as gt,c7 as kt,aK as mt,c6 as wt,aP as _t,a6 as bt}from"./BQY3g8uE.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,C=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(S.yy[P]=this.yy[P]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var G=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function X(B){i.length=i.length-2*B,p.length=p.length-B,n.length=n.length-B}o(X,"popStack");function tt(){var B;return B=c.pop()||b.lex()||A,typeof B!="number"&&(B instanceof Array&&(c=B,B=c.pop()),B=s.symbols_[B]||B),B}o(tt,"lex");for(var M,W,N,Y,F={},U,V,et,Z;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var Q="";Z=[];for(U in v[W])this.terminals_[U]&&U>L&&Z.push("'"+this.terminals_[U]+"'");b.showPosition?Q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+Z.join(", ")+", got '"+(this.terminals_[M]||M)+"'":Q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(Q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:Z})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(V=this.productions_[N[1]][1],F.$=p[p.length-V],F._$={first_line:n[n.length-(V||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(V||1)].first_column,last_column:n[n.length-1].last_column},G&&(F._$.range=[n[n.length-(V||1)].range[0],n[n.length-1].range[1]]),Y=this.performAction.apply(F,[w,$,I,S.yy,N[1],p,n].concat(C)),typeof Y<"u")return Y;V&&(i=i.slice(0,-1*V*2),p=p.slice(0,-1*V),n=n.slice(0,-1*V)),i.push(this.productions_[N[1]][0]),p.push(F.$),n.push(F._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/0nqxMME2.js","/app/immutable/chunks/3cdteGtc.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/D46WSk8U.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/CyAayV8v.js","/app/immutable/chunks/Cb1eroFO.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CVjN4vxe.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/DQT9c-_R.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dfbagr79.js","/app/immutable/chunks/BIqUw3gi.js","/app/immutable/chunks/WOicJa2k.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ah7LAYm4.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/WAk1in99.js","/app/immutable/chunks/Ck8ZjaJh.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DYFbONVh.js","/app/immutable/chunks/DvUv7DbT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/D24Lh2xV.js","/app/immutable/chunks/C3YfsJGu.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/C7NJtCoD.js","/app/immutable/chunks/BRX8YzX5.js"])))=>i.map(i=>d[i]);
2
- import{bo as b,_ as T}from"./yZ5s7S5S.js";import{g as f,Hb as a,dh as P,FI as S,xt as N,DU as R,u9 as q,pS as H,tK as W,Je as U}from"./WOicJa2k.js";import{x as I}from"./DYFbONVh.js";import{bb as D}from"./CyAayV8v.js";import{parseIntentLink as V}from"./DPODhnzy.js";import{n as y}from"./3cdteGtc.js";import"./B8o4lNgr.js";import"./D46WSk8U.js";import"./Cb1eroFO.js";import"./ChTqQfQN.js";import"./BIqUw3gi.js";import{I as j,q as C,H as L}from"./CWKAugar.js";import{dk as B}from"./D24Lh2xV.js";import{p as F,o as K,h as $}from"./BOBlxuhv.js";const p="assistant-content",z=a.createSelector(t=>{const r=F.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function J(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function G(t){a.dispatch(q(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?V(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!D(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=F.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=J(n,r.background);if(await G(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return x(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await T(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./0nqxMME2.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return x(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(B.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(j.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),E=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||E===void 0)&&a.dispatch(R(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function x(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await T(async()=>{const{openMessage:h}=await import("./WAk1in99.js");return{openMessage:h}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BR-wS1W8.js","/app/immutable/chunks/BeRTGLrw.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/D46WSk8U.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Dax20l9D.js","/app/immutable/chunks/Cb1eroFO.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CVjN4vxe.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/DQT9c-_R.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dfbagr79.js","/app/immutable/chunks/BIqUw3gi.js","/app/immutable/chunks/WOicJa2k.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ah7LAYm4.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/DE5Vt-mk.js","/app/immutable/chunks/Ck8ZjaJh.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/CenrrJuj.js","/app/immutable/chunks/DvUv7DbT.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/-1vWYJiy.js","/app/immutable/chunks/C3YfsJGu.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/y8su61xq.js","/app/immutable/chunks/CoJOpuAN.js"])))=>i.map(i=>d[i]);
2
+ import{bo as b,_ as x}from"./yZ5s7S5S.js";import{g as f,Hb as a,dh as P,FI as S,xt as N,DU as R,u9 as q,pS as H,tK as W,Je as U}from"./WOicJa2k.js";import{y as I}from"./CenrrJuj.js";import{bb as D}from"./Dax20l9D.js";import{parseIntentLink as V}from"./CtcF6bbr.js";import{n as y}from"./BeRTGLrw.js";import"./B8o4lNgr.js";import"./D46WSk8U.js";import"./Cb1eroFO.js";import"./ChTqQfQN.js";import"./BIqUw3gi.js";import{I as j,q as C,H as L}from"./CWKAugar.js";import{dk as B}from"./-1vWYJiy.js";import{p as F,o as K,h as $}from"./BDHBtQ3l.js";const p="assistant-content",z=a.createSelector(t=>{const r=F.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function J(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function G(t){a.dispatch(q(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(b.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?V(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!D(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=F.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=J(n,r.background);if(await G(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BR-wS1W8.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const h=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(h);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:h,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(b.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(h,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(N(l,e.resourceId)),Promise.resolve(B.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(b.ui_linkHandler_notFound_title(),{description:b.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const M=Object.entries(j.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),E=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!M&&(!r.background||E===void 0)&&a.dispatch(R(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(b.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:h}=await import("./DE5Vt-mk.js");return{openMessage:h}},__vite__mapDeps([25,26,18,3,17,19,20,13,5,8,2,11,27,28,7,4,6,9,10,12,14,29,30,31,22,32,15,33,34,35]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
@@ -1 +1 @@
1
- import{f as o}from"./Cc7p6my_.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{f as o}from"./BQY3g8uE.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1 +1 @@
1
- import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./yZ5s7S5S.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./Czo8fm8j.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./Be2VCczk.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./D46WSk8U.js";import{Hb as ot}from"./WOicJa2k.js";import{f as qe}from"./CyAayV8v.js";import{F as He,b8 as It,bj as Pt}from"./ah7LAYm4.js";import{i as Ue}from"./Da6QaYq0.js";import{dk as zt,ck as Nt}from"./D24Lh2xV.js";import{g as At}from"./C3YfsJGu.js";import{d as Vt}from"./BIqUw3gi.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./BPC4bZ2e.js";import{g as B,R as Ge,U as Je}from"./C4WAPshC.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);b=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,w)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),b=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),w=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=be(b()),o=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=b();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(we(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=be(b()),m=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||w()&&setTimeout(()=>{if(!t||!w())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return b()},set language(e="javascript"){b(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(bt,e=>{i(U)?e(wt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
1
+ import{t as Ze,bq as p,a_ as fe,by as Ke,bu as Y,bs as Ye,b as Qe,bo as M}from"./yZ5s7S5S.js";import{bs as et,bk as tt,a7 as Mt,ay as ye,aD as i,W as D,bn as nt,c9 as Ce,aA as v,a5 as Z,bS as $,bl as _e,bA as K,b_ as ge,bO as oe,aB as Q,cd as kt,ca as P,bH as F,bj as Lt,bV as te}from"./B8o4lNgr.js";import{b as St}from"./D2g8BuR1.js";import{ensureMonacoInitialized as Ne,initializeMonaco as je,monaco as Tt}from"./Czo8fm8j.js";import{defineMonacoThemes as Be,getActiveMonacoThemeName as we}from"./Be2VCczk.js";import{c as Et}from"./ChTqQfQN.js";import{l as Ae,k as Ft}from"./D46WSk8U.js";import{Hb as ot}from"./WOicJa2k.js";import{f as qe}from"./Dax20l9D.js";import{F as He,b8 as It,bj as Pt}from"./ah7LAYm4.js";import{i as Ue}from"./Da6QaYq0.js";import{dk as zt,ck as Nt}from"./-1vWYJiy.js";import{g as At}from"./C3YfsJGu.js";import{d as Vt}from"./BIqUw3gi.js";import{d as ne}from"./B0Z-1lwJ.js";import{g as Wt}from"./DkibMP99.js";import{g as B,R as Ge,U as Je}from"./C4WAPshC.js";const it=ot.createSelector(s=>s.agentFollow.isFollowing),$t=ot.createSelector(s=>s.agentFollow.agentColor);var Dt=Q('<div class="absolute top-2 right-2 flex items-center gap-2 px-2 py-1 rounded-md z-50 svelte-440ct6"><div></div> <span class="text-xs svelte-440ct6"> </span></div>');function rt(s,a){if(new.target)return Ze({component:rt,...s});et(a,!0);const f=()=>Y(ie,"$isFollowing$",C),k=()=>Y(z,"$agentColor$",C),[C,N]=Ye(),ie=it(),z=$t();let L=p(a,"content",15),l=p(a,"onContentChange",7),A=p(a,"isActive",7,!1),g=null,b=null,me="";tt(()=>(window.addEventListener("agent-follow-animation",O),()=>{window.removeEventListener("agent-follow-animation",O),R()}));function O(c){if(!A()||!f())return;const w=c.detail;if(!w||typeof w.content!="string")return;const{content:T,isAddition:E,speed:I=30}=w;R(),E?he(T,I):pe(T,I)}function R(){g&&(g.abort(),g=null),b=null}async function he(c,w){g=new AbortController;const T=g.signal,E=c.split("");b=(async()=>{for(let I=0;I<E.length&&!T.aborted;I++){me+=E[I],L(L()+E[I]),l()(L());const V=w+(Math.random()*10-5);await new Promise(H=>setTimeout(H,V))}})(),await b}async function pe(c,w){g=new AbortController;const T=g.signal,E=L().indexOf(c);if(E===-1)return;const I=L().slice(0,E),V=L().slice(E+c.length);b=(async()=>{for(let H=c.length;H>0&&!T.aborted;H--){const xe=c.slice(0,H-1);L(I+xe+V),l()(L());const Me=w*.7+(Math.random()*5-2.5);await new Promise(ke=>setTimeout(ke,Me))}})(),await b}let re=Ce(()=>b!==null),x=Ce(()=>i(re)?"animate-blink":"");var j={get content(){return L()},set content(c){L(c),v()},get onContentChange(){return l()},set onContentChange(c){l(c),v()},get isActive(){return A()},set isActive(c=!1){A(c),v()},$set:Ke,$on:(c,w)=>Qe(a,c,w)},ee=Mt(),ae=ye(ee);{var q=c=>{var w=Dt(),T=Z(w),E=$(T,2),I=_e(E,!0);K(w),ge(V=>{Ae(w,`background: ${k()?.start??""}20; border: 1px solid ${k()?.start??""}40;`),Ft(T,1,`w-2 h-2 rounded-full ${i(x)??""}`,"svelte-440ct6"),Ae(T,`background: ${k()?.start??""};`),Ae(E,`color: ${k()?.start??""};`),oe(I,V)},[()=>M.editor_typingAnimation_agentTyping_label()]),D(c,w)};fe(ae,c=>{i(re)&&f()&&c(q)})}D(s,ee);var S=nt(j);return N(),S}function vn(s){const a=[];for(const f of s){let k=f.newStart;for(const C of f.lines)C.startsWith("+")?(a.push({line:k,type:"added"}),k++):C.startsWith("-")||C.startsWith(" ")&&k++}return a}function Ot(s,a){return a.map(f=>{const k=Rt(f.type),C=jt(f.type);return{range:new s.Range(f.line,1,f.line,1),options:{isWholeLine:!1,linesDecorationsClassName:`line-change-indicator line-change-${f.type}`,overviewRuler:{color:k,position:s.editor.OverviewRulerLane.Left},glyphMarginHoverMessage:{value:C}}}})}function Rt(s){switch(s){case"added":return"#22c55e";case"modified":return"#3b82f6";case"deleted":return"#ef4444";default:return"#6b7280"}}function jt(s){switch(s){case"added":return M.editor_lineChanges_added_tooltip();case"modified":return M.editor_lineChanges_modified_tooltip();case"deleted":return M.editor_lineChanges_deleted_tooltip();default:return M.editor_lineChanges_changed_tooltip()}}const Bt=[".d.mts",".d.cts",".d.ts",".mts",".cts",".tsx",".ts",".jsx",".mjs",".cjs",".js",".json"];function at(s){return s.startsWith("/")?s:`/${s}`}function qt(s){return s.replace(/[^a-zA-Z0-9_-]/g,"_")}function Ht(s,a){const f=at(s),k=f.toLowerCase(),C=`.__editor_${qt(a)}`,N=Bt.find(L=>k.endsWith(L));if(N)return`${f.slice(0,-N.length)}${C}${f.slice(-N.length)}`;const ie=f.lastIndexOf("/"),z=f.lastIndexOf(".");return z>ie?`${f.slice(0,z)}${C}${f.slice(z)}`:`${f}${C}`}function Ut(s){return at(s)}var Xe=Q("<!> ",1),Gt=Q('<div class="mt-4 flex items-center justify-center gap-2"><!> <!></div>'),Jt=Q('<div class="content-too-large svelte-2n2z1y"><div class="text-center space-y-4 max-w-md"><div class="text-subtle"><svg class="w-16 h-16 mx-auto mb-4 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg> <h3 class="text-lg font-medium mb-2"> </h3> <p class="text-sm"> </p> <!></div></div></div>'),Xt=Q('<div class="placeholder-overlay svelte-2n2z1y"><span class="text-subtle text-sm italic"> </span></div>'),Zt=Q('<!> <div class="native-scrollbars w-full h-full"></div> <!>',1),Kt=Q('<div class="relative h-full w-full"><!></div>');function Yt(s,a){if(new.target)return Ze({component:Yt,...s});et(a,!0);const f=()=>Y(st,"$workspaceById",z),k=()=>Y(ft,"$isFollowing$",z),C=()=>Y(I,"$isDarkTheme",z),N=()=>Y(E,"$codeFontFamilyCSS",z),ie=()=>Y(lt,"$isWorkspaceHostLocal$",z),[z,L]=Ye(),l=Et("CodeEditor"),A=500*1024;let g=p(a,"value",15,""),b=p(a,"language",7,"javascript"),me=p(a,"theme",7,"light"),O=p(a,"readOnly",7,!1),R=p(a,"lineNumbers",7,!0),he=p(a,"highlightActiveLine",7,!0),pe=p(a,"diffMode",7,!1),re=p(a,"originalValue",7,""),x=p(a,"fileName",7,""),j=p(a,"lineWrapping",7,!0),ee=p(a,"jumpTo",7,void 0),ae=p(a,"lineChanges",23,()=>[]),q=p(a,"workspaceId",7),S=p(a,"filePath",7),c=p(a,"placeholder",7),w=p(a,"isPanelFocused",7,!0),T=p(a,"externalContentVersion",7,0);const E=At(),I=Vt(),V=Wt()?.workspaceId,H=typeof navigator<"u"&&navigator.platform?.startsWith("Win"),xe=typeof navigator<"u"&&(navigator.userAgentData?.platform==="macOS"||/Mac|iPhone|iPad|iPod/.test(navigator.userAgent)),Me=H?M.layout_panelTabBar_fileManagerExplorer_label():xe?M.layout_panelTabBar_fileManagerFinder_label():M.layout_panelTabBar_fileManagerGeneric_label(),ke=Ce(()=>q()??V??void 0),Le=kt(q()??V??"");P(()=>{Le.set(q()??V??"")});const st=zt(Le),lt=Nt(Le);function Ve(){return f()}let U=te(!1),ve=te(0);function ct(e){return e<1024?M.editor_codeEditor_fileSizeBytes_label({size:e}):e<1024*1024?M.editor_codeEditor_fileSizeKb_label({size:(e/1024).toFixed(1)}):M.editor_codeEditor_fileSizeMb_label({size:(e/(1024*1024)).toFixed(1)})}async function dt(){if(!S()){l.error("Cannot open file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot open file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("vscode:openFile",{file:e})}catch(n){l.error("Failed to open file in VS Code:",n)}}async function ut(){if(!S()){l.error("Cannot reveal file: missing file path");return}let e;if(S().startsWith("/"))e=S();else{const n=Ve(),o=n?.worktreePath||n?.repositoryPath;if(!o){l.error("Cannot reveal file: missing workspace path for relative file path");return}e=`${o}/${S()}`}try{await Ue("shell:showItemInFolder",{path:e})}catch(n){l.error("Failed to reveal file:",n)}}let d=te(void 0),t=null,G=null,J=te(!1);const ft=it();let Se=Ce(k),We=te(0);const gt=`${Date.now()}-${Math.random().toString(36).slice(2)}`;let se=[],$e;function le(e){if(typeof e=="string")return e;if(e==null)return"";try{return JSON.stringify(e,null,2)}catch{return String(e)}}function mt(e){const n=Je.file(Ut(e));return B.getModel(n)?Je.file(Ht(e,gt)):n}function Te(e,n){De();const o=S()||x();return o?(G=B.createModel(e,n,mt(o)),G):(G=B.createModel(e,n),G)}function De(){G&&(G.dispose(),G=null)}function Oe(){if(t){try{t.dispose()}catch{}t=null,F(J,!1)}De()}let Ee=te(!1);P(()=>{const n=le(g()).length;n<=A?i(U)&&(l.debug("Content size now acceptable, resetting contentTooLarge",{fileName:x(),size:n,limit:A}),F(U,!1),F(ve,0),F(Ee,!0)):i(U)||(l.warn("Content too large for Monaco editor",{fileName:x(),size:n,limit:A}),F(U,!0),F(ve,n,!0),t&&Oe())}),P(()=>{i(Ee)&&i(d)&&!t&&!i(U)&&(F(Ee,!1),(async()=>{try{const e=le(g());if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}Be();const n=be(b()),o=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor reinitialization, skipping");return}const u=Te(e,n);t=B.create(i(d),{model:u,theme:o,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(m=>{const y=m.selection;if(!y.isEmpty()&&t?.hasTextFocus()){const r=t?.getModel()?.getValueInRange(y)||"";r&&ne("editor:selection-change",{text:r,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})}),l.debug("Editor re-initialized after contentTooLarge was cleared")}catch(e){l.error("Failed to initialize editor after contentTooLarge cleared:",e)}})())}),P(()=>{const e=le(g()),n=T(),o=n!==i(We);if(t){if(t.getValue()!==e&&(!i(Se)||o)){const m=t.getPosition();t.setValue(e),m&&t.setPosition(m)}o&&t.getValue()===e&&F(We,n,!0)}}),P(()=>{const e=ae();if(!t||!e||e.length===0){t&&se.length>0&&(se=t.deltaDecorations(se,[]));return}const n=Ot(Tt,e);se=t.deltaDecorations(se,n)}),P(()=>{if(!t||!i(Se))return;const e=n=>{const o=n.detail;if(!o||typeof o.content!="string")return;const{content:u,isAddition:m,lineNumber:y,column:_}=o;if(t)if(m){const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r){const h=new Ge(r.lineNumber,r.column,r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:u,forceMoveMarkers:!0}]);const W={lineNumber:r.lineNumber,column:r.column+u.length};t.setPosition(W),t.revealPositionInCenterIfOutsideViewport(W,0)}}else{const r=y&&_?{lineNumber:y,column:_}:t.getPosition();if(r&&u.length>0){const h=new Ge(r.lineNumber,Math.max(1,r.column-u.length),r.lineNumber,r.column);t.executeEdits("agent-typing",[{range:h,text:"",forceMoveMarkers:!0}]),t.revealPositionInCenterIfOutsideViewport(r,0)}}};return window.addEventListener("agent-follow-animation",e),()=>{window.removeEventListener("agent-follow-animation",e)}}),P(()=>{const e=b();if(t&&e){const n=be(e),o=t.getModel();o&&B.setModelLanguage(o,n)}}),P(()=>{const e=j();t&&t.updateOptions({wordWrap:e?"on":"off"})}),P(()=>{const e=N();t&&t.updateOptions({fontFamily:e})}),P(()=>{const e=C();t&&B.setTheme(we(e))});function be(e){return{js:"javascript",ts:"typescript",jsx:"javascript",tsx:"typescript",py:"python",rs:"rust",html:"html",css:"css",scss:"scss",less:"less",json:"json",md:"markdown",yaml:"yaml",yml:"yaml",xml:"xml",cpp:"cpp",c:"c",java:"java",sh:"shell",bash:"shell",zsh:"shell",sql:"sql",svelte:"svelte",vue:"html",go:"go",rb:"ruby",php:"php",swift:"swift",kt:"kotlin",scala:"scala",r:"r",lua:"lua",dockerfile:"dockerfile",toml:"ini",ini:"ini",graphql:"graphql",gql:"graphql"}[e]||e}tt(async()=>{if(!i(d))return;try{const o=le(g());if(o.length>A){l.warn("Content too large for Monaco editor",{fileName:x(),size:o.length,limit:A}),F(U,!0),F(ve,o.length,!0);return}if(await Ne(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}if(await je(),!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}Be();const u=be(b()),m=we(C());if(!i(d)||!i(d).parentNode||!document.body.contains(i(d))){l.debug("Container removed from DOM before editor creation, skipping");return}const y=Te(o,u);t=B.create(i(d),{model:y,theme:m,readOnly:O(),lineNumbers:R()?"on":"off",lineNumbersMinChars:5,minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",overviewRulerLanes:0,scrollBeyondLastLine:!1,fontSize:13,fontFamily:N(),fontWeight:"500",fontLigatures:!0,guides:{indentation:!1},scrollbar:{vertical:"auto",horizontal:"auto",verticalScrollbarSize:10,horizontalScrollbarSize:10}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(_=>{const r=_.selection;if(!r.isEmpty()&&t?.hasTextFocus()){const W=t?.getModel()?.getValueInRange(r)||"";W&&ne("editor:selection-change",{text:W,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(o){l.error("[CodeEditor] Failed to create Monaco editor:",o);try{await Ne();const u=le(g()),m=Te(u,be(b()));t=B.create(i(d),{model:m,theme:we(C()),readOnly:O(),lineNumbers:R()?"on":"off",minimap:{enabled:!1},automaticLayout:!0,wordWrap:j()?"on":"off",fontFamily:N(),guides:{indentation:!1}}),F(J,!0),t?.onDidChangeModelContent(()=>{g(t?.getValue()||"")}),t?.onDidChangeCursorSelection(y=>{const _=y.selection;if(!_.isEmpty()&&t?.hasTextFocus()){const h=t?.getModel()?.getValueInRange(_)||"";h&&ne("editor:selection-change",{text:h,file:x(),language:b(),source:"monaco"})}else t?.hasTextFocus()&&ne("editor:selection-change",{text:"",file:x(),language:b(),source:"monaco"})})}catch(u){l.error("[CodeEditor] Failed to create fallback editor:",u)}}const e=o=>{if(t){const u=t.getScrollTop();o.detail.callback(u)}},n=o=>{o.detail.filePath&&o.detail.filePath!==x()||t&&typeof o.detail.scrollPosition=="number"&&requestAnimationFrame(()=>{t&&(t.setScrollTop(o.detail.scrollPosition),l.debug("[CodeEditor] Restored scroll position",{fileName:x(),scrollPosition:o.detail.scrollPosition}))})};window.addEventListener("file:save-scroll-position",e),window.addEventListener("file:restore-scroll-position",n),$e=()=>{window.removeEventListener("file:save-scroll-position",e),window.removeEventListener("file:restore-scroll-position",n)}});function ht(){if(t)try{return t.focus(),!0}catch(e){l.debug("[CodeEditor] Editor not ready for focus:",e)}return!1}function pt(e){if(!t||!t.hasTextFocus())return!1;const n={undo:"undo",redo:"redo",copy:"editor.action.clipboardCopyAction","select-all":"editor.action.selectAll"}[e];return t.trigger("shortcut-preferences",n,null),!0}Lt(()=>{$e?.(),Oe()}),P(()=>{const e=ee(),n=i(J);if(!t||!e||!n)return;const o=Math.max(1,Math.floor(e.line??1)),u=Math.max(1,Math.floor(e.column??1)),y=t.getModel?.()?.getLineCount?.()??o,r={lineNumber:Math.min(o,y),column:u};try{t.setPosition(r),t.revealPositionInCenterIfOutsideViewport(r,0),t.focus()}catch{}}),P(()=>{if(!i(J)||!t)return;const n=()=>{t?.hasTextFocus()&&t.trigger("keyboard","editor.action.revealDefinition",{})};return window.addEventListener("editor:go-to-definition",n),()=>{window.removeEventListener("editor:go-to-definition",n)}}),P(()=>{if(!i(J)||!t)return;const n=o=>{const u=o.detail;!u?.line||!t||w()&&setTimeout(()=>{if(!t||!w())return;const m=Math.max(1,Math.floor(u.line)),_=t.getModel?.()?.getLineCount?.()??m,h={lineNumber:Math.min(m,_),column:1};try{t.focus(),t.setPosition(h),t.revealPositionInCenterIfOutsideViewport(h,0)}catch{}},100)};return window.addEventListener("workspace:go-to-line",n),()=>{window.removeEventListener("workspace:go-to-line",n)}});var vt={focus:ht,runShortcut:pt,get value(){return g()},set value(e=""){g(e),v()},get language(){return b()},set language(e="javascript"){b(e),v()},get theme(){return me()},set theme(e="light"){me(e),v()},get readOnly(){return O()},set readOnly(e=!1){O(e),v()},get lineNumbers(){return R()},set lineNumbers(e=!0){R(e),v()},get highlightActiveLine(){return he()},set highlightActiveLine(e=!0){he(e),v()},get diffMode(){return pe()},set diffMode(e=!1){pe(e),v()},get originalValue(){return re()},set originalValue(e=""){re(e),v()},get fileName(){return x()},set fileName(e=""){x(e),v()},get lineWrapping(){return j()},set lineWrapping(e=!0){j(e),v()},get jumpTo(){return ee()},set jumpTo(e=void 0){ee(e),v()},get lineChanges(){return ae()},set lineChanges(e=[]){ae(e),v()},get workspaceId(){return q()},set workspaceId(e){q(e),v()},get filePath(){return S()},set filePath(e){S(e),v()},get placeholder(){return c()},set placeholder(e){c(e),v()},get isPanelFocused(){return w()},set isPanelFocused(e=!0){w(e),v()},get externalContentVersion(){return T()},set externalContentVersion(e=0){T(e),v()},$set:Ke,$on:(e,n)=>Qe(a,e,n)},Fe=Kt(),bt=Z(Fe);{var wt=e=>{var n=Jt(),o=Z(n),u=Z(o),m=$(Z(u),2),y=_e(m,!0),_=$(m,2),r=_e(_,!0),h=$(_,2);{var W=X=>{var ce=Gt(),Re=Z(ce);qe(Re,{variant:"secondary",size:"sm",onclick:dt,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return It},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.editor_codeEditor_openInVsCode_label()]),D(Ie,de)},$$slots:{default:!0}});var Ct=$(Re,2);qe(Ct,{variant:"ghost",size:"sm",onclick:ut,children:(Ie,xt)=>{var de=Xe(),ue=ye(de);He(ue,{get icon(){return Pt},class:"mr-2"});var Pe=$(ue);ge(ze=>oe(Pe,` ${ze??""}`),[()=>M.layout_panelTabBar_revealIn_label({fileManager:Me})]),D(Ie,de)},$$slots:{default:!0}}),K(ce),D(X,ce)};fe(h,X=>{i(ke)&&S()&&ie()&&X(W)})}K(u),K(o),K(n),ge((X,ce)=>{oe(y,X),oe(r,ce)},[()=>M.editor_codeEditor_fileTooLarge_title(),()=>M.editor_codeEditor_fileTooLarge_description({size:ct(i(ve))})]),D(e,n)},yt=e=>{var n=Zt(),o=ye(n);{var u=r=>{rt(r,{onContentChange:h=>g(h),isActive:!0,get content(){return g()},set content(h){g(h)}})};fe(o,r=>{i(Se)&&r(u)})}var m=$(o,2);St(m,r=>F(d,r),()=>i(d));var y=$(m,2);{var _=r=>{var h=Xt(),W=Z(h),X=_e(W,!0);K(h),ge(()=>oe(X,c())),D(r,h)};fe(y,r=>{c()&&!g()&&r(_)})}D(e,n)};fe(bt,e=>{i(U)?e(wt):e(yt,-1)})}K(Fe),D(s,Fe);var _t=nt(vt);return L(),_t}export{Yt as C,vn as p};
@@ -1 +1 @@
1
- import{br as H}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./AFSjjw3j.js";import{F as g,o as b,p,H as G}from"./CWKAugar.js";import{Hb as c}from"./WOicJa2k.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./G0_EiVNo.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=b.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=G.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=b.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=b.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const P=new Map;function ae(d,m){P.set(d,m)}function re(d){P.delete(d)}function oe(d){return P.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as H}from"./B8o4lNgr.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as _}from"./Do_TqlrK.js";import{F as g,o as b,p,H as G}from"./CWKAugar.js";import{Hb as c}from"./WOicJa2k.js";import{y as J,E as S,u as Q,L as Z,F as V}from"./G0_EiVNo.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":E(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":C(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=b.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function E(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function C(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=G.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function F(e,n){const t=b.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function O(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=b.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function L(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function B(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!J(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=O(d(),l);return o&&e.preventDefault(),o}if(i){const o=F(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=L(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||_(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:B,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const P=new Map;function ae(d,m){P.set(d,m)}function re(d){P.delete(d)}function oe(d){return P.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1,4 +1,4 @@
1
- var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as C,a_ as M,bo as P,by as un,bs as On,b as hn,bu as je}from"./yZ5s7S5S.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as T,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as X,aA as x,ay as ne,bS as S,bl as de,bO as K,aB as N,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Nt,b$ as ft,bf as or}from"./B8o4lNgr.js";import{k as En,s as Ve,h as Pt,i as Hn,I as ir,a as ar,l as lr}from"./D46WSk8U.js";import{H as cn,E as Ws,c as Bs,t as Rt}from"./Dfbagr79.js";import{b as on}from"./D2g8BuR1.js";import{Hb as Me,eC as Vs,et as Ks,eu as js,o3 as qs,mU as Vt,mY as cr,mX as In,ew as Gs,tY as Qs,tZ as Ys,t$ as Xs,Fo as Zs,Hg as Js,qB as eo,eB as to}from"./WOicJa2k.js";import{c as no}from"./W-gkWrYK.js";import{F as Te,a0 as ro,a6 as An,at as dr,au as ur,bM as so,aL as oo,c6 as hr,bT as gr,ci as fr}from"./ah7LAYm4.js";import{dk as io,bc as ao,L as lo,aB as mr,h as co}from"./D24Lh2xV.js";import{L as pr}from"./zFGI_9p9.js";import{C as an}from"./DypB-Dwi.js";import{a$ as kr,bE as uo,bG as ho}from"./CKXP5Dfl.js";import{q as $e,d as go,g as fo}from"./f3mINTV_.js";import"./Cb1eroFO.js";import{f as ke}from"./CyAayV8v.js";import{e as mo}from"./CJB0AMOQ.js";import{T as Pr}from"./BVnCu4HK.js";import{g as Tn}from"./BPC4bZ2e.js";import{C as po}from"./ClQcbOPg.js";import{C as vo}from"./3cdteGtc.js";import{s as vr}from"./BKBZBubB.js";import{w as Dt}from"./9ZGNcJrk.js";import{P as _o,k as _r}from"./h-HGzFkJ.js";import{g as wo}from"./CUA_VnXT.js";import{a2 as bo,S as yo}from"./C0yADNxK.js";import{ar as So}from"./CojjevwO.js";import{s as wr}from"./CwSA3Dwr.js";import{Z as Co,Y as xo,_ as ko}from"./Ozne-tFy.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Ne=oe.dataset.lineIndex;if(Ne==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Ne,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=N('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=N("<!> <!>",1),To=N('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),No=N('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Tn()?.workspaceId??void 0;let b=C(r,"change",7),y=C(r,"foldUnchanged",7,!0),A=C(r,"allowHeadReads",7,!0),F=C(r,"canReadHeadFiles",7),G=C(r,"lineWrapping",7,!1),h=C(r,"scrollToLine",7),oe=C(r,"isAggregate",7,!1),Ne=C(r,"showScrollHint",7,!1),ue=C(r,"onStageHunk",7),Q=C(r,"onUnstageHunk",7),at=C(r,"onOpenCommit",7),pt=C(r,"virtualizer",7),vt=C(r,"gitRootId",7,void 0),_t=C(r,"gitRootPath",7,void 0);const ve=kr();let Re=X(!1),ye=X(!1),Fe=X(!1),Ue=X(0),qe=X(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Ye}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let St;return Ke==="committed"?St=an.Committed:rt?St=an.Staged:St=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:St,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Ye!==void 0?{oldContent:re??"",newContent:Ye??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Ne()},set showScrollHint(v=!1){Ne(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=No();let wt;var It=T(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Ye=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Ye)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=S(Qe,2);{var re=Ye=>{var rt=Eo(),Ke=T(rt),At=T(Ke);Te(At,{get icon(){return ro},class:"w-3 h-3"});var zt=S(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Ye,rt)};M(yt,Ye=>{Ne()&&e(Fe)&&Ye(re)})}w(v,_e)},bt=v=>{var _e=To(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
1
+ var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as C,a_ as M,bo as P,by as un,bs as On,b as hn,bu as je}from"./yZ5s7S5S.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as T,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as X,aA as x,ay as ne,bS as S,bl as de,bO as K,aB as N,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Nt,b$ as ft,bf as or}from"./B8o4lNgr.js";import{k as En,s as Ve,h as Pt,i as Hn,I as ir,a as ar,l as lr}from"./D46WSk8U.js";import{H as cn,E as Ws,c as Bs,t as Rt}from"./Dfbagr79.js";import{b as on}from"./D2g8BuR1.js";import{Hb as Me,eC as Vs,et as Ks,eu as js,o3 as qs,mU as Vt,mY as cr,mX as In,ew as Gs,tY as Qs,tZ as Ys,t$ as Xs,Fo as Zs,Hg as Js,qB as eo,eB as to}from"./WOicJa2k.js";import{c as no}from"./IJYL54f1.js";import{F as Te,a0 as ro,a6 as An,at as dr,au as ur,bM as so,aL as oo,c6 as hr,bT as gr,ci as fr}from"./ah7LAYm4.js";import{dk as io,bc as ao,L as lo,aB as mr,h as co}from"./-1vWYJiy.js";import{L as pr}from"./zFGI_9p9.js";import{C as an}from"./DypB-Dwi.js";import{a$ as kr,bE as uo,bG as ho}from"./w0VuoJIl.js";import{q as $e,d as go,g as fo}from"./Cw1gOOP4.js";import"./Cb1eroFO.js";import{f as ke}from"./Dax20l9D.js";import{e as mo}from"./CC4WmnL6.js";import{T as Pr}from"./BL-4c5eP.js";import{g as Tn}from"./DkibMP99.js";import{C as po}from"./BH5cuIQi.js";import{C as vo}from"./BeRTGLrw.js";import{s as vr}from"./CZE4HQ01.js";import{w as Dt}from"./BvUM18CV.js";import{P as _o,k as _r}from"./tkZmaR4M.js";import{g as wo}from"./CUA_VnXT.js";import{a2 as bo,S as yo}from"./B-OGKYEx.js";import{ar as So}from"./BVJeg9VF.js";import{s as wr}from"./CM8AwG-k.js";import{Z as Co,Y as xo,_ as ko}from"./Drgj5uDM.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Ne=oe.dataset.lineIndex;if(Ne==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Ne,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=N('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=N("<!> <!>",1),To=N('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),No=N('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Tn()?.workspaceId??void 0;let b=C(r,"change",7),y=C(r,"foldUnchanged",7,!0),A=C(r,"allowHeadReads",7,!0),F=C(r,"canReadHeadFiles",7),G=C(r,"lineWrapping",7,!1),h=C(r,"scrollToLine",7),oe=C(r,"isAggregate",7,!1),Ne=C(r,"showScrollHint",7,!1),ue=C(r,"onStageHunk",7),Q=C(r,"onUnstageHunk",7),at=C(r,"onOpenCommit",7),pt=C(r,"virtualizer",7),vt=C(r,"gitRootId",7,void 0),_t=C(r,"gitRootPath",7,void 0);const ve=kr();let Re=X(!1),ye=X(!1),Fe=X(!1),Ue=X(0),qe=X(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Ye}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let St;return Ke==="committed"?St=an.Committed:rt?St=an.Staged:St=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:St,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Ye!==void 0?{oldContent:re??"",newContent:Ye??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Ne()},set showScrollHint(v=!1){Ne(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=No();let wt;var It=T(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Ye=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Ye)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=S(Qe,2);{var re=Ye=>{var rt=Eo(),Ke=T(rt),At=T(Ke);Te(At,{get icon(){return ro},class:"w-3 h-3"});var zt=S(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Ye,rt)};M(yt,Ye=>{Ne()&&e(Fe)&&Ye(re)})}w(v,_e)},bt=v=>{var _e=To(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
2
2
  `):[],a=r?r.split(`
3
3
  `):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const y=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:y,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(yr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=yr(h);if(!c.has(oe)){if(h.type==="Context"){const Ne=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Ne?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Ne=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Ne-ue});const b=new Set([...f.stages,...r.stages]),y=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:y,headLines:F-y,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,y,A)=>{let F=y;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const y of b.lines)y.type==="Context"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),r.push(y.content),l.push(y.content),a++,c++):y.type==="Deletion"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),r.push(y.content),a++):y.type==="Addition"&&(y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),l.push(y.content),c++)}return{oldContent:r.join(`
4
4
  `),newContent:l.join(`
@@ -1 +1 @@
1
- import{D as C}from"./CKXP5Dfl.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./yZ5s7S5S.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./B8o4lNgr.js";import{D as ue}from"./G0_EiVNo.js";import{s as D}from"./D46WSk8U.js";import{b as me}from"./Cc7p6my_.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};
1
+ import{D as C}from"./w0VuoJIl.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./yZ5s7S5S.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./B8o4lNgr.js";import{D as ue}from"./G0_EiVNo.js";import{s as D}from"./D46WSk8U.js";import{b as me}from"./BQY3g8uE.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};