@intent-hq/web 2.373.0 → 2.374.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{DjrbQ2JE.js → -GzAayRi.js} +1 -1
  3. package/web/app/immutable/chunks/{By3d2aKb.js → 1PBEbLiL.js} +1 -1
  4. package/web/app/immutable/chunks/{B16R3gcp.js → 49cgEwsv.js} +1 -1
  5. package/web/app/immutable/chunks/{DKfX0H_n.js → 50l-lj9m.js} +1 -1
  6. package/web/app/immutable/chunks/{DQLfBH7I.js → 5JkhMlm8.js} +1 -1
  7. package/web/app/immutable/chunks/{CP45YnfV.js → 5rvkVpHO.js} +1 -1
  8. package/web/app/immutable/chunks/{Cd-cZZzm.js → 6svm3ALY.js} +1 -1
  9. package/web/app/immutable/chunks/{CETwR3pL.js → 7N4d1SHx.js} +1 -1
  10. package/web/app/immutable/chunks/{DD146Q03.js → 89cPEaN9.js} +1 -1
  11. package/web/app/immutable/chunks/{CYIfyDKk.js → 8iM9mVCJ.js} +1 -1
  12. package/web/app/immutable/chunks/{CErePAlp.js → 9sLim_4t.js} +1 -1
  13. package/web/app/immutable/chunks/{BBQsIbOZ.js → A3itjZn8.js} +3 -3
  14. package/web/app/immutable/chunks/{6w617QdY.js → AWXowPxU.js} +1 -1
  15. package/web/app/immutable/chunks/{D3ndslw4.js → Ax2B7QQh.js} +1 -1
  16. package/web/app/immutable/chunks/{C35YmXbg.js → B-W7deES.js} +1 -1
  17. package/web/app/immutable/chunks/{Coutr3Mi.js → B0zwGZ_O.js} +1 -1
  18. package/web/app/immutable/chunks/{KT1ygtoE.js → B14ddEbH.js} +1 -1
  19. package/web/app/immutable/chunks/{CGf2gpvp.js → B1WcmQpq.js} +1 -1
  20. package/web/app/immutable/chunks/{CDPoeQz1.js → B2Arx0ZF.js} +1 -1
  21. package/web/app/immutable/chunks/{CiSv5u8J.js → B2wZ0Bb3.js} +1 -1
  22. package/web/app/immutable/chunks/{CA8MYKPh.js → B4LvWoln.js} +1 -1
  23. package/web/app/immutable/chunks/{kLX0oQjt.js → B55Lo0FS.js} +1 -1
  24. package/web/app/immutable/chunks/{n-7qZfot.js → B5L_fzQJ.js} +1 -1
  25. package/web/app/immutable/chunks/{qRbd1ibI.js → B5RGOddd.js} +2 -2
  26. package/web/app/immutable/chunks/{Cuea3cpS.js → B5yEHkSy.js} +1 -1
  27. package/web/app/immutable/chunks/{DRhcvZ9X.js → B6ZYX7Y8.js} +1 -1
  28. package/web/app/immutable/chunks/{CWJC1lxP.js → B8BkT7-k.js} +1 -1
  29. package/web/app/immutable/chunks/{CYALE4XC.js → B94otgnH.js} +1 -1
  30. package/web/app/immutable/chunks/{DXXCttvN.js → B9zxG49e.js} +1 -1
  31. package/web/app/immutable/chunks/{szZ8pRnr.js → BE6Jwt_-.js} +2 -2
  32. package/web/app/immutable/chunks/{BgTFeyrq.js → BFBRQlnB.js} +1 -1
  33. package/web/app/immutable/chunks/{DhCgtN_p.js → BFSIy5Dg.js} +3 -3
  34. package/web/app/immutable/chunks/{CIG7_Ars.js → BGL-uifv.js} +1 -1
  35. package/web/app/immutable/chunks/{DSF6kjeh.js → BHMaHtb7.js} +3 -3
  36. package/web/app/immutable/chunks/{qim_Ct3_.js → BHhpe04T.js} +1 -1
  37. package/web/app/immutable/chunks/{BmDq-uhT.js → BJs6L98H.js} +1 -1
  38. package/web/app/immutable/chunks/{mFH5JSTn.js → BLKGmMKH.js} +1 -1
  39. package/web/app/immutable/chunks/{BGHJsG8l.js → BMLCt23V.js} +1 -1
  40. package/web/app/immutable/chunks/{DkNt2yt8.js → BMT3BZWc.js} +1 -1
  41. package/web/app/immutable/chunks/{DFvB5yOL.js → BMfEzUyf.js} +1 -1
  42. package/web/app/immutable/chunks/{CzlyzR5w.js → BOABr5iA.js} +1 -1
  43. package/web/app/immutable/chunks/{DYdDF6N_.js → BOImXhxR.js} +1 -1
  44. package/web/app/immutable/chunks/{BjxfkKmH.js → BOijq64j.js} +1 -1
  45. package/web/app/immutable/chunks/{rPhSJlXw.js → BPU4O8X2.js} +1 -1
  46. package/web/app/immutable/chunks/{Bx9jW2hM.js → BPqj6Qvi.js} +1 -1
  47. package/web/app/immutable/chunks/{BycCRh1U.js → BQMaTSUT.js} +1 -1
  48. package/web/app/immutable/chunks/{DJbFr8xM.js → BUT4El0L.js} +1 -1
  49. package/web/app/immutable/chunks/{DGjX-g5M.js → BUTJbFoT.js} +1 -1
  50. package/web/app/immutable/chunks/{dIHmpCQU.js → BU_lcjuY.js} +1 -1
  51. package/web/app/immutable/chunks/{cplLJoH8.js → BWsFbeUj.js} +1 -1
  52. package/web/app/immutable/chunks/{DzveesLa.js → BWuBGnGl.js} +1 -1
  53. package/web/app/immutable/chunks/{5lMMsSad.js → BWxQ5UZF.js} +1 -1
  54. package/web/app/immutable/chunks/{C81hO4Na.js → BXUbR1fc.js} +1 -1
  55. package/web/app/immutable/chunks/{DSK8O9Vd.js → BXwdEeCG.js} +1 -1
  56. package/web/app/immutable/chunks/{DlxIFfaX.js → BYqiRSP_.js} +1 -1
  57. package/web/app/immutable/chunks/{Bps-K7_G.js → BZSpcC6v.js} +1 -1
  58. package/web/app/immutable/chunks/{D6H0b5RP.js → B_fuDTJc.js} +1 -1
  59. package/web/app/immutable/chunks/{D-q4DlJb.js → BazydCWO.js} +1 -1
  60. package/web/app/immutable/chunks/{c8-6qMPD.js → BcubO1aW.js} +1 -1
  61. package/web/app/immutable/chunks/BdEeTGSl.js +1 -0
  62. package/web/app/immutable/chunks/{BdpnQog4.js → BeTiPXK7.js} +1 -1
  63. package/web/app/immutable/chunks/{6_rpMdx6.js → BeigtvFK.js} +1 -1
  64. package/web/app/immutable/chunks/{Dk2HcklO.js → BfQPFCP7.js} +2 -2
  65. package/web/app/immutable/chunks/{CReqoCJu.js → BfdTnj-p.js} +1 -1
  66. package/web/app/immutable/chunks/{BWMQtsIY.js → BfjyDFQP.js} +1 -1
  67. package/web/app/immutable/chunks/{CSEth5B8.js → BfmZaG-s.js} +3 -3
  68. package/web/app/immutable/chunks/{CzlfnNwB.js → BgsG3ZiB.js} +1 -1
  69. package/web/app/immutable/chunks/{UWZjMttV.js → Bi08_5Fn.js} +1 -1
  70. package/web/app/immutable/chunks/{CCt5EXjV.js → BiByqANf.js} +1 -1
  71. package/web/app/immutable/chunks/{QulM8iJe.js → BkB7PRB0.js} +1 -1
  72. package/web/app/immutable/chunks/{BLlTtC--.js → BlBjpUY-.js} +2 -2
  73. package/web/app/immutable/chunks/{xMwKWjB7.js → BlTs1zAy.js} +1 -1
  74. package/web/app/immutable/chunks/{B9YvG8aT.js → BlbJ4pnj.js} +1 -1
  75. package/web/app/immutable/chunks/{DGLC3mk9.js → BmO6NekI.js} +1 -1
  76. package/web/app/immutable/chunks/{EP05ckdk.js → BnVNvux0.js} +1 -1
  77. package/web/app/immutable/chunks/{CljKdpeo.js → Bnhl7xZz.js} +1 -1
  78. package/web/app/immutable/chunks/{2EufkTRJ.js → BqJSWZOr.js} +1 -1
  79. package/web/app/immutable/chunks/{CT1vJyZh.js → BrfF5NLx.js} +1 -1
  80. package/web/app/immutable/chunks/{DhbWoWDC.js → BrrhiHyd.js} +1 -1
  81. package/web/app/immutable/chunks/{DQvYqUjR.js → BtBMs8pl.js} +1 -1
  82. package/web/app/immutable/chunks/{Cbbfu3DD.js → BtLlD_LO.js} +1 -1
  83. package/web/app/immutable/chunks/{Fzjn8DZE.js → BtdtsPJb.js} +1 -1
  84. package/web/app/immutable/chunks/{D-_v7kDk.js → BuWZ2vPD.js} +1 -1
  85. package/web/app/immutable/chunks/{t6t3mdUn.js → BuXfbkCo.js} +1 -1
  86. package/web/app/immutable/chunks/{DKfvgKdK.js → Bu_b7Geq.js} +1 -1
  87. package/web/app/immutable/chunks/{1KkdIMQF.js → Bx_Vy-8F.js} +1 -1
  88. package/web/app/immutable/chunks/{_e4xep-2.js → ByAetY4P.js} +1 -1
  89. package/web/app/immutable/chunks/{DWiL9mAL.js → BzL9Egzq.js} +1 -1
  90. package/web/app/immutable/chunks/{7aQTBNpP.js → BzPBikEv.js} +1 -1
  91. package/web/app/immutable/chunks/{DqFPqj_c.js → C-1CqQ1f.js} +1 -1
  92. package/web/app/immutable/chunks/{DM4j5ANN.js → C-IFS50X.js} +1 -1
  93. package/web/app/immutable/chunks/{D_G-1JiF.js → C0_snm4j.js} +1 -1
  94. package/web/app/immutable/chunks/{BylMfQ8a.js → C0urABBN.js} +1 -1
  95. package/web/app/immutable/chunks/{Bm7RRc9h.js → C1VzVy_T.js} +1 -1
  96. package/web/app/immutable/chunks/{4kjAauCt.js → C1kgjET0.js} +1 -1
  97. package/web/app/immutable/chunks/{BaeKUSxM.js → C33vrAzQ.js} +1 -1
  98. package/web/app/immutable/chunks/{DQPJa1PL.js → C4qomPfT.js} +1 -1
  99. package/web/app/immutable/chunks/{DDdcGQT_.js → C5DeEaYP.js} +1 -1
  100. package/web/app/immutable/chunks/{FJqzUSSZ.js → C600Ggsz.js} +1 -1
  101. package/web/app/immutable/chunks/{BY3bBVx0.js → C6Y4L69O.js} +1 -1
  102. package/web/app/immutable/chunks/{C-ip9N1T.js → C7PhRIIZ.js} +1 -1
  103. package/web/app/immutable/chunks/{GnS8SMtq.js → C8IXZPNs.js} +2 -2
  104. package/web/app/immutable/chunks/{DNjgbEGg.js → C8vjEKe_.js} +1 -1
  105. package/web/app/immutable/chunks/{CDCE6oTg.js → CAeNUoVv.js} +1 -1
  106. package/web/app/immutable/chunks/{C20fDEam.js → CBFYLXFF.js} +1 -1
  107. package/web/app/immutable/chunks/{DMTCts09.js → CD-hT3fi.js} +1 -1
  108. package/web/app/immutable/chunks/{B7kAC2QO.js → CDYjKRWo.js} +1 -1
  109. package/web/app/immutable/chunks/{BoOU7UK-.js → CG5Ujj5n.js} +1 -1
  110. package/web/app/immutable/chunks/{IHRvbath.js → CGCLUZ3o.js} +1 -1
  111. package/web/app/immutable/chunks/{B0Vj4qoa.js → CGDwhMyu.js} +3 -3
  112. package/web/app/immutable/chunks/{DWoh9eLQ.js → CHfIP-Ca.js} +1 -1
  113. package/web/app/immutable/chunks/{BKN8g-SH.js → CI03it4q.js} +1 -1
  114. package/web/app/immutable/chunks/CI8lfy7e.js +1 -0
  115. package/web/app/immutable/chunks/{D5haHDwG.js → CIFNI35-.js} +1 -1
  116. package/web/app/immutable/chunks/{DwyFrp4u.js → CMSXP3JK.js} +1 -1
  117. package/web/app/immutable/chunks/{C6qzokod.js → CNsG6rqe.js} +1 -1
  118. package/web/app/immutable/chunks/{C8IMuGeP.js → CPUsWCCN.js} +1 -1
  119. package/web/app/immutable/chunks/{DOHVP8r1.js → CPthbtAR.js} +1 -1
  120. package/web/app/immutable/chunks/{CksX9wbO.js → CU4TDhZp.js} +2 -2
  121. package/web/app/immutable/chunks/{CncWt3O6.js → CZA7HKg8.js} +1 -1
  122. package/web/app/immutable/chunks/{DnzGwHHz.js → C_-1lZIi.js} +1 -1
  123. package/web/app/immutable/chunks/{CZL5vFO8.js → CaAd_cyY.js} +1 -1
  124. package/web/app/immutable/chunks/{DH7M58MP.js → CcBYgr_O.js} +1 -1
  125. package/web/app/immutable/chunks/{DJFHa_93.js → CddxYcvS.js} +1 -1
  126. package/web/app/immutable/chunks/{DYUZxGEP.js → Cdgx1q8N.js} +1 -1
  127. package/web/app/immutable/chunks/{BRE1DYz5.js → CeAbChdf.js} +1 -1
  128. package/web/app/immutable/chunks/{D14WwGOw.js → CeNk7AI9.js} +1 -1
  129. package/web/app/immutable/chunks/{C7HVlmGs.js → Cf6Y8_8o.js} +1 -1
  130. package/web/app/immutable/chunks/{DbEXn4_y.js → Cfbp4n6F.js} +2 -2
  131. package/web/app/immutable/chunks/{EF-B7qSv.js → Cft5DaOC.js} +1 -1
  132. package/web/app/immutable/chunks/{D41qh-5f.js → Ch-D6DCZ.js} +1 -1
  133. package/web/app/immutable/chunks/{D4lamhem.js → CheTmX4x.js} +2 -2
  134. package/web/app/immutable/chunks/{ChI9mvUS.js → ChuuGcaj.js} +3 -3
  135. package/web/app/immutable/chunks/{B7ubb8f-.js → CiJzGYSi.js} +1 -1
  136. package/web/app/immutable/chunks/{4PwdPd7u.js → CiasNS4Y.js} +1 -1
  137. package/web/app/immutable/chunks/{CinOJOVh.js → Cij6f88k.js} +1 -1
  138. package/web/app/immutable/chunks/Ciub7-gv.js +1 -0
  139. package/web/app/immutable/chunks/{BvIER3hk.js → CkF26rCa.js} +1 -1
  140. package/web/app/immutable/chunks/{DiNPchhP.js → CkGI1ZG-.js} +1 -1
  141. package/web/app/immutable/chunks/CkJd-nyM.js +1 -0
  142. package/web/app/immutable/chunks/{DjwaFIuf.js → CkbzWFJM.js} +1 -1
  143. package/web/app/immutable/chunks/{BhIqqwku.js → Cm47R70f.js} +1 -1
  144. package/web/app/immutable/chunks/{DM9LmF5j.js → CmHh0Wvy.js} +1 -1
  145. package/web/app/immutable/chunks/{lHD19ydf.js → Cn1QrsR7.js} +1 -1
  146. package/web/app/immutable/chunks/{CG456d1E.js → CnAm8UDm.js} +1 -1
  147. package/web/app/immutable/chunks/{BiYllXNK.js → CnLJ_N14.js} +1 -1
  148. package/web/app/immutable/chunks/{DjNq-V1x.js → Cncxuk-H.js} +1 -1
  149. package/web/app/immutable/chunks/{DIcqfvJD.js → Co5Wv5vC.js} +1 -1
  150. package/web/app/immutable/chunks/{02YUL-k8.js → CoVtH1zm.js} +1 -1
  151. package/web/app/immutable/chunks/{BGMke03b.js → Cox9QorC.js} +1 -1
  152. package/web/app/immutable/chunks/{CB4UdDb9.js → CruJ4jyB.js} +1 -1
  153. package/web/app/immutable/chunks/{Do5F-HPE.js → CsFzjSWo.js} +1 -1
  154. package/web/app/immutable/chunks/{DHuSm3be.js → CsI7oUrd.js} +1 -1
  155. package/web/app/immutable/chunks/{BHRpMLDk.js → Csr-rIZF.js} +1 -1
  156. package/web/app/immutable/chunks/{D4dQaEzK.js → CtVskF6o.js} +1 -1
  157. package/web/app/immutable/chunks/{OnVz_1Np.js → CvP7-iXZ.js} +1 -1
  158. package/web/app/immutable/chunks/{Vg0EpBe7.js → Cvxp3hv6.js} +1 -1
  159. package/web/app/immutable/chunks/{CmlGvxmu.js → CykMvH93.js} +1 -1
  160. package/web/app/immutable/chunks/{CVbN130s.js → CyyQuDJ2.js} +1 -1
  161. package/web/app/immutable/chunks/{DfX9QhMz.js → D-_a8-qv.js} +1 -1
  162. package/web/app/immutable/chunks/{CXEOyFq9.js → D-zxS9tA.js} +1 -1
  163. package/web/app/immutable/chunks/{Dv4BYa-Z.js → D1E_1zhz.js} +1 -1
  164. package/web/app/immutable/chunks/{BA-uukBX.js → D1F-b1I5.js} +1 -1
  165. package/web/app/immutable/chunks/{BCG-StgC.js → D1ZkKLqt.js} +1 -1
  166. package/web/app/immutable/chunks/{B-gBT6Wp.js → D1p7bFmY.js} +1 -1
  167. package/web/app/immutable/chunks/{BJT5G4Vv.js → D208CAsp.js} +1 -1
  168. package/web/app/immutable/chunks/{xfUYUYD5.js → D4X5QfgO.js} +3 -3
  169. package/web/app/immutable/chunks/{BaUOI4IK.js → D5XjMLtX.js} +1 -1
  170. package/web/app/immutable/chunks/{CHVFOL-2.js → D5eCb9SA.js} +1 -1
  171. package/web/app/immutable/chunks/{8gAO4rBm.js → D5wSh12h.js} +1 -1
  172. package/web/app/immutable/chunks/{CCgl5yNk.js → D76tHJtr.js} +1 -1
  173. package/web/app/immutable/chunks/{DfZDDoxc.js → D7metssC.js} +1 -1
  174. package/web/app/immutable/chunks/{mvlVGSeb.js → D8-vtN74.js} +4 -4
  175. package/web/app/immutable/chunks/{2m_u3bgL.js → D8KugJqg.js} +1 -1
  176. package/web/app/immutable/chunks/{Bup3f7j4.js → D91ZkM-_.js} +1 -1
  177. package/web/app/immutable/chunks/{D2YGMA8q.js → DAbdqRSx.js} +4 -4
  178. package/web/app/immutable/chunks/{0iM-y8KY.js → DBEo2Y3v.js} +1 -1
  179. package/web/app/immutable/chunks/{BvxuCpa1.js → DBI9dTMM.js} +1 -1
  180. package/web/app/immutable/chunks/{Bs8Uk6ug.js → DCEkJXus.js} +1 -1
  181. package/web/app/immutable/chunks/{CQzabfN4.js → DDt9eLZK.js} +4 -4
  182. package/web/app/immutable/chunks/{XgcRf2OO.js → DGGMIXhj.js} +2 -2
  183. package/web/app/immutable/chunks/{k2cU06qa.js → DH2xXdI1.js} +1 -1
  184. package/web/app/immutable/chunks/{CYmtPuTl.js → DH7vXXdq.js} +1 -1
  185. package/web/app/immutable/chunks/{nhnuI90y.js → DL1sQHpf.js} +1 -1
  186. package/web/app/immutable/chunks/{CwsVBSUF.js → DP6Xlts5.js} +1 -1
  187. package/web/app/immutable/chunks/{BYe7PWsd.js → DQQg-_Fv.js} +1 -1
  188. package/web/app/immutable/chunks/{BQ8qAv7M.js → DQn-1ubH.js} +1 -1
  189. package/web/app/immutable/chunks/{CMdAOXEb.js → DQvmr3ea.js} +1 -1
  190. package/web/app/immutable/chunks/{hGZqfbJu.js → DSjVYlVX.js} +1 -1
  191. package/web/app/immutable/chunks/{DeXfipOI.js → DTXx_iLa.js} +1 -1
  192. package/web/app/immutable/chunks/{CBNJqQCc.js → DUaNnRvN.js} +1 -1
  193. package/web/app/immutable/chunks/{BoBZ73YE.js → DVK3tNru.js} +1 -1
  194. package/web/app/immutable/chunks/{frim2Lpk.js → DWiCzmLc.js} +1 -1
  195. package/web/app/immutable/chunks/{DJE_dF7Z.js → DYME5vl6.js} +1 -1
  196. package/web/app/immutable/chunks/{BZEL244B.js → DYuqveqh.js} +1 -1
  197. package/web/app/immutable/chunks/{DppUFX6O.js → Da8jWysx.js} +1 -1
  198. package/web/app/immutable/chunks/{B-Km1hE1.js → DaNITilt.js} +1 -1
  199. package/web/app/immutable/chunks/{5x3ldUtC.js → DcgZLPGn.js} +1 -1
  200. package/web/app/immutable/chunks/{BOv3_02t.js → Dd92kFdo.js} +1 -1
  201. package/web/app/immutable/chunks/{DZ1MmJsG.js → DeaknxEN.js} +1 -1
  202. package/web/app/immutable/chunks/{DC4EvC84.js → Dep4c5m-.js} +1 -1
  203. package/web/app/immutable/chunks/{Bd7wm9ou.js → Df8V6WlA.js} +1 -1
  204. package/web/app/immutable/chunks/{CSp7X79w.js → Dfqr3ucI.js} +1 -1
  205. package/web/app/immutable/chunks/{MGCpuCf0.js → DfrnAh60.js} +13 -13
  206. package/web/app/immutable/chunks/{BaKHwctr.js → DgNmFGXj.js} +1 -1
  207. package/web/app/immutable/chunks/{DkE1KcNT.js → DgboVgd_.js} +1 -1
  208. package/web/app/immutable/chunks/{BIW6jxDi.js → Dgmf4O3-.js} +1 -1
  209. package/web/app/immutable/chunks/{DGaBtrvB.js → DhNEeuS_.js} +1 -1
  210. package/web/app/immutable/chunks/{DunKT6dS.js → DhTidcoi.js} +2 -2
  211. package/web/app/immutable/chunks/{DxVSJQW2.js → Dhf5PPGB.js} +1 -1
  212. package/web/app/immutable/chunks/{CFxELBeY.js → DiE8v_X5.js} +1 -1
  213. package/web/app/immutable/chunks/{CevGDj0_.js → DjKYseTS.js} +1 -1
  214. package/web/app/immutable/chunks/{hR-DaH6k.js → DkkzFfYK.js} +1 -1
  215. package/web/app/immutable/chunks/{BSTl1RvT.js → Dm3SETfX.js} +6 -6
  216. package/web/app/immutable/chunks/{gF4jlhhn.js → Dm8F4oqT.js} +2 -2
  217. package/web/app/immutable/chunks/{CHxdiRFz.js → Do2AbdMZ.js} +1 -1
  218. package/web/app/immutable/chunks/{wQ32vU9q.js → DoA8ABAE.js} +1 -1
  219. package/web/app/immutable/chunks/{ZawOZTIQ.js → DqeGDed0.js} +1 -1
  220. package/web/app/immutable/chunks/{BlBb1keW.js → DreYzK2d.js} +1 -1
  221. package/web/app/immutable/chunks/{Dcl67lxX.js → DtVS2Hpo.js} +1 -1
  222. package/web/app/immutable/chunks/{BsRM8yjb.js → DvyPNixU.js} +1 -1
  223. package/web/app/immutable/chunks/{cYKcpEeG.js → Dw5mZcm5.js} +1 -1
  224. package/web/app/immutable/chunks/{0LGjiHaB.js → DwGC3Qoc.js} +1 -1
  225. package/web/app/immutable/chunks/{BfXbOT8i.js → DxXHN0Kd.js} +1 -1
  226. package/web/app/immutable/chunks/DxxarOOi.js +1 -0
  227. package/web/app/immutable/chunks/{Clbflwy_.js → Dya4in_M.js} +1 -1
  228. package/web/app/immutable/chunks/{DcvRBAV3.js → DyvQorI4.js} +1 -1
  229. package/web/app/immutable/chunks/{BL2ujNK_.js → Dz150vD0.js} +1 -1
  230. package/web/app/immutable/chunks/{D6XIvyP3.js → DzAQQ1i-.js} +1 -1
  231. package/web/app/immutable/chunks/{D9rf8Jdd.js → EKAiX2GI.js} +1 -1
  232. package/web/app/immutable/chunks/{Q8JNttIh.js → H-xlkAY8.js} +1 -1
  233. package/web/app/immutable/chunks/{C_92InJL.js → HP6Cq9rf.js} +1 -1
  234. package/web/app/immutable/chunks/{Dw9M83Lw.js → HjJJbdN8.js} +1 -1
  235. package/web/app/immutable/chunks/{Dt5BioTS.js → Hxdz4eYy.js} +1 -1
  236. package/web/app/immutable/chunks/{DTCoCNln.js → I0qWsqIQ.js} +2 -2
  237. package/web/app/immutable/chunks/{C7eBooB_.js → IOUuDzhl.js} +3 -3
  238. package/web/app/immutable/chunks/{B3Xs1bS2.js → IfuzSDQC.js} +1 -1
  239. package/web/app/immutable/chunks/{-x2KiTdv.js → JFDbnVgN.js} +1 -1
  240. package/web/app/immutable/chunks/{ewVf6PIZ.js → JJ3RCq0j.js} +1 -1
  241. package/web/app/immutable/chunks/{CO4Rte0G.js → K-0xnE6j.js} +1 -1
  242. package/web/app/immutable/chunks/{DkH5cZvV.js → KLcMYBf-.js} +1 -1
  243. package/web/app/immutable/chunks/{-pTsRhwv.js → LcfcL_-4.js} +1 -1
  244. package/web/app/immutable/chunks/{H95XSLd_.js → M2ziLO4-.js} +1 -1
  245. package/web/app/immutable/chunks/{C-QKLo6O.js → MvtlzB8k.js} +1 -1
  246. package/web/app/immutable/chunks/{DeAaK3tO.js → OjneFxUj.js} +1 -1
  247. package/web/app/immutable/chunks/{Ctelf0jH.js → Or6TlXVc.js} +1 -1
  248. package/web/app/immutable/chunks/{ckTlOLII.js → PoxwHYkO.js} +1 -1
  249. package/web/app/immutable/chunks/{DanM5oR1.js → QVs7xD_-.js} +1 -1
  250. package/web/app/immutable/chunks/{R0qfr5ax.js → QWptVHsb.js} +1 -1
  251. package/web/app/immutable/chunks/{B-k5wsvC.js → QpoIgRGw.js} +1 -1
  252. package/web/app/immutable/chunks/{Bb1Qji_z.js → R7rkruRO.js} +1 -1
  253. package/web/app/immutable/chunks/{aJuiKWzg.js → Rar9KqJV.js} +1 -1
  254. package/web/app/immutable/chunks/{BwQ4aQNw.js → SqcDn3FF.js} +1 -1
  255. package/web/app/immutable/chunks/{DWGCjk6V.js → TRC-1MZ6.js} +1 -1
  256. package/web/app/immutable/chunks/{C-AAKukn.js → TZXFgAt8.js} +1 -1
  257. package/web/app/immutable/chunks/{70EoeQTk.js → Tsg7Rikm.js} +1 -1
  258. package/web/app/immutable/chunks/{DzibEiL0.js → U7PCJ0KW.js} +1 -1
  259. package/web/app/immutable/chunks/{8-vxLh_H.js → UBi_ObtY.js} +1 -1
  260. package/web/app/immutable/chunks/{BIMyMsOv.js → UCKuBGVM.js} +1 -1
  261. package/web/app/immutable/chunks/{B41DOn_L.js → VfcZjJDU.js} +1 -1
  262. package/web/app/immutable/chunks/{8SiHtB72.js → VgpkVPqy.js} +1 -1
  263. package/web/app/immutable/chunks/{gkFzY6r7.js → VlOW_lom.js} +1 -1
  264. package/web/app/immutable/chunks/{BfrXK-ZU.js → Wu03VY_-.js} +1 -1
  265. package/web/app/immutable/chunks/{CXS-R8zY.js → YTYw24Kl.js} +1 -1
  266. package/web/app/immutable/chunks/{QL_pZGWA.js → ZQWbYglS.js} +1 -1
  267. package/web/app/immutable/chunks/Zas8kAKr.js +1 -0
  268. package/web/app/immutable/chunks/{_LMIM985.js → ZdR-PTAn.js} +1 -1
  269. package/web/app/immutable/chunks/{CKmtKxD0.js → Zs30783q.js} +1 -1
  270. package/web/app/immutable/chunks/{Bah_ExD8.js → _NdZi_dM.js} +1 -1
  271. package/web/app/immutable/chunks/{8s1d6VlB.js → _rr6nsRq.js} +1 -1
  272. package/web/app/immutable/chunks/{B0r15Yat.js → cZ6WbhzF.js} +9 -9
  273. package/web/app/immutable/chunks/{C1q0hSky.js → dLGWDtiP.js} +1 -1
  274. package/web/app/immutable/chunks/{CniNJafb.js → eO_Y6Zjh.js} +1 -1
  275. package/web/app/immutable/chunks/{D7thg7Ha.js → eUuFvR6M.js} +1 -1
  276. package/web/app/immutable/chunks/{DHeLwLtz.js → euI_ACTK.js} +1 -1
  277. package/web/app/immutable/chunks/{DnT_wkoM.js → hf11ueQS.js} +1 -1
  278. package/web/app/immutable/chunks/{CQ_L8AeY.js → iwYLzKdV.js} +1 -1
  279. package/web/app/immutable/chunks/{CT9j94JK.js → jbqICVar.js} +2 -2
  280. package/web/app/immutable/chunks/{CmeuXd0X.js → mzRkGv5m.js} +1 -1
  281. package/web/app/immutable/chunks/{DoSi2n5h.js → o1xI68Cv.js} +3 -3
  282. package/web/app/immutable/chunks/{B72JTqS_.js → ow3T0tN7.js} +1 -1
  283. package/web/app/immutable/chunks/{ChAOamky.js → qM_0Sky2.js} +1 -1
  284. package/web/app/immutable/chunks/{BNGx8qtU.js → qZOpciCD.js} +1 -1
  285. package/web/app/immutable/chunks/{R00Ksy_g.js → sX1SzO2T.js} +1 -1
  286. package/web/app/immutable/chunks/{h0nUJIdx.js → w8yC-37t.js} +1 -1
  287. package/web/app/immutable/chunks/{DiJpPQTH.js → wWw37-Ke.js} +1 -1
  288. package/web/app/immutable/chunks/{Bjnv-7Ay.js → wrK6ZRyS.js} +1 -1
  289. package/web/app/immutable/chunks/{D5N-4pZG.js → xzC0xG4O.js} +1 -1
  290. package/web/app/immutable/chunks/{DQyVwHJA.js → yglMjm12.js} +1 -1
  291. package/web/app/immutable/chunks/{Ym_4xzmH.js → zLwkenCD.js} +1 -1
  292. package/web/app/immutable/entry/{app.B8U18HSQ.js → app.CSmhn5IS.js} +3 -3
  293. package/web/app/immutable/entry/start.9LRUpX9-.js +1 -0
  294. package/web/app/immutable/nodes/{0.DLYOUyU1.js → 0.BJ-vuqyF.js} +1 -1
  295. package/web/app/immutable/nodes/{1.v44QLmv3.js → 1.K8N2U7fJ.js} +1 -1
  296. package/web/app/immutable/nodes/10.R5acEqWk.js +39 -0
  297. package/web/app/immutable/nodes/{11.zviYRL3w.js → 11.4wdFN3fm.js} +1 -1
  298. package/web/app/immutable/nodes/{12.BjGJ5mRG.js → 12.Chwv84gV.js} +1 -1
  299. package/web/app/immutable/nodes/{13.D6Me5QTp.js → 13.BT6BhMtf.js} +1 -1
  300. package/web/app/immutable/nodes/{14.CfuetyXy.js → 14.CYMJv-a-.js} +3 -3
  301. package/web/app/immutable/nodes/{15.LEAnwNjt.js → 15.N_o5QWkl.js} +1 -1
  302. package/web/app/immutable/nodes/{16.DaihUhp2.js → 16.7rbyrDeT.js} +1 -1
  303. package/web/app/immutable/nodes/{17.Cfmxzlp8.js → 17.DrMiOxPX.js} +1 -1
  304. package/web/app/immutable/nodes/{18.DMndf1DM.js → 18.BfN58CyI.js} +1 -1
  305. package/web/app/immutable/nodes/{19.D5f5Zs_m.js → 19.DRknpyiO.js} +2 -2
  306. package/web/app/immutable/nodes/{2.DSNu5875.js → 2.MIO2fuwM.js} +4 -4
  307. package/web/app/immutable/nodes/{20.B5_24cng.js → 20.BiFgSIxy.js} +1 -1
  308. package/web/app/immutable/nodes/{3.D7crSQQY.js → 3.-a-xJZ2X.js} +1 -1
  309. package/web/app/immutable/nodes/{4.BQ4kX-MO.js → 4.Cp7W3COg.js} +1 -1
  310. package/web/app/immutable/nodes/{5.CNI4QIY6.js → 5.gJXhj0lL.js} +1 -1
  311. package/web/app/immutable/nodes/{6.aqqkkpU3.js → 6.DKNQvcTz.js} +1 -1
  312. package/web/app/immutable/nodes/{7.31uDDPNB.js → 7.CxbGknsS.js} +1 -1
  313. package/web/app/immutable/nodes/{8.WLZs12tR.js → 8.C-MNb_3a.js} +1 -1
  314. package/web/app/immutable/nodes/9.5VNiGtUs.js +12 -0
  315. package/web/app/version.json +1 -1
  316. package/web/generated/paraglide.js +49 -49
  317. package/web/index.html +18 -18
  318. package/web/app/immutable/chunks/7HKQ-XDk.js +0 -1
  319. package/web/app/immutable/chunks/BLAU86XX.js +0 -1
  320. package/web/app/immutable/chunks/BpsIzxWJ.js +0 -1
  321. package/web/app/immutable/chunks/C8Ie7Deo.js +0 -1
  322. package/web/app/immutable/chunks/CmpHo399.js +0 -1
  323. package/web/app/immutable/chunks/DNGlU1yL.js +0 -1
  324. package/web/app/immutable/entry/start.C8nrElOF.js +0 -1
  325. package/web/app/immutable/nodes/10.CBX5mYGD.js +0 -39
  326. package/web/app/immutable/nodes/9.XMp3gBDl.js +0 -12
