@intent-hq/web 2.283.0 → 2.284.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (316) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CsGRm74m.js → --3ZEJ9J.js} +1 -1
  3. package/web/app/immutable/chunks/{C6UIN6U-.js → 03ESLWB1.js} +1 -1
  4. package/web/app/immutable/chunks/{86I704nb.js → 0XyrKsuA.js} +1 -1
  5. package/web/app/immutable/chunks/{CqnYcuvr.js → 1rwbAxiY.js} +1 -1
  6. package/web/app/immutable/chunks/{BMFwrOH1.js → 1wcS2GHA.js} +1 -1
  7. package/web/app/immutable/chunks/{CvLXNZbW.js → 32YnGblO.js} +1 -1
  8. package/web/app/immutable/chunks/{5guZ9l7C.js → 4kHCfKWR.js} +1 -1
  9. package/web/app/immutable/chunks/{CMI5HTNV.js → 580ALcE7.js} +1 -1
  10. package/web/app/immutable/chunks/{JWpKjkZt.js → 5BmKVYc1.js} +4 -4
  11. package/web/app/immutable/chunks/{B4NuLgfc.js → 5ZpW5rVB.js} +1 -1
  12. package/web/app/immutable/chunks/{BuYGacYC.js → 7IZupueL.js} +44 -44
  13. package/web/app/immutable/chunks/{DwufXbAm.js → 8n4ougjP.js} +1 -1
  14. package/web/app/immutable/chunks/{D0ubTGV_.js → 8puonPwK.js} +1 -1
  15. package/web/app/immutable/chunks/{DVch_AcI.js → B-kQ0Vz5.js} +1 -1
  16. package/web/app/immutable/chunks/{BlxovLoL.js → B0w4Cxo_.js} +1 -1
  17. package/web/app/immutable/chunks/{Be5Pyj-G.js → B1EuyQvk.js} +1 -1
  18. package/web/app/immutable/chunks/{DjvHPE3r.js → B1P0TORE.js} +1 -1
  19. package/web/app/immutable/chunks/{BSoHy997.js → B1s7HAuZ.js} +1 -1
  20. package/web/app/immutable/chunks/{Dvf5hKr0.js → B3G2wO_D.js} +1 -1
  21. package/web/app/immutable/chunks/{DGTcJSfI.js → B4VDa7RO.js} +1 -1
  22. package/web/app/immutable/chunks/{CDUZ_0Sw.js → B5HPrVzu.js} +1 -1
  23. package/web/app/immutable/chunks/{RykEwldd.js → B5KLQb3J.js} +1 -1
  24. package/web/app/immutable/chunks/{Bjat9loC.js → B7R5ywXv.js} +1 -1
  25. package/web/app/immutable/chunks/{DSMbTvmu.js → B8LfMxTf.js} +1 -1
  26. package/web/app/immutable/chunks/{DEAKghGX.js → B8xgoeqo.js} +1 -1
  27. package/web/app/immutable/chunks/{C85s-gi8.js → B96HYSUr.js} +1 -1
  28. package/web/app/immutable/chunks/{BQkOKtmR.js → B9YdV5Lr.js} +1 -1
  29. package/web/app/immutable/chunks/{QEFaNqbo.js → BAuomW3Q.js} +1 -1
  30. package/web/app/immutable/chunks/{Cnak6su6.js → BAyTpaq3.js} +1 -1
  31. package/web/app/immutable/chunks/{CMU9ws3e.js → BCHni7By.js} +1 -1
  32. package/web/app/immutable/chunks/{Bme6a8ON.js → BCkgwkHF.js} +1 -1
  33. package/web/app/immutable/chunks/{DKhnmIhc.js → BE5jLkkZ.js} +1 -1
  34. package/web/app/immutable/chunks/{BcIZ6c0f.js → BE6av5p4.js} +1 -1
  35. package/web/app/immutable/chunks/{CmTb9opo.js → BEQXbC7q.js} +1 -1
  36. package/web/app/immutable/chunks/{B122KxZy.js → BFDD1pyQ.js} +1 -1
  37. package/web/app/immutable/chunks/{yZjABy7c.js → BHdVwar2.js} +1 -1
  38. package/web/app/immutable/chunks/{UFs8wmaf.js → BIkNHTNp.js} +1 -1
  39. package/web/app/immutable/chunks/{DSad0YxQ.js → BJ5sH6i3.js} +1 -1
  40. package/web/app/immutable/chunks/{CNnCGYha.js → BJwGOB8K.js} +1 -1
  41. package/web/app/immutable/chunks/{wqHUaR0E.js → BKAQdyqG.js} +1 -1
  42. package/web/app/immutable/chunks/{DOWY58Gk.js → BKYBbIMC.js} +1 -1
  43. package/web/app/immutable/chunks/{DzF66VDn.js → BLEfessf.js} +1 -1
  44. package/web/app/immutable/chunks/{PwM42XJW.js → BLjf4WQt.js} +1 -1
  45. package/web/app/immutable/chunks/{BdS003Kb.js → BLjxHwvZ.js} +1 -1
  46. package/web/app/immutable/chunks/{BFnOOmhf.js → BMBobKUo.js} +2 -2
  47. package/web/app/immutable/chunks/{j32IuKtD.js → BNfbL3_i.js} +1 -1
  48. package/web/app/immutable/chunks/{CI86PNUZ.js → BOIoayZB.js} +1 -1
  49. package/web/app/immutable/chunks/{DlmTHr8T.js → BOV2-YtX.js} +1 -1
  50. package/web/app/immutable/chunks/{DWsGxz2C.js → BPQohPc9.js} +1 -1
  51. package/web/app/immutable/chunks/{B5Kd4cOY.js → BQ-Vdhjp.js} +1 -1
  52. package/web/app/immutable/chunks/{Dr6lXyco.js → BQqtq_EY.js} +4 -4
  53. package/web/app/immutable/chunks/BQu3cSOx.js +1 -0
  54. package/web/app/immutable/chunks/{DMbXrJli.js → BRk6sSrF.js} +1 -1
  55. package/web/app/immutable/chunks/{ZJCzYVmw.js → BS6Z2wWv.js} +1 -1
  56. package/web/app/immutable/chunks/{DaMaCbrW.js → BSIOWZWq.js} +1 -1
  57. package/web/app/immutable/chunks/{gYd6zuXF.js → BSLrzoVf.js} +1 -1
  58. package/web/app/immutable/chunks/{cpbf9St3.js → BUtQhKox.js} +1 -1
  59. package/web/app/immutable/chunks/{Bl1nIYdr.js → BXwgWEmz.js} +1 -1
  60. package/web/app/immutable/chunks/{cCabUQP6.js → BYB7SynS.js} +2 -2
  61. package/web/app/immutable/chunks/{D-U5rcFa.js → BYhzE2Id.js} +1 -1
  62. package/web/app/immutable/chunks/{BSt_qcPC.js → BYvXj8cv.js} +1 -1
  63. package/web/app/immutable/chunks/{B8ZK3-zF.js → BZjntufp.js} +1 -1
  64. package/web/app/immutable/chunks/{B241tUXW.js → B_BtFokc.js} +1 -1
  65. package/web/app/immutable/chunks/{UF5lygT0.js → BcemBG1g.js} +4 -4
  66. package/web/app/immutable/chunks/{NyRx-5qE.js → BfCf1CX7.js} +3 -3
  67. package/web/app/immutable/chunks/{g3KZ-aok.js → BghJZEqX.js} +1 -1
  68. package/web/app/immutable/chunks/{BzSa9-IF.js → Bhov0MTz.js} +1 -1
  69. package/web/app/immutable/chunks/{DeSJTI_U.js → Bir-_mB8.js} +1 -1
  70. package/web/app/immutable/chunks/{VzlQnrws.js → Bj2uvmt-.js} +1 -1
  71. package/web/app/immutable/chunks/{VLmrqzTE.js → Bj6-QOR3.js} +1 -1
  72. package/web/app/immutable/chunks/{C8gv124k.js → BjO6mATN.js} +1 -1
  73. package/web/app/immutable/chunks/{DueTjjFx.js → BlhXsK8K.js} +1 -1
  74. package/web/app/immutable/chunks/{DHZ4JjoJ.js → Blhl4Kzo.js} +1 -1
  75. package/web/app/immutable/chunks/{CzT5E1qm.js → BlobiUVj.js} +1 -1
  76. package/web/app/immutable/chunks/{DMl_gv4g.js → BmY5L1Op.js} +1 -1
  77. package/web/app/immutable/chunks/{2UHo-lr0.js → BmeKmSN1.js} +1 -1
  78. package/web/app/immutable/chunks/{DikRK37J.js → Bmnp4Cni.js} +6 -6
  79. package/web/app/immutable/chunks/{BbGMZxWy.js → BnZq-I73.js} +2 -2
  80. package/web/app/immutable/chunks/{CcikvcoO.js → BoffG-0C.js} +1 -1
  81. package/web/app/immutable/chunks/{BLfSGdog.js → BoyajzxN.js} +1 -1
  82. package/web/app/immutable/chunks/{BlEVobud.js → BqSjWCdR.js} +1 -1
  83. package/web/app/immutable/chunks/{jN_7w48e.js → BrXpFLv_.js} +1 -1
  84. package/web/app/immutable/chunks/{C4oKInMh.js → BrvhC6GL.js} +1 -1
  85. package/web/app/immutable/chunks/{DBkSv110.js → BuSZooEw.js} +1 -1
  86. package/web/app/immutable/chunks/{CHb28ISq.js → BvuznwRa.js} +1 -1
  87. package/web/app/immutable/chunks/{BBl02EyB.js → BxFP5cPu.js} +1 -1
  88. package/web/app/immutable/chunks/{D71IW4i3.js → BxUDfZfX.js} +1 -1
  89. package/web/app/immutable/chunks/{DXKXi4fU.js → Byp8PswU.js} +1 -1
  90. package/web/app/immutable/chunks/{DA1BdbaM.js → C-AxUu93.js} +1 -1
  91. package/web/app/immutable/chunks/{B1ZGt7sC.js → C-tRLOED.js} +1 -1
  92. package/web/app/immutable/chunks/C1FIrZNw.js +184 -0
  93. package/web/app/immutable/chunks/{itPVrVkG.js → C1GRqLCq.js} +1 -1
  94. package/web/app/immutable/chunks/{P0y5VMqy.js → C2kpUgbe.js} +1 -1
  95. package/web/app/immutable/chunks/{X8KOCQId.js → C51KzdSG.js} +1 -1
  96. package/web/app/immutable/chunks/{BqgmbqM-.js → C6LRlrtG.js} +1 -1
  97. package/web/app/immutable/chunks/{D98MGnzl.js → C6Lk-C_n.js} +1 -1
  98. package/web/app/immutable/chunks/{DLshetD4.js → C6NP7Wkf.js} +1 -1
  99. package/web/app/immutable/chunks/{CaR7O_Ka.js → C83cffhG.js} +1 -1
  100. package/web/app/immutable/chunks/{BycWLeDe.js → C8yAGnZY.js} +1 -1
  101. package/web/app/immutable/chunks/{inj-bBZM.js → CAS7It7T.js} +1 -1
  102. package/web/app/immutable/chunks/{vlhkmmpx.js → CBF5TBJQ.js} +1 -1
  103. package/web/app/immutable/chunks/{Sqmoz5pv.js → CCU5YAgB.js} +1 -1
  104. package/web/app/immutable/chunks/{BaUre9ae.js → CCzzpn5X.js} +1 -1
  105. package/web/app/immutable/chunks/{J6ix93M3.js → CEZnJlwn.js} +1 -1
  106. package/web/app/immutable/chunks/{C-TcncuL.js → CEd0rr6P.js} +1 -1
  107. package/web/app/immutable/chunks/{U7JWtGAy.js → CEkEURUB.js} +1 -1
  108. package/web/app/immutable/chunks/{BxuhDHqB.js → CG5J-qd_.js} +1 -1
  109. package/web/app/immutable/chunks/{C81WcoAM.js → CHK5bSfe.js} +1 -1
  110. package/web/app/immutable/chunks/{Cc-44AXb.js → CHSBtC7Q.js} +1 -1
  111. package/web/app/immutable/chunks/{B3yw5iey.js → CJaPqUNh.js} +1 -1
  112. package/web/app/immutable/chunks/{D2kpmACf.js → CJuSN2hh.js} +1 -1
  113. package/web/app/immutable/chunks/{Fbmia90H.js → CLCaT9pi.js} +3 -3
  114. package/web/app/immutable/chunks/{3SbVPCw7.js → CLDGr3DL.js} +1 -1
  115. package/web/app/immutable/chunks/{Bt6bgoI-.js → CMqMo1Af.js} +1 -1
  116. package/web/app/immutable/chunks/{BQ1YF879.js → CNzOZ9MW.js} +1 -1
  117. package/web/app/immutable/chunks/{DX5DxI8W.js → CQMmROUx.js} +2 -2
  118. package/web/app/immutable/chunks/{CBWgmFBu.js → CQTIadOp.js} +1 -1
  119. package/web/app/immutable/chunks/{BeYVLVXM.js → CRQOCmwo.js} +7 -7
  120. package/web/app/immutable/chunks/{C723Veio.js → CRqiQDbX.js} +1 -1
  121. package/web/app/immutable/chunks/{Bw0IeVy1.js → CS1d84Cn.js} +1 -1
  122. package/web/app/immutable/chunks/{DdwwnwEU.js → CTthB0JK.js} +1 -1
  123. package/web/app/immutable/chunks/{BTxRR5tz.js → CVBBsS8i.js} +1 -1
  124. package/web/app/immutable/chunks/{DRHN1_Cd.js → CW2_8Qo8.js} +1 -1
  125. package/web/app/immutable/chunks/{D3cS8a_B.js → CWMWrTe0.js} +1 -1
  126. package/web/app/immutable/chunks/{CbGnxjOM.js → CX6Z33tv.js} +1 -1
  127. package/web/app/immutable/chunks/{B1ELYeiC.js → CX89Aogf.js} +1 -1
  128. package/web/app/immutable/chunks/{BMafDnH1.js → CXruy7R4.js} +1 -1
  129. package/web/app/immutable/chunks/{CeXEIZ_X.js → CXu6aWOL.js} +1 -1
  130. package/web/app/immutable/chunks/{CqJYE2BI.js → CYvdhBss.js} +1 -1
  131. package/web/app/immutable/chunks/{PJDGiarN.js → CZ1Jg-sG.js} +1 -1
  132. package/web/app/immutable/chunks/{C8chCNZC.js → CZFoI5QY.js} +2 -2
  133. package/web/app/immutable/chunks/{DpSTAF6f.js → C_fEvnNK.js} +1 -1
  134. package/web/app/immutable/chunks/{BsHwyYum.js → CajYOO74.js} +1 -1
  135. package/web/app/immutable/chunks/{BG8_YibP.js → CbNazQqj.js} +1 -1
  136. package/web/app/immutable/chunks/{Bcoxg00q.js → Cci8BWX_.js} +3 -3
  137. package/web/app/immutable/chunks/{CeH1-IFA.js → Ccj-b14I.js} +1 -1
  138. package/web/app/immutable/chunks/{Dzpx8dBT.js → CclADFoZ.js} +2 -2
  139. package/web/app/immutable/chunks/{BrnKg8z1.js → CeMTgCB3.js} +2 -2
  140. package/web/app/immutable/chunks/{D_PPEYyI.js → CfgPxwA4.js} +1 -1
  141. package/web/app/immutable/chunks/{CcEiTh-4.js → ChYWsi4Z.js} +1 -1
  142. package/web/app/immutable/chunks/{DWjmi9tH.js → CiB1yTSc.js} +3 -3
  143. package/web/app/immutable/chunks/{CptC_Uum.js → CnuSxcLR.js} +1 -1
  144. package/web/app/immutable/chunks/{DN-WSfNU.js → CoEKpjkL.js} +1 -1
  145. package/web/app/immutable/chunks/{DcKxGpqI.js → CoQLGQdj.js} +1 -1
  146. package/web/app/immutable/chunks/{AdAUM0KU.js → Cp9AnykR.js} +1 -1
  147. package/web/app/immutable/chunks/{Z8sIHDod.js → CqyYuyXE.js} +1 -1
  148. package/web/app/immutable/chunks/{C9TPtINb.js → CrPyrftw.js} +3 -3
  149. package/web/app/immutable/chunks/{Dt0exTZ5.js → CsP-2ecL.js} +1 -1
  150. package/web/app/immutable/chunks/{D76C-Lub.js → CtwCGSFA.js} +1 -1
  151. package/web/app/immutable/chunks/{DnsWe2Zg.js → CwYn_cZy.js} +1 -1
  152. package/web/app/immutable/chunks/{Cr8elldh.js → CxDLMfRf.js} +1 -1
  153. package/web/app/immutable/chunks/{DhUVW_9Y.js → CyBNkEuV.js} +1 -1
  154. package/web/app/immutable/chunks/{Djk4k1SJ.js → CyO8AnLs.js} +1 -1
  155. package/web/app/immutable/chunks/{y8Xlt_QT.js → CzTIJ9gY.js} +1 -1
  156. package/web/app/immutable/chunks/{BHUG3Di8.js → CzfXsXYz.js} +1 -1
  157. package/web/app/immutable/chunks/{ClnUtlN_.js → D-aPtTCv.js} +1 -1
  158. package/web/app/immutable/chunks/{DLRsFOmD.js → D0GCGQZA.js} +1 -1
  159. package/web/app/immutable/chunks/{Bh14bdXE.js → D0pR1-a6.js} +1 -1
  160. package/web/app/immutable/chunks/{6WATeGSz.js → D2hiI0dA.js} +1 -1
  161. package/web/app/immutable/chunks/D4Lumjru.js +1 -0
  162. package/web/app/immutable/chunks/D4MoKNoK.js +1 -0
  163. package/web/app/immutable/chunks/{dGE6HMYD.js → D5bYJMaB.js} +1 -1
  164. package/web/app/immutable/chunks/{3HhYuBQ5.js → D5jqrM_N.js} +1 -1
  165. package/web/app/immutable/chunks/{0kUsCNYC.js → D6CS23-9.js} +1 -1
  166. package/web/app/immutable/chunks/{C95TwfNO.js → D6K58w6v.js} +3 -3
  167. package/web/app/immutable/chunks/{C1Yon3Fs.js → D7ht9fTY.js} +1 -1
  168. package/web/app/immutable/chunks/{Ci0ScEWC.js → D805RV1I.js} +1 -1
  169. package/web/app/immutable/chunks/{D6EjWtzp.js → D8GxmJaV.js} +1 -1
  170. package/web/app/immutable/chunks/{Br7_wSvp.js → D8_OuTD3.js} +1 -1
  171. package/web/app/immutable/chunks/{Cb1CevU3.js → D8a6fWF_.js} +1 -1
  172. package/web/app/immutable/chunks/{BkTViBTC.js → D9ZfYqMq.js} +1 -1
  173. package/web/app/immutable/chunks/{DIgbsss0.js → DAY2MDvD.js} +1 -1
  174. package/web/app/immutable/chunks/{C_XVzDtJ.js → DBmzovBA.js} +1 -1
  175. package/web/app/immutable/chunks/DC38WcVm.js +1 -0
  176. package/web/app/immutable/chunks/{BKUFkB2Z.js → DDhakcOb.js} +1 -1
  177. package/web/app/immutable/chunks/{8PEQ8hLc.js → DDi4fKeR.js} +1 -1
  178. package/web/app/immutable/chunks/{BxiiO4Iw.js → DG8rkBW-.js} +1 -1
  179. package/web/app/immutable/chunks/{CxHgNIPx.js → DHBpY1EK.js} +1 -1
  180. package/web/app/immutable/chunks/{CPbL2cqN.js → DI5O_gLl.js} +1 -1
  181. package/web/app/immutable/chunks/{DiLRxk1W.js → DI7pTzx5.js} +1 -1
  182. package/web/app/immutable/chunks/{wESj32Mw.js → DIvWSFnj.js} +1 -1
  183. package/web/app/immutable/chunks/{BjU1p5sL.js → DKwy0FDy.js} +1 -1
  184. package/web/app/immutable/chunks/{DJly-gFW.js → DL5rLLvU.js} +1 -1
  185. package/web/app/immutable/chunks/{Et5QnGoZ.js → DO0tFr72.js} +1 -1
  186. package/web/app/immutable/chunks/{CtSELtkL.js → DOE_TCNp.js} +1 -1
  187. package/web/app/immutable/chunks/{CzI05dO6.js → DOdMtNpo.js} +1 -1
  188. package/web/app/immutable/chunks/{DeDjUs04.js → DPd_IJJ7.js} +1 -1
  189. package/web/app/immutable/chunks/{B_2t4zDu.js → DPfdnkfB.js} +1 -1
  190. package/web/app/immutable/chunks/{BpPk83wC.js → DPvthnru.js} +1 -1
  191. package/web/app/immutable/chunks/{Ba4COzVc.js → DQOyHGtr.js} +1 -1
  192. package/web/app/immutable/chunks/{PhuO6dVo.js → DQ_zmHT9.js} +2 -2
  193. package/web/app/immutable/chunks/{BdMtzsOL.js → DR1QbPSk.js} +1 -1
  194. package/web/app/immutable/chunks/{DlKkI_if.js → DR4RT4VO.js} +1 -1
  195. package/web/app/immutable/chunks/{DF6AYPg_.js → DRYCjR4c.js} +1 -1
  196. package/web/app/immutable/chunks/{DLZWsh5d.js → DSJT83nX.js} +1 -1
  197. package/web/app/immutable/chunks/{C7Y7Xcjq.js → DVwKfMN5.js} +1 -1
  198. package/web/app/immutable/chunks/{CFzvK5D6.js → DWW4w6Jk.js} +1 -1
  199. package/web/app/immutable/chunks/{CbaotZDu.js → DZ-8K7hK.js} +1 -1
  200. package/web/app/immutable/chunks/{Bo3xcJTH.js → DZpe54cf.js} +1 -1
  201. package/web/app/immutable/chunks/{JCCFqsAd.js → D_mcoMIN.js} +1 -1
  202. package/web/app/immutable/chunks/{BOK7tZ0u.js → DbdgMxO8.js} +1 -1
  203. package/web/app/immutable/chunks/{JhrIJH4k.js → DcoQTetB.js} +1 -1
  204. package/web/app/immutable/chunks/{BxQ4u3F0.js → Dd_avILP.js} +1 -1
  205. package/web/app/immutable/chunks/{Cyx56VLF.js → DditQ6Dc.js} +1 -1
  206. package/web/app/immutable/chunks/{CiJsLr2J.js → De4WWpS0.js} +1 -1
  207. package/web/app/immutable/chunks/{-cKrxpnw.js → DeJ360tt.js} +1 -1
  208. package/web/app/immutable/chunks/{FDVvdcz2.js → DgFojmqv.js} +3 -3
  209. package/web/app/immutable/chunks/{N_3EVFPG.js → Di6XfBOT.js} +1 -1
  210. package/web/app/immutable/chunks/{DSpny-f5.js → DjVrYm-R.js} +1 -1
  211. package/web/app/immutable/chunks/{15pYd3N2.js → Djthn66V.js} +2 -2
  212. package/web/app/immutable/chunks/{DcUrbytI.js → Dk3JYfn4.js} +1 -1
  213. package/web/app/immutable/chunks/{zCyqAg-B.js → DkJafW99.js} +1 -1
  214. package/web/app/immutable/chunks/{O93N6pq0.js → Dkj8SIBR.js} +1 -1
  215. package/web/app/immutable/chunks/{Cnz7jMnR.js → DmVYXUKU.js} +1 -1
  216. package/web/app/immutable/chunks/{DheEnqqs.js → Dmip1qZq.js} +1 -1
  217. package/web/app/immutable/chunks/{NHQHo6R8.js → DoBcYmem.js} +51 -51
  218. package/web/app/immutable/chunks/{DLNq3Dzg.js → DpiQDkOO.js} +1 -1
  219. package/web/app/immutable/chunks/{BLKmUQ7j.js → DpyM727L.js} +1 -1
  220. package/web/app/immutable/chunks/{BQniiLor.js → DqUTyEPN.js} +1 -1
  221. package/web/app/immutable/chunks/{BGWyYsdo.js → Dq_FaIX5.js} +1 -1
  222. package/web/app/immutable/chunks/{CjNKHPKC.js → Ds-TYeKV.js} +2 -2
  223. package/web/app/immutable/chunks/{BEJg4Sbf.js → Ds7can9q.js} +1 -1
  224. package/web/app/immutable/chunks/DsYKN9zh.js +1 -0
  225. package/web/app/immutable/chunks/{CQS12qgy.js → DwbzbVQ3.js} +1 -1
  226. package/web/app/immutable/chunks/{CpTvuo0c.js → Dwola7mR.js} +1 -1
  227. package/web/app/immutable/chunks/{Clzmvd7M.js → DwwMc3td.js} +1 -1
  228. package/web/app/immutable/chunks/{DsEsCHJ8.js → DxyRwm0L.js} +1 -1
  229. package/web/app/immutable/chunks/{CtrmC64x.js → DyQA18KQ.js} +1 -1
  230. package/web/app/immutable/chunks/{Cc3IoHk5.js → DyaiTi8A.js} +2 -2
  231. package/web/app/immutable/chunks/{DvIWu0bM.js → DzMB8eQW.js} +1 -1
  232. package/web/app/immutable/chunks/{DnGYdVeC.js → Dzk1FZ-5.js} +1 -1
  233. package/web/app/immutable/chunks/{ytSsfHOi.js → EPni7PhH.js} +1 -1
  234. package/web/app/immutable/chunks/{BLdRIYgd.js → FcnPtqUv.js} +1 -1
  235. package/web/app/immutable/chunks/{BRiTnHjR.js → GJVVHDkb.js} +1 -1
  236. package/web/app/immutable/chunks/{bG4sEGuX.js → H_dyzYix.js} +1 -1
  237. package/web/app/immutable/chunks/{OtBI4VRo.js → HfuFYz2u.js} +1 -1
  238. package/web/app/immutable/chunks/{B8eIPDu7.js → IrWlayTZ.js} +1 -1
  239. package/web/app/immutable/chunks/{Z5jotNHL.js → J2ZKQ-lu.js} +1 -1
  240. package/web/app/immutable/chunks/{E5HQjq_O.js → JqZ92YB_.js} +1 -1
  241. package/web/app/immutable/chunks/{CONx2grg.js → Jyr4akMd.js} +1 -1
  242. package/web/app/immutable/chunks/{DehyflGo.js → LFOlphb5.js} +1 -1
  243. package/web/app/immutable/chunks/{DO3zoQaK.js → LOxI5KoQ.js} +1 -1
  244. package/web/app/immutable/chunks/{D8EZluP_.js → LoyMyTg_.js} +1 -1
  245. package/web/app/immutable/chunks/{8xUKp1ov.js → NfelpfPi.js} +1 -1
  246. package/web/app/immutable/chunks/{Dq-W9mGx.js → OX_6myWb.js} +3 -3
  247. package/web/app/immutable/chunks/{CJmNIYA9.js → RAzXpC6i.js} +1 -1
  248. package/web/app/immutable/chunks/{PQ1Aq9aw.js → Ri_Gwy-5.js} +1 -1
  249. package/web/app/immutable/chunks/{B45Lzffx.js → S9ot6IO_.js} +1 -1
  250. package/web/app/immutable/chunks/Sk9pLJI5.js +6 -0
  251. package/web/app/immutable/chunks/{DoxEq2_M.js → Tpzyol5T.js} +2 -2
  252. package/web/app/immutable/chunks/{cZgi-_WA.js → U9YbfUz9.js} +1 -1
  253. package/web/app/immutable/chunks/{KLMKvNSD.js → WVYGrHqE.js} +1 -1
  254. package/web/app/immutable/chunks/{BAR22MDD.js → WZHg24tN.js} +1 -1
  255. package/web/app/immutable/chunks/{mxfq8-qS.js → Y4N0iJyK.js} +1 -1
  256. package/web/app/immutable/chunks/{Dq6jwHZ6.js → ZYYtufHC.js} +1 -1
  257. package/web/app/immutable/chunks/{WwLuvBZd.js → _cj4xlwz.js} +1 -1
  258. package/web/app/immutable/chunks/{Bar8ZAyw.js → aVNMqNTp.js} +1 -1
  259. package/web/app/immutable/chunks/{z8qxf2tv.js → bin8Us0N.js} +1 -1
  260. package/web/app/immutable/chunks/{B6f4X6Cq.js → bjlKIwQF.js} +1 -1
  261. package/web/app/immutable/chunks/{DCVW2Y_h.js → cesw6DqW.js} +1 -1
  262. package/web/app/immutable/chunks/{XM2hxWVx.js → cfTDb37Y.js} +1 -1
  263. package/web/app/immutable/chunks/{CE-1ma0H.js → dimBDqRX.js} +1 -1
  264. package/web/app/immutable/chunks/{De5CT8ah.js → fJdmRaXe.js} +1 -1
  265. package/web/app/immutable/chunks/{Byw2XPN_.js → fxR7QMV8.js} +1 -1
  266. package/web/app/immutable/chunks/{CelyhwOb.js → gNzz3jGE.js} +1 -1
  267. package/web/app/immutable/chunks/{Bh5viRl2.js → goXBWNik.js} +1 -1
  268. package/web/app/immutable/chunks/{Buyr-7cI.js → i_sqIi_B.js} +1 -1
  269. package/web/app/immutable/chunks/{DU0lunxS.js → k5qVf45I.js} +1 -1
  270. package/web/app/immutable/chunks/{24W0Bn2s.js → kjKGIJZ6.js} +1 -1
  271. package/web/app/immutable/chunks/{DfwITmIi.js → lKWYFdqV.js} +1 -1
  272. package/web/app/immutable/chunks/{B-fzbhlo.js → lLF0vfI3.js} +1 -1
  273. package/web/app/immutable/chunks/{CuaTp0m1.js → lflImyZ6.js} +2 -2
  274. package/web/app/immutable/chunks/{Bd9QEf8t.js → mf6N49ed.js} +1 -1
  275. package/web/app/immutable/chunks/{kYkRNrrI.js → oCNF8vh8.js} +1 -1
  276. package/web/app/immutable/chunks/{BWShw5FX.js → oPjZ8e3L.js} +1 -1
  277. package/web/app/immutable/chunks/{tLKcAW4W.js → oU2ii1bq.js} +1 -1
  278. package/web/app/immutable/chunks/{C1itrH63.js → pIvHob4a.js} +1 -1
  279. package/web/app/immutable/chunks/{ClyMCKaV.js → pl6-mRrC.js} +1 -1
  280. package/web/app/immutable/chunks/{CDTxQX_O.js → qb0bPcr5.js} +1 -1
  281. package/web/app/immutable/chunks/{C__5IrZC.js → rL78ODLZ.js} +3 -3
  282. package/web/app/immutable/chunks/{Bx-glu6w.js → syg_Gxp6.js} +1 -1
  283. package/web/app/immutable/chunks/v3KbAU5c.js +3 -0
  284. package/web/app/immutable/chunks/{DFBOrRiy.js → vICHfDZm.js} +1 -1
  285. package/web/app/immutable/chunks/{woMOP93x.js → wXtCM_sb.js} +1 -1
  286. package/web/app/immutable/entry/{app.DvoVvHKR.js → app.Cn1_ubOc.js} +3 -3
  287. package/web/app/immutable/entry/start.7mFy7hlx.js +1 -0
  288. package/web/app/immutable/nodes/{0.CUhABBgA.js → 0.wKUTDWdz.js} +1 -1
  289. package/web/app/immutable/nodes/{1.D60NQVeb.js → 1.DxJUaPzW.js} +1 -1
  290. package/web/app/immutable/nodes/{10.C1M6IFRf.js → 10.eeMW9oGM.js} +1 -1
  291. package/web/app/immutable/nodes/{11.CIL0R940.js → 11.DzMcYtgT.js} +1 -1
  292. package/web/app/immutable/nodes/{12.B3DoWG9l.js → 12.BS7aI1vv.js} +1 -1
  293. package/web/app/immutable/nodes/{13.DIkr4OJs.js → 13.Dj6DavrI.js} +3 -3
  294. package/web/app/immutable/nodes/{14.BnWbXEMM.js → 14.DMbmYykJ.js} +2 -2
  295. package/web/app/immutable/nodes/{15.CWOWBkmh.js → 15.BWo3i95L.js} +1 -1
  296. package/web/app/immutable/nodes/{16.DRycmOMe.js → 16.D7z1ouJw.js} +2 -2
  297. package/web/app/immutable/nodes/{2.BnNXzTi0.js → 2.BHOa4yl6.js} +4 -4
  298. package/web/app/immutable/nodes/{3.B1Qb3sEW.js → 3.DLeJMfu1.js} +1 -1
  299. package/web/app/immutable/nodes/{4.TFhi0XIx.js → 4.BEPpJpXB.js} +1 -1
  300. package/web/app/immutable/nodes/{5.BGgJOCw5.js → 5.Cb4CR-KH.js} +2 -2
  301. package/web/app/immutable/nodes/{6.CCZIKTds.js → 6.Bko4vkVy.js} +1 -1
  302. package/web/app/immutable/nodes/{7.CXxgyB8T.js → 7.z66lh95v.js} +1 -1
  303. package/web/app/immutable/nodes/{8.Dcka7hLW.js → 8.Cykwxl0x.js} +4 -4
  304. package/web/app/immutable/nodes/{9.DemnlG5Y.js → 9.Bm3FCmVg.js} +5 -5
  305. package/web/app/version.json +1 -1
  306. package/web/generated/paraglide.js +49 -49
  307. package/web/index.html +18 -18
  308. package/web/app/immutable/chunks/BNADo1Q7.js +0 -1
  309. package/web/app/immutable/chunks/CKKsJ8BG.js +0 -1
  310. package/web/app/immutable/chunks/DEI12D8u.js +0 -1
  311. package/web/app/immutable/chunks/DS2ohrPS.js +0 -1
  312. package/web/app/immutable/chunks/DeiP0erP.js +0 -3
  313. package/web/app/immutable/chunks/DpPiqmjZ.js +0 -184
  314. package/web/app/immutable/chunks/DwhTx6cH.js +0 -1
  315. package/web/app/immutable/chunks/plw0uyc9.js +0 -6
  316. package/web/app/immutable/entry/start.CiTIdCqa.js +0 -1
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CBWgmFBu.js","/app/immutable/chunks/C8gv124k.js","/app/immutable/chunks/DEI12D8u.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/KLMKvNSD.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/FDVvdcz2.js","/app/immutable/chunks/BAR22MDD.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/DWsGxz2C.js","/app/immutable/chunks/OtBI4VRo.js","/app/immutable/chunks/Bh14bdXE.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BycWLeDe.js","/app/immutable/chunks/CiJsLr2J.js","/app/immutable/chunks/X8KOCQId.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/BxuhDHqB.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
2
- var ae=Object.defineProperty;var ne=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ne(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./BKUFkB2Z.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./DvIWu0bM.js";import{bo as n,_ as le}from"./DEI12D8u.js";import{G2 as a,mv as y,mu as m,l0 as de,w9 as R,wa as N,w7 as ue,w8 as pe,q1 as Y,vW as fe,FQ as he,a2 as ge,bR as me,bQ as ve,c3 as be,c2 as Se,mx as _}from"./X8KOCQId.js";import{cr as we,bs as ye,c4 as _e,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as K,av as Te,bO as Ae,cH as Ie}from"./CE-1ma0H.js";import{n as Pe}from"./DX5DxI8W.js";import{ak as Me,F as Q,j as De,G as Oe,bv as xe,c as Fe,al as Ne,bg as W,_ as Le,aB as Ue,q as $,K as Ve,ag as We,bl as He,J as Be,H as qe,I as je,bj as Ge}from"./DpSTAF6f.js";import{r as ze}from"./BQkOKtmR.js";const O=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ye=a.createSelector(e=>e.githubAuth.mutationRequestId),Ke=a.createSelector(e=>e.githubAuth.callbacksCancelled),Qe=a.createSelector(e=>e.githubAuth.isDisconnecting),Z=a.createSelector(e=>e.githubAuth.isAuthenticated),$e=a.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=a.createSelector(e=>e.githubAuth.user),Xe=a.createSelector(e=>e.githubAuth.isAuthenticating),et=a.createSelector(e=>e.githubAuth.deviceFlow),tt=a.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Ke,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Qe,selectGitHubAuthMutationRequestId:Ye,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?at(s):nt(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function at(e){return it(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function nt(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Tr(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Ar(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Ir(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function Pr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Mr(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const b=[{id:"spec-writer",role:"orchestrator",teamAgents:["implementor","verifier"],icon:"coordinator",get name(){return n.specialists_builtin_coordinator_name()},get description(){return n.specialists_builtin_coordinator_description()},defaultBehaviorPrompt:`## Coordinator
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CQTIadOp.js","/app/immutable/chunks/BjO6mATN.js","/app/immutable/chunks/D4MoKNoK.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/WVYGrHqE.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/DgFojmqv.js","/app/immutable/chunks/WZHg24tN.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/BPQohPc9.js","/app/immutable/chunks/HfuFYz2u.js","/app/immutable/chunks/D0pR1-a6.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/C8yAGnZY.js","/app/immutable/chunks/De4WWpS0.js","/app/immutable/chunks/C51KzdSG.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CG5J-qd_.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.CaX-6yIe.css"])))=>i.map(i=>d[i]);
2
+ var ae=Object.defineProperty;var ne=(e,t,r)=>t in e?ae(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var d=(e,t,r)=>ne(e,typeof t!="symbol"?t+"":t,r);import{a as oe,i as ce}from"./DDhakcOb.js";import{c as V}from"./ChTqQfQN.js";import{i as D}from"./DzMB8eQW.js";import{bo as n,_ as le}from"./D4MoKNoK.js";import{G2 as a,mv as y,mu as m,l0 as de,w9 as R,wa as N,w7 as ue,w8 as pe,q1 as Y,vW as fe,FQ as he,a2 as ge,bR as me,bQ as ve,c3 as be,c2 as Se,mx as _}from"./C51KzdSG.js";import{cr as we,bs as ye,c4 as _e,cj as ke,c6 as Ee,cG as Re,cK as Ce,cA as K,av as Te,bO as Ae,cH as Ie}from"./dimBDqRX.js";import{n as Pe}from"./CQMmROUx.js";import{ak as Me,F as Q,j as De,G as Oe,bv as xe,c as Fe,al as Ne,bg as W,_ as Le,aB as Ue,q as $,K as Ve,ag as We,bl as He,J as Be,H as qe,I as je,bj as Ge}from"./C_fEvnNK.js";import{r as ze}from"./B9YdV5Lr.js";const O=V("Clipboard");async function Er(e){let t;if(oe())try{const r=await ce("system:write-clipboard",{text:e});if(r?.success===!1)throw new Error(r.error||"Electron clipboard write failed");return}catch(r){t=r,O.warn("Electron clipboard write failed; falling back to browser clipboard",{error:r})}if(typeof navigator<"u"&&navigator.clipboard?.writeText)try{await navigator.clipboard.writeText(e);return}catch(r){throw O.error("Browser clipboard write failed",r,{electronError:t}),r}throw O.error("No clipboard write API is available",void 0,{electronError:t}),t instanceof Error?t:new Error("Clipboard write API unavailable")}const Ye=a.createSelector(e=>e.githubAuth.mutationRequestId),Ke=a.createSelector(e=>e.githubAuth.callbacksCancelled),Qe=a.createSelector(e=>e.githubAuth.isDisconnecting),Z=a.createSelector(e=>e.githubAuth.isAuthenticated),$e=a.createSelector(e=>e.githubAuth.statusSettled===!0),Ze=a.createSelector(e=>e.githubAuth.requiresDaemonAuth),Je=a.createSelector(e=>e.githubAuth.user),Xe=a.createSelector(e=>e.githubAuth.isAuthenticating),et=a.createSelector(e=>e.githubAuth.deviceFlow),tt=a.createSelector(e=>e.githubAuth.error),Rr=Object.freeze(Object.defineProperty({__proto__:null,selectGitHubAuthCallbacksCancelled:Ke,selectGitHubAuthDeviceFlow:et,selectGitHubAuthError:tt,selectGitHubAuthIsAuthenticated:Z,selectGitHubAuthIsAuthenticating:Xe,selectGitHubAuthIsDisconnecting:Qe,selectGitHubAuthMutationRequestId:Ye,selectGitHubAuthRequiresDaemonAuth:Ze,selectGitHubAuthStatusSettled:$e,selectGitHubAuthUser:Je},Symbol.toStringTag,{value:"Module"})),rt=V("WorkspaceValidation");async function Cr(e,t=!1,r=!1){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_repoPathRequired_error(),suggestion:n.workspace_validation_repoPathRequired_suggestion()};const s=e.trim();return st(s)?at(s):nt(s,t,r)}function st(e){return[/^https?:\/\/github\.com\//i,/^git@github\.com:/i,/^github\.com\//i,/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/].some(r=>r.test(e.trim()))}function it(e){const t=e.trim(),r=[/^https?:\/\/github\.com\/([^\/]+)\/([^\/]+)$/i,/^git@github\.com:([^\/]+)\/([^\/]+)$/i,/^github\.com\/([^\/]+)\/([^\/]+)$/i];for(const i of r){const o=t.match(i);if(o){const l=o[2].replace(/\.git$/,"");return l?{owner:o[1],repo:l}:null}}const s=t.match(/^([a-zA-Z0-9\-_]+)\/([a-zA-Z0-9\-_\.]+)$/);if(s&&!t.includes("\\")&&!t.includes(":")){const i=s[2].replace(/\.git$/,"");return i?{owner:s[1],repo:i}:null}return null}async function at(e){return it(e)?{valid:!0,warning:n.workspace_validation_githubCloneLocally_warning()}:{valid:!1,error:n.workspace_validation_invalidGithubUrl_error(),suggestion:n.workspace_validation_invalidGithubUrl_suggestion()}}async function nt(e,t=!1,r=!1){if(e.includes("\0"))return{valid:!1,error:n.workspace_validation_nullCharacters_error()};if(!e.startsWith("/")&&!e.startsWith("~")&&!e.startsWith(".")&&!e.includes(":\\")&&!/^[a-zA-Z]:\//.test(e))return{valid:!1,error:n.workspace_validation_pathNotAbsolute_error(),suggestion:n.workspace_validation_pathNotAbsolute_suggestion()};if(typeof window<"u"&&window.electronAPI)try{const s=await D("file:getDirectoryStatus",{path:e});if(s.success&&s.data){const l=s.data;return l.exists?l.isDirectory?l.isGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l}:l.isSubdirectoryOfGitRepo?{valid:!0,isNewRepo:!1,directoryStatus:l,warning:n.workspace_validation_insideParentRepo_warning({path:l.parentGitRoot??""})}:r?{valid:!0,isNewRepo:!1,directoryStatus:l}:t?l.isEmpty?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_emptyDirInit_warning()}:{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_nonGitDirInit_warning()}:{valid:!1,error:n.workspace_repoSelector_notGitRepository_label(),directoryStatus:l}:{valid:!1,error:n.workspace_validation_notDirectory_error(),suggestion:n.workspace_validation_notDirectory_suggestion(),directoryStatus:l}:t?{valid:!0,isNewRepo:!0,directoryStatus:l,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExist_suggestion(),directoryStatus:l}}if(!(await D("file:exists",{path:e})).exists)return t?{valid:!0,isNewRepo:!0,warning:n.workspace_validation_willCreateRepo_warning()}:{valid:!1,error:n.workspace_validation_dirNotExist_error(),suggestion:n.workspace_validation_dirNotExistLegacy_suggestion()};const o=await D("git:isRepository",{path:e});if(!t&&o?.isRepository!==!0)return{valid:!1,error:o?.isRepository===!1?n.workspace_repoSelector_notGitRepository_label():n.workspace_compactInitializer_gitCheckUnknown_label()};if(!o.isRepository)return{valid:!0,isNewRepo:!0,warning:n.workspace_validation_nonGitInit_warning()}}catch(s){if(rt.warn("Could not validate path existence",s),!t)return{valid:!1,error:n.workspace_compactInitializer_gitCheckUnknown_label()}}return{valid:!0,isNewRepo:!1}}function Tr(e){if(!e||e.trim().length===0)return{valid:!0};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchPrefixInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:t==="."||t===".."||t.startsWith(".")?{valid:!1,error:n.workspace_validation_branchPrefixDot_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchPrefixConsecutive_error()}:t.startsWith("/")?{valid:!1,error:n.workspace_validation_branchPrefixSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchPrefixLock_error()}:t.length>50?{valid:!1,error:n.workspace_validation_branchPrefixTooLong_error()}:{valid:!0}}function Ar(e){if(!e||e.trim().length===0)return"";let t=e.trim().replace(/^[./]+/,"").replace(/[\s~^:?*\[\]\\]/g,"-").replace(/\.{2,}/g,"-").replace(/\/{2,}/g,"/").replace(/-{2,}/g,"-").replace(/^-+/,"").replace(/\.lock$/,"").toLowerCase();return t.length>0&&!t.endsWith("/")&&!t.endsWith("-")&&(t=t.includes("/")?`${t}/`:`${t}/`),t}function Ir(e){if(!e||e.trim().length===0)return{valid:!1,error:n.workspace_validation_branchNameRequired_error()};const t=e.trim();return/[\s~^:?*\[\]\\]/.test(t)?{valid:!1,error:n.workspace_validation_branchNameInvalidChars_error(),suggestion:n.workspace_validation_branchChars_suggestion()}:["HEAD",".",".."].includes(t)?{valid:!1,error:n.workspace_validation_branchNameReserved_error()}:t.includes("..")||t.includes("//")?{valid:!1,error:n.workspace_validation_branchNameConsecutive_error()}:t.startsWith("/")||t.endsWith("/")?{valid:!1,error:n.workspace_validation_branchNameSlash_error()}:t.endsWith(".lock")?{valid:!1,error:n.workspace_validation_branchNameLock_error()}:{valid:!0}}function Pr(e){return!e||e.trim().length===0?{valid:!0}:e.trim().length>1e5?{valid:!1,error:n.workspace_validation_promptTooLong_error(),suggestion:n.workspace_validation_promptTooLong_suggestion()}:{valid:!0}}function Mr(e){const t=e.toLowerCase();return t.includes("maxbuffer")?n.workspace_gitError_maxBuffer():t.includes("clone")&&t.includes("timed out")?n.workspace_gitError_cloneTimeout():t.includes("json-rpc request timed out: workspace.create")?n.workspace_gitError_createTimeout():t.includes("timed out")&&["git","clone","fetch","worktree","pull","push","rebase","merge"].some(r=>t.includes(r))?n.workspace_gitError_gitTimeout():t.includes("git clone failed")?t.includes("could not read from remote")?n.workspace_gitError_cloneRemote():t.includes("authentication")||t.includes("permission denied")||t.includes("access denied")?n.workspace_gitError_cloneAuth():n.workspace_gitError_cloneFailed():t.includes("could not resolve any ref to create worktree")?n.workspace_gitError_worktreeRef():t.includes("failed to write file")?t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_writePermission():t.includes("enospc")||t.includes("disk space")?n.workspace_gitError_diskSpaceFree():t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_writeNoEnt():e:t.includes("failed to read file")?t.includes("enoent")||t.includes("no such file")?n.workspace_gitError_readNotFound():t.includes("eacces")||t.includes("permission denied")?n.workspace_gitError_readPermission():e:t.includes("permission denied")?n.workspace_gitError_permissionDenied():t.includes("not found")||t.includes("enoent")?n.workspace_gitError_notFound():t.includes("already exists")?n.workspace_gitError_alreadyExists():t.includes("network")||t.includes("etimedout")?n.workspace_gitError_network():t.includes("authentication")||t.includes("401")?t.includes("private repositor")?e:n.workspace_gitError_authFailed():t.includes("rate limit")||t.includes("403")?n.workspace_gitError_rateLimit():t.includes("disk space")||t.includes("enospc")?n.workspace_gitError_diskSpace():e}const b=[{id:"spec-writer",role:"orchestrator",teamAgents:["implementor","verifier"],icon:"coordinator",get name(){return n.specialists_builtin_coordinator_name()},get description(){return n.specialists_builtin_coordinator_description()},defaultBehaviorPrompt:`## Coordinator
3
3
 
4
4
  You plan, delegate, and verify. You do NOT implement code yourself. You NEVER edit files directly.
5
5
  **You have no file editing tools available. Delegation to implementor agents is the ONLY way code gets written.**
@@ -531,4 +531,4 @@ Show referenced workspaces as live fenced \`workspace\` blocks with one returned
531
531
 
532
532
  For cross-workspace agents, use attributed send for one-way requests, ask when an answer is requested, and waitFor for completion watches. After ask or waitFor, end the turn; do not poll or treat interim messages as completion. On the completion wake, read the specified agent's conversation once and relay its last assistant message with a nonempty message ID. Link that reply as [Workspace Title](intent://local/{workspaceId}/agent/{agentId}/message/{messageId}), taking all IDs and the title from the conversation read, never the outgoing request or a user message. This exact-message source link is the exception to workspace cards. Omit the link if no assistant message ID exists; report missing or failed results honestly.
533
533
 
534
- Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Dr="developer";function Or(e){return b.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??b.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const xr=a.createSelector(e=>e.specialists.bundledSpecialists),ct=a.createSelector(e=>e.specialists.fileSpecialists),Fr=a.createSelector(e=>y(ct.select(e))),Nr=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const Lr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Ur=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Vr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Wr=a.createSelector(e=>e.specialists.specialistsFolderPath),Hr=a.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function Br(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const v=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of b)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of b)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),M=l.has(h.id);return S&&M?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!M?-1:!S&&M?1:c.name.localeCompare(h.name)}),o}),qr=a.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...b.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=a.createSelector((e,t)=>{const r=m(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=b.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),jr=a.createSelector((e,t)=>ut.select(e,t)?.name??null),Gr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),zr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Yr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Kr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||b.some(r=>r.id===e)}const Qr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),$r=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),Zr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return m(e.specialists.fileSpecialists,t)}),Jr=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),Xr=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),es=a.createSelector((e,t,r)=>{if(r){const i=v.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ye.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=a.createSelector((e,t)=>{const s=v.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Me.select(e)?Q.select(e):""}),ts=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),rs=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),ss=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),ft=["idle","exited"];function ht(e){return e===void 0||!ft.includes(e)}function is(e){return e.status==="restarting"?"restarting":ht(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function gt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const as=a.createSelector(e=>e.voiceSettings.isLoading),ns=a.createSelector(e=>e.voiceSettings.available),os=a.createSelector(e=>e.voiceSettings.provider),cs=a.createSelector(e=>e.voiceSettings.engine),ls=a.createSelector(e=>e.voiceSettings.osEngineAvailable),ds=a.createSelector(e=>e.voiceSettings.keyConfigured),us=a.createSelector(e=>e.voiceSettings.vocabulary),ps=a.createSelector(e=>e.voiceSettings.openaiModel),fs=a.createSelector(e=>e.voiceSettings.language),hs=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),gs=a.createSelector(e=>e.voiceSettings.inputDeviceId),ms=a.createSelector(e=>e.voiceSettings.inputDevices),vs=a.createSelector(e=>e.voiceSettings.busyProvider),bs=a.createSelector(e=>e.voiceSettings.error),Ss=a.createSelector(e=>_e.select(e)?"unavailable":gt(e.voiceSettings)),L="intent.voice.inputDevice";let U;function mt(){if(U!==void 0)return U;try{const e=localStorage.getItem(L);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ws(e){U=e;try{e===null?localStorage.removeItem(L):localStorage.setItem(L,e)}catch{}}let T=null;function ys(e){T=e}function _s(){const e=T;return T=null,e}function vt(){T=null}const bt=300,St=300;class wt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??bt,this.doublePressWindowMs=t.doublePressWindowMs??St,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let A=null;function ks(e){A=e}function Es(){const e=A;return A=null,e}function yt(){A=null}const _t=12e4,kt=["audio/webm;codecs=opus","audio/webm"];function Rs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Et(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Rt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return kt.find(e=>MediaRecorder.isTypeSupported(e))}class Ct{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??_t,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Et(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Rt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Tt=300;function At(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const It={stopReason:"manual",autoSend:!1};let p=null,g=null,w=0,k=null;const P=new wt({onRecordStart:()=>{k&&Pt(k)},onRecordStop:e=>{X(k,e)}});function Cs(){return p!==null}function Ts(){return p}function As(e){k=e,w+=1,w===1&&P.keyDown()}function Is(e){k=e,w!==0&&(w-=1,w===0&&P.keyUp())}function Pt(e){if(p!==null)return;yt(),vt();const t=new Ct({deviceId:mt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||P.reset(),r.durationMs<Tt){s.autoSend&&e.dispatch(N());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(At(r)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(N())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(N());return}g=t,r.stop()}function Ps(){X(null,It)}function Ms(e){P.reset(),w=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const Mt=V("HardwareConsoleVoiceSetupToast"),Dt="hardware-console-voice-setup";let F=null;function Ot(){return F||(F=le(()=>import("./CBWgmFBu.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.notify)),F}function xt(){Pe("/settings?tab=connections#voice").catch(e=>{Mt.error("Failed to open voice settings from setup toast",e)})}function Ft(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>xt()}}function Ds(){Ot().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Dt,action:Ft()})})}const Os=a.createSelector(e=>e.externalEditors.selectedAction),Nt=a.createSelector(e=>e.externalEditors.editors),Lt=a.createSelector(e=>{const t=y(Nt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),xs=a.createSelector(e=>e.externalEditors.editorOrder??[]),Fs=a.createSelector(e=>e.externalEditors.loading),Ns=a.createSelector(e=>e.externalEditors.lastFetched),Ut=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Ls=a.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Ut.select(e);return Lt.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Vt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Us(e,t,r){if(Y(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Vs(e,t){return e.reason==="account-folder"?n.chat_modelPicker_remoteAccountFolder_description({backend:t}):n.chat_modelPicker_remoteIncompatible_description()}const Wt=1440*60*1e3;function Ws(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Wt?"stale":"fresh"}const Hs=new Set(["cli-missing","prerequisite-missing"]),Ht=new Set(["signed-out","auth-failed"]);function Bt(e){return Ht.has(e)}function Bs(e,t){if(Y(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&Bt(s.status)}const qt={macos:"macOS",linux:"Linux",windows:"Windows"},jt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(qt[e]??e),t&&(jt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Gt(e){return e?.placement?.target==="remote"}function qs(e,t){if(!e||!Gt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||n.remoteAgent_location_unknownMachine(),platform:i,state:o}}function js(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||n.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Gs(e){const t=e.platform?n.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):n.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_unreachable_label()});case"revoked":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_revoked_label()});default:return t}}function zs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const I="",zt=new Set(["connected","disconnected"]);function Yt(e){switch(e){case"unreachable":return n.remoteMachines_state_unreachable_label();case"revoked":return n.remoteMachines_state_revoked_label();case"update-required":return n.remoteMachines_state_updateRequired_label();default:return}}function B(e){return zt.has(e.state)}function Kt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:I,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return B(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Yt(s.state)}})]}function Qt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(B)}function $t(e,t){if(!e)return I;const r=t.find(s=>s.id===e);return r&&B(r)?r.id:I}function Ys(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Ks({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Zt=a.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),q=a.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Qs=a.createSelector(e=>e.remoteMachines.localFingerprint),$s=a.createSelector(e=>e.remoteMachines.pending),Zs=a.createSelector(e=>e.remoteMachines.failures),Js=a.createSelector(e=>e.remoteMachines.executorBackends??[]),Jt=a.createSelector((e,t)=>{if(t===ge)return n.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?De(r):t}),Xt=a.createSelector(e=>Jt.select(e,e.connections.windowBackendId)),Xs=a.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ei=a.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Vt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),ti=a.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=a.createSelector(e=>Qt({remoteMachinesVisible:Zt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:q.select(e)}));function er(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ri=a.createSelector(e=>ee.select(e)?Kt({backendLabel:Xt.select(e),backendPlatform:er(e),machines:q.select(e)}):[]),si=a.createSelector((e,t)=>ee.select(e)?$t(t,q.select(e)):I);function ii(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let tr=0;function rr(e,t){const r=++tr;return a.dispatch(ve(e,t,r)),r}function ai(e,t,r){a.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(be({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:K.select(a.state)},{...s,intent:s?.intent??rr(e,t)}))).status==="success"}finally{a.dispatch(Se(i,o))}}async function ni(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function oi(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const sr=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),ci=a.createSelector((e,t)=>sr.select(e,t).some(r=>r.status==="pending")),li=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Te.select(e,t),o=Oe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=xe(l),h=c?Fe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:K.select(e),canWrite:!!s&&s.workspaceId===r&&!Ae.select(e,r)}});function ir(e,t,r=!1){return e!=="auggie"||t===!0||r}const di=a.createSelector(e=>Ne.select(e)?null:W.select(e)),ar=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ui=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),pi=a.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===ar.select(e)),re=a.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ie.select(e)),se=a.createSelector((e,t)=>{if(!t)return Q.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),fi=a.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:W.select(e);return re.select(e,t).filter(i=>ir(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),hi=a.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),gi=a.createSelector((e,t)=>v.select(e,t)),mi=a.createSelector((e,t)=>t?!!f.select(e,t):We.select(e)),vi=a.createSelector((e,t)=>{if(!t)return He.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),bi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Be.select(e)),Si=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):qe.select(e)),wi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),yi=a.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),_i=a.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:W.select(e)),nr={},ki=a.createSelector(e=>e.providerSettings?.profiles?.status??nr),Ei=a.createSelector(e=>e.directoryPicker.listing),Ri=a.createSelector(e=>e.directoryPicker.loading),Ci=a.createSelector(e=>e.directoryPicker.error),Ti=a.createSelector(e=>e.directoryPicker.pathError),Ai=a.createSelector(e=>e.directoryPicker.createError),z={},or=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Ii=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Pi=a.createSelector(e=>e.mcpSettings.loading),Mi=a.createSelector(e=>e.mcpSettings.error),Di=a.createSelector(e=>e.mcpSettings.mutationError??null),Oi=a.createSelector(e=>e.mcpSettings.enabled),cr=a.createSelector(e=>e.mcpSettings.disabledServers),lr=a.createSelector(e=>e.mcpSettings.statusMap),dr=a.createSelector(e=>e.mcpSettings.toolsMap),ur=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,_(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),pr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),xi=a.createSelector((e,t)=>Object.keys(pr.select(e,t))),Fi=a.createSelector(e=>{const t=or.select(e),r=lr.select(e),s=dr.select(e),i=cr.select(e),o=ur.select(e);return t.map(l=>{const c=_(l)in i,h=s[_(l)]||[];let S=r[_(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[_(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Ni=a.createSelector(e=>e.mcpSettings.lastImportedCount),Li=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ui=a.createSelector(e=>e.mcpSettings.advancedSaveError),Vi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],fr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Wi=Object.fromEntries(fr.map(e=>[e.path,e.defaultValue]));export{xr as $,ii as A,G as B,Bs as C,Dr as D,Rs as E,fr as F,J as G,mt as H,js as I,Ks as J,E as K,Ws as L,Hs as M,rr as N,it as O,oi as P,ai as Q,Us as R,b as S,Vs as T,gt as U,$t as V,Ar as W,ws as X,ci as Y,sr as Z,li as _,Wi as a,Di as a$,Vr as a0,Jt as a1,hi as a2,se as a3,j as a4,fi as a5,ie as a6,re as a7,Si as a8,wi as a9,H as aA,Ke as aB,et as aC,tt as aD,Z as aE,Xe as aF,Qe as aG,Ye as aH,Ze as aI,Je as aJ,Zr as aK,Ut as aL,Lt as aM,Ls as aN,Fs as aO,Qr as aP,$r as aQ,Ns as aR,Qs as aS,Ui as aT,Li as aU,cr as aV,Oi as aW,Mi as aX,ur as aY,Ni as aZ,Pi as a_,bi as aa,yi as ab,_i as ac,mi as ad,vi as ae,gi as af,Xt as ag,Lr as ah,ti as ai,Hr as aj,Ai as ak,Ci as al,Ei as am,Ri as an,Ti as ao,xs as ap,Kr as aq,es as ar,Gr as as,si as at,Ss as au,Js as av,zr as aw,Yr as ax,Fr as ay,Ur as az,Vi as b,or as b0,Fi as b1,lr as b2,dr as b3,Os as b4,qr as b5,ki as b6,Xs as b7,Zs as b8,$s as b9,bs as bA,as as bB,us as bC,hs as bD,f as bE,ar as bF,pi as bG,ui as bH,xi as bI,Ii as bJ,ys as bK,ks as bL,Ds as bM,Pt as bN,Ps as bO,Ir as bP,Tr as bQ,Pr as bR,Cr as bS,Ft as bT,Er as bU,q as ba,Zt as bb,ei as bc,di as bd,ut as be,rs as bf,ss as bg,Xr as bh,ts as bi,jr as bj,Jr as bk,v as bl,Wr as bm,ri as bn,ee as bo,Nr as bp,vs as bq,cs as br,gs as bs,ms as bt,ds as bu,fs as bv,ps as bw,ls as bx,os as by,ns as bz,I as c,qs as d,Gs as e,zs as f,ni as g,Ms as h,vt as i,yt as j,_s as k,Es as l,Br as m,dt as n,lt as o,Ts as p,Mr as q,is as r,Or as s,Rr as t,As as u,Is as v,Ys as w,ht as x,ir as y,Cs as z};
534
+ Keep ordinary recommendations to supported features ready for users. Discuss an experiment honestly and label its status only when explicitly asked or when the user is developing or testing it.`,roleReminder:"You are the built-in Assistant. Help with app tasks using ws.app.* and current app guidance. Keep changes reviewable through proposal or confirmation cards, with cards last. Show workspaces as live cards; never use a workspace ID slug as a label. Use the discovered canonical route including its hash fragment. End the turn after registering an agent completion watch; on completion, link the returned assistant reply using its exact message ID."}],J=new Set(["pr-reviewer"]),Dr="developer";function Or(e){return b.find(t=>t.id===e)}function u(e){return e??""}function ot(e,t){const r=e??[],s=t??[];return r.length===s.length&&r.every((i,o)=>u(i.provider)===u(s[o].provider)&&i.model===s[o].model&&i.hint===s[o].hint&&u(i.reasoningEffort)===u(s[o].reasoningEffort))}function G(e,t,r){if(e.source!=="user"||!r?.ignoreModelPin&&(e.model||e.codingAgent))return!1;const s=t.find(i=>i.id===e.id)??b.find(i=>i.id===e.id);return s?u(e.name)===u(s.name)&&u(e.description)===u(s.description)&&u(e.behaviorPrompt)===u(s.defaultBehaviorPrompt)&&u(e.roleReminder)===u(s.roleReminder)&&u(e.reasoningEffort)===u(s.reasoningEffort)&&ot(e.modelOptions,s.modelOptions):!1}const xr=a.createSelector(e=>e.specialists.bundledSpecialists),ct=a.createSelector(e=>e.specialists.fileSpecialists),Fr=a.createSelector(e=>y(ct.select(e))),Nr=a.createSelector(e=>e.specialists.userOverrides);a.createSelector(e=>e.specialists.overridesLoaded);const Lr=a.createSelector(e=>e.specialists.customSpecialistsLoaded),Ur=a.createSelector(e=>e.specialists.fileSpecialistsLoaded),Vr=a.createSelector(e=>e.specialists.bundledSpecialistsLoaded),Wr=a.createSelector(e=>e.specialists.specialistsFolderPath),Hr=a.createSelector((e,t)=>{if(!t)return e.specialists.defaultSpecialistId??"";const r=e.providerCatalog?.byWorkspaceId?.[t]?.settings.find(s=>s.path==="specialists.default")?.value;return typeof r=="string"?r:""});a.createSelector(e=>e.specialists.providerModelOverrides);const x=a.createSelector((e,t)=>!(J.has(t)&&!Z.select(e)));function lt(e,t){return t?e:e.filter(r=>!J.has(r.id))}function dt(e,t){return lt(e,t).filter(r=>!r.hidden)}function Br(e,t){return dt(e,t).filter(r=>r.role!=="internal")}const v=a.createSelector((e,t)=>{if(t)return(e.providerCatalog?.byWorkspaceId?.[t]?.specialists??[]).map(c=>({...c,defaultModel:c.model,defaultBehaviorPrompt:c.behaviorPrompt??c.prompt??"",defaultAgentType:c.agentType}));const r=y(e.specialists.fileSpecialists),s=e.specialists.bundledSpecialists,i=new Set,o=[];for(const c of r)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push({id:c.id,name:c.name,description:c.description,codingAgent:c.codingAgent,defaultModel:c.model||void 0,defaultBehaviorPrompt:c.behaviorPrompt,roleReminder:c.roleReminder,source:c.source,importedFrom:c.importedFrom,unsupportedFields:c.unsupportedFields,requiredSkills:c.requiredSkills,missingSkills:c.missingSkills,hidden:c.hidden,resolvedModel:c.resolvedModel,resolvedProvider:c.resolvedProvider,modelOptions:c.modelOptions,reasoningEffort:c.reasoningEffort,role:c.role,teamAgents:c.teamAgents,icon:c.icon}));for(const c of s)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));if(!e.specialists.bundledSpecialistsLoaded&&r.length===0&&s.length===0)for(const c of b)!i.has(c.id)&&x.select(e,c.id)&&(i.add(c.id),o.push(c));const l=new Map;for(const c of b)l.has(c.id)||l.set(c.id,l.size);for(const c of s)l.has(c.id)||l.set(c.id,l.size);return o.sort((c,h)=>{const S=l.has(c.id),M=l.has(h.id);return S&&M?(l.get(c.id)??0)-(l.get(h.id)??0):S&&!M?-1:!S&&M?1:c.name.localeCompare(h.name)}),o}),qr=a.createSelector(e=>{const t=v.select(e).filter(s=>s.role==="orchestrator");if(t.length===0)return null;const r=new Set([...b.map(({id:s})=>s),...e.specialists.bundledSpecialists.map(({id:s})=>s)]);return t.sort((s,i)=>+!r.has(s.id)-+!r.has(i.id)||s.id.localeCompare(i.id)),t[0]}),ut=a.createSelector((e,t)=>{const r=m(e.specialists.fileSpecialists,t);if(r)return{id:r.id,name:r.name,description:r.description,source:r.source};const s=e.specialists.bundledSpecialists.find(i=>i.id===t);if(s)return{id:s.id,name:s.name,description:s.description,source:"builtin"};if(!e.specialists.bundledSpecialistsLoaded&&y(e.specialists.fileSpecialists).length===0&&e.specialists.bundledSpecialists.length===0){const i=b.find(o=>o.id===t);if(i)return{id:i.id,name:i.name,description:i.description,source:"builtin"}}return null}),jr=a.createSelector((e,t)=>ut.select(e,t)?.name??null),Gr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultModel?i.defaultModel:i.resolvedModel??"":""}),zr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.defaultModel||void 0),Yr=a.createSelector((e,t,r)=>v.select(e,r).find(o=>o.id===t)?.reasoningEffort||void 0),Kr=a.createSelector((e,t,r)=>{const i=v.select(e,r).find(o=>o.id===t);return i?i.defaultBehaviorPrompt:""});function C(e,t){return t.some(r=>r.id===e)||b.some(r=>r.id===e)}const Qr=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.importedFrom?!1:s.source==="bundled"||s.source==="user"&&C(t,e.specialists.bundledSpecialists)}return C(t,e.specialists.bundledSpecialists)}),$r=a.createSelector((e,t,r)=>r?!!H.select(e,t,r):!!m(e.specialists.fileSpecialists,t)),Zr=a.createSelector((e,t,r)=>{if(r){const o=H.select(e,t,r);return!o||o.importedFrom||o.source==="project"?!1:C(t,e.specialists.bundledSpecialists)&&!G(o,e.specialists.bundledSpecialists)}if(!C(t,e.specialists.bundledSpecialists))return!1;const i=m(e.specialists.fileSpecialists,t);return!i||i.source!=="user"?!1:!G(i,e.specialists.bundledSpecialists)}),H=a.createSelector((e,t,r)=>{if(r){const s=e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(i=>i.id===t);return!s||s.source==="bundled"?void 0:{...s,source:s.source,model:s.model??"",behaviorPrompt:s.behaviorPrompt??s.prompt??"",filePath:s.path??""}}return m(e.specialists.fileSpecialists,t)}),Jr=a.createSelector((e,t,r)=>{const s=H.select(e,t,r);return r&&!s?e.providerCatalog?.byWorkspaceId?.[r]?.specialists.some(i=>i.id===t)?"Built-in":null:s?.source==="project"?"Project":s?.source==="user"?"User":e.specialists.bundledSpecialists.some(i=>i.id===t)?"Built-in":null}),Xr=a.createSelector((e,t,r)=>{if(r)return e.providerCatalog?.byWorkspaceId?.[r]?.specialists.find(o=>o.id===t)?.path;const s=m(e.specialists.fileSpecialists,t);if(s)return s.filePath;const i=e.specialists.bundledSpecialists.find(o=>o.id===t);if(i&&"filePath"in i)return i.filePath}),es=a.createSelector((e,t,r)=>{if(r){const i=v.select(e,r).find(c=>c.id===t),o=i?.codingAgent||i?.resolvedProvider;if(o)return we.select(e,o,r);const l=ye.select(e,r);return e.providerCatalog?.byWorkspaceId?.[r]?.readiness[l]?.available?l:""}const s=m(e.specialists.fileSpecialists,t);return s?.codingAgent?s.codingAgent:pt.select(e,t)}),pt=a.createSelector((e,t)=>{const s=v.select(e).find(i=>i.id===t);return s?.codingAgent?s.codingAgent:Me.select(e)?Q.select(e):""}),ts=a.createSelector((e,t)=>{if(t)return e.providerCatalog?.byWorkspaceId?.[t]?.importDiagnostics??[];const r=e.specialists.importDiagnostics;return r?y(r):[]}),rs=a.createSelector((e,t)=>e.specialists.creationByContext?.[t]??de),ss=a.createSelector(e=>Object.values(e.specialists.creationByContext??{}).flatMap(t=>t.specialistId?[t.specialistId]:[])),ft=["idle","exited"];function ht(e){return e===void 0||!ft.includes(e)}function is(e){return e.status==="restarting"?"restarting":ht(e.status)?"running":e.status==="idle"?"idle":e.exitCode===0?"succeeded":e.exitCode===null||e.exitCode===void 0?"exited":e.exitCode>=128?"stopped":"failed"}function gt(e){return e.engine==="os"?"os":e.isLoading||e.keyConfigured[e.provider]===!0?"daemon":e.osEngineAvailable?"os":"unavailable"}const as=a.createSelector(e=>e.voiceSettings.isLoading),ns=a.createSelector(e=>e.voiceSettings.available),os=a.createSelector(e=>e.voiceSettings.provider),cs=a.createSelector(e=>e.voiceSettings.engine),ls=a.createSelector(e=>e.voiceSettings.osEngineAvailable),ds=a.createSelector(e=>e.voiceSettings.keyConfigured),us=a.createSelector(e=>e.voiceSettings.vocabulary),ps=a.createSelector(e=>e.voiceSettings.openaiModel),fs=a.createSelector(e=>e.voiceSettings.language),hs=a.createSelector(e=>e.voiceSettings.workspaceVocabularyMaxTerms),gs=a.createSelector(e=>e.voiceSettings.inputDeviceId),ms=a.createSelector(e=>e.voiceSettings.inputDevices),vs=a.createSelector(e=>e.voiceSettings.busyProvider),bs=a.createSelector(e=>e.voiceSettings.error),Ss=a.createSelector(e=>_e.select(e)?"unavailable":gt(e.voiceSettings)),L="intent.voice.inputDevice";let U;function mt(){if(U!==void 0)return U;try{const e=localStorage.getItem(L);return typeof e=="string"&&e!==""?e:null}catch{return null}}function ws(e){U=e;try{e===null?localStorage.removeItem(L):localStorage.setItem(L,e)}catch{}}let T=null;function ys(e){T=e}function _s(){const e=T;return T=null,e}function vt(){T=null}const bt=300,St=300;class wt{constructor(t){d(this,"holdThresholdMs");d(this,"doublePressWindowMs");d(this,"onRecordStart");d(this,"onRecordStop");d(this,"currentState","idle");d(this,"timer",null);this.holdThresholdMs=t.holdThresholdMs??bt,this.doublePressWindowMs=t.doublePressWindowMs??St,this.onRecordStart=t.onRecordStart,this.onRecordStop=t.onRecordStop}get state(){return this.currentState}keyDown(){switch(this.currentState){case"idle":this.currentState="first-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding"}),this.onRecordStart();break;case"await-second-press":this.clearTimer(),this.currentState="second-press",this.armTimer(this.holdThresholdMs,()=>{this.currentState="holding-send"});break;case"latched":this.currentState="latched-press";break;case"latched-await-second":this.clearTimer(),this.currentState="draining",this.onRecordStop({stopReason:"double-press",autoSend:!0});break}}keyUp(){switch(this.currentState){case"first-press":this.clearTimer(),this.currentState="await-second-press",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="latched"});break;case"holding":this.currentState="idle",this.onRecordStop({stopReason:"hold-release",autoSend:!1});break;case"second-press":this.clearTimer(),this.currentState="idle",this.onRecordStop({stopReason:"double-press",autoSend:!0});break;case"holding-send":this.currentState="idle",this.onRecordStop({stopReason:"double-hold-release",autoSend:!0});break;case"latched-press":this.currentState="latched-await-second",this.armTimer(this.doublePressWindowMs,()=>{this.currentState="idle",this.onRecordStop({stopReason:"latch-stop",autoSend:!1})});break;case"draining":this.currentState="idle";break}}reset(){this.clearTimer(),this.currentState="idle"}armTimer(t,r){this.clearTimer(),this.timer=setTimeout(()=>{this.timer=null,r()},t)}clearTimer(){this.timer!==null&&clearTimeout(this.timer),this.timer=null}}let A=null;function ks(e){A=e}function Es(){const e=A;return A=null,e}function yt(){A=null}const _t=12e4,kt=["audio/webm;codecs=opus","audio/webm"];function Rs(){return typeof navigator<"u"&&typeof navigator.mediaDevices?.getUserMedia=="function"&&typeof MediaRecorder<"u"}function Et(e){return e?{audio:{deviceId:{ideal:e}}}:{audio:!0}}function Rt(){if(!(typeof MediaRecorder>"u"||typeof MediaRecorder.isTypeSupported!="function"))return kt.find(e=>MediaRecorder.isTypeSupported(e))}class Ct{constructor(t){d(this,"maxDurationMs");d(this,"now");d(this,"callbacks");d(this,"deviceId");d(this,"currentState","idle");d(this,"recorder",null);d(this,"stream",null);d(this,"chunks",[]);d(this,"startedAt",0);d(this,"maxTimer",null);d(this,"discardRequested",!1);d(this,"cancelRequested",!1);this.maxDurationMs=t.maxDurationMs??_t,this.now=t.now??Date.now,this.callbacks={onFinished:t.onFinished,onError:t.onError},this.deviceId=t.deviceId??null}get state(){return this.currentState}async start(){if(this.currentState!=="idle")return"discarded";this.currentState="starting";let t;try{t=await navigator.mediaDevices.getUserMedia(Et(this.deviceId))}catch(i){const o=this.discardRequested;return this.currentState="stopped",o||this.callbacks.onError(i),o?"discarded":"error"}if(this.discardRequested){for(const i of t.getTracks())i.stop();return this.currentState="stopped","discarded"}this.stream=t;const r=Rt(),s=r?new MediaRecorder(t,{mimeType:r}):new MediaRecorder(t);return this.recorder=s,s.ondataavailable=i=>{i.data&&i.data.size>0&&this.chunks.push(i.data)},s.onstop=()=>this.handleRecorderStop(),s.onerror=i=>this.handleRecorderError(i),s.start(),this.startedAt=this.now(),this.currentState="recording",this.maxTimer=setTimeout(()=>this.stop(),this.maxDurationMs),"recording"}stop(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&this.recorder?.stop()}cancel(){if(this.currentState==="starting"){this.discardRequested=!0;return}this.currentState==="recording"&&(this.cancelRequested=!0,this.recorder?.stop())}handleRecorderStop(){const t=this.now()-this.startedAt,r=this.recorder?.mimeType||"audio/webm",s=this.chunks,i=this.cancelRequested;this.teardown(),!i&&this.callbacks.onFinished({blob:new Blob(s,{type:r}),durationMs:t,mimeType:r})}handleRecorderError(t){const r=t?.error??t;this.teardown(),this.callbacks.onError(r)}teardown(){this.maxTimer!==null&&clearTimeout(this.maxTimer),this.maxTimer=null,this.recorder&&(this.recorder.ondataavailable=null,this.recorder.onstop=null,this.recorder.onerror=null),this.recorder=null;for(const t of this.stream?.getTracks()??[])t.stop();this.stream=null,this.chunks=[],this.currentState="stopped"}}const Tt=300;function At(e){const t=e?.name;return t==="NotAllowedError"||t==="SecurityError"}const It={stopReason:"manual",autoSend:!1};let p=null,g=null,w=0,k=null;const P=new wt({onRecordStart:()=>{k&&Pt(k)},onRecordStop:e=>{X(k,e)}});function Cs(){return p!==null}function Ts(){return p}function As(e){k=e,w+=1,w===1&&P.keyDown()}function Is(e){k=e,w!==0&&(w-=1,w===0&&P.keyUp())}function Pt(e){if(p!==null)return;yt(),vt();const t=new Ct({deviceId:mt(),onFinished:r=>{p===t&&(p=null);const s=g??{stopReason:"auto-stop",autoSend:!1},i=g!==null;if(g=null,e.dispatch(R()),i||P.reset(),r.durationMs<Tt){s.autoSend&&e.dispatch(N());return}e.dispatch(ue({...r,stopReason:s.stopReason,autoSend:s.autoSend}))},onError:r=>{p===t&&(p=null),g=null,e.dispatch(R()),e.showHint(At(r)?n.hardwareConsole_ptt_micDenied_message():n.hardwareConsole_ptt_recordingFailed_message())}});p=t,e.dispatch(pe()),t.start().then(r=>{if(r!=="recording"&&(p===t&&(p=null),r==="discarded")){const s=g?.autoSend===!0;g=null,e.dispatch(R()),s&&e.dispatch(N())}})}function X(e,t){const r=p;if(r===null){t.autoSend&&e?.dispatch(N());return}g=t,r.stop()}function Ps(){X(null,It)}function Ms(e){P.reset(),w=0,g=null;const t=p;t!==null&&(p=null,t.cancel(),e.dispatch(R()))}const Mt=V("HardwareConsoleVoiceSetupToast"),Dt="hardware-console-voice-setup";let F=null;function Ot(){return F||(F=le(()=>import("./CQTIadOp.js").then(e=>e.i),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url).then(e=>e.notify)),F}function xt(){Pe("/settings?tab=connections#voice").catch(e=>{Mt.error("Failed to open voice settings from setup toast",e)})}function Ft(){return{label:n.hardwareConsole_voice_openSettings_label(),onClick:()=>xt()}}function Ds(){Ot().then(e=>{e.error(n.hardwareConsole_voice_noKey_error(),{id:Dt,action:Ft()})})}const Os=a.createSelector(e=>e.externalEditors.selectedAction),Nt=a.createSelector(e=>e.externalEditors.editors),Lt=a.createSelector(e=>{const t=y(Nt.select(e)),r=e.externalEditors.editorOrder??[];if(!r.length)return t;const s=new Map(t.map(l=>[l.id,l])),i=r.flatMap(l=>{const c=s.get(l);return c?[c]:[]}),o=new Set(r);return[...i,...t.filter(({id:l})=>!o.has(l))]}),xs=a.createSelector(e=>e.externalEditors.editorOrder??[]),Fs=a.createSelector(e=>e.externalEditors.loading),Ns=a.createSelector(e=>e.externalEditors.lastFetched),Ut=a.createSelector(e=>e.externalEditors.hiddenEditorIds),Ls=a.createSelector((e,t)=>{if(!(t?ke.select(e,t):Ee.select(e)))return[];const s=Ut.select(e);return Lt.select(e).filter(i=>i.installed&&!s.includes(i.id))});function Vt(e){return e.catalogProfiles.some(t=>typeof t.remoteCompatible=="boolean")||e.defaultRemoteIncompatibility||e.profileDefaults.some(t=>typeof t.remoteCompatible=="boolean")?"supported":e.catalogProfiles.length>0?"unsupported":e.profilesLoadStatus==="idle"?"unknown":"unsupported"}function Us(e,t,r){if(Y(e)){const s=t.find(i=>i.providerRef===e);return s?.remoteCompatible!==!1?null:s.remoteIncompatibility??{reason:"unknown",keys:[]}}return r?.[e]??null}function Vs(e,t){return e.reason==="account-folder"?n.chat_modelPicker_remoteAccountFolder_description({backend:t}):n.chat_modelPicker_remoteIncompatible_description()}const Wt=1440*60*1e3;function Ws(e,t){if(!e?.capabilities)return"missing";const r=e.observedAt?Date.parse(e.observedAt):Number.NaN;return Number.isFinite(r)&&t-r>Wt?"stale":"fresh"}const Hs=new Set(["cli-missing","prerequisite-missing"]),Ht=new Set(["signed-out","auth-failed"]);function Bt(e){return Ht.has(e)}function Bs(e,t){if(Y(t))return!1;const r=fe(t),s=e?.capabilities?.providers.find(i=>i.id===r);return!!s&&Bt(s.status)}const qt={macos:"macOS",linux:"Linux",windows:"Windows"},jt={aarch64:"arm64",arm64:"arm64",x86_64:"x64",x64:"x64"};function E(e,t){const r=[e&&(qt[e]??e),t&&(jt[t]??t)].filter(s=>!!s);return r.length?r.join(" "):null}function Gt(e){return e?.placement?.target==="remote"}function qs(e,t){if(!e||!Gt(e))return null;const r=e.nodeId??e.placement?.nodeId??"",s=t&&t.id===r?t:null,i=E(e.placement?.os,e.placement?.arch)??E(s?.platform?.os,s?.platform?.arch),o=s?.state==="revoked"?"revoked":s?.state==="unreachable"||e.nodeState==="offline"?"unreachable":"ready";return{nodeId:r,name:e.nodeName?.trim()||s?.name||n.remoteAgent_location_unknownMachine(),platform:i,state:o}}function js(e,t){if(!e)return null;const r=t&&t.id===e?t:null;return{nodeId:e,name:r?.name||n.remoteAgent_location_unknownMachine(),platform:E(r?.platform?.os,r?.platform?.arch),state:r?.state==="revoked"?"revoked":r?.state==="unreachable"?"unreachable":"ready"}}function Gs(e){const t=e.platform?n.remoteAgent_location_tooltip({machine:e.name,platform:e.platform}):n.remoteAgent_location_tooltipNoPlatform({machine:e.name});switch(e.state){case"unreachable":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_unreachable_label()});case"revoked":return n.remoteAgent_location_tooltipWithState({location:t,state:n.remoteMachines_state_revoked_label()});default:return t}}function zs(e,t){return!e||!t?null:e.placementError?"failed":t.state==="revoked"?"revoked":t.state==="unreachable"?"unreachable":e.effectiveIsolation==="pending"?"starting":null}const I="",zt=new Set(["connected","disconnected"]);function Yt(e){switch(e){case"unreachable":return n.remoteMachines_state_unreachable_label();case"revoked":return n.remoteMachines_state_revoked_label();case"update-required":return n.remoteMachines_state_updateRequired_label();default:return}}function B(e){return zt.has(e.state)}function Kt({backendLabel:e,backendPlatform:t,machines:r}){return[{id:I,label:e,platform:E(t?.os,t?.arch),disabled:!1},...r.map(s=>{const i=E(s.platform?.os,s.platform?.arch);return B(s)?{id:s.id,label:s.name,platform:i,disabled:!1}:{id:s.id,label:s.name,platform:i,disabled:!0,reason:Yt(s.state)}})]}function Qt({remoteMachinesVisible:e,supported:t,machines:r}){return e&&t&&r.some(B)}function $t(e,t){if(!e)return I;const r=t.find(s=>s.id===e);return r&&B(r)?r.id:I}function Ys(e){return e?{target:"remote",checkout:"isolated",nodeId:e}:void 0}function Ks({groups:e,providerRef:t,model:r}){const s=l=>l.options.filter(c=>!c.disabled),i=e.find(l=>l.key===t),o=i?s(i):[];if(r){const l=he(r).modelId;if(o.some(c=>c.value===l))return null}else if(o.length>0)return null;if(i&&o.length>0)return{providerId:i.key,modelId:o[0].value};for(const l of e){if(l.key==="default")continue;const c=s(l);if(c.length>0)return{providerId:l.key,modelId:c[0].value}}return null}const Zt=a.createSelector(e=>ze.select(e)&&e.remoteMachines?.supported===!0),q=a.createSelector(e=>Object.values(e.remoteMachines?.machines??{}).sort((t,r)=>t.name.localeCompare(r.name))),Qs=a.createSelector(e=>e.remoteMachines.localFingerprint),$s=a.createSelector(e=>e.remoteMachines.pending),Zs=a.createSelector(e=>e.remoteMachines.failures),Js=a.createSelector(e=>e.remoteMachines.executorBackends??[]),Jt=a.createSelector((e,t)=>{if(t===ge)return n.layout_daemonStatus_localConnection_label();const r=m(e.connections.connections,t);return r?De(r):t}),Xt=a.createSelector(e=>Jt.select(e,e.connections.windowBackendId)),Xs=a.createSelector((e,t)=>(t?e.remoteMachines.machines[t]:void 0)??null),ei=a.createSelector((e,t)=>{const r=e.providerSettings?.profiles;return Vt({catalogProfiles:Ce.select(e,t),defaultRemoteIncompatibility:Re.select(e,t),profileDefaults:Object.values(r?.defaults??{}),profilesLoadStatus:r?.loadStatus??"idle"})}),ti=a.createSelector(e=>Object.fromEntries(Object.values(e.providerSettings?.profiles?.defaults??{}).map(t=>[t.baseProviderId,t.env.length>0]))),ee=a.createSelector(e=>Qt({remoteMachinesVisible:Zt.select(e),supported:e.remoteMachines?.initialAgentPlacement===!0,machines:q.select(e)}));function er(e){const t=m(e.connections.connections,e.connections.windowBackendId);return t?.hostOs?{os:t.hostOs,arch:t.hostArch}:void 0}const ri=a.createSelector(e=>ee.select(e)?Kt({backendLabel:Xt.select(e),backendPlatform:er(e),machines:q.select(e)}):[]),si=a.createSelector((e,t)=>ee.select(e)?$t(t,q.select(e)):I);function ii(e,t){if(!e||!t||t===e.providerId)return!1;const r=e.providerSettings[t];return!!(r&&[r.defaultModel,...Object.values(r.typeOverrides??{})].some(s=>typeof s=="string"&&s.includes(":")))}let tr=0;function rr(e,t){const r=++tr;return a.dispatch(ve(e,t,r)),r}function ai(e,t,r){a.dispatch(me(e,t,r))}async function te(e,t,r,s){const i=crypto.randomUUID(),o=s?.source??"control";try{return(await a.dispatch(be({requestId:i,consumerId:o,agentId:e,workspaceId:t,operation:r,connection:K.select(a.state)},{...s,intent:s?.intent??rr(e,t)}))).status==="success"}finally{a.dispatch(Se(i,o))}}async function ni(e,t,r,s,i){return te(e,t,{kind:"effort",effort:r,previous:s},i)}async function oi(e,t,r,s,i){return te(e,t,{kind:"reconcile",current:r??null,levels:s},i)}const sr=a.createSelector((e,t)=>y(e.agentModel.mutations).filter(r=>r.consumerId===t)),ci=a.createSelector((e,t)=>sr.select(e,t).some(r=>r.status==="pending")),li=a.createSelector((e,t,r)=>{const s=e.agentSessions.byAgentId[t],i=Te.select(e,t),o=Oe.select(e,t),l=e.daemonHealth.stats?.protocolVersion,c=xe(l),h=c?Fe(s?.model,null,o):s?.model;return{session:s,providerId:i,levels:o,legacy:c,identity:JSON.stringify([h,i]),connection:K.select(e),canWrite:!!s&&s.workspaceId===r&&!Ae.select(e,r)}});function ir(e,t,r=!1){return e!=="auggie"||t===!0||r}const di=a.createSelector(e=>Ne.select(e)?null:W.select(e)),ar=a.createSelector(e=>e.providerCatalog?.workspaceEpoch??0),f=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]:void 0),ui=a.createSelector(e=>Object.keys(e.providerCatalog?.byWorkspaceId??{})),pi=a.createSelector((e,t)=>!!f.select(e,t)&&e.providerCatalog.workspaceSnapshotEpochs?.[t]===ar.select(e)),re=a.createSelector((e,t)=>t?f.select(e,t)?.catalog.providers??[]:Ie.select(e)),se=a.createSelector((e,t)=>{if(!t)return Q.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="model.defaultProvider")?.value;return typeof r=="string"?r:""}),j=a.createSelector((e,t)=>{if(!t)return Le.select(e);const r=f.select(e,t)?.settings.find(s=>s.path==="providers.enabled")?.value;return r&&typeof r=="object"?r:{}}),ie=a.createSelector((e,t)=>{if(!t)return Ue.select(e);const r=j.select(e,t),s=se.select(e,t),i=f.select(e,t)?.readiness??{};return re.select(e,t).filter(o=>o.visible&&(!o.canBeDisabled||r[o.id]||o.id===s)&&i[o.id]?.available&&(o.id!=="antigravity"||$(o.id,i[o.id]?.authenticated))).map(o=>o.id)}),fi=a.createSelector((e,t)=>{const r=j.select(e,t),s=t?f.select(e,t)?.readiness??{}:W.select(e);return re.select(e,t).filter(i=>ir(i.id,s[i.id]?.available,r[i.id]===!0)).map(i=>i.id)}),hi=a.createSelector((e,t)=>t?ie.select(e,t):Ve.select(e)),gi=a.createSelector((e,t)=>v.select(e,t)),mi=a.createSelector((e,t)=>t?!!f.select(e,t):We.select(e)),vi=a.createSelector((e,t)=>{if(!t)return He.select(e);const r=f.select(e,t)?.settings??[],s=se.select(e,t),i=r.find(c=>c.path==="model.providerDefaults")?.value,o=i&&typeof i=="object"?i[s]:void 0;if(typeof o=="string")return o;const l=r.find(c=>c.path==="model.default")?.value;return typeof l=="string"?l:""}),bi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning?[[r,s.warning]]:[])):Be.select(e)),Si=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).map(([r,s])=>[r,s.stale===!0])):qe.select(e)),wi=a.createSelector((e,t)=>t?Object.fromEntries(Object.entries(e.providerModels?.byWorkspaceId?.[t]??{}).flatMap(([r,s])=>s.warning&&s.warningKind?[[r,s.warningKind]]:[])):je.select(e)),yi=a.createSelector((e,t,r)=>{if(!r)return Ge.select(e,t);const s=j.select(e,r),i=f.select(e,r);return ie.select(e,r).filter(o=>o!==t&&(s[o]||i?.catalog.providers.find(l=>l.id===o)?.canBeDisabled===!1)&&$(o,i?.readiness[o]?.authenticated))}),_i=a.createSelector((e,t)=>t?f.select(e,t)?.readiness??{}:W.select(e)),nr={},ki=a.createSelector(e=>e.providerSettings?.profiles?.status??nr),Ei=a.createSelector(e=>e.directoryPicker.listing),Ri=a.createSelector(e=>e.directoryPicker.loading),Ci=a.createSelector(e=>e.directoryPicker.error),Ti=a.createSelector(e=>e.directoryPicker.pathError),Ai=a.createSelector(e=>e.directoryPicker.createError),z={},or=a.createSelector((e,t)=>t?e.providerCatalog?.byWorkspaceId?.[t]?.mcpServers??[]:e.mcpSettings.servers),Ii=a.createSelector((e,t,r)=>{const s=e.providerCatalog?.byWorkspaceId?.[t];return s?s.mcpServers?.find(i=>i.id===r)?.name:e.providerCatalog?.mcpServerNamesByWorkspaceId?.[t]?.[r]}),Pi=a.createSelector(e=>e.mcpSettings.loading),Mi=a.createSelector(e=>e.mcpSettings.error),Di=a.createSelector(e=>e.mcpSettings.mutationError??null),Oi=a.createSelector(e=>e.mcpSettings.enabled),cr=a.createSelector(e=>e.mcpSettings.disabledServers),lr=a.createSelector(e=>e.mcpSettings.statusMap),dr=a.createSelector(e=>e.mcpSettings.toolsMap),ur=a.createSelector((e,t)=>{if(!t)return e.mcpSettings.errorMessages;const r=e.providerCatalog?.byWorkspaceId?.[t],s=new Map(r?.mcpServers?.map(i=>[i.id,_(i)])??[]);return Object.fromEntries((r?.mcpStatuses??[]).flatMap(i=>{const o=s.get(i.serverId);return o&&i.lastError?[[o,i.lastError]]:[]}))}),pr=a.createSelector((e,t)=>t?e.mcpSettings.byWorkspaceId[t]?.disabledServers??z:z),xi=a.createSelector((e,t)=>Object.keys(pr.select(e,t))),Fi=a.createSelector(e=>{const t=or.select(e),r=lr.select(e),s=dr.select(e),i=cr.select(e),o=ur.select(e);return t.map(l=>{const c=_(l)in i,h=s[_(l)]||[];let S=r[_(l)]||"disconnected";return c&&(S="disabled"),{...l,disabled:c,status:S,tools:h,toolCount:h.length,errorMessage:o[_(l)]}})});a.createSelector((e,t)=>e.mcpSettings.errorMessages[t]);const Ni=a.createSelector(e=>e.mcpSettings.lastImportedCount),Li=a.createSelector(e=>e.mcpSettings.advancedSaveStatus),Ui=a.createSelector(e=>e.mcpSettings.advancedSaveError),Vi=["agentFeatures.backgroundHooks","agentFeatures.hostExec","agentFeatures.scripts","agentFeatures.terminalAccess","agentFeatures.browserAutomation","agentFeatures.desktopControl","agentFeatures.richChatBlocks","agentFeatures.structuredQuestions","agentFeatures.secretRequests","agentFeatures.attentionRequests","agentFeatures.stateSnapshot","agentFeatures.prMonitor","agentFeatures.taskGraph","agentFeatures.peerAgents","agentFeatures.mcpTools"],fr=[{path:"agentFeatures.backgroundHooks",label:()=>n.settings_agentFeatures_backgroundHooks_label(),description:()=>n.settings_agentFeatures_backgroundHooks_description(),defaultValue:!0},{path:"agentFeatures.hostExec",label:()=>n.settings_agentFeatures_hostExec_label(),description:()=>n.settings_agentFeatures_hostExec_description(),defaultValue:!0},{path:"agentFeatures.scripts",label:()=>n.settings_agentFeatures_scripts_label(),description:()=>n.settings_agentFeatures_scripts_description(),defaultValue:!0},{path:"agentFeatures.terminalAccess",label:()=>n.settings_agentFeatures_terminalAccess_label(),description:()=>n.settings_agentFeatures_terminalAccess_description(),defaultValue:!0},{path:"agentFeatures.browserAutomation",label:()=>n.settings_agentFeatures_browserAutomation_label(),description:()=>n.settings_agentFeatures_browserAutomation_description(),defaultValue:!0},{path:"agentFeatures.desktopControl",label:()=>n.settings_agentFeatures_desktopControl_label(),description:()=>n.settings_agentFeatures_desktopControl_description(),defaultValue:!0},{path:"agentFeatures.richChatBlocks",label:()=>n.settings_agentFeatures_richChatBlocks_label(),description:()=>n.settings_agentFeatures_richChatBlocks_description(),defaultValue:!0},{path:"agentFeatures.structuredQuestions",label:()=>n.settings_agentFeatures_structuredQuestions_label(),description:()=>n.settings_agentFeatures_structuredQuestions_description(),defaultValue:!0},{path:"agentFeatures.secretRequests",label:()=>n.settings_agentFeatures_secretRequests_label(),description:()=>n.settings_agentFeatures_secretRequests_description(),defaultValue:!1},{path:"agentFeatures.attentionRequests",label:()=>n.settings_agentFeatures_attentionRequests_label(),description:()=>n.settings_agentFeatures_attentionRequests_description(),defaultValue:!0},{path:"agentFeatures.stateSnapshot",label:()=>n.settings_agentFeatures_stateSnapshot_label(),description:()=>n.settings_agentFeatures_stateSnapshot_description(),defaultValue:!0},{path:"agentFeatures.prMonitor",label:()=>n.settings_agentFeatures_prMonitor_label(),description:()=>n.settings_agentFeatures_prMonitor_description(),defaultValue:!0},{path:"agentFeatures.taskGraph",label:()=>n.settings_agentFeatures_taskGraph_label(),description:()=>n.settings_agentFeatures_taskGraph_description(),defaultValue:!0},{path:"agentFeatures.peerAgents",label:()=>n.settings_agentFeatures_peerAgents_label(),description:()=>n.settings_agentFeatures_peerAgents_description(),defaultValue:!0},{path:"agentFeatures.mcpTools",label:()=>n.settings_agentFeatures_mcpTools_label(),description:()=>n.settings_agentFeatures_mcpTools_description(),defaultValue:!0}],Wi=Object.fromEntries(fr.map(e=>[e.path,e.defaultValue]));export{xr as $,ii as A,G as B,Bs as C,Dr as D,Rs as E,fr as F,J as G,mt as H,js as I,Ks as J,E as K,Ws as L,Hs as M,rr as N,it as O,oi as P,ai as Q,Us as R,b as S,Vs as T,gt as U,$t as V,Ar as W,ws as X,ci as Y,sr as Z,li as _,Wi as a,Di as a$,Vr as a0,Jt as a1,hi as a2,se as a3,j as a4,fi as a5,ie as a6,re as a7,Si as a8,wi as a9,H as aA,Ke as aB,et as aC,tt as aD,Z as aE,Xe as aF,Qe as aG,Ye as aH,Ze as aI,Je as aJ,Zr as aK,Ut as aL,Lt as aM,Ls as aN,Fs as aO,Qr as aP,$r as aQ,Ns as aR,Qs as aS,Ui as aT,Li as aU,cr as aV,Oi as aW,Mi as aX,ur as aY,Ni as aZ,Pi as a_,bi as aa,yi as ab,_i as ac,mi as ad,vi as ae,gi as af,Xt as ag,Lr as ah,ti as ai,Hr as aj,Ai as ak,Ci as al,Ei as am,Ri as an,Ti as ao,xs as ap,Kr as aq,es as ar,Gr as as,si as at,Ss as au,Js as av,zr as aw,Yr as ax,Fr as ay,Ur as az,Vi as b,or as b0,Fi as b1,lr as b2,dr as b3,Os as b4,qr as b5,ki as b6,Xs as b7,Zs as b8,$s as b9,bs as bA,as as bB,us as bC,hs as bD,f as bE,ar as bF,pi as bG,ui as bH,xi as bI,Ii as bJ,ys as bK,ks as bL,Ds as bM,Pt as bN,Ps as bO,Ir as bP,Tr as bQ,Pr as bR,Cr as bS,Ft as bT,Er as bU,q as ba,Zt as bb,ei as bc,di as bd,ut as be,rs as bf,ss as bg,Xr as bh,ts as bi,jr as bj,Jr as bk,v as bl,Wr as bm,ri as bn,ee as bo,Nr as bp,vs as bq,cs as br,gs as bs,ms as bt,ds as bu,fs as bv,ps as bw,ls as bx,os as by,ns as bz,I as c,qs as d,Gs as e,zs as f,ni as g,Ms as h,vt as i,yt as j,_s as k,Es as l,Br as m,dt as n,lt as o,Ts as p,Mr as q,is as r,Or as s,Rr as t,As as u,Is as v,Ys as w,ht as x,ir as y,Cs as z};
@@ -1 +1 @@
1
- import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./C8chCNZC.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
1
+ import{ao as s}from"./B8o4lNgr.js";import{d as r}from"./CZFoI5QY.js";const t=()=>{const e=r;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},c={subscribe(e){return(s?o("page"):t().page).subscribe(e)}};function o(e){try{return t()[e]}catch{throw new Error(`Cannot subscribe to '${e}' store on the server outside of a Svelte component, as it is bound to the current request via component context. This prevents state from leaking between users.For more information, see https://svelte.dev/docs/kit/state-management#avoid-shared-state-on-the-server`)}}export{c as p};
@@ -1,4 +1,4 @@
1
- import{g as ae}from"./DLshetD4.js";import{s as oe}from"./BOK7tZ0u.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./DikRK37J.js";import{cC as fe}from"./PhuO6dVo.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],q=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:q}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:q}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,J=0,ie=2,K=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||K,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
1
+ import{g as ae}from"./C6NP7Wkf.js";import{s as oe}from"./DbdgMxO8.js";import{f as l,bC as C,aS as ce,bZ as le,aN as he,ax as G,aO as B,c2 as F,aZ as de,bk as ge,by as ue,as as pe}from"./Bmnp4Cni.js";import{cD as fe}from"./DQ_zmHT9.js";var Y=(function(){var i=l(function(D,s,n,a){for(n=n||{},a=D.length;a--;n[D[a]]=s);return n},"o"),e=[1,4],o=[1,13],g=[1,12],t=[1,15],h=[1,16],f=[1,20],y=[1,19],E=[6,7,8],_=[1,26],L=[1,24],w=[1,25],d=[6,7,11],R=[1,6,13,15,16,19,22],Z=[1,33],q=[1,34],A=[1,6,7,11,13,15,16,19,22],j={trace:l(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:l(function(s,n,a,c,p,r,$){var u=r.length-1;switch(p){case 6:case 7:return c;case 8:c.getLogger().trace("Stop NL ");break;case 9:c.getLogger().trace("Stop EOF ");break;case 11:c.getLogger().trace("Stop NL2 ");break;case 12:c.getLogger().trace("Stop EOF2 ");break;case 15:c.getLogger().info("Node: ",r[u].id),c.addNode(r[u-1].length,r[u].id,r[u].descr,r[u].type);break;case 16:c.getLogger().trace("Icon: ",r[u]),c.decorateNode({icon:r[u]});break;case 17:case 21:c.decorateNode({class:r[u]});break;case 18:c.getLogger().trace("SPACELIST");break;case 19:c.getLogger().trace("Node: ",r[u].id),c.addNode(0,r[u].id,r[u].descr,r[u].type);break;case 20:c.decorateNode({icon:r[u]});break;case 25:c.getLogger().trace("node found ..",r[u-2]),this.$={id:r[u-1],descr:r[u-1],type:c.getType(r[u-2],r[u])};break;case 26:this.$={id:r[u],descr:r[u],type:c.nodeType.DEFAULT};break;case 27:c.getLogger().trace("node found ..",r[u-3]),this.$={id:r[u-3],descr:r[u-1],type:c.getType(r[u-2],r[u])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:e},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:e},{6:o,7:[1,10],9:9,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(E,[2,3]),{1:[2,2]},i(E,[2,4]),i(E,[2,5]),{1:[2,6],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:o,9:22,12:11,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},{6:_,7:L,10:23,11:w},i(d,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:f,22:y}),i(d,[2,18]),i(d,[2,19]),i(d,[2,20]),i(d,[2,21]),i(d,[2,23]),i(d,[2,24]),i(d,[2,26],{19:[1,30]}),{20:[1,31]},{6:_,7:L,10:32,11:w},{1:[2,7],6:o,12:21,13:g,14:14,15:t,16:h,17:17,18:18,19:f,22:y},i(R,[2,14],{7:Z,11:q}),i(A,[2,8]),i(A,[2,9]),i(A,[2,10]),i(d,[2,15]),i(d,[2,16]),i(d,[2,17]),{20:[1,35]},{21:[1,36]},i(R,[2,13],{7:Z,11:q}),i(A,[2,11]),i(A,[2,12]),{21:[1,37]},i(d,[2,25]),i(d,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:l(function(s,n){if(n.recoverable)this.trace(s);else{var a=new Error(s);throw a.hash=n,a}},"parseError"),parse:l(function(s){var n=this,a=[0],c=[],p=[null],r=[],$=this.table,u="",M=0,J=0,ie=2,K=1,ne=r.slice.call(arguments,1),m=Object.create(this.lexer),v={yy:{}};for(var H in this.yy)Object.prototype.hasOwnProperty.call(this.yy,H)&&(v.yy[H]=this.yy[H]);m.setInput(s,v.yy),v.yy.lexer=m,v.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var W=m.yylloc;r.push(W);var se=m.options&&m.options.ranges;typeof v.yy.parseError=="function"?this.parseError=v.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function re(b){a.length=a.length-2*b,p.length=p.length-b,r.length=r.length-b}l(re,"popStack");function Q(){var b;return b=c.pop()||m.lex()||K,typeof b!="number"&&(b instanceof Array&&(c=b,b=c.pop()),b=n.symbols_[b]||b),b}l(Q,"lex");for(var k,T,S,z,O={},U,N,ee,V;;){if(T=a[a.length-1],this.defaultActions[T]?S=this.defaultActions[T]:((k===null||typeof k>"u")&&(k=Q()),S=$[T]&&$[T][k]),typeof S>"u"||!S.length||!S[0]){var X="";V=[];for(U in $[T])this.terminals_[U]&&U>ie&&V.push("'"+this.terminals_[U]+"'");m.showPosition?X="Parse error on line "+(M+1)+`:
2
2
  `+m.showPosition()+`
3
3
  Expecting `+V.join(", ")+", got '"+(this.terminals_[k]||k)+"'":X="Parse error on line "+(M+1)+": Unexpected "+(k==K?"end of input":"'"+(this.terminals_[k]||k)+"'"),this.parseError(X,{text:m.match,token:this.terminals_[k]||k,line:m.yylineno,loc:W,expected:V})}if(S[0]instanceof Array&&S.length>1)throw new Error("Parse Error: multiple actions possible at state: "+T+", token: "+k);switch(S[0]){case 1:a.push(k),p.push(m.yytext),r.push(m.yylloc),a.push(S[1]),k=null,J=m.yyleng,u=m.yytext,M=m.yylineno,W=m.yylloc;break;case 2:if(N=this.productions_[S[1]][1],O.$=p[p.length-N],O._$={first_line:r[r.length-(N||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(N||1)].first_column,last_column:r[r.length-1].last_column},se&&(O._$.range=[r[r.length-(N||1)].range[0],r[r.length-1].range[1]]),z=this.performAction.apply(O,[u,J,M,v.yy,S[1],p,r].concat(ne)),typeof z<"u")return z;N&&(a=a.slice(0,-1*N*2),p=p.slice(0,-1*N),r=r.slice(0,-1*N)),a.push(this.productions_[S[1]][0]),p.push(O.$),r.push(O._$),ee=$[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},te=(function(){var D={EOF:1,parseError:l(function(n,a){if(this.yy.parser)this.yy.parser.parseError(n,a);else throw new Error(n)},"parseError"),setInput:l(function(s,n){return this.yy=n||this.yy||{},this._input=s,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:l(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var n=s.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:l(function(s){var n=s.length,a=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:l(function(){return this._more=!0,this},"more"),reject:l(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:l(function(s){this.unput(this.match.slice(s))},"less"),pastInput:l(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:l(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:l(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{f as o}from"./DikRK37J.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
1
+ import{f as o}from"./Bmnp4Cni.js";var c=1;function i(){if(!(typeof globalThis>"u"))return globalThis}o(i,"getCaptureGlobal");function p(){return!!i()?.mermaidCaptureSizes}o(p,"shouldCaptureSizes");function u(){return typeof location>"u"?"browser-dev":`${location.pathname}${location.search}`}o(u,"capturedFromLocation");function d(n,r){const t=i();if(!t)return;const e=r.node(),s=((e&&"ownerSVGElement"in e?e.ownerSVGElement:null)??e)?.id??"(unknown)";t.mermaidCapturedSizes??=[];const a={svgId:s,sizes:n};t.mermaidCapturedSizes.push(a),t.mermaidLastCapturedSizes=a}o(d,"emitCapturedSizes");function m(n,r){const t=[];for(const e of r.nodes)e.isGroup||t.push({id:e.id,width:e.width??0,height:e.height??0});t.length!==0&&d({metadata:{captureVersion:c,capturedAt:new Date().toISOString(),capturedFrom:u()},nodes:t},n)}o(m,"captureNodeSizes");export{m as captureNodeSizes,p as shouldCaptureSizes};
@@ -1,4 +1,4 @@
1
- import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./BeYVLVXM.js";import{c3 as Q,g as a}from"./DikRK37J.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
1
+ import{aI as $t,O as jt,aF as Rt,K as Ft,aG as Vt,L as Wt,a as g,N as gt,x as Gt,aK as Ht,k as Ut,p as Yt}from"./CRQOCmwo.js";import{c3 as Q,g as a}from"./Bmnp4Cni.js";import{o as qt}from"./CmKTTxBW.js";import{d as Kt}from"./CvOaoHrI.js";function ot(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s<c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s<h||s===void 0&&h>=h)&&(s=h)}return s}a(ot,"max");function pt(t,i){let s;if(i===void 0)for(const c of t)c!=null&&(s>c||s===void 0&&c>=c)&&(s=c);else{let c=-1;for(let h of t)(h=i(h,++c,t))!=null&&(s>h||s===void 0&&h>=h)&&(s=h)}return s}a(pt,"min");function Z(t,i){let s=0;if(i===void 0)for(let c of t)(c=+c)&&(s+=c);else{let c=-1;for(let h of t)(h=+i(h,++c,t))&&(s+=h)}return s}a(Z,"sum");function _t(t){return t.target.depth}a(_t,"targetDepth");function vt(t){return t.depth}a(vt,"left");function bt(t,i){return i-1-t.height}a(bt,"right");function kt(t,i){return t.sourceLinks.length?t.depth:i-1}a(kt,"justify");function St(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,_t)-1:0}a(St,"center");function K(t){return function(){return t}}a(K,"constant");function at(t,i){return X(t.source,i.source)||t.index-i.index}a(at,"ascendingSourceBreadth");function lt(t,i){return X(t.target,i.target)||t.index-i.index}a(lt,"ascendingTargetBreadth");function X(t,i){return t.y0-i.y0}a(X,"ascendingBreadth");function J(t){return t.value}a(J,"value");function Lt(t){return t.index}a(Lt,"defaultId");function wt(t){return t.nodes}a(wt,"defaultNodes");function Tt(t){return t.links}a(Tt,"defaultLinks");function ct(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}a(ct,"find");function ut({nodes:t}){for(const i of t){let s=i.y0,c=s;for(const h of i.sourceLinks)h.y0=s+h.width/2,s+=h.width;for(const h of i.targetLinks)h.y1=c+h.width/2,c+=h.width}}a(ut,"computeLinkBreadths");function Et(){let t=0,i=0,s=1,c=1,h=24,v=8,d,m=Lt,o=kt,l,f,x=wt,b=Tt,p=6;function _(){const n={nodes:x.apply(null,arguments),links:b.apply(null,arguments)};return N(n),A(n),M(n),z(n),L(n),ut(n),n}a(_,"sankey"),_.update=function(n){return ut(n),n},_.nodeId=function(n){return arguments.length?(m=typeof n=="function"?n:K(n),_):m},_.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:K(n),_):o},_.nodeSort=function(n){return arguments.length?(l=n,_):l},_.nodeWidth=function(n){return arguments.length?(h=+n,_):h},_.nodePadding=function(n){return arguments.length?(v=d=+n,_):v},_.nodes=function(n){return arguments.length?(x=typeof n=="function"?n:K(n),_):x},_.links=function(n){return arguments.length?(b=typeof n=="function"?n:K(n),_):b},_.linkSort=function(n){return arguments.length?(f=n,_):f},_.size=function(n){return arguments.length?(t=i=0,s=+n[0],c=+n[1],_):[s-t,c-i]},_.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],c=+n[1][1],_):[[t,i],[s,c]]},_.iterations=function(n){return arguments.length?(p=+n,_):p};function N({nodes:n,links:y}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const u=new Map(n.map((e,r)=>[m(e,r,n),e]));for(const[e,r]of y.entries()){r.index=e;let{source:k,target:S}=r;typeof k!="object"&&(k=r.source=ct(u,k)),typeof S!="object"&&(S=r.target=ct(u,S)),k.sourceLinks.push(r),S.targetLinks.push(r)}if(f!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(f),r.sort(f)}a(N,"computeNodeLinks");function A({nodes:n}){for(const y of n)y.value=y.fixedValue===void 0?Math.max(Z(y.sourceLinks,J),Z(y.targetLinks,J)):y.fixedValue}a(A,"computeNodeValues");function M({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.depth=r;for(const{target:S}of k.sourceLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(M,"computeNodeDepths");function z({nodes:n}){const y=n.length;let u=new Set(n),e=new Set,r=0;for(;u.size;){for(const k of u){k.height=r;for(const{source:S}of k.targetLinks)e.add(S)}if(++r>y)throw new Error("circular link");u=e,e=new Set}}a(z,"computeNodeHeights");function C({nodes:n}){const y=ot(n,r=>r.depth)+1,u=(s-t-h)/(y-1),e=new Array(y);for(const r of n){const k=Math.max(0,Math.min(y-1,Math.floor(o.call(null,r,y))));r.layer=k,r.x0=t+k*u,r.x1=r.x0+h,e[k]?e[k].push(r):e[k]=[r]}if(l)for(const r of e)r.sort(l);return e}a(C,"computeNodeLayers");function D(n){const y=pt(n,u=>(c-i-(u.length-1)*d)/Z(u,J));for(const u of n){let e=i;for(const r of u){r.y0=e,r.y1=e+r.value*y,e=r.y1+d;for(const k of r.sourceLinks)k.width=k.value*y}e=(c-e+d)/(u.length+1);for(let r=0;r<u.length;++r){const k=u[r];k.y0+=e*(r+1),k.y1+=e*(r+1)}w(u)}}a(D,"initializeNodeBreadths");function L(n){const y=C(n);d=Math.min(v,(c-i)/(ot(y,u=>u.length)-1)),D(y);for(let u=0;u<p;++u){const e=Math.pow(.99,u),r=Math.max(1-e,(u+1)/p);R(y,e,r),P(y,e,r)}}a(L,"computeNodeBreadths");function P(n,y,u){for(let e=1,r=n.length;e<r;++e){const k=n[e];for(const S of k){let E=0,V=0;for(const{source:Y,value:st}of S.targetLinks){let q=st*(S.layer-Y.layer);E+=O(Y,S)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(P,"relaxLeftToRight");function R(n,y,u){for(let e=n.length,r=e-2;r>=0;--r){const k=n[r];for(const S of k){let E=0,V=0;for(const{target:Y,value:st}of S.sourceLinks){let q=st*(Y.layer-S.layer);E+=T(S,Y)*q,V+=q}if(!(V>0))continue;let U=(E/V-S.y0)*y;S.y0+=U,S.y1+=U,j(S)}l===void 0&&k.sort(X),$(k,u)}}a(R,"relaxRightToLeft");function $(n,y){const u=n.length>>1,e=n[u];I(n,e.y0-d,u-1,y),F(n,e.y1+d,u+1,y),I(n,c,n.length-1,y),F(n,i,0,y)}a($,"resolveCollisions");function F(n,y,u,e){for(;u<n.length;++u){const r=n[u],k=(y-r.y0)*e;k>1e-6&&(r.y0+=k,r.y1+=k),y=r.y1+d}}a(F,"resolveCollisionsTopToBottom");function I(n,y,u,e){for(;u>=0;--u){const r=n[u],k=(r.y1-y)*e;k>1e-6&&(r.y0-=k,r.y1-=k),y=r.y0-d}}a(I,"resolveCollisionsBottomToTop");function j({sourceLinks:n,targetLinks:y}){if(f===void 0){for(const{source:{sourceLinks:u}}of y)u.sort(lt);for(const{target:{targetLinks:u}}of n)u.sort(at)}}a(j,"reorderNodeLinks");function w(n){if(f===void 0)for(const{sourceLinks:y,targetLinks:u}of n)y.sort(lt),u.sort(at)}a(w,"reorderLinks");function O(n,y){let u=n.y0-(n.sourceLinks.length-1)*d/2;for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u+=r+d}for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u-=r}return u}a(O,"targetTop");function T(n,y){let u=y.y0-(y.targetLinks.length-1)*d/2;for(const{source:e,width:r}of y.targetLinks){if(e===n)break;u+=r+d}for(const{target:e,width:r}of n.sourceLinks){if(e===y)break;u-=r}return u}return a(T,"sourceTop"),_}a(Et,"Sankey");var ht=Math.PI,ft=2*ht,W=1e-6,Xt=ft-W;function tt(){this._x0=this._y0=this._x1=this._y1=null,this._=""}a(tt,"Path");function mt(){return new tt}a(mt,"path");tt.prototype=mt.prototype={constructor:tt,moveTo:a(function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},"moveTo"),closePath:a(function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},"closePath"),lineTo:a(function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},"lineTo"),quadraticCurveTo:a(function(t,i,s,c){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+c)},"quadraticCurveTo"),bezierCurveTo:a(function(t,i,s,c,h,v){this._+="C"+ +t+","+ +i+","+ +s+","+ +c+","+(this._x1=+h)+","+(this._y1=+v)},"bezierCurveTo"),arcTo:a(function(t,i,s,c,h){t=+t,i=+i,s=+s,c=+c,h=+h;var v=this._x1,d=this._y1,m=s-t,o=c-i,l=v-t,f=d-i,x=l*l+f*f;if(h<0)throw new Error("negative radius: "+h);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(x>W)if(!(Math.abs(f*m-o*l)>W)||!h)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var b=s-v,p=c-d,_=m*m+o*o,N=b*b+p*p,A=Math.sqrt(_),M=Math.sqrt(x),z=h*Math.tan((ht-Math.acos((_+x-N)/(2*A*M)))/2),C=z/M,D=z/A;Math.abs(C-1)>W&&(this._+="L"+(t+C*l)+","+(i+C*f)),this._+="A"+h+","+h+",0,0,"+ +(f*b>l*p)+","+(this._x1=t+D*m)+","+(this._y1=i+D*o)}},"arcTo"),arc:a(function(t,i,s,c,h,v){t=+t,i=+i,s=+s,v=!!v;var d=s*Math.cos(c),m=s*Math.sin(c),o=t+d,l=i+m,f=1^v,x=v?c-h:h-c;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+l:(Math.abs(this._x1-o)>W||Math.abs(this._y1-l)>W)&&(this._+="L"+o+","+l),s&&(x<0&&(x=x%ft+ft),x>Xt?this._+="A"+s+","+s+",0,1,"+f+","+(t-d)+","+(i-m)+"A"+s+","+s+",0,1,"+f+","+(this._x1=o)+","+(this._y1=l):x>W&&(this._+="A"+s+","+s+",0,"+ +(x>=ht)+","+f+","+(this._x1=t+s*Math.cos(h))+","+(this._y1=i+s*Math.sin(h))))},"arc"),rect:a(function(t,i,s,c){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +c+"h"+-s+"Z"},"rect"),toString:a(function(){return this._},"toString")};var Qt=mt;function yt(t){return a(function(){return t},"constant")}a(yt,"default");function At(t){return t[0]}a(At,"x");function Nt(t){return t[1]}a(Nt,"y");var Zt=Array.prototype.slice;function Mt(t){return t.source}a(Mt,"linkSource");function Ct(t){return t.target}a(Ct,"linkTarget");function Pt(t){var i=Mt,s=Ct,c=At,h=Nt,v=null;function d(){var m,o=Zt.call(arguments),l=i.apply(this,o),f=s.apply(this,o);if(v||(v=m=Qt()),t(v,+c.apply(this,(o[0]=l,o)),+h.apply(this,o),+c.apply(this,(o[0]=f,o)),+h.apply(this,o)),m)return v=null,m+""||null}return a(d,"link"),d.source=function(m){return arguments.length?(i=m,d):i},d.target=function(m){return arguments.length?(s=m,d):s},d.x=function(m){return arguments.length?(c=typeof m=="function"?m:yt(+m),d):c},d.y=function(m){return arguments.length?(h=typeof m=="function"?m:yt(+m),d):h},d.context=function(m){return arguments.length?(v=m??null,d):v},d}a(Pt,"link");function It(t,i,s,c,h){t.moveTo(i,s),t.bezierCurveTo(i=(i+c)/2,s,i,h,c,h)}a(It,"curveHorizontal");function Ot(){return Pt(It)}a(Ot,"linkHorizontal");function zt(t){return[t.source.x1,t.y0]}a(zt,"horizontalSource");function Bt(t){return[t.target.x0,t.y1]}a(Bt,"horizontalTarget");function Dt(){return Ot().source(zt).target(Bt)}a(Dt,"default");var dt=(function(){var t=g(function(m,o,l,f){for(l=l||{},f=m.length;f--;l[m[f]]=o);return l},"o"),i=[1,9],s=[1,10],c=[1,5,10,12],h={trace:g(a(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:g(a(function(o,l,f,x,b,p,_){var N=p.length-1;switch(b){case 7:const A=x.findOrCreateNode(p[N-4].trim().replaceAll('""','"')),M=x.findOrCreateNode(p[N-2].trim().replaceAll('""','"')),z=parseFloat(p[N].trim());x.addLink(A,M,z);break;case 8:case 9:case 11:this.$=p[N];break;case 10:this.$=p[N-1];break}},"anonymous"),"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(c,[2,8]),t(c,[2,9]),{19:[1,16]},t(c,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(c,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:g(a(function(o,l){if(l.recoverable)this.trace(o);else{var f=new Error(o);throw f.hash=l,f}},"parseError"),"parseError"),parse:g(a(function(o){var l=this,f=[0],x=[],b=[null],p=[],_=this.table,N="",A=0,M=0,z=2,C=1,D=p.slice.call(arguments,1),L=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);L.setInput(o,P.yy),P.yy.lexer=L,P.yy.parser=this,typeof L.yylloc>"u"&&(L.yylloc={});var $=L.yylloc;p.push($);var F=L.options&&L.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function I(E){f.length=f.length-2*E,b.length=b.length-E,p.length=p.length-E}a(I,"popStack"),g(I,"popStack");function j(){var E;return E=x.pop()||L.lex()||C,typeof E!="number"&&(E instanceof Array&&(x=E,E=x.pop()),E=l.symbols_[E]||E),E}a(j,"lex"),g(j,"lex");for(var w,O,T,n,y={},u,e,r,k;;){if(O=f[f.length-1],this.defaultActions[O]?T=this.defaultActions[O]:((w===null||typeof w>"u")&&(w=j()),T=_[O]&&_[O][w]),typeof T>"u"||!T.length||!T[0]){var S="";k=[];for(u in _[O])this.terminals_[u]&&u>z&&k.push("'"+this.terminals_[u]+"'");L.showPosition?S="Parse error on line "+(A+1)+`:
2
2
  `+L.showPosition()+`
3
3
  Expecting `+k.join(", ")+", got '"+(this.terminals_[w]||w)+"'":S="Parse error on line "+(A+1)+": Unexpected "+(w==C?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(S,{text:L.match,token:this.terminals_[w]||w,line:L.yylineno,loc:$,expected:k})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+O+", token: "+w);switch(T[0]){case 1:f.push(w),b.push(L.yytext),p.push(L.yylloc),f.push(T[1]),w=null,M=L.yyleng,N=L.yytext,A=L.yylineno,$=L.yylloc;break;case 2:if(e=this.productions_[T[1]][1],y.$=b[b.length-e],y._$={first_line:p[p.length-(e||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(e||1)].first_column,last_column:p[p.length-1].last_column},F&&(y._$.range=[p[p.length-(e||1)].range[0],p[p.length-1].range[1]]),n=this.performAction.apply(y,[N,M,A,P.yy,T[1],b,p].concat(D)),typeof n<"u")return n;e&&(f=f.slice(0,-1*e*2),b=b.slice(0,-1*e),p=p.slice(0,-1*e)),f.push(this.productions_[T[1]][0]),b.push(y.$),p.push(y._$),r=_[f[f.length-2]][f[f.length-1]],f.push(r);break;case 3:return!0}}return!0},"parse"),"parse")},v=(function(){var m={EOF:1,parseError:g(a(function(l,f){if(this.yy.parser)this.yy.parser.parseError(l,f);else throw new Error(l)},"parseError"),"parseError"),setInput:g(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:g(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:g(function(o){var l=o.length,f=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var x=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===x.length?this.yylloc.first_column:0)+x[x.length-f.length].length-f[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:g(function(){return this._more=!0,this},"more"),reject:g(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:g(function(o){this.unput(this.match.slice(o))},"less"),pastInput:g(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:g(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:g(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -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"./DEI12D8u.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"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Ne,d as se}from"./KLMKvNSD.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./FDVvdcz2.js";import{A as aa,af as na,ae as sa}from"./JWpKjkZt.js";import"./BAR22MDD.js";import{ak as ra,aA as oa,am as Aa,an as ka,ao as We,af as ia,c as $a,o as Ta,dp as Ca,aM as Sa,ap as Na}from"./CE-1ma0H.js";import{R as Fa}from"./C8gv124k.js";import{F as pe,bu as Oa,bb as Ra,az as Ma,aR as Wa,ct as Da}from"./BxuhDHqB.js";import{H as Ba}from"./Dr6lXyco.js";import{e as La}from"./BFnOOmhf.js";import{s as Pa}from"./C__5IrZC.js";import{f as Ea}from"./BdS003Kb.js";import{c as Nt,G2 as Oe,mv as Ga,fr as za,bP as ja,qA as Ka,sA as Ha}from"./X8KOCQId.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(E,"$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),P=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),E=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"./D4MoKNoK.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"./B8o4lNgr.js";import{k as Xt,I as ea,l as ne,h as jt,s as gt,i as Ne,d as se}from"./WVYGrHqE.js";import{b as ba}from"./D2g8BuR1.js";import{f as Ut}from"./DgFojmqv.js";import{A as aa,af as na,ae as sa}from"./5BmKVYc1.js";import"./WZHg24tN.js";import{ak as ra,aA as oa,am as Aa,an as ka,ao as We,af as ia,c as $a,o as Ta,dp as Ca,aM as Sa,ap as Na}from"./dimBDqRX.js";import{R as Fa}from"./BjO6mATN.js";import{F as pe,bu as Oa,bb as Ra,az as Ma,aR as Wa,ct as Da}from"./CG5J-qd_.js";import{H as Ba}from"./BQqtq_EY.js";import{e as La}from"./BMBobKUo.js";import{s as Pa}from"./rL78ODLZ.js";import{f as Ea}from"./BLjxHwvZ.js";import{c as Nt,G2 as Oe,mv as Ga,fr as za,bP as ja,qA as Ka,sA as Ha}from"./C51KzdSG.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(E,"$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),P=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),E=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(P).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(Pt=>D(pt,Pt),[()=>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(Pt=>D(pt,Pt),[()=>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 P=rn(),I=Yt(P),E=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(E,i().name)),_(x,P)},$$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 Pt=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(Pt):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 Et=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Et))/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)}