@intent-hq/web 2.343.1 → 2.344.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 (242) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.BtTQsuHZ.css +1 -0
  3. package/web/app/immutable/assets/DiagramPresentation.C2GLYoBN.css +1 -0
  4. package/web/app/immutable/chunks/{9kqz7dDm.js → -IITeht6.js} +1 -1
  5. package/web/app/immutable/chunks/{Ae-1QeEg.js → 2XZtwznc.js} +4 -4
  6. package/web/app/immutable/chunks/{iGTwwZkZ.js → 4GiF-64P.js} +1 -1
  7. package/web/app/immutable/chunks/7V9sfwkG.js +1 -0
  8. package/web/app/immutable/chunks/{DnouH0RQ.js → 9cPLPH_O.js} +1 -1
  9. package/web/app/immutable/chunks/{uXJ_E75I.js → B1Hn0_Hu.js} +1 -1
  10. package/web/app/immutable/chunks/{D_n6c_yZ.js → B461Cu-8.js} +1 -1
  11. package/web/app/immutable/chunks/{DyhEd_D5.js → B4yyNCE8.js} +1 -1
  12. package/web/app/immutable/chunks/{DFkJzID4.js → B5lHtLmV.js} +3 -3
  13. package/web/app/immutable/chunks/{BWar5Ve4.js → B7_gjxTl.js} +1 -1
  14. package/web/app/immutable/chunks/{BIGnKucK.js → B9dU3-fa.js} +1 -1
  15. package/web/app/immutable/chunks/{CJ557C-o.js → BAR7XkP3.js} +3 -3
  16. package/web/app/immutable/chunks/{BSJHYrig.js → BBC8ZwBc.js} +1 -1
  17. package/web/app/immutable/chunks/{CsjdKc-0.js → BIG4edn9.js} +1 -1
  18. package/web/app/immutable/chunks/{kIGC16c9.js → BIY2S7K4.js} +1 -1
  19. package/web/app/immutable/chunks/{CgdsufvB.js → BLHhhsG2.js} +1 -1
  20. package/web/app/immutable/chunks/{BOTuR8YM.js → BM1KP-FJ.js} +1 -1
  21. package/web/app/immutable/chunks/{D58P1mNO.js → BMs7t3_m.js} +1 -1
  22. package/web/app/immutable/chunks/{D0TlsaAe.js → BOa-AN22.js} +1 -1
  23. package/web/app/immutable/chunks/{BXNFvqQr.js → BPk8wgKn.js} +3 -3
  24. package/web/app/immutable/chunks/{Dogvf-Iu.js → BQAjCr1w.js} +1 -1
  25. package/web/app/immutable/chunks/{C4omy0Us.js → BRhVB6Sv.js} +1 -1
  26. package/web/app/immutable/chunks/{BytoSt_Z.js → BSo5IXuX.js} +1 -1
  27. package/web/app/immutable/chunks/{BAyUfXYZ.js → BUUYjiKy.js} +1 -1
  28. package/web/app/immutable/chunks/{wiuyjoXz.js → BUY1W-f0.js} +1 -1
  29. package/web/app/immutable/chunks/{DbnF6Yok.js → BXbF11Gp.js} +1 -1
  30. package/web/app/immutable/chunks/{DWcJHqWX.js → BYRfWsRg.js} +1 -1
  31. package/web/app/immutable/chunks/{COjSVIHG.js → BYg2F-3D.js} +1 -1
  32. package/web/app/immutable/chunks/{BXXxFrPj.js → BZm5iyKH.js} +1 -1
  33. package/web/app/immutable/chunks/{CQLYGyEz.js → B_frQYKx.js} +1 -1
  34. package/web/app/immutable/chunks/{Bdd_Up9A.js → BdHmsKvO.js} +1 -1
  35. package/web/app/immutable/chunks/BdNiI0PS.js +344 -0
  36. package/web/app/immutable/chunks/{G8V-Z8rX.js → BdUSoBxL.js} +2 -2
  37. package/web/app/immutable/chunks/{juKvR8YJ.js → Bev5K0J8.js} +4 -4
  38. package/web/app/immutable/chunks/{CrUW7uHI.js → BgN4cuBh.js} +1 -1
  39. package/web/app/immutable/chunks/{BfIFD0ql.js → BgzyvwGo.js} +1 -1
  40. package/web/app/immutable/chunks/{atiG7mlf.js → BhzRZYY1.js} +2 -2
  41. package/web/app/immutable/chunks/{BgEFdEVh.js → BjcX_fOv.js} +1 -1
  42. package/web/app/immutable/chunks/{B70m4__L.js → BjnZ1Xf3.js} +2 -2
  43. package/web/app/immutable/chunks/{C1fHwcnr.js → Bk2hJ8Ly.js} +1 -1
  44. package/web/app/immutable/chunks/{Dp7jUSi9.js → BkUAKnVY.js} +1 -1
  45. package/web/app/immutable/chunks/{BGvipfx2.js → BmB6-2Ft.js} +1 -1
  46. package/web/app/immutable/chunks/{BSDp34Kf.js → BmT6wRR1.js} +1 -1
  47. package/web/app/immutable/chunks/{BaEEaJBP.js → BnZrTj7m.js} +1 -1
  48. package/web/app/immutable/chunks/{DohG5a1a.js → BnjfAdW_.js} +1 -1
  49. package/web/app/immutable/chunks/{I0uVE7V8.js → BnrnoFjd.js} +1 -1
  50. package/web/app/immutable/chunks/{_wUGU0fc.js → Bo4mc4_O.js} +1 -1
  51. package/web/app/immutable/chunks/{Ptn6pOdb.js → BpIeTy9w.js} +1 -1
  52. package/web/app/immutable/chunks/{DoNhrjWd.js → Br0dSiCW.js} +1 -1
  53. package/web/app/immutable/chunks/{DYLHdssA.js → BrysY2Ec.js} +1 -1
  54. package/web/app/immutable/chunks/{BayXe-e8.js → BtBKKn81.js} +1 -1
  55. package/web/app/immutable/chunks/{DMte7IXf.js → BuFMu57Q.js} +1 -1
  56. package/web/app/immutable/chunks/{BsjKNm-k.js → Bv5I7YDM.js} +1 -1
  57. package/web/app/immutable/chunks/{DM_Dhcp5.js → BvSNOyzW.js} +2 -2
  58. package/web/app/immutable/chunks/{OrocR3hK.js → BvrMTALy.js} +1 -1
  59. package/web/app/immutable/chunks/{BznnhLs6.js → BwScowY6.js} +1 -1
  60. package/web/app/immutable/chunks/{Dlo7xxGg.js → By0eqGj-.js} +1 -1
  61. package/web/app/immutable/chunks/{DuHksFog.js → C-s9_soQ.js} +1 -1
  62. package/web/app/immutable/chunks/{AzBoScJz.js → C46XexX0.js} +1 -1
  63. package/web/app/immutable/chunks/{CHylN0y-.js → C4Jo6GXP.js} +1 -1
  64. package/web/app/immutable/chunks/{Dv_vjHi2.js → C59ujSMF.js} +1 -1
  65. package/web/app/immutable/chunks/{C-3x67fn.js → C62A1TLT.js} +2 -2
  66. package/web/app/immutable/chunks/{BIjcjB3s.js → C8b2UIVX.js} +1 -1
  67. package/web/app/immutable/chunks/{BoX75a7M.js → C91dOInA.js} +1 -1
  68. package/web/app/immutable/chunks/{BIqsMOOo.js → C9gix5Ke.js} +1 -1
  69. package/web/app/immutable/chunks/{N8Bwwvnf.js → CClqWu60.js} +1 -1
  70. package/web/app/immutable/chunks/{CfJdaoIE.js → CDFRnJ8k.js} +1 -1
  71. package/web/app/immutable/chunks/{CXHfGIt6.js → CDRWYo_y.js} +1 -1
  72. package/web/app/immutable/chunks/{BmmYJ5hU.js → CGXahRhf.js} +1 -1
  73. package/web/app/immutable/chunks/{C2Rkb1O5.js → CHFUz5Rr.js} +1 -1
  74. package/web/app/immutable/chunks/{CC401ReW.js → CHukbU1Q.js} +1 -1
  75. package/web/app/immutable/chunks/{BUUgD57b.js → CI-nVEa_.js} +1 -1
  76. package/web/app/immutable/chunks/{JIxwOKX_.js → CJSrEfR4.js} +1 -1
  77. package/web/app/immutable/chunks/{DIL0XcL6.js → CMO4ot9F.js} +1 -1
  78. package/web/app/immutable/chunks/{DJ0uFT5X.js → COMJNvT3.js} +1 -1
  79. package/web/app/immutable/chunks/{BqkRycEV.js → CPYWKVyq.js} +9 -9
  80. package/web/app/immutable/chunks/{iAu7Aj29.js → CPi3hzpu.js} +1 -1
  81. package/web/app/immutable/chunks/{DJL0zbbT.js → CTXbgIPd.js} +1 -1
  82. package/web/app/immutable/chunks/{C_AhBHEv.js → CThb3iAk.js} +1 -1
  83. package/web/app/immutable/chunks/{TvbL6LZd.js → CVikHxT_.js} +3 -3
  84. package/web/app/immutable/chunks/{DtxfuyBv.js → CWIcIgSm.js} +1 -1
  85. package/web/app/immutable/chunks/{ClQaWwZN.js → Ca3YR8yw.js} +1 -1
  86. package/web/app/immutable/chunks/{CVEBue1Q.js → CadpuSEK.js} +1 -1
  87. package/web/app/immutable/chunks/{Bgfnbjb4.js → CdN2Ihv_.js} +1 -1
  88. package/web/app/immutable/chunks/{DXw-WTZY.js → CdjPYGHf.js} +1 -1
  89. package/web/app/immutable/chunks/{D-2cdK33.js → CdqlgErf.js} +1 -1
  90. package/web/app/immutable/chunks/{CB2VdHhb.js → CerTrxRJ.js} +1 -1
  91. package/web/app/immutable/chunks/{Dyc_CyAW.js → Cfd0oFGI.js} +1 -1
  92. package/web/app/immutable/chunks/{BrU4OT9R.js → CgWXj0YG.js} +2 -2
  93. package/web/app/immutable/chunks/{BjGmqNpS.js → CiTK-_b6.js} +1 -1
  94. package/web/app/immutable/chunks/{CnZcDXmL.js → CicdOSYm.js} +2 -2
  95. package/web/app/immutable/chunks/{1JAPG9y2.js → Cj2EKBCH.js} +1 -1
  96. package/web/app/immutable/chunks/{CAHBBl9S.js → CjXLe_MO.js} +1 -1
  97. package/web/app/immutable/chunks/{C-DRfJcG.js → CjZIABEV.js} +1 -1
  98. package/web/app/immutable/chunks/{Cx2Zr_EY.js → Ck9j_FHl.js} +1 -1
  99. package/web/app/immutable/chunks/{w-1KkHyd.js → ClTZNeVO.js} +1 -1
  100. package/web/app/immutable/chunks/{BHekbKzn.js → CmSDhJgU.js} +1 -1
  101. package/web/app/immutable/chunks/{DwXYzqBQ.js → Cn19T3na.js} +1 -1
  102. package/web/app/immutable/chunks/{DrI6m-rY.js → Cn3xolhp.js} +1 -1
  103. package/web/app/immutable/chunks/{BpQOBsoR.js → CnJe4S2a.js} +1 -1
  104. package/web/app/immutable/chunks/{BP2y3sRZ.js → CnhilOhJ.js} +1 -1
  105. package/web/app/immutable/chunks/{DtVlaWMd.js → CoTJDQuc.js} +1 -1
  106. package/web/app/immutable/chunks/{DwZUZouP.js → CqhKSPXA.js} +1 -1
  107. package/web/app/immutable/chunks/{35fhULrG.js → CrH1YN9o.js} +1 -1
  108. package/web/app/immutable/chunks/{WQOeAOAl.js → Cs-BSsj3.js} +1 -1
  109. package/web/app/immutable/chunks/{kae1oT68.js → CsF8OjbK.js} +1 -1
  110. package/web/app/immutable/chunks/{C76q11mm.js → CwRpBR2e.js} +1 -1
  111. package/web/app/immutable/chunks/{CIwcmzpw.js → CxLPEkg7.js} +1 -1
  112. package/web/app/immutable/chunks/{BvXEM_ru.js → Cxz3q_28.js} +1 -1
  113. package/web/app/immutable/chunks/{Ci-yONgL.js → Cyfw6OkG.js} +1 -1
  114. package/web/app/immutable/chunks/{QoUsFhvz.js → CzQCBVm9.js} +1 -1
  115. package/web/app/immutable/chunks/{51PCa81S.js → CztRrCMq.js} +1 -1
  116. package/web/app/immutable/chunks/{DFq9n5nW.js → D-J8Mlcm.js} +1 -1
  117. package/web/app/immutable/chunks/{C2NHyJHV.js → D1uFLIU4.js} +1 -1
  118. package/web/app/immutable/chunks/{m1QfmWoj.js → D37kdZVn.js} +1 -1
  119. package/web/app/immutable/chunks/{DarHRPPY.js → D4pwA7AS.js} +2 -2
  120. package/web/app/immutable/chunks/{Dnv7wJSL.js → D6-Slo8_.js} +1 -1
  121. package/web/app/immutable/chunks/{Ci9pTyYA.js → D61HjMue.js} +1 -1
  122. package/web/app/immutable/chunks/{p3CrvZe2.js → D6cqwcO2.js} +1 -1
  123. package/web/app/immutable/chunks/{BANxp4gx.js → D8DQsqlL.js} +1 -1
  124. package/web/app/immutable/chunks/{D__c4Yl1.js → D8FYgRYk.js} +1 -1
  125. package/web/app/immutable/chunks/{U7UFkZSE.js → D8YFvJ64.js} +1 -1
  126. package/web/app/immutable/chunks/{CIR7skK5.js → D9ajM8uP.js} +1 -1
  127. package/web/app/immutable/chunks/{DW4-9u0G.js → DA3kI_Ir.js} +1 -1
  128. package/web/app/immutable/chunks/{DjI8eVMr.js → DAPhb2nP.js} +45 -45
  129. package/web/app/immutable/chunks/{0sFbw5Xt.js → DAYo95RN.js} +1 -1
  130. package/web/app/immutable/chunks/{B0IMKrn3.js → DEnfRYcH.js} +1 -1
  131. package/web/app/immutable/chunks/{rPOaqvb6.js → DGySvVDu.js} +1 -1
  132. package/web/app/immutable/chunks/{DHTa3FGv.js → DHApIXYn.js} +1 -1
  133. package/web/app/immutable/chunks/{Bhmm0Csf.js → DHP1DFPI.js} +1 -1
  134. package/web/app/immutable/chunks/{Cvz-9_40.js → DIumxlqP.js} +1 -1
  135. package/web/app/immutable/chunks/{CeNWJyWT.js → DIyuJ_GU.js} +1 -1
  136. package/web/app/immutable/chunks/{BziNoOeQ.js → DLykoDqY.js} +1 -1
  137. package/web/app/immutable/chunks/{CGAWDKVf.js → DN71oh5l.js} +1 -1
  138. package/web/app/immutable/chunks/{BYONj21e.js → DNM32kqo.js} +1 -1
  139. package/web/app/immutable/chunks/{BsDPTTmM.js → DOrgOYHc.js} +2 -2
  140. package/web/app/immutable/chunks/{DEipLocY.js → DT4LiP7Y.js} +1 -1
  141. package/web/app/immutable/chunks/{CckzaWai.js → DTBnd4hM.js} +1 -1
  142. package/web/app/immutable/chunks/{BtXKsHf_.js → DTrgzOIA.js} +1 -1
  143. package/web/app/immutable/chunks/{CCv3Lx_U.js → DVH2puba.js} +1 -1
  144. package/web/app/immutable/chunks/{D2hN829h.js → DVYqzV0n.js} +1 -1
  145. package/web/app/immutable/chunks/{D7rZCWdO.js → DVsRM1tQ.js} +1 -1
  146. package/web/app/immutable/chunks/DWBLeVMU.js +1 -0
  147. package/web/app/immutable/chunks/{X4cuG_zB.js → DWiPdXwB.js} +1 -1
  148. package/web/app/immutable/chunks/D_aUnmwC.js +1 -0
  149. package/web/app/immutable/chunks/{DRp_Nj0f.js → DaaneYTG.js} +1 -1
  150. package/web/app/immutable/chunks/{DDaNHu84.js → DhDeMWX_.js} +1 -1
  151. package/web/app/immutable/chunks/{Bx3b0rPd.js → DhUtJEn_.js} +1 -1
  152. package/web/app/immutable/chunks/{CIQcnDuR.js → DhtvToBX.js} +1 -1
  153. package/web/app/immutable/chunks/{_0BFM6IU.js → DjCFWz1t.js} +2 -2
  154. package/web/app/immutable/chunks/{Bka1VG1N.js → Dl7ZwNmB.js} +1 -1
  155. package/web/app/immutable/chunks/DnzNFOP-.js +1 -0
  156. package/web/app/immutable/chunks/{HZ3QrylZ.js → Dp_2W12t.js} +1 -1
  157. package/web/app/immutable/chunks/{DZGCpHpr.js → Dq9eeDUE.js} +1 -1
  158. package/web/app/immutable/chunks/{C4Ninryq.js → DqWTOCbK.js} +1 -1
  159. package/web/app/immutable/chunks/{BpLC2eO9.js → DuIazAmY.js} +1 -1
  160. package/web/app/immutable/chunks/{DGznsmsL.js → DukOM-92.js} +1 -1
  161. package/web/app/immutable/chunks/{L-Y-TBRM.js → Dx9ju3Oy.js} +1 -1
  162. package/web/app/immutable/chunks/{DxMdBYgz.js → DxBvyCwr.js} +1 -1
  163. package/web/app/immutable/chunks/{v2YVbizz.js → DzX5UiFd.js} +1 -1
  164. package/web/app/immutable/chunks/{B5tMdivj.js → Gobu28zb.js} +2 -2
  165. package/web/app/immutable/chunks/{BIIYAsFZ.js → HIyZggkg.js} +4 -4
  166. package/web/app/immutable/chunks/{DTVdw8r4.js → HLKPZgVy.js} +1 -1
  167. package/web/app/immutable/chunks/{B422XfSt.js → KJX0Kw6L.js} +3 -3
  168. package/web/app/immutable/chunks/{D2waAEN7.js → L30ES58t.js} +1 -1
  169. package/web/app/immutable/chunks/{DbboHfqH.js → MioiZpXB.js} +1 -1
  170. package/web/app/immutable/chunks/{DA06uG-a.js → NTeezaZ2.js} +1 -1
  171. package/web/app/immutable/chunks/{DySlMfKo.js → PDh5csw9.js} +1 -1
  172. package/web/app/immutable/chunks/{wJj3WeBH.js → PXetJRrh.js} +2 -2
  173. package/web/app/immutable/chunks/{CAXcxCRW.js → RNDWAc1K.js} +6 -6
  174. package/web/app/immutable/chunks/{CDFewoTI.js → SEJ8ae0u.js} +1 -1
  175. package/web/app/immutable/chunks/{BPPRSM7X.js → SxNmK2GR.js} +3 -3
  176. package/web/app/immutable/chunks/{Bc5tOdcb.js → TKg6aZ2_.js} +1 -1
  177. package/web/app/immutable/chunks/{CBq9ao8v.js → UtZBgRek.js} +1 -1
  178. package/web/app/immutable/chunks/{CHVKhAgJ.js → Wsz69q6g.js} +1 -1
  179. package/web/app/immutable/chunks/{z5uPT3dt.js → WyTFZ_7I.js} +1 -1
  180. package/web/app/immutable/chunks/{r9qRR0z6.js → X4o7hGKf.js} +3 -3
  181. package/web/app/immutable/chunks/{CCaHJZV8.js → XvLHDIL-.js} +1 -1
  182. package/web/app/immutable/chunks/{DpjBemXH.js → _RGinDCt.js} +1 -1
  183. package/web/app/immutable/chunks/{DZiSQoCc.js → _VCQMG81.js} +1 -1
  184. package/web/app/immutable/chunks/{v2vpkl1z.js → bJswqAg7.js} +1 -1
  185. package/web/app/immutable/chunks/{ZN-mesLP.js → ei2mFcvT.js} +1 -1
  186. package/web/app/immutable/chunks/{DoWkfKYp.js → f5lTIPHi.js} +1 -1
  187. package/web/app/immutable/chunks/{CgFIU5ie.js → fCEIPyv5.js} +1 -1
  188. package/web/app/immutable/chunks/{CFK6lvfY.js → fI_J_To4.js} +1 -1
  189. package/web/app/immutable/chunks/{CVGmnzrp.js → g9G7tvrf.js} +1 -1
  190. package/web/app/immutable/chunks/{BrNDzmoP.js → gJDgmD_2.js} +1 -1
  191. package/web/app/immutable/chunks/{CJlP-cGG.js → gsD5Xe0D.js} +4 -4
  192. package/web/app/immutable/chunks/{C2uZ_VhE.js → gsElU_36.js} +1 -1
  193. package/web/app/immutable/chunks/{CZt5ZBg4.js → iwClg1fT.js} +3 -3
  194. package/web/app/immutable/chunks/{BdI_W2oB.js → ixz6jb_3.js} +1 -1
  195. package/web/app/immutable/chunks/{CepAUbyM.js → jbKFYOOg.js} +1 -1
  196. package/web/app/immutable/chunks/{DJh_DDe7.js → juQAMcx2.js} +1 -1
  197. package/web/app/immutable/chunks/kHCC2X2-.js +1 -0
  198. package/web/app/immutable/chunks/{C3Z0swGN.js → lI7T5mqw.js} +1 -1
  199. package/web/app/immutable/chunks/{BaA_OrGq.js → nLXSdbN2.js} +1 -1
  200. package/web/app/immutable/chunks/{DtbQslHZ.js → oYQw_s1S.js} +1 -1
  201. package/web/app/immutable/chunks/{nlN0b4Kg.js → ozzjQyCh.js} +1 -1
  202. package/web/app/immutable/chunks/{D8eBy-8s.js → pAYxBetQ.js} +1 -1
  203. package/web/app/immutable/chunks/{DMXJ8RT1.js → quYX3pdL.js} +1 -1
  204. package/web/app/immutable/chunks/{Cu8zpbs5.js → sEcTUaec.js} +1 -1
  205. package/web/app/immutable/chunks/{OmpkRRYb.js → tHDPdTwr.js} +1 -1
  206. package/web/app/immutable/chunks/{D7Ydchf3.js → uPiYeMwS.js} +1 -1
  207. package/web/app/immutable/chunks/{BHxqvJ6p.js → xBFqBq1j.js} +1 -1
  208. package/web/app/immutable/chunks/{BJ9asJd9.js → yl6pDKiQ.js} +1 -1
  209. package/web/app/immutable/chunks/{ClN0hrCD.js → zWI60sec.js} +1 -1
  210. package/web/app/immutable/entry/app.DfuiYuem.js +4 -0
  211. package/web/app/immutable/entry/start.DDUK339f.js +1 -0
  212. package/web/app/immutable/nodes/{0.maNxDgKk.js → 0.D56mBX7M.js} +1 -1
  213. package/web/app/immutable/nodes/{1.CrUOCJzJ.js → 1.az7hmVZE.js} +1 -1
  214. package/web/app/immutable/nodes/{10.DAHzIxDn.js → 10.ijh736ED.js} +1 -1
  215. package/web/app/immutable/nodes/{11.QGXqc7LC.js → 11.CPz1gfx7.js} +1 -1
  216. package/web/app/immutable/nodes/{12.Deg0J99J.js → 12.IWuvbIEt.js} +1 -1
  217. package/web/app/immutable/nodes/{13.DYahTbd4.js → 13.K9ySk2sQ.js} +1 -1
  218. package/web/app/immutable/nodes/{14.DqcYIHGs.js → 14.BvEshoLb.js} +1 -1
  219. package/web/app/immutable/nodes/{15.fBsD-rf2.js → 15.MdkxIvV5.js} +1 -1
  220. package/web/app/immutable/nodes/{16.BB4D0sXM.js → 16.CKCeF79S.js} +1 -1
  221. package/web/app/immutable/nodes/{17.C504DyaY.js → 17.DnoEG3fq.js} +2 -2
  222. package/web/app/immutable/nodes/2.B4faJzFv.js +13 -0
  223. package/web/app/immutable/nodes/{3.C7nQO7Qp.js → 3.CXkOfW97.js} +1 -1
  224. package/web/app/immutable/nodes/{4.DOK8Tw7p.js → 4.DAQzul95.js} +1 -1
  225. package/web/app/immutable/nodes/{5.ubLsJnyC.js → 5.DE5jTHSS.js} +1 -1
  226. package/web/app/immutable/nodes/{6.CyCRzMDW.js → 6.DhIYx_bX.js} +1 -1
  227. package/web/app/immutable/nodes/{7.Bg70Q16x.js → 7.CqVh2822.js} +1 -1
  228. package/web/app/immutable/nodes/{8.BvaAzEQm.js → 8.CtwSJYpI.js} +10 -10
  229. package/web/app/immutable/nodes/{9.DO468RMT.js → 9.RM7Dv9Cl.js} +5 -5
  230. package/web/app/version.json +1 -1
  231. package/web/index.html +16 -16
  232. package/web/app/immutable/assets/0.DZzKp2Fe.css +0 -1
  233. package/web/app/immutable/assets/DiagramPresentation.Bfi3xHm0.css +0 -1
  234. package/web/app/immutable/chunks/BvpPy--g.js +0 -1
  235. package/web/app/immutable/chunks/CO2d8RwC.js +0 -1
  236. package/web/app/immutable/chunks/CQpQeUin.js +0 -1
  237. package/web/app/immutable/chunks/CTjSHpOw.js +0 -344
  238. package/web/app/immutable/chunks/DvnMaoHD.js +0 -1
  239. package/web/app/immutable/chunks/qiTOR0DK.js +0 -1
  240. package/web/app/immutable/entry/app.F35RZd_b.js +0 -4
  241. package/web/app/immutable/entry/start.Dg01C9a0.js +0 -1
  242. package/web/app/immutable/nodes/2.ByX1NsE4.js +0 -13
