@intent-hq/web 2.357.4 → 2.358.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 (222) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DjAk5kVg.js → -kRuCO2W.js} +1 -1
  3. package/web/app/immutable/chunks/{GDe3-FMi.js → 4qV-3jgp.js} +1 -1
  4. package/web/app/immutable/chunks/{BYJ8RYZY.js → 51mPy8SN.js} +1 -1
  5. package/web/app/immutable/chunks/{Oyv13Qiy.js → 5uoxxRrI.js} +1 -1
  6. package/web/app/immutable/chunks/{DG3WDlq-.js → 6M8_bOmN.js} +1 -1
  7. package/web/app/immutable/chunks/{Bh1vUt9d.js → A6hJVKP1.js} +1 -1
  8. package/web/app/immutable/chunks/{DMHwvyvz.js → AXctOpQN.js} +1 -1
  9. package/web/app/immutable/chunks/B--u_2Nc.js +12 -0
  10. package/web/app/immutable/chunks/{VhDocpDM.js → B1YqGJC0.js} +4 -4
  11. package/web/app/immutable/chunks/{CepTMMxo.js → B21KgEqG.js} +1 -1
  12. package/web/app/immutable/chunks/{BWTqffIS.js → B39I5OLS.js} +1 -1
  13. package/web/app/immutable/chunks/{BfC3EYEu.js → B72tYG46.js} +4 -4
  14. package/web/app/immutable/chunks/{D5P99waS.js → B7XrY5h-.js} +1 -1
  15. package/web/app/immutable/chunks/{CidDuwj5.js → BAPNccEM.js} +1 -1
  16. package/web/app/immutable/chunks/{WI2rU6Dw.js → BAnyU7RO.js} +4 -4
  17. package/web/app/immutable/chunks/{D52fecD7.js → BCRcMJ-W.js} +1 -1
  18. package/web/app/immutable/chunks/{6nEKsd4m.js → BDS5fuDA.js} +3 -3
  19. package/web/app/immutable/chunks/{BPRVG6k-.js → BECt4TTe.js} +1 -1
  20. package/web/app/immutable/chunks/{Di-it7y2.js → BEwavXhY.js} +1 -1
  21. package/web/app/immutable/chunks/{D1LanoIo.js → BGUCuT7q.js} +1 -1
  22. package/web/app/immutable/chunks/{CDLLVu20.js → BI5bMZSW.js} +1 -1
  23. package/web/app/immutable/chunks/{B4WNkghA.js → BJzXpdtH.js} +1 -1
  24. package/web/app/immutable/chunks/{yb3Co1vF.js → BK68KdNc.js} +1 -1
  25. package/web/app/immutable/chunks/{DhnPdhLH.js → BOz86KDw.js} +1 -1
  26. package/web/app/immutable/chunks/{B6b75DQb.js → BQ8X2LHt.js} +1 -1
  27. package/web/app/immutable/chunks/{CCPIWPlX.js → BUq4flUY.js} +3 -3
  28. package/web/app/immutable/chunks/{DnSTzyB_.js → BYPGFyPj.js} +1 -1
  29. package/web/app/immutable/chunks/{TJb4C4BX.js → B_8PQmWM.js} +1 -1
  30. package/web/app/immutable/chunks/{Bmp026-E.js → Bafh2cjd.js} +1 -1
  31. package/web/app/immutable/chunks/{CUENfhIj.js → BdYsGCQ_.js} +1 -1
  32. package/web/app/immutable/chunks/{DgTfJBBV.js → BeYq4r24.js} +1 -1
  33. package/web/app/immutable/chunks/{C9UpJBBj.js → BfQXVs1y.js} +1 -1
  34. package/web/app/immutable/chunks/{DpAflFhf.js → BfkeWNeb.js} +1 -1
  35. package/web/app/immutable/chunks/{Y-OyMtSc.js → BgRBcaUo.js} +1 -1
  36. package/web/app/immutable/chunks/{C9AQUTrX.js → BhL5eL8L.js} +1 -1
  37. package/web/app/immutable/chunks/{BRg3yx4t.js → BjAL1UGr.js} +1 -1
  38. package/web/app/immutable/chunks/BkA84tNB.js +1 -0
  39. package/web/app/immutable/chunks/{CrI50RYR.js → BlcLvSv0.js} +1 -1
  40. package/web/app/immutable/chunks/{uEUD23Io.js → Bmbt3TeR.js} +1 -1
  41. package/web/app/immutable/chunks/{C9Gi_ykP.js → Bmq2l9Xx.js} +1 -1
  42. package/web/app/immutable/chunks/{Baxo-p4A.js → BoLczGrE.js} +1 -1
  43. package/web/app/immutable/chunks/{BuUBjVar.js → BoTvEsBS.js} +1 -1
  44. package/web/app/immutable/chunks/{szAtw5TB.js → BoZRF0Rb.js} +2 -2
  45. package/web/app/immutable/chunks/{DGyBq8td.js → BonEtgBU.js} +1 -1
  46. package/web/app/immutable/chunks/{D9ihrtxc.js → BrZfxmOm.js} +1 -1
  47. package/web/app/immutable/chunks/{DaFADtX2.js → Bre5dDRa.js} +1 -1
  48. package/web/app/immutable/chunks/{wDOMtmLO.js → Bt2zHtMa.js} +4 -4
  49. package/web/app/immutable/chunks/{CevkAW-G.js → Bu2DF6bU.js} +1 -1
  50. package/web/app/immutable/chunks/{CiytRxeL.js → BuuNmCxr.js} +1 -1
  51. package/web/app/immutable/chunks/{C2J91Ybl.js → Bwi005HJ.js} +1 -1
  52. package/web/app/immutable/chunks/{DvU6Xs6d.js → BxMfB3uU.js} +1 -1
  53. package/web/app/immutable/chunks/{DJGM2j6m.js → C-NPSxo2.js} +1 -1
  54. package/web/app/immutable/chunks/{B_VFEM89.js → C1sOJyFR.js} +1 -1
  55. package/web/app/immutable/chunks/{BWvY_DCM.js → C3RH3nH_.js} +1 -1
  56. package/web/app/immutable/chunks/{BOZgIk7Z.js → C3lgXrJt.js} +1 -1
  57. package/web/app/immutable/chunks/{6eRayZXD.js → C3rj6Dod.js} +1 -1
  58. package/web/app/immutable/chunks/{D3EfSPo3.js → C4Mn0Hb-.js} +1 -1
  59. package/web/app/immutable/chunks/{BbN1PgGi.js → C4eFP2Zv.js} +1 -1
  60. package/web/app/immutable/chunks/{AyjU69sJ.js → C7xPtEkO.js} +1 -1
  61. package/web/app/immutable/chunks/{uuMWQrcj.js → C9LROoRU.js} +31 -31
  62. package/web/app/immutable/chunks/{BQyqxanw.js → C9OoGyJu.js} +1 -1
  63. package/web/app/immutable/chunks/{CdvjbMBZ.js → CB6GZsrQ.js} +1 -1
  64. package/web/app/immutable/chunks/{D0KK05nQ.js → CD4BYSPy.js} +1 -1
  65. package/web/app/immutable/chunks/{B_A7paAH.js → CDVUC5qK.js} +1 -1
  66. package/web/app/immutable/chunks/{CKjYWqEJ.js → CE70dsdv.js} +1 -1
  67. package/web/app/immutable/chunks/{DJ2tjGUh.js → CEGk06kt.js} +2 -2
  68. package/web/app/immutable/chunks/{tPMekvvd.js → CFa2NaXM.js} +1 -1
  69. package/web/app/immutable/chunks/{CApCUeix.js → CHFBgXBI.js} +3 -3
  70. package/web/app/immutable/chunks/{C7b-eHjB.js → CIkMa8dp.js} +1 -1
  71. package/web/app/immutable/chunks/{CmcfBlnY.js → CKI1_bv0.js} +1 -1
  72. package/web/app/immutable/chunks/{DxlrzlUO.js → CKte-e5A.js} +1 -1
  73. package/web/app/immutable/chunks/{CjlM36lq.js → CLXYd9_V.js} +1 -1
  74. package/web/app/immutable/chunks/{D7dG8IxI.js → CM4ereyg.js} +1 -1
  75. package/web/app/immutable/chunks/{COHdP7EQ.js → CM_58O-V.js} +1 -1
  76. package/web/app/immutable/chunks/{fsmCJ9E9.js → CQKd4mJk.js} +1 -1
  77. package/web/app/immutable/chunks/{BWf1NdbK.js → CQhHtQK8.js} +1 -1
  78. package/web/app/immutable/chunks/{BD71gD4J.js → CSHLIIcV.js} +1 -1
  79. package/web/app/immutable/chunks/{Br91V8RL.js → CSK-Ks7E.js} +2 -2
  80. package/web/app/immutable/chunks/{DliGSI4f.js → CSQeGAbZ.js} +1 -1
  81. package/web/app/immutable/chunks/{BHWZ3Etq.js → CU48trLA.js} +1 -1
  82. package/web/app/immutable/chunks/{DqSulugZ.js → CV1tpNrG.js} +1 -1
  83. package/web/app/immutable/chunks/{DNtNjvDe.js → CVK5BOxJ.js} +1 -1
  84. package/web/app/immutable/chunks/{CgYlJivn.js → CWq1oZWc.js} +1 -1
  85. package/web/app/immutable/chunks/{DJQD2qGi.js → CXak2CWS.js} +1 -1
  86. package/web/app/immutable/chunks/{Bj7EqZg1.js → CY8reJZf.js} +1 -1
  87. package/web/app/immutable/chunks/{Dm9nSbXn.js → Ca9Vj8X7.js} +1 -1
  88. package/web/app/immutable/chunks/{Dk3D2qRF.js → CaSPRIlD.js} +1 -1
  89. package/web/app/immutable/chunks/{B--8cA8U.js → Cbqe96Su.js} +1 -1
  90. package/web/app/immutable/chunks/CdSvrLOZ.js +1 -0
  91. package/web/app/immutable/chunks/{BL1a9dAQ.js → CdjS2YHF.js} +1 -1
  92. package/web/app/immutable/chunks/{TWlQnI1a.js → CevP3sLy.js} +1 -1
  93. package/web/app/immutable/chunks/{BCqeyLEa.js → Cgbm4X7X.js} +1 -1
  94. package/web/app/immutable/chunks/{B3w_tv0r.js → Chs5DYDz.js} +1 -1
  95. package/web/app/immutable/chunks/{DdYYYzyf.js → CiDOKjBy.js} +1 -1
  96. package/web/app/immutable/chunks/{BbWt0c2Q.js → CjuCfT-H.js} +1 -1
  97. package/web/app/immutable/chunks/{Dw1fJq7X.js → Cl6etYZ6.js} +1 -1
  98. package/web/app/immutable/chunks/{CuG3zmBQ.js → Cld1FvNn.js} +1 -1
  99. package/web/app/immutable/chunks/{DZcwYGS9.js → Coz3Oj0D.js} +1 -1
  100. package/web/app/immutable/chunks/{BTTKWVvN.js → Cp-V-kX1.js} +1 -1
  101. package/web/app/immutable/chunks/{ByhfeSoA.js → CpjcO2UG.js} +1 -1
  102. package/web/app/immutable/chunks/{BkMPf-hH.js → CrVg-aIz.js} +1 -1
  103. package/web/app/immutable/chunks/{BRnEHgHa.js → D-WYdZmt.js} +1 -1
  104. package/web/app/immutable/chunks/{CYhYk9vg.js → D0OCVTi-.js} +3 -3
  105. package/web/app/immutable/chunks/{C2OZB732.js → D11PDukO.js} +1 -1
  106. package/web/app/immutable/chunks/{DTSeldrl.js → D1EdV32Z.js} +3 -3
  107. package/web/app/immutable/chunks/{CfAeME9p.js → D22mDMme.js} +1 -1
  108. package/web/app/immutable/chunks/{DNj5HeWT.js → D2HdgcKm.js} +1 -1
  109. package/web/app/immutable/chunks/{1aTCAbgv.js → D4JuvJNp.js} +1 -1
  110. package/web/app/immutable/chunks/{DY9qQwsB.js → D6fddbvu.js} +1 -1
  111. package/web/app/immutable/chunks/D6jebcOi.js +1 -0
  112. package/web/app/immutable/chunks/{D46pT3zv.js → D7NtVhAr.js} +1 -1
  113. package/web/app/immutable/chunks/{C2fVGsLZ.js → D7lNUU6C.js} +1 -1
  114. package/web/app/immutable/chunks/{DhYZ_jqj.js → D83kA8oL.js} +2 -2
  115. package/web/app/immutable/chunks/{uZOAfSHR.js → D90JUNRF.js} +1 -1
  116. package/web/app/immutable/chunks/{fvC-6LgA.js → D98guX46.js} +1 -1
  117. package/web/app/immutable/chunks/{kDhfBVjP.js → D9pex3XI.js} +1 -1
  118. package/web/app/immutable/chunks/{DMAj9PUV.js → DC7_gAhS.js} +1 -1
  119. package/web/app/immutable/chunks/{BetmOerX.js → DEnGZxZ_.js} +1 -1
  120. package/web/app/immutable/chunks/{BhB8N3fb.js → DFPzxECW.js} +1 -1
  121. package/web/app/immutable/chunks/{0fyWevd4.js → DH2Upu6c.js} +1 -1
  122. package/web/app/immutable/chunks/{DEMIUKCI.js → DHlDoleO.js} +1 -1
  123. package/web/app/immutable/chunks/{CJ5wd9GV.js → DIPuiSIu.js} +1 -1
  124. package/web/app/immutable/chunks/{ChNn4wkV.js → DJ0Jx38f.js} +1 -1
  125. package/web/app/immutable/chunks/{DFHDo6Bi.js → DJ_p0OFU.js} +1 -1
  126. package/web/app/immutable/chunks/{7VnBiBId.js → DLimNxdW.js} +1 -1
  127. package/web/app/immutable/chunks/{DpklRiU5.js → DMFMx3nl.js} +1 -1
  128. package/web/app/immutable/chunks/{CjYf-qr2.js → DMXfYyb6.js} +1 -1
  129. package/web/app/immutable/chunks/{DuTm84a7.js → DN7oXRlP.js} +1 -1
  130. package/web/app/immutable/chunks/{CkxlqZls.js → DPKwA49z.js} +2 -2
  131. package/web/app/immutable/chunks/{KoP_1TPv.js → DPk0hNVC.js} +1 -1
  132. package/web/app/immutable/chunks/{B_j5bBwR.js → DQqi7m2D.js} +1 -1
  133. package/web/app/immutable/chunks/{_XUW51Cy.js → DR11idWf.js} +1 -1
  134. package/web/app/immutable/chunks/{C4URXf9z.js → DSqWFvtc.js} +1 -1
  135. package/web/app/immutable/chunks/{BqRgQbJq.js → DVgQbSSY.js} +1 -1
  136. package/web/app/immutable/chunks/{vgBqJ0W5.js → DVmH_mdJ.js} +1 -1
  137. package/web/app/immutable/chunks/{BegNZsrj.js → DZ_5eRdK.js} +1 -1
  138. package/web/app/immutable/chunks/{D48YW7ZL.js → DZmWXrCy.js} +2 -2
  139. package/web/app/immutable/chunks/{Cp3ZOsmE.js → D_6coCxv.js} +1 -1
  140. package/web/app/immutable/chunks/{DeM2gg0S.js → DbmNxzez.js} +1 -1
  141. package/web/app/immutable/chunks/{DLVAkJxA.js → De-23Gnq.js} +1 -1
  142. package/web/app/immutable/chunks/{p6tdR-bF.js → De3GtDyW.js} +1 -1
  143. package/web/app/immutable/chunks/{CyVE_a1Z.js → DfFnGsMp.js} +1 -1
  144. package/web/app/immutable/chunks/{CgH2fhQZ.js → DgCFRQUb.js} +1 -1
  145. package/web/app/immutable/chunks/{Cn80JY_U.js → DhuTnbBI.js} +1 -1
  146. package/web/app/immutable/chunks/{CB1RbuBr.js → Di6UqIba.js} +1 -1
  147. package/web/app/immutable/chunks/{nwV8pNbJ.js → DifIxf0d.js} +1 -1
  148. package/web/app/immutable/chunks/{yrnucJGA.js → DkHPIJea.js} +1 -1
  149. package/web/app/immutable/chunks/{DNNI3gyK.js → DlJukBla.js} +1 -1
  150. package/web/app/immutable/chunks/{BTU_oKHo.js → DlQfuVhT.js} +1 -1
  151. package/web/app/immutable/chunks/{NUieU9w-.js → DlX8LW3G.js} +1 -1
  152. package/web/app/immutable/chunks/{Bc6DrDuw.js → DmSaqClG.js} +1 -1
  153. package/web/app/immutable/chunks/{C22dT4UV.js → DokMbojI.js} +1 -1
  154. package/web/app/immutable/chunks/{C3rfyt9G.js → DrzNBKRX.js} +1 -1
  155. package/web/app/immutable/chunks/{yurXhKKF.js → Ds6w291j.js} +1 -1
  156. package/web/app/immutable/chunks/{Bggds_Lj.js → DtBQtTbR.js} +1 -1
  157. package/web/app/immutable/chunks/{D7mXebVR.js → DusCCxOz.js} +1 -1
  158. package/web/app/immutable/chunks/{F6JYuVa2.js → DvOPTg8o.js} +1 -1
  159. package/web/app/immutable/chunks/{DBLkjlmS.js → DxjLRZie.js} +1 -1
  160. package/web/app/immutable/chunks/{BLsWj6oF.js → DyY04EMd.js} +1 -1
  161. package/web/app/immutable/chunks/{CWfbH15T.js → DzV2tP7D.js} +1 -1
  162. package/web/app/immutable/chunks/{CJsbK-x_.js → EIfr2WPF.js} +1 -1
  163. package/web/app/immutable/chunks/{C6U9O50r.js → EUhChSgv.js} +1 -1
  164. package/web/app/immutable/chunks/{CP1rOWJf.js → HTMQjphG.js} +1 -1
  165. package/web/app/immutable/chunks/{D2qgPGPl.js → Hn8VNjVU.js} +1 -1
  166. package/web/app/immutable/chunks/{BMFkTdqL.js → MVAiW-hJ.js} +1 -1
  167. package/web/app/immutable/chunks/OnVg69qn.js +1 -0
  168. package/web/app/immutable/chunks/{BrYqzKAn.js → QThbrY7P.js} +1 -1
  169. package/web/app/immutable/chunks/{B2dQCxg7.js → QoEJNfmE.js} +2 -2
  170. package/web/app/immutable/chunks/{45S952xd.js → RXp9Ya1-.js} +1 -1
  171. package/web/app/immutable/chunks/{CV_50DRv.js → SvsTsrhb.js} +1 -1
  172. package/web/app/immutable/chunks/{BE2RLndQ.js → Vl66GswY.js} +1 -1
  173. package/web/app/immutable/chunks/{DdLb4YD1.js → _Ak2VoUq.js} +1 -1
  174. package/web/app/immutable/chunks/{m9ZCGvto.js → _NdW2WBC.js} +2 -2
  175. package/web/app/immutable/chunks/{DoP1t9d2.js → _bOTv1mB.js} +1 -1
  176. package/web/app/immutable/chunks/{D05xLrNx.js → d0funJ1P.js} +1 -1
  177. package/web/app/immutable/chunks/{C7yU1Im3.js → ek2C_PyH.js} +1 -1
  178. package/web/app/immutable/chunks/{Cu8PqUia.js → ev7flkaM.js} +1 -1
  179. package/web/app/immutable/chunks/{BMje4Ns7.js → evZTPwS7.js} +4 -4
  180. package/web/app/immutable/chunks/{B96xkBqi.js → gfWJw24O.js} +1 -1
  181. package/web/app/immutable/chunks/{BavSfKsp.js → i4GmiVMD.js} +1 -1
  182. package/web/app/immutable/chunks/ikBj1eYj.js +1 -0
  183. package/web/app/immutable/chunks/{-rkW0Q6N.js → pgv9jNmm.js} +1 -1
  184. package/web/app/immutable/chunks/{Cnd1Toz7.js → pwWESNJZ.js} +1 -1
  185. package/web/app/immutable/chunks/{COjr4Q76.js → rTUEOx0p.js} +2 -2
  186. package/web/app/immutable/chunks/{wbi8geh_.js → uFuCUyKk.js} +1 -1
  187. package/web/app/immutable/chunks/{DXWj1WUy.js → v1s2zbkS.js} +1 -1
  188. package/web/app/immutable/chunks/{Zl6q5v_F.js → v_4lRRTK.js} +1 -1
  189. package/web/app/immutable/chunks/{DuwPQUhd.js → x3PmW7lX.js} +1 -1
  190. package/web/app/immutable/chunks/{C2sVpxj-.js → xe2H3EkW.js} +2 -2
  191. package/web/app/immutable/chunks/{C9iqPxLd.js → yiVXShkh.js} +1 -1
  192. package/web/app/immutable/chunks/{C9rtksN7.js → zK_pBQnY.js} +1 -1
  193. package/web/app/immutable/chunks/{zfFEy871.js → zgW9h7_p.js} +2 -2
  194. package/web/app/immutable/entry/{app.Kv0DFQvR.js → app.CbA16NuX.js} +2 -2
  195. package/web/app/immutable/entry/start.Bk8Z1djZ.js +1 -0
  196. package/web/app/immutable/nodes/{0.CnX0gjVy.js → 0.BasYUO8v.js} +1 -1
  197. package/web/app/immutable/nodes/{1.BDneWl1s.js → 1.CIO3OA-k.js} +1 -1
  198. package/web/app/immutable/nodes/{10.DZFL5_cQ.js → 10.CFi8hf1p.js} +1 -1
  199. package/web/app/immutable/nodes/{12.zW0eyaJh.js → 12.5Zegs-e7.js} +1 -1
  200. package/web/app/immutable/nodes/{13.BC8MED3o.js → 13.C6rcyOvO.js} +1 -1
  201. package/web/app/immutable/nodes/{14.DHFGIJTR.js → 14.BshK7qxH.js} +1 -1
  202. package/web/app/immutable/nodes/{15.BMXR1gHR.js → 15.Xbhs2JLI.js} +1 -1
  203. package/web/app/immutable/nodes/{16.vNaF6DA8.js → 16.D1Kda7eS.js} +1 -1
  204. package/web/app/immutable/nodes/{17.MrvR2td2.js → 17.BWDMPbmT.js} +1 -1
  205. package/web/app/immutable/nodes/{18.CaanBxcs.js → 18.C5ulMwTp.js} +2 -2
  206. package/web/app/immutable/nodes/{2.DKpY1NjB.js → 2.BNqRZUPf.js} +11 -11
  207. package/web/app/immutable/nodes/{3.C8i4_bLO.js → 3.Cvuu_muM.js} +1 -1
  208. package/web/app/immutable/nodes/{4.AseZck_W.js → 4.DN_ujY3l.js} +1 -1
  209. package/web/app/immutable/nodes/{5.CK86dPa5.js → 5.Dec4Arss.js} +1 -1
  210. package/web/app/immutable/nodes/{6.cni0i0ME.js → 6.DpEHMH4c.js} +1 -1
  211. package/web/app/immutable/nodes/{7.DCy8OShP.js → 7.Dv3u39NY.js} +1 -1
  212. package/web/app/immutable/nodes/{8.DQ-1j6VE.js → 8.J1fqiqGl.js} +4 -4
  213. package/web/app/immutable/nodes/{9.DDnJ4KMi.js → 9.Du0PNcOn.js} +5 -5
  214. package/web/app/version.json +1 -1
  215. package/web/index.html +15 -15
  216. package/web/app/immutable/chunks/9bhdf_gz.js +0 -1
  217. package/web/app/immutable/chunks/BGikh8Vc.js +0 -1
  218. package/web/app/immutable/chunks/BbcaUswI.js +0 -1
  219. package/web/app/immutable/chunks/Bh2TfD77.js +0 -1
  220. package/web/app/immutable/chunks/BztjFXg4.js +0 -12
  221. package/web/app/immutable/chunks/D3ME3iof.js +0 -1
  222. package/web/app/immutable/entry/start.YEAegS9Y.js +0 -1
