@intent-hq/web 2.370.0 → 2.370.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 (250) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{CyWgrZMk.js → 1BRHaRmm.js} +5 -5
  3. package/web/app/immutable/chunks/{CbRNm5he.js → 2CvTs4Gl.js} +1 -1
  4. package/web/app/immutable/chunks/{CCrwZkau.js → 2IbSEmAW.js} +1 -1
  5. package/web/app/immutable/chunks/{BwtGEQS3.js → 2kcdsiKR.js} +1 -1
  6. package/web/app/immutable/chunks/{DrOwYgbZ.js → 3bNhkT-J.js} +1 -1
  7. package/web/app/immutable/chunks/{BEV9WkWU.js → 5kePy1TE.js} +1 -1
  8. package/web/app/immutable/chunks/{1pIqWRUk.js → 711s5WU0.js} +1 -1
  9. package/web/app/immutable/chunks/{CRY4aELR.js → 7aKXh--T.js} +4 -4
  10. package/web/app/immutable/chunks/{BSsEOl8-.js → 7i9XTDuo.js} +1 -1
  11. package/web/app/immutable/chunks/{DcUCHDGY.js → AsFm-iq9.js} +1 -1
  12. package/web/app/immutable/chunks/{ZIOU9Sxd.js → B1tKRs9e.js} +1 -1
  13. package/web/app/immutable/chunks/{C_E26DWe.js → B2_coen2.js} +1 -1
  14. package/web/app/immutable/chunks/{BulBKnVz.js → B3hSlB6y.js} +1 -1
  15. package/web/app/immutable/chunks/{CaHds95Q.js → B3s08q4i.js} +1 -1
  16. package/web/app/immutable/chunks/{vLtMR-kj.js → B4rTQlY3.js} +1 -1
  17. package/web/app/immutable/chunks/{B8_Ff8zl.js → B5LyNSS1.js} +7 -7
  18. package/web/app/immutable/chunks/{B3Gso1ut.js → B7CIdOn0.js} +1 -1
  19. package/web/app/immutable/chunks/{CwWm64yZ.js → BBvc0xcX.js} +1 -1
  20. package/web/app/immutable/chunks/{Cq4X6ptS.js → BE3ifD-D.js} +1 -1
  21. package/web/app/immutable/chunks/{BSfkjlLx.js → BHCTYYXY.js} +1 -1
  22. package/web/app/immutable/chunks/{CQ_NwL45.js → BHe6JG_C.js} +2 -2
  23. package/web/app/immutable/chunks/{DSacn4II.js → BIDxyGuw.js} +1 -1
  24. package/web/app/immutable/chunks/{DJFAYXyc.js → BIH1E0JD.js} +1 -1
  25. package/web/app/immutable/chunks/{CYKOPxuJ.js → BIY9btQv.js} +1 -1
  26. package/web/app/immutable/chunks/{gySpGbnA.js → BJDeJSt-.js} +1 -1
  27. package/web/app/immutable/chunks/{jG-4Z8qH.js → BKq-hmnE.js} +1 -1
  28. package/web/app/immutable/chunks/{CCsCF1Mh.js → BKzqt9uo.js} +1 -1
  29. package/web/app/immutable/chunks/{5lieSvED.js → BL5h9RCy.js} +1 -1
  30. package/web/app/immutable/chunks/{D6dNunKo.js → BLb6jd9K.js} +1 -1
  31. package/web/app/immutable/chunks/{BVLa_5Le.js → BNv5miK-.js} +1 -1
  32. package/web/app/immutable/chunks/{gHT8Z5q-.js → BOHkf2gI.js} +1 -1
  33. package/web/app/immutable/chunks/{bb5Wjkri.js → BOROIf_S.js} +1 -1
  34. package/web/app/immutable/chunks/{C2Vj5Vs6.js → BR75pcGU.js} +1 -1
  35. package/web/app/immutable/chunks/{THdp5Vpk.js → BROVvkEL.js} +1 -1
  36. package/web/app/immutable/chunks/{BDA31WCY.js → BR_GHabc.js} +1 -1
  37. package/web/app/immutable/chunks/{DeE0yn_3.js → BSwUOmEO.js} +1 -1
  38. package/web/app/immutable/chunks/{uCQEgTob.js → BTBYrxZV.js} +1 -1
  39. package/web/app/immutable/chunks/{Bi0vr71w.js → BU9a7SkD.js} +1 -1
  40. package/web/app/immutable/chunks/{CQHtdg39.js → BVDDJIsV.js} +1 -1
  41. package/web/app/immutable/chunks/{CSBGusi9.js → BWn2FCdq.js} +1 -1
  42. package/web/app/immutable/chunks/{CmW3Zqh6.js → BZWU4mlm.js} +2 -2
  43. package/web/app/immutable/chunks/Ba5gf06c.js +1 -0
  44. package/web/app/immutable/chunks/{DZIz7Wk9.js → BaGw_bDr.js} +1 -1
  45. package/web/app/immutable/chunks/{1GrJvO3a.js → Baepgj8b.js} +1 -1
  46. package/web/app/immutable/chunks/{CqVZxU_G.js → BalxhI2Q.js} +1 -1
  47. package/web/app/immutable/chunks/{wgljT0D3.js → Bb3w2fM6.js} +1 -1
  48. package/web/app/immutable/chunks/{DgMr61cU.js → BeVAskuR.js} +1 -1
  49. package/web/app/immutable/chunks/{BSD34ZVo.js → Beg3arHH.js} +1 -1
  50. package/web/app/immutable/chunks/{DtfuSWPd.js → BgnxwWhQ.js} +1 -1
  51. package/web/app/immutable/chunks/{DIukqb9l.js → BhA_kLCx.js} +1 -1
  52. package/web/app/immutable/chunks/{DB9n2KBT.js → Bj-9TYLg.js} +1 -1
  53. package/web/app/immutable/chunks/{BzFy3u2D.js → BlQvrYPa.js} +1 -1
  54. package/web/app/immutable/chunks/{FtGWFokI.js → BldeOF88.js} +1 -1
  55. package/web/app/immutable/chunks/{CdOh_Fmv.js → BnA9v3pc.js} +1 -1
  56. package/web/app/immutable/chunks/{Bg7YNbVH.js → Bo89tkt2.js} +1 -1
  57. package/web/app/immutable/chunks/{CnztNSaN.js → BoQ8Q7zJ.js} +1 -1
  58. package/web/app/immutable/chunks/{CiZzqOpk.js → BpyEBWKW.js} +1 -1
  59. package/web/app/immutable/chunks/{CgS_FiQI.js → BqOLTDDX.js} +1 -1
  60. package/web/app/immutable/chunks/{Caqml6gj.js → BtrJwCgg.js} +1 -1
  61. package/web/app/immutable/chunks/{Chnr0_jK.js → Bvf6gH6c.js} +1 -1
  62. package/web/app/immutable/chunks/{Dekzflbl.js → BxQi83db.js} +1 -1
  63. package/web/app/immutable/chunks/{CKnpbRTh.js → C-5vE6yh.js} +9 -9
  64. package/web/app/immutable/chunks/{DUGztmZo.js → C0jW3ncX.js} +1 -1
  65. package/web/app/immutable/chunks/{Bc7pHsTy.js → C1YR8Gnj.js} +1 -1
  66. package/web/app/immutable/chunks/{Blu9C_Vv.js → C289w7fG.js} +1 -1
  67. package/web/app/immutable/chunks/{TE7UDCh6.js → C29Jqwzt.js} +1 -1
  68. package/web/app/immutable/chunks/{C0wua3Vt.js → C2UYU20O.js} +1 -1
  69. package/web/app/immutable/chunks/{CgwFGLCK.js → C2wWLl1x.js} +1 -1
  70. package/web/app/immutable/chunks/{CH7fgKro.js → C6P_twJN.js} +1 -1
  71. package/web/app/immutable/chunks/{UQXXh4U7.js → C6ROKFdp.js} +1 -1
  72. package/web/app/immutable/chunks/{YcqSYZ1W.js → C96BAoIR.js} +1 -1
  73. package/web/app/immutable/chunks/{BnNJN3Ls.js → C9AWL-_E.js} +1 -1
  74. package/web/app/immutable/chunks/{CzW29tkb.js → CAV1CzzW.js} +1 -1
  75. package/web/app/immutable/chunks/{CblB0zCN.js → CC-xReBN.js} +1 -1
  76. package/web/app/immutable/chunks/{DRy2oEmj.js → CC4-q0Fm.js} +1 -1
  77. package/web/app/immutable/chunks/{CfUtc4-L.js → CDsbSWM0.js} +1 -1
  78. package/web/app/immutable/chunks/{DZRLhNnQ.js → CENbvXsw.js} +1 -1
  79. package/web/app/immutable/chunks/{BX9hgO_H.js → CFcZXBVA.js} +6 -6
  80. package/web/app/immutable/chunks/{eCVtubQ8.js → CFq9q-gu.js} +1 -1
  81. package/web/app/immutable/chunks/{d1EmVp98.js → CGLbiObk.js} +1 -1
  82. package/web/app/immutable/chunks/{CbRsc9i4.js → CI4_aI7e.js} +5 -5
  83. package/web/app/immutable/chunks/{BvZfa6RH.js → CIvyT4T_.js} +1 -1
  84. package/web/app/immutable/chunks/{C_-WdiR8.js → CKf0K7iH.js} +1 -1
  85. package/web/app/immutable/chunks/{CBRZjI7P.js → CKfVT02n.js} +2 -2
  86. package/web/app/immutable/chunks/{BG2RPA7A.js → CNkmihEX.js} +2 -2
  87. package/web/app/immutable/chunks/{f686-QUd.js → CO9mOa2z.js} +1 -1
  88. package/web/app/immutable/chunks/CQIdhUGs.js +1 -0
  89. package/web/app/immutable/chunks/{B-_ROixI.js → CQWMr-uu.js} +2 -2
  90. package/web/app/immutable/chunks/{MifrdpDQ.js → CT012uiB.js} +1 -1
  91. package/web/app/immutable/chunks/{B2AfKG58.js → CTKKTfh5.js} +2 -2
  92. package/web/app/immutable/chunks/{WlqVlpOk.js → CVXKL6ab.js} +1 -1
  93. package/web/app/immutable/chunks/{Dv0Jc2Nv.js → CVpnQG0j.js} +1 -1
  94. package/web/app/immutable/chunks/{BinPWBvt.js → C_V6o9Il.js} +1 -1
  95. package/web/app/immutable/chunks/{DELYEsRi.js → Ca6eVlSm.js} +2 -2
  96. package/web/app/immutable/chunks/{BhZDGIfe.js → CdYt8dgZ.js} +1 -1
  97. package/web/app/immutable/chunks/{CmVXj6KK.js → Ce83awb2.js} +2 -2
  98. package/web/app/immutable/chunks/{ir8Qz45r.js → CkoG9STP.js} +1 -1
  99. package/web/app/immutable/chunks/{BDcauMkX.js → CllirvEK.js} +1 -1
  100. package/web/app/immutable/chunks/{BmjF1SON.js → Cmj0JylI.js} +2 -2
  101. package/web/app/immutable/chunks/{Bvo32SXP.js → CnS7dtdu.js} +1 -1
  102. package/web/app/immutable/chunks/{9sCF_0su.js → Cnfa9ycD.js} +1 -1
  103. package/web/app/immutable/chunks/{Db8-C0Zq.js → CoDlIYWp.js} +1 -1
  104. package/web/app/immutable/chunks/{DwXKCf3Q.js → CplGG62F.js} +1 -1
  105. package/web/app/immutable/chunks/{1DKpnRTj.js → Cum1dYpM.js} +1 -1
  106. package/web/app/immutable/chunks/{BHaE4286.js → CvqKGiPA.js} +1 -1
  107. package/web/app/immutable/chunks/{BCQ1W7zT.js → CxJ0MhK_.js} +3 -3
  108. package/web/app/immutable/chunks/{BAymCgEX.js → Cz-HgbT1.js} +1 -1
  109. package/web/app/immutable/chunks/{Cv2YUgTX.js → CzMPk75T.js} +1 -1
  110. package/web/app/immutable/chunks/{B0SoVMRS.js → Czc9XxQH.js} +1 -1
  111. package/web/app/immutable/chunks/{BnhOIUmr.js → Czz4CkiM.js} +1 -1
  112. package/web/app/immutable/chunks/{D9MwZkzV.js → D1_IbOsX.js} +1 -1
  113. package/web/app/immutable/chunks/{YV53nLSc.js → D2CiBsJQ.js} +1 -1
  114. package/web/app/immutable/chunks/{DxyI4IUi.js → D2jpdqLS.js} +1 -1
  115. package/web/app/immutable/chunks/{CQAAihrI.js → D3VYu5tL.js} +1 -1
  116. package/web/app/immutable/chunks/{CR2m4w2U.js → D4hsFsw4.js} +1 -1
  117. package/web/app/immutable/chunks/{BqxcrzZH.js → D5CXAAzn.js} +1 -1
  118. package/web/app/immutable/chunks/{DCW2c0FY.js → D5xUDbUx.js} +1 -1
  119. package/web/app/immutable/chunks/{BUA7BUyu.js → D6vwIrtC.js} +1 -1
  120. package/web/app/immutable/chunks/{CUdMuhJF.js → D8Nxo4aC.js} +1 -1
  121. package/web/app/immutable/chunks/{CRNfAyhd.js → DAfOI1BG.js} +1 -1
  122. package/web/app/immutable/chunks/{CCSbqNiH.js → DExi1WR7.js} +1 -1
  123. package/web/app/immutable/chunks/{NqK_XT0y.js → DFrynV0u.js} +1 -1
  124. package/web/app/immutable/chunks/{EzpfJOSe.js → DG-AKB01.js} +1 -1
  125. package/web/app/immutable/chunks/{Dawt227W.js → DGQoqGp4.js} +1 -1
  126. package/web/app/immutable/chunks/{Ev5lig9W.js → DIhsiUIT.js} +1 -1
  127. package/web/app/immutable/chunks/{DC_1j_gh.js → DM71GnMx.js} +3 -3
  128. package/web/app/immutable/chunks/{D1V2Et17.js → DMH0w6el.js} +1 -1
  129. package/web/app/immutable/chunks/{CzS5ny-g.js → DMzReQ-5.js} +1 -1
  130. package/web/app/immutable/chunks/{B9BjyTgZ.js → DOIzLCtE.js} +1 -1
  131. package/web/app/immutable/chunks/{Dp9fBXaC.js → DOwDDYVN.js} +1 -1
  132. package/web/app/immutable/chunks/{C2YH0P-B.js → DPvT-ATr.js} +1 -1
  133. package/web/app/immutable/chunks/{BRRvOx4M.js → DQLMO9xD.js} +2 -2
  134. package/web/app/immutable/chunks/{sS3MW5B6.js → DQZlstPH.js} +1 -1
  135. package/web/app/immutable/chunks/DRRKH4VP.js +1 -0
  136. package/web/app/immutable/chunks/{qHChsLZZ.js → DRWqzfiQ.js} +1 -1
  137. package/web/app/immutable/chunks/{CUMRLgxB.js → DSCqJfZ-.js} +1 -1
  138. package/web/app/immutable/chunks/{zye35u-t.js → DSjbk-ao.js} +1 -1
  139. package/web/app/immutable/chunks/{B9mj0qwd.js → DUO0KBjx.js} +1 -1
  140. package/web/app/immutable/chunks/{D6VfSAVQ.js → DUfE7lx2.js} +1 -1
  141. package/web/app/immutable/chunks/{DkJkWZTE.js → DUl-h1p3.js} +1 -1
  142. package/web/app/immutable/chunks/{CbyU6cEf.js → DVu7tZ67.js} +1 -1
  143. package/web/app/immutable/chunks/{CBafvv8h.js → DWC3_76J.js} +1 -1
  144. package/web/app/immutable/chunks/{BpEHjU4g.js → DXtdMDwl.js} +1 -1
  145. package/web/app/immutable/chunks/{Bus1Z5ou.js → DYzJKeX7.js} +1 -1
  146. package/web/app/immutable/chunks/{D-NrCL67.js → D_pS9hme.js} +1 -1
  147. package/web/app/immutable/chunks/{Cj_UUgNI.js → DaqXt9wp.js} +1 -1
  148. package/web/app/immutable/chunks/{_EqQOSVK.js → Dax7ITFa.js} +2 -2
  149. package/web/app/immutable/chunks/{fr0BmHL-.js → DbIuIgjV.js} +1 -1
  150. package/web/app/immutable/chunks/{R1s5ARST.js → DbN2kVX-.js} +1 -1
  151. package/web/app/immutable/chunks/{R2N5eDxY.js → Dbrv6RE-.js} +2 -2
  152. package/web/app/immutable/chunks/{A4nvdmL6.js → DcsxLfDg.js} +1 -1
  153. package/web/app/immutable/chunks/{CylWx-GB.js → DfJwQVW8.js} +1 -1
  154. package/web/app/immutable/chunks/{CADQyVDS.js → DfT1buZq.js} +2 -2
  155. package/web/app/immutable/chunks/{BGT9uvaQ.js → Dg9ZuAkk.js} +5 -5
  156. package/web/app/immutable/chunks/{BR2t5nsF.js → DhWcN4bx.js} +2 -2
  157. package/web/app/immutable/chunks/{rB5UfCey.js → DiD2Cn17.js} +1 -1
  158. package/web/app/immutable/chunks/{B-kUJzil.js → Dk-rIzdO.js} +1 -1
  159. package/web/app/immutable/chunks/{B1hj1DGj.js → DkL69EQl.js} +1 -1
  160. package/web/app/immutable/chunks/{BmBa9vQp.js → DkkmguuG.js} +1 -1
  161. package/web/app/immutable/chunks/{DtHX0_aW.js → DmC2lRsL.js} +2 -2
  162. package/web/app/immutable/chunks/{D1bivTve.js → DnsVLkb8.js} +2 -2
  163. package/web/app/immutable/chunks/{CA2ANaNj.js → Dnz4szur.js} +1 -1
  164. package/web/app/immutable/chunks/{Df-HaYIr.js → Do5lDWBq.js} +1 -1
  165. package/web/app/immutable/chunks/{D_hG-oZK.js → Dp08eKy3.js} +1 -1
  166. package/web/app/immutable/chunks/{Bqm2Rf6d.js → Dq9sK6wY.js} +1 -1
  167. package/web/app/immutable/chunks/{CMLBE7U6.js → DqMtaSxK.js} +1 -1
  168. package/web/app/immutable/chunks/{D2dAlclh.js → DqZnld6x.js} +3 -3
  169. package/web/app/immutable/chunks/{DFr6bn5t.js → DqaHaAl1.js} +4 -4
  170. package/web/app/immutable/chunks/{9-nUCsGi.js → Dr6C4F1X.js} +1 -1
  171. package/web/app/immutable/chunks/{D0DIS-cT.js → DrMbcJpA.js} +1 -1
  172. package/web/app/immutable/chunks/{CPlH-52U.js → Ds4DhRwW.js} +7 -7
  173. package/web/app/immutable/chunks/{qvt-0QTi.js → DsGwNgOu.js} +3 -3
  174. package/web/app/immutable/chunks/{B_IEMfS6.js → DteD0Nal.js} +3 -3
  175. package/web/app/immutable/chunks/DwEChUMY.js +1 -0
  176. package/web/app/immutable/chunks/{Iq8JI4_0.js → ENlRNbf0.js} +1 -1
  177. package/web/app/immutable/chunks/{UN8KT7fR.js → FhXVX7Hi.js} +1 -1
  178. package/web/app/immutable/chunks/{Bp098-aN.js → JMqHRN1q.js} +1 -1
  179. package/web/app/immutable/chunks/{CGzD6XfW.js → JZ27Qh_j.js} +1 -1
  180. package/web/app/immutable/chunks/{DL1CE4TH.js → JvjGgKob.js} +1 -1
  181. package/web/app/immutable/chunks/{B-1iBpaq.js → Jx0QEit0.js} +1 -1
  182. package/web/app/immutable/chunks/{DWEA_zul.js → K2mnFSgK.js} +1 -1
  183. package/web/app/immutable/chunks/{BgPtjifd.js → KEjNxHSN.js} +1 -1
  184. package/web/app/immutable/chunks/{CjTGc2Y5.js → KSJAkSbC.js} +2 -2
  185. package/web/app/immutable/chunks/KvL2D8eF.js +1 -0
  186. package/web/app/immutable/chunks/L-jTlD15.js +4 -0
  187. package/web/app/immutable/chunks/{D_r5h8IL.js → NgjMs0r6.js} +1 -1
  188. package/web/app/immutable/chunks/{DFBd8tOh.js → OK80LzXp.js} +1 -1
  189. package/web/app/immutable/chunks/{DISyGoja.js → OltbXq5G.js} +1 -1
  190. package/web/app/immutable/chunks/{cFozej4U.js → PtFvwTVZ.js} +3 -3
  191. package/web/app/immutable/chunks/{VdR0DXlW.js → Q1s61YDh.js} +47 -47
  192. package/web/app/immutable/chunks/{tDUnXf7O.js → QFEvVzf2.js} +1 -1
  193. package/web/app/immutable/chunks/{D_-ztW_Y.js → SLPWQR3F.js} +1 -1
  194. package/web/app/immutable/chunks/{C1AEP5wW.js → SxNO1NUM.js} +1 -1
  195. package/web/app/immutable/chunks/{qjcf4Gb9.js → Tygff_sj.js} +1 -1
  196. package/web/app/immutable/chunks/{CFNJHO2G.js → UO171Id4.js} +1 -1
  197. package/web/app/immutable/chunks/{CY-vjmpy.js → VcOG8L0Z.js} +1 -1
  198. package/web/app/immutable/chunks/{BYMXwcID.js → W2c1MO7q.js} +1 -1
  199. package/web/app/immutable/chunks/{t7yAUuZn.js → XagMlRFc.js} +2 -2
  200. package/web/app/immutable/chunks/{DbCFTbwM.js → Z-hUD4Ap.js} +1 -1
  201. package/web/app/immutable/chunks/{CUNx-_2d.js → aitTA173.js} +4 -4
  202. package/web/app/immutable/chunks/{qi41b1Ac.js → bLKIt_n4.js} +1 -1
  203. package/web/app/immutable/chunks/{Hd1u2Z-S.js → eNRNxfO0.js} +3 -3
  204. package/web/app/immutable/chunks/{VJkCr9xp.js → eRIG79tn.js} +1 -1
  205. package/web/app/immutable/chunks/{1GGKXNxU.js → e_K38tqB.js} +1 -1
  206. package/web/app/immutable/chunks/{Dsn82AW0.js → gTjyNX6h.js} +1 -1
  207. package/web/app/immutable/chunks/{D69ZLPjW.js → hSiYrZoo.js} +1 -1
  208. package/web/app/immutable/chunks/{DvATy2o1.js → hqZSbKVs.js} +1 -1
  209. package/web/app/immutable/chunks/{DksUdusM.js → nrAGmqbi.js} +2 -2
  210. package/web/app/immutable/chunks/{BimRiD6s.js → nxYQz1Bp.js} +1 -1
  211. package/web/app/immutable/chunks/{D5_auhOU.js → pehcYFWW.js} +2 -2
  212. package/web/app/immutable/chunks/{Cgn_eC9-.js → rIUowGAi.js} +2 -2
  213. package/web/app/immutable/chunks/{DvrEye74.js → rei1qYSi.js} +1 -1
  214. package/web/app/immutable/chunks/{BkFHmpuY.js → wK4T9_HO.js} +1 -1
  215. package/web/app/immutable/chunks/weHhj1in.js +1 -0
  216. package/web/app/immutable/chunks/{BvKqDQXM.js → xCaPmms8.js} +1 -1
  217. package/web/app/immutable/chunks/{CqwiFk32.js → yGw_3prC.js} +1 -1
  218. package/web/app/immutable/chunks/{NQru5r2h.js → yScsjjST.js} +1 -1
  219. package/web/app/immutable/entry/{app.jT7Rd2u4.js → app.De5C2NS7.js} +2 -2
  220. package/web/app/immutable/entry/start.BbOZiO5_.js +1 -0
  221. package/web/app/immutable/nodes/{0.9lwWQtfB.js → 0.D8lcICdy.js} +1 -1
  222. package/web/app/immutable/nodes/{1.Ck4yEk2l.js → 1.Bcr9Ac6T.js} +1 -1
  223. package/web/app/immutable/nodes/{10.C4FEQjC7.js → 10.CdYxZNRv.js} +17 -17
  224. package/web/app/immutable/nodes/{11.C-vXNNmX.js → 11.DTALKQkg.js} +4 -4
  225. package/web/app/immutable/nodes/{13.DhKVmEQi.js → 13.DTamgdFN.js} +1 -1
  226. package/web/app/immutable/nodes/{14.INZu_e5k.js → 14.CzznX4mY.js} +1 -1
  227. package/web/app/immutable/nodes/{15.DdKSdQ-h.js → 15.BuZ5Ykpn.js} +1 -1
  228. package/web/app/immutable/nodes/{16.Ad-t6nft.js → 16.D1WCmH9D.js} +1 -1
  229. package/web/app/immutable/nodes/{17.pLS5JsPi.js → 17.DXnAkOJb.js} +1 -1
  230. package/web/app/immutable/nodes/{18.DIVxEUeB.js → 18.BBYG39nr.js} +1 -1
  231. package/web/app/immutable/nodes/{19.BB9LuT5j.js → 19.Bwna1DuW.js} +2 -2
  232. package/web/app/immutable/nodes/{2.Bp80wZmn.js → 2.BCkphmFm.js} +11 -11
  233. package/web/app/immutable/nodes/{20.BGTcjiLa.js → 20.DyC7cckU.js} +1 -1
  234. package/web/app/immutable/nodes/{3.DRJnaOSe.js → 3.CJlWKIE-.js} +1 -1
  235. package/web/app/immutable/nodes/{4.p67SnElB.js → 4.CDSfo4Q5.js} +1 -1
  236. package/web/app/immutable/nodes/{5.DRmIJA2c.js → 5.B6hsM1cw.js} +1 -1
  237. package/web/app/immutable/nodes/{6.Bjeibumi.js → 6.DCm27sfe.js} +2 -2
  238. package/web/app/immutable/nodes/{7.CjIaxqZ1.js → 7.Dd2x1_y1.js} +1 -1
  239. package/web/app/immutable/nodes/{8.DAlxovqG.js → 8.C0jzmTGW.js} +1 -1
  240. package/web/app/immutable/nodes/{9.BKQZzsCi.js → 9.Bj88iDsv.js} +11 -11
  241. package/web/app/version.json +1 -1
  242. package/web/index.html +12 -12
  243. package/web/app/immutable/chunks/-7AqlW5j.js +0 -1
  244. package/web/app/immutable/chunks/B1lYPzEU.js +0 -1
  245. package/web/app/immutable/chunks/C14Hgf8a.js +0 -1
  246. package/web/app/immutable/chunks/CK4eAyad.js +0 -1
  247. package/web/app/immutable/chunks/DBdkAKrm.js +0 -4
  248. package/web/app/immutable/chunks/UGr2VEtG.js +0 -1
  249. package/web/app/immutable/chunks/i8PKWJT0.js +0 -1
  250. package/web/app/immutable/entry/start.CSuXA93h.js +0 -1
