@intent-hq/web 2.351.0 → 2.352.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 (275) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.Dgd1ZLTR.css +1 -0
  3. package/web/app/immutable/chunks/{N7G-ZTah.js → -lzAI0Yg.js} +5 -5
  4. package/web/app/immutable/chunks/{67kYB1lt.js → 3DUg3Vrc.js} +1 -1
  5. package/web/app/immutable/chunks/{BSkWWR3g.js → 42Hi6Nev.js} +1 -1
  6. package/web/app/immutable/chunks/{Cw23SInT.js → 4dL6nLyL.js} +1 -1
  7. package/web/app/immutable/chunks/{CNPNgdra.js → 4fLmPVdQ.js} +1 -1
  8. package/web/app/immutable/chunks/{zB3SalmM.js → 4gwN8kRi.js} +1 -1
  9. package/web/app/immutable/chunks/{Bkkc9nPJ.js → 61CqOAVf.js} +3 -3
  10. package/web/app/immutable/chunks/{D6ncbN-K.js → 6J2j9GGS.js} +1 -1
  11. package/web/app/immutable/chunks/{DipCXz5L.js → 6cjeTxFJ.js} +1 -1
  12. package/web/app/immutable/chunks/{CIm0iT4E.js → 6dKWFbhS.js} +1 -1
  13. package/web/app/immutable/chunks/{Dy3sS5WY.js → 9cOnZvFz.js} +1 -1
  14. package/web/app/immutable/chunks/{BjVx5o0n.js → 9zOi9r5I.js} +1 -1
  15. package/web/app/immutable/chunks/A4OD-mjJ.js +1 -0
  16. package/web/app/immutable/chunks/{ChD6V-mA.js → AnpLuuuk.js} +1 -1
  17. package/web/app/immutable/chunks/{De70D2Lx.js → B1s_9zgm.js} +2 -2
  18. package/web/app/immutable/chunks/{XVViy8ZW.js → B32BlPhm.js} +1 -1
  19. package/web/app/immutable/chunks/{CTvwRPyF.js → B3I1nFXA.js} +1 -1
  20. package/web/app/immutable/chunks/{bV1WTvQr.js → B3Wey9bw.js} +1 -1
  21. package/web/app/immutable/chunks/{AyGecNlS.js → B48wzP5i.js} +1 -1
  22. package/web/app/immutable/chunks/{BrR0973A.js → B4qnea7H.js} +1 -1
  23. package/web/app/immutable/chunks/{Bpkh7IXN.js → B58e63dk.js} +1 -1
  24. package/web/app/immutable/chunks/{dvtNrmBJ.js → B5oIPQ5b.js} +1 -1
  25. package/web/app/immutable/chunks/{Cxn17X4d.js → B6eIRRKX.js} +2 -2
  26. package/web/app/immutable/chunks/{BuupGai6.js → B6lWPidK.js} +1 -1
  27. package/web/app/immutable/chunks/{DuPQa1Hv.js → B7oLLIgw.js} +4 -4
  28. package/web/app/immutable/chunks/{DcxuGfvW.js → B82ywBwW.js} +1 -1
  29. package/web/app/immutable/chunks/{B6bPIJ1k.js → B87_3X7t.js} +1 -1
  30. package/web/app/immutable/chunks/{Cy3svQNQ.js → B8PxK7sP.js} +1 -1
  31. package/web/app/immutable/chunks/{BPIrwIPC.js → B8u7Bszh.js} +1 -1
  32. package/web/app/immutable/chunks/{UMKs78qL.js → B9Ccf4_O.js} +1 -1
  33. package/web/app/immutable/chunks/{B-TDUD-n.js → BA4kNZus.js} +1 -1
  34. package/web/app/immutable/chunks/{vLUkS5Lr.js → BAj9Av-i.js} +1 -1
  35. package/web/app/immutable/chunks/{VIOarPUD.js → BAkYMES1.js} +1 -1
  36. package/web/app/immutable/chunks/{C2QAZ2iP.js → BAp1A2ZH.js} +1 -1
  37. package/web/app/immutable/chunks/{C_akaBgq.js → BEpQx2rq.js} +1 -1
  38. package/web/app/immutable/chunks/{jyFhDlZn.js → BGkKDEs0.js} +1 -1
  39. package/web/app/immutable/chunks/{DGaDkdng.js → BIQ14Jou.js} +1 -1
  40. package/web/app/immutable/chunks/{B0QrNgSj.js → BJ4sw9rR.js} +1 -1
  41. package/web/app/immutable/chunks/{BTLU_fQH.js → BM7Fn-M6.js} +1 -1
  42. package/web/app/immutable/chunks/{B-hKl_xx.js → BMQBnpVJ.js} +1 -1
  43. package/web/app/immutable/chunks/BMYSQl-k.js +19 -0
  44. package/web/app/immutable/chunks/{B5ekpGAe.js → BO5Pq4fi.js} +1 -1
  45. package/web/app/immutable/chunks/{C1zdYplM.js → BQYuNS07.js} +1 -1
  46. package/web/app/immutable/chunks/{Ch2DvoYt.js → BQpZAVZ0.js} +1 -1
  47. package/web/app/immutable/chunks/{CccgSyFt.js → BR9y4bsr.js} +2 -2
  48. package/web/app/immutable/chunks/{CKmgmdFa.js → BROObX9U.js} +1 -1
  49. package/web/app/immutable/chunks/{ClCe1k4i.js → BReF7PxO.js} +1 -1
  50. package/web/app/immutable/chunks/{Ghm7WpFi.js → BS0GmsgM.js} +1 -1
  51. package/web/app/immutable/chunks/BUAFIktJ.js +1 -0
  52. package/web/app/immutable/chunks/{D9XKGcAY.js → BXyNrc2B.js} +1 -1
  53. package/web/app/immutable/chunks/BYO1ou6X.js +1 -0
  54. package/web/app/immutable/chunks/{QFwPCSKD.js → B_sYr-qY.js} +1 -1
  55. package/web/app/immutable/chunks/{Cc0uYvgR.js → BeeeYKV6.js} +1 -1
  56. package/web/app/immutable/chunks/{jmGUW687.js → Bfba9qCM.js} +1 -1
  57. package/web/app/immutable/chunks/{C96Cos0M.js → BfmiyhX4.js} +1 -1
  58. package/web/app/immutable/chunks/{Dv-TQImR.js → BgOj6lPu.js} +1 -1
  59. package/web/app/immutable/chunks/{BA4L4UPI.js → BgasfqLM.js} +1 -1
  60. package/web/app/immutable/chunks/{QLXfiC8k.js → BhzNHo5H.js} +1 -1
  61. package/web/app/immutable/chunks/{BsDTYuK1.js → Bi2Crhsq.js} +1 -1
  62. package/web/app/immutable/chunks/{DwqB2LW1.js → BlsliAvk.js} +1 -1
  63. package/web/app/immutable/chunks/{CMWevjI7.js → Bmm9qguf.js} +1 -1
  64. package/web/app/immutable/chunks/{G1rQ1ZLS.js → BnfhlAnU.js} +1 -1
  65. package/web/app/immutable/chunks/{4XRamNN4.js → BodHilN5.js} +1 -1
  66. package/web/app/immutable/chunks/{BoT__Uvu.js → BotG4DRY.js} +1 -1
  67. package/web/app/immutable/chunks/{C4UmUQ0t.js → Bs7PlXA3.js} +1 -1
  68. package/web/app/immutable/chunks/{DQjekoSU.js → BszXPYBq.js} +1 -1
  69. package/web/app/immutable/chunks/{CCw4KHZp.js → Buh7J53B.js} +1 -1
  70. package/web/app/immutable/chunks/{ClgmQqA9.js → Bvd0DfwC.js} +1 -1
  71. package/web/app/immutable/chunks/{BJdaIUzQ.js → Bw0E8NsL.js} +1 -1
  72. package/web/app/immutable/chunks/{CYlvyU3U.js → Bz6dDdb9.js} +1 -1
  73. package/web/app/immutable/chunks/{CB3bw4PL.js → BzNn-vV2.js} +1 -1
  74. package/web/app/immutable/chunks/{B043Z8mk.js → C-_Lx3Nm.js} +1 -1
  75. package/web/app/immutable/chunks/C-d_8VyS.js +2 -0
  76. package/web/app/immutable/chunks/{DQ8vH0VY.js → C12ljpSn.js} +1 -1
  77. package/web/app/immutable/chunks/{Sa9G_k7P.js → C1WXXen7.js} +1 -1
  78. package/web/app/immutable/chunks/{BH-zWM3a.js → C1X9EbCK.js} +3 -3
  79. package/web/app/immutable/chunks/{0-xAXZgf.js → C1l_AdDU.js} +1 -1
  80. package/web/app/immutable/chunks/{CWUa486r.js → C2Y-3LOO.js} +1 -1
  81. package/web/app/immutable/chunks/{BlcZflKW.js → C4rL7fPq.js} +1 -1
  82. package/web/app/immutable/chunks/C5H4Pe0T.js +1 -0
  83. package/web/app/immutable/chunks/{C9jK2F--.js → C79qeQUX.js} +1 -1
  84. package/web/app/immutable/chunks/{BYjUWrg8.js → C7lasS44.js} +1 -1
  85. package/web/app/immutable/chunks/{CuHfgFFh.js → CDFph9XW.js} +1 -1
  86. package/web/app/immutable/chunks/{DEVAGsyG.js → CDJiCuQl.js} +1 -1
  87. package/web/app/immutable/chunks/{D542lbvk.js → CDhg3msv.js} +2 -2
  88. package/web/app/immutable/chunks/{a6ao35lO.js → CDvr6QES.js} +1 -1
  89. package/web/app/immutable/chunks/{Bd6Rwh69.js → CGtiJZ6Q.js} +2 -2
  90. package/web/app/immutable/chunks/{D07rIrLM.js → CGuBCqy6.js} +1 -1
  91. package/web/app/immutable/chunks/{BXYFidlw.js → CH2B1dsg.js} +1 -1
  92. package/web/app/immutable/chunks/{NFc5A7UL.js → CLL457e6.js} +1 -1
  93. package/web/app/immutable/chunks/{D9WrXbf9.js → CLi8c-Jc.js} +1 -1
  94. package/web/app/immutable/chunks/{BDX4YTR9.js → CMbQPqLg.js} +1 -1
  95. package/web/app/immutable/chunks/{BdKft7gn.js → CMeXe72Y.js} +1 -1
  96. package/web/app/immutable/chunks/{C-cC659R.js → CNgwOiTE.js} +1 -1
  97. package/web/app/immutable/chunks/{BBCbq-hE.js → COO6ldt4.js} +1 -1
  98. package/web/app/immutable/chunks/{sxpeFI4o.js → CPY58-tp.js} +1 -1
  99. package/web/app/immutable/chunks/CPjC-KKN.js +1 -0
  100. package/web/app/immutable/chunks/{B22owOuz.js → CRZhk1kc.js} +1 -1
  101. package/web/app/immutable/chunks/{CdXmpyDy.js → CRrFC3B8.js} +1 -1
  102. package/web/app/immutable/chunks/{DjE6Tn4o.js → CSDwAwlx.js} +1 -1
  103. package/web/app/immutable/chunks/{Dq9dLpt4.js → CUHqJ1Vg.js} +4 -4
  104. package/web/app/immutable/chunks/{CrkDo76r.js → CUolE7JW.js} +1 -1
  105. package/web/app/immutable/chunks/{25Qfa38y.js → CVxBES9o.js} +1 -1
  106. package/web/app/immutable/chunks/CWr4n77L.js +13 -0
  107. package/web/app/immutable/chunks/{Dy5C9WSY.js → CYYbdMIM.js} +1 -1
  108. package/web/app/immutable/chunks/{KcC0pRTT.js → CYqtKpzf.js} +1 -1
  109. package/web/app/immutable/chunks/{fKGM3H1S.js → CZ8DhcrQ.js} +1 -1
  110. package/web/app/immutable/chunks/{GfKb8O3O.js → CZd1y8kW.js} +1 -1
  111. package/web/app/immutable/chunks/{SXjX79W0.js → CZkLaz_S.js} +3 -3
  112. package/web/app/immutable/chunks/{DsewpLhd.js → CZwN60O3.js} +1 -1
  113. package/web/app/immutable/chunks/{BCQGaqgQ.js → C_Q5e0bX.js} +1 -1
  114. package/web/app/immutable/chunks/{Dc8XEwi0.js → CaZWRaBD.js} +1 -1
  115. package/web/app/immutable/chunks/{C4qlKK6F.js → CacD4jQL.js} +1 -1
  116. package/web/app/immutable/chunks/{D68o263s.js → CbBwTVsV.js} +1 -1
  117. package/web/app/immutable/chunks/{af7yduyJ.js → CbIRB05A.js} +37 -37
  118. package/web/app/immutable/chunks/{BHcKnFOT.js → Cbew16AD.js} +1 -1
  119. package/web/app/immutable/chunks/Ce8ODqPP.js +1 -0
  120. package/web/app/immutable/chunks/{CA8Jy4WC.js → Cep-BDRS.js} +1 -1
  121. package/web/app/immutable/chunks/{AOUBMpYk.js → CfdX4Lfl.js} +1 -1
  122. package/web/app/immutable/chunks/{D6kdeziR.js → CgbHaDpG.js} +1 -1
  123. package/web/app/immutable/chunks/{uoJ0nI_z.js → ChYZv5SJ.js} +1 -1
  124. package/web/app/immutable/chunks/{CBtX8-Aa.js → Ci51i12B.js} +1 -1
  125. package/web/app/immutable/chunks/{Crf39e2Q.js → Cjd2lqUF.js} +1 -1
  126. package/web/app/immutable/chunks/{DzIV-I7E.js → CltuTtDv.js} +1 -1
  127. package/web/app/immutable/chunks/{CYyISHjN.js → CmSGn2AH.js} +1 -1
  128. package/web/app/immutable/chunks/{CuCrpEmq.js → CmpBd6Tg.js} +1 -1
  129. package/web/app/immutable/chunks/{BhX-5zd9.js → CnTu6sc6.js} +1 -1
  130. package/web/app/immutable/chunks/{ByQWAkHB.js → Cnntv_QI.js} +1 -1
  131. package/web/app/immutable/chunks/{CCO5tijn.js → Co5bimwo.js} +1 -1
  132. package/web/app/immutable/chunks/{D2kFrNtb.js → CrxGBxMK.js} +1 -1
  133. package/web/app/immutable/chunks/{DvmJXjP_.js → Cs1vro6u.js} +1 -1
  134. package/web/app/immutable/chunks/{ugjOCd8V.js → Cx8Xjey1.js} +3 -3
  135. package/web/app/immutable/chunks/{C97vyu8P.js → CzoxGXV9.js} +1 -1
  136. package/web/app/immutable/chunks/{CrHTQDbT.js → D0ArSCdC.js} +1 -1
  137. package/web/app/immutable/chunks/{6pSwNbUy.js → D0fcdSwZ.js} +3 -3
  138. package/web/app/immutable/chunks/{jqiN8Ebl.js → D16yE-CH.js} +2 -2
  139. package/web/app/immutable/chunks/{DGb_dMRY.js → D1PZlLC_.js} +1 -1
  140. package/web/app/immutable/chunks/{DRiReCwX.js → D1nX-Mgh.js} +1 -1
  141. package/web/app/immutable/chunks/{Lx7mQEPN.js → D1z1qVWr.js} +1 -1
  142. package/web/app/immutable/chunks/{v23yk8Nl.js → D4uvglha.js} +1 -1
  143. package/web/app/immutable/chunks/{mgh5gPA4.js → D529OnQb.js} +1 -1
  144. package/web/app/immutable/chunks/{b1qSM27E.js → D5fTH_R4.js} +1 -1
  145. package/web/app/immutable/chunks/{DwR2QVtr.js → D62BIRhv.js} +1 -1
  146. package/web/app/immutable/chunks/{BTI1m7l8.js → D6eYnkBB.js} +1 -1
  147. package/web/app/immutable/chunks/{DtV2WjXp.js → D76YpzZQ.js} +1 -1
  148. package/web/app/immutable/chunks/{CjafAhxa.js → D7LYGcjf.js} +1 -1
  149. package/web/app/immutable/chunks/{BDbt9cuZ.js → D8Uhwh7R.js} +1 -1
  150. package/web/app/immutable/chunks/{BAb3JAL_.js → D8eSz7L_.js} +1 -1
  151. package/web/app/immutable/chunks/{CbX7A7fn.js → DBGsU6bn.js} +1 -1
  152. package/web/app/immutable/chunks/{-o555Jq8.js → DCOf4rfq.js} +1 -1
  153. package/web/app/immutable/chunks/{DPemhAGL.js → DD4J0jul.js} +1 -1
  154. package/web/app/immutable/chunks/{Cv3VBAcZ.js → DE-3_OpQ.js} +1 -1
  155. package/web/app/immutable/chunks/{D-fvD02O.js → DEo3brV5.js} +2 -2
  156. package/web/app/immutable/chunks/{gWaxvgpv.js → DEo5mzFE.js} +4 -4
  157. package/web/app/immutable/chunks/{hYtFXuM6.js → DF7SJcHw.js} +1 -1
  158. package/web/app/immutable/chunks/{cKfnoB88.js → DFbFLnMx.js} +1 -1
  159. package/web/app/immutable/chunks/{5P8mOVWK.js → DHnebSEV.js} +1 -1
  160. package/web/app/immutable/chunks/DJnc5r8U.js +1 -0
  161. package/web/app/immutable/chunks/{sHSA98Ae.js → DLHLuX0B.js} +1 -1
  162. package/web/app/immutable/chunks/{DqKef_Yi.js → DMVl8bez.js} +1 -1
  163. package/web/app/immutable/chunks/{CramXAJ0.js → DNBLhM9P.js} +1 -1
  164. package/web/app/immutable/chunks/{X0wrjHux.js → DQuLjWyg.js} +1 -1
  165. package/web/app/immutable/chunks/{nqpg2Djj.js → DR5IxY_q.js} +1 -1
  166. package/web/app/immutable/chunks/{Byr2ZhFE.js → DRDTrHX3.js} +1 -1
  167. package/web/app/immutable/chunks/{Og4xuM7g.js → DS2QhtLm.js} +1 -1
  168. package/web/app/immutable/chunks/{Bv1i2B5u.js → DTNUQDFX.js} +1 -1
  169. package/web/app/immutable/chunks/{DL304mi1.js → DUy6xMdY.js} +1 -1
  170. package/web/app/immutable/chunks/{b8GoMhSt.js → DV_c4cZz.js} +1 -1
  171. package/web/app/immutable/chunks/{vSLEtuRc.js → DVdgjGW2.js} +1 -1
  172. package/web/app/immutable/chunks/{B9aafd7C.js → DXBnJ5oH.js} +1 -1
  173. package/web/app/immutable/chunks/{dAVgSJe8.js → DXIggtiA.js} +1 -1
  174. package/web/app/immutable/chunks/{B9l9TMyA.js → Da2MW7PY.js} +1 -1
  175. package/web/app/immutable/chunks/{DUor0DI_.js → Da7V4qRA.js} +1 -1
  176. package/web/app/immutable/chunks/{CUBdinib.js → DaVLGnNn.js} +1 -1
  177. package/web/app/immutable/chunks/{BjHlv5EB.js → Db2Jl7w7.js} +1 -1
  178. package/web/app/immutable/chunks/{DzqZnAgo.js → Dbd3M4VX.js} +4 -4
  179. package/web/app/immutable/chunks/{BYT1TQGK.js → Dcd40P4V.js} +1 -1
  180. package/web/app/immutable/chunks/{BI5nb_pF.js → DdSHHwG-.js} +1 -1
  181. package/web/app/immutable/chunks/{BzXCk-eX.js → DeLItg2s.js} +1 -1
  182. package/web/app/immutable/chunks/{BJ5nSO_Z.js → DevaRANM.js} +3 -3
  183. package/web/app/immutable/chunks/{DWgWsm2y.js → Dfo7IcH5.js} +1 -1
  184. package/web/app/immutable/chunks/{CgfVp9Ef.js → DgGohlQK.js} +1 -1
  185. package/web/app/immutable/chunks/{RjrC7VFY.js → DhPqduTn.js} +1 -1
  186. package/web/app/immutable/chunks/{C4oYAvfo.js → DifK42p0.js} +1 -1
  187. package/web/app/immutable/chunks/{oNlT93oA.js → DjaIRWIW.js} +1 -1
  188. package/web/app/immutable/chunks/{CjPfyTRR.js → DkkZo56B.js} +1 -1
  189. package/web/app/immutable/chunks/{ot3p-Y1j.js → DlNogvkm.js} +1 -1
  190. package/web/app/immutable/chunks/{ZngqFVq2.js → DlySFqed.js} +1 -1
  191. package/web/app/immutable/chunks/{CKGxulW8.js → DoWpanLy.js} +1 -1
  192. package/web/app/immutable/chunks/{DhhomoFS.js → DrPWazGq.js} +1 -1
  193. package/web/app/immutable/chunks/{DfuAejzr.js → DsPTvO1D.js} +1 -1
  194. package/web/app/immutable/chunks/{D_P8KoFV.js → DyLYtK5N.js} +1 -1
  195. package/web/app/immutable/chunks/{DGRqvVY1.js → Dzmm4LX6.js} +2 -2
  196. package/web/app/immutable/chunks/{Bo40L-We.js → EbPgJF03.js} +1 -1
  197. package/web/app/immutable/chunks/{BahcW9Py.js → GVSL2sGk.js} +1 -1
  198. package/web/app/immutable/chunks/{CcYKMJWn.js → HZ9TCfKK.js} +1 -1
  199. package/web/app/immutable/chunks/{BpGfQKt5.js → HpSr1h8y.js} +1 -1
  200. package/web/app/immutable/chunks/{pA6KCKbP.js → HtolvgCH.js} +1 -1
  201. package/web/app/immutable/chunks/{ClkbPGx9.js → IH85nSha.js} +1 -1
  202. package/web/app/immutable/chunks/{SoUJpC1P.js → IsZH9joj.js} +1 -1
  203. package/web/app/immutable/chunks/{_6UbyZFm.js → JxvzDmDF.js} +1 -1
  204. package/web/app/immutable/chunks/{R6z5Bqeu.js → Kn9ZbRDu.js} +1 -1
  205. package/web/app/immutable/chunks/{DdfHQxRr.js → OXVbQQSu.js} +1 -1
  206. package/web/app/immutable/chunks/{C9OFPDov.js → OyCLeO1d.js} +1 -1
  207. package/web/app/immutable/chunks/{DE4arwhh.js → Qg7vTeHw.js} +1 -1
  208. package/web/app/immutable/chunks/{ETkf7dmN.js → Qpp-eumr.js} +1 -1
  209. package/web/app/immutable/chunks/{Bm0VuPYn.js → SAoHFFQz.js} +1 -1
  210. package/web/app/immutable/chunks/{FHXrLz5A.js → WSPGY2Jm.js} +1 -1
  211. package/web/app/immutable/chunks/{Bj0v3XMt.js → XHXZbc0Q.js} +1 -1
  212. package/web/app/immutable/chunks/{3yYmQx2z.js → XJEHWeE3.js} +1 -1
  213. package/web/app/immutable/chunks/{BCP62aew.js → _L5AdDNH.js} +1 -1
  214. package/web/app/immutable/chunks/{CHnA0xpr.js → bl5nff1M.js} +1 -1
  215. package/web/app/immutable/chunks/{QPRdLPHE.js → ceF1L-gS.js} +1 -1
  216. package/web/app/immutable/chunks/{CTh4M5uj.js → fEnLQxJ4.js} +1 -1
  217. package/web/app/immutable/chunks/{Uea955Vz.js → gWBpiwO7.js} +1 -1
  218. package/web/app/immutable/chunks/{CaPALXDj.js → hQlemDzn.js} +1 -1
  219. package/web/app/immutable/chunks/{DRRbh3V4.js → hRTaoCvf.js} +1 -1
  220. package/web/app/immutable/chunks/{DfA_Upom.js → hmNmIDzu.js} +1 -1
  221. package/web/app/immutable/chunks/{nLyQInj7.js → hwFphMxp.js} +1 -1
  222. package/web/app/immutable/chunks/{B57wBfTw.js → i4rQF8gq.js} +1 -1
  223. package/web/app/immutable/chunks/{BuDJvkTk.js → iYz7qSVO.js} +2 -2
  224. package/web/app/immutable/chunks/{gtyJplKf.js → iqwxOx7o.js} +1 -1
  225. package/web/app/immutable/chunks/{Ju7PAma1.js → j5tG0B2t.js} +1 -1
  226. package/web/app/immutable/chunks/{BwzznN4d.js → jK-m9hL8.js} +1 -1
  227. package/web/app/immutable/chunks/{BEsCIa2p.js → jOuwgRm6.js} +1 -1
  228. package/web/app/immutable/chunks/{C2pyYkiS.js → lwGMtA_8.js} +1 -1
  229. package/web/app/immutable/chunks/{BOuXmWAj.js → sbDqysXr.js} +1 -1
  230. package/web/app/immutable/chunks/{W2yoNJFv.js → tSZXsoGb.js} +1 -1
  231. package/web/app/immutable/chunks/{CEufllny.js → vJ7Dp7-k.js} +1 -1
  232. package/web/app/immutable/chunks/{VmRBMU-H.js → vSkHI-FK.js} +2 -2
  233. package/web/app/immutable/chunks/{73QfWqEv.js → vgvfRyJV.js} +1 -1
  234. package/web/app/immutable/chunks/{C1ha510g.js → vj4vOyOm.js} +1 -1
  235. package/web/app/immutable/chunks/{DtWKfIHW.js → xeIBXGKb.js} +1 -1
  236. package/web/app/immutable/chunks/{BjnapXgD.js → xpT8lZyG.js} +2 -2
  237. package/web/app/immutable/chunks/{CVDRxz2f.js → ztG-0WIA.js} +1 -1
  238. package/web/app/immutable/entry/{app.D9kIVkFi.js → app.RSzHSDgw.js} +3 -3
  239. package/web/app/immutable/entry/start.BVuekftv.js +1 -0
  240. package/web/app/immutable/nodes/{0.CycxDG0L.js → 0.Da435p_w.js} +1 -1
  241. package/web/app/immutable/nodes/{1.DBDsO8vk.js → 1.D1nY11Eo.js} +1 -1
  242. package/web/app/immutable/nodes/{10.DeWMsWJr.js → 10.C15wfgwX.js} +1 -1
  243. package/web/app/immutable/nodes/{11.D3R05nAN.js → 11.TMR29QT0.js} +1 -1
  244. package/web/app/immutable/nodes/{12.FwwO1QwE.js → 12.Dkcg23hr.js} +1 -1
  245. package/web/app/immutable/nodes/{13.BXCK1uUO.js → 13.BANT9s8o.js} +3 -3
  246. package/web/app/immutable/nodes/{14.CaU020TI.js → 14.DChhRykH.js} +1 -1
  247. package/web/app/immutable/nodes/{15.DBweoCJ3.js → 15.BXSdgmt8.js} +1 -1
  248. package/web/app/immutable/nodes/{16.x7FRjB-z.js → 16.Cp3myrhK.js} +1 -1
  249. package/web/app/immutable/nodes/{17.nVKVEw2j.js → 17.AJ0Z4n7s.js} +1 -1
  250. package/web/app/immutable/nodes/{18.D8Pypemm.js → 18.BYytq5r4.js} +2 -2
  251. package/web/app/immutable/nodes/{2.bw2OhfV2.js → 2.B_tahnsH.js} +4 -4
  252. package/web/app/immutable/nodes/{3.C3rwANJW.js → 3.l2wlNZto.js} +1 -1
  253. package/web/app/immutable/nodes/{4.D3HKzTPL.js → 4.DSLW-lsR.js} +1 -1
  254. package/web/app/immutable/nodes/{5.f1pRghhu.js → 5.DaH-2DbB.js} +1 -1
  255. package/web/app/immutable/nodes/{6.rpNMjH5t.js → 6.CWNY9M3R.js} +1 -1
  256. package/web/app/immutable/nodes/{7.BSbrbiiB.js → 7.DI6SUPGK.js} +1 -1
  257. package/web/app/immutable/nodes/8.j51qyATM.js +14 -0
  258. package/web/app/immutable/nodes/9.C4rF4IYL.js +39 -0
  259. package/web/app/version.json +1 -1
  260. package/web/generated/paraglide.js +49 -49
  261. package/web/index.html +19 -19
  262. package/web/app/immutable/assets/0.C6uvaa87.css +0 -1
  263. package/web/app/immutable/chunks/41c-5lbJ.js +0 -1
  264. package/web/app/immutable/chunks/BJwMP_No.js +0 -1
  265. package/web/app/immutable/chunks/CEpelLfd.js +0 -2
  266. package/web/app/immutable/chunks/CgXr85TV.js +0 -19
  267. package/web/app/immutable/chunks/Cj__CwtA.js +0 -1
  268. package/web/app/immutable/chunks/DLiD3Y7h.js +0 -1
  269. package/web/app/immutable/chunks/DMIrVtTU.js +0 -1
  270. package/web/app/immutable/chunks/DQ_x-k0O.js +0 -13
  271. package/web/app/immutable/chunks/FbHjHDf9.js +0 -1
  272. package/web/app/immutable/chunks/nbfGErIW.js +0 -1
  273. package/web/app/immutable/entry/start.CsSnQcM4.js +0 -1
  274. package/web/app/immutable/nodes/8.DbrZFert.js +0 -14
  275. package/web/app/immutable/nodes/9.D--sfpfT.js +0 -39