@@ -1 +1 @@
1
- import{r as e}from"./B70m4__L.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
1
+ import{r as e}from"./BjnZ1Xf3.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
@@ -1 +1 @@
1
- import{b as o}from"./CTjSHpOw.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{b as o}from"./BdNiI0PS.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,2 +1,2 @@
1
- import{t as zt,br as ee,_ as Jr,a_ as Q,bz as Lt,bv as ce,bt as ir,b as At,bp as c}from"./CGWRZzdk.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as Ut,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as F,aB as P,bj as Xr,aw as rt,ai as Yr,c5 as rr,a as yr,a7 as je,aj as gt,cd as Gr,br as Zr}from"./DYhIMPy1.js";import{G as Pr,H as Qr}from"./Bhmm0Csf.js";import{u as at,w as It,v as fr,n as Ct}from"./B70m4__L.js";import{c as Rt}from"./nmrokYzj.js";import{b as $r}from"./BaIAhI85.js";import{Ix as j,nw as kr,vy as Ir,vx as Cr,KM as ea,KN as ta,et as ra,eu as aa,Kc as vr,lI as Gt,BD as pr,s1 as gr,nU as oa,ze as ia,a5 as mr,J1 as na,Jj as sa,n7 as la,iE as da,ny as ca,u$ as ua,zB as fa,Kb as va}from"./CnZcDXmL.js";import{g as pa}from"./DfN8_dcw.js";import{a as ga,h as ma,j as _a,c as ha,d as wa,i as ba,e as xa,f as _r,g as ya,b as Zt}from"./CQLYGyEz.js";import{bA as Pa,bN as $a,dr as ka}from"./BqkRycEV.js";import{w as hr,d as Ia}from"./D2waAEN7.js";import{f as Ca}from"./BpQOBsoR.js";import{k as Qt}from"./CIwcmzpw.js";import{f as Ce,ax as Fa}from"./B422XfSt.js";import"./BEyWfhqM.js";import{F as et,a8 as Sa,aq as Da,aV as Ta,a$ as jt,co as Ea,cp as Ra,bi as Ma,cN as Ua,c4 as ja}from"./Dlo7xxGg.js";import{d as Va,f as za,t as wr}from"./DTVdw8r4.js";import{c as La}from"./ChTqQfQN.js";import"./D2hN829h.js";import{$ as Aa}from"./DjI8eVMr.js";import{i as er,b as Wa,a as Na}from"./H2jLkRRS.js";import{C as ar,p as Ba}from"./BYONj21e.js";import{M as Oa}from"./BIIYAsFZ.js";import{t as tr,u as Fr}from"./BOTuR8YM.js";import"./C4omy0Us.js";import"./CgFIU5ie.js";import{M as Mt}from"./Cvz-9_40.js";import{V as Ha}from"./DIL0XcL6.js";import{bR as qa,b5 as Ka}from"./DJL0zbbT.js";import{ap as Ja}from"./Ae-1QeEg.js";import{g as Xa,W as Ya}from"./N8Bwwvnf.js";import{r as Ga,p as Za}from"./atiG7mlf.js";import{l as Qa}from"./BIqsMOOo.js";const Sr=j.createSelector((X,w)=>kr(X.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(X,w){if(new.target)return zt({component:or,...X});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Fe=crypto.randomUUID(),we=Sr(Fe),ge=new WeakMap;let G=N(null),Je=N(void 0),z=N(1),B=N(1),se=N(!0),me=N(!1),Se=N(null),A=N(0);const be=n(()=>ye()?.error??e(Se)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return j.dispatch(Ir(Fe,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{j.dispatch(Cr(Fe,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(G,null),f(Se,null),f(se,!0),f(z,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Jr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const M=await b.promise;I||f(G,M)}catch(W){if(I)return;f(Se,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(G),I=e(Je),b=e(z),W=e(B);if(!d||!I)return;let M=!1,_e,E;const oe=()=>{if(!E)return;const J=(ge.get(E)??1)-1;J?ge.set(E,J):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),M){oe();return}const J=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));I.width=Math.ceil(J.width*Z),I.height=Math.ceil(J.height*Z),I.style.width=`${J.width}px`,I.style.height=`${J.height}px`,_e=E.render({canvas:I,viewport:J,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{M||f(Se,"invalid")}finally{M||f(me,!1)}})(),()=>{M=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:Lt,$on:(d,I)=>At(w,d,I)},Ve=to(),Be=T(Ve);{var o=d=>{{const I=W=>{Ze();var M=tt();k(()=>g(M,e(De))),l(W,M)};let b=n(()=>c.ui_combobox_retry_label());Va(d,{onRetry:()=>Ut(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());za(d,{get label(){return e(I)},count:1,class:"p-4"})}},S=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(z)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Ut(z,-1),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var M=p(W,2),_e=F(M,!0),E=p(M,2);{let ue=n(()=>e(z)>=e(G).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Ut(z),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var J=p(oe,2),Z=F(J,!0),it=p(J,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Je,ue),()=>e(Je)),x(nt),k((ue,Ee,ze)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",ze),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(z)),total:tr(e(G).numPages)}),()=>Fr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(z))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(G)&&d(S,2)})}x(Ve),l(X,Ve);var Te=Nt(Ne);return re(),Te}const ro=j.createSelector((X,w)=>kr(X.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(X,w){if(new.target)return zt({component:Dr,...X});Wt(w,!0);const ye=()=>ce(Je,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Fe=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const G=crypto.randomUUID(),Je=ro(G),z=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Xr(()=>{me=!0,j.dispatch(ea(G))});function Se(){if(me||e(z))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),j.dispatch(ta(G,i.hostname,i.toString()))}function A(i){if(me)return;const S=i.currentTarget.error?.code;S===2?f(ge,"network"):S!==1&&Se()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Fe()},set downloading(i){Fe(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:Lt,$on:(i,S)=>At(w,i,S)},De=so(),Ne=T(De);{var Ve=i=>{var S=io(),Te=T(S),d=F(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),J=F(oe,!0);k(Z=>g(J,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),J=F(oe,!0);k(Z=>g(J,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(z)?E(b):E(W,-1)})}var M=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Fe()},children:(oe,J)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(M,E=>{Pe()&&E(_e)})}x(S),k(()=>g(d,ae())),l(i,S)},Be=i=>{var S=no(),Te=F(S,!0);k(d=>{at(S,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",S,A),rt("loadedmetadata",S,d=>{d.currentTarget.videoWidth===0&&Se()}),l(i,S)};Q(Ne,i=>{e(B)||e(z)?i(Ve):i(Be,-1)})}x(De),l(X,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Vt(X,w){if(new.target)return zt({component:Vt,...X});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=F(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ra},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Se))),l(t,a)},ot=La("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Fe=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),G=ee(w,"downloading",7,!1);const Je=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},z=n(()=>Je(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Se=n(()=>Fr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Ve=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function S(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Ve,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Ve,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Fe()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},M=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},J=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||G())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(z)==="video"?M():e(z)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
1
+ import{t as zt,br as ee,_ as Jr,a_ as Q,bz as Lt,bv as ce,bt as ir,b as At,bp as c}from"./CGWRZzdk.js";import{bs as Wt,ca as pe,aD as e,bH as f,a5 as T,bA as x,W as l,bn as Nt,bV as N,c9 as n,aA as te,c6 as Ut,ay as ne,be as Ze,b$ as tt,b_ as k,bO as g,bS as p,bl as F,aB as P,bj as Xr,aw as rt,ai as Yr,c5 as rr,a as yr,a7 as je,aj as gt,cd as Gr,br as Zr}from"./DYhIMPy1.js";import{G as Pr,H as Qr}from"./DHP1DFPI.js";import{u as at,w as It,v as fr,n as Ct}from"./BjnZ1Xf3.js";import{c as Rt}from"./nmrokYzj.js";import{b as $r}from"./BaIAhI85.js";import{Ix as j,nw as kr,vy as Ir,vx as Cr,KM as ea,KN as ta,et as ra,eu as aa,Kc as vr,lI as Gt,BD as pr,s1 as gr,nU as oa,ze as ia,a5 as mr,J1 as na,Jj as sa,n7 as la,iE as da,ny as ca,u$ as ua,zB as fa,Kb as va}from"./CicdOSYm.js";import{g as pa}from"./DfN8_dcw.js";import{a as ga,h as ma,j as _a,c as ha,d as wa,i as ba,e as xa,f as _r,g as ya,b as Zt}from"./B_frQYKx.js";import{bA as Pa,bN as $a,dr as ka}from"./CPYWKVyq.js";import{w as hr,d as Ia}from"./L30ES58t.js";import{f as Ca}from"./CnJe4S2a.js";import{k as Qt}from"./CxLPEkg7.js";import{f as Ce,ax as Fa}from"./KJX0Kw6L.js";import"./BEyWfhqM.js";import{F as et,a8 as Sa,aq as Da,aV as Ta,a$ as jt,co as Ea,cp as Ra,bi as Ma,cN as Ua,c4 as ja}from"./By0eqGj-.js";import{d as Va,f as za,t as wr}from"./HLKPZgVy.js";import{c as La}from"./ChTqQfQN.js";import"./DVYqzV0n.js";import{$ as Aa}from"./DAPhb2nP.js";import{i as er,b as Wa,a as Na}from"./H2jLkRRS.js";import{C as ar,p as Ba}from"./DNM32kqo.js";import{M as Oa}from"./HIyZggkg.js";import{t as tr,u as Fr}from"./BM1KP-FJ.js";import"./BRhVB6Sv.js";import"./fCEIPyv5.js";import{M as Mt}from"./DIumxlqP.js";import{V as Ha}from"./CMO4ot9F.js";import{bR as qa,b5 as Ka}from"./CTXbgIPd.js";import{ap as Ja}from"./2XZtwznc.js";import{g as Xa,W as Ya}from"./CClqWu60.js";import{r as Ga,p as Za}from"./BhzRZYY1.js";import{l as Qa}from"./C9gix5Ke.js";const Sr=j.createSelector((X,w)=>kr(X.pdfPreview.previews,w));var eo=P('<div class="flex shrink-0 flex-wrap items-center justify-center gap-2 border-b border-border p-2"><!> <span aria-live="polite"> </span> <!> <!> <span> </span> <!></div> <div class="min-h-0 flex-1 overflow-auto p-4"><canvas class="mx-auto block" role="img"></canvas></div>',1),to=P('<div class="flex h-full min-h-0 flex-col" data-testid="pdf-viewer"><!></div>');function or(X,w){if(new.target)return zt({component:or,...X});Wt(w,!0);const ye=()=>ce(we,"$preview",ot),[ot,re]=ir();let y=ee(w,"workspaceId",7),ae=ee(w,"filePath",7),Pe=ee(w,"gitRootId",7);const Fe=crypto.randomUUID(),we=Sr(Fe),ge=new WeakMap;let G=N(null),Je=N(void 0),z=N(1),B=N(1),se=N(!0),me=N(!1),Se=N(null),A=N(0);const be=n(()=>ye()?.error??e(Se)),De=n(()=>e(be)==="missing"?c.file_pdf_missing_error():e(be)==="large"?c.file_pdf_large_error():e(be)==="invalid"?c.file_pdf_invalid_error():e(be)==="password"?c.file_pdf_password_error():c.file_pdf_load_error());pe(()=>{const d=y(),I=ae();e(A);const b=crypto.randomUUID();return j.dispatch(Ir(Fe,b,d,I,...Pe()?[{gitRootId:Pe()}]:[])),()=>{j.dispatch(Cr(Fe,b))}}),pe(()=>{const d=ye()?.url;let I=!1,b;if(f(G,null),f(Se,null),f(se,!0),f(z,1),f(B,1),!!d)return(async()=>{try{const{loadPdfDocument:W}=await Jr(async()=>{const{loadPdfDocument:_e}=await import("./cb1JHFKl.js");return{loadPdfDocument:_e}},[],import.meta.url);if(I)return;b=W(d);const M=await b.promise;I||f(G,M)}catch(W){if(I)return;f(Se,W instanceof Error&&W.name==="PasswordException"?"password":W instanceof Error&&W.name==="InvalidPDFException"?"invalid":"load",!0)}finally{I||f(se,!1)}})(),()=>{I=!0,b?.destroy()}}),pe(()=>{const d=e(G),I=e(Je),b=e(z),W=e(B);if(!d||!I)return;let M=!1,_e,E;const oe=()=>{if(!E)return;const J=(ge.get(E)??1)-1;J?ge.set(E,J):(ge.delete(E),E.cleanup()),E=void 0};return f(me,!0),(async()=>{try{if(E=await d.getPage(b),ge.set(E,(ge.get(E)??0)+1),M){oe();return}const J=E.getViewport({scale:W}),Z=Math.min(window.devicePixelRatio||1,2,Math.sqrt(16e6/(J.width*J.height)));I.width=Math.ceil(J.width*Z),I.height=Math.ceil(J.height*Z),I.style.width=`${J.width}px`,I.style.height=`${J.height}px`,_e=E.render({canvas:I,viewport:J,transform:[Z,0,0,Z,0,0]}),await _e.promise}catch{M||f(Se,"invalid")}finally{M||f(me,!1)}})(),()=>{M=!0,_e?.cancel(),_e?_e.promise.then(oe,oe):oe()}});var Ne={get workspaceId(){return y()},set workspaceId(d){y(d),te()},get filePath(){return ae()},set filePath(d){ae(d),te()},get gitRootId(){return Pe()},set gitRootId(d){Pe(d),te()},$set:Lt,$on:(d,I)=>At(w,d,I)},Ve=to(),Be=T(Ve);{var o=d=>{{const I=W=>{Ze();var M=tt();k(()=>g(M,e(De))),l(W,M)};let b=n(()=>c.ui_combobox_retry_label());Va(d,{onRetry:()=>Ut(A),get retryLabel(){return e(b)},class:"m-auto",message:I,$$slots:{message:!0}})}},i=d=>{{let I=n(()=>c.file_pdf_loading_label());za(d,{get label(){return e(I)},count:1,class:"p-4"})}},S=d=>{var I=eo(),b=ne(I),W=T(b);{let ue=n(()=>e(z)<=1);Ce(W,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Ut(z,-1),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_previous_label()]),l(Ee,fe)},$$slots:{default:!0}})}var M=p(W,2),_e=F(M,!0),E=p(M,2);{let ue=n(()=>e(z)>=e(G).numPages);Ce(E,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>Ut(z),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.file_pdf_next_label()]),l(Ee,fe)},$$slots:{default:!0}})}var oe=p(E,2);{let ue=n(()=>e(B)<=.25);Ce(oe,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.max(.25,e(B)-.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomOut_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}var J=p(oe,2),Z=F(J,!0),it=p(J,2);{let ue=n(()=>e(B)>=3);Ce(it,{variant:"ghost",size:"compact",get disabled(){return e(ue)},onclick:()=>f(B,Math.min(3,e(B)+.25),!0),children:(Ee,ze)=>{Ze();var fe=tt();k(Le=>g(fe,Le),[()=>c.editor_fileViewer_zoomIn_tooltip()]),l(Ee,fe)},$$slots:{default:!0}})}x(b);var nt=p(b,2),st=T(nt);let ut;$r(st,ue=>f(Je,ue),()=>e(Je)),x(nt),k((ue,Ee,ze)=>{g(_e,ue),g(Z,Ee),at(nt,"aria-busy",e(me)),at(st,"aria-label",ze),ut=It(st,"",ut,{visibility:e(me)?"hidden":"visible"})},[()=>c.file_pdf_page_label({page:tr(e(z)),total:tr(e(G).numPages)}),()=>Fr(e(B),{style:"percent"}),()=>c.file_pdf_canvas_ariaLabel({name:ae(),page:tr(e(z))})]),l(d,I)};Q(Be,d=>{e(be)?d(o):e(se)||ye()?.status==="loading"?d(i,1):e(G)&&d(S,2)})}x(Ve),l(X,Ve);var Te=Nt(Ne);return re(),Te}const ro=j.createSelector((X,w)=>kr(X.videoPreview.previews,w));var ao=P('<p role="status"> </p>'),oo=P('<p role="alert"> </p>'),io=P('<div class="flex flex-col items-center gap-3 p-6 text-center text-sm text-subtle"><p class="break-all"> </p> <!> <!></div>'),no=P('<video controls="" preload="metadata" playsinline="" class="max-w-full max-h-full" data-testid="file-video"> </video>',2),so=P('<div class="min-h-0 flex-1 flex items-center justify-center bg-background"><!></div>');function Dr(X,w){if(new.target)return zt({component:Dr,...X});Wt(w,!0);const ye=()=>ce(Je,"$preview",ot),[ot,re]=ir();let y=ee(w,"sourceUrl",7),ae=ee(w,"fileName",7),Pe=ee(w,"allowDownload",7),Fe=ee(w,"downloading",7),we=ee(w,"onDownload",7),ge=N(null);const G=crypto.randomUUID(),Je=ro(G),z=n(()=>ye()?.status==="loading"),B=n(()=>e(ge)??ye()?.error);let se=!1,me=!1;Xr(()=>{me=!0,j.dispatch(ea(G))});function Se(){if(me||e(z))return;const i=y().startsWith("workspace-file://")?new URL(y()):null;if(se||!i||!i.pathname.toLowerCase().endsWith(".mp4")){f(ge,"unsupported");return}se=!0,i.searchParams.set("preview","h264"),j.dispatch(ta(G,i.hostname,i.toString()))}function A(i){if(me)return;const S=i.currentTarget.error?.code;S===2?f(ge,"network"):S!==1&&Se()}var be={get sourceUrl(){return y()},set sourceUrl(i){y(i),te()},get fileName(){return ae()},set fileName(i){ae(i),te()},get allowDownload(){return Pe()},set allowDownload(i){Pe(i),te()},get downloading(){return Fe()},set downloading(i){Fe(i),te()},get onDownload(){return we()},set onDownload(i){we(i),te()},$set:Lt,$on:(i,S)=>At(w,i,S)},De=so(),Ne=T(De);{var Ve=i=>{var S=io(),Te=T(S),d=F(Te,!0),I=p(Te,2);{var b=E=>{var oe=ao(),J=F(oe,!0);k(Z=>g(J,Z),[()=>c.editor_fileViewer_videoPreparing_label()]),l(E,oe)},W=E=>{var oe=oo(),J=F(oe,!0);k(Z=>g(J,Z),[()=>e(B)==="network"?c.editor_fileViewer_videoLoad_error():c.editor_fileViewer_videoUnsupported_label()]),l(E,oe)};Q(I,E=>{e(z)?E(b):E(W,-1)})}var M=p(I,2);{var _e=E=>{Ce(E,{variant:"secondary",size:"sm",get onclick(){return we()},get disabled(){return Fe()},children:(oe,J)=>{Ze();var Z=tt();k(it=>g(Z,it),[()=>c.layout_fileTab_downloadFile_label()]),l(oe,Z)},$$slots:{default:!0}})};Q(M,E=>{Pe()&&E(_e)})}x(S),k(()=>g(d,ae())),l(i,S)},Be=i=>{var S=no(),Te=F(S,!0);k(d=>{at(S,"src",ye()?.url??y()),g(Te,d)},[()=>c.editor_fileViewer_videoUnsupported_label()]),rt("error",S,A),rt("loadedmetadata",S,d=>{d.currentTarget.videoWidth===0&&Se()}),l(i,S)};Q(Ne,i=>{e(B)||e(z)?i(Ve):i(Be,-1)})}x(De),l(X,De);var o=Nt(be);return re(),o}var lo=P('<!> <span class="text-xs text-subtle min-w-[50px] text-center"> </span> <!> <div class="w-px h-5 bg-border mx-1"></div>',1),co=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="w-px h-5 bg-border mx-1"></div> <!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),uo=P('<div class="min-h-0 flex-1 flex flex-col"><div class="flex items-center gap-2 p-2 border-b border-border bg-muted/30"><!> <!> <div class="ml-auto text-xs text-subtle"> </div></div> <div><img draggable="false" class="max-w-full max-h-full object-contain"/></div></div>'),fo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19V6l12-3v13M9 19c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zm12-3c0 1.105-1.343 2-3 2s-3-.895-3-2 1.343-2 3-2 3 .895 3 2zM9 10l12-3"></path></svg></div> <div class="text-sm text-subtle mb-4"> </div> <audio controls="" class="w-full max-w-md"><source/> </audio></div>'),vo=P("<!> ",1),po=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 21h10a2 2 0 002-2V9.414a1 1 0 00-.293-.707l-5.414-5.414A1 1 0 0012.586 3H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path></svg></div> <p class="text-sm text-subtle mb-4"> </p> <!></div>'),go=P('<th class="border border-border px-2 py-1 text-left text-xs font-medium bg-muted"> </th>'),mo=P('<td class="border border-border px-2 py-1 text-xs"> </td>'),_o=P("<tr></tr>"),ho=P('<div class="flex-1 overflow-auto p-4"><table class="w-full border-collapse"><thead><tr></tr></thead><tbody></tbody></table></div>'),wo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),bo=P('<div class="flex-1 flex flex-col items-center justify-center p-8"><div class="text-subtle mb-4"><svg class="w-24 h-24" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 3v2m6-2v2M9 19v2m6-2v2M5 9H3m2 6H3m18-6h-2m2 6h-2M7 19h10a2 2 0 002-2V7a2 2 0 00-2-2H7a2 2 0 00-2 2v10a2 2 0 002 2zM9 9h6v6H9V9z"></path></svg></div> <p class="text-sm text-subtle mb-2"> </p> <p class="text-xs text-subtle"> </p></div>'),xo=P('<div class="h-full flex flex-col"><!></div>');function Vt(X,w){if(new.target)return zt({component:Vt,...X});Wt(w,!0);const ye=t=>{var a=lo(),u=ne(a);{let O=n(()=>c.editor_fileViewer_zoomOut_tooltip());Ce(u,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:oe,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ea},size:"sm"})},$$slots:{default:!0}})}var m=p(u,2),h=F(m,!0),R=p(m,2);{let O=n(()=>c.editor_fileViewer_zoomIn_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:E,get title(){return e(O)},children:(D,V)=>{et(D,{get icon(){return Ra},size:"sm"})},$$slots:{default:!0}})}Ze(2),k(()=>g(h,e(Se))),l(t,a)},ot=La("FileViewer");let re=ee(w,"filePath",7),y=ee(w,"fileContent",7,""),ae=ee(w,"sourceUrl",7),Pe=ee(w,"language",7),Fe=ee(w,"isBinary",7),we=ee(w,"allowDownload",7,!0),ge=ee(w,"onDownload",7),G=ee(w,"downloading",7,!1);const Je=t=>{const a=t.split(".").pop()?.toLowerCase()||"";return["png","jpg","jpeg","gif","webp","bmp","ico","avif"].includes(a)?"image":a==="svg"?"svg":["mp4","webm","ogg","mov","avi"].includes(a)?"video":["mp3","wav","ogg","m4a","flac"].includes(a)?"audio":a==="pdf"?"pdf":["md","markdown"].includes(a)?"markdown":a==="json"?"json":a==="csv"?"csv":["yaml","yml"].includes(a)?"yaml":a==="xml"?"xml":["zip","tar","gz","rar","7z","bz2"].includes(a)?"archive":["exe","dll","so","dylib","wasm"].includes(a)?"binary":"text"},z=n(()=>Je(re())),B=n(()=>re().split("/").pop()||c.editor_fileViewer_unknown_fallback());let se=N(100),me=N(0);const Se=n(()=>Fr(e(se)/100,{style:"percent",maximumFractionDigits:0}));let A=N(!1),be=N(0),De=N(0),Ne=N(0),Ve=N(0),Be=N(!1),o=null;function i(){const t=o;o=null,f(Be,!1),t?.viewport.hasPointerCapture(t.pointerId)&&t.viewport.releasePointerCapture(t.pointerId)}function S(t){if(t.button!==0||!t.isPrimary||o)return;const a=t.currentTarget;a.setPointerCapture(t.pointerId),o={pointerId:t.pointerId,x:t.clientX,y:t.clientY,viewport:a},f(Be,!0),t.preventDefault()}function Te(t){if(!(!o||t.pointerId!==o.pointerId)){if((t.buttons&1)===0){i();return}f(Ne,o.viewport.scrollLeft,!0),f(Ve,o.viewport.scrollTop,!0),f(be,e(be)+(t.clientX-o.x)),f(De,e(De)+(t.clientY-o.y)),o.x=t.clientX,o.y=t.clientY}}function d(t){t.pointerId===o?.pointerId&&i()}pe(()=>{re(),ae(),e(se),e(me),f(Ne,0),f(Ve,0)}),pe(()=>(re(),ae(),rr(()=>{i(),f(be,0),f(De,0)}),i));const I=t=>{const a=t.split(".").pop()?.toLowerCase();return a==="jpg"||a==="jpeg"?"image/jpeg":a==="png"?"image/png":a==="gif"?"image/gif":a==="webp"?"image/webp":"application/octet-stream"},b=t=>{const a=t.split(".").pop()?.toLowerCase();if(a==="mp4")return"video/mp4";if(a==="webm")return"video/webm"},W=()=>{if(ae())return ae();if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():Fe()?`data:${I(re())};base64,${y()}`:`data:${I(re())};base64,${y()}`;if(y()instanceof ArrayBuffer){const a=new Uint8Array(y()).reduce((m,h)=>m+String.fromCharCode(h),""),u=btoa(a);return`data:${I(re())};base64,${u}`}return""},M=()=>{if(ae())return ae();const t=b(re());if(!t)return"";if(typeof y()=="string")return y().startsWith("data:")||y().startsWith("http")?y():`data:${t};base64,${y()}`;const a=new Uint8Array(y()),u=[],m=32768;for(let h=0;h<a.length;h+=m)u.push(String.fromCharCode(...a.subarray(h,h+m)));return`data:${t};base64,${btoa(u.join(""))}`},_e=()=>{const t=typeof y()=="string"?new TextEncoder().encode(y()):new Uint8Array(y()),a=[],u=32768;for(let m=0;m<t.length;m+=u)a.push(String.fromCharCode(...t.subarray(m,m+u)));return`data:image/svg+xml;base64,${btoa(a.join(""))}`},E=()=>{f(se,Math.min(e(se)+25,500),!0)},oe=()=>{f(se,Math.max(e(se)-25,25),!0)},J=()=>{f(me,(e(me)+90)%360)},Z=()=>{if(!we()||G())return;if(ge()){ge()();return}const t=document.createElement("a");t.href=e(z)==="video"?M():e(z)==="svg"?_e():W(),t.download=e(B),t.click()},it=async()=>{try{const t=W(),a=new Image;a.crossOrigin="anonymous";const u=await new Promise((m,h)=>{a.onload=()=>{const R=document.createElement("canvas");R.width=a.naturalWidth,R.height=a.naturalHeight;const O=R.getContext("2d");if(!O){h(new Error("Failed to get canvas context"));return}O.drawImage(a,0,0),R.toBlob(D=>{D?m(D):h(new Error("Failed to create blob from canvas"))},"image/png",1)},a.onerror=()=>h(new Error("Failed to load image")),a.src=t});await navigator.clipboard.write([new ClipboardItem({"image/png":u})]),f(A,!0),setTimeout(()=>f(A,!1),2e3)}catch(t){ot.error("Failed to copy image:",t)}},nt=t=>{try{const a=JSON.parse(t);return JSON.stringify(a,null,2)}catch{return t}},st=t=>t.split(`
2
2
  `).map(u=>u.split(",").map(m=>m.trim()));var ut={get filePath(){return re()},set filePath(t){re(t),te()},get fileContent(){return y()},set fileContent(t=""){y(t),te()},get sourceUrl(){return ae()},set sourceUrl(t){ae(t),te()},get language(){return Pe()},set language(t){Pe(t),te()},get isBinary(){return Fe()},set isBinary(t){Fe(t),te()},get allowDownload(){return we()},set allowDownload(t=!0){we(t),te()},get onDownload(){return ge()},set onDownload(t){ge(t),te()},get downloading(){return G()},set downloading(t=!1){G(t),te()},$set:Lt,$on:(t,a)=>At(w,t,a)},ue=xo();rt("blur",yr,i);var Ee=T(ue);{var ze=t=>{var a=co(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let he=n(()=>c.editor_fileViewer_rotate_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:J,get title(){return e(he)},children:($e,He)=>{et($e,{get icon(){return Sa},size:"sm"})},$$slots:{default:!0}})}var R=p(h,4);{let he=n(()=>c.editor_fileViewer_copyImage_tooltip());Ce(R,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:it,get title(){return e(he)},children:($e,He)=>{var ke=je(),St=ne(ke);{var Dt=Ie=>{et(Ie,{get icon(){return Da},size:"sm",class:"text-green-500"})},Ye=Ie=>{et(Ie,{get icon(){return Ta},size:"sm"})};Q(St,Ie=>{e(A)?Ie(Dt):Ie(Ye,-1)})}l($e,ke)},$$slots:{default:!0}})}var O=p(R,2);{let he=n(()=>!we()||G()),$e=n(()=>c.editor_fileViewer_download_tooltip());Ce(O,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(he)},get title(){return e($e)},children:(He,ke)=>{et(He,{get icon(){return jt},size:"sm"})},$$slots:{default:!0}})}var D=p(O,2),V=F(D,!0);x(u);var H=p(u,2),xe=F(H);x(a),k(he=>{g(V,e(B)),fr(H,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(H,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),at(xe,"src",he),at(xe,"alt",e(B)),It(xe,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100}) rotate(${e(me)??""}deg); transition: transform 0.2s;`)},[()=>W()]),gt("pointerdown",H,S),gt("pointermove",H,Te),gt("pointerup",H,d),rt("pointercancel",H,d),rt("lostpointercapture",H,d),l(t,a)},fe=t=>{var a=uo(),u=T(a),m=T(u);ye(m);var h=p(m,2);{let H=n(()=>!we()||G()),xe=n(()=>c.editor_fileViewer_download_tooltip());Ce(h,{size:"icon",variant:"ghost",class:"h-7 w-7",onclick:Z,get disabled(){return e(H)},get title(){return e(xe)},children:(he,$e)=>{et(he,{get icon(){return jt},size:"sm"})},$$slots:{default:!0}})}var R=p(h,2),O=F(R,!0);x(u);var D=p(u,2),V=F(D);x(a),k(H=>{g(O,e(B)),fr(D,1,`relative min-h-0 flex-1 overflow-auto bg-checkered flex items-center justify-center p-4 select-none ${e(Be)?"cursor-grabbing":"cursor-grab"}`,"svelte-1uj35xu"),It(D,`--pan-scroll-x: ${e(Ne)??""}px; --pan-scroll-y: ${e(Ve)??""}px;`),at(V,"src",H),at(V,"alt",e(B)),It(V,`translate: ${e(be)??""}px ${e(De)??""}px; transform: scale(${e(se)/100});`)},[()=>_e()]),gt("pointerdown",D,S),gt("pointermove",D,Te),gt("pointerup",D,d),rt("pointercancel",D,d),rt("lostpointercapture",D,d),l(t,a)},Le=t=>{const a=n(M);var u=je(),m=ne(u);Pr(m,()=>re()+e(a),h=>{Dr(h,{get sourceUrl(){return e(a)},get fileName(){return e(B)},get allowDownload(){return we()},get downloading(){return G()},onDownload:Z})}),l(t,u)},mt=t=>{var a=fo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=T(h),O=p(R);x(h),x(a),k((D,V)=>{g(m,e(B)),at(R,"src",D),g(O,` ${V??""}`)},[()=>W(),()=>c.editor_fileViewer_audioUnsupported_label()]),l(t,a)},Bt=t=>{var a=po(),u=p(T(a),2),m=F(u,!0),h=p(u,2);{let R=n(()=>!we()||G());Ce(h,{size:"sm",variant:"secondary",onclick:Z,get disabled(){return e(R)},children:(O,D)=>{var V=vo(),H=ne(V);et(H,{get icon(){return jt},size:"sm",class:"mr-2"});var xe=p(H);k(he=>g(xe,` ${he??""}`),[()=>c.editor_fileViewer_downloadPdf_label()]),l(O,V)},$$slots:{default:!0}})}x(a),k(R=>g(m,R),[()=>c.editor_fileViewer_pdfUnavailable_label()]),l(t,a)},Ot=t=>{{let a=n(()=>nt(y().toString()));ar(t,{get value(){return e(a)},language:"json",get fileName(){return re()},lineNumbers:!0,readOnly:!0})}},Oe=t=>{const a=n(()=>st(y().toString()));var u=ho(),m=T(u),h=T(m),R=T(h);Ct(R,23,()=>e(a)[0]||[],(D,V)=>`header-${V}-${D}`,(D,V)=>{var H=go(),xe=F(H,!0);k(()=>g(xe,e(V))),l(D,H)}),x(R),x(h);var O=p(h);Ct(O,23,()=>e(a).slice(1),(D,V)=>`row-${V}`,(D,V,H)=>{var xe=_o();Ct(xe,23,()=>e(V),(he,$e)=>`cell-${e(H)}-${$e}`,(he,$e)=>{var He=mo(),ke=F(He,!0);k(()=>g(ke,e($e))),l(he,He)}),x(xe),l(D,xe)}),x(O),x(m),x(u),l(t,u)},Xe=t=>{var a=wo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=F(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_archive_label()]),l(t,a)},Ht=t=>{var a=bo(),u=p(T(a),2),m=F(u,!0),h=p(u,2),R=F(h,!0);x(a),k(O=>{g(m,e(B)),g(R,O)},[()=>c.editor_fileViewer_binary_label()]),l(t,a)},Ft=t=>{{let a=n(()=>y().toString());ar(t,{get value(){return e(a)},get language(){return Pe()},get fileName(){return re()},lineNumbers:!0,highlightActiveLine:!0})}};Q(Ee,t=>{e(z)==="image"?t(ze):e(z)==="svg"?t(fe,1):e(z)==="video"?t(Le,2):e(z)==="audio"?t(mt,3):e(z)==="pdf"?t(Bt,4):e(z)==="json"?t(Ot,5):e(z)==="csv"?t(Oe,6):e(z)==="archive"?t(Xe,7):e(z)==="binary"?t(Ht,8):t(Ft,-1)})}return x(ue),l(X,ue),Nt(ut)}Yr(["pointerdown","pointermove","pointerup"]);const yo=/access denied|permission denied|outside (?:the )?workspace/i,Po=/file not found|no such file or directory/i;function $o(X){return yo.test(X)?"access-denied":X===c.files_read_notFound_error()||Po.test(X)?"not-found":"generic"}function ko(X){switch(X){case"access-denied":return c.layout_fileTab_errorAccessDenied_label();case"not-found":return c.layout_fileTab_errorNotFound_label();case"generic":return c.layout_fileTab_errorGeneric_label()}}var Io=P("<!> <!>",1),Co=P("<!> <!> <!>",1),Fo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p> </p> <p class="text-xs"> </p></div>'),br=P('<div class="flex h-full items-center justify-center p-4 text-subtle"><p role="alert"> </p></div>'),So=P('<div class="flex h-full items-center justify-center text-subtle"><p> </p></div>'),xr=P('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),Do=P('<div class="flex items-center gap-3"><!> <!></div>'),To=P('<div class="flex flex-col h-full"><div class="flex-1 p-4 space-y-2"></div></div>'),Eo=P('<p class="text-xs"> </p>'),Ro=P("<li><!></li>"),Mo=P('<p class="text-xs mt-2"> </p> <ul class="flex flex-col items-center gap-1"></ul>',1),Uo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-2"><p class="text-danger" role="alert"> </p> <p class="text-xs font-mono"> </p> <!> <!></div>'),jo=P('<div class="flex flex-col items-center justify-center h-full text-subtle gap-3 p-4"><p> </p> <p class="text-xs break-all"> </p> <!></div>'),Vo=P('<div class="h-full overflow-auto p-4"><!></div>');function zo(X,w){if(new.target)return zt({component:zo,...X});Wt(w,!0);const ye=()=>ce(Ot,"$workspace",A),ot=()=>ce(_e,"$fileContentStore",A),re=()=>ce(E,"$fileLoadingStore",A),y=()=>ce(oe,"$fileSavingStore",A),ae=()=>ce(J,"$fileErrorStore",A),Pe=()=>ce(Z,"$fileErrorInfoStore",A),Fe=()=>ce(it,"$homeView$",A),we=()=>ce(nt,"$fileNotFoundCandidatesStore",A),ge=()=>ce(st,"$isFileBinaryStore",A),G=()=>ce(ut,"$isFileDirtyStore",A),Je=()=>ce(ue,"$fileLastUpdatedStore",A),z=()=>ce(Ee,"$ftChanges$",A),B=()=>ce(Bt,"$gutterRead$",A),se=()=>ce(Ve,"$lineWrapping",A),me=()=>ce(Be,"$diffIndicators",A),Se=()=>ce(Le,"$rootMediaPreview",A),[A,be]=ir(),De=r=>{var s=Io(),$=ne(s);{var C=de=>{var Ae=je(),qe=ne(Ae);Rt(qe,()=>Mt,(pt,xt)=>{xt(pt,{get icon(){return Ma},get label(){return e(he)},disabled:!0})}),l(de,Ae)};Q($,de=>{!e(_t)&&!e(b)&&!e(V)&&de(C)})}var le=p($,2);{var Re=de=>{{let Ae=n(()=>!e(Tt)||!e(Ye)),qe=n(()=>!e(b)&&(!e(Tt)||!e(Ye)));Ha(de,{embedded:!0,showFold:!1,showSplit:!1,get showPreview(){return e(Tt)},get previewEnabled(){return e(Ye)},onTogglePreview:()=>f(Ye,!e(Ye)),get showWrap(){return e(Ae)},get wrapEnabled(){return se()},onToggleWrap:()=>j.dispatch(sa()),get showDiff(){return e(qe)},get diffEnabled(){return me()},onToggleDiff:()=>j.dispatch(na())})}};Q(le,de=>{o().filePath&&!e(_t)&&!e(V)&&de(Re)})}l(r,s)},Ne=r=>{var s=je(),$=ne(s);{var C=le=>{var Re=Co(),de=ne(Re);{var Ae=We=>{var Ge=je(),dt=ne(Ge);{let yt=n(()=>c.layout_fileTab_goToChanges_tooltip());Rt(dt,()=>Mt,(Pt,$t)=>{$t(Pt,{get icon(){return ja},get label(){return e(yt)},onclick:Lr})})}l(We,Ge)};Q(de,We=>{e(Rr)&&We(Ae)})}var qe=p(de,2);{var pt=We=>{var Ge=je(),dt=ne(Ge);{let yt=n(()=>c.layout_fileTab_downloadFile_label()),Pt=n(()=>!e(wt)||e(lt));Rt(dt,()=>Mt,($t,Jt)=>{Jt($t,{get icon(){return jt},get label(){return e(yt)},onclick:Et,get disabled(){return e(Pt)}})})}l(We,Ge)};Q(qe,We=>{e(Qe)&&We(pt)})}var xt=p(qe,2);{let We=n(()=>c.layout_fileTab_deleteFile_tooltip());Rt(xt,()=>Mt,(Ge,dt)=>{dt(Ge,{get icon(){return Ua},get label(){return e(We)},onclick:Ar,destructive:!0})})}l(le,Re)};Q($,le=>{o().filePath&&!e(_t)&&!e(b)&&le(C)})}l(r,s)},Ve=qa(),Be=Ka();let o=ee(w,"tab",7),i=ee(w,"workspaceId",7),S=ee(w,"isActive",7),Te=ee(w,"isPanelFocused",7);pe(()=>{const r=i();if(!(!S()||!r||e(d)))return j.dispatch(ra(r,"files")),()=>j.dispatch(aa(r,"files"))});const d=n(()=>typeof o().data?.gitRootId=="string"?o().data.gitRootId:void 0),I=n(()=>typeof o().data?.gitRootPath=="string"?o().data.gitRootPath:void 0),b=n(()=>!!e(d)),W=n(()=>o().filePath?Ca(o().filePath,e(d)):o().filePath),M=Gr(e(W));pe(()=>{M.set(e(W))});const _e=ga(i(),M),E=ma(i(),M),oe=_a(i(),M),J=ha(i(),M),Z=wa(i(),M),it=Qa(i()),nt=ba(i(),M),st=xa(i(),M),ut=_r(i(),M),ue=ya(i(),M),Ee=Pa(i()),ze=pa(),fe=crypto.randomUUID(),Le=Sr(fe),mt=`file-gutter:${crypto.randomUUID()}`,Bt=$a(i(),mt),Ot=ka(i()),Oe=n(()=>ye()?.worktreePath||ye()?.repositoryPath||ye()?.path||null),Xe=n(ot),Ht=Xa();pe(()=>{e(Xe)!==null&&e(Xe)!==void 0&&Ht?.markContentLoaded()});const Ft=n(re),t=n(y),a=n(ae),u=n(()=>e(a)?$o(e(a)):"generic"),m=n(()=>e(a)?Ga(Pe()):null);let h=N(0),R=!1;pe(()=>{const r=Fe();if(!r||r.unavailable){R=!1;return}e(m)&&!R&&(R=!0,rr(()=>Ut(h)))});const O=5,D=n(()=>(we()??[]).slice(0,O)),V=n(ge),H=n(G),xe=n(Je),he=n(()=>e(t)?c.ui_saveIndicator_saving_tooltip():e(H)?c.ui_saveIndicator_autoSaving_tooltip():c.ui_saveIndicator_saved_tooltip());let $e=N(null),He=N(Zr([])),ke=N(null),St=N(void 0),Dt=N(void 0),Ye=N(!0);pe(()=>{const r=o().data?.line,s=o().data?.jumpTimestamp;!r||s!==void 0&&s===e(Dt)||(f(Dt,s,!0),f(St,{line:r},!0),f(Ye,!1))});const Ie=n(()=>e(d)?hr(o().filePath,e(I)):null),_t=n(()=>e(d)?!e(Ie):!!(o().filePath&&(Wa(o().filePath)||e(Oe)&&Na(o().filePath,e(Oe))))),ht=n(()=>o().filePath&&e(Oe)?er(o().filePath)?o().filePath:`${e(Oe)}/${o().filePath}`:null),ft=n(()=>!!o().filePath&&/\.pdf$/i.test(o().filePath)),vt=n(()=>!!o().filePath&&/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(o().filePath)),Qe=n(()=>i()&&/^[A-Za-z0-9._-]+$/.test(i())?hr(o().filePath,e(Oe)):null),Tr=n(()=>!e(d)&&e(Qe)?e(Qe).split("/").slice(0,-1).join("/"):void 0),qt=n(()=>e(ft)||e(vt)?e(Qe):null),nr=n(()=>e(d)&&e(vt)?{png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",webp:"image/webp",mp4:"video/mp4",webm:"video/webm"}[o().filePath?.split(".").pop()?.toLowerCase()??""]:void 0);pe(()=>{if(!S()||!e(d)||!e(Ie)||!e(nr))return;const r=crypto.randomUUID();return j.dispatch(Ir(fe,r,i(),e(Ie),{gitRootId:e(d),mimeType:e(nr)})),()=>j.dispatch(Cr(fe,r))});let lt=N(!1);const wt=n(()=>!!e(Qe)&&!e(Ft)&&(!e(vt)||e(ke)===e(Qe))),sr=n(()=>e(ke)&&i()?`workspace-file://${i()}/${e(ke).split("/").map(encodeURIComponent).join("/")}`:null),Kt=n(()=>o().filePath?ca(o().filePath):"plaintext"),Tt=n(()=>e(Kt)==="markdown");pe(()=>{if(!S()||e(ft)||e(d))return;const r=e(qt),s=o().filePath,$=i(),C=o().id;if(f(ke,null),!r||!s||!$)return;let le=!1;const Re=()=>!le&&i()===$&&o().id===C&&o().filePath===s;return(async()=>{let de=!1;try{de=(await Fa("file.stat",{workspaceId:$,path:r}))?.isFile===!0}catch{}if(!Re())return;if(de){f(ke,r,!0);return}if(!/\.(?:png|jpe?g|gif|webp|mp4|webm)$/i.test(r)){f(ke,r,!0);return}const{candidates:Ae,truncated:qe}=await Aa($,r);if(Re()){if(!qe&&Ae.length===1){j.dispatch(vr($,s,Ae[0],C));return}f(ke,r,!0)}})(),()=>{le=!0}});function Er(r,s){return!!(r.file===s||r.relativePath===s||r.relativePath&&s.endsWith("/"+r.relativePath)||r.file&&s.endsWith("/"+r.file)||r.relativePath&&r.relativePath.endsWith("/"+s)||r.file&&r.file.endsWith("/"+s))}const bt=n(()=>e(b)||!o().filePath?null:z().find(r=>Er(r,o().filePath))??null),Rr=n(()=>!!e(bt));pe(()=>{if(e(b))return;const r=i(),s=o().filePath,$=e(Oe);return()=>{if(!r||!s)return;const C=Zt.select(j.state,r,s);if(C?.kind!=="editable-text")return;const le=Gt(C.localContent),Re=_r.select(j.state,r,s),de=er(s)?s:$?`${$}/${s}`:null;Re&&de&&j.dispatch(pr(r,s,de,le))}}),pe(()=>{const r=o().filePath,s=e(ht),$=i();if(e(h),!S())return;const C=!e(d)&&!!r&&er(r)&&!e(Oe);r&&$&&!e(_t)&&!e(vt)&&!e(ft)&&!C&&(e(d)&&e(Ie)&&e(W)?j.dispatch(gr($,e(W),s??r,{gitRoot:{id:e(d),relativePath:e(Ie)}})):j.dispatch(gr($,r,s??r)))});function Mr(){return e(Xe)??""}function Ur(r){e(b)||e(V)||!o().filePath||!i()||!e(ht)||j.dispatch(va(i(),o().filePath,Gt(r)))}function jr(){if(e(b)||e(V)||!o().filePath||!e(ht)||e(Xe)===null||e(t))return;const r=Zt.select(j.state,i(),o().filePath);r?.kind==="editable-text"&&j.dispatch(pr(i(),o().filePath,e(ht),Gt(r.localContent)))}function Vr(r){const s=o().filePath;!s||!i()||(j.dispatch(fa(i(),s)),j.dispatch(vr(i(),s,r,o().id)))}pe(()=>{const r=o().filePath,s=e(bt);if(!r||!s){f(He,[],!0);return}if(!S())return;const $=i(),C=crypto.randomUUID();return j.dispatch(oa($,mt,C,{kind:"diffs",path:r,staged:s.stage==="staged"})),()=>{j.dispatch(ia($,mt,C))}}),pe(()=>{const r=B(),s=r?.result?.kind==="diffs"?r.result.chunks:[],$=s.find(C=>C.file===o().filePath)??s[0];f(He,$?Ba($.chunks.map(C=>({oldStart:C.oldStart,oldLines:C.oldLines,newStart:C.newStart,newLines:C.newLines,lines:C.lines.map(le=>(le.type===mr.Addition?"+":le.type===mr.Deletion?"-":" ")+le.content)}))):[],!0)});function zr(r){const s=/Mac|iPhone|iPad|iPod/.test(navigator.userAgent),$=Re=>Qr(r,Ja(Re),s);if($("editor.save")){r.preventDefault(),e(H)&&!e(t)&&jr();return}const C=$("editor.undo")?"undo":$("editor.redo")?"redo":$("editor.toggle-task-list")?"toggle-task-list":$("editor.copy")?"copy":$("editor.select-all")?"select-all":null;if(!C||e(b)&&C!=="copy"&&C!=="select-all")return;C!=="toggle-task-list"&&e($e)?.runShortcut(C)&&r.preventDefault()}function Lr(r){if(!o().filePath||!e(bt))return;const s=r?.metaKey||r?.ctrlKey||!1,C=r?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;j.dispatch(ua(i(),e(bt),{filePath:o().filePath,changeId:e(bt).id,openInAdjacentPanel:s,sourcePanelId:C}))}async function Et(){const r=e(Qe);if(!(e(b)||!r||!i()||!e(wt)||e(lt))){f(lt,!0);try{const s=await Ia(i(),r,e(Oe));!s?.success&&!s?.canceled&&Qt.error(s?.error?.message||c.layout_fileTab_downloadFailed_error())}catch{Qt.error(c.layout_fileTab_downloadFailed_error())}finally{f(lt,!1)}}}function Ar(){const r=e(ht);if(e(b)||!o().filePath||!i()||!r)return;const s=la(Zt.select(j.state,i(),o().filePath));if(!s){Qt.error(c.ui_reversibleActions_failed_error({message:c.fileExplorer_tree_undoUnavailable_error()}));return}j.dispatch(da(i(),o().filePath,{absolutePath:r,tabId:o().id,snapshot:s}))}pe(()=>{if(!ze||!S())return;const r={isDirty:!e(b)&&e(H),isSaving:!e(b)&&e(t)};rr(()=>{ze.registerActions({display:De,actions:Ne}),ze.registerState(r)})});var Wr={get tab(){return o()},set tab(r){o(r),te()},get workspaceId(){return i()},set workspaceId(r){i(r),te()},get isActive(){return S()},set isActive(r){S(r),te()},get isPanelFocused(){return Te()},set isPanelFocused(r){Te(r),te()},$set:Lt,$on:(r,s)=>At(w,r,s)},lr=je();rt("keydown",yr,r=>S()&&zr(r));var Nr=ne(lr);{var Br=r=>{var s=je(),$=ne(s);Pr($,()=>o().filePath,C=>{var le=je(),Re=ne(le);{var de=_=>{var v=Fo(),U=T(v),q=F(U,!0),L=p(U,2),Me=F(L,!0);x(v),k(Y=>{g(q,Y),g(Me,o().filePath)},[()=>c.layout_fileTab_outsideWorkspace_label()]),l(_,v)},Ae=_=>{var v=je(),U=ne(v);{var q=L=>{or(L,{get workspaceId(){return i()},get filePath(){return e(Ie)},get gitRootId(){return e(d)}})};Q(U,L=>{S()&&L(q)})}l(_,v)},qe=_=>{var v=je(),U=ne(v);{var q=Y=>{var K=br(),ie=T(K),Ue=F(ie,!0);x(K),k(ve=>g(Ue,ve),[()=>c.layout_fileTab_errorLoading_label()]),l(Y,K)},L=Y=>{Vt(Y,{get filePath(){return o().filePath},get sourceUrl(){return Se().url},allowDownload:!1})},Me=Y=>{var K=So(),ie=T(K),Ue=F(ie,!0);x(K),k(ve=>g(Ue,ve),[()=>c.layout_fileTab_preparing_label()]),l(Y,K)};Q(U,Y=>{Se()?.error?Y(q):Se()?.url?Y(L,1):Y(Me,-1)})}l(_,v)},pt=_=>{var v=je(),U=ne(v);{var q=L=>{or(L,{get workspaceId(){return i()},get filePath(){return e(qt)}})};Q(U,L=>{S()&&L(q)})}l(_,v)},xt=_=>{var v=br(),U=T(v),q=F(U,!0);x(v),k(L=>g(q,L),[()=>c.file_pdf_load_error()]),l(_,v)},We=_=>{{let v=n(()=>e(ke)??o().filePath),U=n(()=>!e(b)&&e(wt));Vt(_,{get filePath(){return e(v)},get sourceUrl(){return e(sr)},onDownload:Et,get allowDownload(){return e(U)},get downloading(){return e(lt)}})}},Ge=_=>{var v=xr(),U=T(v),q=F(U,!0);x(v),k(L=>g(q,L),[()=>c.layout_fileTab_preparing_label()]),l(_,v)},dt=_=>{var v=To(),U=T(v);Ct(U,20,()=>[...Array(20).keys()],q=>q,(q,L)=>{var Me=Do(),Y=T(Me);wr(Y,{class:"h-3 w-8 shrink-0"});var K=p(Y,2);wr(K,{class:"h-3",style:`width: ${30+Math.random()*60}%`}),x(Me),l(q,Me)}),x(U),x(v),l(_,v)},yt=_=>{{let v=n(()=>Za(e(m)));Ya(_,{get view(){return e(v)}})}},Pt=_=>{var v=Uo(),U=T(v),q=F(U,!0),L=p(U,2),Me=F(L,!0),Y=p(L,2);{var K=ve=>{var Ke=Eo(),ct=F(Ke,!0);k(()=>g(ct,e(a))),l(ve,Ke)};Q(Y,ve=>{e(u)==="generic"&&ve(K)})}var ie=p(Y,2);{var Ue=ve=>{var Ke=Mo(),ct=ne(Ke),Xt=F(ct,!0),dr=p(ct,2);Ct(dr,20,()=>e(D),kt=>kt,(kt,cr)=>{var Yt=Ro(),qr=T(Yt);Ce(qr,{variant:"link",size:"compact",class:"h-auto p-0 font-mono text-xs",onclick:()=>Vr(cr),children:(Kr,Lo)=>{Ze();var ur=tt();k(()=>g(ur,cr)),l(Kr,ur)},$$slots:{default:!0}}),x(Yt),l(kt,Yt)}),x(dr),k(kt=>g(Xt,kt),[()=>c.layout_fileTab_didYouMean_label()]),l(ve,Ke)};Q(ie,ve=>{e(D).length>0&&ve(Ue)})}x(v),k(ve=>{g(q,ve),g(Me,o().filePath)},[()=>ko(e(u))]),l(_,v)},$t=_=>{var v=jo(),U=T(v),q=F(U,!0),L=p(U,2),Me=F(L,!0),Y=p(L,2);{var K=ie=>{{let Ue=n(()=>!e(wt)||e(lt));Ce(ie,{variant:"secondary",size:"sm",onclick:Et,get disabled(){return e(Ue)},children:(ve,Ke)=>{Ze();var ct=tt();k(Xt=>g(ct,Xt),[()=>c.layout_fileTab_downloadFile_label()]),l(ve,ct)},$$slots:{default:!0}})}};Q(Y,ie=>{!e(b)&&e(Qe)&&ie(K)})}x(v),k(ie=>{g(q,ie),g(Me,o().filePath)},[()=>c.editor_fileViewer_binary_label()]),l(_,v)},Jt=_=>{const v=n(()=>o().filePath?.toLowerCase().endsWith(".svg"));var U=je(),q=ne(U);{var L=K=>{{let ie=n(()=>o().filePath||""),Ue=n(()=>!e(b)&&e(wt));Vt(K,{get filePath(){return e(ie)},get fileContent(){return e(Xe)},get language(){return e(Kt)},get isBinary(){return e(V)},onDownload:Et,get allowDownload(){return e(Ue)},get downloading(){return e(lt)}})}},Me=K=>{var ie=Vo(),Ue=T(ie);Oa(Ue,{get content(){return e(Xe)},get workspaceId(){return i()},get relativeMediaBase(){return e(Tr)},renderRichFencesAsCode:!0,renderDiagrams:!0}),x(ie),l(K,ie)},Y=K=>{var ie=Mr,Ue=Ur;{let ve=n(()=>me()?e(He):[]);$r(ar(K,{get value(){return ie()},set value(Ke){Ue(Ke)},get language(){return e(Kt)},get readOnly(){return e(b)},get fileName(){return o().filePath},get workspaceId(){return i()},get filePath(){return o().filePath},get lineWrapping(){return se()},get lineChanges(){return e(ve)},get jumpTo(){return e(St)},get externalContentVersion(){return e(xe)},get isPanelFocused(){return Te()}}),Ke=>f($e,Ke,!0),()=>e($e))}};Q(q,K=>{e(v)?K(L):e(Tt)&&e(Ye)?K(Me,1):K(Y,-1)})}l(_,U)},Hr=_=>{var v=xr(),U=T(v),q=F(U,!0);x(v),k(L=>g(q,L),[()=>c.layout_fileTab_preparing_label()]),l(_,v)};Q(Re,_=>{e(_t)?_(de):e(d)&&e(ft)&&e(Ie)?_(Ae,1):e(d)&&e(vt)?_(qe,2):e(ft)&&e(qt)?_(pt,3):e(ft)?_(xt,4):e(sr)?_(We,5):e(vt)?_(Ge,6):e(Ft)?_(dt,7):e(m)?_(yt,8):e(a)?_(Pt,9):e(V)?_($t,10):e(Xe)!==null?_(Jt,11):_(Hr,-1)})}l(C,le)}),l(r,s)};Q(Nr,r=>{o().filePath&&r(Br)})}l(X,lr);var Or=Nt(Wr);return be(),Or}export{zo as default};
