@intent-hq/web 2.292.0 → 2.292.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/assets/0.DvlMYzZB.css +1 -0
  3. package/web/app/immutable/assets/5.DBgC2kSL.css +1 -0
  4. package/web/app/immutable/chunks/{D0FrwYUQ.js → 06CP606v.js} +1 -1
  5. package/web/app/immutable/chunks/{xKX_8KWn.js → 0OdOYZJi.js} +1 -1
  6. package/web/app/immutable/chunks/{BUN1yF1L.js → 0icrH9cf.js} +1 -1
  7. package/web/app/immutable/chunks/{BHNxqf_R.js → 1cxr91i_.js} +1 -1
  8. package/web/app/immutable/chunks/{fqEAyqsN.js → 2dp9mihz.js} +1 -1
  9. package/web/app/immutable/chunks/{C4QILlBJ.js → 4i4DPzKd.js} +1 -1
  10. package/web/app/immutable/chunks/{Cm5CZ7YY.js → 6P4u1Qpi.js} +1 -1
  11. package/web/app/immutable/chunks/{Uc38XdXI.js → 8wbw8Mxv.js} +1 -1
  12. package/web/app/immutable/chunks/{BXWlOAyO.js → 9-D0Q0S6.js} +1 -1
  13. package/web/app/immutable/chunks/{BDaXmtmH.js → B1Geyr6r.js} +1 -1
  14. package/web/app/immutable/chunks/{CyFgel5k.js → B3a0tOmN.js} +1 -1
  15. package/web/app/immutable/chunks/{B3HK-q5A.js → B3tYyD3l.js} +1 -1
  16. package/web/app/immutable/chunks/{lbGH4X3r.js → B4RJxt1j.js} +1 -1
  17. package/web/app/immutable/chunks/{DBNNnuPG.js → B57g6nRd.js} +1 -1
  18. package/web/app/immutable/chunks/{Brep-rEI.js → B5IU8QZY.js} +3 -3
  19. package/web/app/immutable/chunks/{LldlwJUi.js → B6AHBw_w.js} +1 -1
  20. package/web/app/immutable/chunks/{a-vNpAtT.js → B6ZWdQk3.js} +1 -1
  21. package/web/app/immutable/chunks/{BRyWfrpo.js → B6yR2ywv.js} +1 -1
  22. package/web/app/immutable/chunks/{CRhEb0yi.js → B706oMxy.js} +3 -3
  23. package/web/app/immutable/chunks/{BTkrC1UW.js → B7U-tfjb.js} +1 -1
  24. package/web/app/immutable/chunks/{0EWUI_tF.js → BBIRqZm8.js} +1 -1
  25. package/web/app/immutable/chunks/{C4WMSxMK.js → BBW6O_MW.js} +1 -1
  26. package/web/app/immutable/chunks/{DVnaYm9M.js → BBZy8W_D.js} +1 -1
  27. package/web/app/immutable/chunks/{DGzLoy-z.js → BGGu7czf.js} +1 -1
  28. package/web/app/immutable/chunks/{DCuB-wUt.js → BIYsIqQO.js} +1 -1
  29. package/web/app/immutable/chunks/{l7ze94qr.js → BJ0eJuEr.js} +1 -1
  30. package/web/app/immutable/chunks/{CmtSXIlz.js → BJ9BJ5kr.js} +1 -1
  31. package/web/app/immutable/chunks/{n50bwg6w.js → BJudpy0q.js} +2 -2
  32. package/web/app/immutable/chunks/BKO5A3Iw.js +324 -0
  33. package/web/app/immutable/chunks/{BvW_0loN.js → BKrYyTXN.js} +1 -1
  34. package/web/app/immutable/chunks/{qiHCX_SZ.js → BO7H-py_.js} +1 -1
  35. package/web/app/immutable/chunks/{BaqlfWKa.js → BRO1WLab.js} +1 -1
  36. package/web/app/immutable/chunks/{ClioxoZj.js → BS6j7OE5.js} +1 -1
  37. package/web/app/immutable/chunks/{U2CIkvme.js → BTveGMUJ.js} +1 -1
  38. package/web/app/immutable/chunks/{D7_sioj1.js → BW2PW2g6.js} +1 -1
  39. package/web/app/immutable/chunks/{BrbLiL_x.js → BX6z7vlb.js} +1 -1
  40. package/web/app/immutable/chunks/{BgntEy_5.js → BXOgEfnf.js} +1 -1
  41. package/web/app/immutable/chunks/{Du8OSMBA.js → BYGgXMOe.js} +1 -1
  42. package/web/app/immutable/chunks/{DkZNeDFv.js → BZt_MPAk.js} +1 -1
  43. package/web/app/immutable/chunks/{DKaqc51P.js → B_Ea7vd_.js} +1 -1
  44. package/web/app/immutable/chunks/{BnQ8VATH.js → B_POKarf.js} +1 -1
  45. package/web/app/immutable/chunks/{CDGvuOsQ.js → B_yx8Ej4.js} +1 -1
  46. package/web/app/immutable/chunks/{DsD7VXOH.js → BbJ89n0c.js} +1 -1
  47. package/web/app/immutable/chunks/{bHHGnVsz.js → BfyhvmiH.js} +1 -1
  48. package/web/app/immutable/chunks/{ZWPXcFOT.js → BhCkZjyI.js} +1 -1
  49. package/web/app/immutable/chunks/{DOVovLIq.js → BjDw9Ajo.js} +1 -1
  50. package/web/app/immutable/chunks/{B5iywc0c.js → BkasMNMq.js} +1 -1
  51. package/web/app/immutable/chunks/{DvbSI76r.js → Bn4oEwGS.js} +2 -2
  52. package/web/app/immutable/chunks/{aVsZmAEF.js → BnVbje9V.js} +1 -1
  53. package/web/app/immutable/chunks/{B-gmfAcJ.js → BoZO-tBm.js} +1 -1
  54. package/web/app/immutable/chunks/{BW3vrEnw.js → Bp1cd1IE.js} +5 -5
  55. package/web/app/immutable/chunks/{4tDE6wja.js → BqJBJZqA.js} +1 -1
  56. package/web/app/immutable/chunks/{C1YheCPG.js → BsDnrJk1.js} +1 -1
  57. package/web/app/immutable/chunks/{BFY-b65a.js → BxXIBuVD.js} +1 -1
  58. package/web/app/immutable/chunks/{C99wXtMe.js → Bxg-DNLJ.js} +1 -1
  59. package/web/app/immutable/chunks/{s0Q29iiv.js → Byw0HZRE.js} +1 -1
  60. package/web/app/immutable/chunks/{DhCIIOya.js → C-0pU5-0.js} +1 -1
  61. package/web/app/immutable/chunks/{RKlkXviB.js → C-65lWvx.js} +1 -1
  62. package/web/app/immutable/chunks/{ZvX5e3AH.js → C0-5oyod.js} +1 -1
  63. package/web/app/immutable/chunks/{DsSlZ8Hs.js → C16OaEIp.js} +1 -1
  64. package/web/app/immutable/chunks/{Bn8I_2eM.js → C1xcY5Vk.js} +1 -1
  65. package/web/app/immutable/chunks/{C2-6X3Z3.js → C235722L.js} +2 -2
  66. package/web/app/immutable/chunks/{Bp70Vk4U.js → C2XyHZMq.js} +1 -1
  67. package/web/app/immutable/chunks/{BJrl0upY.js → C2_XBdun.js} +1 -1
  68. package/web/app/immutable/chunks/{Dm7OUuES.js → C2kcG-kr.js} +1 -1
  69. package/web/app/immutable/chunks/{CXbFPa4P.js → C2kqq4BW.js} +1 -1
  70. package/web/app/immutable/chunks/{CW4guVPa.js → C3II6JxD.js} +1 -1
  71. package/web/app/immutable/chunks/{Xj89EZIy.js → C3pHQ0Lo.js} +1 -1
  72. package/web/app/immutable/chunks/{BGSYASTg.js → C6Oo8BXq.js} +1 -1
  73. package/web/app/immutable/chunks/{D0lwnaH3.js → C7GMlsQo.js} +1 -1
  74. package/web/app/immutable/chunks/{DwDCAMLG.js → C88qqh5O.js} +1 -1
  75. package/web/app/immutable/chunks/{BRCenWT1.js → CActW8-2.js} +1 -1
  76. package/web/app/immutable/chunks/{D7mzoI7P.js → CEFUN1Sl.js} +1 -1
  77. package/web/app/immutable/chunks/{BjdiF3NU.js → CF5fp47H.js} +1 -1
  78. package/web/app/immutable/chunks/{DQ7w3NbE.js → CFIlMuyb.js} +1 -1
  79. package/web/app/immutable/chunks/{DWGee_yL.js → CGSuk0Cy.js} +1 -1
  80. package/web/app/immutable/chunks/{BrdmgcMW.js → CGye2JSh.js} +1 -1
  81. package/web/app/immutable/chunks/CGzJEpSM.js +1 -0
  82. package/web/app/immutable/chunks/{B-dUAUrx.js → CHja51xm.js} +1 -1
  83. package/web/app/immutable/chunks/{C2v5W_yU.js → CIJAu6bi.js} +1 -1
  84. package/web/app/immutable/chunks/{CsY3AFxY.js → CJhyAq2H.js} +1 -1
  85. package/web/app/immutable/chunks/{Bdylonvo.js → CLVYtAgH.js} +1 -1
  86. package/web/app/immutable/chunks/{DHfLNRUe.js → CNIcxzrf.js} +1 -1
  87. package/web/app/immutable/chunks/{BnbR-3eC.js → CPVCyy9H.js} +1 -1
  88. package/web/app/immutable/chunks/{lr5ofxhO.js → CPWUKQMq.js} +1 -1
  89. package/web/app/immutable/chunks/{DP7kbgS0.js → CQ8ioTJp.js} +1 -1
  90. package/web/app/immutable/chunks/{CNx8jMag.js → CRA4LiiZ.js} +3 -3
  91. package/web/app/immutable/chunks/{1gqakjEk.js → CTq4Ne1T.js} +1 -1
  92. package/web/app/immutable/chunks/{Cowgfae1.js → CU6_e7nb.js} +1 -1
  93. package/web/app/immutable/chunks/{BhHMVKkK.js → CUBgSKLj.js} +1 -1
  94. package/web/app/immutable/chunks/{CACMvEIk.js → CURoGd7C.js} +1 -1
  95. package/web/app/immutable/chunks/{B-68oH2S.js → CXfUMyfW.js} +1 -1
  96. package/web/app/immutable/chunks/CXhBPURx.js +1 -0
  97. package/web/app/immutable/chunks/{Bebubi_u.js → C_XZ4OIT.js} +2 -2
  98. package/web/app/immutable/chunks/{D3jsqDWq.js → CaO-jYXw.js} +1 -1
  99. package/web/app/immutable/chunks/{DWQ1jwFW.js → CbfVN0ay.js} +1 -1
  100. package/web/app/immutable/chunks/{DI0BmYmu.js → Cbte3-vF.js} +1 -1
  101. package/web/app/immutable/chunks/{BekOxliD.js → Cg-g09n8.js} +1 -1
  102. package/web/app/immutable/chunks/{Dj03b8fr.js → Cgqr4kLy.js} +1 -1
  103. package/web/app/immutable/chunks/{aLb41s5K.js → Ci0Iahfv.js} +1 -1
  104. package/web/app/immutable/chunks/{CehXkbc-.js → Ck0Y6rq2.js} +1 -1
  105. package/web/app/immutable/chunks/{Bu8Bi7-A.js → ClloJpHM.js} +1 -1
  106. package/web/app/immutable/chunks/{CJhZDVuE.js → Clof0uHU.js} +6 -6
  107. package/web/app/immutable/chunks/{Cxk1hw1U.js → Cn7C61pS.js} +1 -1
  108. package/web/app/immutable/chunks/{DHSIOEln.js → CnJRK_4k.js} +1 -1
  109. package/web/app/immutable/chunks/{BSwJfQ4v.js → CpvoaoFn.js} +1 -1
  110. package/web/app/immutable/chunks/{D_J63Zyl.js → CqR78knd.js} +2 -2
  111. package/web/app/immutable/chunks/{DYtAwHmE.js → Cr7b2ytM.js} +1 -1
  112. package/web/app/immutable/chunks/{Corw6Jrh.js → CrDYXSjm.js} +1 -1
  113. package/web/app/immutable/chunks/{BA_vIobR.js → Cu9PRb5L.js} +1 -1
  114. package/web/app/immutable/chunks/{C3J1SYpT.js → CuXdjaeB.js} +1 -1
  115. package/web/app/immutable/chunks/{73DumGL9.js → CyiV6pD0.js} +1 -1
  116. package/web/app/immutable/chunks/{CabEUy8J.js → Cyt8YDgF.js} +1 -1
  117. package/web/app/immutable/chunks/{Bw0bJwpw.js → D0pB9PrJ.js} +1 -1
  118. package/web/app/immutable/chunks/{ObcETXIn.js → D1erkeWj.js} +4 -4
  119. package/web/app/immutable/chunks/{BEsSRpwf.js → D3RlZ9WF.js} +1 -1
  120. package/web/app/immutable/chunks/{QwMkFOLD.js → D3ZCs28F.js} +1 -1
  121. package/web/app/immutable/chunks/{47q6TsqV.js → D3vOZLLK.js} +7 -7
  122. package/web/app/immutable/chunks/{DBLawIp_.js → D74IXn65.js} +1 -1
  123. package/web/app/immutable/chunks/{BHL5MsfB.js → D7wJhAnY.js} +1 -1
  124. package/web/app/immutable/chunks/{Cppe-wSX.js → DBIZsiql.js} +1 -1
  125. package/web/app/immutable/chunks/{DshT-ERa.js → DBV1CnUE.js} +1 -1
  126. package/web/app/immutable/chunks/{B2hdZBro.js → DDWW4aEF.js} +1 -1
  127. package/web/app/immutable/chunks/{DUl0e4O4.js → DE5PIUSw.js} +1 -1
  128. package/web/app/immutable/chunks/{C4tLIUi-.js → DFes1OFO.js} +1 -1
  129. package/web/app/immutable/chunks/{DN9Sgz-I.js → DGQD3c01.js} +1 -1
  130. package/web/app/immutable/chunks/{3Y9y-sdV.js → DHiM-AM5.js} +1 -1
  131. package/web/app/immutable/chunks/DIZ4FVb2.js +18 -0
  132. package/web/app/immutable/chunks/{DB0od0be.js → DImKkYU8.js} +1 -1
  133. package/web/app/immutable/chunks/{-GL8Xg-u.js → DIzn_5le.js} +1 -1
  134. package/web/app/immutable/chunks/{CwQ4F1Ab.js → DLuzW_sw.js} +1 -1
  135. package/web/app/immutable/chunks/{Bqwi0BWF.js → DLwjoPi-.js} +1 -1
  136. package/web/app/immutable/chunks/{Bi0GbwSO.js → DMBgFuVn.js} +1 -1
  137. package/web/app/immutable/chunks/{o8OJf27v.js → DNbwLiOD.js} +1 -1
  138. package/web/app/immutable/chunks/{BZNhUzh7.js → DPgIFT9a.js} +1 -1
  139. package/web/app/immutable/chunks/{CgjVDtx1.js → DPr1KaRP.js} +1 -1
  140. package/web/app/immutable/chunks/{wozemaTW.js → DQZE5Czs.js} +3 -3
  141. package/web/app/immutable/chunks/{BGFHZ0Gn.js → DQxz8V0J.js} +1 -1
  142. package/web/app/immutable/chunks/{D2Fb9aao.js → DShqgEnv.js} +1 -1
  143. package/web/app/immutable/chunks/{DDghWae5.js → DUl_-rTL.js} +1 -1
  144. package/web/app/immutable/chunks/{BhEPk3lK.js → DVDkPCJb.js} +1 -1
  145. package/web/app/immutable/chunks/{C9iz-mkw.js → DV_kwNjV.js} +1 -1
  146. package/web/app/immutable/chunks/{BcLb4U6k.js → DV_mjaDS.js} +1 -1
  147. package/web/app/immutable/chunks/{aCBgdpmi.js → DVtTRYro.js} +4 -4
  148. package/web/app/immutable/chunks/{Vj7OREkP.js → DW8KsuX4.js} +1 -1
  149. package/web/app/immutable/chunks/{CFBVUms-.js → D_TV1KoB.js} +1 -1
  150. package/web/app/immutable/chunks/{BdllAkCb.js → Da1sSxnj.js} +1 -1
  151. package/web/app/immutable/chunks/{Cal0nWOf.js → Da4Iij0H.js} +1 -1
  152. package/web/app/immutable/chunks/{BGhLlR2Z.js → Dc2cxcpy.js} +1 -1
  153. package/web/app/immutable/chunks/{CvLqwfko.js → Dc9RwHk1.js} +1 -1
  154. package/web/app/immutable/chunks/{C5vF3pAx.js → DddS0Lxi.js} +1 -1
  155. package/web/app/immutable/chunks/{xgWQsr-g.js → De2qZObv.js} +3 -3
  156. package/web/app/immutable/chunks/{CUtP3PhY.js → Dfq3kecl.js} +1 -1
  157. package/web/app/immutable/chunks/{DUgG-2k6.js → Di_Co9NR.js} +1 -1
  158. package/web/app/immutable/chunks/{CeOSarF3.js → Dix5ieD0.js} +1 -1
  159. package/web/app/immutable/chunks/{Bgg-wBTF.js → DjrWSiZH.js} +1 -1
  160. package/web/app/immutable/chunks/{9RsJ-LA0.js → Dky-2Jfq.js} +1 -1
  161. package/web/app/immutable/chunks/{an5t-R7s.js → Dl-1cK26.js} +1 -1
  162. package/web/app/immutable/chunks/{z5Kqmpp_.js → DlZGWt2o.js} +1 -1
  163. package/web/app/immutable/chunks/{DKmM0bqR.js → DpVk5aau.js} +1 -1
  164. package/web/app/immutable/chunks/{DRKAw6pI.js → Dpq4LLhj.js} +1 -1
  165. package/web/app/immutable/chunks/{CFvkwWFr.js → DprVQ2cA.js} +1 -1
  166. package/web/app/immutable/chunks/{VIItGFPL.js → Dq9gyYYW.js} +3 -3
  167. package/web/app/immutable/chunks/{gjFD8LCr.js → Dr8h9pQh.js} +1 -1
  168. package/web/app/immutable/chunks/{BiTsq1kw.js → DtA3iCKc.js} +1 -1
  169. package/web/app/immutable/chunks/{BrMgU118.js → DuDV8ZK3.js} +1 -1
  170. package/web/app/immutable/chunks/{CRtL6sYK.js → DvjdgbnN.js} +1 -1
  171. package/web/app/immutable/chunks/{CtFCyWOY.js → DyqEo12-.js} +1 -1
  172. package/web/app/immutable/chunks/{Bc_8WxDl.js → DzDKk1gg.js} +1 -1
  173. package/web/app/immutable/chunks/{DyJ_15yQ.js → E0mAs65C.js} +1 -1
  174. package/web/app/immutable/chunks/{D44dgkjW.js → FWWAmx1z.js} +2 -2
  175. package/web/app/immutable/chunks/{DY3dk38M.js → Ffkre1hG.js} +1 -1
  176. package/web/app/immutable/chunks/{BL9BSWt_.js → G3nZ7pCW.js} +1 -1
  177. package/web/app/immutable/chunks/{H0XHH9Lx.js → IXLuPeCo.js} +1 -1
  178. package/web/app/immutable/chunks/{CIP1ZfWd.js → JdvuJp6h.js} +2 -2
  179. package/web/app/immutable/chunks/{CdL46F2Z.js → JpmjV7Db.js} +1 -1
  180. package/web/app/immutable/chunks/{ClCKezvS.js → Jx27GIgX.js} +2 -2
  181. package/web/app/immutable/chunks/{B7Wb6zTq.js → K1lMPseK.js} +1 -1
  182. package/web/app/immutable/chunks/{_3D340Va.js → LXOG-o0_.js} +1 -1
  183. package/web/app/immutable/chunks/{DhMj2plM.js → MTrJWGR3.js} +1 -1
  184. package/web/app/immutable/chunks/{xO5nwwWo.js → MXy6fSLt.js} +1 -1
  185. package/web/app/immutable/chunks/{W4t3dmSv.js → MyzIOb1W.js} +1 -1
  186. package/web/app/immutable/chunks/{D8DZcNyr.js → PTBua5Xh.js} +1 -1
  187. package/web/app/immutable/chunks/{Dn9JK5a2.js → QM7Mq3rU.js} +1 -1
  188. package/web/app/immutable/chunks/{BxWSOWVO.js → QOrjinFU.js} +3 -3
  189. package/web/app/immutable/chunks/{DRkmccaa.js → SrK4MHE8.js} +1 -1
  190. package/web/app/immutable/chunks/{DDI0uI_H.js → SvwZEEzi.js} +1 -1
  191. package/web/app/immutable/chunks/{CKHgkzsh.js → U9kPfLYu.js} +1 -1
  192. package/web/app/immutable/chunks/{FNHey2fE.js → UZLf_gOh.js} +1 -1
  193. package/web/app/immutable/chunks/{CekHYIsk.js → WEBZ_o06.js} +1 -1
  194. package/web/app/immutable/chunks/{h1uEjX6Q.js → WcA2iudD.js} +1 -1
  195. package/web/app/immutable/chunks/{CNB2bBwk.js → XsSJjm3Z.js} +8 -8
  196. package/web/app/immutable/chunks/{HECvQSCC.js → Z8gxmaiy.js} +1 -1
  197. package/web/app/immutable/chunks/{h3ky2Xtl.js → ZXJR49AE.js} +1 -1
  198. package/web/app/immutable/chunks/{DYFkelx6.js → Zy5yxdde.js} +1 -1
  199. package/web/app/immutable/chunks/{DtYBp20I.js → aum-ppe_.js} +1 -1
  200. package/web/app/immutable/chunks/{BE4lD4BS.js → dIHdrZ0J.js} +1 -1
  201. package/web/app/immutable/chunks/{BLqH6j99.js → e4uVi_xz.js} +1 -1
  202. package/web/app/immutable/chunks/{CHF-Yq0C.js → gZyD4Xgg.js} +1 -1
  203. package/web/app/immutable/chunks/{EpMOyykO.js → hO5lTYJC.js} +1 -1
  204. package/web/app/immutable/chunks/{B4RPI3PE.js → iQC_aRCT.js} +1 -1
  205. package/web/app/immutable/chunks/{IoeO06yf.js → j08cx_T3.js} +1 -1
  206. package/web/app/immutable/chunks/{Duw-IZjh.js → koCKQeZ_.js} +1 -1
  207. package/web/app/immutable/chunks/{DNMw7H4R.js → laFj_6My.js} +1 -1
  208. package/web/app/immutable/chunks/{C6yKW00v.js → ljoDFKjK.js} +1 -1
  209. package/web/app/immutable/chunks/{WTd8htj2.js → ngC86qBA.js} +1 -1
  210. package/web/app/immutable/chunks/{D8dxdzMn.js → olmjZOKg.js} +1 -1
  211. package/web/app/immutable/chunks/{YNqVM6Pn.js → ozsIGez9.js} +1 -1
  212. package/web/app/immutable/chunks/{kslXii-P.js → p0XTH9N8.js} +1 -1
  213. package/web/app/immutable/chunks/{DQ0fhYWC.js → pJfd5MmO.js} +1 -1
  214. package/web/app/immutable/chunks/{DlAbpA5d.js → qKduNlhU.js} +1 -1
  215. package/web/app/immutable/chunks/{y6VRBo2M.js → qRsIi_ln.js} +1 -1
  216. package/web/app/immutable/chunks/{B5F8O-gO.js → rbIA3dG7.js} +1 -1
  217. package/web/app/immutable/chunks/{CWhinB9Y.js → tJ-CDXo8.js} +12 -12
  218. package/web/app/immutable/chunks/{D1gMbWP8.js → tksjIHll.js} +1 -1
  219. package/web/app/immutable/chunks/{GM1mBWt-.js → ufjD9HMd.js} +1 -1
  220. package/web/app/immutable/chunks/{D8a7wHlQ.js → vAfS3WCg.js} +1 -1
  221. package/web/app/immutable/chunks/{9a62qcQ7.js → vzubbBuY.js} +1 -1
  222. package/web/app/immutable/chunks/{Tbbe1dbh.js → xP-uKOUF.js} +1 -1
  223. package/web/app/immutable/entry/{app.D05YlZME.js → app.Dc4YeEY_.js} +2 -2
  224. package/web/app/immutable/entry/start.PtYCYwR4.js +1 -0
  225. package/web/app/immutable/nodes/{0.LnuswXdL.js → 0.DbnCL5nQ.js} +1 -1
  226. package/web/app/immutable/nodes/{1.BBz2p_l7.js → 1.CVS85gWq.js} +1 -1
  227. package/web/app/immutable/nodes/{10.Bkss7kyV.js → 10.CZl73L63.js} +1 -1
  228. package/web/app/immutable/nodes/{12.ahtCER6A.js → 12.ovtxIhM8.js} +1 -1
  229. package/web/app/immutable/nodes/{13.DYGu0QHS.js → 13.Bu_iJM_J.js} +1 -1
  230. package/web/app/immutable/nodes/{14.CHRRgsAs.js → 14.CT1XXzad.js} +1 -1
  231. package/web/app/immutable/nodes/{15.De0cpvot.js → 15.LrePapt-.js} +1 -1
  232. package/web/app/immutable/nodes/{16.DJqmOr4R.js → 16.CVL9-Zg8.js} +2 -2
  233. package/web/app/immutable/nodes/2.BoJKKzRY.js +9 -0
  234. package/web/app/immutable/nodes/{3.CjrKR4es.js → 3.DyGbBGpY.js} +1 -1
  235. package/web/app/immutable/nodes/{4.Cc1Wrh3X.js → 4.Bv-XaVrT.js} +1 -1
  236. package/web/app/immutable/nodes/{5.riH2s22o.js → 5.D3L4L-Jl.js} +1 -1
  237. package/web/app/immutable/nodes/{6.DFzfBxxH.js → 6.CCiQpsFo.js} +1 -1
  238. package/web/app/immutable/nodes/{7.DuBvggKz.js → 7.BmWbhC6E.js} +1 -1
  239. package/web/app/immutable/nodes/{8.D0_snN-z.js → 8.DqfjoiGI.js} +4 -4
  240. package/web/app/immutable/nodes/{9.FxuJzZaQ.js → 9.B6Z2Rp8_.js} +4 -4
  241. package/web/app/version.json +1 -1
  242. package/web/index.html +10 -10
  243. package/web/app/immutable/assets/0.Hnrlh_nF.css +0 -1
  244. package/web/app/immutable/assets/5.MJsnOXij.css +0 -1
  245. package/web/app/immutable/chunks/CZOawK4P.js +0 -18
  246. package/web/app/immutable/chunks/Cf3hiWsI.js +0 -1
  247. package/web/app/immutable/chunks/Dmk6CuVf.js +0 -324
  248. package/web/app/immutable/chunks/l87kbv25.js +0 -1
  249. package/web/app/immutable/entry/start.CltNpI3_.js +0 -1
  250. package/web/app/immutable/nodes/2.0WZE4VZ1.js +0 -9