@@ -1 +1 @@
1
- import{$ as st}from"./CgwFGLCK.js";import{nL as ct,bl as ut}from"./CbRsc9i4.js";import{g as dt}from"./CMiilI_P.js";import{t as ze,bo as g,bw as Ae,b as Ue,bm as u,br as mt}from"./51_h0jm2.js";import{ai as We,bs as Ee,ca as xe,aD as e,a7 as we,ay as te,W as y,bn as Te,bV as se,aA as v,a5 as pe,bS as E,bH as P,bA as ge,b_ as Y,aj as Ce,aw as Ne,bl as ye,bO as ne,aB as V,c9 as $,be as Me,b$ as Ie}from"./CJxGDkBm.js";import{i as q}from"./PXCFrn2V.js";import{k as ft}from"./C9UsZ4re.js";import{s as ke,e as qe,f as pt,g as gt}from"./CpPNoOk-.js";import{b as Se}from"./NtFyWdpR.js";import{c as me}from"./DGmOjLYi.js";import{q as He,l as Ge,d as Je,e as $e,K as Qe,h as et,M as tt}from"./DvrEye74.js";import{a as vt}from"./CC7to1B5.js";import{m as _e}from"./BAymCgEX.js";import{f as Le}from"./CdOh_Fmv.js";import"./Cgn_eC9-.js";import{l as Ke,f as nt,m as _t,a as ht}from"./DqFWZ_g1.js";import"./ChTqQfQN.js";import"./D6dNunKo.js";import"./THdp5Vpk.js";import{bL as Re}from"./BSsEOl8-.js";import{s as je}from"./DxvSggY5.js";import{F as Pe,d3 as bt,bW as wt,bX as yt,cq as xt,bF as kt,cr as Ct,aZ as Pt,a8 as Lt}from"./DSQT151l.js";import{S as Mt}from"./D0DIS-cT.js";import{n as It,g as $t}from"./BxwkoIbZ.js";import{e as De}from"./Bjy4ygfJ.js";import{i as zt,f as At}from"./DZIz7Wk9.js";import{P as Ut}from"./KAO5AtPr.js";import{h as Et}from"./D5_auhOU.js";import{t as Tt}from"./DAsc1V4f.js";function Nt(i,t){return i?.isExternalLink===!0&&typeof i.workspaceId=="string"&&i.workspaceId?i.workspaceId:t||void 0}function St(i,t,o){const c=i.label||i.id||"mention";if(i.type==="member")return st(c);if(i.type==="note"&&i.id&&o){const s=Nt(i.meta,t),_=s?o(s,i.id)?.trim():void 0;if(_)return _}return c}function Bn(i,t,o){if(typeof document>"u"||!i.includes('data-type="note"'))return i;const c=document.createElement("template");c.innerHTML=i;let s=!1;for(const _ of c.content.querySelectorAll('[data-mention][data-type="note"]')){let h=null;try{h=JSON.parse(_.getAttribute("data-meta")||"{}")}catch{h=null}const I=_.textContent??"",C=St({type:"note",id:_.getAttribute("data-id"),label:I,meta:h},t,o);C!==I&&(_.textContent=C,s=!0)}return s?c.innerHTML:i}const jn=(i,t)=>{let o;try{o=dt().state}catch{return}const c=o?.workspaceNotes?.byWorkspaceId?.[i]?.notes;return c?ct(c,t)?.title:void 0};var Kt=V('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Rt=V('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Xe(i,t){if(new.target)return ze({component:Xe,...i});Ee(t,!0);let o=g(t,"open",15,!1),c=g(t,"ariaLabel",7),s=g(t,"closeLabel",7),_=g(t,"onClose",7),h=g(t,"openerElement",7,null),I=g(t,"children",7),C=g(t,"actions",7),T=g(t,"caption",7),w=g(t,"onKeydown",7),L=g(t,"onCopy",7);const S=zt(),d=At(b);let M=se(null),N=se(null);function b(){o()&&(o(!1),_()?.(),h()?.isConnected&&h().focus({preventScroll:!0}))}function O(n){(n.target instanceof Element?n.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||b()}function K(n){if(w()?.(n),n.defaultPrevented||n.key!=="Tab"||!e(M))return;const r=Array.from(e(M).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),m=r[0],l=r[r.length-1];!m||!l||(n.shiftKey&&document.activeElement===m?(n.preventDefault(),l.focus()):!n.shiftKey&&document.activeElement===l&&(n.preventDefault(),m.focus()))}xe(()=>{if(o())return He(b)}),xe(()=>{!o()||!e(N)||requestAnimationFrame(()=>e(N)?.focus())});var ae={get open(){return o()},set open(n=!1){o(n),v()},get ariaLabel(){return c()},set ariaLabel(n){c(n),v()},get closeLabel(){return s()},set closeLabel(n){s(n),v()},get onClose(){return _()},set onClose(n){_(n),v()},get openerElement(){return h()},set openerElement(n=null){h(n),v()},get children(){return I()},set children(n){I(n),v()},get actions(){return C()},set actions(n){C(n),v()},get caption(){return T()},set caption(n){T(n),v()},get onKeydown(){return w()},set onKeydown(n){w(n),v()},get onCopy(){return L()},set onCopy(n){L(n),v()},$set:Ae,$on:(n,r)=>Ue(t,n,r)},B=we(),G=te(B);{var J=n=>{{let r=$(()=>S?.target()??"body");Ut(n,{get target(){return e(r)},zIndex:1e3,children:(m,l)=>{var f=Rt(),k=pe(f),z=pe(k);{var R=x=>{var re=we(),D=te(re);je(D,C),y(x,re)};q(z,x=>{C()&&x(R)})}var Q=E(z,2);Le(Q,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:b,get"aria-label"(){return s()},get ref(){return e(N)},set ref(x){P(N,x,!0)},children:(x,re)=>{Pe(x,{get icon(){return bt},size:"lg"})},$$slots:{default:!0}}),ge(k),De(k,x=>d?.(x));var j=E(k,2),F=pe(j);je(F,I),ge(j),De(j,x=>d?.(x));var W=E(j,2);{var ce=x=>{var re=Kt(),D=ye(re,!0);Y(()=>ne(D,T())),y(x,re)};q(W,x=>{T()&&x(ce)})}ge(f),Se(f,x=>P(M,x),()=>e(M)),Y(()=>ke(f,"aria-label",c())),Ce("click",f,O),Ce("keydown",f,K),Ne("copy",f,function(...x){L()?.apply(this,x)}),It(3,f,()=>$t,()=>({tier:"moderate"})),y(m,f)},$$slots:{default:!0}})}};q(G,n=>{o()&&n(J)})}return y(i,B),Te(ae)}We(["click","keydown"]);function Ye(i){if(!i.startsWith("workspace-file://"))return null;const o=i.slice(17).split(/[?#]/)[0].split("/"),c=o[0],s=o.slice(1);if(!c||s.length===0)return null;const _=[];for(const h of s){if(!h)return null;try{_.push(decodeURIComponent(h))}catch{return null}}return{workspaceId:c,path:_.join("/")}}function at(i){try{return new URL(i).protocol==="https:"}catch{return!1}}function Ze(i){const t=/^data:([^;,]+);base64,(.*)$/s.exec(i);return t?{mimeType:t[1],base64:t[2]}:null}function Ve(i){return at(i)||Ye(i)!==null||/^workspace-asset:\/\/[^/?#]+/.test(i)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(i)}function rt(i){if(i.length===0)return 0;let t=0;return i.endsWith("==")?t=2:i.endsWith("=")&&(t=1),Math.floor(i.length*3/4)-t}function Ft(i,t){const o=atob(i),c=new Uint8Array(o.length);for(let s=0;s<o.length;s++)c[s]=o.charCodeAt(s);return new Blob([c],{type:t})}const Ot={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Bt(i){if(i.workspacePath){const s=i.workspacePath.split("/").pop();if(s)return s}const t=(i.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(t))return t;const o=i.mimeType?.split(";")[0].trim().toLowerCase(),c=o&&Ot[o]||"png";return`${t}.${c}`}var jt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Dt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),Zt=V("<!> <!> <!>",1),Vt=V("<!> <!> <!> <!>",1),Wt=V("<!> <!>",1);function ot(i,t){if(new.target)return ze({component:ot,...i});Ee(t,!0);let o=g(t,"imageUrl",7),c=g(t,"imageName",7),s=g(t,"open",15,!1),_=g(t,"triggerClass",7),h=g(t,"contentClass",7);const I=$(()=>Ze(o())),C=$(()=>Ye(o())),T=$(()=>at(o()));let w=se(null),L=se(null),S=null;function d(){if(S===o())return;const l=S=o();P(w,null),P(L,e(I)?rt(e(I).base64):null,!0);const f=new Image;f.onload=()=>{S===l&&P(w,{width:f.naturalWidth,height:f.naturalHeight},!0)},f.src=o(),e(I)||fetch(o()).then(k=>k.ok?k.blob():null).then(k=>{k&&S===l&&P(L,k.size,!0)}).catch(()=>{})}xe(()=>{s()&&d()}),xe(()=>{if(s())return He(()=>{s(!1)})});async function M(l=o()){const f=Ze(l);if(f)return Ft(f.base64,f.mimeType);const k=await fetch(l);if(!k.ok)throw new Error(`Image fetch failed: ${k.status}`);return await k.blob()}async function N(){let l=null;try{let f=o(),k=e(I)?.mimeType;if(!e(I)){const R=await M();k=R.type,l=URL.createObjectURL(R),f=l}const z=document.createElement("a");z.href=f,z.download=Bt({workspacePath:e(C)?.path,imageName:c(),mimeType:k}),document.body.appendChild(z);try{z.click()}finally{z.remove()}}catch{_e.error(u.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function b(){if(e(C))try{await Re(e(C).path),_e.success(u.ui_imageActionsMenu_pathCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}async function O(){if(e(T))try{await Re(o()),_e.success(u.ui_imageActionsMenu_linkCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}async function K(l){let f,k;try{let z;if(l.type.split(";")[0].trim()==="image/svg+xml"){k=URL.createObjectURL(l);const j=new Image;j.src=k,await j.decode(),z=j}else z=f=await createImageBitmap(l);const R=document.createElement("canvas");R.width=z instanceof HTMLImageElement?z.naturalWidth:z.width,R.height=z instanceof HTMLImageElement?z.naturalHeight:z.height;const Q=R.getContext("2d");if(!Q)throw new Error("2d canvas context unavailable");return Q.drawImage(z,0,0),await new Promise((j,F)=>{R.toBlob(W=>W?j(W):F(new Error("canvas toBlob failed")),"image/png")})}finally{f?.close(),k&&URL.revokeObjectURL(k)}}async function ae(l=o()){try{let f=await M(l);f.type!=="image/png"&&(f=await K(f)),await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),_e.success(u.ui_imageActionsMenu_imageCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}function B(l,f=o()){return l.defaultPrevented||!Ve(f)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||vt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(ae(f),s(!1)),!0)}var G={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),v()},get imageName(){return c()},set imageName(l){c(l),v()},get open(){return s()},set open(l=!1){s(l),v()},get triggerClass(){return _()},set triggerClass(l){_(l),v()},get contentClass(){return h()},set contentClass(l){h(l),v()},$set:Ae,$on:(l,f)=>Ue(t,l,f)},J=we(),n=te(J);{var r=l=>{var f=we(),k=te(f);me(k,()=>tt,(z,R)=>{R(z,{get open(){return s()},set open(Q){s(Q)},children:(Q,j)=>{var F=Wt(),W=te(F);{const x=(D,he)=>{let oe=()=>(he?.()).props;{let Z=$(()=>u.ui_imageActionsMenu_trigger_ariaLabel());Le(D,mt(oe,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e(Z)},children:(ie,fe)=>{Qe(ie,{class:"size-3.5"})},$$slots:{default:!0}}))}};let re=$(()=>qe("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",_()));me(W,()=>Ge,(D,he)=>{he(D,{get class(){return e(re)},onclick:oe=>oe.stopPropagation(),onkeydown:oe=>B(oe),oncopy:oe=>B(oe),child:x,$$slots:{child:!0}})})}var ce=E(W,2);me(ce,()=>Je,(x,re)=>{re(x,{get class(){return h()},align:"end",onkeydown:D=>B(D),oncopy:D=>B(D),children:(D,he)=>{var oe=Vt(),Z=te(oe);me(Z,()=>$e,(A,X)=>{X(A,{onSelect:()=>void N(),children:(U,ee)=>{Me();var le=Ie();Y(ue=>ne(le,ue),[()=>u.ui_imageActionsMenu_download_label()]),y(U,le)},$$slots:{default:!0}})});var ie=E(Z,2);me(ie,()=>$e,(A,X)=>{X(A,{onSelect:()=>void ae(),children:(U,ee)=>{Me();var le=Ie();Y(ue=>ne(le,ue),[()=>u.ui_imageActionsMenu_copyImage_label()]),y(U,le)},$$slots:{default:!0}})});var fe=E(ie,2);{var a=A=>{var X=we(),U=te(X);me(U,()=>$e,(ee,le)=>{le(ee,{onSelect:()=>void b(),children:(ue,Fe)=>{Me();var de=Ie();Y(be=>ne(de,be),[()=>u.ui_imageActionsMenu_copyPath_label()]),y(ue,de)},$$slots:{default:!0}})}),y(A,X)},p=A=>{var X=we(),U=te(X);me(U,()=>$e,(ee,le)=>{le(ee,{onSelect:()=>void O(),children:(ue,Fe)=>{Me();var de=Ie();Y(be=>ne(de,be),[()=>u.ui_imageActionsMenu_copyLink_label()]),y(ue,de)},$$slots:{default:!0}})}),y(A,X)};q(fe,A=>{e(C)?A(a):e(T)&&A(p,1)})}var H=E(fe,2);{var ve=A=>{var X=Zt(),U=te(X);me(U,()=>et,(de,be)=>{be(de,{})});var ee=E(U,2);{var le=de=>{var be=jt(),Oe=ye(be,!0);Y(Be=>ne(Oe,Be),[()=>u.ui_imageActionsMenu_dimensions_label({width:Ke(e(w).width),height:Ke(e(w).height)})]),y(de,be)};q(ee,de=>{e(w)&&de(le)})}var ue=E(ee,2);{var Fe=de=>{var be=Dt(),Oe=ye(be,!0);Y(Be=>ne(Oe,Be),[()=>nt(e(L))]),y(de,be)};q(ue,de=>{e(L)!==null&&de(Fe)})}y(A,X)};q(H,A=>{(e(w)||e(L)!==null)&&A(ve)})}y(D,oe)},$$slots:{default:!0}})}),y(Q,F)},$$slots:{default:!0}})}),y(l,f)},m=$(()=>Ve(o()));q(n,l=>{e(m)&&l(r)})}return y(i,J),Te(G)}var Ht=V('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function it(i,t){if(new.target)return ze({component:it,...i});Ee(t,!0);let o=g(t,"children",7),c=g(t,"minZoom",7,.25),s=g(t,"maxZoom",7,8),_=g(t,"onScaleChange",7);const h=1.25,I=.0015,C=.01,T=4;let w=se(1),L=se(0),S=se(0),d=se(!1),M=se(null);xe(()=>{_()?.(e(w))});let N=null,b=0,O=0,K=0,ae=!1;const B=$(()=>_t(e(w),{style:"percent",maximumFractionDigits:0}));function G(a){return Math.min(s(),Math.max(c(),a))}function J(a,p,H){const ve=G(H),A=e(M)?.getBoundingClientRect(),X=A?a-A.left:0,U=A?p-A.top:0;P(L,X-(X-e(L))/e(w)*ve),P(S,U-(U-e(S))/e(w)*ve),P(w,ve,!0)}function n(a){const p=e(M)?.getBoundingClientRect();p?J(p.left+p.width/2,p.top+p.height/2,a):P(w,G(a),!0)}function r(){P(w,1),P(L,0),P(S,0)}function m(a){a.preventDefault();const p=a.ctrlKey?C:I;J(a.clientX,a.clientY,e(w)*Math.exp(-a.deltaY*p))}xe(()=>{const a=e(M);if(a)return a.addEventListener("wheel",m,{passive:!1}),()=>a.removeEventListener("wheel",m)});function l(a){if(a.metaKey||a.ctrlKey||a.altKey)return!1;if(a.key==="+"||a.key==="=")n(e(w)*h);else if(a.key==="-")n(e(w)/h);else if(a.key==="0")r();else return!1;return a.preventDefault(),!0}function f(a){if(a.button>0)return;P(d,!0),N=a.pointerId,b=a.clientX,O=a.clientY,K=0;const p=a.currentTarget;typeof p.setPointerCapture=="function"&&p.setPointerCapture(a.pointerId)}function k(a){if(!e(d)||a.pointerId!==N)return;const p=a.clientX-b,H=a.clientY-O;K+=Math.abs(p)+Math.abs(H),P(L,e(L)+p),P(S,e(S)+H),b=a.clientX,O=a.clientY}function z(a){if(!e(d)||a.pointerId!==N)return;P(d,!1),N=null,K>T&&(ae=!0);const p=a.currentTarget;typeof p.hasPointerCapture=="function"&&typeof p.releasePointerCapture=="function"&&p.hasPointerCapture(a.pointerId)&&p.releasePointerCapture(a.pointerId)}function R(a){ae&&(ae=!1,a.preventDefault(),a.stopPropagation())}function Q(a){const p=Number.parseFloat(a.currentTarget.value);Number.isFinite(p)&&n(p)}var j={handleKeydown:l,get children(){return o()},set children(a){o(a),v()},get minZoom(){return c()},set minZoom(a=.25){c(a),v()},get maxZoom(){return s()},set maxZoom(a=8){s(a),v()},get onScaleChange(){return _()},set onScaleChange(a){_(a),v()},$set:Ae,$on:(a,p)=>Ue(t,a,p)},F=Ht(),W=pe(F),ce=pe(W);je(ce,o),ge(W);var x=E(W,2),re=pe(x);{let a=$(()=>u.ui_zoomPanViewport_zoomOut_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomOut_ariaLabel());Le(re,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>n(e(w)/h),get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return wt}})},$$slots:{default:!0}})}var D=E(re,2),he=pe(D);{let a=$(()=>u.ui_zoomPanViewport_zoomSlider_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomSlider_ariaLabel());Mt(he,{class:"accent-white",get min(){return c()},get max(){return s()},step:"0.01",get value(){return e(w)},oninput:Q,get"aria-label"(){return e(a)},get title(){return e(p)},"data-testid":"zoom-pan-slider"})}ge(D);var oe=E(D,2);{let a=$(()=>u.ui_zoomPanViewport_zoomIn_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomIn_ariaLabel());Le(oe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>n(e(w)*h),get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return yt}})},$$slots:{default:!0}})}var Z=E(oe,2),ie=ye(Z,!0),fe=E(Z,2);{let a=$(()=>u.ui_zoomPanViewport_resetZoom_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_resetZoom_ariaLabel());Le(fe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:r,get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return xt}})},$$slots:{default:!0}})}return ge(x),ge(F),Se(F,a=>P(M,a),()=>e(M)),Y((a,p)=>{pt(F,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(d)?"cursor-grabbing":"cursor-grab"}`),ke(F,"aria-label",a),gt(W,`transform: translate(${e(L)??""}px, ${e(S)??""}px) scale(${e(w)??""}); transform-origin: 0 0;`),ke(x,"aria-label",p),ne(ie,e(B))},[()=>u.ui_zoomPanViewport_viewport_ariaLabel(),()=>u.ui_zoomPanViewport_controls_ariaLabel()]),Ce("pointerdown",F,f),Ce("pointermove",F,k),Ce("pointerup",F,z),Ne("pointercancel",F,z),Ne("click",F,R,!0),Ce("keydown",F,l),Ce("pointerdown",x,a=>a.stopPropagation()),y(i,F),Te(j)}We(["pointerdown","pointermove","pointerup","keydown"]);var Xt=V('<img class="max-h-[90vh] max-w-[90vw] rounded-lg object-contain" draggable="false" data-media-lightbox-content=""/>');function Yt(i,t){if(new.target)return ze({component:Yt,...i});Ee(t,!0);const o=b=>{var O=we(),K=te(O);{var ae=B=>{Se(ot(B,{get imageUrl(){return s()},get imageName(){return _()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(L)},set open(G){P(L,G,!0)}}),G=>P(w,G,!0),()=>e(w))};q(K,B=>{C()&&B(ae)})}y(b,O)};let c=g(t,"open",15,!1),s=g(t,"imageUrl",7),_=g(t,"imageName",23,()=>u.ui_imageLightbox_image_alt()),h=g(t,"onClose",7),I=g(t,"openerElement",7,null),C=g(t,"showActionsMenu",7,!1),T=se(void 0),w=se(void 0),L=se(!1);xe(()=>{c()||P(L,!1)});function S(b){d(b),b.defaultPrevented||e(T)?.handleKeydown(b)}function d(b){c()&&C()&&e(w)?.handleCopy(b)}function M(b){!C()||!Ve(s())||(b.preventDefault(),b.stopPropagation(),P(L,!0))}var N={get open(){return c()},set open(b=!1){c(b),v()},get imageUrl(){return s()},set imageUrl(b){s(b),v()},get imageName(){return _()},set imageName(b=u.ui_imageLightbox_image_alt()){_(b),v()},get onClose(){return h()},set onClose(b){h(b),v()},get openerElement(){return I()},set openerElement(b=null){I(b),v()},get showActionsMenu(){return C()},set showActionsMenu(b=!1){C(b),v()},$set:Ae,$on:(b,O)=>Ue(t,b,O)};{let b=$(()=>u.ui_imageLightbox_preview_ariaLabel()),O=$(()=>u.ui_imageLightbox_close_ariaLabel());Xe(i,{get ariaLabel(){return e(b)},get closeLabel(){return e(O)},get onClose(){return h()},get openerElement(){return I()},get actions(){return o},onKeydown:S,onCopy:d,get open(){return c()},set open(K){c(K)},children:(K,ae)=>{var B=we(),G=te(B);ft(G,s,J=>{Se(it(J,{children:(n,r)=>{var m=Xt();Y(()=>{ke(m,"src",s()),ke(m,"alt",_())}),Ce("contextmenu",m,M),y(n,m)},$$slots:{default:!0}}),n=>P(T,n,!0),()=>e(T))}),y(K,B)},$$slots:{default:!0}})}return Te(N)}We(["contextmenu"]);var qt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),Gt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),Jt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),Qt=V("<!> <!> <!> <!>",1),en=V("<!> <!> <!>",1),tn=V("<!> <!>",1);function lt(i,t){if(new.target)return ze({component:lt,...i});Ee(t,!0);let o=g(t,"videoUrl",7),c=g(t,"videoName",7),s=g(t,"sourceKind",7),_=g(t,"mimeType",7),h=g(t,"open",15,!1),I=g(t,"triggerClass",7),C=g(t,"contentClass",7);const T=$(()=>Ze(o())),w=$(()=>Ye(o())),L=$(()=>s()??(e(T)?"inline":e(w)?"workspace":"remote"));let S=se(null),d=se(null),M=se(null),N=null;function b(){if(N===o())return;const n=N=o();P(S,null),P(d,null),P(M,e(T)?rt(e(T).base64):null,!0);const r=document.createElement("video");r.preload="metadata",r.onloadedmetadata=()=>{N===n&&(Number.isFinite(r.duration)&&r.duration>0&&P(S,r.duration,!0),r.videoWidth>0&&r.videoHeight>0&&P(d,{width:r.videoWidth,height:r.videoHeight},!0))},r.src=o(),e(T)||fetch(o()).then(m=>m.ok?m.blob():null).then(m=>{m&&N===n&&P(M,m.size,!0)}).catch(()=>{})}function O(){const n=e(w)?.path.split("/").pop();if(n)return n;const r=(c()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(r))return r;const m=(_()??e(T)?.mimeType)==="video/webm"?"webm":"mp4";return`${r}.${m}`}async function K(){let n=null;try{let r=o();if(!e(T)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);n=URL.createObjectURL(await l.blob()),r=n}const m=document.createElement("a");m.href=r,m.download=O(),document.body.appendChild(m),m.click(),m.remove(),n&&URL.revokeObjectURL(n)}catch{n&&URL.revokeObjectURL(n),_e.error(u.ui_videoActionsMenu_downloadFailed_error())}}async function ae(n,r){try{await Re(n),_e.success(r)}catch{_e.error(u.ui_videoActionsMenu_copyFailed_error())}}xe(()=>{h()&&b()}),xe(()=>{if(h())return He(()=>{h(!1)})});var B={get videoUrl(){return o()},set videoUrl(n){o(n),v()},get videoName(){return c()},set videoName(n){c(n),v()},get sourceKind(){return s()},set sourceKind(n){s(n),v()},get mimeType(){return _()},set mimeType(n){_(n),v()},get open(){return h()},set open(n=!1){h(n),v()},get triggerClass(){return I()},set triggerClass(n){I(n),v()},get contentClass(){return C()},set contentClass(n){C(n),v()},$set:Ae,$on:(n,r)=>Ue(t,n,r)},G=we(),J=te(G);return me(J,()=>tt,(n,r)=>{r(n,{get open(){return h()},set open(m){h(m)},children:(m,l)=>{var f=tn(),k=te(f);{let R=$(()=>qe("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",I())),Q=$(()=>u.ui_videoActionsMenu_trigger_ariaLabel());me(k,()=>Ge,(j,F)=>{F(j,{get class(){return e(R)},get"aria-label"(){return e(Q)},onclick:W=>W.stopPropagation(),children:(W,ce)=>{Qe(W,{class:"size-3.5"})},$$slots:{default:!0}})})}var z=E(k,2);me(z,()=>Je,(R,Q)=>{Q(R,{get class(){return C()},align:"end",children:(j,F)=>{var W=en(),ce=te(W);me(ce,()=>$e,(Z,ie)=>{ie(Z,{onSelect:()=>void K(),children:(fe,a)=>{Me();var p=Ie();Y(H=>ne(p,H),[()=>u.ui_videoActionsMenu_download_label()]),y(fe,p)},$$slots:{default:!0}})});var x=E(ce,2);{var re=Z=>{var ie=we(),fe=te(ie);me(fe,()=>$e,(a,p)=>{p(a,{onSelect:()=>void ae(e(w).path,u.ui_videoActionsMenu_pathCopied_label()),children:(H,ve)=>{Me();var A=Ie();Y(X=>ne(A,X),[()=>u.ui_videoActionsMenu_copyPath_label()]),y(H,A)},$$slots:{default:!0}})}),y(Z,ie)},D=Z=>{var ie=we(),fe=te(ie);me(fe,()=>$e,(a,p)=>{p(a,{onSelect:()=>void ae(o(),u.ui_videoActionsMenu_linkCopied_label()),children:(H,ve)=>{Me();var A=Ie();Y(X=>ne(A,X),[()=>u.ui_videoActionsMenu_copyLink_label()]),y(H,A)},$$slots:{default:!0}})}),y(Z,ie)};q(x,Z=>{e(L)==="workspace"&&e(w)?Z(re):e(L)==="remote"&&Z(D,1)})}var he=E(x,2);{var oe=Z=>{var ie=Qt(),fe=te(ie);me(fe,()=>et,(U,ee)=>{ee(U,{})});var a=E(fe,2);{var p=U=>{var ee=qt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>u.ui_videoActionsMenu_duration_label({duration:ht(e(S)*1e3)})]),y(U,ee)};q(a,U=>{e(S)!==null&&U(p)})}var H=E(a,2);{var ve=U=>{var ee=Gt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>u.ui_videoActionsMenu_dimensions_label({width:Ke(e(d).width),height:Ke(e(d).height)})]),y(U,ee)};q(H,U=>{e(d)&&U(ve)})}var A=E(H,2);{var X=U=>{var ee=Jt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>nt(e(M))]),y(U,ee)};q(A,U=>{e(M)!==null&&U(X)})}y(Z,ie)};q(he,Z=>{(e(S)!==null||e(d)||e(M)!==null)&&Z(oe)})}y(j,W)},$$slots:{default:!0}})}),y(m,f)},$$slots:{default:!0}})}),y(i,G),Te(B)}var nn=V('<p class="type-body text-white/80" role="status"> </p>'),an=V('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function rn(i,t){if(new.target)return ze({component:rn,...i});Ee(t,!0);const o=d=>{lt(d,{get videoUrl(){return s()},get videoName(){return _()},get sourceKind(){return I()},get mimeType(){return C()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let c=g(t,"open",15,!1),s=g(t,"videoUrl",7),_=g(t,"videoName",23,()=>u.chat_videoBlock_fromAgent_label()),h=g(t,"poster",7),I=g(t,"sourceKind",7),C=g(t,"mimeType",7),T=g(t,"openerElement",7,null),w=g(t,"onClose",7),L=se(!1);xe(()=>{!c()||!s()||P(L,!1)});var S={get open(){return c()},set open(d=!1){c(d),v()},get videoUrl(){return s()},set videoUrl(d){s(d),v()},get videoName(){return _()},set videoName(d=u.chat_videoBlock_fromAgent_label()){_(d),v()},get poster(){return h()},set poster(d){h(d),v()},get sourceKind(){return I()},set sourceKind(d){I(d),v()},get mimeType(){return C()},set mimeType(d){C(d),v()},get openerElement(){return T()},set openerElement(d=null){T(d),v()},get onClose(){return w()},set onClose(d){w(d),v()},$set:Ae,$on:(d,M)=>Ue(t,d,M)};{let d=$(()=>u.chat_videoBlock_dialog_title({name:_()})),M=$(()=>u.chat_videoBlock_close_ariaLabel());Xe(i,{get ariaLabel(){return e(d)},get closeLabel(){return e(M)},get openerElement(){return T()},get onClose(){return w()},get actions(){return o},get open(){return c()},set open(N){c(N)},children:(N,b)=>{var O=an(),K=pe(O),ae=ye(K,!0),B=E(K,2);{var G=J=>{var n=nn(),r=ye(n,!0);Y(m=>ne(r,m),[()=>u.chat_videoBlock_unavailable_description()]),y(J,n)};q(B,J=>{e(L)&&J(G)})}ge(O),Y(J=>{ke(K,"src",s()),ke(K,"poster",h()),ke(K,"aria-label",_()),ne(ae,J)},[()=>u.chat_videoBlock_unsupported_description()]),Ne("error",K,()=>P(L,!0)),y(N,O)},$$slots:{default:!0}})}return Te(S)}var on=V('<span class="block truncate text-foreground"> </span>'),ln=V("<!> ",1),sn=V("<!> <!>",1),cn=V('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),un=V('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function dn(i,t){if(new.target)return ze({component:dn,...i});Ee(t,!0);let o=g(t,"name",7),c=g(t,"reason",7),s=g(t,"path",7),_=g(t,"workspaceId",7),h=g(t,"onRetry",7);const I=$(()=>c()==="missing"?u.ui_mediaUnavailable_missing_description():c()==="unsupported"?u.ui_mediaUnavailable_unsupported_description():c()==="other-workspace"?u.ui_mediaUnavailable_otherWorkspace_description():c()==="invalid-link"?u.ui_mediaUnavailable_invalidLink_description():u.ui_mediaUnavailable_loadFailed_description());function C(r){r.preventDefault(),r.stopPropagation()}function T(r){C(r),h()?.()}async function w(r){if(C(r),!!s())try{await Re(s()),_e.success(u.ui_imageActionsMenu_pathCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}function L(r){if(C(r),!s()||!_())return;const m=s().split("/").map(encodeURIComponent).join("/");Et(`intent://local/file/${m}`,{workspaceId:ut(_())})}var S={get name(){return o()},set name(r){o(r),v()},get reason(){return c()},set reason(r){c(r),v()},get path(){return s()},set path(r){s(r),v()},get workspaceId(){return _()},set workspaceId(r){_(r),v()},get onRetry(){return h()},set onRetry(r){h(r),v()},$set:Ae,$on:(r,m)=>Ue(t,r,m)},d=un(),M=pe(d),N=pe(M),b=pe(N);Pe(b,{get icon(){return kt},class:"size-3.5"}),ge(N);var O=E(N,2),K=pe(O);{var ae=r=>{var m=on(),l=ye(m,!0);De(m,(f,k)=>Tt?.(f,k),o),Y(()=>ne(l,o())),y(r,m)};q(K,r=>{o()&&r(ae)})}var B=E(K,2),G=ye(B,!0);ge(O),ge(M);var J=E(M,2);{var n=r=>{var m=cn(),l=pe(m);{var f=R=>{{let Q=$(()=>u.chat_shared_retry_label());Le(R,{variant:"ghost",size:"icon-compact",get tooltip(){return e(Q)},onclick:T,children:(j,F)=>{Pe(j,{get icon(){return Ct},size:"xs"})},$$slots:{default:!0}})}};q(l,R=>{h()&&R(f)})}var k=E(l,2);{var z=R=>{var Q=sn(),j=te(Q);{var F=ce=>{Le(ce,{variant:"ghost",size:"compact",onclick:L,children:(x,re)=>{var D=ln(),he=te(D);Pe(he,{get icon(){return Lt},size:"xs"});var oe=E(he);Y(Z=>ne(oe,` ${Z??""}`),[()=>u.chat_changesPanel_openFile_tooltip()]),y(x,D)},$$slots:{default:!0}})};q(j,ce=>{_()&&c()!=="other-workspace"&&c()!=="invalid-link"&&ce(F)})}var W=E(j,2);{let ce=$(()=>u.ui_imageActionsMenu_copyPath_label());Le(W,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ce)},onclick:w,children:(x,re)=>{Pe(x,{get icon(){return Pt},size:"xs"})},$$slots:{default:!0}})}y(R,Q)};q(k,R=>{s()&&R(z)})}ge(m),y(r,m)};q(J,r=>{(h()||s())&&r(n)})}return ge(d),Y(()=>{ke(d,"data-reason",c()),ne(G,e(I))}),y(i,d),Te(S)}export{ot as I,Xe as M,lt as V,it as Z,Yt as a,dn as b,rn as c,rt as d,Ft as e,Ve as f,St as m,Ye as p,Bn as r,jn as s};
1
+ import{$ as st}from"./C2wWLl1x.js";import{nM as ct,bl as ut}from"./CI4_aI7e.js";import{g as dt}from"./CMiilI_P.js";import{t as ze,bo as g,bw as Ae,b as Ue,bm as u,br as mt}from"./51_h0jm2.js";import{ai as We,bs as Ee,ca as xe,aD as e,a7 as we,ay as te,W as y,bn as Te,bV as se,aA as v,a5 as pe,bS as E,bH as P,bA as ge,b_ as Y,aj as Ce,aw as Ne,bl as ye,bO as ne,aB as V,c9 as $,be as Me,b$ as Ie}from"./CJxGDkBm.js";import{i as q}from"./PXCFrn2V.js";import{k as ft}from"./C9UsZ4re.js";import{s as ke,e as qe,f as pt,g as gt}from"./CpPNoOk-.js";import{b as Se}from"./NtFyWdpR.js";import{c as me}from"./DGmOjLYi.js";import{q as He,l as Ge,d as Je,e as $e,K as Qe,h as et,M as tt}from"./rei1qYSi.js";import{a as vt}from"./CC7to1B5.js";import{m as _e}from"./Cz-HgbT1.js";import{f as Le}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{l as Ke,f as nt,m as _t,a as ht}from"./DqFWZ_g1.js";import"./ChTqQfQN.js";import"./BLb6jd9K.js";import"./BROVvkEL.js";import{bL as Re}from"./7i9XTDuo.js";import{s as je}from"./DxvSggY5.js";import{F as Pe,d3 as bt,bW as wt,bX as yt,cq as xt,bF as kt,cr as Ct,aZ as Pt,a8 as Lt}from"./DSQT151l.js";import{S as Mt}from"./DrMbcJpA.js";import{n as It,g as $t}from"./BxwkoIbZ.js";import{e as De}from"./Bjy4ygfJ.js";import{i as zt,f as At}from"./BaGw_bDr.js";import{P as Ut}from"./KAO5AtPr.js";import{h as Et}from"./pehcYFWW.js";import{t as Tt}from"./DAsc1V4f.js";function Nt(i,t){return i?.isExternalLink===!0&&typeof i.workspaceId=="string"&&i.workspaceId?i.workspaceId:t||void 0}function St(i,t,o){const c=i.label||i.id||"mention";if(i.type==="member")return st(c);if(i.type==="note"&&i.id&&o){const s=Nt(i.meta,t),_=s?o(s,i.id)?.trim():void 0;if(_)return _}return c}function Bn(i,t,o){if(typeof document>"u"||!i.includes('data-type="note"'))return i;const c=document.createElement("template");c.innerHTML=i;let s=!1;for(const _ of c.content.querySelectorAll('[data-mention][data-type="note"]')){let h=null;try{h=JSON.parse(_.getAttribute("data-meta")||"{}")}catch{h=null}const I=_.textContent??"",C=St({type:"note",id:_.getAttribute("data-id"),label:I,meta:h},t,o);C!==I&&(_.textContent=C,s=!0)}return s?c.innerHTML:i}const jn=(i,t)=>{let o;try{o=dt().state}catch{return}const c=o?.workspaceNotes?.byWorkspaceId?.[i]?.notes;return c?ct(c,t)?.title:void 0};var Kt=V('<p class="mt-2 max-w-[90vw] rounded-md bg-black/60 px-3 py-1.5 text-center text-sm text-white"> </p>'),Rt=V('<div data-media-lightbox-root="" data-image-lightbox-root="" class="fixed inset-0 z-[1000] flex cursor-zoom-out flex-col items-center justify-center bg-black/80 p-4 backdrop-blur-sm" style="pointer-events: auto;" role="dialog" aria-modal="true" tabindex="-1"><div class="absolute right-4 top-4 z-[1002] flex items-center gap-1"><!> <!></div> <div class="flex min-h-0 w-full flex-1 items-center justify-center"><!></div> <!></div>');function Xe(i,t){if(new.target)return ze({component:Xe,...i});Ee(t,!0);let o=g(t,"open",15,!1),c=g(t,"ariaLabel",7),s=g(t,"closeLabel",7),_=g(t,"onClose",7),h=g(t,"openerElement",7,null),I=g(t,"children",7),C=g(t,"actions",7),T=g(t,"caption",7),w=g(t,"onKeydown",7),L=g(t,"onCopy",7);const S=zt(),d=At(b);let M=se(null),N=se(null);function b(){o()&&(o(!1),_()?.(),h()?.isConnected&&h().focus({preventScroll:!0}))}function O(n){(n.target instanceof Element?n.target:null)?.closest('[data-media-lightbox-content], [role="toolbar"], button, input')||b()}function K(n){if(w()?.(n),n.defaultPrevented||n.key!=="Tab"||!e(M))return;const r=Array.from(e(M).querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')),m=r[0],l=r[r.length-1];!m||!l||(n.shiftKey&&document.activeElement===m?(n.preventDefault(),l.focus()):!n.shiftKey&&document.activeElement===l&&(n.preventDefault(),m.focus()))}xe(()=>{if(o())return He(b)}),xe(()=>{!o()||!e(N)||requestAnimationFrame(()=>e(N)?.focus())});var ae={get open(){return o()},set open(n=!1){o(n),v()},get ariaLabel(){return c()},set ariaLabel(n){c(n),v()},get closeLabel(){return s()},set closeLabel(n){s(n),v()},get onClose(){return _()},set onClose(n){_(n),v()},get openerElement(){return h()},set openerElement(n=null){h(n),v()},get children(){return I()},set children(n){I(n),v()},get actions(){return C()},set actions(n){C(n),v()},get caption(){return T()},set caption(n){T(n),v()},get onKeydown(){return w()},set onKeydown(n){w(n),v()},get onCopy(){return L()},set onCopy(n){L(n),v()},$set:Ae,$on:(n,r)=>Ue(t,n,r)},B=we(),G=te(B);{var J=n=>{{let r=$(()=>S?.target()??"body");Ut(n,{get target(){return e(r)},zIndex:1e3,children:(m,l)=>{var f=Rt(),k=pe(f),z=pe(k);{var R=x=>{var re=we(),D=te(re);je(D,C),y(x,re)};q(z,x=>{C()&&x(R)})}var Q=E(z,2);Le(Q,{variant:"ghost",size:"icon",class:"text-white hover:bg-white/20 hover:text-white",onclick:b,get"aria-label"(){return s()},get ref(){return e(N)},set ref(x){P(N,x,!0)},children:(x,re)=>{Pe(x,{get icon(){return bt},size:"lg"})},$$slots:{default:!0}}),ge(k),De(k,x=>d?.(x));var j=E(k,2),F=pe(j);je(F,I),ge(j),De(j,x=>d?.(x));var W=E(j,2);{var ce=x=>{var re=Kt(),D=ye(re,!0);Y(()=>ne(D,T())),y(x,re)};q(W,x=>{T()&&x(ce)})}ge(f),Se(f,x=>P(M,x),()=>e(M)),Y(()=>ke(f,"aria-label",c())),Ce("click",f,O),Ce("keydown",f,K),Ne("copy",f,function(...x){L()?.apply(this,x)}),It(3,f,()=>$t,()=>({tier:"moderate"})),y(m,f)},$$slots:{default:!0}})}};q(G,n=>{o()&&n(J)})}return y(i,B),Te(ae)}We(["click","keydown"]);function Ye(i){if(!i.startsWith("workspace-file://"))return null;const o=i.slice(17).split(/[?#]/)[0].split("/"),c=o[0],s=o.slice(1);if(!c||s.length===0)return null;const _=[];for(const h of s){if(!h)return null;try{_.push(decodeURIComponent(h))}catch{return null}}return{workspaceId:c,path:_.join("/")}}function at(i){try{return new URL(i).protocol==="https:"}catch{return!1}}function Ze(i){const t=/^data:([^;,]+);base64,(.*)$/s.exec(i);return t?{mimeType:t[1],base64:t[2]}:null}function Ve(i){return at(i)||Ye(i)!==null||/^workspace-asset:\/\/[^/?#]+/.test(i)||/^data:image\/[a-z0-9.+-]+(?:;[^,]*)?,/i.test(i)}function rt(i){if(i.length===0)return 0;let t=0;return i.endsWith("==")?t=2:i.endsWith("=")&&(t=1),Math.floor(i.length*3/4)-t}function Ft(i,t){const o=atob(i),c=new Uint8Array(o.length);for(let s=0;s<o.length;s++)c[s]=o.charCodeAt(s);return new Blob([c],{type:t})}const Ot={"image/png":"png","image/jpeg":"jpg","image/gif":"gif","image/webp":"webp","image/svg+xml":"svg","image/avif":"avif","image/bmp":"bmp"};function Bt(i){if(i.workspacePath){const s=i.workspacePath.split("/").pop();if(s)return s}const t=(i.imageName||"image").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(t))return t;const o=i.mimeType?.split(";")[0].trim().toLowerCase(),c=o&&Ot[o]||"png";return`${t}.${c}`}var jt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-dimensions"> </div>'),Dt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="image-info-size"> </div>'),Zt=V("<!> <!> <!>",1),Vt=V("<!> <!> <!> <!>",1),Wt=V("<!> <!>",1);function ot(i,t){if(new.target)return ze({component:ot,...i});Ee(t,!0);let o=g(t,"imageUrl",7),c=g(t,"imageName",7),s=g(t,"open",15,!1),_=g(t,"triggerClass",7),h=g(t,"contentClass",7);const I=$(()=>Ze(o())),C=$(()=>Ye(o())),T=$(()=>at(o()));let w=se(null),L=se(null),S=null;function d(){if(S===o())return;const l=S=o();P(w,null),P(L,e(I)?rt(e(I).base64):null,!0);const f=new Image;f.onload=()=>{S===l&&P(w,{width:f.naturalWidth,height:f.naturalHeight},!0)},f.src=o(),e(I)||fetch(o()).then(k=>k.ok?k.blob():null).then(k=>{k&&S===l&&P(L,k.size,!0)}).catch(()=>{})}xe(()=>{s()&&d()}),xe(()=>{if(s())return He(()=>{s(!1)})});async function M(l=o()){const f=Ze(l);if(f)return Ft(f.base64,f.mimeType);const k=await fetch(l);if(!k.ok)throw new Error(`Image fetch failed: ${k.status}`);return await k.blob()}async function N(){let l=null;try{let f=o(),k=e(I)?.mimeType;if(!e(I)){const R=await M();k=R.type,l=URL.createObjectURL(R),f=l}const z=document.createElement("a");z.href=f,z.download=Bt({workspacePath:e(C)?.path,imageName:c(),mimeType:k}),document.body.appendChild(z);try{z.click()}finally{z.remove()}}catch{_e.error(u.ui_imageActionsMenu_downloadFailed_error())}finally{l&&URL.revokeObjectURL(l)}}async function b(){if(e(C))try{await Re(e(C).path),_e.success(u.ui_imageActionsMenu_pathCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}async function O(){if(e(T))try{await Re(o()),_e.success(u.ui_imageActionsMenu_linkCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}async function K(l){let f,k;try{let z;if(l.type.split(";")[0].trim()==="image/svg+xml"){k=URL.createObjectURL(l);const j=new Image;j.src=k,await j.decode(),z=j}else z=f=await createImageBitmap(l);const R=document.createElement("canvas");R.width=z instanceof HTMLImageElement?z.naturalWidth:z.width,R.height=z instanceof HTMLImageElement?z.naturalHeight:z.height;const Q=R.getContext("2d");if(!Q)throw new Error("2d canvas context unavailable");return Q.drawImage(z,0,0),await new Promise((j,F)=>{R.toBlob(W=>W?j(W):F(new Error("canvas toBlob failed")),"image/png")})}finally{f?.close(),k&&URL.revokeObjectURL(k)}}async function ae(l=o()){try{let f=await M(l);f.type!=="image/png"&&(f=await K(f)),await navigator.clipboard.write([new ClipboardItem({"image/png":f})]),_e.success(u.ui_imageActionsMenu_imageCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}function B(l,f=o()){return l.defaultPrevented||!Ve(f)||l instanceof KeyboardEvent&&(l.key.toLowerCase()!=="c"||!(l.metaKey||l.ctrlKey)||l.altKey||l.shiftKey||l.isComposing)||vt(l.target)||document.getSelection()?.toString()?!1:(l.preventDefault(),l.stopPropagation(),l instanceof KeyboardEvent&&l.repeat||(ae(f),s(!1)),!0)}var G={handleCopy:B,get imageUrl(){return o()},set imageUrl(l){o(l),v()},get imageName(){return c()},set imageName(l){c(l),v()},get open(){return s()},set open(l=!1){s(l),v()},get triggerClass(){return _()},set triggerClass(l){_(l),v()},get contentClass(){return h()},set contentClass(l){h(l),v()},$set:Ae,$on:(l,f)=>Ue(t,l,f)},J=we(),n=te(J);{var r=l=>{var f=we(),k=te(f);me(k,()=>tt,(z,R)=>{R(z,{get open(){return s()},set open(Q){s(Q)},children:(Q,j)=>{var F=Wt(),W=te(F);{const x=(D,he)=>{let oe=()=>(he?.()).props;{let Z=$(()=>u.ui_imageActionsMenu_trigger_ariaLabel());Le(D,mt(oe,{variant:"plain",size:"icon-sm",wrapContent:!1,get active(){return s()},get"aria-label"(){return e(Z)},children:(ie,fe)=>{Qe(ie,{class:"size-3.5"})},$$slots:{default:!0}}))}};let re=$(()=>qe("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",_()));me(W,()=>Ge,(D,he)=>{he(D,{get class(){return e(re)},onclick:oe=>oe.stopPropagation(),onkeydown:oe=>B(oe),oncopy:oe=>B(oe),child:x,$$slots:{child:!0}})})}var ce=E(W,2);me(ce,()=>Je,(x,re)=>{re(x,{get class(){return h()},align:"end",onkeydown:D=>B(D),oncopy:D=>B(D),children:(D,he)=>{var oe=Vt(),Z=te(oe);me(Z,()=>$e,(A,X)=>{X(A,{onSelect:()=>void N(),children:(U,ee)=>{Me();var le=Ie();Y(ue=>ne(le,ue),[()=>u.ui_imageActionsMenu_download_label()]),y(U,le)},$$slots:{default:!0}})});var ie=E(Z,2);me(ie,()=>$e,(A,X)=>{X(A,{onSelect:()=>void ae(),children:(U,ee)=>{Me();var le=Ie();Y(ue=>ne(le,ue),[()=>u.ui_imageActionsMenu_copyImage_label()]),y(U,le)},$$slots:{default:!0}})});var fe=E(ie,2);{var a=A=>{var X=we(),U=te(X);me(U,()=>$e,(ee,le)=>{le(ee,{onSelect:()=>void b(),children:(ue,Fe)=>{Me();var de=Ie();Y(be=>ne(de,be),[()=>u.ui_imageActionsMenu_copyPath_label()]),y(ue,de)},$$slots:{default:!0}})}),y(A,X)},p=A=>{var X=we(),U=te(X);me(U,()=>$e,(ee,le)=>{le(ee,{onSelect:()=>void O(),children:(ue,Fe)=>{Me();var de=Ie();Y(be=>ne(de,be),[()=>u.ui_imageActionsMenu_copyLink_label()]),y(ue,de)},$$slots:{default:!0}})}),y(A,X)};q(fe,A=>{e(C)?A(a):e(T)&&A(p,1)})}var H=E(fe,2);{var ve=A=>{var X=Zt(),U=te(X);me(U,()=>et,(de,be)=>{be(de,{})});var ee=E(U,2);{var le=de=>{var be=jt(),Oe=ye(be,!0);Y(Be=>ne(Oe,Be),[()=>u.ui_imageActionsMenu_dimensions_label({width:Ke(e(w).width),height:Ke(e(w).height)})]),y(de,be)};q(ee,de=>{e(w)&&de(le)})}var ue=E(ee,2);{var Fe=de=>{var be=Dt(),Oe=ye(be,!0);Y(Be=>ne(Oe,Be),[()=>nt(e(L))]),y(de,be)};q(ue,de=>{e(L)!==null&&de(Fe)})}y(A,X)};q(H,A=>{(e(w)||e(L)!==null)&&A(ve)})}y(D,oe)},$$slots:{default:!0}})}),y(Q,F)},$$slots:{default:!0}})}),y(l,f)},m=$(()=>Ve(o()));q(n,l=>{e(m)&&l(r)})}return y(i,J),Te(G)}var Ht=V('<div role="application" tabindex="0" data-testid="zoom-pan-viewport"><div class="flex h-full w-full items-center justify-center will-change-transform" data-testid="zoom-pan-content"><!></div> <div class="absolute bottom-4 left-1/2 z-10 flex -translate-x-1/2 cursor-default items-center gap-2 rounded-full bg-black/60 px-3 py-1.5 backdrop-blur-sm" role="toolbar" tabindex="-1" data-testid="zoom-pan-controls"><!> <div class="w-36"><!></div> <!> <span class="min-w-12 text-center text-xs tabular-nums text-white/90" data-testid="zoom-pan-percent"> </span> <!></div></div>');function it(i,t){if(new.target)return ze({component:it,...i});Ee(t,!0);let o=g(t,"children",7),c=g(t,"minZoom",7,.25),s=g(t,"maxZoom",7,8),_=g(t,"onScaleChange",7);const h=1.25,I=.0015,C=.01,T=4;let w=se(1),L=se(0),S=se(0),d=se(!1),M=se(null);xe(()=>{_()?.(e(w))});let N=null,b=0,O=0,K=0,ae=!1;const B=$(()=>_t(e(w),{style:"percent",maximumFractionDigits:0}));function G(a){return Math.min(s(),Math.max(c(),a))}function J(a,p,H){const ve=G(H),A=e(M)?.getBoundingClientRect(),X=A?a-A.left:0,U=A?p-A.top:0;P(L,X-(X-e(L))/e(w)*ve),P(S,U-(U-e(S))/e(w)*ve),P(w,ve,!0)}function n(a){const p=e(M)?.getBoundingClientRect();p?J(p.left+p.width/2,p.top+p.height/2,a):P(w,G(a),!0)}function r(){P(w,1),P(L,0),P(S,0)}function m(a){a.preventDefault();const p=a.ctrlKey?C:I;J(a.clientX,a.clientY,e(w)*Math.exp(-a.deltaY*p))}xe(()=>{const a=e(M);if(a)return a.addEventListener("wheel",m,{passive:!1}),()=>a.removeEventListener("wheel",m)});function l(a){if(a.metaKey||a.ctrlKey||a.altKey)return!1;if(a.key==="+"||a.key==="=")n(e(w)*h);else if(a.key==="-")n(e(w)/h);else if(a.key==="0")r();else return!1;return a.preventDefault(),!0}function f(a){if(a.button>0)return;P(d,!0),N=a.pointerId,b=a.clientX,O=a.clientY,K=0;const p=a.currentTarget;typeof p.setPointerCapture=="function"&&p.setPointerCapture(a.pointerId)}function k(a){if(!e(d)||a.pointerId!==N)return;const p=a.clientX-b,H=a.clientY-O;K+=Math.abs(p)+Math.abs(H),P(L,e(L)+p),P(S,e(S)+H),b=a.clientX,O=a.clientY}function z(a){if(!e(d)||a.pointerId!==N)return;P(d,!1),N=null,K>T&&(ae=!0);const p=a.currentTarget;typeof p.hasPointerCapture=="function"&&typeof p.releasePointerCapture=="function"&&p.hasPointerCapture(a.pointerId)&&p.releasePointerCapture(a.pointerId)}function R(a){ae&&(ae=!1,a.preventDefault(),a.stopPropagation())}function Q(a){const p=Number.parseFloat(a.currentTarget.value);Number.isFinite(p)&&n(p)}var j={handleKeydown:l,get children(){return o()},set children(a){o(a),v()},get minZoom(){return c()},set minZoom(a=.25){c(a),v()},get maxZoom(){return s()},set maxZoom(a=8){s(a),v()},get onScaleChange(){return _()},set onScaleChange(a){_(a),v()},$set:Ae,$on:(a,p)=>Ue(t,a,p)},F=Ht(),W=pe(F),ce=pe(W);je(ce,o),ge(W);var x=E(W,2),re=pe(x);{let a=$(()=>u.ui_zoomPanViewport_zoomOut_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomOut_ariaLabel());Le(re,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>n(e(w)/h),get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return wt}})},$$slots:{default:!0}})}var D=E(re,2),he=pe(D);{let a=$(()=>u.ui_zoomPanViewport_zoomSlider_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomSlider_ariaLabel());Mt(he,{class:"accent-white",get min(){return c()},get max(){return s()},step:"0.01",get value(){return e(w)},oninput:Q,get"aria-label"(){return e(a)},get title(){return e(p)},"data-testid":"zoom-pan-slider"})}ge(D);var oe=E(D,2);{let a=$(()=>u.ui_zoomPanViewport_zoomIn_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_zoomIn_ariaLabel());Le(oe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:()=>n(e(w)*h),get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return yt}})},$$slots:{default:!0}})}var Z=E(oe,2),ie=ye(Z,!0),fe=E(Z,2);{let a=$(()=>u.ui_zoomPanViewport_resetZoom_ariaLabel()),p=$(()=>u.ui_zoomPanViewport_resetZoom_ariaLabel());Le(fe,{variant:"ghost",size:"icon-sm",class:"text-white hover:bg-white/20 hover:text-white",onclick:r,get"aria-label"(){return e(a)},get title(){return e(p)},children:(H,ve)=>{Pe(H,{get icon(){return xt}})},$$slots:{default:!0}})}return ge(x),ge(F),Se(F,a=>P(M,a),()=>e(M)),Y((a,p)=>{pt(F,1,`relative h-full w-full touch-none select-none overflow-hidden ${e(d)?"cursor-grabbing":"cursor-grab"}`),ke(F,"aria-label",a),gt(W,`transform: translate(${e(L)??""}px, ${e(S)??""}px) scale(${e(w)??""}); transform-origin: 0 0;`),ke(x,"aria-label",p),ne(ie,e(B))},[()=>u.ui_zoomPanViewport_viewport_ariaLabel(),()=>u.ui_zoomPanViewport_controls_ariaLabel()]),Ce("pointerdown",F,f),Ce("pointermove",F,k),Ce("pointerup",F,z),Ne("pointercancel",F,z),Ne("click",F,R,!0),Ce("keydown",F,l),Ce("pointerdown",x,a=>a.stopPropagation()),y(i,F),Te(j)}We(["pointerdown","pointermove","pointerup","keydown"]);var Xt=V('<img class="max-h-[90vh] max-w-[90vw] rounded-lg object-contain" draggable="false" data-media-lightbox-content=""/>');function Yt(i,t){if(new.target)return ze({component:Yt,...i});Ee(t,!0);const o=b=>{var O=we(),K=te(O);{var ae=B=>{Se(ot(B,{get imageUrl(){return s()},get imageName(){return _()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]",get open(){return e(L)},set open(G){P(L,G,!0)}}),G=>P(w,G,!0),()=>e(w))};q(K,B=>{C()&&B(ae)})}y(b,O)};let c=g(t,"open",15,!1),s=g(t,"imageUrl",7),_=g(t,"imageName",23,()=>u.ui_imageLightbox_image_alt()),h=g(t,"onClose",7),I=g(t,"openerElement",7,null),C=g(t,"showActionsMenu",7,!1),T=se(void 0),w=se(void 0),L=se(!1);xe(()=>{c()||P(L,!1)});function S(b){d(b),b.defaultPrevented||e(T)?.handleKeydown(b)}function d(b){c()&&C()&&e(w)?.handleCopy(b)}function M(b){!C()||!Ve(s())||(b.preventDefault(),b.stopPropagation(),P(L,!0))}var N={get open(){return c()},set open(b=!1){c(b),v()},get imageUrl(){return s()},set imageUrl(b){s(b),v()},get imageName(){return _()},set imageName(b=u.ui_imageLightbox_image_alt()){_(b),v()},get onClose(){return h()},set onClose(b){h(b),v()},get openerElement(){return I()},set openerElement(b=null){I(b),v()},get showActionsMenu(){return C()},set showActionsMenu(b=!1){C(b),v()},$set:Ae,$on:(b,O)=>Ue(t,b,O)};{let b=$(()=>u.ui_imageLightbox_preview_ariaLabel()),O=$(()=>u.ui_imageLightbox_close_ariaLabel());Xe(i,{get ariaLabel(){return e(b)},get closeLabel(){return e(O)},get onClose(){return h()},get openerElement(){return I()},get actions(){return o},onKeydown:S,onCopy:d,get open(){return c()},set open(K){c(K)},children:(K,ae)=>{var B=we(),G=te(B);ft(G,s,J=>{Se(it(J,{children:(n,r)=>{var m=Xt();Y(()=>{ke(m,"src",s()),ke(m,"alt",_())}),Ce("contextmenu",m,M),y(n,m)},$$slots:{default:!0}}),n=>P(T,n,!0),()=>e(T))}),y(K,B)},$$slots:{default:!0}})}return Te(N)}We(["contextmenu"]);var qt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-duration"> </div>'),Gt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-dimensions"> </div>'),Jt=V('<div class="type-caption px-2 py-1 text-muted-foreground" data-testid="video-info-size"> </div>'),Qt=V("<!> <!> <!> <!>",1),en=V("<!> <!> <!>",1),tn=V("<!> <!>",1);function lt(i,t){if(new.target)return ze({component:lt,...i});Ee(t,!0);let o=g(t,"videoUrl",7),c=g(t,"videoName",7),s=g(t,"sourceKind",7),_=g(t,"mimeType",7),h=g(t,"open",15,!1),I=g(t,"triggerClass",7),C=g(t,"contentClass",7);const T=$(()=>Ze(o())),w=$(()=>Ye(o())),L=$(()=>s()??(e(T)?"inline":e(w)?"workspace":"remote"));let S=se(null),d=se(null),M=se(null),N=null;function b(){if(N===o())return;const n=N=o();P(S,null),P(d,null),P(M,e(T)?rt(e(T).base64):null,!0);const r=document.createElement("video");r.preload="metadata",r.onloadedmetadata=()=>{N===n&&(Number.isFinite(r.duration)&&r.duration>0&&P(S,r.duration,!0),r.videoWidth>0&&r.videoHeight>0&&P(d,{width:r.videoWidth,height:r.videoHeight},!0))},r.src=o(),e(T)||fetch(o()).then(m=>m.ok?m.blob():null).then(m=>{m&&N===n&&P(M,m.size,!0)}).catch(()=>{})}function O(){const n=e(w)?.path.split("/").pop();if(n)return n;const r=(c()||"video").replace(/[/\\]/g,"_");if(/\.[A-Za-z0-9]+$/.test(r))return r;const m=(_()??e(T)?.mimeType)==="video/webm"?"webm":"mp4";return`${r}.${m}`}async function K(){let n=null;try{let r=o();if(!e(T)){const l=await fetch(o());if(!l.ok)throw new Error(`Video fetch failed: ${l.status}`);n=URL.createObjectURL(await l.blob()),r=n}const m=document.createElement("a");m.href=r,m.download=O(),document.body.appendChild(m),m.click(),m.remove(),n&&URL.revokeObjectURL(n)}catch{n&&URL.revokeObjectURL(n),_e.error(u.ui_videoActionsMenu_downloadFailed_error())}}async function ae(n,r){try{await Re(n),_e.success(r)}catch{_e.error(u.ui_videoActionsMenu_copyFailed_error())}}xe(()=>{h()&&b()}),xe(()=>{if(h())return He(()=>{h(!1)})});var B={get videoUrl(){return o()},set videoUrl(n){o(n),v()},get videoName(){return c()},set videoName(n){c(n),v()},get sourceKind(){return s()},set sourceKind(n){s(n),v()},get mimeType(){return _()},set mimeType(n){_(n),v()},get open(){return h()},set open(n=!1){h(n),v()},get triggerClass(){return I()},set triggerClass(n){I(n),v()},get contentClass(){return C()},set contentClass(n){C(n),v()},$set:Ae,$on:(n,r)=>Ue(t,n,r)},G=we(),J=te(G);return me(J,()=>tt,(n,r)=>{r(n,{get open(){return h()},set open(m){h(m)},children:(m,l)=>{var f=tn(),k=te(f);{let R=$(()=>qe("flex h-7 w-7 items-center justify-center rounded-md bg-black/60 text-white","hover:bg-black/75",I())),Q=$(()=>u.ui_videoActionsMenu_trigger_ariaLabel());me(k,()=>Ge,(j,F)=>{F(j,{get class(){return e(R)},get"aria-label"(){return e(Q)},onclick:W=>W.stopPropagation(),children:(W,ce)=>{Qe(W,{class:"size-3.5"})},$$slots:{default:!0}})})}var z=E(k,2);me(z,()=>Je,(R,Q)=>{Q(R,{get class(){return C()},align:"end",children:(j,F)=>{var W=en(),ce=te(W);me(ce,()=>$e,(Z,ie)=>{ie(Z,{onSelect:()=>void K(),children:(fe,a)=>{Me();var p=Ie();Y(H=>ne(p,H),[()=>u.ui_videoActionsMenu_download_label()]),y(fe,p)},$$slots:{default:!0}})});var x=E(ce,2);{var re=Z=>{var ie=we(),fe=te(ie);me(fe,()=>$e,(a,p)=>{p(a,{onSelect:()=>void ae(e(w).path,u.ui_videoActionsMenu_pathCopied_label()),children:(H,ve)=>{Me();var A=Ie();Y(X=>ne(A,X),[()=>u.ui_videoActionsMenu_copyPath_label()]),y(H,A)},$$slots:{default:!0}})}),y(Z,ie)},D=Z=>{var ie=we(),fe=te(ie);me(fe,()=>$e,(a,p)=>{p(a,{onSelect:()=>void ae(o(),u.ui_videoActionsMenu_linkCopied_label()),children:(H,ve)=>{Me();var A=Ie();Y(X=>ne(A,X),[()=>u.ui_videoActionsMenu_copyLink_label()]),y(H,A)},$$slots:{default:!0}})}),y(Z,ie)};q(x,Z=>{e(L)==="workspace"&&e(w)?Z(re):e(L)==="remote"&&Z(D,1)})}var he=E(x,2);{var oe=Z=>{var ie=Qt(),fe=te(ie);me(fe,()=>et,(U,ee)=>{ee(U,{})});var a=E(fe,2);{var p=U=>{var ee=qt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>u.ui_videoActionsMenu_duration_label({duration:ht(e(S)*1e3)})]),y(U,ee)};q(a,U=>{e(S)!==null&&U(p)})}var H=E(a,2);{var ve=U=>{var ee=Gt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>u.ui_videoActionsMenu_dimensions_label({width:Ke(e(d).width),height:Ke(e(d).height)})]),y(U,ee)};q(H,U=>{e(d)&&U(ve)})}var A=E(H,2);{var X=U=>{var ee=Jt(),le=ye(ee,!0);Y(ue=>ne(le,ue),[()=>nt(e(M))]),y(U,ee)};q(A,U=>{e(M)!==null&&U(X)})}y(Z,ie)};q(he,Z=>{(e(S)!==null||e(d)||e(M)!==null)&&Z(oe)})}y(j,W)},$$slots:{default:!0}})}),y(m,f)},$$slots:{default:!0}})}),y(i,G),Te(B)}var nn=V('<p class="type-body text-white/80" role="status"> </p>'),an=V('<div data-media-lightbox-content="" data-video-lightbox-root="" class="flex max-h-[90vh] max-w-[90vw] cursor-default flex-col items-center gap-3"><video controls="" preload="metadata" playsinline="" class="max-h-[85vh] max-w-[90vw] rounded-lg bg-black object-contain shadow-(--elevation-overlay)" data-testid="chat-video-player"> </video> <!></div>',2);function rn(i,t){if(new.target)return ze({component:rn,...i});Ee(t,!0);const o=d=>{lt(d,{get videoUrl(){return s()},get videoName(){return _()},get sourceKind(){return I()},get mimeType(){return C()},triggerClass:"h-9 w-9 bg-white/0 hover:bg-white/20",contentClass:"z-[1003]"})};let c=g(t,"open",15,!1),s=g(t,"videoUrl",7),_=g(t,"videoName",23,()=>u.chat_videoBlock_fromAgent_label()),h=g(t,"poster",7),I=g(t,"sourceKind",7),C=g(t,"mimeType",7),T=g(t,"openerElement",7,null),w=g(t,"onClose",7),L=se(!1);xe(()=>{!c()||!s()||P(L,!1)});var S={get open(){return c()},set open(d=!1){c(d),v()},get videoUrl(){return s()},set videoUrl(d){s(d),v()},get videoName(){return _()},set videoName(d=u.chat_videoBlock_fromAgent_label()){_(d),v()},get poster(){return h()},set poster(d){h(d),v()},get sourceKind(){return I()},set sourceKind(d){I(d),v()},get mimeType(){return C()},set mimeType(d){C(d),v()},get openerElement(){return T()},set openerElement(d=null){T(d),v()},get onClose(){return w()},set onClose(d){w(d),v()},$set:Ae,$on:(d,M)=>Ue(t,d,M)};{let d=$(()=>u.chat_videoBlock_dialog_title({name:_()})),M=$(()=>u.chat_videoBlock_close_ariaLabel());Xe(i,{get ariaLabel(){return e(d)},get closeLabel(){return e(M)},get openerElement(){return T()},get onClose(){return w()},get actions(){return o},get open(){return c()},set open(N){c(N)},children:(N,b)=>{var O=an(),K=pe(O),ae=ye(K,!0),B=E(K,2);{var G=J=>{var n=nn(),r=ye(n,!0);Y(m=>ne(r,m),[()=>u.chat_videoBlock_unavailable_description()]),y(J,n)};q(B,J=>{e(L)&&J(G)})}ge(O),Y(J=>{ke(K,"src",s()),ke(K,"poster",h()),ke(K,"aria-label",_()),ne(ae,J)},[()=>u.chat_videoBlock_unsupported_description()]),Ne("error",K,()=>P(L,!0)),y(N,O)},$$slots:{default:!0}})}return Te(S)}var on=V('<span class="block truncate text-foreground"> </span>'),ln=V("<!> ",1),sn=V("<!> <!>",1),cn=V('<span class="flex shrink-0 flex-wrap items-center gap-1"><!> <!></span>'),un=V('<div class="type-caption flex w-fit min-w-0 max-w-full items-center gap-3 whitespace-normal py-1 text-muted-foreground" role="status" data-testid="media-unavailable"><span class="flex min-w-0 max-w-full flex-1 items-start gap-2"><span class="first-line-icon" aria-hidden="true"><!></span> <span class="min-w-0"><!> <span class="block break-words"> </span></span></span> <!></div>');function dn(i,t){if(new.target)return ze({component:dn,...i});Ee(t,!0);let o=g(t,"name",7),c=g(t,"reason",7),s=g(t,"path",7),_=g(t,"workspaceId",7),h=g(t,"onRetry",7);const I=$(()=>c()==="missing"?u.ui_mediaUnavailable_missing_description():c()==="unsupported"?u.ui_mediaUnavailable_unsupported_description():c()==="other-workspace"?u.ui_mediaUnavailable_otherWorkspace_description():c()==="invalid-link"?u.ui_mediaUnavailable_invalidLink_description():u.ui_mediaUnavailable_loadFailed_description());function C(r){r.preventDefault(),r.stopPropagation()}function T(r){C(r),h()?.()}async function w(r){if(C(r),!!s())try{await Re(s()),_e.success(u.ui_imageActionsMenu_pathCopied_label())}catch{_e.error(u.ui_imageActionsMenu_copyFailed_error())}}function L(r){if(C(r),!s()||!_())return;const m=s().split("/").map(encodeURIComponent).join("/");Et(`intent://local/file/${m}`,{workspaceId:ut(_())})}var S={get name(){return o()},set name(r){o(r),v()},get reason(){return c()},set reason(r){c(r),v()},get path(){return s()},set path(r){s(r),v()},get workspaceId(){return _()},set workspaceId(r){_(r),v()},get onRetry(){return h()},set onRetry(r){h(r),v()},$set:Ae,$on:(r,m)=>Ue(t,r,m)},d=un(),M=pe(d),N=pe(M),b=pe(N);Pe(b,{get icon(){return kt},class:"size-3.5"}),ge(N);var O=E(N,2),K=pe(O);{var ae=r=>{var m=on(),l=ye(m,!0);De(m,(f,k)=>Tt?.(f,k),o),Y(()=>ne(l,o())),y(r,m)};q(K,r=>{o()&&r(ae)})}var B=E(K,2),G=ye(B,!0);ge(O),ge(M);var J=E(M,2);{var n=r=>{var m=cn(),l=pe(m);{var f=R=>{{let Q=$(()=>u.chat_shared_retry_label());Le(R,{variant:"ghost",size:"icon-compact",get tooltip(){return e(Q)},onclick:T,children:(j,F)=>{Pe(j,{get icon(){return Ct},size:"xs"})},$$slots:{default:!0}})}};q(l,R=>{h()&&R(f)})}var k=E(l,2);{var z=R=>{var Q=sn(),j=te(Q);{var F=ce=>{Le(ce,{variant:"ghost",size:"compact",onclick:L,children:(x,re)=>{var D=ln(),he=te(D);Pe(he,{get icon(){return Lt},size:"xs"});var oe=E(he);Y(Z=>ne(oe,` ${Z??""}`),[()=>u.chat_changesPanel_openFile_tooltip()]),y(x,D)},$$slots:{default:!0}})};q(j,ce=>{_()&&c()!=="other-workspace"&&c()!=="invalid-link"&&ce(F)})}var W=E(j,2);{let ce=$(()=>u.ui_imageActionsMenu_copyPath_label());Le(W,{variant:"ghost",size:"icon-compact",get tooltip(){return e(ce)},onclick:w,children:(x,re)=>{Pe(x,{get icon(){return Pt},size:"xs"})},$$slots:{default:!0}})}y(R,Q)};q(k,R=>{s()&&R(z)})}ge(m),y(r,m)};q(J,r=>{(h()||s())&&r(n)})}return ge(d),Y(()=>{ke(d,"data-reason",c()),ne(G,e(I))}),y(i,d),Te(S)}export{ot as I,Xe as M,lt as V,it as Z,Yt as a,dn as b,rn as c,rt as d,Ft as e,Ve as f,St as m,Ye as p,Bn as r,jn as s};
@@ -1 +1 @@
1
- var Ze=Object.defineProperty;var Le=o=>{throw TypeError(o)};var $e=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var E=(o,e,r)=>$e(o,typeof e!="symbol"?e+"":e,r),Pe=(o,e,r)=>e.has(o)||Le("Cannot "+r);var l=(o,e,r)=>(Pe(o,e,"read from private field"),r?r.call(o):e.get(o)),P=(o,e,r)=>e.has(o)?Le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),Se=(o,e,r,s)=>(Pe(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r),Ae=(o,e,r)=>(Pe(o,e,"access private method"),r);import{t as le,bo as n,bw as ce,b as de,bp as ye,br as we}from"./51_h0jm2.js";import{c9 as _,aD as u,bH as G,ca as fe,bV as q,bo as Re,bs as ge,a7 as B,ay as F,W as I,bn as he,aA as a,a5 as Ke,bf as Z,bA as Ne,aB as Ge,br as et,c5 as O,bI as tt,bS as Ee,aG as rt}from"./CJxGDkBm.js";import{i as Q}from"./PXCFrn2V.js";import{s as H}from"./DxvSggY5.js";import{b as st}from"./Bc7pHsTy.js";import{c as Ie}from"./DGmOjLYi.js";import{b as Oe,e as ke}from"./CpPNoOk-.js";import{P as De}from"./THdp5Vpk.js";import{g as nt}from"./DZIz7Wk9.js";import{_ as je}from"./Cgn_eC9-.js";import{h as at,aD as it,ar as ot,an as He,l as ut,a6 as lt,at as ct,aq as Ue,ay as dt,a3 as gt,az as ve,aS as Be,a$ as ht,av as D,aQ as We}from"./CdOh_Fmv.js";const ze=dt({component:"toggle-group",parts:["root","item"]}),qe=new at("ToggleGroup.Root");var $;class Qe{constructor(e){E(this,"opts");E(this,"rovingFocusGroup");E(this,"attachment");P(this,$,_(()=>({id:this.opts.id.current,[ze.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":Ue(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=He(this.opts.ref),this.rovingFocusGroup=new gt({candidateAttr:ze.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return u(l(this,$))}set props(e){G(l(this,$),e)}}$=new WeakMap;var ee;class ft extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);P(this,ee,_(()=>this.opts.value.current!==""));this.opts=r}get anyPressed(){return u(l(this,ee))}set anyPressed(r){G(l(this,ee),r)}includesItem(r){return this.opts.value.current===r}toggleItem(r,s){this.includesItem(r)?this.opts.value.current="":(this.opts.value.current=r,this.rovingFocusGroup.setCurrentTabStopId(s))}}ee=new WeakMap;var te;class vt extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!0);P(this,te,_(()=>this.opts.value.current.length>0));this.opts=r}get anyPressed(){return u(l(this,te))}set anyPressed(r){G(l(this,te),r)}includesItem(r){return this.opts.value.current.includes(r)}toggleItem(r,s){this.includesItem(r)?this.opts.value.current=this.opts.value.current.filter(d=>d!==r):(this.opts.value.current=[...this.opts.value.current,r],this.rovingFocusGroup.setCurrentTabStopId(s))}}te=new WeakMap;class mt{static create(e){const{type:r,...s}=e,d=r==="single"?new ft(s):new vt(s);return qe.set(d)}}var j,re,me,be,pe,Xe,X,se,ne;const Fe=class Fe{constructor(e,r){P(this,pe);E(this,"opts");E(this,"root");E(this,"attachment");P(this,j,_(()=>this.opts.disabled.current||this.root.opts.disabled.current));P(this,re,_(()=>this.root.includesItem(this.opts.value.current)));P(this,me,_(()=>this.root.isMulti?void 0:it(this.isPressed,!1)));P(this,be,_(()=>this.root.isMulti?ot(this.isPressed):void 0));P(this,X,q(0));P(this,se,_(()=>({pressed:this.isPressed})));P(this,ne,_(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:u(l(this,X)),"data-orientation":this.root.opts.orientation.current,"data-disabled":Ue(u(l(this,j))),"data-state":bt(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":u(l(this,be)),"aria-checked":u(l(this,me)),disabled:ct(u(l(this,j))),[ze.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=r,this.attachment=He(this.opts.ref),fe(()=>{this.root.opts.rovingFocus.current?G(l(this,X),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):G(l(this,X),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Fe(e,qe.get())}get isPressed(){return u(l(this,re))}set isPressed(e){G(l(this,re),e)}onclick(e){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!u(l(this,j))){if(e.key===ut||e.key===lt){e.preventDefault(),Ae(this,pe,Xe).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return u(l(this,se))}set snippetProps(e){G(l(this,se),e)}get props(){return u(l(this,ne))}set props(e){G(l(this,ne),e)}};j=new WeakMap,re=new WeakMap,me=new WeakMap,be=new WeakMap,pe=new WeakSet,Xe=function(){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},X=new WeakMap,se=new WeakMap,ne=new WeakMap;let Te=Fe;function bt(o){return o?"on":"off"}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),yt=Ge("<div><!></div>");function Ve(o,e){const r=Re();if(new.target)return le({component:Ve,...o});ge(e,!0);let s=n(e,"id",23,()=>ve(r)),d=n(e,"ref",15,null),g=n(e,"value",15),h=n(e,"onValueChange",7,Be),m=n(e,"type",7),b=n(e,"disabled",7,!1),p=n(e,"loop",7,!0),C=n(e,"orientation",7,"horizontal"),y=n(e,"rovingFocus",7,!0),S=n(e,"child",7),f=n(e,"children",7),v=ye(e,pt);function k(){g()===void 0&&g(m()==="single"?"":[])}k(),ht.pre(()=>g(),()=>{k()});const A=mt.create({id:D(()=>s()),value:D(()=>g(),i=>{g(i),h()(i)}),disabled:D(()=>b()),loop:D(()=>p()),orientation:D(()=>C()),rovingFocus:D(()=>y()),type:m(),ref:D(()=>d(),i=>d(i))}),L=_(()=>We(v,A.props));var c={get id(){return s()},set id(i=ve(r)){s(i),a()},get ref(){return d()},set ref(i=null){d(i),a()},get value(){return g()},set value(i){g(i),a()},get onValueChange(){return h()},set onValueChange(i=Be){h(i),a()},get type(){return m()},set type(i){m(i),a()},get disabled(){return b()},set disabled(i=!1){b(i),a()},get loop(){return p()},set loop(i=!0){p(i),a()},get orientation(){return C()},set orientation(i="horizontal"){C(i),a()},get rovingFocus(){return y()},set rovingFocus(i=!0){y(i),a()},get child(){return S()},set child(i){S(i),a()},get children(){return f()},set children(i){f(i),a()},$set:ce,$on:(i,w)=>de(e,i,w)},x=B(),z=F(x);{var R=i=>{var w=B(),T=F(w);H(T,S,()=>({props:u(L)})),I(i,w)},t=i=>{var w=yt();Oe(w,()=>({...u(L)}));var T=Ke(w);H(T,()=>f()??Z),Ne(w),I(i,w)};Q(z,i=>{S()?i(R):i(t,-1)})}return I(o,x),he(c)}var xt=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),_t=Ge("<button><!></button>");function Je(o,e){const r=Re();if(new.target)return le({component:Je,...o});ge(e,!0);let s=n(e,"children",7),d=n(e,"child",7),g=n(e,"ref",15,null),h=n(e,"value",7),m=n(e,"disabled",7,!1),b=n(e,"id",23,()=>ve(r)),p=n(e,"type",7,"button"),C=ye(e,xt);const y=Te.create({id:D(()=>b()),value:D(()=>h()),disabled:D(()=>m()??!1),ref:D(()=>g(),c=>g(c))}),S=_(()=>We(C,y.props,{type:p()}));var f={get children(){return s()},set children(c){s(c),a()},get child(){return d()},set child(c){d(c),a()},get ref(){return g()},set ref(c=null){g(c),a()},get value(){return h()},set value(c){h(c),a()},get disabled(){return m()},set disabled(c=!1){m(c),a()},get id(){return b()},set id(c=ve(r)){b(c),a()},get type(){return p()},set type(c="button"){p(c),a()},$set:ce,$on:(c,x)=>de(e,c,x)},v=B(),k=F(v);{var A=c=>{var x=B(),z=F(x);{let R=_(()=>({props:u(S),...y.snippetProps}));H(z,d,()=>u(R))}I(c,x)},L=c=>{var x=_t();Oe(x,()=>({...u(S)}));var z=Ke(x);H(z,()=>s()??Z,()=>y.snippetProps),Ne(x),I(c,x)};Q(k,c=>{d()?c(A):c(L,-1)})}return I(o,v),he(f)}function Ct(o,e){if(new.target)return le({component:Ct,...o});ge(e,!0);let r=n(e,"open",15,!1),s=n(e,"static",7,!1),d=n(e,"title",7),g=n(e,"description",7),h=n(e,"confirmLabel",7),m=n(e,"cancelLabel",7),b=n(e,"details",7),p=n(e,"busy",7,!1),C=n(e,"submitBusy",7,!1),y=n(e,"canSubmit",7,!0),S=n(e,"focusSubmit",7,!0),f=n(e,"focusCancel",7,!1),v=n(e,"enterKey",7,"submit"),k=n(e,"modEnter",7,"submit"),A=n(e,"destructive",7,!0),L=n(e,"class",7),c=n(e,"closeLabel",7),x=n(e,"onConfirm",7),z=n(e,"onCancel",7);var R={get open(){return r()},set open(t=!1){r(t),a()},get static(){return s()},set static(t=!1){s(t),a()},get title(){return d()},set title(t){d(t),a()},get description(){return g()},set description(t){g(t),a()},get confirmLabel(){return h()},set confirmLabel(t){h(t),a()},get cancelLabel(){return m()},set cancelLabel(t){m(t),a()},get details(){return b()},set details(t){b(t),a()},get busy(){return p()},set busy(t=!1){p(t),a()},get submitBusy(){return C()},set submitBusy(t=!1){C(t),a()},get canSubmit(){return y()},set canSubmit(t=!0){y(t),a()},get focusSubmit(){return S()},set focusSubmit(t=!0){S(t),a()},get focusCancel(){return f()},set focusCancel(t=!1){f(t),a()},get enterKey(){return v()},set enterKey(t="submit"){v(t),a()},get modEnter(){return k()},set modEnter(t="submit"){k(t),a()},get destructive(){return A()},set destructive(t=!0){A(t),a()},get class(){return L()},set class(t){L(t),a()},get closeLabel(){return c()},set closeLabel(t){c(t),a()},get onConfirm(){return x()},set onConfirm(t){x(t),a()},get onCancel(){return z()},set onCancel(t){z(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)};{let t=_(()=>A()?"destructive":"default");st(o,{get static(){return s()},get title(){return d()},get description(){return g()},get submitLabel(){return h()},get cancelLabel(){return m()},get submitVariant(){return u(t)},get busy(){return p()},get submitBusy(){return C()},get canSubmit(){return y()},get focusSubmit(){return S()},get focusCancel(){return f()},get enterKey(){return v()},get modEnter(){return k()},get class(){return L()},get closeLabel(){return c()},get onSubmit(){return x()},get onCancel(){return z()},get open(){return r()},set open(i){r(i)},children:(i,w)=>{var T=B(),W=F(T);{var N=K=>{var M=B(),xe=F(M);H(xe,b),I(K,M)};Q(W,K=>{b()&&K(N)})}I(i,T)},$$slots:{default:!0}})}return he(R)}var V,ae,ie,oe,ue;class Pt{constructor(e,r){P(this,V,q(et([])));P(this,ae);P(this,ie);P(this,oe,q(null));P(this,ue,q(0));Se(this,ae,e),Se(this,ie,r)}get hover(){return u(l(this,oe))}set hover(e){G(l(this,oe),e,!0)}get keyboardIndex(){return u(l(this,ue))}set keyboardIndex(e){G(l(this,ue),e,!0)}get selectedIndexes(){const e=new Set(l(this,ae).call(this));return u(l(this,V)).flatMap((r,s)=>r&&e.has(r.value)?[s]:[])}allocate(e){return O(()=>{const r={value:e,element:null,disabled:!1},s=u(l(this,V)).indexOf(void 0);return s<0?u(l(this,V)).push(r)-1:(u(l(this,V))[s]=r,s)})}release(e){O(()=>{u(l(this,V))[e]&&(u(l(this,V))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,r,s){O(()=>{const d=u(l(this,V))[e];d&&(d.value=r,d.disabled=s)})}register(e,r){O(()=>{const s=u(l(this,V))[e];s&&(s.element=r,this.hover?.registerItem(e,r))})}connect(e){O(()=>{this.hover?.destroy(),this.hover=nt(e,{axis:l(this,ie)});for(const[r,s]of u(l(this,V)).entries())s?.element&&this.hover.registerItem(r,s.element)})}disconnect(){O(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,r){const s=u(l(this,V)).map((h,m)=>({entry:h,entryIndex:m})).filter(({entry:h})=>h?.element&&!h.disabled),d=s.findIndex(({entryIndex:h})=>h===e);if(d<0||s.length===0)return;const g=s[(d+r+s.length)%s.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}V=new WeakMap,ae=new WeakMap,ie=new WeakMap,oe=new WeakMap,ue=new WeakMap;const Ye=Symbol("toggle-group");var St=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),Me=Ge("<!> <!>",1);function wt(o,e){if(new.target)return le({component:wt,...o});ge(e,!0);const r=je({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",15),d=n(e,"onValueChange",7),g=n(e,"type",7,"single"),h=n(e,"disabled",7,!1),m=n(e,"axis",7,"x"),b=n(e,"variant",7,"default"),p=n(e,"size",7,"default"),C=n(e,"class",7,""),y=n(e,"children",7),S=ye(e,St),f=q(null);const v=new Pt(()=>Array.isArray(s())?s():typeof s()=="string"&&s()?[s()]:[],O(()=>m()));tt(Ye,{state:v,get size(){return p()},get variant(){return b()}}),fe(()=>{if(u(f))return v.connect(u(f)),()=>v.disconnect()});function k(t){s(t),d()?.(t)}function A(t){s(t),d()?.(t)}var L={get value(){return s()},set value(t){s(t),a()},get onValueChange(){return d()},set onValueChange(t){d(t),a()},get type(){return g()},set type(t="single"){g(t),a()},get disabled(){return h()},set disabled(t=!1){h(t),a()},get axis(){return m()},set axis(t="x"){m(t),a()},get variant(){return b()},set variant(t="default"){b(t),a()},get size(){return p()},set size(t="default"){p(t),a()},get class(){return C()},set class(t=""){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},c=B(),x=F(c);{var z=t=>{var i=B(),w=F(i);{let T=_(()=>Array.isArray(s())?s():[]),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"multiple",get value(){return u(T)},onValueChange:A,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)},R=t=>{var i=B(),w=F(i);{let T=_(()=>typeof s()=="string"?s():""),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"single",get value(){return u(T)},onValueChange:k,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)};Q(x,t=>{g()==="multiple"?t(z):t(R,-1)})}return I(o,c),he(L)}var It=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function kt(o,e){if(new.target)return le({component:kt,...o});ge(e,!0);const r=je({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",7),d=n(e,"disabled",7,!1),g=n(e,"variant",7,void 0),h=n(e,"size",7,void 0),m=n(e,"tooltip",7,void 0),b=n(e,"class",7,""),p=n(e,"onclick",7),C=n(e,"onfocus",7),y=n(e,"children",7),S=ye(e,It);const f=rt(Ye),v=f.state.allocate(O(()=>s()));let k=q(null);const A=_(()=>h()??f?.size??"default"),L=_(()=>g()??f?.variant??"default");fe(()=>f.state.update(v,s(),d())),fe(()=>(f.state.register(v,u(k)),()=>f.state.register(v,null)));function c(t){f.state.activate(v),C()?.(t)}var x={get value(){return s()},set value(t){s(t),a()},get disabled(){return d()},set disabled(t=!1){d(t),a()},get variant(){return g()},set variant(t=void 0){g(t),a()},get size(){return h()},set size(t=void 0){h(t),a()},get tooltip(){return m()},set tooltip(t=void 0){m(t),a()},get class(){return b()},set class(t=""){b(t),a()},get onclick(){return p()},set onclick(t){p(t),a()},get onfocus(){return C()},set onfocus(t){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},z=B(),R=F(z);{let t=_(()=>ke(r({variant:u(L),size:u(A)}),b()));Ie(R,()=>Je,(i,w)=>{w(i,we({get value(){return s()},get title(){return m()},get disabled(){return d()},get onclick(){return p()},onfocus:c,get class(){return u(t)}},()=>S,{get ref(){return u(k)},set ref(T){G(k,T,!0)},children:(T,W)=>{var N=B(),K=F(N);H(K,()=>y()??Z),I(T,N)},$$slots:{default:!0}}))})}return I(o,z),he(x)}export{Pt as C,Ct as D,wt as T,kt as a};
1
+ var Ze=Object.defineProperty;var Le=o=>{throw TypeError(o)};var $e=(o,e,r)=>e in o?Ze(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r;var E=(o,e,r)=>$e(o,typeof e!="symbol"?e+"":e,r),Pe=(o,e,r)=>e.has(o)||Le("Cannot "+r);var l=(o,e,r)=>(Pe(o,e,"read from private field"),r?r.call(o):e.get(o)),P=(o,e,r)=>e.has(o)?Le("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(o):e.set(o,r),Se=(o,e,r,s)=>(Pe(o,e,"write to private field"),s?s.call(o,r):e.set(o,r),r),Ae=(o,e,r)=>(Pe(o,e,"access private method"),r);import{t as le,bo as n,bw as ce,b as de,bp as ye,br as we}from"./51_h0jm2.js";import{c9 as _,aD as u,bH as G,ca as fe,bV as q,bo as Re,bs as ge,a7 as B,ay as F,W as I,bn as he,aA as a,a5 as Ke,bf as Z,bA as Ne,aB as Ge,br as et,c5 as O,bI as tt,bS as Ee,aG as rt}from"./CJxGDkBm.js";import{i as Q}from"./PXCFrn2V.js";import{s as H}from"./DxvSggY5.js";import{b as st}from"./C1YR8Gnj.js";import{c as Ie}from"./DGmOjLYi.js";import{b as Oe,e as ke}from"./CpPNoOk-.js";import{P as De}from"./BROVvkEL.js";import{g as nt}from"./BaGw_bDr.js";import{_ as je}from"./rIUowGAi.js";import{h as at,aD as it,ar as ot,an as He,l as ut,a6 as lt,at as ct,aq as Ue,ay as dt,a3 as gt,az as ve,aS as Be,a$ as ht,av as D,aQ as We}from"./BnA9v3pc.js";const ze=dt({component:"toggle-group",parts:["root","item"]}),qe=new at("ToggleGroup.Root");var $;class Qe{constructor(e){E(this,"opts");E(this,"rovingFocusGroup");E(this,"attachment");P(this,$,_(()=>({id:this.opts.id.current,[ze.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":Ue(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=He(this.opts.ref),this.rovingFocusGroup=new gt({candidateAttr:ze.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return u(l(this,$))}set props(e){G(l(this,$),e)}}$=new WeakMap;var ee;class ft extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!1);P(this,ee,_(()=>this.opts.value.current!==""));this.opts=r}get anyPressed(){return u(l(this,ee))}set anyPressed(r){G(l(this,ee),r)}includesItem(r){return this.opts.value.current===r}toggleItem(r,s){this.includesItem(r)?this.opts.value.current="":(this.opts.value.current=r,this.rovingFocusGroup.setCurrentTabStopId(s))}}ee=new WeakMap;var te;class vt extends Qe{constructor(r){super(r);E(this,"opts");E(this,"isMulti",!0);P(this,te,_(()=>this.opts.value.current.length>0));this.opts=r}get anyPressed(){return u(l(this,te))}set anyPressed(r){G(l(this,te),r)}includesItem(r){return this.opts.value.current.includes(r)}toggleItem(r,s){this.includesItem(r)?this.opts.value.current=this.opts.value.current.filter(d=>d!==r):(this.opts.value.current=[...this.opts.value.current,r],this.rovingFocusGroup.setCurrentTabStopId(s))}}te=new WeakMap;class mt{static create(e){const{type:r,...s}=e,d=r==="single"?new ft(s):new vt(s);return qe.set(d)}}var j,re,me,be,pe,Xe,X,se,ne;const Fe=class Fe{constructor(e,r){P(this,pe);E(this,"opts");E(this,"root");E(this,"attachment");P(this,j,_(()=>this.opts.disabled.current||this.root.opts.disabled.current));P(this,re,_(()=>this.root.includesItem(this.opts.value.current)));P(this,me,_(()=>this.root.isMulti?void 0:it(this.isPressed,!1)));P(this,be,_(()=>this.root.isMulti?ot(this.isPressed):void 0));P(this,X,q(0));P(this,se,_(()=>({pressed:this.isPressed})));P(this,ne,_(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:u(l(this,X)),"data-orientation":this.root.opts.orientation.current,"data-disabled":Ue(u(l(this,j))),"data-state":bt(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":u(l(this,be)),"aria-checked":u(l(this,me)),disabled:ct(u(l(this,j))),[ze.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=r,this.attachment=He(this.opts.ref),fe(()=>{this.root.opts.rovingFocus.current?G(l(this,X),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):G(l(this,X),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new Fe(e,qe.get())}get isPressed(){return u(l(this,re))}set isPressed(e){G(l(this,re),e)}onclick(e){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!u(l(this,j))){if(e.key===ut||e.key===lt){e.preventDefault(),Ae(this,pe,Xe).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return u(l(this,se))}set snippetProps(e){G(l(this,se),e)}get props(){return u(l(this,ne))}set props(e){G(l(this,ne),e)}};j=new WeakMap,re=new WeakMap,me=new WeakMap,be=new WeakMap,pe=new WeakSet,Xe=function(){u(l(this,j))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},X=new WeakMap,se=new WeakMap,ne=new WeakMap;let Te=Fe;function bt(o){return o?"on":"off"}var pt=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),yt=Ge("<div><!></div>");function Ve(o,e){const r=Re();if(new.target)return le({component:Ve,...o});ge(e,!0);let s=n(e,"id",23,()=>ve(r)),d=n(e,"ref",15,null),g=n(e,"value",15),h=n(e,"onValueChange",7,Be),m=n(e,"type",7),b=n(e,"disabled",7,!1),p=n(e,"loop",7,!0),C=n(e,"orientation",7,"horizontal"),y=n(e,"rovingFocus",7,!0),S=n(e,"child",7),f=n(e,"children",7),v=ye(e,pt);function k(){g()===void 0&&g(m()==="single"?"":[])}k(),ht.pre(()=>g(),()=>{k()});const A=mt.create({id:D(()=>s()),value:D(()=>g(),i=>{g(i),h()(i)}),disabled:D(()=>b()),loop:D(()=>p()),orientation:D(()=>C()),rovingFocus:D(()=>y()),type:m(),ref:D(()=>d(),i=>d(i))}),L=_(()=>We(v,A.props));var c={get id(){return s()},set id(i=ve(r)){s(i),a()},get ref(){return d()},set ref(i=null){d(i),a()},get value(){return g()},set value(i){g(i),a()},get onValueChange(){return h()},set onValueChange(i=Be){h(i),a()},get type(){return m()},set type(i){m(i),a()},get disabled(){return b()},set disabled(i=!1){b(i),a()},get loop(){return p()},set loop(i=!0){p(i),a()},get orientation(){return C()},set orientation(i="horizontal"){C(i),a()},get rovingFocus(){return y()},set rovingFocus(i=!0){y(i),a()},get child(){return S()},set child(i){S(i),a()},get children(){return f()},set children(i){f(i),a()},$set:ce,$on:(i,w)=>de(e,i,w)},x=B(),z=F(x);{var R=i=>{var w=B(),T=F(w);H(T,S,()=>({props:u(L)})),I(i,w)},t=i=>{var w=yt();Oe(w,()=>({...u(L)}));var T=Ke(w);H(T,()=>f()??Z),Ne(w),I(i,w)};Q(z,i=>{S()?i(R):i(t,-1)})}return I(o,x),he(c)}var xt=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),_t=Ge("<button><!></button>");function Je(o,e){const r=Re();if(new.target)return le({component:Je,...o});ge(e,!0);let s=n(e,"children",7),d=n(e,"child",7),g=n(e,"ref",15,null),h=n(e,"value",7),m=n(e,"disabled",7,!1),b=n(e,"id",23,()=>ve(r)),p=n(e,"type",7,"button"),C=ye(e,xt);const y=Te.create({id:D(()=>b()),value:D(()=>h()),disabled:D(()=>m()??!1),ref:D(()=>g(),c=>g(c))}),S=_(()=>We(C,y.props,{type:p()}));var f={get children(){return s()},set children(c){s(c),a()},get child(){return d()},set child(c){d(c),a()},get ref(){return g()},set ref(c=null){g(c),a()},get value(){return h()},set value(c){h(c),a()},get disabled(){return m()},set disabled(c=!1){m(c),a()},get id(){return b()},set id(c=ve(r)){b(c),a()},get type(){return p()},set type(c="button"){p(c),a()},$set:ce,$on:(c,x)=>de(e,c,x)},v=B(),k=F(v);{var A=c=>{var x=B(),z=F(x);{let R=_(()=>({props:u(S),...y.snippetProps}));H(z,d,()=>u(R))}I(c,x)},L=c=>{var x=_t();Oe(x,()=>({...u(S)}));var z=Ke(x);H(z,()=>s()??Z,()=>y.snippetProps),Ne(x),I(c,x)};Q(k,c=>{d()?c(A):c(L,-1)})}return I(o,v),he(f)}function Ct(o,e){if(new.target)return le({component:Ct,...o});ge(e,!0);let r=n(e,"open",15,!1),s=n(e,"static",7,!1),d=n(e,"title",7),g=n(e,"description",7),h=n(e,"confirmLabel",7),m=n(e,"cancelLabel",7),b=n(e,"details",7),p=n(e,"busy",7,!1),C=n(e,"submitBusy",7,!1),y=n(e,"canSubmit",7,!0),S=n(e,"focusSubmit",7,!0),f=n(e,"focusCancel",7,!1),v=n(e,"enterKey",7,"submit"),k=n(e,"modEnter",7,"submit"),A=n(e,"destructive",7,!0),L=n(e,"class",7),c=n(e,"closeLabel",7),x=n(e,"onConfirm",7),z=n(e,"onCancel",7);var R={get open(){return r()},set open(t=!1){r(t),a()},get static(){return s()},set static(t=!1){s(t),a()},get title(){return d()},set title(t){d(t),a()},get description(){return g()},set description(t){g(t),a()},get confirmLabel(){return h()},set confirmLabel(t){h(t),a()},get cancelLabel(){return m()},set cancelLabel(t){m(t),a()},get details(){return b()},set details(t){b(t),a()},get busy(){return p()},set busy(t=!1){p(t),a()},get submitBusy(){return C()},set submitBusy(t=!1){C(t),a()},get canSubmit(){return y()},set canSubmit(t=!0){y(t),a()},get focusSubmit(){return S()},set focusSubmit(t=!0){S(t),a()},get focusCancel(){return f()},set focusCancel(t=!1){f(t),a()},get enterKey(){return v()},set enterKey(t="submit"){v(t),a()},get modEnter(){return k()},set modEnter(t="submit"){k(t),a()},get destructive(){return A()},set destructive(t=!0){A(t),a()},get class(){return L()},set class(t){L(t),a()},get closeLabel(){return c()},set closeLabel(t){c(t),a()},get onConfirm(){return x()},set onConfirm(t){x(t),a()},get onCancel(){return z()},set onCancel(t){z(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)};{let t=_(()=>A()?"destructive":"default");st(o,{get static(){return s()},get title(){return d()},get description(){return g()},get submitLabel(){return h()},get cancelLabel(){return m()},get submitVariant(){return u(t)},get busy(){return p()},get submitBusy(){return C()},get canSubmit(){return y()},get focusSubmit(){return S()},get focusCancel(){return f()},get enterKey(){return v()},get modEnter(){return k()},get class(){return L()},get closeLabel(){return c()},get onSubmit(){return x()},get onCancel(){return z()},get open(){return r()},set open(i){r(i)},children:(i,w)=>{var T=B(),W=F(T);{var N=K=>{var M=B(),xe=F(M);H(xe,b),I(K,M)};Q(W,K=>{b()&&K(N)})}I(i,T)},$$slots:{default:!0}})}return he(R)}var V,ae,ie,oe,ue;class Pt{constructor(e,r){P(this,V,q(et([])));P(this,ae);P(this,ie);P(this,oe,q(null));P(this,ue,q(0));Se(this,ae,e),Se(this,ie,r)}get hover(){return u(l(this,oe))}set hover(e){G(l(this,oe),e,!0)}get keyboardIndex(){return u(l(this,ue))}set keyboardIndex(e){G(l(this,ue),e,!0)}get selectedIndexes(){const e=new Set(l(this,ae).call(this));return u(l(this,V)).flatMap((r,s)=>r&&e.has(r.value)?[s]:[])}allocate(e){return O(()=>{const r={value:e,element:null,disabled:!1},s=u(l(this,V)).indexOf(void 0);return s<0?u(l(this,V)).push(r)-1:(u(l(this,V))[s]=r,s)})}release(e){O(()=>{u(l(this,V))[e]&&(u(l(this,V))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,r,s){O(()=>{const d=u(l(this,V))[e];d&&(d.value=r,d.disabled=s)})}register(e,r){O(()=>{const s=u(l(this,V))[e];s&&(s.element=r,this.hover?.registerItem(e,r))})}connect(e){O(()=>{this.hover?.destroy(),this.hover=nt(e,{axis:l(this,ie)});for(const[r,s]of u(l(this,V)).entries())s?.element&&this.hover.registerItem(r,s.element)})}disconnect(){O(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,r){const s=u(l(this,V)).map((h,m)=>({entry:h,entryIndex:m})).filter(({entry:h})=>h?.element&&!h.disabled),d=s.findIndex(({entryIndex:h})=>h===e);if(d<0||s.length===0)return;const g=s[(d+r+s.length)%s.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}V=new WeakMap,ae=new WeakMap,ie=new WeakMap,oe=new WeakMap,ue=new WeakMap;const Ye=Symbol("toggle-group");var St=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),Me=Ge("<!> <!>",1);function wt(o,e){if(new.target)return le({component:wt,...o});ge(e,!0);const r=je({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",15),d=n(e,"onValueChange",7),g=n(e,"type",7,"single"),h=n(e,"disabled",7,!1),m=n(e,"axis",7,"x"),b=n(e,"variant",7,"default"),p=n(e,"size",7,"default"),C=n(e,"class",7,""),y=n(e,"children",7),S=ye(e,St),f=q(null);const v=new Pt(()=>Array.isArray(s())?s():typeof s()=="string"&&s()?[s()]:[],O(()=>m()));tt(Ye,{state:v,get size(){return p()},get variant(){return b()}}),fe(()=>{if(u(f))return v.connect(u(f)),()=>v.disconnect()});function k(t){s(t),d()?.(t)}function A(t){s(t),d()?.(t)}var L={get value(){return s()},set value(t){s(t),a()},get onValueChange(){return d()},set onValueChange(t){d(t),a()},get type(){return g()},set type(t="single"){g(t),a()},get disabled(){return h()},set disabled(t=!1){h(t),a()},get axis(){return m()},set axis(t="x"){m(t),a()},get variant(){return b()},set variant(t="default"){b(t),a()},get size(){return p()},set size(t="default"){p(t),a()},get class(){return C()},set class(t=""){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},c=B(),x=F(c);{var z=t=>{var i=B(),w=F(i);{let T=_(()=>Array.isArray(s())?s():[]),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"multiple",get value(){return u(T)},onValueChange:A,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)},R=t=>{var i=B(),w=F(i);{let T=_(()=>typeof s()=="string"?s():""),W=_(()=>ke(r({variant:b(),size:p()}),C()));Ie(w,()=>Ve,(N,K)=>{K(N,we({type:"single",get value(){return u(T)},onValueChange:k,get disabled(){return h()},get class(){return u(W)}},()=>S,{get ref(){return u(f)},set ref(M){G(f,M,!0)},children:(M,xe)=>{var J=Me(),Y=F(J);{var _e=U=>{De(U,{get store(){return v.hover},get selectedIndexes(){return v.selectedIndexes}})};Q(Y,U=>{v.hover&&U(_e)})}var Ce=Ee(Y,2);H(Ce,()=>y()??Z),I(M,J)},$$slots:{default:!0}}))})}I(t,i)};Q(x,t=>{g()==="multiple"?t(z):t(R,-1)})}return I(o,c),he(L)}var It=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function kt(o,e){if(new.target)return le({component:kt,...o});ge(e,!0);const r=je({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let s=n(e,"value",7),d=n(e,"disabled",7,!1),g=n(e,"variant",7,void 0),h=n(e,"size",7,void 0),m=n(e,"tooltip",7,void 0),b=n(e,"class",7,""),p=n(e,"onclick",7),C=n(e,"onfocus",7),y=n(e,"children",7),S=ye(e,It);const f=rt(Ye),v=f.state.allocate(O(()=>s()));let k=q(null);const A=_(()=>h()??f?.size??"default"),L=_(()=>g()??f?.variant??"default");fe(()=>f.state.update(v,s(),d())),fe(()=>(f.state.register(v,u(k)),()=>f.state.register(v,null)));function c(t){f.state.activate(v),C()?.(t)}var x={get value(){return s()},set value(t){s(t),a()},get disabled(){return d()},set disabled(t=!1){d(t),a()},get variant(){return g()},set variant(t=void 0){g(t),a()},get size(){return h()},set size(t=void 0){h(t),a()},get tooltip(){return m()},set tooltip(t=void 0){m(t),a()},get class(){return b()},set class(t=""){b(t),a()},get onclick(){return p()},set onclick(t){p(t),a()},get onfocus(){return C()},set onfocus(t){C(t),a()},get children(){return y()},set children(t){y(t),a()},$set:ce,$on:(t,i)=>de(e,t,i)},z=B(),R=F(z);{let t=_(()=>ke(r({variant:u(L),size:u(A)}),b()));Ie(R,()=>Je,(i,w)=>{w(i,we({get value(){return s()},get title(){return m()},get disabled(){return d()},get onclick(){return p()},onfocus:c,get class(){return u(t)}},()=>S,{get ref(){return u(k)},set ref(T){G(k,T,!0)},children:(T,W)=>{var N=B(),K=F(N);H(K,()=>y()??Z),I(T,N)},$$slots:{default:!0}}))})}return I(o,z),he(x)}export{Pt as C,Ct as D,wt as T,kt as a};
@@ -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"./CgwFGLCK.js";import{J4 as l,nL as m,nM as C,Jd as q,bm as O,$ as Z,ny as _,rz as P,rX as ee,kg as te,rV as W,Jy as M,re as ne,fM as K,rA as F,a1 as se,bk as oe,i as ie}from"./CbRsc9i4.js";import{m as x,a0 as re,l as ae}from"./CzW29tkb.js";import{g as L}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 U=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-U}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-U}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},L(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}}),Le=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ue=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||h(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)}))}),Ae={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 he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(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&&!h(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 h(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
- `)?$(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:he(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}:Ae,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:!h(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 A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},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&&!h(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"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,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===L(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,Ue as l,Ve as m,je as n,Ke as o,Fe as p,Je as q,Ee as r,De as s,Le as t,He as u,xe as v,Ge as w,ze as x,Pe as y,B as z};
1
+ import{Z as Q,n as j,az as z,aw as J,aH as X,w as $,b as Y}from"./C2wWLl1x.js";import{J5 as l,nM as m,nN as C,Je as q,bm as O,$ as Z,nz as _,rA as P,rY as ee,kg as te,rW as W,Jz as M,rf as ne,fM as K,rB as F,a1 as se,bk as oe,i as ie}from"./CI4_aI7e.js";import{m as x,a0 as re,l as ae}from"./CAV1CzzW.js";import{g as L}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 U=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-U}function fe(e,t){return e!=null&&Number.isFinite(e)&&e>0&&e<=t-U}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},L(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}}),Le=l.createSelector(e=>e.hud.gridFilter);l.createSelector(e=>e.hud.attentionByWorkspaceId);const Ue=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||h(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))}),ze=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)}))}),Ae={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 he(e,t,n){if(t==="failed"){const i=n.find(d=>d.bucket==="failed"&&!h(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&&!h(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?z.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":J.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 h(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
+ `)?$(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:he(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}:Ae,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:!h(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 A=r.get(f)??[];A.includes(p)||A.push(p),r.set(f,A)},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&&!h(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 Je=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"),A=k?"action":f?"unread":"active";r[A].push({workspace:o,badgeKind:Me(u),priorityGroup:A,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===L(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,Ue as l,Ve as m,je as n,Ke as o,Fe as p,ze as q,Ee as r,De as s,Le as t,He as u,xe as v,Ge as w,Je as x,Pe as y,B as z};
@@ -0,0 +1 @@
1
+ import{n as i}from"./XagMlRFc.js";import{o as n}from"./JZ27Qh_j.js";import{i as o,J5 as e,E1 as s,va as r,uM as f}from"./CI4_aI7e.js";async function m(t,a){if(!(!t||!a)){if(t===o){await i("/"),e.dispatch(s(a)),e.dispatch(r("chief"));return}await n(t)&&e.dispatch(f(t,{agentId:a}))}}export{m as n};
@@ -1 +1 @@
1
- import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./CdOh_Fmv.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
1
+ import{b8 as te,aR as re,by as ne,ao as j,_ as H,ae as N,c0 as Ce,c5 as Oe,aG as se,bI as ae,bV as k,br as Ee,bH as L,aD as u,bs as oe,a5 as Pe,bA as Le,W as R,bn as ie,aA as g,aB as D,bo as Te,ay as ze,bS as Ne,c9 as z,be as Re,b$ as Fe,b_ as ke,bO as Ae}from"./CJxGDkBm.js";import{t as le,bo as m,bw as de,bp as ce,b as ue}from"./51_h0jm2.js";import{i as U}from"./PXCFrn2V.js";import{b as W,e as F}from"./CpPNoOk-.js";import{b as q}from"./NtFyWdpR.js";import{s as Be}from"./DxvSggY5.js";import{n as G,l as We,c as De}from"./BxwkoIbZ.js";import"./DKn1sQ32.js";import{a_ as Me}from"./BnA9v3pc.js";function J(e,t,n=t){var o=new WeakSet;te(e,"input",async s=>{j&&e.type==="checkbox"&&H();var i=s?e.defaultValue:e.value;if(i=A(e)?B(i):i,n(i),N!==null&&o.add(N),await Ce(),i!==(i=t())){var f=e.selectionStart,c=e.selectionEnd,l=e.value.length;if(e.value=i??"",c!==null){var d=e.value.length;f===c&&c===l&&d>l?(e.selectionStart=d,e.selectionEnd=d):(e.selectionStart=f,e.selectionEnd=Math.min(c,d))}}}),(re&&e.defaultValue!==e.value||Oe(t)==null&&e.value)&&(n(A(e)?B(e.value):e.value),N!==null&&o.add(N)),ne(()=>{j&&e.type==="checkbox"&&H();var s=t();if(e===document.activeElement){var i=N;if(o.has(i))return}A(e)&&s===B(e.value)||e.type==="date"&&!s&&!e.value||s!==e.value&&(e.value=s??"")})}function A(e){var t=e.type;return t==="number"||t==="range"}function B(e){return e===""?null:+e}function Ve(e,t,n=t){te(e,"change",()=>{n(e.files)}),re&&e.files&&n(e.files),ne(()=>{e.files=t()})}const fe=Symbol("owned-popup-context"),ve=Symbol("owned-popup-close");function dt(e){ae(fe,e)}function Xe(){return se(fe)}function ct(e){ae(ve,e)}function Ye(){return se(ve)}function ut(e){const t=Xe(),n=e??Ye();return o=>({destroy:t?.register(o,n)})}function K(e,t,n){const o=t+n;return e<t?t-e:e>o?e-o:0}function je(e,t,n="y"){let o=null,s=Number.POSITIVE_INFINITY;for(let i=0;i<t.length;i+=1){const f=t[i];if(!f)continue;const c=K(e.x,f.left,f.width),l=K(e.y,f.top,f.height),d=n==="x"?c:n==="y"?l:Math.hypot(c,l);d<s&&(o=i,s=d)}return o}function ft(e,t={}){const n=t.axis??"y",o=new Map;let s=k(null),i=k(Ee([])),f=k(null),c=k(0),l;const d=()=>{u(f)&&L(s,je(u(f),u(i),n),!0)},p=b=>{const a=getComputedStyle(e),v=P=>Number.parseFloat(P)||0,_=a.boxSizing==="border-box",w=Number.parseFloat(a.width)+(_?0:v(a.paddingLeft)+v(a.paddingRight)+v(a.borderLeftWidth)+v(a.borderRightWidth)),E=Number.parseFloat(a.height)+(_?0:v(a.paddingTop)+v(a.paddingBottom)+v(a.borderTopWidth)+v(a.borderBottomWidth)),y=P=>Math.abs(P-1)<.001?1:P;return{x:y(w>0&&b.width/w||1),y:y(E>0&&b.height/E||1)}},S=()=>{const b=e.getBoundingClientRect(),{x:a,y:v}=p(b),_=[];for(const[w,E]of o){const y=E.getBoundingClientRect();_[w]={top:(y.top-b.top)/v-e.clientTop+e.scrollTop,left:(y.left-b.left)/a-e.clientLeft+e.scrollLeft,width:y.width/a,height:y.height/v}}L(i,_,!0),d()},I=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{S()});I?.observe(e);const C=()=>{L(c,u(c)+1)},O=b=>{const a=e.getBoundingClientRect(),{x:v,y:_}=p(a);L(f,{x:(b.clientX-a.left)/v-e.clientLeft+e.scrollLeft,y:(b.clientY-a.top)/_-e.clientTop+e.scrollTop},!0),l!==void 0&&cancelAnimationFrame(l),l=requestAnimationFrame(()=>{l=void 0,d()})},T=()=>{l!==void 0&&cancelAnimationFrame(l),l=void 0,L(f,null),L(s,null)};return e.addEventListener("pointerenter",C),e.addEventListener("pointermove",O),e.addEventListener("pointerleave",T),{get activeIndex(){return u(s)},get itemRects(){return u(i)},get pointerPosition(){return u(f)},get sessionId(){return u(c)},measure:S,setActiveIndex(b){L(s,b,!0)},registerItem(b,a){const v=o.get(b);v&&I?.unobserve?.(v),a?(o.set(b,a),I?.observe(a)):o.delete(b),S()},destroy(){l!==void 0&&cancelAnimationFrame(l),I?.disconnect(),e.removeEventListener("pointerenter",C),e.removeEventListener("pointermove",O),e.removeEventListener("pointerleave",T)}}}const vt=(e,t)=>{let n=t;return n.hover.registerItem(n.index,e),{update(o){(o.hover!==n.hover||o.index!==n.index)&&(n.hover.registerItem(n.index,null),o.hover.registerItem(o.index,e)),n=o},destroy(){n.hover.registerItem(n.index,null)}}},bt="p-1",gt="type-caption min-h-(--control-height-small) justify-start rounded-(--radius-row) px-2 py-1 text-left font-normal",mt="ml-auto first-line-icon w-(--menu-icon-size)";var He=new Set(["$$slots","$$events","$$legacy","tone","children","class"]),Ue=D("<p><!></p>");function be(e,t){if(new.target)return le({component:be,...e});oe(t,!0);let n=m(t,"tone",7,"helper"),o=m(t,"children",7),s=m(t,"class",7),i=ce(t,He);var f={get tone(){return n()},set tone(d="helper"){n(d),g()},get children(){return o()},set children(d){o(d),g()},get class(){return s()},set class(d){s(d),g()},$set:de,$on:(d,p)=>ue(t,d,p)},c=Ue();W(c,d=>({"data-slot":"input-message","data-tone":n(),role:n()==="error"?"alert":void 0,"aria-live":n()==="helper"?"polite":void 0,class:d,...i}),[()=>F("type-caption mt-1.5 pl-0.5 motion-reduce:transition-none",n()==="error"?"text-danger":"text-muted-foreground",s())]);var l=Pe(c);return Be(l,o),Le(c),G(1,c,()=>We,()=>({tier:"fast",y:-2,scale:1})),G(2,c,()=>De,()=>({tier:"fast"})),R(e,c),ie(f)}const ge="data-[state=hover]:bg-hover",Q=`border-border bg-transparent shadow-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover ${ge} read-only:text-muted-foreground disabled:cursor-not-allowed disabled:bg-transparent disabled:opacity-60 disabled:hover:bg-transparent aria-invalid:border-danger motion-reduce:transition-none`,ht=`border-border bg-transparent shadow-none outline-none transition-[background-color,border-color,box-shadow,color] duration-(--spring-fast) hover:bg-hover focus-within:outline-none focus-within:ring-0 ${ge} data-[disabled=true]:pointer-events-none data-[disabled=true]:bg-transparent data-[disabled=true]:opacity-60 data-[disabled=true]:hover:bg-transparent data-[invalid=true]:border-danger motion-reduce:transition-none`,Z="focus-visible:!bg-transparent focus-visible:!shadow-none focus-visible:outline-none",qe="h-auto min-h-0 min-w-0 w-full rounded-none border-0 bg-transparent p-0 text-inherit placeholder:text-inherit! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger",Ge="focus-visible:outline-none focus-visible:shadow-none";function $(e){return e==="compact"?"h-(--control-height-small)":"h-(--control-height-medium)"}const Je="type-caption h-9 w-full min-w-0 rounded-(--radius-medium) border-0 bg-transparent px-3 text-foreground placeholder:text-muted-foreground/60! shadow-none outline-none ring-0 hover:bg-transparent focus-visible:bg-transparent focus-visible:shadow-none focus-visible:outline-none focus-visible:ring-0 disabled:cursor-not-allowed disabled:opacity-60 aria-invalid:ring-1 aria-invalid:ring-danger";var Ke=new Set(["$$slots","$$events","$$legacy","ref","id","value","type","size","files","variant","noFocusStyle","message","error","messageId","aria-describedby","aria-invalid","class","data-slot"]),ee=D("<input/>"),Qe=D("<!> <!>",1);function Ze(e,t){const n=Te();if(new.target)return le({component:Ze,...e});oe(t,!0);const o=Me();let s=m(t,"ref",15),i=m(t,"id",7),f=m(t,"value",15),c=m(t,"type",7),l=m(t,"size",7),d=m(t,"files",15),p=m(t,"variant",7,"default"),S=m(t,"noFocusStyle",7,!1),I=m(t,"message",7),C=m(t,"error",7),O=m(t,"messageId",23,()=>`${n}-message`),T=m(t,"aria-describedby",7),b=m(t,"aria-invalid",7),a=m(t,"class",7),v=m(t,"data-slot",7,"input"),_=ce(t,Ke);const w=z(()=>typeof l()=="string"?l():o),E=z(()=>typeof l()=="number"?l():void 0),y=z(()=>C()??I()),P=z(()=>[T(),u(y)?O():void 0].filter(Boolean).join(" ")||void 0),M=z(()=>C()?!0:b());function me(){s()?.focus()}function he(){s()?.blur()}function pe(){s()?.select()}function ye(r,h,x){s()?.setSelectionRange(r,h,x)}var xe={focus:me,blur:he,select:pe,setSelectionRange:ye,get ref(){return s()},set ref(r){s(r),g()},get id(){return i()},set id(r){i(r),g()},get value(){return f()},set value(r){f(r),g()},get type(){return c()},set type(r){c(r),g()},get size(){return l()},set size(r){l(r),g()},get files(){return d()},set files(r){d(r),g()},get variant(){return p()},set variant(r="default"){p(r),g()},get noFocusStyle(){return S()},set noFocusStyle(r=!1){S(r),g()},get message(){return I()},set message(r){I(r),g()},get error(){return C()},set error(r){C(r),g()},get messageId(){return O()},set messageId(r=`${n}-message`){O(r),g()},get"aria-describedby"(){return T()},set"aria-describedby"(r){T(r),g()},get"aria-invalid"(){return b()},set"aria-invalid"(r){b(r),g()},get class(){return a()},set class(r){a(r),g()},get"data-slot"(){return v()},set"data-slot"(r="input"){v(r),g()},$set:de,$on:(r,h)=>ue(t,r,h)},V=Qe(),X=ze(V);{var _e=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),class:x,type:"file",size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),..._}),[()=>F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 file:mr-3 file:border-0 file:bg-transparent file:font-medium file:text-foreground",Q,"focus-visible:-outline-offset-2",$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),Ve(h,d),J(h,f),R(r,h)},we=r=>{var h=ee();W(h,x=>({id:i(),"data-slot":v(),"data-size":u(w),"data-variant":p()==="default"?void 0:p(),class:x,type:c(),size:u(E),"aria-describedby":u(P),"aria-invalid":u(M),autocorrect:"off",autocapitalize:"off",spellcheck:"false",..._}),[()=>p()==="inline"?F("selection:bg-primary selection:text-primary-foreground",qe,a()):p()==="search"?F("flex selection:bg-primary selection:text-primary-foreground",Je,a()):F("type-caption text-foreground selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground flex w-full min-w-0 rounded-(--radius-medium) border px-3 py-1",Q,Ge,$(u(w)),S()&&Z,a())],void 0,void 0,void 0,!0),q(h,x=>s(x),()=>s()),J(h,f),R(r,h)};U(X,r=>{c()==="file"?r(_e):r(we,-1)})}var Se=Ne(X,2);{var Ie=r=>{{let h=z(()=>C()?"error":"helper");be(r,{get id(){return O()},get tone(){return u(h)},children:(x,$e)=>{Re();var Y=Fe();ke(()=>Ae(Y,u(y))),R(x,Y)},$$slots:{default:!0}})}};U(Se,r=>{u(y)&&r(Ie)})}return R(e,V),ie(xe)}export{Ze as I,bt as O,be as a,mt as b,gt as c,Ve as d,J as e,ut as f,ft as g,Ye as h,Xe as i,dt as j,Q as k,Z as l,ht as m,$ as n,qe as o,vt as p,Je as q,ct as s,Ge as t};
@@ -1,4 +1,4 @@
1
- import{g as ie}from"./DkJkWZTE.js";import{s as re}from"./Caqml6gj.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./CUNx-_2d.js";import{c as Ee}from"./BulBKnVz.js";import{aR as _e}from"./CMLBE7U6.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
1
+ import{g as ie}from"./DUl-h1p3.js";import{s as re}from"./BtrJwCgg.js";import{b as p,ay as b,X as $,a1 as ae,aP as ne,bh as oe,V as le,a_ as ce,U as he,aZ as de,b0 as ue,Y as fe,T as pe,z as j,r as Se,aW as vt,am as ge,aU as ye,ab as me,aG as Te}from"./aitTA173.js";import{c as Ee}from"./B3hSlB6y.js";import{aR as _e}from"./DqMtaSxK.js";var At=(function(){var t=p(function(V,o,f,n){for(f=f||{},n=V.length;n--;f[V[n]]=o);return f},"o"),e=[1,2],s=[1,3],a=[1,4],r=[2,4],c=[1,9],h=[1,11],u=[1,16],l=[1,17],m=[1,18],y=[1,19],_=[1,33],L=[1,20],N=[1,21],D=[1,22],S=[1,23],w=[1,24],C=[1,26],F=[1,27],I=[1,28],P=[1,29],v=[1,30],z=[1,31],at=[1,32],nt=[1,35],ot=[1,36],lt=[1,37],ct=[1,38],K=[1,34],g=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],ht=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,39,40,41,45,48,51,52,53,54,57],It=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],mt={trace:p(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,CLICK:38,STRING:39,HREF:40,classDef:41,CLASSDEF_ID:42,CLASSDEF_STYLEOPTS:43,DEFAULT:44,style:45,STYLE_IDS:46,STYLEDEF_STYLEOPTS:47,class:48,CLASSENTITY_IDS:49,STYLECLASS:50,direction_tb:51,direction_bt:52,direction_rl:53,direction_lr:54,eol:55,";":56,EDGE_STATE:57,STYLE_SEPARATOR:58,left_of:59,right_of:60,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"CLICK",39:"STRING",40:"HREF",41:"classDef",42:"CLASSDEF_ID",43:"CLASSDEF_STYLEOPTS",44:"DEFAULT",45:"style",46:"STYLE_IDS",47:"STYLEDEF_STYLEOPTS",48:"class",49:"CLASSENTITY_IDS",50:"STYLECLASS",51:"direction_tb",52:"direction_bt",53:"direction_rl",54:"direction_lr",56:";",57:"EDGE_STATE",58:"STYLE_SEPARATOR",59:"left_of",60:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[9,5],[9,5],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[55,1],[55,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:p(function(o,f,n,T,E,i,B){var d=i.length-1;switch(E){case 3:return T.setRootDoc(i[d]),i[d];case 4:this.$=[];break;case 5:i[d]!="nl"&&(i[d-1].push(i[d]),this.$=i[d-1]);break;case 6:case 7:this.$=i[d];break;case 8:this.$="nl";break;case 12:this.$=i[d];break;case 13:const Q=i[d-1];Q.description=T.trimColon(i[d]),this.$=Q;break;case 14:this.$={stmt:"relation",state1:i[d-2],state2:i[d]};break;case 15:const Tt=T.trimColon(i[d]);this.$={stmt:"relation",state1:i[d-3],state2:i[d-1],description:Tt};break;case 19:this.$={stmt:"state",id:i[d-3],type:"default",description:"",doc:i[d-1]};break;case 20:var G=i[d],X=i[d-2].trim();if(i[d].match(":")){var ut=i[d].split(":");G=ut[0],X=[X,ut[1]]}this.$={stmt:"state",id:G,type:"default",description:X};break;case 21:this.$={stmt:"state",id:i[d-3],type:"default",description:i[d-5],doc:i[d-1]};break;case 22:this.$={stmt:"state",id:i[d],type:"fork"};break;case 23:this.$={stmt:"state",id:i[d],type:"join"};break;case 24:this.$={stmt:"state",id:i[d],type:"choice"};break;case 25:this.$={stmt:"state",id:T.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:i[d-1].trim(),note:{position:i[d-2].trim(),text:i[d].trim()}};break;case 29:this.$=i[d].trim(),T.setAccTitle(this.$);break;case 30:case 31:this.$=i[d].trim(),T.setAccDescription(this.$);break;case 32:this.$={stmt:"click",id:i[d-3],url:i[d-2],tooltip:i[d-1]};break;case 33:this.$={stmt:"click",id:i[d-3],url:i[d-1],tooltip:""};break;case 34:case 35:this.$={stmt:"classDef",id:i[d-1].trim(),classes:i[d].trim()};break;case 36:this.$={stmt:"style",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 37:this.$={stmt:"applyClass",id:i[d-1].trim(),styleClass:i[d].trim()};break;case 38:T.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 39:T.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 40:T.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 41:T.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 44:case 45:this.$={stmt:"state",id:i[d].trim(),type:"default",description:""};break;case 46:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break;case 47:this.$={stmt:"state",id:i[d-2].trim(),classes:[i[d].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:s,6:a},{1:[3]},{3:5,4:e,5:s,6:a},{3:6,4:e,5:s,6:a},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,41,45,48,51,52,53,54,57],r,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,5]),{9:39,10:12,11:13,12:14,13:15,16:u,17:l,19:m,22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,7]),t(g,[2,8]),t(g,[2,9]),t(g,[2,10]),t(g,[2,11]),t(g,[2,12],{14:[1,40],15:[1,41]}),t(g,[2,16]),{18:[1,42]},t(g,[2,18],{20:[1,43]}),{23:[1,44]},t(g,[2,22]),t(g,[2,23]),t(g,[2,24]),t(g,[2,25]),{30:45,31:[1,46],59:[1,47],60:[1,48]},t(g,[2,28]),{34:[1,49]},{36:[1,50]},t(g,[2,31]),{13:51,24:_,57:K},{42:[1,52],44:[1,53]},{46:[1,54]},{49:[1,55]},t(ht,[2,44],{58:[1,56]}),t(ht,[2,45],{58:[1,57]}),t(g,[2,38]),t(g,[2,39]),t(g,[2,40]),t(g,[2,41]),t(g,[2,6]),t(g,[2,13]),{13:58,24:_,57:K},t(g,[2,17]),t(It,r,{7:59}),{24:[1,60]},{24:[1,61]},{23:[1,62]},{24:[2,48]},{24:[2,49]},t(g,[2,29]),t(g,[2,30]),{39:[1,63],40:[1,64]},{43:[1,65]},{43:[1,66]},{47:[1,67]},{50:[1,68]},{24:[1,69]},{24:[1,70]},t(g,[2,14],{14:[1,71]}),{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,72],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,20],{20:[1,73]}),{31:[1,74]},{24:[1,75]},{39:[1,76]},{39:[1,77]},t(g,[2,34]),t(g,[2,35]),t(g,[2,36]),t(g,[2,37]),t(ht,[2,46]),t(ht,[2,47]),t(g,[2,15]),t(g,[2,19]),t(It,r,{7:78}),t(g,[2,26]),t(g,[2,27]),{5:[1,79]},{5:[1,80]},{4:c,5:h,8:8,9:10,10:12,11:13,12:14,13:15,16:u,17:l,19:m,21:[1,81],22:y,24:_,25:L,26:N,27:D,28:S,29:w,32:25,33:C,35:F,37:I,38:P,41:v,45:z,48:at,51:nt,52:ot,53:lt,54:ct,57:K},t(g,[2,32]),t(g,[2,33]),t(g,[2,21])],defaultActions:{5:[2,1],6:[2,2],47:[2,48],48:[2,49]},parseError:p(function(o,f){if(f.recoverable)this.trace(o);else{var n=new Error(o);throw n.hash=f,n}},"parseError"),parse:p(function(o){var f=this,n=[0],T=[],E=[null],i=[],B=this.table,d="",G=0,X=0,ut=2,Q=1,Tt=i.slice.call(arguments,1),k=Object.create(this.lexer),W={yy:{}};for(var Et in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Et)&&(W.yy[Et]=this.yy[Et]);k.setInput(o,W.yy),W.yy.lexer=k,W.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var _t=k.yylloc;i.push(_t);var ee=k.options&&k.options.ranges;typeof W.yy.parseError=="function"?this.parseError=W.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function se(R){n.length=n.length-2*R,E.length=E.length-R,i.length=i.length-R}p(se,"popStack");function Rt(){var R;return R=T.pop()||k.lex()||Q,typeof R!="number"&&(R instanceof Array&&(T=R,R=T.pop()),R=f.symbols_[R]||R),R}p(Rt,"lex");for(var x,U,O,bt,J={},ft,Y,Nt,pt;;){if(U=n[n.length-1],this.defaultActions[U]?O=this.defaultActions[U]:((x===null||typeof x>"u")&&(x=Rt()),O=B[U]&&B[U][x]),typeof O>"u"||!O.length||!O[0]){var kt="";pt=[];for(ft in B[U])this.terminals_[ft]&&ft>ut&&pt.push("'"+this.terminals_[ft]+"'");k.showPosition?kt="Parse error on line "+(G+1)+`:
2
2
  `+k.showPosition()+`
3
3
  Expecting `+pt.join(", ")+", got '"+(this.terminals_[x]||x)+"'":kt="Parse error on line "+(G+1)+": Unexpected "+(x==Q?"end of input":"'"+(this.terminals_[x]||x)+"'"),this.parseError(kt,{text:k.match,token:this.terminals_[x]||x,line:k.yylineno,loc:_t,expected:pt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+x);switch(O[0]){case 1:n.push(x),E.push(k.yytext),i.push(k.yylloc),n.push(O[1]),x=null,X=k.yyleng,d=k.yytext,G=k.yylineno,_t=k.yylloc;break;case 2:if(Y=this.productions_[O[1]][1],J.$=E[E.length-Y],J._$={first_line:i[i.length-(Y||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(Y||1)].first_column,last_column:i[i.length-1].last_column},ee&&(J._$.range=[i[i.length-(Y||1)].range[0],i[i.length-1].range[1]]),bt=this.performAction.apply(J,[d,X,G,W.yy,O[1],E,i].concat(Tt)),typeof bt<"u")return bt;Y&&(n=n.slice(0,-1*Y*2),E=E.slice(0,-1*Y),i=i.slice(0,-1*Y)),n.push(this.productions_[O[1]][0]),E.push(J.$),i.push(J._$),Nt=B[n[n.length-2]][n[n.length-1]],n.push(Nt);break;case 3:return!0}}return!0},"parse")},te=(function(){var V={EOF:1,parseError:p(function(f,n){if(this.yy.parser)this.yy.parser.parseError(f,n);else throw new Error(f)},"parseError"),setInput:p(function(o,f){return this.yy=f||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:p(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var f=o.match(/(?:\r\n?|\n).*/g);return f?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:p(function(o){var f=o.length,n=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-f),this.offset-=f;var T=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===T.length?this.yylloc.first_column:0)+T[T.length-n.length].length-n[0].length:this.yylloc.first_column-f},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-f]),this.yyleng=this.yytext.length,this},"unput"),more:p(function(){return this._more=!0,this},"more"),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:p(function(o){this.unput(this.match.slice(o))},"less"),pastInput:p(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:p(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:p(function(){var o=this.pastInput(),f=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{g as ze}from"./DkJkWZTE.js";import{s as Xe}from"./Caqml6gj.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./CUNx-_2d.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
1
+ import{g as ze}from"./DUl-h1p3.js";import{s as Xe}from"./BtrJwCgg.js";import{b as m,W as Be,a_ as Je,V as Ze,aZ as et,U as tt,b0 as st,Y as it,X as Ne,ay as qe,r as rt,am as nt,aU as at,ab as lt,aG as ct,_ as ot,a1 as ht,aP as ut,bh as ft}from"./aitTA173.js";var Ce=(function(){var e=m(function($,i,n,o){for(n=n||{},o=$.length;o--;n[$[o]]=i);return n},"o"),r=[1,3],u=[1,4],h=[1,5],f=[1,6],a=[5,6,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],c=[1,22],S=[2,7],d=[1,26],_=[1,27],b=[1,28],q=[1,29],C=[1,33],A=[1,34],V=[1,35],v=[1,36],L=[1,37],x=[1,38],w=[1,24],D=[1,31],O=[1,32],M=[1,30],R=[1,39],g=[1,40],p=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,77,89,90],P=[1,61],X=[89,90],Ae=[5,8,9,11,13,21,22,23,24,27,29,41,42,43,44,45,46,54,61,63,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Ee=[27,29],Ve=[1,70],ve=[1,71],Le=[1,72],xe=[1,73],we=[1,74],De=[1,75],Oe=[1,76],ee=[1,83],U=[1,80],te=[1,84],se=[1,85],ie=[1,86],re=[1,87],ne=[1,88],ae=[1,89],le=[1,90],ce=[1,91],oe=[1,92],pe=[5,8,9,11,13,21,22,23,24,27,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],Y=[63,64],Me=[1,101],Fe=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,76,77,89,90],T=[5,8,9,11,13,21,22,23,24,41,42,43,44,45,46,54,72,74,75,76,77,80,81,82,83,84,85,86,87,88,89,90],B=[1,110],Q=[1,106],H=[1,107],K=[1,108],W=[1,109],j=[1,111],he=[1,116],ue=[1,117],fe=[1,114],me=[1,115],Se={trace:m(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,direction:17,styleStatement:18,classDefStatement:19,classStatement:20,direction_tb:21,direction_bt:22,direction_rl:23,direction_lr:24,requirementType:25,requirementName:26,STRUCT_START:27,requirementBody:28,STYLE_SEPARATOR:29,idList:30,ID:31,COLONSEP:32,id:33,TEXT:34,text:35,RISK:36,riskLevel:37,VERIFYMTHD:38,verifyType:39,STRUCT_STOP:40,REQUIREMENT:41,FUNCTIONAL_REQUIREMENT:42,INTERFACE_REQUIREMENT:43,PERFORMANCE_REQUIREMENT:44,PHYSICAL_REQUIREMENT:45,DESIGN_CONSTRAINT:46,LOW_RISK:47,MED_RISK:48,HIGH_RISK:49,VERIFY_ANALYSIS:50,VERIFY_DEMONSTRATION:51,VERIFY_INSPECTION:52,VERIFY_TEST:53,ELEMENT:54,elementName:55,elementBody:56,TYPE:57,type:58,DOCREF:59,ref:60,END_ARROW_L:61,relationship:62,LINE:63,END_ARROW_R:64,CONTAINS:65,COPIES:66,DERIVES:67,SATISFIES:68,VERIFIES:69,REFINES:70,TRACES:71,CLASSDEF:72,stylesOpt:73,CLASS:74,ALPHA:75,COMMA:76,STYLE:77,style:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,MINUS:86,LABEL:87,SEMICOLON:88,unqString:89,qString:90,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",21:"direction_tb",22:"direction_bt",23:"direction_rl",24:"direction_lr",27:"STRUCT_START",29:"STYLE_SEPARATOR",31:"ID",32:"COLONSEP",34:"TEXT",36:"RISK",38:"VERIFYMTHD",40:"STRUCT_STOP",41:"REQUIREMENT",42:"FUNCTIONAL_REQUIREMENT",43:"INTERFACE_REQUIREMENT",44:"PERFORMANCE_REQUIREMENT",45:"PHYSICAL_REQUIREMENT",46:"DESIGN_CONSTRAINT",47:"LOW_RISK",48:"MED_RISK",49:"HIGH_RISK",50:"VERIFY_ANALYSIS",51:"VERIFY_DEMONSTRATION",52:"VERIFY_INSPECTION",53:"VERIFY_TEST",54:"ELEMENT",57:"TYPE",59:"DOCREF",61:"END_ARROW_L",63:"LINE",64:"END_ARROW_R",65:"CONTAINS",66:"COPIES",67:"DERIVES",68:"SATISFIES",69:"VERIFIES",70:"REFINES",71:"TRACES",72:"CLASSDEF",74:"CLASS",75:"ALPHA",76:"COMMA",77:"STYLE",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",86:"MINUS",87:"LABEL",88:"SEMICOLON",89:"unqString",90:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[7,2],[17,1],[17,1],[17,1],[17,1],[14,5],[14,7],[28,5],[28,5],[28,5],[28,5],[28,2],[28,1],[25,1],[25,1],[25,1],[25,1],[25,1],[25,1],[37,1],[37,1],[37,1],[39,1],[39,1],[39,1],[39,1],[15,5],[15,7],[56,5],[56,5],[56,2],[56,1],[16,5],[16,5],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[62,1],[19,3],[20,3],[20,3],[30,1],[30,3],[30,1],[30,3],[18,3],[73,1],[73,3],[78,1],[78,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[26,1],[26,1],[33,1],[33,1],[35,1],[35,1],[55,1],[55,1],[58,1],[58,1],[60,1],[60,1]],performAction:m(function(i,n,o,s,E,t,de){var l=t.length-1;switch(E){case 4:this.$=t[l].trim(),s.setAccTitle(this.$);break;case 5:case 6:this.$=t[l].trim(),s.setAccDescription(this.$);break;case 7:this.$=[];break;case 17:s.setDirection("TB");break;case 18:s.setDirection("BT");break;case 19:s.setDirection("RL");break;case 20:s.setDirection("LR");break;case 21:s.addRequirement(t[l-3],t[l-4]);break;case 22:s.addRequirement(t[l-5],t[l-6]),s.setClass([t[l-5]],t[l-3]);break;case 23:s.setNewReqId(t[l-2]);break;case 24:s.setNewReqText(t[l-2]);break;case 25:s.setNewReqRisk(t[l-2]);break;case 26:s.setNewReqVerifyMethod(t[l-2]);break;case 29:this.$=s.RequirementType.REQUIREMENT;break;case 30:this.$=s.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 31:this.$=s.RequirementType.INTERFACE_REQUIREMENT;break;case 32:this.$=s.RequirementType.PERFORMANCE_REQUIREMENT;break;case 33:this.$=s.RequirementType.PHYSICAL_REQUIREMENT;break;case 34:this.$=s.RequirementType.DESIGN_CONSTRAINT;break;case 35:this.$=s.RiskLevel.LOW_RISK;break;case 36:this.$=s.RiskLevel.MED_RISK;break;case 37:this.$=s.RiskLevel.HIGH_RISK;break;case 38:this.$=s.VerifyType.VERIFY_ANALYSIS;break;case 39:this.$=s.VerifyType.VERIFY_DEMONSTRATION;break;case 40:this.$=s.VerifyType.VERIFY_INSPECTION;break;case 41:this.$=s.VerifyType.VERIFY_TEST;break;case 42:s.addElement(t[l-3]);break;case 43:s.addElement(t[l-5]),s.setClass([t[l-5]],t[l-3]);break;case 44:s.setNewElementType(t[l-2]);break;case 45:s.setNewElementDocRef(t[l-2]);break;case 48:s.addRelationship(t[l-2],t[l],t[l-4]);break;case 49:s.addRelationship(t[l-2],t[l-4],t[l]);break;case 50:this.$=s.Relationships.CONTAINS;break;case 51:this.$=s.Relationships.COPIES;break;case 52:this.$=s.Relationships.DERIVES;break;case 53:this.$=s.Relationships.SATISFIES;break;case 54:this.$=s.Relationships.VERIFIES;break;case 55:this.$=s.Relationships.REFINES;break;case 56:this.$=s.Relationships.TRACES;break;case 57:this.$=t[l-2],s.defineClass(t[l-1],t[l]);break;case 58:s.setClass(t[l-1],t[l]);break;case 59:s.setClass([t[l-2]],t[l]);break;case 60:case 62:this.$=[t[l]];break;case 61:case 63:this.$=t[l-2].concat([t[l]]);break;case 64:this.$=t[l-2],s.setCssStyle(t[l-1],t[l]);break;case 65:this.$=[t[l]];break;case 66:t[l-2].push(t[l]),this.$=t[l-2];break;case 68:this.$=t[l-1]+t[l];break}},"anonymous"),table:[{3:1,4:2,6:r,9:u,11:h,13:f},{1:[3]},{3:8,4:2,5:[1,7],6:r,9:u,11:h,13:f},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(a,[2,6]),{3:12,4:2,6:r,9:u,11:h,13:f},{1:[2,2]},{4:17,5:c,7:13,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},e(a,[2,4]),e(a,[2,5]),{1:[2,1]},{8:[1,41]},{4:17,5:c,7:42,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:43,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:44,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:45,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:46,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:47,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:48,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:49,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{4:17,5:c,7:50,8:S,9:u,11:h,13:f,14:14,15:15,16:16,17:18,18:19,19:20,20:21,21:d,22:_,23:b,24:q,25:23,33:25,41:C,42:A,43:V,44:v,45:L,46:x,54:w,72:D,74:O,77:M,89:R,90:g},{26:51,89:[1,52],90:[1,53]},{55:54,89:[1,55],90:[1,56]},{29:[1,59],61:[1,57],63:[1,58]},e(p,[2,17]),e(p,[2,18]),e(p,[2,19]),e(p,[2,20]),{30:60,33:62,75:P,89:R,90:g},{30:63,33:62,75:P,89:R,90:g},{30:64,33:62,75:P,89:R,90:g},e(X,[2,29]),e(X,[2,30]),e(X,[2,31]),e(X,[2,32]),e(X,[2,33]),e(X,[2,34]),e(Ae,[2,81]),e(Ae,[2,82]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{8:[2,13]},{8:[2,14]},{8:[2,15]},{8:[2,16]},{27:[1,65],29:[1,66]},e(Ee,[2,79]),e(Ee,[2,80]),{27:[1,67],29:[1,68]},e(Ee,[2,85]),e(Ee,[2,86]),{62:69,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{62:77,65:Ve,66:ve,67:Le,68:xe,69:we,70:De,71:Oe},{30:78,33:62,75:P,89:R,90:g},{73:79,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,60]),e(pe,[2,62]),{73:93,75:ee,76:U,78:81,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},{30:94,33:62,75:P,76:U,89:R,90:g},{5:[1,95]},{30:96,33:62,75:P,89:R,90:g},{5:[1,97]},{30:98,33:62,75:P,89:R,90:g},{63:[1,99]},e(Y,[2,50]),e(Y,[2,51]),e(Y,[2,52]),e(Y,[2,53]),e(Y,[2,54]),e(Y,[2,55]),e(Y,[2,56]),{64:[1,100]},e(p,[2,59],{76:U}),e(p,[2,64],{76:Me}),{33:103,75:[1,102],89:R,90:g},e(Fe,[2,65],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),e(T,[2,67]),e(T,[2,69]),e(T,[2,70]),e(T,[2,71]),e(T,[2,72]),e(T,[2,73]),e(T,[2,74]),e(T,[2,75]),e(T,[2,76]),e(T,[2,77]),e(T,[2,78]),e(p,[2,57],{76:Me}),e(p,[2,58],{76:U}),{5:B,28:105,31:Q,34:H,36:K,38:W,40:j},{27:[1,112],76:U},{5:he,40:ue,56:113,57:fe,59:me},{27:[1,118],76:U},{33:119,89:R,90:g},{33:120,89:R,90:g},{75:ee,78:121,79:82,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe},e(pe,[2,61]),e(pe,[2,63]),e(T,[2,68]),e(p,[2,21]),{32:[1,122]},{32:[1,123]},{32:[1,124]},{32:[1,125]},{5:B,28:126,31:Q,34:H,36:K,38:W,40:j},e(p,[2,28]),{5:[1,127]},e(p,[2,42]),{32:[1,128]},{32:[1,129]},{5:he,40:ue,56:130,57:fe,59:me},e(p,[2,47]),{5:[1,131]},e(p,[2,48]),e(p,[2,49]),e(Fe,[2,66],{79:104,75:ee,80:te,81:se,82:ie,83:re,84:ne,85:ae,86:le,87:ce,88:oe}),{33:132,89:R,90:g},{35:133,89:[1,134],90:[1,135]},{37:136,47:[1,137],48:[1,138],49:[1,139]},{39:140,50:[1,141],51:[1,142],52:[1,143],53:[1,144]},e(p,[2,27]),{5:B,28:145,31:Q,34:H,36:K,38:W,40:j},{58:146,89:[1,147],90:[1,148]},{60:149,89:[1,150],90:[1,151]},e(p,[2,46]),{5:he,40:ue,56:152,57:fe,59:me},{5:[1,153]},{5:[1,154]},{5:[2,83]},{5:[2,84]},{5:[1,155]},{5:[2,35]},{5:[2,36]},{5:[2,37]},{5:[1,156]},{5:[2,38]},{5:[2,39]},{5:[2,40]},{5:[2,41]},e(p,[2,22]),{5:[1,157]},{5:[2,87]},{5:[2,88]},{5:[1,158]},{5:[2,89]},{5:[2,90]},e(p,[2,43]),{5:B,28:159,31:Q,34:H,36:K,38:W,40:j},{5:B,28:160,31:Q,34:H,36:K,38:W,40:j},{5:B,28:161,31:Q,34:H,36:K,38:W,40:j},{5:B,28:162,31:Q,34:H,36:K,38:W,40:j},{5:he,40:ue,56:163,57:fe,59:me},{5:he,40:ue,56:164,57:fe,59:me},e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,44]),e(p,[2,45])],defaultActions:{8:[2,2],12:[2,1],41:[2,3],42:[2,8],43:[2,9],44:[2,10],45:[2,11],46:[2,12],47:[2,13],48:[2,14],49:[2,15],50:[2,16],134:[2,83],135:[2,84],137:[2,35],138:[2,36],139:[2,37],141:[2,38],142:[2,39],143:[2,40],144:[2,41],147:[2,87],148:[2,88],150:[2,89],151:[2,90]},parseError:m(function(i,n){if(n.recoverable)this.trace(i);else{var o=new Error(i);throw o.hash=n,o}},"parseError"),parse:m(function(i){var n=this,o=[0],s=[],E=[null],t=[],de=this.table,l="",ge=0,$e=0,Ke=2,Pe=1,We=t.slice.call(arguments,1),y=Object.create(this.lexer),G={yy:{}};for(var be in this.yy)Object.prototype.hasOwnProperty.call(this.yy,be)&&(G.yy[be]=this.yy[be]);y.setInput(i,G.yy),G.yy.lexer=y,G.yy.parser=this,typeof y.yylloc>"u"&&(y.yylloc={});var Ie=y.yylloc;t.push(Ie);var je=y.options&&y.options.ranges;typeof G.yy.parseError=="function"?this.parseError=G.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ge(k){o.length=o.length-2*k,E.length=E.length-k,t.length=t.length-k}m(Ge,"popStack");function Ue(){var k;return k=s.pop()||y.lex()||Pe,typeof k!="number"&&(k instanceof Array&&(s=k,k=s.pop()),k=n.symbols_[k]||k),k}m(Ue,"lex");for(var I,z,N,ke,J={},ye,F,Ye,_e;;){if(z=o[o.length-1],this.defaultActions[z]?N=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=Ue()),N=de[z]&&de[z][I]),typeof N>"u"||!N.length||!N[0]){var Te="";_e=[];for(ye in de[z])this.terminals_[ye]&&ye>Ke&&_e.push("'"+this.terminals_[ye]+"'");y.showPosition?Te="Parse error on line "+(ge+1)+`:
2
2
  `+y.showPosition()+`
3
3
  Expecting `+_e.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Te="Parse error on line "+(ge+1)+": Unexpected "+(I==Pe?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Te,{text:y.match,token:this.terminals_[I]||I,line:y.yylineno,loc:Ie,expected:_e})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(N[0]){case 1:o.push(I),E.push(y.yytext),t.push(y.yylloc),o.push(N[1]),I=null,$e=y.yyleng,l=y.yytext,ge=y.yylineno,Ie=y.yylloc;break;case 2:if(F=this.productions_[N[1]][1],J.$=E[E.length-F],J._$={first_line:t[t.length-(F||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(F||1)].first_column,last_column:t[t.length-1].last_column},je&&(J._$.range=[t[t.length-(F||1)].range[0],t[t.length-1].range[1]]),ke=this.performAction.apply(J,[l,$e,ge,G.yy,N[1],E,t].concat(We)),typeof ke<"u")return ke;F&&(o=o.slice(0,-1*F*2),E=E.slice(0,-1*F),t=t.slice(0,-1*F)),o.push(this.productions_[N[1]][0]),E.push(J.$),t.push(J._$),Ye=de[o[o.length-2]][o[o.length-1]],o.push(Ye);break;case 3:return!0}}return!0},"parse")},He=(function(){var $={EOF:1,parseError:m(function(n,o){if(this.yy.parser)this.yy.parser.parseError(n,o);else throw new Error(n)},"parseError"),setInput:m(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:m(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:m(function(i){var n=i.length,o=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var s=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===s.length?this.yylloc.first_column:0)+s[s.length-o.length].length-o[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:m(function(){return this._more=!0,this},"more"),reject:m(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:m(function(i){this.unput(this.match.slice(i))},"less"),pastInput:m(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:m(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:m(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./51_h0jm2.js";import{bs as K,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as L,aA as p,c9 as ne,aB as B,c5 as R,a7 as oe,ay as ie}from"./CJxGDkBm.js";import{i as q}from"./PXCFrn2V.js";import{s as W}from"./CpPNoOk-.js";import{f as A}from"./CdOh_Fmv.js";import"./Cgn_eC9-.js";import{D as ce}from"./b-bXytVF.js";import{U as de}from"./CmVXj6KK.js";import{J4 as ue,iT as le}from"./CbRsc9i4.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),j=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function M(y,r){if(new.target)return F({component:M,...y});K(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),I=P(f),U=w(I,!0),D=m(I,2),n=w(D,!0),h=m(D,2);{var Q=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=m(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=m(O,2);{var X=e=>{var t=j(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=m(S,2);{var Z=e=>{var t=j(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var T=m(f,2),E=P(T);A(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var J=m(E,2);A(J,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(J,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(T),$(x),k((e,t,s,o)=>{W(x,"aria-label",e),W(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),L(C)}function me(y,r){if(new.target)return F({component:me,...y});K(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(R(()=>c()),R(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),I=ie(f);{var U=n=>{M(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(I,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=L(x);return b(),D}export{me as default};
1
+ import{t as F,bo as l,bm as u,bw as G,b as H,bs as re,bq as se}from"./51_h0jm2.js";import{bs as K,a5 as P,bl as w,bS as m,bA as $,be as z,b$ as N,b_ as k,bO as _,W as v,aD as ae,bn as L,aA as p,c9 as ne,aB as B,c5 as R,a7 as oe,ay as ie}from"./CJxGDkBm.js";import{i as q}from"./PXCFrn2V.js";import{s as W}from"./CpPNoOk-.js";import{f as A}from"./BnA9v3pc.js";import"./rIUowGAi.js";import{D as ce}from"./b-bXytVF.js";import{U as de}from"./Ce83awb2.js";import{J5 as ue,iT as le}from"./CI4_aI7e.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),j=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function M(y,r){if(new.target)return F({component:M,...y});K(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),I=P(f),U=w(I,!0),D=m(I,2),n=w(D,!0),h=m(D,2);{var Q=e=>{var t=pe(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=m(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=m(O,2);{var X=e=>{var t=j(),s=w(t,!0);k(()=>_(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=m(S,2);{var Z=e=>{var t=j(),s=w(t,!0);k(o=>_(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var T=m(f,2),E=P(T);A(E,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var J=m(E,2);A(J,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>_(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=m(J,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>_(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(T),$(x),k((e,t,s,o)=>{W(x,"aria-label",e),W(f,"aria-label",t),_(U,s),_(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),L(C)}function me(y,r){if(new.target)return F({component:me,...y});K(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(R(()=>c()),R(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),I=ie(f);{var U=n=>{M(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(I,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=L(x);return b(),D}export{me as default};