@intent-hq/web 2.373.0 → 2.374.1

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 (326) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DjrbQ2JE.js → -GzAayRi.js} +1 -1
  3. package/web/app/immutable/chunks/{By3d2aKb.js → 1PBEbLiL.js} +1 -1
  4. package/web/app/immutable/chunks/{B16R3gcp.js → 49cgEwsv.js} +1 -1
  5. package/web/app/immutable/chunks/{DKfX0H_n.js → 50l-lj9m.js} +1 -1
  6. package/web/app/immutable/chunks/{DQLfBH7I.js → 5JkhMlm8.js} +1 -1
  7. package/web/app/immutable/chunks/{CP45YnfV.js → 5rvkVpHO.js} +1 -1
  8. package/web/app/immutable/chunks/{Cd-cZZzm.js → 6svm3ALY.js} +1 -1
  9. package/web/app/immutable/chunks/{CETwR3pL.js → 7N4d1SHx.js} +1 -1
  10. package/web/app/immutable/chunks/{DD146Q03.js → 89cPEaN9.js} +1 -1
  11. package/web/app/immutable/chunks/{CYIfyDKk.js → 8iM9mVCJ.js} +1 -1
  12. package/web/app/immutable/chunks/{CErePAlp.js → 9sLim_4t.js} +1 -1
  13. package/web/app/immutable/chunks/{BBQsIbOZ.js → A3itjZn8.js} +3 -3
  14. package/web/app/immutable/chunks/{6w617QdY.js → AWXowPxU.js} +1 -1
  15. package/web/app/immutable/chunks/{D3ndslw4.js → Ax2B7QQh.js} +1 -1
  16. package/web/app/immutable/chunks/{C35YmXbg.js → B-W7deES.js} +1 -1
  17. package/web/app/immutable/chunks/{Coutr3Mi.js → B0zwGZ_O.js} +1 -1
  18. package/web/app/immutable/chunks/{KT1ygtoE.js → B14ddEbH.js} +1 -1
  19. package/web/app/immutable/chunks/{CGf2gpvp.js → B1WcmQpq.js} +1 -1
  20. package/web/app/immutable/chunks/{CDPoeQz1.js → B2Arx0ZF.js} +1 -1
  21. package/web/app/immutable/chunks/{CiSv5u8J.js → B2wZ0Bb3.js} +1 -1
  22. package/web/app/immutable/chunks/{CA8MYKPh.js → B4LvWoln.js} +1 -1
  23. package/web/app/immutable/chunks/{kLX0oQjt.js → B55Lo0FS.js} +1 -1
  24. package/web/app/immutable/chunks/{n-7qZfot.js → B5L_fzQJ.js} +1 -1
  25. package/web/app/immutable/chunks/{qRbd1ibI.js → B5RGOddd.js} +2 -2
  26. package/web/app/immutable/chunks/{Cuea3cpS.js → B5yEHkSy.js} +1 -1
  27. package/web/app/immutable/chunks/{DRhcvZ9X.js → B6ZYX7Y8.js} +1 -1
  28. package/web/app/immutable/chunks/{CWJC1lxP.js → B8BkT7-k.js} +1 -1
  29. package/web/app/immutable/chunks/{CYALE4XC.js → B94otgnH.js} +1 -1
  30. package/web/app/immutable/chunks/{DXXCttvN.js → B9zxG49e.js} +1 -1
  31. package/web/app/immutable/chunks/{szZ8pRnr.js → BE6Jwt_-.js} +2 -2
  32. package/web/app/immutable/chunks/{BgTFeyrq.js → BFBRQlnB.js} +1 -1
  33. package/web/app/immutable/chunks/{DhCgtN_p.js → BFSIy5Dg.js} +3 -3
  34. package/web/app/immutable/chunks/{CIG7_Ars.js → BGL-uifv.js} +1 -1
  35. package/web/app/immutable/chunks/{DSF6kjeh.js → BHMaHtb7.js} +3 -3
  36. package/web/app/immutable/chunks/{qim_Ct3_.js → BHhpe04T.js} +1 -1
  37. package/web/app/immutable/chunks/{BmDq-uhT.js → BJs6L98H.js} +1 -1
  38. package/web/app/immutable/chunks/{mFH5JSTn.js → BLKGmMKH.js} +1 -1
  39. package/web/app/immutable/chunks/{BGHJsG8l.js → BMLCt23V.js} +1 -1
  40. package/web/app/immutable/chunks/{DkNt2yt8.js → BMT3BZWc.js} +1 -1
  41. package/web/app/immutable/chunks/{DFvB5yOL.js → BMfEzUyf.js} +1 -1
  42. package/web/app/immutable/chunks/{CzlyzR5w.js → BOABr5iA.js} +1 -1
  43. package/web/app/immutable/chunks/{DYdDF6N_.js → BOImXhxR.js} +1 -1
  44. package/web/app/immutable/chunks/{BjxfkKmH.js → BOijq64j.js} +1 -1
  45. package/web/app/immutable/chunks/{rPhSJlXw.js → BPU4O8X2.js} +1 -1
  46. package/web/app/immutable/chunks/{Bx9jW2hM.js → BPqj6Qvi.js} +1 -1
  47. package/web/app/immutable/chunks/{BycCRh1U.js → BQMaTSUT.js} +1 -1
  48. package/web/app/immutable/chunks/{DJbFr8xM.js → BUT4El0L.js} +1 -1
  49. package/web/app/immutable/chunks/{DGjX-g5M.js → BUTJbFoT.js} +1 -1
  50. package/web/app/immutable/chunks/{dIHmpCQU.js → BU_lcjuY.js} +1 -1
  51. package/web/app/immutable/chunks/{cplLJoH8.js → BWsFbeUj.js} +1 -1
  52. package/web/app/immutable/chunks/{DzveesLa.js → BWuBGnGl.js} +1 -1
  53. package/web/app/immutable/chunks/{5lMMsSad.js → BWxQ5UZF.js} +1 -1
  54. package/web/app/immutable/chunks/{C81hO4Na.js → BXUbR1fc.js} +1 -1
  55. package/web/app/immutable/chunks/{DSK8O9Vd.js → BXwdEeCG.js} +1 -1
  56. package/web/app/immutable/chunks/{DlxIFfaX.js → BYqiRSP_.js} +1 -1
  57. package/web/app/immutable/chunks/{Bps-K7_G.js → BZSpcC6v.js} +1 -1
  58. package/web/app/immutable/chunks/{D6H0b5RP.js → B_fuDTJc.js} +1 -1
  59. package/web/app/immutable/chunks/{D-q4DlJb.js → BazydCWO.js} +1 -1
  60. package/web/app/immutable/chunks/{c8-6qMPD.js → BcubO1aW.js} +1 -1
  61. package/web/app/immutable/chunks/BdEeTGSl.js +1 -0
  62. package/web/app/immutable/chunks/{BdpnQog4.js → BeTiPXK7.js} +1 -1
  63. package/web/app/immutable/chunks/{6_rpMdx6.js → BeigtvFK.js} +1 -1
  64. package/web/app/immutable/chunks/{Dk2HcklO.js → BfQPFCP7.js} +2 -2
  65. package/web/app/immutable/chunks/{CReqoCJu.js → BfdTnj-p.js} +1 -1
  66. package/web/app/immutable/chunks/{BWMQtsIY.js → BfjyDFQP.js} +1 -1
  67. package/web/app/immutable/chunks/{CSEth5B8.js → BfmZaG-s.js} +3 -3
  68. package/web/app/immutable/chunks/{CzlfnNwB.js → BgsG3ZiB.js} +1 -1
  69. package/web/app/immutable/chunks/{UWZjMttV.js → Bi08_5Fn.js} +1 -1
  70. package/web/app/immutable/chunks/{CCt5EXjV.js → BiByqANf.js} +1 -1
  71. package/web/app/immutable/chunks/{QulM8iJe.js → BkB7PRB0.js} +1 -1
  72. package/web/app/immutable/chunks/{BLlTtC--.js → BlBjpUY-.js} +2 -2
  73. package/web/app/immutable/chunks/{xMwKWjB7.js → BlTs1zAy.js} +1 -1
  74. package/web/app/immutable/chunks/{B9YvG8aT.js → BlbJ4pnj.js} +1 -1
  75. package/web/app/immutable/chunks/{DGLC3mk9.js → BmO6NekI.js} +1 -1
  76. package/web/app/immutable/chunks/{EP05ckdk.js → BnVNvux0.js} +1 -1
  77. package/web/app/immutable/chunks/{CljKdpeo.js → Bnhl7xZz.js} +1 -1
  78. package/web/app/immutable/chunks/{2EufkTRJ.js → BqJSWZOr.js} +1 -1
  79. package/web/app/immutable/chunks/{CT1vJyZh.js → BrfF5NLx.js} +1 -1
  80. package/web/app/immutable/chunks/{DhbWoWDC.js → BrrhiHyd.js} +1 -1
  81. package/web/app/immutable/chunks/{DQvYqUjR.js → BtBMs8pl.js} +1 -1
  82. package/web/app/immutable/chunks/{Cbbfu3DD.js → BtLlD_LO.js} +1 -1
  83. package/web/app/immutable/chunks/{Fzjn8DZE.js → BtdtsPJb.js} +1 -1
  84. package/web/app/immutable/chunks/{D-_v7kDk.js → BuWZ2vPD.js} +1 -1
  85. package/web/app/immutable/chunks/{t6t3mdUn.js → BuXfbkCo.js} +1 -1
  86. package/web/app/immutable/chunks/{DKfvgKdK.js → Bu_b7Geq.js} +1 -1
  87. package/web/app/immutable/chunks/{1KkdIMQF.js → Bx_Vy-8F.js} +1 -1
  88. package/web/app/immutable/chunks/{_e4xep-2.js → ByAetY4P.js} +1 -1
  89. package/web/app/immutable/chunks/{DWiL9mAL.js → BzL9Egzq.js} +1 -1
  90. package/web/app/immutable/chunks/{7aQTBNpP.js → BzPBikEv.js} +1 -1
  91. package/web/app/immutable/chunks/{DqFPqj_c.js → C-1CqQ1f.js} +1 -1
  92. package/web/app/immutable/chunks/{DM4j5ANN.js → C-IFS50X.js} +1 -1
  93. package/web/app/immutable/chunks/{D_G-1JiF.js → C0_snm4j.js} +1 -1
  94. package/web/app/immutable/chunks/{BylMfQ8a.js → C0urABBN.js} +1 -1
  95. package/web/app/immutable/chunks/{Bm7RRc9h.js → C1VzVy_T.js} +1 -1
  96. package/web/app/immutable/chunks/{4kjAauCt.js → C1kgjET0.js} +1 -1
  97. package/web/app/immutable/chunks/{BaeKUSxM.js → C33vrAzQ.js} +1 -1
  98. package/web/app/immutable/chunks/{DQPJa1PL.js → C4qomPfT.js} +1 -1
  99. package/web/app/immutable/chunks/{DDdcGQT_.js → C5DeEaYP.js} +1 -1
  100. package/web/app/immutable/chunks/{FJqzUSSZ.js → C600Ggsz.js} +1 -1
  101. package/web/app/immutable/chunks/{BY3bBVx0.js → C6Y4L69O.js} +1 -1
  102. package/web/app/immutable/chunks/{C-ip9N1T.js → C7PhRIIZ.js} +1 -1
  103. package/web/app/immutable/chunks/{GnS8SMtq.js → C8IXZPNs.js} +2 -2
  104. package/web/app/immutable/chunks/{DNjgbEGg.js → C8vjEKe_.js} +1 -1
  105. package/web/app/immutable/chunks/{CDCE6oTg.js → CAeNUoVv.js} +1 -1
  106. package/web/app/immutable/chunks/{C20fDEam.js → CBFYLXFF.js} +1 -1
  107. package/web/app/immutable/chunks/{DMTCts09.js → CD-hT3fi.js} +1 -1
  108. package/web/app/immutable/chunks/{B7kAC2QO.js → CDYjKRWo.js} +1 -1
  109. package/web/app/immutable/chunks/{BoOU7UK-.js → CG5Ujj5n.js} +1 -1
  110. package/web/app/immutable/chunks/{IHRvbath.js → CGCLUZ3o.js} +1 -1
  111. package/web/app/immutable/chunks/{B0Vj4qoa.js → CGDwhMyu.js} +3 -3
  112. package/web/app/immutable/chunks/{DWoh9eLQ.js → CHfIP-Ca.js} +1 -1
  113. package/web/app/immutable/chunks/{BKN8g-SH.js → CI03it4q.js} +1 -1
  114. package/web/app/immutable/chunks/CI8lfy7e.js +1 -0
  115. package/web/app/immutable/chunks/{D5haHDwG.js → CIFNI35-.js} +1 -1
  116. package/web/app/immutable/chunks/{DwyFrp4u.js → CMSXP3JK.js} +1 -1
  117. package/web/app/immutable/chunks/{C6qzokod.js → CNsG6rqe.js} +1 -1
  118. package/web/app/immutable/chunks/{C8IMuGeP.js → CPUsWCCN.js} +1 -1
  119. package/web/app/immutable/chunks/{DOHVP8r1.js → CPthbtAR.js} +1 -1
  120. package/web/app/immutable/chunks/{CksX9wbO.js → CU4TDhZp.js} +2 -2
  121. package/web/app/immutable/chunks/{CncWt3O6.js → CZA7HKg8.js} +1 -1
  122. package/web/app/immutable/chunks/{DnzGwHHz.js → C_-1lZIi.js} +1 -1
  123. package/web/app/immutable/chunks/{CZL5vFO8.js → CaAd_cyY.js} +1 -1
  124. package/web/app/immutable/chunks/{DH7M58MP.js → CcBYgr_O.js} +1 -1
  125. package/web/app/immutable/chunks/{DJFHa_93.js → CddxYcvS.js} +1 -1
  126. package/web/app/immutable/chunks/{DYUZxGEP.js → Cdgx1q8N.js} +1 -1
  127. package/web/app/immutable/chunks/{BRE1DYz5.js → CeAbChdf.js} +1 -1
  128. package/web/app/immutable/chunks/{D14WwGOw.js → CeNk7AI9.js} +1 -1
  129. package/web/app/immutable/chunks/{C7HVlmGs.js → Cf6Y8_8o.js} +1 -1
  130. package/web/app/immutable/chunks/{DbEXn4_y.js → Cfbp4n6F.js} +2 -2
  131. package/web/app/immutable/chunks/{EF-B7qSv.js → Cft5DaOC.js} +1 -1
  132. package/web/app/immutable/chunks/{D41qh-5f.js → Ch-D6DCZ.js} +1 -1
  133. package/web/app/immutable/chunks/{D4lamhem.js → CheTmX4x.js} +2 -2
  134. package/web/app/immutable/chunks/{ChI9mvUS.js → ChuuGcaj.js} +3 -3
  135. package/web/app/immutable/chunks/{B7ubb8f-.js → CiJzGYSi.js} +1 -1
  136. package/web/app/immutable/chunks/{4PwdPd7u.js → CiasNS4Y.js} +1 -1
  137. package/web/app/immutable/chunks/{CinOJOVh.js → Cij6f88k.js} +1 -1
  138. package/web/app/immutable/chunks/Ciub7-gv.js +1 -0
  139. package/web/app/immutable/chunks/{BvIER3hk.js → CkF26rCa.js} +1 -1
  140. package/web/app/immutable/chunks/{DiNPchhP.js → CkGI1ZG-.js} +1 -1
  141. package/web/app/immutable/chunks/CkJd-nyM.js +1 -0
  142. package/web/app/immutable/chunks/{DjwaFIuf.js → CkbzWFJM.js} +1 -1
  143. package/web/app/immutable/chunks/{BhIqqwku.js → Cm47R70f.js} +1 -1
  144. package/web/app/immutable/chunks/{DM9LmF5j.js → CmHh0Wvy.js} +1 -1
  145. package/web/app/immutable/chunks/{lHD19ydf.js → Cn1QrsR7.js} +1 -1
  146. package/web/app/immutable/chunks/{CG456d1E.js → CnAm8UDm.js} +1 -1
  147. package/web/app/immutable/chunks/{BiYllXNK.js → CnLJ_N14.js} +1 -1
  148. package/web/app/immutable/chunks/{DjNq-V1x.js → Cncxuk-H.js} +1 -1
  149. package/web/app/immutable/chunks/{DIcqfvJD.js → Co5Wv5vC.js} +1 -1
  150. package/web/app/immutable/chunks/{02YUL-k8.js → CoVtH1zm.js} +1 -1
  151. package/web/app/immutable/chunks/{BGMke03b.js → Cox9QorC.js} +1 -1
  152. package/web/app/immutable/chunks/{CB4UdDb9.js → CruJ4jyB.js} +1 -1
  153. package/web/app/immutable/chunks/{Do5F-HPE.js → CsFzjSWo.js} +1 -1
  154. package/web/app/immutable/chunks/{DHuSm3be.js → CsI7oUrd.js} +1 -1
  155. package/web/app/immutable/chunks/{BHRpMLDk.js → Csr-rIZF.js} +1 -1
  156. package/web/app/immutable/chunks/{D4dQaEzK.js → CtVskF6o.js} +1 -1
  157. package/web/app/immutable/chunks/{OnVz_1Np.js → CvP7-iXZ.js} +1 -1
  158. package/web/app/immutable/chunks/{Vg0EpBe7.js → Cvxp3hv6.js} +1 -1
  159. package/web/app/immutable/chunks/{CmlGvxmu.js → CykMvH93.js} +1 -1
  160. package/web/app/immutable/chunks/{CVbN130s.js → CyyQuDJ2.js} +1 -1
  161. package/web/app/immutable/chunks/{DfX9QhMz.js → D-_a8-qv.js} +1 -1
  162. package/web/app/immutable/chunks/{CXEOyFq9.js → D-zxS9tA.js} +1 -1
  163. package/web/app/immutable/chunks/{Dv4BYa-Z.js → D1E_1zhz.js} +1 -1
  164. package/web/app/immutable/chunks/{BA-uukBX.js → D1F-b1I5.js} +1 -1
  165. package/web/app/immutable/chunks/{BCG-StgC.js → D1ZkKLqt.js} +1 -1
  166. package/web/app/immutable/chunks/{B-gBT6Wp.js → D1p7bFmY.js} +1 -1
  167. package/web/app/immutable/chunks/{BJT5G4Vv.js → D208CAsp.js} +1 -1
  168. package/web/app/immutable/chunks/{xfUYUYD5.js → D4X5QfgO.js} +3 -3
  169. package/web/app/immutable/chunks/{BaUOI4IK.js → D5XjMLtX.js} +1 -1
  170. package/web/app/immutable/chunks/{CHVFOL-2.js → D5eCb9SA.js} +1 -1
  171. package/web/app/immutable/chunks/{8gAO4rBm.js → D5wSh12h.js} +1 -1
  172. package/web/app/immutable/chunks/{CCgl5yNk.js → D76tHJtr.js} +1 -1
  173. package/web/app/immutable/chunks/{DfZDDoxc.js → D7metssC.js} +1 -1
  174. package/web/app/immutable/chunks/{mvlVGSeb.js → D8-vtN74.js} +4 -4
  175. package/web/app/immutable/chunks/{2m_u3bgL.js → D8KugJqg.js} +1 -1
  176. package/web/app/immutable/chunks/{Bup3f7j4.js → D91ZkM-_.js} +1 -1
  177. package/web/app/immutable/chunks/{D2YGMA8q.js → DAbdqRSx.js} +4 -4
  178. package/web/app/immutable/chunks/{0iM-y8KY.js → DBEo2Y3v.js} +1 -1
  179. package/web/app/immutable/chunks/{BvxuCpa1.js → DBI9dTMM.js} +1 -1
  180. package/web/app/immutable/chunks/{Bs8Uk6ug.js → DCEkJXus.js} +1 -1
  181. package/web/app/immutable/chunks/{CQzabfN4.js → DDt9eLZK.js} +4 -4
  182. package/web/app/immutable/chunks/{XgcRf2OO.js → DGGMIXhj.js} +2 -2
  183. package/web/app/immutable/chunks/{k2cU06qa.js → DH2xXdI1.js} +1 -1
  184. package/web/app/immutable/chunks/{CYmtPuTl.js → DH7vXXdq.js} +1 -1
  185. package/web/app/immutable/chunks/{nhnuI90y.js → DL1sQHpf.js} +1 -1
  186. package/web/app/immutable/chunks/{CwsVBSUF.js → DP6Xlts5.js} +1 -1
  187. package/web/app/immutable/chunks/{BYe7PWsd.js → DQQg-_Fv.js} +1 -1
  188. package/web/app/immutable/chunks/{BQ8qAv7M.js → DQn-1ubH.js} +1 -1
  189. package/web/app/immutable/chunks/{CMdAOXEb.js → DQvmr3ea.js} +1 -1
  190. package/web/app/immutable/chunks/{hGZqfbJu.js → DSjVYlVX.js} +1 -1
  191. package/web/app/immutable/chunks/{DeXfipOI.js → DTXx_iLa.js} +1 -1
  192. package/web/app/immutable/chunks/{CBNJqQCc.js → DUaNnRvN.js} +1 -1
  193. package/web/app/immutable/chunks/{BoBZ73YE.js → DVK3tNru.js} +1 -1
  194. package/web/app/immutable/chunks/{frim2Lpk.js → DWiCzmLc.js} +1 -1
  195. package/web/app/immutable/chunks/{DJE_dF7Z.js → DYME5vl6.js} +1 -1
  196. package/web/app/immutable/chunks/{BZEL244B.js → DYuqveqh.js} +1 -1
  197. package/web/app/immutable/chunks/{DppUFX6O.js → Da8jWysx.js} +1 -1
  198. package/web/app/immutable/chunks/{B-Km1hE1.js → DaNITilt.js} +1 -1
  199. package/web/app/immutable/chunks/{5x3ldUtC.js → DcgZLPGn.js} +1 -1
  200. package/web/app/immutable/chunks/{BOv3_02t.js → Dd92kFdo.js} +1 -1
  201. package/web/app/immutable/chunks/{DZ1MmJsG.js → DeaknxEN.js} +1 -1
  202. package/web/app/immutable/chunks/{DC4EvC84.js → Dep4c5m-.js} +1 -1
  203. package/web/app/immutable/chunks/{Bd7wm9ou.js → Df8V6WlA.js} +1 -1
  204. package/web/app/immutable/chunks/{CSp7X79w.js → Dfqr3ucI.js} +1 -1
  205. package/web/app/immutable/chunks/{MGCpuCf0.js → DfrnAh60.js} +13 -13
  206. package/web/app/immutable/chunks/{BaKHwctr.js → DgNmFGXj.js} +1 -1
  207. package/web/app/immutable/chunks/{DkE1KcNT.js → DgboVgd_.js} +1 -1
  208. package/web/app/immutable/chunks/{BIW6jxDi.js → Dgmf4O3-.js} +1 -1
  209. package/web/app/immutable/chunks/{DGaBtrvB.js → DhNEeuS_.js} +1 -1
  210. package/web/app/immutable/chunks/{DunKT6dS.js → DhTidcoi.js} +2 -2
  211. package/web/app/immutable/chunks/{DxVSJQW2.js → Dhf5PPGB.js} +1 -1
  212. package/web/app/immutable/chunks/{CFxELBeY.js → DiE8v_X5.js} +1 -1
  213. package/web/app/immutable/chunks/{CevGDj0_.js → DjKYseTS.js} +1 -1
  214. package/web/app/immutable/chunks/{hR-DaH6k.js → DkkzFfYK.js} +1 -1
  215. package/web/app/immutable/chunks/{BSTl1RvT.js → Dm3SETfX.js} +6 -6
  216. package/web/app/immutable/chunks/{gF4jlhhn.js → Dm8F4oqT.js} +2 -2
  217. package/web/app/immutable/chunks/{CHxdiRFz.js → Do2AbdMZ.js} +1 -1
  218. package/web/app/immutable/chunks/{wQ32vU9q.js → DoA8ABAE.js} +1 -1
  219. package/web/app/immutable/chunks/{ZawOZTIQ.js → DqeGDed0.js} +1 -1
  220. package/web/app/immutable/chunks/{BlBb1keW.js → DreYzK2d.js} +1 -1
  221. package/web/app/immutable/chunks/{Dcl67lxX.js → DtVS2Hpo.js} +1 -1
  222. package/web/app/immutable/chunks/{BsRM8yjb.js → DvyPNixU.js} +1 -1
  223. package/web/app/immutable/chunks/{cYKcpEeG.js → Dw5mZcm5.js} +1 -1
  224. package/web/app/immutable/chunks/{0LGjiHaB.js → DwGC3Qoc.js} +1 -1
  225. package/web/app/immutable/chunks/{BfXbOT8i.js → DxXHN0Kd.js} +1 -1
  226. package/web/app/immutable/chunks/DxxarOOi.js +1 -0
  227. package/web/app/immutable/chunks/{Clbflwy_.js → Dya4in_M.js} +1 -1
  228. package/web/app/immutable/chunks/{DcvRBAV3.js → DyvQorI4.js} +1 -1
  229. package/web/app/immutable/chunks/{BL2ujNK_.js → Dz150vD0.js} +1 -1
  230. package/web/app/immutable/chunks/{D6XIvyP3.js → DzAQQ1i-.js} +1 -1
  231. package/web/app/immutable/chunks/{D9rf8Jdd.js → EKAiX2GI.js} +1 -1
  232. package/web/app/immutable/chunks/{Q8JNttIh.js → H-xlkAY8.js} +1 -1
  233. package/web/app/immutable/chunks/{C_92InJL.js → HP6Cq9rf.js} +1 -1
  234. package/web/app/immutable/chunks/{Dw9M83Lw.js → HjJJbdN8.js} +1 -1
  235. package/web/app/immutable/chunks/{Dt5BioTS.js → Hxdz4eYy.js} +1 -1
  236. package/web/app/immutable/chunks/{DTCoCNln.js → I0qWsqIQ.js} +2 -2
  237. package/web/app/immutable/chunks/{C7eBooB_.js → IOUuDzhl.js} +3 -3
  238. package/web/app/immutable/chunks/{B3Xs1bS2.js → IfuzSDQC.js} +1 -1
  239. package/web/app/immutable/chunks/{-x2KiTdv.js → JFDbnVgN.js} +1 -1
  240. package/web/app/immutable/chunks/{ewVf6PIZ.js → JJ3RCq0j.js} +1 -1
  241. package/web/app/immutable/chunks/{CO4Rte0G.js → K-0xnE6j.js} +1 -1
  242. package/web/app/immutable/chunks/{DkH5cZvV.js → KLcMYBf-.js} +1 -1
  243. package/web/app/immutable/chunks/{-pTsRhwv.js → LcfcL_-4.js} +1 -1
  244. package/web/app/immutable/chunks/{H95XSLd_.js → M2ziLO4-.js} +1 -1
  245. package/web/app/immutable/chunks/{C-QKLo6O.js → MvtlzB8k.js} +1 -1
  246. package/web/app/immutable/chunks/{DeAaK3tO.js → OjneFxUj.js} +1 -1
  247. package/web/app/immutable/chunks/{Ctelf0jH.js → Or6TlXVc.js} +1 -1
  248. package/web/app/immutable/chunks/{ckTlOLII.js → PoxwHYkO.js} +1 -1
  249. package/web/app/immutable/chunks/{DanM5oR1.js → QVs7xD_-.js} +1 -1
  250. package/web/app/immutable/chunks/{R0qfr5ax.js → QWptVHsb.js} +1 -1
  251. package/web/app/immutable/chunks/{B-k5wsvC.js → QpoIgRGw.js} +1 -1
  252. package/web/app/immutable/chunks/{Bb1Qji_z.js → R7rkruRO.js} +1 -1
  253. package/web/app/immutable/chunks/{aJuiKWzg.js → Rar9KqJV.js} +1 -1
  254. package/web/app/immutable/chunks/{BwQ4aQNw.js → SqcDn3FF.js} +1 -1
  255. package/web/app/immutable/chunks/{DWGCjk6V.js → TRC-1MZ6.js} +1 -1
  256. package/web/app/immutable/chunks/{C-AAKukn.js → TZXFgAt8.js} +1 -1
  257. package/web/app/immutable/chunks/{70EoeQTk.js → Tsg7Rikm.js} +1 -1
  258. package/web/app/immutable/chunks/{DzibEiL0.js → U7PCJ0KW.js} +1 -1
  259. package/web/app/immutable/chunks/{8-vxLh_H.js → UBi_ObtY.js} +1 -1
  260. package/web/app/immutable/chunks/{BIMyMsOv.js → UCKuBGVM.js} +1 -1
  261. package/web/app/immutable/chunks/{B41DOn_L.js → VfcZjJDU.js} +1 -1
  262. package/web/app/immutable/chunks/{8SiHtB72.js → VgpkVPqy.js} +1 -1
  263. package/web/app/immutable/chunks/{gkFzY6r7.js → VlOW_lom.js} +1 -1
  264. package/web/app/immutable/chunks/{BfrXK-ZU.js → Wu03VY_-.js} +1 -1
  265. package/web/app/immutable/chunks/{CXS-R8zY.js → YTYw24Kl.js} +1 -1
  266. package/web/app/immutable/chunks/{QL_pZGWA.js → ZQWbYglS.js} +1 -1
  267. package/web/app/immutable/chunks/Zas8kAKr.js +1 -0
  268. package/web/app/immutable/chunks/{_LMIM985.js → ZdR-PTAn.js} +1 -1
  269. package/web/app/immutable/chunks/{CKmtKxD0.js → Zs30783q.js} +1 -1
  270. package/web/app/immutable/chunks/{Bah_ExD8.js → _NdZi_dM.js} +1 -1
  271. package/web/app/immutable/chunks/{8s1d6VlB.js → _rr6nsRq.js} +1 -1
  272. package/web/app/immutable/chunks/{B0r15Yat.js → cZ6WbhzF.js} +9 -9
  273. package/web/app/immutable/chunks/{C1q0hSky.js → dLGWDtiP.js} +1 -1
  274. package/web/app/immutable/chunks/{CniNJafb.js → eO_Y6Zjh.js} +1 -1
  275. package/web/app/immutable/chunks/{D7thg7Ha.js → eUuFvR6M.js} +1 -1
  276. package/web/app/immutable/chunks/{DHeLwLtz.js → euI_ACTK.js} +1 -1
  277. package/web/app/immutable/chunks/{DnT_wkoM.js → hf11ueQS.js} +1 -1
  278. package/web/app/immutable/chunks/{CQ_L8AeY.js → iwYLzKdV.js} +1 -1
  279. package/web/app/immutable/chunks/{CT9j94JK.js → jbqICVar.js} +2 -2
  280. package/web/app/immutable/chunks/{CmeuXd0X.js → mzRkGv5m.js} +1 -1
  281. package/web/app/immutable/chunks/{DoSi2n5h.js → o1xI68Cv.js} +3 -3
  282. package/web/app/immutable/chunks/{B72JTqS_.js → ow3T0tN7.js} +1 -1
  283. package/web/app/immutable/chunks/{ChAOamky.js → qM_0Sky2.js} +1 -1
  284. package/web/app/immutable/chunks/{BNGx8qtU.js → qZOpciCD.js} +1 -1
  285. package/web/app/immutable/chunks/{R00Ksy_g.js → sX1SzO2T.js} +1 -1
  286. package/web/app/immutable/chunks/{h0nUJIdx.js → w8yC-37t.js} +1 -1
  287. package/web/app/immutable/chunks/{DiJpPQTH.js → wWw37-Ke.js} +1 -1
  288. package/web/app/immutable/chunks/{Bjnv-7Ay.js → wrK6ZRyS.js} +1 -1
  289. package/web/app/immutable/chunks/{D5N-4pZG.js → xzC0xG4O.js} +1 -1
  290. package/web/app/immutable/chunks/{DQyVwHJA.js → yglMjm12.js} +1 -1
  291. package/web/app/immutable/chunks/{Ym_4xzmH.js → zLwkenCD.js} +1 -1
  292. package/web/app/immutable/entry/{app.B8U18HSQ.js → app.CSmhn5IS.js} +3 -3
  293. package/web/app/immutable/entry/start.9LRUpX9-.js +1 -0
  294. package/web/app/immutable/nodes/{0.DLYOUyU1.js → 0.BJ-vuqyF.js} +1 -1
  295. package/web/app/immutable/nodes/{1.v44QLmv3.js → 1.K8N2U7fJ.js} +1 -1
  296. package/web/app/immutable/nodes/10.R5acEqWk.js +39 -0
  297. package/web/app/immutable/nodes/{11.zviYRL3w.js → 11.4wdFN3fm.js} +1 -1
  298. package/web/app/immutable/nodes/{12.BjGJ5mRG.js → 12.Chwv84gV.js} +1 -1
  299. package/web/app/immutable/nodes/{13.D6Me5QTp.js → 13.BT6BhMtf.js} +1 -1
  300. package/web/app/immutable/nodes/{14.CfuetyXy.js → 14.CYMJv-a-.js} +3 -3
  301. package/web/app/immutable/nodes/{15.LEAnwNjt.js → 15.N_o5QWkl.js} +1 -1
  302. package/web/app/immutable/nodes/{16.DaihUhp2.js → 16.7rbyrDeT.js} +1 -1
  303. package/web/app/immutable/nodes/{17.Cfmxzlp8.js → 17.DrMiOxPX.js} +1 -1
  304. package/web/app/immutable/nodes/{18.DMndf1DM.js → 18.BfN58CyI.js} +1 -1
  305. package/web/app/immutable/nodes/{19.D5f5Zs_m.js → 19.DRknpyiO.js} +2 -2
  306. package/web/app/immutable/nodes/{2.DSNu5875.js → 2.MIO2fuwM.js} +4 -4
  307. package/web/app/immutable/nodes/{20.B5_24cng.js → 20.BiFgSIxy.js} +1 -1
  308. package/web/app/immutable/nodes/{3.D7crSQQY.js → 3.-a-xJZ2X.js} +1 -1
  309. package/web/app/immutable/nodes/{4.BQ4kX-MO.js → 4.Cp7W3COg.js} +1 -1
  310. package/web/app/immutable/nodes/{5.CNI4QIY6.js → 5.gJXhj0lL.js} +1 -1
  311. package/web/app/immutable/nodes/{6.aqqkkpU3.js → 6.DKNQvcTz.js} +1 -1
  312. package/web/app/immutable/nodes/{7.31uDDPNB.js → 7.CxbGknsS.js} +1 -1
  313. package/web/app/immutable/nodes/{8.WLZs12tR.js → 8.C-MNb_3a.js} +1 -1
  314. package/web/app/immutable/nodes/9.5VNiGtUs.js +12 -0
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/7HKQ-XDk.js +0 -1
  319. package/web/app/immutable/chunks/BLAU86XX.js +0 -1
  320. package/web/app/immutable/chunks/BpsIzxWJ.js +0 -1
  321. package/web/app/immutable/chunks/C8Ie7Deo.js +0 -1
  322. package/web/app/immutable/chunks/CmpHo399.js +0 -1
  323. package/web/app/immutable/chunks/DNGlU1yL.js +0 -1
  324. package/web/app/immutable/entry/start.C8nrElOF.js +0 -1
  325. package/web/app/immutable/nodes/10.CBX5mYGD.js +0 -39
  326. package/web/app/immutable/nodes/9.XMp3gBDl.js +0 -12