@@ -1,4 +1,4 @@
1
- import{a as o,N as ht,an as dt,aE as yt,d as pt,k as ft,p as gt,aI as st,L as kt,aG as mt,K as wt,aF as _t,O as bt,r as xt}from"./47q6TsqV.js";import{g as I}from"./CJhZDVuE.js";var et=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],O={trace:o(I(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(I(function(t,s,i,c,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(I(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),"parseError"),parse:o(I(function(t){var s=this,i=[0],c=[],f=[null],n=[],v=this.table,w="",L=0,$=0,T=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var F=b.yylloc;n.push(F);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(N){i.length=i.length-2*N,f.length=f.length-N,n.length=n.length-N}I(Z,"popStack"),o(Z,"popStack");function q(){var N;return N=c.pop()||b.lex()||A,typeof N!="number"&&(N instanceof Array&&(c=N,N=c.pop()),N=s.symbols_[N]||N),N}I(q,"lex"),o(q,"lex");for(var P,W,D,Q,j={},K,R,it,X;;){if(W=i[i.length-1],this.defaultActions[W]?D=this.defaultActions[W]:((P===null||typeof P>"u")&&(P=q()),D=v[W]&&v[W][P]),typeof D>"u"||!D.length||!D[0]){var J="";X=[];for(K in v[W])this.terminals_[K]&&K>T&&X.push("'"+this.terminals_[K]+"'");b.showPosition?J="Parse error on line "+(L+1)+`:
1
+ import{a as o,N as ht,an as dt,aE as yt,d as pt,k as ft,p as gt,aI as st,L as kt,aG as mt,K as wt,aF as _t,O as bt,r as xt}from"./D3vOZLLK.js";import{g as I}from"./Clof0uHU.js";var et=(function(){var e=o(function(M,t,s,i){for(s=s||{},i=M.length;i--;s[M[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],p=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],O={trace:o(I(function(){},"trace"),"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(I(function(t,s,i,c,f,n,v){var w=n.length-1;switch(f){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:p,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:p,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(I(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),"parseError"),parse:o(I(function(t){var s=this,i=[0],c=[],f=[null],n=[],v=this.table,w="",L=0,$=0,T=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var F=b.yylloc;n.push(F);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Z(N){i.length=i.length-2*N,f.length=f.length-N,n.length=n.length-N}I(Z,"popStack"),o(Z,"popStack");function q(){var N;return N=c.pop()||b.lex()||A,typeof N!="number"&&(N instanceof Array&&(c=N,N=c.pop()),N=s.symbols_[N]||N),N}I(q,"lex"),o(q,"lex");for(var P,W,D,Q,j={},K,R,it,X;;){if(W=i[i.length-1],this.defaultActions[W]?D=this.defaultActions[W]:((P===null||typeof P>"u")&&(P=q()),D=v[W]&&v[W][P]),typeof D>"u"||!D.length||!D[0]){var J="";X=[];for(K in v[W])this.terminals_[K]&&K>T&&X.push("'"+this.terminals_[K]+"'");b.showPosition?J="Parse error on line "+(L+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[P]||P)+"'":J="Parse error on line "+(L+1)+": Unexpected "+(P==A?"end of input":"'"+(this.terminals_[P]||P)+"'"),this.parseError(J,{text:b.match,token:this.terminals_[P]||P,line:b.yylineno,loc:F,expected:X})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+P);switch(D[0]){case 1:i.push(P),f.push(b.yytext),n.push(b.yylloc),i.push(D[1]),P=null,$=b.yyleng,w=b.yytext,L=b.yylineno,F=b.yylloc;break;case 2:if(R=this.productions_[D[1]][1],j.$=f[f.length-R],j._$={first_line:n[n.length-(R||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(R||1)].first_column,last_column:n[n.length-1].last_column},U&&(j._$.range=[n[n.length-(R||1)].range[0],n[n.length-1].range[1]]),Q=this.performAction.apply(j,[w,$,L,S.yy,D[1],f,n].concat(V)),typeof Q<"u")return Q;R&&(i=i.slice(0,-1*R*2),f=f.slice(0,-1*R),n=n.slice(0,-1*R)),i.push(this.productions_[D[1]][0]),f.push(j.$),n.push(j._$),it=v[i[i.length-2]][i[i.length-1]],i.push(it);break;case 3:return!0}}return!0},"parse"),"parse")},C=(function(){var M={EOF:1,parseError:o(I(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var f=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:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1,2 +1,2 @@
1
- import{N as L,f as G,an as V,ak as j,av as Q,o as X,c as z}from"./CZOawK4P.js";import{Gt as u,mC as _,GC as N,bb as v,W as Y,mo as B,q1 as q,mB as W,qn as $,jt as Z,ql as D,GV as O,pM as J,fv as P,q2 as K,Y as tt,b9 as et,g as nt}from"./Ba4gy30X.js";import{s as x,ac as st}from"./Bw0bJwpw.js";const ot=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function it(t){const e=t.metadata;if(e&&typeof e=="object"){if(e.type==="question_answers")return!1;if(!L(e))return!0}const n=G(t);return ot.some(s=>n.startsWith(s))}const rt=1440*60*1e3;function at(t){let e=null;for(const n of t){if(it({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(e===null||s>e)&&(e=s)}return e}const ct=50,lt=20;function E(t,e){return t===null||e!==null&&e>t?e:t}async function _t(t,e){let n,s=null;for(let i=0;i<lt;i++){const o=await t({limit:ct,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=e?.newestId!=null?c.findIndex(a=>a.id===e.newestId):-1,r=at(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,e?.latest??null),newestId:s};if(r!==null)return{latest:E(r,e?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:e?.latest??null,newestId:s}}function ut(t,e){return t!=null&&t<=e&&t>e-rt}const y=new Map;function dt(t){return y.has(t)}function Bt(t){return y.get(t)}function Wt(t){y.set(t.agentId,t)}function Rt(t){y.delete(t)}u.createSelector(t=>t.hud.active);u.createSelector(t=>t.hud.feed);u.createSelector(t=>t.hud.usage);u.createSelector(t=>t.hud.usageError);const Dt=u.createSelector(t=>t.hud.rateHistory),Et=u.createSelector(t=>_(t.workspace.workspaces)),Ct=u.createSelector(t=>{const e=t.hud.usage?.totals;return e?N(e):0}),Ht=u.createSelector(t=>t.hud.burnRatePerMin),Nt=u.createSelector(t=>t.hud.burnTrend),qt=u.createSelector(t=>{const{health:e,stats:n,lastUpdated:s,hostLocality:i}=t.daemonHealth,o=n?.hostname;return{online:e!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),Pt=u.createSelector(t=>t.hud.gridFilter);u.createSelector(t=>t.hud.attentionByWorkspaceId);const Kt=u.createSelector((t,e)=>{const n=t.hud?.questionsByAgentId?.[e];if(!n)return!1;const s=t.agentSessions?.byAgentId[e]?.metadata??{};return!x(s,n.messageId)}),xt=u.createSelector(t=>t.hud.takeoverRequestWorkspaceId);function gt(t,e){return e[String(t.id)]??t.displayStatus}const A=u.createSelector(t=>{const e=t.hud.displayStatusByWorkspaceId;return _(t.workspace.workspaces).filter(n=>n.status!==v.Archived&&n.status!==v.Retired&&n.status!==v.Deleted).map(n=>{const s=gt(n,e);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(t){const e=t.agentSummary;return!e||!Array.isArray(e.agents)?[]:e.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!dt(n.id))}const Ft=u.createSelector(t=>{const e=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(t))for(const s of I(n))e[h(t,s).bucket]+=1;return e}),Ut=u.createSelector(t=>{const e={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of R.select(t))switch(e.total+=1,n.isUnread&&(e.unread+=1),n.isWaiting&&(e.waiting+=1),n.stateKey){case"wait":case"blocked":e.attention+=1;break;case"failed":e.failed+=1;break;case"in_progress":e.progress+=1;break;case"complete":e.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":e.prOpen+=1;break;case"pr_merged":e.prMerged+=1;break;default:e.idle+=1}return e}),ft=u.createSelector(t=>{const e={};for(const n of A.select(t))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(e[s.id]=s.name);return e});function C(t){if(!t.sinceTs)return 0;const e=Date.parse(t.sinceTs);return Number.isFinite(e)?e:0}const Lt=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=t.hud.questionsByAgentId,s=[];for(const i of A.select(t)){const o=String(i.id);let c=!1;for(const r of w(i,t)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||S(t,r.id))continue;const k=g?n[r.id]:void 0,f=d?B(t.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=e[o];l&&q(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),F.has(b(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>C(o)-C(i))}),Gt=u.createSelector(t=>{const e=ft.select(t);return t.hud.feed.map(n=>({...n,workspaceTitle:W(t.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?e[n.agentId]??null:null)}))}),pt={total:0,completed:0,inProgress:0};function b(t){const e=$(t.displayStatus)?t.displayStatus:"not_started";return Z(e)??"not_started"}const F=new Set(["wait","blocked","failed"]);function kt(t,e,n){if(e==="failed"){const i=n.find(c=>c.bucket==="failed"&&!S(t,c.id)),o=i?t.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(e!=="wait"&&e!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!S(t,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=t.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=t.agentSessions?.byAgentId[o.id],l=B(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function H(t){const e=typeof t.lastActivity=="string"?Date.parse(t.lastActivity):NaN;return Number.isFinite(e)?e:-1/0}function At(t){const e=n=>{const s=t.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=e(n)-e(s);if(c!==0)return c;const l=H(n),r=H(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function St(t,e){const n=new Set(t.map(r=>r.id)),s=new Map,i=[];for(const r of t){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(e);for(const r of s.values())r.sort(e);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of t)l(r,0,null);return o}function h(t,e){const n=t.agentSessions?.byAgentId[e.id],s=n?.metadata??{},i=n?B(n)?.kind??null:null,o=n?V.select(t,e.id)||typeof n.status=="string"&&D(n.status):D(e.status),c=n?O(typeof n.status=="string"?n.status:e.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":j.select(t,e.id)?a="running":o?a="idle":a=O(typeof n.status=="string"?n.status:e.status):a=e.isResponding===!0||e.isStreaming===!0?"running":O(e.status);const d=t.hud.questionsByAgentId[e.id],g=a!=="failed"&&!!d&&!x(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function U(t,e){const n=i=>typeof i=="string"&&i!==t.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(t.parentAgentId)??n(e?.parentAgentId),isBackground:t.isBackground??e?.isBackground,metadata:s(e?.metadata),agentMetadata:s(e?.agentMetadata)}}function S(t,e){return t.agentSessions?.byAgentId[e]?.notificationsMuted===!0}function mt(t){if(!t)return null;switch(t.kind){case"attention":return t.attention.reason??null;case"live-tool":case"last-tool":{const e=z(t.toolUse.name,t.toolUse.input||{});return e.hidden?null:[e.verb,e.subject,e.path].filter(Boolean).join(" ").trim()||null}default:{const e=t.text||"";return e?e.includes(`
1
+ import{N as L,f as G,an as V,ak as j,av as Q,o as X,c as z}from"./DIZ4FVb2.js";import{Gt as u,mC as _,GC as N,bb as v,W as Y,mo as B,q1 as q,mB as W,qn as $,jt as Z,ql as D,GV as O,pM as J,fv as P,q2 as K,Y as tt,b9 as et,g as nt}from"./Ba4gy30X.js";import{s as x,ac as st}from"./D0pB9PrJ.js";const ot=["[WORKSPACE EVENTS]","[TASK WAKE]","[AGENT MESSAGE]"];function it(t){const e=t.metadata;if(e&&typeof e=="object"){if(e.type==="question_answers")return!1;if(!L(e))return!0}const n=G(t);return ot.some(s=>n.startsWith(s))}const rt=1440*60*1e3;function at(t){let e=null;for(const n of t){if(it({id:n.id,timestamp:n.createdAt,metadata:n.metadata,contentBlocks:[{type:"text",text:n.preview.trimStart()}]}))continue;const s=Date.parse(n.createdAt);Number.isFinite(s)&&(e===null||s>e)&&(e=s)}return e}const ct=50,lt=20;function E(t,e){return t===null||e!==null&&e>t?e:t}async function _t(t,e){let n,s=null;for(let i=0;i<lt;i++){const o=await t({limit:ct,nextToken:n});if(!o.ok)return null;const c=o.items;s===null&&c.length>0&&(s=c[c.length-1].id);const l=e?.newestId!=null?c.findIndex(a=>a.id===e.newestId):-1,r=at(l>=0?c.slice(l+1):c);if(l>=0)return{latest:E(r,e?.latest??null),newestId:s};if(r!==null)return{latest:E(r,e?.latest??null),newestId:s};if(typeof o.nextToken!="string")return{latest:null,newestId:s};n=o.nextToken}return{latest:e?.latest??null,newestId:s}}function ut(t,e){return t!=null&&t<=e&&t>e-rt}const y=new Map;function dt(t){return y.has(t)}function Bt(t){return y.get(t)}function Wt(t){y.set(t.agentId,t)}function Rt(t){y.delete(t)}u.createSelector(t=>t.hud.active);u.createSelector(t=>t.hud.feed);u.createSelector(t=>t.hud.usage);u.createSelector(t=>t.hud.usageError);const Dt=u.createSelector(t=>t.hud.rateHistory),Et=u.createSelector(t=>_(t.workspace.workspaces)),Ct=u.createSelector(t=>{const e=t.hud.usage?.totals;return e?N(e):0}),Ht=u.createSelector(t=>t.hud.burnRatePerMin),Nt=u.createSelector(t=>t.hud.burnTrend),qt=u.createSelector(t=>{const{health:e,stats:n,lastUpdated:s,hostLocality:i}=t.daemonHealth,o=n?.hostname;return{online:e!=="down",uptimeSeconds:typeof n?.uptimeSeconds=="number"?n.uptimeSeconds:null,version:n?.version??null,fetchedAtMs:s?Date.parse(s):null,remoteHostname:i==="remote"&&o?o.split(".",1)[0]??o:null}}),Pt=u.createSelector(t=>t.hud.gridFilter);u.createSelector(t=>t.hud.attentionByWorkspaceId);const Kt=u.createSelector((t,e)=>{const n=t.hud?.questionsByAgentId?.[e];if(!n)return!1;const s=t.agentSessions?.byAgentId[e]?.metadata??{};return!x(s,n.messageId)}),xt=u.createSelector(t=>t.hud.takeoverRequestWorkspaceId);function gt(t,e){return e[String(t.id)]??t.displayStatus}const A=u.createSelector(t=>{const e=t.hud.displayStatusByWorkspaceId;return _(t.workspace.workspaces).filter(n=>n.status!==v.Archived&&n.status!==v.Retired&&n.status!==v.Deleted).map(n=>{const s=gt(n,e);return s&&s!==n.displayStatus?{...n,displayStatus:s}:n})});function I(t){const e=t.agentSummary;return!e||!Array.isArray(e.agents)?[]:e.agents.filter(n=>!!n&&typeof n=="object"&&typeof n.id=="string"&&n.status!=="deleted"&&!dt(n.id))}const Ft=u.createSelector(t=>{const e=Object.fromEntries(Y.map(n=>[n,0]));for(const n of A.select(t))for(const s of I(n))e[h(t,s).bucket]+=1;return e}),Ut=u.createSelector(t=>{const e={idle:0,unread:0,progress:0,attention:0,waiting:0,prOpen:0,prMerged:0,failed:0,completed:0,total:0};for(const n of R.select(t))switch(e.total+=1,n.isUnread&&(e.unread+=1),n.isWaiting&&(e.waiting+=1),n.stateKey){case"wait":case"blocked":e.attention+=1;break;case"failed":e.failed+=1;break;case"in_progress":e.progress+=1;break;case"complete":e.completed+=1;break;case"pr_open":case"pr_ready":case"pr_queued":e.prOpen+=1;break;case"pr_merged":e.prMerged+=1;break;default:e.idle+=1}return e}),ft=u.createSelector(t=>{const e={};for(const n of A.select(t))for(const s of I(n))typeof s.name=="string"&&s.name.length>0&&(e[s.id]=s.name);return e});function C(t){if(!t.sinceTs)return 0;const e=Date.parse(t.sinceTs);return Number.isFinite(e)?e:0}const Lt=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=t.hud.questionsByAgentId,s=[];for(const i of A.select(t)){const o=String(i.id);let c=!1;for(const r of w(i,t)){const{bucket:a,attentionKind:d,hasQuestion:g}=r;if(a!=="needs-attention"&&a!=="failed"||!r.topLevel||r.isBackground||S(t,r.id))continue;const k=g?n[r.id]:void 0,f=d?B(t.agentSessions?.byAgentId[r.id])?.reason:void 0,p=k?"question":d??void 0;s.push({workspaceId:o,workspaceTitle:i.title,kind:a==="needs-attention"?"agent_waiting":"agent_failed",...a==="needs-attention"&&p?{signal:p}:{},agentName:r.name,message:k?.question??f??null,sinceTs:r.lastActivityTs}),c=!0}const l=e[o];l&&q(l.attention)&&(s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",attention:l.attention,message:null,sinceTs:l.raisedAtTs}),c=!0),F.has(b(i))&&!c&&s.push({workspaceId:o,workspaceTitle:i.title,kind:"workspace_attention",message:null,sinceTs:null})}return s.sort((i,o)=>C(o)-C(i))}),Gt=u.createSelector(t=>{const e=ft.select(t);return t.hud.feed.map(n=>({...n,workspaceTitle:W(t.workspace.workspaces,n.source)?.title??null,resolvedAgentName:n.agentName??(n.agentId?e[n.agentId]??null:null)}))}),pt={total:0,completed:0,inProgress:0};function b(t){const e=$(t.displayStatus)?t.displayStatus:"not_started";return Z(e)??"not_started"}const F=new Set(["wait","blocked","failed"]);function kt(t,e,n){if(e==="failed"){const i=n.find(c=>c.bucket==="failed"&&!S(t,c.id)),o=i?t.agentSessions?.byAgentId[i.id]?.stopReason:null;return{kind:"failed",text:typeof o=="string"&&o.length>0?o:""}}if(e!=="wait"&&e!=="blocked")return null;const s=n.filter(i=>i.topLevel&&!i.isBackground&&!S(t,i.id));for(const i of s){if(!i.hasQuestion)continue;const o=t.hud.questionsByAgentId[i.id];if(o?.question)return{kind:"question",text:o.question}}for(const i of["blocker","discussion"])for(const o of s){if(o.attentionKind!==i)continue;const c=t.agentSessions?.byAgentId[o.id],l=B(c)?.reason;if(l)return{kind:i,text:l}}return{kind:"pending",text:""}}const m=new Set(["running","needs-attention","failed"]);function H(t){const e=typeof t.lastActivity=="string"?Date.parse(t.lastActivity):NaN;return Number.isFinite(e)?e:-1/0}function At(t){const e=n=>{const s=t.get(n.id)?.bucket;return s!==void 0&&m.has(s)?0:1};return(n,s)=>{const i=n.specialist==="spec-writer",o=s.specialist==="spec-writer";if(i!==o)return i?-1:1;const c=e(n)-e(s);if(c!==0)return c;const l=H(n),r=H(s);return l!==r?r-l:n.id<s.id?-1:n.id>s.id?1:0}}function St(t,e){const n=new Set(t.map(r=>r.id)),s=new Map,i=[];for(const r of t){const a=typeof r.parentAgentId=="string"&&r.parentAgentId!==r.id&&n.has(r.parentAgentId)?r.parentAgentId:null;if(a){const d=s.get(a)??[];d.push(r),s.set(a,d)}else i.push(r)}i.sort(e);for(const r of s.values())r.sort(e);const o=[],c=new Set,l=(r,a,d)=>{if(!c.has(r.id)){c.add(r.id),o.push({info:r,depth:a,parentAgentId:d});for(const g of s.get(r.id)??[])l(g,a+1,r.id)}};for(const r of i)l(r,0,null);for(const r of t)l(r,0,null);return o}function h(t,e){const n=t.agentSessions?.byAgentId[e.id],s=n?.metadata??{},i=n?B(n)?.kind??null:null,o=n?V.select(t,e.id)||typeof n.status=="string"&&D(n.status):D(e.status),c=n?O(typeof n.status=="string"?n.status:e.status):null,l=!!n&&c!=="failed"&&c!=="done"&&(n.isWaitingForOtherAgents===!0||Array.isArray(n.waitingForAgentIds)&&n.waitingForAgentIds.length>0||Array.isArray(n.waitingOnHooks)&&n.waitingOnHooks.length>0||Array.isArray(n.waitingOnPrMonitors)&&n.waitingOnPrMonitors.length>0||Array.isArray(n.waitingOnScriptMonitors)&&n.waitingOnScriptMonitors.length>0),r=!!n&&(n.turnInFlight===!0||n.liveTurnOpen===!0);let a;n?l&&!r&&n.isStreaming!==!0&&n.isProcessing!==!0?a="idle":j.select(t,e.id)?a="running":o?a="idle":a=O(typeof n.status=="string"?n.status:e.status):a=e.isResponding===!0||e.isStreaming===!0?"running":O(e.status);const d=t.hud.questionsByAgentId[e.id],g=a!=="failed"&&!!d&&!x(s,d.messageId);return{bucket:a==="failed"?"failed":i!==null||g?"needs-attention":a,attentionKind:i,hasQuestion:g,isRunning:a==="running"}}function U(t,e){const n=i=>typeof i=="string"&&i!==t.id?i:null,s=i=>({isBackground:i?.isBackground,createdByAgentId:n(i?.createdByAgentId)});return{parentAgentId:n(t.parentAgentId)??n(e?.parentAgentId),isBackground:t.isBackground??e?.isBackground,metadata:s(e?.metadata),agentMetadata:s(e?.agentMetadata)}}function S(t,e){return t.agentSessions?.byAgentId[e]?.notificationsMuted===!0}function mt(t){if(!t)return null;switch(t.kind){case"attention":return t.attention.reason??null;case"live-tool":case"last-tool":{const e=z(t.toolUse.name,t.toolUse.input||{});return e.hidden?null:[e.verb,e.subject,e.path].filter(Boolean).join(" ").trim()||null}default:{const e=t.text||"";return e?e.includes(`
2
2
  `)?X(e)||null:e:null}}}function w(t,e){const n=I(t),s=new Map(n.map(o=>[o.id,h(e,o)]));return St(n,At(s)).map(({info:o,depth:c,parentAgentId:l})=>{const r=e.agentSessions?.byAgentId[o.id],a=U(o,r),{bucket:d,attentionKind:g,hasQuestion:k}=s.get(o.id)??h(e,o),f=Array.isArray(r?.waitingForAgentIds)?r.waitingForAgentIds.filter(p=>typeof p=="string"):[];return{id:o.id,name:o.name,bucket:d,lastActivityTs:o.lastActivity??null,line:mt(Q.select(e,o.id)),parentAgentId:l,depth:c,treePrefix:"",topLevel:P(a)==="topLevel",isBackground:J(a),attentionKind:g,hasQuestion:k,isWaitingForAgents:r?.isWaitingForOtherAgents===!0||f.length>0||Array.isArray(r?.waitingOnHooks)&&r.waitingOnHooks.length>0||Array.isArray(r?.waitingOnPrMonitors)&&r.waitingOnPrMonitors.length>0||Array.isArray(r?.waitingOnScriptMonitors)&&r.waitingOnScriptMonitors.length>0,waitingForAgentIds:f}})}function ht(t){const e=new Set;for(const i of t)for(const o of i.waitingForAgentIds)e.add(o);const n=i=>m.has(i.bucket)||i.isWaitingForAgents||e.has(i.id);return t.filter((i,o)=>{if(n(i))return!0;for(let c=o+1;c<t.length&&!(t[c].depth<=i.depth);c++)if(n(t[c]))return!0;return!1}).map((i,o,c)=>{if(i.depth===0)return{...i,treePrefix:""};let l=!0;for(let r=o+1;r<c.length&&!(c[r].depth<i.depth);r++)if(c[r].depth===i.depth){l=!1;break}return{...i,treePrefix:(i.depth>=2?"│ ":"")+(l?"└─":"├─")}})}const R=u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId,n=st.select(t);return A.select(t).map(s=>{const i=String(s.id),o=n.indexOf(i),c=e[i]?.attention??(typeof s.attention=="string"&&K(s.attention)?s.attention:null),l=w(s,t),r=b(s),a=t.tokenUsage?.byWorkspaceId[i]?.totals,d=t.workspaceTasks?.byWorkspaceId[i]?.stats,g=typeof s.statusMessage=="string"&&s.statusMessage.trim().length>0?s.statusMessage:null;return{workspaceId:i,title:s.title,repoRef:s.repositoryName?`${s.repositoryOwner?`${s.repositoryOwner}/`:""}${s.repositoryName}`:s.branch,stateKey:r,attention:c,isUnread:c===tt,isWaiting:s.waiting===!0,statusMessage:g,attentionSnippet:kt(t,r,l),prNumber:typeof s.prNumber=="number"?s.prNumber:null,keySlot:o===-1?null:o,tasks:d?{total:d.total,completed:d.completed,inProgress:d.inProgress}:pt,tokens:a?N(a):0,agents:ht(l)}})}),M=4;function yt(t,e,n){const s=t.agentSessions?.byAgentId[n.id];return!s||String(s.workspaceId)!==e||s.pendingDeleteAt||P(U(n,s))!=="topLevel"?!1:!S(t,n.id)}const It=u.createSelector(t=>{const e={},n=t.hud.attentionByWorkspaceId;for(const s of A.select(t)){const i=String(s.id),o=new Map,c=(f,p)=>{const T=o.get(f)??[];T.includes(p)||T.push(p),o.set(f,T)},r=I(s).filter(f=>yt(t,i,f));for(const f of r){const p=h(t,f);p.bucket==="failed"?c("failed",f.name):p.hasQuestion?c("question",f.name):p.attentionKind==="blocker"?c("blocker",f.name):p.attentionKind==="discussion"&&c("discussion",f.name),p.isRunning&&c("running",f.name)}const a=b(s);a==="failed"&&!o.has("failed")&&o.set("failed",[]),a==="blocked"&&!o.has("blocker")&&o.set("blocker",[]),a==="wait"&&!o.has("question")&&!o.has("blocker")&&!o.has("discussion")&&o.set("needs_input",[]);const d=n[i]?.attention??(typeof s.attention=="string"&&K(s.attention)?s.attention:null);d==="review_required"&&o.set("review",[]),d==="unread"&&o.set("unread",[]),s.activity==="agent_running"&&!o.has("running")&&o.set("running",[]);const g=et.flatMap(f=>{const p=o.get(f);return p?[{category:f,count:Math.max(1,p.length),agentNames:p}]:[]});if(g.length===0)continue;const k=g.length>M;e[i]={agentCount:r.length,categories:g,visibleCategories:k?g.slice(0,M-1):g,hiddenCategoryCount:k?g.length-(M-1):0}}return e});u.createSelector(t=>{const e=t.hud.attentionByWorkspaceId;let n=0;for(const s of A.select(t)){let i=!1;for(const l of w(s,t))l.topLevel&&!l.isBackground&&!S(t,l.id)&&(l.bucket==="failed"||l.attentionKind!==null||l.hasQuestion)&&(n+=1,i=!0);const o=e[String(s.id)],c=o!==void 0&&q(o.attention);c&&(n+=1),F.has(b(s))&&!i&&!c&&(n+=1)}return n});function bt(t,e,n,s){const i=s.slice().sort((r,a)=>a.createdAt-r.createdAt);for(const r of i){const d=t.agentSessions?.byAgentId[r.agentId]?.metadata?.completionReport;if(typeof d=="string"&&d.trim().length>0)return d}const o=t.workspaceNotes?.byWorkspaceId[e]?.notes,c=o?W(o,n):void 0,l=c?.content||c?.contentPreview;return typeof l=="string"&&l.trim().length>0?l:null}const Vt=u.createSelector((t,e)=>{const n=R.select(t).find(a=>a.workspaceId===e);if(!n)return null;const s=W(t.workspace.workspaces,e),i=s?w(s,t):[],o=new Map(i.map(a=>[a.id,a])),c=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{},l=t.workspaceTasks?.byWorkspaceId[e],r=l?_(l.tasks).filter(a=>a.status!=="cancelled").map(a=>{const d=Object.values(c[a.id]??{});return{id:a.id,title:a.title,status:a.status,agents:d.map(g=>o.get(g.agentId)).filter(g=>!!g),report:a.status==="complete"?bt(t,e,a.id,d):null,...a.specLinked!==void 0?{specLinked:a.specLinked}:{},...a.dependsOn?{dependsOn:a.dependsOn}:{},...a.conflictsWith?{conflictsWith:a.conflictsWith}:{},...a.unmetDependsOn?{unmetDependsOn:a.unmetDependsOn}:{}}}):[];return{workspaceId:e,title:n.title,repoRef:n.repoRef,statusMessage:n.statusMessage,keySlot:n.keySlot,stats:n.tasks,tasks:r,activeAgents:i.filter(a=>m.has(a.bucket)),idleAgents:i.filter(a=>!m.has(a.bucket))}}),wt=new Set(["failed","blocker","question","discussion","needs_input","review"]);function Tt(t){for(const e of t?.categories??[])switch(e.category){case"failed":return"failure";case"blocker":return"blocker";case"question":return"question";case"review":return"review"}return"none"}const jt=u.createSelector(t=>{const e=R.select(t),n=It.select(t),s=new Map(A.select(t).map(o=>[String(o.id),o])),i={action:[],unread:[],active:[]};for(const o of e){const c=s.get(o.workspaceId);if(!c||c.id===nt||!ut(t.hud.dockConversationAtByWorkspaceId[o.workspaceId],t.hud.dockRecencyNow))continue;const l=n[o.workspaceId],r=l?.categories??[],a=r.some(f=>wt.has(f.category)),d=o.isUnread,g=r.some(f=>f.category==="running"),k=a?"action":d?"unread":"active";i[k].push({workspace:c,badgeKind:Tt(l),priorityGroup:k,isUnread:d,isRunning:g,isWaiting:o.isWaiting})}return[...i.action,...i.unread,...i.active].sort((o,c)=>t.hud.dockConversationAtByWorkspaceId[String(c.workspace.id)]-t.hud.dockConversationAtByWorkspaceId[String(o.workspace.id)]||String(o.workspace.id).localeCompare(String(c.workspace.id)))}),Qt=u.createSelector(t=>t.hud.dockPlacement),Xt=u.createSelector(t=>t.hud.dockPlacementError),zt=u.createSelector(t=>t.hud.dockFocusRequest),Yt=u.createSelector(t=>t.hud.dockDragStartResult),$t=u.createSelector(t=>t.hud.dockResizeStartResult),Zt=u.createSelector(t=>({pending:t.hud.dockMachineSwitching,error:t.hud.dockMachineSwitchError}));export{Ut as A,It as B,Wt as C,it as a,Yt as b,zt as c,Zt as d,Qt as e,Xt as f,Bt as g,$t as h,dt as i,jt as j,Kt as k,Ft as l,Lt as m,Ht as n,Nt as o,Gt as p,Pt as q,Rt as r,_t as s,Dt as t,qt as u,xt as v,Vt as w,Ct as x,R as y,Et as z};
@@ -1,4 +1,4 @@
1
- import{g as gt}from"./YNqVM6Pn.js";import{d as mt,g as lt,f as xt,e as kt}from"./Bu8Bi7-A.js";import{aK as _t,c6 as vt,aL as bt,c7 as wt,aP as Tt,c9 as St,f as s,aO as R,c3 as X,a6 as $t,a0 as Mt}from"./CJhZDVuE.js";import{d as it}from"./DQ0fhYWC.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
1
+ import{g as gt}from"./ozsIGez9.js";import{d as mt,g as lt,f as xt,e as kt}from"./ClloJpHM.js";import{aK as _t,c6 as vt,aL as bt,c7 as wt,aP as Tt,c9 as St,f as s,aO as R,c3 as X,a6 as $t,a0 as Mt}from"./Clof0uHU.js";import{d as it}from"./pJfd5MmO.js";var U=(function(){var t=s(function(h,r,n,l){for(n=n||{},l=h.length;l--;n[h[l]]=r);return n},"o"),e=[6,8,10,11,12,14,16,17,18],a=[1,9],f=[1,10],i=[1,11],u=[1,12],p=[1,13],o=[1,14],g={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:s(function(r,n,l,y,d,c,v){var k=c.length-1;switch(d){case 1:return c[k-1];case 2:this.$=[];break;case 3:c[k-1].push(c[k]),this.$=c[k-1];break;case 4:case 5:this.$=c[k];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(c[k].substr(6)),this.$=c[k].substr(6);break;case 9:this.$=c[k].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=c[k].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(c[k].substr(8)),this.$=c[k].substr(8);break;case 13:y.addTask(c[k-1],c[k]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:a,12:f,14:i,16:u,17:p,18:o},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:s(function(r,n){if(n.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=n,l}},"parseError"),parse:s(function(r){var n=this,l=[0],y=[],d=[null],c=[],v=this.table,k="",C=0,Q=0,yt=2,D=1,dt=c.slice.call(arguments,1),_=Object.create(this.lexer),I={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(I.yy[O]=this.yy[O]);_.setInput(r,I.yy),I.yy.lexer=_,I.yy.parser=this,typeof _.yylloc>"u"&&(_.yylloc={});var Y=_.yylloc;c.push(Y);var ft=_.options&&_.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function pt(w){l.length=l.length-2*w,d.length=d.length-w,c.length=c.length-w}s(pt,"popStack");function tt(){var w;return w=y.pop()||_.lex()||D,typeof w!="number"&&(w instanceof Array&&(y=w,w=y.pop()),w=n.symbols_[w]||w),w}s(tt,"lex");for(var b,A,T,q,F={},N,M,et,z;;){if(A=l[l.length-1],this.defaultActions[A]?T=this.defaultActions[A]:((b===null||typeof b>"u")&&(b=tt()),T=v[A]&&v[A][b]),typeof T>"u"||!T.length||!T[0]){var H="";z=[];for(N in v[A])this.terminals_[N]&&N>yt&&z.push("'"+this.terminals_[N]+"'");_.showPosition?H="Parse error on line "+(C+1)+`:
2
2
  `+_.showPosition()+`
3
3
  Expecting `+z.join(", ")+", got '"+(this.terminals_[b]||b)+"'":H="Parse error on line "+(C+1)+": Unexpected "+(b==D?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(H,{text:_.match,token:this.terminals_[b]||b,line:_.yylineno,loc:Y,expected:z})}if(T[0]instanceof Array&&T.length>1)throw new Error("Parse Error: multiple actions possible at state: "+A+", token: "+b);switch(T[0]){case 1:l.push(b),d.push(_.yytext),c.push(_.yylloc),l.push(T[1]),b=null,Q=_.yyleng,k=_.yytext,C=_.yylineno,Y=_.yylloc;break;case 2:if(M=this.productions_[T[1]][1],F.$=d[d.length-M],F._$={first_line:c[c.length-(M||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(M||1)].first_column,last_column:c[c.length-1].last_column},ft&&(F._$.range=[c[c.length-(M||1)].range[0],c[c.length-1].range[1]]),q=this.performAction.apply(F,[k,Q,C,I.yy,T[1],d,c].concat(dt)),typeof q<"u")return q;M&&(l=l.slice(0,-1*M*2),d=d.slice(0,-1*M),c=c.slice(0,-1*M)),l.push(this.productions_[T[1]][0]),d.push(F.$),c.push(F._$),et=v[l[l.length-2]][l[l.length-1]],l.push(et);break;case 3:return!0}}return!0},"parse")},m=(function(){var h={EOF:1,parseError:s(function(n,l){if(this.yy.parser)this.yy.parser.parseError(n,l);else throw new Error(n)},"parseError"),setInput:s(function(r,n){return this.yy=n||this.yy||{},this._input=r,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:s(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var n=r.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:s(function(r){var n=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;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),l.length-1&&(this.yylineno-=l.length-1);var d=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:l?(l.length===y.length?this.yylloc.first_column:0)+y[y.length-l.length].length-l[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(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:s(function(r){this.unput(this.match.slice(r))},"less"),pastInput:s(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var r=this.pastInput(),n=new Array(r.length+1).join("-");return r+this.upcomingInput()+`
@@ -1,8 +1,8 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/4tDE6wja.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/CNB2bBwk.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/BxWSOWVO.js","/app/immutable/chunks/cgVH8CzA.js","/app/immutable/chunks/B-No_QoN.js","/app/immutable/chunks/Bmozba5L.js","/app/immutable/chunks/C_fOH8SE.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/-VmI8gyW.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/aVsZmAEF.js","/app/immutable/chunks/VIItGFPL.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/CZOawK4P.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/C2-6X3Z3.js","/app/immutable/chunks/Bw0bJwpw.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/aLb41s5K.js","/app/immutable/chunks/Bebubi_u.js","/app/immutable/chunks/Uc38XdXI.js","/app/immutable/chunks/9RsJ-LA0.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css"])))=>i.map(i=>d[i]);
2
- import{Gt as n,mL as w,mC as g,mB as v,l8 as te,pk as re,hD as se,tI as Je,i_ as Ye,B7 as Xe,te as Ze,mS as Re,lb as C,p0 as Qe,la as et,kP as tt,aI as de,kZ as rt,l3 as st,DA as at,B5 as nt,xz as ot,mQ as ct,ld as it}from"./Ba4gy30X.js";import{b as lt,p as ut,F as dt,z as pt}from"./55UpOZBT.js";import{aV as J,aR as ae,cA as _,cD as pe,cl as mt,dk as D,cB as Te,aS as ft,dg as ht,n as me,N as St,di as gt,c1 as yt,aj as bt,at as kt,ac as vt,bA as wt,cx as It,cU as _t,cj as Ct,bB as At}from"./CZOawK4P.js";import{q as Et}from"./Bw0bJwpw.js";import{ad as Rt,cA as Tt,aQ as Pt,aq as Ot,p as Wt}from"./Uc38XdXI.js";import{z as Nt,p as xt}from"./4tDE6wja.js";import{bo as m,_ as B}from"./DMsRLycu.js";import{i as k}from"./019JoT9w.js";import{I as Mt}from"./CY7B0zXs.js";import{c as Pe}from"./ChTqQfQN.js";import{L as W}from"./BUN1yF1L.js";import{aa as Lt,j as Dt,h as N,a3 as Ut,n as Gt}from"./Bebubi_u.js";import{q as jt}from"./FCmf5yeg.js";import{r as L}from"./DVkfuwKw.js";import{aG as Ft,I as qt,K as Ht,r as Bt}from"./VIItGFPL.js";import{bs as fe,bt as he,ax as Oe}from"./CNB2bBwk.js";import{d as $t,o as Se,l as ge,s as ye}from"./CpHIRYx9.js";const us=n.createSelector(e=>e.workspaceShare.open),ds=n.createSelector(e=>e.workspaceShare.workspaceId),ps=n.createSelector(e=>{const{open:t,workspaceId:r,session:s}=e.workspaceShare;return t&&r?{workspaceId:r,session:s}:null}),ne=n.createSelector(e=>{const{open:t,workspaceId:r,withheld:s}=e.workspaceShare;return!t||!r||s||w(e.workspaceShare,r).inviteWithheld?!1:J.select(e,r)}),ms=n.createSelector(e=>e.workspaceShare.createRequest),fs=n.createSelector(e=>e.workspaceShare.mutationGeneration),hs=n.createSelector(e=>e.workspaceShare.workspaceTitle),Ss=n.createSelector(e=>g(e.workspaceShare.members)),gs=n.createSelector((e,t)=>v(e.workspaceShare.members,t)!==void 0),ys=n.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!w(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),bs=n.createSelector(e=>{const{principals:t,members:r}=e.workspaceShare;return g(t).filter(s=>!v(r,s.principalId)&&(s.hostRole===void 0||s.hostRole==="guest"))}),ks=n.createSelector(e=>e.workspaceShare.guestCount),vs=n.createSelector(e=>e.workspaceShare.guestLimit),ws=n.createSelector(e=>e.workspaceShare.loadStatus==="loading"),Is=n.createSelector(e=>e.workspaceShare.loadError),_s=n.createSelector(e=>e.workspaceShare.creating),Cs=n.createSelector(e=>e.workspaceShare.createError),As=n.createSelector(e=>e.workspaceShare.createdLink),Es=n.createSelector(e=>e.workspaceShare.revokingInviteId),Rs=n.createSelector(e=>e.workspaceShare.removingPrincipalId),Ts=n.createSelector(e=>e.workspaceShare.addingPrincipalId),Ps=n.createSelector(e=>e.workspaceShare.actionError),Os=n.createSelector((e,t)=>w(e.workspaceShare,t).loadStatus!=="idle"),Ws=n.createSelector((e,t)=>t?g(w(e.workspaceShare,t).members):[]),Ns=n.createSelector((e,t)=>!!t&&!w(e.workspaceShare,t).withheld&&J.select(e,t));n.createSelector((e,t)=>!!t&&w(e.workspaceShare,t).withheld);const xs=n.createSelector((e,t)=>t?w(e.workspaceShare,t).removingPrincipalId:null);n.createSelector((e,t)=>t?w(e.workspaceShare,t).removeError:null);const Ms=n.createSelector(e=>e.workspaceShare.integrationAuth),Ls=n.createSelector(e=>e.workspaceShare.ownerForgeMissing),Y=n.createSelector(e=>ne.select(e)&&ae.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===_.select(e)),Vt=n.createSelector(e=>Y.select(e)?e.workspaceShare.sharingEnabled:null),Ds=n.createSelector(e=>Y.select(e)&&e.workspaceShare.sharingChecking),zt=n.createSelector(e=>Y.select(e)&&e.workspaceShare.sharingEnabling),Kt=n.createSelector(e=>Y.select(e)?e.workspaceShare.sharingError:null),Us=n.createSelector(e=>{if(!ne.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||ae.select(e)&&Vt.select(e)===null&&Kt.select(e)===null&&!zt.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),Gs=n.createSelector(e=>ne.select(e)&&!!e.workspaceShare.workspaceId&&(ae.select(e)||(be.select(e)?be.select(e)===pe.select(e)?.principal.id:mt.select(e,e.workspaceShare.workspaceId)))&&pe.select(e)?.capabilities.workspaceGuestRoles===!0),js=n.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Fs=n.createSelector(e=>e.workspaceShare.roleErrors),be=n.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?D.select(e,t)?.ownerPrincipalId??null:null}),Jt=n.createSelector(e=>{const t=_.select(e),r=lt.select(e);return{context:t,workspaceIds:t?r.filter(s=>J.select(e,s)):[]}}),qs=n.createSelector((e,t)=>{const r=w(e.workspaceShare,t);return{context:r.inviteContext,generation:r.inviteGeneration,withheld:r.inviteWithheld}}),Yt=[],Xt=n.createSelector((e,t)=>{const r=_.select(e),s=w(e.workspaceShare,t);if(!r||s.inviteContext!==r||s.inviteWithheld||!J.select(e,t))return Yt;const a=e.presence?.context===r?e.presence.members[t]:void 0,o=new Set(a?g(a).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>s.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(a&&i.redeemedByPrincipalId&&v(a,i.redeemedByPrincipalId))return!1;if(!l)return!0;const u=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(u)||c.has(u)?!1:(c.add(u),!0)})}),Hs=n.createSelector(e=>{const r=Jt.select(e).workspaceIds.flatMap(s=>Xt.select(e,s).map(a=>Date.parse(a.expiresAt)));return r.length?Math.min(...r):null});function Bs(e){return Object.entries(e).some(([t,r])=>r.available&&Et(t,r.authenticated))}const $s=n.createSelector(e=>e.hostRequirements.git),Vs=n.createSelector(e=>e.hostRequirements.node),zs=n.createSelector(e=>e.hostRequirements.gh),Ks=n.createSelector(e=>e.hostRequirements.checking),Js=n.createSelector(e=>e.hostRequirements.hasCheckedOnce);function We(e){const t=e.gitlabAuth?.statusFailed===!0;return Rt({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const Ys=n.createSelector(We),Xs=n.createSelector(e=>e.hostRequirements.node.ok&&(e.hostRequirements.git.available||We(e))),Zs=n.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Qs="22.0.0";function Zt(e){return e.length>15?`${e.slice(0,15)}…`:e}function V(e){return e.name?.trim()||Zt(e.clientId)}function ea(e){const{eligibleClients:t,ownClientId:r,driving:s,pinnedClientId:a}=e,o=t.find(l=>l.clientId===r&&l.connected),c=s!==null&&!s.connected,i=!s||s.clientId===r;return{mode:c?"offline":i?"here":"elsewhere",hostName:s?V(s):o?V(o):"",canSwitchHere:!!(o&&a!==r)}}const ta=n.createSelector(e=>e?.browserClients?.ownClientId??null),ra=n.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);n.createSelector(e=>g(e.browserClients.liveClients));const sa=n.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);n.createSelector((e,t)=>v(e.browserClients.liveClients,t));const aa=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??te).browserClient),na=n.createSelector((e,t)=>{const r=e?.browserClients?.byWorkspaceId[t];return r?.pinnedClientId!==void 0||r?.browserClient!=null});function ee(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const oa=n.createSelector((e,t)=>{const r=e?.browserClients??re,s=r.byWorkspaceId[t]?.liveClients??se(),a=g(s).filter(y=>y.capabilities.browserExec===!0).map(ee),o=(r.byWorkspaceId[t]??te).browserClient,c=r.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Nt(o):void 0;let u=null;if(o?.resolved){const y=v(s,o.resolved.clientId);u=y?ee(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?u={clientId:o.clientId,connected:!1}:l&&(u={clientId:l.clientId,connected:!1});return{eligibleClients:a,ownClientId:r.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:u,pinnedClientId:i}}),ca=n.createSelector((e,t)=>{const r=e?.browserClients??re;if(!r.ownClientId||!r.ownClientIdConfirmed)return!1;const s=r.byWorkspaceId[t]?.liveClients??se(),a=v(s,r.ownClientId);return a!==void 0&&a.capabilities.browserExec!==!0}),ia=n.createSelector((e,t,r)=>{const s=e?.browserClients??re,a=r?s.byWorkspaceId[r]?.liveClients??se():s.liveClients,o=r?s.byWorkspaceId[r]?.liveClientsLoaded:s.liveClientsLoaded,c=v(a,t);return c?{name:V(ee(c)),connected:!0}:{name:V({clientId:t}),connected:!o}}),la=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??te).tabsRevision),ua=n.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),M=new Map;function da(e,t){return M.set(e,t),()=>{M.get(e)===t&&M.delete(e)}}async function pa(e){const t=M.get(e);return t?t():null}function ma(e){M.delete(e)}const Ne="From repo config",fa="repo-config";function ha(e,t){return t==="repo-config"?m.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?m.workspace_setupScriptEditor_custom_name():e}function xe(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Qt(e){let t;try{t=JSON.parse(e)}catch{return null}return xe(t).setupScript}async function Sa(e){if(!e)return null;try{const t=await k(Mt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),r=t?.success?t.data?.content:null;return typeof r=="string"?Qt(r):null}catch{return null}}async function ga(e,t,r){if(!e||!t)return null;try{const{appClient:s}=await B(async()=>{const{appClient:o}=await import("./4tDE6wja.js").then(c=>c.X);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),a=await s.integrations.githubRepoConfig(e,t,r);return xe(a.config).setupScript}catch{return null}}function ya(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Ne&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function ba(e){const{repoConfigScript:t,lastUsed:r,genericTemplate:s}=e;return t?{content:t,name:Ne,source:"repo-config"}:r?{content:r.content,name:r.nameSource==="repo-config"?"Custom":r.name,source:r.nameSource==="repo-config"?"custom":r.nameSource??"named"}:s?{content:s.content,name:s.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Me="setup-scripts:last-used-by-repo",Le="setup-scripts:recent-by-repo",z=20,De=10,er=["repo-config","custom","named"];function oe(e,t){return t?`${e}\0${t}`:e}function Ue(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||er.includes(t.nameSource))}function K(){try{const e=localStorage.getItem(Me);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const r={};for(const[s,a]of Object.entries(t))s&&Ue(a)&&(r[s]=a);return r}catch{return{}}}function Ge(){try{const e=localStorage.getItem(Le);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const r={};for(const[s,a]of Object.entries(t)){if(!s||!Array.isArray(a))continue;const o=a.filter(Ue);o.length>0&&(r[s]=o)}return r}catch{return{}}}function tr(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function je(e){return[...e].sort((t,r)=>r.usedAt.localeCompare(t.usedAt))}function Fe(e){const t=[];for(const r of e)t.some(s=>tr(s,r))||t.push(r);return t}function ka(e,t){if(!e)return[];const r=oe(e,t),s=Ge()[r]??[],a=K()[r];return Fe(je(a?[...s,a]:s)).slice(0,De).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function rr(e,t,r){try{const s=Ge(),a=s[e]??(r?[r]:[]);s[e]=Fe([t,...je(a)]).slice(0,De);const o=Object.entries(s);o.length>z&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=z),localStorage.setItem(Le,JSON.stringify(Object.fromEntries(o)))}catch{}}function va(e,t){if(!e)return;const r=K()[oe(e,t)];return r?{name:r.name,content:r.content,nameSource:r.nameSource??"named"}:void 0}function wa(e,t,r){const s=t.content.trim();if(!e||!s)return;const a=oe(e,r),o={name:t.name,content:s,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};rr(a,o,K()[a]);try{const c=K();c[a]=o;const i=Object.entries(c);i.length>z&&(i.sort(([,l],[,u])=>u.usedAt.localeCompare(l.usedAt)),i.length=z),localStorage.setItem(Me,JSON.stringify(Object.fromEntries(i)))}catch{}}const j=Pe("ProviderAvailabilityClient");let E=null;async function Ia(){if(typeof window>"u")return j.debug("Skipping provider availability check - not in browser environment"),ke();const e=Te.select(n.state);if(E&&E.connection===e)return j.debug("Joining in-flight provider availability request"),E.promise;const t={},r=(async()=>{try{j.debug("Checking provider availability via IPC");const s=await k(xt.GET_AVAILABILITY);if(!s.success)throw new Error(s.error||"Failed to get provider availability");const a=s.data??ke();return j.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{E?.token===t&&(E=null)}})();return E={connection:e,token:t,promise:r},r}function ke(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const sr={async isAuthenticated(e){try{return await k(W.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await k(W.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await k(W.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await k(W.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await k(W.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},_a=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:sr},Symbol.toStringTag,{value:"Module"})),I={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},ar={async isAuthenticated(e){try{return await k(I.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await k(I.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await k(I.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await k(I.LOGOUT)},async fetchProjects(e){try{return await k(I.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await k(I.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,r){try{return await k(I.SEARCH_ISSUES,{query:e,project:t,...r})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await k(I.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},Ca=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:ar},Symbol.toStringTag,{value:"Module"})),ce=n.createSelector(e=>{const t=_.select(e);return!t||!ft.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),X=n.createSelector((e,t)=>v(e.repositoryCheckout.forms,t)??null),Aa=n.createSelector((e,t)=>{const r=X.select(e,t);return r?.admission===ce.select(e)&&r.status==="ready"?g(r.projects):[]}),Ea=n.createSelector((e,t)=>{const r=X.select(e,t);return r?.admission===ce.select(e)&&r.status==="ready"?g(r.branches):[]}),nr=n.createSelector((e,t)=>{const r=X.select(e,t);return!r||r.status!=="ready"||r.admission!==ce.select(e)||!r.capture||!r.project||!r.branch?null:{checkoutId:r.capture.checkoutId,revision:r.capture.revision,projectPath:r.project.projectPath,branch:r.branch.name,commitSha:r.branch.commitSha,mode:r.mode}}),Ra=n.createSelector((e,t)=>{const r=nr.select(e,t);return!!r&&(r.mode==="direct"||X.select(e,t)?.warmStatus==="ready")}),Ta="__new-workspace__",Pa="__initializer__",Oa="compact-workspace-initializer-state-prompt",Wa="onboarding-prompt",F=20*1024*1024,ve=Pe("NewWorkspaceDraft");function Na(e,t){if(e.length>F)return ve.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:F}),null;const r=Lt(t);if(r.length===0)return{text:e};const s=[];let a=e.length+2,o=0;for(const c of r){const i=JSON.stringify(c).length+1;if(a+i>F){o+=1;continue}s.push(c),a+=i}return o>0&&ve.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:F,attachmentCount:r.length,droppedCount:o}),s.length>0?{text:e,attachments:s}:{text:e}}const or="host.providerAuthStatus";function cr(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function ir(e,t){const r=t.toLowerCase(),s=e.toLowerCase();return r.startsWith(s)?/^(['’]s\s+organization)?$/.test(r.slice(s.length)):!1}function lr(e){const{email:t,orgName:r}=e??{};return t&&r?ir(t,r)?t:`${t} · ${r}`:t||r||void 0}function ur(e){const t={};for(const r of e?.providers??[]){const s={authenticated:r.authenticated??void 0},a=lr(r.identity);a!==void 0&&(s.authDetails=a),r.identity?.email&&(s.email=r.identity.email),t[r.id]=s}return t}const dr=6e4,T=new Map,q=new Map,R=new Map;let $=0,qe=0;const pr=e=>JSON.stringify([Te.select(n.state),qe,e.workspaceId??null,e.providerId??"*"]);function mr(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,s=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof s=="string"?s:void 0}function Z(e){if($+=1,e)for(const t of T.keys()){const[,,,r]=JSON.parse(t);(r===e||r==="*")&&T.delete(t)}else T.clear()}typeof fe=="function"&&fe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(mr(e)??"")&&Z()});typeof he=="function"&&he(()=>{qe+=1,Z()});function fr(e={}){const t=pr(e);if(e.force)Z(e.providerId);else{const o=T.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&T.delete(t)}const r=q.get(t);if(!e.force&&r?.generation===$)return r.promise;if(r){const o=R.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=r.promise.catch(()=>({})).then(()=>(R.get(t)===c&&R.delete(t),fr({...e,force:c.force}))).finally(()=>{R.get(t)===c&&R.delete(t)});return c={force:e.force===!0,promise:i},R.set(t,c),i}const s=$,a=Oe(or,cr(e)).then(ur).then(o=>(s===$&&T.set(t,{verdicts:o,expiresAt:Date.now()+dr}),o)).finally(()=>{q.get(t)?.promise===a&&q.delete(t)});return q.set(t,{generation:s,promise:a}),a}function xa(e,t=e,r="default",s,a){if(!jt.select(n.state))return;const o=a??ut.select(n.state,t)??dt.select(n.state,t)[0];if(!o)return;const c=pt.select(n.state,t,o),i={type:"discussion",title:s??(r==="new"?m.workspace_discussion_new_title():m.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:r}},l=c?.tabs.find(u=>Je(u,i));r==="new"&&n.dispatch(Ye(e)),n.dispatch(l?Xe(t,l.id,o):Ze(t,i,o,void 0,!0,void 0,!0))}function Ma(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?m.workspace_discussion_conversation_title():m.workspace_discussion_title():e.participants.filter(s=>s.principalId!==t).map(s=>s.displayName||s.login||m.workspace_discussion_unknownAuthor_label()).join(", ")||m.workspace_discussion_group_title()}const hr=n.createSelector((e,t,r)=>{const s=Re(e.repositoryContext,t);return r!==null&&s.binding===r?s:null});n.createSelector((e,t,r)=>{const s=hr.select(e,t.workspaceId,r);return s?.status==="ready"?v(s.roots,L(t))?.context:void 0});const La=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission)return null;const r=Re(e.repositoryContext,t.workspaceId),s=r.ownership;return!s||s.demandId!==t.demandId||s.admission!==t.admission||s.request.workspaceId!==t.workspaceId?null:{status:r.status,scope:r.scope,revision:r.revision,roots:r.status==="ready"?g(r.roots).map(a=>a.context):[],unavailableReason:r.unavailableReason}}),Da=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission)return null;const r=e.repositoryContext.selectionEdits,s=r?v(r,t.editId):void 0;return s&&s.status!=="closed"&&s.owner.admission===t.admission&&L(s.owner.root)===L(t.root)?s:null}),Ua=n.createSelector((e,t)=>{const r=e.repositoryContext.selectionEdits;return!!r&&g(r).some(s=>s.owner.root.workspaceId===t&&s.owner.admission===_.select(e)&&(s.status==="capturing"||s.status==="pending"&&(!s.observation||s.observation.attempt?.status==="pending")))}),Ga=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission||t.hostContext===null||ht.select(e,t.root.workspaceId)!==t.hostContext)return null;const r=e.repositoryContext.nativeReviewAttempts,s=r?v(r,t.attemptId):void 0;return s&&s.status!=="closed"&&s.owner.admission===t.admission&&s.owner.hostContext===t.hostContext&&L(s.owner.root)===L(t.root)?s:null}),ja=n.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?v(e.repositoryContext.nativeReviewAttempts,t):void 0),Sr=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function gr(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function yr(e){const t=new Set(Sr);return gr(e).some(r=>t.has(r))}const br=new Set(["lastActivity","statusMessage","statusImageAssetId"]),kr=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function vr(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function wr(e){if(!e.type.startsWith("file:"))return null;const t=e.data,r=t?.relativePath??t?.path??t?.filePath;return typeof r=="string"&&r.length>0?r:null}function Ir(e){const t=wr(e);return!t||yr(t)?!1:!vr(t).some(r=>kr.has(r))}function _r(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const r=Object.keys(t.changes).filter(s=>s!=="workspaceId");return r.length>0&&r.every(s=>br.has(s))}function f(e){return typeof e=="string"?e.trim():""}function P(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function we(e){const t=P(e.data),r=f(t.agentId)||f(e.sessionId),s=f(t.messageId);return r&&s?JSON.stringify([r,s]):""}function Cr(e){const t=P(e.data),r={workspaceId:e.workspaceId,closable:!0},s=a=>a?{...r,type:"note",noteId:a,title:f(t.title)||f(t.noteTitle)||m.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return s(f(t.noteId));case"task:status-changed":return s(f(t.noteId)||f(t.linkedNoteId));case"spec:updated":case"goal:updated":return s("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const a=f(t.agentId)||f(e.sessionId);return a?{...r,type:"agent",agentId:a,title:f(t.agentName)||m.layout_tabTypes_agent_title()}:null}case"file:changed":{const a=f(t.path)||f(t.relativePath);return a&&t.action!=="delete"?{...r,type:"file",filePath:a,title:a.split(/[\\/]/).pop()||a}:null}case"git:commit":{const a=f(t.commit),o=f(t.gitRootId);return a?{...r,type:"changes",title:m.layout_tabTypes_changes_title(),data:{commitHash:a,...o?{gitRootId:o}:{}}}:null}default:return null}}function Ie(e,t){const r=P(e.data),s=Object.fromEntries(Object.entries(r).filter(([,c])=>typeof c=="string")),a=c=>t?m.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return N({...e,actor:{...e.actor,name:t},data:s});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return a(N({...e,actor:{...e.actor,name:void 0},data:s}));case"agent:updated":return f(r.modelId)||r.completionReportCleared===!0?a(N({...e,actor:{...e.actor,name:void 0},data:r})):null;case"file:changed":return Ir(e)?N({...e,actor:{...e.actor,name:t},data:{path:f(r.path)||f(r.relativePath),action:f(r.action)}}):null;case"comment:added":return t?m.events_activity_authorCommented_label({author:t}):m.workspace_peopleActivity_commented_label();case"comment:resolved":return r.resolved===!1?a(m.events_activity_reopenedCommentThread_label()):r.resolved===!0?a(m.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=f(r.agentName)||f(r.toAgentName);return a(c?m.workspace_peopleActivity_messagedAgent_label({agent:c}):m.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return a(N({...e,actor:{...e.actor,name:void 0},data:{taskName:f(r.taskName)||f(r.noteTitle),newStatus:f(r.newStatus)||f(r.status)}}));case"workspace:created":return a(m.events_activity_createdWorkspace_label());case"workspace:updated":{if(_r(e))return null;const c=P(r.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=f(c.title);return a(i?m.events_activity_renamedWorkspaceTo_label({title:i}):m.events_activity_updatedWorkspace_label())}default:return null}}function x(e,t){const r=f(e);return r===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(r)?"":r}function Ar(e,t,r,s){const a=new Map(r.map(d=>[d.principalId,d])),o=new Map;for(const d of t){if(d.workspaceId!==e||d.type!=="agent:last-message")continue;const p=P(d.data),h=me({role:p.role==="user"?"user":"system",author:p.author,metadata:p.metadata}),S=we(d);if(!h||!S||typeof p.lastUserMessage!="string")continue;const b=Dt({id:f(p.messageId),role:"user",timestamp:d.timestamp,contentBlocks:[{type:"text",text:p.lastUserMessage}],author:h,metadata:p.metadata},s);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let u=0;for(const d of t){if(d.workspaceId!==e||!f(d.id)||c.has(d.id))continue;const p=Date.parse(d.timestamp);if(!Number.isFinite(p)){u++;continue}const h=P(d.data),S=d.type==="agent:message",b=S?me({role:h.role==="user"?"user":"system",author:h.author,metadata:h.metadata}):null;if(S?!b:d.actor?.type!=="user"){S&&h.role==="user"&&d.actor?.type==="user"&&St(h.metadata)&&l.push({row:null,timestamp:p,segment:u});continue}const Ke=S?f(h.messageId):"",O=S?we(d):"";if(O&&i.has(O))continue;const A=f(d.actor?.id),Q=A?a.get(A):void 0,U=b?x(b.displayName,b.principalId??"")||x(b.login,b.principalId??""):x(d.actor.name,A)||x(Q?.displayName,A)||x(Q?.login,A),le=Ie(d,"");if(!le)continue;if(!U){l.push({row:null,timestamp:p,segment:u});continue}const G=S?o.get(O)??null:null,ue=G?m.workspace_peopleActivity_actorAction_label({name:U,action:G}):Ie(d,U);ue&&(c.add(d.id),O&&i.add(O),l.push({timestamp:p,segment:u,row:{id:d.id,name:U,principalId:b?f(b.principalId)||null:A||null,avatarUrl:b?b.avatarUrl:Q?.avatarUrl??null,label:ue,actionLabel:G??le,continuation:!1,timestamp:d.timestamp,destination:Cr(d),messageId:Ke||null,messagePreview:G}}))}l.sort((d,p)=>p.timestamp-d.timestamp);const y=[];for(const[d,p]of l.entries()){if(!p.row)continue;const h=l[d-1],S=h?h.timestamp-p.timestamp:NaN;p.row.continuation=!!(p.row.principalId&&h?.row?.principalId===p.row.principalId&&h.segment===p.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(p.row)}return y}const Fa=n.createSelector(e=>e.workspaceEvents.subscriptionAttempt),qa=n.createSelector(e=>e.workspaceEvents.subscriptionGeneration),Er=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).events);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).loading);const Ha=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).nextToken);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).loadingOlder);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).olderError);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).endReached);const Ba=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),$a=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),Va=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),He=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).peopleStreams),za=n.createSelector((e,t)=>Object.values(He.select(e,t)).every(r=>r.initialized&&r.nextToken===null)),Ka=n.createSelector((e,t,r)=>{const s=Er.select(e,t),o=Ar(t,s,Tt.select(e,t),D.select(e,t)?.ownerPrincipalId)[r-1]?.timestamp,c=He.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const u=s.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!u||!(Date.parse(u)<=Date.parse(o))})}),Ja=n.createSelector((e,t)=>{const r=[],s=new Set,a=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!s.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(a.has(l))return;a.add(l)}s.add(i),r.push(c)}};for(const[c,i]of Object.entries(Ut.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of gt.select(e,t)){const i=yt.select(e,c),l=[...bt.select(e,c),...kt.select(e,c)];for(const u of l)if(u.role==="user")for(const[y,d]of(u.contentBlocks??[]).entries()){if(d.type!=="image"&&!Gt(d))continue;const p=d.id?i?.[Qe(u.id,d.id)]:void 0,h=p?.status==="loaded"?p.block:d;o({id:`${c}/${u.id}/${d.id??y}`,name:h.fileName,block:h,agentId:c,messageId:u.id,hydration:p})}}return r}),Rr=n.createSelector((e,t)=>e.context.byWorkspaceId[t]??et),Tr=n.createSelector((e,t)=>g(Rr.select(e,t).items)),Ya=n.createSelector((e,t)=>Tr.select(e,t).filter(r=>!r.parentNoteId)),Xa=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??Be),Za=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??Be),Be={},Qa=n.createSelector((e,t,r)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?v(s,r):void 0}),$e=n.createSelector((e,t)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?g(r):[]}),en=n.createSelector((e,t)=>$e.select(e,t).some(r=>r.status==="queued"||r.status==="running")),tn=n.createSelector((e,t)=>$e.select(e,t).filter(r=>r.operation.kind==="partialCommit"&&(r.status==="queued"||r.status==="running")));function _e(e){return e.title||`PR #${e.number}`}const ie=n.createSelector((e,t)=>{const r=e.gitRoots?.byWorkspaceId?.[t];return r?g(r.gitRoots):[]});function Pr(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function Or(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const rn=n.createSelector((e,t)=>{const r=D.select(e,t),s=ie.select(e,t).map(Or);return r?[Pr(r),...s]:s}),sn=n.createSelector((e,t)=>ie.select(e,t).length>0),an=n.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Wr=n.createSelector((e,t,r)=>v((e.acceptWorkflow.byWorkspaceId[t]??tt).operations,r)),nn=n.createSelector((e,t,r)=>Wr.select(e,t,r)?.status==="running"),on=n.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),cn=n.createSelector((e,t)=>{const r=vt.select(e,t)?.hasRemote??!1,s=D.select(e,t)?.pullRequests?.some(a=>a.status===de.Open||a.status===de.Draft)??!1;return{squash:!1,viaPR:r&&s,pushAfter:r,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),ln=n.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),un=n.createSelector((e,t)=>{const r=D.select(e,t),s=wt.select(e,t),a=It.select(e,t),o=r?.repositoryOwner&&r.repositoryName?`${r.repositoryOwner}/${r.repositoryName}`:void 0,c=Pt(Ot(r?.pullRequests,r?.activePullRequest,(i,l)=>Wt(i,r?.repositoryOwner,r?.repositoryName,l),_e,o),_t.select(e,t),o,ie.select(e,t),_e).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:At.select(e,t),owner:!Ct.select(e,t),authenticated:Ft.select(e),pushedCount:s.filter(i=>i.isPushed).length,hasRemote:a.hasRemote,clearReset:a.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(a.mergeHeadSha&&s[0]?.hash&&a.mergeHeadSha!==s[0].hash)}}),dn=n.createSelector((e,t,r)=>e.bgExecutor?.byWorkspaceId[t]?.executors[r]??rt),Nr=n.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??st);n.createSelector((e,t,r)=>Nr.select(e,t).operations[r]);const pn=n.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),mn=n.createSelector(e=>e.noteReadTracking.readRecords),xr="host.providerTestPrompt",Mr=$t("ok",[Se({ok:ge(!0)}).passthrough(),Se({ok:ge(!1),reason:ye().min(1),message:ye()}).passthrough()]),Lr=3e5;async function fn(e){const t=await Oe(xr,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Lr}),r=Mr.parse(t);return(r.ok||r.reason==="auth-required")&&Z(e.providerId),r}const Dr=-1,Ur=/^remote-script-lost:\s*/,Gr=["idle","starting","running","restarting","exited"],Ce=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Ae=e=>typeof e=="string"&&e.trim().length>0;function jr(e){return Ce(e)&&Ae(e.remoteAgentId)&&Ae(e.nodeId)&&Ce(e.runtime)&&Gr.includes(e.runtime.status)}function hn(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(jr):[]}function Sn(e,t,r){const s=qt(e.nodeId,r)??{nodeId:e.nodeId,name:m.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(r&&r.id===e.nodeId)return s;const a=t?.nodeId===e.nodeId?t:null;return{...s,name:a?.nodeName?.trim()||s.name,platform:Ht(a?.placement?.os,a?.placement?.arch)}}function Fr(e){return e.status==="exited"&&e.exitCode===Dr}function qr(e){const t=e.error?.trim().replace(Ur,"").trim();switch(t){case"the machine disconnected":return m.scripts_remote_lostDisconnected_label();case"the machine was removed":return m.scripts_remote_lostRemoved_label();case"the agent was deleted":return m.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return m.scripts_remote_lostAgentStopped_label();default:return t||m.scripts_remote_lostReason_fallback()}}function gn(e){if(Fr(e))return{kind:"lost",label:m.scripts_remote_lost_tooltip({reason:qr(e)})};const t=Bt(e);switch(t){case"running":return{kind:t,label:m.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:m.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:m.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:m.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:m.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:m.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:m.terminal_quakeOverlay_status_exited()}}}const H=e=>typeof e=="string"&&e.length>0,Hr=/\bremote-script-agent-ending:/;function yn(e){return!!e&&Hr.test(e)}function bn(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const r=t,s=e instanceof Error&&e.message?{message:e.message}:{};return r.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:r.update==="backend"?"backend":"machine",...H(r.machineVersion)?{machineVersion:r.machineVersion}:{},...H(r.backendVersion)?{backendVersion:r.backendVersion}:{},...s}:r.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(r.attempts)?r.attempts.flatMap(o=>{const c=o??{};return H(c.route)&&H(c.error)?[{route:c.route,error:c.error}]:[]}):[],...s}:null}function Ee(e,t,r){const a=t.find(c=>String(c.id)===e)?.name?.trim();if(a)return a;const o=r?.trim();return o||Ve(e)}function Ve(e){return e.length>14?`${e.slice(0,14)}…`:e}function kn(e,t,r){const s=new Map,a={ownerAgentId:null,ownerName:null,entries:[]},o=(i,l)=>{let u=s.get(i);return u?u.ownerName===Ve(i)&&(u.ownerName=Ee(i,r,l)):(u={ownerAgentId:i,ownerName:Ee(i,r,l),entries:[]},s.set(i,u)),u};for(const{tab:i,panelId:l,active:u}of e)(i.ownerAgentId?o(i.ownerAgentId,i.ownerAgentName):a).entries.push({tab:i,panelId:l,active:u,hidden:!1});for(const i of t){if(i.type!=="browser")continue;(i.ownerAgentId?o(i.ownerAgentId,i.ownerAgentName):a).entries.push({tab:i,active:!1,hidden:!0})}const c=[...s.values()];return a.entries.length>0&&c.push(a),c}function vn(e){const r=e.filter(a=>a.runtime.status==="running"&&a.runtime.detectedUrl?.trim()).sort((a,o)=>(o.runtime.startedAt??"").localeCompare(a.runtime.startedAt??""))[0],s=r?.runtime.detectedUrl?.trim();return!r||!s?null:{scriptId:r.id,name:r.name,url:s}}const Br={status:"idle",error:null},$r=n.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??Br);n.createSelector((e,t)=>$r.select(e,t).error);const wn=n.createSelector((e,t)=>v(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),ze=n.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),Vr=e=>e==="hydrated"||e==="live",In=n.createSelector((e,t)=>{const r=ze.select(e,t);return r==="hydrated"||r==="live"}),_n=n.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(r=>Vr(t[r]))}),Cn=n.createSelector((e,t)=>ze.select(e,t)==="live");function An(e){const{selectedProviderId:t,activeProviderId:r,recommitActive:s,dispatch:a}=e;if(t&&!(!s&&t===r))return a(at({providerId:t,enabled:!0})),a(nt(t)),a(ot()),t}function En(e){const t=[];for(const r of e){let s={};if(r.metadata)try{s=JSON.parse(r.metadata)}catch{}const a=[];if(a.push(`[${r.identifier}] ${r.title}`),r.url&&a.push(`URL: ${r.url}`),r.description&&a.push(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/BqJBJZqA.js","/app/immutable/chunks/BdrU1VNg.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/Ba4gy30X.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/chunks/BsvsTmot.js","/app/immutable/chunks/DMsRLycu.js","/app/immutable/chunks/CY7B0zXs.js","/app/immutable/chunks/XsSJjm3Z.js","/app/immutable/chunks/ZX1TUMY0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/i6wjEWTF.js","/app/immutable/chunks/Dg4AJKkW.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/D7gNyfhu.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/QOrjinFU.js","/app/immutable/chunks/cgVH8CzA.js","/app/immutable/chunks/B-No_QoN.js","/app/immutable/chunks/Bmozba5L.js","/app/immutable/chunks/C_fOH8SE.js","/app/immutable/assets/register.CUyDR59i.css","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/FCmf5yeg.js","/app/immutable/chunks/-VmI8gyW.js","/app/immutable/assets/terminal-manager.MhP_vFvK.css","/app/immutable/chunks/BnVbje9V.js","/app/immutable/chunks/Dq9gyYYW.js","/app/immutable/chunks/019JoT9w.js","/app/immutable/chunks/DIZ4FVb2.js","/app/immutable/chunks/Cy5UaoOp.js","/app/immutable/chunks/AEjnVR5F.js","/app/immutable/chunks/C235722L.js","/app/immutable/chunks/D0pB9PrJ.js","/app/immutable/chunks/55UpOZBT.js","/app/immutable/chunks/utwal-1U.js","/app/immutable/assets/connection-label.UE5obH5A.css","/app/immutable/chunks/Ci0Iahfv.js","/app/immutable/chunks/C_XZ4OIT.js","/app/immutable/chunks/8wbw8Mxv.js","/app/immutable/chunks/Dky-2Jfq.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css"])))=>i.map(i=>d[i]);
2
+ import{Gt as n,mL as w,mC as g,mB as v,l8 as te,pk as re,hD as se,tI as Je,i_ as Ye,B7 as Xe,te as Ze,mS as Re,lb as C,p0 as Qe,la as et,kP as tt,aI as de,kZ as rt,l3 as st,DA as at,B5 as nt,xz as ot,mQ as ct,ld as it}from"./Ba4gy30X.js";import{b as lt,p as ut,F as dt,z as pt}from"./55UpOZBT.js";import{aV as J,aR as ae,cA as _,cD as pe,cl as mt,dk as D,cB as Te,aS as ft,dg as ht,n as me,N as St,di as gt,c1 as yt,aj as bt,at as kt,ac as vt,bA as wt,cx as It,cU as _t,cj as Ct,bB as At}from"./DIZ4FVb2.js";import{q as Et}from"./D0pB9PrJ.js";import{ad as Rt,cA as Tt,aQ as Pt,aq as Ot,p as Wt}from"./8wbw8Mxv.js";import{z as Nt,p as xt}from"./BqJBJZqA.js";import{bo as m,_ as B}from"./DMsRLycu.js";import{i as k}from"./019JoT9w.js";import{I as Mt}from"./CY7B0zXs.js";import{c as Pe}from"./ChTqQfQN.js";import{L as W}from"./0icrH9cf.js";import{aa as Lt,j as Dt,h as N,a3 as Ut,n as Gt}from"./C_XZ4OIT.js";import{q as jt}from"./FCmf5yeg.js";import{r as L}from"./DVkfuwKw.js";import{aG as Ft,I as qt,K as Ht,r as Bt}from"./Dq9gyYYW.js";import{bs as fe,bt as he,ax as Oe}from"./XsSJjm3Z.js";import{d as $t,o as Se,l as ge,s as ye}from"./CpHIRYx9.js";const us=n.createSelector(e=>e.workspaceShare.open),ds=n.createSelector(e=>e.workspaceShare.workspaceId),ps=n.createSelector(e=>{const{open:t,workspaceId:r,session:s}=e.workspaceShare;return t&&r?{workspaceId:r,session:s}:null}),ne=n.createSelector(e=>{const{open:t,workspaceId:r,withheld:s}=e.workspaceShare;return!t||!r||s||w(e.workspaceShare,r).inviteWithheld?!1:J.select(e,r)}),ms=n.createSelector(e=>e.workspaceShare.createRequest),fs=n.createSelector(e=>e.workspaceShare.mutationGeneration),hs=n.createSelector(e=>e.workspaceShare.workspaceTitle),Ss=n.createSelector(e=>g(e.workspaceShare.members)),gs=n.createSelector((e,t)=>v(e.workspaceShare.members,t)!==void 0),ys=n.createSelector(e=>e.workspaceShare.open&&e.workspaceShare.workspaceId&&!e.workspaceShare.withheld&&!w(e.workspaceShare,e.workspaceShare.workspaceId).inviteWithheld?g(e.workspaceShare.invites).filter(t=>t.workspaceId===e.workspaceShare.workspaceId):[]),bs=n.createSelector(e=>{const{principals:t,members:r}=e.workspaceShare;return g(t).filter(s=>!v(r,s.principalId)&&(s.hostRole===void 0||s.hostRole==="guest"))}),ks=n.createSelector(e=>e.workspaceShare.guestCount),vs=n.createSelector(e=>e.workspaceShare.guestLimit),ws=n.createSelector(e=>e.workspaceShare.loadStatus==="loading"),Is=n.createSelector(e=>e.workspaceShare.loadError),_s=n.createSelector(e=>e.workspaceShare.creating),Cs=n.createSelector(e=>e.workspaceShare.createError),As=n.createSelector(e=>e.workspaceShare.createdLink),Es=n.createSelector(e=>e.workspaceShare.revokingInviteId),Rs=n.createSelector(e=>e.workspaceShare.removingPrincipalId),Ts=n.createSelector(e=>e.workspaceShare.addingPrincipalId),Ps=n.createSelector(e=>e.workspaceShare.actionError),Os=n.createSelector((e,t)=>w(e.workspaceShare,t).loadStatus!=="idle"),Ws=n.createSelector((e,t)=>t?g(w(e.workspaceShare,t).members):[]),Ns=n.createSelector((e,t)=>!!t&&!w(e.workspaceShare,t).withheld&&J.select(e,t));n.createSelector((e,t)=>!!t&&w(e.workspaceShare,t).withheld);const xs=n.createSelector((e,t)=>t?w(e.workspaceShare,t).removingPrincipalId:null);n.createSelector((e,t)=>t?w(e.workspaceShare,t).removeError:null);const Ms=n.createSelector(e=>e.workspaceShare.integrationAuth),Ls=n.createSelector(e=>e.workspaceShare.ownerForgeMissing),Y=n.createSelector(e=>ne.select(e)&&ae.select(e)&&e.workspaceShare.sharingContext!==null&&e.workspaceShare.sharingContext===_.select(e)),Vt=n.createSelector(e=>Y.select(e)?e.workspaceShare.sharingEnabled:null),Ds=n.createSelector(e=>Y.select(e)&&e.workspaceShare.sharingChecking),zt=n.createSelector(e=>Y.select(e)&&e.workspaceShare.sharingEnabling),Kt=n.createSelector(e=>Y.select(e)?e.workspaceShare.sharingError:null),Us=n.createSelector(e=>{if(!ne.select(e))return!1;const t=e.workspaceShare;return!t.integrationAuthLoaded||ae.select(e)&&Vt.select(e)===null&&Kt.select(e)===null&&!zt.select(e)?!0:g(t.members).length===0&&(t.loadStatus==="idle"||t.loadStatus==="loading")}),Gs=n.createSelector(e=>ne.select(e)&&!!e.workspaceShare.workspaceId&&(ae.select(e)||(be.select(e)?be.select(e)===pe.select(e)?.principal.id:mt.select(e,e.workspaceShare.workspaceId)))&&pe.select(e)?.capabilities.workspaceGuestRoles===!0),js=n.createSelector(e=>e.workspaceShare.pendingRolePrincipalIds),Fs=n.createSelector(e=>e.workspaceShare.roleErrors),be=n.createSelector(e=>{const t=e.workspaceShare.workspaceId;return t?D.select(e,t)?.ownerPrincipalId??null:null}),Jt=n.createSelector(e=>{const t=_.select(e),r=lt.select(e);return{context:t,workspaceIds:t?r.filter(s=>J.select(e,s)):[]}}),qs=n.createSelector((e,t)=>{const r=w(e.workspaceShare,t);return{context:r.inviteContext,generation:r.inviteGeneration,withheld:r.inviteWithheld}}),Yt=[],Xt=n.createSelector((e,t)=>{const r=_.select(e),s=w(e.workspaceShare,t);if(!r||s.inviteContext!==r||s.inviteWithheld||!J.select(e,t))return Yt;const a=e.presence?.context===r?e.presence.members[t]:void 0,o=new Set(a?g(a).flatMap(i=>i.identity?[JSON.stringify([i.identity.provider,i.identity.host.toLowerCase(),i.identity.externalUserId])]:[]):[]),c=new Set;return g(e.workspaceShare.invites).filter(i=>{if(i.workspaceId!==t||!i.pinLogin?.trim()||i.revokedAt||i.redeemedAt&&!i.reusable||!(Date.parse(i.expiresAt)>s.inviteReceivedAt))return!1;const l=i.pinIdentity??(i.pinGithubUserId!==void 0?{provider:"github",host:"github.com",externalUserId:String(i.pinGithubUserId)}:null);if(a&&i.redeemedByPrincipalId&&v(a,i.redeemedByPrincipalId))return!1;if(!l)return!0;const u=JSON.stringify([l.provider,l.host.toLowerCase(),l.externalUserId]);return o.has(u)||c.has(u)?!1:(c.add(u),!0)})}),Hs=n.createSelector(e=>{const r=Jt.select(e).workspaceIds.flatMap(s=>Xt.select(e,s).map(a=>Date.parse(a.expiresAt)));return r.length?Math.min(...r):null});function Bs(e){return Object.entries(e).some(([t,r])=>r.available&&Et(t,r.authenticated))}const $s=n.createSelector(e=>e.hostRequirements.git),Vs=n.createSelector(e=>e.hostRequirements.node),zs=n.createSelector(e=>e.hostRequirements.gh),Ks=n.createSelector(e=>e.hostRequirements.checking),Js=n.createSelector(e=>e.hostRequirements.hasCheckedOnce);function We(e){const t=e.gitlabAuth?.statusFailed===!0;return Rt({labsEnabled:e.userPreferences?.labsPlainFolderWorkspacesEnabled===!0,protocolVersion:e.daemonHealth?.stats?.protocolVersion,githubConnected:e.githubAuth?.isAuthenticated===!0,githubSettled:e.githubAuth?.statusSettled===!0,githubFailed:e.githubAuth?.statusFailed===!0,gitlabConnected:e.gitlabAuth?.isConfigured===!0,gitlabSettled:e.gitlabAuth?.statusReady===!0||t,gitlabFailed:t})}const Ys=n.createSelector(We),Xs=n.createSelector(e=>e.hostRequirements.node.ok&&(e.hostRequirements.git.available||We(e))),Zs=n.createSelector(e=>{const t=e.hostRequirements.providerCli;return t?{context:t.context,warnings:g(t.warnings)}:void 0}),Qs="22.0.0";function Zt(e){return e.length>15?`${e.slice(0,15)}…`:e}function V(e){return e.name?.trim()||Zt(e.clientId)}function ea(e){const{eligibleClients:t,ownClientId:r,driving:s,pinnedClientId:a}=e,o=t.find(l=>l.clientId===r&&l.connected),c=s!==null&&!s.connected,i=!s||s.clientId===r;return{mode:c?"offline":i?"here":"elsewhere",hostName:s?V(s):o?V(o):"",canSwitchHere:!!(o&&a!==r)}}const ta=n.createSelector(e=>e?.browserClients?.ownClientId??null),ra=n.createSelector(e=>e?.browserClients?.ownClientIdConfirmed===!0);n.createSelector(e=>g(e.browserClients.liveClients));const sa=n.createSelector((e,t)=>t?e?.browserClients?.byWorkspaceId[t]?.liveClientsLoaded??!1:e?.browserClients?.liveClientsLoaded??!1);n.createSelector((e,t)=>v(e.browserClients.liveClients,t));const aa=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??te).browserClient),na=n.createSelector((e,t)=>{const r=e?.browserClients?.byWorkspaceId[t];return r?.pinnedClientId!==void 0||r?.browserClient!=null});function ee(e){const t=e.prettyHostname??e.hostname??e.name;return{clientId:e.clientId,...t!==void 0?{name:t}:{},connected:!0}}const oa=n.createSelector((e,t)=>{const r=e?.browserClients??re,s=r.byWorkspaceId[t]?.liveClients??se(),a=g(s).filter(y=>y.capabilities.browserExec===!0).map(ee),o=(r.byWorkspaceId[t]??te).browserClient,c=r.byWorkspaceId[t],i=c?.pinnedClientId!==void 0?c.pinnedClientId:o?.source==="workspace"?o.clientId:null,l=i===null?Nt(o):void 0;let u=null;if(o?.resolved){const y=v(s,o.resolved.clientId);u=y?ee(y):{...o.resolved,connected:!0}}else o?.source==="workspace"?u={clientId:o.clientId,connected:!1}:l&&(u={clientId:l.clientId,connected:!1});return{eligibleClients:a,ownClientId:r.ownClientId??"",routedVia:o?.source==="default"?l?.via:void 0,driving:u,pinnedClientId:i}}),ca=n.createSelector((e,t)=>{const r=e?.browserClients??re;if(!r.ownClientId||!r.ownClientIdConfirmed)return!1;const s=r.byWorkspaceId[t]?.liveClients??se(),a=v(s,r.ownClientId);return a!==void 0&&a.capabilities.browserExec!==!0}),ia=n.createSelector((e,t,r)=>{const s=e?.browserClients??re,a=r?s.byWorkspaceId[r]?.liveClients??se():s.liveClients,o=r?s.byWorkspaceId[r]?.liveClientsLoaded:s.liveClientsLoaded,c=v(a,t);return c?{name:V(ee(c)),connected:!0}:{name:V({clientId:t}),connected:!o}}),la=n.createSelector((e,t)=>(e?.browserClients?.byWorkspaceId[t]??te).tabsRevision),ua=n.createSelector(e=>Object.entries(e.browserClients?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),M=new Map;function da(e,t){return M.set(e,t),()=>{M.get(e)===t&&M.delete(e)}}async function pa(e){const t=M.get(e);return t?t():null}function ma(e){M.delete(e)}const Ne="From repo config",fa="repo-config";function ha(e,t){return t==="repo-config"?m.workspace_setupScriptEditor_fromRepoConfig_name():t==="custom"?m.workspace_setupScriptEditor_custom_name():e}function xe(e){if(!e||typeof e!="object"||Array.isArray(e))return{setupScript:null};const t=e.setupScript;return{setupScript:typeof t=="string"&&t.trim().length>0?t:null}}function Qt(e){let t;try{t=JSON.parse(e)}catch{return null}return xe(t).setupScript}async function Sa(e){if(!e)return null;try{const t=await k(Mt.SETUP_SCRIPTS.READ_REPO_CONFIG,{repoPath:e}),r=t?.success?t.data?.content:null;return typeof r=="string"?Qt(r):null}catch{return null}}async function ga(e,t,r){if(!e||!t)return null;try{const{appClient:s}=await B(async()=>{const{appClient:o}=await import("./BqJBJZqA.js").then(c=>c.X);return{appClient:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),a=await s.integrations.githubRepoConfig(e,t,r);return xe(a.config).setupScript}catch{return null}}function ya(e){const t=e.setupScript.trim();return t?e.setupScriptNameSource==="repo-config"&&e.setupScriptName===Ne&&e.repoConfigScriptRepo===e.repoPath&&t===(e.repoConfigScript??"").trim()?void 0:t:e.explicitChoice?"cd .":void 0}function ba(e){const{repoConfigScript:t,lastUsed:r,genericTemplate:s}=e;return t?{content:t,name:Ne,source:"repo-config"}:r?{content:r.content,name:r.nameSource==="repo-config"?"Custom":r.name,source:r.nameSource==="repo-config"?"custom":r.nameSource??"named"}:s?{content:s.content,name:s.name,source:"named"}:{content:"",name:"Custom",source:"custom"}}const Me="setup-scripts:last-used-by-repo",Le="setup-scripts:recent-by-repo",z=20,De=10,er=["repo-config","custom","named"];function oe(e,t){return t?`${e}\0${t}`:e}function Ue(e){if(!e||typeof e!="object"||Array.isArray(e))return!1;const t=e;return typeof t.name=="string"&&typeof t.content=="string"&&t.content.trim().length>0&&typeof t.usedAt=="string"&&(t.nameSource===void 0||er.includes(t.nameSource))}function K(){try{const e=localStorage.getItem(Me);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const r={};for(const[s,a]of Object.entries(t))s&&Ue(a)&&(r[s]=a);return r}catch{return{}}}function Ge(){try{const e=localStorage.getItem(Le);if(!e)return{};const t=JSON.parse(e);if(!t||typeof t!="object"||Array.isArray(t))return{};const r={};for(const[s,a]of Object.entries(t)){if(!s||!Array.isArray(a))continue;const o=a.filter(Ue);o.length>0&&(r[s]=o)}return r}catch{return{}}}function tr(e,t){return e.name===t.name&&(e.nameSource??"named")===(t.nameSource??"named")&&e.content.trim()===t.content.trim()}function je(e){return[...e].sort((t,r)=>r.usedAt.localeCompare(t.usedAt))}function Fe(e){const t=[];for(const r of e)t.some(s=>tr(s,r))||t.push(r);return t}function ka(e,t){if(!e)return[];const r=oe(e,t),s=Ge()[r]??[],a=K()[r];return Fe(je(a?[...s,a]:s)).slice(0,De).map(c=>({name:c.name,content:c.content,nameSource:c.nameSource??"named",usedAt:c.usedAt}))}function rr(e,t,r){try{const s=Ge(),a=s[e]??(r?[r]:[]);s[e]=Fe([t,...je(a)]).slice(0,De);const o=Object.entries(s);o.length>z&&(o.sort(([,c],[,i])=>i[0].usedAt.localeCompare(c[0].usedAt)),o.length=z),localStorage.setItem(Le,JSON.stringify(Object.fromEntries(o)))}catch{}}function va(e,t){if(!e)return;const r=K()[oe(e,t)];return r?{name:r.name,content:r.content,nameSource:r.nameSource??"named"}:void 0}function wa(e,t,r){const s=t.content.trim();if(!e||!s)return;const a=oe(e,r),o={name:t.name,content:s,usedAt:new Date().toISOString(),nameSource:t.nameSource??"named"};rr(a,o,K()[a]);try{const c=K();c[a]=o;const i=Object.entries(c);i.length>z&&(i.sort(([,l],[,u])=>u.usedAt.localeCompare(l.usedAt)),i.length=z),localStorage.setItem(Me,JSON.stringify(Object.fromEntries(i)))}catch{}}const j=Pe("ProviderAvailabilityClient");let E=null;async function Ia(){if(typeof window>"u")return j.debug("Skipping provider availability check - not in browser environment"),ke();const e=Te.select(n.state);if(E&&E.connection===e)return j.debug("Joining in-flight provider availability request"),E.promise;const t={},r=(async()=>{try{j.debug("Checking provider availability via IPC");const s=await k(xt.GET_AVAILABILITY);if(!s.success)throw new Error(s.error||"Failed to get provider availability");const a=s.data??ke();return j.debug("Provider availability fetched",{hasAnyProvider:a.hasAnyProvider,auggie:a.providers.auggie.available,claudeCode:a.providers.claudeCode.available,codex:a.providers.codex.available,cortex:a.providers.cortex.available,mock:a.providers.mock?.available??!1,opencode:a.providers.opencode.available,droid:a.providers.droid?.available??!1,grok:a.providers.grok?.available??!1,unsloth:a.providers.unsloth?.available??!1}),a}finally{E?.token===t&&(E=null)}})();return E={connection:e,token:t,promise:r},r}function ke(){return{hasAnyProvider:!1,providers:{auggie:{available:!1},claudeCode:{available:!1},codex:{available:!1},cortex:{available:!1},mock:{available:!1},opencode:{available:!1},pi:{available:!1},droid:{available:!1},grok:{available:!1},unsloth:{available:!1}}}}const sr={async isAuthenticated(e){try{return await k(W.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async getAuthState(e=!1,t){try{return await k(W.GET_AUTH_STATE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return{isAuthenticated:!1,requiresDaemonAuth:!0}}},async getStatus(e){try{return await k(W.GET_STATUS,...e===void 0?[]:[{workspaceId:e}])}catch{return{isConfigured:!1,oauthUrl:""}}},async fetchMyIssues(e="assigned",t){return(await this.fetchMyIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async fetchMyIssuesPage(e="assigned",t){try{return await k(W.FETCH_MY_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t===void 0?void 0:{workspaceId:t})).issues},async searchIssuesPage(e,t){try{return await k(W.SEARCH_ISSUES,e,t)}catch{return{issues:[],nextToken:null}}}},_a=Object.freeze(Object.defineProperty({__proto__:null,linearAuthClient:sr},Symbol.toStringTag,{value:"Module"})),I={IS_AUTHENTICATED:"sentry-auth:is-authenticated",SAVE_CONFIG:"sentry-auth:save-config",GET_AUTH_STATE:"sentry-auth:get-auth-state",LOGOUT:"sentry-auth:logout",FETCH_PROJECTS:"sentry-auth:fetch-projects",FETCH_ISSUES:"sentry-auth:fetch-issues",SEARCH_ISSUES:"sentry-auth:search-issues",GET_ISSUE:"sentry-auth:get-issue"},ar={async isAuthenticated(e){try{return await k(I.IS_AUTHENTICATED,...e===void 0?[]:[{workspaceId:e}])}catch{return!1}},async saveConfig(e,t){return await k(I.SAVE_CONFIG,{organization:e,apiToken:t})},async getAuthState(e){try{return await k(I.GET_AUTH_STATE,...e===void 0?[]:[{workspaceId:e}])}catch{return{isAuthenticated:!1}}},async logout(){await k(I.LOGOUT)},async fetchProjects(e){try{return await k(I.FETCH_PROJECTS,...e===void 0?[]:[{workspaceId:e}])}catch{return[]}},async fetchIssues(e){return(await this.fetchIssuesPage(e)).issues},async fetchIssuesPage(e){try{return await k(I.FETCH_ISSUES,e)}catch{return{issues:[],nextToken:null}}},async searchIssues(e,t){return(await this.searchIssuesPage(e,t)).issues},async searchIssuesPage(e,t,r){try{return await k(I.SEARCH_ISSUES,{query:e,project:t,...r})}catch{return{issues:[],nextToken:null}}},async getIssue(e,t){try{return await k(I.GET_ISSUE,e,...t===void 0?[]:[{workspaceId:t}])}catch{return null}}},Ca=Object.freeze(Object.defineProperty({__proto__:null,sentryAuthClient:ar},Symbol.toStringTag,{value:"Module"})),ce=n.createSelector(e=>{const t=_.select(e);return!t||!ft.select(e)?null:JSON.stringify([t,e.hostExecution.generation,e.repositoryCheckout.authorityGeneration,e.gitlabAuth.host,e.gitlabAuth.instanceBaseUrl,e.gitlabAuth.statusReady,e.gitlabAuth.isConfigured,e.gitlabAuth.user])}),X=n.createSelector((e,t)=>v(e.repositoryCheckout.forms,t)??null),Aa=n.createSelector((e,t)=>{const r=X.select(e,t);return r?.admission===ce.select(e)&&r.status==="ready"?g(r.projects):[]}),Ea=n.createSelector((e,t)=>{const r=X.select(e,t);return r?.admission===ce.select(e)&&r.status==="ready"?g(r.branches):[]}),nr=n.createSelector((e,t)=>{const r=X.select(e,t);return!r||r.status!=="ready"||r.admission!==ce.select(e)||!r.capture||!r.project||!r.branch?null:{checkoutId:r.capture.checkoutId,revision:r.capture.revision,projectPath:r.project.projectPath,branch:r.branch.name,commitSha:r.branch.commitSha,mode:r.mode}}),Ra=n.createSelector((e,t)=>{const r=nr.select(e,t);return!!r&&(r.mode==="direct"||X.select(e,t)?.warmStatus==="ready")}),Ta="__new-workspace__",Pa="__initializer__",Oa="compact-workspace-initializer-state-prompt",Wa="onboarding-prompt",F=20*1024*1024,ve=Pe("NewWorkspaceDraft");function Na(e,t){if(e.length>F)return ve.warn("Draft text exceeds the size guard; skipping persistence",{textLength:e.length,limit:F}),null;const r=Lt(t);if(r.length===0)return{text:e};const s=[];let a=e.length+2,o=0;for(const c of r){const i=JSON.stringify(c).length+1;if(a+i>F){o+=1;continue}s.push(c),a+=i}return o>0&&ve.warn("Draft attachments exceed the size guard; persisting the ones that fit",{limit:F,attachmentCount:r.length,droppedCount:o}),s.length>0?{text:e,attachments:s}:{text:e}}const or="host.providerAuthStatus";function cr(e={}){const t={};return e.workspaceId&&(t.workspaceId=e.workspaceId),typeof e.providerId=="string"&&e.providerId.length>0&&(t.providerId=e.providerId),typeof e.force=="boolean"&&(t.force=e.force),t}function ir(e,t){const r=t.toLowerCase(),s=e.toLowerCase();return r.startsWith(s)?/^(['’]s\s+organization)?$/.test(r.slice(s.length)):!1}function lr(e){const{email:t,orgName:r}=e??{};return t&&r?ir(t,r)?t:`${t} · ${r}`:t||r||void 0}function ur(e){const t={};for(const r of e?.providers??[]){const s={authenticated:r.authenticated??void 0},a=lr(r.identity);a!==void 0&&(s.authDetails=a),r.identity?.email&&(s.email=r.identity.email),t[r.id]=s}return t}const dr=6e4,T=new Map,q=new Map,R=new Map;let $=0,qe=0;const pr=e=>JSON.stringify([Te.select(n.state),qe,e.workspaceId??null,e.providerId??"*"]);function mr(e){if(e.method!=="events.event"||!e.params)return;const t=e.params,s=(t.event&&typeof t.event=="object"?t.event:t).type;return typeof s=="string"?s:void 0}function Z(e){if($+=1,e)for(const t of T.keys()){const[,,,r]=JSON.parse(t);(r===e||r==="*")&&T.delete(t)}else T.clear()}typeof fe=="function"&&fe(e=>{["provider:auth-changed","host:execution-context-changed"].includes(mr(e)??"")&&Z()});typeof he=="function"&&he(()=>{qe+=1,Z()});function fr(e={}){const t=pr(e);if(e.force)Z(e.providerId);else{const o=T.get(t);if(o&&o.expiresAt>Date.now())return Promise.resolve(o.verdicts);o&&T.delete(t)}const r=q.get(t);if(!e.force&&r?.generation===$)return r.promise;if(r){const o=R.get(t);if(o)return o.force||=e.force===!0,o.promise;let c;const i=r.promise.catch(()=>({})).then(()=>(R.get(t)===c&&R.delete(t),fr({...e,force:c.force}))).finally(()=>{R.get(t)===c&&R.delete(t)});return c={force:e.force===!0,promise:i},R.set(t,c),i}const s=$,a=Oe(or,cr(e)).then(ur).then(o=>(s===$&&T.set(t,{verdicts:o,expiresAt:Date.now()+dr}),o)).finally(()=>{q.get(t)?.promise===a&&q.delete(t)});return q.set(t,{generation:s,promise:a}),a}function xa(e,t=e,r="default",s,a){if(!jt.select(n.state))return;const o=a??ut.select(n.state,t)??dt.select(n.state,t)[0];if(!o)return;const c=pt.select(n.state,t,o),i={type:"discussion",title:s??(r==="new"?m.workspace_discussion_new_title():m.workspace_discussion_title()),workspaceId:e,closable:!0,data:{conversationId:r}},l=c?.tabs.find(u=>Je(u,i));r==="new"&&n.dispatch(Ye(e)),n.dispatch(l?Xe(t,l.id,o):Ze(t,i,o,void 0,!0,void 0,!0))}function Ma(e,t){return e.name?.trim()?e.name.trim():e.kind==="workspace"?e.id&&e.id!=="default"?m.workspace_discussion_conversation_title():m.workspace_discussion_title():e.participants.filter(s=>s.principalId!==t).map(s=>s.displayName||s.login||m.workspace_discussion_unknownAuthor_label()).join(", ")||m.workspace_discussion_group_title()}const hr=n.createSelector((e,t,r)=>{const s=Re(e.repositoryContext,t);return r!==null&&s.binding===r?s:null});n.createSelector((e,t,r)=>{const s=hr.select(e,t.workspaceId,r);return s?.status==="ready"?v(s.roots,L(t))?.context:void 0});const La=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission)return null;const r=Re(e.repositoryContext,t.workspaceId),s=r.ownership;return!s||s.demandId!==t.demandId||s.admission!==t.admission||s.request.workspaceId!==t.workspaceId?null:{status:r.status,scope:r.scope,revision:r.revision,roots:r.status==="ready"?g(r.roots).map(a=>a.context):[],unavailableReason:r.unavailableReason}}),Da=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission)return null;const r=e.repositoryContext.selectionEdits,s=r?v(r,t.editId):void 0;return s&&s.status!=="closed"&&s.owner.admission===t.admission&&L(s.owner.root)===L(t.root)?s:null}),Ua=n.createSelector((e,t)=>{const r=e.repositoryContext.selectionEdits;return!!r&&g(r).some(s=>s.owner.root.workspaceId===t&&s.owner.admission===_.select(e)&&(s.status==="capturing"||s.status==="pending"&&(!s.observation||s.observation.attempt?.status==="pending")))}),Ga=n.createSelector((e,t)=>{if(t.admission===null||_.select(e)!==t.admission||t.hostContext===null||ht.select(e,t.root.workspaceId)!==t.hostContext)return null;const r=e.repositoryContext.nativeReviewAttempts,s=r?v(r,t.attemptId):void 0;return s&&s.status!=="closed"&&s.owner.admission===t.admission&&s.owner.hostContext===t.hostContext&&L(s.owner.root)===L(t.root)?s:null}),ja=n.createSelector((e,t)=>e.repositoryContext.nativeReviewAttempts?v(e.repositoryContext.nativeReviewAttempts,t):void 0),Sr=["venv",".venv","virtualenv","node_modules","google-cloud-sdk","__pycache__",".pytest_cache",".mypy_cache",".ruff_cache",".tox",".nox"];function gr(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function yr(e){const t=new Set(Sr);return gr(e).some(r=>t.has(r))}const br=new Set(["lastActivity","statusMessage","statusImageAssetId"]),kr=new Set([".git",".playwright-cli",".svelte-kit",".vite",".turbo",".cache",".parcel-cache",".next",".nuxt",".output","build","coverage","dist","playwright-report","target","test-results"]);function vr(e){return e.replace(/\\/g,"/").split("/").filter(t=>t.length>0&&t!==".")}function wr(e){if(!e.type.startsWith("file:"))return null;const t=e.data,r=t?.relativePath??t?.path??t?.filePath;return typeof r=="string"&&r.length>0?r:null}function Ir(e){const t=wr(e);return!t||yr(t)?!1:!vr(t).some(r=>kr.has(r))}function _r(e){if(e.type==="workspace:displayStatus-changed")return!0;if(e.type!=="workspace:updated")return!1;const t=e.data;if(!t?.changes||typeof t.changes!="object"||Array.isArray(t.changes))return!1;const r=Object.keys(t.changes).filter(s=>s!=="workspaceId");return r.length>0&&r.every(s=>br.has(s))}function f(e){return typeof e=="string"?e.trim():""}function P(e){return e&&typeof e=="object"&&!Array.isArray(e)?e:{}}function we(e){const t=P(e.data),r=f(t.agentId)||f(e.sessionId),s=f(t.messageId);return r&&s?JSON.stringify([r,s]):""}function Cr(e){const t=P(e.data),r={workspaceId:e.workspaceId,closable:!0},s=a=>a?{...r,type:"note",noteId:a,title:f(t.title)||f(t.noteTitle)||m.layout_tabTypes_note_title()}:null;switch(e.type){case"note:created":case"note:updated":case"comment:added":case"comment:resolved":return s(f(t.noteId));case"task:status-changed":return s(f(t.noteId)||f(t.linkedNoteId));case"spec:updated":case"goal:updated":return s("spec");case"agent:created":case"agent:renamed":case"agent:restored":case"agent:updated":case"agent:message":case"agent:user-message:sent":{const a=f(t.agentId)||f(e.sessionId);return a?{...r,type:"agent",agentId:a,title:f(t.agentName)||m.layout_tabTypes_agent_title()}:null}case"file:changed":{const a=f(t.path)||f(t.relativePath);return a&&t.action!=="delete"?{...r,type:"file",filePath:a,title:a.split(/[\\/]/).pop()||a}:null}case"git:commit":{const a=f(t.commit),o=f(t.gitRootId);return a?{...r,type:"changes",title:m.layout_tabTypes_changes_title(),data:{commitHash:a,...o?{gitRootId:o}:{}}}:null}default:return null}}function Ie(e,t){const r=P(e.data),s=Object.fromEntries(Object.entries(r).filter(([,c])=>typeof c=="string")),a=c=>t?m.workspace_peopleActivity_actorAction_label({name:t,action:c}):c;switch(e.type){case"note:created":case"note:updated":case"note:deleted":case"spec:updated":case"goal:updated":return N({...e,actor:{...e.actor,name:t},data:s});case"agent:created":case"agent:renamed":case"agent:deleted":case"agent:restored":case"git:commit":case"git:push":case"git:pull":case"git:branch":case"git:merge":return a(N({...e,actor:{...e.actor,name:void 0},data:s}));case"agent:updated":return f(r.modelId)||r.completionReportCleared===!0?a(N({...e,actor:{...e.actor,name:void 0},data:r})):null;case"file:changed":return Ir(e)?N({...e,actor:{...e.actor,name:t},data:{path:f(r.path)||f(r.relativePath),action:f(r.action)}}):null;case"comment:added":return t?m.events_activity_authorCommented_label({author:t}):m.workspace_peopleActivity_commented_label();case"comment:resolved":return r.resolved===!1?a(m.events_activity_reopenedCommentThread_label()):r.resolved===!0?a(m.events_activity_resolvedCommentThread_label()):null;case"agent:message":case"agent:user-message:sent":{const c=f(r.agentName)||f(r.toAgentName);return a(c?m.workspace_peopleActivity_messagedAgent_label({agent:c}):m.workspace_peopleActivity_sentMessage_label())}case"task:status-changed":return a(N({...e,actor:{...e.actor,name:void 0},data:{taskName:f(r.taskName)||f(r.noteTitle),newStatus:f(r.newStatus)||f(r.status)}}));case"workspace:created":return a(m.events_activity_createdWorkspace_label());case"workspace:updated":{if(_r(e))return null;const c=P(r.changes);if(Object.keys(c).filter(l=>l!=="workspaceId").length===0)return null;const i=f(c.title);return a(i?m.events_activity_renamedWorkspaceTo_label({title:i}):m.events_activity_updatedWorkspace_label())}default:return null}}function x(e,t){const r=f(e);return r===t||/^(user|you|system|unknown|anonymous|local user)$/i.test(r)?"":r}function Ar(e,t,r,s){const a=new Map(r.map(d=>[d.principalId,d])),o=new Map;for(const d of t){if(d.workspaceId!==e||d.type!=="agent:last-message")continue;const p=P(d.data),h=me({role:p.role==="user"?"user":"system",author:p.author,metadata:p.metadata}),S=we(d);if(!h||!S||typeof p.lastUserMessage!="string")continue;const b=Dt({id:f(p.messageId),role:"user",timestamp:d.timestamp,contentBlocks:[{type:"text",text:p.lastUserMessage}],author:h,metadata:p.metadata},s);b&&o.set(S,b)}const c=new Set,i=new Set,l=[];let u=0;for(const d of t){if(d.workspaceId!==e||!f(d.id)||c.has(d.id))continue;const p=Date.parse(d.timestamp);if(!Number.isFinite(p)){u++;continue}const h=P(d.data),S=d.type==="agent:message",b=S?me({role:h.role==="user"?"user":"system",author:h.author,metadata:h.metadata}):null;if(S?!b:d.actor?.type!=="user"){S&&h.role==="user"&&d.actor?.type==="user"&&St(h.metadata)&&l.push({row:null,timestamp:p,segment:u});continue}const Ke=S?f(h.messageId):"",O=S?we(d):"";if(O&&i.has(O))continue;const A=f(d.actor?.id),Q=A?a.get(A):void 0,U=b?x(b.displayName,b.principalId??"")||x(b.login,b.principalId??""):x(d.actor.name,A)||x(Q?.displayName,A)||x(Q?.login,A),le=Ie(d,"");if(!le)continue;if(!U){l.push({row:null,timestamp:p,segment:u});continue}const G=S?o.get(O)??null:null,ue=G?m.workspace_peopleActivity_actorAction_label({name:U,action:G}):Ie(d,U);ue&&(c.add(d.id),O&&i.add(O),l.push({timestamp:p,segment:u,row:{id:d.id,name:U,principalId:b?f(b.principalId)||null:A||null,avatarUrl:b?b.avatarUrl:Q?.avatarUrl??null,label:ue,actionLabel:G??le,continuation:!1,timestamp:d.timestamp,destination:Cr(d),messageId:Ke||null,messagePreview:G}}))}l.sort((d,p)=>p.timestamp-d.timestamp);const y=[];for(const[d,p]of l.entries()){if(!p.row)continue;const h=l[d-1],S=h?h.timestamp-p.timestamp:NaN;p.row.continuation=!!(p.row.principalId&&h?.row?.principalId===p.row.principalId&&h.segment===p.segment&&Number.isFinite(S)&&S>=0&&S<=15*6e4),y.push(p.row)}return y}const Fa=n.createSelector(e=>e.workspaceEvents.subscriptionAttempt),qa=n.createSelector(e=>e.workspaceEvents.subscriptionGeneration),Er=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).events);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).loading);const Ha=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).nextToken);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).loadingOlder);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).olderError);n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).endReached);const Ba=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]?.peopleRequestId??null)!==null),$a=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleError??null),Va=n.createSelector((e,t)=>e.workspaceEvents.byWorkspaceId[t]?.peopleInitialized??!1),He=n.createSelector((e,t)=>(e.workspaceEvents.byWorkspaceId[t]??C).peopleStreams),za=n.createSelector((e,t)=>Object.values(He.select(e,t)).every(r=>r.initialized&&r.nextToken===null)),Ka=n.createSelector((e,t,r)=>{const s=Er.select(e,t),o=Ar(t,s,Tt.select(e,t),D.select(e,t)?.ownerPrincipalId)[r-1]?.timestamp,c=He.select(e,t);return["user","message"].filter(i=>{const l=c[i];if(!l.initialized)return!0;if(l.nextToken===null)return!1;const u=s.find(y=>y.id===l.oldestEventId)?.timestamp;return!o||!u||!(Date.parse(u)<=Date.parse(o))})}),Ja=n.createSelector((e,t)=>{const r=[],s=new Set,a=new Set,o=c=>{const i=c.block.attachmentId??c.id;if(!s.has(i)){if(!c.block.attachmentId&&c.block.data&&!c.block.dataTruncated){const l=`${c.block.mimeType}/${c.block.data}`;if(a.has(l))return;a.add(l)}s.add(i),r.push(c)}};for(const[c,i]of Object.entries(Ut.select(e,t)))for(const l of g(i))l.imageData&&l.imageMimeType?o({id:`draft/${c}/${l.id}`,name:l.label,block:{type:"image",data:l.imageData,mimeType:l.imageMimeType}}):l.type==="file"&&(l.attachmentId||l.placementStatus)&&o({id:`draft/${c}/${l.id}`,name:l.label,placementStatus:l.placementStatus,block:{type:l.attachmentMimeType?.startsWith("image/")?"image":"file",attachmentId:l.attachmentId,mimeType:l.attachmentMimeType,fileName:l.label,size:l.attachmentSize}});for(const c of gt.select(e,t)){const i=yt.select(e,c),l=[...bt.select(e,c),...kt.select(e,c)];for(const u of l)if(u.role==="user")for(const[y,d]of(u.contentBlocks??[]).entries()){if(d.type!=="image"&&!Gt(d))continue;const p=d.id?i?.[Qe(u.id,d.id)]:void 0,h=p?.status==="loaded"?p.block:d;o({id:`${c}/${u.id}/${d.id??y}`,name:h.fileName,block:h,agentId:c,messageId:u.id,hydration:p})}}return r}),Rr=n.createSelector((e,t)=>e.context.byWorkspaceId[t]??et),Tr=n.createSelector((e,t)=>g(Rr.select(e,t).items)),Ya=n.createSelector((e,t)=>Tr.select(e,t).filter(r=>!r.parentNoteId)),Xa=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedAgentIds??Be),Za=n.createSelector((e,t)=>e.agentLock.byWorkspaceId[t]?.lockedFilePaths??Be),Be={},Qa=n.createSelector((e,t,r)=>{const s=e.gitWrite.byWorkspaceId[t]?.operations;return s?v(s,r):void 0}),$e=n.createSelector((e,t)=>{const r=e.gitWrite.byWorkspaceId[t]?.operations;return r?g(r):[]}),en=n.createSelector((e,t)=>$e.select(e,t).some(r=>r.status==="queued"||r.status==="running")),tn=n.createSelector((e,t)=>$e.select(e,t).filter(r=>r.operation.kind==="partialCommit"&&(r.status==="queued"||r.status==="running")));function _e(e){return e.title||`PR #${e.number}`}const ie=n.createSelector((e,t)=>{const r=e.gitRoots?.byWorkspaceId?.[t];return r?g(r.gitRoots):[]});function Pr(e){return{key:"primary",isPrimary:!0,path:e.worktreePath??e.path,branch:e.branch,repoOwner:e.repositoryOwner,repoName:e.repositoryName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests}}function Or(e){return{key:e.id,isPrimary:!1,path:e.path,branch:e.branch,repoOwner:e.repoOwner,repoName:e.repoName,prNumber:e.prNumber,prUrl:e.prUrl,prStatus:e.prStatus,pullRequests:e.pullRequests,gitRoot:e}}const rn=n.createSelector((e,t)=>{const r=D.select(e,t),s=ie.select(e,t).map(Or);return r?[Pr(r),...s]:s}),sn=n.createSelector((e,t)=>ie.select(e,t).length>0),an=n.createSelector(e=>Object.entries(e.gitRoots?.byWorkspaceId??{}).filter(([,t])=>Object.keys(t.consumers??{}).length>0).map(([t])=>t)),Wr=n.createSelector((e,t,r)=>v((e.acceptWorkflow.byWorkspaceId[t]??tt).operations,r)),nn=n.createSelector((e,t,r)=>Wr.select(e,t,r)?.status==="running"),on=n.createSelector((e,t)=>e.acceptWorkflow.byWorkspaceId[t]?.mergeDrawerOpen??!1),cn=n.createSelector((e,t)=>{const r=vt.select(e,t)?.hasRemote??!1,s=D.select(e,t)?.pullRequests?.some(a=>a.status===de.Open||a.status===de.Draft)??!1;return{squash:!1,viaPR:r&&s,pushAfter:r,...e.acceptWorkflow.byWorkspaceId[t]?.mergeOptions}}),ln=n.createSelector(e=>Object.keys(e.acceptWorkflow.byWorkspaceId).filter(t=>e.acceptWorkflow.byWorkspaceId[t].observerRequested)),un=n.createSelector((e,t)=>{const r=D.select(e,t),s=wt.select(e,t),a=It.select(e,t),o=r?.repositoryOwner&&r.repositoryName?`${r.repositoryOwner}/${r.repositoryName}`:void 0,c=Pt(Ot(r?.pullRequests,r?.activePullRequest,(i,l)=>Wt(i,r?.repositoryOwner,r?.repositoryName,l),_e,o),_t.select(e,t),o,ie.select(e,t),_e).own;return{visible:(e.acceptWorkflow.byWorkspaceId[t]?.consumerCount??0)>0,ready:At.select(e,t),owner:!Ct.select(e,t),authenticated:Ft.select(e),pushedCount:s.filter(i=>i.isPushed).length,hasRemote:a.hasRemote,clearReset:a.hasResetToTrunk&&c.some(i=>i.status!=="merged"),clearMerge:!!(a.mergeHeadSha&&s[0]?.hash&&a.mergeHeadSha!==s[0].hash)}}),dn=n.createSelector((e,t,r)=>e.bgExecutor?.byWorkspaceId[t]?.executors[r]??rt),Nr=n.createSelector((e,t)=>e.prWorkflow.byWorkspaceId[t]??st);n.createSelector((e,t,r)=>Nr.select(e,t).operations[r]);const pn=n.createSelector(e=>Object.keys(e.noteReadTracking.unreadNoteIds)),mn=n.createSelector(e=>e.noteReadTracking.readRecords),xr="host.providerTestPrompt",Mr=$t("ok",[Se({ok:ge(!0)}).passthrough(),Se({ok:ge(!1),reason:ye().min(1),message:ye()}).passthrough()]),Lr=3e5;async function fn(e){const t=await Oe(xr,{providerId:e.providerId,...e.model?{model:e.model}:{}},{timeoutMs:Lr}),r=Mr.parse(t);return(r.ok||r.reason==="auth-required")&&Z(e.providerId),r}const Dr=-1,Ur=/^remote-script-lost:\s*/,Gr=["idle","starting","running","restarting","exited"],Ce=e=>!!e&&typeof e=="object"&&!Array.isArray(e),Ae=e=>typeof e=="string"&&e.trim().length>0;function jr(e){return Ce(e)&&Ae(e.remoteAgentId)&&Ae(e.nodeId)&&Ce(e.runtime)&&Gr.includes(e.runtime.status)}function hn(e){return Array.isArray(e.machineRuns)?e.machineRuns.filter(jr):[]}function Sn(e,t,r){const s=qt(e.nodeId,r)??{nodeId:e.nodeId,name:m.remoteAgent_location_unknownMachine(),platform:null,state:"ready"};if(r&&r.id===e.nodeId)return s;const a=t?.nodeId===e.nodeId?t:null;return{...s,name:a?.nodeName?.trim()||s.name,platform:Ht(a?.placement?.os,a?.placement?.arch)}}function Fr(e){return e.status==="exited"&&e.exitCode===Dr}function qr(e){const t=e.error?.trim().replace(Ur,"").trim();switch(t){case"the machine disconnected":return m.scripts_remote_lostDisconnected_label();case"the machine was removed":return m.scripts_remote_lostRemoved_label();case"the agent was deleted":return m.scripts_remote_lostAgentDeleted_label();case"the agent was stopped for good":return m.scripts_remote_lostAgentStopped_label();default:return t||m.scripts_remote_lostReason_fallback()}}function gn(e){if(Fr(e))return{kind:"lost",label:m.scripts_remote_lost_tooltip({reason:qr(e)})};const t=Bt(e);switch(t){case"running":return{kind:t,label:m.terminal_quakeOverlay_status_running()};case"restarting":return{kind:t,label:m.workspace_devScripts_restarting_label()};case"idle":return{kind:t,label:m.terminal_quakeOverlay_status_idle()};case"succeeded":return{kind:t,label:m.terminal_quakeOverlay_status_exitedZero()};case"failed":return{kind:t,label:m.terminal_quakeOverlay_status_errorCode({code:e.exitCode??1})};case"stopped":return{kind:t,label:m.terminal_quakeOverlay_status_stoppedSignal({signal:(e.exitCode??128)-128})};default:return{kind:t,label:m.terminal_quakeOverlay_status_exited()}}}const H=e=>typeof e=="string"&&e.length>0,Hr=/\bremote-script-agent-ending:/;function yn(e){return!!e&&Hr.test(e)}function bn(e){if(!e||typeof e!="object")return null;const t=e.data;if(!t||typeof t!="object")return null;const r=t,s=e instanceof Error&&e.message?{message:e.message}:{};return r.code==="machine-update-required"?{success:!1,code:"machine-update-required",update:r.update==="backend"?"backend":"machine",...H(r.machineVersion)?{machineVersion:r.machineVersion}:{},...H(r.backendVersion)?{backendVersion:r.backendVersion}:{},...s}:r.code==="machine-unreachable"?{success:!1,code:"machine-unreachable",attempts:Array.isArray(r.attempts)?r.attempts.flatMap(o=>{const c=o??{};return H(c.route)&&H(c.error)?[{route:c.route,error:c.error}]:[]}):[],...s}:null}function Ee(e,t,r){const a=t.find(c=>String(c.id)===e)?.name?.trim();if(a)return a;const o=r?.trim();return o||Ve(e)}function Ve(e){return e.length>14?`${e.slice(0,14)}…`:e}function kn(e,t,r){const s=new Map,a={ownerAgentId:null,ownerName:null,entries:[]},o=(i,l)=>{let u=s.get(i);return u?u.ownerName===Ve(i)&&(u.ownerName=Ee(i,r,l)):(u={ownerAgentId:i,ownerName:Ee(i,r,l),entries:[]},s.set(i,u)),u};for(const{tab:i,panelId:l,active:u}of e)(i.ownerAgentId?o(i.ownerAgentId,i.ownerAgentName):a).entries.push({tab:i,panelId:l,active:u,hidden:!1});for(const i of t){if(i.type!=="browser")continue;(i.ownerAgentId?o(i.ownerAgentId,i.ownerAgentName):a).entries.push({tab:i,active:!1,hidden:!0})}const c=[...s.values()];return a.entries.length>0&&c.push(a),c}function vn(e){const r=e.filter(a=>a.runtime.status==="running"&&a.runtime.detectedUrl?.trim()).sort((a,o)=>(o.runtime.startedAt??"").localeCompare(a.runtime.startedAt??""))[0],s=r?.runtime.detectedUrl?.trim();return!r||!s?null:{scriptId:r.id,name:r.name,url:s}}const Br={status:"idle",error:null},$r=n.createSelector((e,t)=>e.workspaceLifecycle.loadByWorkspaceId[t]??Br);n.createSelector((e,t)=>$r.select(e,t).error);const wn=n.createSelector((e,t)=>v(e.workspace.workspaces,t)??e.workspace.pendingCreations[t]),ze=n.createSelector((e,t)=>e.workspaceLifecycle.sessionPhaseByWorkspaceId[t]),Vr=e=>e==="hydrated"||e==="live",In=n.createSelector((e,t)=>{const r=ze.select(e,t);return r==="hydrated"||r==="live"}),_n=n.createSelector(e=>{const t=e.workspaceLifecycle.sessionPhaseByWorkspaceId;return Object.keys(t).filter(r=>Vr(t[r]))}),Cn=n.createSelector((e,t)=>ze.select(e,t)==="live");function An(e){const{selectedProviderId:t,activeProviderId:r,recommitActive:s,dispatch:a}=e;if(t&&!(!s&&t===r))return a(at({providerId:t,enabled:!0})),a(nt(t)),a(ot()),t}function En(e){const t=[];for(const r of e){let s={};if(r.metadata)try{s=JSON.parse(r.metadata)}catch{}const a=[];if(a.push(`[${r.identifier}] ${r.title}`),r.url&&a.push(`URL: ${r.url}`),r.description&&a.push(`
3
3
  Description:
4
4
  ${r.description}`),s.state&&a.push(`Status: ${s.state}`),s.teamName&&a.push(`Team: ${s.teamName}`),s.priority!==void 0){const o=["No priority","Urgent","High","Medium","Low"];a.push(`Priority: ${o[s.priority]||s.priority}`)}s.assignee&&a.push(`Assignee: ${s.assignee}`),t.push({type:r.itemType||"unknown",provider:r.provider,identifier:r.identifier,title:r.title,url:r.url,content:a.join(`
5
- `),metadata:s})}return t}function Rn(e){const t=[];for(const r of e){if(r.type!=="file")continue;let s=r.meta?.fullPath||r.meta?.path||"";if(!s&&r.id?.startsWith("file-")){const a=r.id.slice(5);(a.startsWith("/")||/^[A-Za-z]:/.test(a))&&(s=a)}if(!s&&r.uri)if(r.uri.startsWith("devspace://file/"))try{s=decodeURIComponent(r.uri.slice(16))}catch{}else r.uri.startsWith("file:")&&(s=r.uri.slice(5));s||(s=r.label||r.meta?.name||""),t.push({type:"file",path:s,title:r.label})}return t}async function Tn(e,t){const r=[];for(const s of e){if(s.type==="terminal")try{const{terminalManager:a}=await B(async()=>{const{terminalManager:l}=await import("./BxWSOWVO.js").then(u=>u.c);return{terminalManager:l}},__vite__mapDeps([22,3,10,19,20,11,8,0,1,2,4,5,6,7,9,12,13,14,15,16,17,18,21,23,24,25,26,27,28,29,30,31]),import.meta.url),o=s.meta?.workspaceId||"",c=s.id??"",i=await a.getBufferContent(c,o);i&&r.push({type:"terminal",content:i,title:s.label,metadata:{terminalName:s.label,terminalId:c}})}catch(a){t?.warn("[OnboardingContext] Failed to read terminal buffer:",a)}if(s.type==="script")try{const{selectScriptById:a,selectScriptRuntime:o}=await B(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./aVsZmAEF.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([32,4,2,3,5,6,7,8,9,10,11,33,34,20,19,35,36,16,13,14,21,12,15,17,18,29,37,38,39,40,1,41,42]),import.meta.url),{readScriptContextOutputLines:c}=await B(async()=>{const{readScriptContextOutputLines:S}=await import("./aLb41s5K.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([43,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,44,35,36,29,37,45,33,34,38,39,40,41,42,46,47,48,49,32]),import.meta.url),i=s.meta?.workspaceId||"",l=s.id??"",u=n.state,y=await c(u,i,l),d=a.select(u,i,l),p=o.select(u,i,l);let h=`Script: ${d?.name||s.label}
5
+ `),metadata:s})}return t}function Rn(e){const t=[];for(const r of e){if(r.type!=="file")continue;let s=r.meta?.fullPath||r.meta?.path||"";if(!s&&r.id?.startsWith("file-")){const a=r.id.slice(5);(a.startsWith("/")||/^[A-Za-z]:/.test(a))&&(s=a)}if(!s&&r.uri)if(r.uri.startsWith("devspace://file/"))try{s=decodeURIComponent(r.uri.slice(16))}catch{}else r.uri.startsWith("file:")&&(s=r.uri.slice(5));s||(s=r.label||r.meta?.name||""),t.push({type:"file",path:s,title:r.label})}return t}async function Tn(e,t){const r=[];for(const s of e){if(s.type==="terminal")try{const{terminalManager:a}=await B(async()=>{const{terminalManager:l}=await import("./QOrjinFU.js").then(u=>u.c);return{terminalManager:l}},__vite__mapDeps([22,3,10,19,20,11,8,0,1,2,4,5,6,7,9,12,13,14,15,16,17,18,21,23,24,25,26,27,28,29,30,31]),import.meta.url),o=s.meta?.workspaceId||"",c=s.id??"",i=await a.getBufferContent(c,o);i&&r.push({type:"terminal",content:i,title:s.label,metadata:{terminalName:s.label,terminalId:c}})}catch(a){t?.warn("[OnboardingContext] Failed to read terminal buffer:",a)}if(s.type==="script")try{const{selectScriptById:a,selectScriptRuntime:o}=await B(async()=>{const{selectScriptById:S,selectScriptRuntime:b}=await import("./BnVbje9V.js");return{selectScriptById:S,selectScriptRuntime:b}},__vite__mapDeps([32,4,2,3,5,6,7,8,9,10,11,33,34,20,19,35,36,16,13,14,21,12,15,17,18,29,37,38,39,40,1,41,42]),import.meta.url),{readScriptContextOutputLines:c}=await B(async()=>{const{readScriptContextOutputLines:S}=await import("./Ci0Iahfv.js");return{readScriptContextOutputLines:S}},__vite__mapDeps([43,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,44,35,36,29,37,45,33,34,38,39,40,41,42,46,47,48,49,32]),import.meta.url),i=s.meta?.workspaceId||"",l=s.id??"",u=n.state,y=await c(u,i,l),d=a.select(u,i,l),p=o.select(u,i,l);let h=`Script: ${d?.name||s.label}
6
6
  `;if(h+=`Command: ${d?.command||"unknown"}
7
7
  `,h+=`Status: ${p.status}`,p.exitCode!==null&&p.exitCode!==void 0&&(h+=` (exit code: ${p.exitCode})`),h+=`
8
8
  `,p.detectedUrl&&(h+=`URL: ${p.detectedUrl}
@@ -1,4 +1,4 @@
1
- import{c9 as xt,aP as _t,c6 as vt,aK as bt,c7 as St,aL as wt,f as y,aO as lt,aw as Lt,c3 as X,cd as Et,a0 as At,a4 as Tt}from"./CJhZDVuE.js";import{o as Mt}from"./CmKTTxBW.js";import{d as Nt}from"./CvOaoHrI.js";function ct(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s<l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,i){let s=0;if(i===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let u of t)(u=+i(u,++l,t))&&(s+=u)}return s}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function It(t,i){return i-1-t.height}function kt(t,i){return t.sourceLinks.length?t.depth:i-1}function Ot(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,i){return K(t.source,i.source)||t.index-i.index}function ht(t,i){return K(t.target,i.target)||t.index-i.index}function K(t,i){return t.y0-i.y0}function it(t){return t.value}function $t(t){return t.index}function Dt(t){return t.nodes}function jt(t){return t.links}function ft(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}function yt({nodes:t}){for(const i of t){let s=i.y0,l=s;for(const u of i.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of i.targetLinks)u.y1=l+u.width/2,l+=u.width}}function zt(){let t=0,i=0,s=1,l=1,u=24,x=8,g,k=$t,o=kt,a,h,m=Dt,_=jt,d=6;function v(){const n={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return T(n),A(n),M(n),I(n),S(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:q(n),v):k},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:q(n),v):o},v.nodeSort=function(n){return arguments.length?(a=n,v):a},v.nodeWidth=function(n){return arguments.length?(u=+n,v):u},v.nodePadding=function(n){return arguments.length?(x=g=+n,v):x},v.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:q(n),v):m},v.links=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),v):_},v.linkSort=function(n){return arguments.length?(h=n,v):h},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],l=+n[1],v):[s-t,l-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],l=+n[1][1],v):[[t,i],[s,l]]},v.iterations=function(n){return arguments.length?(d=+n,v):d};function T({nodes:n,links:f}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(n.map((e,r)=>[k(e,r,n),e]));for(const[e,r]of f.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ft(c,p)),typeof b!="object"&&(b=r.target=ft(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(h),r.sort(h)}function A({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:n}){const f=ct(n,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of n){const p=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+u,e[p]?e[p].push(r):e[p]=[r]}if(a)for(const r of e)r.sort(a);return e}function D(n){const f=pt(n,c=>(l-i-(c.length-1)*g)/nt(c,it));for(const c of n){let e=i;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*f}e=(l-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(n){const f=N(n);g=Math.min(x,(l-i)/(ct(f,c=>c.length)-1)),D(f);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(f,e,r),P(f,e,r)}}function P(n,f,c){for(let e=1,r=n.length;e<r;++e){const p=n[e];for(const b of p){let L=0,B=0;for(const{source:Y,value:et}of b.targetLinks){let H=et*(b.layer-Y.layer);L+=C(Y,b)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}a===void 0&&p.sort(K),j(p,c)}}function R(n,f,c){for(let e=n.length,r=e-2;r>=0;--r){const p=n[r];for(const b of p){let L=0,B=0;for(const{target:Y,value:et}of b.sourceLinks){let H=et*(Y.layer-b.layer);L+=E(b,Y)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}a===void 0&&p.sort(K),j(p,c)}}function j(n,f){const c=n.length>>1,e=n[c];O(n,e.y0-g,c-1,f),V(n,e.y1+g,c+1,f),O(n,l,n.length-1,f),V(n,i,0,f)}function V(n,f,c,e){for(;c<n.length;++c){const r=n[c],p=(f-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),f=r.y1+g}}function O(n,f,c,e){for(;c>=0;--c){const r=n[c],p=(r.y1-f)*e;p>1e-6&&(r.y0-=p,r.y1-=p),f=r.y0-g}}function z({sourceLinks:n,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of n)c.sort(ut)}}function w(n){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of n)f.sort(ht),c.sort(ut)}function C(n,f){let c=n.y0-(n.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c+=r+g}for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c-=r}return c}function E(n,f){let c=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c+=r+g}for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Bt=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,l){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,i,s,l,u,x){this._+="C"+ +t+","+ +i+","+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+x)},arcTo:function(t,i,s,l,u){t=+t,i=+i,s=+s,l=+l,u=+u;var x=this._x1,g=this._y1,k=s-t,o=l-i,a=x-t,h=g-i,m=a*a+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(m>F)if(!(Math.abs(h*k-o*a)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var _=s-x,d=l-g,v=k*k+o*o,T=_*_+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=u*Math.tan((rt-Math.acos((v+m-T)/(2*A*M)))/2),N=I/M,D=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*a)+","+(i+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>a*d)+","+(this._x1=t+D*k)+","+(this._y1=i+D*o)}},arc:function(t,i,s,l,u,x){t=+t,i=+i,s=+s,x=!!x;var g=s*Math.cos(l),k=s*Math.sin(l),o=t+g,a=i+k,h=1^x,m=x?l-u:u-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+o+","+a),s&&(m<0&&(m=m%st+st),m>Bt?this._+="A"+s+","+s+",0,1,"+h+","+(t-g)+","+(i-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=a):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=i+s*Math.sin(u))))},rect:function(t,i,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Ft(t){return t[0]}function Rt(t){return t[1]}var Vt=Array.prototype.slice;function Wt(t){return t.source}function Gt(t){return t.target}function Ut(t){var i=Wt,s=Gt,l=Ft,u=Rt,x=null;function g(){var k,o=Vt.call(arguments),a=i.apply(this,o),h=s.apply(this,o);if(x||(x=k=mt()),t(x,+l.apply(this,(o[0]=a,o)),+u.apply(this,o),+l.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return x=null,k+""||null}return g.source=function(k){return arguments.length?(i=k,g):i},g.target=function(k){return arguments.length?(s=k,g):s},g.x=function(k){return arguments.length?(l=typeof k=="function"?k:dt(+k),g):l},g.y=function(k){return arguments.length?(u=typeof k=="function"?k:dt(+k),g):u},g.context=function(k){return arguments.length?(x=k??null,g):x},g}function Yt(t,i,s,l,u){t.moveTo(i,s),t.bezierCurveTo(i=(i+l)/2,s,i,u,l,u)}function Ht(){return Ut(Yt)}function Xt(t){return[t.source.x1,t.y0]}function qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(qt)}var at=(function(){var t=y(function(k,o,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=o);return a},"o"),i=[1,9],s=[1,10],l=[1,5,10,12],u={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,a,h,m,_,d,v){var T=d.length-1;switch(_){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,a){if(a.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=a,h}},"parseError"),parse:y(function(o){var a=this,h=[0],m=[],_=[null],d=[],v=this.table,T="",A=0,M=0,I=2,N=1,D=d.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);S.setInput(o,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;d.push(j);var V=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,d.length=d.length-L}y(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=a.symbols_[L]||L),L}y(z,"lex");for(var w,C,E,n,f={},c,e,r,p;;){if(C=h[h.length-1],this.defaultActions[C]?E=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=z()),E=v[C]&&v[C][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[C])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
1
+ import{c9 as xt,aP as _t,c6 as vt,aK as bt,c7 as St,aL as wt,f as y,aO as lt,aw as Lt,c3 as X,cd as Et,a0 as At,a4 as Tt}from"./Clof0uHU.js";import{o as Mt}from"./CmKTTxBW.js";import{d as Nt}from"./CvOaoHrI.js";function ct(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s<l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s<u||s===void 0&&u>=u)&&(s=u)}return s}function pt(t,i){let s;if(i===void 0)for(const l of t)l!=null&&(s>l||s===void 0&&l>=l)&&(s=l);else{let l=-1;for(let u of t)(u=i(u,++l,t))!=null&&(s>u||s===void 0&&u>=u)&&(s=u)}return s}function nt(t,i){let s=0;if(i===void 0)for(let l of t)(l=+l)&&(s+=l);else{let l=-1;for(let u of t)(u=+i(u,++l,t))&&(s+=u)}return s}function Pt(t){return t.target.depth}function Ct(t){return t.depth}function It(t,i){return i-1-t.height}function kt(t,i){return t.sourceLinks.length?t.depth:i-1}function Ot(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?pt(t.sourceLinks,Pt)-1:0}function q(t){return function(){return t}}function ut(t,i){return K(t.source,i.source)||t.index-i.index}function ht(t,i){return K(t.target,i.target)||t.index-i.index}function K(t,i){return t.y0-i.y0}function it(t){return t.value}function $t(t){return t.index}function Dt(t){return t.nodes}function jt(t){return t.links}function ft(t,i){const s=t.get(i);if(!s)throw new Error("missing: "+i);return s}function yt({nodes:t}){for(const i of t){let s=i.y0,l=s;for(const u of i.sourceLinks)u.y0=s+u.width/2,s+=u.width;for(const u of i.targetLinks)u.y1=l+u.width/2,l+=u.width}}function zt(){let t=0,i=0,s=1,l=1,u=24,x=8,g,k=$t,o=kt,a,h,m=Dt,_=jt,d=6;function v(){const n={nodes:m.apply(null,arguments),links:_.apply(null,arguments)};return T(n),A(n),M(n),I(n),S(n),yt(n),n}v.update=function(n){return yt(n),n},v.nodeId=function(n){return arguments.length?(k=typeof n=="function"?n:q(n),v):k},v.nodeAlign=function(n){return arguments.length?(o=typeof n=="function"?n:q(n),v):o},v.nodeSort=function(n){return arguments.length?(a=n,v):a},v.nodeWidth=function(n){return arguments.length?(u=+n,v):u},v.nodePadding=function(n){return arguments.length?(x=g=+n,v):x},v.nodes=function(n){return arguments.length?(m=typeof n=="function"?n:q(n),v):m},v.links=function(n){return arguments.length?(_=typeof n=="function"?n:q(n),v):_},v.linkSort=function(n){return arguments.length?(h=n,v):h},v.size=function(n){return arguments.length?(t=i=0,s=+n[0],l=+n[1],v):[s-t,l-i]},v.extent=function(n){return arguments.length?(t=+n[0][0],s=+n[1][0],i=+n[0][1],l=+n[1][1],v):[[t,i],[s,l]]},v.iterations=function(n){return arguments.length?(d=+n,v):d};function T({nodes:n,links:f}){for(const[e,r]of n.entries())r.index=e,r.sourceLinks=[],r.targetLinks=[];const c=new Map(n.map((e,r)=>[k(e,r,n),e]));for(const[e,r]of f.entries()){r.index=e;let{source:p,target:b}=r;typeof p!="object"&&(p=r.source=ft(c,p)),typeof b!="object"&&(b=r.target=ft(c,b)),p.sourceLinks.push(r),b.targetLinks.push(r)}if(h!=null)for(const{sourceLinks:e,targetLinks:r}of n)e.sort(h),r.sort(h)}function A({nodes:n}){for(const f of n)f.value=f.fixedValue===void 0?Math.max(nt(f.sourceLinks,it),nt(f.targetLinks,it)):f.fixedValue}function M({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const p of c){p.depth=r;for(const{target:b}of p.sourceLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function I({nodes:n}){const f=n.length;let c=new Set(n),e=new Set,r=0;for(;c.size;){for(const p of c){p.height=r;for(const{source:b}of p.targetLinks)e.add(b)}if(++r>f)throw new Error("circular link");c=e,e=new Set}}function N({nodes:n}){const f=ct(n,r=>r.depth)+1,c=(s-t-u)/(f-1),e=new Array(f);for(const r of n){const p=Math.max(0,Math.min(f-1,Math.floor(o.call(null,r,f))));r.layer=p,r.x0=t+p*c,r.x1=r.x0+u,e[p]?e[p].push(r):e[p]=[r]}if(a)for(const r of e)r.sort(a);return e}function D(n){const f=pt(n,c=>(l-i-(c.length-1)*g)/nt(c,it));for(const c of n){let e=i;for(const r of c){r.y0=e,r.y1=e+r.value*f,e=r.y1+g;for(const p of r.sourceLinks)p.width=p.value*f}e=(l-e+g)/(c.length+1);for(let r=0;r<c.length;++r){const p=c[r];p.y0+=e*(r+1),p.y1+=e*(r+1)}w(c)}}function S(n){const f=N(n);g=Math.min(x,(l-i)/(ct(f,c=>c.length)-1)),D(f);for(let c=0;c<d;++c){const e=Math.pow(.99,c),r=Math.max(1-e,(c+1)/d);R(f,e,r),P(f,e,r)}}function P(n,f,c){for(let e=1,r=n.length;e<r;++e){const p=n[e];for(const b of p){let L=0,B=0;for(const{source:Y,value:et}of b.targetLinks){let H=et*(b.layer-Y.layer);L+=C(Y,b)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}a===void 0&&p.sort(K),j(p,c)}}function R(n,f,c){for(let e=n.length,r=e-2;r>=0;--r){const p=n[r];for(const b of p){let L=0,B=0;for(const{target:Y,value:et}of b.sourceLinks){let H=et*(Y.layer-b.layer);L+=E(b,Y)*H,B+=H}if(!(B>0))continue;let U=(L/B-b.y0)*f;b.y0+=U,b.y1+=U,z(b)}a===void 0&&p.sort(K),j(p,c)}}function j(n,f){const c=n.length>>1,e=n[c];O(n,e.y0-g,c-1,f),V(n,e.y1+g,c+1,f),O(n,l,n.length-1,f),V(n,i,0,f)}function V(n,f,c,e){for(;c<n.length;++c){const r=n[c],p=(f-r.y0)*e;p>1e-6&&(r.y0+=p,r.y1+=p),f=r.y1+g}}function O(n,f,c,e){for(;c>=0;--c){const r=n[c],p=(r.y1-f)*e;p>1e-6&&(r.y0-=p,r.y1-=p),f=r.y0-g}}function z({sourceLinks:n,targetLinks:f}){if(h===void 0){for(const{source:{sourceLinks:c}}of f)c.sort(ht);for(const{target:{targetLinks:c}}of n)c.sort(ut)}}function w(n){if(h===void 0)for(const{sourceLinks:f,targetLinks:c}of n)f.sort(ht),c.sort(ut)}function C(n,f){let c=n.y0-(n.sourceLinks.length-1)*g/2;for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c+=r+g}for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c-=r}return c}function E(n,f){let c=f.y0-(f.targetLinks.length-1)*g/2;for(const{source:e,width:r}of f.targetLinks){if(e===n)break;c+=r+g}for(const{target:e,width:r}of n.sourceLinks){if(e===f)break;c-=r}return c}return v}var rt=Math.PI,st=2*rt,F=1e-6,Bt=st-F;function ot(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function mt(){return new ot}ot.prototype=mt.prototype={constructor:ot,moveTo:function(t,i){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,i){this._+="L"+(this._x1=+t)+","+(this._y1=+i)},quadraticCurveTo:function(t,i,s,l){this._+="Q"+ +t+","+ +i+","+(this._x1=+s)+","+(this._y1=+l)},bezierCurveTo:function(t,i,s,l,u,x){this._+="C"+ +t+","+ +i+","+ +s+","+ +l+","+(this._x1=+u)+","+(this._y1=+x)},arcTo:function(t,i,s,l,u){t=+t,i=+i,s=+s,l=+l,u=+u;var x=this._x1,g=this._y1,k=s-t,o=l-i,a=x-t,h=g-i,m=a*a+h*h;if(u<0)throw new Error("negative radius: "+u);if(this._x1===null)this._+="M"+(this._x1=t)+","+(this._y1=i);else if(m>F)if(!(Math.abs(h*k-o*a)>F)||!u)this._+="L"+(this._x1=t)+","+(this._y1=i);else{var _=s-x,d=l-g,v=k*k+o*o,T=_*_+d*d,A=Math.sqrt(v),M=Math.sqrt(m),I=u*Math.tan((rt-Math.acos((v+m-T)/(2*A*M)))/2),N=I/M,D=I/A;Math.abs(N-1)>F&&(this._+="L"+(t+N*a)+","+(i+N*h)),this._+="A"+u+","+u+",0,0,"+ +(h*_>a*d)+","+(this._x1=t+D*k)+","+(this._y1=i+D*o)}},arc:function(t,i,s,l,u,x){t=+t,i=+i,s=+s,x=!!x;var g=s*Math.cos(l),k=s*Math.sin(l),o=t+g,a=i+k,h=1^x,m=x?l-u:u-l;if(s<0)throw new Error("negative radius: "+s);this._x1===null?this._+="M"+o+","+a:(Math.abs(this._x1-o)>F||Math.abs(this._y1-a)>F)&&(this._+="L"+o+","+a),s&&(m<0&&(m=m%st+st),m>Bt?this._+="A"+s+","+s+",0,1,"+h+","+(t-g)+","+(i-k)+"A"+s+","+s+",0,1,"+h+","+(this._x1=o)+","+(this._y1=a):m>F&&(this._+="A"+s+","+s+",0,"+ +(m>=rt)+","+h+","+(this._x1=t+s*Math.cos(u))+","+(this._y1=i+s*Math.sin(u))))},rect:function(t,i,s,l){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+i)+"h"+ +s+"v"+ +l+"h"+-s+"Z"},toString:function(){return this._}};function dt(t){return function(){return t}}function Ft(t){return t[0]}function Rt(t){return t[1]}var Vt=Array.prototype.slice;function Wt(t){return t.source}function Gt(t){return t.target}function Ut(t){var i=Wt,s=Gt,l=Ft,u=Rt,x=null;function g(){var k,o=Vt.call(arguments),a=i.apply(this,o),h=s.apply(this,o);if(x||(x=k=mt()),t(x,+l.apply(this,(o[0]=a,o)),+u.apply(this,o),+l.apply(this,(o[0]=h,o)),+u.apply(this,o)),k)return x=null,k+""||null}return g.source=function(k){return arguments.length?(i=k,g):i},g.target=function(k){return arguments.length?(s=k,g):s},g.x=function(k){return arguments.length?(l=typeof k=="function"?k:dt(+k),g):l},g.y=function(k){return arguments.length?(u=typeof k=="function"?k:dt(+k),g):u},g.context=function(k){return arguments.length?(x=k??null,g):x},g}function Yt(t,i,s,l,u){t.moveTo(i,s),t.bezierCurveTo(i=(i+l)/2,s,i,u,l,u)}function Ht(){return Ut(Yt)}function Xt(t){return[t.source.x1,t.y0]}function qt(t){return[t.target.x0,t.y1]}function Kt(){return Ht().source(Xt).target(qt)}var at=(function(){var t=y(function(k,o,a,h){for(a=a||{},h=k.length;h--;a[k[h]]=o);return a},"o"),i=[1,9],s=[1,10],l=[1,5,10,12],u={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:y(function(o,a,h,m,_,d,v){var T=d.length-1;switch(_){case 7:const A=m.findOrCreateNode(d[T-4].trim().replaceAll('""','"')),M=m.findOrCreateNode(d[T-2].trim().replaceAll('""','"')),I=parseFloat(d[T].trim());m.addLink(A,M,I);break;case 8:case 9:case 11:this.$=d[T];break;case 10:this.$=d[T-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:i,20:s},{1:[2,6],7:11,10:[1,12]},t(s,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(l,[2,8]),t(l,[2,9]),{19:[1,16]},t(l,[2,11]),{1:[2,1]},{1:[2,5]},t(s,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:i,20:s},{15:18,16:7,17:8,18:i,20:s},{18:[1,19]},t(s,[2,3]),{12:[1,20]},t(l,[2,10]),{15:21,16:7,17:8,18:i,20:s},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:y(function(o,a){if(a.recoverable)this.trace(o);else{var h=new Error(o);throw h.hash=a,h}},"parseError"),parse:y(function(o){var a=this,h=[0],m=[],_=[null],d=[],v=this.table,T="",A=0,M=0,I=2,N=1,D=d.slice.call(arguments,1),S=Object.create(this.lexer),P={yy:{}};for(var R in this.yy)Object.prototype.hasOwnProperty.call(this.yy,R)&&(P.yy[R]=this.yy[R]);S.setInput(o,P.yy),P.yy.lexer=S,P.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var j=S.yylloc;d.push(j);var V=S.options&&S.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function O(L){h.length=h.length-2*L,_.length=_.length-L,d.length=d.length-L}y(O,"popStack");function z(){var L;return L=m.pop()||S.lex()||N,typeof L!="number"&&(L instanceof Array&&(m=L,L=m.pop()),L=a.symbols_[L]||L),L}y(z,"lex");for(var w,C,E,n,f={},c,e,r,p;;){if(C=h[h.length-1],this.defaultActions[C]?E=this.defaultActions[C]:((w===null||typeof w>"u")&&(w=z()),E=v[C]&&v[C][w]),typeof E>"u"||!E.length||!E[0]){var b="";p=[];for(c in v[C])this.terminals_[c]&&c>I&&p.push("'"+this.terminals_[c]+"'");S.showPosition?b="Parse error on line "+(A+1)+`:
2
2
  `+S.showPosition()+`
3
3
  Expecting `+p.join(", ")+", got '"+(this.terminals_[w]||w)+"'":b="Parse error on line "+(A+1)+": Unexpected "+(w==N?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(b,{text:S.match,token:this.terminals_[w]||w,line:S.yylineno,loc:j,expected:p})}if(E[0]instanceof Array&&E.length>1)throw new Error("Parse Error: multiple actions possible at state: "+C+", token: "+w);switch(E[0]){case 1:h.push(w),_.push(S.yytext),d.push(S.yylloc),h.push(E[1]),w=null,M=S.yyleng,T=S.yytext,A=S.yylineno,j=S.yylloc;break;case 2:if(e=this.productions_[E[1]][1],f.$=_[_.length-e],f._$={first_line:d[d.length-(e||1)].first_line,last_line:d[d.length-1].last_line,first_column:d[d.length-(e||1)].first_column,last_column:d[d.length-1].last_column},V&&(f._$.range=[d[d.length-(e||1)].range[0],d[d.length-1].range[1]]),n=this.performAction.apply(f,[T,M,A,P.yy,E[1],_,d].concat(D)),typeof n<"u")return n;e&&(h=h.slice(0,-1*e*2),_=_.slice(0,-1*e),d=d.slice(0,-1*e)),h.push(this.productions_[E[1]][0]),_.push(f.$),d.push(f._$),r=v[h[h.length-2]][h[h.length-1]],h.push(r);break;case 3:return!0}}return!0},"parse")},x=(function(){var k={EOF:1,parseError:y(function(a,h){if(this.yy.parser)this.yy.parser.parseError(a,h);else throw new Error(a)},"parseError"),setInput:y(function(o,a){return this.yy=a||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:y(function(o){var a=o.length,h=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var m=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),h.length-1&&(this.yylineno-=h.length-1);var _=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:h?(h.length===m.length?this.yylloc.first_column:0)+m[m.length-h.length].length-h[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(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:y(function(o){this.unput(this.match.slice(o))},"less"),pastInput:y(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
@@ -1,4 +1,4 @@
1
- import{I as rr}from"./DCuB-wUt.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./47q6TsqV.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./BDaXmtmH.js";import{c3 as Kt,g as B,h as xr}from"./CJhZDVuE.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[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],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[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=[2,78],Nt=[4,5,17,51,53,54],Mt=[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],De=[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],Xt=[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],ve=[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],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"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],[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:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-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:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"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:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,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],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
1
+ import{I as rr}from"./BIYsIqQO.js";import{a as x,aH as ar,N as j,ad as st,r as sr,c as ir,p as N,aG as Ye,aF as nr,aI as or,L as cr,K as lr,O as hr,ac as dr,J as Tr,k as pr,aD as Wt,aV as Q,X as $,e as vt,aB as Er,an as Fe,Z as ur,M as Ht,V as fr,ay as He}from"./D3vOZLLK.js";import{d as _r,h as ne,g as Tt,e as gr,a as oe,b as ce}from"./B1Geyr6r.js";import{c3 as Kt,g as B,h as xr}from"./Clof0uHU.js";var qe=xr(Er()),ae=(function(){var e=x(function(ft,A,v,P){for(v=v||{},P=ft.length;P--;v[ft[P]]=A);return v},"o"),t=[1,2],a=[1,3],r=[1,4],i=[2,4],n=[1,9],s=[1,11],c=[1,12],p=[1,14],h=[1,15],E=[1,17],_=[1,18],u=[1,19],O=[1,25],T=[1,26],g=[1,27],f=[1,28],I=[1,29],L=[1,30],b=[1,31],w=[1,32],S=[1,33],D=[1,34],M=[1,35],Y=[1,36],K=[1,37],G=[1,38],X=[1,39],J=[1,40],ot=[1,42],tt=[1,43],z=[1,44],it=[1,45],et=[1,46],W=[1,47],C=[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],wt=[1,74],Ct=[1,80],m=[1,81],k=[1,82],dt=[1,83],rt=[1,84],F=[1,85],bt=[1,86],pe=[1,87],Ee=[1,88],ue=[1,89],fe=[1,90],_e=[1,91],ge=[1,92],xe=[1,93],Ie=[1,94],ye=[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=[2,78],Nt=[4,5,17,51,53,54],Mt=[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],De=[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],Xt=[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],ve=[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],H=[70,71,72,73],ct=[1,151],Zt={trace:x(B(function(){},"trace"),"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],[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:x(B(function(A,v,P,y,U,o,kt){var d=o.length-1;switch(U){case 3:return y.apply(o[d]),o[d];case 4:case 10:this.$=[];break;case 5:case 11:o[d-1].push(o[d]),this.$=o[d-1];break;case 6:case 7:case 12:case 13:this.$=o[d];break;case 8:case 9:case 14:this.$=[];break;case 16:o[d].type="createParticipant",this.$=o[d];break;case 17:o[d-1].unshift({type:"boxStart",boxData:y.parseBoxData(o[d-2])}),o[d-1].push({type:"boxEnd",boxText:o[d-2]}),this.$=o[d-1];break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-2]),sequenceIndexStep:Number(o[d-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceIndex:Number(o[d-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:o[d-1].actor};break;case 24:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-1].actor};break;case 30:y.setDiagramTitle(o[d].substring(6)),this.$=o[d].substring(6);break;case 31:y.setDiagramTitle(o[d].substring(7)),this.$=o[d].substring(7);break;case 32:this.$=o[d].trim(),y.setAccTitle(this.$);break;case 33:case 34:this.$=o[d].trim(),y.setAccDescription(this.$);break;case 35:o[d-1].unshift({type:"loopStart",loopText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.LOOP_START}),o[d-1].push({type:"loopEnd",loopText:o[d-2],signalType:y.LINETYPE.LOOP_END}),this.$=o[d-1];break;case 36:o[d-1].unshift({type:"rectStart",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_START}),o[d-1].push({type:"rectEnd",color:y.parseMessage(o[d-2]),signalType:y.LINETYPE.RECT_END}),this.$=o[d-1];break;case 37:o[d-1].unshift({type:"optStart",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_START}),o[d-1].push({type:"optEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.OPT_END}),this.$=o[d-1];break;case 38:o[d-1].unshift({type:"altStart",altText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.ALT_START}),o[d-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=o[d-1];break;case 39:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 40:o[d-1].unshift({type:"parStart",parText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.PAR_OVER_START}),o[d-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=o[d-1];break;case 41:o[d-1].unshift({type:"criticalStart",criticalText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.CRITICAL_START}),o[d-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=o[d-1];break;case 42:o[d-1].unshift({type:"breakStart",breakText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_START}),o[d-1].push({type:"breakEnd",optText:y.parseMessage(o[d-2]),signalType:y.LINETYPE.BREAK_END}),this.$=o[d-1];break;case 44:this.$=o[d-3].concat([{type:"option",optionText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.CRITICAL_OPTION},o[d]]);break;case 46:this.$=o[d-3].concat([{type:"and",parText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.PAR_AND},o[d]]);break;case 48:this.$=o[d-3].concat([{type:"else",altText:y.parseMessage(o[d-1]),signalType:y.LINETYPE.ALT_ELSE},o[d]]);break;case 49:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 50:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 51:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 52:case 57:o[d-1].draw="actor",o[d-1].type="addParticipant",this.$=o[d-1];break;case 53:o[d-1].type="destroyParticipant",this.$=o[d-1];break;case 54:o[d-3].draw="participant",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 55:o[d-1].draw="participant",o[d-1].type="addParticipant",this.$=o[d-1];break;case 56:o[d-3].draw="actor",o[d-3].type="addParticipant",o[d-3].description=y.parseMessage(o[d-1]),this.$=o[d-3];break;case 58:this.$=[o[d-1],{type:"addNote",placement:o[d-2],actor:o[d-1].actor,text:o[d]}];break;case 59:o[d-2]=[].concat(o[d-1],o[d-1]).slice(0,2),o[d-2][0]=o[d-2][0].actor,o[d-2][1]=o[d-2][1].actor,this.$=[o[d-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:o[d-2].slice(0,2),text:o[d]}];break;case 60:this.$=[o[d-1],{type:"addLinks",actor:o[d-1].actor,text:o[d]}];break;case 61:this.$=[o[d-1],{type:"addALink",actor:o[d-1].actor,text:o[d]}];break;case 62:this.$=[o[d-1],{type:"addProperties",actor:o[d-1].actor,text:o[d]}];break;case 63:this.$=[o[d-1],{type:"addDetails",actor:o[d-1].actor,text:o[d]}];break;case 66:this.$=[o[d-2],o[d]];break;case 67:this.$=o[d];break;case 68:this.$=y.PLACEMENT.LEFTOF;break;case 69:this.$=y.PLACEMENT.RIGHTOF;break;case 70:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:o[d-1].actor}];break;case 71:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:o[d-4].actor}];break;case 72:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor}];break;case 73:this.$=[o[d-4],o[d-1],{type:"addMessage",from:o[d-4].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d],activate:!1,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_REVERSE},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-4].actor}];break;case 74:this.$=[o[d-5],o[d-1],{type:"addMessage",from:o[d-5].actor,to:o[d-1].actor,signalType:o[d-3],msg:o[d],activate:!0,centralConnection:y.LINETYPE.CENTRAL_CONNECTION_DUAL},{type:"centralConnection",signalType:y.LINETYPE.CENTRAL_CONNECTION,actor:o[d-1].actor},{type:"centralConnectionReverse",signalType:y.LINETYPE.CENTRAL_CONNECTION_REVERSE,actor:o[d-5].actor}];break;case 75:this.$=[o[d-3],o[d-1],{type:"addMessage",from:o[d-3].actor,to:o[d-1].actor,signalType:o[d-2],msg:o[d]}];break;case 76:this.$={type:"addParticipant",actor:o[d-1],config:o[d]};break;case 77:this.$=o[d-1].trim();break;case 78:this.$={type:"addParticipant",actor:o[d]};break;case 79:this.$=y.LINETYPE.SOLID_OPEN;break;case 80:this.$=y.LINETYPE.DOTTED_OPEN;break;case 81:this.$=y.LINETYPE.SOLID;break;case 82:this.$=y.LINETYPE.SOLID_TOP;break;case 83:this.$=y.LINETYPE.SOLID_BOTTOM;break;case 84:this.$=y.LINETYPE.STICK_TOP;break;case 85:this.$=y.LINETYPE.STICK_BOTTOM;break;case 86:this.$=y.LINETYPE.SOLID_TOP_DOTTED;break;case 87:this.$=y.LINETYPE.SOLID_BOTTOM_DOTTED;break;case 88:this.$=y.LINETYPE.STICK_TOP_DOTTED;break;case 89:this.$=y.LINETYPE.STICK_BOTTOM_DOTTED;break;case 90:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE;break;case 91:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE;break;case 92:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE;break;case 93:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE;break;case 94:this.$=y.LINETYPE.SOLID_ARROW_TOP_REVERSE_DOTTED;break;case 95:this.$=y.LINETYPE.SOLID_ARROW_BOTTOM_REVERSE_DOTTED;break;case 96:this.$=y.LINETYPE.STICK_ARROW_TOP_REVERSE_DOTTED;break;case 97:this.$=y.LINETYPE.STICK_ARROW_BOTTOM_REVERSE_DOTTED;break;case 98:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 99:this.$=y.LINETYPE.DOTTED;break;case 100:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 101:this.$=y.LINETYPE.SOLID_CROSS;break;case 102:this.$=y.LINETYPE.DOTTED_CROSS;break;case 103:this.$=y.LINETYPE.SOLID_POINT;break;case 104:this.$=y.LINETYPE.DOTTED_POINT;break;case 105:this.$=y.parseMessage(o[d].trim().substring(1));break}},"anonymous"),"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:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,5]),{9:48,13:13,14:p,15:h,18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},e(C,[2,7]),e(C,[2,8]),e(C,[2,9]),e(C,[2,15]),{13:49,51:G,53:X,54:J},{16:[1,50]},{5:[1,51]},{5:[1,54],20:[1,52],21:[1,53]},{23:55,73:W},{23:56,73:W},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},{5:[1,61]},e(C,[2,30]),e(C,[2,31]),{33:[1,62]},{35:[1,63]},e(C,[2,34]),{16:[1,64]},{16:[1,65]},{16:[1,66]},{16:[1,67]},{16:[1,68]},{16:[1,69]},{16:[1,70]},{16:[1,71]},{23:72,55:73,73:wt},{23:75,55:76,73:wt},{23:77,73:W},{69:78,72:[1,79],78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},{57:106,59:[1,107],67:[1,108],68:[1,109]},{23:110,73:W},{23:111,73:W},{23:112,73:W},{23:113,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],ke),e(C,[2,6]),e(C,[2,16]),e(Nt,[2,10],{11:114}),e(C,[2,18]),{5:[1,116],20:[1,115]},{5:[1,117]},e(C,[2,22]),{5:[1,118]},{5:[1,119]},e(C,[2,25]),e(C,[2,26]),e(C,[2,27]),e(C,[2,28]),e(C,[2,29]),e(C,[2,32]),e(C,[2,33]),e(Mt,i,{7:120}),e(Mt,i,{7:121}),e(Mt,i,{7:122}),e(De,i,{41:123,7:124}),e(Xt,i,{43:125,7:126}),e(Xt,i,{7:126,43:127}),e(ve,i,{46:128,7:129}),e(Mt,i,{7:130}),{5:[1,132],52:[1,131]},{5:[1,134],52:[1,133]},e(Jt,ke,{74:135,75:[1,136]}),{5:[1,138],52:[1,137]},{5:[1,140],52:[1,139]},{5:[1,141]},{23:145,70:[1,142],71:[1,143],72:[1,144],73:W},{69:146,78:Ct,79:m,80:k,81:dt,82:rt,83:F,84:bt,85:pe,86:Ee,87:ue,88:fe,89:_e,90:ge,91:xe,92:Ie,93:ye,94:Re,95:Oe,96:Le,97:be,98:me,99:Se,100:Ae,101:we,102:Ne,103:Pe},e(H,[2,79]),e(H,[2,80]),e(H,[2,81]),e(H,[2,82]),e(H,[2,83]),e(H,[2,84]),e(H,[2,85]),e(H,[2,86]),e(H,[2,87]),e(H,[2,88]),e(H,[2,89]),e(H,[2,90]),e(H,[2,91]),e(H,[2,92]),e(H,[2,93]),e(H,[2,94]),e(H,[2,95]),e(H,[2,96]),e(H,[2,97]),e(H,[2,98]),e(H,[2,99]),e(H,[2,100]),e(H,[2,101]),e(H,[2,102]),e(H,[2,103]),e(H,[2,104]),{23:147,73:W},{23:149,60:148,73:W},{73:[2,68]},{73:[2,69]},{58:150,104:ct},{58:152,104:ct},{58:153,104:ct},{58:154,104:ct},{4:[1,157],5:[1,159],12:156,13:158,17:[1,155],51:G,53:X,54:J},{5:[1,160]},e(C,[2,20]),e(C,[2,21]),e(C,[2,23]),e(C,[2,24]),{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,161],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,162],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,163],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,164]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,47],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,50:[1,165],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,166]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,45],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,49:[1,167],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{17:[1,168]},{17:[1,169]},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[2,43],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,48:[1,170],51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{4:n,5:s,8:8,9:10,10:c,13:13,14:p,15:h,17:[1,171],18:16,19:E,22:_,23:41,24:u,25:20,26:21,27:22,28:23,29:24,30:O,31:T,32:g,34:f,36:I,37:L,38:b,39:w,40:S,42:D,44:M,45:Y,47:K,51:G,53:X,54:J,56:ot,61:tt,62:z,63:it,64:et,73:W},{16:[1,172]},e(C,[2,50]),{16:[1,173]},e(C,[2,55]),e(Jt,[2,76]),{76:[1,174]},{16:[1,175]},e(C,[2,52]),{16:[1,176]},e(C,[2,57]),e(C,[2,53]),{23:177,73:W},{23:178,73:W},{23:179,73:W},{58:180,104:ct},{23:181,72:[1,182],73:W},{58:183,104:ct},{58:184,104:ct},{66:[1,185],104:[2,67]},{5:[2,60]},{5:[2,105]},{5:[2,61]},{5:[2,62]},{5:[2,63]},e(C,[2,17]),e(Nt,[2,11]),{13:186,51:G,53:X,54:J},e(Nt,[2,13]),e(Nt,[2,14]),e(C,[2,19]),e(C,[2,35]),e(C,[2,36]),e(C,[2,37]),e(C,[2,38]),{16:[1,187]},e(C,[2,39]),{16:[1,188]},e(C,[2,40]),e(C,[2,41]),{16:[1,189]},e(C,[2,42]),{5:[1,190]},{5:[1,191]},{77:[1,192]},{5:[1,193]},{5:[1,194]},{58:195,104:ct},{58:196,104:ct},{58:197,104:ct},{5:[2,75]},{58:198,104:ct},{23:199,73:W},{5:[2,58]},{5:[2,59]},{23:200,73:W},e(Nt,[2,12]),e(De,i,{7:124,41:201}),e(Xt,i,{7:126,43:202}),e(ve,i,{7:129,46:203}),e(C,[2,49]),e(C,[2,54]),e(Jt,[2,77]),e(C,[2,51]),e(C,[2,56]),{5:[2,70]},{5:[2,71]},{5:[2,72]},{5:[2,73]},{58:204,104:ct},{104:[2,66]},{17:[2,48]},{17:[2,46]},{17:[2,44]},{5:[2,74]}],defaultActions:{5:[2,1],6:[2,2],108:[2,68],109:[2,69],150:[2,60],151:[2,105],152:[2,61],153:[2,62],154:[2,63],180:[2,75],183:[2,58],184:[2,59],195:[2,70],196:[2,71],197:[2,72],198:[2,73],200:[2,66],201:[2,48],202:[2,46],203:[2,44],204:[2,74]},parseError:x(B(function(A,v){if(v.recoverable)this.trace(A);else{var P=new Error(A);throw P.hash=v,P}},"parseError"),"parseError"),parse:x(B(function(A){var v=this,P=[0],y=[],U=[null],o=[],kt=this.table,d="",Bt=0,Ce=0,je=2,Me=1,tr=o.slice.call(arguments,1),Z=Object.create(this.lexer),xt={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(xt.yy[Qt]=this.yy[Qt]);Z.setInput(A,xt.yy),xt.yy.lexer=Z,xt.yy.parser=this,typeof Z.yylloc>"u"&&(Z.yylloc={});var $t=Z.yylloc;o.push($t);var er=Z.options&&Z.options.ranges;typeof xt.yy.parseError=="function"?this.parseError=xt.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Be(nt){P.length=P.length-2*nt,U.length=U.length-nt,o.length=o.length-nt}B(Be,"popStack"),x(Be,"popStack");function jt(){var nt;return nt=y.pop()||Z.lex()||Me,typeof nt!="number"&&(nt instanceof Array&&(y=nt,nt=y.pop()),nt=v.symbols_[nt]||nt),nt}B(jt,"lex"),x(jt,"lex");for(var at,It,lt,te,mt={},Vt,pt,Ve,Yt;;){if(It=P[P.length-1],this.defaultActions[It]?lt=this.defaultActions[It]:((at===null||typeof at>"u")&&(at=jt()),lt=kt[It]&&kt[It][at]),typeof lt>"u"||!lt.length||!lt[0]){var ee="";Yt=[];for(Vt in kt[It])this.terminals_[Vt]&&Vt>je&&Yt.push("'"+this.terminals_[Vt]+"'");Z.showPosition?ee="Parse error on line "+(Bt+1)+`:
2
2
  `+Z.showPosition()+`
3
3
  Expecting `+Yt.join(", ")+", got '"+(this.terminals_[at]||at)+"'":ee="Parse error on line "+(Bt+1)+": Unexpected "+(at==Me?"end of input":"'"+(this.terminals_[at]||at)+"'"),this.parseError(ee,{text:Z.match,token:this.terminals_[at]||at,line:Z.yylineno,loc:$t,expected:Yt})}if(lt[0]instanceof Array&&lt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+It+", token: "+at);switch(lt[0]){case 1:P.push(at),U.push(Z.yytext),o.push(Z.yylloc),P.push(lt[1]),at=null,Ce=Z.yyleng,d=Z.yytext,Bt=Z.yylineno,$t=Z.yylloc;break;case 2:if(pt=this.productions_[lt[1]][1],mt.$=U[U.length-pt],mt._$={first_line:o[o.length-(pt||1)].first_line,last_line:o[o.length-1].last_line,first_column:o[o.length-(pt||1)].first_column,last_column:o[o.length-1].last_column},er&&(mt._$.range=[o[o.length-(pt||1)].range[0],o[o.length-1].range[1]]),te=this.performAction.apply(mt,[d,Ce,Bt,xt.yy,lt[1],U,o].concat(tr)),typeof te<"u")return te;pt&&(P=P.slice(0,-1*pt*2),U=U.slice(0,-1*pt),o=o.slice(0,-1*pt)),P.push(this.productions_[lt[1]][0]),U.push(mt.$),o.push(mt._$),Ve=kt[P[P.length-2]][P[P.length-1]],P.push(Ve);break;case 3:return!0}}return!0},"parse"),"parse")},$e=(function(){var ft={EOF:1,parseError:x(B(function(v,P){if(this.yy.parser)this.yy.parser.parseError(v,P);else throw new Error(v)},"parseError"),"parseError"),setInput:x(function(A,v){return this.yy=v||this.yy||{},this._input=A,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:x(function(){var A=this._input[0];this.yytext+=A,this.yyleng++,this.offset++,this.match+=A,this.matched+=A;var v=A.match(/(?:\r\n?|\n).*/g);return v?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),A},"input"),unput:x(function(A){var v=A.length,P=A.split(/(?:\r\n?|\n)/g);this._input=A+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-v),this.offset-=v;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),P.length-1&&(this.yylineno-=P.length-1);var U=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:P?(P.length===y.length?this.yylloc.first_column:0)+y[y.length-P.length].length-P[0].length:this.yylloc.first_column-v},this.options.ranges&&(this.yylloc.range=[U[0],U[0]+this.yyleng-v]),this.yyleng=this.yytext.length,this},"unput"),more:x(function(){return this._more=!0,this},"more"),reject:x(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:x(function(A){this.unput(this.match.slice(A))},"less"),pastInput:x(function(){var A=this.matched.substr(0,this.matched.length-this.match.length);return(A.length>20?"...":"")+A.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:x(function(){var A=this.match;return A.length<20&&(A+=this._input.substr(0,20-A.length)),(A.substr(0,20)+(A.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:x(function(){var A=this.pastInput(),v=new Array(A.length+1).join("-");return A+this.upcomingInput()+`