@intent-hq/web 2.327.1 → 2.327.2

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 (277) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.BHoek2bX.css +1 -0
  3. package/web/app/immutable/assets/BrowserTabType.DojB6H-_.css +1 -0
  4. package/web/app/immutable/chunks/{-M5ArFu9.js → -ntpqjUQ.js} +1 -1
  5. package/web/app/immutable/chunks/{BNaHRmzO.js → 1JDc8gDP.js} +1 -1
  6. package/web/app/immutable/chunks/{BG0wXYTP.js → 2BNczbc1.js} +1 -1
  7. package/web/app/immutable/chunks/{D12HgGYA.js → 2Yr7qZy-.js} +1 -1
  8. package/web/app/immutable/chunks/{DlJbQHTT.js → 2bCqOBlF.js} +2 -2
  9. package/web/app/immutable/chunks/{LsGMNfQF.js → 6eTaxSHq.js} +1 -1
  10. package/web/app/immutable/chunks/{NOdC8P9f.js → 7nLxl2IJ.js} +1 -1
  11. package/web/app/immutable/chunks/{0LhXCP94.js → 7rjdCDDK.js} +1 -1
  12. package/web/app/immutable/chunks/{QHP8cHaW.js → 95PmebfY.js} +1 -1
  13. package/web/app/immutable/chunks/{XNWMykPO.js → 9iFKJfkz.js} +1 -1
  14. package/web/app/immutable/chunks/{CWc2npkj.js → 9taqgPH1.js} +1 -1
  15. package/web/app/immutable/chunks/{Br4R2ugZ.js → Am8TuXrW.js} +1 -1
  16. package/web/app/immutable/chunks/{KeVqoPE3.js → AuTI2CWB.js} +1 -1
  17. package/web/app/immutable/chunks/{BYcS-OAO.js → Aw3-65IC.js} +1 -1
  18. package/web/app/immutable/chunks/{DMqElfxm.js → B-B22ZmQ.js} +1 -1
  19. package/web/app/immutable/chunks/{BkbuDEW6.js → B-LxAE4l.js} +1 -1
  20. package/web/app/immutable/chunks/{2NEwynpS.js → B-mVY4KG.js} +1 -1
  21. package/web/app/immutable/chunks/{fqXfkYA3.js → B1nmZwVF.js} +1 -1
  22. package/web/app/immutable/chunks/{BkHD8RFf.js → B4Qf0RS5.js} +1 -1
  23. package/web/app/immutable/chunks/{CiOl9c9q.js → B4Rscrf6.js} +1 -1
  24. package/web/app/immutable/chunks/{Bh1wyaG7.js → B5kBEM9z.js} +1 -1
  25. package/web/app/immutable/chunks/{DGOeaTcp.js → B6ZEHAgn.js} +1 -1
  26. package/web/app/immutable/chunks/{Cg5C1MrF.js → BBYPPwon.js} +1 -1
  27. package/web/app/immutable/chunks/{BMeZr_ZY.js → BCBkAQhq.js} +1 -1
  28. package/web/app/immutable/chunks/{BX1HymTE.js → BDUVRWqe.js} +3 -3
  29. package/web/app/immutable/chunks/{Ddd4tibk.js → BFQmpH-Y.js} +1 -1
  30. package/web/app/immutable/chunks/{Bz8cPQaz.js → BGUHg5o_.js} +1 -1
  31. package/web/app/immutable/chunks/{DLGpFr8e.js → BIfN-lxi.js} +1 -1
  32. package/web/app/immutable/chunks/{B-r2QfY2.js → BJFbczXI.js} +1 -1
  33. package/web/app/immutable/chunks/{CpBlZvWi.js → BJpbRkma.js} +1 -1
  34. package/web/app/immutable/chunks/{BjM8_HSR.js → BK3YE2GB.js} +1 -1
  35. package/web/app/immutable/chunks/{BfF3Bko_.js → BMmC4e8Y.js} +1 -1
  36. package/web/app/immutable/chunks/{BTBcxnN8.js → BOY33UBS.js} +4 -4
  37. package/web/app/immutable/chunks/{nWTC446c.js → BOod2-vo.js} +1 -1
  38. package/web/app/immutable/chunks/{Ct_B1TOh.js → BQKilZql.js} +1 -1
  39. package/web/app/immutable/chunks/{64lOi4Xe.js → BTxVcBTE.js} +1 -1
  40. package/web/app/immutable/chunks/{CveDKSFg.js → BUU84hQY.js} +1 -1
  41. package/web/app/immutable/chunks/{CRTNdBBv.js → BUcg736f.js} +1 -1
  42. package/web/app/immutable/chunks/{CFBUnCgB.js → BV4AHhCq.js} +1 -1
  43. package/web/app/immutable/chunks/{DOb8Kchl.js → BXo80d0I.js} +1 -1
  44. package/web/app/immutable/chunks/BYCQnKWG.js +227 -0
  45. package/web/app/immutable/chunks/{B30-sYDS.js → B_oexMWu.js} +1 -1
  46. package/web/app/immutable/chunks/{CQFSvKTc.js → BaUvfuFA.js} +1 -1
  47. package/web/app/immutable/chunks/BbEZgkca.js +2 -0
  48. package/web/app/immutable/chunks/{CW3DpzM0.js → BbiJIN_E.js} +1 -1
  49. package/web/app/immutable/chunks/{B7ookV3M.js → BclymnXe.js} +1 -1
  50. package/web/app/immutable/chunks/Bdee7uP3.js +1 -0
  51. package/web/app/immutable/chunks/{BWUOkr40.js → BedviAdk.js} +1 -1
  52. package/web/app/immutable/chunks/{Cg9SqQ7c.js → BerYBtY0.js} +1 -1
  53. package/web/app/immutable/chunks/{DkUbh_iD.js → BgiA9PsC.js} +2 -2
  54. package/web/app/immutable/chunks/{DAJaDZx7.js → Bhff3giG.js} +1 -1
  55. package/web/app/immutable/chunks/{BShEFC79.js → BiYl2nZq.js} +3 -3
  56. package/web/app/immutable/chunks/{Dbo0LK0t.js → Bil-5-Mv.js} +1 -1
  57. package/web/app/immutable/chunks/{DzVbP61K.js → BirvpWBa.js} +1 -1
  58. package/web/app/immutable/chunks/{B_KuwYoa.js → BlmamAqo.js} +1 -1
  59. package/web/app/immutable/chunks/{BdSGNHEM.js → BmnlV2jU.js} +1 -1
  60. package/web/app/immutable/chunks/{COnSiP7q.js → Bn-dz7cW.js} +1 -1
  61. package/web/app/immutable/chunks/{BzaZqOK5.js → BnxF3EEm.js} +1 -1
  62. package/web/app/immutable/chunks/{CHajdz2j.js → Bq9BF2kT.js} +1 -1
  63. package/web/app/immutable/chunks/{Bqp-VB-g.js → BrXRAcqE.js} +1 -1
  64. package/web/app/immutable/chunks/{CNJgwoNk.js → BsesepNZ.js} +1 -1
  65. package/web/app/immutable/chunks/{Dq6j0-2d.js → BvDDdxJ_.js} +1 -1
  66. package/web/app/immutable/chunks/{Dh9hsi3V.js → BvULLTwA.js} +2 -2
  67. package/web/app/immutable/chunks/{_ANEY4lF.js → Bw8BPAST.js} +1 -1
  68. package/web/app/immutable/chunks/{BOAArWys.js → BwVx_Xm9.js} +1 -1
  69. package/web/app/immutable/chunks/{CARGil7N.js → BwY7DKzU.js} +1 -1
  70. package/web/app/immutable/chunks/{CloK0EEY.js → BxRFeUGV.js} +1 -1
  71. package/web/app/immutable/chunks/{BV2NfA3h.js → Byv1V5rF.js} +1 -1
  72. package/web/app/immutable/chunks/{B2pW1Srg.js → C-am1GTe.js} +1 -1
  73. package/web/app/immutable/chunks/{u2JaOdc9.js → C0AexULD.js} +1 -1
  74. package/web/app/immutable/chunks/{Cz0WCDEU.js → C1TwLTiC.js} +1 -1
  75. package/web/app/immutable/chunks/{DDbIukDL.js → C1vc2ZF2.js} +1 -1
  76. package/web/app/immutable/chunks/{CAKIN9jR.js → C2vxCrLD.js} +1 -1
  77. package/web/app/immutable/chunks/{CY7bNGyv.js → C3g8Ux-E.js} +15 -15
  78. package/web/app/immutable/chunks/{BsC5Vdmg.js → C4ih-xND.js} +2 -2
  79. package/web/app/immutable/chunks/{CE6SftSb.js → C5SMJxa0.js} +2 -2
  80. package/web/app/immutable/chunks/{VU4R1gKj.js → C5bHHEee.js} +1 -1
  81. package/web/app/immutable/chunks/{DJ4-kbB4.js → C5mH9Vrl.js} +1 -1
  82. package/web/app/immutable/chunks/{DffOpxnk.js → C6-cGH2l.js} +1 -1
  83. package/web/app/immutable/chunks/{XEwS43QE.js → C6LN2Lq-.js} +1 -1
  84. package/web/app/immutable/chunks/{BIDHVOHc.js → C7eFRIGF.js} +1 -1
  85. package/web/app/immutable/chunks/{DA0d2_fu.js → C9-oKvmU.js} +1 -1
  86. package/web/app/immutable/chunks/{ncAOXs0r.js → CAL5qbag.js} +1 -1
  87. package/web/app/immutable/chunks/{DTWWM1mF.js → CB-J-0bJ.js} +1 -1
  88. package/web/app/immutable/chunks/{BSGuytEP.js → CBEZBV7x.js} +1 -1
  89. package/web/app/immutable/chunks/{Bay8SY9e.js → CDFRtA1F.js} +1 -1
  90. package/web/app/immutable/chunks/{0FIzxpig.js → CFXA-WTd.js} +1 -1
  91. package/web/app/immutable/chunks/{CVrziC3b.js → CHb5dSdm.js} +1 -1
  92. package/web/app/immutable/chunks/{BsOdwfJ2.js → CIno4eJd.js} +1 -1
  93. package/web/app/immutable/chunks/{DoUTd6YZ.js → CJvik4ry.js} +1 -1
  94. package/web/app/immutable/chunks/{DQtJDu2z.js → CKjldRop.js} +1 -1
  95. package/web/app/immutable/chunks/{7t1XfqI3.js → CLDLGPLG.js} +1 -1
  96. package/web/app/immutable/chunks/{Dqktyx17.js → CLbcqiJX.js} +1 -1
  97. package/web/app/immutable/chunks/{JKgT3h6U.js → CNZwPZBB.js} +1 -1
  98. package/web/app/immutable/chunks/CNdlzZOD.js +1 -0
  99. package/web/app/immutable/chunks/{B1HL5ujX.js → COPJQClu.js} +1 -1
  100. package/web/app/immutable/chunks/{CJNRFxp-.js → COyObFie.js} +1 -1
  101. package/web/app/immutable/chunks/{h64QYX68.js → CPzusSaQ.js} +1 -1
  102. package/web/app/immutable/chunks/{Djac9356.js → CSk0KPBP.js} +1 -1
  103. package/web/app/immutable/chunks/CTMsT2IU.js +13 -0
  104. package/web/app/immutable/chunks/{xMXcl1K_.js → CTc1mqQ1.js} +1 -1
  105. package/web/app/immutable/chunks/{Bv_Vppnv.js → CW87SeGI.js} +1 -1
  106. package/web/app/immutable/chunks/{3ltPZd_n.js → CW9PUdij.js} +1 -1
  107. package/web/app/immutable/chunks/{CR_DZSId.js → CWXjKpBJ.js} +1 -1
  108. package/web/app/immutable/chunks/{D_3K3qbV.js → CXCbFJ1d.js} +1 -1
  109. package/web/app/immutable/chunks/{BXYIlyr0.js → CYgFtonv.js} +1 -1
  110. package/web/app/immutable/chunks/{BPU4W-ai.js → C_4hXDel.js} +1 -1
  111. package/web/app/immutable/chunks/{BTS44Ia3.js → Ca3Yads8.js} +4 -4
  112. package/web/app/immutable/chunks/{DPkc4abw.js → CaaDYQm4.js} +5 -5
  113. package/web/app/immutable/chunks/{D4V2xQ2J.js → CcSZNfbk.js} +1 -1
  114. package/web/app/immutable/chunks/{CS6MUgvJ.js → CdhZKdub.js} +1 -1
  115. package/web/app/immutable/chunks/{BX3vzTpn.js → CdlZ8r5v.js} +1 -1
  116. package/web/app/immutable/chunks/{CLKUBIbV.js → CeL4K7HS.js} +1 -1
  117. package/web/app/immutable/chunks/{BIlDYPC_.js → ChyK3c5O.js} +1 -1
  118. package/web/app/immutable/chunks/{C_GLszen.js → Ciht8P3-.js} +1 -1
  119. package/web/app/immutable/chunks/{CAqh5rmU.js → ClBnJ15C.js} +1 -1
  120. package/web/app/immutable/chunks/{BB6ApKQZ.js → ClHpwdNk.js} +1 -1
  121. package/web/app/immutable/chunks/{BhpvRaEf.js → Co3V5w5D.js} +1 -1
  122. package/web/app/immutable/chunks/{BLE555FN.js → ColHxoku.js} +4 -4
  123. package/web/app/immutable/chunks/{C2eGBEPE.js → CpOX1cm0.js} +4 -4
  124. package/web/app/immutable/chunks/{BRua-6UM.js → CpPVAOg5.js} +1 -1
  125. package/web/app/immutable/chunks/{SFeFj2Mb.js → CqnfptVg.js} +1 -1
  126. package/web/app/immutable/chunks/{OcoLTaau.js → CrN8CpnY.js} +1 -1
  127. package/web/app/immutable/chunks/{B90oo4Fg.js → CtRuzEKN.js} +1 -1
  128. package/web/app/immutable/chunks/{BbM6p2an.js → CuF24etW.js} +1 -1
  129. package/web/app/immutable/chunks/{C1vG2W_v.js → CuimWTUN.js} +1 -1
  130. package/web/app/immutable/chunks/{BBkcKcU8.js → CvG8wNT6.js} +1 -1
  131. package/web/app/immutable/chunks/{C6ibAYOP.js → Cw26kBCe.js} +1 -1
  132. package/web/app/immutable/chunks/{CbNg55gb.js → Cwdoe-yo.js} +1 -1
  133. package/web/app/immutable/chunks/{CfViy2AB.js → Cy1SRgRj.js} +1 -1
  134. package/web/app/immutable/chunks/{BBuOsJY_.js → CypQ6Hrf.js} +1 -1
  135. package/web/app/immutable/chunks/{BEDYQfP7.js → CzSCQAr8.js} +1 -1
  136. package/web/app/immutable/chunks/{Bz7DX0NE.js → CzxoHP9X.js} +1 -1
  137. package/web/app/immutable/chunks/{CAhkQWjW.js → D-YrUZis.js} +1 -1
  138. package/web/app/immutable/chunks/{COhk9eQe.js → D0OfnhNR.js} +3 -3
  139. package/web/app/immutable/chunks/{CFMVBWPg.js → D19QPbvx.js} +3 -3
  140. package/web/app/immutable/chunks/{Dhe30u3B.js → D1ynivqZ.js} +1 -1
  141. package/web/app/immutable/chunks/{DSXweTPQ.js → D3NOBSUZ.js} +3 -3
  142. package/web/app/immutable/chunks/{DvIxHqlz.js → D4fSLYwV.js} +1 -1
  143. package/web/app/immutable/chunks/{DY34YAUg.js → D4wUHJ-V.js} +1 -1
  144. package/web/app/immutable/chunks/{EsKpz1xg.js → D4wVqBkS.js} +1 -1
  145. package/web/app/immutable/chunks/{BEWET3uQ.js → D6NxvjAo.js} +2 -2
  146. package/web/app/immutable/chunks/{B7UZ3osx.js → D6R6bmhK.js} +1 -1
  147. package/web/app/immutable/chunks/{He8rzvWn.js → D7NWkz7l.js} +1 -1
  148. package/web/app/immutable/chunks/{DVTqQKPY.js → D7jA8MQK.js} +1 -1
  149. package/web/app/immutable/chunks/{BIJpUOPV.js → D8iLOeUT.js} +1 -1
  150. package/web/app/immutable/chunks/{DRWb3sje.js → D9E32u14.js} +1 -1
  151. package/web/app/immutable/chunks/{BuVVc2l9.js → DAXKoZjm.js} +1 -1
  152. package/web/app/immutable/chunks/{CnoeAOCE.js → DCo2M5nt.js} +1 -1
  153. package/web/app/immutable/chunks/{COyOtekU.js → DF5OSHTI.js} +1 -1
  154. package/web/app/immutable/chunks/{C3DbH19I.js → DFghII67.js} +1 -1
  155. package/web/app/immutable/chunks/{B3FUftaT.js → DFxg8FPE.js} +1 -1
  156. package/web/app/immutable/chunks/{om7e-2Da.js → DGuIJztL.js} +1 -1
  157. package/web/app/immutable/chunks/{g2wqtBd2.js → DIh4SQwA.js} +1 -1
  158. package/web/app/immutable/chunks/{B_68BQEQ.js → DKz0oh_l.js} +1 -1
  159. package/web/app/immutable/chunks/DLrZLCmS.js +1 -0
  160. package/web/app/immutable/chunks/{DPsk7Xmu.js → DQfuBwT8.js} +1 -1
  161. package/web/app/immutable/chunks/{D3HFKabi.js → DSwaqM2D.js} +1 -1
  162. package/web/app/immutable/chunks/{BVSo0mI7.js → DT-w4ZA3.js} +1 -1
  163. package/web/app/immutable/chunks/{Dfqtr6u5.js → DTOenBGo.js} +1 -1
  164. package/web/app/immutable/chunks/{CZq5__sk.js → DULzeUbw.js} +1 -1
  165. package/web/app/immutable/chunks/{Du-ii3l_.js → DVe2mCXY.js} +1 -1
  166. package/web/app/immutable/chunks/{EYJPT7ez.js → DVnJa0eT.js} +1 -1
  167. package/web/app/immutable/chunks/{Bu6O9iBY.js → DXmMVRov.js} +1 -1
  168. package/web/app/immutable/chunks/{D7UcpeiI.js → DZzTUgIA.js} +1 -1
  169. package/web/app/immutable/chunks/{Bwb9opno.js → D_TIL4Xc.js} +1 -1
  170. package/web/app/immutable/chunks/{DVWkN6zJ.js → D_fIP8PG.js} +1 -1
  171. package/web/app/immutable/chunks/{A8xzSidY.js → D_kdhP8o.js} +1 -1
  172. package/web/app/immutable/chunks/{DSTlg4w0.js → DacYbmEF.js} +1 -1
  173. package/web/app/immutable/chunks/{Cy-COy2y.js → DbYMKWAI.js} +2 -2
  174. package/web/app/immutable/chunks/{CXJnOaE2.js → Dd-c6aT7.js} +1 -1
  175. package/web/app/immutable/chunks/{BkFZSZBw.js → DeB-Py0k.js} +1 -1
  176. package/web/app/immutable/chunks/{COC8ycoj.js → DeQzn7pT.js} +1 -1
  177. package/web/app/immutable/chunks/Debl1LJu.js +1 -0
  178. package/web/app/immutable/chunks/{4MDpT4VG.js → DgtgAyRj.js} +1 -1
  179. package/web/app/immutable/chunks/{CtSt73sJ.js → DguixOqZ.js} +1 -1
  180. package/web/app/immutable/chunks/{D2jjmu4v.js → DhAAH4rU.js} +1 -1
  181. package/web/app/immutable/chunks/{b9Vr5sSO.js → DhJNH_hq.js} +1 -1
  182. package/web/app/immutable/chunks/{Dml3pCbo.js → DkPB5Gyi.js} +1 -1
  183. package/web/app/immutable/chunks/{CfMhquYs.js → DkcUxSHK.js} +1 -1
  184. package/web/app/immutable/chunks/{CIdiIwVr.js → Dmq2MLxr.js} +1 -1
  185. package/web/app/immutable/chunks/{DQW3vv7z.js → Do9PiZ5P.js} +2 -2
  186. package/web/app/immutable/chunks/{w57SWl6G.js → DoKuqfYA.js} +1 -1
  187. package/web/app/immutable/chunks/{IN5H29V-.js → DoV4Ngwf.js} +1 -1
  188. package/web/app/immutable/chunks/Dp0wSsDS.js +2 -0
  189. package/web/app/immutable/chunks/{B1LjZG7N.js → DpJ6ItFS.js} +1 -1
  190. package/web/app/immutable/chunks/DqIdPWw6.js +1 -0
  191. package/web/app/immutable/chunks/{zfZ9LSKu.js → DqLpc8uk.js} +1 -1
  192. package/web/app/immutable/chunks/{DEylYCps.js → Dr-K85Pz.js} +1 -1
  193. package/web/app/immutable/chunks/{CdmW6laI.js → DrH3w3jB.js} +1 -1
  194. package/web/app/immutable/chunks/{BtodRLK5.js → DsvlGcLM.js} +1 -1
  195. package/web/app/immutable/chunks/{B7bvyyYD.js → DuXpPbhO.js} +1 -1
  196. package/web/app/immutable/chunks/{B7UjoaT4.js → DugVvFNn.js} +1 -1
  197. package/web/app/immutable/chunks/{C_rSlxHm.js → DvnDAxdo.js} +1 -1
  198. package/web/app/immutable/chunks/{BgtLN2kD.js → DwkxcWNI.js} +3 -3
  199. package/web/app/immutable/chunks/{CUBPdQc3.js → Es_LZ_6E.js} +1 -1
  200. package/web/app/immutable/chunks/{vpJZSAdN.js → Fb6bTqJy.js} +1 -1
  201. package/web/app/immutable/chunks/{BACH6cFH.js → Gh0Bk6WC.js} +1 -1
  202. package/web/app/immutable/chunks/{1cW9cCot.js → HVSUZ4Kq.js} +1 -1
  203. package/web/app/immutable/chunks/{BCLA-ClZ.js → HdOtmFfs.js} +1 -1
  204. package/web/app/immutable/chunks/{-YfVx6Lr.js → HpcR9-ZP.js} +1 -1
  205. package/web/app/immutable/chunks/{BwBvFc9f.js → IsBHRTqp.js} +1 -1
  206. package/web/app/immutable/chunks/{YqIGmKYo.js → KuKwSJYu.js} +1 -1
  207. package/web/app/immutable/chunks/{CTygu5pv.js → LknVBIaq.js} +1 -1
  208. package/web/app/immutable/chunks/{DDBvEq_9.js → M0UFWl_S.js} +1 -1
  209. package/web/app/immutable/chunks/{tLxzRwgx.js → M47n670V.js} +1 -1
  210. package/web/app/immutable/chunks/{UyxlQTVj.js → MgRcWC-F.js} +1 -1
  211. package/web/app/immutable/chunks/{91je9Py3.js → OhUwMaQy.js} +1 -1
  212. package/web/app/immutable/chunks/{C43voWK4.js → Ou2B083h.js} +3 -3
  213. package/web/app/immutable/chunks/{DdwmoVU4.js → Ph7T0qF8.js} +1 -1
  214. package/web/app/immutable/chunks/{cP091E7D.js → Q-FVgluz.js} +1 -1
  215. package/web/app/immutable/chunks/{Be_ON1DI.js → RgXiUiyX.js} +1 -1
  216. package/web/app/immutable/chunks/{DxO0RaOm.js → X6OEIYik.js} +1 -1
  217. package/web/app/immutable/chunks/{G424GJSb.js → XKfxOi0c.js} +1 -1
  218. package/web/app/immutable/chunks/{CToUKfVS.js → YcWsBw0J.js} +1 -1
  219. package/web/app/immutable/chunks/{DI2RXiNP.js → ZynkSP7B.js} +1 -1
  220. package/web/app/immutable/chunks/{7Nb-tEer.js → _tv07_-D.js} +1 -1
  221. package/web/app/immutable/chunks/{CrYKIqze.js → b0njYmMP.js} +1 -1
  222. package/web/app/immutable/chunks/{C89aUqor.js → b8_D7H9k.js} +1 -1
  223. package/web/app/immutable/chunks/{CRgWqp0Q.js → bkMlvHq9.js} +1 -1
  224. package/web/app/immutable/chunks/{CM-bTlQg.js → dd8yLL6Y.js} +1 -1
  225. package/web/app/immutable/chunks/{BKGMAISF.js → dinOFH6z.js} +1 -1
  226. package/web/app/immutable/chunks/{DYv6YVU6.js → ewlOsRgS.js} +1 -1
  227. package/web/app/immutable/chunks/{XgnGQLkv.js → fSndiqme.js} +1 -1
  228. package/web/app/immutable/chunks/{Ct-dlzru.js → ffjPpoAP.js} +1 -1
  229. package/web/app/immutable/chunks/{ChHo_2Kq.js → gnxdhh79.js} +1 -1
  230. package/web/app/immutable/chunks/{BiQ0kKJZ.js → jD6u_pUu.js} +1 -1
  231. package/web/app/immutable/chunks/jxb5pgpW.js +19 -0
  232. package/web/app/immutable/chunks/{CnFIAIdG.js → l7AMrk83.js} +1 -1
  233. package/web/app/immutable/chunks/{0GcDPFAS.js → marbulK7.js} +1 -1
  234. package/web/app/immutable/chunks/{CwaJlHvl.js → n9Db8fQb.js} +1 -1
  235. package/web/app/immutable/chunks/{BwfrxhET.js → qB-JaQGy.js} +1 -1
  236. package/web/app/immutable/chunks/{D1tS2Sh2.js → se5GXd0p.js} +1 -1
  237. package/web/app/immutable/chunks/{Boy3njow.js → tVWh__3e.js} +1 -1
  238. package/web/app/immutable/chunks/{CCqeKXhI.js → uxNvmxnz.js} +1 -1
  239. package/web/app/immutable/chunks/{DvXSnwEo.js → vxH9TB8u.js} +1 -1
  240. package/web/app/immutable/chunks/{Duo9To9j.js → wOsjtdPJ.js} +1 -1
  241. package/web/app/immutable/chunks/{BsmdqgDs.js → xNaKu_mj.js} +1 -1
  242. package/web/app/immutable/entry/{app.C8ZhaB4m.js → app.CUk63TN3.js} +3 -3
  243. package/web/app/immutable/entry/start.ByRHyT3-.js +1 -0
  244. package/web/app/immutable/nodes/{0.BDAB8VWB.js → 0.D4UmpUyl.js} +1 -1
  245. package/web/app/immutable/nodes/{1.CVUy-46P.js → 1.DTuLvyGe.js} +1 -1
  246. package/web/app/immutable/nodes/{10.B-f9eiav.js → 10.yW5YYZcV.js} +1 -1
  247. package/web/app/immutable/nodes/{11.CS_mVYvl.js → 11.fqpT905Q.js} +1 -1
  248. package/web/app/immutable/nodes/{12.DWOozFK_.js → 12.B-WFagfi.js} +1 -1
  249. package/web/app/immutable/nodes/{13.CRnWHlMu.js → 13.knDmuG_H.js} +3 -3
  250. package/web/app/immutable/nodes/{14.BvXwRXk_.js → 14.CtAbrlVb.js} +1 -1
  251. package/web/app/immutable/nodes/{15.CvF4Yj4G.js → 15.5d-87wXx.js} +1 -1
  252. package/web/app/immutable/nodes/{16.CbnUh4xL.js → 16.BcAEiIYy.js} +1 -1
  253. package/web/app/immutable/nodes/{17.2vxzrHyO.js → 17.S_DWC10F.js} +2 -2
  254. package/web/app/immutable/nodes/{2.Bqgsv7WD.js → 2.D-iQ8fmd.js} +11 -11
  255. package/web/app/immutable/nodes/{3.BMV3o2AW.js → 3.CQKvVdrW.js} +1 -1
  256. package/web/app/immutable/nodes/{4.DS2WiQYi.js → 4.Dq9WSzj3.js} +1 -1
  257. package/web/app/immutable/nodes/{5.Cev1tKbw.js → 5.C2b8MeJP.js} +2 -2
  258. package/web/app/immutable/nodes/{6.Cx-CL8qG.js → 6.DZyVWynY.js} +1 -1
  259. package/web/app/immutable/nodes/{7.DQIGXkGA.js → 7.BNPj2Hjb.js} +1 -1
  260. package/web/app/immutable/nodes/{8.CwodZ6Q4.js → 8.CYaF3iZ7.js} +4 -4
  261. package/web/app/immutable/nodes/{9.BqamPD8c.js → 9.D9yeuWg6.js} +16 -16
  262. package/web/app/version.json +1 -1
  263. package/web/generated/paraglide.js +49 -49
  264. package/web/index.html +20 -20
  265. package/web/app/immutable/assets/0.B58gYYGv.css +0 -1
  266. package/web/app/immutable/assets/BrowserTabType.Dm5f_Y-q.css +0 -1
  267. package/web/app/immutable/chunks/BcdAyX4K.js +0 -2
  268. package/web/app/immutable/chunks/BkBjviLd.js +0 -1
  269. package/web/app/immutable/chunks/C6HefDtf.js +0 -19
  270. package/web/app/immutable/chunks/CUNfV-oG.js +0 -227
  271. package/web/app/immutable/chunks/DSks1Sd3.js +0 -2
  272. package/web/app/immutable/chunks/Df216rki.js +0 -1
  273. package/web/app/immutable/chunks/DwfohDpO.js +0 -1
  274. package/web/app/immutable/chunks/HNL944mw.js +0 -1
  275. package/web/app/immutable/chunks/O0uPRDIU.js +0 -13
  276. package/web/app/immutable/chunks/syxE6N1N.js +0 -1
  277. package/web/app/immutable/entry/start.CcpVYiXq.js +0 -1