@@ -1 +1 @@
1
- import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./C8Ie7Deo.js";import{bs as xe,aD as a,a5 as H,bA as N,b_ as M,W as w,bn as Be,c9 as z,bH as m,aA as s,aB as ke,bV as A,bf as Oe,bS as ge,be as ye,b$ as ve,bO as _e,ca as Ze,a7 as V,ay as T}from"./3SdAC2_C.js";import{i as he}from"./D6XIvyP3.js";import{s as R}from"./FJqzUSSZ.js";import{c as Ae}from"./CB4UdDb9.js";import{a_ as $e,aa as et,f as De}from"./CHVFOL-2.js";import"./Dk2HcklO.js";import{O as tt}from"./0iM-y8KY.js";import{a as rt,D as st}from"./DZ1MmJsG.js";import{b as nt,e as Ke,s as Pe,c as at,f as ot}from"./D41qh-5f.js";import"./BvxuCpa1.js";import{e as it}from"./CT1vJyZh.js";import{b as ut}from"./Dn334wJv.js";import{i as lt}from"./CC7to1B5.js";import"./DjNq-V1x.js";import"./DHeLwLtz.js";var ct=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),ft=ke('<form><fieldset class="contents"><!></fieldset></form>');function ze(K,t){if(new.target)return Ce({component:ze,...K});xe(t,!0);let l=r(t,"children",7),d=r(t,"onSubmit",7),b=r(t,"busy",7,!1),f=r(t,"enterKey",7,"submit"),g=r(t,"modEnter",7,"submit"),h=r(t,"class",7),L=Ye(t,ct),i,y=A(!1);const v=z(()=>b()||a(y));async function E(n){if(n.preventDefault(),!a(v)){m(y,!0);try{await d()(n)}finally{m(y,!1)}}}function S(n){if(n.key!=="Enter"||n.isComposing||n.defaultPrevented||a(v))return;const _=n.target,x=lt(_),D=_.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(D&&i.contains(D)||_ instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(_.type))return;const k=n.metaKey||n.ctrlKey;(k?g()==="submit":!x&&f()==="submit")?(n.preventDefault(),i.requestSubmit()):(!x||k)&&n.preventDefault()}var p={get children(){return l()},set children(n){l(n),s()},get onSubmit(){return d()},set onSubmit(n){d(n),s()},get busy(){return b()},set busy(n=!1){b(n),s()},get enterKey(){return f()},set enterKey(n="submit"){f(n),s()},get modEnter(){return g()},set modEnter(n="submit"){g(n),s()},get class(){return h()},set class(n){h(n),s()},$set:we,$on:(n,_)=>Se(t,n,_)},u=ft();nt(u,n=>({"data-slot":"form","aria-busy":a(v)||void 0,class:n,onsubmit:E,onkeydown:S,...L}),[()=>Ke("grid gap-4",h())]);var C=H(u),o=H(C);return R(o,l),N(C),N(u),ut(u,n=>i=n,()=>i),M(()=>{C.disabled=a(v),Pe(C,"aria-busy",a(v)||void 0)}),w(K,u),Be(p)}var mt=ke('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Ve(K,t){if(new.target)return Ce({component:Ve,...K});xe(t,!0);let l=r(t,"destructive",7),d=r(t,"secondary",7),b=r(t,"primary",7),f=r(t,"hint",7),g=r(t,"class",7);const h=$e();var L={get destructive(){return l()},set destructive(o){l(o),s()},get secondary(){return d()},set secondary(o){d(o),s()},get primary(){return b()},set primary(o){b(o),s()},get hint(){return f()},set hint(o){f(o),s()},get class(){return g()},set class(o){g(o),s()},$set:we,$on:(o,n)=>Se(t,o,n)},i=mt(),y=H(i),v=H(y);R(v,()=>l()??Oe),N(y);var E=ge(y,2),S=H(E);{var p=o=>{et(o,{children:(n,_)=>{ye();var x=ve();M(()=>_e(x,f())),w(n,x)},$$slots:{default:!0}})};he(S,o=>{f()&&o(p)})}var u=ge(S,2);R(u,()=>d()??Oe);var C=ge(u,2);return R(C,b),N(E),N(i),M(o=>{Pe(i,"data-size",h),ot(i,1,o)},[()=>at(Ke("flex items-center justify-between",h==="compact"?"gap-2":"gap-3",g()))]),w(K,i),Be(L)}function dt(K,t){if(new.target)return Ce({component:dt,...K});xe(t,!0);let l=r(t,"open",15,!1),d=r(t,"static",7,!1),b=r(t,"title",7),f=r(t,"description",7),g=r(t,"titleId",7),h=r(t,"descriptionId",7),L=r(t,"children",7),i=r(t,"footer",7),y=r(t,"submitLabel",23,()=>O.modals_bulkActionConfirm_confirm_label()),v=r(t,"cancelLabel",23,()=>O.modals_bulkActionConfirm_cancel_label()),E=r(t,"submitVariant",7,"primary"),S=r(t,"canSubmit",7,!0),p=r(t,"busy",7,!1),u=r(t,"submitBusy",7,!1),C=r(t,"role",7,"dialog"),o=r(t,"dismissOnInteractOutside",7,!0),n=r(t,"showCancel",7,!0),_=r(t,"showCloseButton",7,!0),x=r(t,"closeLabel",23,()=>O.ui_dialog_close_ariaLabel()),D=r(t,"class",7),k=r(t,"size",7,"default"),j=r(t,"initialFocus",7),X=r(t,"focusContent",7,!1),q=r(t,"focusSubmit",7,!1),Y=r(t,"focusCancel",7,!1),W=r(t,"escapeKeydownBehavior",7,"close"),Z=r(t,"enterKey",7,"submit"),$=r(t,"modEnter",7,"submit"),ee=r(t,"onfocusin",7),te=r(t,"onCloseAutoFocus",7),re=r(t,"onSubmit",7),se=r(t,"onCancel",7),ne=A(!1),G=A(""),ae=A(!1),J=A(null),oe=A(null),ie=A(null);const B=z(()=>p()||a(ne));Ze(()=>{l()&&(m(ae,!1),m(G,""))});function ue(){a(B)||a(ae)||(m(ae,!0),l(!1),se()?.())}async function Te(){if(!(a(B)||u()||!S())){m(ne,!0),m(G,"");try{await re()()}catch{m(G,O.ui_dialog_submitFailed_error(),!0)}finally{m(ne,!1)}}}function He(e){const F=j()??(Y()?a(oe):q()?a(ie):X()?a(J):null);F&&(F.focus(),F.ownerDocument.activeElement===F&&e.preventDefault())}var Ne={get open(){return l()},set open(e=!1){l(e),s()},get static(){return d()},set static(e=!1){d(e),s()},get title(){return b()},set title(e){b(e),s()},get description(){return f()},set description(e){f(e),s()},get titleId(){return g()},set titleId(e){g(e),s()},get descriptionId(){return h()},set descriptionId(e){h(e),s()},get children(){return L()},set children(e){L(e),s()},get footer(){return i()},set footer(e){i(e),s()},get submitLabel(){return y()},set submitLabel(e=O.modals_bulkActionConfirm_confirm_label()){y(e),s()},get cancelLabel(){return v()},set cancelLabel(e=O.modals_bulkActionConfirm_cancel_label()){v(e),s()},get submitVariant(){return E()},set submitVariant(e="primary"){E(e),s()},get canSubmit(){return S()},set canSubmit(e=!0){S(e),s()},get busy(){return p()},set busy(e=!1){p(e),s()},get submitBusy(){return u()},set submitBusy(e=!1){u(e),s()},get role(){return C()},set role(e="dialog"){C(e),s()},get dismissOnInteractOutside(){return o()},set dismissOnInteractOutside(e=!0){o(e),s()},get showCancel(){return n()},set showCancel(e=!0){n(e),s()},get showCloseButton(){return _()},set showCloseButton(e=!0){_(e),s()},get closeLabel(){return x()},set closeLabel(e=O.ui_dialog_close_ariaLabel()){x(e),s()},get class(){return D()},set class(e){D(e),s()},get size(){return k()},set size(e="default"){k(e),s()},get initialFocus(){return j()},set initialFocus(e){j(e),s()},get focusContent(){return X()},set focusContent(e=!1){X(e),s()},get focusSubmit(){return q()},set focusSubmit(e=!1){q(e),s()},get focusCancel(){return Y()},set focusCancel(e=!1){Y(e),s()},get escapeKeydownBehavior(){return W()},set escapeKeydownBehavior(e="close"){W(e),s()},get enterKey(){return Z()},set enterKey(e="submit"){Z(e),s()},get modEnter(){return $()},set modEnter(e="submit"){$(e),s()},get onfocusin(){return ee()},set onfocusin(e){ee(e),s()},get onCloseAutoFocus(){return te()},set onCloseAutoFocus(e){te(e),s()},get onSubmit(){return re()},set onSubmit(e){re(e),s()},get onCancel(){return se()},set onCancel(e){se(e),s()},$set:we,$on:(e,F)=>Se(t,e,F)},Ee=V(),Re=T(Ee);return Ae(Re,()=>tt,(e,F)=>{F(e,{get open(){return l()},get staticPosition(){return d()},onOpenChange:le=>!le&&ue(),children:(le,bt)=>{var Fe=V(),Me=T(Fe);{let je=z(()=>Ke("flex min-h-0 flex-col overflow-hidden p-0",D()));Ae(Me,()=>rt,(qe,We)=>{We(qe,{get role(){return C()},get size(){return k()},get class(){return a(je)},get closeDisabled(){return a(B)},get showCloseButton(){return _()},get closeLabel(){return x()},get escapeKeydownBehavior(){return W()},onOpenAutoFocus:He,get onCloseAutoFocus(){return te()},get onfocusin(){return ee()},onkeydown:c=>{c.key==="Escape"&&it(a(J),c)||c.key==="Escape"&&W()==="close"&&(c.preventDefault(),c.stopPropagation(),ue())},onInteractOutside:c=>(a(B)||!o())&&c.preventDefault(),onEscapeKeydown:c=>a(B)&&c.preventDefault(),get ref(){return a(J)},set ref(c){m(J,c,!0)},children:(c,gt)=>{ze(c,{onSubmit:Te,get busy(){return a(B)},get enterKey(){return Z()},get modEnter(){return $()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Ge,yt)=>{st(Ge,{get title(){return b()},get description(){return f()},get titleId(){return g()},get descriptionId(){return h()},get children(){return L()},get error(){return a(G)},footer:Je=>{var Le=V(),Qe=T(Le);{var Ue=P=>{var ce=V(),pe=T(ce);R(pe,i),w(P,ce)},Xe=P=>{Ve(P,{secondary:fe=>{var Q=V(),me=T(Q);{var de=I=>{De(I,{variant:"ghost-light",get disabled(){return a(B)},onclick:ue,get ref(){return a(oe)},set ref(U){m(oe,U,!0)},children:(U,be)=>{ye();var Ie=ve();M(()=>_e(Ie,v())),w(U,Ie)},$$slots:{default:!0}})};he(me,I=>{n()&&I(de)})}w(fe,Q)},primary:fe=>{{let Q=z(()=>q()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),me=z(()=>a(B)||u()),de=z(()=>!S()||a(B)||u());De(fe,{type:"submit",get variant(){return E()},get class(){return a(Q)},get loading(){return a(me)},get disabled(){return a(de)},get ref(){return a(ie)},set ref(I){m(ie,I,!0)},children:(I,U)=>{ye();var be=ve();M(()=>_e(be,y())),w(I,be)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};he(Qe,P=>{i()?P(Ue):P(Xe,-1)})}w(Je,Le)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}w(le,Fe)},$$slots:{default:!0}})}),w(K,Ee),Be(Ne)}export{ze as F,Ve as a,dt as b};
1
+ import{t as Ce,bo as r,bw as we,bp as Ye,b as Se,bm as O}from"./DxxarOOi.js";import{bs as xe,aD as a,a5 as H,bA as N,b_ as M,W as w,bn as Be,c9 as z,bH as m,aA as s,aB as ke,bV as A,bf as Oe,bS as ge,be as ye,b$ as ve,bO as _e,ca as Ze,a7 as V,ay as T}from"./3SdAC2_C.js";import{i as he}from"./DzAQQ1i-.js";import{s as R}from"./C600Ggsz.js";import{c as Ae}from"./CruJ4jyB.js";import{a_ as $e,aa as et,f as De}from"./D5eCb9SA.js";import"./BfQPFCP7.js";import{O as tt}from"./DBEo2Y3v.js";import{a as rt,D as st}from"./DeaknxEN.js";import{b as nt,e as Ke,s as Pe,c as at,f as ot}from"./Ch-D6DCZ.js";import"./DBI9dTMM.js";import{e as it}from"./BrfF5NLx.js";import{b as ut}from"./Dn334wJv.js";import{i as lt}from"./CC7to1B5.js";import"./Cncxuk-H.js";import"./euI_ACTK.js";var ct=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),ft=ke('<form><fieldset class="contents"><!></fieldset></form>');function ze(K,t){if(new.target)return Ce({component:ze,...K});xe(t,!0);let l=r(t,"children",7),d=r(t,"onSubmit",7),b=r(t,"busy",7,!1),f=r(t,"enterKey",7,"submit"),g=r(t,"modEnter",7,"submit"),h=r(t,"class",7),L=Ye(t,ct),i,y=A(!1);const v=z(()=>b()||a(y));async function E(n){if(n.preventDefault(),!a(v)){m(y,!0);try{await d()(n)}finally{m(y,!1)}}}function S(n){if(n.key!=="Enter"||n.isComposing||n.defaultPrevented||a(v))return;const _=n.target,x=lt(_),D=_.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(D&&i.contains(D)||_ instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(_.type))return;const k=n.metaKey||n.ctrlKey;(k?g()==="submit":!x&&f()==="submit")?(n.preventDefault(),i.requestSubmit()):(!x||k)&&n.preventDefault()}var p={get children(){return l()},set children(n){l(n),s()},get onSubmit(){return d()},set onSubmit(n){d(n),s()},get busy(){return b()},set busy(n=!1){b(n),s()},get enterKey(){return f()},set enterKey(n="submit"){f(n),s()},get modEnter(){return g()},set modEnter(n="submit"){g(n),s()},get class(){return h()},set class(n){h(n),s()},$set:we,$on:(n,_)=>Se(t,n,_)},u=ft();nt(u,n=>({"data-slot":"form","aria-busy":a(v)||void 0,class:n,onsubmit:E,onkeydown:S,...L}),[()=>Ke("grid gap-4",h())]);var C=H(u),o=H(C);return R(o,l),N(C),N(u),ut(u,n=>i=n,()=>i),M(()=>{C.disabled=a(v),Pe(C,"aria-busy",a(v)||void 0)}),w(K,u),Be(p)}var mt=ke('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Ve(K,t){if(new.target)return Ce({component:Ve,...K});xe(t,!0);let l=r(t,"destructive",7),d=r(t,"secondary",7),b=r(t,"primary",7),f=r(t,"hint",7),g=r(t,"class",7);const h=$e();var L={get destructive(){return l()},set destructive(o){l(o),s()},get secondary(){return d()},set secondary(o){d(o),s()},get primary(){return b()},set primary(o){b(o),s()},get hint(){return f()},set hint(o){f(o),s()},get class(){return g()},set class(o){g(o),s()},$set:we,$on:(o,n)=>Se(t,o,n)},i=mt(),y=H(i),v=H(y);R(v,()=>l()??Oe),N(y);var E=ge(y,2),S=H(E);{var p=o=>{et(o,{children:(n,_)=>{ye();var x=ve();M(()=>_e(x,f())),w(n,x)},$$slots:{default:!0}})};he(S,o=>{f()&&o(p)})}var u=ge(S,2);R(u,()=>d()??Oe);var C=ge(u,2);return R(C,b),N(E),N(i),M(o=>{Pe(i,"data-size",h),ot(i,1,o)},[()=>at(Ke("flex items-center justify-between",h==="compact"?"gap-2":"gap-3",g()))]),w(K,i),Be(L)}function dt(K,t){if(new.target)return Ce({component:dt,...K});xe(t,!0);let l=r(t,"open",15,!1),d=r(t,"static",7,!1),b=r(t,"title",7),f=r(t,"description",7),g=r(t,"titleId",7),h=r(t,"descriptionId",7),L=r(t,"children",7),i=r(t,"footer",7),y=r(t,"submitLabel",23,()=>O.modals_bulkActionConfirm_confirm_label()),v=r(t,"cancelLabel",23,()=>O.modals_bulkActionConfirm_cancel_label()),E=r(t,"submitVariant",7,"primary"),S=r(t,"canSubmit",7,!0),p=r(t,"busy",7,!1),u=r(t,"submitBusy",7,!1),C=r(t,"role",7,"dialog"),o=r(t,"dismissOnInteractOutside",7,!0),n=r(t,"showCancel",7,!0),_=r(t,"showCloseButton",7,!0),x=r(t,"closeLabel",23,()=>O.ui_dialog_close_ariaLabel()),D=r(t,"class",7),k=r(t,"size",7,"default"),j=r(t,"initialFocus",7),X=r(t,"focusContent",7,!1),q=r(t,"focusSubmit",7,!1),Y=r(t,"focusCancel",7,!1),W=r(t,"escapeKeydownBehavior",7,"close"),Z=r(t,"enterKey",7,"submit"),$=r(t,"modEnter",7,"submit"),ee=r(t,"onfocusin",7),te=r(t,"onCloseAutoFocus",7),re=r(t,"onSubmit",7),se=r(t,"onCancel",7),ne=A(!1),G=A(""),ae=A(!1),J=A(null),oe=A(null),ie=A(null);const B=z(()=>p()||a(ne));Ze(()=>{l()&&(m(ae,!1),m(G,""))});function ue(){a(B)||a(ae)||(m(ae,!0),l(!1),se()?.())}async function Te(){if(!(a(B)||u()||!S())){m(ne,!0),m(G,"");try{await re()()}catch{m(G,O.ui_dialog_submitFailed_error(),!0)}finally{m(ne,!1)}}}function He(e){const F=j()??(Y()?a(oe):q()?a(ie):X()?a(J):null);F&&(F.focus(),F.ownerDocument.activeElement===F&&e.preventDefault())}var Ne={get open(){return l()},set open(e=!1){l(e),s()},get static(){return d()},set static(e=!1){d(e),s()},get title(){return b()},set title(e){b(e),s()},get description(){return f()},set description(e){f(e),s()},get titleId(){return g()},set titleId(e){g(e),s()},get descriptionId(){return h()},set descriptionId(e){h(e),s()},get children(){return L()},set children(e){L(e),s()},get footer(){return i()},set footer(e){i(e),s()},get submitLabel(){return y()},set submitLabel(e=O.modals_bulkActionConfirm_confirm_label()){y(e),s()},get cancelLabel(){return v()},set cancelLabel(e=O.modals_bulkActionConfirm_cancel_label()){v(e),s()},get submitVariant(){return E()},set submitVariant(e="primary"){E(e),s()},get canSubmit(){return S()},set canSubmit(e=!0){S(e),s()},get busy(){return p()},set busy(e=!1){p(e),s()},get submitBusy(){return u()},set submitBusy(e=!1){u(e),s()},get role(){return C()},set role(e="dialog"){C(e),s()},get dismissOnInteractOutside(){return o()},set dismissOnInteractOutside(e=!0){o(e),s()},get showCancel(){return n()},set showCancel(e=!0){n(e),s()},get showCloseButton(){return _()},set showCloseButton(e=!0){_(e),s()},get closeLabel(){return x()},set closeLabel(e=O.ui_dialog_close_ariaLabel()){x(e),s()},get class(){return D()},set class(e){D(e),s()},get size(){return k()},set size(e="default"){k(e),s()},get initialFocus(){return j()},set initialFocus(e){j(e),s()},get focusContent(){return X()},set focusContent(e=!1){X(e),s()},get focusSubmit(){return q()},set focusSubmit(e=!1){q(e),s()},get focusCancel(){return Y()},set focusCancel(e=!1){Y(e),s()},get escapeKeydownBehavior(){return W()},set escapeKeydownBehavior(e="close"){W(e),s()},get enterKey(){return Z()},set enterKey(e="submit"){Z(e),s()},get modEnter(){return $()},set modEnter(e="submit"){$(e),s()},get onfocusin(){return ee()},set onfocusin(e){ee(e),s()},get onCloseAutoFocus(){return te()},set onCloseAutoFocus(e){te(e),s()},get onSubmit(){return re()},set onSubmit(e){re(e),s()},get onCancel(){return se()},set onCancel(e){se(e),s()},$set:we,$on:(e,F)=>Se(t,e,F)},Ee=V(),Re=T(Ee);return Ae(Re,()=>tt,(e,F)=>{F(e,{get open(){return l()},get staticPosition(){return d()},onOpenChange:le=>!le&&ue(),children:(le,bt)=>{var Fe=V(),Me=T(Fe);{let je=z(()=>Ke("flex min-h-0 flex-col overflow-hidden p-0",D()));Ae(Me,()=>rt,(qe,We)=>{We(qe,{get role(){return C()},get size(){return k()},get class(){return a(je)},get closeDisabled(){return a(B)},get showCloseButton(){return _()},get closeLabel(){return x()},get escapeKeydownBehavior(){return W()},onOpenAutoFocus:He,get onCloseAutoFocus(){return te()},get onfocusin(){return ee()},onkeydown:c=>{c.key==="Escape"&&it(a(J),c)||c.key==="Escape"&&W()==="close"&&(c.preventDefault(),c.stopPropagation(),ue())},onInteractOutside:c=>(a(B)||!o())&&c.preventDefault(),onEscapeKeydown:c=>a(B)&&c.preventDefault(),get ref(){return a(J)},set ref(c){m(J,c,!0)},children:(c,gt)=>{ze(c,{onSubmit:Te,get busy(){return a(B)},get enterKey(){return Z()},get modEnter(){return $()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Ge,yt)=>{st(Ge,{get title(){return b()},get description(){return f()},get titleId(){return g()},get descriptionId(){return h()},get children(){return L()},get error(){return a(G)},footer:Je=>{var Le=V(),Qe=T(Le);{var Ue=P=>{var ce=V(),pe=T(ce);R(pe,i),w(P,ce)},Xe=P=>{Ve(P,{secondary:fe=>{var Q=V(),me=T(Q);{var de=I=>{De(I,{variant:"ghost-light",get disabled(){return a(B)},onclick:ue,get ref(){return a(oe)},set ref(U){m(oe,U,!0)},children:(U,be)=>{ye();var Ie=ve();M(()=>_e(Ie,v())),w(U,Ie)},$$slots:{default:!0}})};he(me,I=>{n()&&I(de)})}w(fe,Q)},primary:fe=>{{let Q=z(()=>q()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),me=z(()=>a(B)||u()),de=z(()=>!S()||a(B)||u());De(fe,{type:"submit",get variant(){return E()},get class(){return a(Q)},get loading(){return a(me)},get disabled(){return a(de)},get ref(){return a(ie)},set ref(I){m(ie,I,!0)},children:(I,U)=>{ye();var be=ve();M(()=>_e(be,y())),w(I,be)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};he(Qe,P=>{i()?P(Ue):P(Xe,-1)})}w(Je,Le)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}w(le,Fe)},$$slots:{default:!0}})}),w(K,Ee),Be(Ne)}export{ze as F,Ve as a,dt as b};
@@ -1 +1 @@
1
- var p=Object.defineProperty;var h=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./C8Ie7Deo.js";import{o1 as g,n$ as m,o0 as d}from"./CKmtKxD0.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const o=this.componentLoads.get(e);if(o?.registration===t)return o.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const o=this.componentLoads.get(e);return o?.registration===t?o.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const o=this.types.get(e);return o?m(o.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
1
+ var p=Object.defineProperty;var h=(s,e,t)=>e in s?p(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t;var a=(s,e,t)=>h(s,typeof e!="symbol"?e+"":e,t);import{bm as c}from"./DxxarOOi.js";import{o1 as g,n$ as m,o0 as d}from"./Zs30783q.js";class l{constructor(){a(this,"types",new Map);a(this,"componentLoads",new Map)}register(e){this.types.has(e.type)&&console.warn(`Tab type "${e.type}" is already registered. Overwriting.`),this.types.set(e.type,e),this.componentLoads.delete(e.type)}loadComponent(e){const t=this.types.get(e);if(!t)return Promise.reject(new Error(`Unknown tab type: ${e}`));const o=this.componentLoads.get(e);if(o?.registration===t)return o.promise;const n={registration:t},i="component"in t&&t.component?Promise.resolve(t.component):Promise.resolve().then(()=>t.loadComponent()).then(r=>r.default);return n.promise=i.then(r=>(this.componentLoads.get(e)===n&&(n.component=r),r)).catch(r=>{throw this.componentLoads.get(e)===n&&this.componentLoads.delete(e),r}),this.componentLoads.set(e,n),n.promise}getLoadedComponent(e){const t=this.types.get(e);if(!t)return;if("component"in t)return t.component;const o=this.componentLoads.get(e);return o?.registration===t?o.component:void 0}resetComponentLoad(e){this.componentLoads.delete(e)}get(e){return this.types.get(e)}getAll(){return Array.from(this.types.values())}has(e){return this.types.has(e)}getIcon(e){return this.types.get(e)?.icon}getCategoryLabel(e){return this.types.get(e)?.categoryLabel??c.layout_tabTypes_panel_category()}getSidebarTabId(e){return this.types.get(e)?.sidebarTabId??null}isRenameable(e){return this.types.get(e)?.renameable??!1}getDefaultWidthTier(e){return this.types.get(e)?.defaultWidthTier??g(e)}getDefaultWidth(e,t=0){const o=this.types.get(e);return o?m(o.defaultWidthTier,t):d(e,t)}}const b=new l;export{b as t};
@@ -1 +1 @@
1
- import{t as N,bo as y,bw as R,b as W,bp as ie}from"./C8Ie7Deo.js";import{bs as q,a7 as $,ay as ee,W as P,bn as B,aA as I,bf as oe,bV as L,br as de,ca as z,aD as t,bk as le,bH as f,c0 as J,a5 as F,bA as T,b_ as te,aB as H,c9 as S,bl as ce}from"./3SdAC2_C.js";import{s as ue}from"./FJqzUSSZ.js";import{z as ve,av as Q}from"./CHVFOL-2.js";import{i as D}from"./D6XIvyP3.js";import{s as ne,b as X,e as C,c as fe,f as me}from"./D41qh-5f.js";import{b as ge}from"./Dn334wJv.js";import{g as he,b as pe}from"./gkFzY6r7.js";import{P as be}from"./CT1vJyZh.js";import{F as xe,bZ as _e,ay as Ee,au as ye}from"./Cuea3cpS.js";function Ie(g,s){if(new.target)return N({component:Ie,...g});q(s,!0);let a=y(s,"id",7),l=y(s,"children",7),c=y(s,"virtualEl",7),r=y(s,"ref",7),b=y(s,"tooltip",7,!1);ve.create({id:Q(()=>a()),virtualEl:Q(()=>c()),ref:r()},b());var w={get id(){return a()},set id(o){a(o),I()},get children(){return l()},set children(o){l(o),I()},get virtualEl(){return c()},set virtualEl(o){c(o),I()},get ref(){return r()},set ref(o){r(o),I()},get tooltip(){return b()},set tooltip(o=!1){b(o),I()},$set:R,$on:(o,i)=>W(s,o,i)},x=$(),A=ee(x);return ue(A,()=>l()??oe),P(g,x),B(w)}var we=H('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Ae(g,s){if(new.target)return N({component:Ae,...g});q(s,!0);let a=y(s,"activeIndex",7),l=y(s,"onactiveindexchange",7),c=L(null),r=L(null),b=L(de([])),w=L(null),x=L(!1),A=L(!1),o;const i='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';z(()=>{t(r)&&a()===void 0&&t(x)&&t(r).activeIndex!==t(w)&&t(r).setActiveIndex(t(w))}),z(()=>{!t(r)||a()===void 0||t(r).pointerPosition||t(r).setActiveIndex(a())}),z(()=>{if(!t(r)?.pointerPosition){o=void 0;return}t(r).activeIndex!==o&&(o=t(r).activeIndex,l()?.(t(r).activeIndex))}),le(()=>{const e=t(c)?.parentElement;if(!e)return;e.dataset.listOverlay="",e.classList.add("relative","isolate");const u=he(e,{axis:"xy"});f(r,u);let h=[];const ae=n=>n instanceof Element&&(n.matches(i)||n.querySelector(i)),re=n=>n.hasAttribute("data-disabled")||n.getAttribute("aria-disabled")==="true",se=n=>n.dataset.selectionAppearance!=="indicator"&&(n.hasAttribute("data-selected")||n.getAttribute("data-state")==="checked"||n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true"),V=()=>{const n=Array.from(e.querySelectorAll(i)).filter(d=>d.closest("[data-list-overlay]")===e&&!re(d));n.length!==h.length||n.some((d,p)=>d!==h[p])?(h.forEach((d,p)=>u.registerItem(p,null)),h=n,h.forEach((d,p)=>u.registerItem(p,d))):u.measure();const v=h.flatMap((d,p)=>se(d)?[p]:[]);if((v.length!==t(b).length||v.some((d,p)=>d!==t(b)[p]))&&f(b,v,!0),a()===void 0){const d=h.findIndex(p=>p.hasAttribute("data-highlighted")||p===document.activeElement);d>=0&&u.setActiveIndex(d)}},K=new MutationObserver(n=>{n.some(v=>v.type==="attributes"||[...v.addedNodes,...v.removedNodes].some(ae))&&V()});K.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const M=()=>{const n=h.indexOf(document.activeElement);f(w,n>=0?n:null,!0)},G=()=>{f(A,!1),f(x,!0),M(),J().then(()=>{t(x)&&M()})},U=()=>{f(x,!1)},Y=()=>{f(A,!1),f(x,!0),M()},Z=n=>{const v=n.target instanceof Element?n.target.closest(i):null,d=h.indexOf(v);n.button!==0||d<0||(f(x,!1),f(A,!0),u.setActiveIndex(d))},O=()=>{f(A,!1)},j=n=>{const v=h.indexOf(n.target);f(w,v>=0?v:null,!0),v>=0&&u.setActiveIndex(v)};return e.addEventListener("keydown",G,!0),e.addEventListener("pointermove",U,!0),e.addEventListener("pointerleave",Y),e.addEventListener("pointerdown",Z),window.addEventListener("pointerup",O),window.addEventListener("pointercancel",O),e.addEventListener("focusin",j),J().then(V),()=>{K.disconnect(),e.removeEventListener("keydown",G,!0),e.removeEventListener("pointermove",U,!0),e.removeEventListener("pointerleave",Y),e.removeEventListener("pointerdown",Z),window.removeEventListener("pointerup",O),window.removeEventListener("pointercancel",O),e.removeEventListener("focusin",j),u.destroy(),f(r,null),delete e.dataset.listOverlay}});var m={get activeIndex(){return a()},set activeIndex(e){a(e),I()},get onactiveindexchange(){return l()},set onactiveindexchange(e){l(e),I()},$set:R,$on:(e,u)=>W(s,e,u)},E=we(),k=F(E);{var _=e=>{{let u=S(()=>t(A)?t(b).includes(t(r).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");be(e,{get store(){return t(r)},get selectedIndexes(){return t(b)},get hoverClass(){return t(u)}})}};D(k,e=>{t(r)&&e(_)})}return T(E),ge(E,e=>f(c,e),()=>t(c)),te(()=>ne(E,"data-active-index",t(r)?.activeIndex??void 0)),P(g,E),B(m)}const Le=8;function Be(g,s,a=24){if(!g)return!0;const l=g.getBoundingClientRect(),c=s+a+Le;return l.left>=c||g.ownerDocument.documentElement.clientWidth-l.right>=c}var ke=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Pe=H('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Oe=H("<span><!></span>");function Se(g,s){if(new.target)return N({component:Se,...g});q(s,!0);let a=y(s,"state",7),l=y(s,"class",7),c=y(s,"data-slot",7),r=ie(s,ke);var b={get state(){return a()},set state(i){a(i),I()},get class(){return l()},set class(i){l(i),I()},get"data-slot"(){return c()},set"data-slot"(i){c(i),I()},$set:R,$on:(i,m)=>W(s,i,m)},w=$(),x=ee(w);{var A=i=>{var m=Pe();X(m,_=>({...r,"data-slot":c()??"menu-switch",class:_,"aria-hidden":"true"}),[()=>C("ml-auto flex h-lh shrink-0 items-center",l())]);var E=F(m),k=ce(E);T(m),te(_=>{ne(E,"data-state",a()==="on"?"checked":"unchecked"),me(k,1,_)},[()=>fe(C("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",a()==="on"&&"translate-x-2.5"))]),P(i,m)},o=i=>{var m=Oe();X(m,_=>({...r,"data-slot":c()??(a()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:_,"aria-hidden":"true"}),[()=>C(pe,a()==="submenu"?"text-muted-foreground":"text-primary-ink",l())]);var E=F(m);{var k=_=>{{let e=S(()=>a()==="mixed"?_e:a()==="submenu"?Ee:ye),u=S(()=>a()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),h=S(()=>a()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");xe(_,{get icon(){return t(e)},get size(){return t(u)},get class(){return t(h)}})}};D(E,_=>{a()!=="empty"&&_(k)})}T(m),P(i,m)};D(x,i=>{a()==="on"||a()==="off"?i(A):i(o,-1)})}return P(g,w),B(b)}export{Ie as F,Se as M,Le as O,Ae as a,Be as c};
1
+ import{t as N,bo as y,bw as R,b as W,bp as ie}from"./DxxarOOi.js";import{bs as q,a7 as $,ay as ee,W as P,bn as B,aA as I,bf as oe,bV as L,br as de,ca as z,aD as t,bk as le,bH as f,c0 as J,a5 as F,bA as T,b_ as te,aB as H,c9 as S,bl as ce}from"./3SdAC2_C.js";import{s as ue}from"./C600Ggsz.js";import{z as ve,av as Q}from"./D5eCb9SA.js";import{i as D}from"./DzAQQ1i-.js";import{s as ne,b as X,e as C,c as fe,f as me}from"./Ch-D6DCZ.js";import{b as ge}from"./Dn334wJv.js";import{g as he,b as pe}from"./VlOW_lom.js";import{P as be}from"./BrfF5NLx.js";import{F as xe,bZ as _e,ay as Ee,au as ye}from"./B5yEHkSy.js";function Ie(g,s){if(new.target)return N({component:Ie,...g});q(s,!0);let a=y(s,"id",7),l=y(s,"children",7),c=y(s,"virtualEl",7),r=y(s,"ref",7),b=y(s,"tooltip",7,!1);ve.create({id:Q(()=>a()),virtualEl:Q(()=>c()),ref:r()},b());var w={get id(){return a()},set id(o){a(o),I()},get children(){return l()},set children(o){l(o),I()},get virtualEl(){return c()},set virtualEl(o){c(o),I()},get ref(){return r()},set ref(o){r(o),I()},get tooltip(){return b()},set tooltip(o=!1){b(o),I()},$set:R,$on:(o,i)=>W(s,o,i)},x=$(),A=ee(x);return ue(A,()=>l()??oe),P(g,x),B(w)}var we=H('<span data-slot="menu-list-highlight" class="contents svelte-da0knc" aria-hidden="true"><!></span>');function Ae(g,s){if(new.target)return N({component:Ae,...g});q(s,!0);let a=y(s,"activeIndex",7),l=y(s,"onactiveindexchange",7),c=L(null),r=L(null),b=L(de([])),w=L(null),x=L(!1),A=L(!1),o;const i='[data-menu-item], [role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"], [role="option"]';z(()=>{t(r)&&a()===void 0&&t(x)&&t(r).activeIndex!==t(w)&&t(r).setActiveIndex(t(w))}),z(()=>{!t(r)||a()===void 0||t(r).pointerPosition||t(r).setActiveIndex(a())}),z(()=>{if(!t(r)?.pointerPosition){o=void 0;return}t(r).activeIndex!==o&&(o=t(r).activeIndex,l()?.(t(r).activeIndex))}),le(()=>{const e=t(c)?.parentElement;if(!e)return;e.dataset.listOverlay="",e.classList.add("relative","isolate");const u=he(e,{axis:"xy"});f(r,u);let h=[];const ae=n=>n instanceof Element&&(n.matches(i)||n.querySelector(i)),re=n=>n.hasAttribute("data-disabled")||n.getAttribute("aria-disabled")==="true",se=n=>n.dataset.selectionAppearance!=="indicator"&&(n.hasAttribute("data-selected")||n.getAttribute("data-state")==="checked"||n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true"),V=()=>{const n=Array.from(e.querySelectorAll(i)).filter(d=>d.closest("[data-list-overlay]")===e&&!re(d));n.length!==h.length||n.some((d,p)=>d!==h[p])?(h.forEach((d,p)=>u.registerItem(p,null)),h=n,h.forEach((d,p)=>u.registerItem(p,d))):u.measure();const v=h.flatMap((d,p)=>se(d)?[p]:[]);if((v.length!==t(b).length||v.some((d,p)=>d!==t(b)[p]))&&f(b,v,!0),a()===void 0){const d=h.findIndex(p=>p.hasAttribute("data-highlighted")||p===document.activeElement);d>=0&&u.setActiveIndex(d)}},K=new MutationObserver(n=>{n.some(v=>v.type==="attributes"||[...v.addedNodes,...v.removedNodes].some(ae))&&V()});K.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["data-highlighted","data-selected","data-state","data-disabled","aria-selected","aria-checked","aria-disabled","data-selection-appearance"]});const M=()=>{const n=h.indexOf(document.activeElement);f(w,n>=0?n:null,!0)},G=()=>{f(A,!1),f(x,!0),M(),J().then(()=>{t(x)&&M()})},U=()=>{f(x,!1)},Y=()=>{f(A,!1),f(x,!0),M()},Z=n=>{const v=n.target instanceof Element?n.target.closest(i):null,d=h.indexOf(v);n.button!==0||d<0||(f(x,!1),f(A,!0),u.setActiveIndex(d))},O=()=>{f(A,!1)},j=n=>{const v=h.indexOf(n.target);f(w,v>=0?v:null,!0),v>=0&&u.setActiveIndex(v)};return e.addEventListener("keydown",G,!0),e.addEventListener("pointermove",U,!0),e.addEventListener("pointerleave",Y),e.addEventListener("pointerdown",Z),window.addEventListener("pointerup",O),window.addEventListener("pointercancel",O),e.addEventListener("focusin",j),J().then(V),()=>{K.disconnect(),e.removeEventListener("keydown",G,!0),e.removeEventListener("pointermove",U,!0),e.removeEventListener("pointerleave",Y),e.removeEventListener("pointerdown",Z),window.removeEventListener("pointerup",O),window.removeEventListener("pointercancel",O),e.removeEventListener("focusin",j),u.destroy(),f(r,null),delete e.dataset.listOverlay}});var m={get activeIndex(){return a()},set activeIndex(e){a(e),I()},get onactiveindexchange(){return l()},set onactiveindexchange(e){l(e),I()},$set:R,$on:(e,u)=>W(s,e,u)},E=we(),k=F(E);{var _=e=>{{let u=S(()=>t(A)?t(b).includes(t(r).activeIndex??-1)?"bg-hover menu-selection-pressed":"bg-active":"bg-hover");be(e,{get store(){return t(r)},get selectedIndexes(){return t(b)},get hoverClass(){return t(u)}})}};D(k,e=>{t(r)&&e(_)})}return T(E),ge(E,e=>f(c,e),()=>t(c)),te(()=>ne(E,"data-active-index",t(r)?.activeIndex??void 0)),P(g,E),B(m)}const Le=8;function Be(g,s,a=24){if(!g)return!0;const l=g.getBoundingClientRect(),c=s+a+Le;return l.left>=c||g.ownerDocument.documentElement.clientWidth-l.right>=c}var ke=new Set(["$$slots","$$events","$$legacy","state","class","data-slot"]),Pe=H('<span><span class="relative block h-3.5 w-6 rounded-full bg-muted-foreground/25 transition-colors duration-spring-fast ease-spring-fast data-[state=checked]:bg-foreground/80 motion-reduce:transition-none"><span></span></span></span>'),Oe=H("<span><!></span>");function Se(g,s){if(new.target)return N({component:Se,...g});q(s,!0);let a=y(s,"state",7),l=y(s,"class",7),c=y(s,"data-slot",7),r=ie(s,ke);var b={get state(){return a()},set state(i){a(i),I()},get class(){return l()},set class(i){l(i),I()},get"data-slot"(){return c()},set"data-slot"(i){c(i),I()},$set:R,$on:(i,m)=>W(s,i,m)},w=$(),x=ee(w);{var A=i=>{var m=Pe();X(m,_=>({...r,"data-slot":c()??"menu-switch",class:_,"aria-hidden":"true"}),[()=>C("ml-auto flex h-lh shrink-0 items-center",l())]);var E=F(m),k=ce(E);T(m),te(_=>{ne(E,"data-state",a()==="on"?"checked":"unchecked"),me(k,1,_)},[()=>fe(C("absolute top-0.5 left-0.5 size-2.5 rounded-full bg-popover transition-transform duration-spring-fast ease-spring-fast motion-reduce:transition-none",a()==="on"&&"translate-x-2.5"))]),P(i,m)},o=i=>{var m=Oe();X(m,_=>({...r,"data-slot":c()??(a()==="submenu"?"menu-sub-chevron":"menu-item-indicator"),class:_,"aria-hidden":"true"}),[()=>C(pe,a()==="submenu"?"text-muted-foreground":"text-primary-ink",l())]);var E=F(m);{var k=_=>{{let e=S(()=>a()==="mixed"?_e:a()==="submenu"?Ee:ye),u=S(()=>a()==="submenu"?"calc(var(--space-2) + var(--space-1) / 2)":"var(--menu-icon-size)"),h=S(()=>a()==="submenu"?"size-2.5 rtl:rotate-180":"size-(--menu-icon-size)");xe(_,{get icon(){return t(e)},get size(){return t(u)},get class(){return t(h)}})}};D(E,_=>{a()!=="empty"&&_(k)})}T(m),P(i,m)};D(x,i=>{a()==="on"||a()==="off"?i(A):i(o,-1)})}return P(g,w),B(b)}export{Ie as F,Se as M,Le as O,Ae as a,Be as c};
@@ -1 +1 @@
1
- import{b as s}from"./D2YGMA8q.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{b as s}from"./DAbdqRSx.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1 +1 @@
1
- import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./DKfX0H_n.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
1
+ import{D as O,a as V,d as z}from"./CQcEqK4G.js";import{K as G,T as F,_ as J,d as X,f as Q,X as Y,Q as Z,a0 as q,n as P,e as tt,c as et,m as U,h as N,l as E}from"./50l-lj9m.js";import{o as u,b as _,s as r,n as h,l as M,_ as x,c as B,u as nt}from"./CIyUrgF0.js";import{I as it}from"./Bqd7fdCF.js";const at="/app/immutable/assets/PatrickHand-Regular.CyLOmwMC.ttf";let D=null,R=null;const W=O.badgeFontFamily;function K(){return R??W}function L(){return D||(D=(async()=>{let t;try{const i=typeof document<"u"?document.fonts:globalThis.fonts;if(!i||typeof FontFace>"u")throw new Error("font-api-unavailable");const a=await Promise.race([new FontFace("Intent Annotation Hand",`url("${at}")`,{style:"normal",weight:"400",display:"block"}).load(),new Promise((l,o)=>{t=setTimeout(()=>o(new Error("font-load-timeout")),2e3)})]);i.add(a),R=O.fontFamily}catch{R=W}finally{clearTimeout(t)}})(),D)}let k=null;function ot(t){const i=G(t);if(t.kind!=="text"||t.style==="sticky"||(k||(k=typeof OffscreenCanvas<"u"?new OffscreenCanvas(1,1).getContext("2d"):typeof document<"u"?document.createElement("canvas").getContext("2d"):null),!k))return i;k.font=`${t.fontSize}px ${K()}`,k.textAlign="left",k.textBaseline="top",k.letterSpacing="0px",k.wordSpacing="0px";let a=1/0,l=1/0,o=-1/0,e=-1/0;const{lines:f,lineHeight:c}=F(t);for(const[s,p]of f.entries()){if(!p.trim())continue;const g=k.measureText(p),b=s*c,m=[-g.actualBoundingBoxLeft,b-g.actualBoundingBoxAscent,g.actualBoundingBoxRight,b+g.actualBoundingBoxDescent];if(!m.every(Number.isFinite))return i;a=Math.min(a,m[0]),l=Math.min(l,m[1]),o=Math.max(o,m[2]),e=Math.max(e,m[3])}if(!(o>a&&e>l))return i;const n=Math.max(1,t.fontSize/24);return{x:t.x+a-n,y:t.y+l-n,w:o-a+2*n,h:e-l+2*n}}const C=16e3;function rt(t,i){const l=t.length*2,o=new ArrayBuffer(44+l),e=new DataView(o),f=(n,s)=>{for(let p=0;p<s.length;p+=1)e.setUint8(n+p,s.charCodeAt(p))};f(0,"RIFF"),e.setUint32(4,36+l,!0),f(8,"WAVE"),f(12,"fmt "),e.setUint32(16,16,!0),e.setUint16(20,1,!0),e.setUint16(22,1,!0),e.setUint32(24,i,!0),e.setUint32(28,i*2,!0),e.setUint16(32,2,!0),e.setUint16(34,16,!0),f(36,"data"),e.setUint32(40,l,!0);let c=44;for(let n=0;n<t.length;n+=1){const s=Math.max(-1,Math.min(1,t[n]));e.setInt16(c,s<0?s*32768:s*32767,!0),c+=2}return o}function st(t){const i=new Float32Array(t.length);for(let a=0;a<t.numberOfChannels;a+=1){const l=t.getChannelData(a);for(let o=0;o<l.length;o+=1)i[o]+=l[o]/t.numberOfChannels}return i}async function gt(t){const i=new AudioContext;try{const a=await i.decodeAudioData(await t.arrayBuffer()),l=Math.max(1,Math.ceil(a.length*C/a.sampleRate)),o=new OfflineAudioContext(1,l,C),e=o.createBufferSource();e.buffer=a,e.connect(o.destination),e.start();const f=await o.startRendering();return rt(st(f),C)}finally{await i.close().catch(()=>{})}}function $(t){const i=new Uint8Array(t),a=32768;let l="";for(let o=0;o<i.length;o+=a)l+=String.fromCharCode(...i.subarray(o,o+a));return btoa(l)}const d={...O,get fontFamily(){return K()},blurRadius:X};function H(t,i,a=0,l){const o=t.crop??{x:0,y:0,w:i.width,h:i.height},e=Math.max(1,Math.max(i.width,i.height)/1440),f=Math.min(d.badgeRadius*e,o.w/2,o.h/2);return Y(t,i).filter(c=>i.kind==="screenshot"||a>=c.mark.atMs&&a<c.visibleUntilMs).flatMap(({n:c,mark:n})=>{const s=i.kind==="recording"?Z(n.geometry,q(i,n),a):n.geometry;if(!s)return[];const p=ot(s),g=z(p,o,e,f);return[...n.id===l&&s.kind==="text"?[]:[{kind:"geometry",geometry:s,unit:e}],...d.showNumbers?[{kind:"badge",...g,radius:f,label:String(c),unit:e}]:[]]})}function j(t,i){t.save(),t.letterSpacing="0px",t.wordSpacing="0px",t.strokeStyle=d.accent,t.fillStyle=d.accent,t.lineCap="round",t.lineJoin="round";for(const a of i){const l=a.unit??1,o=(c,n)=>{t.strokeStyle=d.halo,t.lineWidth=c+d.haloWidth*l,n?t.stroke(n):t.stroke(),t.strokeStyle=d.accent,t.lineWidth=c,n?t.stroke(n):t.stroke()};if(a.kind==="badge"){t.fillStyle=d.paper,t.beginPath(),t.arc(a.x,a.y,a.radius,0,Math.PI*2),t.fill(),t.strokeStyle=d.accent,t.lineWidth=d.badgeOutline*l,t.stroke(),t.fillStyle=d.ink,t.font=`600 ${a.radius*d.badgeTextScale}px ${d.badgeFontFamily}`,t.textAlign="center",t.textBaseline="middle",t.fillText(a.label,a.x,a.y);continue}const e=a.geometry;t.fillStyle=d.accent;const f=(e.kind==="path"?d.pen:d.stroke)*l;if(e.kind==="rect")t.beginPath(),t.rect(e.x,e.y,e.w,e.h),o(f);else if(e.kind==="text"){const c=F(e);t.fillStyle=d.accent,t.textAlign="left",t.textBaseline="top",t.font=`${e.fontSize}px ${d.fontFamily}`,c.lines.forEach((n,s)=>{const p=e.x+c.padding,g=e.y+c.padding+s*c.lineHeight;t.strokeStyle=d.halo,t.lineWidth=d.haloWidth*l;const b=e.style==="sticky"?c.width-2*c.padding:void 0;t.strokeText(n,p,g,b),t.fillText(n,p,g,b)})}else if(e.kind==="point")t.beginPath(),t.arc(e.x,e.y,Q,0,Math.PI*2),o(f);else if(e.kind==="path")o(f,new Path2D(V(e.points)));else{const c=[e.from,e.to];if(t.beginPath(),c.forEach((n,s)=>s?t.lineTo(n.x,n.y):t.moveTo(n.x,n.y)),e.kind==="arrow"){const n=Math.atan2(e.to.y-e.from.y,e.to.x-e.from.x),s=d.arrowHead*l;t.moveTo(e.to.x-s*Math.cos(n-d.arrowSpread),e.to.y-s*Math.sin(n-d.arrowSpread)),t.lineTo(e.to.x,e.to.y),t.lineTo(e.to.x-s*Math.cos(n+d.arrowSpread),e.to.y-s*Math.sin(n+d.arrowSpread))}o(f)}}t.restore()}function v(t,i){const a=new OffscreenCanvas(Math.max(1,Math.round(t)),Math.max(1,Math.round(i))),l=a.getContext("2d");if(!l)throw new Error("capture-render-unavailable");return{image:a,context:l}}async function pt(t,i,a){if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const{image:l,context:o}=v(t.width,t.height);return j(o,H(i,t,a)),$(await(await l.convertToBlob({type:"image/png"})).arrayBuffer())}async function yt(t,i,a,l){const o=J(i,t,null);if(t.kind!=="screenshot"||o.errors.length)throw new Error(o.errors[0]??"not-a-screenshot");if(t.visuals!=="clean")throw new Error("legacy-baked-marks");await L();const e=Uint8Array.from(atob(a.base64),c=>c.charCodeAt(0)),f=await createImageBitmap(new Blob([e],{type:a.mimeType}));try{if(f.width!==t.width||f.height!==t.height)throw new Error("stale-source-pixels");const c=v(t.width,t.height);if(c.context.drawImage(f,0,0),i.blurRegions.length||i.blurStrokes?.length){const g=v(t.width,t.height);g.context.fillStyle="#000000",g.context.fillRect(0,0,t.width,t.height);const b=`blur(${d.blurRadius}px)`;if(g.context.filter=b,g.context.filter!==b)throw new Error("capture-blur-unavailable");g.context.drawImage(f,0,0);const m=v(t.width,t.height);m.context.fillStyle="#ffffff",m.context.strokeStyle="#ffffff",m.context.lineCap="round",m.context.lineJoin="round";for(const y of i.blurRegions)m.context.fillRect(y.x,y.y,y.w,y.h);for(const y of i.blurStrokes??[]){const S=y.points.filter((I,A)=>A===0||I.x!==y.points[A-1].x||I.y!==y.points[A-1].y);if(m.context.beginPath(),S.length===1){const I=S[0];m.context.arc(I.x,I.y,y.radius,0,Math.PI*2),m.context.fill()}else{m.context.lineWidth=y.radius*2,m.context.moveTo(S[0].x,S[0].y);for(const I of S.slice(1))m.context.lineTo(I.x,I.y);m.context.stroke()}}const T=v(t.width,t.height);T.context.drawImage(g.image,0,0),T.context.globalCompositeOperation="destination-in",T.context.drawImage(m.image,0,0),c.context.drawImage(T.image,0,0)}const n=i.crop??{x:0,y:0,w:t.width,h:t.height},s=v(n.w,n.h);s.context.drawImage(c.image,n.x,n.y,n.w,n.h,0,0,s.image.width,s.image.height),s.context.scale(s.image.width/n.w,s.image.height/n.h),s.context.translate(-n.x,-n.y),j(s.context,H(i,t,0,l?.hiddenTextMarkId));const p=await s.image.convertToBlob({type:"image/png"});return{data:$(await p.arrayBuffer()),mimeType:"image/png",width:s.image.width,height:s.image.height}}finally{f.close()}}const kt=u({outputVersion:M(tt),jobId:r().uuid(),media:P,layers:_(u({atMs:h().finite().nonnegative(),endMs:h().finite().nonnegative(),png:r().min(1).max(48*1024*1024)}).strict()).max(1e4)}).strict(),wt=u({jobId:r().uuid(),media:P,locale:r().min(1).max(80).optional()}).strict(),lt=u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),durationMs:h().finite().positive().max(120001),intervalMs:M(50),peaks:_(h().finite().min(0).max(1)).max(2401)}).strict().refine(t=>t.peaks.length===Math.ceil(t.durationMs/t.intervalMs),"Incomplete waveform");u({jobId:r().uuid(),media:P}).strict();u({sourceId:r().min(1),sourceRevision:h().int().nonnegative(),trackCount:h().int().nonnegative().max(128),populatedTrackCount:h().int().nonnegative().max(128)}).strict().refine(t=>t.populatedTrackCount<=t.trackCount);const xt=it.DOCK_CAPTURE_EDITOR,w=r().min(1).max(200),ct=u({id:w,tool:x(et),atMs:h().finite().min(0).max(1440*60*1e3).nullable(),label:r().max(200).optional()}).strict();u({kind:x(["recording","screenshot"]),workspaceId:w,agentId:w,attachmentId:w,sourceRevision:r().min(1).max(512),attachmentPath:r().min(1).max(1024),title:r().max(200),durationMs:h().finite().min(0).max(1440*60*1e3).optional(),width:h().int().positive().max(32768).optional(),height:h().int().positive().max(32768).optional(),marks:_(ct).max(500),provenance:u({captureApi:r().max(100).optional(),hasMicAudio:B().optional(),visuals:x(["clean","baked-marks"])}).strict(),source:E.optional(),originalSource:E.optional(),saved:N.nullable().optional(),transcript:U.nullable().optional(),holdToken:r().uuid().optional()}).strict().refine(t=>!t.source||t.source.path===t.attachmentPath&&t.source.attachmentId===t.attachmentId&&t.source.kind===t.kind,"Source does not match the attachment").refine(t=>!t.saved||!!t.source&&t.saved.sourceId===t.source.id&&t.saved.sourceRevision===t.source.revision,"Edit does not match the source").refine(t=>!t.originalSource||t.source?.kind==="screenshot"&&t.originalSource.kind==="screenshot"&&t.originalSource.id!==t.source.id,"Original source does not precede this source");u({openId:r().uuid(),intent:M("attach").optional()}).strict();u({openId:r().uuid(),accept:B()}).strict();u({token:r().uuid(),hide:M(!0).optional()}).strict();u({openId:r().uuid(),requestId:r().uuid()}).strict();u({requestId:r().uuid(),result:x(["saved","stale-source","revision-conflict","failed"]),saved:N.optional()}).strict().refine(t=>t.result==="saved"==!!t.saved,"Saved edit missing");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),transcript:U}).strict();nt([u({requestId:r().uuid(),ok:M(!0),source:E}).strict(),u({requestId:r().uuid(),ok:M(!1),error:x(["cancelled","permission","failed"])}).strict()]);const dt=2e4;u({openId:r().uuid(),markId:r().min(1).max(512),generation:h().int().nonnegative(),phase:x(["start","stop"])}).strict();u({requestId:r().uuid(),generation:h().int().nonnegative(),text:r().max(dt),final:B(),error:x(["busy","unavailable","failed","permission"]).optional()}).strict().refine(t=>!t.error||t.final,"An error is final");u({pair:u({workspaceId:r().min(1).max(200),agentId:r().min(1).max(200)}).strict(),sourceId:r().min(1).max(512),sourceRevision:h().int().nonnegative(),waveform:lt}).strict();const bt=u({requestId:r().uuid(),openId:w,pair:u({workspaceId:w,agentId:w}).strict(),kind:x(["screenshot","recording"]),attachmentId:w,sourceId:w.optional(),sourceRevision:h().int().nonnegative().optional(),expectedEditRevision:h().int().nonnegative().optional()}).strict();u({requestId:r().uuid(),result:x(["deleted","stale-source","failed"])}).strict();const It=u({endedOpenId:r().uuid()}).strict();export{xt as D,d as a,dt as b,bt as c,It as d,kt as e,wt as f,$ as g,gt as h,ot as i,K as j,L as k,H as l,pt as m,j as p,yt as r};
@@ -1 +1 @@
1
- import{bm as n,t as L,bo as i,bw as x,b as B}from"./C8Ie7Deo.js";import{bs as Q,a5 as U,bS as D,bA as K,b_ as N,aD as f,W as k,bn as P,c9 as A,aA as u,aB as q}from"./3SdAC2_C.js";import{i as E}from"./D6XIvyP3.js";import{f as V,s as _,g as H}from"./D41qh-5f.js";import{d as R,A as j,a as J}from"./c8-6qMPD.js";import{aL as M}from"./DGLC3mk9.js";import{nI as T,i as m}from"./CKmtKxD0.js";import{e4 as G,O as X,N as Y}from"./CReqoCJu.js";function Z(e){switch(e){case"running":return n.layout_activeCard_running_header();case"responding":return n.agentOverview_hierarchyGraph_statusResponding_label();case"unread":return n.layout_activeCard_unread_header();case"completed":return n.agentOverview_hierarchyGraph_statusCompleted_label();case"failed":return n.agentOverview_hierarchyGraph_statusFailed_label();case"question":return n.chat_questionWizard_title();case"waiting":return n.agentOverview_hierarchyGraph_statusWaiting_label();case"needs-permission":return n.events_activity_agentAskedPermission_label();case"attention-discussion":return n.chat_agentCard_attentionDiscussion_label();case"attention-blocker":return n.chat_agentCard_attentionBlocker_label();case"idle":return n.agentOverview_hierarchyGraph_statusIdle_label()}}var $=q('<span class="agent-avatar-unread-dot svelte-v6mebl" data-avatar-unread-dot=""></span>'),ee=q('<span role="img" data-agent-avatar-with-state="" data-agent-avatar-surface=""><!> <!></span>');function te(e,a){if(new.target)return L({component:te,...e});Q(a,!0);let d=i(a,"agentId",7),l=i(a,"specialist",7,null),o=i(a,"icon",7,null),v=i(a,"provider",7,void 0),c=i(a,"variant",7,R),g=i(a,"size",7,void 0),r=i(a,"state",7,"idle"),h=i(a,"class",7,"");const w=A(()=>Z(r())),y=A(()=>g()??J[c()].surface),p=A(()=>g()===void 0);var O={get agentId(){return d()},set agentId(t){d(t),u()},get specialist(){return l()},set specialist(t=null){l(t),u()},get icon(){return o()},set icon(t=null){o(t),u()},get provider(){return v()},set provider(t=void 0){v(t),u()},get variant(){return c()},set variant(t=R){c(t),u()},get size(){return g()},set size(t=void 0){g(t),u()},get state(){return r()},set state(t="idle"){r(t),u()},get class(){return h()},set class(t=""){h(t),u()},$set:x,$on:(t,b)=>B(a,t,b)},s=ee();let C;var I=U(s);j(I,{get agentId(){return d()},get specialist(){return l()},get icon(){return o()},get provider(){return v()},get variant(){return c()},get size(){return g()}});var W=D(I,2);{var F=t=>{var b=$();k(t,b)};E(W,t=>{r()==="unread"&&t(F)})}return K(s),N(()=>{V(s,1,`agent-avatar-with-state agent-avatar-with-state--${r()??""} ${h()??""}`,"svelte-v6mebl"),_(s,"aria-label",f(w)),_(s,"title",f(w)),_(s,"data-avatar-state",r()),_(s,"data-avatar-variant",f(p)?c():void 0),C=H(s,"",C,{width:f(p)?void 0:`${f(y)}px`,height:f(p)?void 0:`${f(y)}px`})}),k(e,s),P(O)}function S(e){return X(e)}function ae(e){return Y(e)}function z(e,a={}){const{hasUnread:d=!1,isActive:l=!1,isCompleted:o=!1,isFailed:v=!1,hasQuestion:c=!1,hasPermissionRequest:g=!1,attentionKind:r=null}=a;return o&&!S(e)?"completed":v||e.status===m.Error||e.status==="failed"?"failed":c?"question":g?"needs-permission":r==="discussion"?"attention-discussion":r==="blocker"?"attention-blocker":ae(e)?"waiting":S(e)?"running":d&&!l?"unread":"idle"}function ce(e,a={}){if(!e)return z({},a);const d=T(e),l=e.status===m.Completed||String(e.status).toLowerCase()==="completed",o=e.status===m.Error||e.status===m.Deleted||String(e.status).toLowerCase()==="failed";return z(G(e),{...a,hasQuestion:M(e)||a.hasQuestion===!0,hasUnread:a.hasUnread??e.hasUnread,isCompleted:a.isCompleted??l,isFailed:a.isFailed??o,attentionKind:a.attentionKind??d?.kind??null})}function ge(e){return e?S(G(e)):!1}export{te as A,z as a,ce as b,Z as g,ge as i};
1
+ import{bm as n,t as L,bo as i,bw as x,b as B}from"./DxxarOOi.js";import{bs as Q,a5 as U,bS as D,bA as K,b_ as N,aD as f,W as k,bn as P,c9 as A,aA as u,aB as q}from"./3SdAC2_C.js";import{i as E}from"./DzAQQ1i-.js";import{f as V,s as _,g as H}from"./Ch-D6DCZ.js";import{d as R,A as j,a as J}from"./BcubO1aW.js";import{aL as M}from"./BmO6NekI.js";import{nI as T,i as m}from"./Zs30783q.js";import{e4 as G,O as X,N as Y}from"./BfdTnj-p.js";function Z(e){switch(e){case"running":return n.layout_activeCard_running_header();case"responding":return n.agentOverview_hierarchyGraph_statusResponding_label();case"unread":return n.layout_activeCard_unread_header();case"completed":return n.agentOverview_hierarchyGraph_statusCompleted_label();case"failed":return n.agentOverview_hierarchyGraph_statusFailed_label();case"question":return n.chat_questionWizard_title();case"waiting":return n.agentOverview_hierarchyGraph_statusWaiting_label();case"needs-permission":return n.events_activity_agentAskedPermission_label();case"attention-discussion":return n.chat_agentCard_attentionDiscussion_label();case"attention-blocker":return n.chat_agentCard_attentionBlocker_label();case"idle":return n.agentOverview_hierarchyGraph_statusIdle_label()}}var $=q('<span class="agent-avatar-unread-dot svelte-v6mebl" data-avatar-unread-dot=""></span>'),ee=q('<span role="img" data-agent-avatar-with-state="" data-agent-avatar-surface=""><!> <!></span>');function te(e,a){if(new.target)return L({component:te,...e});Q(a,!0);let d=i(a,"agentId",7),l=i(a,"specialist",7,null),o=i(a,"icon",7,null),v=i(a,"provider",7,void 0),c=i(a,"variant",7,R),g=i(a,"size",7,void 0),r=i(a,"state",7,"idle"),h=i(a,"class",7,"");const w=A(()=>Z(r())),y=A(()=>g()??J[c()].surface),p=A(()=>g()===void 0);var O={get agentId(){return d()},set agentId(t){d(t),u()},get specialist(){return l()},set specialist(t=null){l(t),u()},get icon(){return o()},set icon(t=null){o(t),u()},get provider(){return v()},set provider(t=void 0){v(t),u()},get variant(){return c()},set variant(t=R){c(t),u()},get size(){return g()},set size(t=void 0){g(t),u()},get state(){return r()},set state(t="idle"){r(t),u()},get class(){return h()},set class(t=""){h(t),u()},$set:x,$on:(t,b)=>B(a,t,b)},s=ee();let C;var I=U(s);j(I,{get agentId(){return d()},get specialist(){return l()},get icon(){return o()},get provider(){return v()},get variant(){return c()},get size(){return g()}});var W=D(I,2);{var F=t=>{var b=$();k(t,b)};E(W,t=>{r()==="unread"&&t(F)})}return K(s),N(()=>{V(s,1,`agent-avatar-with-state agent-avatar-with-state--${r()??""} ${h()??""}`,"svelte-v6mebl"),_(s,"aria-label",f(w)),_(s,"title",f(w)),_(s,"data-avatar-state",r()),_(s,"data-avatar-variant",f(p)?c():void 0),C=H(s,"",C,{width:f(p)?void 0:`${f(y)}px`,height:f(p)?void 0:`${f(y)}px`})}),k(e,s),P(O)}function S(e){return X(e)}function ae(e){return Y(e)}function z(e,a={}){const{hasUnread:d=!1,isActive:l=!1,isCompleted:o=!1,isFailed:v=!1,hasQuestion:c=!1,hasPermissionRequest:g=!1,attentionKind:r=null}=a;return o&&!S(e)?"completed":v||e.status===m.Error||e.status==="failed"?"failed":c?"question":g?"needs-permission":r==="discussion"?"attention-discussion":r==="blocker"?"attention-blocker":ae(e)?"waiting":S(e)?"running":d&&!l?"unread":"idle"}function ce(e,a={}){if(!e)return z({},a);const d=T(e),l=e.status===m.Completed||String(e.status).toLowerCase()==="completed",o=e.status===m.Error||e.status===m.Deleted||String(e.status).toLowerCase()==="failed";return z(G(e),{...a,hasQuestion:M(e)||a.hasQuestion===!0,hasUnread:a.hasUnread??e.hasUnread,isCompleted:a.isCompleted??l,isFailed:a.isFailed??o,attentionKind:a.attentionKind??d?.kind??null})}function ge(e){return e?S(G(e)):!1}export{te as A,z as a,ce as b,Z as g,ge as i};
@@ -1,2 +1,2 @@
1
- import{Z as Q,n as j,az as J,aw as z,aH as X,w as $,b as Y}from"./CReqoCJu.js";import{Jq as l,nV as m,nW as C,Jz as q,br as O,a3 as Z,nI as _,rN as P,s9 as ee,kp as te,s7 as W,JU as M,rs as ne,fU as K,rO as F,a5 as se,bp as oe,m as ie}from"./CKmtKxD0.js";import{m as x,a0 as re,l as ae}from"./DGLC3mk9.js";import{g as U}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const L=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-L}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-L}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},U(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>C(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Ue=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Le=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Z.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||A(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),he={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!A(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!A(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":z.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Y(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
1
+ import{Z as Q,n as j,az as J,aw as z,aH as X,w as $,b as Y}from"./BfdTnj-p.js";import{Jq as l,nV as m,nW as C,Jz as q,br as O,a3 as Z,nI as _,rN as P,s9 as ee,kp as te,s7 as W,JU as M,rs as ne,fU as K,rO as F,a5 as se,bp as oe,m as ie}from"./Zs30783q.js";import{m as x,a0 as re,l as ae}from"./BmO6NekI.js";import{g as U}from"./DypB-Dwi.js";const ce=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function de(e){const t=e.metadata;if(t&&typeof t=="object"){if(t.type==="question_answers")return!1;if(!Q(t))return!0}const n=j(e);return ce.some(s=>n.startsWith(s))}const L=1440*60*1e3;function le(e){let t=null;for(const n of e){if(de({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(t===null||s>t)&&(t=s)}return t}const ue=50,ge=20;function D(e,t){return e===null||t!==null&&t>e?t:e}async function De(e,t){let n,s=null;for(let i=0;i<ge;i++){const r=await e({limit:ue,nextToken:n});if(!r.ok)return null;const d=r.items;s===null&&d.length>0&&(s=d[d.length-1].id);const c=t?.newestId!=null?d.findIndex(a=>a.id===t.newestId):-1,o=le(c>=0?d.slice(c+1):d);if(c>=0)return{latest:D(o,t?.latest??null),newestId:s};if(o!==null)return{latest:D(o,t?.latest??null),newestId:s};if(typeof r.nextToken!="string")return{latest:null,newestId:s};n=r.nextToken}return{latest:t?.latest??null,newestId:s}}function E(e,t){return e!=null&&e<=t&&e>t-L}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-L}function pe(e,t){const{workspaceId:n,agentId:s,authority:i,nativePairId:r,evidence:d}=e;if(!n||!s||!i||i!==t)return null;const c=JSON.stringify([n,s]);if(r!==c||d?.id!==c)return null;const o=d.clips.find(a=>a.status==="recording");return!o||o.discarding||!Number.isFinite(o.startedAt)||!Number.isFinite(o.pausedMs??0)||o.pausedAt!=null&&!Number.isFinite(o.pausedAt)?null:{workspaceId:n,agentId:s,clipId:o.id,startedAt:o.startedAt,pausedAt:o.pausedAt??null,pausedMs:o.pausedMs??0}}function Ee(e,t){return t!==void 0&&e!==t?"ignore":e?"stop":"start"}const Ne=l.createSelector(e=>{const t=e.dockConversation,n=t.workspaceId&&t.agentId?JSON.stringify([t.workspaceId,t.agentId]):null;return pe({workspaceId:t.workspaceId,agentId:t.agentId,authority:t.authority,nativePairId:t.nativeSpeech.pairId,evidence:n?m(t.evidence,n):null},U(e))});l.createSelector(e=>e.hud.active);l.createSelector(e=>e.hud.feed);l.createSelector(e=>e.hud.usage);l.createSelector(e=>e.hud.usageError);const He=l.createSelector(e=>e.hud.rateHistory),qe=l.createSelector(e=>C(e.workspace.workspaces)),Pe=l.createSelector(e=>{const t=e.hud.usage?.totals;return t?q(t):0}),Ke=l.createSelector(e=>e.hud.burnRatePerMin),Fe=l.createSelector(e=>e.hud.burnTrend),xe=l.createSelector(e=>{const{health:t,stats:n,lastUpdated:s,hostLocality:i}=e.daemonHealth,r=n?.hostname;return{online:t!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&r?r.split(".",1)[0]??r:null}}),Ue=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Le=l.createSelector((e,t)=>{const n=e.hud?.questionsByAgentId?.[t];if(!n)return!1;const s=e.agentSessions?.byAgentId[t]?.metadata??{};return!x(s,n.messageId)}),Ge=l.createSelector(e=>e.hud.takeoverRequestWorkspaceId);function ke(e,t){return t[String(e.id)]??e.displayStatus}const S=l.createSelector(e=>{const t=e.hud.displayStatusByWorkspaceId;return C(e.workspace.workspaces).filter(n=>n.status!==O.Archived&&n.status!==O.Retired&&n.status!==O.Deleted).map(n=>{const s=ke(n,t);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function w(e){const t=e.agentSummary;return!t||!Array.isArray(t.agents)?[]:t.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!ae(n.id))}const Ve=l.createSelector(e=>{const t=Object.fromEntries(Z.map(n=>[n,0]));for(const n of S.select(e))for(const s of w(n))t[I(e,s).bucket]+=1;return t}),Qe=l.createSelector(e=>{const t={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of B.select(e))switch(t.total+=1,n.isUnread&&(t.unread+=1),n.isWaiting&&(t.waiting+=1),n.stateKey){case"wait":case"blocked":t.attention+=1;break;case"failed":t.failed+=1;break;case"in_progress":t.progress+=1;break;case"complete":t.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":t.prOpen+=1;break;case"pr_merged":t.prMerged+=1;break;default:t.idle+=1}return t}),Se=l.createSelector(e=>{const t={};for(const n of S.select(e))for(const s of w(n))typeof s.name=="string"&&s.name.length>0&&(t[s.id]=s.name);return t});function N(e){if(!e.sinceTs)return 0;const t=Date.parse(e.sinceTs);return Number.isFinite(t)?t:0}const je=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=e.hud.questionsByAgentId,s=[];for(const i of S.select(e)){const r=String(i.id);let d=!1;for(const o of v(i,e)){const{bucket:a,attentionKind:u,hasQuestion:g}=o;if(a!=="needs-attention"&&a!=="failed"||!o.topLevel||o.isBackground||A(e,o.id))continue;const k=g?n[o.id]:void 0,f=u?_(e.agentSessions?.byAgentId[o.id])?.reason:void 0,p=k?"question":u??void 0;s.push({workspaceId:r,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:o.name,message:k?.question??f??null,sinceTs:o.lastActivityTs}),d=!0}const c=t[r];c&&P(c.attention)&&(s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",attention:c.attention,message:null,sinceTs:c.raisedAtTs}),d=!0),G.has(b(i))&&!d&&s.push({workspaceId:r,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,r)=>N(r)-N(i))}),Je=l.createSelector(e=>{const t=Se.select(e);return e.hud.feed.map(n=>({...n,workspaceTitle:m(e.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?t[n.agentId]??null:null)}))}),he={total:0,completed:0,inProgress:0};function b(e){const t=ee(e.displayStatus)?e.displayStatus:"not_started";return te(t)??"not_started"}const G=new Set(["wait","blocked","failed"]);function Ae(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!A(e,d.id)),r=i?e.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof r=="string"&&r.length>0?r:""}}if(t!=="wait"&&t!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!A(e,i.id));for(const i of s){if(!i.hasQuestion)continue;const r=e.hud.questionsByAgentId[i.id];if(r?.question)return{kind:"question",text:r.question}}for(const i of["blocker","discussion"])for(const r of s){if(r.attentionKind!==i)continue;const d=e.agentSessions?.byAgentId[r.id],c=_(d)?.reason;if(c)return{kind:i,text:c}}return{kind:"pending",text:""}}const y=new Set(["running","needs-attention","failed"]);function H(e){const t=typeof e.lastActivity=="string"?Date.parse(e.lastActivity):NaN;return Number.isFinite(t)?t:-1/0}function me(e){const t=n=>{const s=e.get(n.id)?.bucket;return s!==void 0&&y.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",r=s.specialist==="spec-writer";if(i!==r)return i?-1:1;const d=t(n)-t(s);if(d!==0)return d;const c=H(n),o=H(s);return c!==o?o-c:n.id<s.id?-1:n.id>s.id?1:0}}function ye(e,t){const n=new Set(e.map(o=>o.id)),s=new Map,i=[];for(const o of e){const a=typeof o.parentAgentId=="string"&&o.parentAgentId!==o.id&&n.has(o.parentAgentId)?o.parentAgentId:null;if(a){const u=s.get(a)??[];u.push(o),s.set(a,u)}else i.push(o)}i.sort(t);for(const o of s.values())o.sort(t);const r=[],d=new Set,c=(o,a,u)=>{if(!d.has(o.id)){d.add(o.id),r.push({info:o,depth:a,parentAgentId:u});for(const g of s.get(o.id)??[])c(g,a+1,o.id)}};for(const o of i)c(o,0,null);for(const o of e)c(o,0,null);return r}function I(e,t){const n=e.agentSessions?.byAgentId[t.id],s=n?.metadata??{},i=n?_(n)?.kind??null:null,r=n?J.select(e,t.id)||typeof n.status=="string"&&W(n.status):W(t.status),d=n?M(typeof n.status=="string"?n.status:t.status):null,c=!!n&&d!=="failed"&&d!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),o=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?c&&!o&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":z.select(e,t.id)?a="running":r?a="idle":a=M(typeof n.status=="string"?n.status:t.status):a=t.isResponding===!0||t.isStreaming===!0?"running":M(t.status);const u=e.hud.questionsByAgentId[t.id],g=a!=="failed"&&!!u&&!x(s,u.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function V(e,t){const n=i=>typeof i=="string"&&i!==e.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(e.parentAgentId)??n(t?.parentAgentId),isBackground:e.isBackground??t?.isBackground,metadata:s(t?.metadata),agentMetadata:s(t?.agentMetadata)}}function A(e,t){return e.agentSessions?.byAgentId[t]?.notificationsMuted===!0}function Ie(e){if(!e)return null;switch(e.kind){case"attention":return e.attention.reason??null;case"live-tool":case"last-tool":{const t=Y(e.toolUse.name,e.toolUse.input||{});return t.hidden?null:[t.verb,t.subject,t.path].filter(Boolean).join(" ").trim()||null}default:{const t=e.text||"";return t?t.includes(`
2
2
  `)?$(t)||null:t:null}}}function v(e,t){const n=w(e),s=new Map(n.map(r=>[r.id,I(t,r)]));return ye(n,me(s)).map(({info:r,depth:d,parentAgentId:c})=>{const o=t.agentSessions?.byAgentId[r.id],a=V(r,o),{bucket:u,attentionKind:g,hasQuestion:k}=s.get(r.id)??I(t,r),f=Array.isArray(o?.waitingForAgentIds)?o.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:r.id,name:r.name,bucket:u,lastActivityTs:r.lastActivity??null,line:Ie(X.select(t,r.id)),parentAgentId:c,depth:d,treePrefix:"",topLevel:K(a)==="topLevel",isBackground:ne(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:o?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(o?.waitingOnHooks)&&o.waitingOnHooks.length>0||Array.isArray(o?.waitingOnPrMonitors)&&o.waitingOnPrMonitors.length>0||Array.isArray(o?.waitingOnScriptMonitors)&&o.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function we(e){const t=new Set;for(const i of e)for(const r of i.waitingForAgentIds)t.add(r);const n=i=>y.has(i.bucket)||i.isWaitingForAgents||t.has(i.id);return e.filter((i,r)=>{if(n(i))return!0;for(let d=r+1;d<e.length&&!(e[d].depth<=i.depth);d++)if(n(e[d]))return!0;return!1}).map((i,r,d)=>{if(i.depth===0)return{...i,treePrefix:""};let c=!0;for(let o=r+1;o<d.length&&!(d[o].depth<i.depth);o++)if(d[o].depth===i.depth){c=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(c?"└─":"├─")}})}const B=l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId,n=re.select(e);return S.select(e).map(s=>{const i=String(s.id),r=n.indexOf(i),d=t[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null),c=v(s,e),o=b(s),a=e.tokenUsage?.byWorkspaceId[i]?.totals,u=e.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:o,attention:d,isUnread:d===se,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:Ae(e,o,c),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:r===-1?null:r,tasks:u?{total:u.total,completed:u.completed,inProgress:u.inProgress}:he,tokens:a?q(a):0,agents:we(c)}})}),R=4;function be(e,t,n){const s=e.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==t||s.pendingDeleteAt||K(V(n,s))!=="topLevel"?!1:!A(e,n.id)}const ve=l.createSelector(e=>{const t={},n=e.hud.attentionByWorkspaceId;for(const s of S.select(e)){const i=String(s.id),r=new Map,d=(f,p)=>{const h=r.get(f)??[];h.includes(p)||h.push(p),r.set(f,h)},o=w(s).filter(f=>be(e,i,f));for(const f of o){const p=I(e,f);p.bucket==="failed"?d("failed",f.name):p.hasQuestion?d("question",f.name):p.attentionKind==="blocker"?d("blocker",f.name):p.attentionKind==="discussion"&&d("discussion",f.name),p.isRunning&&d("running",f.name)}const a=b(s);a==="failed"&&!r.has("failed")&&r.set("failed",[]),a==="blocked"&&!r.has("blocker")&&r.set("blocker",[]),a==="wait"&&!r.has("question")&&!r.has("blocker")&&!r.has("discussion")&&r.set("needs_input",[]);const u=n[i]?.attention??(typeof s.attention=="string"&&F(s.attention)?s.attention:null);u==="review_required"&&r.set("review",[]),u==="unread"&&r.set("unread",[]),s.activity==="agent_running"&&!r.has("running")&&r.set("running",[]);const g=oe.flatMap(f=>{const p=r.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>R;t[i]={agentCount:o.length,categories:g,visibleCategories:k?g.slice(0,R-1):g,hiddenCategoryCount:k?g.length-(R-1):0}}return t});l.createSelector(e=>{const t=e.hud.attentionByWorkspaceId;let n=0;for(const s of S.select(e)){let i=!1;for(const c of v(s,e))c.topLevel&&!c.isBackground&&!A(e,c.id)&&(c.bucket==="failed"||c.attentionKind!==null||c.hasQuestion)&&(n+=1,i=!0);const r=t[String(s.id)],d=r!==void 0&&P(r.attention);d&&(n+=1),G.has(b(s))&&!i&&!d&&(n+=1)}return n});function Te(e,t,n,s){const i=s.slice().sort((o,a)=>a.createdAt-o.createdAt);for(const o of i){const u=e.agentSessions?.byAgentId[o.agentId]?.metadata?.completionReport;if(typeof u=="string"&&u.trim().length>0)return u}const r=e.workspaceNotes?.byWorkspaceId[t]?.notes,d=r?m(r,n):void 0,c=d?.content||d?.contentPreview;return typeof c=="string"&&c.trim().length>0?c:null}const ze=l.createSelector((e,t)=>{const n=B.select(e).find(a=>a.workspaceId===t);if(!n)return null;const s=m(e.workspace.workspaces,t),i=s?v(s,e):[],r=new Map(i.map(a=>[a.id,a])),d=e.taskAgentAssociations?.byWorkspaceId[t]?.byNoteId??{},c=e.workspaceTasks?.byWorkspaceId[t],o=c?C(c.tasks).filter(a=>a.status!=="cancelled").map(a=>{const u=Object.values(d[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:u.map(g=>r.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?Te(e,t,a.id,u):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:t,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:o,activeAgents:i.filter(a=>y.has(a.bucket)),idleAgents:i.filter(a=>!y.has(a.bucket))}}),Oe=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Me(e){for(const t of e?.categories??[])switch(t.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const Re=3,Xe=l.createSelector((e,t="recent")=>{const n=B.select(e),s=ve.select(e),i=new Map(S.select(e).map(c=>[String(c.id),c])),r={action:[],unread:[],active:[]};for(const c of n){const o=i.get(c.workspaceId);if(!o||o.id===ie)continue;const a=e.hud.dockConversationAtByWorkspaceId[c.workspaceId];if(!E(a,e.hud.dockRecencyNow)&&!fe(a,e.hud.dockRecencyNow))continue;const u=s[c.workspaceId],g=u?.categories??[],k=g.some(T=>Oe.has(T.category)),f=c.isUnread,p=g.some(T=>T.category==="running"),h=k?"action":f?"unread":"active";r[h].push({workspace:o,badgeKind:Me(u),priorityGroup:h,isUnread:f,isRunning:p,isWaiting:c.isWaiting})}return[...r.action,...r.unread,...r.active].sort((c,o)=>e.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]-e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]||String(c.workspace.id).localeCompare(String(o.workspace.id))).filter((c,o)=>{const a=o<Re||E(e.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)],e.hud.dockRecencyNow);return t==="older"?!a:a})}),$e=l.createSelector(e=>e.hud.dockPlacement),Ye=l.createSelector(e=>e.hud.dockPlacementError),Ze=l.createSelector(e=>e.hud.dockFocusRequest),et=l.createSelector(e=>e.hud.dockCloseRequest),tt=l.createSelector(e=>e.hud.dockDragStartResult),nt=l.createSelector(e=>e.hud.dockResizeStartResult),st=l.createSelector(e=>({pending:e.hud.dockMachineSwitching,error:e.hud.dockMachineSwitchError})),ot=l.createSelector(e=>{const t=e.hud.dockEditorCompactRequest,n=e.dockConversation,s=n.workspaceId&&n.agentId?m(n.evidence,JSON.stringify([n.workspaceId,n.agentId])):null,i=!!n.nativeSpeech.activeId||!!s?.annotation||s?.clips.some(r=>r.status==="recording")||e.hardwareConsole.pttRecording||e.hardwareConsole.voiceTranscribing;return t&&!i&&e.hud.active&&t.conversationGeneration===n.generation&&t.authority===U(e)&&t.backendId===e.connections.windowBackendId&&t.workspaceId===e.dockConversation.workspaceId&&t.agentId===e.dockConversation.agentId?t:null});export{qe as A,Qe as B,ve as C,et as a,tt as b,ot as c,Ze as d,st as e,$e as f,Ye as g,Ne as h,de as i,nt as j,Xe as k,Le as l,Ve as m,je as n,Ke as o,Fe as p,Je as q,Ee as r,De as s,Ue as t,He as u,xe as v,Ge as w,ze as x,Pe as y,B as z};
@@ -1 +1 @@
1
- import{m as r}from"./2EufkTRJ.js";function u(e){const o=Math.max(0,Math.floor(e/1e3)),t=a=>r(a,{minimumIntegerDigits:2,useGrouping:!1}),s=t(o%60);return o<3600?`${r(Math.floor(o/60),{useGrouping:!1})}:${s}`:`${r(Math.floor(o/3600),{useGrouping:!1})}:${t(Math.floor(o/60)%60)}:${s}`}export{u as f};
1
+ import{m as r}from"./BqJSWZOr.js";function u(e){const o=Math.max(0,Math.floor(e/1e3)),t=a=>r(a,{minimumIntegerDigits:2,useGrouping:!1}),s=t(o%60);return o<3600?`${r(Math.floor(o/60),{useGrouping:!1})}:${s}`:`${r(Math.floor(o/3600),{useGrouping:!1})}:${t(Math.floor(o/60)%60)}:${s}`}export{u as f};
@@ -1 +1 @@
1
- import{l as e}from"./B0Vj4qoa.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
1
+ import{l as e}from"./CGDwhMyu.js";const n={comments:{blockComment:["<!--","-->"]},brackets:[["<",">"]],autoClosingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],surroundingPairs:[{open:"<",close:">"},{open:"'",close:"'"},{open:'"',close:'"'}],onEnterRules:[{beforeText:new RegExp("<([_:\\w][_:\\w-.\\d]*)([^/>]*(?!/)>)[^<]*$","i"),afterText:/^<\/([_:\w][_:\w-.\d]*)\s*>$/i,action:{indentAction:e.IndentAction.IndentOutdent}},{beforeText:new RegExp("<(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$","i"),action:{indentAction:e.IndentAction.Indent}}]},o={defaultToken:"",tokenPostfix:".xml",ignoreCase:!0,qualifiedName:/(?:[\w\.\-]+:)?[\w\.\-]+/,tokenizer:{root:[[/[^<&]+/,""],{include:"@whitespace"},[/(<)(@qualifiedName)/,[{token:"delimiter"},{token:"tag",next:"@tag"}]],[/(<\/)(@qualifiedName)(\s*)(>)/,[{token:"delimiter"},{token:"tag"},"",{token:"delimiter"}]],[/(<\?)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/(<\!)(@qualifiedName)/,[{token:"delimiter"},{token:"metatag",next:"@tag"}]],[/<\!\[CDATA\[/,{token:"delimiter.cdata",next:"@cdata"}],[/&\w+;/,"string.escape"]],cdata:[[/[^\]]+/,""],[/\]\]>/,{token:"delimiter.cdata",next:"@pop"}],[/\]/,""]],tag:[[/[ \t\r\n]+/,""],[/(@qualifiedName)(\s*=\s*)("[^"]*"|'[^']*')/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">?\/]*|'[^'>?\/]*)(?=[\?\/]\>)/,["attribute.name","","attribute.value"]],[/(@qualifiedName)(\s*=\s*)("[^">]*|'[^'>]*)/,["attribute.name","","attribute.value"]],[/@qualifiedName/,"attribute.name"],[/\?>/,{token:"delimiter",next:"@pop"}],[/(\/)(>)/,[{token:"tag"},{token:"delimiter",next:"@pop"}]],[/>/,{token:"delimiter",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/<!--/,{token:"comment",next:"@comment"}]],comment:[[/[^<\-]+/,"comment.content"],[/-->/,{token:"comment",next:"@pop"}],[/<!--/,"comment.content.invalid"],[/[<\-]/,"comment.content"]]}};export{n as conf,o as language};
@@ -1,4 +1,4 @@
1
- var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./mvlVGSeb.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
1
+ var d=Object.defineProperty;var f=(e,s,t)=>s in e?d(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t;var n=(e,s,t)=>f(e,typeof s!="symbol"?s+"":s,t);import{aV as p,o as g,aT as c,l as u}from"./D8-vtN74.js";import{h as b}from"./DEB8jcix.js";function m(e,s,t,r=!1){const o=[0];if(t.decorations?.some(i=>typeof i.start=="number"||typeof i.end=="number")===!0)for(let i=e.indexOf(`
2
2
  `);i!==-1;i=e.indexOf(`
3
3
  `,i+1))o.push(i+1);const a={type:"element",tagName:"code",properties:{},children:[]},h=p(s.tokens,{decorations:t.decorations,mergeWhitespaces:t.mergeWhitespaces,lineOffsets:o,cacheHtmlStyles:r});for(let i=0;i<h.length;i++)i>0&&a.children.push({type:"text",value:`
4
4
  `}),a.children.push(h[i]);const l={type:"root",children:[{type:"element",tagName:"pre",properties:{class:"diffs",style:s.rootStyle===!1?void 0:s.rootStyle??[s.fg!=null?`color:${s.fg}`:"",s.bg!=null?`background-color:${s.bg}`:""].filter(Boolean).join(";"),tabIndex:0},children:[a]}]};return b(l)}var O=class{constructor(e,s){n(this,"name");n(this,"themeResolver");n(this,"disposed",!1);this.name=e,this.themeResolver=s,g(e)}codeToHtml(e,s){return m(e,this.codeToTokens(e,s),s,this.name==="highlights")}get isDisposed(){return this.disposed}dispose(){this.disposed||(this.disposed=!0,this.releaseResources(),c())}assertNotDisposed(){if(this.disposed)throw new u}},v=class{constructor(){n(this,"disposed",!1);n(this,"stableOffset",0);n(this,"unstable",[]);n(this,"pendingCarriageReturn","")}enqueue(e){this.assertActive(),e=this.pendingCarriageReturn+e,this.pendingCarriageReturn=e.endsWith("\r")?"\r":"",this.pendingCarriageReturn!==""&&(e=e.slice(0,-1));const s=this.unstable.length,t=[],{unstable:r,tailLength:o}=this.tokenizeChunk(e,t);return this.pendingCarriageReturn!==""&&r.push({content:"\r",offset:this.stableOffset+o}),this.unstable=r,{recall:s,stable:t,unstable:r}}pushLineBreak(e,s,t){for(let r=0;r<t.length;r++)e.push({content:t[r],offset:this.stableOffset+s+r});this.stableOffset+=s+t.length}close(){const e=this.unstable;return this.dispose(),{stable:e}}clear(){this.assertActive(),this.stableOffset=0,this.unstable=[],this.pendingCarriageReturn="",this.resetSource()}dispose(){this.disposed||(this.disposed=!0,this.unstable=[],this.releaseSource())}copyStateTo(e){e.stableOffset=this.stableOffset,e.unstable=this.unstable.slice(),e.pendingCarriageReturn=this.pendingCarriageReturn}assertActive(){if(this.disposed)throw new Error("stream tokenizer is disposed")}};export{v as B,O as D};
@@ -1 +1 @@
1
- import{b as i}from"./D2YGMA8q.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
1
+ import{b as i}from"./DAbdqRSx.js";function t(c,e){c.accDescr&&e.setAccDescription?.(c.accDescr),c.accTitle&&e.setAccTitle?.(c.accTitle),c.title&&e.setDiagramTitle?.(c.title)}i(t,"populateCommonDb");export{t as p};
@@ -1 +1 @@
1
- import{at as L,ca as T}from"./3SdAC2_C.js";import{a as C,s as E}from"./BsieX9dN.js";import{o as F,p as H}from"./DJbFr8xM.js";import"./D41qh-5f.js";import{S as N}from"./hGZqfbJu.js";function b(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function W(e){const l=e.querySelectorAll("[data-animated-height-target]"),t=l.item(l.length-1)||e.firstElementChild;if(!t)return e.scrollHeight;const n=getComputedStyle(t),c=Number.parseFloat(n.height);return Number.isFinite(c)?n.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((r,u)=>r+(Number.parseFloat(n[u])||0),0):t.offsetHeight}const P=(e,l=!0)=>{let{open:t,onClosed:n}=b(l);const{tier:c}=b(l),r=new N(0,c);let u=!t,v,i=!1,a,h,s;const O=e.style.overflow,S=e.style.height,m=()=>{e.style.overflow="clip",v=r.current,e.style.height=`${v}px`},M=L(()=>{T(()=>{const o=r.current;!u||i||o===v||(s?.(),s=C(()=>{s=void 0,i||m()}))})}),d=()=>{if(i)return;a?.(),h?.();const o=f=>{h=C(()=>{if(h=void 0,i)return;const z=r.set(f,{instant:!u||H()});u=!0,t||z.then(()=>{!i&&!t&&r.current===0&&n?.()}),s?.(),s=void 0,m()})};t?a=E(()=>{a=void 0,o(W(e))}):o(0)},R=()=>{H()&&d()},p=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{t&&d()});let g=null;const y=()=>{const o=e.querySelectorAll("[data-animated-height-target]"),f=o.item(o.length-1)||e.firstElementChild||e;f!==g&&(g&&p?.unobserve(g),g=f,p?.observe(f))};y();const w=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{i||(y(),t&&d())});w?.observe(e,{childList:!0,subtree:!0});const x=F(R);return d(),{update(o=!0){({open:t,onClosed:n}=b(o)),d()},destroy(){i=!0,a?.(),h?.(),s?.(),r.set(r.current,{instant:!0}),p?.disconnect(),w?.disconnect(),x(),M(),e.style.height=S,e.style.overflow=O}}};export{P as a};
1
+ import{at as L,ca as T}from"./3SdAC2_C.js";import{a as C,s as E}from"./BsieX9dN.js";import{o as F,p as H}from"./BUT4El0L.js";import"./Ch-D6DCZ.js";import{S as N}from"./DSjVYlVX.js";function b(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function W(e){const l=e.querySelectorAll("[data-animated-height-target]"),t=l.item(l.length-1)||e.firstElementChild;if(!t)return e.scrollHeight;const n=getComputedStyle(t),c=Number.parseFloat(n.height);return Number.isFinite(c)?n.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((r,u)=>r+(Number.parseFloat(n[u])||0),0):t.offsetHeight}const P=(e,l=!0)=>{let{open:t,onClosed:n}=b(l);const{tier:c}=b(l),r=new N(0,c);let u=!t,v,i=!1,a,h,s;const O=e.style.overflow,S=e.style.height,m=()=>{e.style.overflow="clip",v=r.current,e.style.height=`${v}px`},M=L(()=>{T(()=>{const o=r.current;!u||i||o===v||(s?.(),s=C(()=>{s=void 0,i||m()}))})}),d=()=>{if(i)return;a?.(),h?.();const o=f=>{h=C(()=>{if(h=void 0,i)return;const z=r.set(f,{instant:!u||H()});u=!0,t||z.then(()=>{!i&&!t&&r.current===0&&n?.()}),s?.(),s=void 0,m()})};t?a=E(()=>{a=void 0,o(W(e))}):o(0)},R=()=>{H()&&d()},p=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{t&&d()});let g=null;const y=()=>{const o=e.querySelectorAll("[data-animated-height-target]"),f=o.item(o.length-1)||e.firstElementChild||e;f!==g&&(g&&p?.unobserve(g),g=f,p?.observe(f))};y();const w=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{i||(y(),t&&d())});w?.observe(e,{childList:!0,subtree:!0});const x=F(R);return d(),{update(o=!0){({open:t,onClosed:n}=b(o)),d()},destroy(){i=!0,a?.(),h?.(),s?.(),r.set(r.current,{instant:!0}),p?.disconnect(),w?.disconnect(),x(),M(),e.style.height=S,e.style.overflow=O}}};export{P as a};