@@ -1,4 +1,4 @@
1
- import{I as pr}from"./BGHJsG8l.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./D2YGMA8q.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./DcvRBAV3.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
1
+ import{I as pr}from"./BMLCt23V.js";import{b as f,a$ as Er,X as j,aW as Kt,ay as nt,P as Ue,B as ur,h as fr,z as N,a_ as Ke,aZ as _r,b0 as gr,V as xr,U as yr,Y as Ir,ax as Rr,J as Or,r as Lr,aV as Ft,bh as Q,aa as tt,l as vt,aH as Ge,Z as br,W as zt,a7 as mr,aQ as Xe}from"./DAbdqRSx.js";import{d as Sr,h as le,g as pt,e as Ar,a as he,b as de}from"./DyvQorI4.js";var ne=(function(){var e=f(function(_t,w,C,D){for(C=C||{},D=_t.length;D--;C[_t[D]]=w);return C},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],o=[1,9],s=[1,11],n=[1,12],h=[1,14],d=[1,15],E=[1,17],u=[1,18],_=[1,19],L=[1,25],g=[1,26],R=[1,27],T=[1,28],O=[1,29],x=[1,30],m=[1,31],S=[1,32],b=[1,33],P=[1,34],k=[1,35],B=[1,36],V=[1,37],H=[1,38],z=[1,39],X=[1,40],et=[1,42],rt=[1,43],U=[1,44],ot=[1,45],at=[1,46],W=[1,47],M=[1,4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,49,50,51,53,54,56,61,62,63,64,73],Z=[1,56],Mt=[1,75],A=[1,81],v=[1,82],dt=[1,83],st=[1,84],K=[1,85],mt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],ye=[1,94],Ie=[1,95],Re=[1,96],Oe=[1,97],Le=[1,98],be=[1,99],me=[1,100],Se=[1,101],Ae=[1,102],we=[1,103],Ne=[1,104],Pe=[1,105],ke=[1,106],De=[2,79],ve=[2,78],Pt=[4,5,17,51,53,54],Bt=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],Ce=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,50,51,53,54,56,61,62,63,64,73],$t=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,49,51,53,54,56,61,62,63,64,73],Me=[4,5,10,14,15,17,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,48,51,53,54,56,61,62,63,64,73],jt=[5,52],F=[62,70,71,72,73],Be=[62,73],lt=[1,152],te={trace:f(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,INVALID:10,box_section:11,box_line:12,participant_statement:13,create:14,box:15,restOfLine:16,end:17,signal:18,autonumber:19,NUM:20,off:21,activate:22,actor:23,deactivate:24,note_statement:25,links_statement:26,link_statement:27,properties_statement:28,details_statement:29,title:30,legacy_title:31,acc_title:32,acc_title_value:33,acc_descr:34,acc_descr_value:35,acc_descr_multiline_value:36,loop:37,rect:38,opt:39,alt:40,else_sections:41,par:42,par_sections:43,par_over:44,critical:45,option_sections:46,break:47,option:48,and:49,else:50,participant:51,AS:52,participant_actor:53,destroy:54,actor_with_config:55,note:56,placement:57,text2:58,over:59,actor_pair:60,links:61,link:62,properties:63,details:64,spaceList:65,",":66,left_of:67,right_of:68,signaltype:69,"+":70,"-":71,"()":72,ACTOR:73,config_object:74,CONFIG_START:75,CONFIG_CONTENT:76,CONFIG_END:77,SOLID_OPEN_ARROW:78,DOTTED_OPEN_ARROW:79,SOLID_ARROW:80,SOLID_ARROW_TOP:81,SOLID_ARROW_BOTTOM:82,STICK_ARROW_TOP:83,STICK_ARROW_BOTTOM:84,SOLID_ARROW_TOP_DOTTED:85,SOLID_ARROW_BOTTOM_DOTTED:86,STICK_ARROW_TOP_DOTTED:87,STICK_ARROW_BOTTOM_DOTTED:88,SOLID_ARROW_TOP_REVERSE:89,SOLID_ARROW_BOTTOM_REVERSE:90,STICK_ARROW_TOP_REVERSE:91,STICK_ARROW_BOTTOM_REVERSE:92,SOLID_ARROW_TOP_REVERSE_DOTTED:93,SOLID_ARROW_BOTTOM_REVERSE_DOTTED:94,STICK_ARROW_TOP_REVERSE_DOTTED:95,STICK_ARROW_BOTTOM_REVERSE_DOTTED:96,BIDIRECTIONAL_SOLID_ARROW:97,DOTTED_ARROW:98,BIDIRECTIONAL_DOTTED_ARROW:99,SOLID_CROSS:100,DOTTED_CROSS:101,SOLID_POINT:102,DOTTED_POINT:103,TXT:104,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",10:"INVALID",14:"create",15:"box",16:"restOfLine",17:"end",19:"autonumber",20:"NUM",21:"off",22:"activate",24:"deactivate",30:"title",31:"legacy_title",32:"acc_title",33:"acc_title_value",34:"acc_descr",35:"acc_descr_value",36:"acc_descr_multiline_value",37:"loop",38:"rect",39:"opt",40:"alt",42:"par",44:"par_over",45:"critical",47:"break",48:"option",49:"and",50:"else",51:"participant",52:"AS",53:"participant_actor",54:"destroy",56:"note",59:"over",61:"links",62:"link",63:"properties",64:"details",66:",",67:"left_of",68:"right_of",70:"+",71:"-",72:"()",73:"ACTOR",75:"CONFIG_START",76:"CONFIG_CONTENT",77:"CONFIG_END",78:"SOLID_OPEN_ARROW",79:"DOTTED_OPEN_ARROW",80:"SOLID_ARROW",81:"SOLID_ARROW_TOP",82:"SOLID_ARROW_BOTTOM",83:"STICK_ARROW_TOP",84:"STICK_ARROW_BOTTOM",85:"SOLID_ARROW_TOP_DOTTED",86:"SOLID_ARROW_BOTTOM_DOTTED",87:"STICK_ARROW_TOP_DOTTED",88:"STICK_ARROW_BOTTOM_DOTTED",89:"SOLID_ARROW_TOP_REVERSE",90:"SOLID_ARROW_BOTTOM_REVERSE",91:"STICK_ARROW_TOP_REVERSE",92:"STICK_ARROW_BOTTOM_REVERSE",93:"SOLID_ARROW_TOP_REVERSE_DOTTED",94:"SOLID_ARROW_BOTTOM_REVERSE_DOTTED",95:"STICK_ARROW_TOP_REVERSE_DOTTED",96:"STICK_ARROW_BOTTOM_REVERSE_DOTTED",97:"BIDIRECTIONAL_SOLID_ARROW",98:"DOTTED_ARROW",99:"BIDIRECTIONAL_DOTTED_ARROW",100:"SOLID_CROSS",101:"DOTTED_CROSS",102:"SOLID_POINT",103:"DOTTED_POINT",104:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[8,1],[11,0],[11,2],[12,2],[12,1],[12,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[46,1],[46,4],[43,1],[43,4],[41,1],[41,4],[13,5],[13,3],[13,5],[13,3],[13,3],[13,5],[13,3],[13,5],[13,3],[25,4],[25,4],[26,3],[27,3],[28,3],[29,3],[65,2],[65,1],[60,3],[60,1],[57,1],[57,1],[18,5],[18,5],[18,5],[18,5],[18,6],[18,4],[55,2],[74,3],[23,1],[23,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[69,1],[58,1]],performAction:f(function(w,C,D,y,G,c,kt){var p=c.length-1;switch(G){case 3:return y.apply(c[p]),c[p];case 4:case 10:this.$=[];break;case 5:case 11:c[p-1].push(c[p]),this.$=c[p-1];break;case 6:case 7:case 12:case 13:this.$=c[p];break;case 8:case 9:case 14:this.$=[];break;case 16:c[p].type="createParticipant",this.$=c[p];break;case 17:c[p-1].unshift({type:"boxStart",boxData:y.parseBoxData(c[p-2])}),c[p-1].push({type:"boxEnd",boxText:c[p-2]}),this.$=c[p-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-2]),sequenceIndexStep:Number(c[p-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(c[p-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 23:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-1].actor};break;case 30:y.setDiagramTitle(c[p].substring(6)),this.$=c[p].substring(6);break;case 31:y.setDiagramTitle(c[p].substring(7)),this.$=c[p].substring(7);break;case 32:this.$=c[p].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=c[p].trim(),y.setAccDescription(this.$);break;case 35:c[p-1].unshift({type:"loopStart",loopText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.LOOP_START}),c[p-1].push({type:"loopEnd",loopText:c[p-2],signalType:y.LINETYPE.LOOP_END}),this.$=c[p-1];break;case 36:c[p-1].unshift({type:"rectStart",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_START}),c[p-1].push({type:"rectEnd",color:y.parseMessage(c[p-2]),signalType:y.LINETYPE.RECT_END}),this.$=c[p-1];break;case 37:c[p-1].unshift({type:"optStart",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_START}),c[p-1].push({type:"optEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.OPT_END}),this.$=c[p-1];break;case 38:c[p-1].unshift({type:"altStart",altText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.ALT_START}),c[p-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=c[p-1];break;case 39:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 40:c[p-1].unshift({type:"parStart",parText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.PAR_OVER_START}),c[p-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=c[p-1];break;case 41:c[p-1].unshift({type:"criticalStart",criticalText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.CRITICAL_START}),c[p-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=c[p-1];break;case 42:c[p-1].unshift({type:"breakStart",breakText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_START}),c[p-1].push({type:"breakEnd",optText:y.parseMessage(c[p-2]),signalType:y.LINETYPE.BREAK_END}),this.$=c[p-1];break;case 44:this.$=c[p-3].concat([{type:"option",optionText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.CRITICAL_OPTION},c[p]]);break;case 46:this.$=c[p-3].concat([{type:"and",parText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.PAR_AND},c[p]]);break;case 48:this.$=c[p-3].concat([{type:"else",altText:y.parseMessage(c[p-1]),signalType:y.LINETYPE.ALT_ELSE},c[p]]);break;case 49:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 50:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 51:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 52:case 57:c[p-1].draw="actor",c[p-1].type="addParticipant",this.$=c[p-1];break;case 53:c[p-1].type="destroyParticipant",this.$=c[p-1];break;case 54:c[p-3].draw="participant",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 55:c[p-1].draw="participant",c[p-1].type="addParticipant",this.$=c[p-1];break;case 56:c[p-3].draw="actor",c[p-3].type="addParticipant",c[p-3].description=y.parseMessage(c[p-1]),this.$=c[p-3];break;case 58:this.$=[c[p-1],{type:"addNote",placement:c[p-2],actor:c[p-1].actor,text:c[p]}];break;case 59:c[p-2]=[].concat(c[p-1],c[p-1]).slice(0,2),c[p-2][0]=c[p-2][0].actor,c[p-2][1]=c[p-2][1].actor,this.$=[c[p-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:c[p-2].slice(0,2),text:c[p]}];break;case 60:this.$=[c[p-1],{type:"addLinks",actor:c[p-1].actor,text:c[p]}];break;case 61:this.$=[c[p-1],{type:"addALink",actor:c[p-1].actor,text:c[p]}];break;case 62:this.$=[c[p-1],{type:"addProperties",actor:c[p-1].actor,text:c[p]}];break;case 63:this.$=[c[p-1],{type:"addDetails",actor:c[p-1].actor,text:c[p]}];break;case 66:this.$=[c[p-2],c[p]];break;case 67:this.$=c[p];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:c[p-1].actor}];break;case 71:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:c[p-4].actor}];break;case 72:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor}];break;case 73:this.$=[c[p-4],c[p-1],{type:"addMessage",from:c[p-4].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-4].actor}];break;case 74:this.$=[c[p-5],c[p-1],{type:"addMessage",from:c[p-5].actor,to:c[p-1].actor,signalType:c[p-3],msg:c[p],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:c[p-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:c[p-5].actor}];break;case 75:this.$=[c[p-3],c[p-1],{type:"addMessage",from:c[p-3].actor,to:c[p-1].actor,signalType:c[p-2],msg:c[p]}];break;case 76:this.$={type:"addParticipant",actor:c[p-1],config:c[p]};break;case 77:this.$=c[p-1].trim();break;case 78:case 79:this.$={type:"addParticipant",actor:c[p]};break;case 80:this.$=y.LINETYPE.SOLID_OPEN;break;case 81:this.$=y.LINETYPE.DOTTED_OPEN;break;case 82:this.$=y.LINETYPE.SOLID;break;case 83:this.$=y.LINETYPE.SOLID_TOP;break;case 84:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 85:this.$=y.LINETYPE.STICK_TOP;break;case 86:this.$=y.LINETYPE.STICK_BOTTOM;break;case 87:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 88:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 90:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 92:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 94:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 99:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 100:this.$=y.LINETYPE.DOTTED;break;case 101:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 102:this.$=y.LINETYPE.SOLID_CROSS;break;case 103:this.$=y.LINETYPE.DOTTED_CROSS;break;case 104:this.$=y.LINETYPE.SOLID_POINT;break;case 105:this.$=y.LINETYPE.DOTTED_POINT;break;case 106:this.$=y.parseMessage(c[p].trim().substring(1));break}},"anonymous"),table:[{3:1,4:t,5:a,6:r},{1:[3]},{3:5,4:t,5:a,6:r},{3:6,4:t,5:a,6:r},e([1,4,5,10,14,15,19,22,24,30,31,32,34,36,37,38,39,40,42,44,45,47,51,53,54,56,61,62,63,64,73],i,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,5]),{9:48,13:13,14:h,15:d,18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},e(M,[2,7]),e(M,[2,8]),e(M,[2,9]),e(M,[2,15]),{13:49,51:H,53:z,54:X},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,62:Z,73:W},{23:57,62:Z,73:W},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},{5:[1,62]},e(M,[2,30]),e(M,[2,31]),{33:[1,63]},{35:[1,64]},e(M,[2,34]),{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{16:[1,72]},{23:73,55:74,62:Z,73:Mt},{23:76,55:77,62:Z,73:Mt},{23:78,62:Z,73:W},{69:79,72:[1,80],78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},{57:107,59:[1,108],67:[1,109],68:[1,110]},{23:111,62:Z,73:W},e([72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103],De,{23:112,62:Z,73:W}),{23:113,62:Z,73:W},{23:114,62:Z,73:W},e([5,66,72,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104],ve),e(M,[2,6]),e(M,[2,16]),e(Pt,[2,10],{11:115}),e(M,[2,18]),{5:[1,117],20:[1,116]},{5:[1,118]},e(M,[2,22]),{5:[1,119]},e([5,52,66,104],De),{5:[1,120]},e(M,[2,25]),e(M,[2,26]),e(M,[2,27]),e(M,[2,28]),e(M,[2,29]),e(M,[2,32]),e(M,[2,33]),e(Bt,i,{7:121}),e(Bt,i,{7:122}),e(Bt,i,{7:123}),e(Ce,i,{41:124,7:125}),e($t,i,{43:126,7:127}),e($t,i,{7:127,43:128}),e(Me,i,{46:129,7:130}),e(Bt,i,{7:131}),{5:[1,133],52:[1,132]},{5:[1,135],52:[1,134]},e(jt,ve,{74:136,75:[1,137]}),{5:[1,139],52:[1,138]},{5:[1,141],52:[1,140]},{5:[1,142]},{23:146,62:Z,70:[1,143],71:[1,144],72:[1,145],73:W},{69:147,78:A,79:v,80:dt,81:st,82:K,83:mt,84:pe,85:Ee,86:ue,87:fe,88:_e,89:ge,90:xe,91:ye,92:Ie,93:Re,94:Oe,95:Le,96:be,97:me,98:Se,99:Ae,100:we,101:Ne,102:Pe,103:ke},e(F,[2,80]),e(F,[2,81]),e(F,[2,82]),e(F,[2,83]),e(F,[2,84]),e(F,[2,85]),e(F,[2,86]),e(F,[2,87]),e(F,[2,88]),e(F,[2,89]),e(F,[2,90]),e(F,[2,91]),e(F,[2,92]),e(F,[2,93]),e(F,[2,94]),e(F,[2,95]),e(F,[2,96]),e(F,[2,97]),e(F,[2,98]),e(F,[2,99]),e(F,[2,100]),e(F,[2,101]),e(F,[2,102]),e(F,[2,103]),e(F,[2,104]),e(F,[2,105]),{23:148,62:Z,73:W},{23:150,60:149,62:Z,73:W},e(Be,[2,68]),e(Be,[2,69]),{58:151,104:lt},{58:153,104:lt},{58:154,104:lt},{58:155,104:lt},{4:[1,158],5:[1,160],12:157,13:159,17:[1,156],51:H,53:z,54:X},{5:[1,161]},e(M,[2,20]),e(M,[2,21]),e(M,[2,23]),e(M,[2,24]),{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,162],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,163],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,164],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,165]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,47],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,50:[1,166],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,167]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,45],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,49:[1,168],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{17:[1,169]},{17:[1,170]},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[2,43],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,48:[1,171],51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{4:o,5:s,8:8,9:10,10:n,13:13,14:h,15:d,17:[1,172],18:16,19:E,22:u,23:41,24:_,25:20,26:21,27:22,28:23,29:24,30:L,31:g,32:R,34:T,36:O,37:x,38:m,39:S,40:b,42:P,44:k,45:B,47:V,51:H,53:z,54:X,56:et,61:rt,62:U,63:ot,64:at,73:W},{16:[1,173]},e(M,[2,50]),{16:[1,174]},e(M,[2,55]),e(jt,[2,76]),{76:[1,175]},{16:[1,176]},e(M,[2,52]),{16:[1,177]},e(M,[2,57]),e(M,[2,53]),{23:178,62:Z,73:W},{23:179,62:Z,73:W},{23:180,62:Z,73:W},{58:181,104:lt},{23:182,62:Z,72:[1,183],73:W},{58:184,104:lt},{58:185,104:lt},{66:[1,186],104:[2,67]},{5:[2,60]},{5:[2,106]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(M,[2,17]),e(Pt,[2,11]),{13:187,51:H,53:z,54:X},e(Pt,[2,13]),e(Pt,[2,14]),e(M,[2,19]),e(M,[2,35]),e(M,[2,36]),e(M,[2,37]),e(M,[2,38]),{16:[1,188]},e(M,[2,39]),{16:[1,189]},e(M,[2,40]),e(M,[2,41]),{16:[1,190]},e(M,[2,42]),{5:[1,191]},{5:[1,192]},{77:[1,193]},{5:[1,194]},{5:[1,195]},{58:196,104:lt},{58:197,104:lt},{58:198,104:lt},{5:[2,75]},{58:199,104:lt},{23:200,62:Z,73:W},{5:[2,58]},{5:[2,59]},{23:201,62:Z,73:W},e(Pt,[2,12]),e(Ce,i,{7:125,41:202}),e($t,i,{7:127,43:203}),e(Me,i,{7:130,46:204}),e(M,[2,49]),e(M,[2,54]),e(jt,[2,77]),e(M,[2,51]),e(M,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:205,104:lt},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],151:[2,60],152:[2,106],153:[2,61],154:[2,62],155:[2,63],181:[2,75],184:[2,58],185:[2,59],196:[2,70],197:[2,71],198:[2,72],199:[2,73],201:[2,66],202:[2,48],203:[2,46],204:[2,44],205:[2,74]},parseError:f(function(w,C){if(C.recoverable)this.trace(w);else{var D=new Error(w);throw D.hash=C,D}},"parseError"),parse:f(function(w){var C=this,D=[0],y=[],G=[null],c=[],kt=this.table,p="",Vt=0,Ye=0,lr=2,Ve=1,hr=c.slice.call(arguments,1),$=Object.create(this.lexer),It={yy:{}};for(var ee in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ee)&&(It.yy[ee]=this.yy[ee]);$.setInput(w,It.yy),It.yy.lexer=$,It.yy.parser=this,typeof $.yylloc>"u"&&($.yylloc={});var re=$.yylloc;c.push(re);var dr=$.options&&$.options.ranges;typeof It.yy.parseError=="function"?this.parseError=It.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Tr(ct){D.length=D.length-2*ct,G.length=G.length-ct,c.length=c.length-ct}f(Tr,"popStack");function We(){var ct;return ct=y.pop()||$.lex()||Ve,typeof ct!="number"&&(ct instanceof Array&&(y=ct,ct=y.pop()),ct=C.symbols_[ct]||ct),ct}f(We,"lex");for(var it,Rt,ht,ae,St={},Wt,Et,He,Ht;;){if(Rt=D[D.length-1],this.defaultActions[Rt]?ht=this.defaultActions[Rt]:((it===null||typeof it>"u")&&(it=We()),ht=kt[Rt]&&kt[Rt][it]),typeof ht>"u"||!ht.length||!ht[0]){var se="";Ht=[];for(Wt in kt[Rt])this.terminals_[Wt]&&Wt>lr&&Ht.push("'"+this.terminals_[Wt]+"'");$.showPosition?se="Parse error on line "+(Vt+1)+`:
2
2
  `+$.showPosition()+`
3
3
  Expecting `+Ht.join(", ")+", got '"+(this.terminals_[it]||it)+"'":se="Parse error on line "+(Vt+1)+": Unexpected "+(it==Ve?"end of input":"'"+(this.terminals_[it]||it)+"'"),this.parseError(se,{text:$.match,token:this.terminals_[it]||it,line:$.yylineno,loc:re,expected:Ht})}if(ht[0]instanceof Array&&ht.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Rt+", token: "+it);switch(ht[0]){case 1:D.push(it),G.push($.yytext),c.push($.yylloc),D.push(ht[1]),it=null,Ye=$.yyleng,p=$.yytext,Vt=$.yylineno,re=$.yylloc;break;case 2:if(Et=this.productions_[ht[1]][1],St.$=G[G.length-Et],St._$={first_line:c[c.length-(Et||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Et||1)].first_column,last_column:c[c.length-1].last_column},dr&&(St._$.range=[c[c.length-(Et||1)].range[0],c[c.length-1].range[1]]),ae=this.performAction.apply(St,[p,Ye,Vt,It.yy,ht[1],G,c].concat(hr)),typeof ae<"u")return ae;Et&&(D=D.slice(0,-1*Et*2),G=G.slice(0,-1*Et),c=c.slice(0,-1*Et)),D.push(this.productions_[ht[1]][0]),G.push(St.$),c.push(St._$),He=kt[D[D.length-2]][D[D.length-1]],D.push(He);break;case 3:return!0}}return!0},"parse")},cr=(function(){var _t={EOF:1,parseError:f(function(C,D){if(this.yy.parser)this.yy.parser.parseError(C,D);else throw new Error(C)},"parseError"),setInput:f(function(w,C){return this.yy=C||this.yy||{},this._input=w,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:f(function(){var w=this._input[0];this.yytext+=w,this.yyleng++,this.offset++,this.match+=w,this.matched+=w;var C=w.match(/(?:\r\n?|\n).*/g);return C?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),w},"input"),unput:f(function(w){var C=w.length,D=w.split(/(?:\r\n?|\n)/g);this._input=w+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-C),this.offset-=C;var y=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),D.length-1&&(this.yylineno-=D.length-1);var G=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:D?(D.length===y.length?this.yylloc.first_column:0)+y[y.length-D.length].length-D[0].length:this.yylloc.first_column-C},this.options.ranges&&(this.yylloc.range=[G[0],G[0]+this.yyleng-C]),this.yyleng=this.yytext.length,this},"unput"),more:f(function(){return this._more=!0,this},"more"),reject:f(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:f(function(w){this.unput(this.match.slice(w))},"less"),pastInput:f(function(){var w=this.matched.substr(0,this.matched.length-this.match.length);return(w.length>20?"...":"")+w.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:f(function(){var w=this.match;return w.length<20&&(w+=this._input.substr(0,20-w.length)),(w.substr(0,20)+(w.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:f(function(){var w=this.pastInput(),C=new Array(w.length+1).join("-");return w+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- import{bm as x}from"./C8Ie7Deo.js";function m(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length===3||n.length===4)r=parseInt(n[0]+n[0],16)/255,o=parseInt(n[1]+n[1],16)/255,a=parseInt(n[2]+n[2],16)/255;else if(n.length===6||n.length===8)r=parseInt(n.slice(0,2),16)/255,o=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255;else return"0 0% 0%";const t=Math.max(r,o,a),s=Math.min(r,o,a),c=(t+s)/2;let u=0,g=0;if(t!==s){const p=t-s;switch(g=c>.5?p/(2-t-s):p/(t+s),t){case r:u=((o-a)/p+(o<a?6:0))/6;break;case o:u=((a-r)/p+2)/6;break;case a:u=((r-o)/p+4)/6;break}}const f=Math.round(u*360),d=Math.round(g*100),l=Math.round(c*100);return`${f} ${d}% ${l}%`}function N(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length>=6)r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);else if(n.length>=3)r=parseInt(n[0]+n[0],16),o=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16);else return!0;return(.299*r+.587*o+.114*a)/255<.5}const X=[["editor.background","--background"],["editor.foreground","--foreground"],["sideBar.background","--sidebar"],["sideBar.foreground","--sidebar-foreground"],["sideBar.border","--sidebar-border"],["editorWidget.background","--card"],["editorWidget.foreground","--card-foreground"],["dropdown.background","--popover"],["dropdown.foreground","--popover-foreground"],["focusBorder","--ring"],["input.background","--input"],["panel.border","--border"],["editorGroup.border","--border"],["button.background","--primary"],["button.foreground","--primary-foreground"],["list.activeSelectionBackground","--secondary"],["list.activeSelectionForeground","--secondary-foreground"],["errorForeground","--danger"],["inputValidation.errorBackground","--danger-background"]];function B(e){const n=e.replace(/^#/,"");return n.length>=6?[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]:n.length>=3?[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)]:[0,0,0]}function M(e,n,r){const o=a=>Math.max(0,Math.min(255,Math.round(a)));return`#${o(e).toString(16).padStart(2,"0")}${o(n).toString(16).padStart(2,"0")}${o(r).toString(16).padStart(2,"0")}`}function G(e,n,r){const[o,a,t]=[e,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*a+.0722*t}function k(e,n){const r=G(...e),o=G(...n),a=Math.max(r,o),t=Math.min(r,o);return(a+.05)/(t+.05)}function F(e){const n=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!n)return[0,0,0];const r=Number(n[1]),o=Number(n[2])/100,a=Number(n[3])/100,t=(1-Math.abs(2*a-1))*o,s=t*(1-Math.abs(r/60%2-1)),c=a-t/2;return(r<60?[t,s,0]:r<120?[s,t,0]:r<180?[0,t,s]:r<240?[0,s,t]:r<300?[s,0,t]:[t,0,s]).map(g=>Math.round((g+c)*255))}function V(e,n,r){const o=F(e),t=F(n).map((s,c)=>s*(1-r)+o[c]*r);return m(M(...t))}function H(e,n){const r=F(e),o=F(n);if(k(r,o)>=4.55)return e;const a=[0,0,0],t=[255,255,255],s=k(a,o)>k(t,o)?a:t;for(let c=1;c<=20;c++){const u=c/20,g=r.map((f,d)=>f*(1-u)+s[d]*u);if(k(g,o)>=4.55)return m(M(...g))}return m(M(...s))}function _(e,n){const r=F(e),o=n.map(F),a=f=>Math.min(...o.map(d=>k(f,d))),t=4.55;if(a(r)>=t)return e;const s=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!s)return e;const c=Number(s[1]);let u,g={value:e,ratio:a(r),distance:0};for(let f=0;f<=100;f++)for(let d=0;d<=100;d++){const l=`${c} ${f}% ${d}%`,p=F(l),b=a(p),i=p.reduce((R,I,A)=>R+(I-r[A])**2,0);b>=t?(!u||i<u.distance)&&(u={value:l,distance:i}):(b>g.ratio||b===g.ratio&&i<g.distance)&&(g={value:l,ratio:b,distance:i})}return u?.value??g.value}function K({fgHex:e,bgHexes:n,descriptionHex:r}){const o=B(e),a=n.map(B);let t;if(r)t=B(r);else{const[f,d,l]=a[0];t=[o[0]*.6+f*.4,o[1]*.6+d*.4,o[2]*.6+l*.4]}const s=4.5,c=20,u=f=>a.every(d=>k(f,d)>=s),g=[...t];for(let f=0;f<c&&!u(t);f++){const d=(f+1)/c;t=[g[0]*(1-d)+o[0]*d,g[1]*(1-d)+o[1]*d,g[2]*(1-d)+o[2]*d]}return m(M(...t))}function Y(e,n,r){const o=B(e),a=B(n),t=G(...o),s=G(...a),c=1.12;if((Math.max(t,s)+.05)/(Math.min(t,s)+.05)>=c)return m(e);const f=t>s||t===s&&!r?[255,255,255]:[0,0,0],d=20;let l=[...o];for(let p=1;p<=d;p++){const b=p/d;l=[o[0]*(1-b)+f[0]*b,o[1]*(1-b)+f[1]*b,o[2]*(1-b)+f[2]*b];const i=G(...l);if((Math.max(i,s)+.05)/(Math.min(i,s)+.05)>=c)break}return m(M(...l))}function O(e){const n=B(e),r=N(e)?[255,255,255]:[0,0,0],o=1.2,a=20;let t=[...n];for(let s=1;s<=a;s++){const c=s/a;if(t=[n[0]*(1-c)+r[0]*c,n[1]*(1-c)+r[1]*c,n[2]*(1-c)+r[2]*c],k(t,n)>=o)break}return m(M(...t))}function $(e,n,r){const o=B(e),a=n.map(B),t=3.1,s=d=>Math.min(...a.map(l=>k(d,l)));if(s(o)>=t)return m(e);const u=r?[255,255,255]:[0,0,0],g=20;let f=[...o];for(let d=1;d<=g;d++){const l=d/g;if(f=[o[0]*(1-l)+u[0]*l,o[1]*(1-l)+u[1]*l,o[2]*(1-l)+u[2]*l],s(f)>=t)break}return m(M(...f))}function j(e){const n=e["editor.background"];if(!n)return null;const r=e.focusBorder??e["button.background"]??e["badge.background"];if(!r)return null;const o=B(n),a=B(r),t=N(n),s=t?.12:.08,c=[o[0]*(1-s)+a[0]*s,o[1]*(1-s)+a[1]*s,o[2]*(1-s)+a[2]*s],u=B(e["editor.foreground"]??(t?"#ffffff":"#000000"));let g=[...a];const f=4.5,d=20,l=b=>k(b,o)>=f&&k(b,c)>=3,p=[...g];for(let b=0;b<d&&!l(g);b++){const i=(b+1)/d;g=[p[0]*(1-i)+u[0]*i,p[1]*(1-i)+u[1]*i,p[2]*(1-i)+u[2]*i]}return{accent:m(M(...c)),accentForeground:m(M(...g))}}function q(e,n){const r={};for(const[i,R]of X){if(r[R])continue;const I=e[i];I&&(r[R]=m(I))}const o=j(e);o&&(r["--accent"]=o.accent,r["--accent-foreground"]=o.accentForeground);const a=e["editor.foreground"],t=e["editor.background"];if(a&&t){const i=[t];e["sideBar.background"]&&i.push(e["sideBar.background"]),e["editorWidget.background"]&&i.push(e["editorWidget.background"]),r["--muted-foreground"]=K({fgHex:a,bgHexes:i,descriptionHex:e.descriptionForeground});const R=e["tab.inactiveBackground"]??e["sideBar.background"]??t,I=N(t);r["--muted"]=Y(R,t,I);const A=[t,e["editorWidget.background"],e["dropdown.background"],e["sideBar.background"]].filter(S=>!!S),P=e["panel.border"]??e["editorGroup.border"],D=e["input.border"]??e["input.background"]??P??t;r["--input"]=$(D,A,I);const W=e.focusBorder??e["button.background"]??P??t;r["--ring"]=$(W,A,I);const y=B(a),w=B(t);{const S=[y[0]*.6+w[0]*.4,y[1]*.6+w[1]*.4,y[2]*.6+w[2]*.4];let C=[...S];const L=4.5,T=20;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-subtle"]=m(M(...C))}{const S=[w[0]*.65+y[0]*.35,w[1]*.65+y[1]*.35,w[2]*.65+y[2]*.35];let C=[...S];const L=2,T=15;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-ghost"]=m(M(...C))}}else e.descriptionForeground&&(r["--muted-foreground"]=m(e.descriptionForeground));t&&(r["--border"]??=O(t),r["--sidebar-border"]??=O(e["sideBar.background"]??t));const s=n?{background:"#1f1f24",foreground:"#f7f7f7",primary:"#009966",primaryForeground:"#171717",secondary:"#1c1c1c",secondaryForeground:"#f7f7f7",muted:"#121217",mutedForeground:"#b8b5c2",accent:"#182c25",accentForeground:"#7de3bd",danger:"#f38b8b",dangerBackground:"#361010",border:"#4d4a52",input:"#121217",ring:"#6eddb4",info:"#72d2fa",infoForeground:"#171717",success:"#22c55e",successForeground:"#171717",warning:"#facc15",warningForeground:"#171717",sidebar:"#0d0d10",sidebarForeground:"#f7f7f7",sidebarAccent:"#242424",sidebarBorder:"#4d4a52"}:{background:"#ffffff",foreground:"#171717",primary:"#007a4d",primaryForeground:"#ffffff",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#e8e8e8",mutedForeground:"#474747",accent:"#e7f3ee",accentForeground:"#00663f",danger:"#930b0b",dangerBackground:"#fde7e7",border:"#d9d9d9",input:"#e6e6e6",ring:"#006ac2",info:"#006ac2",infoForeground:"#ffffff",success:"#117a37",successForeground:"#ffffff",warning:"#dc9400",warningForeground:"#171717",sidebar:"#f7f7f8",sidebarForeground:"#171717",sidebarAccent:"#e8e8e8",sidebarBorder:"#d9d9d9"},c=i=>m(s[i]);r["--background"]??=c("background"),r["--foreground"]??=c("foreground"),r["--card"]??=r["--background"],r["--card-foreground"]??=r["--foreground"],r["--popover"]??=r["--card"],r["--popover-foreground"]??=r["--card-foreground"],r["--primary"]??=c("primary"),r["--primary-foreground"]??=c("primaryForeground"),r["--secondary"]??=c("secondary"),r["--secondary-foreground"]??=c("secondaryForeground"),r["--muted"]??=c("muted"),r["--muted-foreground"]??=c("mutedForeground"),r["--accent"]??=c("accent"),r["--accent-foreground"]??=c("accentForeground"),r["--danger"]??=c("danger"),r["--danger-background"]??=c("dangerBackground"),r["--border"]??=c("border"),r["--input"]??=c("input"),r["--ring"]??=c("ring"),r["--info"]=m(e["editorInfo.foreground"]??s.info),r["--info-foreground"]=c("infoForeground"),r["--success"]=m(e["testing.iconPassed"]??e["gitDecoration.addedResourceForeground"]??s.success),r["--success-foreground"]=c("successForeground"),r["--warning"]=m(e["editorWarning.foreground"]??s.warning),r["--warning-foreground"]=c("warningForeground"),r["--sidebar"]??=c("sidebar"),r["--sidebar-foreground"]??=c("sidebarForeground"),r["--sidebar-accent"]=r["--secondary"]??c("sidebarAccent"),r["--sidebar-accent-foreground"]=r["--sidebar-foreground"],r["--sidebar-border"]??=c("sidebarBorder");const u=[["--foreground","--background"],["--card-foreground","--card"],["--popover-foreground","--popover"],["--primary-foreground","--primary"],["--secondary-foreground","--secondary"],["--accent-foreground","--accent"],["--muted-foreground","--muted"],["--info-foreground","--info"],["--success-foreground","--success"],["--warning-foreground","--warning"],["--sidebar-foreground","--sidebar"],["--sidebar-accent-foreground","--sidebar-accent"]];for(const[i,R]of u)r[i]=H(r[i],r[R]);const g=["--danger-background","--background","--card","--popover","--muted","--sidebar"],f=r["--danger"];r["--danger"]=_(f,g.map(i=>r[i]));const d=F(r["--danger"]);g.every(i=>k(d,F(r[i]))>=4.55)||(r["--danger-background"]=r["--background"],r["--danger"]=_(f,g.map(i=>r[i]))),r["--primary-ink"]=_(r["--primary"],[r["--background"],r["--card"]]);const p=r["--warning"],b=[r["--background"],r["--card"]];return r["--warning-ink"]=_(p,[...b,...b.map(i=>V(p,i,.1))]),r}const z=[["terminal.background","background"],["terminal.foreground","foreground"],["terminal.selectionBackground","selectionBackground"],["terminal.selectionForeground","selectionForeground"],["terminalCursor.foreground","cursor"],["terminalCursor.background","cursorAccent"],["terminal.ansiBlack","black"],["terminal.ansiRed","red"],["terminal.ansiGreen","green"],["terminal.ansiYellow","yellow"],["terminal.ansiBlue","blue"],["terminal.ansiMagenta","magenta"],["terminal.ansiCyan","cyan"],["terminal.ansiWhite","white"],["terminal.ansiBrightBlack","brightBlack"],["terminal.ansiBrightRed","brightRed"],["terminal.ansiBrightGreen","brightGreen"],["terminal.ansiBrightYellow","brightYellow"],["terminal.ansiBrightBlue","brightBlue"],["terminal.ansiBrightMagenta","brightMagenta"],["terminal.ansiBrightCyan","brightCyan"],["terminal.ansiBrightWhite","brightWhite"]];function Q(e){const n={};for(const[r,o]of z){const a=e[r];a&&(n[o]=a)}return n}function E(e){return e.replace(/^#/,"")}function U(e,n){const r=n?"vs-dark":"vs",o=[];if(e.tokenColors)for(const t of e.tokenColors){const s=Array.isArray(t.scope)?t.scope:t.scope?[t.scope]:[""];for(const c of s){const u={token:c};t.settings.foreground&&(u.foreground=E(t.settings.foreground)),t.settings.background&&(u.background=E(t.settings.background)),t.settings.fontStyle&&(u.fontStyle=t.settings.fontStyle),o.push(u)}}const a={};if(e.colors)for(const[t,s]of Object.entries(e.colors))a[t]=s;return{base:r,inherit:!0,rules:o,colors:a}}function J(e){let n="",r=0,o=!1;for(;r<e.length;){const a=e[r];if(o){if(a==="\\"){n+=a+(e[r+1]??""),r+=2;continue}a==='"'&&(o=!1),n+=a,r++;continue}if(a==='"'){o=!0,n+=a,r++;continue}if(a==="/"&&e[r+1]==="/"){for(r+=2;r<e.length&&e[r]!==`
1
+ import{bm as x}from"./DxxarOOi.js";function m(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length===3||n.length===4)r=parseInt(n[0]+n[0],16)/255,o=parseInt(n[1]+n[1],16)/255,a=parseInt(n[2]+n[2],16)/255;else if(n.length===6||n.length===8)r=parseInt(n.slice(0,2),16)/255,o=parseInt(n.slice(2,4),16)/255,a=parseInt(n.slice(4,6),16)/255;else return"0 0% 0%";const t=Math.max(r,o,a),s=Math.min(r,o,a),c=(t+s)/2;let u=0,g=0;if(t!==s){const p=t-s;switch(g=c>.5?p/(2-t-s):p/(t+s),t){case r:u=((o-a)/p+(o<a?6:0))/6;break;case o:u=((a-r)/p+2)/6;break;case a:u=((r-o)/p+4)/6;break}}const f=Math.round(u*360),d=Math.round(g*100),l=Math.round(c*100);return`${f} ${d}% ${l}%`}function N(e){const n=e.replace(/^#/,"");let r,o,a;if(n.length>=6)r=parseInt(n.slice(0,2),16),o=parseInt(n.slice(2,4),16),a=parseInt(n.slice(4,6),16);else if(n.length>=3)r=parseInt(n[0]+n[0],16),o=parseInt(n[1]+n[1],16),a=parseInt(n[2]+n[2],16);else return!0;return(.299*r+.587*o+.114*a)/255<.5}const X=[["editor.background","--background"],["editor.foreground","--foreground"],["sideBar.background","--sidebar"],["sideBar.foreground","--sidebar-foreground"],["sideBar.border","--sidebar-border"],["editorWidget.background","--card"],["editorWidget.foreground","--card-foreground"],["dropdown.background","--popover"],["dropdown.foreground","--popover-foreground"],["focusBorder","--ring"],["input.background","--input"],["panel.border","--border"],["editorGroup.border","--border"],["button.background","--primary"],["button.foreground","--primary-foreground"],["list.activeSelectionBackground","--secondary"],["list.activeSelectionForeground","--secondary-foreground"],["errorForeground","--danger"],["inputValidation.errorBackground","--danger-background"]];function B(e){const n=e.replace(/^#/,"");return n.length>=6?[parseInt(n.slice(0,2),16),parseInt(n.slice(2,4),16),parseInt(n.slice(4,6),16)]:n.length>=3?[parseInt(n[0]+n[0],16),parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16)]:[0,0,0]}function M(e,n,r){const o=a=>Math.max(0,Math.min(255,Math.round(a)));return`#${o(e).toString(16).padStart(2,"0")}${o(n).toString(16).padStart(2,"0")}${o(r).toString(16).padStart(2,"0")}`}function G(e,n,r){const[o,a,t]=[e,n,r].map(s=>{const c=s/255;return c<=.03928?c/12.92:Math.pow((c+.055)/1.055,2.4)});return .2126*o+.7152*a+.0722*t}function k(e,n){const r=G(...e),o=G(...n),a=Math.max(r,o),t=Math.min(r,o);return(a+.05)/(t+.05)}function F(e){const n=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!n)return[0,0,0];const r=Number(n[1]),o=Number(n[2])/100,a=Number(n[3])/100,t=(1-Math.abs(2*a-1))*o,s=t*(1-Math.abs(r/60%2-1)),c=a-t/2;return(r<60?[t,s,0]:r<120?[s,t,0]:r<180?[0,t,s]:r<240?[0,s,t]:r<300?[s,0,t]:[t,0,s]).map(g=>Math.round((g+c)*255))}function V(e,n,r){const o=F(e),t=F(n).map((s,c)=>s*(1-r)+o[c]*r);return m(M(...t))}function H(e,n){const r=F(e),o=F(n);if(k(r,o)>=4.55)return e;const a=[0,0,0],t=[255,255,255],s=k(a,o)>k(t,o)?a:t;for(let c=1;c<=20;c++){const u=c/20,g=r.map((f,d)=>f*(1-u)+s[d]*u);if(k(g,o)>=4.55)return m(M(...g))}return m(M(...s))}function _(e,n){const r=F(e),o=n.map(F),a=f=>Math.min(...o.map(d=>k(f,d))),t=4.55;if(a(r)>=t)return e;const s=e.match(/^([\d.]+)\s+([\d.]+)%\s+([\d.]+)%$/);if(!s)return e;const c=Number(s[1]);let u,g={value:e,ratio:a(r),distance:0};for(let f=0;f<=100;f++)for(let d=0;d<=100;d++){const l=`${c} ${f}% ${d}%`,p=F(l),b=a(p),i=p.reduce((R,I,A)=>R+(I-r[A])**2,0);b>=t?(!u||i<u.distance)&&(u={value:l,distance:i}):(b>g.ratio||b===g.ratio&&i<g.distance)&&(g={value:l,ratio:b,distance:i})}return u?.value??g.value}function K({fgHex:e,bgHexes:n,descriptionHex:r}){const o=B(e),a=n.map(B);let t;if(r)t=B(r);else{const[f,d,l]=a[0];t=[o[0]*.6+f*.4,o[1]*.6+d*.4,o[2]*.6+l*.4]}const s=4.5,c=20,u=f=>a.every(d=>k(f,d)>=s),g=[...t];for(let f=0;f<c&&!u(t);f++){const d=(f+1)/c;t=[g[0]*(1-d)+o[0]*d,g[1]*(1-d)+o[1]*d,g[2]*(1-d)+o[2]*d]}return m(M(...t))}function Y(e,n,r){const o=B(e),a=B(n),t=G(...o),s=G(...a),c=1.12;if((Math.max(t,s)+.05)/(Math.min(t,s)+.05)>=c)return m(e);const f=t>s||t===s&&!r?[255,255,255]:[0,0,0],d=20;let l=[...o];for(let p=1;p<=d;p++){const b=p/d;l=[o[0]*(1-b)+f[0]*b,o[1]*(1-b)+f[1]*b,o[2]*(1-b)+f[2]*b];const i=G(...l);if((Math.max(i,s)+.05)/(Math.min(i,s)+.05)>=c)break}return m(M(...l))}function O(e){const n=B(e),r=N(e)?[255,255,255]:[0,0,0],o=1.2,a=20;let t=[...n];for(let s=1;s<=a;s++){const c=s/a;if(t=[n[0]*(1-c)+r[0]*c,n[1]*(1-c)+r[1]*c,n[2]*(1-c)+r[2]*c],k(t,n)>=o)break}return m(M(...t))}function $(e,n,r){const o=B(e),a=n.map(B),t=3.1,s=d=>Math.min(...a.map(l=>k(d,l)));if(s(o)>=t)return m(e);const u=r?[255,255,255]:[0,0,0],g=20;let f=[...o];for(let d=1;d<=g;d++){const l=d/g;if(f=[o[0]*(1-l)+u[0]*l,o[1]*(1-l)+u[1]*l,o[2]*(1-l)+u[2]*l],s(f)>=t)break}return m(M(...f))}function j(e){const n=e["editor.background"];if(!n)return null;const r=e.focusBorder??e["button.background"]??e["badge.background"];if(!r)return null;const o=B(n),a=B(r),t=N(n),s=t?.12:.08,c=[o[0]*(1-s)+a[0]*s,o[1]*(1-s)+a[1]*s,o[2]*(1-s)+a[2]*s],u=B(e["editor.foreground"]??(t?"#ffffff":"#000000"));let g=[...a];const f=4.5,d=20,l=b=>k(b,o)>=f&&k(b,c)>=3,p=[...g];for(let b=0;b<d&&!l(g);b++){const i=(b+1)/d;g=[p[0]*(1-i)+u[0]*i,p[1]*(1-i)+u[1]*i,p[2]*(1-i)+u[2]*i]}return{accent:m(M(...c)),accentForeground:m(M(...g))}}function q(e,n){const r={};for(const[i,R]of X){if(r[R])continue;const I=e[i];I&&(r[R]=m(I))}const o=j(e);o&&(r["--accent"]=o.accent,r["--accent-foreground"]=o.accentForeground);const a=e["editor.foreground"],t=e["editor.background"];if(a&&t){const i=[t];e["sideBar.background"]&&i.push(e["sideBar.background"]),e["editorWidget.background"]&&i.push(e["editorWidget.background"]),r["--muted-foreground"]=K({fgHex:a,bgHexes:i,descriptionHex:e.descriptionForeground});const R=e["tab.inactiveBackground"]??e["sideBar.background"]??t,I=N(t);r["--muted"]=Y(R,t,I);const A=[t,e["editorWidget.background"],e["dropdown.background"],e["sideBar.background"]].filter(S=>!!S),P=e["panel.border"]??e["editorGroup.border"],D=e["input.border"]??e["input.background"]??P??t;r["--input"]=$(D,A,I);const W=e.focusBorder??e["button.background"]??P??t;r["--ring"]=$(W,A,I);const y=B(a),w=B(t);{const S=[y[0]*.6+w[0]*.4,y[1]*.6+w[1]*.4,y[2]*.6+w[2]*.4];let C=[...S];const L=4.5,T=20;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-subtle"]=m(M(...C))}{const S=[w[0]*.65+y[0]*.35,w[1]*.65+y[1]*.35,w[2]*.65+y[2]*.35];let C=[...S];const L=2,T=15;for(let v=0;v<T&&!(k(C,w)>=L);v++){const h=(v+1)/T;C=[S[0]*(1-h)+y[0]*h,S[1]*(1-h)+y[1]*h,S[2]*(1-h)+y[2]*h]}r["--text-ghost"]=m(M(...C))}}else e.descriptionForeground&&(r["--muted-foreground"]=m(e.descriptionForeground));t&&(r["--border"]??=O(t),r["--sidebar-border"]??=O(e["sideBar.background"]??t));const s=n?{background:"#1f1f24",foreground:"#f7f7f7",primary:"#009966",primaryForeground:"#171717",secondary:"#1c1c1c",secondaryForeground:"#f7f7f7",muted:"#121217",mutedForeground:"#b8b5c2",accent:"#182c25",accentForeground:"#7de3bd",danger:"#f38b8b",dangerBackground:"#361010",border:"#4d4a52",input:"#121217",ring:"#6eddb4",info:"#72d2fa",infoForeground:"#171717",success:"#22c55e",successForeground:"#171717",warning:"#facc15",warningForeground:"#171717",sidebar:"#0d0d10",sidebarForeground:"#f7f7f7",sidebarAccent:"#242424",sidebarBorder:"#4d4a52"}:{background:"#ffffff",foreground:"#171717",primary:"#007a4d",primaryForeground:"#ffffff",secondary:"#f5f5f5",secondaryForeground:"#171717",muted:"#e8e8e8",mutedForeground:"#474747",accent:"#e7f3ee",accentForeground:"#00663f",danger:"#930b0b",dangerBackground:"#fde7e7",border:"#d9d9d9",input:"#e6e6e6",ring:"#006ac2",info:"#006ac2",infoForeground:"#ffffff",success:"#117a37",successForeground:"#ffffff",warning:"#dc9400",warningForeground:"#171717",sidebar:"#f7f7f8",sidebarForeground:"#171717",sidebarAccent:"#e8e8e8",sidebarBorder:"#d9d9d9"},c=i=>m(s[i]);r["--background"]??=c("background"),r["--foreground"]??=c("foreground"),r["--card"]??=r["--background"],r["--card-foreground"]??=r["--foreground"],r["--popover"]??=r["--card"],r["--popover-foreground"]??=r["--card-foreground"],r["--primary"]??=c("primary"),r["--primary-foreground"]??=c("primaryForeground"),r["--secondary"]??=c("secondary"),r["--secondary-foreground"]??=c("secondaryForeground"),r["--muted"]??=c("muted"),r["--muted-foreground"]??=c("mutedForeground"),r["--accent"]??=c("accent"),r["--accent-foreground"]??=c("accentForeground"),r["--danger"]??=c("danger"),r["--danger-background"]??=c("dangerBackground"),r["--border"]??=c("border"),r["--input"]??=c("input"),r["--ring"]??=c("ring"),r["--info"]=m(e["editorInfo.foreground"]??s.info),r["--info-foreground"]=c("infoForeground"),r["--success"]=m(e["testing.iconPassed"]??e["gitDecoration.addedResourceForeground"]??s.success),r["--success-foreground"]=c("successForeground"),r["--warning"]=m(e["editorWarning.foreground"]??s.warning),r["--warning-foreground"]=c("warningForeground"),r["--sidebar"]??=c("sidebar"),r["--sidebar-foreground"]??=c("sidebarForeground"),r["--sidebar-accent"]=r["--secondary"]??c("sidebarAccent"),r["--sidebar-accent-foreground"]=r["--sidebar-foreground"],r["--sidebar-border"]??=c("sidebarBorder");const u=[["--foreground","--background"],["--card-foreground","--card"],["--popover-foreground","--popover"],["--primary-foreground","--primary"],["--secondary-foreground","--secondary"],["--accent-foreground","--accent"],["--muted-foreground","--muted"],["--info-foreground","--info"],["--success-foreground","--success"],["--warning-foreground","--warning"],["--sidebar-foreground","--sidebar"],["--sidebar-accent-foreground","--sidebar-accent"]];for(const[i,R]of u)r[i]=H(r[i],r[R]);const g=["--danger-background","--background","--card","--popover","--muted","--sidebar"],f=r["--danger"];r["--danger"]=_(f,g.map(i=>r[i]));const d=F(r["--danger"]);g.every(i=>k(d,F(r[i]))>=4.55)||(r["--danger-background"]=r["--background"],r["--danger"]=_(f,g.map(i=>r[i]))),r["--primary-ink"]=_(r["--primary"],[r["--background"],r["--card"]]);const p=r["--warning"],b=[r["--background"],r["--card"]];return r["--warning-ink"]=_(p,[...b,...b.map(i=>V(p,i,.1))]),r}const z=[["terminal.background","background"],["terminal.foreground","foreground"],["terminal.selectionBackground","selectionBackground"],["terminal.selectionForeground","selectionForeground"],["terminalCursor.foreground","cursor"],["terminalCursor.background","cursorAccent"],["terminal.ansiBlack","black"],["terminal.ansiRed","red"],["terminal.ansiGreen","green"],["terminal.ansiYellow","yellow"],["terminal.ansiBlue","blue"],["terminal.ansiMagenta","magenta"],["terminal.ansiCyan","cyan"],["terminal.ansiWhite","white"],["terminal.ansiBrightBlack","brightBlack"],["terminal.ansiBrightRed","brightRed"],["terminal.ansiBrightGreen","brightGreen"],["terminal.ansiBrightYellow","brightYellow"],["terminal.ansiBrightBlue","brightBlue"],["terminal.ansiBrightMagenta","brightMagenta"],["terminal.ansiBrightCyan","brightCyan"],["terminal.ansiBrightWhite","brightWhite"]];function Q(e){const n={};for(const[r,o]of z){const a=e[r];a&&(n[o]=a)}return n}function E(e){return e.replace(/^#/,"")}function U(e,n){const r=n?"vs-dark":"vs",o=[];if(e.tokenColors)for(const t of e.tokenColors){const s=Array.isArray(t.scope)?t.scope:t.scope?[t.scope]:[""];for(const c of s){const u={token:c};t.settings.foreground&&(u.foreground=E(t.settings.foreground)),t.settings.background&&(u.background=E(t.settings.background)),t.settings.fontStyle&&(u.fontStyle=t.settings.fontStyle),o.push(u)}}const a={};if(e.colors)for(const[t,s]of Object.entries(e.colors))a[t]=s;return{base:r,inherit:!0,rules:o,colors:a}}function J(e){let n="",r=0,o=!1;for(;r<e.length;){const a=e[r];if(o){if(a==="\\"){n+=a+(e[r+1]??""),r+=2;continue}a==='"'&&(o=!1),n+=a,r++;continue}if(a==='"'){o=!0,n+=a,r++;continue}if(a==="/"&&e[r+1]==="/"){for(r+=2;r<e.length&&e[r]!==`
2
2
  `;)r++;continue}if(a==="/"&&e[r+1]==="*"){for(r+=2;r<e.length&&!(e[r]==="*"&&e[r+1]==="/");)r++;r+=2;continue}n+=a,r++}return n=n.replace(/,(\s*[}\]])/g,"$1"),n}function rr(e){if(!e||typeof e!="object")throw new Error("Invalid theme: expected an object");const n=e;if(!n.colors&&!n.tokenColors)throw new Error('Invalid theme: must contain "colors" or "tokenColors"');const r=n.colors??{};let o;return n.type==="light"||n.type==="hc-light"?o=!1:n.type==="dark"||n.type==="hc-black"?o=!0:r["editor.background"]?o=N(r["editor.background"]):o=!0,{name:n.name??x.settings_themeImport_fallbackName_label(),type:o?"dark":"light",cssVariables:q(r,o),monacoTheme:U(n,o),terminalColors:Q(r),rawColors:{...r}}}export{rr as p,J as s};
@@ -1 +1 @@
1
- import{a as l}from"./B5aYN90J.js";import{H as i,s as c,a$ as s}from"./CKmtKxD0.js";async function b(e){if(!e)throw new Error("Missing required parameter: url");let o;try{o=new URL(e)}catch{throw new Error(`Invalid external URL: ${e}`)}if(!l.EXTERNAL.includes(o.protocol)&&!l.EXTERNAL_EXACT.includes(e))throw new Error(`Refusing to open URL externally (scheme not allowed): ${o.protocol}`);if(typeof window>"u")throw new Error("Unable to open external URL outside a window context");const r=window.electronAPI;if(r&&typeof r.invoke=="function")try{const a=await r.invoke("shell:openExternal",{url:e});if(a&&a.success===!0)return}catch{}const t=window.open(e,"_blank");if(t){t.opener=null;return}const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),n.remove()}const p={blue:"bg-blue-600 dark:bg-blue-400",indigo:"bg-indigo-600 dark:bg-indigo-400",violet:"bg-violet-600 dark:bg-violet-400",rose:"bg-rose-600 dark:bg-rose-400",orange:"bg-orange-600 dark:bg-orange-400",emerald:"bg-emerald-600 dark:bg-emerald-400",teal:"bg-teal-600 dark:bg-teal-400"},d={blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",rose:"var(--color-rose-500)",orange:"var(--color-orange-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)"};function g(e){return e===void 0?i:e}function f(e){return[null,...c.filter(o=>s.includes(o)||o===e)]}function C(e,o){const r=g(e);return o||r===null?"transparent":`color-mix(in srgb, ${d[r]} 7%, transparent)`}function N(e,o){const r=C(e,o);return r==="transparent"?void 0:`linear-gradient(${r} 0 0)`}export{p as C,d as a,N as b,f as c,C as d,b as o,g as r};
1
+ import{a as l}from"./B5aYN90J.js";import{H as i,s as c,a$ as s}from"./Zs30783q.js";async function b(e){if(!e)throw new Error("Missing required parameter: url");let o;try{o=new URL(e)}catch{throw new Error(`Invalid external URL: ${e}`)}if(!l.EXTERNAL.includes(o.protocol)&&!l.EXTERNAL_EXACT.includes(e))throw new Error(`Refusing to open URL externally (scheme not allowed): ${o.protocol}`);if(typeof window>"u")throw new Error("Unable to open external URL outside a window context");const r=window.electronAPI;if(r&&typeof r.invoke=="function")try{const a=await r.invoke("shell:openExternal",{url:e});if(a&&a.success===!0)return}catch{}const t=window.open(e,"_blank");if(t){t.opener=null;return}const n=document.createElement("a");n.href=e,n.target="_blank",n.rel="noopener noreferrer",document.body.appendChild(n),n.click(),n.remove()}const p={blue:"bg-blue-600 dark:bg-blue-400",indigo:"bg-indigo-600 dark:bg-indigo-400",violet:"bg-violet-600 dark:bg-violet-400",rose:"bg-rose-600 dark:bg-rose-400",orange:"bg-orange-600 dark:bg-orange-400",emerald:"bg-emerald-600 dark:bg-emerald-400",teal:"bg-teal-600 dark:bg-teal-400"},d={blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",rose:"var(--color-rose-500)",orange:"var(--color-orange-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)"};function g(e){return e===void 0?i:e}function f(e){return[null,...c.filter(o=>s.includes(o)||o===e)]}function C(e,o){const r=g(e);return o||r===null?"transparent":`color-mix(in srgb, ${d[r]} 7%, transparent)`}function N(e,o){const r=C(e,o);return r==="transparent"?void 0:`linear-gradient(${r} 0 0)`}export{p as C,d as a,N as b,f as c,C as d,b as o,g as r};
@@ -1 +1 @@
1
- import{bT as b,dp as _,dx as P,bN as k,b1 as C}from"./CReqoCJu.js";import{c as v}from"./ChTqQfQN.js";import{bm as m}from"./C8Ie7Deo.js";import{Jq as y}from"./CKmtKxD0.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function H(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{H as applyContentPreset};
1
+ import{bT as b,dp as _,dx as P,bN as k,b1 as C}from"./BfdTnj-p.js";import{c as v}from"./ChTqQfQN.js";import{bm as m}from"./DxxarOOi.js";import{Jq as y}from"./Zs30783q.js";const A={narrowWidth:600,shortHeight:500,wideWidth:900};function I(e,c,t){let i;e<A.narrowWidth?i=2:(e<A.wideWidth,i=Math.min(3,t));let o;c<A.shortHeight?o=2:o=Math.min(3,Math.ceil(t/i));const n=i*o;return{columns:i,rows:o,maxItems:n}}const h=v("PresetExecutor");async function H(e,c,t){switch(h.info("Applying content preset",{presetId:e,context:t}),e){case"planning":return W(c,t);case"agents-row":return D(c,t);case"changes":return G(c,t);case"review":return L(c,t);default:return c.applyPreset(e),!0}}async function W(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_tabTypes_agent_title(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"note",title:m.layout_shared_spec_title(),noteId:"spec",closable:!0,workspaceId:t},n[1]),!0})}async function D(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=6,r=y.state,l=b.select(r,t),p=C.select(r,t).sort((s,a)=>{const d=s.status==="active"||s.isProcessing,u=a.status==="active"||a.isProcessing;if(d&&!u)return-1;if(!d&&u)return 1;const f=s.lastActivity?new Date(s.lastActivity).getTime():s.updatedAt?new Date(s.updatedAt).getTime():0;return(a.lastActivity?new Date(a.lastActivity).getTime():a.updatedAt?new Date(a.updatedAt).getTime():0)-f});h.info("Agents row preset - agent counts",{total:l.length+p.length,foreground:l.length,background:p.length});const g=[...l,...p.slice(0,n-l.length)].slice(0,n);if(g.length===0)return h.info("No agents to display for agents-row preset"),!1;const T=I(i,o,g.length);return h.info("Agent tiling calculated",{tiling:T,agentCount:g.length}),e.batchMutations(()=>{const s=e.createGridLayout(g.length);h.info("Created grid layout for agents",{panelIds:s,panelCount:s.length,agentCount:g.length});for(let a=0;a<g.length;a++){const d=s[a];d&&e.openTab({type:"agent",title:g[a].name||m.layout_tabTypes_agent_title(),agentId:g[a].id,closable:!0,workspaceId:t},d)}return!0})}async function G(e,c){const{workspaceId:t,containerWidth:i,containerHeight:o}=c,n=y.state,r=_.select(n,t),l=P.select(n,t),p=k.select(n,t),g=l.map(a=>({path:a.relativePath,type:"unstaged"})),T=r.map(a=>({path:a.relativePath,type:"staged"}));let s=[...g,...T].slice(0,6);return s.length===0&&p.length>0&&p[0].files&&(s=p[0].files.slice(0,6).map(a=>({path:a.path,type:"committed"}))),e.batchMutations(()=>{if(s.length===0){h.info("No changes to display for changes preset");const u=e.createGridLayout(1);return e.openTab({type:"changes",title:m.layout_tabTypes_changes_title(),closable:!0,workspaceId:t},u[0]),!0}const a=I(i,o,s.length);h.info("Changes tiling calculated",{tiling:a,fileCount:s.length});const d=e.createGridLayout(s.length);h.info("Created grid layout for changes",{panelIds:d,panelCount:d.length,fileCount:s.length});for(let u=0;u<s.length;u++){const f=s[u],w=f.path.split("/").pop()||f.path;e.openTab({type:"diff",title:w,diffPath:f.path,closable:!0,workspaceId:t,data:{staged:f.type==="staged"}},d[u])}return!0})}async function L(e,c){const{workspaceId:t}=c,i=b.select(y.state,t),o=i.length>0?i.reduce((n,r)=>{const l=n.createdAt?new Date(n.createdAt).getTime():1/0;return(r.createdAt?new Date(r.createdAt).getTime():1/0)<l?r:n}):void 0;return e.batchMutations(()=>{const n=e.createGridLayout(2);return o&&e.openTab({type:"agent",title:o.name||m.layout_presetExecutor_coordinator_fallback(),agentId:o.id,closable:!0,workspaceId:t},n[0]),e.openTab({type:"local-changes",title:m.layout_presetExecutor_allChanges_title(),closable:!0,workspaceId:t},n[1]),!0})}export{H as applyContentPreset};
@@ -1,4 +1,4 @@
1
- var M_=Object.defineProperty;var Ag=n=>{throw TypeError(n)};var E_=(n,r,a)=>r in n?M_(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a;var Qs=(n,r,a)=>E_(n,typeof r!="symbol"?r+"":r,a),q_=(n,r,a)=>r.has(n)||Ag("Cannot "+a);var Co=(n,r,a)=>(q_(n,r,"read from private field"),a?a.call(n):r.get(n)),Mg=(n,r,a)=>r.has(n)?Ag("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,a);import{t as dn,bo as Z,bw as un,bp as nf,b as gn,bm as g,bq as Dr,bs as fe,br as Ei}from"./C8Ie7Deo.js";import{bs as pn,a5 as I,bf as fs,bA as w,W as p,bn as fn,aA as ee,aB as E,ca as le,a7 as Bt,ay as ye,aD as e,cd as Nn,c9 as o,bS as m,bl as de,be as In,b_ as q,bO as z,c5 as ct,bH as _,bV as _e,bj as Es,bk as to,b$ as _n,ai as Od,aj as ps,bo as Wl,br as Rr,c0 as Lt,cb as nd,aw as _i,a as L_}from"./3SdAC2_C.js";import{i as B}from"./D6XIvyP3.js";import{k as ki}from"./_e4xep-2.js";import{g as Hn,i as H_,I as Mo,p as Eo,e as To}from"./DJbFr8xM.js";import{n as Dt,l as ma,c as Zs,j as Eg,k as Ho,h as O_}from"./hGZqfbJu.js";import{b as rf,e as Fd,f as ke,s as Ue,c as Ut,g as gs}from"./D41qh-5f.js";import{b as F_}from"./goTpbPhD.js";import{b as hr}from"./Dn334wJv.js";import{m as D_,U as N_,Z as B_,X as W_,Y as U_,I as qg,o as z_,l as j_,a2 as V_,x as Lg,$ as G_,a0 as Hg,r as K_,s as Q_}from"./DhCgtN_p.js";import{Jq as O,fo as J_,eW as Y_,f3 as X_,eX as Z_,f1 as eb,f0 as tb,eZ as nb,e$ as rb,eY as ab,rs as sb,c6 as ob,i as Si,I$ as ib,D8 as af,Dd as lb,Df as Og,Dc as cb,De as db,vB as ub,vD as gb,Cl as sf,cp as pb,cn as fb,Bu as vb,bE as hb,A0 as mb,Ca as rd,uZ as _b,cq as Fg,dB as bb,dC as wb,Ck as yb,el as Ib,CE as Sb,CD as $b,CI as kb,CH as xb,cQ as Cb,cT as Pb,nA as Rb,er as Tb,wO as Ab,CJ as Mb,wQ as Eb,CK as qb,cU as Lb,cV as Hb,nI as Ob,Ad as Fb,Dp as Db,wj as Nb,wk as Bb,yY as Wb,z0 as ad,wf as Ub,wg as zb,rQ as jb,rd as Vb,rb as Gb,f_ as Kb,HK as Qb,Le as Jb,GI as Yb,gn as Xb,p0 as Zb,Je as ew,oh as tw,z$ as nw,ft as Dg,r0 as Ng,fm as rw,fl as aw,tz as sw,g3 as Bg,rc as ow,fe as iw,C5 as lw,m as cw,nJ as dw,zE as uw,yW as gw,Ev as pw,Ek as Wg,xe as fw,xf as Ug,uY as zg,p1 as vw,DB as hw,gj as mw,g1 as _w,eU as bw,cM as ww,A3 as yw,Lj as Iw,Cq as Sw,LB as $w,x$ as kw,ga as xw,fd as Cw,cL as Pw,cI as Rw,cH as Tw,vp as Aw,xl as Mw,xj as Ew,cF as qw,cE as Lw,z2 as Hw,yZ as Ow,xk as Fw}from"./CKmtKxD0.js";import{a as Dd}from"./CC7to1B5.js";import{aM as Dw,aL as Nw,bg as Bw,a7 as Ww,aD as Uw,aO as zw,M as of,a0 as lf,b8 as jw,b2 as Vw,as as jg,P as _l,b0 as Vg,a$ as Gg,a_ as Kg}from"./mvlVGSeb.js";import{k as cf,F as Gw,G as df,ao as Kw,aX as Tl,a5 as uf,Q as Qw,aQ as sd,al as Jw,aD as Yw,B as Xw,y as gf,r as Zw,z as ey,u as ty,aV as ny,aB as pf,aA as ff,aC as ry,aG as od,aN as Qg,aM as bl,aO as Jg,P as Yg,d as ay,e as sy,as as oy,V as Xg,az as iy,c as ly,l as cy,aP as Zg,ak as dy,ar as ep,a as uy,av as gy,a9 as tp,ay as py,aR as np,aU as rp,m as ap,aa as fy,R as vy,at as sp,ah as hy,O as my,an as _y,h as by,p as wy,ax as op,a4 as yy,f as Iy,i as Sy,a2 as $y,a8 as ky}from"./CQzabfN4.js";import{d as xy,l as Cy,x as Py,v as Ry,k as Ty,Z as ip,a5 as Ay,D as My,c as Ey}from"./DSK8O9Vd.js";import{g as Ci}from"./DypB-Dwi.js";import{dT as Hl,cR as vf,O as hf,W as qy,bs as Ly,aE as mf,dE as _f,aT as Ao,e4 as Hy,dt as bf,av as Nd,dS as Bd,aM as wf,cM as Oy,V as ha,a3 as Ys,B as Fy,a7 as Dy,a4 as Ny,M as By,a6 as Wy,ar as Uy,aF as yf,aN as Al,r as zy,n as $d,H as jy,dV as Vy,aP as Gy,aJ as Ky,c6 as Qy,aV as Jy,bJ as Yy,bH as Xy,bI as Zy,c5 as eI,c4 as tI,cK as nI,cJ as rI,aR as aI,b9 as sI,bb as oI,be as iI,ba as lI,bj as cI,bd as dI,bc as uI,bf as gI,bg as pI,bi as fI,bh as vI,aw as hI,ax as mI,cg as _I,ch as bI,ds as wI,dr as yI,a_ as II,G as SI,b2 as $I,cc as kI,C as lp,cZ as xI,b8 as ds,bY as CI,X as PI,E as RI,ad as TI,t as AI,cT as MI,d0 as cp,Q as dp,dq as EI,cN as id}from"./CReqoCJu.js";import{u as If,a as wl,ag as qI,x as LI,ad as Sf,af as HI,ac as $f,a4 as OI,F as up,D as FI,e as DI,n as NI,s as BI,m as WI,Y as UI,k as zI}from"./DunKT6dS.js";import{a4 as jI,b5 as VI,cM as GI,a_ as KI,b4 as QI,c2 as JI,c9 as YI,w as XI,x as ZI,cd as eS}from"./8gAO4rBm.js";import{n as tS,P as kf,F as nS,ai as rS,r as aS,ac as sS}from"./DKfX0H_n.js";import{I as oS,s as iS,H as gp}from"./Bqd7fdCF.js";import{e as lS}from"./CL3a4Hm1.js";import{e as cS,f as dS}from"./DkNt2yt8.js";import{s as uS,o as Xs,b as gS,g as Ol,d as pS,l as bi}from"./CIyUrgF0.js";import{a4 as fS,a6 as vS,D as hS,M as mS,ab as pp,W as _S,i as bS,r as ir,v as Pi,u as Xr,p as $i,x as mr,S as Wd,m as Ul,s as qo,y as Ri,o as no,n as ro,t as fp,a9 as ao,w as so,a8 as Ud,q as _a,z as Lo,I as kd,Z as vp,g as wS,F as yS,U as xf,H as Cf,a7 as Pf,a5 as Ml,N as IS,E as Rf,R as SS,A as $S,b as kS,aa as xS,ac as yl,e as ld,l as CS,C as PS,f as Js,j as hp,G as us,Q as RS,d as cd,c as TS,a as mp,h as AS,K as MS,X as _p,a3 as dd,a0 as bp,$ as ES,a2 as wp,_ as yp,T as qS,B as LS,k as HS,a1 as OS,J as FS,P as DS,O as NS,V as BS}from"./CETwR3pL.js";import{m as WS}from"./Dms_DO28.js";import{g as Tf}from"./DM9LmF5j.js";import{b as US}from"./DGaBtrvB.js";import{g as zS}from"./BaeKUSxM.js";import{a as jS}from"./DQyVwHJA.js";import{q as Af,d as lr,r as VS,e as Fl,j as GS,g as xd,i as KS,f as Cd,c as QS,A as JS,O as Ip,k as YS}from"./DkH5cZvV.js";import{P as XS}from"./DkE1KcNT.js";import{e as ZS}from"./QulM8iJe.js";import{b as e$,a as t$,g as n$,c as r$,i as a$}from"./DiJpPQTH.js";import{R as s$,g as o$,W as Il,c as i$}from"./ewVf6PIZ.js";import"./DjNq-V1x.js";import"./DHeLwLtz.js";import{s as Ti}from"./FJqzUSSZ.js";import{F as l$,h as c$}from"./Dk2HcklO.js";import"./BvxuCpa1.js";import{C as d$,e as Or,L as u$,l as zl,d as jl,K as Vl,h as zd,M as Gl,S as Da}from"./OnVz_1Np.js";import{D as g$}from"./Cd-cZZzm.js";import{f as Sp}from"./CP45YnfV.js";import"./DU3vNstz.js";import{i as Mf}from"./BjLb7AHW.js";import{h as $p,i as kp,g as xp,P as Cp,C as p$,m as El,R as f$}from"./hR-DaH6k.js";import{f as xt,ae as v$}from"./CHVFOL-2.js";import{F as pt,bs as h$,cd as m$,aw as Na,a2 as Ef,c9 as _$,bf as b$,be as w$,bg as y$,aO as Pp,aj as ud,aB as gd,bB as qf,d3 as Dl,cF as I$,aM as Rp,cb as Tp,cK as Nl,bu as S$,aS as $$,d0 as k$,a8 as Lf,ac as x$,ag as C$,cr as P$,ba as R$,aC as Hf,cT as Ap,cz as T$,ax as A$,cD as M$,c3 as E$}from"./Cuea3cpS.js";import{c as Of}from"./ChTqQfQN.js";import"./cplLJoH8.js";import{c as Rt}from"./CB4UdDb9.js";import{a5 as Ff,bg as q$,ar as L$,k as H$,Y as O$,W as F$,a2 as D$,Z as N$,bw as B$,V as W$,a1 as U$,ah as z$}from"./BsRM8yjb.js";import{d as Bl,f as j$,e as V$}from"./BylMfQ8a.js";import{A as G$}from"./c8-6qMPD.js";import{D as K$}from"./Bah_ExD8.js";import"./CT1vJyZh.js";import{a as Q$,C as J$}from"./DOHVP8r1.js";import"./kLX0oQjt.js";import{C as Y$}from"./DC4EvC84.js";import{h as Pd,r as X$,a as Z$}from"./DTCoCNln.js";import{s as ek}from"./Dw9M83Lw.js";import{I as tk,a as nk}from"./gkFzY6r7.js";import{L as rk}from"./Cbbfu3DD.js";import{g as ak,f as sk,b as ok}from"./DGLC3mk9.js";import{s as Ai,g as Kn,i as ik,j as lk,e as Mp,r as Ep,f as ck,d as dk,a as pd,h as uk}from"./CVbN130s.js";import{i as qp,a as gk}from"./Bu13V5mO.js";import{seekConversationToMessage as Lp}from"./CO4Rte0G.js";import{l as Yt,o as fd,h as jd,n as Rd,q as pk}from"./2EufkTRJ.js";import{o as fk}from"./szZ8pRnr.js";import{A as Df}from"./CzlfnNwB.js";import{b as Nf}from"./DFvB5yOL.js";import{g as vk,e as Bf,v as hk,f as mk,N as _k,M as bk,K as wk,k as Wf,l as yk,H as Uf,s as zf}from"./CinOJOVh.js";import{selectCurrentWorkspaceTabId as vd}from"./Dv4BYa-Z.js";import{o as Ik}from"./BvIER3hk.js";import{d as Sk}from"./B0Z-1lwJ.js";import{P as $k}from"./BaUOI4IK.js";import{g as kk}from"./C6qzokod.js";import{H as jf,M as xk,y as Ck,g as Pk,i as Rk,u as Tk,e as Vf,c as Gf,d as Ak}from"./C-ip9N1T.js";import{c as Mk,h as Vd,f as Kf,M as Ek}from"./Dt5BioTS.js";import{t as qk}from"./DAsc1V4f.js";import{s as Lk}from"./BsieX9dN.js";import{i as Qf}from"./CzlyzR5w.js";import{d as Hk,i as Ok,r as Fk}from"./DjwaFIuf.js";import{g as Dk}from"./DJFHa_93.js";var Nk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Bk=E("<div><!></div>");function Jf(n,r){if(new.target)return dn({component:Jf,...n});pn(r,!0);let a=Z(r,"ref",15,null),i=Z(r,"class",7),c=Z(r,"children",7),l=nf(r,Nk);var f={get ref(){return a()},set ref(v=null){a(v),ee()},get class(){return i()},set class(v){i(v),ee()},get children(){return c()},set children(v){c(v),ee()},$set:un,$on:(v,R)=>gn(r,v,R)},u=Bk();rf(u,v=>({"data-slot":"card-header",class:v,...l}),[()=>Fd("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-x-4 gap-y-1.5 pt-4 pb-2 has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto]",Y$,i())]);var b=I(u);return Ti(b,()=>c()??fs),w(u),hr(u,v=>a(v),()=>a()),p(n,u),fn(f)}var Wk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Uk=E("<div><!></div>");function Yf(n,r){if(new.target)return dn({component:Yf,...n});pn(r,!0);let a=Z(r,"ref",15,null),i=Z(r,"class",7),c=Z(r,"children",7),l=nf(r,Wk);var f={get ref(){return a()},set ref(v=null){a(v),ee()},get class(){return i()},set class(v){i(v),ee()},get children(){return c()},set children(v){c(v),ee()},$set:un,$on:(v,R)=>gn(r,v,R)},u=Uk();rf(u,v=>({"data-slot":"card-title",class:v,...l}),[()=>Fd("type-title min-w-0 break-words font-semibold leading-tight text-foreground",i())]);var b=I(u);return Ti(b,()=>c()??fs),w(u),hr(u,v=>a(v),()=>a()),p(n,u),fn(f)}const Sl=oS.CHAT_MEDIA,hd=uS().min(1).max(512);Xs({workspaceId:hd,agentId:hd,draftId:Ol(),principalId:hd,media:gS(tS).min(1).max(20)}).strict();const zk=Xs({sessionId:Ol()}).strict();zk.extend({control:pS("action",[Xs({action:bi("readiness")}).strict(),Xs({action:bi("export"),request:cS}).strict(),Xs({action:bi("transcribe"),request:dS}).strict(),Xs({action:bi("release"),jobId:Ol()}).strict(),Xs({action:bi("adopt"),jobId:Ol()}).strict()])}).strict();function Gd(n,r,a,i=async(c,l)=>typeof window>"u"||iS(window)!=="electron"?{ok:!1,error:"unavailable"}:lS().invoke(c,l)){let c=null,l=null,f=!1;async function u(){f=!0,a.removeEventListener("abort",b);const x=c;c=null,x&&await i(Sl.CLOSE,{sessionId:x}).catch(()=>{})}const b=()=>{u()};a.addEventListener("abort",b,{once:!0});const v=()=>{if(f||a.aborted||!r())throw new Error("media-send-retired")};async function R(){if(v(),c)return c;if(l)return l;l=(async()=>{const x=await i(Sl.BEGIN,n);if(!x.ok)throw new Error("media-export-unavailable");c=x.value.sessionId;try{return v(),c}catch(F){throw await u(),F}})();try{return await l}finally{l=null}}async function y(x){const F=await R();v();const D=await i(Sl.CONTROL,{sessionId:F,control:x});return v(),D}return{service:{exportMedia:x=>y({action:"export",request:x}),adoptMediaJob:x=>y({action:"adopt",jobId:x}),transcribeMedia:x=>y({action:"transcribe",request:x}),releaseMediaJob:async x=>c?await i(Sl.CONTROL,{sessionId:c,control:{action:"release",jobId:x}}):{ok:!0,value:void 0}},dispose:u,readiness:()=>y({action:"readiness"})}}const md=new Set;async function jk(n){const{drafts:r,signal:a}=n,i=structuredClone(n.capture),c=structuredClone(n.items),l=structuredClone(n.payload),{workspaceId:f,agentId:u}=i,b=Ci(O.state),v=Hl.select(O.state,f),R=vf.select(O.state),y=cf(),M=JSON.stringify([b,f,u]);if(!b||!v||!R||l.wsId!==f||md.has(M))return!1;md.add(M);const x=new AbortController,F=()=>x.abort();a.addEventListener("abort",F,{once:!0});const D=()=>!a.aborted&&!x.signal.aborted&&Ci(O.state)===b&&Hl.select(O.state,f)===v&&uf(y)&&r.isCurrentDraft(i),T=O.getReadableState().subscribe(()=>{D()||x.abort()});let H=null;try{if(!D()||jI(c))return!1;const V=If(i.attachments),oe=kf(nS(f,u),V,c.map(ue=>({contextItemId:ue.id,attachmentId:ue.attachmentId,path:ue.path}))),P=new Set([...oe.images,...oe.clips].map(ue=>ue.contextItemId));if(V.some(([ue])=>!P.has(ue))||oe.images.some(ue=>ue.mediaError)||oe.clips.some(ue=>ue.mediaError)||!rS(l.text,oe))throw new Error("invalid-evidence");if(H=n.warm?.take(i,x.signal)??null,!await r.flushDraft(i)||!D())return!1;const k=await xy.agents.get(u,f);if(!D())return!1;if(!k||k.workspaceId!==f||k.retiredAt||k.pendingDeleteAt||k.status==="deleted")throw new Error("unavailable");const Q=oe.clips.flatMap(ue=>ue.media?[ue.media]:[]);Q.length&&!H&&(H=Gd({workspaceId:f,agentId:u,draftId:crypto.randomUUID(),principalId:R.principal.id,media:Q},D,x.signal));const ge=Gw(c,oe),Re=df(ge),ve=await Kw({workspaceId:f,agentId:u,evidence:oe,clickedItems:c,sendItems:ge,clickedPayload:{...l,contextItems:ge,imageBlocks:Re.imageBlocks,fileBlocks:Re.fileBlocks},binding:y,service:H?.service??null,current:D,onRecord:()=>{}});return!ve||!D()?!1:Tl(O,u,ve)}catch{return D()&&O.dispatch(J_(u,g.dock_conversation_sendFailed_error())),!1}finally{T(),a.removeEventListener("abort",F),await H?.dispose(),md.delete(M)}}const Xf=1e4,Hp={wasBusy:!1,busySince:null,preempted:!1,prediction:null};function Op(n){return fS(n.messageMetadata)}function Vk(n,r){if(n.some(Op)){const a=n[0];return a&&!Op(a)&&Fp(a,r)?[a.id]:[]}return n.filter(a=>Fp(a,r)).map(a=>a.id)}function Gk(n){let r=null;for(const a of n)(a.status==="preparing"||a.status==="sending")&&a.createdAt>(r??-1/0)&&(r=a.createdAt);return r}function Fp(n,r){return!n.requeuedAfterFailure&&vS(n,r)}function Kk(n,r){const{busy:a,queue:i,delivered:c,now:l}=r,f=r.blocked||r.interrupted,u=r.timeoutMs??Xf;let b=n.prediction;if(b){const x=new Set(i.map(H=>H.id)),F=b.ids.filter(H=>x.has(H)&&!c.has(H)),D=l-b.startedAt>=u,T=n.wasBusy&&!a;!F.length||D||f&&!a||T?b=null:F.length!==b.ids.length&&(b={...b,ids:F})}const v=n.wasBusy&&!a,R=n.wasBusy?n.busySince:a?l:null,y=n.wasBusy&&n.preempted||R!==null&&r.directSendAt!==null&&r.directSendAt>R;if(!b&&v&&!f&&!y){const x=Vk(i,l).filter(F=>!c.has(F));x.length&&(b={ids:x,startedAt:l})}const M={wasBusy:a,busySince:a?R:null,preempted:a&&y,prediction:b};return n.wasBusy===M.wasBusy&&n.busySince===M.busySince&&n.preempted===M.preempted&&n.prediction===M.prediction?n:M}class Qk{constructor(){Qs(this,"previousWorkspaceId",null);Qs(this,"_isRebinding",!1);Qs(this,"_generation",0);Qs(this,"_rebindPromise",null);Qs(this,"_rebindResolve",null)}recordMount(r){return this.previousWorkspaceId=r,r}wasWorkspaceChangedDuringMount(r){return this.previousWorkspaceId!==r}shouldRebind(r){return!r||this.previousWorkspaceId===null?!1:r!==this.previousWorkspaceId}recordRebind(r){this.previousWorkspaceId=r}hasWorkspaceChanged(r){return r!==this.previousWorkspaceId}get trackedWorkspaceId(){return this.previousWorkspaceId}get isRebinding(){return this._isRebinding}startRebind(){return this._generation++,this._isRebinding=!0,this._rebindResolve?.(),this._rebindPromise=new Promise(r=>{this._rebindResolve=r}),this._generation}endRebind(r){r!==void 0&&r!==this._generation||(this._isRebinding=!1,this._rebindResolve?.(),this._rebindPromise=null,this._rebindResolve=null)}async waitForRebind(r=5e3){if(!this._isRebinding||!this._rebindPromise)return!1;const a=Date.now()+r;for(;this._isRebinding&&this._rebindPromise;){const i=a-Date.now();if(i<=0)return!1;let c;const l=await Promise.race([this._rebindPromise.then(()=>!1),new Promise(f=>{c=setTimeout(()=>f(!0),i)})]);if(clearTimeout(c),l)return!1}return!0}}function Jk(n,r){return!(n?.tabType!=="agent"||n.agentId!==r.agentId||!r.isActive||n.workspaceId&&n.workspaceId!==r.workspaceId||r.panelId&&(n.source!=="dictation"&&!r.isPanelFocused||n.panelId&&n.panelId!==r.panelId))}function Dp(n){const r=typeof n=="string"?n:n&&typeof n=="object"&&typeof n.script=="string"?n.script:void 0;return r||void 0}var Yk=E('<div role="status" aria-live="polite" data-presence-typing-indicator=""><span class="inline-flex min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center svelte-lm4khl"><!></span> <span class="min-w-0 truncate svelte-lm4khl"> </span> <span class="inline-flex shrink-0 items-center gap-0.5 svelte-lm4khl" aria-hidden="true"><span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.2s"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.4s"></span></span></div>');function Zf(n,r){if(new.target)return dn({component:Zf,...n});pn(r,!0);const a=()=>fe(R,"$typing$",i),[i,c]=Dr();let l=Z(r,"workspaceId",7),f=Z(r,"agentId",7),u=Z(r,"class",7,"");const b=Nn(""),v=Nn("");le(()=>{b.set(l())}),le(()=>{v.set(f())});const R=VI(b,v),y=o(()=>ZS(a()));var M={get workspaceId(){return l()},set workspaceId(H){l(H),ee()},get agentId(){return f()},set agentId(H){f(H),ee()},get class(){return u()},set class(H=""){u(H),ee()},$set:un,$on:(H,V)=>gn(r,H,V)},x=Bt(),F=ye(x);{var D=H=>{var V=Yk(),oe=I(V),P=I(oe);XS(P,{get people(){return a()},size:12,decorative:!0}),w(oe);var k=m(oe,2),Q=de(k,!0);In(2),w(V),q(()=>{ke(V,1,`${Af} flex h-4 min-w-0 items-center gap-[var(--operational-leading-gap)] px-[var(--operational-row-inline-padding)] font-family-child font-normal text-muted-foreground text-[11px] leading-4 ${u()??""} /* a11y-ignore: user-requested compact typing status in the composer gap */`,"svelte-lm4khl"),z(Q,e(y))}),p(H,V)};B(F,H=>{e(y)&&H(D)})}p(n,x);var T=fn(M);return c(),T}const Xk=50,Zk=5e3,ex=500,tx=()=>({authority:()=>Ci(O.state),persistSnapshot:Jw,dispatch:n=>O.dispatch(n),ownerView:n=>Yw.withStore(O)(n)});function nx(n){const r=n.store??tx(),a=crypto.randomUUID();let i=_e(!1),c=_e(!1),l=_e(!1),f=null,u=null,b=0,v=!1,R=null,y=null,M=null,x=0,F=null,D=null;const T={};let H,V=_e([]),oe=null,P=0,k="",Q=0,ge="";const Re=()=>{const N=n.workspaceId(),C=n.agentId();if(!N||!C||!(n.active?.()??!0))return null;const re=r.authority?.();if(!re||v)return null;const Te=n.inputValue(),L=ue(),Y=H?.shared,J=Y?.workspaceId===N&&Y.agentId===C?Y.lifetime:null,we=JSON.stringify([re,N,C,x,J,L.map(U=>[U.id,U.attachmentId,U.path])]);we!==ge&&(ge=we,Q+=1);const Ne=JSON.stringify([re,N,C,Te,L,x]);return Ne!==k&&(k=Ne,P+=1),{authority:re,ownerId:a,workspaceId:N,agentId:C,text:Te,attachments:JSON.parse(JSON.stringify(L)),generation:P,attachmentEpoch:Q}};let ve=null;const ue=()=>qI(n.contextItems(),LI(n.contextItems(),e(V))),be=N=>{if(H=N,!N||v)return;const C=N.restore;if(D&&C?.requestId===D.requestId&&C.status!=="pending"){const{apply:L}=D;D=null,_(c,!1),C.status==="restored"&&_(V,C.draft?.attachments??[]),L(C)}const re=N.shared;if(re&&!e(c)&&u===`${re.workspaceId}\0${re.agentId}`){const L=JSON.stringify([re.provenance,re.workspaceId,re.agentId,re.lifetime,re.revision]);if(oe!==L){oe=L;const Y=ve??f,J=Y&&n.inputValue()===Y.text&&JSON.stringify(ue())===Y.attachmentsJson;re.origin===a?ve={text:re.snapshot.text,attachmentsJson:JSON.stringify(re.snapshot.attachments)}:J&&(b+=1,M&&clearTimeout(M),_(V,re.snapshot.attachments),ve=f={text:re.snapshot.text,attachmentsJson:JSON.stringify(e(V))},n.setInputValue(re.snapshot.text),n.setContextItems(wl(e(V))),n.applyEditorContent(re.snapshot.text))}}ct(Re);const Te=[];for(const L of N.saves){if(L.status==="pending")continue;Te.push(L.id);const Y=T[L.id];delete T[L.id],Y?.(L)}Te.length>0&&queueMicrotask(()=>r.dispatch(eb(a,Te)))},ne=(N,C,re)=>{const Te=crypto.randomUUID();D={requestId:Te,apply:re},_(c,!0),r.dispatch(nb(a,Te,N,C))},te=()=>{D&&(D=null,_(c,!1),r.dispatch(ab(a)))},ze=()=>{const N=F;N&&(F=null,r.dispatch(rb(a)),H?.saves.some(C=>C.id===N)||delete T[N])};r.dispatch(Y_(a));const se=r.ownerView(a).subscribe(N=>ct(()=>be(N))),he=()=>{y&&(clearTimeout(y),y=null),_(l,!1)},Me=()=>{F&&(F=null,r.dispatch(tb(a)))};le(()=>{const N=n.active?.()??!0,C=n.workspaceId(),re=n.agentId();if(!N){ct(()=>{b+=1,u=null,te(),R&&clearTimeout(R),R=null,he(),M&&clearTimeout(M),M=null,_(i,!1),Me()});return}if(!C||!re)return;const Te=`${C}\0${re}`;if(u===Te)return;const L=u!==null;u=Te;const Y=++b;ct(()=>{f=null,ve=null,oe=null,_(V,[]),R&&clearTimeout(R),he(),M&&(clearTimeout(M),M=null),L&&(Me(),n.setInputValue(""),n.contextItemsAreScoped||n.setContextItems([]),n.applyEditorContent(""));const J=Qw(C,re);if(J){_(V,J.attachments),_(i,!1);const Ne=n.contextItems().length>0,U=J.text,Ie=JSON.stringify(J.attachments);n.setInputValue(J.text),Ne||n.setContextItems(wl(J.attachments)),n.applyEditorContent(J.text),f={text:J.text,attachmentsJson:Ie},ne(C,re,Ce=>{if(Ce.status!=="restored")return;const Le=Ce.draft;if(v||!(n.active?.()??!0)||u!==Te||b!==Y)return;const st=Le?.text??"",Xe=Le?.attachments??[],He=JSON.stringify(Xe);sd(C,re,{text:st,attachments:Xe});const Pe=n.inputValue()===U&&JSON.stringify(ue())===Ie;Ne||!Pe||(st!==U&&(n.setInputValue(st),n.applyEditorContent(st)),He!==Ie&&n.setContextItems(wl(Xe)),f={text:st,attachmentsJson:He})});return}_(i,!0),y=setTimeout(()=>{y=null,(n.active?.()??!0)&&_(l,!0)},ex),R=setTimeout(()=>{(n.active?.()??!0)&&(_(i,!1),he())},Zk);const we=()=>{!(n.active?.()??!0)||u!==Te||b!==Y||(R&&clearTimeout(R),_(i,!1),he())};ne(C,re,Ne=>{if(Ne.status!=="restored"){we();return}const U=Ne.draft;if(v||!(n.active?.()??!0)||u!==Te||b!==Y)return;const Ie=!!n.inputValue();if(!Ie&&U?.attachments?.length&&n.contextItems().length===0&&n.setContextItems(wl(U.attachments)),!Ie&&U?.text&&(n.setInputValue(U.text),M=setTimeout(()=>{(n.active?.()??!0)&&n.inputValue()===U.text&&n.applyEditorContent(U.text)},Xk)),f===null){const Ce=U?.text??"",Le=U?.attachments??[];f={text:Ce,attachmentsJson:JSON.stringify(Le)},sd(C,re,{text:Ce,attachments:Le})}we()})})}),le(()=>{const N=n.active?.()??!0,C=n.workspaceId(),re=n.agentId(),Te=e(i);if(!N){ct(ze);return}if(!C||!re)return;const L=n.inputValue(),Y=ue();if(ct(Re),ct(ze),Te||f===null&&!L&&Y.length===0)return;const J=JSON.stringify(Y);if(f!==null&&f.text===L&&f.attachmentsJson===J)return;JSON.stringify(e(V))!==J&&_(V,Y);const we=`${C}\0${re}`,Ne=x,U=crypto.randomUUID();T[U]=Ie=>{if(n.active?.()??!0){if(Ie.status==="saved"){u===we&&x===Ne&&(f={text:L,attachmentsJson:J});return}n.onSaveError?.(new Error(Ie.error))}},ct(()=>{F=U,r.dispatch(X_(a,U,{authority:r.authority?.()??void 0,workspaceId:C,agentId:re,text:L,attachments:Y,rollback:f?{text:f.text,attachments:JSON.parse(f.attachmentsJson)}:null}))})}),le(()=>()=>{v=!0,R&&clearTimeout(R),y&&clearTimeout(y),M&&clearTimeout(M),Me(),se(),r.dispatch(Z_(a))});const Ee=N=>{const C=Re();return C!==null&&C.authority===N.authority&&C.ownerId===N.ownerId&&C.workspaceId===N.workspaceId&&C.agentId===N.agentId&&C.generation===N.generation&&C.text===N.text&&JSON.stringify(C.attachments)===JSON.stringify(N.attachments)};return{captureDraft:Re,isCurrentDraft:Ee,updateAttachmentScreen(N,C,re){return!Ee(N)||!N.attachments.some(Te=>Te.id===C)?null:(_(V,N.attachments.map(Te=>Te.id===C?{...Te,screen:structuredClone(re)}:Te)),Re())},async flushDraft(N){if(!Ee(N))return!1;if(!r.persistSnapshot)throw new Error("draft-shared-transport-unavailable");return await r.persistSnapshot(a,N.workspaceId,N.agentId,N,N.authority),Ee(N)},get restorePending(){return e(c)},get gateActive(){return e(i)},get gateVisible(){return e(l)},invalidatePendingRestore(){if(b+=1,x+=1,te(),R&&(clearTimeout(R),R=null),M&&(clearTimeout(M),M=null),_(i,!1),he(),ze(),u!==null){const[N,C]=u.split("\0");sd(N,C,{text:"",attachments:[]}),ve=null,_(V,[]),f={text:"",attachmentsJson:"[]"}}}}}function Mi(n){if(!n)return null;const r=kf(JSON.stringify([n.workspaceId,n.agentId]),If(n.attachments),n.attachments.map(a=>({contextItemId:a.id,attachmentId:a.attachmentId,path:a.path})));return{...r,clips:r.clips.filter(a=>{const i=n.attachments.find(c=>c.id===a.contextItemId);return!!a.media&&!a.mediaError&&!!i&&a.path===i.path})}}async function rx(n,r,a){const i=O.state.principal.snapshot,c=()=>Ci(O.state)===n.authority&&a.isCurrentDraft(n);if(!i||!c()||!await a.flushDraft(n)||!c())return{ready:!1};const l=new AbortController,f=Gd({workspaceId:n.workspaceId,agentId:n.agentId,principalId:i.principal.id,draftId:crypto.randomUUID(),media:[r]},c,l.signal);try{const u=await f.readiness();return!c()||!u.ok?{ready:!1}:u.value.find(b=>b.sourceId===r.source.id)??{ready:!1}}finally{await f.dispose()}}function Np(n){let r=_e(null),a=_e(!1),i=_e(!1),c=null,l=!0,f=0,u=null;Es(()=>{l=!1,f++}),le(()=>{const y=n.capture();e(r)&&(!y||y.authority!==e(r).capture.authority||y.ownerId!==e(r).capture.ownerId||y.workspaceId!==e(r).capture.workspaceId||y.agentId!==e(r).capture.agentId||y.attachmentEpoch!==e(r).capture.attachmentEpoch)&&_(r,null)});async function b(y){if(n.disabled()||e(a))return;const M=n.drafts.captureDraft(),x=Mi(M),F=x?.clips.find(V=>V.contextItemId===y);if(!M||!F?.media||!x)return;const D=Xw({workspaceId:M.workspaceId,agentId:M.agentId,clip:F,evidence:x,marks:x.marks}),T=gf(M.workspaceId,F.path);if(!D||!T)return;const H=++f;c=document.activeElement instanceof HTMLElement?document.activeElement:null,_(a,!0),_(i,!1);try{if(await n.beforeOpen?.(),!l||f!==H||!n.drafts.isCurrentDraft(M))return;const V=await(n.prepareOutput??rx)(M,F.media,n.drafts);if(!l||f!==H||!n.drafts.isCurrentDraft(M))return;const{attachmentPath:oe,...P}=D;_(r,{capture:M,contextItemId:y,snapshot:{...P,openId:crypto.randomUUID(),mediaUrl:T,output:V,deleteReady:!0}})}catch{l&&f===H&&_(i,!0)}finally{l&&f===H&&_(a,!1)}}async function v(y){const M=crypto.randomUUID(),x=e(r),F=n.drafts.captureDraft();if(!x||!F||F.authority!==x.capture.authority||F.ownerId!==x.capture.ownerId||F.workspaceId!==x.capture.workspaceId||F.agentId!==x.capture.agentId||F.attachmentEpoch!==x.capture.attachmentEpoch)return{requestId:M,result:"stale-source"};const D=Mi(F),T=D?.clips.find(Q=>Q.contextItemId===x.contextItemId);if(!D||!T?.media)return{requestId:M,result:"stale-source"};const V=u?.openId===x.snapshot.openId&&u.inputRevision===y.revision&&JSON.stringify(u.media)===JSON.stringify(T.media)?{...y,revision:T.media.saved?.revision??0}:y,oe=aS(T.media,{openId:x.snapshot.openId,...x.snapshot.output?.version===2?{outputVersion:2}:{},pair:{workspaceId:F.workspaceId,agentId:F.agentId},sourceId:y.sourceId,sourceRevision:y.sourceRevision,expectedEditRevision:V.revision,edit:V});if(oe.status!=="saved")return{requestId:M,result:oe.status==="invalid-edit"?"failed":oe.status};const P=sS({...D,clips:D.clips.map(Q=>Q.id===T.id?{...Q,media:oe.media}:Q)})[x.contextItemId],k=n.drafts.updateAttachmentScreen(F,x.contextItemId,P);if(!k)return{requestId:M,result:"stale-source"};u={openId:x.snapshot.openId,media:oe.media,inputRevision:y.revision};try{if(!n.drafts.isCurrentDraft(k))return{requestId:M,result:"stale-source"};await n.drafts.flushDraft(k);const Q=n.drafts.captureDraft();return!l||e(r)?.snapshot.openId!==x.snapshot.openId||!Q||Q.attachmentEpoch!==x.capture.attachmentEpoch||Q.authority!==k.authority||Q.ownerId!==k.ownerId||Q.workspaceId!==k.workspaceId||Q.agentId!==k.agentId||JSON.stringify(Q.attachments.find(ge=>ge.id===x.contextItemId)?.screen)!==JSON.stringify(P)?{requestId:M,result:"stale-source"}:(u=null,{requestId:M,result:"saved",saved:oe.media.saved??void 0})}catch{return{requestId:M,result:"failed"}}}function R(y){return n.disabled()||!n.onRemove(y)?!1:(e(r)?.contextItemId===y&&_(r,null),!0)}return{get session(){return e(r)},get opening(){return e(a)},get problem(){return e(i)},open:b,save:v,remove:R,close(){_(r,null)},restoreFocus(){c?.isConnected&&c.focus()}}}var ax=E('<p role="alert"> </p>'),sx=E('<div class="recording-editor-surface svelte-cdb16"><!></div>'),ox=E("<!> <!> <!>",1);function ev(n,r){if(new.target)return dn({component:ev,...n});pn(r,!0);let a=Z(r,"capture",7),i=Z(r,"drafts",7),c=Z(r,"disabled",7,!1),l=Z(r,"onRemove",7),f=Z(r,"controllerFactory",7,Np),u=Z(r,"beforeOpen",7),b=Z(r,"onReviewChange",7);const v=ct(()=>f()({drafts:i(),capture:()=>a(),disabled:()=>c(),onRemove:P=>l()(P),beforeOpen:()=>u()?.()??Promise.resolve()}));le(()=>{const P=v.opening,k=v.session;ct(()=>b()?.(P,k?.snapshot.output?.ready?{openId:k.snapshot.openId,capture:k.capture}:null))});const R=o(Zw),y=o(()=>Mi(a())),M=o(()=>e(y)?.clips.map(P=>({id:P.contextItemId,kind:"clip",owner:"evidence",duration:Sp(P.durationMs),recording:!1,url:a()?gf(a().workspaceId,P.path):void 0,...P.media?.saved?{summary:ey(P.media.saved)}:{}}))??[]);let x=_e(null);var F={get capture(){return a()},set capture(P){a(P),ee()},get drafts(){return i()},set drafts(P){i(P),ee()},get disabled(){return c()},set disabled(P=!1){c(P),ee()},get onRemove(){return l()},set onRemove(P){l(P),ee()},get controllerFactory(){return f()},set controllerFactory(P=Np){f(P),ee()},get beforeOpen(){return u()},set beforeOpen(P){u(P),ee()},get onReviewChange(){return b()},set onReviewChange(P){b(P),ee()},$set:un,$on:(P,k)=>gn(r,P,k)},D=ox(),T=ye(D);{let P=o(()=>c()||v.opening);hS(T,{get items(){return e(M)},get labels(){return e(R)},get disabled(){return e(P)},onEdit:k=>void v.open(k),onMarkUp:k=>void v.open(k),get onRemove(){return v.remove}})}var H=m(T,2);{var V=P=>{var k=ax(),Q=de(k,!0);q(ge=>z(Q,ge),[()=>g.dock_captureEditor_saveFailed_label()]),p(P,k)};B(H,P=>{v.problem&&P(V)})}var oe=m(H,2);{let P=o(()=>!!v.session),k=o(()=>g.dock_captureEditor_recording_title({duration:v.session?Sp(v.session.snapshot.durationMs??0):""}));d$(oe,{get open(){return e(P)},size:"editor",showCloseButton:!1,get title(){return e(k)},escapeKeydownBehavior:"ignore",dismissOnInteractOutside:!1,onClose:()=>v.close(),onCloseAutoFocus:Q=>{Q.preventDefault(),v.restoreFocus()},get contentRef(){return e(x)},set contentRef(Q){_(x,Q,!0)},children:(Q,ge)=>{var Re=Bt(),ve=ye(Re);{var ue=be=>{var ne=Bt(),te=ye(ne);ki(te,()=>v.session.snapshot.openId,ze=>{var se=sx(),he=I(se);g$(he,{get snapshot(){return v.session.snapshot},get shortcutDialog(){return e(x)},onClose:()=>v.close(),get onSave(){return v.save},onDelete:async()=>!!v.session&&v.remove(v.session.contextItemId)}),w(se),p(ze,se)}),p(be,ne)};B(ve,be=>{v.session&&be(ue)})}p(Q,Re)},$$slots:{default:!0}})}return p(n,D),fn(F)}const $l=n=>JSON.stringify([n.authority,n.ownerId,n.workspaceId,n.agentId,n.attachmentEpoch,n.attachments]);function ix(n){let r=_e(!1),a=_e(!1),i=_e(null),c=!1,l=0,f=null,u=null;async function b(y){y.abort.abort(),y.slot?.cancel(),await y.native?.dispose()}async function v(){l++;const y=u;u=null,y&&await b(y)}to(()=>{const y=()=>{_(r,document.hasFocus(),!0)};return y(),window.addEventListener("focus",y),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",y)}});const R=O.getReadableState().subscribe(()=>{u&&!u.current()&&v()});return Es(()=>{c=!0,R(),v()}),le(()=>{const y=n.capture(),M=y?$l(y):"",x=e(r)&&!e(a)&&(n.active()||e(i)?.key===M);ct(()=>{if(!x||!y){v();return}if(u?.key===M)return;if(f===M){v();return}v();const D=Mi(y)?.clips.flatMap(Re=>!Re.mediaError&&Re.media?[Re.media]:[])??[],T=D[0],H=O.state.principal.snapshot,V=Hl.select(O.state,y.workspaceId);if(!T||!H||!V||n.drafts.gateActive)return;const oe=cf(),P=new AbortController,k=()=>!c&&!P.signal.aborted&&Ci(O.state)===y.authority&&Hl.select(O.state,y.workspaceId)===V&&uf(oe)&&!!n.capture()&&$l(n.capture())===M,Q={key:M,capture:y,abort:P,native:null,slot:null,current:k};u=Q;const ge=l;n.drafts.flushDraft(y).then(async Re=>{if(!(u!==Q||ge!==l||!k())){if(!Re){f=M,await v();return}Q.native=Gd({workspaceId:y.workspaceId,agentId:y.agentId,draftId:crypto.randomUUID(),principalId:H.principal.id,media:structuredClone(D)},k,P.signal),Q.slot=ty(Q.native.service),f=M,Q.slot.warm(M,T,k)}}).catch(()=>{u===Q&&v()})})}),{cancel:v,async beforeEditorOpen(){_(a,!0),f=null,await v()},editorState(y,M){_(a,y,!0);const x=M?$l(M.capture):null;M&&e(i)?.openId!==M.openId&&(f=null),_(i,M&&x?{openId:M.openId,key:x}:null)},take(y,M){const x=u;if(!x?.native||!x.slot||x.key!==$l(y)||!x.current())return v(),null;u=null,l++;const F=x.native,D=x.slot,T=()=>x.abort.abort();return M.addEventListener("abort",T,{once:!0}),M.aborted&&T(),{service:{...F.service,takePreparedRecording:H=>D.take(x.key,H,()=>!M.aborted&&x.current())},async dispose(){M.removeEventListener("abort",T),await b(x)}}}}}var lx=E('<div role="status" class="px-3 py-1.5 text-xs text-muted-foreground" data-testid="chat-draft-loading-gate"><span> </span></div>');function tv(n,r){if(new.target)return dn({component:tv,...n});pn(r,!1);var a={$set:un,$on:(f,u)=>gn(r,f,u)};Mf();var i=lx(),c=I(i),l=de(c,!0);return w(i),q(f=>z(l,f),[()=>g.chat_draftGate_loading_label()]),p(n,i),fn(a)}var cx=E('<div data-new-messages-divider="" class="type-caption font-family-child my-6 flex items-center gap-2 px-2" role="separator"><div class="h-px flex-1 bg-border"></div> <span class="whitespace-nowrap px-1 font-medium text-foreground"> </span> <div class="h-px flex-1 bg-border"></div></div>');function Td(n,r){if(new.target)return dn({component:Td,...n});pn(r,!1);var a={$set:un,$on:(f,u)=>gn(r,f,u)};Mf();var i=cx(),c=m(I(i),2),l=de(c,!0);return In(2),w(i),q((f,u)=>{Ue(i,"aria-label",f),z(l,u)},[()=>g.chat_newMessagesDivider_label(),()=>g.chat_newMessagesDivider_label()]),p(n,i),fn(a)}function dx(n,r){if(!r||n.length===0)return null;const a=n.indexOf(r);return a===-1||a===n.length-1?null:r}function ux(n,r,a){if(!r||n.length===0)return"none";const i=n.indexOf(r);return i===n.length-1?"none":i!==-1?"marker-loaded":a.complete?a.truncated?"marker-beyond-window":"none":"marker-pending"}function gx(n,r){return r&&n.includes(r)?r:null}function Bp(n,r,a){return r-n<=a}const px=.2;function Wp(n,r,a){const i=Math.max(0,a-r),c=n-px*r;return Math.min(Math.max(0,c),i)}function fx(n,r,a){return n!==null&&a&&n===r}function vx(n){return n?sb(n)&&ob(n)!==null&&typeof n.metadata?.taskNoteId=="string":!1}function hx(n){const r=[],a=new Set;let i,c;for(const H of n.messages){if(H.agentId&&H.agentId!==n.agentId){i=void 0,c=void 0;continue}if(a.has(H.id))continue;a.add(H.id),n.breakBeforeMessageIds?.has(H.id)&&(i=void 0,c=void 0);const V=mS(H);if(V?.kind!=="turn-failure")c=void 0;else{const oe=i?.seq!==void 0&&H.seq!==void 0&&Number.isSafeInteger(i.seq)&&Number.isSafeInteger(H.seq)&&H.seq===i.seq+1;(!c||!oe)&&(c={key:JSON.stringify([n.agentId,"notice",H.id]),anchorMessageId:H.id,correlation:"unavailable",records:[],recordedFailureCount:0},r.push(c)),c.records.push({messageId:H.id,reason:V.reason,timestamp:H.timestamp}),c.recordedFailureCount+=1}i=H}const l=new Map;for(const H of n.queue){if(!H.requeuedAfterFailure)continue;const V=H.turnId||void 0,oe=JSON.stringify([n.agentId,V?"turn":"queue",V??H.id]);let P=l.get(oe);P||(P={key:oe,correlation:V?"turn":"queue-entry",turnId:V,queueIds:[],state:"queued"},l.set(oe,P)),P.queueIds.includes(H.id)||P.queueIds.push(H.id)}const f=[...l.values()],u=n.session?.id===n.agentId?n.session:void 0,b=u?.status===Si.Error,v=n.transientError||b&&u.stopReason||null,R=b&&!v,y=b&&(!n.transientError||n.transientError===u.stopReason)?u.stopReasonTimestamp:void 0,M=y?pp(y):null,x=M&&v&&v===u?.stopReason?r.flatMap(H=>H.records).filter(H=>H.reason===v&&pp(H.timestamp)===M):[],F=x.length===1?x[0].messageId:void 0,T=(u?hf(u):!1)?"attempting":f.length?"queued":v||R?"action-needed":"inactive";return{history:r,queueRecovery:f,current:{state:T,error:v,needsFallbackReason:R,timestamp:y,noticeId:F}}}function mx(n,r){const a=n.hiddenTail[0]?.id,i=hx({...r,messages:[...n.groups.flatMap(u=>u.messages),...n.hiddenTail],breakBeforeMessageIds:new Set(a?[a]:[])}),c=i.current.noticeId,l=i.history.map(u=>({...u,records:u.records.filter(b=>b.messageId!==c)})).filter(u=>u.records.length>0),f=new Set(l.map(u=>u.records[0].messageId));return{...i,runsByAnchor:new Map(l.map(u=>[u.records[0].messageId,u])),collapsedMessageIds:new Set(i.history.flatMap(u=>u.records.map(b=>b.messageId).filter(b=>!f.has(b))))}}var _x=E('<div class="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <div class="min-w-0 flex-1"><div class="type-body truncate font-medium text-foreground"> </div> <div class="type-caption mt-0.5 line-clamp-2 text-muted-foreground"> </div></div> <div class="flex size-7 shrink-0 items-center justify-center rounded-md bg-muted/50 text-muted-foreground transition-colors group-hover:bg-muted"><!></div>',1),bx=E('<div class="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <span class="type-body font-medium"> </span>',1),wx=E('<div><div class="border-b border-border bg-muted/20 px-4 py-3"><p class="type-body font-medium text-foreground"> </p> <p class="type-caption mt-0.5 text-muted-foreground"> </p></div> <div class="max-h-[21rem] overflow-y-auto p-2"><!></div> <div class="border-t border-border bg-popover p-2"><!></div></div>'),yx=E('<div class="mb-5"><!></div>'),Ix=E('<p data-testid="agent-welcome-description"> </p> <!>',1),Sx=E("<!> <!>",1),$x=E('<p class="mb-3 px-4 text-sm text-subtle leading-relaxed whitespace-pre-wrap" data-testid="agent-welcome-description"> </p>'),kx=E("<!> <span> </span>",1),xx=E('<div class="mx-auto flex w-full max-w-[40rem] flex-1 flex-col px-4 pb-6 pt-4 text-subtle"><!> <!> <!></div>');function nv(n,r){if(new.target)return dn({component:nv,...n});pn(r,!0);const a=()=>fe(x,"$userOverrides$",f),i=()=>fe(M,"$specialists$",f),c=()=>fe(H,"$isGitHubAuth$",f),l=()=>fe(V,"$recentSpecialistIds$",f),[f,u]=Dr();let b=Z(r,"onSpecialistChange",7),v=Z(r,"session",7),R=Z(r,"workspaceId",7);const y=Nn(R()??"");le(()=>y.set(R()??""));const M=Ff(y),x=q$();le(()=>{a()});const F=o(()=>{if(!v()||qy(v()))return null;const N=v().metadata?.specialist||v().agentMetadata?.specialist;return N&&i().find(C=>C.id===N)||null});async function D(N){N?await Bl({specialist:N,hash:"specialists"}):await Bl({view:"create-specialist"})}let T=_e(!1);const H=L$(),V=GI(),oe=o(()=>ib(H$(i(),c()),l()));let P=_e(!1);const k=o(()=>g.chat_regularAgentWelcome_generalDescription_label()),Q=o(()=>e(F)?.name??g.chat_shared_general_fallback()),ge=o(()=>e(F)?.description??g.chat_shared_noSpecializedBehavior_label()),Re=o(()=>e(F)?e(F).defaultBehaviorPrompt||"":e(k));var ve={get onSpecialistChange(){return b()},set onSpecialistChange(N){b(N),ee()},get session(){return v()},set session(N){v(N),ee()},get workspaceId(){return R()},set workspaceId(N){R(N),ee()},$set:un,$on:(N,C)=>gn(r,N,C)},ue=xx(),be=I(ue);{var ne=N=>{var C=yx(),re=I(C);K$(re,{class:"block w-full",align:"start",side:"bottom",contentClass:"w-[min(28rem,calc(100vw-2rem))]",get open(){return e(P)},set open(Y){_(P,Y,!0)},trigger:(Y,J)=>{let we=()=>(J?.()).props;{let Ne=o(()=>Fd("group flex h-auto min-h-(--control-height-medium) w-full cursor-pointer items-center gap-3 whitespace-normal rounded-lg border border-border bg-card px-4 py-3 text-left shadow-xs transition-colors","hover:border-input hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"));xt(Y,Ei(we,{type:"button",variant:"plain",wrapContent:!1,get class(){return e(Ne)},"data-testid":"specialist-picker-trigger",children:(U,Ie)=>{var Ce=_x(),Le=ye(Ce),st=I(Le);{let Se=o(()=>e(F)?.id??null),Ae=o(()=>e(F)?.icon??null);G$(st,{agentId:"blank",variant:"emphasized",get specialist(){return e(Se)},get icon(){return e(Ae)}})}w(Le);var Xe=m(Le,2),He=I(Xe),Pe=de(He,!0),j=m(He,2),ae=de(j,!0);w(Xe);var qe=m(Xe,2),G=I(qe);pt(G,{get icon(){return Na},size:10}),w(qe),q(()=>{z(Pe,e(Q)),z(ae,e(ge))}),p(U,Ce)},$$slots:{default:!0}}))}},content:Y=>{var J=wx(),we=I(J),Ne=I(we),U=de(Ne,!0),Ie=m(Ne,2),Ce=de(Ie,!0);w(we);var Le=m(we,2),st=I(Le);{let Pe=o(()=>e(F)?.id??null);D_(st,{get specialists(){return e(oe)},get value(){return e(Pe)},onchange:j=>{_(P,!1),b()?.(j)}})}w(Le);var Xe=m(Le,2),He=I(Xe);Rt(He,()=>Or,(Pe,j)=>{j(Pe,{class:"flex h-auto w-full cursor-pointer items-center gap-3 whitespace-normal rounded-md px-3 py-2 text-left text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onSelect:()=>{_(P,!1),D()},children:(ae,qe)=>{var G=bx(),Se=ye(G),Ae=I(Se);pt(Ae,{get icon(){return m$},size:12}),w(Se);var je=m(Se,2),Be=de(je,!0);q(We=>z(Be,We),[()=>g.chat_regularAgentWelcome_createSpecialist_label()]),p(ae,G)},$$slots:{default:!0}})}),w(Xe),w(J),q((Pe,j)=>{z(U,Pe),z(Ce,j)},[()=>g.workspace_createAgentSection_specialists_label(),()=>g.workspace_createAgentSection_specialists_description()]),p(Y,J)},$$slots:{trigger:!0,content:!0}}),w(C),p(N,C)};B(be,N=>{b()&&N(ne)})}var te=m(be,2);{var ze=N=>{var C=Bt(),re=ye(C);{let Te=o(()=>g.chat_specialistSelector_prompt_label());Rt(re,()=>J$,(L,Y)=>{Y(L,{class:"mb-3",role:"region",get"aria-label"(){return e(Te)},children:(J,we)=>{var Ne=Sx(),U=ye(Ne);Rt(U,()=>Jf,(Ce,Le)=>{Le(Ce,{children:(st,Xe)=>{var He=Bt(),Pe=ye(He);Rt(Pe,()=>Yf,(j,ae)=>{ae(j,{class:"type-caption font-medium",children:(qe,G)=>{In();var Se=_n();q(Ae=>z(Se,Ae),[()=>g.chat_specialistSelector_prompt_label()]),p(qe,Se)},$$slots:{default:!0}})}),p(st,He)},$$slots:{default:!0}})});var Ie=m(U,2);Rt(Ie,()=>Q$,(Ce,Le)=>{Le(Ce,{children:(st,Xe)=>{var He=Ix(),Pe=ye(He),j=de(Pe,!0),ae=m(Pe,2);xt(ae,{type:"button",variant:"link",get"aria-expanded"(){return e(T)},onclick:()=>_(T,!e(T)),class:"text-xs text-muted-foreground hover:text-foreground transition-colors mt-2 cursor-pointer",children:(qe,G)=>{In();var Se=_n();q(Ae=>z(Se,Ae),[()=>e(T)?g.chat_regularAgentWelcome_showLess_label():g.chat_regularAgentWelcome_showMore_label()]),p(qe,Se)},$$slots:{default:!0}}),q(()=>{ke(Pe,1,`text-sm text-subtle leading-relaxed whitespace-pre-wrap break-words ${e(T)?"":"line-clamp-6"}`),z(j,e(Re))}),p(st,He)},$$slots:{default:!0}})}),p(J,Ne)},$$slots:{default:!0}})})}p(N,C)},se=N=>{var C=$x(),re=de(C,!0);q(()=>z(re,e(Re))),p(N,C)};B(te,N=>{e(F)?N(ze):N(se,-1)})}var he=m(te,2);{var Me=N=>{xt(N,{variant:"ghost-light",size:"sm",onclick:()=>D(e(F).id),class:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer pl-1.5 mr-auto",children:(C,re)=>{var Te=kx(),L=ye(Te);pt(L,{get icon(){return h$},size:12,class:"opacity-60"});var Y=m(L,2),J=de(Y,!0);q(we=>z(J,we),[()=>g.chat_regularAgentWelcome_customize_label()]),p(C,Te)},$$slots:{default:!0}})};B(he,N=>{e(F)&&N(Me)})}w(ue),p(n,ue);var Ee=fn(ve);return u(),Ee}var Cx=E('<a class="cursor-pointer underline underline-offset-2 hover:opacity-80" data-suggested-prompt-link=""> </a>'),Px=E('<kbd data-suggested-prompt-hint=""> </kbd>'),Rx=E('<span class="type-caption"> </span>'),Tx=E('<div role="presentation" data-typography-role="body" data-suggested-prompt-row=""><span data-suggested-prompt-icon=""><!></span> <span class="min-w-0 flex-1 text-pretty" data-suggested-prompt-label=""><span role="button" tabindex="0" class="focus-visible:outline-none" data-suggested-prompt-text=""> </span><!></span> <!> <!></div>'),Ax=E('<div class="flex flex-col" data-testid="suggested-prompts-surface"><!></div>');function Kd(n,r){if(new.target)return dn({component:Kd,...n});pn(r,!0);let a=Z(r,"prompts",7),i=Z(r,"onSelect",7),c=Z(r,"onEdit",7),l=Z(r,"compact",7,!1),f=Z(r,"showShortcutHints",7,!1),u=Z(r,"reserveShortcutHintSpace",7,!1),b=Z(r,"workspaceId",7);const R=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")?"⌃":"Alt+",y=GS.replace("text-ui","type-caption");function M(k){i()(k)}function x(k,Q){k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),M(Q))}function F(k,Q){k.preventDefault(),k.stopPropagation(),Pd(Q,{workspaceId:b(),event:k})}function D(k,Q){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),k.stopPropagation(),Pd(Q,{workspaceId:b(),event:k}))}function T(k){return k<3}var H={get prompts(){return a()},set prompts(k){a(k),ee()},get onSelect(){return i()},set onSelect(k){i(k),ee()},get onEdit(){return c()},set onEdit(k){c(k),ee()},get compact(){return l()},set compact(k=!1){l(k),ee()},get showShortcutHints(){return f()},set showShortcutHints(k=!1){f(k),ee()},get reserveShortcutHintSpace(){return u()},set reserveShortcutHintSpace(k=!1){u(k),ee()},get workspaceId(){return b()},set workspaceId(k){b(k),ee()},$set:un,$on:(k,Q)=>gn(r,k,Q)},V=Bt(),oe=ye(V);{var P=k=>{var Q=Ax(),ge=I(Q);{const Re=(ue,be)=>{let ne=()=>(be?.()).item,te=()=>(be?.()).index;const ze=o(()=>Bw(ne())),se=o(()=>e(ze)[0]?.type==="text"?e(ze)[0].content:"");var he=Tx(),Me=I(he),Ee=I(Me);pt(Ee,{get icon(){return Ef},size:16,get class(){return lr}}),w(Me);var N=m(Me,2),C=I(N),re=de(C,!0),Te=m(C);Hn(Te,17,()=>e(ze).slice(e(se)?1:0),H_,(U,Ie)=>{var Ce=Bt(),Le=ye(Ce);{var st=He=>{const Pe=o(()=>Nw(e(Ie).url));var j=Cx(),ae=de(j,!0);q(()=>{Ue(j,"href",e(Pe)),Ue(j,"title",e(Pe)),z(ae,e(Ie).label)}),ps("click",j,qe=>F(qe,e(Pe))),ps("keydown",j,qe=>D(qe,e(Pe))),p(He,j)},Xe=He=>{var Pe=_n();q(()=>z(Pe,e(Ie).content)),p(He,Pe)};B(Le,He=>{e(Ie).type==="link"?He(st):He(Xe,-1)})}p(U,Ce)}),w(N);var L=m(N,2);{var Y=U=>{var Ie=Px();let Ce;var Le=de(Ie);q(()=>{Ce=ke(Ie,1,`${y??""} mt-px inline-flex h-5 items-center self-start border-0 bg-transparent p-0 font-sans font-normal text-muted-foreground! opacity-100`,null,Ce,{invisible:!f()}),Ue(Ie,"aria-hidden",f()?void 0:"true"),Ue(Ie,"data-hint-visible",f()),z(Le,`${R}${te()+1}`)}),p(U,Ie)},J=o(()=>T(te())&&(f()||u()));B(L,U=>{e(J)&&U(Y)})}var we=m(L,2);{var Ne=U=>{v$(U,{side:"top",delayDuration:300,trigger:Le=>{{let st=o(()=>g.chat_suggestedPrompts_editInInput_ariaLabel());xt(Le,{type:"button",variant:"ghost-light",size:"icon-xs",iconOnly:!0,class:"absolute right-0.5 top-[calc(var(--operational-leading-half-slot-size)+var(--space-1)*0.5+1px)] shrink-0 -translate-y-1/2 rounded opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",onclick:Xe=>{Xe.stopPropagation(),c()(ne())},get"aria-label"(){return e(st)},children:(Xe,He)=>{pt(Xe,{get icon(){return _$},size:"xs"})},$$slots:{default:!0}})}},content:Le=>{var st=Rx(),Xe=de(st,!0);q(He=>z(Xe,He),[()=>g.chat_suggestedPrompts_edit_tooltip()]),p(Le,st)},$$slots:{trigger:!0,content:!0}})};B(we,U=>{c()&&U(Ne)})}w(he),q(U=>{ke(he,1,`${Af} ${VS} group relative flex cursor-pointer items-center gap-[var(--operational-leading-gap)] rounded-sm border border-transparent bg-transparent px-1.5 py-0.5 text-left opacity-100 pr-9 transition-colors hover:text-foreground has-[[data-suggested-prompt-text]:focus-visible]:outline-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-offset-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-ring`),ke(Me,1,`${Fl??""} mt-px self-start`),Ue(C,"aria-label",U),z(re,e(se))},[()=>Dw(ne())]),ps("click",C,U=>{U.stopPropagation(),M(ne())}),ps("keydown",C,U=>x(U,ne())),p(ue,he)};let ve=o(()=>l()?"[&>div>div:last-child]:gap-0":"[&>div>div:last-child]:gap-0.5");u$(ge,{get items(){return a()},virtualize:!1,onActivate:M,get class(){return`overflow-visible! [&>div>div:last-child]:flex [&>div>div:last-child]:flex-col ${e(ve)??""}`},"data-testid":"suggested-prompts-list",get"data-compact"(){return l()},row:Re,$$slots:{row:!0}})}w(Q),Dt(1,Q,()=>ma,()=>({tier:"fast",y:0,scale:1})),Dt(2,Q,()=>Zs,()=>({tier:"fast"})),p(k,Q)};B(oe,k=>{a().length>0&&k(P)})}return p(n,V),fn(H)}Od(["click","keydown"]);var Mx=E('<section class="pb-6 pt-6"><p class="type-body mb-5 max-w-[36rem] px-1.5 text-pretty text-muted-foreground"> </p> <!></section>');function rv(n,r){if(new.target)return dn({component:rv,...n});pn(r,!0);let a=Z(r,"onSelect",7),i=Z(r,"compact",7,!1);const c=o(()=>[{label:g.chat_chiefEmptyState_assignedPrs_label(),prompt:g.chat_chiefEmptyState_assignedPrs_prompt()},{label:g.chat_chiefEmptyState_staleWorkspaces_label(),prompt:g.chat_chiefEmptyState_staleWorkspaces_prompt()},{label:g.chat_chiefEmptyState_agentPerformance_label(),prompt:g.chat_chiefEmptyState_agentPerformance_prompt()},{label:g.chat_chiefEmptyState_morningBrief_label(),prompt:g.chat_chiefEmptyState_morningBrief_prompt()},{label:g.chat_chiefEmptyState_randomTheme_label(),prompt:g.chat_chiefEmptyState_randomTheme_prompt()}]),l=o(()=>e(c).map(M=>M.label));function f(M){const x=e(c).find(F=>F.label===M);x&&a()(x.prompt)}var u={get onSelect(){return a()},set onSelect(M){a(M),ee()},get compact(){return i()},set compact(M=!1){i(M),ee()},$set:un,$on:(M,x)=>gn(r,M,x)},b=Mx(),v=I(b),R=de(v,!0),y=m(v,2);return Kd(y,{get prompts(){return e(l)},onSelect:f,get compact(){return i()}}),w(b),q(M=>z(R,M),[()=>g.chat_chiefEmptyState_intro_label()]),p(n,b),fn(u)}const Qd=2e3,Ex=4e3,qx=Ex-Qd-2;function Lx(n,r=Qd){const a=[];let i=0;for(let c=n.length-1;c>=0&&i<r;c-=1){const l=n[c];if(l.role!=="user"&&l.role!=="assistant")continue;const f=(l.contentBlocks??[]).filter(b=>b.type==="text").map(b=>b.text||b.content||"").join(""),u=(l.role==="assistant"?N_(f).cleanedContent:f).trim();u&&(a.unshift({role:l.role,text:u}),i+=u.length)}return a}function Hx(n,r){const a=n.map(l=>`${l.role==="user"?"User":"Assistant"}: ${l.text}`).join(`
1
+ var M_=Object.defineProperty;var Ag=n=>{throw TypeError(n)};var E_=(n,r,a)=>r in n?M_(n,r,{enumerable:!0,configurable:!0,writable:!0,value:a}):n[r]=a;var Qs=(n,r,a)=>E_(n,typeof r!="symbol"?r+"":r,a),q_=(n,r,a)=>r.has(n)||Ag("Cannot "+a);var Co=(n,r,a)=>(q_(n,r,"read from private field"),a?a.call(n):r.get(n)),Mg=(n,r,a)=>r.has(n)?Ag("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(n):r.set(n,a);import{t as dn,bo as Z,bw as un,bp as nf,b as gn,bm as g,bq as Dr,bs as fe,br as Ei}from"./DxxarOOi.js";import{bs as pn,a5 as I,bf as fs,bA as w,W as p,bn as fn,aA as ee,aB as E,ca as le,a7 as Bt,ay as ye,aD as e,cd as Nn,c9 as o,bS as m,bl as de,be as In,b_ as q,bO as z,c5 as ct,bH as _,bV as _e,bj as Es,bk as to,b$ as _n,ai as Od,aj as ps,bo as Wl,br as Rr,c0 as Lt,cb as nd,aw as _i,a as L_}from"./3SdAC2_C.js";import{i as B}from"./DzAQQ1i-.js";import{k as ki}from"./ByAetY4P.js";import{g as Hn,i as H_,I as Mo,p as Eo,e as To}from"./BUT4El0L.js";import{n as Dt,l as ma,c as Zs,j as Eg,k as Ho,h as O_}from"./DSjVYlVX.js";import{b as rf,e as Fd,f as ke,s as Ue,c as Ut,g as gs}from"./Ch-D6DCZ.js";import{b as F_}from"./goTpbPhD.js";import{b as hr}from"./Dn334wJv.js";import{m as D_,U as N_,Z as B_,X as W_,Y as U_,I as qg,o as z_,l as j_,a2 as V_,x as Lg,$ as G_,a0 as Hg,r as K_,s as Q_}from"./BFSIy5Dg.js";import{Jq as O,fo as J_,eW as Y_,f3 as X_,eX as Z_,f1 as eb,f0 as tb,eZ as nb,e$ as rb,eY as ab,rs as sb,c6 as ob,i as Si,I$ as ib,D8 as af,Dd as lb,Df as Og,Dc as cb,De as db,vB as ub,vD as gb,Cl as sf,cp as pb,cn as fb,Bu as vb,bE as hb,A0 as mb,Ca as rd,uZ as _b,cq as Fg,dB as bb,dC as wb,Ck as yb,el as Ib,CE as Sb,CD as $b,CI as kb,CH as xb,cQ as Cb,cT as Pb,nA as Rb,er as Tb,wO as Ab,CJ as Mb,wQ as Eb,CK as qb,cU as Lb,cV as Hb,nI as Ob,Ad as Fb,Dp as Db,wj as Nb,wk as Bb,yY as Wb,z0 as ad,wf as Ub,wg as zb,rQ as jb,rd as Vb,rb as Gb,f_ as Kb,HK as Qb,Le as Jb,GI as Yb,gn as Xb,p0 as Zb,Je as ew,oh as tw,z$ as nw,ft as Dg,r0 as Ng,fm as rw,fl as aw,tz as sw,g3 as Bg,rc as ow,fe as iw,C5 as lw,m as cw,nJ as dw,zE as uw,yW as gw,Ev as pw,Ek as Wg,xe as fw,xf as Ug,uY as zg,p1 as vw,DB as hw,gj as mw,g1 as _w,eU as bw,cM as ww,A3 as yw,Lj as Iw,Cq as Sw,LB as $w,x$ as kw,ga as xw,fd as Cw,cL as Pw,cI as Rw,cH as Tw,vp as Aw,xl as Mw,xj as Ew,cF as qw,cE as Lw,z2 as Hw,yZ as Ow,xk as Fw}from"./Zs30783q.js";import{a as Dd}from"./CC7to1B5.js";import{aM as Dw,aL as Nw,bg as Bw,a7 as Ww,aD as Uw,aO as zw,M as of,a0 as lf,b8 as jw,b2 as Vw,as as jg,P as _l,b0 as Vg,a$ as Gg,a_ as Kg}from"./D8-vtN74.js";import{k as cf,F as Gw,G as df,ao as Kw,aX as Tl,a5 as uf,Q as Qw,aQ as sd,al as Jw,aD as Yw,B as Xw,y as gf,r as Zw,z as ey,u as ty,aV as ny,aB as pf,aA as ff,aC as ry,aG as od,aN as Qg,aM as bl,aO as Jg,P as Yg,d as ay,e as sy,as as oy,V as Xg,az as iy,c as ly,l as cy,aP as Zg,ak as dy,ar as ep,a as uy,av as gy,a9 as tp,ay as py,aR as np,aU as rp,m as ap,aa as fy,R as vy,at as sp,ah as hy,O as my,an as _y,h as by,p as wy,ax as op,a4 as yy,f as Iy,i as Sy,a2 as $y,a8 as ky}from"./DDt9eLZK.js";import{d as xy,l as Cy,x as Py,v as Ry,k as Ty,Z as ip,a5 as Ay,D as My,c as Ey}from"./BXwdEeCG.js";import{g as Ci}from"./DypB-Dwi.js";import{dT as Hl,cR as vf,O as hf,W as qy,bs as Ly,aE as mf,dE as _f,aT as Ao,e4 as Hy,dt as bf,av as Nd,dS as Bd,aM as wf,cM as Oy,V as ha,a3 as Ys,B as Fy,a7 as Dy,a4 as Ny,M as By,a6 as Wy,ar as Uy,aF as yf,aN as Al,r as zy,n as $d,H as jy,dV as Vy,aP as Gy,aJ as Ky,c6 as Qy,aV as Jy,bJ as Yy,bH as Xy,bI as Zy,c5 as eI,c4 as tI,cK as nI,cJ as rI,aR as aI,b9 as sI,bb as oI,be as iI,ba as lI,bj as cI,bd as dI,bc as uI,bf as gI,bg as pI,bi as fI,bh as vI,aw as hI,ax as mI,cg as _I,ch as bI,ds as wI,dr as yI,a_ as II,G as SI,b2 as $I,cc as kI,C as lp,cZ as xI,b8 as ds,bY as CI,X as PI,E as RI,ad as TI,t as AI,cT as MI,d0 as cp,Q as dp,dq as EI,cN as id}from"./BfdTnj-p.js";import{u as If,a as wl,ag as qI,x as LI,ad as Sf,af as HI,ac as $f,a4 as OI,F as up,D as FI,e as DI,n as NI,s as BI,m as WI,Y as UI,k as zI}from"./DhTidcoi.js";import{a4 as jI,b5 as VI,cM as GI,a_ as KI,b4 as QI,c2 as JI,c9 as YI,w as XI,x as ZI,cd as eS}from"./D5wSh12h.js";import{n as tS,P as kf,F as nS,ai as rS,r as aS,ac as sS}from"./50l-lj9m.js";import{I as oS,s as iS,H as gp}from"./Bqd7fdCF.js";import{e as lS}from"./CL3a4Hm1.js";import{e as cS,f as dS}from"./BMT3BZWc.js";import{s as uS,o as Xs,b as gS,g as Ol,d as pS,l as bi}from"./CIyUrgF0.js";import{a4 as fS,a6 as vS,D as hS,M as mS,ab as pp,W as _S,i as bS,r as ir,v as Pi,u as Xr,p as $i,x as mr,S as Wd,m as Ul,s as qo,y as Ri,o as no,n as ro,t as fp,a9 as ao,w as so,a8 as Ud,q as _a,z as Lo,I as kd,Z as vp,g as wS,F as yS,U as xf,H as Cf,a7 as Pf,a5 as Ml,N as IS,E as Rf,R as SS,A as $S,b as kS,aa as xS,ac as yl,e as ld,l as CS,C as PS,f as Js,j as hp,G as us,Q as RS,d as cd,c as TS,a as mp,h as AS,K as MS,X as _p,a3 as dd,a0 as bp,$ as ES,a2 as wp,_ as yp,T as qS,B as LS,k as HS,a1 as OS,J as FS,P as DS,O as NS,V as BS}from"./7N4d1SHx.js";import{m as WS}from"./Dms_DO28.js";import{g as Tf}from"./CmHh0Wvy.js";import{b as US}from"./DhNEeuS_.js";import{g as zS}from"./C33vrAzQ.js";import{a as jS}from"./yglMjm12.js";import{q as Af,d as lr,r as VS,e as Fl,j as GS,g as xd,i as KS,f as Cd,c as QS,A as JS,O as Ip,k as YS}from"./KLcMYBf-.js";import{P as XS}from"./DgboVgd_.js";import{e as ZS}from"./BkB7PRB0.js";import{b as e$,a as t$,g as n$,c as r$,i as a$}from"./wWw37-Ke.js";import{R as s$,g as o$,W as Il,c as i$}from"./JJ3RCq0j.js";import"./Cncxuk-H.js";import"./euI_ACTK.js";import{s as Ti}from"./C600Ggsz.js";import{F as l$,h as c$}from"./BfQPFCP7.js";import"./DBI9dTMM.js";import{C as d$,e as Or,L as u$,l as zl,d as jl,K as Vl,h as zd,M as Gl,S as Da}from"./CvP7-iXZ.js";import{D as g$}from"./6svm3ALY.js";import{f as Sp}from"./5rvkVpHO.js";import"./DU3vNstz.js";import{i as Mf}from"./BjLb7AHW.js";import{h as $p,i as kp,g as xp,P as Cp,C as p$,m as El,R as f$}from"./DkkzFfYK.js";import{f as xt,ae as v$}from"./D5eCb9SA.js";import{F as pt,bs as h$,cd as m$,aw as Na,a2 as Ef,c9 as _$,bf as b$,be as w$,bg as y$,aO as Pp,aj as ud,aB as gd,bB as qf,d3 as Dl,cF as I$,aM as Rp,cb as Tp,cK as Nl,bu as S$,aS as $$,d0 as k$,a8 as Lf,ac as x$,ag as C$,cr as P$,ba as R$,aC as Hf,cT as Ap,cz as T$,ax as A$,cD as M$,c3 as E$}from"./B5yEHkSy.js";import{c as Of}from"./ChTqQfQN.js";import"./BWsFbeUj.js";import{c as Rt}from"./CruJ4jyB.js";import{a5 as Ff,bg as q$,ar as L$,k as H$,Y as O$,W as F$,a2 as D$,Z as N$,bw as B$,V as W$,a1 as U$,ah as z$}from"./DvyPNixU.js";import{d as Bl,f as j$,e as V$}from"./C0urABBN.js";import{A as G$}from"./BcubO1aW.js";import{D as K$}from"./_NdZi_dM.js";import"./BrfF5NLx.js";import{a as Q$,C as J$}from"./CPthbtAR.js";import"./B55Lo0FS.js";import{C as Y$}from"./Dep4c5m-.js";import{h as Pd,r as X$,a as Z$}from"./I0qWsqIQ.js";import{s as ek}from"./HjJJbdN8.js";import{I as tk,a as nk}from"./VlOW_lom.js";import{L as rk}from"./BtLlD_LO.js";import{g as ak,f as sk,b as ok}from"./BmO6NekI.js";import{s as Ai,g as Kn,i as ik,j as lk,e as Mp,r as Ep,f as ck,d as dk,a as pd,h as uk}from"./CyyQuDJ2.js";import{i as qp,a as gk}from"./Bu13V5mO.js";import{seekConversationToMessage as Lp}from"./K-0xnE6j.js";import{l as Yt,o as fd,h as jd,n as Rd,q as pk}from"./BqJSWZOr.js";import{o as fk}from"./BE6Jwt_-.js";import{A as Df}from"./BgsG3ZiB.js";import{b as Nf}from"./BMfEzUyf.js";import{g as vk,e as Bf,v as hk,f as mk,N as _k,M as bk,K as wk,k as Wf,l as yk,H as Uf,s as zf}from"./Cij6f88k.js";import{selectCurrentWorkspaceTabId as vd}from"./D1E_1zhz.js";import{o as Ik}from"./CkF26rCa.js";import{d as Sk}from"./B0Z-1lwJ.js";import{P as $k}from"./D5XjMLtX.js";import{g as kk}from"./CNsG6rqe.js";import{H as jf,M as xk,y as Ck,g as Pk,i as Rk,u as Tk,e as Vf,c as Gf,d as Ak}from"./C7PhRIIZ.js";import{c as Mk,h as Vd,f as Kf,M as Ek}from"./Hxdz4eYy.js";import{t as qk}from"./DAsc1V4f.js";import{s as Lk}from"./BsieX9dN.js";import{i as Qf}from"./BOABr5iA.js";import{d as Hk,i as Ok,r as Fk}from"./CkbzWFJM.js";import{g as Dk}from"./CddxYcvS.js";var Nk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Bk=E("<div><!></div>");function Jf(n,r){if(new.target)return dn({component:Jf,...n});pn(r,!0);let a=Z(r,"ref",15,null),i=Z(r,"class",7),c=Z(r,"children",7),l=nf(r,Nk);var f={get ref(){return a()},set ref(v=null){a(v),ee()},get class(){return i()},set class(v){i(v),ee()},get children(){return c()},set children(v){c(v),ee()},$set:un,$on:(v,R)=>gn(r,v,R)},u=Bk();rf(u,v=>({"data-slot":"card-header",class:v,...l}),[()=>Fd("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-x-4 gap-y-1.5 pt-4 pb-2 has-data-[slot=card-action]:grid-cols-[minmax(0,1fr)_auto]",Y$,i())]);var b=I(u);return Ti(b,()=>c()??fs),w(u),hr(u,v=>a(v),()=>a()),p(n,u),fn(f)}var Wk=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),Uk=E("<div><!></div>");function Yf(n,r){if(new.target)return dn({component:Yf,...n});pn(r,!0);let a=Z(r,"ref",15,null),i=Z(r,"class",7),c=Z(r,"children",7),l=nf(r,Wk);var f={get ref(){return a()},set ref(v=null){a(v),ee()},get class(){return i()},set class(v){i(v),ee()},get children(){return c()},set children(v){c(v),ee()},$set:un,$on:(v,R)=>gn(r,v,R)},u=Uk();rf(u,v=>({"data-slot":"card-title",class:v,...l}),[()=>Fd("type-title min-w-0 break-words font-semibold leading-tight text-foreground",i())]);var b=I(u);return Ti(b,()=>c()??fs),w(u),hr(u,v=>a(v),()=>a()),p(n,u),fn(f)}const Sl=oS.CHAT_MEDIA,hd=uS().min(1).max(512);Xs({workspaceId:hd,agentId:hd,draftId:Ol(),principalId:hd,media:gS(tS).min(1).max(20)}).strict();const zk=Xs({sessionId:Ol()}).strict();zk.extend({control:pS("action",[Xs({action:bi("readiness")}).strict(),Xs({action:bi("export"),request:cS}).strict(),Xs({action:bi("transcribe"),request:dS}).strict(),Xs({action:bi("release"),jobId:Ol()}).strict(),Xs({action:bi("adopt"),jobId:Ol()}).strict()])}).strict();function Gd(n,r,a,i=async(c,l)=>typeof window>"u"||iS(window)!=="electron"?{ok:!1,error:"unavailable"}:lS().invoke(c,l)){let c=null,l=null,f=!1;async function u(){f=!0,a.removeEventListener("abort",b);const x=c;c=null,x&&await i(Sl.CLOSE,{sessionId:x}).catch(()=>{})}const b=()=>{u()};a.addEventListener("abort",b,{once:!0});const v=()=>{if(f||a.aborted||!r())throw new Error("media-send-retired")};async function R(){if(v(),c)return c;if(l)return l;l=(async()=>{const x=await i(Sl.BEGIN,n);if(!x.ok)throw new Error("media-export-unavailable");c=x.value.sessionId;try{return v(),c}catch(F){throw await u(),F}})();try{return await l}finally{l=null}}async function y(x){const F=await R();v();const D=await i(Sl.CONTROL,{sessionId:F,control:x});return v(),D}return{service:{exportMedia:x=>y({action:"export",request:x}),adoptMediaJob:x=>y({action:"adopt",jobId:x}),transcribeMedia:x=>y({action:"transcribe",request:x}),releaseMediaJob:async x=>c?await i(Sl.CONTROL,{sessionId:c,control:{action:"release",jobId:x}}):{ok:!0,value:void 0}},dispose:u,readiness:()=>y({action:"readiness"})}}const md=new Set;async function jk(n){const{drafts:r,signal:a}=n,i=structuredClone(n.capture),c=structuredClone(n.items),l=structuredClone(n.payload),{workspaceId:f,agentId:u}=i,b=Ci(O.state),v=Hl.select(O.state,f),R=vf.select(O.state),y=cf(),M=JSON.stringify([b,f,u]);if(!b||!v||!R||l.wsId!==f||md.has(M))return!1;md.add(M);const x=new AbortController,F=()=>x.abort();a.addEventListener("abort",F,{once:!0});const D=()=>!a.aborted&&!x.signal.aborted&&Ci(O.state)===b&&Hl.select(O.state,f)===v&&uf(y)&&r.isCurrentDraft(i),T=O.getReadableState().subscribe(()=>{D()||x.abort()});let H=null;try{if(!D()||jI(c))return!1;const V=If(i.attachments),oe=kf(nS(f,u),V,c.map(ue=>({contextItemId:ue.id,attachmentId:ue.attachmentId,path:ue.path}))),P=new Set([...oe.images,...oe.clips].map(ue=>ue.contextItemId));if(V.some(([ue])=>!P.has(ue))||oe.images.some(ue=>ue.mediaError)||oe.clips.some(ue=>ue.mediaError)||!rS(l.text,oe))throw new Error("invalid-evidence");if(H=n.warm?.take(i,x.signal)??null,!await r.flushDraft(i)||!D())return!1;const k=await xy.agents.get(u,f);if(!D())return!1;if(!k||k.workspaceId!==f||k.retiredAt||k.pendingDeleteAt||k.status==="deleted")throw new Error("unavailable");const Q=oe.clips.flatMap(ue=>ue.media?[ue.media]:[]);Q.length&&!H&&(H=Gd({workspaceId:f,agentId:u,draftId:crypto.randomUUID(),principalId:R.principal.id,media:Q},D,x.signal));const ge=Gw(c,oe),Re=df(ge),ve=await Kw({workspaceId:f,agentId:u,evidence:oe,clickedItems:c,sendItems:ge,clickedPayload:{...l,contextItems:ge,imageBlocks:Re.imageBlocks,fileBlocks:Re.fileBlocks},binding:y,service:H?.service??null,current:D,onRecord:()=>{}});return!ve||!D()?!1:Tl(O,u,ve)}catch{return D()&&O.dispatch(J_(u,g.dock_conversation_sendFailed_error())),!1}finally{T(),a.removeEventListener("abort",F),await H?.dispose(),md.delete(M)}}const Xf=1e4,Hp={wasBusy:!1,busySince:null,preempted:!1,prediction:null};function Op(n){return fS(n.messageMetadata)}function Vk(n,r){if(n.some(Op)){const a=n[0];return a&&!Op(a)&&Fp(a,r)?[a.id]:[]}return n.filter(a=>Fp(a,r)).map(a=>a.id)}function Gk(n){let r=null;for(const a of n)(a.status==="preparing"||a.status==="sending")&&a.createdAt>(r??-1/0)&&(r=a.createdAt);return r}function Fp(n,r){return!n.requeuedAfterFailure&&vS(n,r)}function Kk(n,r){const{busy:a,queue:i,delivered:c,now:l}=r,f=r.blocked||r.interrupted,u=r.timeoutMs??Xf;let b=n.prediction;if(b){const x=new Set(i.map(H=>H.id)),F=b.ids.filter(H=>x.has(H)&&!c.has(H)),D=l-b.startedAt>=u,T=n.wasBusy&&!a;!F.length||D||f&&!a||T?b=null:F.length!==b.ids.length&&(b={...b,ids:F})}const v=n.wasBusy&&!a,R=n.wasBusy?n.busySince:a?l:null,y=n.wasBusy&&n.preempted||R!==null&&r.directSendAt!==null&&r.directSendAt>R;if(!b&&v&&!f&&!y){const x=Vk(i,l).filter(F=>!c.has(F));x.length&&(b={ids:x,startedAt:l})}const M={wasBusy:a,busySince:a?R:null,preempted:a&&y,prediction:b};return n.wasBusy===M.wasBusy&&n.busySince===M.busySince&&n.preempted===M.preempted&&n.prediction===M.prediction?n:M}class Qk{constructor(){Qs(this,"previousWorkspaceId",null);Qs(this,"_isRebinding",!1);Qs(this,"_generation",0);Qs(this,"_rebindPromise",null);Qs(this,"_rebindResolve",null)}recordMount(r){return this.previousWorkspaceId=r,r}wasWorkspaceChangedDuringMount(r){return this.previousWorkspaceId!==r}shouldRebind(r){return!r||this.previousWorkspaceId===null?!1:r!==this.previousWorkspaceId}recordRebind(r){this.previousWorkspaceId=r}hasWorkspaceChanged(r){return r!==this.previousWorkspaceId}get trackedWorkspaceId(){return this.previousWorkspaceId}get isRebinding(){return this._isRebinding}startRebind(){return this._generation++,this._isRebinding=!0,this._rebindResolve?.(),this._rebindPromise=new Promise(r=>{this._rebindResolve=r}),this._generation}endRebind(r){r!==void 0&&r!==this._generation||(this._isRebinding=!1,this._rebindResolve?.(),this._rebindPromise=null,this._rebindResolve=null)}async waitForRebind(r=5e3){if(!this._isRebinding||!this._rebindPromise)return!1;const a=Date.now()+r;for(;this._isRebinding&&this._rebindPromise;){const i=a-Date.now();if(i<=0)return!1;let c;const l=await Promise.race([this._rebindPromise.then(()=>!1),new Promise(f=>{c=setTimeout(()=>f(!0),i)})]);if(clearTimeout(c),l)return!1}return!0}}function Jk(n,r){return!(n?.tabType!=="agent"||n.agentId!==r.agentId||!r.isActive||n.workspaceId&&n.workspaceId!==r.workspaceId||r.panelId&&(n.source!=="dictation"&&!r.isPanelFocused||n.panelId&&n.panelId!==r.panelId))}function Dp(n){const r=typeof n=="string"?n:n&&typeof n=="object"&&typeof n.script=="string"?n.script:void 0;return r||void 0}var Yk=E('<div role="status" aria-live="polite" data-presence-typing-indicator=""><span class="inline-flex min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center svelte-lm4khl"><!></span> <span class="min-w-0 truncate svelte-lm4khl"> </span> <span class="inline-flex shrink-0 items-center gap-0.5 svelte-lm4khl" aria-hidden="true"><span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.2s"></span> <span class="typing-dot size-1 rounded-full bg-current svelte-lm4khl" style="animation-delay: 0.4s"></span></span></div>');function Zf(n,r){if(new.target)return dn({component:Zf,...n});pn(r,!0);const a=()=>fe(R,"$typing$",i),[i,c]=Dr();let l=Z(r,"workspaceId",7),f=Z(r,"agentId",7),u=Z(r,"class",7,"");const b=Nn(""),v=Nn("");le(()=>{b.set(l())}),le(()=>{v.set(f())});const R=VI(b,v),y=o(()=>ZS(a()));var M={get workspaceId(){return l()},set workspaceId(H){l(H),ee()},get agentId(){return f()},set agentId(H){f(H),ee()},get class(){return u()},set class(H=""){u(H),ee()},$set:un,$on:(H,V)=>gn(r,H,V)},x=Bt(),F=ye(x);{var D=H=>{var V=Yk(),oe=I(V),P=I(oe);XS(P,{get people(){return a()},size:12,decorative:!0}),w(oe);var k=m(oe,2),Q=de(k,!0);In(2),w(V),q(()=>{ke(V,1,`${Af} flex h-4 min-w-0 items-center gap-[var(--operational-leading-gap)] px-[var(--operational-row-inline-padding)] font-family-child font-normal text-muted-foreground text-[11px] leading-4 ${u()??""} /* a11y-ignore: user-requested compact typing status in the composer gap */`,"svelte-lm4khl"),z(Q,e(y))}),p(H,V)};B(F,H=>{e(y)&&H(D)})}p(n,x);var T=fn(M);return c(),T}const Xk=50,Zk=5e3,ex=500,tx=()=>({authority:()=>Ci(O.state),persistSnapshot:Jw,dispatch:n=>O.dispatch(n),ownerView:n=>Yw.withStore(O)(n)});function nx(n){const r=n.store??tx(),a=crypto.randomUUID();let i=_e(!1),c=_e(!1),l=_e(!1),f=null,u=null,b=0,v=!1,R=null,y=null,M=null,x=0,F=null,D=null;const T={};let H,V=_e([]),oe=null,P=0,k="",Q=0,ge="";const Re=()=>{const N=n.workspaceId(),C=n.agentId();if(!N||!C||!(n.active?.()??!0))return null;const re=r.authority?.();if(!re||v)return null;const Te=n.inputValue(),L=ue(),Y=H?.shared,J=Y?.workspaceId===N&&Y.agentId===C?Y.lifetime:null,we=JSON.stringify([re,N,C,x,J,L.map(U=>[U.id,U.attachmentId,U.path])]);we!==ge&&(ge=we,Q+=1);const Ne=JSON.stringify([re,N,C,Te,L,x]);return Ne!==k&&(k=Ne,P+=1),{authority:re,ownerId:a,workspaceId:N,agentId:C,text:Te,attachments:JSON.parse(JSON.stringify(L)),generation:P,attachmentEpoch:Q}};let ve=null;const ue=()=>qI(n.contextItems(),LI(n.contextItems(),e(V))),be=N=>{if(H=N,!N||v)return;const C=N.restore;if(D&&C?.requestId===D.requestId&&C.status!=="pending"){const{apply:L}=D;D=null,_(c,!1),C.status==="restored"&&_(V,C.draft?.attachments??[]),L(C)}const re=N.shared;if(re&&!e(c)&&u===`${re.workspaceId}\0${re.agentId}`){const L=JSON.stringify([re.provenance,re.workspaceId,re.agentId,re.lifetime,re.revision]);if(oe!==L){oe=L;const Y=ve??f,J=Y&&n.inputValue()===Y.text&&JSON.stringify(ue())===Y.attachmentsJson;re.origin===a?ve={text:re.snapshot.text,attachmentsJson:JSON.stringify(re.snapshot.attachments)}:J&&(b+=1,M&&clearTimeout(M),_(V,re.snapshot.attachments),ve=f={text:re.snapshot.text,attachmentsJson:JSON.stringify(e(V))},n.setInputValue(re.snapshot.text),n.setContextItems(wl(e(V))),n.applyEditorContent(re.snapshot.text))}}ct(Re);const Te=[];for(const L of N.saves){if(L.status==="pending")continue;Te.push(L.id);const Y=T[L.id];delete T[L.id],Y?.(L)}Te.length>0&&queueMicrotask(()=>r.dispatch(eb(a,Te)))},ne=(N,C,re)=>{const Te=crypto.randomUUID();D={requestId:Te,apply:re},_(c,!0),r.dispatch(nb(a,Te,N,C))},te=()=>{D&&(D=null,_(c,!1),r.dispatch(ab(a)))},ze=()=>{const N=F;N&&(F=null,r.dispatch(rb(a)),H?.saves.some(C=>C.id===N)||delete T[N])};r.dispatch(Y_(a));const se=r.ownerView(a).subscribe(N=>ct(()=>be(N))),he=()=>{y&&(clearTimeout(y),y=null),_(l,!1)},Me=()=>{F&&(F=null,r.dispatch(tb(a)))};le(()=>{const N=n.active?.()??!0,C=n.workspaceId(),re=n.agentId();if(!N){ct(()=>{b+=1,u=null,te(),R&&clearTimeout(R),R=null,he(),M&&clearTimeout(M),M=null,_(i,!1),Me()});return}if(!C||!re)return;const Te=`${C}\0${re}`;if(u===Te)return;const L=u!==null;u=Te;const Y=++b;ct(()=>{f=null,ve=null,oe=null,_(V,[]),R&&clearTimeout(R),he(),M&&(clearTimeout(M),M=null),L&&(Me(),n.setInputValue(""),n.contextItemsAreScoped||n.setContextItems([]),n.applyEditorContent(""));const J=Qw(C,re);if(J){_(V,J.attachments),_(i,!1);const Ne=n.contextItems().length>0,U=J.text,Ie=JSON.stringify(J.attachments);n.setInputValue(J.text),Ne||n.setContextItems(wl(J.attachments)),n.applyEditorContent(J.text),f={text:J.text,attachmentsJson:Ie},ne(C,re,Ce=>{if(Ce.status!=="restored")return;const Le=Ce.draft;if(v||!(n.active?.()??!0)||u!==Te||b!==Y)return;const st=Le?.text??"",Xe=Le?.attachments??[],He=JSON.stringify(Xe);sd(C,re,{text:st,attachments:Xe});const Pe=n.inputValue()===U&&JSON.stringify(ue())===Ie;Ne||!Pe||(st!==U&&(n.setInputValue(st),n.applyEditorContent(st)),He!==Ie&&n.setContextItems(wl(Xe)),f={text:st,attachmentsJson:He})});return}_(i,!0),y=setTimeout(()=>{y=null,(n.active?.()??!0)&&_(l,!0)},ex),R=setTimeout(()=>{(n.active?.()??!0)&&(_(i,!1),he())},Zk);const we=()=>{!(n.active?.()??!0)||u!==Te||b!==Y||(R&&clearTimeout(R),_(i,!1),he())};ne(C,re,Ne=>{if(Ne.status!=="restored"){we();return}const U=Ne.draft;if(v||!(n.active?.()??!0)||u!==Te||b!==Y)return;const Ie=!!n.inputValue();if(!Ie&&U?.attachments?.length&&n.contextItems().length===0&&n.setContextItems(wl(U.attachments)),!Ie&&U?.text&&(n.setInputValue(U.text),M=setTimeout(()=>{(n.active?.()??!0)&&n.inputValue()===U.text&&n.applyEditorContent(U.text)},Xk)),f===null){const Ce=U?.text??"",Le=U?.attachments??[];f={text:Ce,attachmentsJson:JSON.stringify(Le)},sd(C,re,{text:Ce,attachments:Le})}we()})})}),le(()=>{const N=n.active?.()??!0,C=n.workspaceId(),re=n.agentId(),Te=e(i);if(!N){ct(ze);return}if(!C||!re)return;const L=n.inputValue(),Y=ue();if(ct(Re),ct(ze),Te||f===null&&!L&&Y.length===0)return;const J=JSON.stringify(Y);if(f!==null&&f.text===L&&f.attachmentsJson===J)return;JSON.stringify(e(V))!==J&&_(V,Y);const we=`${C}\0${re}`,Ne=x,U=crypto.randomUUID();T[U]=Ie=>{if(n.active?.()??!0){if(Ie.status==="saved"){u===we&&x===Ne&&(f={text:L,attachmentsJson:J});return}n.onSaveError?.(new Error(Ie.error))}},ct(()=>{F=U,r.dispatch(X_(a,U,{authority:r.authority?.()??void 0,workspaceId:C,agentId:re,text:L,attachments:Y,rollback:f?{text:f.text,attachments:JSON.parse(f.attachmentsJson)}:null}))})}),le(()=>()=>{v=!0,R&&clearTimeout(R),y&&clearTimeout(y),M&&clearTimeout(M),Me(),se(),r.dispatch(Z_(a))});const Ee=N=>{const C=Re();return C!==null&&C.authority===N.authority&&C.ownerId===N.ownerId&&C.workspaceId===N.workspaceId&&C.agentId===N.agentId&&C.generation===N.generation&&C.text===N.text&&JSON.stringify(C.attachments)===JSON.stringify(N.attachments)};return{captureDraft:Re,isCurrentDraft:Ee,updateAttachmentScreen(N,C,re){return!Ee(N)||!N.attachments.some(Te=>Te.id===C)?null:(_(V,N.attachments.map(Te=>Te.id===C?{...Te,screen:structuredClone(re)}:Te)),Re())},async flushDraft(N){if(!Ee(N))return!1;if(!r.persistSnapshot)throw new Error("draft-shared-transport-unavailable");return await r.persistSnapshot(a,N.workspaceId,N.agentId,N,N.authority),Ee(N)},get restorePending(){return e(c)},get gateActive(){return e(i)},get gateVisible(){return e(l)},invalidatePendingRestore(){if(b+=1,x+=1,te(),R&&(clearTimeout(R),R=null),M&&(clearTimeout(M),M=null),_(i,!1),he(),ze(),u!==null){const[N,C]=u.split("\0");sd(N,C,{text:"",attachments:[]}),ve=null,_(V,[]),f={text:"",attachmentsJson:"[]"}}}}}function Mi(n){if(!n)return null;const r=kf(JSON.stringify([n.workspaceId,n.agentId]),If(n.attachments),n.attachments.map(a=>({contextItemId:a.id,attachmentId:a.attachmentId,path:a.path})));return{...r,clips:r.clips.filter(a=>{const i=n.attachments.find(c=>c.id===a.contextItemId);return!!a.media&&!a.mediaError&&!!i&&a.path===i.path})}}async function rx(n,r,a){const i=O.state.principal.snapshot,c=()=>Ci(O.state)===n.authority&&a.isCurrentDraft(n);if(!i||!c()||!await a.flushDraft(n)||!c())return{ready:!1};const l=new AbortController,f=Gd({workspaceId:n.workspaceId,agentId:n.agentId,principalId:i.principal.id,draftId:crypto.randomUUID(),media:[r]},c,l.signal);try{const u=await f.readiness();return!c()||!u.ok?{ready:!1}:u.value.find(b=>b.sourceId===r.source.id)??{ready:!1}}finally{await f.dispose()}}function Np(n){let r=_e(null),a=_e(!1),i=_e(!1),c=null,l=!0,f=0,u=null;Es(()=>{l=!1,f++}),le(()=>{const y=n.capture();e(r)&&(!y||y.authority!==e(r).capture.authority||y.ownerId!==e(r).capture.ownerId||y.workspaceId!==e(r).capture.workspaceId||y.agentId!==e(r).capture.agentId||y.attachmentEpoch!==e(r).capture.attachmentEpoch)&&_(r,null)});async function b(y){if(n.disabled()||e(a))return;const M=n.drafts.captureDraft(),x=Mi(M),F=x?.clips.find(V=>V.contextItemId===y);if(!M||!F?.media||!x)return;const D=Xw({workspaceId:M.workspaceId,agentId:M.agentId,clip:F,evidence:x,marks:x.marks}),T=gf(M.workspaceId,F.path);if(!D||!T)return;const H=++f;c=document.activeElement instanceof HTMLElement?document.activeElement:null,_(a,!0),_(i,!1);try{if(await n.beforeOpen?.(),!l||f!==H||!n.drafts.isCurrentDraft(M))return;const V=await(n.prepareOutput??rx)(M,F.media,n.drafts);if(!l||f!==H||!n.drafts.isCurrentDraft(M))return;const{attachmentPath:oe,...P}=D;_(r,{capture:M,contextItemId:y,snapshot:{...P,openId:crypto.randomUUID(),mediaUrl:T,output:V,deleteReady:!0}})}catch{l&&f===H&&_(i,!0)}finally{l&&f===H&&_(a,!1)}}async function v(y){const M=crypto.randomUUID(),x=e(r),F=n.drafts.captureDraft();if(!x||!F||F.authority!==x.capture.authority||F.ownerId!==x.capture.ownerId||F.workspaceId!==x.capture.workspaceId||F.agentId!==x.capture.agentId||F.attachmentEpoch!==x.capture.attachmentEpoch)return{requestId:M,result:"stale-source"};const D=Mi(F),T=D?.clips.find(Q=>Q.contextItemId===x.contextItemId);if(!D||!T?.media)return{requestId:M,result:"stale-source"};const V=u?.openId===x.snapshot.openId&&u.inputRevision===y.revision&&JSON.stringify(u.media)===JSON.stringify(T.media)?{...y,revision:T.media.saved?.revision??0}:y,oe=aS(T.media,{openId:x.snapshot.openId,...x.snapshot.output?.version===2?{outputVersion:2}:{},pair:{workspaceId:F.workspaceId,agentId:F.agentId},sourceId:y.sourceId,sourceRevision:y.sourceRevision,expectedEditRevision:V.revision,edit:V});if(oe.status!=="saved")return{requestId:M,result:oe.status==="invalid-edit"?"failed":oe.status};const P=sS({...D,clips:D.clips.map(Q=>Q.id===T.id?{...Q,media:oe.media}:Q)})[x.contextItemId],k=n.drafts.updateAttachmentScreen(F,x.contextItemId,P);if(!k)return{requestId:M,result:"stale-source"};u={openId:x.snapshot.openId,media:oe.media,inputRevision:y.revision};try{if(!n.drafts.isCurrentDraft(k))return{requestId:M,result:"stale-source"};await n.drafts.flushDraft(k);const Q=n.drafts.captureDraft();return!l||e(r)?.snapshot.openId!==x.snapshot.openId||!Q||Q.attachmentEpoch!==x.capture.attachmentEpoch||Q.authority!==k.authority||Q.ownerId!==k.ownerId||Q.workspaceId!==k.workspaceId||Q.agentId!==k.agentId||JSON.stringify(Q.attachments.find(ge=>ge.id===x.contextItemId)?.screen)!==JSON.stringify(P)?{requestId:M,result:"stale-source"}:(u=null,{requestId:M,result:"saved",saved:oe.media.saved??void 0})}catch{return{requestId:M,result:"failed"}}}function R(y){return n.disabled()||!n.onRemove(y)?!1:(e(r)?.contextItemId===y&&_(r,null),!0)}return{get session(){return e(r)},get opening(){return e(a)},get problem(){return e(i)},open:b,save:v,remove:R,close(){_(r,null)},restoreFocus(){c?.isConnected&&c.focus()}}}var ax=E('<p role="alert"> </p>'),sx=E('<div class="recording-editor-surface svelte-cdb16"><!></div>'),ox=E("<!> <!> <!>",1);function ev(n,r){if(new.target)return dn({component:ev,...n});pn(r,!0);let a=Z(r,"capture",7),i=Z(r,"drafts",7),c=Z(r,"disabled",7,!1),l=Z(r,"onRemove",7),f=Z(r,"controllerFactory",7,Np),u=Z(r,"beforeOpen",7),b=Z(r,"onReviewChange",7);const v=ct(()=>f()({drafts:i(),capture:()=>a(),disabled:()=>c(),onRemove:P=>l()(P),beforeOpen:()=>u()?.()??Promise.resolve()}));le(()=>{const P=v.opening,k=v.session;ct(()=>b()?.(P,k?.snapshot.output?.ready?{openId:k.snapshot.openId,capture:k.capture}:null))});const R=o(Zw),y=o(()=>Mi(a())),M=o(()=>e(y)?.clips.map(P=>({id:P.contextItemId,kind:"clip",owner:"evidence",duration:Sp(P.durationMs),recording:!1,url:a()?gf(a().workspaceId,P.path):void 0,...P.media?.saved?{summary:ey(P.media.saved)}:{}}))??[]);let x=_e(null);var F={get capture(){return a()},set capture(P){a(P),ee()},get drafts(){return i()},set drafts(P){i(P),ee()},get disabled(){return c()},set disabled(P=!1){c(P),ee()},get onRemove(){return l()},set onRemove(P){l(P),ee()},get controllerFactory(){return f()},set controllerFactory(P=Np){f(P),ee()},get beforeOpen(){return u()},set beforeOpen(P){u(P),ee()},get onReviewChange(){return b()},set onReviewChange(P){b(P),ee()},$set:un,$on:(P,k)=>gn(r,P,k)},D=ox(),T=ye(D);{let P=o(()=>c()||v.opening);hS(T,{get items(){return e(M)},get labels(){return e(R)},get disabled(){return e(P)},onEdit:k=>void v.open(k),onMarkUp:k=>void v.open(k),get onRemove(){return v.remove}})}var H=m(T,2);{var V=P=>{var k=ax(),Q=de(k,!0);q(ge=>z(Q,ge),[()=>g.dock_captureEditor_saveFailed_label()]),p(P,k)};B(H,P=>{v.problem&&P(V)})}var oe=m(H,2);{let P=o(()=>!!v.session),k=o(()=>g.dock_captureEditor_recording_title({duration:v.session?Sp(v.session.snapshot.durationMs??0):""}));d$(oe,{get open(){return e(P)},size:"editor",showCloseButton:!1,get title(){return e(k)},escapeKeydownBehavior:"ignore",dismissOnInteractOutside:!1,onClose:()=>v.close(),onCloseAutoFocus:Q=>{Q.preventDefault(),v.restoreFocus()},get contentRef(){return e(x)},set contentRef(Q){_(x,Q,!0)},children:(Q,ge)=>{var Re=Bt(),ve=ye(Re);{var ue=be=>{var ne=Bt(),te=ye(ne);ki(te,()=>v.session.snapshot.openId,ze=>{var se=sx(),he=I(se);g$(he,{get snapshot(){return v.session.snapshot},get shortcutDialog(){return e(x)},onClose:()=>v.close(),get onSave(){return v.save},onDelete:async()=>!!v.session&&v.remove(v.session.contextItemId)}),w(se),p(ze,se)}),p(be,ne)};B(ve,be=>{v.session&&be(ue)})}p(Q,Re)},$$slots:{default:!0}})}return p(n,D),fn(F)}const $l=n=>JSON.stringify([n.authority,n.ownerId,n.workspaceId,n.agentId,n.attachmentEpoch,n.attachments]);function ix(n){let r=_e(!1),a=_e(!1),i=_e(null),c=!1,l=0,f=null,u=null;async function b(y){y.abort.abort(),y.slot?.cancel(),await y.native?.dispose()}async function v(){l++;const y=u;u=null,y&&await b(y)}to(()=>{const y=()=>{_(r,document.hasFocus(),!0)};return y(),window.addEventListener("focus",y),window.addEventListener("blur",y),()=>{window.removeEventListener("focus",y),window.removeEventListener("blur",y)}});const R=O.getReadableState().subscribe(()=>{u&&!u.current()&&v()});return Es(()=>{c=!0,R(),v()}),le(()=>{const y=n.capture(),M=y?$l(y):"",x=e(r)&&!e(a)&&(n.active()||e(i)?.key===M);ct(()=>{if(!x||!y){v();return}if(u?.key===M)return;if(f===M){v();return}v();const D=Mi(y)?.clips.flatMap(Re=>!Re.mediaError&&Re.media?[Re.media]:[])??[],T=D[0],H=O.state.principal.snapshot,V=Hl.select(O.state,y.workspaceId);if(!T||!H||!V||n.drafts.gateActive)return;const oe=cf(),P=new AbortController,k=()=>!c&&!P.signal.aborted&&Ci(O.state)===y.authority&&Hl.select(O.state,y.workspaceId)===V&&uf(oe)&&!!n.capture()&&$l(n.capture())===M,Q={key:M,capture:y,abort:P,native:null,slot:null,current:k};u=Q;const ge=l;n.drafts.flushDraft(y).then(async Re=>{if(!(u!==Q||ge!==l||!k())){if(!Re){f=M,await v();return}Q.native=Gd({workspaceId:y.workspaceId,agentId:y.agentId,draftId:crypto.randomUUID(),principalId:H.principal.id,media:structuredClone(D)},k,P.signal),Q.slot=ty(Q.native.service),f=M,Q.slot.warm(M,T,k)}}).catch(()=>{u===Q&&v()})})}),{cancel:v,async beforeEditorOpen(){_(a,!0),f=null,await v()},editorState(y,M){_(a,y,!0);const x=M?$l(M.capture):null;M&&e(i)?.openId!==M.openId&&(f=null),_(i,M&&x?{openId:M.openId,key:x}:null)},take(y,M){const x=u;if(!x?.native||!x.slot||x.key!==$l(y)||!x.current())return v(),null;u=null,l++;const F=x.native,D=x.slot,T=()=>x.abort.abort();return M.addEventListener("abort",T,{once:!0}),M.aborted&&T(),{service:{...F.service,takePreparedRecording:H=>D.take(x.key,H,()=>!M.aborted&&x.current())},async dispose(){M.removeEventListener("abort",T),await b(x)}}}}}var lx=E('<div role="status" class="px-3 py-1.5 text-xs text-muted-foreground" data-testid="chat-draft-loading-gate"><span> </span></div>');function tv(n,r){if(new.target)return dn({component:tv,...n});pn(r,!1);var a={$set:un,$on:(f,u)=>gn(r,f,u)};Mf();var i=lx(),c=I(i),l=de(c,!0);return w(i),q(f=>z(l,f),[()=>g.chat_draftGate_loading_label()]),p(n,i),fn(a)}var cx=E('<div data-new-messages-divider="" class="type-caption font-family-child my-6 flex items-center gap-2 px-2" role="separator"><div class="h-px flex-1 bg-border"></div> <span class="whitespace-nowrap px-1 font-medium text-foreground"> </span> <div class="h-px flex-1 bg-border"></div></div>');function Td(n,r){if(new.target)return dn({component:Td,...n});pn(r,!1);var a={$set:un,$on:(f,u)=>gn(r,f,u)};Mf();var i=cx(),c=m(I(i),2),l=de(c,!0);return In(2),w(i),q((f,u)=>{Ue(i,"aria-label",f),z(l,u)},[()=>g.chat_newMessagesDivider_label(),()=>g.chat_newMessagesDivider_label()]),p(n,i),fn(a)}function dx(n,r){if(!r||n.length===0)return null;const a=n.indexOf(r);return a===-1||a===n.length-1?null:r}function ux(n,r,a){if(!r||n.length===0)return"none";const i=n.indexOf(r);return i===n.length-1?"none":i!==-1?"marker-loaded":a.complete?a.truncated?"marker-beyond-window":"none":"marker-pending"}function gx(n,r){return r&&n.includes(r)?r:null}function Bp(n,r,a){return r-n<=a}const px=.2;function Wp(n,r,a){const i=Math.max(0,a-r),c=n-px*r;return Math.min(Math.max(0,c),i)}function fx(n,r,a){return n!==null&&a&&n===r}function vx(n){return n?sb(n)&&ob(n)!==null&&typeof n.metadata?.taskNoteId=="string":!1}function hx(n){const r=[],a=new Set;let i,c;for(const H of n.messages){if(H.agentId&&H.agentId!==n.agentId){i=void 0,c=void 0;continue}if(a.has(H.id))continue;a.add(H.id),n.breakBeforeMessageIds?.has(H.id)&&(i=void 0,c=void 0);const V=mS(H);if(V?.kind!=="turn-failure")c=void 0;else{const oe=i?.seq!==void 0&&H.seq!==void 0&&Number.isSafeInteger(i.seq)&&Number.isSafeInteger(H.seq)&&H.seq===i.seq+1;(!c||!oe)&&(c={key:JSON.stringify([n.agentId,"notice",H.id]),anchorMessageId:H.id,correlation:"unavailable",records:[],recordedFailureCount:0},r.push(c)),c.records.push({messageId:H.id,reason:V.reason,timestamp:H.timestamp}),c.recordedFailureCount+=1}i=H}const l=new Map;for(const H of n.queue){if(!H.requeuedAfterFailure)continue;const V=H.turnId||void 0,oe=JSON.stringify([n.agentId,V?"turn":"queue",V??H.id]);let P=l.get(oe);P||(P={key:oe,correlation:V?"turn":"queue-entry",turnId:V,queueIds:[],state:"queued"},l.set(oe,P)),P.queueIds.includes(H.id)||P.queueIds.push(H.id)}const f=[...l.values()],u=n.session?.id===n.agentId?n.session:void 0,b=u?.status===Si.Error,v=n.transientError||b&&u.stopReason||null,R=b&&!v,y=b&&(!n.transientError||n.transientError===u.stopReason)?u.stopReasonTimestamp:void 0,M=y?pp(y):null,x=M&&v&&v===u?.stopReason?r.flatMap(H=>H.records).filter(H=>H.reason===v&&pp(H.timestamp)===M):[],F=x.length===1?x[0].messageId:void 0,T=(u?hf(u):!1)?"attempting":f.length?"queued":v||R?"action-needed":"inactive";return{history:r,queueRecovery:f,current:{state:T,error:v,needsFallbackReason:R,timestamp:y,noticeId:F}}}function mx(n,r){const a=n.hiddenTail[0]?.id,i=hx({...r,messages:[...n.groups.flatMap(u=>u.messages),...n.hiddenTail],breakBeforeMessageIds:new Set(a?[a]:[])}),c=i.current.noticeId,l=i.history.map(u=>({...u,records:u.records.filter(b=>b.messageId!==c)})).filter(u=>u.records.length>0),f=new Set(l.map(u=>u.records[0].messageId));return{...i,runsByAnchor:new Map(l.map(u=>[u.records[0].messageId,u])),collapsedMessageIds:new Set(i.history.flatMap(u=>u.records.map(b=>b.messageId).filter(b=>!f.has(b))))}}var _x=E('<div class="flex size-10 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <div class="min-w-0 flex-1"><div class="type-body truncate font-medium text-foreground"> </div> <div class="type-caption mt-0.5 line-clamp-2 text-muted-foreground"> </div></div> <div class="flex size-7 shrink-0 items-center justify-center rounded-md bg-muted/50 text-muted-foreground transition-colors group-hover:bg-muted"><!></div>',1),bx=E('<div class="flex size-9 shrink-0 items-center justify-center rounded-md bg-muted/50"><!></div> <span class="type-body font-medium"> </span>',1),wx=E('<div><div class="border-b border-border bg-muted/20 px-4 py-3"><p class="type-body font-medium text-foreground"> </p> <p class="type-caption mt-0.5 text-muted-foreground"> </p></div> <div class="max-h-[21rem] overflow-y-auto p-2"><!></div> <div class="border-t border-border bg-popover p-2"><!></div></div>'),yx=E('<div class="mb-5"><!></div>'),Ix=E('<p data-testid="agent-welcome-description"> </p> <!>',1),Sx=E("<!> <!>",1),$x=E('<p class="mb-3 px-4 text-sm text-subtle leading-relaxed whitespace-pre-wrap" data-testid="agent-welcome-description"> </p>'),kx=E("<!> <span> </span>",1),xx=E('<div class="mx-auto flex w-full max-w-[40rem] flex-1 flex-col px-4 pb-6 pt-4 text-subtle"><!> <!> <!></div>');function nv(n,r){if(new.target)return dn({component:nv,...n});pn(r,!0);const a=()=>fe(x,"$userOverrides$",f),i=()=>fe(M,"$specialists$",f),c=()=>fe(H,"$isGitHubAuth$",f),l=()=>fe(V,"$recentSpecialistIds$",f),[f,u]=Dr();let b=Z(r,"onSpecialistChange",7),v=Z(r,"session",7),R=Z(r,"workspaceId",7);const y=Nn(R()??"");le(()=>y.set(R()??""));const M=Ff(y),x=q$();le(()=>{a()});const F=o(()=>{if(!v()||qy(v()))return null;const N=v().metadata?.specialist||v().agentMetadata?.specialist;return N&&i().find(C=>C.id===N)||null});async function D(N){N?await Bl({specialist:N,hash:"specialists"}):await Bl({view:"create-specialist"})}let T=_e(!1);const H=L$(),V=GI(),oe=o(()=>ib(H$(i(),c()),l()));let P=_e(!1);const k=o(()=>g.chat_regularAgentWelcome_generalDescription_label()),Q=o(()=>e(F)?.name??g.chat_shared_general_fallback()),ge=o(()=>e(F)?.description??g.chat_shared_noSpecializedBehavior_label()),Re=o(()=>e(F)?e(F).defaultBehaviorPrompt||"":e(k));var ve={get onSpecialistChange(){return b()},set onSpecialistChange(N){b(N),ee()},get session(){return v()},set session(N){v(N),ee()},get workspaceId(){return R()},set workspaceId(N){R(N),ee()},$set:un,$on:(N,C)=>gn(r,N,C)},ue=xx(),be=I(ue);{var ne=N=>{var C=yx(),re=I(C);K$(re,{class:"block w-full",align:"start",side:"bottom",contentClass:"w-[min(28rem,calc(100vw-2rem))]",get open(){return e(P)},set open(Y){_(P,Y,!0)},trigger:(Y,J)=>{let we=()=>(J?.()).props;{let Ne=o(()=>Fd("group flex h-auto min-h-(--control-height-medium) w-full cursor-pointer items-center gap-3 whitespace-normal rounded-lg border border-border bg-card px-4 py-3 text-left shadow-xs transition-colors","hover:border-input hover:bg-accent/30 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"));xt(Y,Ei(we,{type:"button",variant:"plain",wrapContent:!1,get class(){return e(Ne)},"data-testid":"specialist-picker-trigger",children:(U,Ie)=>{var Ce=_x(),Le=ye(Ce),st=I(Le);{let Se=o(()=>e(F)?.id??null),Ae=o(()=>e(F)?.icon??null);G$(st,{agentId:"blank",variant:"emphasized",get specialist(){return e(Se)},get icon(){return e(Ae)}})}w(Le);var Xe=m(Le,2),He=I(Xe),Pe=de(He,!0),j=m(He,2),ae=de(j,!0);w(Xe);var qe=m(Xe,2),G=I(qe);pt(G,{get icon(){return Na},size:10}),w(qe),q(()=>{z(Pe,e(Q)),z(ae,e(ge))}),p(U,Ce)},$$slots:{default:!0}}))}},content:Y=>{var J=wx(),we=I(J),Ne=I(we),U=de(Ne,!0),Ie=m(Ne,2),Ce=de(Ie,!0);w(we);var Le=m(we,2),st=I(Le);{let Pe=o(()=>e(F)?.id??null);D_(st,{get specialists(){return e(oe)},get value(){return e(Pe)},onchange:j=>{_(P,!1),b()?.(j)}})}w(Le);var Xe=m(Le,2),He=I(Xe);Rt(He,()=>Or,(Pe,j)=>{j(Pe,{class:"flex h-auto w-full cursor-pointer items-center gap-3 whitespace-normal rounded-md px-3 py-2 text-left text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",onSelect:()=>{_(P,!1),D()},children:(ae,qe)=>{var G=bx(),Se=ye(G),Ae=I(Se);pt(Ae,{get icon(){return m$},size:12}),w(Se);var je=m(Se,2),Be=de(je,!0);q(We=>z(Be,We),[()=>g.chat_regularAgentWelcome_createSpecialist_label()]),p(ae,G)},$$slots:{default:!0}})}),w(Xe),w(J),q((Pe,j)=>{z(U,Pe),z(Ce,j)},[()=>g.workspace_createAgentSection_specialists_label(),()=>g.workspace_createAgentSection_specialists_description()]),p(Y,J)},$$slots:{trigger:!0,content:!0}}),w(C),p(N,C)};B(be,N=>{b()&&N(ne)})}var te=m(be,2);{var ze=N=>{var C=Bt(),re=ye(C);{let Te=o(()=>g.chat_specialistSelector_prompt_label());Rt(re,()=>J$,(L,Y)=>{Y(L,{class:"mb-3",role:"region",get"aria-label"(){return e(Te)},children:(J,we)=>{var Ne=Sx(),U=ye(Ne);Rt(U,()=>Jf,(Ce,Le)=>{Le(Ce,{children:(st,Xe)=>{var He=Bt(),Pe=ye(He);Rt(Pe,()=>Yf,(j,ae)=>{ae(j,{class:"type-caption font-medium",children:(qe,G)=>{In();var Se=_n();q(Ae=>z(Se,Ae),[()=>g.chat_specialistSelector_prompt_label()]),p(qe,Se)},$$slots:{default:!0}})}),p(st,He)},$$slots:{default:!0}})});var Ie=m(U,2);Rt(Ie,()=>Q$,(Ce,Le)=>{Le(Ce,{children:(st,Xe)=>{var He=Ix(),Pe=ye(He),j=de(Pe,!0),ae=m(Pe,2);xt(ae,{type:"button",variant:"link",get"aria-expanded"(){return e(T)},onclick:()=>_(T,!e(T)),class:"text-xs text-muted-foreground hover:text-foreground transition-colors mt-2 cursor-pointer",children:(qe,G)=>{In();var Se=_n();q(Ae=>z(Se,Ae),[()=>e(T)?g.chat_regularAgentWelcome_showLess_label():g.chat_regularAgentWelcome_showMore_label()]),p(qe,Se)},$$slots:{default:!0}}),q(()=>{ke(Pe,1,`text-sm text-subtle leading-relaxed whitespace-pre-wrap break-words ${e(T)?"":"line-clamp-6"}`),z(j,e(Re))}),p(st,He)},$$slots:{default:!0}})}),p(J,Ne)},$$slots:{default:!0}})})}p(N,C)},se=N=>{var C=$x(),re=de(C,!0);q(()=>z(re,e(Re))),p(N,C)};B(te,N=>{e(F)?N(ze):N(se,-1)})}var he=m(te,2);{var Me=N=>{xt(N,{variant:"ghost-light",size:"sm",onclick:()=>D(e(F).id),class:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-foreground transition-colors cursor-pointer pl-1.5 mr-auto",children:(C,re)=>{var Te=kx(),L=ye(Te);pt(L,{get icon(){return h$},size:12,class:"opacity-60"});var Y=m(L,2),J=de(Y,!0);q(we=>z(J,we),[()=>g.chat_regularAgentWelcome_customize_label()]),p(C,Te)},$$slots:{default:!0}})};B(he,N=>{e(F)&&N(Me)})}w(ue),p(n,ue);var Ee=fn(ve);return u(),Ee}var Cx=E('<a class="cursor-pointer underline underline-offset-2 hover:opacity-80" data-suggested-prompt-link=""> </a>'),Px=E('<kbd data-suggested-prompt-hint=""> </kbd>'),Rx=E('<span class="type-caption"> </span>'),Tx=E('<div role="presentation" data-typography-role="body" data-suggested-prompt-row=""><span data-suggested-prompt-icon=""><!></span> <span class="min-w-0 flex-1 text-pretty" data-suggested-prompt-label=""><span role="button" tabindex="0" class="focus-visible:outline-none" data-suggested-prompt-text=""> </span><!></span> <!> <!></div>'),Ax=E('<div class="flex flex-col" data-testid="suggested-prompts-surface"><!></div>');function Kd(n,r){if(new.target)return dn({component:Kd,...n});pn(r,!0);let a=Z(r,"prompts",7),i=Z(r,"onSelect",7),c=Z(r,"onEdit",7),l=Z(r,"compact",7,!1),f=Z(r,"showShortcutHints",7,!1),u=Z(r,"reserveShortcutHintSpace",7,!1),b=Z(r,"workspaceId",7);const R=typeof navigator<"u"&&navigator.platform.toUpperCase().includes("MAC")?"⌃":"Alt+",y=GS.replace("text-ui","type-caption");function M(k){i()(k)}function x(k,Q){k.key!=="Enter"&&k.key!==" "||(k.preventDefault(),M(Q))}function F(k,Q){k.preventDefault(),k.stopPropagation(),Pd(Q,{workspaceId:b(),event:k})}function D(k,Q){(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),k.stopPropagation(),Pd(Q,{workspaceId:b(),event:k}))}function T(k){return k<3}var H={get prompts(){return a()},set prompts(k){a(k),ee()},get onSelect(){return i()},set onSelect(k){i(k),ee()},get onEdit(){return c()},set onEdit(k){c(k),ee()},get compact(){return l()},set compact(k=!1){l(k),ee()},get showShortcutHints(){return f()},set showShortcutHints(k=!1){f(k),ee()},get reserveShortcutHintSpace(){return u()},set reserveShortcutHintSpace(k=!1){u(k),ee()},get workspaceId(){return b()},set workspaceId(k){b(k),ee()},$set:un,$on:(k,Q)=>gn(r,k,Q)},V=Bt(),oe=ye(V);{var P=k=>{var Q=Ax(),ge=I(Q);{const Re=(ue,be)=>{let ne=()=>(be?.()).item,te=()=>(be?.()).index;const ze=o(()=>Bw(ne())),se=o(()=>e(ze)[0]?.type==="text"?e(ze)[0].content:"");var he=Tx(),Me=I(he),Ee=I(Me);pt(Ee,{get icon(){return Ef},size:16,get class(){return lr}}),w(Me);var N=m(Me,2),C=I(N),re=de(C,!0),Te=m(C);Hn(Te,17,()=>e(ze).slice(e(se)?1:0),H_,(U,Ie)=>{var Ce=Bt(),Le=ye(Ce);{var st=He=>{const Pe=o(()=>Nw(e(Ie).url));var j=Cx(),ae=de(j,!0);q(()=>{Ue(j,"href",e(Pe)),Ue(j,"title",e(Pe)),z(ae,e(Ie).label)}),ps("click",j,qe=>F(qe,e(Pe))),ps("keydown",j,qe=>D(qe,e(Pe))),p(He,j)},Xe=He=>{var Pe=_n();q(()=>z(Pe,e(Ie).content)),p(He,Pe)};B(Le,He=>{e(Ie).type==="link"?He(st):He(Xe,-1)})}p(U,Ce)}),w(N);var L=m(N,2);{var Y=U=>{var Ie=Px();let Ce;var Le=de(Ie);q(()=>{Ce=ke(Ie,1,`${y??""} mt-px inline-flex h-5 items-center self-start border-0 bg-transparent p-0 font-sans font-normal text-muted-foreground! opacity-100`,null,Ce,{invisible:!f()}),Ue(Ie,"aria-hidden",f()?void 0:"true"),Ue(Ie,"data-hint-visible",f()),z(Le,`${R}${te()+1}`)}),p(U,Ie)},J=o(()=>T(te())&&(f()||u()));B(L,U=>{e(J)&&U(Y)})}var we=m(L,2);{var Ne=U=>{v$(U,{side:"top",delayDuration:300,trigger:Le=>{{let st=o(()=>g.chat_suggestedPrompts_editInInput_ariaLabel());xt(Le,{type:"button",variant:"ghost-light",size:"icon-xs",iconOnly:!0,class:"absolute right-0.5 top-[calc(var(--operational-leading-half-slot-size)+var(--space-1)*0.5+1px)] shrink-0 -translate-y-1/2 rounded opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",onclick:Xe=>{Xe.stopPropagation(),c()(ne())},get"aria-label"(){return e(st)},children:(Xe,He)=>{pt(Xe,{get icon(){return _$},size:"xs"})},$$slots:{default:!0}})}},content:Le=>{var st=Rx(),Xe=de(st,!0);q(He=>z(Xe,He),[()=>g.chat_suggestedPrompts_edit_tooltip()]),p(Le,st)},$$slots:{trigger:!0,content:!0}})};B(we,U=>{c()&&U(Ne)})}w(he),q(U=>{ke(he,1,`${Af} ${VS} group relative flex cursor-pointer items-center gap-[var(--operational-leading-gap)] rounded-sm border border-transparent bg-transparent px-1.5 py-0.5 text-left opacity-100 pr-9 transition-colors hover:text-foreground has-[[data-suggested-prompt-text]:focus-visible]:outline-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-offset-2 has-[[data-suggested-prompt-text]:focus-visible]:outline-ring`),ke(Me,1,`${Fl??""} mt-px self-start`),Ue(C,"aria-label",U),z(re,e(se))},[()=>Dw(ne())]),ps("click",C,U=>{U.stopPropagation(),M(ne())}),ps("keydown",C,U=>x(U,ne())),p(ue,he)};let ve=o(()=>l()?"[&>div>div:last-child]:gap-0":"[&>div>div:last-child]:gap-0.5");u$(ge,{get items(){return a()},virtualize:!1,onActivate:M,get class(){return`overflow-visible! [&>div>div:last-child]:flex [&>div>div:last-child]:flex-col ${e(ve)??""}`},"data-testid":"suggested-prompts-list",get"data-compact"(){return l()},row:Re,$$slots:{row:!0}})}w(Q),Dt(1,Q,()=>ma,()=>({tier:"fast",y:0,scale:1})),Dt(2,Q,()=>Zs,()=>({tier:"fast"})),p(k,Q)};B(oe,k=>{a().length>0&&k(P)})}return p(n,V),fn(H)}Od(["click","keydown"]);var Mx=E('<section class="pb-6 pt-6"><p class="type-body mb-5 max-w-[36rem] px-1.5 text-pretty text-muted-foreground"> </p> <!></section>');function rv(n,r){if(new.target)return dn({component:rv,...n});pn(r,!0);let a=Z(r,"onSelect",7),i=Z(r,"compact",7,!1);const c=o(()=>[{label:g.chat_chiefEmptyState_assignedPrs_label(),prompt:g.chat_chiefEmptyState_assignedPrs_prompt()},{label:g.chat_chiefEmptyState_staleWorkspaces_label(),prompt:g.chat_chiefEmptyState_staleWorkspaces_prompt()},{label:g.chat_chiefEmptyState_agentPerformance_label(),prompt:g.chat_chiefEmptyState_agentPerformance_prompt()},{label:g.chat_chiefEmptyState_morningBrief_label(),prompt:g.chat_chiefEmptyState_morningBrief_prompt()},{label:g.chat_chiefEmptyState_randomTheme_label(),prompt:g.chat_chiefEmptyState_randomTheme_prompt()}]),l=o(()=>e(c).map(M=>M.label));function f(M){const x=e(c).find(F=>F.label===M);x&&a()(x.prompt)}var u={get onSelect(){return a()},set onSelect(M){a(M),ee()},get compact(){return i()},set compact(M=!1){i(M),ee()},$set:un,$on:(M,x)=>gn(r,M,x)},b=Mx(),v=I(b),R=de(v,!0),y=m(v,2);return Kd(y,{get prompts(){return e(l)},onSelect:f,get compact(){return i()}}),w(b),q(M=>z(R,M),[()=>g.chat_chiefEmptyState_intro_label()]),p(n,b),fn(u)}const Qd=2e3,Ex=4e3,qx=Ex-Qd-2;function Lx(n,r=Qd){const a=[];let i=0;for(let c=n.length-1;c>=0&&i<r;c-=1){const l=n[c];if(l.role!=="user"&&l.role!=="assistant")continue;const f=(l.contentBlocks??[]).filter(b=>b.type==="text").map(b=>b.text||b.content||"").join(""),u=(l.role==="assistant"?N_(f).cleanedContent:f).trim();u&&(a.unshift({role:l.role,text:u}),i+=u.length)}return a}function Hx(n,r){const a=n.map(l=>`${l.role==="user"?"User":"Assistant"}: ${l.text}`).join(`
2
2
 
3
3
  `).slice(-Qd),i=r.map(l=>l.trim()).filter(Boolean);if(i.length===0)return a;const c=`Suggested prompts:
4
4
  ${i.map(l=>`- ${l}`).join(`