@@ -1,3 +1,3 @@
1
- import{fE as H,Ix as o,nx as U,l$ as F,lS as G,sX as K}from"./CnZcDXmL.js";import{g as q,G as j,dS as V,cG as N,dr as w,dC as E,dN as M,cB as $,aB as Y}from"./BqkRycEV.js";import{l as X,R as z,E as J}from"./BpQOBsoR.js";function Q(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function we(e){const t=e.filter(Q).map(s=>({agent:s,activity:k(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>H(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function be(e){const t=e?.trim();return t?`${T}
1
+ import{fE as H,Ix as o,nx as U,l$ as F,lS as G,sX as K}from"./CicdOSYm.js";import{g as q,G as j,dS as V,cG as N,dr as w,dC as E,dN as M,cB as $,aB as Y}from"./CPYWKVyq.js";import{l as X,R as z,E as J}from"./CnJe4S2a.js";function Q(e){return!e.retiredAt&&!e.pendingDeleteAt&&e.status!=="deleted"}function k(e){const t=new Date(e.lastActivity??e.updatedAt??e.createdAt).getTime()||0,s=e.messages.at(-1)?.timestamp,r=s&&new Date(s).getTime()||0;return Math.max(t,r)}function we(e){const t=e.filter(Q).map(s=>({agent:s,activity:k(s),created:new Date(s.createdAt).getTime()||0})).sort((s,r)=>r.activity-s.activity||r.created-s.created||String(s.agent.id).localeCompare(String(r.agent.id)));return t.find(({agent:s})=>H(s)==="topLevel")?.agent??t[0]?.agent??null}const p="__chief__",L="New chat";function Z(e){const t=e?.trim();return!t||t===L||t==="New chat with Assistant"||t==="New chat with Intent"||t==="Chief of Staff"||t.startsWith("New thread ")}function ee(e){const t=e.name?.trim();if(e.nameExplicitlySet&&t)return t;const r=e.messages.find(l=>l.role==="user")??e.messages[0],c=r?q(r).trim():"";return!t||Z(t)?c||L:c||t}const te="chief-of-staff",se=6,T="## Assistant Runtime Identity\n\nYou are Intent's built-in Assistant. Operate at the app level with `ws.app.*` tools: manage workspaces, settings, specialists, navigation, and cross-workspace agents. You are not a repository coding agent. Treat generic coding-agent, workspace, spec, task, and delegation instructions as subordinate to this role.\n\nWhen the user requests repository work, create or open the appropriate workspace and hand the work to the appropriate specialist. Once you have enough repository or PR information, act through the app-level proposal flow instead of merely promising to verify, prepare, or hand off the work.\n\nShow workspaces, notes, files, agent conversations and repository links beside your conversation when they help the user. Share ordinary Markdown links to notes (intent://local/note/<noteId> or intent://local/<workspaceId>/note/<noteId>) workspace links (intent://local/workspace/<workspaceId>), workspace file and agent links, and HTTPS repository URLs; clicking opens a closable content panel while keeping chat visible. To show content automatically, call `ws.app.ui.navigate` with the same link or /workspace/<workspaceId>. Calling `ws.app.workspaces.open` also shows that workspace beside chat unless the user requests a new window. Each conversation has its own panel history. Workspaces show the same detail and agent chat as Home’s Workspaces tab. Earlier content remains available in that conversation’s panel header picker. Creating a note alone does not open it: explicitly navigate when you want to show it.\n\nWhen the user asks to transfer a project between devices, find the source workspace with `ws.app.workspaces.list` and call `ws.app.workspaces.transfer(id, { destination })`. Pass the user's destination name as the hint, or omit it so they can choose a saved device in the inline card. The source is the device serving this assistant conversation. The tool only proposes the transfer: wait for approval or cancellation in the card, and report completion only after the proposal is applied.";function be(e){const t=e?.trim();return t?`${T}
2
2
 
3
3
  ${t}`:T}const re=o.createSelector((e,t)=>{const s=e.backgroundHooks?.byWorkspaceId?.[t];return s?U(s.hooks):[]}),oe=o.createSelector((e,t)=>e.backgroundHooks?.byWorkspaceId?.[t]?.snapshotStatus??"loading"),O=o.createSelector((e,t)=>e.scriptMonitor?.byWorkspaceId[t]??F),Ae=o.createSelector((e,t,s)=>{const r=O.select(e,t);return r.status==="unsupported"?[]:r.monitors.filter(c=>c.agentId===s)}),u=o.createSelector((e,t,s)=>{const r=K(t,s);return e.agentSubscriptionUI.entries[r]??G}),ne=o.createSelector((e,t,s)=>u.select(e,t,s).subscriptions),ae=o.createSelector((e,t,s)=>u.select(e,t,s).eventSubscriptions??[]),ce=o.createSelector((e,t,s)=>u.select(e,t,s).delegationGroups),ve=o.createSelector((e,t,s)=>u.select(e,t,s).agentStatuses),ye=o.createSelector((e,t,s)=>u.select(e,t,s).waitingState),Ce=o.createSelector((e,t,s)=>u.select(e,t,s).wokenUpInfo);function ie(e){return[...new Set(e.filter(Boolean))]}const We=o.createSelector((e,t,s)=>{const r=u.select(e,t,s),c=[],l=new Set,i=n=>{for(const a of ie(n))l.has(a)||(l.add(a),c.push(a))},h=[...r.subscriptions].sort((n,a)=>n.createdAt.localeCompare(a.createdAt)||n.id.localeCompare(a.id));for(const n of h)n.delegationGroup?.awaitMode!=="all"&&i(n.actorIds);const g=new Map;for(const n of r.delegationGroups)n.awaitMode==="all"&&g.set(n.groupId,n);for(const n of g.values())i(n.expectedAgentIds);for(const n of h){const a=n.delegationGroup;a?.awaitMode==="all"&&!g.has(a.groupId)&&i(a.expectedAgentIds)}const d=new Set;for(const n of r.delegationGroups){for(const a of n.completedAgentIds)d.add(a);for(const a of n.deletedAgentIds)d.add(a);for(const[a,f]of Object.entries(n.agentStatuses))f==="completed"&&d.add(a)}for(const[n,a]of Object.entries(r.agentStatuses))a==="completed"&&d.add(n);const A=e.agentSessions?.byAgentId??{},v=new Set([...d].filter(n=>{const a=A[n];return!a||!j(V(a))})),y=new Map(c.map((n,a)=>[n,a])),C=n=>{const a=A[n];if(!a)return 2;if(a.attentionRequestKind==="blocker")return 0;if(a.attentionRequestKind==="discussion")return 1;if(v.has(n))return 4;const f=String(a.status).toLowerCase();return f==="responding"||f==="active"||f==="processing"?2:3},W=c.filter(n=>!v.has(n)).sort((n,a)=>C(n)-C(a)||(y.get(n)??0)-(y.get(a)??0));return{visible:r.snapshotStatus==="failed"||r.waitingState==="completed"||c.length>0||r.wokenUpInfo!==null,count:W.length,participantAgentIds:W}}),Te=o.createSelector((e,t,s)=>u.select(e,t,s).snapshotStatus),Ne=o.createSelector((e,t)=>{const s=`${t}:`,r=[];for(const c of Object.keys(e.agentSubscriptionUI.entries))c.startsWith(s)&&r.push(c.slice(s.length));return r});o.createSelector((e,t,s)=>{const r=ce.select(e,t,s);let c=0,l=0;for(const i of r)c+=i.expectedAgentIds.length,l+=i.completedAgentIds.length+i.deletedAgentIds.length;return{total:c,completed:l}});const Ee=o.createSelector(e=>{const t=X.select(e);if(!t||!z.select(e))return[];const s=new Set;for(const r of J.select(e,t)){const c=r.panes.find(l=>l.id===r.activePaneId);c?.type==="agent"&&c.agentId&&s.add(c.agentId)}return[...s].map(r=>({wsId:t,agentId:r}))}),P="pinned",le=64;function I(e){return e.trim().toLocaleLowerCase()}function R(e){return e===P}function Me(e,t){const s=e.trim();if(s.length===0)return{ok:!1,error:"empty"};if([...s].length>le)return{ok:!1,error:"tooLong"};const r=I(s);return r===P?{ok:!1,error:"reserved"}:t.some(c=>I(c)===r)?{ok:!1,error:"duplicate"}:{ok:!0,label:s}}function de(e){const t=new Map;for(const s of e){if(typeof s!="string"||R(s))continue;const r=s.trim();if(r.length===0)continue;const c=I(r);t.has(c)||t.set(c,s)}return[...t.values()].sort((s,r)=>s.localeCompare(r,void 0,{sensitivity:"base"}))}function _(e){const s=e.workspaceAgents?.byWorkspaceId?.[p]?.agentIds,r=s&&s.length>0?new Set(s.map(i=>String(i))):null,c=e.agentSessions?.agentIdsByWorkspace?.[p]??[],l=c.length>0?c.map(i=>e.agentSessions?.byAgentId?.[i]).filter(i=>!!i):Object.values(e.agentSessions?.byAgentId??{}).filter(i=>i.workspaceId===p);return r?l.filter(i=>r.has(String(i.id))):l}function D(e){return e.metadata?.specialist===te&&e.metadata?.chiefPromptVersion===se}function x(e){return Math.max(e.messages.length,e.messageCount??0)}function S(e){return{agentId:e.id,title:ee(e),isActive:e.isStreaming===!0||e.isProcessing===!0||e.isResponding===!0,messageCount:x(e),pinned:e.pinned===!0,retired:!!e.retiredAt}}function b(e){return _(e).filter(t=>!t.retiredAt)}function m(e,t){return k(t)-k(e)}const Le=o.createSelector(e=>e.sidebarNav.panelItem),Oe=o.createSelector(e=>e.sidebarNav.onboardingActive),Pe=o.createSelector(e=>e.sidebarNav.showCreateModal),Re=o.createSelector(e=>e.sidebarNav.createModalUsesHomeRepository),_e=o.createSelector(e=>e.sidebarNav.createModalPrefillRequest),B=o.createSelector(e=>N.select(e)?.capabilities.workspaceLabels===1),De=o.createSelector((e,t)=>w.select(e,t)?.label??null),xe=o.createSelector(e=>de(E.select(e).map(t=>t.label))),pe=["id","label"],Be=o.createSelector((e,t)=>B.select(e)&&M.select(e,t,pe)!==null),ue=o.createSelector(e=>N.select(e)?.capabilities.workspaceAutoArchiveOptOut===1),ge=o.createSelector(e=>(e.sidebarNav.autoArchiveIdleAfterDays??0)>0),He=o.createSelector((e,t)=>w.select(e,t)?.autoArchiveDisabled===!0),fe=["id","autoArchiveDisabled"],Ue=o.createSelector((e,t)=>{if(!ue.select(e)||!ge.select(e))return!1;const s=w.select(e,t);return!s||s.isRemote===!0||s.environmentConfig?.type==="remote"?!1:M.select(e,t,fe)!==null}),Fe=o.createSelector(e=>e.sidebarNav.pinnedWorkspaceIds),Ge=o.createSelector(e=>B.select(e)?E.select(e).filter(t=>R(t.label)).map(t=>t.id):e.sidebarNav.pinnedWorkspaceIds),Ke=o.createSelector((e,t)=>e.sidebarNav.multiSelectSelectedTabIdsByWorkspaceId[t]??["overview"]),qe=o.createSelector((e,t)=>e.sidebarNav.noteOrderByWorkspaceId[t]??[]),je=o.createSelector((e,t)=>e.sidebarNav.collapsedNoteIdsByWorkspaceId[t]??[]),Ve=o.createSelector((e,t)=>e.sidebarNav.expandedNoteIdsByWorkspaceId?.[t]??[]),$e=o.createSelector(e=>e.sidebarNav.chiefActiveAgentId),Ye=o.createSelector((e,t)=>{const s=e.agentSessions.byAgentId[t];if(s?.workspaceId!==p)return{hooks:0,monitors:0,subscriptions:0};const r=oe.select(e,p)==="ready"?re.select(e,p).filter(d=>d.agentId===t&&(d.state==="scheduled"||d.state==="running")).length:s.waitingOnHooks?.length??0,c=$.select(e,p)==="ready"?Y.select(e,p,t).filter(d=>d.state==="active").length:s.waitingOnPrMonitors?.length??0,l=O.select(e,p),i=l.status==="unsupported"?0:l.status==="ready"?l.monitors.filter(d=>d.agentId===t&&d.state==="active").length:s.waitingOnScriptMonitors?.length??0,h=s.isWaitingForOtherAgents===!1?0:s.waitingForAgentIds?.length??(ne.select(e,p,t).length||(s.isWaitingForOtherAgents?1:0)),g=ae.select(e,p,t).filter(d=>d.subscriberAgentId===t).length;return{hooks:r,monitors:c+i,subscriptions:h+g}}),Xe=o.createSelector(e=>e.sidebarNav.statsOverlayOpen),he=o.createSelector(e=>b(e).sort((t,s)=>+(s.pinned===!0)-+(t.pinned===!0)||m(t,s)).map(S)),Se=o.createSelector(e=>_(e).filter(t=>!!t.retiredAt).sort(m).map(S)),ze=o.createSelector(e=>[...he.select(e),...Se.select(e)]),Je=o.createSelector(e=>{const t=b(e).filter(D).sort(m)[0];return t?S(t):null}),Qe=o.createSelector(e=>{const t=b(e).filter(s=>x(s)===0&&!s.lastMessageId&&D(s)).sort(m)[0];return t?S(t):null});export{Oe as A,Le as B,se as C,L as D,Ge as E,Se as F,Qe as G,O as H,Pe as I,Xe as J,Te as K,Ne as L,ye as M,Ce as N,He as O,P,je as Q,Ve as R,De as S,xe as T,qe as U,Me as V,le as W,te as a,p as b,be as c,Q as d,We as e,ve as f,ne as g,ze as h,R as i,Ye as j,re as k,oe as l,Ue as m,Be as n,$e as o,he as p,_e as q,we as r,Ae as s,Re as t,Je as u,ce as v,Ee as w,B as x,Fe as y,Ke as z};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./CTjSHpOw.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,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);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 U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){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="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BdNiI0PS.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,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);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 U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){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="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.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:X})}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(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),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()+`