@@ -0,0 +1 @@
1
+ import{oA as o}from"./iYz7qSVO.js";import{aC as r}from"./D1PZlLC_.js";function c(n,e){if(!e)return!0;const t=r.select(n,e);return!!t&&!o(t)}export{c};
@@ -1 +1 @@
1
- import{t as pt,bq as S,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./41c-5lbJ.js";import{bs as kt,ca as L,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./DYhIMPy1.js";import{i as J}from"./ClgmQqA9.js";import{k as wt}from"./D9WrXbf9.js";import{c as _t}from"./Dv-TQImR.js";import{b7 as Bt}from"./Dq9dLpt4.js";import{Iv as u,ev as It,ew as Rt,J0 as Wt,Jg as Ut,J5 as Tt,uR as Dt,o2 as V}from"./BuDJvkTk.js";import{g as At}from"./DfN8_dcw.js";import{bA as Ft,bC as Ht,dr as Mt}from"./DGb_dMRY.js";import{C as f}from"./DypB-Dwi.js";import"./UMKs78qL.js";import"./BBCbq-hE.js";import"./BhX-5zd9.js";import{bc as xt}from"./AOUBMpYk.js";import"./De70D2Lx.js";import"./CccgSyFt.js";import{T as Nt}from"./ETkf7dmN.js";import"./CCw4KHZp.js";import{M as qt}from"./BYjUWrg8.js";import{V as Lt}from"./D6ncbN-K.js";import{O as Et}from"./GfKb8O3O.js";import{bR as Jt,bL as Vt,b6 as Kt}from"./DUor0DI_.js";import{i as Ot}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function jt(I,p){if(new.target)return pt({component:jt,...I});kt(p,!0);const R=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),K=()=>h(Z,"$ftCommits$",l),W=()=>h(Q,"$foldUnchanged",l),U=()=>h(z,"$lineWrapping",l),T=()=>h(X,"$diffSideBySide",l),[l,O]=Pt(),G=t=>{Lt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Wt())})},j=t=>{var e=Gt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return xt},get label(){return n(m)},onclick:zt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};J(s,m=>{n(k)&&m(d)})}_(t,e)},z=Jt(),Q=Vt(),X=Kt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=Mt(C),nt=i(()=>R()?.worktreePath||R()?.repositoryPath||void 0);L(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Rt(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),k=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of K())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const M=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),x=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(x)||n(N))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(M))return n(M);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}L(()=>{!D||!b()||D.registerActions({display:G,actions:j})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},q=E(),mt=w(q);{var lt=t=>{var e=E(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(x)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};J(mt,t=>{a().diffPath&&t(lt)})}_(I,q);var gt=$t(ct);return O(),gt}export{jt as default};
1
+ import{t as pt,bq as S,by as bt,bs as Pt,b as Ct,bo as vt,bu as h}from"./BUAFIktJ.js";import{bs as kt,ca as L,aD as n,c9 as i,a7 as E,ay as w,W as _,bn as $t,bS as yt,aA as B,aB as St}from"./DYhIMPy1.js";import{i as J}from"./Bvd0DfwC.js";import{k as wt}from"./CLi8c-Jc.js";import{c as _t}from"./BgOj6lPu.js";import{b7 as Bt}from"./CUHqJ1Vg.js";import{Iv as u,ev as It,ew as Rt,J0 as Wt,Jg as Ut,J5 as Tt,uR as Dt,o2 as V}from"./iYz7qSVO.js";import{g as At}from"./DfN8_dcw.js";import{bA as Ft,bC as Ht,dr as Mt}from"./D1PZlLC_.js";import{C as f}from"./DypB-Dwi.js";import"./B9Ccf4_O.js";import"./COO6ldt4.js";import"./CnTu6sc6.js";import{bc as xt}from"./CfdX4Lfl.js";import"./B1s_9zgm.js";import"./BR9y4bsr.js";import{T as Nt}from"./Qpp-eumr.js";import"./Buh7J53B.js";import{M as qt}from"./C7lasS44.js";import{V as Lt}from"./6J2j9GGS.js";import{O as Et}from"./CZd1y8kW.js";import{bR as Jt,bL as Vt,b6 as Kt}from"./Da7V4qRA.js";import{i as Ot}from"./H2jLkRRS.js";var Gt=St("<!> <!>",1);function jt(I,p){if(new.target)return pt({component:jt,...I});kt(p,!0);const R=()=>h(et,"$workspace",l),P=()=>h(Y,"$ftChanges$",l),K=()=>h(Z,"$ftCommits$",l),W=()=>h(Q,"$foldUnchanged",l),U=()=>h(z,"$lineWrapping",l),T=()=>h(X,"$diffSideBySide",l),[l,O]=Pt(),G=t=>{Lt(t,{embedded:!0,get foldEnabled(){return W()},onToggleFold:()=>u.dispatch(Tt()),get wrapEnabled(){return U()},onToggleWrap:()=>u.dispatch(Ut()),get splitEnabled(){return T()},onToggleSplit:()=>u.dispatch(Wt())})},j=t=>{var e=Gt(),r=w(e);{let m=i(()=>vt.layout_diffHeader_goToFile_tooltip());_t(r,()=>qt,(y,ht)=>{ht(y,{get icon(){return xt},get label(){return n(m)},onclick:zt=>ft()})})}var s=yt(r,2);{var d=m=>{Et(m,{get filePath(){return n(k)},get workspaceId(){return o()},isDirectory:!1,embedded:!0,get workspaceFolderPath(){return n(v)}})};J(s,m=>{n(k)&&m(d)})}_(t,e)},z=Jt(),Q=Vt(),X=Kt();let a=S(p,"tab",7),o=S(p,"workspaceId",7),b=S(p,"isActive",7);const C=Bt(()=>o()),Y=Ft(C),Z=Ht(C),tt=new Set([f.Committed,f.Pushed,f.PullRequest,f.Merged,f.Trunk]),D=At(),et=Mt(C),nt=i(()=>R()?.worktreePath||R()?.repositoryPath||void 0);L(()=>{const t=o();if(!(!b()||!t||n(c)))return u.dispatch(It(t,"all")),()=>u.dispatch(Rt(t,"all"))});const c=i(()=>a().data?.gitRootId),A=i(()=>a().data?.gitRootPath),v=i(()=>n(A)||n(nt)),k=i(()=>a().diffPath&&n(v)?Ot(a().diffPath)?a().diffPath:`${n(v)}/${a().diffPath}`:null);function F(t,e){return!!(t.file===e||t.relativePath===e||t.relativePath&&e.endsWith("/"+t.relativePath)||t.file&&e.endsWith("/"+t.file)||t.relativePath&&t.relativePath.endsWith("/"+e)||t.file&&t.file.endsWith("/"+e))}function H(t){return!t||n(c)?null:P().find(e=>F(e,t)&&(e.stage==="staged"||e.stage==="unstaged"))??null}function at(t){if(!t||n(c))return null;let e=null,r=-1/0;for(const s of P()){if(!F(s,t)||!tt.has(s.stage)||!s.commitHash)continue;const d=s.attribution?.timestamp??0;d>=r&&(e=s,r=d)}return e}function it(t,e){return!!(t===e||e.endsWith("/"+t)||t.endsWith("/"+e))}function rt(t){if(!t||n(c))return null;for(const e of K())if(e?.hash&&e.files?.some(r=>r?.path&&it(r.path,t)))return{id:`diff-${t}-${e.hash}`,file:t,relativePath:t,status:"modified",stage:f.Committed,commitHash:e.hash,stats:{additions:0,deletions:0},attribution:{timestamp:e.timestamp??Date.now()}};return null}const M=i(()=>a().diffPath?H(a().diffPath):null),st=i(()=>{if(!a().diffPath)return 0;const t=H(a().diffPath),e=P().length;if(t){const r=t.stage==="staged"?1:t.stage==="unstaged"?2:3,s=(t.stats?.additions||0)+(t.stats?.deletions||0),d=t.attribution?.timestamp?t.attribution.timestamp%1e5:0;return r*1e6+s*1e3+d+e}return e}),g=i(()=>a().data?.change),x=i(()=>a().data?.branchBaseRef),N=i(()=>a().data?.branchBaseCommitSha),ot=i(()=>!!(n(x)||n(N))),$=i(()=>{if(n(g)?.commitHash)return n(g);if(n(M))return n(M);if(n(ot)&&n(g))return n(g);const t=at(a().diffPath??null);if(t)return t;const e=rt(a().diffPath??null);return e||(n(g)?n(g):{id:`diff-${a().diffPath}`,file:a().diffPath||"",relativePath:a().diffPath||"",status:"modified",stage:f.Unstaged,stats:{additions:0,deletions:0},attribution:{timestamp:Date.now()}})});function ft(t){if(!a().diffPath)return;const r={type:"file",title:a().diffPath.split("/").pop()||a().diffPath,closable:!0,filePath:n(k)||a().diffPath,workspaceId:o()};u.dispatch(Dt(o(),r))}L(()=>{!D||!b()||D.registerActions({display:G,actions:j})});function dt(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"stageHunk",filePath:t,hunkPatch:e,source:"diff"}))}function ut(t,e){u.dispatch(V(o(),crypto.randomUUID(),{kind:"unstageHunk",filePath:t,hunkPatch:e,source:"diff"}))}var ct={get tab(){return a()},set tab(t){a(t),B()},get workspaceId(){return o()},set workspaceId(t){o(t),B()},get isActive(){return b()},set isActive(t){b(t),B()},$set:bt,$on:(t,e)=>Ct(p,t,e)},q=E(),mt=w(q);{var lt=t=>{var e=E(),r=w(e);wt(r,()=>a().diffPath,s=>{{let d=i(()=>T()?"split":"unified"),m=i(()=>!n(c)&&n($).stage===f.Unstaged?dt:void 0),y=i(()=>!n(c)&&n($).stage===f.Staged?ut:void 0);Nt(s,{get active(){return b()},get change(){return n($)},get workspaceId(){return o()},get viewMode(){return n(d)},get foldUnchanged(){return W()},get lineWrapping(){return U()},get refreshKey(){return n(st)},get branchBaseRef(){return n(x)},get branchBaseCommitSha(){return n(N)},get gitRootId(){return n(c)},get gitRootPath(){return n(A)},get onStageHunk(){return n(m)},get onUnstageHunk(){return n(y)}})}}),_(t,e)};J(mt,t=>{a().diffPath&&t(lt)})}_(I,q);var gt=$t(ct);return O(),gt}export{jt as default};
@@ -1 +1 @@
1
- import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./41c-5lbJ.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as q,b_ as k,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as w,be as ae,b$ as re}from"./DYhIMPy1.js";import{i as S}from"./ClgmQqA9.js";import{s as se}from"./BBCbq-hE.js";import{F as ne}from"./AOUBMpYk.js";import{i as ie}from"./BuupGai6.js";import{aa as de}from"./nLyQInj7.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const D=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const I=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),O=V(t,oe);const C=`${D}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?I:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>O,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),R=F(n,!0);k(()=>{se(n,"id",C),w(R,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}q(W);var K=j(W,2);{var L=s=>{var n=ce(),R=A(n);de(R,{children:(N,me)=>{ae();var P=re();k(()=>w(P,c())),l(N,P)},$$slots:{default:!0}}),q(n),l(s,n)};S(K,s=>{c()&&s(L)})}k(()=>w(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
1
+ import{t as Q,bq as a,bt as T,by as U,br as V,b as X}from"./BUAFIktJ.js";import{bo as Y,bs as Z,ay as $,a5 as A,bl as F,bS as j,bA as q,b_ as k,W as l,aD as f,bn as ee,aA as r,c9 as g,aB as z,a7 as te,bO as w,be as ae,b$ as re}from"./DYhIMPy1.js";import{i as S}from"./Bvd0DfwC.js";import{s as se}from"./COO6ldt4.js";import{F as ne}from"./CfdX4Lfl.js";import{i as ie}from"./B6lWPidK.js";import{aa as de}from"./hwFphMxp.js";var oe=new Set(["$$slots","$$events","$$legacy","icon","iconWeight","label","shortcut","destructive","disabled","disabledReason","aria-describedby"]),le=z('<span class="block text-muted-foreground" aria-hidden="true"> </span>'),ce=z('<span class="ml-5 flex h-lh shrink-0 items-center" aria-hidden="true"><!></span>'),ue=z('<span class="min-w-0 flex-1"><span class="block truncate"> </span> <!></span> <!>',1);function be(B,t){const D=Y();if(new.target)return Q({component:be,...B});Z(t,!0);const I=e=>{var d=te(),x=$(d);{var y=b=>{{let m=g(()=>u()?"size-4 text-current":"size-4 text-muted-foreground");ne(b,{get icon(){return o()},get weight(){return _()},size:16,get class(){return f(m)}})}};S(x,b=>{o()&&b(y)})}l(e,d)};let o=a(t,"icon",7),_=a(t,"iconWeight",7),v=a(t,"label",7),c=a(t,"shortcut",7),u=a(t,"destructive",7,!1),p=a(t,"disabled",7,!1),i=a(t,"disabledReason",7),h=a(t,"aria-describedby",7),O=V(t,oe);const C=`${D}-reason`;var E={get icon(){return o()},set icon(e){o(e),r()},get iconWeight(){return _()},set iconWeight(e){_(e),r()},get label(){return v()},set label(e){v(e),r()},get shortcut(){return c()},set shortcut(e){c(e),r()},get destructive(){return u()},set destructive(e=!1){u(e),r()},get disabled(){return p()},set disabled(e=!1){p(e),r()},get disabledReason(){return i()},set disabledReason(e){i(e),r()},get"aria-describedby"(){return h()},set"aria-describedby"(e){h(e),r()},$set:U,$on:(e,d)=>X(t,e,d)};{let e=g(()=>o()?I:void 0),d=g(()=>p()||i()!==void 0),x=g(()=>[h(),i()?C:void 0].filter(Boolean).join(" ")||void 0);ie(B,T({get destructive(){return u()},get leading(){return f(e)}},()=>O,{get disabled(){return f(d)},get"aria-describedby"(){return f(x)},"data-slot":"menu-command-item",children:(y,b)=>{var m=ue(),W=$(m),M=A(W),G=F(M,!0),H=j(M,2);{var J=s=>{var n=le(),R=F(n,!0);k(()=>{se(n,"id",C),w(R,i())}),l(s,n)};S(H,s=>{i()&&s(J)})}q(W);var K=j(W,2);{var L=s=>{var n=ce(),R=A(n);de(R,{children:(N,me)=>{ae();var P=re();k(()=>w(P,c())),l(N,P)},$$slots:{default:!0}}),q(n),l(s,n)};S(K,s=>{c()&&s(L)})}k(()=>w(G,v())),l(y,m)},$$slots:{default:!0}}))}return ee(E)}export{be as M};
@@ -1 +1 @@
1
- import{Iv as s,i1 as a,lZ as S,nx as f,ma as m}from"./BuDJvkTk.js";import{I as O}from"./CbX7A7fn.js";import{dy as d,aV as k,dG as v}from"./DGb_dMRY.js";const b=s.createSelector((t,e)=>{if(k.select(t,e)&&v.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!b.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),V=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),J=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),Z=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{J as selectAllWorkspaceScriptEntries,Z as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,b as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,V as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
1
+ import{Iv as s,i1 as a,lZ as S,nx as f,ma as m}from"./iYz7qSVO.js";import{I as O}from"./DBGsU6bn.js";import{dy as d,aV as k,dG as v}from"./D1PZlLC_.js";const b=s.createSelector((t,e)=>{if(k.select(t,e)&&v.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),h=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!b.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>O((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),E=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),M=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),z=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),A=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?f(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),V=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),J=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),U=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),Z=s.createSelector((t,e,r)=>!!u.select(t,e,r)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending),q=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{J as selectAllWorkspaceScriptEntries,Z as selectCanDeleteScript,l as selectCanReadScriptDefinition,h as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,q as selectScriptListPageState,E as selectScriptOutput,A as selectScriptOutputStreamReady,z as selectScriptOutputViewerWorkspaceIds,U as selectScriptReadJournal,M as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,b as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,V as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
@@ -1 +1 @@
1
- import{t as u,bq as l,by as p,br as b,b as g}from"./41c-5lbJ.js";import{bs as h,a5 as _,bA as v,W as x,bn as y,aA as o,aB as S}from"./DYhIMPy1.js";import{s as w}from"./BhX-5zd9.js";import{b as A,e as C}from"./BBCbq-hE.js";import{b as k}from"./BaIAhI85.js";var q=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),B=S("<section><!></section>");function N(c,s){if(new.target)return u({component:N,...c});h(s,!0);let r=l(s,"ref",15,null),a=l(s,"children",7),n=l(s,"class",7),i=b(s,q);var f={get ref(){return r()},set ref(e=null){r(e),o()},get children(){return a()},set children(e){a(e),o()},get class(){return n()},set class(e){n(e),o()},$set:p,$on:(e,d)=>g(s,e,d)},t=B();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return w(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),y(f)}export{N as S};
1
+ import{t as u,bq as l,by as p,br as b,b as g}from"./BUAFIktJ.js";import{bs as h,a5 as _,bA as v,W as x,bn as y,aA as o,aB as S}from"./DYhIMPy1.js";import{s as w}from"./CnTu6sc6.js";import{b as A,e as C}from"./COO6ldt4.js";import{b as k}from"./BaIAhI85.js";var q=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),B=S("<section><!></section>");function N(c,s){if(new.target)return u({component:N,...c});h(s,!0);let r=l(s,"ref",15,null),a=l(s,"children",7),n=l(s,"class",7),i=b(s,q);var f={get ref(){return r()},set ref(e=null){r(e),o()},get children(){return a()},set children(e){a(e),o()},get class(){return n()},set class(e){n(e),o()},$set:p,$on:(e,d)=>g(s,e,d)},t=B();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return w(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),y(f)}export{N as S};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BrR0973A.js","/app/immutable/chunks/ClkbPGx9.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/41c-5lbJ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ClgmQqA9.js","/app/immutable/chunks/BBCbq-hE.js","/app/immutable/chunks/BhX-5zd9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/nLyQInj7.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/CEufllny.js","/app/immutable/chunks/De70D2Lx.js","/app/immutable/chunks/D9XKGcAY.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dv-TQImR.js","/app/immutable/chunks/D9WrXbf9.js","/app/immutable/chunks/-o555Jq8.js","/app/immutable/chunks/CdXmpyDy.js","/app/immutable/chunks/BuDJvkTk.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BDbt9cuZ.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/AOUBMpYk.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/Bj0v3XMt.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/b8GoMhSt.js","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C4qlKK6F.js","/app/immutable/chunks/DGb_dMRY.js","/app/immutable/chunks/CYlvyU3U.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/D-fvD02O.js","/app/immutable/chunks/BCQGaqgQ.js"])))=>i.map(i=>d[i]);
2
- import{bo as h,_ as x}from"./41c-5lbJ.js";import{i as f,Iv as a,dc as P,GT as S,yz as q,F3 as N,vc as R,qy as W,uM as H,Ky as U}from"./BuDJvkTk.js";import{d as y}from"./b8GoMhSt.js";import{E as V}from"./De70D2Lx.js";import{parseIntentLink as j}from"./Bd6Rwh69.js";import{k as I}from"./ClkbPGx9.js";import"./DYhIMPy1.js";import"./BBCbq-hE.js";import"./BhX-5zd9.js";import"./ChTqQfQN.js";import"./CdXmpyDy.js";import{I as B,q as C,H as L}from"./CYyISHjN.js";import{dr as D}from"./DGb_dMRY.js";import{p as M,o as z,h as K}from"./Bo40L-We.js";const p="assistant-content",$=a.createSelector(t=>{const r=M.select(t),s=z.select(t),e=K.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??$.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./BrR0973A.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return I.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!E&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./Bj0v3XMt.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,$ as selectAssistantPanelLayoutId,de as showAssistantContent};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B4qnea7H.js","/app/immutable/chunks/IH85nSha.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BUAFIktJ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/Bvd0DfwC.js","/app/immutable/chunks/COO6ldt4.js","/app/immutable/chunks/CnTu6sc6.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/hwFphMxp.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/vJ7Dp7-k.js","/app/immutable/chunks/B1s_9zgm.js","/app/immutable/chunks/BXyNrc2B.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BgOj6lPu.js","/app/immutable/chunks/CLi8c-Jc.js","/app/immutable/chunks/DCOf4rfq.js","/app/immutable/chunks/CRrFC3B8.js","/app/immutable/chunks/iYz7qSVO.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D8Uhwh7R.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/CfdX4Lfl.js","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/XHXZbc0Q.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DV_c4cZz.js","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CacD4jQL.js","/app/immutable/chunks/D1PZlLC_.js","/app/immutable/chunks/Bz6dDdb9.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DEo3brV5.js","/app/immutable/chunks/C_Q5e0bX.js"])))=>i.map(i=>d[i]);
2
+ import{bo as h,_ as x}from"./BUAFIktJ.js";import{i as f,Iv as a,dc as P,GT as S,yz as q,F3 as N,vc as R,qy as W,uM as H,Ky as U}from"./iYz7qSVO.js";import{d as y}from"./DV_c4cZz.js";import{E as V}from"./B1s_9zgm.js";import{parseIntentLink as j}from"./CGtiJZ6Q.js";import{k as I}from"./IH85nSha.js";import"./DYhIMPy1.js";import"./COO6ldt4.js";import"./CnTu6sc6.js";import"./ChTqQfQN.js";import"./CRrFC3B8.js";import{I as B,q as C,H as L}from"./CmSGn2AH.js";import{dr as D}from"./D1PZlLC_.js";import{p as M,o as z,h as K}from"./EbPgJF03.js";const p="assistant-content",$=a.createSelector(t=>{const r=M.select(t),s=z.select(t),e=K.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function G(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function J(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await Q(t,r)}catch(s){return I.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function Q(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=M.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??$.select(a.state);if(!n)return!0;const o=G(n,r.background);if(await J(n),!m(n,o))return!0;if(i){const u=i[1],g=await y.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./B4qnea7H.js").then(w=>w.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await y.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(I.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[k,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??y.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!k||String(k.workspaceId)!==l)return I.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const E=Object.entries(B.select(a.state)).some(([u,g])=>{const v=w=>w.type==="note"&&w.noteId===String(k.id)&&(w.workspaceId??u)===l;return Object.values(g.panels).some(w=>w.tabs.some(v))||C.select(a.state,u).some(v)}),F=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(k.id)];return!E&&(!r.background||F===void 0)&&a.dispatch(N(l,String(k.id),"editor")),_({type:"note",title:k.title,noteId:String(k.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await y.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await y.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return I.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./XHXZbc0Q.js");return{openMessage:b}},__vite__mapDeps([31,32,33,34,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,35,36,37,38,39,27,17,6,12,40,19,41,42,43]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,$ as selectAssistantPanelLayoutId,de as showAssistantContent};
@@ -1,4 +1,4 @@
1
- import{g as fe}from"./0-xAXZgf.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./gWaxvgpv.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
1
+ import{g as fe}from"./C1l_AdDU.js";import{b as o,ay as te,X as U,aX as ye,ad as be,ah as me,aL as ke,b3 as Ee,O as K,aV as F,ax as _e,J as Se,an as Ne,au as ce,H as le}from"./DEo5mzFE.js";var $=(function(){var e=o(function(O,s,n,r){for(n=n||{},r=O.length;r--;n[O[r]]=s);return n},"o"),h=[1,4],p=[1,13],i=[1,12],d=[1,15],k=[1,16],m=[1,20],l=[1,19],D=[6,7,8],I=[1,26],g=[1,24],w=[1,25],E=[6,7,11],G=[1,31],N=[6,7,11,24],V=[1,6,13,16,17,20,23],f=[1,35],A=[1,36],L=[1,6,7,11,13,16,17,20,23],H=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},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,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(s,n,r,a,u,t,M){var c=t.length-1;switch(u){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:p,7:[1,10],9:9,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(D,[2,3]),{1:[2,2]},e(D,[2,4]),e(D,[2,5]),{1:[2,6],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:p,9:22,12:11,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},{6:I,7:g,10:23,11:w},e(E,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:m,23:l}),e(E,[2,19]),e(E,[2,21],{15:30,24:G}),e(E,[2,22]),e(E,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:I,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:i,14:14,16:d,17:k,18:17,19:18,20:m,23:l},e(V,[2,14],{7:f,11:A}),e(L,[2,8]),e(L,[2,9]),e(L,[2,10]),e(E,[2,16],{15:37,24:G}),e(E,[2,17]),e(E,[2,18]),e(E,[2,20],{24:H}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(V,[2,13],{7:f,11:A}),e(L,[2,11]),e(L,[2,12]),e(E,[2,15],{24:H}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(s,n){if(n.recoverable)this.trace(s);else{var r=new Error(s);throw r.hash=n,r}},"parseError"),parse:o(function(s){var n=this,r=[0],a=[],u=[null],t=[],M=this.table,c="",W=0,ie=0,ue=2,re=1,ge=t.slice.call(arguments,1),b=Object.create(this.lexer),R={yy:{}};for(var J in this.yy)Object.prototype.hasOwnProperty.call(this.yy,J)&&(R.yy[J]=this.yy[J]);b.setInput(s,R.yy),R.yy.lexer=b,R.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var q=b.yylloc;t.push(q);var de=b.options&&b.options.ranges;typeof R.yy.parseError=="function"?this.parseError=R.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pe(S){r.length=r.length-2*S,u.length=u.length-S,t.length=t.length-S}o(pe,"popStack");function ae(){var S;return S=a.pop()||b.lex()||re,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(ae,"lex");for(var _,P,x,Q,j={},z,C,oe,X;;){if(P=r[r.length-1],this.defaultActions[P]?x=this.defaultActions[P]:((_===null||typeof _>"u")&&(_=ae()),x=M[P]&&M[P][_]),typeof x>"u"||!x.length||!x[0]){var Z="";X=[];for(z in M[P])this.terminals_[z]&&z>ue&&X.push("'"+this.terminals_[z]+"'");b.showPosition?Z="Parse error on line "+(W+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Z="Parse error on line "+(W+1)+": Unexpected "+(_==re?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Z,{text:b.match,token:this.terminals_[_]||_,line:b.yylineno,loc:q,expected:X})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+_);switch(x[0]){case 1:r.push(_),u.push(b.yytext),t.push(b.yylloc),r.push(x[1]),_=null,ie=b.yyleng,c=b.yytext,W=b.yylineno,q=b.yylloc;break;case 2:if(C=this.productions_[x[1]][1],j.$=u[u.length-C],j._$={first_line:t[t.length-(C||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(C||1)].first_column,last_column:t[t.length-1].last_column},de&&(j._$.range=[t[t.length-(C||1)].range[0],t[t.length-1].range[1]]),Q=this.performAction.apply(j,[c,ie,W,R.yy,x[1],u,t].concat(ge)),typeof Q<"u")return Q;C&&(r=r.slice(0,-1*C*2),u=u.slice(0,-1*C),t=t.slice(0,-1*C)),r.push(this.productions_[x[1]][0]),u.push(j.$),t.push(j._$),oe=M[r[r.length-2]][r[r.length-1]],r.push(oe);break;case 3:return!0}}return!0},"parse")},Y=(function(){var O={EOF:1,parseError:o(function(n,r){if(this.yy.parser)this.yy.parser.parseError(n,r);else throw new Error(n)},"parseError"),setInput:o(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:o(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:o(function(s){var n=s.length,r=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 a=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),r.length-1&&(this.yylineno-=r.length-1);var u=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:r?(r.length===a.length?this.yylloc.first_column:0)+a[a.length-r.length].length-r[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[u[0],u[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(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:o(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:o(function(){var s=this.pastInput(),n=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/Bj0v3XMt.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/b8GoMhSt.js","/app/immutable/chunks/41c-5lbJ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/BuDJvkTk.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/BDbt9cuZ.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/BhX-5zd9.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/De70D2Lx.js","/app/immutable/chunks/D9XKGcAY.js","/app/immutable/chunks/BBCbq-hE.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C4qlKK6F.js","/app/immutable/chunks/DGb_dMRY.js","/app/immutable/chunks/AOUBMpYk.js","/app/immutable/chunks/Dv-TQImR.js","/app/immutable/chunks/ClgmQqA9.js","/app/immutable/chunks/CEufllny.js","/app/immutable/chunks/CYlvyU3U.js","/app/immutable/chunks/-o555Jq8.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/D-fvD02O.js","/app/immutable/chunks/BCQGaqgQ.js"])))=>i.map(i=>d[i]);
2
- import{bo as c,_ as p}from"./41c-5lbJ.js";import{k as I}from"./ClkbPGx9.js";import"./DYhIMPy1.js";import"./BBCbq-hE.js";import"./BhX-5zd9.js";import{Q as A}from"./De70D2Lx.js";import"./ChTqQfQN.js";import"./CdXmpyDy.js";import{i as L,Iv as d,v1 as g,v3 as v}from"./BuDJvkTk.js";import{a0 as R}from"./DGb_dMRY.js";import{l as P}from"./CYyISHjN.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./Bj0v3XMt.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Z(e,r){return R(e,r)}function $(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./b8GoMhSt.js").then(o=>o.o);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./BCQGaqgQ.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./BCQGaqgQ.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./BCQGaqgQ.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./De70D2Lx.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,$ as createIntentLinkClickHandler,Z as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/XHXZbc0Q.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/DV_c4cZz.js","/app/immutable/chunks/BUAFIktJ.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/iYz7qSVO.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D8Uhwh7R.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CnTu6sc6.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/ggQuSgBM.js","/app/immutable/chunks/B1s_9zgm.js","/app/immutable/chunks/BXyNrc2B.js","/app/immutable/chunks/COO6ldt4.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/D_Kq1QRo.js","/app/immutable/chunks/BDDVFcm3.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/CacD4jQL.js","/app/immutable/chunks/D1PZlLC_.js","/app/immutable/chunks/CfdX4Lfl.js","/app/immutable/chunks/BgOj6lPu.js","/app/immutable/chunks/Bvd0DfwC.js","/app/immutable/chunks/vJ7Dp7-k.js","/app/immutable/chunks/Bz6dDdb9.js","/app/immutable/chunks/DCOf4rfq.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DEo3brV5.js","/app/immutable/chunks/C_Q5e0bX.js"])))=>i.map(i=>d[i]);
2
+ import{bo as c,_ as p}from"./BUAFIktJ.js";import{k as I}from"./IH85nSha.js";import"./DYhIMPy1.js";import"./COO6ldt4.js";import"./CnTu6sc6.js";import{Q as A}from"./B1s_9zgm.js";import"./ChTqQfQN.js";import"./CRrFC3B8.js";import{i as L,Iv as d,v1 as g,v3 as v}from"./iYz7qSVO.js";import{a0 as R}from"./D1PZlLC_.js";import{l as P}from"./CmSGn2AH.js";const F="intent://local/note/{note-id}",S="intent://local/{workspace-id}/note/{note-id}";function f(){return c.ui_linkHandler_invalidFormat_error({shortFormat:F,longFormat:S})}class u extends Error{constructor(r){super(r),this.name="NotFoundError"}}function W(e){try{const r=new URL(e.replace("intent://","http://")),t=r.hostname,n=r.pathname.replace(/^\/+/,"").split("/").filter(l=>l.length>0),a=e.replace("intent://","").split(/[?#]/)[0].split("/").slice(1);if(!t||n.length<2)return{type:"unknown",orgId:t||"",resourceId:"",valid:!1,error:f()};let o,s,i,_,w;if(a[0]==="workspace"&&(a.length===2||a.length===3&&a[2]==="")){const l=O(a[1]);if(!l)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};o=l,s="workspace",i=l}else if(a[0]==="file")s="file",i=h(a.slice(1));else if(a.length>=3&&k(a[0])&&a[1]==="file")o=a[0],s="file",i=h(a.slice(2));else if(a.length===5&&a[1]==="agent"&&a[3]==="message"&&k(a[0])&&k(a[2])&&k(a[4])&&n.length===5&&n[1]==="agent"&&n[3]==="message")o=n[0],s="message",_=n[2],i=n[4];else if(n[0]==="note"||n[0]==="task")s=n[0],i=n[1];else if(n.length>=3&&(n[1]==="note"||n[1]==="task"))o=n[0],s=n[1],i=n[2];else return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:f()};if(!i||i.trim().length===0)return{type:"unknown",orgId:t,resourceId:"",valid:!1,error:c.ui_linkHandler_emptyResourceId_error()};if(s==="note"||s==="task")return{type:s,orgId:t,workspaceId:o,resourceId:i,valid:!0};if(s==="file"){const l=/^#L\d+(?:-\d+|C\d+)?$/.test(r.hash)?r.hash:"",E=a.slice(o?2:1).join("/"),m=A(E+l);return i=h(m.path.split("/")),w=m.line,H(i)?{type:"file",orgId:t,workspaceId:o,resourceId:i,...w!==void 0?{line:w}:{},valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:"",valid:!1,error:c.ui_linkHandler_invalidFilePath_error()}}return s==="workspace"&&o?{type:"workspace",orgId:t,workspaceId:o,resourceId:i,valid:!0}:s==="message"&&o&&_?{type:"message",orgId:t,workspaceId:o,resourceId:i,agentId:_,valid:!0}:{type:"unknown",orgId:t,workspaceId:o,resourceId:i,valid:!1,error:c.ui_linkHandler_unknownResourceType_error({type:s})}}catch(r){return{type:"unknown",orgId:"",resourceId:"",valid:!1,error:r instanceof Error?r.message:c.ui_linkHandler_parseFailed_error()}}}function h(e){return e.map(r=>decodeURIComponent(r)).join("/")}function H(e){return/^[A-Za-z]:/.test(e)?!1:e.split(/[\\/]/).every(t=>t.length>0&&t!=="."&&t!=="..")}const j=new Set([L,"new"]);function O(e){if(e===void 0||!k(e))return null;const r=decodeURIComponent(e);return j.has(r)?null:r}function k(e){let r;try{r=decodeURIComponent(e)}catch{return!1}return r.length>0&&r!=="."&&r!==".."&&!/[\\/]/.test(r)}async function T(e,r={}){if(!e.startsWith("intent://"))return!1;const t=W(e);if(!t.valid)return I.error(c.ui_linkHandler_invalidLink_title(),{description:t.error||c.ui_linkHandler_invalidLink_description()}),!0;try{switch(t.type){case"note":case"task":await N(t,r);break;case"file":await b(t,r);break;case"workspace":await C(t.resourceId);break;case"message":{const{openMessage:n}=await p(async()=>{const{openMessage:a}=await import("./XHXZbc0Q.js");return{openMessage:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33]),import.meta.url);await n({workspaceId:t.workspaceId,agentId:t.agentId,messageId:t.resourceId});break}default:I.error(c.ui_linkHandler_unsupportedLink_title(),{description:c.ui_linkHandler_unsupportedLink_description({type:t.type})})}}catch(n){n instanceof u?I.error(c.ui_linkHandler_notFound_title(),{description:n.message}):I.error(c.ui_linkHandler_navigationFailed_title(),{description:n instanceof Error?n.message:c.ui_linkHandler_unknownError_label()})}return!0}function Z(e,r){return R(e,r)}function $(){return async(e,r,t)=>{const a=t.target.closest("a");return a?.href?.startsWith("intent://")?(t.preventDefault(),await T(a.href)):!1}}async function C(e){const{appClient:r}=await p(async()=>{const{appClient:a}=await import("./DV_c4cZz.js").then(o=>o.o);return{appClient:a}},__vite__mapDeps([3,1,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,2,20,21,22,23]),import.meta.url);if(!await r.workspaces.get(e).catch(()=>null))throw new u(c.workspace_loader_notFound_title());const{openAndShowWorkspace:n}=await p(async()=>{const{openAndShowWorkspace:a}=await import("./C_Q5e0bX.js").then(o=>o.s);return{openAndShowWorkspace:a}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);await n(e)}async function N(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const a=!t||e.workspaceId!==t;if(!await y(e.workspaceId,e.resourceId))throw new u(c.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:e.workspaceId}));if(a){const{openAndShowWorkspace:s}=await p(async()=>{const{openAndShowWorkspace:i}=await import("./C_Q5e0bX.js").then(_=>_.s);return{openAndShowWorkspace:i}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);await s(e.workspaceId,{query:{note:e.resourceId}})}else d.dispatch(v(e.workspaceId,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());if(!await y(t,e.resourceId))throw new u(c.ui_linkHandler_noteNotFoundCurrent_error({noteId:e.resourceId}));d.dispatch(v(t,e.resourceId,{openInAdjacentPanel:r.openInAdjacentPanel??!1,openInNewAdjacentPanel:r.openInNewAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function b(e,r){const t=r.workspaceId??P.select(d.state)??void 0;if(e.workspaceId){const n=!t||e.workspaceId!==t;if(n){const{openAndShowWorkspace:a}=await p(async()=>{const{openAndShowWorkspace:o}=await import("./C_Q5e0bX.js").then(s=>s.s);return{openAndShowWorkspace:o}},__vite__mapDeps([33,7,5,6,8,9,10,11,4,12,13,14,32]),import.meta.url);if(!await a(e.workspaceId))return}d.dispatch(g(e.workspaceId,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:n?!1:r.openInAdjacentPanel??!1,sourcePanelId:n?void 0:r.sourcePanelId}));return}if(!t)throw new u(c.ui_linkHandler_noSpaceOpen_error());d.dispatch(g(t,e.resourceId,{filePathIsLiteral:!0,...e.line!==void 0?{line:e.line}:{},openInAdjacentPanel:r.openInAdjacentPanel??!1,sourcePanelId:r.sourcePanelId}))}async function y(e,r){try{const{backendRequest:t}=await p(async()=>{const{backendRequest:o}=await import("./B1s_9zgm.js").then(s=>s.j);return{backendRequest:o}},__vite__mapDeps([15,4,5,14,10,16,13,17,11,18,19]),import.meta.url),n=await t("note.get",{workspaceId:e,noteId:r}),a=n&&typeof n=="object"&&"note"in n?n.note:n;return a!=null&&typeof a=="object"}catch{return!1}}export{u as NotFoundError,$ as createIntentLinkClickHandler,Z as generateNoteLink,T as handleIntentLink,W as parseIntentLink};
@@ -1 +1 @@
1
- import{p as e}from"./BBCbq-hE.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
1
+ import{p as e}from"./COO6ldt4.js";import{p as t}from"./XJv96NUg.js";const o=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];e({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:o});const s=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];t({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:s,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});
@@ -1 +1 @@
1
- import{t as se,bq as u,by as ie,b as ae}from"./41c-5lbJ.js";import{bs as ne,a5 as A,bl as U,bS as R,bA as y,bf as oe,b_ as V,aD as e,bO as X,W as g,bn as de,c9 as c,aA as m,aB as Q,a7 as O,ay as q}from"./DYhIMPy1.js";import{i as B}from"./ClgmQqA9.js";import{g as Y}from"./CEufllny.js";import{s as Z}from"./BhX-5zd9.js";import{s as we}from"./BuupGai6.js";import{c as Ie,e as Se,s as _,f as Ce}from"./BBCbq-hE.js";import{S as ye}from"./ChD6V-mA.js";var ke=Q('<div class="max-w-full shrink-0"><!></div>'),Le=Q('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),Be=Q('<p class="type-body mt-2 text-danger" role="alert"> </p>'),Qe=Q('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function ce(a,i){if(new.target)return se({component:ce,...a});ne(i,!0);let o=u(i,"id",7),v=u(i,"title",7),p=u(i,"description",7),x=u(i,"busy",7,!1),h=u(i,"error",7),w=u(i,"actions",7),I=u(i,"children",7),k=u(i,"class",7);const T=c(()=>o()?`${o()}-title`:void 0),z=c(()=>o()&&p()?`${o()}-description`:void 0),j=c(()=>o()&&h()?`${o()}-error`:void 0),E=c(()=>[e(z),e(j)].filter(Boolean).join(" ")||void 0);var G={get id(){return o()},set id(r){o(r),m()},get title(){return v()},set title(r){v(r),m()},get description(){return p()},set description(r){p(r),m()},get busy(){return x()},set busy(r=!1){x(r),m()},get error(){return h()},set error(r){h(r),m()},get actions(){return w()},set actions(r){w(r),m()},get children(){return I()},set children(r){I(r),m()},get class(){return k()},set class(r){k(r),m()},$set:ie,$on:(r,d)=>ae(i,r,d)},f=Qe(),t=A(f),n=A(t),l=A(n),b=U(l,!0),S=R(l,2);{var s=r=>{var d=ke(),C=A(d);Z(C,w),y(d),g(r,d)};B(S,r=>{w()&&r(s)})}y(n);var D=R(n,2);{var N=r=>{var d=Le(),C=U(d,!0);V(()=>{_(d,"id",e(z)),X(C,p())}),g(r,d)};B(D,r=>{p()&&r(N)})}y(t);var F=R(t,2);{var H=r=>{var d=Be(),C=U(d,!0);V(()=>{_(d,"id",e(j)),X(C,h())}),g(r,d)};B(F,r=>{h()&&r(H)})}var P=R(F,2),J=A(P);return Z(J,()=>I()??oe),y(P),y(f),V(r=>{_(f,"id",o()),_(f,"data-highlight-id",o()),Ce(f,1,r),_(f,"aria-labelledby",e(T)),_(f,"aria-label",e(T)?void 0:v()),_(f,"aria-describedby",e(E)),_(f,"aria-busy",x()||void 0),_(l,"id",e(T)),X(b,v())},[()=>Ie(Se("min-w-0 scroll-mt-20",k()))]),g(a,f),de(G)}function Ee(a){return a}function Ge(a){return a}function W(a,i){return a===void 0?i:typeof a=="function"?a():a}function Te(a,i){const o=i.trim().toLocaleLowerCase();return o?[a.label,a.description,a.featureCode,a.id].filter(Boolean).some(v=>v.toLocaleLowerCase().includes(o)):!0}var je=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),Fe=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function Ae(a,i){if(new.target)return se({component:Ae,...a});ne(i,!0);const o=(t,n=oe)=>{var l=O(),b=q(l);Y(b,17,n,S=>S.id,(S,s)=>{const D=c(()=>`setting-${e(s).id}`),N=c(()=>W(e(s).disabled,!1)),F=c(()=>W(e(s).busy,!1)),H=c(()=>W(e(s).error,void 0)),P=c(()=>W(e(s).status,void 0));{const J=(ue,K)=>{let me=()=>(K?.()).labelId,fe=()=>(K?.()).descriptionId,ge=()=>(K?.()).errorId;const $=c(()=>({entry:e(s),controlId:e(D),labelId:me(),descriptionId:fe(),errorId:ge(),disabled:e(N),busy:e(F)}));var ee=O(),ve=q(ee);{var be=L=>{var te=O(),he=q(te);{var _e=M=>{var re=O(),xe=q(re);Z(xe,()=>x()[e(s).id],()=>e($)),g(M,re)};B(he,M=>{x()[e(s).id]&&M(_e)})}g(L,te)},pe=L=>{ye(L,{get entry(){return e(s)},get context(){return e($)},get compact(){return I()}})};B(ve,L=>{e(s).kind==="custom"?L(be):L(pe,-1)})}g(ue,ee)};let r=c(()=>e(s).kind==="custom"&&e(s).layout==="full-width"),d=c(()=>T(e(s).kind)?e(D):void 0),C=c(()=>e(s).kind==="select"),le=c(()=>[e(s).label,e(s).description,e(s).featureCode].filter(Boolean).join(" "));we(S,{get compact(){return I()},get id(){return e(s).id},get label(){return e(s).label},get description(){return e(s).description},get descriptionContent(){return h()[e(s).id]},get controlOnly(){return e(r)},get htmlFor(){return e(d)},get activateLabel(){return e(C)},get disabled(){return e(N)},get busy(){return e(F)},get error(){return e(H)},get status(){return e(P)},get statusTone(){return e(s).statusTone},get danger(){return e(s).danger},get experimental(){return e(s).experimental},get featureCode(){return e(s).featureCode},get searchText(){return e(le)},get class(){return e(s).class},control:J,$$slots:{control:!0}})}}),g(t,l)};let v=u(i,"schema",7),p=u(i,"searchQuery",7,""),x=u(i,"custom",23,()=>({})),h=u(i,"descriptions",23,()=>({})),w=u(i,"embedded",7,!1),I=u(i,"compact",7,!0);const k=c(()=>v().sections.filter(t=>t.when?.()??!0).map(t=>({...t,entries:t.entries.filter(n=>(n.when?.()??!0)&&Te(n,p()))})).filter(t=>t.entries.length>0)),T=t=>["select","input","number","path","keybinding"].includes(t);var z={get schema(){return v()},set schema(t){v(t),m()},get searchQuery(){return p()},set searchQuery(t=""){p(t),m()},get custom(){return x()},set custom(t={}){x(t),m()},get descriptions(){return h()},set descriptions(t={}){h(t),m()},get embedded(){return w()},set embedded(t=!1){w(t),m()},get compact(){return I()},set compact(t=!0){I(t),m()},$set:ie,$on:(t,n)=>ae(i,t,n)},j=O(),E=q(j);{var G=t=>{var n=je();Y(n,21,()=>e(k),l=>l.id,(l,b)=>{o(l,()=>e(b).entries)}),y(n),g(t,n)},f=t=>{var n=Fe();Y(n,21,()=>e(k),l=>l.id,(l,b)=>{ce(l,{get id(){return e(b).id},get title(){return e(b).title},get description(){return e(b).description},children:(S,s)=>{o(S,()=>e(b).entries)},$$slots:{default:!0}})}),y(n),g(t,n)};B(E,t=>{w()?t(G):t(f,-1)})}return g(a,j),de(z)}export{Ae as S,ce as a,Ge as b,Ee as d};
1
+ import{t as se,bq as u,by as ie,b as ae}from"./BUAFIktJ.js";import{bs as ne,a5 as A,bl as U,bS as R,bA as y,bf as oe,b_ as V,aD as e,bO as X,W as g,bn as de,c9 as c,aA as m,aB as Q,a7 as O,ay as q}from"./DYhIMPy1.js";import{i as B}from"./Bvd0DfwC.js";import{g as Y}from"./vJ7Dp7-k.js";import{s as Z}from"./CnTu6sc6.js";import{s as we}from"./B6lWPidK.js";import{c as Ie,e as Se,s as _,f as Ce}from"./COO6ldt4.js";import{S as ye}from"./AnpLuuuk.js";var ke=Q('<div class="max-w-full shrink-0"><!></div>'),Le=Q('<p class="type-body max-w-2xl text-muted-foreground"> </p>'),Be=Q('<p class="type-body mt-2 text-danger" role="alert"> </p>'),Qe=Q('<section data-slot="settings-section"><header class="space-y-1"><div class="flex min-w-0 flex-wrap items-center justify-between gap-3 sm:flex-nowrap"><h2 class="type-title min-w-0 break-words text-foreground"> </h2> <!></div> <!></header> <!> <div data-slot="settings-section-content" class="mt-4 min-w-0 divide-y divide-border rounded-(--radius-medium) bg-card"><!></div></section>');function ce(a,i){if(new.target)return se({component:ce,...a});ne(i,!0);let o=u(i,"id",7),v=u(i,"title",7),p=u(i,"description",7),x=u(i,"busy",7,!1),h=u(i,"error",7),w=u(i,"actions",7),I=u(i,"children",7),k=u(i,"class",7);const T=c(()=>o()?`${o()}-title`:void 0),z=c(()=>o()&&p()?`${o()}-description`:void 0),j=c(()=>o()&&h()?`${o()}-error`:void 0),E=c(()=>[e(z),e(j)].filter(Boolean).join(" ")||void 0);var G={get id(){return o()},set id(r){o(r),m()},get title(){return v()},set title(r){v(r),m()},get description(){return p()},set description(r){p(r),m()},get busy(){return x()},set busy(r=!1){x(r),m()},get error(){return h()},set error(r){h(r),m()},get actions(){return w()},set actions(r){w(r),m()},get children(){return I()},set children(r){I(r),m()},get class(){return k()},set class(r){k(r),m()},$set:ie,$on:(r,d)=>ae(i,r,d)},f=Qe(),t=A(f),n=A(t),l=A(n),b=U(l,!0),S=R(l,2);{var s=r=>{var d=ke(),C=A(d);Z(C,w),y(d),g(r,d)};B(S,r=>{w()&&r(s)})}y(n);var D=R(n,2);{var N=r=>{var d=Le(),C=U(d,!0);V(()=>{_(d,"id",e(z)),X(C,p())}),g(r,d)};B(D,r=>{p()&&r(N)})}y(t);var F=R(t,2);{var H=r=>{var d=Be(),C=U(d,!0);V(()=>{_(d,"id",e(j)),X(C,h())}),g(r,d)};B(F,r=>{h()&&r(H)})}var P=R(F,2),J=A(P);return Z(J,()=>I()??oe),y(P),y(f),V(r=>{_(f,"id",o()),_(f,"data-highlight-id",o()),Ce(f,1,r),_(f,"aria-labelledby",e(T)),_(f,"aria-label",e(T)?void 0:v()),_(f,"aria-describedby",e(E)),_(f,"aria-busy",x()||void 0),_(l,"id",e(T)),X(b,v())},[()=>Ie(Se("min-w-0 scroll-mt-20",k()))]),g(a,f),de(G)}function Ee(a){return a}function Ge(a){return a}function W(a,i){return a===void 0?i:typeof a=="function"?a():a}function Te(a,i){const o=i.trim().toLocaleLowerCase();return o?[a.label,a.description,a.featureCode,a.id].filter(Boolean).some(v=>v.toLocaleLowerCase().includes(o)):!0}var je=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 divide-y divide-border"></div>'),Fe=Q('<div data-slot="settings-form" class="@container/settings-form min-w-0 space-y-10"></div>');function Ae(a,i){if(new.target)return se({component:Ae,...a});ne(i,!0);const o=(t,n=oe)=>{var l=O(),b=q(l);Y(b,17,n,S=>S.id,(S,s)=>{const D=c(()=>`setting-${e(s).id}`),N=c(()=>W(e(s).disabled,!1)),F=c(()=>W(e(s).busy,!1)),H=c(()=>W(e(s).error,void 0)),P=c(()=>W(e(s).status,void 0));{const J=(ue,K)=>{let me=()=>(K?.()).labelId,fe=()=>(K?.()).descriptionId,ge=()=>(K?.()).errorId;const $=c(()=>({entry:e(s),controlId:e(D),labelId:me(),descriptionId:fe(),errorId:ge(),disabled:e(N),busy:e(F)}));var ee=O(),ve=q(ee);{var be=L=>{var te=O(),he=q(te);{var _e=M=>{var re=O(),xe=q(re);Z(xe,()=>x()[e(s).id],()=>e($)),g(M,re)};B(he,M=>{x()[e(s).id]&&M(_e)})}g(L,te)},pe=L=>{ye(L,{get entry(){return e(s)},get context(){return e($)},get compact(){return I()}})};B(ve,L=>{e(s).kind==="custom"?L(be):L(pe,-1)})}g(ue,ee)};let r=c(()=>e(s).kind==="custom"&&e(s).layout==="full-width"),d=c(()=>T(e(s).kind)?e(D):void 0),C=c(()=>e(s).kind==="select"),le=c(()=>[e(s).label,e(s).description,e(s).featureCode].filter(Boolean).join(" "));we(S,{get compact(){return I()},get id(){return e(s).id},get label(){return e(s).label},get description(){return e(s).description},get descriptionContent(){return h()[e(s).id]},get controlOnly(){return e(r)},get htmlFor(){return e(d)},get activateLabel(){return e(C)},get disabled(){return e(N)},get busy(){return e(F)},get error(){return e(H)},get status(){return e(P)},get statusTone(){return e(s).statusTone},get danger(){return e(s).danger},get experimental(){return e(s).experimental},get featureCode(){return e(s).featureCode},get searchText(){return e(le)},get class(){return e(s).class},control:J,$$slots:{control:!0}})}}),g(t,l)};let v=u(i,"schema",7),p=u(i,"searchQuery",7,""),x=u(i,"custom",23,()=>({})),h=u(i,"descriptions",23,()=>({})),w=u(i,"embedded",7,!1),I=u(i,"compact",7,!0);const k=c(()=>v().sections.filter(t=>t.when?.()??!0).map(t=>({...t,entries:t.entries.filter(n=>(n.when?.()??!0)&&Te(n,p()))})).filter(t=>t.entries.length>0)),T=t=>["select","input","number","path","keybinding"].includes(t);var z={get schema(){return v()},set schema(t){v(t),m()},get searchQuery(){return p()},set searchQuery(t=""){p(t),m()},get custom(){return x()},set custom(t={}){x(t),m()},get descriptions(){return h()},set descriptions(t={}){h(t),m()},get embedded(){return w()},set embedded(t=!1){w(t),m()},get compact(){return I()},set compact(t=!0){I(t),m()},$set:ie,$on:(t,n)=>ae(i,t,n)},j=O(),E=q(j);{var G=t=>{var n=je();Y(n,21,()=>e(k),l=>l.id,(l,b)=>{o(l,()=>e(b).entries)}),y(n),g(t,n)},f=t=>{var n=Fe();Y(n,21,()=>e(k),l=>l.id,(l,b)=>{ce(l,{get id(){return e(b).id},get title(){return e(b).title},get description(){return e(b).description},children:(S,s)=>{o(S,()=>e(b).entries)},$$slots:{default:!0}})}),y(n),g(t,n)};B(E,t=>{w()?t(G):t(f,-1)})}return g(a,j),de(z)}export{Ae as S,ce as a,Ge as b,Ee as d};
@@ -1,4 +1,4 @@
1
- import{p as tt}from"./oNlT93oA.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./gWaxvgpv.js";import{p as ut}from"./W2yoNJFv.js";import{o as mt}from"./4XRamNN4.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
1
+ import{p as tt}from"./DjaIRWIW.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./DEo5mzFE.js";import{p as ut}from"./tSZXsoGb.js";import{o as mt}from"./BodHilN5.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
2
2
  .pieCircle{
3
3
  stroke: ${t.pieStrokeColor};
4
4
  stroke-width : ${t.pieStrokeWidth};
@@ -1 +1 @@
1
- import{aR as t,aP as i,b4 as c,a0 as f}from"./DYhIMPy1.js";import{B as y}from"./41c-5lbJ.js";const b=Symbol("NaN");function h(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{h as k};
1
+ import{aR as t,aP as i,b4 as c,a0 as f}from"./DYhIMPy1.js";import{B as y}from"./BUAFIktJ.js";const b=Symbol("NaN");function h(r,e,n){t&&i();var o=new y(r),s=!c();f(()=>{var a=e();a!==a&&(a=b),s&&a!==null&&typeof a=="object"&&(a={}),o.ensure(a,n)})}export{h as k};
@@ -1,2 +1,2 @@
1
- import{b as e,ay as s,aX as o,B as i}from"./gWaxvgpv.js";import{p as g}from"./W2yoNJFv.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
1
+ import{b as e,ay as s,aX as o,B as i}from"./DEo5mzFE.js";import{p as g}from"./tSZXsoGb.js";var p={parse:e(async r=>{const a=await g("info",r);s.debug(a)},"parse")},v={version:"12.3.0"},d=e(()=>v.version,"getVersion"),m={getVersion:d},c=e((r,a,n)=>{s.debug(`rendering info diagram
2
2
  `+r);const t=o(a);i(t,100,400,!0),t.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${n}`)},"draw"),f={draw:c},b={parser:p,db:m,renderer:f};export{b as diagram};
@@ -1,3 +1,3 @@
1
- import{p as re}from"./oNlT93oA.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./gWaxvgpv.js";import{p as be,i as ve}from"./W2yoNJFv.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
1
+ import{p as re}from"./DjaIRWIW.js";import{Y as oe,b0 as se,aZ as de,U as le,V as ce,a_ as me,b as o,ay as g,X as R,aW as ue,b4 as xe,r as fe,q as ge,W as B,O as he,aV as P,bi as S,m as pe}from"./DEo5mzFE.js";import{p as be,i as ve}from"./tSZXsoGb.js";var D="position frame",N="frame positioned",k="position relation",T="relation positioned",we=o(function(e){g.debug("options str",e)},"setOptions"),ye=o(function(){return{}},"getOptions"),Pe=o(function(){C(),fe()},"clear");function C(){w={}}o(C,"reset");var Se=he.eventmodeling,ke=o(()=>ge({...Se,...B().eventmodeling}),"getConfig"),w={};function O(){let e=Fe;const{ast:n}=w,t=E();if(!n)throw new Error("No data for EventModel");return n.frames.forEach((i,a)=>{const r=L(i,n.dataEntities,t);e=v(e,{$kind:D,index:a,frame:i,textProps:r});let d;K(i)?(g.debug("source frame",i.sourceFrames),d=n.frames.filter(l=>i.sourceFrames.some(c=>c.$refText===l.name)),d.forEach(l=>{e=v(e,{$kind:k,index:a,frame:i,sourceFrame:l})})):e=v(e,{$kind:k,index:a,frame:i})}),e={...e,sortedSwimlanesArray:A(e.swimlanes)},e}o(O,"getState");function W(e){w.ast=void 0;const n=new Set;for(const t of e.frames){if(n.has(t.name)){const i=t.$cstNode?.range.start.line,a=i===void 0?"":` on line ${i+1}`;throw new Error(`Duplicate event modeling frame ID "${t.name}"${a}`)}n.add(t.name)}w.ast=e}o(W,"setAst");var s={swimlaneMinHeight:70,swimlanePadding:15,swimlaneGap:10,boxPadding:10,boxOverlap:90,boxDefaultY:0,boxMinWidth:80,boxMaxWidth:450,boxMinHeight:80,boxMaxHeight:750,contentStartX:250,textMaxWidth:430,boxTextFontWeight:"bold",boxTextPadding:10,swimlaneTextFontWeight:"bold",labelUiAutomation:"UI/Automation",labelUiAutomationPrefix:"UI/A: ",labelCommandReadModel:"Command/Read Model",labelCommandReadModelPrefix:"C/RM: ",labelEvents:"Events",labelEventsPrefix:"Stream: "};function E(){return s}o(E,"getDiagramProps");var Fe={boxes:[],swimlanes:{},relations:[],maxR:0,sortedSwimlanesArray:[]};function I(e){const n=e.split(".");if(n.length===2)return n[0]}o(I,"extractNamespace");function H(e){const n=e.split(".");return n.length===2?n[1]:e}o(H,"extractName");function U(e,n){if(!(!n||n.length===0))return Object.values(e).find(t=>t.namespace===n)}o(U,"findSwimlaneByNamespace");function b(e,n,t){return Math.max(n,...Object.keys(e).filter(i=>{const a=Number.parseInt(i);return a>n&&a<t}).map(i=>Number.parseInt(i)))+1}o(b,"findNextAvailableIndex");function _(e,n){const t=I(e.entityIdentifier),i=U(n,t);switch(e.modelEntityType){case"ui":case"pcr":case"processor":return i?{index:i.index,label:i.namespace||s.labelUiAutomation}:t?{index:b(n,0,100),label:s.labelUiAutomationPrefix+t}:{index:0,label:s.labelUiAutomation};case"rmo":case"readmodel":case"cmd":case"command":return i?{index:i.index,label:i.namespace||s.labelCommandReadModel}:t?{index:b(n,100,200),label:s.labelCommandReadModelPrefix+t}:{index:100,label:s.labelCommandReadModel};case"evt":case"event":default:return i?{index:i.index,label:i.namespace||s.labelEvents}:t?{index:b(n,200,300),label:s.labelEventsPrefix+t}:{index:200,label:s.labelEvents}}}o(_,"calculateSwimlaneProps");function V(e){const{themeVariables:n}=B();switch(e.modelEntityType){case"ui":return{fill:n.emUiFill??"white",stroke:n.emUiStroke??"#dbdada"};case"pcr":case"processor":return{fill:n.emProcessorFill??"#edb3f6",stroke:n.emProcessorStroke??"#b88cbf"};case"rmo":case"readmodel":return{fill:n.emReadModelFill??"#d3f1a2",stroke:n.emReadModelStroke??"#a3b732"};case"cmd":case"command":return{fill:n.emCommandFill??"#bcd6fe",stroke:n.emCommandStroke??"#679ac3"};case"evt":case"event":return{fill:n.emEventFill??"#ffb778",stroke:n.emEventStroke??"#c19a0f"};default:return{fill:"red",stroke:"black"}}}o(V,"calculateEntityVisualProps");function L(e,n,t){const i=B(),a=P(H(e.entityIdentifier)??"",i);let r;const d={fontSize:16,fontWeight:700,fontFamily:'"trebuchet ms", verdana, arial, sans-serif',joinWith:"<br/>"};let c=`<b>${S(a,t.textMaxWidth,d)}</b>`;if(e.dataInlineValue&&(r=e.dataInlineValue,r=r.substring(r.indexOf("{")+1),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;")),e.dataReference){const p=n.find(y=>y.name===e.dataReference?.$refText);p&&(r=p.dataBlockValue,r=r.substring(r.indexOf(`{
2
2
  `)+2),r=r.substring(0,r.lastIndexOf("}")-1),r=P(r,i),r=S(r,t.textMaxWidth,d),r=r.replaceAll(" ","&nbsp;"),r+="<br/>")}const m=r!==void 0;m&&(c+=`<br/><br/><code style="text-align: left; display: block;max-width:${t.textMaxWidth}px">${r}</code>`);const x={fontSize:d.fontSize,fontWeight:d.fontWeight,fontFamily:d.fontFamily},u=pe(c,x),h=m?u.width/3:u.width,f={content:c,width:h,height:u.height};return g.debug(`[${e.name}] ${e.entityIdentifier} text`,f),f}o(L,"calculateTextProps");function G(e,n){const t=n,i=V(t.frame),a={width:t.textProps.width+2*s.boxTextPadding,height:t.textProps.height+2*s.boxTextPadding};return[{$kind:N,frame:t.frame,index:t.index,visual:i,dimension:a,textProps:t.textProps}]}o(G,"decidePositionFrame");function X(e,n,t){return n===void 0?s.contentStartX:n.index===e.index&&e.r?e.r+s.boxPadding:t===void 0?s.contentStartX:t.r-s.boxOverlap+s.boxPadding}o(X,"calculateX");function Y(e,n){const t=[...e.map(i=>i.r),n];return Math.max(...t)}o(Y,"calculateMaxRight");function A(e){return Object.values(e).sort((n,t)=>n.index-t.index)}o(A,"sortedSwimlanesArray");function j(e,n){const t=n,i=_(t.frame,e.swimlanes);let a;i.index in e.swimlanes?a=e.swimlanes[i.index]:a={index:i.index,label:i.label,r:0,y:i.index*s.swimlaneMinHeight+s.swimlaneGap,height:s.swimlaneMinHeight,maxHeight:s.swimlaneMinHeight};const r=e.boxes.length>0?e.boxes[e.boxes.length-1]:void 0,d=e.previousSwimlaneNumber!==void 0?e.swimlanes[e.previousSwimlaneNumber]:void 0,l={width:Math.max(s.boxMinWidth,Math.min(s.boxMaxWidth,t.dimension.width))+2*s.boxPadding,height:Math.max(s.boxMinHeight,Math.min(s.boxMaxHeight,t.dimension.height))+2*s.boxPadding},c=X(a,d,r),m=c+l.width+s.boxPadding,x=Y(Object.values(e.swimlanes),m);a.r=c+l.width,a.maxHeight=Math.max(a.maxHeight,l.height),a.height=Math.max(s.swimlaneMinHeight,a.maxHeight)+2*s.swimlanePadding;const u={x:c,y:s.swimlanePadding+a.y,r:m,dimension:l,leftSibling:!1,swimlane:a,visual:t.visual,text:t.textProps.content,frame:t.frame,index:t.index},h={...e,boxes:[...e.boxes,u],swimlanes:{...e.swimlanes,[`${a.index}`]:a},previousSwimlaneNumber:i.index,previousFrame:t.frame,maxR:x},f=A(h.swimlanes);f.length>0&&(f[0].y=0);for(let p=1;p<f.length;p++){const y=f[p],$=f[p-1];y.y=$.y+$.height+s.swimlaneGap}return h}o(j,"evolveFramePositioned");function z(e,n){return e===0&&n.sourceFrames.length===0}o(z,"isFirstFrame");function K(e){return e.sourceFrames!==void 0&&e.sourceFrames!==null&&e.sourceFrames.length>0}o(K,"hasSourceFrame");function F(e,n){if(n!=null)return e.find(t=>t.frame.name===n.name)}o(F,"findBoxByFrame");function q(e,n,t){if(!(t<0))for(let i=t;i>=0;i--){const a=e[i];if(a.swimlane.index!==n)return a}}o(q,"findBoxByLineIndex");function Z(e,n){const t=n;if(z(t.index,t.frame))return[];const i=F(e.boxes,t.frame);if(i===void 0)throw new Error(`Target box not found for frame ${t.frame.name}`);let a;if(t.sourceFrame)a=F(e.boxes,t.sourceFrame);else{if(ve(t.frame))return[];a=q(e.boxes,i.swimlane.index,t.index-1)}return a===void 0?[]:[{$kind:T,frame:t.frame,index:t.index,sourceBox:a,targetBox:i}]}o(Z,"decidePositionRelation");function J(e,n){const t=n,i={visual:{fill:"none",stroke:"#000"},source:{x:t.sourceBox.x,y:t.sourceBox.y},target:{x:t.targetBox.x,y:t.targetBox.y},sourceBox:t.sourceBox,targetBox:t.targetBox};return{...e,relations:[...e.relations,i]}}o(J,"evolveRelationPositioned");var Me={[D]:G,[k]:Z},Be={[N]:j,[T]:J};function Q(e,n){const t=Me[n.$kind];if(t==null)return[];const i=t(e,n);return g.debug("decided events",i),i}o(Q,"decide");function ee(e,n){const t=n.reduce((i,a)=>{const r=Be[a.$kind];return r==null?i:r(i,a)},e);return g.debug("evolve events",{state:e,newState:t,events:n}),t}o(ee,"evolve");function v(e,n){const t=Q(e,n);return ee(e,t)}o(v,"dispatch");var M={getConfig:ke,preserveCommentsWhenParsing:!0,setOptions:we,getOptions:ye,clear:Pe,setAccTitle:me,getAccTitle:ce,getAccDescription:le,setAccDescription:de,setDiagramTitle:se,getDiagramTitle:oe,setAst:W,getDiagramProps:E,getState:O},Ee={parse:o(async e=>{const n=await be("eventmodeling",e);g.debug(n),M.setAst(n),re(n,M)},"parse")},Ae=R(),$e=Ae?.eventmodeling;function te(e,n){return t=>{const i=t.swimlane.y+n.swimlanePadding,a=e.append("g").attr("class","em-box");a.append("rect").attr("x",t.x).attr("y",i).attr("rx","3").attr("width",t.dimension.width).attr("height",t.dimension.height).attr("stroke",t.visual.stroke).attr("fill",t.visual.fill),a.append("foreignObject").attr("x",t.x+n.boxPadding).attr("y",i+10).attr("width",t.dimension.width-2*n.boxPadding).attr("height",t.dimension.height-2*n.boxPadding).append("xhtml:div").style("display","table").style("height","100%").style("width","100%").append("span").style("display","table-cell").style("text-align","center").style("vertical-align","middle").html(t.text)}}o(te,"renderD3Box");function ne(e,n){return e>n}o(ne,"dirUpwards");function ie(e,n,t,i){return a=>{const r=a.sourceBox.swimlane.y+n.swimlanePadding,d=a.targetBox.swimlane.y+n.swimlanePadding,l=ne(r,d),c=a.sourceBox.x+a.sourceBox.dimension.width*2/3,m=a.targetBox.x+a.targetBox.dimension.width/3;let x,u;g.debug(`rendering relation up=${l} for `,{sourceBox:a.sourceBox,targetBox:a.targetBox}),l?(x=r,u=d+a.targetBox.dimension.height):(x=r+a.sourceBox.dimension.height,u=d);const h=i.emRelationStroke??a.visual.stroke;e.append("path").attr("class","em-relation").attr("fill",a.visual.fill).attr("stroke",h).attr("stroke-width","1").attr("marker-end",`url(#${t})`).attr("d",`M${c} ${x} L${m} ${u}`)}}o(ie,"renderD3Relation");function ae(e,n,t,i){return a=>{const r=e.append("g").attr("class","em-swimlane"),d=i.emSwimlaneBackgroundOdd??"rgb(250,250,250)",l=i.emSwimlaneBackgroundStroke??"rgb(240,240,240)";r.append("rect").attr("x",0).attr("y",a.y).attr("rx","3").attr("width",n+t.swimlanePadding).attr("height",a.height).attr("fill",d).attr("stroke",l),r.append("text").attr("font-weight",t.swimlaneTextFontWeight).attr("x",30).attr("y",a.y+30).text(a.label)}}o(ae,"renderD3Swimlane");var Re=o(function(e,n,t,i){if(g.debug("in eventmodeling renderer",e+`
3
3
  `,"id:",n,t),!$e)throw new Error("EventModeling config not found");const a=i.db,{themeVariables:r,eventmodeling:d}=R(),l=ue(`[id="${n}"]`),c=a.getDiagramProps(),m=a.getState(),x=`em-arrowhead-${n}`,u=r.emArrowhead??"#000000";m.sortedSwimlanesArray.forEach(ae(l,m.maxR,c,r)),m.boxes.forEach(te(l,c)),m.relations.forEach(ie(l,c,x,r)),l.append("defs").append("marker").attr("id",x).attr("markerWidth","10").attr("markerHeight","7").attr("refX","10").attr("refY","3.5").attr("orient","auto").append("polygon").attr("points","0 0, 10 3.5, 0 7").attr("fill",u),xe(void 0,l,d?.padding??30,d?.useMaxWidth)},"draw"),De={draw:Re},Ne=o(e=>"","getStyles"),Te=Ne,Ie={parser:Ee,db:M,renderer:De,styles:Te};export{Ie as diagram};
@@ -1,4 +1,4 @@
1
- import{Iv as N}from"./BuDJvkTk.js";const z=N.createSelector((t,e,o)=>Object.values(t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId[o]??{})),D=N.createSelector((t,e,o)=>{const n=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{};return Object.values(n).flatMap(s=>Object.values(s)).filter(s=>s.agentId===o)});let b=1;const I=new WeakMap;function $(t){let e=I.get(t);return e||(e=b++,I.set(t,e)),e}function m(t){if(t==null)return"";if(typeof t=="string")return`s:${t.length}:${t.slice(0,16)}:${t.slice(-16)}`;if(typeof t!="object")return`${typeof t}:${String(t)}`;if(Array.isArray(t))return`a:${$(t)}:${t.length}`;const e=Object.keys(t).sort();return`o:${$(t)}:${e.map(o=>`${o}=${m(t[o])}`).join(",")}`}function K(t){const e=[`message:${t.id||""}:${t.appMessageId||""}:${t.role}`];for(const o of t.toolCalls||[])e.push(`call:${o.id}:${o.status||""}:${o.error||""}`);for(const o of t.toolResults||[])e.push(`result:${o.toolCallId}:${o.isError?"1":"0"}:${m(o.content)}`);for(const[o,n]of(t.contentBlocks||[]).entries())if(n.type==="tool_use"){const s=n.metadata;e.push(`use:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${s?.toolId||""}:${n.name||""}:${n.toolName||""}:${m(n.input)}:${m(s?.toolInput)}`)}else n.type==="tool_result"&&e.push(`result-block:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${n.is_error?"1":"0"}:${n.isError?"1":"0"}:${m(n.content||n.text)}`);return e.join("|")}function y(t){if(!t)return!1;const e=typeof t=="string"?t:JSON.stringify(t);return[/tool .* not found/i,/tool .* not available/i,/unknown tool/i,/invalid tool/i,/tool execution failed/i,/failed to execute tool/i,/tool error:/i].some(n=>n.test(e))}const S=new WeakMap;function k(t){const e=S.get(t);if(e)return e;const o=new Set;if(t.toolResults)for(const n of t.toolResults)(n.isError||y(n.content))&&n.toolCallId&&o.add(n.toolCallId);if(t.toolCalls)for(const n of t.toolCalls)(n.status==="failed"||n.error)&&n.id&&o.add(n.id);if(t.contentBlocks){const n=t.contentBlocks;for(let s=0;s<n.length;s++){const i=n[s];if(i.type==="tool_result"){const r=i.is_error||i.isError,l=y(i.content||i.text);if(r||l){let a=i.tool_use_id||i.toolCallId||i.id;if(!a&&s>0){const f=n[s-1];f.type==="tool_use"&&(a=f.id||f.tool_use_id||f.toolCallId)}a&&o.add(a)}}}}return S.set(t,o),o}function U(t){const e=new Map;if(t.role!=="assistant"||!t.contentBlocks)return{changes:[],totalFiles:0,totalAdditions:0,totalDeletions:0};const o=k(t);for(const s of t.contentBlocks){if(s.type!=="tool_use")continue;const i=s.id||s.tool_use_id||s.toolCallId;if(i&&o.has(i))continue;const r=A(s);if(r){const l=e.get(r.filePath);l?(l.additions+=r.additions,l.deletions+=r.deletions,l.action=r.action,l.newContent=r.newContent,l.toolCallId=r.toolCallId,l.toolName=r.toolName):e.set(r.filePath,{...r})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function v(t){const e=new Map,o=new Set;for(const s of t){const i=k(s);for(const r of i)o.add(r)}for(const s of t)if(!(s.role!=="assistant"||!s.contentBlocks))for(const i of s.contentBlocks){if(i.type!=="tool_use")continue;const r=i.id||i.tool_use_id||i.toolCallId;if(r&&o.has(r))continue;const l=A(i);if(l){const a=e.get(l.filePath);a?(a.additions+=l.additions,a.deletions+=l.deletions,a.action=l.action,a.newContent=l.newContent,a.toolCallId=l.toolCallId,a.toolName=l.toolName):e.set(l.filePath,{...l})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function M(t){const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.role==="user")break;n.role==="assistant"&&e.unshift(n)}return e}function V(t){const e=v(t).changes.map(n=>n.filePath),o=new Set(v(M(t)).changes.map(n=>n.filePath));return e.length===o.size&&e.every(n=>o.has(n))}const T=new Set(["spec","notes","tasks","readme","todo","changelog"]),O=new Set(["workspace_api","get_note","create_note","update_note","add_to_note","edit_note","delegate_task","create_agent"]);function E(t){let e=t.toLowerCase();const o=e.match(/\/\/local\/mcp\/(.+)$/);for(o&&(e=o[1]),e=e.replace(/^mcp__[^_]+__/,""),e=e.replace(/^workspace[-_]mcp[-_]/,"");/[-_]workspace-mcp$/.test(e);)e=e.replace(/[-_]workspace-mcp$/,"");return e}function L(t){const e=t.metadata;return[t.name,t.toolName,e?.toolName].some(n=>typeof n=="string"&&O.has(E(n)))}function x(t){if(/\s/.test(t))return!1;const e=t.includes("."),o=t.includes("/")||t.includes("\\");return e||o}function C(t){if(!t)return!1;const e=t.toLowerCase().trim();if(T.has(e)||e.includes(".workspace/notes/"))return!0;const o=e.includes("."),n=e.includes("/")||e.includes("\\");return!!(!o&&!n&&/^[a-z][a-z0-9-_]*$/.test(e))}function A(t){if(L(t))return null;if(t.inputTruncated===!0){const e=F(t);return e?{...e,additions:0,deletions:0,oldContent:void 0,newContent:void 0,startLineNumber:void 0}:null}return F(t)}function F(t){const e=typeof t.name=="string"&&t.name?t.name:typeof t.toolName=="string"?t.toolName:"",o=t.input||t.metadata?.toolInput||{},n=t.id||t.tool_use_id||t.metadata?.toolId||"",s=e.toLowerCase();if(s==="str_replace_editor"||s==="str-replace-editor"||s.startsWith("edit ")){const r=j(n,e,o);return r&&C(r.filePath)?null:r}const i=s==="save_file"||s==="save-file"||s==="write_file"||s==="write-file"||s==="create_file"||s==="create-file";if(i||s.startsWith("save ")||s.startsWith("create ")){const r=W(n,e,o,i);return r&&C(r.filePath)?null:r}if(s==="remove_files"||s==="remove-files"){const r=B(n,e,o);return r&&C(r.filePath)?null:r}return null}function p(t){if(t==null||typeof t=="object")return"";const e=typeof t=="string"?t:String(t);return e&&e.replace(/\\n/g,`
1
+ import{Iv as N}from"./iYz7qSVO.js";const z=N.createSelector((t,e,o)=>Object.values(t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId[o]??{})),D=N.createSelector((t,e,o)=>{const n=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{};return Object.values(n).flatMap(s=>Object.values(s)).filter(s=>s.agentId===o)});let b=1;const I=new WeakMap;function $(t){let e=I.get(t);return e||(e=b++,I.set(t,e)),e}function m(t){if(t==null)return"";if(typeof t=="string")return`s:${t.length}:${t.slice(0,16)}:${t.slice(-16)}`;if(typeof t!="object")return`${typeof t}:${String(t)}`;if(Array.isArray(t))return`a:${$(t)}:${t.length}`;const e=Object.keys(t).sort();return`o:${$(t)}:${e.map(o=>`${o}=${m(t[o])}`).join(",")}`}function K(t){const e=[`message:${t.id||""}:${t.appMessageId||""}:${t.role}`];for(const o of t.toolCalls||[])e.push(`call:${o.id}:${o.status||""}:${o.error||""}`);for(const o of t.toolResults||[])e.push(`result:${o.toolCallId}:${o.isError?"1":"0"}:${m(o.content)}`);for(const[o,n]of(t.contentBlocks||[]).entries())if(n.type==="tool_use"){const s=n.metadata;e.push(`use:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${s?.toolId||""}:${n.name||""}:${n.toolName||""}:${m(n.input)}:${m(s?.toolInput)}`)}else n.type==="tool_result"&&e.push(`result-block:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${n.is_error?"1":"0"}:${n.isError?"1":"0"}:${m(n.content||n.text)}`);return e.join("|")}function y(t){if(!t)return!1;const e=typeof t=="string"?t:JSON.stringify(t);return[/tool .* not found/i,/tool .* not available/i,/unknown tool/i,/invalid tool/i,/tool execution failed/i,/failed to execute tool/i,/tool error:/i].some(n=>n.test(e))}const S=new WeakMap;function k(t){const e=S.get(t);if(e)return e;const o=new Set;if(t.toolResults)for(const n of t.toolResults)(n.isError||y(n.content))&&n.toolCallId&&o.add(n.toolCallId);if(t.toolCalls)for(const n of t.toolCalls)(n.status==="failed"||n.error)&&n.id&&o.add(n.id);if(t.contentBlocks){const n=t.contentBlocks;for(let s=0;s<n.length;s++){const i=n[s];if(i.type==="tool_result"){const r=i.is_error||i.isError,l=y(i.content||i.text);if(r||l){let a=i.tool_use_id||i.toolCallId||i.id;if(!a&&s>0){const f=n[s-1];f.type==="tool_use"&&(a=f.id||f.tool_use_id||f.toolCallId)}a&&o.add(a)}}}}return S.set(t,o),o}function U(t){const e=new Map;if(t.role!=="assistant"||!t.contentBlocks)return{changes:[],totalFiles:0,totalAdditions:0,totalDeletions:0};const o=k(t);for(const s of t.contentBlocks){if(s.type!=="tool_use")continue;const i=s.id||s.tool_use_id||s.toolCallId;if(i&&o.has(i))continue;const r=A(s);if(r){const l=e.get(r.filePath);l?(l.additions+=r.additions,l.deletions+=r.deletions,l.action=r.action,l.newContent=r.newContent,l.toolCallId=r.toolCallId,l.toolName=r.toolName):e.set(r.filePath,{...r})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function v(t){const e=new Map,o=new Set;for(const s of t){const i=k(s);for(const r of i)o.add(r)}for(const s of t)if(!(s.role!=="assistant"||!s.contentBlocks))for(const i of s.contentBlocks){if(i.type!=="tool_use")continue;const r=i.id||i.tool_use_id||i.toolCallId;if(r&&o.has(r))continue;const l=A(i);if(l){const a=e.get(l.filePath);a?(a.additions+=l.additions,a.deletions+=l.deletions,a.action=l.action,a.newContent=l.newContent,a.toolCallId=l.toolCallId,a.toolName=l.toolName):e.set(l.filePath,{...l})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function M(t){const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.role==="user")break;n.role==="assistant"&&e.unshift(n)}return e}function V(t){const e=v(t).changes.map(n=>n.filePath),o=new Set(v(M(t)).changes.map(n=>n.filePath));return e.length===o.size&&e.every(n=>o.has(n))}const T=new Set(["spec","notes","tasks","readme","todo","changelog"]),O=new Set(["workspace_api","get_note","create_note","update_note","add_to_note","edit_note","delegate_task","create_agent"]);function E(t){let e=t.toLowerCase();const o=e.match(/\/\/local\/mcp\/(.+)$/);for(o&&(e=o[1]),e=e.replace(/^mcp__[^_]+__/,""),e=e.replace(/^workspace[-_]mcp[-_]/,"");/[-_]workspace-mcp$/.test(e);)e=e.replace(/[-_]workspace-mcp$/,"");return e}function L(t){const e=t.metadata;return[t.name,t.toolName,e?.toolName].some(n=>typeof n=="string"&&O.has(E(n)))}function x(t){if(/\s/.test(t))return!1;const e=t.includes("."),o=t.includes("/")||t.includes("\\");return e||o}function C(t){if(!t)return!1;const e=t.toLowerCase().trim();if(T.has(e)||e.includes(".workspace/notes/"))return!0;const o=e.includes("."),n=e.includes("/")||e.includes("\\");return!!(!o&&!n&&/^[a-z][a-z0-9-_]*$/.test(e))}function A(t){if(L(t))return null;if(t.inputTruncated===!0){const e=F(t);return e?{...e,additions:0,deletions:0,oldContent:void 0,newContent:void 0,startLineNumber:void 0}:null}return F(t)}function F(t){const e=typeof t.name=="string"&&t.name?t.name:typeof t.toolName=="string"?t.toolName:"",o=t.input||t.metadata?.toolInput||{},n=t.id||t.tool_use_id||t.metadata?.toolId||"",s=e.toLowerCase();if(s==="str_replace_editor"||s==="str-replace-editor"||s.startsWith("edit ")){const r=j(n,e,o);return r&&C(r.filePath)?null:r}const i=s==="save_file"||s==="save-file"||s==="write_file"||s==="write-file"||s==="create_file"||s==="create-file";if(i||s.startsWith("save ")||s.startsWith("create ")){const r=W(n,e,o,i);return r&&C(r.filePath)?null:r}if(s==="remove_files"||s==="remove-files"){const r=B(n,e,o);return r&&C(r.filePath)?null:r}return null}function p(t){if(t==null||typeof t=="object")return"";const e=typeof t=="string"?t:String(t);return e&&e.replace(/\\n/g,`
2
2
  `).replace(/\\t/g," ").replace(/\\r/g,"\r")}function _(t){return typeof t!="string"?null:t.trim()||null}function P(t){if(Array.isArray(t)){for(const e of t){const o=_(e);if(o)return o}return null}return _(t)}function j(t,e,o){let n=_(o.path);if(!n&&typeof e=="string"&&e.toLowerCase().startsWith("edit ")){const c=_(e.substring(5));n=c&&x(c)?c:null}if(!n)return null;if(o.command==="create"){const c=o.file_text??"",d=p(c),u=d?d.split(`
3
3
  `):[];return{filePath:n,action:"create",additions:u.length,deletions:0,toolName:e,toolCallId:t,oldContent:"",newContent:d}}let s=0,i=0;const r=[],l=[];let a;if(Array.isArray(o.str_replace_entries))for(const c of o.str_replace_entries){const d=c.old_str,u=c.new_str,h=c.old_str_start_line_number;if(d!==void 0&&u!==void 0){const g=p(d),w=p(u);i+=g?g.split(`
4
4
  `).length:0,s+=w?w.split(`
@@ -1,2 +1,2 @@
1
- import{b9 as et,an as xe,a2 as tt,as as rt,C as Ee,aR as W,J as Oe,aZ as ot,bG as Tt,aY as st,bZ as Pt,az as _t,t as ee,u as Gt,b as Lt,N as Rt,ao as Nt,aS as Et,aL as Ot,aD as Vt,A as Wt,aI as Bt,bM as Ve,a3 as jt,a_ as Ut,aj as $t,ai as Ft,ac as Ht,Z as Dt,bg as qt,U as Yt,n as Zt,bt as Kt,V as Xt}from"./DYhIMPy1.js";import{_ as ue,o as U,c as Jt,b as P,s as k,l as Qt}from"./CIyUrgF0.js";import{Z as ve}from"./BhX-5zd9.js";function er(e,r){var t=void 0,o;et(()=>{t!==(t=r())&&(o&&(xe(o),o=null),t&&(o=tt(()=>{rt(()=>t(e))})))})}function nt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=nt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function it(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=nt(e))&&(o&&(o+=" "),o+=r);return o}function tr(e){return typeof e=="object"?it(e):e??""}const We=[...`
1
+ import{b9 as et,an as xe,a2 as tt,as as rt,C as Ee,aR as W,J as Oe,aZ as ot,bG as Tt,aY as st,bZ as Pt,az as _t,t as ee,u as Gt,b as Lt,N as Rt,ao as Nt,aS as Et,aL as Ot,aD as Vt,A as Wt,aI as Bt,bM as Ve,a3 as jt,a_ as Ut,aj as $t,ai as Ft,ac as Ht,Z as Dt,bg as qt,U as Yt,n as Zt,bt as Kt,V as Xt}from"./DYhIMPy1.js";import{_ as ue,o as U,c as Jt,b as P,s as k,l as Qt}from"./CIyUrgF0.js";import{Z as ve}from"./CnTu6sc6.js";function er(e,r){var t=void 0,o;et(()=>{t!==(t=r())&&(o&&(xe(o),o=null),t&&(o=tt(()=>{rt(()=>t(e))})))})}function nt(e){var r,t,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(r=0;r<s;r++)e[r]&&(t=nt(e[r]))&&(o&&(o+=" "),o+=t)}else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function it(){for(var e,r,t=0,o="",s=arguments.length;t<s;t++)(e=arguments[t])&&(r=nt(e))&&(o&&(o+=" "),o+=r);return o}function tr(e){return typeof e=="object"?it(e):e??""}const We=[...`
2
2
  \r\f \v\uFEFF`];function rr(e,r,t){var o=e==null?"":""+e;if(r&&(o=o?o+" "+r:r),t){for(var s of Object.keys(t))if(t[s])o=o?o+" "+s:s;else if(o.length)for(var n=s.length,i=0;(i=o.indexOf(s,i))>=0;){var d=i+n;(i===0||We.includes(o[i-1]))&&(d===o.length||We.includes(o[d]))?o=(i===0?"":o.substring(0,i))+o.substring(d+1):i=d}}return o===""?null:o}function Be(e,r=!1){var t=r?" !important;":";",o="";for(var s of Object.keys(e)){var n=e[s];n!=null&&n!==""&&(o+=" "+s+": "+n+t)}return o}function ke(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function or(e,r){if(r){var t="",o,s;if(Array.isArray(r)?(o=r[0],s=r[1]):o=r,e){e=String(e).replaceAll(/\/\*.*?\*\//g,"").trim();var n=!1,i=0,d=!1,m=[];o&&m.push(...Object.keys(o).map(ke)),s&&m.push(...Object.keys(s).map(ke));var u=0,f=-1;const x=e.length;for(var h=0;h<x;h++){var y=e[h];if(d?y==="/"&&e[h-1]==="*"&&(d=!1):n?n===y&&(n=!1):y==="/"&&e[h+1]==="*"?d=!0:y==='"'||y==="'"?n=y:y==="("?i++:y===")"&&i--,!d&&n===!1&&i===0){if(y===":"&&f===-1)f=h;else if(y===";"||h===x-1){if(f!==-1){var A=ke(e.substring(u,f).trim());if(!m.includes(A)){y!==";"&&h++;var C=e.substring(u,h).trim();t+=" "+C+";"}}u=h+1,f=-1}}}}return o&&(t+=Be(o)),s&&(t+=Be(s,!0)),t=t.trim(),t===""?null:t}return e==null?null:String(e)}function sr(e,r,t,o,s,n){var i=e[Ee];if(W||i!==t||i===void 0){var d=rr(t,o,n);(!W||d!==e.getAttribute("class"))&&(d==null?e.removeAttribute("class"):r?e.className=d:e.setAttribute("class",d)),e[Ee]=t}else if(n&&s!==n)for(var m in n){var u=!!n[m];(s==null||u!==!!s[m])&&e.classList.toggle(m,u)}return n}function we(e,r={},t,o){for(var s in t){var n=t[s];r[s]!==n&&(t[s]==null?e.style.removeProperty(s):e.style.setProperty(s,n,o))}}function nr(e,r,t,o){var s=e[Oe];if(W||s!==r){var n=or(r,o);(!W||n!==e.getAttribute("style"))&&(n==null?e.removeAttribute("style"):e.style.cssText=n),e[Oe]=r}else o&&(Array.isArray(o)?(we(e,t?.[0],o[0]),we(e,t?.[1],o[1],"important")):we(e,t,o));return o}function at(e,r){r?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function je(e,r){var t=!("__defaultValue"in e);!t&&e.__defaultValue===r||(e.__defaultValue=r,lt(e,!t||"__value"in e))}function lt(e,r){var t=e.__defaultValue,o=e.multiple,s=o?t??[]:null;if(!(o&&!ot(s))){var n=e.selectedIndex,i=r&&o?new Set(e.selectedOptions):null;for(var d of e.options){var m=Se(d);at(d,o?s.includes(m):st(m,t))}if(r)if(i!==null)for(d of e.options){var u=i.has(d);d.selected!==u&&(d.selected=u)}else e.selectedIndex!==n&&(e.selectedIndex=n)}}function Ce(e,r,t=!1){if(e.multiple){if(r==null)return;if(!ot(r))return Tt();for(var o of e.options)o.selected=r.includes(Se(o));return}for(o of e.options){var s=Se(o);if(st(s,r)){o.selected=!0;return}}(!t||r!==void 0)&&(e.selectedIndex=-1)}function ir(e){var r=new MutationObserver(t=>{t.every(ar)||("__defaultValue"in e&&lt(e,!1),"__value"in e&&Ce(e,e.__value))});r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Pt(()=>{r.disconnect()})}function Se(e){return"__value"in e?e.__value:e.value}function ar(e){if(e.target.closest("selectedcontent")!==null)return!0;if(e.type==="childList"){var r=[...e.addedNodes,...e.removedNodes];return r.length>0&&r.every(t=>t.nodeName==="SELECTEDCONTENT")}return!1}const K=Symbol("class"),X=Symbol("style"),ct=Symbol("is custom element"),dt=Symbol("is html"),lr=ee?"link":"LINK",Ue=ee?"input":"INPUT",cr=ee?"option":"OPTION",ut=ee?"select":"SELECT",dr=ee?"progress":"PROGRESS";function ur(e){if(W){var r=!1,t=()=>{if(!r){if(r=!0,e.hasAttribute("value")){var o=e.value;Q(e,"value",null),e.value=o}if(e.hasAttribute("checked")){var s=e.checked;Q(e,"checked",null),e.checked=s}}};e[Zt]=t,Kt(t),Xt()}}function Q(e,r,t,o){var s=pt(e);if(W&&(s[r]=e.getAttribute(r),r==="src"||r==="srcset"||r==="href"&&e.nodeName===lr)){o||mr(e,r,t??"");return}var n=s[r];n!==(s[r]=t)&&(r==="loading"&&(e[Gt]=t),t==null?e.removeAttribute(r):typeof t!="string"&&mt(e).has(r)?e[r]=t:W&&(typeof t=="number"||typeof t=="boolean")&&n===String(t)||e.setAttribute(r,t))}function pr(e,r,t,o,s=!1,n=!1){W&&s&&e.nodeName===Ue&&("defaultValue"in t||"defaultChecked"in t||ur(e));var i=pt(e),d=i[ct],m=!i[dt];let u=W&&d;u&&Ve(!1);var f=r||{},h=e.nodeName===cr,y=e.nodeName===ut;try{for(var A in r)!(A in t)&&A[0]+A[1]!=="$$"&&(t[A]=null);t.class?t.class=tr(t.class):(o||t[K])&&(t.class=null),t[X]&&(t.style??=null);var C=mt(e);if(e.nodeName===Ue&&"type"in t&&("value"in t||"__value"in t)){var x=t.type;(x!==f.type||x===void 0&&e.hasAttribute("type"))&&(f.type=x,Q(e,"type",x,n))}for(const v in t){let g=t[v];if(h&&v==="value"&&g==null){e.value=e.__value="",f[v]=g;continue}if(v==="class"){var _=e.namespaceURI==="http://www.w3.org/1999/xhtml";sr(e,_,g,o,r?.[K],t[K]),f[v]=g,f[K]=t[K];continue}if(v==="style"){nr(e,g,r?.[X],t[X]),f[v]=g,f[X]=t[X];continue}var G=f[v];if(!(g===G&&!(g===void 0&&e.hasAttribute(v)))){f[v]=g;var w=v[0]+v[1];if(w!=="$$")if(w==="on"){const a={},z="$$"+v;let T=v.slice(2);var B=jt(T);if(Ut(T)&&(T=T.slice(0,-7),a.capture=!0),!B&&G){if(g!=null)continue;e.removeEventListener(T,f[z],a),f[z]=null}if(B)$t(T,e,g),Ft([T]);else if(g!=null){let te=function(q){f[v].call(this,q)};f[z]=Ht(T,e,te,a)}}else if(v==="style")Q(e,v,g);else if(v==="autofocus")Dt(e,!!g);else if(!d&&(v==="__value"||v==="value"&&g!=null))e.__value=g,(G==null||e.value!==g||g===0&&e.nodeName===dr)&&(e.value=g);else if(v==="selected"&&h)at(e,g);else{var S=v;m||(S=qt(S));var O=S==="defaultValue"||S==="defaultChecked";if(y&&S==="defaultValue")continue;if(g==null&&!d&&!O)if(i[v]=null,S==="value"||S==="checked"){let a=e;const z=r===void 0;if(S==="value"){let T=a.defaultValue;a.removeAttribute(S),a.defaultValue=T,a.value=a.__value=z?T:null}else{let T=a.defaultChecked;a.removeAttribute(S),a.defaultChecked=T,a.checked=z?T:!1}}else e.removeAttribute(v);else O||(d||typeof g!="string")&&C.has(S)?(e[S]=g,S in i&&(i[S]=Yt)):typeof g!="function"&&Q(e,S,g,n)}}}}finally{u&&Ve(!0)}return f}function ko(e,r,t=[],o=[],s=[],n,i=!1,d=!1){_t(s,t,o,m=>{var u=void 0,f={},h=e.nodeName===ut,y=!1;if(et(()=>{var C=r(...m.map(Vt)),x=pr(e,u,C,n,i,d);if(y&&h){var _=e;"defaultValue"in C&&je(_,C.defaultValue),"value"in C&&Ce(_,C.value)}for(let w of Object.getOwnPropertySymbols(f))C[w]||xe(f[w]);for(let w of Object.getOwnPropertySymbols(C)){var G=C[w];w.description===Wt&&(!u||G!==u[w])&&(f[w]&&xe(f[w]),f[w]=tt(()=>er(e,()=>G))),x[w]=G}u=x}),h){var A=e;rt(()=>{var C=u;"defaultValue"in C&&je(A,C.defaultValue),Ce(A,C.value,!0),ir(A)})}y=!0})}function pt(e){return e[Lt]??={[ct]:e.nodeName.includes("-"),[dt]:e.namespaceURI===Rt}}var $e=new Map;function mt(e){var r=e.getAttribute("is")||e.nodeName,t=$e.get(r);if(t)return t;$e.set(r,t=new Set);for(var o,s=e,n=Element.prototype;n!==s;){o=Bt(s);for(var i in o)o[i].set&&i!=="innerHTML"&&i!=="textContent"&&i!=="innerText"&&t.add(i);s=Ot(s)}return t}function mr(e,r,t){Nt&&(r==="srcset"&&fr(e,t)||Ae(e.getAttribute(r)??"",t)||Et(r,e.outerHTML.replace(e.innerHTML,e.innerHTML&&"..."),String(t)))}function Ae(e,r){return e===r?!0:new URL(e,document.baseURI).href===new URL(r,document.baseURI).href}function Fe(e){return e.split(",").map(r=>r.trim().split(" ").filter(Boolean))}function fr(e,r){var t=Fe(e.srcset),o=Fe(r);return o.length===t.length&&o.every(([s,n],i)=>n===t[i][1]&&(Ae(t[i][0],s)||Ae(s,t[i][0])))}typeof window<"u"&&typeof window.matchMedia!="function"&&(window.matchMedia=e=>({matches:!1,media:e,onchange:null,addListener(){},removeListener(){},addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}));const br=(e,r)=>{const t=new Array(e.length+r.length);for(let o=0;o<e.length;o++)t[o]=e[o];for(let o=0;o<r.length;o++)t[e.length+o]=r[o];return t},gr=(e,r)=>({classGroupId:e,validator:r}),ft=(e=new Map,r=null,t)=>({nextPart:e,validators:r,classGroupId:t}),pe="-",He=[],hr="arbitrary..",vr=e=>{const r=wr(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return kr(i);const d=i.split(pe),m=d[0]===""&&d.length>1?1:0;return bt(d,m,r)},getConflictingClassGroupIds:(i,d)=>{if(d){const m=o[i],u=t[i];return m?u?br(u,m):m:u||He}return t[i]||He}}},bt=(e,r,t)=>{if(e.length-r===0)return t.classGroupId;const s=e[r],n=t.nextPart.get(s);if(n){const u=bt(e,r+1,n);if(u)return u}const i=t.validators;if(i===null)return;const d=r===0?e.join(pe):e.slice(r).join(pe),m=i.length;for(let u=0;u<m;u++){const f=i[u];if(f.validator(d))return f.classGroupId}},kr=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=e.slice(1,-1),t=r.indexOf(":"),o=r.slice(0,t);return o?hr+o:void 0})(),wr=e=>{const{theme:r,classGroups:t}=e;return yr(t,r)},yr=(e,r)=>{const t=ft();for(const o in e){const s=e[o];Me(s,t,o,r)}return t},Me=(e,r,t,o)=>{const s=e.length;for(let n=0;n<s;n++){const i=e[n];xr(i,r,t,o)}},xr=(e,r,t,o)=>{if(typeof e=="string"){Cr(e,r,t);return}if(typeof e=="function"){Sr(e,r,t,o);return}Ar(e,r,t,o)},Cr=(e,r,t)=>{const o=e===""?r:gt(r,e);o.classGroupId=t},Sr=(e,r,t,o)=>{if(zr(e)){Me(e(o),r,t,o);return}r.validators===null&&(r.validators=[]),r.validators.push(gr(t,e))},Ar=(e,r,t,o)=>{const s=Object.entries(e),n=s.length;for(let i=0;i<n;i++){const[d,m]=s[i];Me(m,gt(r,d),t,o)}},gt=(e,r)=>{let t=e;const o=r.split(pe),s=o.length;for(let n=0;n<s;n++){const i=o[n];let d=t.nextPart.get(i);d||(d=ft(),t.nextPart.set(i,d)),t=d}return t},zr=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Ir=e=>{if(e<1)return{get:()=>{},set:()=>{}};let r=0,t=Object.create(null),o=Object.create(null);const s=(n,i)=>{t[n]=i,r++,r>e&&(r=0,o=t,t=Object.create(null))};return{get(n){let i=t[n];if(i!==void 0)return i;if((i=o[n])!==void 0)return s(n,i),i},set(n,i){n in t?t[n]=i:s(n,i)}}},ze="!",De=":",Mr=[],qe=(e,r,t,o,s)=>({modifiers:e,hasImportantModifier:r,baseClassName:t,maybePostfixModifierPosition:o,isExternal:s}),Tr=e=>{const{prefix:r,experimentalParseClassName:t}=e;let o=s=>{const n=[];let i=0,d=0,m=0,u;const f=s.length;for(let x=0;x<f;x++){const _=s[x];if(i===0&&d===0){if(_===De){n.push(s.slice(m,x)),m=x+1;continue}if(_==="/"){u=x;continue}}_==="["?i++:_==="]"?i--:_==="("?d++:_===")"&&d--}const h=n.length===0?s:s.slice(m);let y=h,A=!1;h.endsWith(ze)?(y=h.slice(0,-1),A=!0):h.startsWith(ze)&&(y=h.slice(1),A=!0);const C=u&&u>m?u-m:void 0;return qe(n,A,y,C)};if(r){const s=r+De,n=o;o=i=>i.startsWith(s)?n(i.slice(s.length)):qe(Mr,!1,i,void 0,!0)}if(t){const s=o;o=n=>t({className:n,parseClassName:s})}return o},Pr=e=>{const r=new Map;return e.orderSensitiveModifiers.forEach((t,o)=>{r.set(t,1e6+o)}),t=>{const o=[];let s=[];for(let n=0;n<t.length;n++){const i=t[n],d=i[0]==="[",m=r.has(i);d||m?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(i)):s.push(i)}return s.length>0&&(s.sort(),o.push(...s)),o}},_r=e=>({cache:Ir(e.cacheSize),parseClassName:Tr(e),sortModifiers:Pr(e),postfixLookupClassGroupIds:Gr(e),...vr(e)}),Gr=e=>{const r=Object.create(null),t=e.postfixLookupClassGroups;if(t)for(let o=0;o<t.length;o++)r[t[o]]=!0;return r},Lr=/\s+/,Rr=(e,r)=>{const{parseClassName:t,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:n,postfixLookupClassGroupIds:i}=r,d=[],m=e.trim().split(Lr);let u="";for(let f=m.length-1;f>=0;f-=1){const h=m[f],{isExternal:y,modifiers:A,hasImportantModifier:C,baseClassName:x,maybePostfixModifierPosition:_}=t(h);if(y){u=h+(u.length>0?" "+u:u);continue}let G=!!_,w;if(G){const g=x.substring(0,_);w=o(g);const a=w&&i[w]?o(x):void 0;a&&a!==w&&(w=a,G=!1)}else w=o(x);if(!w){if(!G){u=h+(u.length>0?" "+u:u);continue}if(w=o(x),!w){u=h+(u.length>0?" "+u:u);continue}G=!1}const B=A.length===0?"":A.length===1?A[0]:n(A).join(":"),S=C?B+ze:B,O=S+w;if(d.indexOf(O)>-1)continue;d.push(O);const v=s(w,G);for(let g=0;g<v.length;++g){const a=v[g];d.push(S+a)}u=h+(u.length>0?" "+u:u)}return u},Nr=(...e)=>{let r=0,t,o,s="";for(;r<e.length;)(t=e[r++])&&(o=ht(t))&&(s&&(s+=" "),s+=o);return s},ht=e=>{if(typeof e=="string")return e;let r,t="";for(let o=0;o<e.length;o++)e[o]&&(r=ht(e[o]))&&(t&&(t+=" "),t+=r);return t},Ye=(e,...r)=>{let t,o,s,n;const i=m=>{const u=r.reduce((f,h)=>h(f),e());return t=_r(u),o=t.cache.get,s=t.cache.set,n=d,d(m)},d=m=>{const u=o(m);if(u)return u;const f=Rr(m,t);return s(m,f),f};return n=i,(...m)=>n(Nr(...m))},Er=[],I=e=>{const r=t=>t[e]||Er;return r.isThemeGetter=!0,r.themeKey=e,r},vt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,kt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Or=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Vr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Wr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Br=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,jr=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ur=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,j=e=>Or.test(e),b=e=>!!e&&!Number.isNaN(Number(e)),E=e=>!!e&&Number.isInteger(Number(e)),ye=e=>e.endsWith("%")&&b(e.slice(0,-1)),V=e=>Vr.test(e),wt=()=>!0,$r=e=>Wr.test(e)&&!Br.test(e),Te=()=>!1,Fr=e=>jr.test(e),Hr=e=>Ur.test(e),Dr=e=>!l(e)&&!c(e),qr=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),Yr=e=>$(e,Ct,Te),l=e=>vt.test(e),H=e=>$(e,St,$r),Ze=e=>$(e,ro,b),Zr=e=>$(e,zt,wt),Kr=e=>$(e,At,Te),Ke=e=>$(e,yt,Te),Xr=e=>$(e,xt,Hr),ie=e=>$(e,It,Fr),c=e=>kt.test(e),J=e=>D(e,St),Jr=e=>D(e,At),Xe=e=>D(e,yt),Qr=e=>D(e,Ct),eo=e=>D(e,xt),ae=e=>D(e,It,!0),to=e=>D(e,zt,!0),$=(e,r,t)=>{const o=vt.exec(e);return o?o[1]?r(o[1]):t(o[2]):!1},D=(e,r,t=!1)=>{const o=kt.exec(e);return o?o[1]?r(o[1]):t:!1},yt=e=>e==="position"||e==="percentage",xt=e=>e==="image"||e==="url",Ct=e=>e==="length"||e==="size"||e==="bg-size",St=e=>e==="length",ro=e=>e==="number",At=e=>e==="family-name",zt=e=>e==="number"||e==="weight",It=e=>e==="shadow",Je=()=>{const e=I("color"),r=I("font"),t=I("text"),o=I("font-weight"),s=I("tracking"),n=I("leading"),i=I("breakpoint"),d=I("container"),m=I("spacing"),u=I("radius"),f=I("shadow"),h=I("inset-shadow"),y=I("text-shadow"),A=I("drop-shadow"),C=I("blur"),x=I("perspective"),_=I("aspect"),G=I("ease"),w=I("animate"),B=()=>["auto","avoid","all","avoid-page","page","left","right","column"],S=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...S(),c,l],v=()=>["auto","hidden","clip","visible","scroll"],g=()=>["auto","contain","none"],a=()=>[c,l,m],z=()=>[j,"full","auto",...a()],T=()=>[E,"none","subgrid",c,l],te=()=>["auto",{span:["full",E,c,l]},E,c,l],q=()=>[E,"auto",c,l],Pe=()=>["auto","min","max","fr",c,l],me=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Y=()=>["start","end","center","stretch","center-safe","end-safe"],N=()=>["auto",...a()],F=()=>[j,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...a()],fe=()=>[d,j,"screen","full","dvw","lvw","svw","min","max","fit",...a()],be=()=>[j,"screen","full","lh","dvh","lvh","svh","min","max","fit",...a()],p=()=>[e,c,l],_e=()=>[...S(),Xe,Ke,{position:[c,l]}],Ge=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Le=()=>["auto","cover","contain",Qr,Yr,{size:[c,l]}],ge=()=>[ye,J,H],L=()=>["","none","full",u,c,l],R=()=>["",b,J,H],re=()=>["solid","dashed","dotted","double"],Re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],M=()=>[b,ye,Xe,Ke],Ne=()=>["","none",C,c,l],oe=()=>["none",b,c,l],se=()=>["none",b,c,l],he=()=>[b,c,l],ne=()=>[j,"full",...a()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[V],breakpoint:[V],color:[wt],container:[V],"drop-shadow":[V],ease:["in","out","in-out"],font:[Dr],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[V],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[V],shadow:[V],spacing:["px",b],text:[V],"text-shadow":[V],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",j,l,c,_]}],container:["container"],"container-type":[{"@container":["","normal","size",c,l]}],"container-named":[qr],columns:[{columns:[b,"auto",l,c,d]}],"break-after":[{"break-after":B()}],"break-before":[{"break-before":B()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:O()}],overflow:[{overflow:v()}],"overflow-x":[{"overflow-x":v()}],"overflow-y":[{"overflow-y":v()}],overscroll:[{overscroll:g()}],"overscroll-x":[{"overscroll-x":g()}],"overscroll-y":[{"overscroll-y":g()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{"inset-s":z(),start:z()}],end:[{"inset-e":z(),end:z()}],"inset-bs":[{"inset-bs":z()}],"inset-be":[{"inset-be":z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[E,"auto",c,l]}],basis:[{basis:[j,"full","auto",d,...a()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[b,j,"auto","initial","none",l]}],grow:[{grow:["",b,c,l]}],shrink:[{shrink:["",b,c,l]}],order:[{order:[E,"first","last","none",c,l]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:te()}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:te()}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Pe()}],"auto-rows":[{"auto-rows":Pe()}],gap:[{gap:a()}],"gap-x":[{"gap-x":a()}],"gap-y":[{"gap-y":a()}],"justify-content":[{justify:[...me(),"normal"]}],"justify-items":[{"justify-items":[...Y(),"normal"]}],"justify-self":[{"justify-self":["auto",...Y()]}],"align-content":[{content:["normal",...me()]}],"align-items":[{items:[...Y(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Y(),{baseline:["","last"]}]}],"place-content":[{"place-content":me()}],"place-items":[{"place-items":[...Y(),"baseline"]}],"place-self":[{"place-self":["auto",...Y()]}],p:[{p:a()}],px:[{px:a()}],py:[{py:a()}],ps:[{ps:a()}],pe:[{pe:a()}],pbs:[{pbs:a()}],pbe:[{pbe:a()}],pt:[{pt:a()}],pr:[{pr:a()}],pb:[{pb:a()}],pl:[{pl:a()}],m:[{m:N()}],mx:[{mx:N()}],my:[{my:N()}],ms:[{ms:N()}],me:[{me:N()}],mbs:[{mbs:N()}],mbe:[{mbe:N()}],mt:[{mt:N()}],mr:[{mr:N()}],mb:[{mb:N()}],ml:[{ml:N()}],"space-x":[{"space-x":a()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":a()}],"space-y-reverse":["space-y-reverse"],size:[{size:F()}],"inline-size":[{inline:["auto",...fe()]}],"min-inline-size":[{"min-inline":["auto",...fe()]}],"max-inline-size":[{"max-inline":["none",...fe()]}],"block-size":[{block:["auto",...be()]}],"min-block-size":[{"min-block":["auto",...be()]}],"max-block-size":[{"max-block":["none",...be()]}],w:[{w:[d,"screen",...F()]}],"min-w":[{"min-w":[d,"screen","none",...F()]}],"max-w":[{"max-w":[d,"screen","none","prose",{screen:[i]},...F()]}],h:[{h:["screen","lh",...F()]}],"min-h":[{"min-h":["screen","lh","none",...F()]}],"max-h":[{"max-h":["screen","lh","none",...F()]}],"font-size":[{text:["base",t,J,H]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,to,Zr]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ye,l]}],"font-family":[{font:[Jr,Kr,r]}],"font-features":[{"font-features":[l]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,c,l]}],"line-clamp":[{"line-clamp":[b,"none",c,Ze]}],leading:[{leading:["none",n,...a()]}],"list-image":[{"list-image":["none",c,l]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",c,l]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:p()}],"text-color":[{text:p()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...re(),"wavy"]}],"text-decoration-thickness":[{decoration:[b,"from-font","auto",c,H]}],"text-decoration-color":[{decoration:p()}],"underline-offset":[{"underline-offset":[b,"auto",c,l]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:a()}],"tab-size":[{tab:[E,c,l]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",c,l]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",c,l]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_e()}],"bg-repeat":[{bg:Ge()}],"bg-size":[{bg:Le()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},E,c,l],radial:["",c,l],conic:["",E,c,l]},eo,Xr]}],"bg-color":[{bg:p()}],"gradient-from-pos":[{from:ge()}],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:p()}],"gradient-via":[{via:p()}],"gradient-to":[{to:p()}],rounded:[{rounded:L()}],"rounded-s":[{"rounded-s":L()}],"rounded-e":[{"rounded-e":L()}],"rounded-t":[{"rounded-t":L()}],"rounded-r":[{"rounded-r":L()}],"rounded-b":[{"rounded-b":L()}],"rounded-l":[{"rounded-l":L()}],"rounded-ss":[{"rounded-ss":L()}],"rounded-se":[{"rounded-se":L()}],"rounded-ee":[{"rounded-ee":L()}],"rounded-es":[{"rounded-es":L()}],"rounded-tl":[{"rounded-tl":L()}],"rounded-tr":[{"rounded-tr":L()}],"rounded-br":[{"rounded-br":L()}],"rounded-bl":[{"rounded-bl":L()}],"border-w":[{border:R()}],"border-w-x":[{"border-x":R()}],"border-w-y":[{"border-y":R()}],"border-w-s":[{"border-s":R()}],"border-w-e":[{"border-e":R()}],"border-w-bs":[{"border-bs":R()}],"border-w-be":[{"border-be":R()}],"border-w-t":[{"border-t":R()}],"border-w-r":[{"border-r":R()}],"border-w-b":[{"border-b":R()}],"border-w-l":[{"border-l":R()}],"divide-x":[{"divide-x":R()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":R()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...re(),"hidden","none"]}],"divide-style":[{divide:[...re(),"hidden","none"]}],"border-color":[{border:p()}],"border-color-x":[{"border-x":p()}],"border-color-y":[{"border-y":p()}],"border-color-s":[{"border-s":p()}],"border-color-e":[{"border-e":p()}],"border-color-bs":[{"border-bs":p()}],"border-color-be":[{"border-be":p()}],"border-color-t":[{"border-t":p()}],"border-color-r":[{"border-r":p()}],"border-color-b":[{"border-b":p()}],"border-color-l":[{"border-l":p()}],"divide-color":[{divide:p()}],"outline-style":[{outline:[...re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[b,c,l]}],"outline-w":[{outline:["",b,J,H]}],"outline-color":[{outline:p()}],shadow:[{shadow:["","inner","none",f,ae,ie]}],"shadow-color":[{shadow:p()}],"inset-shadow":[{"inset-shadow":["none",h,ae,ie]}],"inset-shadow-color":[{"inset-shadow":p()}],"ring-w":[{ring:R()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:p()}],"ring-offset-w":[{"ring-offset":[b,H]}],"ring-offset-color":[{"ring-offset":p()}],"inset-ring-w":[{"inset-ring":R()}],"inset-ring-color":[{"inset-ring":p()}],"text-shadow":[{"text-shadow":["none",y,ae,ie]}],"text-shadow-color":[{"text-shadow":p()}],opacity:[{opacity:[b,c,l]}],"mix-blend":[{"mix-blend":[...Re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[b]}],"mask-image-linear-from-pos":[{"mask-linear-from":M()}],"mask-image-linear-to-pos":[{"mask-linear-to":M()}],"mask-image-linear-from-color":[{"mask-linear-from":p()}],"mask-image-linear-to-color":[{"mask-linear-to":p()}],"mask-image-t-from-pos":[{"mask-t-from":M()}],"mask-image-t-to-pos":[{"mask-t-to":M()}],"mask-image-t-from-color":[{"mask-t-from":p()}],"mask-image-t-to-color":[{"mask-t-to":p()}],"mask-image-r-from-pos":[{"mask-r-from":M()}],"mask-image-r-to-pos":[{"mask-r-to":M()}],"mask-image-r-from-color":[{"mask-r-from":p()}],"mask-image-r-to-color":[{"mask-r-to":p()}],"mask-image-b-from-pos":[{"mask-b-from":M()}],"mask-image-b-to-pos":[{"mask-b-to":M()}],"mask-image-b-from-color":[{"mask-b-from":p()}],"mask-image-b-to-color":[{"mask-b-to":p()}],"mask-image-l-from-pos":[{"mask-l-from":M()}],"mask-image-l-to-pos":[{"mask-l-to":M()}],"mask-image-l-from-color":[{"mask-l-from":p()}],"mask-image-l-to-color":[{"mask-l-to":p()}],"mask-image-x-from-pos":[{"mask-x-from":M()}],"mask-image-x-to-pos":[{"mask-x-to":M()}],"mask-image-x-from-color":[{"mask-x-from":p()}],"mask-image-x-to-color":[{"mask-x-to":p()}],"mask-image-y-from-pos":[{"mask-y-from":M()}],"mask-image-y-to-pos":[{"mask-y-to":M()}],"mask-image-y-from-color":[{"mask-y-from":p()}],"mask-image-y-to-color":[{"mask-y-to":p()}],"mask-image-radial":[{"mask-radial":[c,l]}],"mask-image-radial-from-pos":[{"mask-radial-from":M()}],"mask-image-radial-to-pos":[{"mask-radial-to":M()}],"mask-image-radial-from-color":[{"mask-radial-from":p()}],"mask-image-radial-to-color":[{"mask-radial-to":p()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":S()}],"mask-image-conic-pos":[{"mask-conic":[b]}],"mask-image-conic-from-pos":[{"mask-conic-from":M()}],"mask-image-conic-to-pos":[{"mask-conic-to":M()}],"mask-image-conic-from-color":[{"mask-conic-from":p()}],"mask-image-conic-to-color":[{"mask-conic-to":p()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:_e()}],"mask-repeat":[{mask:Ge()}],"mask-size":[{mask:Le()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",c,l]}],filter:[{filter:["","none",c,l]}],blur:[{blur:Ne()}],brightness:[{brightness:[b,c,l]}],contrast:[{contrast:[b,c,l]}],"drop-shadow":[{"drop-shadow":["","none",A,ae,ie]}],"drop-shadow-color":[{"drop-shadow":p()}],grayscale:[{grayscale:["",b,c,l]}],"hue-rotate":[{"hue-rotate":[b,c,l]}],invert:[{invert:["",b,c,l]}],saturate:[{saturate:[b,c,l]}],sepia:[{sepia:["",b,c,l]}],"backdrop-filter":[{"backdrop-filter":["","none",c,l]}],"backdrop-blur":[{"backdrop-blur":Ne()}],"backdrop-brightness":[{"backdrop-brightness":[b,c,l]}],"backdrop-contrast":[{"backdrop-contrast":[b,c,l]}],"backdrop-grayscale":[{"backdrop-grayscale":["",b,c,l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b,c,l]}],"backdrop-invert":[{"backdrop-invert":["",b,c,l]}],"backdrop-opacity":[{"backdrop-opacity":[b,c,l]}],"backdrop-saturate":[{"backdrop-saturate":[b,c,l]}],"backdrop-sepia":[{"backdrop-sepia":["",b,c,l]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":a()}],"border-spacing-x":[{"border-spacing-x":a()}],"border-spacing-y":[{"border-spacing-y":a()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",c,l]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[b,"initial",c,l]}],ease:[{ease:["linear","initial",G,c,l]}],delay:[{delay:[b,c,l]}],animate:[{animate:["none",w,c,l]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[x,c,l]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:se()}],"scale-x":[{"scale-x":se()}],"scale-y":[{"scale-y":se()}],"scale-z":[{"scale-z":se()}],"scale-3d":["scale-3d"],skew:[{skew:he()}],"skew-x":[{"skew-x":he()}],"skew-y":[{"skew-y":he()}],transform:[{transform:[c,l,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],zoom:[{zoom:[E,c,l]}],accent:[{accent:p()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:p()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",c,l]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":p()}],"scrollbar-track-color":[{"scrollbar-track":p()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":a()}],"scroll-mx":[{"scroll-mx":a()}],"scroll-my":[{"scroll-my":a()}],"scroll-ms":[{"scroll-ms":a()}],"scroll-me":[{"scroll-me":a()}],"scroll-mbs":[{"scroll-mbs":a()}],"scroll-mbe":[{"scroll-mbe":a()}],"scroll-mt":[{"scroll-mt":a()}],"scroll-mr":[{"scroll-mr":a()}],"scroll-mb":[{"scroll-mb":a()}],"scroll-ml":[{"scroll-ml":a()}],"scroll-p":[{"scroll-p":a()}],"scroll-px":[{"scroll-px":a()}],"scroll-py":[{"scroll-py":a()}],"scroll-ps":[{"scroll-ps":a()}],"scroll-pe":[{"scroll-pe":a()}],"scroll-pbs":[{"scroll-pbs":a()}],"scroll-pbe":[{"scroll-pbe":a()}],"scroll-pt":[{"scroll-pt":a()}],"scroll-pr":[{"scroll-pr":a()}],"scroll-pb":[{"scroll-pb":a()}],"scroll-pl":[{"scroll-pl":a()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",c,l]}],fill:[{fill:["none",...p()]}],"stroke-w":[{stroke:[b,J,H,Ze]}],stroke:[{stroke:["none",...p()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},oo=(e,{cacheSize:r,prefix:t,experimentalParseClassName:o,extend:s={},override:n={}})=>(Z(e,"cacheSize",r),Z(e,"prefix",t),Z(e,"experimentalParseClassName",o),le(e.theme,n.theme),le(e.classGroups,n.classGroups),le(e.conflictingClassGroups,n.conflictingClassGroups),le(e.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Z(e,"postfixLookupClassGroups",n.postfixLookupClassGroups),Z(e,"orderSensitiveModifiers",n.orderSensitiveModifiers),ce(e.theme,s.theme),ce(e.classGroups,s.classGroups),ce(e.conflictingClassGroups,s.conflictingClassGroups),ce(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Ie(e,s,"postfixLookupClassGroups"),Ie(e,s,"orderSensitiveModifiers"),e),Z=(e,r,t)=>{t!==void 0&&(e[r]=t)},le=(e,r)=>{if(r)for(const t in r)Z(e,t,r[t])},ce=(e,r)=>{if(r)for(const t in r)Ie(e,r,t)},Ie=(e,r,t)=>{const o=r[t];o!==void 0&&(e[t]=e[t]?e[t].concat(o):o)},so=(e,...r)=>typeof e=="function"?Ye(Je,e,...r):Ye(()=>oo(Je(),e),...r),no=so({extend:{classGroups:{"font-size":["type-caption","type-body","type-title","type-display","type-code","text-ui","text-ui-sm","text-xs"],"surface-inverse":["surface-inverse"]},conflictingClassGroups:{"surface-inverse":["bg-color","text-color"],"bg-color":["surface-inverse"]}}});function wo(...e){return no(it(e))}const io=ue(["primitive","pattern","product","deprecated-wrapper","deletion-candidate"]),ao=U({id:k().min(1),title:k().min(1),states:P(k().min(1)).min(1),themes:P(ue(["light","dark","system","high-contrast"])).optional(),viewport:ue(["compact","desktop","both"]).optional(),reducedMotion:Jt().optional()}),Qe=U({value:k().min(1),label:k().min(1),guidance:k().min(1).optional(),iconValue:k().min(1).optional()}),lo=U({prop:k().min(1),alias:k().min(1),replacement:k().min(1)}),co=U({emphasis:P(Qe).min(1),sizes:P(Qe).min(1),compatibilityAliases:P(lo)}),de=k().min(1).refine(e=>!e.includes("\\"),{message:"use a repository-relative POSIX path"}),Mt=U({id:k().regex(/^[a-z0-9][a-z0-9-]*$/),source:de,publicImport:k().startsWith("$lib/components/ui/"),legacyImports:P(k().startsWith("$lib/components/ui/")).default([]),exports:P(k().min(1)).min(1),category:io,owner:k().min(1),callers:P(de),replacement:k().min(1).nullable(),characterizationTest:de.nullable(),removalGate:k().min(1),dynamicImports:P(de),fixtures:P(ao),useWhen:P(k().min(1)).optional(),dontUseWhen:P(k().min(1)).optional(),replaces:P(k().min(1)).optional(),apiGuidance:co.optional(),usage:k().refine(e=>e.trim().length>0).optional()}).superRefine((e,r)=>{["deprecated-wrapper","deletion-candidate"].includes(e.category)&&(e.replacement||r.addIssue({code:ve.custom,path:["replacement"],message:"deprecated and deletion records require a canonical replacement or deletion plan"}),e.characterizationTest||r.addIssue({code:ve.custom,path:["characterizationTest"],message:"deprecated and deletion records require a characterization test"}),e.removalGate.trim()||r.addIssue({code:ve.custom,path:["removalGate"],message:"deprecated and deletion records require a measurable removal gate"}))}),uo=U({implementation:k().min(1),publicModule:k().min(1),metadata:k().min(1),behavioralTest:k().min(1),fixture:k().min(1),variantRecipe:k().min(1).optional()}),po=U({layer:ue(["primitive","pattern","product"]),allowed:P(k().min(1)).min(1),forbidden:P(k().min(1)),repair:k().min(1)});U({version:Qt(1),folderTemplate:uo,dependencyRules:P(po).length(3),components:P(Mt).min(1)});function mo(e,r){const t=r.issues.find(s=>s.path[0]==="id"),o=r.issues.map(s=>`${s.path.join(".")||e}: ${s.message}`).join("; ");return new Error(`${e}${t?` (${t.message})`:""}: ${o}`)}function fo(e){const r=Mt.safeParse(e);if(!r.success){const t=typeof e=="object"&&e!==null&&"id"in e?String(e.id):"unknown";throw mo(`UI component ${t}`,r.error)}return r.data}const bo=[{id:"spinner-state-matrix",title:"Loading indicator states",states:["bloom","pulse","twist","size-16","size-24","size-32","in-button","in-list-row","paused","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];fo({id:"loading-indicator",source:"src/lib/components/ui/indicators/IntentMarkLoader.svelte",publicImport:"$lib/components/ui/indicators",legacyImports:[],exports:["IntentMarkLoader","AgentBadge","IntentMarkVariant","UnsavedIndicator","intentMarkMotionTiming","intentMarkVariants","spinnerMetadata"],category:"pattern",owner:"007-B1",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/daemon-status/DaemonUpdatingOverlay.svelte","src/features/discussions/components/DiscussionMicrophone.svelte","src/features/file-tracking/components/diff/PatchBlockContent.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/machine-rail/MachineRail.svelte","src/features/nodes/PairLinkField.svelte","src/features/onboarding/messages/GitHubRepoTab.svelte","src/features/onboarding/messages/ProviderCard.svelte","src/features/onboarding/steps/OnboardingForgeStep.svelte","src/features/onboarding/steps/OnboardingPromptStep.svelte","src/features/onboarding/steps/OnboardingRequirementsStep.svelte","src/features/remote-machines/AgentPlacementNotice.svelte","src/features/scripts/components/ScriptDetectionControls.svelte","src/features/workspace-home/components/WorkspaceHomeBanner.svelte","src/features/workspace-home/components/WorkspaceHomeLine.svelte","src/features/workspace-home/components/WorkspaceHomePanelNotice.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/AuggieSetupGate.svelte","src/lib/components/GitHubAuthBanner.svelte","src/lib/components/GitHubAuthModal.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/agent-overview/AgentHierarchyCard.svelte","src/lib/components/agent-overview/AgentHierarchyGraph.svelte","src/lib/components/browser/EmbeddedBrowser.svelte","src/lib/components/chat/AttachmentPreview.svelte","src/lib/components/chat/AutoCommitStatus.svelte","src/lib/components/chat/ChatChangesPanel.svelte","src/lib/components/chat/ChatMessageNavigator.svelte","src/lib/components/chat/ChatPanel.svelte","src/lib/components/chat/ExecutionPlanCard.svelte","src/lib/components/chat/StreamingTypingIndicator.svelte","src/lib/components/chat/TaskProgressControl.svelte","src/lib/components/chat/ThinkingBlock.svelte","src/lib/components/chat/ToolStatusIcon.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/ModelPicker.svelte","src/lib/components/chat/input/ModelPickerProviderNotice.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/chat/streaming-status-utils.ts","src/lib/components/code-review/CodeReviewTabContent.svelte","src/lib/components/code-review/walkthrough/CodeWalkthroughSection.svelte","src/lib/components/code-review/walkthrough/WalkthroughCommentThread.svelte","src/lib/components/code-review/walkthrough/WalkthroughInlineComment.svelte","src/lib/components/error/EnhancedErrorBoundary.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/file-explorer/file-explorer-sidebar.svelte","src/lib/components/layout/sidebar-nav/cards/ChiefCard.svelte","src/lib/components/modals/BulkTransferModal.svelte","src/lib/components/modals/InviteConsentModal.svelte","src/lib/components/modals/InviteProgressModal.svelte","src/lib/components/modals/SetupScriptModal.svelte","src/lib/components/notes/primitives/AgentActionBlock.svelte","src/lib/components/notes/primitives/CliBlock.svelte","src/lib/components/patterns/form/UnsavedIndicator.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/tiptap/comments/AgentPeekCard.svelte","src/lib/components/ui/button/button.svelte","src/lib/components/ui/list/ListItem.svelte","src/lib/components/workspace/CheckoutModePill.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/WorkspaceShellList.svelte","src/lib/components/workspace/WorkspaceSidebarHeader.svelte","src/lib/components/workspace/initializer/BranchSelector.svelte","src/lib/components/workspace/initializer/GitLabBranchPicker.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/RepoAndBranchPicker.svelte","src/lib/components/workspace/initializer/RepoSelector.svelte","src/lib/components/workspace/initializer/RepositoryPickerList.svelte","src/lib/components/workspace/initializer/SetupScriptAgent.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/initializer/WorkspaceCreateButton.svelte","src/lib/components/workspace/sidebar/CommitDrawer.svelte","src/lib/components/workspace/sidebar/CommitsTimeline.svelte","src/lib/components/workspace/sidebar/DividerButton.svelte","src/lib/components/workspace/sidebar/FileChangesSection.svelte","src/lib/components/workspace/sidebar/HistoryBoundary.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/PRSection.svelte","src/lib/components/workspace/sidebar/PostMergeActions.svelte","src/lib/components/workspace/sidebar/SecondaryRootChangesView.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/context-picker/LinearPicker.svelte","src/lib/components/workspace/sidebar/context-picker/SentryPicker.svelte","src/routes/(app)/workspace/creating/+page.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/indicators/IntentMarkLoader.test.ts",removalGate:"Retain IntentMarkLoader as the only indeterminate indicator while canonical callers, deterministic motion tests, and loading catalog coverage pass; AgentBadge and UnsavedIndicator remain internal product exports and are not catalog entries.",dynamicImports:[],fixtures:bo,useWhen:["Use bloom for buttons, list rows, thinking blocks, live-stream phases, typing, hierarchy cards, message navigation, and content previews; streaming status keeps its status-derived bloom, pulse, or twist variant."]});export{K as C,X as S,er as a,ko as b,tr as c,it as d,wo as e,sr as f,nr as g,fo as p,ur as r,Q as s};
@@ -1 +1 @@
1
- import{p as k}from"./-o555Jq8.js";import{bo as a}from"./41c-5lbJ.js";import{Iv as r,nx as i}from"./BuDJvkTk.js";import{bT as _,aO as g}from"./DGb_dMRY.js";import{bU as H}from"./CbX7A7fn.js";import{ap as d,x as f,y as b}from"./DGRqvVY1.js";function c(e){return e.lastBackupAt?k(e.lastBackupAt):""}function l(e){if(e.starting)return a.workspaceHome_starting_label();if(e.state==="moving")return a.workspaceHome_banner_moving();if(e.unknownState)return a.workspaceHome_banner_detachedNoBackup({name:e.name});const o=c(e);return o?a.workspaceHome_banner_detached({name:e.name,time:o}):a.workspaceHome_banner_detachedNoBackup({name:e.name})}function T(e){return e?.unavailable?l(e):null}function O(e){if(e.banner==="detached"||e.banner==="moving")return l(e);if(e.banner!=="backupWarning")return"";const o=c(e);return o?a.workspaceHome_banner_backupWarning({name:e.name,time:o}):a.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function x(e){return e==="detached"?a.workspaceHome_marker_detached():a.workspaceHome_marker_moving()}function N(e){const o=c(e);return o?a.workspaceHome_header_lastBackup({time:o}):null}function y(e){if(!e.moveWarning)return null;const o=c(e);return o?a.workspaceHome_moveDialog_warning({name:e.name,time:o}):a.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function E(e){switch(e.code){case"forbidden":return a.workspaceHome_moveError_forbidden();case"homes-unsupported":return a.workspaceHome_moveError_homesUnsupported();case"home-moving":return a.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return a.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return a.workspaceHome_moveError_updateRequired();default:return a.workspaceHome_moveError_failed({message:e.message})}}const u=new WeakMap,R=r.createSelector((e,o)=>{const n=i(e.workspace.workspaces,o),t=n?.home;if(!t)return null;const s=u.get(t);if(s)return s;const m=d(n);return m&&u.set(t,m),m}),A=r.createSelector((e,o)=>f(i(e.workspace.workspaces,o),!_.select(e,o))),D=r.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),U=r.createSelector(e=>e.workspaceHome.dialogWorkspaceId),F=r.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),L=r.createSelector(e=>e.workspaceHome.moveFailure),h=[],p=new Map,V=r.createSelector((e,o)=>{if(!o)return h;const n=b({agents:g.select(e,o),machineRows:H.select(e)}),t=JSON.stringify(n),s=p.get(o);return s?.key===t?s.options:(p.set(o,{key:t,options:n}),n)}),q=r.createSelector((e,o)=>i(e.workspace.workspaces,o)!==void 0);export{N as a,x as b,y as c,T as d,l as e,D as f,U as g,O as h,L as i,V as j,F as k,R as l,E as m,q as n,A as s};
1
+ import{p as k}from"./DCOf4rfq.js";import{bo as a}from"./BUAFIktJ.js";import{Iv as r,nx as i}from"./iYz7qSVO.js";import{bT as _,aO as g}from"./D1PZlLC_.js";import{bU as H}from"./DBGsU6bn.js";import{ap as d,x as f,y as b}from"./Dzmm4LX6.js";function c(e){return e.lastBackupAt?k(e.lastBackupAt):""}function l(e){if(e.starting)return a.workspaceHome_starting_label();if(e.state==="moving")return a.workspaceHome_banner_moving();if(e.unknownState)return a.workspaceHome_banner_detachedNoBackup({name:e.name});const o=c(e);return o?a.workspaceHome_banner_detached({name:e.name,time:o}):a.workspaceHome_banner_detachedNoBackup({name:e.name})}function T(e){return e?.unavailable?l(e):null}function O(e){if(e.banner==="detached"||e.banner==="moving")return l(e);if(e.banner!=="backupWarning")return"";const o=c(e);return o?a.workspaceHome_banner_backupWarning({name:e.name,time:o}):a.workspaceHome_banner_backupWarningNoBackup({name:e.name})}function x(e){return e==="detached"?a.workspaceHome_marker_detached():a.workspaceHome_marker_moving()}function N(e){const o=c(e);return o?a.workspaceHome_header_lastBackup({time:o}):null}function y(e){if(!e.moveWarning)return null;const o=c(e);return o?a.workspaceHome_moveDialog_warning({name:e.name,time:o}):a.workspaceHome_moveDialog_warningNoBackup({name:e.name})}function E(e){switch(e.code){case"forbidden":return a.workspaceHome_moveError_forbidden();case"homes-unsupported":return a.workspaceHome_moveError_homesUnsupported();case"home-moving":return a.workspaceHome_moveError_homeMoving();case"home-target-unavailable":return a.workspaceHome_moveError_targetUnavailable();case"machine-update-required":return a.workspaceHome_moveError_updateRequired();default:return a.workspaceHome_moveError_failed({message:e.message})}}const u=new WeakMap,R=r.createSelector((e,o)=>{const n=i(e.workspace.workspaces,o),t=n?.home;if(!t)return null;const s=u.get(t);if(s)return s;const m=d(n);return m&&u.set(t,m),m}),A=r.createSelector((e,o)=>f(i(e.workspace.workspaces,o),!_.select(e,o))),D=r.createSelector((e,o)=>e.workspaceHome.waiting[o]===!0),U=r.createSelector(e=>e.workspaceHome.dialogWorkspaceId),F=r.createSelector(e=>e.workspaceHome.moveStatus==="submitting"),L=r.createSelector(e=>e.workspaceHome.moveFailure),h=[],p=new Map,V=r.createSelector((e,o)=>{if(!o)return h;const n=b({agents:g.select(e,o),machineRows:H.select(e)}),t=JSON.stringify(n),s=p.get(o);return s?.key===t?s.options:(p.set(o,{key:t,options:n}),n)}),q=r.createSelector((e,o)=>i(e.workspace.workspaces,o)!==void 0);export{N as a,x as b,y as c,T as d,l as e,D as f,U as g,O as h,L as i,V as j,F as k,R as l,E as m,q as n,A as s};