@@ -1,4 +1,4 @@
1
- import{Il as V,II as r,rR as Ne,nB as f,Bm as De,y8 as y,qz as xe,nA as b,Bg as Be,i as z,ro as J,Bh as X,e as je,nn as Z,A as He,rw as A,hf as Fe,KT as qe,k as We,mB as Ue,hb as H,D as Ke}from"./fvC-6LgA.js";import{k as $e}from"./uXuxG9cN.js";import{l as Qe,s as Ye}from"./Cnd1Toz7.js";import{cj as Ge,c1 as w,cE as Ve,ca as k,b_ as I,cv as C,cN as ee,cM as ze,cD as Je,b$ as Xe,bv as Ze,m as et,G as tt,dT as nt,dD as te,ax as ot,cm as rt,ds as ne,cK as st,cL as ct,cP as at}from"./COHdP7EQ.js";import{P as it,c as lt}from"./BvFAWM27.js";import{bm as s}from"./BkP7iWmk.js";import{t as dt}from"./EFalm4kN.js";import{u as ut,x as ft}from"./BCqeyLEa.js";function pt(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const a=e.lastIndexOf("/"),c=a>=0?e.slice(a+1):"",i=o.has(c)?e.slice(0,a):e;return t===null?i:`${i}/${t}`}const _t={major:5,minor:2};function mt(e){const{major:t,minor:n}=_t;return $e(e,t,n)}function T(e,t,n){const o=V(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function L(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const a=t(e.slice(0,o.index)),c=o[1].toLowerCase();return a?`${a} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function ht(e,t){return JSON.stringify([t||null,e])}const gt=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),qn=r.createSelector((e,t,n)=>gt.select(e,n)[t]),Wn=r.createSelector(e=>e.providerModels?.clearEpoch??0),Un=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),bt=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[ht(o,n),{providerId:o,workspaceId:n}])))),Kn=r.createSelector(e=>Object.keys(bt.select(e)).sort()),vt=r.createSelector((e,t,n)=>Ne(e.providerModels?.learnedNames??{},t,n)),$n=r.createSelector(e=>e.providerModels.learnedNames),St={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},Mt=new Map(Object.entries(St).map(([e,t])=>[t,e]));function yt(e,t){const n=Mt.get(t);return n===void 0?void 0:e?.providers[n]}function Qn(e,t){const n=yt(e,t);return n?.available===!0&&oe(t,n.authenticated)}const Yn=new Set(["claude-code"]);function oe(e,t){return t!==!1}const F=new WeakMap,re=r.createSelector(e=>{if(!Ge.select(e))return e.agentAvailability.providerStatusMap;const t=e.providerCatalog?.providers;if(!t)return{};let n=F.get(t);return n||(n=Object.fromEntries(f(t).map(o=>[o.id,{available:!0}])),F.set(t,n)),n}),Gn=r.createSelector(e=>e.agentAvailability.providerLoadingMap),Vn=r.createSelector(e=>e.agentAvailability.providerCheckEpochMap),kt=r.createSelector(e=>e.agentAvailability.hasCheckedOnce),zn=r.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Jn=r.createSelector(e=>e.agentAvailability.npxStatus),Xn=r.createSelector(e=>e.agentAvailability.hiddenProviders),Zn=r.createSelector(e=>e.agentAvailability.discoveryError),eo=r.createSelector(e=>e.agentAvailability.discoveryRevision),to=r.createSelector(e=>e.agentAvailability.refreshModelsPending),no=r.createSelector(e=>e.agentAvailability.refreshModelsRevision),oo=r.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Ve.select(e):null),ro=r.createSelector((e,t)=>f(e.providerSettings.requests).filter(n=>n.sessionId===t)),so=r.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),co=r.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ao=r.createSelector(e=>e.providerSettings.paths),io=r.createSelector(e=>e.providerSettings.pathsRevision),P=r.createSelector(e=>k.select(e)?I.select(e)?.defaultProviderId??"":e.model.defaultProviderId);r.createSelector((e,t)=>P.select(e)===t);const Pt=r.createSelector(e=>k.select(e)?Object.fromEntries((I.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),se=r.createSelector((e,t)=>{if(k.select(e))return I.select(e)?.enabledProviderIds?.includes(t)===!0;const n=e.providerSettings.nonDisableableProviderIds??[];return De(e.providerSettings.enabledProviders,t,{canBeDisabled:!n.includes(t)})}),ce=r.createSelector(e=>{if(k.select(e))return I.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,n=e.providerCatalog?f(e.providerCatalog.providers):[],o=new Set(n.filter(i=>se.select(e,i.id)).map(i=>i.id)),a=P.select(e),c=y(a);c&&t[c]!==!1&&o.add(c);for(const[i,l]of Object.entries(t))l&&o.add(i);return[...o]});function Ct(e,t){const n=ee.select(e,t);return k.select(e)?n?.visible!==!0:!!(n?.requiresEnvVar||n?.requiresFeatureCode)}const R=r.createSelector(e=>{const t=re.select(e);return ce.select(e).filter(n=>!Ct(e,n)&&t[n]?.available===!0)}),lo=r.createSelector((e,t)=>{const n=re.select(e),o=C.select(e,t);return R.select(e).filter(a=>C.select(e,a)!==o&&se.select(e,a)&&oe(a,n[a]?.authenticated))}),uo=r.createSelector(e=>kt.select(e)?R.select(e):ce.select(e)),fo=r.createSelector(e=>{const t=y(P.select(e));return R.select(e).includes(t)}),po=r.createSelector(e=>e.providerSettings.fastMode),_o=r.createSelector(e=>{const t=e.providerSettings.fastMode,n={...t?.confirmed};for(const[o,a]of Object.entries(t?.pending??{}))n[o]=a.enabled;return n}),mo=r.createSelector(e=>Object.values(_(e).defaults).some(t=>t.remoteLaunch!==void 0)),ho=r.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>ee.select(e,t)?.supportsFastMode===!0):[]),_=e=>e.providerSettings?.profiles??xe,go=r.createSelector(e=>ze.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),bo=r.createSelector((e,t)=>f(_(e).items).filter(n=>n.baseProviderId===t)),vo=r.createSelector(e=>[...new Set(f(_(e).items).map(t=>t.baseProviderId))]),So=r.createSelector(e=>_(e).defaults),Mo=r.createSelector((e,t)=>_(e).defaults[t]),yo=r.createSelector((e,t)=>b(_(e).items,t)),ko=r.createSelector(e=>_(e).revision),Po=r.createSelector(e=>_(e).loadStatus),Co=r.createSelector(e=>_(e).status),Io=r.createSelector(e=>_(e).activation),Eo=r.createSelector(e=>Object.fromEntries(f(_(e).mutations).map(t=>[t.id,t]))),It={},Ao=r.createSelector(e=>_(e).identity??It),Et={},wo=r.createSelector(e=>_(e).setups??Et),Ro=r.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),Oo=r.createSelector(e=>e.model),Lo=r.createSelector(e=>{const t=Je.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=P.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Xe.select(e):null])});function ae(e,t){return t??P.select(e)}const j=r.createSelector((e,t)=>{const n=ae(e,t),o=e.model.availableModelsProviderId===n?f(e.model.availableModels):[],a=I.select(e),c=k.select(e)?a?.defaultProviderId===n?a.defaultModelId:null:e.model.providerModels[n];return c||(R.select(e).includes(n)?Be(o):"")}),At=r.createSelector((e,t)=>j.select(e,t)!==""),To=r.createSelector(e=>P.select(e)!==""||At.select(e)),wt=r.createSelector(e=>e.model.availableModels),No=r.createSelector(e=>f(wt.select(e))),Do=r.createSelector(e=>e.model.availableModelsProviderId),ie=r.createSelector((e,t)=>{const n=ae(e,t);return e.model.loadingState[n]??null}),xo=r.createSelector((e,t)=>ie.select(e,t)?.status==="loading"),Bo=r.createSelector((e,t)=>{const n=ie.select(e,t);return n?.status!=="error"?null:n.error??null}),jo=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Ho=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Fo=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),qo=r.createSelector(e=>e.model.providerModels),Wo=r.createSelector(e=>e.model.defaultReasoningEffort),Uo=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Ko=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Rt=r.createSelector((e,t,n,o)=>{const a=d=>C.select(e,d,o),c=a(t),i=T(n,c,a),l=e.model?.availableModels;if(!o&&l&&(!c||c===e.model.availableModelsProviderId)){const d=b(l,n)??b(l,i);if(d)return d}const u=o?e.providerModels?.byWorkspaceId?.[o]?.[c]:e.providerModels?.byProviderId?.[c];return u?.models.find(d=>d.value===n)??u?.models.find(d=>T(d.value,c,a)===i)}),$o=r.createSelector((e,t,n,o)=>{const a=d=>C.select(e,d,o),c=a(t),i=T(n,c,a),l=d=>Rt.select(e,c,d,o)?.label,u=d=>vt.select(e,c,d);return L(n,l)??(i!==n?L(i,l):void 0)??u(n)??L(i,u)}),Ot=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=N(t);return b(n,o)?.effortLevels});function N(e){const t=V(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Lt=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const a=Ot.select(e,n);if(a)return a}if(t){const a=N(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(i=>N(i.value)===a)?.effortLevels}}}),Tt=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,a=o?.find(h=>h.path==="model.defaultProvider")?.value,c=o?typeof a=="string"?a:"":Ze.select(e),i=et(n,c),l=C.select(e,i??c,n.workspaceId),u=o?.find(h=>h.path==="model.providerDefaults")?.value,d=u&&typeof u=="object"?u[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":j.select(e,l));return Lt.select(e,l,v,n.workspaceId)}),le="application/vnd.intent.question+json";function Nt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function Dt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(Nt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function Qo(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===le}function xt(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==le||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return Dt(o)?o:null}catch{return null}}const Bt="attachmentId",jt=/^tar-[0-9a-f]{12}$/;function de(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function ue(e){const t=de(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Bt];return typeof o=="string"&&jt.test(o)?o:null}catch{return null}}function D(e){return Array.isArray(e)?`[${e.map(D).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${D(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Ht(e){const t=de(e);if(!t)return null;if(t.mimeType===it)try{const o=JSON.parse(t.text);if(lt(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${D(o.payload)}`}catch{}const n=ue(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function q(e){return ue(e)!==null}function Ft(e){const t=new Map,n=[];for(const o of e){const a=Ht(o);if(a===null){n.push(o);continue}const c=t.get(a);if(c===void 0){t.set(a,n.length),n.push(o);continue}q(o)&&!q(n[c])&&(n[c]=o)}return n}function fe(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function qt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?s.chat_questionWizard_imagesAttached_label_one():s.chat_questionWizard_imagesAttached_label_many({count:dt(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function Wt(e){return e.map(t=>`Q: ${t.question.question}
1
+ import{Il as V,II as r,rR as Ne,nB as f,Bm as De,y8 as y,qz as xe,nA as b,Bg as Be,i as z,ro as J,Bh as X,e as je,nn as Z,A as He,rw as A,hf as Fe,KT as qe,k as We,mB as Ue,hb as H,D as Ke}from"./D98guX46.js";import{k as $e}from"./uXuxG9cN.js";import{l as Qe,s as Ye}from"./pwWESNJZ.js";import{cj as Ge,c1 as w,cE as Ve,ca as k,b_ as I,cv as C,cN as ee,cM as ze,cD as Je,b$ as Xe,bv as Ze,m as et,G as tt,dT as nt,dD as te,ax as ot,cm as rt,ds as ne,cK as st,cL as ct,cP as at}from"./CM_58O-V.js";import{P as it,c as lt}from"./BvFAWM27.js";import{bm as s}from"./BkP7iWmk.js";import{t as dt}from"./EFalm4kN.js";import{u as ut,x as ft}from"./Cgbm4X7X.js";function pt(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const a=e.lastIndexOf("/"),c=a>=0?e.slice(a+1):"",i=o.has(c)?e.slice(0,a):e;return t===null?i:`${i}/${t}`}const _t={major:5,minor:2};function mt(e){const{major:t,minor:n}=_t;return $e(e,t,n)}function T(e,t,n){const o=V(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function L(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const a=t(e.slice(0,o.index)),c=o[1].toLowerCase();return a?`${a} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function ht(e,t){return JSON.stringify([t||null,e])}const gt=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),qn=r.createSelector((e,t,n)=>gt.select(e,n)[t]),Wn=r.createSelector(e=>e.providerModels?.clearEpoch??0),Un=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),bt=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[ht(o,n),{providerId:o,workspaceId:n}])))),Kn=r.createSelector(e=>Object.keys(bt.select(e)).sort()),vt=r.createSelector((e,t,n)=>Ne(e.providerModels?.learnedNames??{},t,n)),$n=r.createSelector(e=>e.providerModels.learnedNames),St={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},Mt=new Map(Object.entries(St).map(([e,t])=>[t,e]));function yt(e,t){const n=Mt.get(t);return n===void 0?void 0:e?.providers[n]}function Qn(e,t){const n=yt(e,t);return n?.available===!0&&oe(t,n.authenticated)}const Yn=new Set(["claude-code"]);function oe(e,t){return t!==!1}const F=new WeakMap,re=r.createSelector(e=>{if(!Ge.select(e))return e.agentAvailability.providerStatusMap;const t=e.providerCatalog?.providers;if(!t)return{};let n=F.get(t);return n||(n=Object.fromEntries(f(t).map(o=>[o.id,{available:!0}])),F.set(t,n)),n}),Gn=r.createSelector(e=>e.agentAvailability.providerLoadingMap),Vn=r.createSelector(e=>e.agentAvailability.providerCheckEpochMap),kt=r.createSelector(e=>e.agentAvailability.hasCheckedOnce),zn=r.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),Jn=r.createSelector(e=>e.agentAvailability.npxStatus),Xn=r.createSelector(e=>e.agentAvailability.hiddenProviders),Zn=r.createSelector(e=>e.agentAvailability.discoveryError),eo=r.createSelector(e=>e.agentAvailability.discoveryRevision),to=r.createSelector(e=>e.agentAvailability.refreshModelsPending),no=r.createSelector(e=>e.agentAvailability.refreshModelsRevision),oo=r.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Ve.select(e):null),ro=r.createSelector((e,t)=>f(e.providerSettings.requests).filter(n=>n.sessionId===t)),so=r.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),co=r.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ao=r.createSelector(e=>e.providerSettings.paths),io=r.createSelector(e=>e.providerSettings.pathsRevision),P=r.createSelector(e=>k.select(e)?I.select(e)?.defaultProviderId??"":e.model.defaultProviderId);r.createSelector((e,t)=>P.select(e)===t);const Pt=r.createSelector(e=>k.select(e)?Object.fromEntries((I.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),se=r.createSelector((e,t)=>{if(k.select(e))return I.select(e)?.enabledProviderIds?.includes(t)===!0;const n=e.providerSettings.nonDisableableProviderIds??[];return De(e.providerSettings.enabledProviders,t,{canBeDisabled:!n.includes(t)})}),ce=r.createSelector(e=>{if(k.select(e))return I.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,n=e.providerCatalog?f(e.providerCatalog.providers):[],o=new Set(n.filter(i=>se.select(e,i.id)).map(i=>i.id)),a=P.select(e),c=y(a);c&&t[c]!==!1&&o.add(c);for(const[i,l]of Object.entries(t))l&&o.add(i);return[...o]});function Ct(e,t){const n=ee.select(e,t);return k.select(e)?n?.visible!==!0:!!(n?.requiresEnvVar||n?.requiresFeatureCode)}const R=r.createSelector(e=>{const t=re.select(e);return ce.select(e).filter(n=>!Ct(e,n)&&t[n]?.available===!0)}),lo=r.createSelector((e,t)=>{const n=re.select(e),o=C.select(e,t);return R.select(e).filter(a=>C.select(e,a)!==o&&se.select(e,a)&&oe(a,n[a]?.authenticated))}),uo=r.createSelector(e=>kt.select(e)?R.select(e):ce.select(e)),fo=r.createSelector(e=>{const t=y(P.select(e));return R.select(e).includes(t)}),po=r.createSelector(e=>e.providerSettings.fastMode),_o=r.createSelector(e=>{const t=e.providerSettings.fastMode,n={...t?.confirmed};for(const[o,a]of Object.entries(t?.pending??{}))n[o]=a.enabled;return n}),mo=r.createSelector(e=>Object.values(_(e).defaults).some(t=>t.remoteLaunch!==void 0)),ho=r.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>ee.select(e,t)?.supportsFastMode===!0):[]),_=e=>e.providerSettings?.profiles??xe,go=r.createSelector(e=>ze.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),bo=r.createSelector((e,t)=>f(_(e).items).filter(n=>n.baseProviderId===t)),vo=r.createSelector(e=>[...new Set(f(_(e).items).map(t=>t.baseProviderId))]),So=r.createSelector(e=>_(e).defaults),Mo=r.createSelector((e,t)=>_(e).defaults[t]),yo=r.createSelector((e,t)=>b(_(e).items,t)),ko=r.createSelector(e=>_(e).revision),Po=r.createSelector(e=>_(e).loadStatus),Co=r.createSelector(e=>_(e).status),Io=r.createSelector(e=>_(e).activation),Eo=r.createSelector(e=>Object.fromEntries(f(_(e).mutations).map(t=>[t.id,t]))),It={},Ao=r.createSelector(e=>_(e).identity??It),Et={},wo=r.createSelector(e=>_(e).setups??Et),Ro=r.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),Oo=r.createSelector(e=>e.model),Lo=r.createSelector(e=>{const t=Je.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=P.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Xe.select(e):null])});function ae(e,t){return t??P.select(e)}const j=r.createSelector((e,t)=>{const n=ae(e,t),o=e.model.availableModelsProviderId===n?f(e.model.availableModels):[],a=I.select(e),c=k.select(e)?a?.defaultProviderId===n?a.defaultModelId:null:e.model.providerModels[n];return c||(R.select(e).includes(n)?Be(o):"")}),At=r.createSelector((e,t)=>j.select(e,t)!==""),To=r.createSelector(e=>P.select(e)!==""||At.select(e)),wt=r.createSelector(e=>e.model.availableModels),No=r.createSelector(e=>f(wt.select(e))),Do=r.createSelector(e=>e.model.availableModelsProviderId),ie=r.createSelector((e,t)=>{const n=ae(e,t);return e.model.loadingState[n]??null}),xo=r.createSelector((e,t)=>ie.select(e,t)?.status==="loading"),Bo=r.createSelector((e,t)=>{const n=ie.select(e,t);return n?.status!=="error"?null:n.error??null}),jo=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Ho=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Fo=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),qo=r.createSelector(e=>e.model.providerModels),Wo=r.createSelector(e=>e.model.defaultReasoningEffort),Uo=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Ko=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Rt=r.createSelector((e,t,n,o)=>{const a=d=>C.select(e,d,o),c=a(t),i=T(n,c,a),l=e.model?.availableModels;if(!o&&l&&(!c||c===e.model.availableModelsProviderId)){const d=b(l,n)??b(l,i);if(d)return d}const u=o?e.providerModels?.byWorkspaceId?.[o]?.[c]:e.providerModels?.byProviderId?.[c];return u?.models.find(d=>d.value===n)??u?.models.find(d=>T(d.value,c,a)===i)}),$o=r.createSelector((e,t,n,o)=>{const a=d=>C.select(e,d,o),c=a(t),i=T(n,c,a),l=d=>Rt.select(e,c,d,o)?.label,u=d=>vt.select(e,c,d);return L(n,l)??(i!==n?L(i,l):void 0)??u(n)??L(i,u)}),Ot=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=N(t);return b(n,o)?.effortLevels});function N(e){const t=V(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Lt=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const a=Ot.select(e,n);if(a)return a}if(t){const a=N(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(i=>N(i.value)===a)?.effortLevels}}}),Tt=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,a=o?.find(h=>h.path==="model.defaultProvider")?.value,c=o?typeof a=="string"?a:"":Ze.select(e),i=et(n,c),l=C.select(e,i??c,n.workspaceId),u=o?.find(h=>h.path==="model.providerDefaults")?.value,d=u&&typeof u=="object"?u[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":j.select(e,l));return Lt.select(e,l,v,n.workspaceId)}),le="application/vnd.intent.question+json";function Nt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function Dt(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(Nt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function Qo(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===le}function xt(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==le||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return Dt(o)?o:null}catch{return null}}const Bt="attachmentId",jt=/^tar-[0-9a-f]{12}$/;function de(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function ue(e){const t=de(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Bt];return typeof o=="string"&&jt.test(o)?o:null}catch{return null}}function D(e){return Array.isArray(e)?`[${e.map(D).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${D(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Ht(e){const t=de(e);if(!t)return null;if(t.mimeType===it)try{const o=JSON.parse(t.text);if(lt(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${D(o.payload)}`}catch{}const n=ue(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function q(e){return ue(e)!==null}function Ft(e){const t=new Map,n=[];for(const o of e){const a=Ht(o);if(a===null){n.push(o);continue}const c=t.get(a);if(c===void 0){t.set(a,n.length),n.push(o);continue}q(o)&&!q(n[c])&&(n[c]=o)}return n}function fe(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function qt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?s.chat_questionWizard_imagesAttached_label_one():s.chat_questionWizard_imagesAttached_label_many({count:dt(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function Wt(e){return e.map(t=>`Q: ${t.question.question}
2
2
  A: ${qt(t)}`).join(`
3
3
 
4
4
  `)}const pe="question_answers";function Ut(e){return{type:pe,answeredQuestionsMessageId:e}}function Yo(e,t){const n=e.flatMap(o=>o.skipped?[]:o.imageBlocks??[]);return{text:Wt(e),messageMetadata:Ut(t),...n.length>0?{imageBlocks:n}:{}}}function W(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==pe)return null;const n=t.answeredQuestionsMessageId;return typeof n=="string"&&n.length>0?n:null}function U(e){const t=W(e),n=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const o=e.mergedMessageMetadata;if(Array.isArray(o))for(const a of o){const c=W(a);c&&!n.includes(c)&&n.push(c)}}return n}function _e(e){if(!e)return[];const t=U(e.metadata);if(t.length)return t;const n=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(n.flatMap(o=>o.type==="text"?U(o.messageMetadata):[]))]}function me(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function K(e){return Ft(e.contentBlocks??[]).map(xt).filter(t=>t!==null)}function he(e,t){return e.some(n=>n.role==="user"&&_e(n).includes(t))}function $(e,t){return e.some(n=>_e({metadata:n.messageMetadata}).includes(t))}function Kt(e,t,n=!1,o,a=[]){if(n||e.length===0)return null;const c=me(o);if(c.kind==="cleared")return null;if(c.kind==="set"){const i=e.find(u=>u.id===c.messageId);if(!i||i.role!=="assistant"||i.isStreaming||he(e,c.messageId)||$(a,c.messageId))return null;const l=K(i);return l.length>0?{messageId:i.id,questions:l}:null}if(t)return null;for(let i=e.length-1;i>=0;i--){const l=e[i];if(l.role==="system")continue;if(l.role!=="assistant"||l.isStreaming||$(a,l.id))return null;const u=K(l);return u.length>0?{messageId:l.id,questions:u}:null}return null}function $t(e){const t=Kt(e.messages??[],tt(nt(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||fe(e.metadata,t.messageId)?null:t}function Qt(e){if($t(e)!==null)return!0;const t=me(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const n=e.messages??[];return n.some(o=>o.id===t.messageId)||he(n,t.messageId)?!1:!fe(e.metadata,t.messageId)}const ge=0,x=1,Yt=2,m=4,be=6,Gt=[2,3,4,5,0,1],Vt=16777215,ve=689407,Se=3199320,Me=16766474,ye=16752394,B=16726832,ke=6607615,zt=12540658,M=.9,Jt=.5,Pe=.25,Xt=.25,Zt={unassigned:{c:0,b:0,e:ge,s:0},idle:{c:Vt,b:.12,e:x,s:0},running:{c:ve,b:.6,e:m,s:Jt},unread:{c:ke,b:.4,e:m,s:Pe},complete:{c:Se,b:.5,e:x,s:0},attention:{c:Me,b:.8,e:m,s:M},blocked:{c:ye,b:.75,e:m,s:M},failed:{c:B,b:.7,e:m,s:M}},en={e:ge,b:0,s:0,m:0,c:0},Q=.35,tn=.75,Y=4;function nn(e){const n=(Math.min(Math.max(e,1),Y)-1)/(Y-1);return Q+n*(tn-Q)}const on={dark:en,complete:{e:x,b:.25,s:0,m:0,c:Se},unread:{e:m,b:.4,s:Pe,m:0,c:ke},question:{e:m,b:.8,s:M,m:0,c:Me},blocked:{e:m,b:.8,s:M,m:0,c:ye},failed:{e:m,b:.8,s:M,m:0,c:B},recording:{e:m,b:.8,s:M,m:0,c:B},disconnected:{e:Yt,b:.2,s:Xt,m:0,c:zt}};function Go(e){const t=[];for(let n=0;n<be;n+=1){const o=e[n]??"unassigned";t.push({id:Gt[n],...Zt[o]})}return t.sort((n,o)=>n.id-o.id),t}function Vo(e){const t=e.kind==="running"?{e:m,b:.5,s:nn(e.runningCount),m:0,c:ve}:on[e.kind];return{keys:{...t},ambient:{...t}}}function Ce(e){return Z(e)?.kind==="blocker"}function Ie(e){return Z(e)?.kind==="discussion"||Qt(e)}function Ee(e){return e.status===je.Error}function G(e,t){const n=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],o=e.agentSessions?.byAgentId??{},a=[];for(const c of n){const i=o[String(c)];i&&a.push(i)}return a}const rn=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function Ae(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function we(e){return e.displayStatus!==void 0&&rn.has(e.displayStatus)}function sn(e,t){return t.some(Ee)?"failed":t.some(Ce)?"blocked":t.some(Ie)?"attention":Ae(e)?"running":e.attention==="unread"?"unread":we(e)?"complete":"idle"}function cn(e){if(e.daemonHealth?.health==="down")return{keys:new Array(be).fill("unassigned"),ambient:{kind:"disconnected"}};const t=f(e.workspace.workspaces).filter(p=>p.id!==z&&J(p)),n=new Map;for(const p of t)n.set(p.id,p);const a=X(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(p=>{const S=p===null?void 0:n.get(p);return S?sn(S,G(e,S.id)):"unassigned"});let c=!1,i=!1,l=!1,u=0,d=!1,v=!1;const h=new Set(e.tabState.workspaceStacks.flat());for(const p of t){if(!h.has(p.id))continue;const S=G(e,p.id);S.some(Ee)&&(c=!0),S.some(Ce)&&(i=!0),S.some(Ie)&&(l=!0),Ae(p)&&(u+=1),p.attention==="unread"&&(d=!0),we(p)&&(v=!0)}let g;return e.hardwareConsole.pttRecording===!0?g={kind:"recording"}:c?g={kind:"failed"}:i?g={kind:"blocked"}:l?g={kind:"question"}:d?g={kind:"unread"}:u>0?g={kind:"running",runningCount:u}:v?g={kind:"complete"}:g={kind:"dark"},{keys:a,ambient:g}}const zo=r.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),Jo=r.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const n=o=>He.filter((a,c)=>t.actionMappingByModel[o][c]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":n("creator-micro-2"),"codex-micro":n("codex-micro")}})}),Xo=r.createSelector(e=>e.hardwareConsole.enabled),Zo=r.createSelector(e=>e.hardwareConsole.encoderBehavior),er=r.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),tr=r.createSelector(e=>e.hardwareConsole.isConsoleOwner),nr=r.createSelector(e=>e.hardwareConsole.promptPickerLimit),or=r.createSelector(e=>e.hardwareConsole.actionMappingByModel),rr=r.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),sr=r.createSelector(e=>e.hardwareConsole.keyPins),cr=r.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),ar=r.createSelector(e=>e.hardwareConsole.promptUsage),an=r.createSelector(e=>{const t=te.select(e).filter(J);return X(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),ir=r.createSelector((e,t)=>{const n=e.hardwareConsole.keyPins.indexOf(t);return n===-1?null:n}),lr=r.createSelector((e,t)=>{const n=an.select(e).indexOf(t);return n===-1?null:n}),dr=r.createSelector(e=>e.hardwareConsole.radialPrompt),ur=r.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),fr=r.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:te.select(e).find(n=>n.id===t)?.title??null}),pr=r.createSelector(e=>e.hardwareConsole.actionHudLabel),_r=r.createSelector(e=>e.hardwareConsole.pttRecording),mr=r.createSelector(e=>e.hardwareConsole.voiceTranscribing),hr=r.createSelector(e=>cn(e)),ln=r.createSelector((e,t,n)=>{const o=e.agentSessions.byAgentId[n];if(!o||o.workspaceId!==t)return null;const a=Tt.select(e,n);if(!a?.length)return null;const c=ot.select(e,n),i=o.model??j.select(e,c),l=e.daemonHealth.stats?.protocolVersion,u=mt(l)?pt(i,null,a):i;return{key:JSON.stringify([t,n,c,u,a]),workspaceId:t,agentId:n,levels:a}}),dn=r.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const n=Qe.select(e);if(!n||n===z||rt.select(e,n))return null;const o=Ye.select(e,n);return o?.type!=="agent"||!o.agentId||o.workspaceId&&o.workspaceId!==n?null:ln.select(e,n,o.agentId)}),gr=r.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||dn.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),un=[],br=r.createSelector((e,t)=>b(e.connections.workflows,t)),vr=r.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Sr=r.createSelector(e=>e.connections.selfPublication),Mr=r.createSelector(e=>e.connections.selfPublicationBusy),yr=r.createSelector((e,t)=>({guest:b(e.guestSessions.sessions,t),connection:b(e.connections.connections,t)})),kr=r.createSelector(e=>f(e.connections.connections).filter(t=>!t.displayOnly)),Pr=r.createSelector(e=>f(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node")),Cr=r.createSelector(e=>f(e.connections.connections).filter(t=>!t.displayOnly&&!t.isLocal)),Ir=r.createSelector(e=>e.connections.hasReceivedList);r.createSelector((e,t)=>b(e.connections.connections,t)?.status??"not-open");const Er=r.createSelector(e=>e.connections.windowBackendId),Ar=r.createSelector(e=>{const{connections:t,windowBackendId:n}=e.connections;return b(t,n)??null}),wr=r.createSelector(e=>e.connections.pinnedVersion),Rr=r.createSelector(e=>e.connections.connectedIds);r.createSelector(e=>e.connections.status);const Or=r.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);r.createSelector((e,t)=>e.connections.openingIds.includes(t));r.createSelector(e=>e.connections.error);const Lr=r.createSelector(e=>e.connections.certMismatch),Tr=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.connections.certWarnings))t[n]=f(o);return t}),Nr=r.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?f(t):un}),Dr=r.createSelector(e=>{const{authRejected:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),xr=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),Br=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n,protocolMismatchModalDismissed:o}=e.connections;return!t||t.id!==n||o?null:t}),jr=r.createSelector(e=>e.connections.keychainSync),Hr=r.createSelector(e=>e.connections.browserHost?.manageConnections===!0),Fr=r.createSelector(e=>e.connections.browserHost?.backendBound===!1),qr=r.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable});function Re(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const n=t.slice(2);if(n.length<50||n.length%4===1||!/^[A-Za-z0-9_-]+$/.test(n))return!1;const o=atob(n.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return o>=161&&o<=187||o===191}function Wr(e){if(!e||typeof e!="object")return null;const t=e;for(const n of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof n=="string"&&E(n))return E(n);return null}function Ur(e){return[...E(e)].length<=100&&!/\p{Cc}/u.test(e)}function E(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function fn(e){const t=e.label.trim(),n=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==n?t:"")||e.hostname?.trim()||t||n}function pn(e){const t=e.machineName?.trim();return t?s.settings_devices_localMachine_label({name:t}):s.layout_daemonStatus_localConnection_label()}function Kr(e,t){if(e.isLocal)return pn(e);const n=fn(e);return e.id===t?s.settings_devices_connectedBackend_label({name:n}):n}function _n(e){const t=E(e.hostname??"");return t||(Re(e.label)?s.connection_unknownHost_label():e.label)}function $r(e){const t=e.label.trim();return!t||Re(t)?null:t!==_n(e)?t:null}function Qr(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.defaultRemoteLaunch||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Yr(e,t,n){if(A(e)){const o=t.find(a=>a.providerRef===e);return o?.remoteCompatible!==!1?null:o.remoteIncompatibility??{reason:"unknown",keys:[]}}return null}const mn=1440*60*1e3;function Oe(e,t){if(!e?.capabilities)return"missing";const n=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(n)&&t-n>mn?"stale":"fresh"}function Gr(e,t,n){if(!e||Oe(e,n)!=="fresh")return;const o=y(t),a=e.capabilities?.providers.find(c=>c.id===o);return a&&a.models.length>0?a.models:void 0}function Vr(e,t,n){const o=y(t),a=new Set;for(const c of e){if(c.state==="revoked"||Oe(c,n)!=="fresh")continue;const i=c.capabilities?.providers.find(l=>l.id===o);if(!(!i||!gn(i)))for(const l of i.models)a.add(l)}return[...a]}const hn=new Set(["cli-missing","prerequisite-missing"]);function gn(e){return e.visible!==!1&&!hn.has(e.status)}const bn=new Set(["signed-out","auth-failed"]);function vn(e){return bn.has(e)}function Sn(e,t){if(A(t))return!1;const n=y(t),o=e?.capabilities?.providers.find(a=>a.id===n);return!!o&&vn(o.status)}function Le(e,t){return(t.defaultRemoteLaunch?t.defaultRemoteLaunch[e]==="send":!t.defaultRemoteIncompatibility?.[e])&&t.defaultHasOverrides?.[e]!==!1}function Mn(e,t,n){return n.defaultRemoteLaunch?.[t]==="refused"?!1:!e.cloud&&!Sn(e,t)}function zr(e){const{machine:t,providerRef:n}=e;return A(n)||Mn(t,n,e)||Le(n,e)?null:e.catalogProfiles.find(o=>o.baseProviderId===n&&o.remoteCompatible===!0)??null}const yn="https://e2b.dev/dashboard",kn="https://app.northflank.com",Pn="https://www.agent37.com/dashboard/cloud";function Jr(e="e2b"){return e==="northflank"?kn:e==="agent37"?Pn:yn}function Cn(e){switch(e){case"northflank":return{keyRejected:s.cloudMachines_northflank_state_tokenRejected_label(),unreachable:s.cloudMachines_northflank_state_unreachable_label(),ownerOnly:s.cloudMachines_northflank_error_ownerOnly(),saved:s.cloudMachines_northflank_saved_toast(),listTitle:s.cloudMachines_northflank_services_title(),listSummary:s.cloudMachines_northflank_services_summary,dashboard:s.cloudMachines_northflank_dashboard_label(),dashboardOpen:s.cloudMachines_northflank_dashboardOpen_label(),deleteTitle:s.cloudMachines_northflank_delete_confirmTitle,deleteDescription:s.cloudMachines_northflank_delete_confirm_description(),creating:s.cloudMachines_northflank_start_creating(),startFailed:s.cloudMachines_northflank_startFailure_title(),startUnknown:s.cloudMachines_northflank_startFailure_unknown_cause()};case"agent37":return{keyRejected:s.cloudMachines_state_keyRejected_label(),unreachable:s.cloudMachines_agent37_state_unreachable_label(),ownerOnly:s.cloudMachines_agent37_error_ownerOnly(),saved:s.cloudMachines_agent37_saved_toast(),listTitle:s.cloudMachines_agent37_instances_title(),listSummary:s.cloudMachines_agent37_instances_summary,dashboard:s.cloudMachines_agent37_dashboard_label(),dashboardOpen:s.cloudMachines_agent37_dashboardOpen_label(),deleteTitle:s.cloudMachines_agent37_delete_confirmTitle,deleteDescription:s.cloudMachines_agent37_delete_confirm_description(),creating:s.cloudMachines_agent37_start_creating(),startFailed:s.cloudMachines_agent37_startFailure_title(),startUnknown:s.cloudMachines_agent37_startFailure_unknown_cause()};default:return{keyRejected:s.cloudMachines_state_keyRejected_label(),unreachable:s.cloudMachines_state_unreachable_label(),ownerOnly:s.cloudMachines_error_ownerOnly(),saved:s.cloudMachines_saved_toast(),listTitle:s.cloudMachines_sandboxes_title(),listSummary:s.cloudMachines_sandboxes_summary,dashboard:s.cloudMachines_dashboard_label(),dashboardOpen:s.cloudMachines_dashboardOpen_label(),deleteTitle:s.cloudMachines_delete_confirmTitle,deleteDescription:s.cloudMachines_delete_confirm_description(),creating:s.cloudMachines_start_creating(),startFailed:s.cloudMachines_startFailure_title(),startUnknown:s.cloudMachines_startFailure_unknown_cause()}}}function Xr(e){return e==="vm"?s.cloudMachines_agent37_form_type_vm():s.cloudMachines_agent37_form_type_default()}function Zr(e){return e==="eu"?s.cloudMachines_agent37_region_eu():e==="ap-south"?s.cloudMachines_agent37_region_apSouth():s.cloudMachines_agent37_region_us()}const In=/^E2B\s*·\s*/u;function es(e,t){const n=t?`${t} · `:null;return(n&&e.name.startsWith(n)?e.name.slice(n.length):e.name.replace(In,"")).trim()||e.name}function ts(e){const t=Fe(e);return t?s.cloudMachines_size_label({vcpu:String(t.vcpu),memory:String(t.memoryGiB)}):e}function ns(e,t,n){const o=e.cloud;if(!o)return 0;const a=o.state==="running"&&t>0?Math.max(0,(n-t)/1e3):0;return Math.floor(o.runningSeconds+a)}function os(e){const t=Math.floor(e/60);if(t<1)return s.cloudMachines_uptime_underMinute();if(t<60)return s.cloudMachines_uptime_minutes({minutes:String(t)});const n=Math.floor(t/60),o=t%60;return o===0?s.cloudMachines_uptime_hours({hours:String(n)}):s.cloudMachines_uptime_hoursMinutes({hours:String(n),minutes:String(o)})}const En=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:2});function rs(e){const t=Ue(e,3600);return t===null?null:s.cloudMachines_size_hourly({amount:En.format(t)})}function ss(e,t){const n=new Map;for(const c of e){const i=c.cloud?.workspaceId,l=i?t(i):null,u=i&&l?i:"";let d=n.get(u);d||(d={key:u,name:l??s.cloudMachines_sandboxes_otherWorkspace(),sandboxes:[]},n.set(u,d)),d.sandboxes.push(c)}const o=c=>+(c.cloud?.state==="paused"),a=c=>Number(c.sandboxes.every(i=>o(i)));for(const c of n.values())c.sandboxes.sort((i,l)=>o(i)-o(l)||(l.cloud?.startedAt??"").localeCompare(i.cloud?.startedAt??"")||i.id.localeCompare(l.id));return[...n.values()].sort((c,i)=>a(c)-a(i)||+(c.key==="")-+(i.key==="")||c.name.localeCompare(i.name,void 0,{sensitivity:"base"})||c.key.localeCompare(i.key))}function An(e){switch(e.code){case"cloud-profile-required":return{title:s.cloudMachines_northflank_error_profileRequired_title(),description:s.cloudMachines_northflank_error_profileRequired_description()};case"cloud-quota":return{title:s.cloudMachines_northflank_error_quota_title(),description:e.limit==="plan"?s.cloudMachines_northflank_error_quotaPlan_description():e.limit==="rate"?s.cloudMachines_northflank_error_quotaRate_description():s.cloudMachines_northflank_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=n=>({title:s.cloudMachines_northflank_error_unavailable_title(),description:n});switch(e.reason){case"not-configured":return t(s.cloudMachines_northflank_error_notConfigured_description());case"key-rejected":return{title:s.cloudMachines_northflank_error_tokenRejected_title(),description:s.cloudMachines_northflank_error_tokenRejected_description()};case"project-missing":return t(s.cloudMachines_northflank_error_projectMissing_description());case"permission-denied":return{title:s.cloudMachines_northflank_error_permissionDenied_title(),description:s.cloudMachines_northflank_error_permissionDenied_description()};case"template-missing":return t(s.cloudMachines_northflank_error_imageMissing_description());case"sandbox-lost":return{title:s.cloudMachines_northflank_error_serviceLost_title(),description:s.cloudMachines_northflank_error_serviceLost_description()};case"bootstrap-failed":return t(s.cloudMachines_northflank_error_bootstrapFailed_description());default:return t(s.cloudMachines_northflank_error_apiError_description())}}}}function wn(e){switch(e.code){case"cloud-profile-required":return{title:s.cloudMachines_agent37_error_profileRequired_title(),description:s.cloudMachines_agent37_error_profileRequired_description()};case"cloud-quota":return{title:s.cloudMachines_agent37_error_quota_title(),description:e.limit==="plan"?s.cloudMachines_agent37_error_quotaPlan_description():e.limit==="rate"?s.cloudMachines_agent37_error_quotaRate_description():s.cloudMachines_agent37_error_quotaConcurrency_description()};case"cloud-machine-unavailable":{const t=n=>({title:s.cloudMachines_agent37_error_unavailable_title(),description:n});switch(e.reason){case"not-configured":return t(s.cloudMachines_agent37_error_notConfigured_description());case"key-rejected":return{title:s.cloudMachines_agent37_error_keyRejected_title(),description:s.cloudMachines_agent37_error_keyRejected_description()};case"permission-denied":return{title:s.cloudMachines_agent37_error_permissionDenied_title(),description:s.cloudMachines_agent37_error_permissionDenied_description()};case"no-capacity":return{title:s.cloudMachines_agent37_error_noCapacity_title(),description:s.cloudMachines_agent37_error_noCapacity_description()};case"template-missing":return t(s.cloudMachines_agent37_error_templateMissing_description());case"sandbox-lost":return{title:s.cloudMachines_agent37_error_instanceLost_title(),description:s.cloudMachines_agent37_error_instanceLost_description()};case"bootstrap-failed":return t(s.cloudMachines_agent37_error_bootstrapFailed_description());default:return t(s.cloudMachines_agent37_error_apiError_description())}}}}function cs(e,t){const n=e.provider??t;if(n==="northflank")return An(e);if(n==="agent37")return wn(e);switch(e.code){case"cloud-profile-required":return{title:s.cloudMachines_error_profileRequired_title(),description:s.cloudMachines_error_profileRequired_description()};case"cloud-quota":return{title:s.cloudMachines_error_quota_title(),description:e.limit==="plan"?s.cloudMachines_error_quotaPlan_description():e.limit==="rate"?s.cloudMachines_error_quotaRate_description():s.cloudMachines_error_quotaConcurrency_description()};case"cloud-machine-unavailable":switch(e.reason){case"not-configured":return{title:s.cloudMachines_error_unavailable_title(),description:s.cloudMachines_error_notConfigured_description()};case"key-rejected":return{title:s.cloudMachines_error_keyRejected_title(),description:s.cloudMachines_error_keyRejected_description()};case"template-missing":return{title:s.cloudMachines_error_unavailable_title(),description:s.cloudMachines_error_templateMissing_description()};case"sandbox-lost":return{title:s.cloudMachines_error_sandboxLost_title(),description:s.cloudMachines_error_sandboxLost_description()};case"bootstrap-failed":return{title:s.cloudMachines_error_unavailable_title(),description:s.cloudMachines_error_bootstrapFailed_description()};default:return{title:s.cloudMachines_error_unavailable_title(),description:s.cloudMachines_error_apiError_description()}}}}function as(e,t,n){const o=e.trim();if(!o)return s.cloudMachines_form_name_required();if(qe(o)>We||/[\u0000-\u001f\u007f]/u.test(o))return s.cloudMachines_form_name_invalid();const a=o.toLowerCase();return t.some(c=>c.id!==n&&c.name.trim().toLowerCase()===a)?s.cloudMachines_form_name_taken():null}const Rn=r.createSelector(e=>ut.select(e)&&ft.select(e)&&e.remoteMachines?.supported===!0&&e.cloudMachines?.supported===!0),is=r.createSelector(e=>{const t=e.cloudMachines?.providerKinds??["e2b"];return e.cloudMachines?.entries===!0?t:t.filter(n=>n==="e2b")}),ls=r.createSelector(e=>e.cloudMachines?.entries===!0);function Te(e){return Object.values(e.cloudMachines?.providers??{}).sort((t,n)=>t.configuredAt.localeCompare(n.configuredAt)||t.name.localeCompare(n.name))}const ds=r.createSelector(Te),us=r.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).sort((t,n)=>(t.cloud?.startedAt??"").localeCompare(n.cloud?.startedAt??""))),fs=r.createSelector(e=>Object.values(e.cloudMachines?.machines??{}).filter(t=>t.cloud?.state==="paused").length);function On(e,t){const n=t.cloud;return!n?.agentId||!n.workspaceId||!ne.select(e,n.workspaceId)?null:{workspaceId:n.workspaceId,agentId:n.agentId}}const ps=r.createSelector((e,t)=>{const n={},o={};for(const a of t){const c=a.cloud?.workspaceId;if(c&&!(c in n)){const i=ne.select(e,c);n[c]=i?.title||i?.name||null}o[a.id]=On(e,a)}return{workspaceNames:n,agentLinks:o}}),_s=r.createSelector(e=>e.cloudMachines?.readAt??{}),ms=r.createSelector(e=>e.cloudMachines?.pending??{}),hs=r.createSelector(e=>e.cloudMachines?.failures??{}),gs=r.createSelector(e=>e.cloudMachines?.validated??null);function bs(e){if(!Rn.select(e))return null;const t=Te(e);if(t.length===0)return null;const n=e.cloudMachines?.entries===!0;return t.map(o=>({cloudMachineId:o.id,label:o.provider==="e2b"?n&&(t.length>1||o.name.trim().toLowerCase()!=="e2b")?s.cloudMachines_startOn_entry_label({name:o.name}):s.cloudMachines_startOn_label():o.name.trim().toLowerCase()===H(o.provider).toLowerCase()?H(o.provider):o.provider==="northflank"?s.cloudMachines_startOn_northflank_label({name:o.name}):s.cloudMachines_startOn_agent37_label({name:o.name}),unavailableReason:o.state==="key-rejected"?Cn(o.provider).keyRejected:null,needsProfile:!Ln(e,o)}))}function Ln(e,t){const n=Pt.select(e),o=e.providerSettings?.profiles?.defaults??{},a={defaultRemoteLaunch:ct.select(e),defaultRemoteIncompatibility:st.select(e)},c=d=>n[d]!==!1&&(t.agentProviders.length===0||t.agentProviders.includes(d)),i=new Set([...t.agentProviders,...Object.keys(a.defaultRemoteLaunch??{})]);for(const d of i)if(c(d)&&(o[d]?.env.length??0)>0&&Le(d,a))return!0;const l=e.providerSettings?.profiles?.items,u=l?f(l):[];return at.select(e).some(d=>{if(d.remoteCompatible!==!0||!c(d.baseProviderId))return!1;const v=u.find(h=>h.providerRef===d.providerRef);return!v||v.env.some(h=>h.kind==="set")})}function vs(e,t,n=e.cloudMachines?.providers[Ke]??null){if(!t)return null;const o=n,a=y(t);if(o&&o.agentProviders.length>0&&!o.agentProviders.includes(a))return s.cloudMachines_startOn_providerMissing();const c=e.providerSettings?.profiles;if(A(t)){const l=c?f(c.items).find(u=>u.providerRef===t):void 0;return l?l.remoteCompatible===!1?s.cloudMachines_startOn_needsProfile():l.env.some(u=>u.kind==="set")?null:s.cloudMachines_startOn_needsProfile():null}const i=c?.defaults?.[a];return i?i.remoteCompatible===!1?s.cloudMachines_startOn_needsProfile():i.env.some(l=>l.kind==="set")?null:s.cloudMachines_startOn_needsProfile():c?.loadStatus==="success"?s.cloudMachines_startOn_needsProfile():null}const O=new Map;function Ss(e){return O.has(e)}function Ms(e){return O.get(e)}function ys(e){O.set(e.agentId,e)}function ks(e){O.delete(e)}export{Qr as $,be as A,Ms as B,yt as C,xt as D,ss as E,rs as F,Ss as G,gn as H,oe as I,Qn as J,fe as K,Qo as L,he as M,Yn as N,$ as O,St as P,Sn as Q,Re as R,ns as S,Oe as T,Gr as U,T as V,E as W,Vr as X,ht as Y,zr as Z,Yr as _,Zr as a,se as a$,ks as a0,L as a1,es as a2,pr as a3,Dr as a4,xr as a5,P as a6,Tt as a7,Ho as a8,Fo as a9,Pt as aA,ln as aB,gr as aC,dn as aD,ur as aE,fr as aF,ho as aG,or as aH,rr as aI,Xo as aJ,Zo as aK,er as aL,cr as aM,sr as aN,an as aO,ar as aP,dr as aQ,hr as aR,kt as aS,To as aT,Hr as aU,qr as aV,fo as aW,zn as aX,Or as aY,tr as aZ,xo as a_,jo as aa,R as ab,No as ac,Do as ad,Pr as ae,vo as af,Tr as ag,ds as ah,ls as ai,hs as aj,Rn as ak,ms as al,is as am,_s as an,us as ao,gs as ap,Rr as aq,Lr as ar,yr as as,br as at,kr as au,Ir as av,Ar as aw,Nr as ax,Er as ay,Wo as az,Xr as b,Mr as b$,vr as b0,jr as b1,vt as b2,$n as b3,Bo as b4,Lo as b5,Rt as b6,$o as b7,Ot as b8,Ko as b9,Wn as bA,to as bB,no as bC,Un as bD,ao as bE,io as bF,yo as bG,Io as bH,Ao as bI,Eo as bJ,wo as bK,Co as bL,bo as bM,Po as bN,ko as bO,Ro as bP,so as bQ,ro as bR,re as bS,co as bT,_r as bU,lo as bV,Cr as bW,mo as bX,ps as bY,j as bZ,Sr as b_,uo as ba,Uo as bb,Oo as bc,Fr as bd,Jn as be,Kn as bf,bt as bg,oo as bh,fs as bi,wr as bj,go as bk,nr as bl,Br as bm,Vn as bn,Mo as bo,So as bp,Zn as bq,eo as br,po as bs,_o as bt,Xn as bu,Gn as bv,Lt as bw,qo as bx,qn as by,gt as bz,Yo as c,zo as c0,mr as c1,Jo as c2,ir as c3,lr as c4,Qt as c5,$t as c6,ys as c7,bs as c8,mt as c9,Ur as ca,cn as d,pt as e,Vo as f,Go as g,me as h,Jr as i,as as j,cs as k,vs as l,Cn as m,ts as n,Wr as o,Ft as p,Mn as q,Le as r,Kt as s,fn as t,$r as u,_n as v,pn as w,Kr as x,os as y,_e as z};
@@ -1,4 +1,4 @@
1
- import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./VhDocpDM.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
1
+ import{b as o,W as pt,x as nt,am as Wt,an as Rt,au as Pt,H as Bt,X as ft,ay as E,aX as Vt,aH as Ft,b3 as yt,aW as U,d as ct,_ as zt,y as Ot,r as Gt}from"./B1YqGJC0.js";var tt=(function(){var e=o(function(k,a,d,l){for(d=d||{},l=k.length;l--;d[k[l]]=a);return d},"o"),t=[6,11,13,14,15,17,19,20,23,24],s=[1,12],r=[1,13],n=[1,14],h=[1,15],c=[1,16],i=[1,19],y=[1,20],p={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline_header:4,document:5,EOF:6,timeline:7,timeline_lr:8,timeline_td:9,line:10,SPACE:11,statement:12,NEWLINE:13,title:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,period_statement:21,event_statement:22,period:23,event:24,$accept:0,$end:1},terminals_:{2:"error",6:"EOF",7:"timeline",8:"timeline_lr",9:"timeline_td",11:"SPACE",13:"NEWLINE",14:"title",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",23:"period",24:"event"},productions_:[0,[3,3],[4,1],[4,1],[4,1],[5,0],[5,2],[10,2],[10,1],[10,1],[10,1],[12,1],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[21,1],[22,1]],performAction:o(function(a,d,l,g,x,u,S){var v=u.length-1;switch(x){case 1:return u[v-1];case 3:g.setDirection("LR");break;case 4:g.setDirection("TD");break;case 5:this.$=[];break;case 6:u[v-1].push(u[v]),this.$=u[v-1];break;case 7:case 8:this.$=u[v];break;case 9:case 10:this.$=[];break;case 11:g.getCommonDb().setDiagramTitle(u[v].substr(6)),this.$=u[v].substr(6);break;case 12:this.$=u[v].trim(),g.getCommonDb().setAccTitle(this.$);break;case 13:case 14:this.$=u[v].trim(),g.getCommonDb().setAccDescription(this.$);break;case 15:g.addSection(u[v].substr(8)),this.$=u[v].substr(8);break;case 18:g.addTask(u[v],0,""),this.$=u[v];break;case 19:g.addEvent(u[v].substr(2)),this.$=u[v];break}},"anonymous"),table:[{3:1,4:2,7:[1,3],8:[1,4],9:[1,5]},{1:[3]},e(t,[2,5],{5:6}),e(t,[2,2]),e(t,[2,3]),e(t,[2,4]),{6:[1,7],10:8,11:[1,9],12:10,13:[1,11],14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,10],{1:[2,1]}),e(t,[2,6]),{12:21,14:s,15:r,17:n,19:h,20:c,21:17,22:18,23:i,24:y},e(t,[2,8]),e(t,[2,9]),e(t,[2,11]),{16:[1,22]},{18:[1,23]},e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,7]),e(t,[2,12]),e(t,[2,13])],defaultActions:{},parseError:o(function(a,d){if(d.recoverable)this.trace(a);else{var l=new Error(a);throw l.hash=d,l}},"parseError"),parse:o(function(a){var d=this,l=[0],g=[],x=[null],u=[],S=this.table,v="",I=0,C=0,R=2,O=1,L=u.slice.call(arguments,1),w=Object.create(this.lexer),H={yy:{}};for(var V in this.yy)Object.prototype.hasOwnProperty.call(this.yy,V)&&(H.yy[V]=this.yy[V]);w.setInput(a,H.yy),H.yy.lexer=w,H.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var F=w.yylloc;u.push(F);var K=w.options&&w.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function N(A){l.length=l.length-2*A,x.length=x.length-A,u.length=u.length-A}o(N,"popStack");function b(){var A;return A=g.pop()||w.lex()||O,typeof A!="number"&&(A instanceof Array&&(g=A,A=g.pop()),A=d.symbols_[A]||A),A}o(b,"lex");for(var _,$,T,P,W={},G,B,Z,j;;){if($=l[l.length-1],this.defaultActions[$]?T=this.defaultActions[$]:((_===null||typeof _>"u")&&(_=b()),T=S[$]&&S[$][_]),typeof T>"u"||!T.length||!T[0]){var Y="";j=[];for(G in S[$])this.terminals_[G]&&G>R&&j.push("'"+this.terminals_[G]+"'");w.showPosition?Y="Parse error on line "+(I+1)+`:
2
2
  `+w.showPosition()+`
3
3
  Expecting `+j.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Y="Parse error on line "+(I+1)+": Unexpected "+(_==O?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Y,{text:w.match,token:this.terminals_[_]||_,line:w.yylineno,loc:F,expected:j})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+$+", token: "+_);switch(T[0]){case 1:l.push(_),x.push(w.yytext),u.push(w.yylloc),l.push(T[1]),_=null,C=w.yyleng,v=w.yytext,I=w.yylineno,F=w.yylloc;break;case 2:if(B=this.productions_[T[1]][1],W.$=x[x.length-B],W._$={first_line:u[u.length-(B||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(B||1)].first_column,last_column:u[u.length-1].last_column},K&&(W._$.range=[u[u.length-(B||1)].range[0],u[u.length-1].range[1]]),P=this.performAction.apply(W,[v,C,I,H.yy,T[1],x,u].concat(L)),typeof P<"u")return P;B&&(l=l.slice(0,-1*B*2),x=x.slice(0,-1*B),u=u.slice(0,-1*B)),l.push(this.productions_[T[1]][0]),x.push(W.$),u.push(W._$),Z=S[l[l.length-2]][l[l.length-1]],l.push(Z);break;case 3:return!0}}return!0},"parse")},m=(function(){var k={EOF:1,parseError:o(function(d,l){if(this.yy.parser)this.yy.parser.parseError(d,l);else throw new Error(d)},"parseError"),setInput:o(function(a,d){return this.yy=d||this.yy||{},this._input=a,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 a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:o(function(a){var d=a.length,l=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var g=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),l.length-1&&(this.yylineno-=l.length-1);var x=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:l?(l.length===g.length?this.yylloc.first_column:0)+g[g.length-l.length].length-l[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[x[0],x[0]+this.yyleng-d]),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(a){this.unput(this.match.slice(a))},"less"),pastInput:o(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CuG3zmBQ.js","/app/immutable/chunks/F6JYuVa2.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Cmsd5u03.js","/app/immutable/chunks/DdeuoyZB.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/BTU_oKHo.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/eF4sVb1p.js","/app/immutable/chunks/CkxlqZls.js","/app/immutable/chunks/CeRzgChF.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dwtk3MUL.js","/app/immutable/chunks/BNaYSa9e.js","/app/immutable/chunks/EFalm4kN.js","/app/immutable/chunks/DY9qQwsB.js","/app/immutable/chunks/fvC-6LgA.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Duz2cV7w.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/6eRayZXD.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/CepTMMxo.js","/app/immutable/chunks/DhnPdhLH.js","/app/immutable/chunks/kDhfBVjP.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/Oyv13Qiy.js","/app/immutable/chunks/COHdP7EQ.js","/app/immutable/chunks/BCqeyLEa.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/D48YW7ZL.js","/app/immutable/chunks/DnSTzyB_.js"])))=>i.map(i=>d[i]);
2
- import{bm as h,_ as x}from"./BkP7iWmk.js";import{i as f,II as a,de as P,H4 as S,yI as q,Fg as N,vl as R,qG as H,uV as W,KL as U}from"./fvC-6LgA.js";import{d as _}from"./CepTMMxo.js";import{E as V}from"./CkxlqZls.js";import{parseIntentLink as j}from"./szAtw5TB.js";import{k as y}from"./F6JYuVa2.js";import"./DYhIMPy1.js";import"./DdeuoyZB.js";import"./C400w5jq.js";import"./ChTqQfQN.js";import"./DY9qQwsB.js";import{I as B,q as C,H as L}from"./Cnd1Toz7.js";import{ds as D}from"./COHdP7EQ.js";import{p as E,o as K,h as $}from"./DdLb4YD1.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function I(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await _.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),I({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./CuG3zmBQ.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),g=await u(t);return m(n,o)&&I({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await _.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),I({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??_.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(N(l,String(k.id),"editor")),I({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await _.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await _.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),I({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./6eRayZXD.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Cld1FvNn.js","/app/immutable/chunks/DvOPTg8o.js","/app/immutable/chunks/BkA84tNB.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Cmsd5u03.js","/app/immutable/chunks/DdeuoyZB.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DlQfuVhT.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/eF4sVb1p.js","/app/immutable/chunks/DPKwA49z.js","/app/immutable/chunks/CeRzgChF.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dwtk3MUL.js","/app/immutable/chunks/BNaYSa9e.js","/app/immutable/chunks/EFalm4kN.js","/app/immutable/chunks/D6fddbvu.js","/app/immutable/chunks/D98guX46.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/Duz2cV7w.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/C3rj6Dod.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/B21KgEqG.js","/app/immutable/chunks/BOz86KDw.js","/app/immutable/chunks/D9pex3XI.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/5uoxxRrI.js","/app/immutable/chunks/CM_58O-V.js","/app/immutable/chunks/Cgbm4X7X.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DZmWXrCy.js","/app/immutable/chunks/BYPGFyPj.js"])))=>i.map(i=>d[i]);
2
+ import{bm as h,_ as x}from"./BkP7iWmk.js";import{i as f,II as a,de as P,H4 as S,yI as q,Fg as N,vl as R,qG as H,uV as W,KL as U}from"./D98guX46.js";import{d as _}from"./B21KgEqG.js";import{E as V}from"./DPKwA49z.js";import{parseIntentLink as j}from"./BoZRF0Rb.js";import{k as y}from"./DvOPTg8o.js";import"./DYhIMPy1.js";import"./DdeuoyZB.js";import"./C400w5jq.js";import"./ChTqQfQN.js";import"./D6fddbvu.js";import{I as B,q as C,H as L}from"./pwWESNJZ.js";import{ds as D}from"./CM_58O-V.js";import{p as E,o as K,h as $}from"./_Ak2VoUq.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function I(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(H(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(W(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return y.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await _.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),I({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./Cld1FvNn.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),g=await u(t);return m(n,o)&&I({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await _.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),I({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??_.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return y.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(N(l,String(k.id),"editor")),I({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await _.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await _.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),I({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./C3rj6Dod.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
@@ -1 +1 @@
1
- import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./BkP7iWmk.js";import{i as U}from"./Cmsd5u03.js";import{b as W,e as R}from"./DdeuoyZB.js";import{b as q}from"./BaIAhI85.js";import{s as Be}from"./C400w5jq.js";import{I as G,F as We,c as De}from"./EFalm4kN.js";import"./DJpoQ2fS.js";import{a_ as Me}from"./BTU_oKHo.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),N(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};U(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
1
+ import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as F,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as N,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Fe,c9 as z,be as Ne,b$ as Re,b_ as ke,bO as Ae}from"./DYhIMPy1.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./BkP7iWmk.js";import{i as U}from"./Cmsd5u03.js";import{b as W,e as R}from"./DdeuoyZB.js";import{b as q}from"./BaIAhI85.js";import{s as Be}from"./C400w5jq.js";import{I as G,F as We,c as De}from"./EFalm4kN.js";import"./DJpoQ2fS.js";import{a_ as Me}from"./DlQfuVhT.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),F!==null&&o.add(F),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),F!==null&&o.add(F)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=F;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},I=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},S=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{I()});S?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:I,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&S?.unobserve?.(v),a?(o.set(b,a),S?.observe(a)):o.delete(b),I()},destroy(){l!==void 0&&cancelAnimationFrame(l),S?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>R("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),N(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),I=m(t,"noFocusStyle",7,!1),S=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??S()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return I()},set noFocusStyle(r=!1){I(r),g()},get message(){return S()},set message(r){S(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),N(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?R("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?R("flex selection:bg-primary selection:text-primary-foreground",Je,a()):R("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),I()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),N(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Ie=Fe(X,2);{var Se=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Ne();var Y=Re();ke(()=>Ae(Y,u(y))),N(x,Y)},$$slots:{default:!0}})}};U(Ie,r=>{u(y)&&r(Se)})}return N(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
@@ -1,4 +1,4 @@
1
- import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./VhDocpDM.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./BHWZ3Etq.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
1
+ import{U as be,aZ as we,Y as _e,b0 as De,V as Se,a_ as Ce,b as l,X as dt,aW as vt,B as Me,L as U,ay as st,z as Ee,P as Ie,r as $e,bh as Ye}from"./B1YqGJC0.js";import{g as It}from"./BdWqymET.js";import{t as Ae,d as Fe,m as Le,l as Oe,h as We,g as Zt,p as Qt,u as Pe,q as Ve,i as ze,v as Re,x as Ne,w as He,n as Be,e as Kt,j as Jt,k as te,s as ee,a as re}from"./CU48trLA.js";function qe(t){return t}var Tt=1,Yt=2,Ft=3,xt=4,se=1e-6;function Ge(t){return"translate("+t+",0)"}function Xe(t){return"translate(0,"+t+")"}function je(t){return e=>+t(e)}function Ue(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),s=>+t(s)+e}function Ze(){return!this.__axis}function de(t,e){var s=[],r=null,i=null,g=6,y=6,b=3,S=typeof window<"u"&&window.devicePixelRatio>1?0:.5,L=t===Tt||t===xt?-1:1,_=t===xt||t===Yt?"x":"y",W=t===Tt||t===Ft?Ge:Xe;function w(D){var N=r??(e.ticks?e.ticks.apply(e,s):e.domain()),V=i??(e.tickFormat?e.tickFormat.apply(e,s):qe),k=Math.max(g,0)+b,M=e.range(),P=+M[0]+S,O=+M[M.length-1]+S,B=(e.bandwidth?Ue:je)(e.copy(),S),H=D.selection?D.selection():D,I=H.selectAll(".domain").data([null]),x=H.selectAll(".tick").data(N,e).order(),h=x.exit(),E=x.enter().append("g").attr("class","tick"),f=x.select("line"),T=x.select("text");I=I.merge(I.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),x=x.merge(E),f=f.merge(E.append("line").attr("stroke","currentColor").attr(_+"2",L*g)),T=T.merge(E.append("text").attr("fill","currentColor").attr(_,L*k).attr("dy",t===Tt?"0em":t===Ft?"0.71em":"0.32em")),D!==H&&(I=I.transition(D),x=x.transition(D),f=f.transition(D),T=T.transition(D),h=h.transition(D).attr("opacity",se).attr("transform",function(v){return isFinite(v=B(v))?W(v+S):this.getAttribute("transform")}),E.attr("opacity",se).attr("transform",function(v){var p=this.parentNode.__axis;return W((p&&isFinite(p=p(v))?p:B(v))+S)})),h.remove(),I.attr("d",t===xt||t===Yt?y?"M"+L*y+","+P+"H"+S+"V"+O+"H"+L*y:"M"+S+","+P+"V"+O:y?"M"+P+","+L*y+"V"+S+"H"+O+"V"+L*y:"M"+P+","+S+"H"+O),x.attr("opacity",1).attr("transform",function(v){return W(B(v)+S)}),f.attr(_+"2",L*g),T.attr(_,L*k).text(V),H.filter(Ze).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yt?"start":t===xt?"end":"middle"),H.each(function(){this.__axis=B})}return w.scale=function(D){return arguments.length?(e=D,w):e},w.ticks=function(){return s=Array.from(arguments),w},w.tickArguments=function(D){return arguments.length?(s=D==null?[]:Array.from(D),w):s.slice()},w.tickValues=function(D){return arguments.length?(r=D==null?null:Array.from(D),w):r&&r.slice()},w.tickFormat=function(D){return arguments.length?(i=D,w):i},w.tickSize=function(D){return arguments.length?(g=y=+D,w):g},w.tickSizeInner=function(D){return arguments.length?(g=+D,w):g},w.tickSizeOuter=function(D){return arguments.length?(y=+D,w):y},w.tickPadding=function(D){return arguments.length?(b=+D,w):b},w.offset=function(D){return arguments.length?(S=+D,w):S},w}function Qe(t){return de(Tt,t)}function Ke(t){return de(Ft,t)}var bt={exports:{}},Je=bt.exports,ne;function tr(){return ne||(ne=1,(function(t,e){(function(s,r){t.exports=r()})(Je,(function(){var s="day";return function(r,i,g){var y=function(L){return L.add(4-L.isoWeekday(),s)},b=i.prototype;b.isoWeekYear=function(){return y(this).year()},b.isoWeek=function(L){if(!this.$utils().u(L))return this.add(7*(L-this.isoWeek()),s);var _,W,w,D,N=y(this),V=(_=this.isoWeekYear(),W=this.$u,w=(W?g.utc:g)().year(_).startOf("year"),D=4-w.isoWeekday(),w.isoWeekday()>4&&(D+=7),w.add(D,s));return N.diff(V,"week")+1},b.isoWeekday=function(L){return this.$utils().u(L)?this.day()||7:this.day(this.day()%7?L:L-7)};var S=b.startOf;b.startOf=function(L,_){var W=this.$utils(),w=!!W.u(_)||_;return W.p(L)==="isoweek"?w?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):S.bind(this)(L,_)}}}))})(bt)),bt.exports}var er=tr();const rr=It(er);var wt={exports:{}},sr=wt.exports,ie;function nr(){return ie||(ie=1,(function(t,e){(function(s,r){t.exports=r()})(sr,(function(){var s={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,g=/\d\d/,y=/\d\d?/,b=/\d*[^-_:/,()\s\d]+/,S={},L=function(k){return(k=+k)+(k>68?1900:2e3)},_=function(k){return function(M){this[k]=+M}},W=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(M){if(!M||M==="Z")return 0;var P=M.match(/([+-]|\d\d)/g),O=60*P[1]+(+P[2]||0);return O===0?0:P[0]==="+"?-O:O})(k)}],w=function(k){var M=S[k];return M&&(M.indexOf?M:M.s.concat(M.f))},D=function(k,M){var P,O=S.meridiem;if(O){for(var B=1;B<=24;B+=1)if(k.indexOf(O(B,0,M))>-1){P=B>12;break}}else P=k===(M?"pm":"PM");return P},N={A:[b,function(k){this.afternoon=D(k,!1)}],a:[b,function(k){this.afternoon=D(k,!0)}],Q:[i,function(k){this.month=3*(k-1)+1}],S:[i,function(k){this.milliseconds=100*+k}],SS:[g,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[y,_("seconds")],ss:[y,_("seconds")],m:[y,_("minutes")],mm:[y,_("minutes")],H:[y,_("hours")],h:[y,_("hours")],HH:[y,_("hours")],hh:[y,_("hours")],D:[y,_("day")],DD:[g,_("day")],Do:[b,function(k){var M=S.ordinal,P=k.match(/\d+/);if(this.day=P[0],M)for(var O=1;O<=31;O+=1)M(O).replace(/\[|\]/g,"")===k&&(this.day=O)}],w:[y,_("week")],ww:[g,_("week")],M:[y,_("month")],MM:[g,_("month")],MMM:[b,function(k){var M=w("months"),P=(w("monthsShort")||M.map((function(O){return O.slice(0,3)}))).indexOf(k)+1;if(P<1)throw new Error;this.month=P%12||P}],MMMM:[b,function(k){var M=w("months").indexOf(k)+1;if(M<1)throw new Error;this.month=M%12||M}],Y:[/[+-]?\d+/,_("year")],YY:[g,function(k){this.year=L(k)}],YYYY:[/\d{4}/,_("year")],Z:W,ZZ:W};function V(k){var M,P;M=k,P=S&&S.formats;for(var O=(k=M.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,T,v){var p=v&&v.toUpperCase();return T||P[v]||s[v]||P[p].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(a,d,m){return d||m.slice(1)}))}))).match(r),B=O.length,H=0;H<B;H+=1){var I=O[H],x=N[I],h=x&&x[0],E=x&&x[1];O[H]=E?{regex:h,parser:E}:I.replace(/^\[|\]$/g,"")}return function(f){for(var T={},v=0,p=0;v<B;v+=1){var a=O[v];if(typeof a=="string")p+=a.length;else{var d=a.regex,m=a.parser,u=f.slice(p),C=d.exec(u)[0];m.call(T,C),f=f.replace(C,"")}}return(function(n){var $=n.afternoon;if($!==void 0){var o=n.hours;$?o<12&&(n.hours+=12):o===12&&(n.hours=0),delete n.afternoon}})(T),T}}return function(k,M,P){P.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(L=k.parseTwoDigitYear);var O=M.prototype,B=O.parse;O.parse=function(H){var I=H.date,x=H.utc,h=H.args;this.$u=x;var E=h[1];if(typeof E=="string"){var f=h[2]===!0,T=h[3]===!0,v=f||T,p=h[2];T&&(p=h[2]),S=this.$locale(),!f&&p&&(S=P.Ls[p]),this.$d=(function(u,C,n,$){try{if(["x","X"].indexOf(C)>-1)return new Date((C==="X"?1e3:1)*u);var o=V(C)(u),G=o.year,c=o.month,Y=o.day,A=o.hours,R=o.minutes,F=o.seconds,q=o.milliseconds,z=o.zone,nt=o.week,at=new Date,yt=Y||(G||c?1:at.getDate()),lt=G||at.getFullYear(),X=0;G&&!c||(X=c>0?c-1:at.getMonth());var K,Z=A||0,ot=R||0,J=F||0,it=q||0;return z?new Date(Date.UTC(lt,X,yt,Z,ot,J,it+60*z.offset*1e3)):n?new Date(Date.UTC(lt,X,yt,Z,ot,J,it)):(K=new Date(lt,X,yt,Z,ot,J,it),nt&&(K=$(K).week(nt).toDate()),K)}catch{return new Date("")}})(I,E,x,P),this.init(),p&&p!==!0&&(this.$L=this.locale(p).$L),v&&I!=this.format(E)&&(this.$d=new Date("")),S={}}else if(E instanceof Array)for(var a=E.length,d=1;d<=a;d+=1){h[1]=E[d-1];var m=P.apply(this,h);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}d===a&&(this.$d=new Date(""))}else B.call(this,H)}}}))})(wt)),wt.exports}var ir=nr();const ar=It(ir);var _t={exports:{}},or=_t.exports,ae;function cr(){return ae||(ae=1,(function(t,e){(function(s,r){t.exports=r()})(or,(function(){return function(s,r){var i=r.prototype,g=i.format;i.format=function(y){var b=this,S=this.$locale();if(!this.isValid())return g.bind(this)(y);var L=this.$utils(),_=(y||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(W){switch(W){case"Q":return Math.ceil((b.$M+1)/3);case"Do":return S.ordinal(b.$D);case"gggg":return b.weekYear();case"GGGG":return b.isoWeekYear();case"wo":return S.ordinal(b.week(),"W");case"w":case"ww":return L.s(b.week(),W==="w"?1:2,"0");case"W":case"WW":return L.s(b.isoWeek(),W==="W"?1:2,"0");case"k":case"kk":return L.s(String(b.$H===0?24:b.$H),W==="k"?1:2,"0");case"X":return Math.floor(b.$d.getTime()/1e3);case"x":return b.$d.getTime();case"z":return"["+b.offsetName()+"]";case"zzz":return"["+b.offsetName("long")+"]";default:return W}}));return g.bind(this)(_)}}}))})(_t)),_t.exports}var lr=cr();const ur=It(lr);var Dt={exports:{}},dr=Dt.exports,oe;function fr(){return oe||(oe=1,(function(t,e){(function(s,r){t.exports=r()})(dr,(function(){var s,r,i=1e3,g=6e4,y=36e5,b=864e5,S=31536e6,L=2628e6,_=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,W=/\[([^\]]+)]|YYYY|YY|Y|M{1,2}|D{1,2}|H{1,2}|m{1,2}|s{1,2}|SSS/g,w={years:S,months:L,days:b,hours:y,minutes:g,seconds:i,milliseconds:1,weeks:6048e5},D=function(I){return I instanceof B},N=function(I,x,h){return new B(I,h,x.$l)},V=function(I){return r.p(I)+"s"},k=function(I){return I<0},M=function(I){return k(I)?Math.ceil(I):Math.floor(I)},P=function(I){return Math.abs(I)},O=function(I,x){return I?k(I)?{negative:!0,format:""+P(I)+x}:{negative:!1,format:""+I+x}:{negative:!1,format:""}},B=(function(){function I(h,E,f){var T=this;if(this.$d={},this.$l=f,h===void 0&&(this.$ms=0,this.parseFromMilliseconds()),E)return N(h*w[V(E)],this);if(typeof h=="number")return this.$ms=h,this.parseFromMilliseconds(),this;if(typeof h=="object")return Object.keys(h).forEach((function(a){T.$d[V(a)]=h[a]})),this.calMilliseconds(),this;if(typeof h=="string"){var v=h.match(_);if(v){var p=v.slice(2).map((function(a){return a!=null?Number(a):0}));return this.$d.years=p[0],this.$d.months=p[1],this.$d.weeks=p[2],this.$d.days=p[3],this.$d.hours=p[4],this.$d.minutes=p[5],this.$d.seconds=p[6],this.calMilliseconds(),this}}return this}var x=I.prototype;return x.calMilliseconds=function(){var h=this;this.$ms=Object.keys(this.$d).reduce((function(E,f){return E+(h.$d[f]||0)*w[f]}),0)},x.parseFromMilliseconds=function(){var h=this.$ms;this.$d.years=M(h/S),h%=S,this.$d.months=M(h/L),h%=L,this.$d.days=M(h/b),h%=b,this.$d.hours=M(h/y),h%=y,this.$d.minutes=M(h/g),h%=g,this.$d.seconds=M(h/i),h%=i,this.$d.milliseconds=h},x.toISOString=function(){var h=O(this.$d.years,"Y"),E=O(this.$d.months,"M"),f=+this.$d.days||0;this.$d.weeks&&(f+=7*this.$d.weeks);var T=O(f,"D"),v=O(this.$d.hours,"H"),p=O(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var d=O(a,"S"),m=h.negative||E.negative||T.negative||v.negative||p.negative||d.negative,u=v.format||p.format||d.format?"T":"",C=(m?"-":"")+"P"+h.format+E.format+T.format+u+v.format+p.format+d.format;return C==="P"||C==="-P"?"P0D":C},x.toJSON=function(){return this.toISOString()},x.format=function(h){var E=h||"YYYY-MM-DDTHH:mm:ss",f={Y:this.$d.years,YY:r.s(this.$d.years,2,"0"),YYYY:r.s(this.$d.years,4,"0"),M:this.$d.months,MM:r.s(this.$d.months,2,"0"),D:this.$d.days,DD:r.s(this.$d.days,2,"0"),H:this.$d.hours,HH:r.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:r.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:r.s(this.$d.seconds,2,"0"),SSS:r.s(this.$d.milliseconds,3,"0")};return E.replace(W,(function(T,v){return v||String(f[T])}))},x.as=function(h){return this.$ms/w[V(h)]},x.get=function(h){var E=this.$ms,f=V(h);return f==="milliseconds"?E%=1e3:E=f==="weeks"?M(E/w[f]):this.$d[f],E||0},x.add=function(h,E,f){var T;return T=E?h*w[V(E)]:D(h)?h.$ms:N(h,this).$ms,N(this.$ms+T*(f?-1:1),this)},x.subtract=function(h,E){return this.add(h,E,!0)},x.locale=function(h){var E=this.clone();return E.$l=h,E},x.clone=function(){return N(this.$ms,this)},x.humanize=function(h){return s().add(this.$ms,"ms").locale(this.$l).fromNow(!h)},x.valueOf=function(){return this.asMilliseconds()},x.milliseconds=function(){return this.get("milliseconds")},x.asMilliseconds=function(){return this.as("milliseconds")},x.seconds=function(){return this.get("seconds")},x.asSeconds=function(){return this.as("seconds")},x.minutes=function(){return this.get("minutes")},x.asMinutes=function(){return this.as("minutes")},x.hours=function(){return this.get("hours")},x.asHours=function(){return this.as("hours")},x.days=function(){return this.get("days")},x.asDays=function(){return this.as("days")},x.weeks=function(){return this.get("weeks")},x.asWeeks=function(){return this.as("weeks")},x.months=function(){return this.get("months")},x.asMonths=function(){return this.as("months")},x.years=function(){return this.get("years")},x.asYears=function(){return this.as("years")},I})(),H=function(I,x,h){return I.add(x.years()*h,"y").add(x.months()*h,"M").add(x.days()*h,"d").add(x.hours()*h,"h").add(x.minutes()*h,"m").add(x.seconds()*h,"s").add(x.milliseconds()*h,"ms")};return function(I,x,h){s=h,r=h().$utils(),h.duration=function(T,v){var p=h.locale();return N(T,{$l:p},v)},h.isDuration=D;var E=x.prototype.add,f=x.prototype.subtract;x.prototype.add=function(T,v){return D(T)?H(this,T,1):E.bind(this)(T,v)},x.prototype.subtract=function(T,v){return D(T)?H(this,T,-1):f.bind(this)(T,v)}}}))})(Dt)),Dt.exports}var hr=fr();const mr=It(hr);var Lt=(function(){var t=l(function(p,a,d,m){for(d=d||{},m=p.length;m--;d[p[m]]=a);return d},"o"),e=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],r=[1,27],i=[1,28],g=[1,29],y=[1,30],b=[1,31],S=[1,32],L=[1,33],_=[1,34],W=[1,9],w=[1,10],D=[1,11],N=[1,12],V=[1,13],k=[1,14],M=[1,15],P=[1,16],O=[1,19],B=[1,20],H=[1,21],I=[1,22],x=[1,23],h=[1,25],E=[1,35],f={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:l(function(a,d,m,u,C,n,$){var o=n.length-1;switch(C){case 1:return n[o-1];case 2:this.$=[];break;case 3:n[o-1].push(n[o]),this.$=n[o-1];break;case 4:case 5:this.$=n[o];break;case 6:case 7:this.$=[];break;case 8:u.setWeekday("monday");break;case 9:u.setWeekday("tuesday");break;case 10:u.setWeekday("wednesday");break;case 11:u.setWeekday("thursday");break;case 12:u.setWeekday("friday");break;case 13:u.setWeekday("saturday");break;case 14:u.setWeekday("sunday");break;case 15:u.setWeekend("friday");break;case 16:u.setWeekend("saturday");break;case 17:u.setDateFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 18:u.enableInclusiveEndDates(),this.$=n[o].substr(18);break;case 19:u.TopAxis(),this.$=n[o].substr(8);break;case 20:u.setAxisFormat(n[o].substr(11)),this.$=n[o].substr(11);break;case 21:u.setTickInterval(n[o].substr(13)),this.$=n[o].substr(13);break;case 22:u.setExcludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 23:u.setIncludes(n[o].substr(9)),this.$=n[o].substr(9);break;case 24:u.setTodayMarker(n[o].substr(12)),this.$=n[o].substr(12);break;case 27:u.setDiagramTitle(n[o].substr(6)),this.$=n[o].substr(6);break;case 28:this.$=n[o].trim(),u.setAccTitle(this.$);break;case 29:case 30:this.$=n[o].trim(),u.setAccDescription(this.$);break;case 31:u.addSection(n[o].substr(8)),this.$=n[o].substr(8);break;case 33:u.addTask(n[o-1],n[o]),this.$="task";break;case 34:this.$=n[o-1],u.setClickEvent(n[o-1],n[o],null);break;case 35:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],n[o]);break;case 36:this.$=n[o-2],u.setClickEvent(n[o-2],n[o-1],null),u.setLink(n[o-2],n[o]);break;case 37:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-2],n[o-1]),u.setLink(n[o-3],n[o]);break;case 38:this.$=n[o-2],u.setClickEvent(n[o-2],n[o],null),u.setLink(n[o-2],n[o-1]);break;case 39:this.$=n[o-3],u.setClickEvent(n[o-3],n[o-1],n[o]),u.setLink(n[o-3],n[o-2]);break;case 40:this.$=n[o-1],u.setLink(n[o-1],n[o]);break;case 41:case 47:this.$=n[o-1]+" "+n[o];break;case 42:case 43:case 45:this.$=n[o-2]+" "+n[o-1]+" "+n[o];break;case 44:case 46:this.$=n[o-3]+" "+n[o-2]+" "+n[o-1]+" "+n[o];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:36,11:17,12:s,13:r,14:i,15:g,16:y,17:b,18:S,19:18,20:L,21:_,22:W,23:w,24:D,25:N,26:V,27:k,28:M,29:P,30:O,31:B,33:H,35:I,36:x,37:24,38:h,40:E},t(e,[2,5]),t(e,[2,6]),t(e,[2,17]),t(e,[2,18]),t(e,[2,19]),t(e,[2,20]),t(e,[2,21]),t(e,[2,22]),t(e,[2,23]),t(e,[2,24]),t(e,[2,25]),t(e,[2,26]),t(e,[2,27]),{32:[1,37]},{34:[1,38]},t(e,[2,30]),t(e,[2,31]),t(e,[2,32]),{39:[1,39]},t(e,[2,8]),t(e,[2,9]),t(e,[2,10]),t(e,[2,11]),t(e,[2,12]),t(e,[2,13]),t(e,[2,14]),t(e,[2,15]),t(e,[2,16]),{41:[1,40],43:[1,41]},t(e,[2,4]),t(e,[2,28]),t(e,[2,29]),t(e,[2,33]),t(e,[2,34],{42:[1,42],43:[1,43]}),t(e,[2,40],{41:[1,44]}),t(e,[2,35],{43:[1,45]}),t(e,[2,36]),t(e,[2,38],{42:[1,46]}),t(e,[2,37]),t(e,[2,39])],defaultActions:{},parseError:l(function(a,d){if(d.recoverable)this.trace(a);else{var m=new Error(a);throw m.hash=d,m}},"parseError"),parse:l(function(a){var d=this,m=[0],u=[],C=[null],n=[],$=this.table,o="",G=0,c=0,Y=2,A=1,R=n.slice.call(arguments,1),F=Object.create(this.lexer),q={yy:{}};for(var z in this.yy)Object.prototype.hasOwnProperty.call(this.yy,z)&&(q.yy[z]=this.yy[z]);F.setInput(a,q.yy),q.yy.lexer=F,q.yy.parser=this,typeof F.yylloc>"u"&&(F.yylloc={});var nt=F.yylloc;n.push(nt);var at=F.options&&F.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function yt(Q){m.length=m.length-2*Q,C.length=C.length-Q,n.length=n.length-Q}l(yt,"popStack");function lt(){var Q;return Q=u.pop()||F.lex()||A,typeof Q!="number"&&(Q instanceof Array&&(u=Q,Q=u.pop()),Q=d.symbols_[Q]||Q),Q}l(lt,"lex");for(var X,K,Z,ot,J={},it,tt,Ut,pt;;){if(K=m[m.length-1],this.defaultActions[K]?Z=this.defaultActions[K]:((X===null||typeof X>"u")&&(X=lt()),Z=$[K]&&$[K][X]),typeof Z>"u"||!Z.length||!Z[0]){var $t="";pt=[];for(it in $[K])this.terminals_[it]&&it>Y&&pt.push("'"+this.terminals_[it]+"'");F.showPosition?$t="Parse error on line "+(G+1)+`:
2
2
  `+F.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":$t="Parse error on line "+(G+1)+": Unexpected "+(X==A?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError($t,{text:F.match,token:this.terminals_[X]||X,line:F.yylineno,loc:nt,expected:pt})}if(Z[0]instanceof Array&&Z.length>1)throw new Error("Parse Error: multiple actions possible at state: "+K+", token: "+X);switch(Z[0]){case 1:m.push(X),C.push(F.yytext),n.push(F.yylloc),m.push(Z[1]),X=null,c=F.yyleng,o=F.yytext,G=F.yylineno,nt=F.yylloc;break;case 2:if(tt=this.productions_[Z[1]][1],J.$=C[C.length-tt],J._$={first_line:n[n.length-(tt||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(tt||1)].first_column,last_column:n[n.length-1].last_column},at&&(J._$.range=[n[n.length-(tt||1)].range[0],n[n.length-1].range[1]]),ot=this.performAction.apply(J,[o,c,G,q.yy,Z[1],C,n].concat(R)),typeof ot<"u")return ot;tt&&(m=m.slice(0,-1*tt*2),C=C.slice(0,-1*tt),n=n.slice(0,-1*tt)),m.push(this.productions_[Z[1]][0]),C.push(J.$),n.push(J._$),Ut=$[m[m.length-2]][m[m.length-1]],m.push(Ut);break;case 3:return!0}}return!0},"parse")},T=(function(){var p={EOF:1,parseError:l(function(d,m){if(this.yy.parser)this.yy.parser.parseError(d,m);else throw new Error(d)},"parseError"),setInput:l(function(a,d){return this.yy=d||this.yy||{},this._input=a,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:l(function(){var a=this._input[0];this.yytext+=a,this.yyleng++,this.offset++,this.match+=a,this.matched+=a;var d=a.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),a},"input"),unput:l(function(a){var d=a.length,m=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var u=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),m.length-1&&(this.yylineno-=m.length-1);var C=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:m?(m.length===u.length?this.yylloc.first_column:0)+u[u.length-m.length].length-m[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[C[0],C[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(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:l(function(a){this.unput(this.match.slice(a))},"less"),pastInput:l(function(){var a=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var a=this.match;return a.length<20&&(a+=this._input.substr(0,20-a.length)),(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var a=this.pastInput(),d=new Array(a.length+1).join("-");return a+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/C9AQUTrX.js","/app/immutable/chunks/fvC-6LgA.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BGikh8Vc.js","/app/immutable/chunks/Cnd1Toz7.js","/app/immutable/chunks/Oyv13Qiy.js"])))=>i.map(i=>d[i]);
2
- import{t as Zt,bo as N,bw as te,bs as W,bq as ee,b as re,bm as n,_ as se}from"./BkP7iWmk.js";import{bo as ae,bs as ne,ca as C,bH as Y,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as G,aA as J,bl as R,bO as h,ay as wt,aB as y}from"./DYhIMPy1.js";import{i as I}from"./Cmsd5u03.js";import{f as St,g as le,s as ce}from"./DdeuoyZB.js";import{b as ue}from"./BaIAhI85.js";import{b as de}from"./4xlJdO9z.js";import{II as m,Cl as pe,Cb as me,Ca as fe,IC as _e,BY as ve,ik as be,iL as ge}from"./fvC-6LgA.js";import{a as xe,T as he,D as ye,L as ke,o as we}from"./CCPIWPlX.js";import{F as ct,c$ as Se,c7 as $e,cX as Ae}from"./Duz2cV7w.js";import{f as $t}from"./BTU_oKHo.js";import{k as rt}from"./F6JYuVa2.js";import"./CkxlqZls.js";import"./C400w5jq.js";import"./ChTqQfQN.js";import"./DY9qQwsB.js";import{r as Ce}from"./CuG3zmBQ.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./Bj7EqZg1.js";import{g as De}from"./BCqeyLEa.js";import{bS as Re,dM as Ie,dm as Ft}from"./COHdP7EQ.js";import"./DJpoQ2fS.js";import"./Dr53ZtPD.js";import"./D2mVOz_B.js";import{e as Le}from"./D2qgPGPl.js";import{I as Ot}from"./yrnucJGA.js";var Dt=y("<!> ",1),Be=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Te=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),qe=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Ee=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Me=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Pe=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),We=y('<span class="sr-only"> </span>'),je=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),ze=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Ue(_,c){const z=ae();if(new.target)return Zt({component:Ue,..._});ne(c,!0);const L=()=>W(Pt,"$outputAuthority",B),u=()=>W(Bt,"$runtime$",B),v=()=>W(Tt,"$output$",B),S=()=>W(Mt,"$codeFontFamilyCSS",B),j=()=>W(qt,"$retainedOutput$",B),Rt=()=>W(Et,"$hidesAgentLifecycleActions$",B),dt=()=>W(Lt,"$script$",B),[B,It]=ee();let $=N(c,"scriptId",7),b=N(c,"workspaceId",7),st=N(c,"class",7,""),at=N(c,"runDisabled",7,!1),T=N(c,"runDisabledReason",7,null);const pt=G(()=>at()||T()!==null),q=lt(""),U=lt(""),mt=lt("");let nt=kt(!1);C(()=>q.set(b())),C(()=>U.set($()));let E,i=null,X=null,Q=null,H=null,M=null,V=null;const Lt=ut(q,U),Bt=Fe(q,U),Tt=At(q,U),qt=Oe(q,U,mt),Et=Re(q),Mt=De(),Pt=Ie(q),ft=crypto.randomUUID();C(()=>{const t=b();return $(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=$(),a=L(),s=u();if(!a||!t||!e)return;s.status,s.startedAt;const l=crypto.randomUUID();return mt.set(l),Y(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,l)),()=>m.dispatch(fe(t,e,l))});let Z=kt(0);const Wt=G(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function jt(){if(!E||i)return;H=new he(E);const t=H.getCurrentTheme();i=new ye({allowProposedApi:!0,fontFamily:S(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),i.attachCustomKeyEventHandler(a=>{const s=a.metaKey||a.ctrlKey;return!(s&&a.key==="`"||s&&a.key==="j"||s&&a.key==="k")}),X=new we,i.loadAddon(X);const e=new ke((a,s)=>{try{const l=new URL(s);l.hostname==="localhost"||l.hostname==="127.0.0.1"?Ce(s).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./C9AQUTrX.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(s,"_blank")}catch{window.open(s,"_blank")}});i.loadAddon(e),i.open(E),H.applyTheme(i),V=requestAnimationFrame(()=>{V=null,X?.fit()}),Q=new ResizeObserver(()=>{X?.fit()}),Q.observe(E),zt()}function zt(){if(!i)return;const t=At.select(m.state,b(),$());t.chunks.length>0&&i.write(t.chunks.map(e=>e.text).join("")),Y(Z,t.dropped+t.chunks.length)}function _t(){M!==null&&(cancelAnimationFrame(M),M=null),V!==null&&(cancelAnimationFrame(V),V=null),Q?.disconnect(),Q=null,H?.dispose(),H=null;const t=i;i=null,X=null,Y(Z,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Z)),a=t.dropped+t.chunks.length;if(!i||a<=e)return;const s=Math.max(e-t.dropped,0);i.write(t.chunks.slice(s).map(l=>l.text).join("")),Y(Z,a)}),C(()=>{const t=S();i&&i.options.fontFamily!==t&&(i.options.fontFamily=t)});function Ut(){F(pt)||m.dispatch(_e(b(),$()))}function Xt(){if(!b()){rt.error(n.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),$(),j()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&E&&!i&&(M!==null&&cancelAnimationFrame(M),M=requestAnimationFrame(()=>{M=null,jt()}))}),ie(()=>{_t()});var Ht={get scriptId(){return $()},set scriptId(t){$(t),J()},get workspaceId(){return b()},set workspaceId(t){b(t),J()},get class(){return st()},set class(t=""){st(t),J()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),J()},get runDisabledReason(){return T()},set runDisabledReason(t=null){T(t),J()},$set:te,$on:(t,e)=>re(c,t,e)},tt=ze(),vt=O(tt);{var Vt=t=>{var e=Be(),a=O(e),s=O(a),l=O(s);ct(l,{get icon(){return Se},size:"xs"}),D(s);var g=p(s,2),k=R(g,!0);D(a);var A=p(a,2);{var d=r=>{$t(r,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Xt,children:(o,w)=>{var P=Dt(),K=wt(P);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>n.terminal_scriptOutput_askAiToFix_label()]),f(o,P)},$$slots:{default:!0}})};I(A,r=>{Rt()||r(d)})}D(e),x(r=>h(k,r),[()=>n.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};I(vt,t=>{F(Wt)&&t(Vt)})}var bt=p(vt,2);{var Kt=t=>{var e=Ee(),a=O(e),s=R(a,!0),l=p(a,2),g=R(l,!0),k=p(l,2);{var A=r=>{var o=Te();let w;var P=R(o,!0);x(()=>{w=le(o,"",w,{"font-family":S()}),h(P,j().text)}),f(r,o)},d=r=>{var o=qe(),w=R(o,!0);x(P=>h(w,P),[()=>j().status==="loading"?n.terminal_scriptOutput_retainedLoading_label():n.terminal_scriptOutput_retainedUnavailable_label()]),f(r,o)};I(k,r=>{j().status==="available"?r(A):r(d,-1)})}D(e),x((r,o)=>{h(s,r),h(g,o)},[()=>n.terminal_scriptOutput_retained_label(),()=>n.terminal_scriptOutput_retained_description()]),de("open","toggle",e,r=>Y(nt,r),()=>F(nt)),f(t,e)};I(bt,t=>{j()&&t(Kt)})}var gt=p(bt,2);{var Nt=t=>{var e=Me(),a=R(e,!0);x(s=>h(a,s),[()=>n.terminal_scriptOutput_live_label()]),f(t,e)};I(gt,t=>{v().chunks.length>0&&j()&&t(Nt)})}var xt=p(gt,2);{var Yt=t=>{var e=je(),a=O(e),s=p(O(a),2);{var l=d=>{var r=Pe(),o=R(r,!0);x(w=>h(o,w),[()=>ve(dt())]),f(d,r)};I(s,d=>{dt()&&d(l)})}var g=p(s,2);{let d=G(()=>T()??void 0),r=G(()=>n.terminal_scriptOutput_run_label()),o=G(()=>T()?z:void 0);$t(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(r)},get"aria-describedby"(){return F(o)},onclick:Ut,class:"text-muted-foreground hover:text-foreground",children:(w,P)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return $e},class:"h-3 w-3 mr-1"});var ot=p(et);x(Qt=>h(ot,` ${Qt??""}`),[()=>n.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var r=We(),o=R(r,!0);x(()=>{ce(r,"id",z),h(o,T())}),f(d,r)};I(k,d=>{T()&&d(A)})}D(a),D(e),f(t,e)};I(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Yt)})}var it=p(xt,2);let ht;var Gt=O(it);ue(Gt,t=>E=t,()=>E),D(it),D(tt),x(()=>{St(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=St(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Jt=oe(Ht);return It(),Jt}async function fr(_,c,z){const L=ut.select(m.state,_,c);if(!L||!z()||!Ct.select(m.state,_,c))return;const u=Ot(L.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(n.workspace_client_accessChanged_error());return}if(!await Le({title:n.scripts_delete_title({name:L.name}),description:u?n.scripts_delete_running_description():n.scripts_delete_description(),confirmLabel:n.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(n.workspace_client_accessChanged_error());return}const S=ut.select(m.state,_,c);if(!z()||!S||S.createdAt!==L.createdAt||S.name!==L.name||!u&&Ot(S.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(n.scripts_delete_changed_error());return}m.dispatch(ge(_,c,n.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Ue as S,fr as c};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BhL5eL8L.js","/app/immutable/chunks/D98guX46.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/K9ol5Tjr.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/C400w5jq.js","/app/immutable/chunks/BkP7iWmk.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/BkA84tNB.js","/app/immutable/chunks/pwWESNJZ.js","/app/immutable/chunks/5uoxxRrI.js"])))=>i.map(i=>d[i]);
2
+ import{t as Zt,bo as N,bw as te,bs as W,bq as ee,b as re,bm as n,_ as se}from"./BkP7iWmk.js";import{bo as ae,bs as ne,ca as C,bH as Y,c5 as yt,aD as F,bj as ie,a5 as O,bS as p,bA as D,b_ as x,W as f,bn as oe,cd as lt,bV as kt,c9 as G,aA as J,bl as R,bO as h,ay as wt,aB as y}from"./DYhIMPy1.js";import{i as I}from"./Cmsd5u03.js";import{f as St,g as le,s as ce}from"./DdeuoyZB.js";import{b as ue}from"./BaIAhI85.js";import{b as de}from"./4xlJdO9z.js";import{II as m,Cl as pe,Cb as me,Ca as fe,IC as _e,BY as ve,ik as be,iL as ge}from"./D98guX46.js";import{a as xe,T as he,D as ye,L as ke,o as we}from"./BUq4flUY.js";import{F as ct,c$ as Se,c7 as $e,cX as Ae}from"./Duz2cV7w.js";import{f as $t}from"./DlQfuVhT.js";import{k as rt}from"./DvOPTg8o.js";import"./DPKwA49z.js";import"./C400w5jq.js";import"./ChTqQfQN.js";import"./D6fddbvu.js";import{r as Ce}from"./Cld1FvNn.js";import{selectScriptById as ut,selectScriptRuntime as Fe,selectScriptOutput as At,selectScriptRetainedOutput as Oe,selectCanDeleteScript as Ct}from"./CY8reJZf.js";import{g as De}from"./Cgbm4X7X.js";import{bS as Re,dM as Ie,dm as Ft}from"./CM_58O-V.js";import"./DJpoQ2fS.js";import"./Dr53ZtPD.js";import"./D2mVOz_B.js";import{e as Le}from"./Hn8VNjVU.js";import{I as Ot}from"./DkHPIJea.js";var Dt=y("<!> ",1),Be=y('<div class="bg-danger-background/20 border-y border-danger/20 px-3 py-1.5 flex items-center justify-between"><div class="flex items-center gap-2 text-sm text-danger font-medium"><div class="w-4 h-4 rounded-full bg-danger-background flex items-center justify-center"><!></div> <span> </span></div> <!></div>'),Te=y('<pre class="retained-text px-3 pb-3 text-xs svelte-115p4sl"> </pre>'),qe=y('<p class="px-3 pb-3 text-xs text-muted-foreground" role="status"> </p>'),Ee=y('<details class="retained-output border-b border-border svelte-115p4sl"><summary class="cursor-pointer px-3 py-2 text-xs text-muted-foreground"> </summary> <p class="px-3 pb-2 text-xs text-muted-foreground"> </p> <!></details>'),Me=y('<div class="px-3 py-1 text-xs text-muted-foreground"> </div>'),Pe=y('<code class="text-muted-foreground font-mono text-xs"> </code>'),We=y('<span class="sr-only"> </span>'),je=y('<div class="flex-1 flex items-center justify-center px-4 py-8"><div class="flex items-center gap-3 text-sm"><span class="text-subtle font-mono">$</span> <!> <!> <!></div></div>'),ze=y('<div><!> <!> <!> <!> <div><div class="xterm-output svelte-115p4sl"></div></div></div>');function Ue(_,c){const z=ae();if(new.target)return Zt({component:Ue,..._});ne(c,!0);const L=()=>W(Pt,"$outputAuthority",B),u=()=>W(Bt,"$runtime$",B),v=()=>W(Tt,"$output$",B),S=()=>W(Mt,"$codeFontFamilyCSS",B),j=()=>W(qt,"$retainedOutput$",B),Rt=()=>W(Et,"$hidesAgentLifecycleActions$",B),dt=()=>W(Lt,"$script$",B),[B,It]=ee();let $=N(c,"scriptId",7),b=N(c,"workspaceId",7),st=N(c,"class",7,""),at=N(c,"runDisabled",7,!1),T=N(c,"runDisabledReason",7,null);const pt=G(()=>at()||T()!==null),q=lt(""),U=lt(""),mt=lt("");let nt=kt(!1);C(()=>q.set(b())),C(()=>U.set($()));let E,i=null,X=null,Q=null,H=null,M=null,V=null;const Lt=ut(q,U),Bt=Fe(q,U),Tt=At(q,U),qt=Oe(q,U,mt),Et=Re(q),Mt=De(),Pt=Ie(q),ft=crypto.randomUUID();C(()=>{const t=b();return $(),()=>{t&&m.dispatch(pe(t,ft))}}),C(()=>{const t=b(),e=$(),a=L(),s=u();if(!a||!t||!e)return;s.status,s.startedAt;const l=crypto.randomUUID();return mt.set(l),Y(nt,yt(()=>v().chunks.length===0),!0),m.dispatch(me(t,e,l)),()=>m.dispatch(fe(t,e,l))});let Z=kt(0);const Wt=G(()=>u().status==="exited"&&u().exitCode!=null&&u().exitCode!==0&&u().exitCode<128);function jt(){if(!E||i)return;H=new he(E);const t=H.getCurrentTheme();i=new ye({allowProposedApi:!0,fontFamily:S(),fontSize:13,lineHeight:1.2,letterSpacing:0,cursorBlink:!1,cursorStyle:"underline",cursorWidth:1,scrollback:1e4,allowTransparency:!0,convertEol:!0,disableStdin:!0,drawBoldTextInBrightColors:!0,theme:t}),i.attachCustomKeyEventHandler(a=>{const s=a.metaKey||a.ctrlKey;return!(s&&a.key==="`"||s&&a.key==="j"||s&&a.key==="k")}),X=new we,i.loadAddon(X);const e=new ke((a,s)=>{try{const l=new URL(s);l.hostname==="localhost"||l.hostname==="127.0.0.1"?Ce(s).then(g=>{se(async()=>{const{getPanelLayoutManager:k}=await import("./BhL5eL8L.js").then(A=>A.p);return{getPanelLayoutManager:k}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url).then(({getPanelLayoutManager:k})=>{k(b()).openBrowserPanel(g.url,void 0,void 0,g.requestedUrl)}).catch(()=>{window.open(g.url,"_blank")})}):window.open(s,"_blank")}catch{window.open(s,"_blank")}});i.loadAddon(e),i.open(E),H.applyTheme(i),V=requestAnimationFrame(()=>{V=null,X?.fit()}),Q=new ResizeObserver(()=>{X?.fit()}),Q.observe(E),zt()}function zt(){if(!i)return;const t=At.select(m.state,b(),$());t.chunks.length>0&&i.write(t.chunks.map(e=>e.text).join("")),Y(Z,t.dropped+t.chunks.length)}function _t(){M!==null&&(cancelAnimationFrame(M),M=null),V!==null&&(cancelAnimationFrame(V),V=null),Q?.disconnect(),Q=null,H?.dispose(),H=null;const t=i;i=null,X=null,Y(Z,0),t&&xe(t)}C(()=>{const t=v(),e=yt(()=>F(Z)),a=t.dropped+t.chunks.length;if(!i||a<=e)return;const s=Math.max(e-t.dropped,0);i.write(t.chunks.slice(s).map(l=>l.text).join("")),Y(Z,a)}),C(()=>{const t=S();i&&i.options.fontFamily!==t&&(i.options.fontFamily=t)});function Ut(){F(pt)||m.dispatch(_e(b(),$()))}function Xt(){if(!b()){rt.error(n.terminal_scriptOutput_noWorkspace_error());return}m.dispatch(be(b(),$(),j()?.text,ft))}C(()=>{u().status==="idle"&&v().chunks.length===0&&_t()}),C(()=>{!(u().status==="idle"&&v().chunks.length===0)&&E&&!i&&(M!==null&&cancelAnimationFrame(M),M=requestAnimationFrame(()=>{M=null,jt()}))}),ie(()=>{_t()});var Ht={get scriptId(){return $()},set scriptId(t){$(t),J()},get workspaceId(){return b()},set workspaceId(t){b(t),J()},get class(){return st()},set class(t=""){st(t),J()},get runDisabled(){return at()},set runDisabled(t=!1){at(t),J()},get runDisabledReason(){return T()},set runDisabledReason(t=null){T(t),J()},$set:te,$on:(t,e)=>re(c,t,e)},tt=ze(),vt=O(tt);{var Vt=t=>{var e=Be(),a=O(e),s=O(a),l=O(s);ct(l,{get icon(){return Se},size:"xs"}),D(s);var g=p(s,2),k=R(g,!0);D(a);var A=p(a,2);{var d=r=>{$t(r,{variant:"outline",size:"sm",class:"h-7 text-xs bg-background border border-border text-danger",onclick:Xt,children:(o,w)=>{var P=Dt(),K=wt(P);ct(K,{get icon(){return Ae},size:"sm",class:"mr-1.5"});var et=p(K);x(ot=>h(et,` ${ot??""}`),[()=>n.terminal_scriptOutput_askAiToFix_label()]),f(o,P)},$$slots:{default:!0}})};I(A,r=>{Rt()||r(d)})}D(e),x(r=>h(k,r),[()=>n.terminal_scriptOutput_buildFailed_label({exitCode:u().exitCode??0})]),f(t,e)};I(vt,t=>{F(Wt)&&t(Vt)})}var bt=p(vt,2);{var Kt=t=>{var e=Ee(),a=O(e),s=R(a,!0),l=p(a,2),g=R(l,!0),k=p(l,2);{var A=r=>{var o=Te();let w;var P=R(o,!0);x(()=>{w=le(o,"",w,{"font-family":S()}),h(P,j().text)}),f(r,o)},d=r=>{var o=qe(),w=R(o,!0);x(P=>h(w,P),[()=>j().status==="loading"?n.terminal_scriptOutput_retainedLoading_label():n.terminal_scriptOutput_retainedUnavailable_label()]),f(r,o)};I(k,r=>{j().status==="available"?r(A):r(d,-1)})}D(e),x((r,o)=>{h(s,r),h(g,o)},[()=>n.terminal_scriptOutput_retained_label(),()=>n.terminal_scriptOutput_retained_description()]),de("open","toggle",e,r=>Y(nt,r),()=>F(nt)),f(t,e)};I(bt,t=>{j()&&t(Kt)})}var gt=p(bt,2);{var Nt=t=>{var e=Me(),a=R(e,!0);x(s=>h(a,s),[()=>n.terminal_scriptOutput_live_label()]),f(t,e)};I(gt,t=>{v().chunks.length>0&&j()&&t(Nt)})}var xt=p(gt,2);{var Yt=t=>{var e=je(),a=O(e),s=p(O(a),2);{var l=d=>{var r=Pe(),o=R(r,!0);x(w=>h(o,w),[()=>ve(dt())]),f(d,r)};I(s,d=>{dt()&&d(l)})}var g=p(s,2);{let d=G(()=>T()??void 0),r=G(()=>n.terminal_scriptOutput_run_label()),o=G(()=>T()?z:void 0);$t(g,{variant:"ghost",size:"xs",get disabled(){return F(pt)},get tooltip(){return F(d)},get"aria-label"(){return F(r)},get"aria-describedby"(){return F(o)},onclick:Ut,class:"text-muted-foreground hover:text-foreground",children:(w,P)=>{var K=Dt(),et=wt(K);ct(et,{get icon(){return $e},class:"h-3 w-3 mr-1"});var ot=p(et);x(Qt=>h(ot,` ${Qt??""}`),[()=>n.terminal_scriptOutput_run_label()]),f(w,K)},$$slots:{default:!0}})}var k=p(g,2);{var A=d=>{var r=We(),o=R(r,!0);x(()=>{ce(r,"id",z),h(o,T())}),f(d,r)};I(k,d=>{T()&&d(A)})}D(a),D(e),f(t,e)};I(xt,t=>{u().status==="idle"&&v().chunks.length===0&&t(Yt)})}var it=p(xt,2);let ht;var Gt=O(it);ue(Gt,t=>E=t,()=>E),D(it),D(tt),x(()=>{St(tt,1,`script-output-viewer ${st()??""}`,"svelte-115p4sl"),ht=St(it,1,"flex-1 relative overflow-hidden",null,ht,{hidden:u().status==="idle"&&v().chunks.length===0})}),f(_,tt);var Jt=oe(Ht);return It(),Jt}async function fr(_,c,z){const L=ut.select(m.state,_,c);if(!L||!z()||!Ct.select(m.state,_,c))return;const u=Ot(L.runtime?.status),v=Ft.select(m.state,_);if(!v){rt.error(n.workspace_client_accessChanged_error());return}if(!await Le({title:n.scripts_delete_title({name:L.name}),description:u?n.scripts_delete_running_description():n.scripts_delete_description(),confirmLabel:n.scripts_delete_label(),destructive:!0}))return;if(v!==Ft.select(m.state,_)){rt.error(n.workspace_client_accessChanged_error());return}const S=ut.select(m.state,_,c);if(!z()||!S||S.createdAt!==L.createdAt||S.name!==L.name||!u&&Ot(S.runtime?.status)||!Ct.select(m.state,_,c)){rt.error(n.scripts_delete_changed_error());return}m.dispatch(ge(_,c,n.terminal_quakeOverlay_deleteScriptFailed_error()))}export{Ue as S,fr as c};