@@ -1 +1 @@
1
- import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as J}from"./B7UZ3osx.js";import{F as g,o as P,p,H as _}from"./BNaHRmzO.js";import{Ig as c}from"./CpBlZvWi.js";import{B as G,H as S,v as Q,O as Z,J as V}from"./CdmW6laI.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function O(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function F(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!G(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=F(d(),l);return o&&e.preventDefault(),o}if(i){const o=O(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||J(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
1
+ import{br as H}from"./DYhIMPy1.js";import{c as U}from"./ChTqQfQN.js";import{a as W,i as J}from"./D6R6bmhK.js";import{F as g,o as P,p,H as _}from"./1JDc8gDP.js";import{Ig as c}from"./BJpbRkma.js";import{B as G,H as S,v as Q,O as Z,J as V}from"./DrH3w3jB.js";const f=U("PanelKeyboardShortcuts"),X=2e3;function se(d,m,K=()=>null,I={}){const v=I.isMac??(typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")),s=H({leaderActive:!1,leaderTimeout:null,isZoomed:!1,zoomedPanelId:null,showPanelNumbers:!1});function w(){s.leaderTimeout&&clearTimeout(s.leaderTimeout),s.leaderActive=!0,s.leaderTimeout=setTimeout(()=>{s.leaderActive=!1,s.showPanelNumbers=!1,f.debug("Leader key timed out")},X),f.debug("Leader key activated")}function h(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.showPanelNumbers=!1}function D(){s.leaderTimeout&&(clearTimeout(s.leaderTimeout),s.leaderTimeout=null),s.leaderActive=!1,s.isZoomed=!1,s.zoomedPanelId=null,s.showPanelNumbers=!1}function z(e){const n=d();switch(f.debug("Executing leader action",{action:e}),e){case"navigate-left":case"navigate-right":case"navigate-up":case"navigate-down":C(n,e.replace("navigate-",""));break;case"navigate-next":m?m("next"):k(n,"next");break;case"navigate-prev":m?m("prev"):k(n,"prev");break;case"split-right":{const t=p.select(c.state,n.workspaceId),a=g.select(c.state,n.workspaceId);t&&a.length<4&&n.splitPanel(t,"horizontal");break}case"zoom-toggle":E(n);break;case"zoom-reset":N();break;case"close-panel":{const t=p.select(c.state,n.workspaceId);t&&n.closePanel(t);break}case"resize-left":case"resize-right":case"resize-up":case"resize-down":f.debug("Resize action not yet implemented",{action:e});break;case"resize-equal":q(n);break;case"swap-prev":case"swap-next":f.debug("Swap action not yet implemented",{action:e});break;case"show-panel-numbers":s.showPanelNumbers=!0;return;case"move-tab-to-next-panel":{const t=P.select(c.state,n.workspaceId);if(t?.activeTabId){const a=n.getOtherPanelId();a&&n.moveTabToPanel(t.activeTabId,t.id,a)}break}case"cycle-layout-presets":n.cyclePresets();break}h()}function C(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t);if(!u){e.focusPanel(r[0]);return}const l=r.indexOf(u);let i;n==="left"||n==="up"?i=l>0?l-1:r.length-1:i=l<r.length-1?l+1:0,e.focusPanel(r[i])}function k(e,n){const t=e.workspaceId,a=c.state,r=g.select(a,t);if(r.length<=1)return;const u=p.select(a,t),l=u?r.indexOf(u):-1;let i;n==="next"?i=l<r.length-1?l+1:0:i=l>0?l-1:r.length-1,e.focusPanel(r[i])}function E(e){s.isZoomed=!s.isZoomed,s.isZoomed?s.zoomedPanelId=p.select(c.state,e.workspaceId):s.zoomedPanelId=null,f.debug("Zoom toggled",{isZoomed:s.isZoomed})}function N(){s.isZoomed=!1,s.zoomedPanelId=null,f.debug("Zoom reset")}function q(e){const n=_.select(c.state,e.workspaceId);if(!n)return;function t(a){if(a.type==="split"){const r=100/a.children.length;a.sizes=a.children.map(()=>r),a.children.forEach(t)}}t(n.root),f.debug("Equalized all panel sizes")}function x(e,n){const t=g.select(c.state,e.workspaceId);n>=0&&n<t.length&&e.focusPanel(t[n])}function O(e,n){const t=P.select(c.state,e.workspaceId);return!t||t.tabs.length<2?!1:(n==="next"?e.selectNextTab(t.id):e.selectPreviousTab(t.id),!0)}function F(e,n){if(I.onFocusAdjacentColumn)return I.onFocusAdjacentColumn(n);const t=g.select(c.state,e.workspaceId),a=p.select(c.state,e.workspaceId),u=(a?t.indexOf(a):-1)+(n==="next"?1:-1),l=t[u];return l?(e.focusPanel(l),!0):!1}function j(e,n){const t=P.select(c.state,e.workspaceId);return t?e.moveActivePaneToColumn(t.id,n):!1}function B(e){const n=g.select(c.state,e.workspaceId),t=p.select(c.state,e.workspaceId);return!t||n.length>=4?!1:(e.splitPanel(t,"horizontal"),!0)}function L(e){const n=v?e.metaKey&&!e.ctrlKey:e.ctrlKey&&!e.metaKey,t=c.state.userPreferences?.shortcutOverrides??{},a=o=>Z(o,t),r=o=>S(e,a(o),v),u=o=>r(o)&&!G(o,e,a,v),l=u("panel.focus-previous-column")?"prev":u("panel.focus-next-column")?"next":null,i=r("panel.previous-pane")?"prev":r("panel.next-pane")?"next":null;if(l){const o=F(d(),l);return o&&e.preventDefault(),o}if(i){const o=O(d(),i);return o&&e.preventDefault(),o}if(r("panel.create-column-right")){const o=B(d());return o&&(e.preventDefault(),e.stopPropagation()),o}const T=e.target instanceof Element?e.target:null;if(W(T)||J(T))return!1;const y=d(),A=r("panel.move-pane-previous-column")?"prev":r("panel.move-pane-next-column")?"next":null;if(A){const o=j(y,A);return o&&e.preventDefault(),o}if(n&&e.key===";"&&!e.shiftKey&&!e.altKey)return e.preventDefault(),w(),!0;if(s.leaderActive){if(e.preventDefault(),s.showPanelNumbers&&e.key>="1"&&e.key<="9")return x(y,parseInt(e.key)-1),h(),!0;const o=R(e);return o?(z(o),!0):(h(),!0)}return!1}function R(e){const n=i=>Z(i,c.state.userPreferences?.shortcutOverrides??{}),t=i=>V(e,n(i),v),a=t("leader.navigate-panels");if(a>=0)return["navigate-left","navigate-down","navigate-up","navigate-right"][a];const r=t("leader.resize-panels");if(r>=0)return["resize-left","resize-down","resize-up","resize-right"][r];const u=t("leader.next-previous-panel");if(u>=0)return u===0?"navigate-next":"navigate-prev";if(t("leader.split-right")>=0)return"split-right";if(t("leader.toggle-zoom")>=0)return"zoom-toggle";if(t("leader.close-panel")>=0)return"close-panel";if(t("leader.equalize-sizes")>=0)return"resize-equal";const l=Q(n("leader.jump-to-panel"));return l&&S(e,l,v)?"show-panel-numbers":t("leader.cycle-layout")>=0?"cycle-layout-presets":null}return{get availableCanvasWidth(){return K()},get leaderActive(){return s.leaderActive},get isZoomed(){return s.isZoomed},get zoomedPanelId(){return s.zoomedPanelId},get showPanelNumbers(){return s.showPanelNumbers},handleKeyDown:L,activateLeader:w,deactivateLeader:h,executeAction:z,focusPanelByIndex:x,cleanup:D}}const b=new Map;function ae(d,m){b.set(d,m)}function re(d){b.delete(d)}function oe(d){return b.get(d)}export{se as c,oe as g,ae as r,re as u};
@@ -1,4 +1,4 @@
1
- import{g as Ni}from"./BRua-6UM.js";import{s as Ci}from"./CUBPdQc3.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./BTBcxnN8.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
1
+ import{g as Ni}from"./CpPVAOg5.js";import{s as Ci}from"./Es_LZ_6E.js";import{U as Zs,aZ as jt,V as Qs,a_ as Gt,Y as bi,b0 as vi,b as h,aU as je,ay as _i,X as en,a1 as xi,aP as Mi,bh as wi,aV as Ui,r as Pi,O as Di,am as Fi,W as Bi,ab as $i,aG as ji,aA as Gi,aW as Wi}from"./BOY33UBS.js";function Wt(s){console&&console.error&&console.error(`Error: ${s}`)}function tn(s){console&&console.warn&&console.warn(`Warning: ${s}`)}function sn(s){const e=new Date().getTime(),t=s();return{time:new Date().getTime()-e,value:t}}function nn(s){function e(){}e.prototype=s;const t=new e;function n(){return typeof t.bar}return n(),n(),s}function Ki(s){return Vi(s)?s.LABEL:s.name}function Vi(s){return typeof s.LABEL=="string"&&s.LABEL!==""}class te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){this._definition=e}accept(e){e.visit(this),this.definition.forEach(t=>{t.accept(e)})}}class K extends te{constructor(e){super([]),this.idx=1,Object.assign(this,ie(e))}set definition(e){}get definition(){return this.referencedRule!==void 0?this.referencedRule.definition:[]}accept(e){e.visit(this)}}class _e extends te{constructor(e){super(e.definition),this.orgText="",Object.assign(this,ie(e))}}class W extends te{constructor(e){super(e.definition),this.ignoreAmbiguities=!1,Object.assign(this,ie(e))}}class G extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class se extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class ne extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class M extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class q extends te{constructor(e){super(e.definition),this.idx=1,Object.assign(this,ie(e))}}class Z extends te{get definition(){return this._definition}set definition(e){this._definition=e}constructor(e){super(e.definition),this.idx=1,this.ignoreAmbiguities=!1,this.hasPredicates=!1,Object.assign(this,ie(e))}}class k{constructor(e){this.idx=1,Object.assign(this,ie(e))}accept(e){e.visit(this)}}function zi(s){return s.map(at)}function at(s){function e(t){return t.map(at)}if(s instanceof K){const t={type:"NonTerminal",name:s.nonTerminalName,idx:s.idx};return typeof s.label=="string"&&(t.label=s.label),t}else{if(s instanceof W)return{type:"Alternative",definition:e(s.definition)};if(s instanceof G)return{type:"Option",idx:s.idx,definition:e(s.definition)};if(s instanceof se)return{type:"RepetitionMandatory",idx:s.idx,definition:e(s.definition)};if(s instanceof ne)return{type:"RepetitionMandatoryWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof q)return{type:"RepetitionWithSeparator",idx:s.idx,separator:at(new k({terminalType:s.separator})),definition:e(s.definition)};if(s instanceof M)return{type:"Repetition",idx:s.idx,definition:e(s.definition)};if(s instanceof Z)return{type:"Alternation",idx:s.idx,definition:e(s.definition)};if(s instanceof k){const t={type:"Terminal",name:s.terminalType.name,label:Ki(s.terminalType),idx:s.idx};typeof s.label=="string"&&(t.terminalLabel=s.label);const n=s.terminalType.PATTERN;return s.terminalType.PATTERN&&(t.pattern=n instanceof RegExp?n.source:n),t}else{if(s instanceof _e)return{type:"Rule",name:s.name,orgText:s.orgText,definition:e(s.definition)};throw Error("non exhaustive match")}}}function ie(s){return Object.fromEntries(Object.entries(s).filter(([,e])=>e!==void 0))}class xe{visit(e){const t=e;switch(t.constructor){case K:return this.visitNonTerminal(t);case W:return this.visitAlternative(t);case G:return this.visitOption(t);case se:return this.visitRepetitionMandatory(t);case ne:return this.visitRepetitionMandatoryWithSeparator(t);case q:return this.visitRepetitionWithSeparator(t);case M:return this.visitRepetition(t);case Z:return this.visitAlternation(t);case k:return this.visitTerminal(t);case _e:return this.visitRule(t);default:throw Error("non exhaustive match")}}visitNonTerminal(e){}visitAlternative(e){}visitOption(e){}visitRepetition(e){}visitRepetitionMandatory(e){}visitRepetitionMandatoryWithSeparator(e){}visitRepetitionWithSeparator(e){}visitAlternation(e){}visitTerminal(e){}visitRule(e){}}function Hi(s){return s instanceof W||s instanceof G||s instanceof M||s instanceof se||s instanceof ne||s instanceof q||s instanceof k||s instanceof _e}function Tt(s,e=[]){return s instanceof G||s instanceof M||s instanceof q?!0:s instanceof Z?s.definition.some(n=>Tt(n,e)):s instanceof K&&e.includes(s)?!1:s instanceof te?(s instanceof K&&e.push(s),s.definition.every(n=>Tt(n,e))):!1}function Xi(s){return s instanceof Z}function ee(s){if(s instanceof K)return"SUBRULE";if(s instanceof G)return"OPTION";if(s instanceof Z)return"OR";if(s instanceof se)return"AT_LEAST_ONE";if(s instanceof ne)return"AT_LEAST_ONE_SEP";if(s instanceof q)return"MANY_SEP";if(s instanceof M)return"MANY";if(s instanceof k)return"CONSUME";throw Error("non exhaustive match")}class kt{walk(e,t=[]){e.definition.forEach((n,i)=>{const a=e.definition.slice(i+1);if(n instanceof K)this.walkProdRef(n,a,t);else if(n instanceof k)this.walkTerminal(n,a,t);else if(n instanceof W)this.walkFlat(n,a,t);else if(n instanceof G)this.walkOption(n,a,t);else if(n instanceof se)this.walkAtLeastOne(n,a,t);else if(n instanceof ne)this.walkAtLeastOneSep(n,a,t);else if(n instanceof q)this.walkManySep(n,a,t);else if(n instanceof M)this.walkMany(n,a,t);else if(n instanceof Z)this.walkOr(n,a,t);else throw Error("non exhaustive match")})}walkTerminal(e,t,n){}walkProdRef(e,t,n){}walkFlat(e,t,n){const i=t.concat(n);this.walk(e,i)}walkOption(e,t,n){const i=t.concat(n);this.walk(e,i)}walkAtLeastOne(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkAtLeastOneSep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkMany(e,t,n){const i=[new G({definition:e.definition})].concat(t,n);this.walk(e,i)}walkManySep(e,t,n){const i=ys(e,t,n);this.walk(e,i)}walkOr(e,t,n){const i=t.concat(n);e.definition.forEach(a=>{const r=new W({definition:[a]});this.walk(r,i)})}}function ys(s,e,t){return[new G({definition:[new k({terminalType:s.separator})].concat(s.definition)})].concat(e,t)}function Je(s){if(s instanceof K)return Je(s.referencedRule);if(s instanceof k)return qi(s);if(Hi(s))return Yi(s);if(Xi(s))return Ji(s);throw Error("non exhaustive match")}function Yi(s){let e=[];const t=s.definition;let n=0,i=t.length>n,a,r=!0;for(;i&&r;)a=t[n],r=Tt(a),e=e.concat(Je(a)),n=n+1,i=t.length>n;return[...new Set(e)]}function Ji(s){const e=s.definition.map(t=>Je(t));return[...new Set(e.flat())]}function qi(s){return[s.terminalType]}const an="_~IN~_";class Zi extends kt{constructor(e){super(),this.topProd=e,this.follows={}}startWalking(){return this.walk(this.topProd),this.follows}walkTerminal(e,t,n){}walkProdRef(e,t,n){const i=ea(e.referencedRule,e.idx)+this.topProd.name,a=t.concat(n),r=new W({definition:a}),l=Je(r);this.follows[i]=l}}function Qi(s){const e={};return s.forEach(t=>{const n=new Zi(t).startWalking();Object.assign(e,n)}),e}function ea(s,e){return s.name+e+an}function S(s){return s.charCodeAt(0)}function Pt(s,e){Array.isArray(s)?s.forEach(function(t){e.push(t)}):e.push(s)}function Fe(s,e){if(s[e]===!0)throw"duplicate flag "+e;s[e],s[e]=!0}function Se(s){if(s===void 0)throw Error("Internal Error - Should never get here!");return!0}function ta(){throw Error("Internal Error - Should never get here!")}function Rs(s){return s.type==="Character"}const gt=[];for(let s=S("0");s<=S("9");s++)gt.push(s);const At=[S("_")].concat(gt);for(let s=S("a");s<=S("z");s++)At.push(s);for(let s=S("A");s<=S("Z");s++)At.push(s);const Os=[S(" "),S("\f"),S(`
2
2
  `),S("\r"),S(" "),S("\v"),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S(" "),S("\u2028"),S("\u2029"),S(" "),S(" "),S(" "),S("\uFEFF")],sa=/[0-9a-fA-F]/,tt=/[0-9]/,na=/[1-9]/;class ia{constructor(){this.idx=0,this.input="",this.groupIdx=0}saveState(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}}restoreState(e){this.idx=e.idx,this.input=e.input,this.groupIdx=e.groupIdx}pattern(e){this.idx=0,this.input=e,this.groupIdx=0,this.consumeChar("/");const t=this.disjunction();this.consumeChar("/");const n={type:"Flags",loc:{begin:this.idx,end:e.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};for(;this.isRegExpFlag();)switch(this.popChar()){case"g":Fe(n,"global");break;case"i":Fe(n,"ignoreCase");break;case"m":Fe(n,"multiLine");break;case"u":Fe(n,"unicode");break;case"y":Fe(n,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:n,value:t,loc:this.loc(0)}}disjunction(){const e=[],t=this.idx;for(e.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),e.push(this.alternative());return{type:"Disjunction",value:e,loc:this.loc(t)}}alternative(){const e=[],t=this.idx;for(;this.isTerm();)e.push(this.term());return{type:"Alternative",value:e,loc:this.loc(t)}}term(){return this.isAssertion()?this.assertion():this.atom()}assertion(){const e=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(e)};case"$":return{type:"EndAnchor",loc:this.loc(e)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(e)};case"B":return{type:"NonWordBoundary",loc:this.loc(e)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");let t;switch(this.popChar()){case"=":t="Lookahead";break;case"!":t="NegativeLookahead";break;case"<":{switch(this.popChar()){case"=":t="Lookbehind";break;case"!":t="NegativeLookbehind"}break}}Se(t);const n=this.disjunction();return this.consumeChar(")"),{type:t,value:n,loc:this.loc(e)}}return ta()}quantifier(e=!1){let t;const n=this.idx;switch(this.popChar()){case"*":t={atLeast:0,atMost:1/0};break;case"+":t={atLeast:1,atMost:1/0};break;case"?":t={atLeast:0,atMost:1};break;case"{":const i=this.integerIncludingZero();switch(this.popChar()){case"}":t={atLeast:i,atMost:i};break;case",":let a;this.isDigit()?(a=this.integerIncludingZero(),t={atLeast:i,atMost:a}):t={atLeast:i,atMost:1/0},this.consumeChar("}");break}if(e===!0&&t===void 0)return;Se(t);break}if(!(e===!0&&t===void 0)&&Se(t))return this.peekChar(0)==="?"?(this.consumeChar("?"),t.greedy=!1):t.greedy=!0,t.type="Quantifier",t.loc=this.loc(n),t}atom(){let e;const t=this.idx;switch(this.peekChar()){case".":e=this.dotAll();break;case"\\":e=this.atomEscape();break;case"[":e=this.characterClass();break;case"(":e=this.group();break}if(e===void 0&&this.isPatternCharacter()&&(e=this.patternCharacter()),Se(e))return e.loc=this.loc(t),this.isQuantifier()&&(e.quantifier=this.quantifier()),e}dotAll(){return this.consumeChar("."),{type:"Set",complement:!0,value:[S(`
3
3
  `),S("\r"),S("\u2028"),S("\u2029")]}}atomEscape(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}}decimalEscapeAtom(){return{type:"GroupBackReference",value:this.positiveInteger()}}characterClassEscape(){let e,t=!1;switch(this.popChar()){case"d":e=gt;break;case"D":e=gt,t=!0;break;case"s":e=Os;break;case"S":e=Os,t=!0;break;case"w":e=At;break;case"W":e=At,t=!0;break}if(Se(e))return{type:"Set",value:e,complement:t}}controlEscapeAtom(){let e;switch(this.popChar()){case"f":e=S("\f");break;case"n":e=S(`
4
4
  `);break;case"r":e=S("\r");break;case"t":e=S(" ");break;case"v":e=S("\v");break}if(Se(e))return{type:"Character",value:e}}controlLetterEscapeAtom(){this.consumeChar("c");const e=this.popChar();if(/[a-zA-Z]/.test(e)===!1)throw Error("Invalid ");return{type:"Character",value:e.toUpperCase().charCodeAt(0)-64}}nulCharacterAtom(){return this.consumeChar("0"),{type:"Character",value:S("\0")}}hexEscapeSequenceAtom(){return this.consumeChar("x"),this.parseHexDigits(2)}regExpUnicodeEscapeSequenceAtom(){return this.consumeChar("u"),this.parseHexDigits(4)}identityEscapeAtom(){const e=this.popChar();return{type:"Character",value:S(e)}}classPatternCharacterAtom(){switch(this.peekChar()){case`
@@ -1 +1 @@
1
- import{t as Se,bq as c,a_ as F,by as je,b as Te,br as Ee,bo as Z}from"./syxE6N1N.js";import{bs as Be,a5 as H,bl as se,bS as R,bA as O,bf as Pe,b_ as $,aD as e,bO as ne,W as i,bn as ze,c9 as d,aA as u,aB as L,a7 as ae,ay as J,bo as He,bj as Ne,bH as P,bV as be,aC as Oe}from"./DYhIMPy1.js";import{j as ue,l as ie,u as E,v as ve,n as Ie,i as We}from"./XNWMykPO.js";import{s as Le}from"./g2wqtBd2.js";import{s as qe}from"./BOAArWys.js";import{S as Ge}from"./CQFSvKTc.js";import{G as Re}from"./CdmW6laI.js";import{I as Ae,F as Je,c as Ke}from"./1cW9cCot.js";import{bL as Ue,am as Xe,f as Ye}from"./BgtLN2kD.js";var Ze=L('<div class="max-w-full shrink-0"><!></div>'),$e=L('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),et=L('<p class="type-body mt-2 text-danger" role="alert"> </p>'),tt=L('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function Fe(l,n){if(new.target)return Se({component:Fe,...l});Be(n,!0);let p=c(n,"id",7),S=c(n,"title",7),j=c(n,"description",7),A=c(n,"busy",7,!1),T=c(n,"error",7),D=c(n,"actions",7),_=c(n,"children",7),x=c(n,"class",7);const w=d(()=>p()?`${p()}-title`:void 0),N=d(()=>p()&&j()?`${p()}-description`:void 0),M=d(()=>p()&&T()?`${p()}-error`:void 0),ee=d(()=>[e(N),e(M)].filter(Boolean).join(" ")||void 0);var te={get id(){return p()},set id(s){p(s),u()},get title(){return S()},set title(s){S(s),u()},get description(){return j()},set description(s){j(s),u()},get busy(){return A()},set busy(s=!1){A(s),u()},get error(){return T()},set error(s){T(s),u()},get actions(){return D()},set actions(s){D(s),u()},get children(){return _()},set children(s){_(s),u()},get class(){return x()},set class(s){x(s),u()},$set:je,$on:(s,g)=>Te(n,s,g)},m=tt(),a=H(m),v=H(a),f=H(v),h=se(f,!0),Q=R(f,2);{var r=s=>{var g=Ze(),W=H(g);Le(W,D),O(g),i(s,g)};F(Q,s=>{D()&&s(r)})}O(v);var K=R(v,2);{var V=s=>{var g=$e(),W=se(g,!0);$(()=>{E(g,"id",e(N)),ne(W,j())}),i(s,g)};F(K,s=>{j()&&s(V)})}O(a);var B=R(a,2);{var C=s=>{var g=et(),W=se(g,!0);$(()=>{E(g,"id",e(M)),ne(W,T())}),i(s,g)};F(B,s=>{T()&&s(C)})}var U=R(B,2),le=H(U);return Le(le,()=>_()??Pe),O(U),O(m),$(s=>{E(m,"id",p()),E(m,"data-highlight-id",p()),ve(m,1,s),E(m,"aria-labelledby",e(w)),E(m,"aria-label",e(w)?void 0:S()),E(m,"aria-describedby",e(ee)),E(m,"aria-busy",A()||void 0),E(f,"id",e(w)),ne(h,S())},[()=>ue(ie("min-w-0 scroll-mt-20",x()))]),i(l,m),ze(te)}function Lt(l){return l}function St(l){return l}function _e(l,n){return l===void 0?n:typeof l=="function"?l():l}function rt(l,n){const p=n.trim().toLocaleLowerCase();return p?[l.label,l.description,l.featureCode,l.id].filter(Boolean).some(S=>S.toLocaleLowerCase().includes(p)):!0}var at=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),st=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function nt(l,n){if(new.target)return Se({component:nt,...l});Be(n,!0);const p=(a,v=Pe)=>{var f=ae(),h=J(f);Ie(h,17,v,Q=>Q.id,(Q,r)=>{const K=d(()=>`setting-${e(r).id}`),V=d(()=>_e(e(r).disabled,!1)),B=d(()=>_e(e(r).busy,!1)),C=d(()=>_e(e(r).error,void 0)),U=d(()=>_e(e(r).status,void 0));{const le=(he,de)=>{let ye=()=>(de?.()).labelId,xe=()=>(de?.()).descriptionId,we=()=>(de?.()).errorId;const fe=d(()=>({entry:e(r),controlId:e(K),labelId:ye(),descriptionId:xe(),errorId:we(),disabled:e(V),busy:e(B)}));var re=ae(),ge=J(re);{var Ce=X=>{var me=ae(),t=J(me);{var o=y=>{var k=ae(),b=J(k);Le(b,()=>A()[e(r).id],()=>e(fe)),i(y,k)};F(t,y=>{A()[e(r).id]&&y(o)})}i(X,me)},ke=X=>{Ge(X,{get entry(){return e(r)},get context(){return e(fe)},get compact(){return _()}})};F(ge,X=>{e(r).kind==="custom"?X(Ce):X(ke,-1)})}i(he,re)};let s=d(()=>e(r).kind==="custom"&&e(r).layout==="full-width"),g=d(()=>w(e(r).kind)?e(K):void 0),W=d(()=>e(r).kind==="select"),pe=d(()=>[e(r).label,e(r).description,e(r).featureCode].filter(Boolean).join(" "));qe(Q,{get compact(){return _()},get id(){return e(r).id},get label(){return e(r).label},get description(){return e(r).description},get descriptionContent(){return T()[e(r).id]},get controlOnly(){return e(s)},get htmlFor(){return e(g)},get activateLabel(){return e(W)},get disabled(){return e(V)},get busy(){return e(B)},get error(){return e(C)},get status(){return e(U)},get statusTone(){return e(r).statusTone},get danger(){return e(r).danger},get experimental(){return e(r).experimental},get featureCode(){return e(r).featureCode},get searchText(){return e(pe)},get class(){return e(r).class},control:le,$$slots:{control:!0}})}}),i(a,f)};let S=c(n,"schema",7),j=c(n,"searchQuery",7,""),A=c(n,"custom",23,()=>({})),T=c(n,"descriptions",23,()=>({})),D=c(n,"embedded",7,!1),_=c(n,"compact",7,!0);const x=d(()=>S().sections.filter(a=>a.when?.()??!0).map(a=>({...a,entries:a.entries.filter(v=>(v.when?.()??!0)&&rt(v,j()))})).filter(a=>a.entries.length>0)),w=a=>["select","input","number","path","keybinding"].includes(a);var N={get schema(){return S()},set schema(a){S(a),u()},get searchQuery(){return j()},set searchQuery(a=""){j(a),u()},get custom(){return A()},set custom(a={}){A(a),u()},get descriptions(){return T()},set descriptions(a={}){T(a),u()},get embedded(){return D()},set embedded(a=!1){D(a),u()},get compact(){return _()},set compact(a=!0){_(a),u()},$set:je,$on:(a,v)=>Te(n,a,v)},M=ae(),ee=J(M);{var te=a=>{var v=at();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{p(f,()=>e(h).entries)}),O(v),i(a,v)},m=a=>{var v=st();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{Fe(f,{get id(){return e(h).id},get title(){return e(h).title},get description(){return e(h).description},children:(Q,r)=>{p(Q,()=>e(h).entries)},$$slots:{default:!0}})}),O(v),i(a,v)};F(ee,a=>{D()?a(te):a(m,-1)})}return i(l,M),ze(N)}var ot=new Set(["$$slots","$$events","$$legacy","value","label","disabled","variant","align","size","onCopy","class"]),it=Oe('<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="4.5" y="4.5" width="7" height="7" rx="1.5"></rect><path d="M9.5 4.5V3.25A1.75 1.75 0 0 0 7.75 1.5h-4.5A1.75 1.75 0 0 0 1.5 3.25v4.5A1.75 1.75 0 0 0 3.25 9.5H4.5"></path></svg>'),lt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M6 12L10 16L18 8"></path></svg>'),dt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M9 9L15 15M15 9L9 15"></path></svg>'),ct=L('<span class="inline-grid select-none text-left"><span class="invisible col-start-1 row-start-1" aria-hidden="true"> </span> <span data-slot="copy-input-action-label" class="col-start-1 row-start-1"> </span></span>'),ut=L('<span data-slot="copy-input-feedback"><!> <!></span>'),vt=L('<span data-slot="copy-input-action"><!></span>'),pt=L('<span data-slot="copy-input-value"><mark class="bg-transparent text-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:bg-focus-ring/20 group-hover:text-foreground motion-reduce:transition-none"> </mark></span>'),Me=L("<!> <!>",1),ft=L('<span data-slot="copy-input-label"> </span>'),gt=L("<div><!> <!></div>");function mt(l,n){const p=He();if(new.target)return Se({component:mt,...l});Be(n,!0);const S=t=>{var o=ae(),y=J(o);{var k=I=>{var q=it();i(I,q)},b=I=>{var q=lt();i(I,q)},oe=I=>{var q=dt();i(I,q)};F(y,I=>{e(r)==="idle"?I(k):e(r)==="copied"?I(b,1):I(oe,-1)})}i(t,o)},j=t=>{var o=vt(),y=H(o);Re(y,()=>`${e(r)}-${e(K)}`,k=>{var b=ut(),oe=H(b);S(oe);var I=R(oe,2);{var q=z=>{var G=ct(),Y=H(G),ce=se(Y,!0),De=R(Y,2),Qe=se(De,!0);O(G),$(Ve=>{ne(ce,Ve),ne(Qe,e(g))},[()=>Z.ui_copyInput_copied_label()]),i(z,G)};F(I,z=>{N()==="button"&&z(q)})}O(b),$(z=>ve(b,1,z,"svelte-jlvoto"),[()=>ue(ie("flex items-center justify-center gap-1.5 [&_svg]:shrink-0 [&_svg]:stroke-current [&_svg]:stroke-[1.5] [&_svg]:[stroke-linecap:round] [&_svg]:[stroke-linejoin:round] [&_svg]:transition-[stroke-width] [&_svg]:duration-spring-fast group-hover:[&_svg]:stroke-2 motion-reduce:[&_svg]:transition-none",e(r)==="error"&&"text-danger"))]),Ae(1,b,()=>Je,()=>({tier:"fast",y:0,scale:e(r)==="idle"?.8:.6})),Ae(2,b,()=>Ke,()=>({tier:"fast",scale:.8})),i(k,b)}),O(o),$(k=>ve(o,1,k,"svelte-jlvoto"),[()=>ue(ie("flex shrink-0 items-center px-1.5 text-muted-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:text-foreground motion-reduce:transition-none",e(Q)))]),i(t,o)},A=t=>{var o=pt(),y=H(o),k=se(y,!0);O(o),$(b=>{ve(o,1,b,"svelte-jlvoto"),ne(k,_())},[()=>ue(ie("min-w-0 flex-1 select-none truncate text-left text-foreground",e(Q),M()==="left"?"pl-1":"pl-0"))]),i(t,o)},T=t=>{{let o=d(()=>x()?`${v} ${f}`:void 0);Ye(t,{get id(){return v},type:"button",variant:"plain",get size(){return e(h)},truncateLabel:!1,labelClass:"flex! w-full items-center","data-slot":"copy-input-button",get"data-size"(){return e(h)},style:"line-height: 1.25rem",class:"group h-auto! w-full justify-start rounded-(--radius-medium) border-0 bg-transparent p-0 text-sm font-normal leading-5 transition-colors duration-spring-fast ease-spring-fast motion-reduce:transition-none",get disabled(){return w()},get"aria-label"(){return e(s)},get"aria-labelledby"(){return e(o)},onpointerdown:de,onclick:he,children:(y,k)=>{var b=ae(),oe=J(b);{var I=z=>{var G=Me(),Y=J(G);j(Y);var ce=R(Y,2);A(ce),i(z,G)},q=z=>{var G=Me(),Y=J(G);A(Y);var ce=R(Y,2);j(ce),i(z,G)};F(oe,z=>{M()==="left"?z(I):z(q,-1)})}i(y,b)},$$slots:{default:!0}})}},D=Ue();let _=c(n,"value",7),x=c(n,"label",7),w=c(n,"disabled",7,!1),N=c(n,"variant",7,"icon"),M=c(n,"align",7,"right"),ee=c(n,"size",7),te=c(n,"onCopy",7),m=c(n,"class",7),a=Ee(n,ot);const v=`${p}-button`,f=`${p}-label`,h=d(()=>ee()??D),Q=d(()=>e(h)==="compact"?"py-1":"py-2");let r=be("idle"),K=be(0),V=null,B=be(!1),C=be("idle"),U=!1;const le=d(()=>x()?Z.ui_copyButton_label():Z.ui_copyInput_copyToClipboard_ariaLabel()),s=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_copyFailed_ariaLabel():e(le)),g=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_failed_label():Z.ui_copyButton_label()),W=d(()=>e(C)==="copied"?!0:e(C)==="suppressed"?!1:e(B));function pe(){const t=document.createElement("textarea");t.value=_(),t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return t.remove(),o}async function he(){if(w())return;let t=!0;try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(_()):t=pe()}catch{t=pe()}P(r,t?"copied":"error",!0),P(K,e(K)+1),P(C,U?"copied":"suppressed",!0),P(B,U,!0),t&&te()?.(),V&&clearTimeout(V),V=setTimeout(()=>{P(r,"idle"),P(C,"suppressed"),P(B,!1)},2e3)}function de(){U=e(B)}function ye(t){e(C)==="idle"&&P(B,t,!0)}function xe(){e(C)==="suppressed"&&P(C,"idle")}function we(){e(C)==="copied"&&P(C,"suppressed"),P(B,!1)}Ne(()=>{V&&clearTimeout(V)});var fe={get value(){return _()},set value(t){_(t),u()},get label(){return x()},set label(t){x(t),u()},get disabled(){return w()},set disabled(t=!1){w(t),u()},get variant(){return N()},set variant(t="icon"){N(t),u()},get align(){return M()},set align(t="right"){M(t),u()},get size(){return ee()},set size(t){ee(t),u()},get onCopy(){return te()},set onCopy(t){te(t),u()},get class(){return m()},set class(t){m(t),u()},$set:je,$on:(t,o)=>Te(n,t,o)},re=gt();We(re,t=>({"data-slot":"copy-input-field","data-disabled":w()||void 0,class:t,onmouseenter:xe,onmouseleave:we,...a}),[()=>ie("flex flex-col gap-0.5",w()&&"pointer-events-none opacity-50",m())],void 0,void 0,"svelte-jlvoto");var ge=H(re);{var Ce=t=>{var o=ft(),y=se(o,!0);$(k=>{E(o,"id",f),ve(o,1,k,"svelte-jlvoto"),ne(y,x())},[()=>ue(ie("type-caption text-muted-foreground",M()==="left"?"pl-1":"pl-0"))]),i(t,o)};F(ge,t=>{x()&&t(Ce)})}var ke=R(ge,2);{var X=t=>{Xe(t,{get content(){return e(s)},delayDuration:500,sideOffset:2,get disabled(){return w()},get open(){return e(W)},onOpenChange:ye,class:"w-full",children:(o,y)=>{T(o)},$$slots:{default:!0}})},me=t=>{T(t)};F(ke,t=>{N()==="icon"?t(X):t(me,-1)})}return O(re),i(l,re),ze(fe)}export{mt as C,nt as S,Fe as a,St as b,Lt as d};
1
+ import{t as Se,bq as c,a_ as F,by as je,b as Te,br as Ee,bo as Z}from"./CNdlzZOD.js";import{bs as Be,a5 as H,bl as se,bS as R,bA as O,bf as Pe,b_ as $,aD as e,bO as ne,W as i,bn as ze,c9 as d,aA as u,aB as L,a7 as ae,ay as J,bo as He,bj as Ne,bH as P,bV as be,aC as Oe}from"./DYhIMPy1.js";import{j as ue,l as ie,u as E,v as ve,n as Ie,i as We}from"./9iFKJfkz.js";import{s as Le}from"./DIh4SQwA.js";import{s as qe}from"./BwVx_Xm9.js";import{S as Ge}from"./BaUvfuFA.js";import{G as Re}from"./DrH3w3jB.js";import{I as Ae,F as Je,c as Ke}from"./HVSUZ4Kq.js";import{bL as Ue,am as Xe,f as Ye}from"./DwkxcWNI.js";var Ze=L('<div class="max-w-full shrink-0"><!></div>'),$e=L('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),et=L('<p class="type-body mt-2 text-danger" role="alert"> </p>'),tt=L('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function Fe(l,n){if(new.target)return Se({component:Fe,...l});Be(n,!0);let p=c(n,"id",7),S=c(n,"title",7),j=c(n,"description",7),A=c(n,"busy",7,!1),T=c(n,"error",7),D=c(n,"actions",7),_=c(n,"children",7),x=c(n,"class",7);const w=d(()=>p()?`${p()}-title`:void 0),N=d(()=>p()&&j()?`${p()}-description`:void 0),M=d(()=>p()&&T()?`${p()}-error`:void 0),ee=d(()=>[e(N),e(M)].filter(Boolean).join(" ")||void 0);var te={get id(){return p()},set id(s){p(s),u()},get title(){return S()},set title(s){S(s),u()},get description(){return j()},set description(s){j(s),u()},get busy(){return A()},set busy(s=!1){A(s),u()},get error(){return T()},set error(s){T(s),u()},get actions(){return D()},set actions(s){D(s),u()},get children(){return _()},set children(s){_(s),u()},get class(){return x()},set class(s){x(s),u()},$set:je,$on:(s,g)=>Te(n,s,g)},m=tt(),a=H(m),v=H(a),f=H(v),h=se(f,!0),Q=R(f,2);{var r=s=>{var g=Ze(),W=H(g);Le(W,D),O(g),i(s,g)};F(Q,s=>{D()&&s(r)})}O(v);var K=R(v,2);{var V=s=>{var g=$e(),W=se(g,!0);$(()=>{E(g,"id",e(N)),ne(W,j())}),i(s,g)};F(K,s=>{j()&&s(V)})}O(a);var B=R(a,2);{var C=s=>{var g=et(),W=se(g,!0);$(()=>{E(g,"id",e(M)),ne(W,T())}),i(s,g)};F(B,s=>{T()&&s(C)})}var U=R(B,2),le=H(U);return Le(le,()=>_()??Pe),O(U),O(m),$(s=>{E(m,"id",p()),E(m,"data-highlight-id",p()),ve(m,1,s),E(m,"aria-labelledby",e(w)),E(m,"aria-label",e(w)?void 0:S()),E(m,"aria-describedby",e(ee)),E(m,"aria-busy",A()||void 0),E(f,"id",e(w)),ne(h,S())},[()=>ue(ie("min-w-0 scroll-mt-20",x()))]),i(l,m),ze(te)}function Lt(l){return l}function St(l){return l}function _e(l,n){return l===void 0?n:typeof l=="function"?l():l}function rt(l,n){const p=n.trim().toLocaleLowerCase();return p?[l.label,l.description,l.featureCode,l.id].filter(Boolean).some(S=>S.toLocaleLowerCase().includes(p)):!0}var at=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),st=L('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function nt(l,n){if(new.target)return Se({component:nt,...l});Be(n,!0);const p=(a,v=Pe)=>{var f=ae(),h=J(f);Ie(h,17,v,Q=>Q.id,(Q,r)=>{const K=d(()=>`setting-${e(r).id}`),V=d(()=>_e(e(r).disabled,!1)),B=d(()=>_e(e(r).busy,!1)),C=d(()=>_e(e(r).error,void 0)),U=d(()=>_e(e(r).status,void 0));{const le=(he,de)=>{let ye=()=>(de?.()).labelId,xe=()=>(de?.()).descriptionId,we=()=>(de?.()).errorId;const fe=d(()=>({entry:e(r),controlId:e(K),labelId:ye(),descriptionId:xe(),errorId:we(),disabled:e(V),busy:e(B)}));var re=ae(),ge=J(re);{var Ce=X=>{var me=ae(),t=J(me);{var o=y=>{var k=ae(),b=J(k);Le(b,()=>A()[e(r).id],()=>e(fe)),i(y,k)};F(t,y=>{A()[e(r).id]&&y(o)})}i(X,me)},ke=X=>{Ge(X,{get entry(){return e(r)},get context(){return e(fe)},get compact(){return _()}})};F(ge,X=>{e(r).kind==="custom"?X(Ce):X(ke,-1)})}i(he,re)};let s=d(()=>e(r).kind==="custom"&&e(r).layout==="full-width"),g=d(()=>w(e(r).kind)?e(K):void 0),W=d(()=>e(r).kind==="select"),pe=d(()=>[e(r).label,e(r).description,e(r).featureCode].filter(Boolean).join(" "));qe(Q,{get compact(){return _()},get id(){return e(r).id},get label(){return e(r).label},get description(){return e(r).description},get descriptionContent(){return T()[e(r).id]},get controlOnly(){return e(s)},get htmlFor(){return e(g)},get activateLabel(){return e(W)},get disabled(){return e(V)},get busy(){return e(B)},get error(){return e(C)},get status(){return e(U)},get statusTone(){return e(r).statusTone},get danger(){return e(r).danger},get experimental(){return e(r).experimental},get featureCode(){return e(r).featureCode},get searchText(){return e(pe)},get class(){return e(r).class},control:le,$$slots:{control:!0}})}}),i(a,f)};let S=c(n,"schema",7),j=c(n,"searchQuery",7,""),A=c(n,"custom",23,()=>({})),T=c(n,"descriptions",23,()=>({})),D=c(n,"embedded",7,!1),_=c(n,"compact",7,!0);const x=d(()=>S().sections.filter(a=>a.when?.()??!0).map(a=>({...a,entries:a.entries.filter(v=>(v.when?.()??!0)&&rt(v,j()))})).filter(a=>a.entries.length>0)),w=a=>["select","input","number","path","keybinding"].includes(a);var N={get schema(){return S()},set schema(a){S(a),u()},get searchQuery(){return j()},set searchQuery(a=""){j(a),u()},get custom(){return A()},set custom(a={}){A(a),u()},get descriptions(){return T()},set descriptions(a={}){T(a),u()},get embedded(){return D()},set embedded(a=!1){D(a),u()},get compact(){return _()},set compact(a=!0){_(a),u()},$set:je,$on:(a,v)=>Te(n,a,v)},M=ae(),ee=J(M);{var te=a=>{var v=at();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{p(f,()=>e(h).entries)}),O(v),i(a,v)},m=a=>{var v=st();Ie(v,21,()=>e(x),f=>f.id,(f,h)=>{Fe(f,{get id(){return e(h).id},get title(){return e(h).title},get description(){return e(h).description},children:(Q,r)=>{p(Q,()=>e(h).entries)},$$slots:{default:!0}})}),O(v),i(a,v)};F(ee,a=>{D()?a(te):a(m,-1)})}return i(l,M),ze(N)}var ot=new Set(["$$slots","$$events","$$legacy","value","label","disabled","variant","align","size","onCopy","class"]),it=Oe('<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true"><rect x="4.5" y="4.5" width="7" height="7" rx="1.5"></rect><path d="M9.5 4.5V3.25A1.75 1.75 0 0 0 7.75 1.5h-4.5A1.75 1.75 0 0 0 1.5 3.25v4.5A1.75 1.75 0 0 0 3.25 9.5H4.5"></path></svg>'),lt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M6 12L10 16L18 8"></path></svg>'),dt=Oe('<svg width="14" height="14" viewBox="2 4 20 16" fill="none" aria-hidden="true"><path class="copy-input-draw svelte-jlvoto" pathLength="1" stroke-dasharray="1" d="M9 9L15 15M15 9L9 15"></path></svg>'),ct=L('<span class="inline-grid select-none text-left"><span class="invisible col-start-1 row-start-1" aria-hidden="true"> </span> <span data-slot="copy-input-action-label" class="col-start-1 row-start-1"> </span></span>'),ut=L('<span data-slot="copy-input-feedback"><!> <!></span>'),vt=L('<span data-slot="copy-input-action"><!></span>'),pt=L('<span data-slot="copy-input-value"><mark class="bg-transparent text-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:bg-focus-ring/20 group-hover:text-foreground motion-reduce:transition-none"> </mark></span>'),Me=L("<!> <!>",1),ft=L('<span data-slot="copy-input-label"> </span>'),gt=L("<div><!> <!></div>");function mt(l,n){const p=He();if(new.target)return Se({component:mt,...l});Be(n,!0);const S=t=>{var o=ae(),y=J(o);{var k=I=>{var q=it();i(I,q)},b=I=>{var q=lt();i(I,q)},oe=I=>{var q=dt();i(I,q)};F(y,I=>{e(r)==="idle"?I(k):e(r)==="copied"?I(b,1):I(oe,-1)})}i(t,o)},j=t=>{var o=vt(),y=H(o);Re(y,()=>`${e(r)}-${e(K)}`,k=>{var b=ut(),oe=H(b);S(oe);var I=R(oe,2);{var q=z=>{var G=ct(),Y=H(G),ce=se(Y,!0),De=R(Y,2),Qe=se(De,!0);O(G),$(Ve=>{ne(ce,Ve),ne(Qe,e(g))},[()=>Z.ui_copyInput_copied_label()]),i(z,G)};F(I,z=>{N()==="button"&&z(q)})}O(b),$(z=>ve(b,1,z,"svelte-jlvoto"),[()=>ue(ie("flex items-center justify-center gap-1.5 [&_svg]:shrink-0 [&_svg]:stroke-current [&_svg]:stroke-[1.5] [&_svg]:[stroke-linecap:round] [&_svg]:[stroke-linejoin:round] [&_svg]:transition-[stroke-width] [&_svg]:duration-spring-fast group-hover:[&_svg]:stroke-2 motion-reduce:[&_svg]:transition-none",e(r)==="error"&&"text-danger"))]),Ae(1,b,()=>Je,()=>({tier:"fast",y:0,scale:e(r)==="idle"?.8:.6})),Ae(2,b,()=>Ke,()=>({tier:"fast",scale:.8})),i(k,b)}),O(o),$(k=>ve(o,1,k,"svelte-jlvoto"),[()=>ue(ie("flex shrink-0 items-center px-1.5 text-muted-foreground transition-colors duration-spring-fast ease-spring-fast group-hover:text-foreground motion-reduce:transition-none",e(Q)))]),i(t,o)},A=t=>{var o=pt(),y=H(o),k=se(y,!0);O(o),$(b=>{ve(o,1,b,"svelte-jlvoto"),ne(k,_())},[()=>ue(ie("min-w-0 flex-1 select-none truncate text-left text-foreground",e(Q),M()==="left"?"pl-1":"pl-0"))]),i(t,o)},T=t=>{{let o=d(()=>x()?`${v} ${f}`:void 0);Ye(t,{get id(){return v},type:"button",variant:"plain",get size(){return e(h)},truncateLabel:!1,labelClass:"flex! w-full items-center","data-slot":"copy-input-button",get"data-size"(){return e(h)},style:"line-height: 1.25rem",class:"group h-auto! w-full justify-start rounded-(--radius-medium) border-0 bg-transparent p-0 text-sm font-normal leading-5 transition-colors duration-spring-fast ease-spring-fast motion-reduce:transition-none",get disabled(){return w()},get"aria-label"(){return e(s)},get"aria-labelledby"(){return e(o)},onpointerdown:de,onclick:he,children:(y,k)=>{var b=ae(),oe=J(b);{var I=z=>{var G=Me(),Y=J(G);j(Y);var ce=R(Y,2);A(ce),i(z,G)},q=z=>{var G=Me(),Y=J(G);A(Y);var ce=R(Y,2);j(ce),i(z,G)};F(oe,z=>{M()==="left"?z(I):z(q,-1)})}i(y,b)},$$slots:{default:!0}})}},D=Ue();let _=c(n,"value",7),x=c(n,"label",7),w=c(n,"disabled",7,!1),N=c(n,"variant",7,"icon"),M=c(n,"align",7,"right"),ee=c(n,"size",7),te=c(n,"onCopy",7),m=c(n,"class",7),a=Ee(n,ot);const v=`${p}-button`,f=`${p}-label`,h=d(()=>ee()??D),Q=d(()=>e(h)==="compact"?"py-1":"py-2");let r=be("idle"),K=be(0),V=null,B=be(!1),C=be("idle"),U=!1;const le=d(()=>x()?Z.ui_copyButton_label():Z.ui_copyInput_copyToClipboard_ariaLabel()),s=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_copyFailed_ariaLabel():e(le)),g=d(()=>e(r)==="copied"?Z.ui_copyInput_copied_label():e(r)==="error"?Z.ui_copyInput_failed_label():Z.ui_copyButton_label()),W=d(()=>e(C)==="copied"?!0:e(C)==="suppressed"?!1:e(B));function pe(){const t=document.createElement("textarea");t.value=_(),t.setAttribute("readonly",""),t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select();let o=!1;try{o=document.execCommand("copy")}catch{o=!1}return t.remove(),o}async function he(){if(w())return;let t=!0;try{navigator.clipboard?.writeText?await navigator.clipboard.writeText(_()):t=pe()}catch{t=pe()}P(r,t?"copied":"error",!0),P(K,e(K)+1),P(C,U?"copied":"suppressed",!0),P(B,U,!0),t&&te()?.(),V&&clearTimeout(V),V=setTimeout(()=>{P(r,"idle"),P(C,"suppressed"),P(B,!1)},2e3)}function de(){U=e(B)}function ye(t){e(C)==="idle"&&P(B,t,!0)}function xe(){e(C)==="suppressed"&&P(C,"idle")}function we(){e(C)==="copied"&&P(C,"suppressed"),P(B,!1)}Ne(()=>{V&&clearTimeout(V)});var fe={get value(){return _()},set value(t){_(t),u()},get label(){return x()},set label(t){x(t),u()},get disabled(){return w()},set disabled(t=!1){w(t),u()},get variant(){return N()},set variant(t="icon"){N(t),u()},get align(){return M()},set align(t="right"){M(t),u()},get size(){return ee()},set size(t){ee(t),u()},get onCopy(){return te()},set onCopy(t){te(t),u()},get class(){return m()},set class(t){m(t),u()},$set:je,$on:(t,o)=>Te(n,t,o)},re=gt();We(re,t=>({"data-slot":"copy-input-field","data-disabled":w()||void 0,class:t,onmouseenter:xe,onmouseleave:we,...a}),[()=>ie("flex flex-col gap-0.5",w()&&"pointer-events-none opacity-50",m())],void 0,void 0,"svelte-jlvoto");var ge=H(re);{var Ce=t=>{var o=ft(),y=se(o,!0);$(k=>{E(o,"id",f),ve(o,1,k,"svelte-jlvoto"),ne(y,x())},[()=>ue(ie("type-caption text-muted-foreground",M()==="left"?"pl-1":"pl-0"))]),i(t,o)};F(ge,t=>{x()&&t(Ce)})}var ke=R(ge,2);{var X=t=>{Xe(t,{get content(){return e(s)},delayDuration:500,sideOffset:2,get disabled(){return w()},get open(){return e(W)},onOpenChange:ye,class:"w-full",children:(o,y)=>{T(o)},$$slots:{default:!0}})},me=t=>{T(t)};F(ke,t=>{N()==="icon"?t(X):t(me,-1)})}return O(re),i(l,re),ze(fe)}export{mt as C,nt as S,Fe as a,St as b,Lt as d};
@@ -1 +1 @@
1
- import{Ig as s,i3 as a,l_ as S,ny as f,mb as m}from"./CpBlZvWi.js";import{H as O}from"./He8rzvWn.js";import{dw as d,aU as b,dE as k}from"./CNJgwoNk.js";const g=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!g.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),v=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>v.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),E=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),x=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),U=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),H=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),J=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),_=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{H as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,v as selectScriptEntries,_ as selectScriptListPageState,x as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,J as selectScriptReadJournal,M as selectScriptRetainedOutput,E as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,g as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,U as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{Ig as s,i3 as a,l_ as S,ny as f,mb as m}from"./BJpbRkma.js";import{H as O}from"./D7NWkz7l.js";import{dw as d,aU as b,dE as k}from"./BsesepNZ.js";const g=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!g.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),v=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>v.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),E=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),x=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),B=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),G=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),U=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),H=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),J=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),V=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),_=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{H as selectAllWorkspaceScriptEntries,V as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,v as selectScriptEntries,_ as selectScriptListPageState,x as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,J as selectScriptReadJournal,M as selectScriptRetainedOutput,E as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,g as selectUsesGuestScriptScope,B as selectWorkspaceScriptEntries,G as selectWorkspaceScriptOperations,U as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1,4 +1,4 @@
1
- import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./syxE6N1N.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./DYhIMPy1.js";import{v as Xt,I as ea,w as ne,n as jt,u as gt,p as Ne,j as se}from"./XNWMykPO.js";import{b as ba}from"./BaIAhI85.js";import{f as Ut}from"./BgtLN2kD.js";import{A as aa,aj as na,ai as sa}from"./BTS44Ia3.js";import"./g2wqtBd2.js";import{al as ra,aC as oa,an as Aa,ao as ka,ap as We,ag as ia,a as $a,p as Ta,du as Ca,aO as Sa,aq as Na}from"./CNJgwoNk.js";import{R as Fa}from"./CToUKfVS.js";import{F as pe,bw as Oa,bc as Ra,ay as Ma,aS as Wa,cx as Da}from"./DLGpFr8e.js";import{H as Ba}from"./C2eGBEPE.js";import{e as La}from"./BEWET3uQ.js";import{C as Ea}from"./COhk9eQe.js";import{f as Pa}from"./Dhe30u3B.js";import{c as Nt,Ig as Oe,nz as Ga,fF as za,bW as ja,rV as Ka,u8 as Ha}from"./CpBlZvWi.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
1
+ import{t as oe,bq as st,a_ as at,bo as Q,by as ie,bu as $t,bs as Me,b as ce}from"./CNdlzZOD.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as K,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as O,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./DYhIMPy1.js";import{v as Xt,I as ea,w as ne,n as jt,u as gt,p as Ne,j as se}from"./9iFKJfkz.js";import{b as ba}from"./BaIAhI85.js";import{f as Ut}from"./DwkxcWNI.js";import{A as aa,aj as na,ai as sa}from"./Ca3Yads8.js";import"./DIh4SQwA.js";import{al as ra,aC as oa,an as Aa,ao as ka,ap as We,ag as ia,a as $a,p as Ta,du as Ca,aO as Sa,aq as Na}from"./BsesepNZ.js";import{R as Fa}from"./YcWsBw0J.js";import{F as pe,bw as Oa,bc as Ra,ay as Ma,aS as Wa,cx as Da}from"./BIfN-lxi.js";import{H as Ba}from"./CpOX1cm0.js";import{e as La}from"./D6NxvjAo.js";import{C as Ea}from"./D0OfnhNR.js";import{f as Pa}from"./D1ynivqZ.js";import{c as Nt,Ig as Oe,nz as Ga,fF as za,bW as ja,rV as Ka,u8 as Ha}from"./BJpbRkma.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=O('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=O('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=O('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Qa=O('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Fe=O('<span class="text-xs text-subtle"> </span>'),Za=O('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=O('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=O('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=O('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=O('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=O('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Q.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ft=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Kt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Kt)})}var Ot=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ot,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
2
2
  hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return S()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ft)},get specialist(){return n().specialist}}),$(Lt);var Zt=C(Lt,2),_e=K(Zt,!0),Jt=C(Zt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=K(W,!0);$(f);var H=C(f,2);{var nt=z=>{var It=Ua(),ot=K(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(H,z=>{s().reason&&z(nt)})}var N=C(H,2);{var G=z=>{Fa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(N,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Q.chat_agentCard_attentionBlocker_label():Q.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Qa(),f=L(r);pe(f,{get icon(){return Oa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=K(M,!0);$(r),k(m=>D(W,m),[()=>Q.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var H=C(m,2);{var nt=Y=>{var Z=Fe(),pt=K(Z,!0);k(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_thinking_label()]),_(Y,Z)},N=Y=>{var Z=Za(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}
3
3
  ${t(f).subject??""}`)),_(Y,Z)},G=Y=>{var Z=Fe(),pt=K(Z);k(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Z)},z=Y=>{var Z=Fe(),pt=K(Z,!0);k(Et=>D(pt,Et),[()=>Q.agentOverview_hierarchyCard_responding_label()]),_(Y,Z)};at(H,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(N,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Z=Ja(),pt=K(Z,!0);k(()=>D(pt,n().lastResponse)),_(Y,Z)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=K(r,!0);k(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ot,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Q.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Qt=de(Dt);return l(),Qt}const sn=50;var rn=O('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Yt(E),P=K(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var S=de(b);return d(),S}var re=he('<path fill="none"></path>'),on=O('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=O('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=O('<div class="children-wrapper flex flex-col items-center"></div>'),dn=O('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=O('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=O('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=O('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=O('<div class="text-xs text-subtle capitalize"> </div>'),vn=O('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=O('<span class="text-warning-ink"> </span>'),mn=O('<span class="text-primary-ink"> </span>'),_n=O('<span class="text-green-500"> </span>'),yn=O('<span class="text-red-500"> </span>'),In=O("<span> </span>"),xn=O('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=O('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=O('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=O('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=O('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),H=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),N=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(H),i):[]),z=y(()=>(()=>{const F=[];for(let q=0;q<t(G).length;q+=Tt)F.push(t(G).slice(q,q+Tt));return F})()),It=y(()=>t(z).map(F=>F.reduce((q,J)=>q+J.width,0)+Math.max(0,F.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Z=L(Y),pt=L(Z);{var Et=F=>{Re(F,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=F=>{ca(F,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,F=>{t(W)?F(Et):F(we,-1)})}$(Z);var be=C(Z,2);{var U=F=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(N)/2);var xt=ln();jt(xt,21,()=>t(z),Ne,(Ht,At,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const St=ut+j.width/2;return ut+=j.width+i,St})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(N));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Ne,(ut,j,St)=>{const vt=y(()=>t(ee)+t(Ae)[St]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(N)-A:t(N)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3}
4
4
  L ${t(lt)??""} ${t(et)-t(X)}
@@ -1,4 +1,4 @@
1
- import{t as d,bq as r,by as n,b as h}from"./syxE6N1N.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./DYhIMPy1.js";import{u as i,v as G,j as M}from"./XNWMykPO.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
1
+ import{t as d,bq as r,by as n,b as h}from"./CNdlzZOD.js";import{bs as x,b_ as u,W as C,bn as g,aA as p,aC as y}from"./DYhIMPy1.js";import{u as i,v as G,j as M}from"./9iFKJfkz.js";var U=y(`<svg id="Ebene_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 466.73 533.32"><defs><style>.st0 {
2
2
  fill: #72716d;
3
3
  }
4
4
 
@@ -0,0 +1,19 @@
1
+ import{t as ct,bq as ae,by as dt,br as jt,b as ut,a_ as Z,bo as d,bt as Mt,bs as xt,bu as ke}from"./CNdlzZOD.js";import{bs as gt,a5 as qe,bf as Dt,bA as Be,W as r,bn as ft,aA as re,aB as H,aD as e,bS as $,c9 as n,a7 as X,ay as m,be as Qe,b$ as et,aC as pt,bo as $a,bV as ce,br as It,ca as je,bH as b,c5 as At,b_ as ve,bO as $e,c0 as Nt,bl as at,aw as Gt,cd as St,bz as wa,bj as Ia}from"./DYhIMPy1.js";import{G as Kt}from"./DrH3w3jB.js";import{i as Jt,l as Xt,o as Aa,I as ka,n as kt,g as xa,u as Yt,v as ya}from"./9iFKJfkz.js";import{c as x}from"./b0njYmMP.js";import{b as Qt}from"./BaIAhI85.js";import{an as Ta,ao as Ca,bK as Sa}from"./D7NWkz7l.js";import Pa from"./CuimWTUN.js";import{D as Ma}from"./2BNczbc1.js";import{C as zt}from"./qB-JaQGy.js";import"./bkMlvHq9.js";import{a5 as ea}from"./2bCqOBlF.js";import{Ig as Y,dF as Da,dG as La,gN as ta,iZ as Ha,Ba as Oa,gt as Ba,iW as aa,iV as Ra,D8 as Fa,D7 as Na,De as za,CL as Ea,CO as Va,cd as Ua,cb as Za,ch as Wa,bW as qa,CN as ja,ce as Ga,Cu as Ka}from"./BJpbRkma.js";import{g as Ja}from"./DfN8_dcw.js";import{a as Xa}from"./DqLpc8uk.js";import{l as Ya,P as Qa,m as er,n as tr,V as Et}from"./D6NxvjAo.js";import{am as ar,aC as rr,dp as nr,bR as or,c3 as sr,aA as ir,bg as lr,i as cr}from"./BsesepNZ.js";import{aX as dr,aY as ur}from"./CdlZ8r5v.js";import{a as gr}from"./CuF24etW.js";import{c as fr}from"./ChTqQfQN.js";import{c as pr}from"./D1ynivqZ.js";import{C as mr}from"./DuXpPbhO.js";import{o as vr}from"./CPzusSaQ.js";import{I as _r,c as hr}from"./DZzTUgIA.js";import"./OhUwMaQy.js";import{s as ra}from"./DIh4SQwA.js";import{a5 as br,f as lt,am as $r}from"./DwkxcWNI.js";import{D as wr,C as na,T as Ir,F as Ar,H as kr,t as xr,R as yr}from"./DTOenBGo.js";import{aR as Tr,cV as oa,F as ht,cY as $t,B as Cr,aZ as Sr,bm as Pr,ct as Mr,a6 as Dr,cu as Lr,a5 as Hr,cq as Or,aq as Br,aV as Rr,cS as Fr,ac as Nr,cf as zr,aj as Er,cL as Vr}from"./BIfN-lxi.js";import{a as Pt,m as Ur}from"./BxRFeUGV.js";import{w as Zr,o as Lt,n as Ht,m as Ot,i as Vt,l as Bt,g as mt,p as Wr,h as qr,M as jr,k as Ut,R as Gr}from"./BwVx_Xm9.js";import{B as Kr}from"./BQKilZql.js";import{J as Jr,a1 as Xr,aZ as Yr}from"./Ca3Yads8.js";import"./Co3V5w5D.js";import{b as Qr}from"./BK3YE2GB.js";import{c as en}from"./7rjdCDDK.js";import"./D8iLOeUT.js";import{M as st}from"./Dd-c6aT7.js";import{g as tn}from"./Fb6bTqJy.js";import{J as Zt,q as an}from"./1JDc8gDP.js";import{aB as rn,$ as nn}from"./CTMsT2IU.js";import{t as wt,p as on}from"./HVSUZ4Kq.js";import{a as sn,e as ln,d as cn,i as dn}from"./DhJNH_hq.js";var un=new Set(["$$slots","$$events","$$legacy","children","class"]),gn=H("<div><!></div>");function sa(f,i){if(new.target)return ct({component:sa,...f});gt(i,!0);let w=ae(i,"children",7),p=ae(i,"class",7),v=jt(i,un);Zr(()=>!1);var T={get children(){return w()},set children(g){w(g),re()},get class(){return p()},set class(g){p(g),re()},$set:dt,$on:(g,M)=>ut(i,g,M)},A=gn();Jt(A,g=>({"data-slot":"menu-footer",class:g,...v}),[()=>Xt("menu-footer type-caption relative z-10 -mx-1.5 -mb-1.5 mt-1.5 border-t border-border bg-muted/20 px-3.5 py-1.5 leading-(--text-caption-line-height) font-normal text-muted-foreground [&_[data-menu-item]]:hover:bg-hover [&_[data-menu-item]]:focus-visible:bg-hover",p())],void 0,void 0,"svelte-1od5b5i");var S=qe(A);return ra(S,()=>w()??Dt),Be(A),r(f,A),ft(T)}var fn=new Set(["$$slots","$$events","$$legacy","children"]),pn=pt('<path d="M216,44H40A20,20,0,0,0,20,64V224A19.82,19.82,0,0,0,31.56,242.1a20.14,20.14,0,0,0,8.49,1.9,19.91,19.91,0,0,0,12.82-4.72l.12-.11L84.47,212H216a20,20,0,0,0,20-20V64A20,20,0,0,0,216,44Zm-4,144H80a11.93,11.93,0,0,0-7.84,2.92L44,215.23V68H212ZM84,108A12,12,0,0,1,96,96h64a12,12,0,1,1,0,24H96A12,12,0,0,1,84,108Zm0,40a12,12,0,0,1,12-12h64a12,12,0,0,1,0,24H96A12,12,0,0,1,84,148Z"></path>'),mn=pt('<path d="M224,64V192a8,8,0,0,1-8,8H80L45.15,230.11A8,8,0,0,1,32,224V64a8,8,0,0,1,8-8H216A8,8,0,0,1,224,64Z" opacity="0.2"></path><path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>',1),vn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.84,15.84,0,0,0,9.25,14.5A16.05,16.05,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM160,152H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Zm0-32H96a8,8,0,0,1,0-16h64a8,8,0,0,1,0,16Z"></path>'),_n=pt('<path d="M216,50H40A14,14,0,0,0,26,64V224a13.88,13.88,0,0,0,8.09,12.69A14.11,14.11,0,0,0,40,238a13.87,13.87,0,0,0,9-3.31l.06-.05L82.23,206H216a14,14,0,0,0,14-14V64A14,14,0,0,0,216,50Zm2,142a2,2,0,0,1-2,2H80a6,6,0,0,0-3.92,1.46L41.26,225.53A2,2,0,0,1,38,224V64a2,2,0,0,1,2-2H216a2,2,0,0,1,2,2Zm-52-80a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,112Zm0,32a6,6,0,0,1-6,6H96a6,6,0,0,1,0-12h64A6,6,0,0,1,166,144Z"></path>'),hn=pt('<path d="M216,48H40A16,16,0,0,0,24,64V224a15.85,15.85,0,0,0,9.24,14.5A16.13,16.13,0,0,0,40,240a15.89,15.89,0,0,0,10.25-3.78l.09-.07L83,208H216a16,16,0,0,0,16-16V64A16,16,0,0,0,216,48ZM40,224h0ZM216,192H80a8,8,0,0,0-5.23,1.95L40,224V64H216ZM88,112a8,8,0,0,1,8-8h64a8,8,0,0,1,0,16H96A8,8,0,0,1,88,112Zm0,32a8,8,0,0,1,8-8h64a8,8,0,1,1,0,16H96A8,8,0,0,1,88,144Z"></path>'),bn=pt('<path d="M216,52H40A12,12,0,0,0,28,64V224a11.89,11.89,0,0,0,6.93,10.88A12.17,12.17,0,0,0,40,236a11.89,11.89,0,0,0,7.69-2.83l0,0L81.49,204H216a12,12,0,0,0,12-12V64A12,12,0,0,0,216,52Zm4,140a4,4,0,0,1-4,4H80a4,4,0,0,0-2.62,1L42.56,227.06A4,4,0,0,1,36,224V64a4,4,0,0,1,4-4H216a4,4,0,0,1,4,4Zm-56-80a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,112Zm0,32a4,4,0,0,1-4,4H96a4,4,0,0,1,0-8h64A4,4,0,0,1,164,144Z"></path>'),$n=pt('<svg><!><rect width="256" height="256" fill="none"></rect><!></svg>');function ia(f,i){if(new.target)return ct({component:ia,...f});gt(i,!0);const w=Aa();let p=ae(i,"children",7),v=jt(i,fn),T=n(()=>i.weight??w.weight??"regular"),A=n(()=>i.color??w.color??"currentColor"),S=n(()=>i.size??w.size??"1em"),g=n(()=>i.mirrored??w.mirrored??!1);function M(o){let{weight:I,color:O,size:Le,mirrored:J,...Ne}=o;return Ne}var G={get children(){return p()},set children(o){p(o),re()},$set:dt,$on:(o,I)=>ut(i,o,I)},R=$n();Jt(R,(o,I)=>({xmlns:"http://www.w3.org/2000/svg",role:"img",width:e(S),height:e(S),fill:e(A),transform:e(g)?"scale(-1, 1)":void 0,viewBox:"0 0 256 256",...o,...I}),[()=>M(w),()=>M(v)]);var Re=qe(R);{var ne=o=>{var I=X(),O=m(I);ra(O,p),r(o,I)};Z(Re,o=>{p()&&o(ne)})}var c=$(Re,2);{var z=o=>{var I=pn();r(o,I)},Ce=o=>{var I=mn();Qe(),r(o,I)},Ee=o=>{var I=vn();r(o,I)},Fe=o=>{var I=_n();r(o,I)},K=o=>{var I=hn();r(o,I)},de=o=>{var I=bn();r(o,I)},u=o=>{var I=et();I.nodeValue=(console.error('Unsupported icon weight. Choose from "thin", "light", "regular", "bold", "fill", or "duotone".'),""),r(o,I)};Z(c,o=>{e(T)==="bold"?o(z):e(T)==="duotone"?o(Ce,1):e(T)==="fill"?o(Ee,2):e(T)==="light"?o(Fe,3):e(T)==="regular"?o(K,4):e(T)==="thin"?o(de,5):o(u,-1)})}return Be(R),r(f,R),ft(G)}var wn=H('<div class="type-caption flex items-center gap-[var(--space-2)] px-[var(--space-2)] py-[var(--space-1)] text-muted-foreground" data-testid="chat-message-navigator-loading"><!> <span> </span></div>'),In=H('<span class="block min-w-0 max-w-full flex-1 overflow-hidden whitespace-nowrap text-left text-ellipsis font-normal"> </span>'),An=H('<div role="listbox" class="mt-[var(--space-1)] min-h-0 min-w-0 flex-1 max-h-72 overflow-x-hidden overflow-y-auto overscroll-contain"></div>'),kn=H('<div class="type-caption px-2 py-6 text-left text-muted-foreground" data-testid="chat-message-navigator-empty"> </div>'),xn=H('<div class="flex min-h-0 min-w-0 max-h-full flex-1 flex-col overflow-hidden" data-testid="chat-message-navigator-panel"><!> <div role="status" aria-live="polite" class="shrink-0" data-testid="chat-message-navigator-loading-region"><!></div> <!></div>'),Wt=H("<!> <!>",1),yn=H('<div class="flex shrink-0 items-center gap-0.5" data-testid="chat-header-navigation-controls"><!> <!></div>');function la(f,i){const w=$a();if(new.target)return ct({component:la,...f});gt(i,!0);const p=t=>{var h=xn(),F=qe(h);{let N=n(()=>d.chat_messageNavigator_search_ariaLabel()),P=n(()=>e(O).length>0?I:void 0),V=n(()=>d.chat_messageNavigator_search_placeholder());_r(F,{get value(){return e(ne)},oninput:nt,onkeydown:q,role:"combobox",get"aria-label"(){return e(N)},get"aria-controls"(){return e(P)},"aria-expanded":"true","aria-autocomplete":"list",get"aria-activedescendant"(){return e(Le)},autocomplete:"off",get placeholder(){return e(V)},class:"type-caption h-(--control-height-medium) w-full min-w-0 shrink-0 rounded-(--radius-small) border border-border bg-card px-[var(--space-2)] text-foreground caret-foreground outline-none placeholder:text-muted-foreground","data-testid":"chat-message-navigator-search",get ref(){return e(Fe)},set ref(B){b(Fe,B,!0)}})}var j=$(F,2),ee=qe(j);{var ye=N=>{var P=wn(),V=qe(P);ka(V,{size:16});var B=$(V,2),Ie=at(B,!0);Be(P),ve(D=>$e(Ie,D),[()=>d.chat_messageNavigator_loading_label()]),r(N,P)};Z(ee,N=>{M()&&N(ye)})}Be(j);var se=$(j,2);{var ie=N=>{var P=An();kt(P,23,()=>e(O),V=>V.id,(V,B,Ie)=>{{let D=n(()=>!e(Re)[e(B).id]),y=n(()=>G()?"":"h-(--control-height-large)");$r(V,{get content(){return e(B).text},get disabled(){return e(D)},side:"left",align:"center",delayDuration:300,size:"sm",get class(){return`block w-full min-w-0 max-w-full ${e(y)??""}`},contentClass:"max-w-[min(28rem,calc(100vw-var(--space-4)))] break-words text-left",children:(_e,ge)=>{{let fe=n(()=>J(e(B).id)),Oe=n(()=>e(Ie)===e(c)),Se=n(()=>Xt(Pt(),hr,"max-w-full cursor-pointer overflow-hidden font-normal text-muted-foreground focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring/40",!G()&&"h-(--control-height-large) min-h-(--control-height-large) max-h-(--control-height-large)",G()?"hover:bg-hover hover:text-foreground":"hover:bg-accent/60 hover:text-accent-foreground",e(Ie)===e(c)&&(G()?"bg-selected text-foreground":"bg-accent text-accent-foreground"))),Pe=n(()=>G()||void 0);lt(_e,{type:"button",variant:"plain",labelClass:"overflow-hidden whitespace-nowrap text-left text-ellipsis",get id(){return e(fe)},role:"option",tabindex:-1,get"aria-selected"(){return e(Oe)},get class(){return e(Se)},onclick:()=>void ue(e(B).id),onkeydown:Me=>{(Me.key==="Enter"||Me.key===" ")&&(Me.preventDefault(),ue(e(B).id))},onpointermove:()=>{(e(c)!==e(Ie)||e(z))&&He(e(Ie))},"data-testid":"chat-message-navigator-result",get"data-navigation-message-id"(){return e(B).id},get"data-panel-menu-row"(){return e(Pe)},children:(Me,le)=>{var Ve=In(),Je=at(Ve,!0);xa(Ve,(Xe,Ue)=>vr?.(Xe,Ue),()=>Xe=>e(Re)[e(B).id]=Xe),ve(()=>$e(Je,e(B).text)),r(Me,Ve)},$$slots:{default:!0}})}},$$slots:{default:!0}})}}),Be(P),ve(()=>Yt(P,"id",I)),Gt("scroll",P,tt),r(N,P)},W=N=>{var P=kn(),V=at(P,!0);ve(B=>$e(V,B),[()=>d.chat_messageNavigator_empty_label()]),r(N,P)};Z(se,N=>{e(O).length>0?N(ie):M()||N(W,1)})}Be(h),r(t,h)};let v=ae(i,"messages",7),T=ae(i,"isAtBottom",7),A=ae(i,"onSelectMessage",7),S=ae(i,"onScrollToBottom",7),g=ae(i,"onOpen",7),M=ae(i,"isLoadingIndex",7,!1),G=ae(i,"embedded",7,!1),R=ce(!1),Re=ce(It({})),ne=ce(""),c=ce(0),z=ce(!0),Ce=null,Ee=!1,Fe=ce(null),K=ce(null),de=ce(null),u=ce(It([])),o=ce(!1);const I=`chat-message-navigator-listbox-${w}`,O=n(()=>{const t=e(ne).trim().toLocaleLowerCase();return t?v().filter(h=>h.text.toLocaleLowerCase().includes(t)):v()}),Le=n(()=>e(O)[e(c)]?J(e(O)[e(c)].id):void 0);function J(t){return`${I}-option-${encodeURIComponent(t)}`}function Ne(t){if(b(R,t,!0),!t)return;const h=e(K)?.closest("[data-panel-id]");b(u,h?[h]:[],!0),b(ne,""),b(z,!0),b(c,Math.max(v().length-1,0),!0),g()?.()}function nt(t){b(ne,t.currentTarget.value,!0),b(z,!0),b(c,Math.max(e(O).length-1,0),!0)}function He(t){b(z,!1),b(c,t,!0),Ce=e(O)[t]?.id??null}function tt(){Ee||b(z,!1)}je(()=>{if(!e(R))return;const t=e(O).length;if(t===0)return;if(e(z)){b(c,t-1),Ce=e(O)[t-1].id;return}const h=At(()=>e(c)),F=Ce===null?-1:e(O).findIndex(j=>j.id===Ce);F>=0?F!==h&&b(c,F,!0):h>=t?(b(c,t-1),Ce=e(O)[t-1].id):Ce=e(O)[h]?.id??null}),je(()=>{if(!e(R)||!e(de)||e(O).length===0)return;const t=e(Le)?document.getElementById(e(Le)):null;t&&(Ee=!0,t.scrollIntoView?.({block:"nearest"}),requestAnimationFrame(()=>{Ee=!1}))});function C(t){t.key!=="Enter"&&t.key!==" "||(t.preventDefault(),Ne(!e(R)))}function E(t){t.preventDefault(),e(Fe)?.focus()}async function xe(){await Nt(),e(R)&&e(Fe)?.focus()}function we(t){return e(de)?.contains(t)?!0:t instanceof Element?t.closest("[data-chat-message-navigator-content]")?.dataset.chatMessageNavigatorContent===w:!1}function oe(t){!e(R)||!(t.target instanceof Node)||e(K)?.contains(t.target)||we(t.target)||(b(o,!0),Ne(!1))}function Q(t){e(o)&&(t.preventDefault(),b(o,!1))}async function ue(t){b(R,!1),await Nt(),await A()(t)}function q(t){if(G()&&t.stopPropagation(),t.key==="Escape"){t.preventDefault(),b(R,!1);return}e(O).length!==0&&(t.key==="ArrowDown"?(t.preventDefault(),He((e(c)+1)%e(O).length)):t.key==="ArrowUp"?(t.preventDefault(),He((e(c)-1+e(O).length)%e(O).length)):t.key==="Home"?(t.preventDefault(),He(0)):t.key==="End"?(t.preventDefault(),He(e(O).length-1)):t.key==="Enter"&&(t.preventDefault(),ue(e(O)[e(c)].id)))}var te={get messages(){return v()},set messages(t){v(t),re()},get isAtBottom(){return T()},set isAtBottom(t){T(t),re()},get onSelectMessage(){return A()},set onSelectMessage(t){A(t),re()},get onScrollToBottom(){return S()},set onScrollToBottom(t){S(t),re()},get onOpen(){return g()},set onOpen(t){g(t),re()},get isLoadingIndex(){return M()},set isLoadingIndex(t=!1){M(t),re()},get embedded(){return G()},set embedded(t=!1){G(t),re()},$set:dt,$on:(t,h)=>ut(i,t,h)},a=X(),s=m(a);{var k=t=>{var h=X(),F=m(h);x(F,()=>Ot,(j,ee)=>{ee(j,{onOpenChange:Ne,get open(){return e(R)},set open(ye){b(R,ye,!0)},children:(ye,se)=>{var ie=Wt(),W=m(ie);x(W,()=>Lt,(P,V)=>{V(P,{get icon(){return Tr},onSelect:xe,"data-testid":"chat-message-navigator-trigger",children:(B,Ie)=>{Qe();var D=et();ve(y=>$e(D,y),[()=>d.chat_messageNavigator_menu_label()]),r(B,D)},$$slots:{default:!0}})});var N=$(W,2);x(N,()=>Ht,(P,V)=>{V(P,{class:"w-[28rem] max-w-[calc(100vw-1rem)]",onOpenAutoFocus:E,get"data-chat-message-navigator-content"(){return w},get ref(){return e(de)},set ref(B){b(de,B,!0)},children:(B,Ie)=>{p(B)},$$slots:{default:!0}})}),r(ye,ie)},$$slots:{default:!0}})}),r(t,h)},_=t=>{var h=yn(),F=qe(h);x(F,()=>Qa,(ee,ye)=>{ye(ee,{onOpenChange:Ne,get open(){return e(R)},set open(se){b(R,se,!0)},children:(se,ie)=>{var W=Wt(),N=m(W);{const V=(B,Ie)=>{let D=()=>(Ie?.()).props;{let y=n(()=>d.chat_messageNavigator_open_ariaLabel()),_e=n(()=>d.chat_messageNavigator_open_ariaLabel());lt(B,Mt(D,{variant:"ghost-light",size:"icon-sm",get active(){return e(R)},get"aria-label"(){return e(y)},get tooltip(){return e(_e)},get tooltipDisabled(){return e(R)},tooltipSide:"bottom",tooltipDelayDuration:300,get"aria-expanded"(){return e(R)},onkeydown:C,"data-testid":"chat-message-navigator-trigger",children:(ge,fe)=>{ia(ge,{get size(){return na.compact},weight:"regular",mirrored:!1,"aria-hidden":"true",class:"size-4!","data-chat-message-navigator-chat-icon":!0})},$$slots:{default:!0}}))}};x(N,()=>Jr,(B,Ie)=>{Ie(B,{get ref(){return e(K)},set ref(D){b(K,D,!0)},child:V,$$slots:{child:!0}})})}var P=$(N,2);x(P,()=>br,(V,B)=>{B(V,{children:(Ie,D)=>{var y=X(),_e=m(y);{let ge=n(()=>d.chat_messageNavigator_open_ariaLabel());x(_e,()=>Ya,(fe,Oe)=>{Oe(fe,{role:"dialog",get"aria-label"(){return e(ge)},align:"end",side:"bottom",sideOffset:4,get collisionBoundary(){return e(u)},collisionPadding:8,trapFocus:!1,onOpenAutoFocus:E,onCloseAutoFocus:Q,onFocusOutside:oe,get"data-chat-message-navigator-content"(){return w},get class(){return`${wr} w-[28rem]`},get ref(){return e(de)},set ref(Se){b(de,Se,!0)},children:(Se,Pe)=>{p(Se)},$$slots:{default:!0}})})}r(Ie,y)},$$slots:{default:!0}})}),r(se,W)},$$slots:{default:!0}})});var j=$(F,2);Kr(j,{get disabled(){return T()},get onclick(){return S()}}),Be(h),r(t,h)};Z(s,t=>{G()?t(k):t(_,-1)})}return r(f,a),ft(te)}function Tn(f,i,w){return[...Object.values(f).flatMap(p=>p.tabs.filter(v=>v.type==="browser"&&v.ownerAgentId===w).map(v=>({tab:v,panelId:p.id,active:p.activeTabId===v.id,hidden:!1}))),...i.filter(p=>p.type==="browser"&&p.ownerAgentId===w).map(p=>({tab:p,active:!1,hidden:!0}))]}const qt=(f,i=Dt)=>{var w=Sn(),p=qe(w);ht(p,{get icon(){return oa},class:"size-(--menu-icon-size) opacity-30"});var v=$(p,2);{var T=A=>{var S=Cn();ve(()=>Yt(S,"src",i().tab.faviconUrl)),Gt("error",S,g=>g.currentTarget.style.display="none"),wa(S),r(A,S)};Z(v,A=>{i().tab.faviconUrl&&A(T)})}Be(w),r(f,w)};var Cn=H('<img alt="" class="absolute inset-0 size-full rounded-sm object-contain"/>'),Sn=H('<span class="relative inline-flex size-(--menu-icon-size) shrink-0 items-center justify-center" aria-hidden="true"><!> <!></span>'),Pn=H('<span class="min-w-0 flex-1 truncate"> </span>'),Mn=H('<span class="inline-flex size-(--menu-icon-size) items-center justify-center" aria-hidden="true"><!></span>'),Dn=H('<div class="flex min-w-0 items-center gap-1"><!> <!></div>'),_t=H("<!> <!>",1),Ln=H('<span class="first-line-icon w-(--menu-icon-size)" aria-hidden="true"><!></span> <span class="min-w-0 flex-1 truncate text-muted-foreground"> </span>',1),Hn=H('<li class="flex min-w-0 items-center gap-1"><!> <!></li>'),On=H("<!> ",1),Bn=H('<div class="my-1 border-t border-border"></div> <!>',1),Rn=H('<ul class="m-0 list-none p-0"></ul> <!>',1);function ca(f,i){if(new.target)return ct({component:ca,...f});gt(i,!0);const w=()=>ke(R,"$panels$",v),p=()=>ke(Re,"$hiddenTabs$",v),[v,T]=xt();let A=ae(i,"workspaceId",7),S=ae(i,"agentId",7),g=ae(i,"entries",7),M=ae(i,"embedded",7,!1);const G=St(A());je(()=>G.set(A()));const R=Zt(G),Re=an(G),ne=n(()=>Tn(w(),p(),S())),c=n(()=>g()??e(ne)),z=n(()=>e(c).length===1?d.chat_browserTabs_trigger_tooltip_one({count:wt(e(c).length)}):d.chat_browserTabs_trigger_tooltip_many({count:wt(e(c).length)}));function Ce(a){const s=a.tab.title.trim();if(s)return s;if(a.tab.browserUrl)try{return new URL(a.tab.browserUrl).host||a.tab.browserUrl}catch{return a.tab.browserUrl}return d.browser_embedded_noUrl_label()}function Ee(a){if(b(K,!1),!g()){if(a.hidden){const s=Zt.select(Y.state,A()),k=Object.values(s).find(_=>_.tabs.some(t=>t.type==="agent"&&t.agentId===S()));Y.dispatch(Oa(A(),a.tab.id,k?.id??null))}else if(a.panelId){const s=tn(A());s.setActiveTab(a.tab.id,a.panelId),o=!0,s.focusPanel(a.panelId)}}}const Fe=crypto.randomUUID();je(()=>{const a=A();if(!(!e(K)||g()))return Y.dispatch(Da(a,Fe)),()=>Y.dispatch(La(a,Fe))});let K=ce(!1),de=ce(null),u=ce(null),o=!1;function I(a){!o&&!e(J)||(a.preventDefault(),o=!1)}function O(a,s){const k=e(de)?.querySelectorAll('[data-testid="browser-tabs-menu-item"]');if(!k?.length)return;let _;if(a.key==="ArrowDown")_=(s+1)%k.length;else if(a.key==="ArrowUp")_=(s-1+k.length)%k.length;else if(a.key==="Home")_=0;else if(a.key==="End")_=k.length-1;else if(a.key==="ArrowRight"){a.preventDefault(),a.currentTarget.closest("li")?.querySelector('[data-testid="browser-tab-close"]')?.focus();return}else return;a.preventDefault(),k[_].focus()}const Le=n(()=>e(c).filter(a=>a.hidden).length);let J=ce(null);function Ne(a,s){return a.hostClientId===void 0||a.hostClientId===s}function nt(a){const s=nn.select(Y.state,a.hostClientId??"",A());Y.dispatch(Ba(a.id,!s.connected))}function He(a){const s=rn.select(Y.state);if(a.kind==="tab"){const{tab:_,panelId:t}=a.entry;Ne(_,s)?Y.dispatch(ta(A(),_.id,t,void 0,{destroy:!0})):nt(_);return}const k=e(c).filter(_=>_.hidden&&!Ne(_.tab,s)).map(_=>_.tab);k.length<e(Le)&&Y.dispatch(Ha(A(),S(),s));for(const _ of k)nt(_)}async function tt(a){if(!g()){if(b(K,!1),ar.select(Y.state,S())){if(M()){const s=a.kind==="hidden";await en({title:s?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title(),description:s?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description(),confirmLabel:s?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label(),cancelLabel:d.chat_browserTabs_closeDialog_cancel_label(),destructive:!0})&&He(a)}else b(J,a,!0);return}He(a)}}function C(){const a=e(J);b(J,null),a&&He(a)}function E(){b(J,null)}var xe={get workspaceId(){return A()},set workspaceId(a){A(a),re()},get agentId(){return S()},set agentId(a){S(a),re()},get entries(){return g()},set entries(a){g(a),re()},get embedded(){return M()},set embedded(a=!1){M(a),re()},$set:dt,$on:(a,s)=>ut(i,a,s)},we=_t(),oe=m(we);{var Q=a=>{var s=X(),k=m(s);x(k,()=>Ot,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var j=_t(),ee=m(j);x(ee,()=>Lt,(se,ie)=>{ie(se,{get icon(){return oa},"data-testid":"browser-tabs-trigger",children:(W,N)=>{Qe();var P=et();ve(()=>$e(P,e(z))),r(W,P)},$$slots:{default:!0}})});var ye=$(ee,2);x(ye,()=>Ht,(se,ie)=>{ie(se,{class:"w-64",alignIconColumn:!1,onCloseAutoFocus:I,children:(W,N)=>{var P=_t(),V=m(P);kt(V,17,()=>e(c),D=>D.tab.id,(D,y)=>{const _e=n(()=>Ce(e(y)));var ge=Dn(),fe=qe(ge);{const Se=le=>{qt(le,()=>e(y))};let Pe=n(()=>e(y).hidden?"opacity-60":""),Me=n(()=>e(y).hidden||void 0);x(fe,()=>Vt,(le,Ve)=>{Ve(le,{get class(){return`min-w-0 flex-1 ${e(Pe)??""}`},get textValue(){return e(_e)},onclick:()=>Ee(e(y)),"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(Me)},leading:Se,children:(Je,Xe)=>{var Ue=Pn(),ot=at(Ue,!0);ve(()=>$e(ot,e(_e))),r(Je,Ue)},$$slots:{leading:!0,default:!0}})})}var Oe=$(fe,2);{let Se=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)})),Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(_e)}));x(Oe,()=>Vt,(le,Ve)=>{Ve(le,{class:"size-7 shrink-0 items-center justify-center p-0",get textValue(){return e(Se)},get"aria-label"(){return e(Pe)},get title(){return e(Me)},onSelect:Je=>Je.preventDefault(),onclick:()=>tt({kind:"tab",entry:e(y)}),"data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},children:(Je,Xe)=>{var Ue=Mn(),ot=qe(Ue);ht(ot,{get icon(){return $t},class:"size-(--menu-icon-size)! shrink-0"}),Be(Ue),r(Je,Ue)},$$slots:{default:!0}})})}Be(ge),r(D,ge)});var B=$(V,2);{var Ie=D=>{var y=_t(),_e=m(y);x(_e,()=>Bt,(fe,Oe)=>{Oe(fe,{})});var ge=$(_e,2);{let fe=n(()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))}));x(ge,()=>st,(Oe,Se)=>{Se(Oe,{get icon(){return $t},get label(){return e(fe)},onSelect:Pe=>Pe.preventDefault(),onclick:()=>tt({kind:"hidden"}),"data-testid":"browser-tabs-close-hidden"})})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,P)},$$slots:{default:!0}})}),r(h,j)},$$slots:{default:!0}})}),r(a,s)},ue=a=>{var s=X(),k=m(s);x(k,()=>tr,(_,t)=>{t(_,{get open(){return e(K)},set open(h){b(K,h,!0)},children:(h,F)=>{var j=_t(),ee=m(j);{const se=(ie,W)=>{lt(ie,Mt(()=>(W?.()).props,{variant:"ghost-light",size:"icon-sm",get active(){return e(K)},get"aria-label"(){return e(z)},get tooltip(){return e(z)},get tooltipDisabled(){return e(K)},tooltipSide:"bottom",tooltipDelayDuration:300,"data-testid":"browser-tabs-trigger",get ref(){return e(u)},set ref(P){b(u,P,!0)},children:(P,V)=>{Cr(P,{get size(){return na.compact},weight:"regular","aria-hidden":"true",class:"size-4!"})},$$slots:{default:!0}}))};x(ee,()=>Xr,(ie,W)=>{W(ie,{child:se,$$slots:{child:!0}})})}var ye=$(ee,2);x(ye,()=>er,(se,ie)=>{ie(se,{trapFocus:!1,align:"end",side:"bottom",sideOffset:4,class:"min-w-52 max-w-80 max-h-[min(var(--bits-popover-content-available-height,calc(100dvh-1rem)),calc(100dvh-1rem))] overflow-y-auto p-1",role:"dialog",get"aria-label"(){return e(z)},onOpenAutoFocus:W=>{W.preventDefault(),e(de)?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus()},onCloseAutoFocus:I,children:(W,N)=>{var P=Rn(),V=m(P);kt(V,23,()=>e(c),D=>D.tab.id,(D,y,_e)=>{const ge=n(()=>Ce(e(y)));var fe=Hn(),Oe=qe(fe);{let Pe=n(Pt),Me=n(()=>e(y).hidden?"opacity-60":""),le=n(()=>e(y).hidden||void 0);lt(Oe,{variant:"plain",wrapContent:!1,get class(){return`${e(Pe)??""} h-auto min-w-0 flex-1 ${e(Me)??""}`},"data-testid":"browser-tabs-menu-item",get"data-browser-tab-id"(){return e(y).tab.id},get"data-hidden"(){return e(le)},onkeydown:Ve=>O(Ve,e(_e)),onclick:()=>Ee(e(y)),children:(Ve,Je)=>{var Xe=Ln(),Ue=m(Xe),ot=qe(Ue);qt(ot,()=>e(y)),Be(Ue);var yt=$(Ue,2),bt=at(yt,!0);ve(()=>$e(bt,e(ge))),r(Ve,Xe)},$$slots:{default:!0}})}var Se=$(Oe,2);{let Pe=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)})),Me=n(()=>d.chat_browserTabs_closeTab_ariaLabel({title:e(ge)}));lt(Se,{variant:"plain",size:"icon-compact",type:"button",class:"size-6 shrink-0 focus-visible:ring-1","data-testid":"browser-tab-close",get"data-browser-tab-id"(){return e(y).tab.id},get"aria-label"(){return e(Pe)},get title(){return e(Me)},onkeydown:le=>{le.key!=="Escape"&&le.stopPropagation(),le.key==="ArrowLeft"&&(le.preventDefault(),le.currentTarget.closest("li")?.querySelector('[data-testid="browser-tabs-menu-item"]')?.focus())},onclick:le=>{le.preventDefault(),le.stopPropagation(),tt({kind:"tab",entry:e(y)})},children:(le,Ve)=>{ht(le,{get icon(){return $t},class:"size-3"})},$$slots:{default:!0}})}Be(fe),r(D,fe)}),Be(V),Qt(V,D=>b(de,D),()=>e(de));var B=$(V,2);{var Ie=D=>{var y=Bn(),_e=$(m(y),2);{let ge=n(Pt);lt(_e,{variant:"plain",get class(){return e(ge)},"data-testid":"browser-tabs-close-hidden",onclick:()=>tt({kind:"hidden"}),children:(fe,Oe)=>{var Se=On(),Pe=m(Se);ht(Pe,{get icon(){return $t},class:"size-3"});var Me=$(Pe);ve(le=>$e(Me,` ${le??""}`),[()=>d.chat_browserTabs_closeHidden_label({count:wt(e(Le))})]),r(fe,Se)},$$slots:{default:!0}})}r(D,y)};Z(B,D=>{e(Le)>0&&D(Ie)})}r(W,P)},$$slots:{default:!0}})}),r(h,j)},$$slots:{default:!0}})}),r(a,s)};Z(oe,a=>{e(c).length>0&&M()?a(Q):e(c).length>0&&a(ue,1)})}var q=$(oe,2);{let a=n(()=>e(J)!==null),s=n(()=>e(J)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_title():d.chat_browserTabs_closeDialog_title()),k=n(()=>e(J)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_description():d.chat_browserTabs_closeDialog_description()),_=n(()=>d.chat_browserTabs_closeDialog_close_ariaLabel()),t=n(()=>d.chat_browserTabs_closeDialog_cancel_label()),h=n(()=>e(J)?.kind==="hidden"?d.chat_browserTabs_closeHiddenDialog_confirm_label():d.chat_browserTabs_closeDialog_confirm_label());Qr(q,{get open(){return e(a)},size:"sm",get title(){return e(s)},get description(){return e(k)},get closeLabel(){return e(_)},get cancelLabel(){return e(t)},get submitLabel(){return e(h)},submitVariant:"destructive",focusSubmit:!0,onSubmit:C,onCancel:E,onCloseAutoFocus:F=>{F.preventDefault(),e(u)?.focus()}})}r(f,we);var te=ft(xe);return T(),te}var Fn=H("<!> <!>",1);function da(f,i){if(new.target)return ct({component:da,...f});gt(i,!0);const w=()=>ke(g,"$entry",p),[p,v]=xt();let T=ae(i,"workspaceId",7),A=ae(i,"agentId",7),S=ae(i,"separator",7,!0);const g=ea(At(()=>T()),At(()=>A()));je(()=>{Y.dispatch(aa(T(),A()))});var M={get workspaceId(){return T()},set workspaceId(c){T(c),re()},get agentId(){return A()},set agentId(c){A(c),re()},get separator(){return S()},set separator(c=!0){S(c),re()},$set:dt,$on:(c,z)=>ut(i,c,z)},G=X(),R=m(G);{var Re=c=>{var z=Fn(),Ce=m(z);{var Ee=K=>{var de=X(),u=m(de);x(u,()=>Bt,(o,I)=>{I(o,{})}),r(K,de)};Z(Ce,K=>{S()&&K(Ee)})}var Fe=$(Ce,2);x(Fe,()=>mt,(K,de)=>{de(K,{indicator:"switch",get icon(){return Sr},get checked(){return w().permission.allowed},onSelect:u=>{u.preventDefault();const o=w()?.permission;o&&!w()?.saving&&Y.dispatch(Ra(T(),A(),o.computerId,!o.allowed))},children:(u,o)=>{Qe();var I=et();ve(O=>$e(I,O),[()=>d.settings_agentFeatures_desktopControl_label()]),r(u,I)},$$slots:{default:!0}})}),r(c,z)};Z(R,c=>{w()?.permission&&c(Re)})}r(f,G);var ne=ft(M);return v(),ne}var Ct=H("<!> <!>",1),Nn=H("<!> <!> <!>",1),zn=H('<span class="min-w-0 flex-1"> </span> <span> </span>',1),En=H("<!> <!> <!> <!>",1),Vn=H("<!> <!> <!> <!> <!>",1);function ua(f,i){if(new.target)return ct({component:ua,...f});gt(i,!0);const w=()=>ke(de,"$agentSession",S),p=()=>ke(Ce,"$fontStyle",S),v=()=>ke(Ee,"$chatContentWidth",S),T=()=>ke(Fe,"$chatAuroraEnabled",S),A=()=>ke(K,"$collapseToolRuns",S),[S,g]=xt(),M=C=>{var E=X(),xe=m(E);x(xe,()=>Gr,(we,oe)=>{oe(we,{get value(){return p()},onValueChange:O,children:(Q,ue)=>{var q=Ct(),te=m(q);x(te,()=>Ut,(s,k)=>{k(s,{value:"sans",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_sans()]),r(_,h)},$$slots:{default:!0}})});var a=$(te,2);x(a,()=>Ut,(s,k)=>{k(s,{value:"monospace",closeOnSelect:!1,children:(_,t)=>{Qe();var h=et();ve(F=>$e(h,F),[()=>d.settings_fontStyle_mono()]),r(_,h)},$$slots:{default:!0}})}),r(Q,q)},$$slots:{default:!0}})}),r(C,E)},G=C=>{var E=Nn(),xe=m(E);{let Q=n(()=>v()==="full");x(xe,()=>mt,(ue,q)=>{q(ue,{indicator:"switch",get icon(){return Dr},get checked(){return e(Q)},closeOnSelect:!1,onCheckedChange:te=>Y.dispatch(Fa(te?"full":"800")),children:(te,a)=>{Qe();var s=et();ve(k=>$e(s,k),[()=>d.settings_appearance_chatContentWidth_label()]),r(te,s)},$$slots:{default:!0}})})}var we=$(xe,2);x(we,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Lr},get checked(){return T()},closeOnSelect:!1,onCheckedChange:q=>Y.dispatch(Na(q)),children:(q,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_chatAurora_label()]),r(q,a)},$$slots:{default:!0}})});var oe=$(we,2);x(oe,()=>mt,(Q,ue)=>{ue(Q,{indicator:"switch",get icon(){return Hr},get checked(){return A()},closeOnSelect:!1,onCheckedChange:q=>Y.dispatch(za(q)),children:(q,te)=>{Qe();var a=et();ve(s=>$e(a,s),[()=>d.settings_appearance_collapseToolRuns_label()]),r(q,a)},$$slots:{default:!0}})}),r(C,E)},R=C=>{var E=X(),xe=m(E);{var we=oe=>{var Q=X(),ue=m(Q);x(ue,()=>mt,(q,te)=>{te(q,{indicator:"switch",get icon(){return Or},get checked(){return e(u)},closeOnSelect:!1,onCheckedChange:a=>Y.dispatch(Va(c(),z(),a?"interactive":"allow")),children:(a,s)=>{Qe();var k=et();ve(_=>$e(k,_),[()=>d.ui_viewSettings_askBeforeTools_label()]),r(a,k)},$$slots:{default:!0}})}),r(oe,Q)};Z(xe,oe=>{e(u)!==void 0&&c()&&z()&&oe(we)})}r(C,E)},Re=C=>{var E=X(),xe=m(E);{var we=oe=>{var Q=X(),ue=m(Q);Kt(ue,()=>`${c()}:${z()}`,q=>{{let te=n(()=>!ne());da(q,{get workspaceId(){return c()},get agentId(){return z()},get separator(){return e(te)}})}}),r(oe,Q)};Z(xe,oe=>{c()&&z()&&oe(we)})}r(C,E)};let ne=ae(i,"embedded",7,!1),c=ae(i,"workspaceId",7),z=ae(i,"agentId",7);const Ce=sn(),Ee=ln(),Fe=cn(),K=dn(),de=rr(Yr(()=>z())),u=n(()=>{const C=w();if(!c()||!C||C.permissionPolicy===void 0)return;const E=C.effectivePermissionPolicy;return typeof E=="string"?E==="interactive":void 0});let o=ce(!1);const I=n(()=>p()==="sans"?d.settings_fontStyle_sans():d.settings_fontStyle_mono());function O(C){C!=="sans"&&C!=="monospace"||Y.dispatch(Ea(C))}var Le={get embedded(){return ne()},set embedded(C=!1){ne(C),re()},get workspaceId(){return c()},set workspaceId(C){c(C),re()},get agentId(){return z()},set agentId(C){z(C),re()},$set:dt,$on:(C,E)=>ut(i,C,E)},J=X(),Ne=m(J);{var nt=C=>{var E=En(),xe=m(E);x(xe,()=>Ot,(ue,q)=>{q(ue,{children:(te,a)=>{var s=Ct(),k=m(s);x(k,()=>Lt,(t,h)=>{h(t,{get icon(){return Pr},iconWeight:"regular",children:(F,j)=>{var ee=zn(),ye=m(ee),se=at(ye,!0),ie=$(ye,2),W=at(ie,!0);ve(N=>{$e(se,N),ya(ie,1,`type-caption ${Ur}`),$e(W,e(I))},[()=>d.ui_viewSettings_font_label()]),r(F,ee)},$$slots:{default:!0}})});var _=$(k,2);{let t=n(()=>d.ui_viewSettings_font_label());x(_,()=>Ht,(h,F)=>{F(h,{get"aria-label"(){return e(t)},children:(j,ee)=>{M(j)},$$slots:{default:!0}})})}r(te,s)},$$slots:{default:!0}})});var we=$(xe,2);G(we);var oe=$(we,2);R(oe);var Q=$(oe,2);Re(Q),r(C,E)},He=C=>{var E=X(),xe=m(E);x(xe,()=>jr,(we,oe)=>{oe(we,{get open(){return e(o)},set open(Q){b(o,Q,!0)},children:(Q,ue)=>{var q=Ct(),te=m(q);{const s=(k,_)=>{let t=()=>(_?.()).props;{let h=n(()=>d.ui_viewSettings_trigger_tooltip()),F=n(()=>d.ui_viewSettings_trigger_tooltip());lt(k,Mt(t,{variant:"ghost-light",size:"icon-xs",get tooltip(){return e(h)},tooltipSide:"bottom",get"aria-label"(){return e(F)},get"aria-expanded"(){return e(o)},"data-testid":"agent-view-settings-trigger",children:(j,ee)=>{ht(j,{get icon(){return Mr},size:"xs"})},$$slots:{default:!0}}))}};x(te,()=>Wr,(k,_)=>{_(k,{child:s,$$slots:{child:!0}})})}var a=$(te,2);{let s=n(()=>d.ui_viewSettings_trigger_tooltip());x(a,()=>qr,(k,_)=>{_(k,{align:"end",class:"w-56",get"aria-label"(){return e(s)},children:(t,h)=>{var F=Vn(),j=m(F);M(j);var ee=$(j,2);x(ee,()=>Bt,(W,N)=>{N(W,{})});var ye=$(ee,2);G(ye);var se=$(ye,2);R(se);var ie=$(se,2);Re(ie),r(t,F)},$$slots:{default:!0}})})}r(Q,q)},$$slots:{default:!0}})}),r(C,E)};Z(Ne,C=>{ne()?C(nt):C(He,-1)})}r(f,J);var tt=ft(Le);return g(),tt}function vt(f,i=2){if(f==null)return"";if(typeof f=="string")return f;try{return JSON.stringify(f,null,i)}catch{return String(f)}}function Un(f){const i=f.name||f.toolName||"unknown",w=f.arguments||f.input||f.parameters||{},p=vt(w),v=f.result,T=f.error;let A=`🔧 Tool: ${i}
2
+ Input:
3
+ ${p}`;return T?A+=`
4
+ ❌ Error: ${typeof T=="string"?T:vt(T)}`:v!==void 0&&(A+=`
5
+ ✅ Result:
6
+ ${vt(v)}`),A}function Zn(f){const i=f.name||f.toolName||"unknown",w=f.input||{};return`🔧 Tool: ${i}
7
+ Input:
8
+ ${vt(w)}`}function Wn(f){const i=f.is_error||f.isError||!1,w=f.content||f.output||f.text||"";return`${i?"❌ Tool Error":"✅ Tool Result"}:
9
+ ${vt(w)}`}function qn(f){const i=[];let w=null;for(const p of f){const v=[],T=new Set;if(p.contentBlocks&&Array.isArray(p.contentBlocks))for(const g of p.contentBlocks)if(g.type==="text"){const M=g.text||g.content||"";M.trim()&&v.push(M)}else if(g.type==="tool_use"){v.push(Zn(g));const M=g.id||g.toolCallId;M&&T.add(M)}else if(g.type==="tool_result"){v.push(Wn(g));const M=g.tool_use_id||g.toolCallId;M&&T.add(M)}else g.type==="thinking"&&g.text&&v.push(`💭 Thinking:
10
+ ${g.text}`);if(p.toolCalls&&Array.isArray(p.toolCalls))for(const g of p.toolCalls)g.id&&T.has(g.id)||v.push(Un(g));if(p.toolResults&&Array.isArray(p.toolResults))for(const g of p.toolResults){if(g.toolCallId&&T.has(g.toolCallId))continue;const M=g.isError||!1,G=g.content||"",R=M?"❌ Tool Error":"✅ Tool Result";v.push(`${R}:
11
+ ${vt(G)}`)}if(v.length===0)continue;w!==null&&(w==="assistant"&&p.role==="user"?i.push(`
12
+ `+"=".repeat(80)+`
13
+ `):i.push(`
14
+ ---
15
+ `));const A=p.role==="user"?"User":p.role==="system"?"System":"Assistant",S=p.timestamp?on(p.timestamp):"";i.push(`${A}${S?` (${S})`:""}:
16
+ ${v.join(`
17
+
18
+ `)}`),w=p.role}return i.join(`
19
+ `)}var jn=H("<!> <!>",1),Gn=H("<!> <!> <!> <!> <!> <!>",1),Kn=H("<!> <!> <!>",1),Jn=H('<span class="block min-w-0 truncate"> </span>'),Xn=H('<!> <p role="status" class="min-h-0 overflow-y-auto text-sm"> </p>',1),Yn=H('<div class="flex h-full min-h-0 w-full flex-1 flex-col"><!> <!> <div class="min-h-0 flex-1"><!></div></div>'),Qn=H('<div class="flex items-center justify-center h-full text-subtle"><p> </p></div>'),eo=H("<!> <!> <!> <!>",1);function to(f,i){if(new.target)return ct({component:to,...f});gt(i,!0);const w=()=>ke(tt,"$mutation$",c),p=()=>ke(Q,"$initialAgentId$",c),v=()=>ke(q,"$agent$",c),T=()=>ke(xe,"$defaultModel",c),A=()=>ke(oe,"$specialists$",c),S=()=>ke(h,"$parentAgent$",c),g=()=>ke(V,"$connectionGeneration$",c),M=()=>ke(E,"$hidesAgentLifecycleActions$",c),G=()=>ke(P,"$retirementSupported$",c),R=()=>ke(we,"$presencePeople$",c),Re=()=>ke(C,"$workspace",c),ne=()=>ke(nt,"$desktop",c),[c,z]=xt(),Ce=l=>{var U=jn(),he=m(U);ua(he,{embedded:!0,get workspaceId(){return o()},get agentId(){return u().agentId}});var Ze=$(he,2);{var Ye=De=>{var ze=X(),Ge=m(ze);{let pe=n(()=>!e(a));x(Ge,()=>mt,(Ae,We)=>{We(Ae,{indicator:"switch",get icon(){return Nr},get checked(){return e(pe)},onCheckedChange:Me,children:(L,me)=>{Qe();var be=et();ve(Ke=>$e(be,Ke),[()=>d.settings_section_notifications()]),r(L,be)},$$slots:{default:!0}})})}r(De,ze)};Z(Ze,De=>{v()&&De(Ye)})}r(l,U)},Ee=(l,U=Dt)=>{var he=Gn(),Ze=m(he);{let L=n(()=>e(D)?Br:Rr),me=n(()=>e(D)||d.layout_agentTab_copyConversation_tooltip()),be=n(()=>e(k).length===0);x(Ze,()=>st,(Ke,rt)=>{rt(Ke,{get icon(){return e(L)},iconWeight:"regular",get label(){return e(me)},onclick:Pe,get disabled(){return e(be)}})})}var Ye=$(Ze,2);{let L=n(()=>I()&&U());Ir(Ye,{get tasks(){return e(Oe)},get workspaceId(){return o()},get isActive(){return e(L)},embedded:!0})}var De=$(Ye,2);la(De,{embedded:!0,get messages(){return e(fe).userMessages},get isAtBottom(){return e(fe).isAtBottom},get isLoadingIndex(){return e(fe).isLoadingUserMessageIndex},onSelectMessage:L=>e(ge)?.navigateToUserMessage(L)??!1,onScrollToBottom:()=>e(ge)?.scrollToBottom(),onOpen:()=>e(ge)?.refreshUserMessageIndex()});var ze=$(De,2);{var Ge=L=>{var me=X(),be=m(me);{let Ke=n(()=>d.layout_agentTab_goToTaskNote_tooltip());x(be,()=>st,(rt,Te)=>{Te(rt,{get icon(){return cr},iconWeight:"regular",get label(){return e(Ke)},onclick:it=>Se(it)})})}r(L,me)};Z(ze,L=>{e(j)&&L(Ge)})}var pe=$(ze,2);{var Ae=L=>{ca(L,{get workspaceId(){return o()},get agentId(){return u().agentId},embedded:!0})};Z(pe,L=>{u().agentId&&L(Ae)})}var We=$(pe,2);kt(We,1,R,L=>L.principalId,(L,me)=>{var be=X(),Ke=m(be);{let rt=n(()=>gr(e(me)));x(Ke,()=>st,(Te,it)=>{it(Te,{get icon(){return Fr},get label(){return e(rt)},disabled:!0})})}r(L,be)}),r(l,he)},Fe=l=>{var U=Kn(),he=m(U);{var Ze=pe=>{var Ae=X(),We=m(Ae);{let L=n(()=>d.layout_agentTab_replaceAgent_tooltip());x(We,()=>st,(me,be)=>{be(me,{get icon(){return zr},iconWeight:"regular",get label(){return e(L)},onclick:()=>b(W,!0)})})}r(pe,Ae)};Z(he,pe=>{e(ie)&&pe(Ze)})}var Ye=$(he,2);{var De=pe=>{var Ae=X(),We=m(Ae);{let L=n(()=>d.modals_retireAgent_confirm_label());x(We,()=>st,(me,be)=>{be(me,{get icon(){return Er},iconWeight:"regular",get label(){return e(L)},onclick:()=>b(N,!0)})})}r(pe,Ae)};Z(Ye,pe=>{G()&&v()&&!v().retiredAt&&pe(De)})}var ze=$(Ye,2);{var Ge=pe=>{var Ae=X(),We=m(Ae);{let L=n(()=>d.layout_agentTab_deleteAgent_tooltip());x(We,()=>st,(me,be)=>{be(me,{get icon(){return Vr},iconWeight:"regular",get label(){return e(L)},onclick:le,get disabled(){return e(_e)},destructive:!0})})}r(pe,Ae)};Z(ze,pe=>{M()||pe(Ge)})}r(l,U)},K=l=>{var U=X(),he=m(U);x(he,()=>sa,(Ze,Ye)=>{Ye(Ze,{children:(De,ze)=>{var Ge=X(),pe=m(Ge);{var Ae=L=>{var me=X(),be=m(me);{let Ke=n(()=>[e(_),d.chat_agentCard_menu_harnessVersion_label({version:e(ee)})].filter(Boolean).join(" · "));x(be,()=>st,(rt,Te)=>{Te(rt,{class:"min-h-0 px-0 py-0",get label(){return e(Ke)},onclick:()=>b(se,!0)})})}r(L,me)},We=L=>{var me=Jn(),be=at(me,!0);ve(()=>$e(be,e(_))),r(L,me)};Z(pe,L=>{e(ee)?L(Ae):e(_)&&L(We,1)})}r(De,Ge)},$$slots:{default:!0}})}),r(l,U)},de=fr("AgentTabType");let u=ae(i,"tab",7),o=ae(i,"workspaceId",7),I=ae(i,"isActive",7),O=ae(i,"isPanelFocused",7);je(()=>{u().agentId&&Y.dispatch(aa(o(),u().agentId))});const Le=Ja(),J=St(""),Ne=St(""),nt=ea(J,Ne),He=crypto.randomUUID(),tt=dr(J,He);je(()=>{const l=o();return u().agentId,()=>Y.dispatch(Ua(l,He))}),je(()=>{const l=w();!l||l.workspaceId!==o()||l.status==="pending"||l.agentId!==u().agentId||Y.dispatch(Za(o(),He,l.requestId))}),je(()=>{J.set(o())}),je(()=>{Ne.set(u().agentId??"")});const C=nr(J),E=or(J),xe=Ta(J),we=ur(J,Ne),oe=Ca(J),Q=sr(J),ue=n(()=>!!(o()&&u().agentId&&p()===u().agentId)),q=Et(()=>u().agentId),te=n(()=>v()?.model||T()),a=n(()=>v()?.notificationsMuted===!0);let s=ce(void 0);je(()=>{if(!I()||!u().agentId){b(s,void 0);return}const l=Xa(u().agentId,U=>{b(s,U,!0)});return()=>{l()}});const k=n(()=>e(s)?.messages||[]),_=n(()=>{if(A(),!u().agentId)return null;const l=e(s)?.metadata?.specialist||e(s)?.agentMetadata?.specialist;return l?Sa.select(Y.state,l)??l:null}),t=n(()=>e(s)?qa(e(s)):null),h=Et(()=>e(t)),F=n(()=>e(t)&&S()?.name||null),j=n(()=>e(s)?.metadata?.taskNoteId||e(s)?.agentMetadata?.taskNoteId||null),ee=n(()=>v()?.harnessVersion??null),ye=n(()=>v()?.harnessFeatures??null);let se=ce(!1);const ie=n(()=>Ar(v()));let W=ce(!1),N=ce(!1);const P=ir(),V=lr();je(()=>{g(),Y.dispatch(Wa())});const B=n(()=>e(s)?.metadata?.specialist||e(s)?.agentMetadata?.specialist||null);function Ie(l){u().agentId&&Y.dispatch(Ka(u().agentId,{wsId:o(),text:l,agentName:e(s)?.name||u().title||"",agentModel:e(te),isInitialWorkspaceAgent:e(ue)}))}let D=ce(null),y=null;const _e=n(()=>w()?.agentId===u().agentId&&w()?.operation.kind==="delete"&&w().status==="pending");let ge=ce(null),fe=ce(It({isAtBottom:!0,userMessages:[],isLoadingUserMessageIndex:!1})),Oe=ce(It([]));Ia(()=>{y&&(clearTimeout(y),y=null)});function Se(l){if(!e(j))return;const U=l?.metaKey||l?.ctrlKey||!1,Ze=l?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;pr(e(j),{openInAdjacentPanel:U,sourcePanelId:Ze})}async function Pe(){if(!(!u().agentId||e(k).length===0))try{const l=qn(e(k));await navigator.clipboard.writeText(l),b(D,d.layout_agentTab_copied_label(),!0),y&&clearTimeout(y),y=setTimeout(()=>{b(D,null),y=null},2e3)}catch(l){de.error("Failed to copy conversation",l)}}function Me(){u().agentId&&Y.dispatch(ja(o(),u().agentId,!e(a)))}function le(){if(!u().agentId||e(_e)||M())return;const l=u().agentId,U=e(s)?.name||u().title||"";Y.dispatch(ta(o(),u().id)),Y.dispatch(Ga(o(),He,crypto.randomUUID(),l,{kind:"delete",name:U}))}je(()=>{if(!Le||!I())return;const l=[];e(_)&&l.push(e(_)),e(F)&&l.push(d.layout_panelTabBar_delegatedBy_label({name:e(F)}));const U=l.length>0?l.join(" · "):void 0,he=e(ie)||G()&&v()&&!v().retiredAt||!M(),Ze=!!(e(_)||e(ee));At(()=>{Le.registerActions({display:Ce,conversation:Ee,lifecycle:he?Fe:void 0,footer:Ze?K:void 0}),Le.registerState({subtitle:U})})});var Ve={get tab(){return u()},set tab(l){u(l),re()},get workspaceId(){return o()},set workspaceId(l){o(l),re()},get isActive(){return I()},set isActive(l){I(l),re()},get isPanelFocused(){return O()},set isPanelFocused(l){O(l),re()},$set:dt,$on:(l,U)=>ut(i,l,U)},Je=eo(),Xe=m(Je);{var Ue=l=>{{let U=n(()=>u().agentId??void 0);kr(l,{get version(){return e(ee)},get features(){return e(ye)},get agentId(){return e(U)},get open(){return e(se)},set open(he){b(se,he,!0)}})}};Z(Xe,l=>{e(ee)&&l(Ue)})}var ot=$(Xe,2);{var yt=l=>{{let U=n(()=>e(s)?.name||u().title||"");xr(l,{get agentName(){return e(U)},get workspaceId(){return o()},get agentId(){return u().agentId},get open(){return e(N)},set open(he){b(N,he,!0)}})}};Z(ot,l=>{e(N)&&u().agentId&&l(yt)})}var bt=$(ot,2);{var ga=l=>{{let U=n(()=>e(s)?.name||u().title||"");yr(l,{get agentName(){return e(U)},get specialist(){return e(B)},onSend:Ie,get open(){return e(W)},set open(he){b(W,he,!0)}})}};Z(bt,l=>{e(W)&&l(ga)})}var fa=$(bt,2);{var pa=l=>{var U=X(),he=m(U);{var Ze=De=>{var ze=X(),Ge=m(ze);Kt(Ge,()=>u().agentId,pe=>{var Ae=Yn(),We=qe(Ae);{var L=Te=>{zt(Te,{class:"m-3 max-h-[40%] shrink-0 gap-2 p-3",children:(it,va)=>{var Rt=Xn(),Ft=m(Rt);{var _a=Tt=>{Ma(Tt,{get checklist(){return ne().osChecklist}})};Z(Ft,Tt=>{ne().osChecklist&&Tt(_a)})}var ha=$(Ft,2),ba=at(ha,!0);ve(()=>$e(ba,ne().error)),r(it,Rt)},$$slots:{default:!0}})};Z(We,Te=>{ne()?.error&&!ne().pending&&Te(L)})}var me=$(We,2);{var be=Te=>{zt(Te,{class:"m-3 max-h-[40%] shrink-0 p-3",children:(it,va)=>{Pa(it,{get workspaceId(){return o()},get agentId(){return u().agentId},get requestId(){return ne().pending.requestId}})},$$slots:{default:!0}})};Z(me,Te=>{ne()?.pending&&Te(be)})}var Ke=$(me,2),rt=qe(Ke);Qt(mr(rt,{get workspace(){return Re()},get agentId(){return u().agentId},get tabId(){return u().id},get agentModel(){return e(te)},get isActive(){return I()},get isPanelFocused(){return O()},get isInitialWorkspaceAgent(){return e(ue)},onNavigationStateChange:Te=>b(fe,Te,!0),onTaskProgressChange:Te=>b(Oe,Te,!0)}),Te=>b(ge,Te,!0),()=>e(ge)),Be(Ke),Be(Ae),r(pe,Ae)}),r(De,ze)},Ye=De=>{var ze=Qn(),Ge=qe(ze),pe=at(Ge,!0);Be(ze),ve(Ae=>$e(pe,Ae),[()=>d.layout_agentTab_loadingSpace_label()]),r(De,ze)};Z(he,De=>{Re()?De(Ze):De(Ye,-1)})}r(l,U)};Z(fa,l=>{u().agentId&&l(pa)})}r(f,Je);var ma=ft(Ve);return z(),ma}export{to as default};
@@ -1,2 +1,2 @@
1
- import{O as G,g as Q,ao as V,al as j,aw as z,p as X,a as J}from"./CNJgwoNk.js";import{Ig as l,ny as h,nz as R,Ip as N,bf as T,Y,nl as _,r7 as H,rt as $,k5 as Z,rr as B,IH as O,qP as ee,fF as q,r8 as P,_ as te,bd as ne,g as se}from"./CpBlZvWi.js";import{y as F,aA as oe,v as ie}from"./BwBvFc9f.js";import{g as K}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=Q(e);return re.some(s=>n.startsWith(s))}const x=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Be(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-x}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-x}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},K(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),Fe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Ke=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const xe=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!F(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const A=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of C.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of A.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const Qe=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of A.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||S(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Ve=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Se(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!S(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!S(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?V.select(e,t.id)||typeof n.status=="string"&&B(n.status):B(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":j.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!F(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function S(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
1
+ import{O as G,g as Q,ao as V,al as j,aw as z,p as X,a as J}from"./BsesepNZ.js";import{Ig as l,ny as h,nz as R,Ip as N,bf as T,Y,nl as _,r7 as H,rt as $,k5 as Z,rr as B,IH as O,qP as ee,fF as q,r8 as P,_ as te,bd as ne,g as se}from"./BJpbRkma.js";import{y as F,aA as oe,v as ie}from"./IsBHRTqp.js";import{g as K}from"./DypB-Dwi.js";const re=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function ae(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!G(t))return!0}const n=Q(e);return re.some(s=>n.startsWith(s))}const x=1440*60*1e3;function ce(e){let t=null;for(const n of e){if(ae({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const de=50,le=20;function W(e,t){return e===null||t!==null&&t>e?t:e}async function Be(e,t){let n,s=null;for(let o=0;o<le;o++){const i=await e({limit:de,nextToken:n});if(!i.ok)return null;const a=i.items;s===null&&a.length>0&&(s=a[a.length-1].id);const d=t?.newestId!=null?a.findIndex(c=>c.id===t.newestId):-1,r=ce(d>=0?a.slice(d+1):a);if(d>=0)return{latest:W(r,t?.latest??null),newestId:s};if(r!==null)return{latest:W(r,t?.latest??null),newestId:s};if(typeof i.nextToken!="string")return{latest:null,newestId:s};n=i.nextToken}return{latest:t?.latest??null,newestId:s}}function ue(e,t){return e!=null&&e<=t&&e>t-x}function ge(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-x}function fe(e,t){const{workspaceId:n,agentId:s,authority:o,nativePairId:i,evidence:a}=e;if(!n||!s||!o||o!==t)return null;const d=JSON.stringify([n,s]);if(i!==d||a?.id!==d)return null;const r=a.clips.find(c=>c.status==="recording");return!r||!Number.isFinite(r.startedAt)||!Number.isFinite(r.pausedMs??0)||r.pausedAt!=null&&!Number.isFinite(r.pausedAt)?null:{workspaceId:n,agentId:s,clipId:r.id,startedAt:r.startedAt,pausedAt:r.pausedAt??null,pausedMs:r.pausedMs??0}}function We(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const De=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return fe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?h(t.evidence,n):null},K(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const Ee=l.createSelector(e=>e.hud.rateHistory),Ne=l.createSelector(e=>R(e.workspace.workspaces)),He=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?N(t):0}),qe=l.createSelector(e=>e.hud.burnRatePerMin),Pe=l.createSelector(e=>e.hud.burnTrend),Fe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:o}=e.daemonHealth,i=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:o==="remote"&&i?i.split(".",1)[0]??i:null}}),Ke=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const xe=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!F(s,n.messageId)}),Le=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function pe(e,t){return t[String(e.id)]??e.displayStatus}const A=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return R(e.workspace.workspaces).filter(n=>n.status!==T.Archived&&n.status!==T.Retired&&n.status!==T.Deleted).map(n=>{const s=pe(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ie(n.id))}const Ue=l.createSelector(e=>{const t=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(e))for(const s of I(n))t[y(e,s).bucket]+=1;return t}),Ge=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of C.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),ke=l.createSelector(e=>{const t={};for(const n of A.select(e))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function D(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const Qe=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const o of A.select(e)){const i=String(o.id);let a=!1;for(const r of b(o,e)){const{bucket:c,attentionKind:u,hasQuestion:g}=r;if(c!=="needs-attention"&&c!=="failed"||!r.topLevel||r.isBackground||S(e,r.id))continue;const k=g?n[r.id]:void 0,f=u?_(e.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:i,workspaceTitle:o.title,kind:c==="needs-attention"?"agent_waiting":"agent_failed",...c==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),a=!0}const d=t[i];d&&H(d.attention)&&(s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",attention:d.attention,message:null,sinceTs:d.raisedAtTs}),a=!0),L.has(w(o))&&!a&&s.push({workspaceId:i,workspaceTitle:o.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((o,i)=>D(i)-D(o))}),Ve=l.createSelector(e=>{const t=ke.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:h(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),Ae={total:0,completed:0,inProgress:0};function w(e){const t=$(e.displayStatus)?e.displayStatus:"not_started";return Z(t)??"not_started"}const L=new Set(["wait","blocked","failed"]);function Se(e,t,n){if(t==="failed"){const o=n.find(a=>a.bucket==="failed"&&!S(e,a.id)),i=o?e.agentSessions?.byAgentId[o.id]?.stopReason:null;return{kind:"failed",text:typeof i=="string"&&i.length>0?i:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(o=>o.topLevel&&!o.isBackground&&!S(e,o.id));for(const o of s){if(!o.hasQuestion)continue;const i=e.hud.questionsByAgentId[o.id];if(i?.question)return{kind:"question",text:i.question}}for(const o of["blocker","discussion"])for(const i of s){if(i.attentionKind!==o)continue;const a=e.agentSessions?.byAgentId[i.id],d=_(a)?.reason;if(d)return{kind:o,text:d}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function E(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function he(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const o=n.specialist==="spec-writer",i=s.specialist==="spec-writer";if(o!==i)return o?-1:1;const a=t(n)-t(s);if(a!==0)return a;const d=E(n),r=E(s);return d!==r?r-d:n.id<s.id?-1:n.id>s.id?1:0}}function me(e,t){const n=new Set(e.map(r=>r.id)),s=new Map,o=[];for(const r of e){const c=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(c){const u=s.get(c)??[];u.push(r),s.set(c,u)}else o.push(r)}o.sort(t);for(const r of s.values())r.sort(t);const i=[],a=new Set,d=(r,c,u)=>{if(!a.has(r.id)){a.add(r.id),i.push({info:r,depth:c,parentAgentId:u});for(const g of s.get(r.id)??[])d(g,c+1,r.id)}};for(const r of o)d(r,0,null);for(const r of e)d(r,0,null);return i}function y(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},o=n?_(n)?.kind??null:null,i=n?V.select(e,t.id)||typeof n.status=="string"&&B(n.status):B(t.status),a=n?O(typeof n.status=="string"?n.status:t.status):null,d=!!n&&a!=="failed"&&a!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let c;n?d&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?c="idle":j.select(e,t.id)?c="running":i?c="idle":c=O(typeof n.status=="string"?n.status:t.status):c=t.isResponding===!0||t.isStreaming===!0?"running":O(t.status);const u=e.hud.questionsByAgentId[t.id],g=c!=="failed"&&!!u&&!F(s,u.messageId);return{bucket:c==="failed"?"failed":o!==null||g?"needs-attention":c,attentionKind:o,hasQuestion:g,isRunning:c==="running"}}function U(e,t){const n=o=>typeof o=="string"&&o!==e.id?o:null,s=o=>({isBackground:o?.isBackground,createdByAgentId:n(o?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function S(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function ye(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=J(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
2
  `)?X(t)||null:t:null}}}function b(e,t){const n=I(e),s=new Map(n.map(i=>[i.id,y(t,i)]));return me(n,he(s)).map(({info:i,depth:a,parentAgentId:d})=>{const r=t.agentSessions?.byAgentId[i.id],c=U(i,r),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(i.id)??y(t,i),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:i.id,name:i.name,bucket:u,lastActivityTs:i.lastActivity??null,line:ye(z.select(t,i.id)),parentAgentId:d,depth:a,treePrefix:"",topLevel:q(c)==="topLevel",isBackground:ee(c),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function Ie(e){const t=new Set;for(const o of e)for(const i of o.waitingForAgentIds)t.add(i);const n=o=>m.has(o.bucket)||o.isWaitingForAgents||t.has(o.id);return e.filter((o,i)=>{if(n(o))return!0;for(let a=i+1;a<e.length&&!(e[a].depth<=o.depth);a++)if(n(e[a]))return!0;return!1}).map((o,i,a)=>{if(o.depth===0)return{...o,treePrefix:""};let d=!0;for(let r=i+1;r<a.length&&!(a[r].depth<o.depth);r++)if(a[r].depth===o.depth){d=!1;break}return{...o,treePrefix:(o.depth>=2?"│ ":"")+(d?"└─":"├─")}})}const C=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=oe.select(e);return A.select(e).map(s=>{const o=String(s.id),i=n.indexOf(o),a=t[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null),d=b(s,e),r=w(s),c=e.tokenUsage?.byWorkspaceId[o]?.totals,u=e.workspaceTasks?.byWorkspaceId[o]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:o,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:a,isUnread:a===te,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Se(e,r,d),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:i===-1?null:i,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:Ae,tokens:c?N(c):0,agents:Ie(d)}})}),M=4;function we(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||q(U(n,s))!=="topLevel"?!1:!S(e,n.id)}const be=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of A.select(e)){const o=String(s.id),i=new Map,a=(f,p)=>{const v=i.get(f)??[];v.includes(p)||v.push(p),i.set(f,v)},r=I(s).filter(f=>we(e,o,f));for(const f of r){const p=y(e,f);p.bucket==="failed"?a("failed",f.name):p.hasQuestion?a("question",f.name):p.attentionKind==="blocker"?a("blocker",f.name):p.attentionKind==="discussion"&&a("discussion",f.name),p.isRunning&&a("running",f.name)}const c=w(s);c==="failed"&&!i.has("failed")&&i.set("failed",[]),c==="blocked"&&!i.has("blocker")&&i.set("blocker",[]),c==="wait"&&!i.has("question")&&!i.has("blocker")&&!i.has("discussion")&&i.set("needs_input",[]);const u=n[o]?.attention??(typeof s.attention=="string"&&P(s.attention)?s.attention:null);u==="review_required"&&i.set("review",[]),u==="unread"&&i.set("unread",[]),s.activity==="agent_running"&&!i.has("running")&&i.set("running",[]);const g=ne.flatMap(f=>{const p=i.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;t[o]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of A.select(e)){let o=!1;for(const d of b(s,e))d.topLevel&&!d.isBackground&&!S(e,d.id)&&(d.bucket==="failed"||d.attentionKind!==null||d.hasQuestion)&&(n+=1,o=!0);const i=t[String(s.id)],a=i!==void 0&&H(i.attention);a&&(n+=1),L.has(w(s))&&!o&&!a&&(n+=1)}return n});function ve(e,t,n,s){const o=s.slice().sort((r,c)=>c.createdAt-r.createdAt);for(const r of o){const u=e.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const i=e.workspaceNotes?.byWorkspaceId[t]?.notes,a=i?h(i,n):void 0,d=a?.content||a?.contentPreview;return typeof d=="string"&&d.trim().length>0?d:null}const je=l.createSelector((e,t)=>{const n=C.select(e).find(c=>c.workspaceId===t);if(!n)return null;const s=h(e.workspace.workspaces,t),o=s?b(s,e):[],i=new Map(o.map(c=>[c.id,c])),a=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},d=e.workspaceTasks?.byWorkspaceId[t],r=d?R(d.tasks).filter(c=>c.status!=="cancelled").map(c=>{const u=Object.values(a[c.id]??{});return{id:c.id,title:c.title,status:c.status,agents:u.map(g=>i.get(g.agentId)).filter(g=>!!g),report:c.status==="complete"?ve(e,t,c.id,u):null,...c.specLinked!==void 0?{specLinked:c.specLinked}:{},...c.dependsOn?{dependsOn:c.dependsOn}:{},...c.conflictsWith?{conflictsWith:c.conflictsWith}:{},...c.unmetDependsOn?{unmetDependsOn:c.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:o.filter(c=>m.has(c.bucket)),idleAgents:o.filter(c=>!m.has(c.bucket))}}),Te=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Oe(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const ze=l.createSelector((e,t="recent")=>{const n=C.select(e),s=be.select(e),o=new Map(A.select(e).map(a=>[String(a.id),a])),i={action:[],unread:[],active:[]};for(const a of n){const d=o.get(a.workspaceId);if(!d||d.id===se||!(t==="older"?ge:ue)(e.hud.dockConversationAtByWorkspaceId[a.workspaceId],e.hud.dockRecencyNow))continue;const r=s[a.workspaceId],c=r?.categories??[],u=c.some(p=>Te.has(p.category)),g=a.isUnread,k=c.some(p=>p.category==="running"),f=u?"action":g?"unread":"active";i[f].push({workspace:d,badgeKind:Oe(r),priorityGroup:f,isUnread:g,isRunning:k,isWaiting:a.isWaiting})}return[...i.action,...i.unread,...i.active].sort((a,d)=>e.hud.dockConversationAtByWorkspaceId[String(d.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(a.workspace.id)]||String(a.workspace.id).localeCompare(String(d.workspace.id)))}),Xe=l.createSelector(e=>e.hud.dockPlacement),Je=l.createSelector(e=>e.hud.dockPlacementError),Ye=l.createSelector(e=>e.hud.dockFocusRequest),$e=l.createSelector(e=>e.hud.dockCloseRequest),Ze=l.createSelector(e=>e.hud.dockDragStartResult),et=l.createSelector(e=>e.hud.dockResizeStartResult),tt=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),nt=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?h(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,o=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(i=>i.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!o&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===K(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{Ne as A,Ge as B,be as C,$e as a,Ze as b,nt as c,Ye as d,tt as e,Xe as f,Je as g,De as h,ae as i,et as j,ze as k,xe as l,Ue as m,Qe as n,qe as o,Pe as p,Ve as q,We as r,Be as s,Ke as t,Ee as u,Fe as v,Le as w,je as x,He as y,C as z};
@@ -1,2 +1,2 @@
1
- import{Ig as d,rj as b,HV as S}from"./CpBlZvWi.js";import{U as A,bj as _}from"./BwBvFc9f.js";import{bu as k}from"./CNJgwoNk.js";import{bM as y,bI as w}from"./He8rzvWn.js";import{bo as n}from"./syxE6N1N.js";import{t as P}from"./1cW9cCot.js";const B=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),z=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),j=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),F=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function q(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
1
+ import{Ig as d,rj as b,HV as S}from"./BJpbRkma.js";import{U as A,bj as _}from"./IsBHRTqp.js";import{bu as k}from"./BsesepNZ.js";import{bM as y,bI as w}from"./D7NWkz7l.js";import{bo as n}from"./CNdlzZOD.js";import{t as P}from"./HVSUZ4Kq.js";const B=d.createSelector(e=>e.backgroundAgentSettings.defaultModel),z=d.createSelector(e=>e.backgroundAgentSettings.typeOverrides),G=d.createSelector((e,t)=>!!(e.backgroundAgentSettings.typeOverrides[t]||e.backgroundAgentSettings.typeReasoningEffortOverrides[t])),j=d.createSelector(e=>e.backgroundAgentSettings.defaultReasoningEffort),W=d.createSelector(e=>e.backgroundAgentSettings.typeReasoningEffortOverrides),F=d.createSelector(e=>e.backgroundAgentSettings);function r(e){return{category:"settings",...e}}const f=[{id:"new-workspace",tab:"",label:"New workspace",route:"/workspace/new",category:"navigation",description:"Create-workspace flow."},r({id:"utility-default-model",tab:"providers",hashAliases:["utility-default-model","default-model","quickActions.defaultModel","backgroundAgents.defaultModel"],scrollSelector:"#utility-default-model",highlightSelector:'[data-highlight-id="utility-default-model"]',label:"Settings: Default model",route:"/settings?tab=providers#utility-default-model",description:"Default AI behavior model selection."}),r({id:"global-instructions",tab:"agent-behavior",hashAliases:["global-instructions","agents","specialists","all-agents"],scrollSelector:"#global-instructions",highlightSelector:'[data-highlight-id="global-instructions"]',label:"Settings: Agent Behavior",route:"/settings?tab=agent-behavior#global-instructions",description:"Global agent instructions and defaults."}),r({id:"create-specialist",tab:"specialists",hashAliases:["create-specialist"],scrollSelector:"#create-specialist",highlightSelector:'[data-highlight-id="create-specialist"]',label:"Settings: Create specialist",route:"/settings?tab=specialists&view=create-specialist#create-specialist",description:"Create-specialist entry point."}),r({id:"providers",tab:"providers",hashAliases:["providers"],scrollSelector:"#providers",highlightSelector:'[data-highlight-id="providers"]',label:"Settings: AI coding CLIs",route:"/settings?tab=providers#providers",description:"Provider/account selector settings."}),r({id:"integrations",tab:"connections",hashAliases:["integrations"],scrollSelector:"#integrations",highlightSelector:'[data-highlight-id="integrations"]',label:"Settings: Connections",route:"/settings?tab=connections#integrations",description:"Connected integrations settings."}),r({id:"devices",tab:"devices",hashAliases:["devices","machines"],scrollSelector:"#devices",highlightSelector:"#devices",label:"Settings: Machines",route:"/settings?tab=devices#devices",description:"Saved remote machine settings."}),r({id:"mobile",tab:"mobile",hashAliases:["mobile"],scrollSelector:"#mobile",highlightSelector:'[data-highlight-id="mobile"]',label:"Settings: Mobile",route:"/settings?tab=mobile#mobile",description:"Remote access and Intent Mobile pairing."}),r({id:"guest-sessions",tab:"collaboration",hashAliases:["collaboration","guest-sessions","sharing"],scrollSelector:"#collaboration",highlightSelector:"#collaboration",label:"Settings: Collaboration",route:"/settings?tab=collaboration#collaboration",description:"Host membership, workspace guests and joined hosts."}),r({id:"websocket-api",tab:"mobile",hashAliases:["websocket-api","remote-access"],scrollSelector:"#websocket-api",highlightSelector:'[data-highlight-id="websocket-api"]',label:"Settings: Remote Access",route:"/settings?tab=mobile#websocket-api",description:"Remote access (WebSocket API) settings."}),...[["voice","Voice Dictation","Voice dictation settings.","input"],["keyboard-shortcuts","Keyboard Shortcuts","Keyboard shortcuts reference.","input"],["mcp-servers","MCP Servers","MCP server configuration.","connections"],["plugins","Plugins","App-wide Agent Plugins.","connections"],["git-workspace","Git & Workspace","Git and workspace defaults.","setup"],["git","Git","Git defaults.","setup"],["shell","Shell","Shell and CLI optimization settings.","setup"],["workspace","Workspace","Workspace defaults.","setup"],["cli-optimization","CLI Optimization","RTK/CLI optimization settings.","setup"],["workspace-api","Tool Output & Retention","Tool output size and retention settings.","advanced"],["notifications","Notifications","Notification preferences.","app-behavior"],["updates","Updates","Application update preferences.","app-behavior"],["open-in","Open In","External editor/app launch preferences.","app-behavior"],["github-link-action","GitHub Links","GitHub issue and pull request link behavior.","app-behavior"],["agent-features","Agent Features","Agent feature settings.","agent-behavior"],["font-style","Font style","Font style settings.","display"],["language","Language","Application language settings.","display"],["labs","Labs","Experimental feature switches.","advanced"],["agent-backend","Agent Backend","Agent backend settings.","advanced"],["connection","Connection","Daemon connection details.","advanced"],["hardware","Hardware","Hardware integration settings.","advanced"],["developer","Developer","Development-only settings.","advanced"]].map(([e,t,i,a])=>r({id:e,tab:a,hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=${a}#${e}`,description:i})),r({id:"appearance",tab:"display",hashAliases:["appearance","theme"],scrollSelector:"#theme",highlightSelector:'[data-highlight-id="appearance"]',label:"Settings: Appearance",route:"/settings?tab=display#theme",description:"Theme mode controls."}),...[["color-theme","Color theme","Color theme selection."],["note-font","Notes font","Notes/spec font style."],["agent-chat-font","Agent chat font","Agent chat font style."],["code-font","Code font","Code editor and diff font."]].map(([e,t,i])=>r({id:e,tab:"display",hashAliases:[e],scrollSelector:`#${e}`,highlightSelector:`[data-highlight-id="${e}"]`,label:`Settings: ${t}`,route:`/settings?tab=display#${e}`,description:i})),r({id:"general",tab:"advanced",hashAliases:["general","reset"],scrollSelector:"#reset",highlightSelector:'[data-highlight-id="general"]',label:"Settings: Advanced",route:"/settings?tab=advanced#reset",description:"Advanced settings and reset controls."}),{id:"workspace-card",tab:"",hashAliases:["workspace-card"],highlightSelector:'[data-highlight-id^="workspace-"]',label:"Workspace card",category:"workspace",description:"A workspace card on workspace list surfaces.",dynamic:!0,idPattern:"workspace-{workspaceId}"},{id:"specialist-entry",tab:"specialists",highlightSelector:'[data-highlight-id^="specialist-"]',label:"Specialist entry",route:"/settings?tab=specialists&specialist={specialistId}#specialist-{specialistId}",category:"specialist",description:"A specific specialist row in settings.",dynamic:!0,idPattern:"specialist-{specialistId}"}];function m(e){const t=e.indexOf("#"),i=t>=0?e.slice(t+1):e;return decodeURIComponent(i.replace(/^#/,"")).trim()}function I(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M(e,t){if(!t.match(/\{[^}]+\}/g)?.length)return e===t;const a=t.split(/\{[^}]+\}/g).map(I).join("[^/]+");return new RegExp(`^${a}$`).test(e)}function R(e){const t=m(e);if(!t)return;const i=f.find(o=>o.id===t||o.hashAliases?.includes(t));if(i)return i;const a=f.find(o=>o.route&&o.dynamic&&o.idPattern&&M(t,o.idPattern));return a?{...a,id:t}:void 0}function T(e){try{return new URL(e,"app://intent").pathname||"/"}catch{const t=e.indexOf("?"),i=e.indexOf("#");let a=e.length;return t>=0&&(a=Math.min(a,t)),i>=0&&(a=Math.min(a,i)),e.slice(0,a)||"/"}}const E=new Set(f.flatMap(e=>e.route?[T(e.route)]:[])),C=[/^\/workspace\/[^/]+$/,/^\/agent\/[^/]+$/];function q(e){if(typeof e!="string")return!1;const t=e.trim();if(!t)return!1;if(t.startsWith("intent://"))return!0;let i,a;try{const o=new URL(t,"app://intent");if(o.protocol!=="app:")return!1;i=o.pathname||"/",a=m(o.hash)}catch{return!1}return E.has(i)?a?!!R(a):!0:C.some(o=>o.test(i))}const U=d.createSelector(e=>{const t=new Map,i=(s,c)=>{const g=t.get(s)??new Set;g.add(c),t.set(s,g)},a=k.select(e),o=A.select(e),h=_.select(e)[o];h&&o&&i(o,n.settings_providers_inUseDefaultModel_label({model:h})),b(o)&&!h&&i(o,n.settings_providers_inUseDefaultProvider_label());const u=e.backgroundAgentSettings?.providerId;u&&b(u)&&i(u,n.settings_providers_inUseQuickActions_label());for(const s of y.select(e)){const c=w.select(e,s.id),g=s.source?{project:n.settings_providers_pinSourceProject_label(),user:n.settings_providers_pinSourceUser_label(),bundled:n.settings_providers_pinSourceBundled_label(),builtin:n.settings_providers_pinSourceBuiltin_label(),"electron-store":n.settings_providers_pinSourceLegacy_label()}[s.source]:void 0,p=l=>g&&c?n.settings_providers_inUseSourcePath_label({reason:l,source:g,path:c}):g?n.settings_providers_inUseSource_label({reason:l,source:g}):c?n.settings_providers_inUsePath_label({reason:l,path:c}):l;if(s.codingAgent&&i(s.codingAgent,p(n.settings_providers_inUseSpecialistAgent_label({name:s.name}))),s.modelOptions?.forEach((l,v)=>{l.provider&&b(l.provider)&&i(l.provider,p(n.settings_providers_inUseSpecialistModelOption_label({name:s.name,position:P(v+1)})))}),s.defaultModel)if(s.defaultModel.includes(":")){const l=S(s.defaultModel).providerId??a;i(l,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}else s.codingAgent||i(a,p(n.settings_providers_inUseSpecialistModel_label({name:s.name,model:s.defaultModel})))}return Object.fromEntries([...t].map(([s,c])=>[s,[...c].join(`
2
2
  `)]))});d.createSelector((e,t)=>U.select(e)[t]??null);const O=[{id:"dracula",label:"Dracula"},{id:"nord",label:"Nord"},{id:"rose-pine",label:"Rosé Pine"},{id:"tokyo-night",label:"Tokyo Night"},{id:"solarized",label:"Solarized"},{id:"github",label:"GitHub"},{id:"high-contrast",label:"High Contrast"}],K=O.map(({id:e})=>e);export{K as T,O as a,j as b,F as c,z as d,W as e,G as f,U as g,q as i,R as r,B as s};