@intent-hq/web 2.383.5 → 2.383.6

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 (252) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{RFsxwSsB.js → -jC6R53Y.js} +1 -1
  3. package/web/app/immutable/chunks/{Co4vj0dC.js → 11IPfP64.js} +1 -1
  4. package/web/app/immutable/chunks/{WGwfzXjP.js → 1a7PBgFk.js} +1 -1
  5. package/web/app/immutable/chunks/{DnJ4jlPB.js → 2BBUaa8p.js} +1 -1
  6. package/web/app/immutable/chunks/{u2aKD69u.js → 3gdcau2g.js} +1 -1
  7. package/web/app/immutable/chunks/3lsVHf6U.js +10 -0
  8. package/web/app/immutable/chunks/{CFUZ-wx4.js → 606ykLjp.js} +3 -3
  9. package/web/app/immutable/chunks/{B8-Q1tED.js → 6D8I0EJP.js} +1 -1
  10. package/web/app/immutable/chunks/{BjfHx7zJ.js → 6mKf423T.js} +1 -1
  11. package/web/app/immutable/chunks/{BXCVSrGo.js → 7EHgRnzQ.js} +1 -1
  12. package/web/app/immutable/chunks/{CiMmbOsB.js → 7g_E9v8v.js} +1 -1
  13. package/web/app/immutable/chunks/{BTv8uh2C.js → 8o9CPlKy.js} +2 -2
  14. package/web/app/immutable/chunks/{f24VwgrA.js → 90dwRRI_.js} +1 -1
  15. package/web/app/immutable/chunks/9bpkKfDs.js +1 -0
  16. package/web/app/immutable/chunks/{No1eCFy3.js → B-4NNXpn.js} +1 -1
  17. package/web/app/immutable/chunks/{D6dlPeEM.js → B0-WaGMs.js} +1 -1
  18. package/web/app/immutable/chunks/{Bymbu99U.js → B0iC7Hp2.js} +1 -1
  19. package/web/app/immutable/chunks/{CBB3lnfZ.js → B2REQkHq.js} +3 -3
  20. package/web/app/immutable/chunks/{BAKPnd3w.js → B2w13ngc.js} +1 -1
  21. package/web/app/immutable/chunks/{C6mS8uZB.js → B50rrLDJ.js} +1 -1
  22. package/web/app/immutable/chunks/{CsD5HG3r.js → B51SeJXG.js} +1 -1
  23. package/web/app/immutable/chunks/{Cq88mLGj.js → B5R37z34.js} +3 -3
  24. package/web/app/immutable/chunks/{Cg871q2J.js → B5lAxopi.js} +1 -1
  25. package/web/app/immutable/chunks/{L_tYoUCb.js → B9ZFoPLo.js} +1 -1
  26. package/web/app/immutable/chunks/{c5QZsH9t.js → B9qXV8kb.js} +1 -1
  27. package/web/app/immutable/chunks/{C_KuQ05a.js → BAwmUXtg.js} +1 -1
  28. package/web/app/immutable/chunks/{BYChQVmd.js → BBIYuEK_.js} +1 -1
  29. package/web/app/immutable/chunks/{B_kMSQKD.js → BBdixUsX.js} +1 -1
  30. package/web/app/immutable/chunks/{CApA6QD2.js → BDATxlJG.js} +4 -4
  31. package/web/app/immutable/chunks/{BaW_cM4B.js → BFKNHcgD.js} +1 -1
  32. package/web/app/immutable/chunks/{CO5zWp8I.js → BFPO9C1I.js} +1 -1
  33. package/web/app/immutable/chunks/{RWObpdxy.js → BHzfXdU-.js} +1 -1
  34. package/web/app/immutable/chunks/{BxEf7uwl.js → BMF9dBr3.js} +1 -1
  35. package/web/app/immutable/chunks/{B4WuQori.js → BMWq5Cem.js} +1 -1
  36. package/web/app/immutable/chunks/{ClMg21pU.js → BNK8isss.js} +1 -1
  37. package/web/app/immutable/chunks/{Du0DJF2z.js → BNbuor20.js} +1 -1
  38. package/web/app/immutable/chunks/{DA5opfEp.js → BPjvgJzJ.js} +1 -1
  39. package/web/app/immutable/chunks/{CMEtJ5i1.js → BRdwblgo.js} +1 -1
  40. package/web/app/immutable/chunks/{j65te9ZT.js → BTtB75CV.js} +1 -1
  41. package/web/app/immutable/chunks/BWu0YXkV.js +1 -0
  42. package/web/app/immutable/chunks/{CqcqWJoa.js → BY98dnH8.js} +1 -1
  43. package/web/app/immutable/chunks/{3vWQiXY2.js → BYBhz2vc.js} +3 -3
  44. package/web/app/immutable/chunks/{Dj14JHUo.js → BYsxLCZX.js} +1 -1
  45. package/web/app/immutable/chunks/{wqIK2bns.js → BZxyR-1L.js} +1 -1
  46. package/web/app/immutable/chunks/{GuiAAF9e.js → BdReS-5Z.js} +1 -1
  47. package/web/app/immutable/chunks/{B5YNqIIm.js → BhFoVE_t.js} +1 -1
  48. package/web/app/immutable/chunks/{DaFpSJap.js → Bhl-6bQ6.js} +1 -1
  49. package/web/app/immutable/chunks/{Bs9K_x5H.js → BkPSRIlH.js} +1 -1
  50. package/web/app/immutable/chunks/{MEqItsKn.js → BlU12h14.js} +1 -1
  51. package/web/app/immutable/chunks/{DMV7vEM7.js → BlU2v4uc.js} +1 -1
  52. package/web/app/immutable/chunks/{CLkfOjAo.js → BmRtsF0k.js} +3 -3
  53. package/web/app/immutable/chunks/{Dlk4BhFg.js → BnG797lq.js} +1 -1
  54. package/web/app/immutable/chunks/{CDK_hSiv.js → BotfI-oJ.js} +1 -1
  55. package/web/app/immutable/chunks/{ZxEOlEA2.js → Bp4RMAg2.js} +1 -1
  56. package/web/app/immutable/chunks/{Bv1ckDXI.js → BpIice81.js} +1 -1
  57. package/web/app/immutable/chunks/{BNVrbjR5.js → BsHKPA8J.js} +2 -2
  58. package/web/app/immutable/chunks/{EK6zOAHM.js → BsOWc0fD.js} +1 -1
  59. package/web/app/immutable/chunks/BsuKoRte.js +1 -0
  60. package/web/app/immutable/chunks/{DZYWuj4L.js → Bx7gEyNR.js} +1 -1
  61. package/web/app/immutable/chunks/{Dql2ogGT.js → BxQcCpea.js} +1 -1
  62. package/web/app/immutable/chunks/{C0cGUVCr.js → BxTLs9JS.js} +1 -1
  63. package/web/app/immutable/chunks/{C7Zl7z5c.js → ByGaQPue.js} +1 -1
  64. package/web/app/immutable/chunks/{BwfxdDPw.js → BzuFQ4uC.js} +1 -1
  65. package/web/app/immutable/chunks/{CwTtJpch.js → C-HPMTfc.js} +1 -1
  66. package/web/app/immutable/chunks/{6Bqipt1r.js → C-LBvoL7.js} +1 -1
  67. package/web/app/immutable/chunks/{ozVAo4aX.js → C1JG3JxG.js} +1 -1
  68. package/web/app/immutable/chunks/{B_JCVgq0.js → C2307jRD.js} +1 -1
  69. package/web/app/immutable/chunks/{-afdnSwu.js → C2XGUcnW.js} +1 -1
  70. package/web/app/immutable/chunks/{DCRuihKm.js → C2jYl_tm.js} +2 -2
  71. package/web/app/immutable/chunks/{CkA2ItLw.js → C3Cs4xcH.js} +1 -1
  72. package/web/app/immutable/chunks/{518Fef2L.js → C3kvbgti.js} +1 -1
  73. package/web/app/immutable/chunks/{C4QKwtCH.js → C429ViPJ.js} +1 -1
  74. package/web/app/immutable/chunks/{nTGBknlr.js → C5I-aQNv.js} +1 -1
  75. package/web/app/immutable/chunks/{D8UBdXB2.js → C6UuYHLt.js} +1 -1
  76. package/web/app/immutable/chunks/{_SYFiE9N.js → C7Q9MjK0.js} +1 -1
  77. package/web/app/immutable/chunks/{Dp-6l6dc.js → C8iCqYhc.js} +1 -1
  78. package/web/app/immutable/chunks/{DibfmKHg.js → C9Ea_4DW.js} +1 -1
  79. package/web/app/immutable/chunks/{Bty1UglO.js → CAXPT_Gw.js} +1 -1
  80. package/web/app/immutable/chunks/{IK5u1LkS.js → CAgJTEqX.js} +1 -1
  81. package/web/app/immutable/chunks/{DizKilK3.js → CBh3oApX.js} +2 -2
  82. package/web/app/immutable/chunks/{W0L8GDXP.js → CChkl_5h.js} +1 -1
  83. package/web/app/immutable/chunks/{DC8keNAk.js → CCjzzCpy.js} +1 -1
  84. package/web/app/immutable/chunks/{D51XIZYq.js → CDLANF8s.js} +1 -1
  85. package/web/app/immutable/chunks/{Dac_vP74.js → CDr_0i5Z.js} +1 -1
  86. package/web/app/immutable/chunks/{BYq9VtBF.js → CENp25rd.js} +1 -1
  87. package/web/app/immutable/chunks/{Cngzlos4.js → CHTaR4fl.js} +1 -1
  88. package/web/app/immutable/chunks/{BIQB3Kx5.js → CHoUTmhW.js} +1 -1
  89. package/web/app/immutable/chunks/{BqRWw-wJ.js → CIWayVej.js} +1 -1
  90. package/web/app/immutable/chunks/{DsGUBv3k.js → CQwOMyxz.js} +1 -1
  91. package/web/app/immutable/chunks/{yFcbscNn.js → CRdOY_2z.js} +1 -1
  92. package/web/app/immutable/chunks/{DKHY8q_S.js → CTP1vzdq.js} +1 -1
  93. package/web/app/immutable/chunks/{CRZZ_hOy.js → CW0Mb2k4.js} +1 -1
  94. package/web/app/immutable/chunks/{-tAyw6ob.js → CXqdP_ch.js} +1 -1
  95. package/web/app/immutable/chunks/{B2Ym4lhl.js → CYkPVUDx.js} +1 -1
  96. package/web/app/immutable/chunks/{cfdblcWY.js → Cb0qNR4H.js} +1 -1
  97. package/web/app/immutable/chunks/{BYdTf9Vr.js → CbazPhvO.js} +1 -1
  98. package/web/app/immutable/chunks/{CwtLM6uA.js → CdyTEe8y.js} +1 -1
  99. package/web/app/immutable/chunks/{CmrjfWYI.js → Ce1_P2yR.js} +1 -1
  100. package/web/app/immutable/chunks/{C9dAybnM.js → CeGEVvKd.js} +2 -2
  101. package/web/app/immutable/chunks/{DDfr81XI.js → CfOfDsl2.js} +1 -1
  102. package/web/app/immutable/chunks/{Cgxwerkr.js → CgCfiUM-.js} +2 -2
  103. package/web/app/immutable/chunks/{C8y9EItt.js → Chp6TQgb.js} +1 -1
  104. package/web/app/immutable/chunks/{BhSvmxU-.js → CjJvlfCr.js} +4 -4
  105. package/web/app/immutable/chunks/{tZyAiGvb.js → ClIBKxjv.js} +1 -1
  106. package/web/app/immutable/chunks/{BpcUO3Xs.js → Cm4ptdH4.js} +1 -1
  107. package/web/app/immutable/chunks/{OtomGvb3.js → CmAb18no.js} +1 -1
  108. package/web/app/immutable/chunks/{BaujsV9k.js → Cppy6ZYG.js} +1 -1
  109. package/web/app/immutable/chunks/{BTrqJIJZ.js → Cq_r_CYV.js} +1 -1
  110. package/web/app/immutable/chunks/{DqWLkzGY.js → CqcYFh8j.js} +1 -1
  111. package/web/app/immutable/chunks/{FzlZUztb.js → CttA-M7l.js} +1 -1
  112. package/web/app/immutable/chunks/{C4LrSRW3.js → Cv71FrWX.js} +1 -1
  113. package/web/app/immutable/chunks/{WiA7_4AK.js → Cyc867L5.js} +1 -1
  114. package/web/app/immutable/chunks/{CP9Lq5G_.js → D0a_zKAq.js} +1 -1
  115. package/web/app/immutable/chunks/{B-MmNWOm.js → D1gev-Oa.js} +1 -1
  116. package/web/app/immutable/chunks/{DTuql3Rj.js → D32iIfZB.js} +1 -1
  117. package/web/app/immutable/chunks/{Bg_lZIRf.js → D3KbOo9x.js} +2 -2
  118. package/web/app/immutable/chunks/{D_Xpj-6r.js → D5TRf27k.js} +1 -1
  119. package/web/app/immutable/chunks/{Djp7mdlG.js → D6x1PvJt.js} +1 -1
  120. package/web/app/immutable/chunks/{CHKnj_kH.js → D85Dkv1L.js} +1 -1
  121. package/web/app/immutable/chunks/{BWbkCnfm.js → D93FnkSV.js} +1 -1
  122. package/web/app/immutable/chunks/{Bvi-fRGz.js → DA3JhNUa.js} +1 -1
  123. package/web/app/immutable/chunks/{CqnrQ6ti.js → DA6FwFPA.js} +3 -3
  124. package/web/app/immutable/chunks/{BmkXo3Yq.js → DAi59CB_.js} +1 -1
  125. package/web/app/immutable/chunks/{C3upI-xJ.js → DAj3--4v.js} +1 -1
  126. package/web/app/immutable/chunks/{fiz8N_zQ.js → DCL0Px6m.js} +1 -1
  127. package/web/app/immutable/chunks/{BxoyDHGw.js → DDWXzJJL.js} +1 -1
  128. package/web/app/immutable/chunks/{DrIA1Azf.js → DDxtqhsd.js} +1 -1
  129. package/web/app/immutable/chunks/{CY4fyoCV.js → DEe4pSnF.js} +1 -1
  130. package/web/app/immutable/chunks/{Dsr4GELp.js → DFUCAM2K.js} +1 -1
  131. package/web/app/immutable/chunks/{Do2giiGP.js → DGdXhwsJ.js} +1 -1
  132. package/web/app/immutable/chunks/{BP5uGGO_.js → DHLXX1td.js} +1 -1
  133. package/web/app/immutable/chunks/{BypvqIQM.js → DHbAORA3.js} +1 -1
  134. package/web/app/immutable/chunks/{B4SiDSWP.js → DI_O2uCQ.js} +1 -1
  135. package/web/app/immutable/chunks/{Ctbo6mXV.js → DJcj8WvN.js} +1 -1
  136. package/web/app/immutable/chunks/{B8V-jGiS.js → DML-1n7e.js} +1 -1
  137. package/web/app/immutable/chunks/{BZC6DuKQ.js → DMtuN9wu.js} +1 -1
  138. package/web/app/immutable/chunks/{C0o77pad.js → DODT78Qk.js} +2 -2
  139. package/web/app/immutable/chunks/{CG-tM1HG.js → DOXAHHuz.js} +2 -2
  140. package/web/app/immutable/chunks/{Dr8j8hDa.js → DPTzvpZC.js} +2 -2
  141. package/web/app/immutable/chunks/{Bj84UPYb.js → DPpIdNvg.js} +1 -1
  142. package/web/app/immutable/chunks/{DbZ5HUqx.js → DSpm6A1W.js} +2 -2
  143. package/web/app/immutable/chunks/{CJtViYfh.js → DT4Cgjmu.js} +1 -1
  144. package/web/app/immutable/chunks/{Yyy6gahW.js → DTFjA6nd.js} +1 -1
  145. package/web/app/immutable/chunks/{DPCOdXX2.js → DTpKHtQ2.js} +1 -1
  146. package/web/app/immutable/chunks/{DAJnPbZk.js → DUJWrM6V.js} +4 -4
  147. package/web/app/immutable/chunks/{CHLX1QZz.js → DXn0DuET.js} +1 -1
  148. package/web/app/immutable/chunks/{CWdKrGNN.js → DYVqPPax.js} +1 -1
  149. package/web/app/immutable/chunks/{eElW3aeh.js → DZ84MPQO.js} +1 -1
  150. package/web/app/immutable/chunks/{Dirmxn0x.js → Day2rmDJ.js} +1 -1
  151. package/web/app/immutable/chunks/{lzAd2Up3.js → DayBneSF.js} +1 -1
  152. package/web/app/immutable/chunks/{DT3Kx0Qe.js → DdYRxRPc.js} +1 -1
  153. package/web/app/immutable/chunks/{DATzIj-C.js → DfNht_cf.js} +1 -1
  154. package/web/app/immutable/chunks/{DFi1P2MD.js → DhHELjW9.js} +1 -1
  155. package/web/app/immutable/chunks/{QeBH-DWE.js → Dhy-QJgd.js} +1 -1
  156. package/web/app/immutable/chunks/{KYuLFpkq.js → DiNBgjb1.js} +1 -1
  157. package/web/app/immutable/chunks/{C1EvfTg-.js → DjNVz8pO.js} +1 -1
  158. package/web/app/immutable/chunks/{6-uYidyP.js → DkDSK_05.js} +3 -3
  159. package/web/app/immutable/chunks/{DCK8dPAL.js → DkME16PR.js} +1 -1
  160. package/web/app/immutable/chunks/{BmTMWrby.js → DlUZpQ7U.js} +1 -1
  161. package/web/app/immutable/chunks/{CSRYV6LQ.js → Dnp239cR.js} +1 -1
  162. package/web/app/immutable/chunks/{7dpPwFPi.js → DoDP-NJt.js} +1 -1
  163. package/web/app/immutable/chunks/{BfojStRz.js → DpPV7WHr.js} +1 -1
  164. package/web/app/immutable/chunks/{BP3Sccje.js → DpX9aeiZ.js} +1 -1
  165. package/web/app/immutable/chunks/{D96pHovR.js → DqUfbKVJ.js} +1 -1
  166. package/web/app/immutable/chunks/{Z0_LIT6x.js → DrK3Y0uD.js} +2 -2
  167. package/web/app/immutable/chunks/{Cqa6LF3b.js → DrWDRmYR.js} +1 -1
  168. package/web/app/immutable/chunks/{Bygq9d8w.js → DsevRTZh.js} +1 -1
  169. package/web/app/immutable/chunks/{DrxfcnSy.js → DsffLoT8.js} +1 -1
  170. package/web/app/immutable/chunks/{5c25JTI1.js → DswCtQ8W.js} +1 -1
  171. package/web/app/immutable/chunks/{-Q8WHsT1.js → DtmCgGP_.js} +2 -2
  172. package/web/app/immutable/chunks/{CmVBRNuA.js → Dvrtbry_.js} +1 -1
  173. package/web/app/immutable/chunks/{iHxbYHJ6.js → DwEGyXAz.js} +1 -1
  174. package/web/app/immutable/chunks/{BPL5Fo2b.js → Dx3nOa5s.js} +1 -1
  175. package/web/app/immutable/chunks/{B5MrjS7j.js → Dx_8-INB.js} +1 -1
  176. package/web/app/immutable/chunks/{BcpfdNy8.js → FITmaVUJ.js} +1 -1
  177. package/web/app/immutable/chunks/{B265Nxi3.js → FKyiybGz.js} +1 -1
  178. package/web/app/immutable/chunks/{BiQUDh4s.js → IcuTx12D.js} +1 -1
  179. package/web/app/immutable/chunks/{DzB2TE-q.js → JbVFIGCp.js} +13 -13
  180. package/web/app/immutable/chunks/{CAvYeStH.js → JvS7MGpw.js} +1 -1
  181. package/web/app/immutable/chunks/{DQ_mNIfK.js → L0wFy8_j.js} +1 -1
  182. package/web/app/immutable/chunks/{D8ohaX19.js → NE3LtfEb.js} +1 -1
  183. package/web/app/immutable/chunks/{CfiKUG8A.js → RnZ98Lx7.js} +1 -1
  184. package/web/app/immutable/chunks/{u8znU8zy.js → RwU8EQ7-.js} +1 -1
  185. package/web/app/immutable/chunks/{C4JbSg3f.js → SB0XkB7s.js} +1 -1
  186. package/web/app/immutable/chunks/{CbqxWBi7.js → T-y84UQ-.js} +1 -1
  187. package/web/app/immutable/chunks/{DY-t7Was.js → UmmBf5TK.js} +1 -1
  188. package/web/app/immutable/chunks/{S845NCb3.js → VxaCN40t.js} +1 -1
  189. package/web/app/immutable/chunks/{BHt4i6xN.js → WIWu6pzv.js} +1 -1
  190. package/web/app/immutable/chunks/{BacafptN.js → ZAGtf4QC.js} +4 -4
  191. package/web/app/immutable/chunks/{BxJ6X-Sl.js → ZNxS70ti.js} +1 -1
  192. package/web/app/immutable/chunks/{CpJb1fZG.js → Zc9S8AIT.js} +1 -1
  193. package/web/app/immutable/chunks/{tr-2J8Mf.js → _LtUY0jS.js} +1 -1
  194. package/web/app/immutable/chunks/{DwL1A1su.js → _WGu_9si.js} +1 -1
  195. package/web/app/immutable/chunks/{PIgqsYsQ.js → _Z48PZPG.js} +1 -1
  196. package/web/app/immutable/chunks/{DtF9DVpp.js → _szCylN8.js} +1 -1
  197. package/web/app/immutable/chunks/{Cx37GTsM.js → bQJcjDVH.js} +1 -1
  198. package/web/app/immutable/chunks/{OFhgRaUm.js → bq2jN3Y4.js} +1 -1
  199. package/web/app/immutable/chunks/{CDjpuJh0.js → c6a4q1y9.js} +1 -1
  200. package/web/app/immutable/chunks/{D37getya.js → ceYukiuF.js} +1 -1
  201. package/web/app/immutable/chunks/{iN763416.js → dpO6awDJ.js} +1 -1
  202. package/web/app/immutable/chunks/{B9YYIjUd.js → e2T92U2C.js} +3 -3
  203. package/web/app/immutable/chunks/{UMwTu6TE.js → eJ7uL4LD.js} +1 -1
  204. package/web/app/immutable/chunks/{SqlvGXMi.js → gXSh3Rqp.js} +1 -1
  205. package/web/app/immutable/chunks/{BeOwB_6G.js → iDB1itc7.js} +1 -1
  206. package/web/app/immutable/chunks/{p7SBTgaC.js → lkgbZnYm.js} +1 -1
  207. package/web/app/immutable/chunks/{CjTo2K46.js → nA0tsFRt.js} +1 -1
  208. package/web/app/immutable/chunks/{BKPEtXUT.js → oZzpgNB8.js} +1 -1
  209. package/web/app/immutable/chunks/{CnZI1GOS.js → okU6lEoA.js} +1 -1
  210. package/web/app/immutable/chunks/{BRJQPxpd.js → pAMHAQGK.js} +1 -1
  211. package/web/app/immutable/chunks/{B2nCyo89.js → pQ6IdBCz.js} +1 -1
  212. package/web/app/immutable/chunks/{3o8kzB3n.js → qEaQygdG.js} +1 -1
  213. package/web/app/immutable/chunks/{BSKFIBj2.js → ram0Xoqf.js} +1 -1
  214. package/web/app/immutable/chunks/{CCqqosml.js → rpEVAvPW.js} +1 -1
  215. package/web/app/immutable/chunks/{CSVgdt55.js → sABlNrvu.js} +1 -1
  216. package/web/app/immutable/chunks/{DW25C9MI.js → syIfkUtY.js} +2 -2
  217. package/web/app/immutable/chunks/{B2DRKAdQ.js → umMyGIUt.js} +1 -1
  218. package/web/app/immutable/chunks/{C0LshS-P.js → vpidVnoK.js} +1 -1
  219. package/web/app/immutable/chunks/{D6G8WbHL.js → w2q0NJFW.js} +1 -1
  220. package/web/app/immutable/chunks/{ClJhkXR5.js → wUEfWFO0.js} +1 -1
  221. package/web/app/immutable/chunks/{hHMYoFyG.js → wjh5cuBI.js} +1 -1
  222. package/web/app/immutable/chunks/{DzbS0qCL.js → x8QjiOrF.js} +1 -1
  223. package/web/app/immutable/chunks/{KEaRLIGy.js → xCOOeB5y.js} +1 -1
  224. package/web/app/immutable/entry/{app.Cqjdbldk.js → app.DTU8Ib8_.js} +2 -2
  225. package/web/app/immutable/entry/start.vqAdlzsb.js +1 -0
  226. package/web/app/immutable/nodes/{0.CIMKJ2v2.js → 0.DSHPaYBf.js} +1 -1
  227. package/web/app/immutable/nodes/{1.C-zZe4mL.js → 1.DKliZtsI.js} +1 -1
  228. package/web/app/immutable/nodes/{10.CRicXMMy.js → 10.mXAnRqVu.js} +5 -5
  229. package/web/app/immutable/nodes/{11.CFkPUf9W.js → 11.BNoZ2Awp.js} +1 -1
  230. package/web/app/immutable/nodes/{13.CCKyw-_o.js → 13.C6TyTlAm.js} +1 -1
  231. package/web/app/immutable/nodes/{14.BD92xFv4.js → 14.CHiqNDyF.js} +1 -1
  232. package/web/app/immutable/nodes/{15.BDAlg-ra.js → 15.CklBb62Z.js} +1 -1
  233. package/web/app/immutable/nodes/{16.CVCm-nfj.js → 16.Dyi9KYXl.js} +1 -1
  234. package/web/app/immutable/nodes/{17.CjKvJw8X.js → 17.CH042Yj8.js} +1 -1
  235. package/web/app/immutable/nodes/{18.DDY8Eqsn.js → 18.DVg5DSa7.js} +1 -1
  236. package/web/app/immutable/nodes/{19.DJgRbiNE.js → 19.BxZ4y2DZ.js} +2 -2
  237. package/web/app/immutable/nodes/{2.Dl71tIky.js → 2.DZmz8fq0.js} +4 -4
  238. package/web/app/immutable/nodes/{20.CLsq1QLL.js → 20.Byg15mRq.js} +1 -1
  239. package/web/app/immutable/nodes/{3.DNld1BNY.js → 3.umir6RZQ.js} +1 -1
  240. package/web/app/immutable/nodes/{4.Dqn6Xii_.js → 4.BN-AJGgH.js} +1 -1
  241. package/web/app/immutable/nodes/{5.B0BP_LYC.js → 5.BbafFHWz.js} +1 -1
  242. package/web/app/immutable/nodes/{6.NwMlYZya.js → 6.Zsgk8jus.js} +1 -1
  243. package/web/app/immutable/nodes/{7.CP-QZto7.js → 7.ChjI-TG1.js} +1 -1
  244. package/web/app/immutable/nodes/{8.BsQgGFet.js → 8.DPKyN2xT.js} +1 -1
  245. package/web/app/immutable/nodes/{9.DY6xrFrM.js → 9.Ds0Wbr5E.js} +4 -4
  246. package/web/app/version.json +1 -1
  247. package/web/index.html +12 -12
  248. package/web/app/immutable/chunks/BIVeXMBl.js +0 -1
  249. package/web/app/immutable/chunks/D-zjf2Af.js +0 -1
  250. package/web/app/immutable/chunks/DH5O4f99.js +0 -1
  251. package/web/app/immutable/chunks/pUxZXv-3.js +0 -10
  252. package/web/app/immutable/entry/start.D0BpS8PF.js +0 -1
@@ -1 +1 @@
1
- import{t as lt,bo as _,bw as dt,b as ct,bm as e,br as ft,bs as Ae,bq as Lt}from"./C0QTy0Sy.js";import{bs as pt,ay as Je,be as S,b$ as A,b_ as n,bO as i,W as s,bS as o,bl as D,bn as ut,aA as v,a7 as Et,aD as t,c9 as y,aB as b,a5 as h,bA as x,bf as gt,bo as Gt,bV as tt,br as It,ca as bt,bH as Ke,bk as Ut}from"./3SdAC2_C.js";import{g as zt,i as Tt,I as mt}from"./B6S6VNu7.js";import{c as Ft}from"./CUkDMZwP.js";import{s as ot,f as Ot,c as Bt}from"./7UPrdiE9.js";import{f as U}from"./FzlZUztb.js";import"./DCRuihKm.js";import"./lJeex2Gh.js";import{b as Mt}from"./Co4vj0dC.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import{b as Rt}from"./No1eCFy3.js";import{i as k}from"./bhKPSdq4.js";import{b as Ht}from"./D3yXvqwY.js";import{F as Nt,ay as Jt}from"./U9jJmfYa.js";import"./CrD0jtXE.js";import{F as ht,G as qt}from"./GuiAAF9e.js";import"./QeBH-DWE.js";/* empty css */import{C as Wt}from"./BmTMWrby.js";import{L as xt}from"./DsGUBv3k.js";import{I as rt}from"./BAKPnd3w.js";import"./CHLX1QZz.js";import"./BWYuMy_r.js";import{h as Vt}from"./-Q8WHsT1.js";import{Jv as Pe,fB as kt,J as jt,eo as yt,r5 as Qt,uA as Xt,Jm as Yt,oD as Zt,hR as er}from"./tr-2J8Mf.js";import{aC as $t,aD as Kt,aE as tr,ax as rr,ay as Pt,az as sr,aA as ar,aI as ir}from"./cfdblcWY.js";var nr=b('<!> <p class="type-body"> </p>',1);function or(c,a){if(new.target)return lt({component:or,...c});pt(a,!0);let O=_(a,"open",15,!1),G=_(a,"static",7,!1),W=_(a,"title",7),m=_(a,"message",7),I=_(a,"buttons",7),f=_(a,"cancelIndex",7,0),ae=_(a,"onSelect",7);function V(l){O(!1),ae()?.(l)}var he={get open(){return O()},set open(l=!1){O(l),v()},get static(){return G()},set static(l=!1){G(l),v()},get title(){return W()},set title(l){W(l),v()},get message(){return m()},set message(l){m(l),v()},get buttons(){return I()},set buttons(l){I(l),v()},get cancelIndex(){return f()},set cancelIndex(l=0){f(l),v()},get onSelect(){return ae()},set onSelect(l){ae(l),v()},$set:dt,$on:(l,j)=>ct(a,l,j)};return Rt(c,{get static(){return G()},role:"alertdialog",get title(){return W()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(I().length-1),onCancel:()=>V(f()),get open(){return O()},set open(j){O(j)},footer:j=>{var $=Et(),B=Je($);zt(B,17,I,Tt,(ie,ne,te)=>{{let xe=y(()=>te===f()?"ghost":te===I().length-1?"primary":"outline");U(ie,{get variant(){return t(xe)},onclick:()=>V(te),children:(De,M)=>{S();var we=A();n(()=>i(we,t(ne))),s(De,we)},$$slots:{default:!0}})}}),s(j,$)},children:(j,$)=>{var B=nr(),ie=Je(B);Ft(ie,()=>Mt,(xe,De)=>{De(xe,{class:"sr-only",children:(M,we)=>{S();var Oe=A();n(()=>i(Oe,m())),s(M,Oe)},$$slots:{default:!0}})});var ne=o(ie,2),te=D(ne,!0);n(()=>i(te,m())),s(j,B)},$$slots:{footer:!0,default:!0}}),ut(he)}const Fe={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},lr="claude setup-token",dr="auggie token print";function cr(c,a){if(a==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenCodex_description():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(c){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function pr(c,a){return a==="apiKey"?e.settings_providerProfileKinds_apiKey_label():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function cs(c,a){return c!=="claude"&&c!=="codex"?cr(c,a):a==="token"?c==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():c==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function ur(c,a){if(a==="token")return c==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Fe.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:c==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:dr,link:{href:Fe.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:lr};switch(c){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Fe.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Fe.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Fe.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Fe.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Fe.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function _r(c,a){return a?c==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function ps(c,a){if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():c==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(c){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var vr=b('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),fr=b('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Ct=b("<li> </li>"),gr=b('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),St=b('<div class="flex items-center gap-2"><!> <!></div>'),br=b('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),mr=b('<span class="type-body text-muted-foreground"> </span> <!>',1),hr=b('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),xr=b('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),kr=b('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&amp;::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),yr=b('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function $r(c,a){if(new.target)return lt({component:$r,...c});pt(a,!0);let O=_(a,"provider",7),G=_(a,"kind",7),W=_(a,"mode",7),m=_(a,"secret",15,""),I=_(a,"secretSaved",7,!1),f=_(a,"replacing",15,!1),ae=_(a,"secretError",7),V=_(a,"baseUrl",15,""),he=_(a,"baseUrlSaved",7,!1),l=_(a,"baseUrlAction",15,"keep"),j=_(a,"customEndpointOpen",15,!1),$=_(a,"disabled",7,!1),B=_(a,"secretDisabled",23,$),ie=_(a,"keyCheck",7,!0),ne=_(a,"pasteStep",7,!0),te=_(a,"customEndpoint",7,!0);const xe="https://",De=y(()=>O()==="claude"&&G()==="apiKey"),M=y(()=>ur(O(),G())),we=y(()=>_r(G(),ie())),Oe=y(()=>W()==="add"||!I()||f()),Ve=y(()=>pr(O(),G()));function st(){f(!1),m("")}var at={get provider(){return O()},set provider(r){O(r),v()},get kind(){return G()},set kind(r){G(r),v()},get mode(){return W()},set mode(r){W(r),v()},get secret(){return m()},set secret(r=""){m(r),v()},get secretSaved(){return I()},set secretSaved(r=!1){I(r),v()},get replacing(){return f()},set replacing(r=!1){f(r),v()},get secretError(){return ae()},set secretError(r){ae(r),v()},get baseUrl(){return V()},set baseUrl(r=""){V(r),v()},get baseUrlSaved(){return he()},set baseUrlSaved(r=!1){he(r),v()},get baseUrlAction(){return l()},set baseUrlAction(r="keep"){l(r),v()},get customEndpointOpen(){return j()},set customEndpointOpen(r=!1){j(r),v()},get disabled(){return $()},set disabled(r=!1){$(r),v()},get secretDisabled(){return B()},set secretDisabled(r=$){B(r),v()},get keyCheck(){return ie()},set keyCheck(r=!0){ie(r),v()},get pasteStep(){return ne()},set pasteStep(r=!0){ne(r),v()},get customEndpoint(){return te()},set customEndpoint(r=!0){te(r),v()},$set:dt,$on:(r,P)=>ct(a,r,P)},Be=yr(),Le=h(Be);{var je=r=>{var P=vr(),R=D(P,!0);n(()=>i(R,t(M).eligibility)),s(r,P)};k(Le,r=>{t(M).eligibility&&r(je)})}var _e=o(Le,2);{var Me=r=>{var P=gr(),R=h(P),oe=D(R,!0),Q=o(R,2),X=h(Q),le=h(X),ke=o(le);{var N=g=>{var w=fr(),J=h(w),T=D(J,!0),de=o(J,2);Wt(de,{get text(){return t(M).command},size:"sm"}),x(w),n(()=>i(T,t(M).command)),s(g,w)};k(ke,g=>{t(M).command&&g(N)})}x(X);var ve=o(X,2);{var re=g=>{var w=Ct(),J=D(w,!0);n(()=>i(J,t(M).steps[1])),s(g,w)};k(ve,g=>{t(M).steps[1]&&g(re)})}var z=o(ve,2);{var H=g=>{var w=Ct(),J=D(w,!0);n(()=>i(J,t(we))),s(g,w)};k(z,g=>{ne()&&g(H)})}x(Q);var ye=o(Q,2);{var Ee=g=>{U(g,{variant:"link",size:"sm",get href(){return t(M).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(w,J)=>{S();var T=A();n(()=>i(T,t(M).link.label)),s(w,T)},$$slots:{default:!0}})};k(ye,g=>{t(M).link&&g(Ee)})}x(P),n(g=>{i(oe,g),i(le,`${t(M).steps[0]??""} `)},[()=>G()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),s(r,P)};k(_e,r=>{(W()==="add"||f())&&r(Me)})}var K=o(_e,2);{var Qe=r=>{ht(r,{get label(){return t(Ve)},get error(){return ae()},control:(R,oe=gt)=>{var Q=St(),X=h(Q);rt(X,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return B()},"data-testid":"provider-profile-secret-input",get value(){return m()},set value(N){m(N)}}));var le=o(X,2);{var ke=N=>{U(N,{variant:"ghost-light",size:"sm",get disabled(){return B()},onclick:st,children:(ve,re)=>{S();var z=A();n(H=>i(z,H),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(ve,z)},$$slots:{default:!0}})};k(le,N=>{W()==="edit"&&I()&&N(ke)})}x(Q),s(R,Q)},$$slots:{control:!0}})},qe=r=>{var P=br(),R=h(P),oe=D(R,!0),Q=o(R,2),X=h(Q),le=D(X,!0),ke=o(X,2);U(ke,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>f(!0),children:(N,ve)=>{S();var re=A();n(z=>i(re,z),[()=>e.settings_providerProfileKinds_replace_label()]),s(N,re)},$$slots:{default:!0}}),x(Q),x(P),n(N=>{i(oe,t(Ve)),i(le,N)},[()=>e.settings_providerProfileKinds_saved_label()]),s(r,P)};k(K,r=>{t(Oe)?r(Qe):r(qe,-1)})}var it=o(K,2);{var Xe=r=>{var P=kr(),R=h(P),oe=h(R);Nt(oe,{get icon(){return Jt},class:"size-3 transition-transform group-open:rotate-90"});var Q=o(oe);x(R);var X=o(R,2),le=h(X),ke=D(le,!0),N=o(le,2);{var ve=z=>{var H=xr(),ye=h(H),Ee=D(ye,!0),g=o(ye,2);{var w=T=>{var de=mr(),Y=Je(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("keep"),children:(fe,ge)=>{S();var Re=A();n($e=>i(Re,$e),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(fe,Re)},$$slots:{default:!0}}),n(fe=>i(Ce,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),s(T,de)},J=T=>{var de=hr(),Y=Je(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>l("replace"),children:(ge,Re)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfileKinds_replace_label()]),s(ge,$e)},$$slots:{default:!0}});var fe=o(Ge,2);U(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("remove"),children:(ge,Re)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfiles_remove_label()]),s(ge,$e)},$$slots:{default:!0}}),n(ge=>i(Ce,ge),[()=>e.settings_providerProfileKinds_saved_label()]),s(T,de)};k(g,T=>{l()==="remove"?T(w):T(J,-1)})}x(H),n(T=>i(Ee,T),[()=>e.settings_providerProfileKinds_baseUrl_label()]),s(z,H)},re=z=>{{const H=(Ee,g=gt)=>{var w=St(),J=h(w);rt(J,ft(g,{type:"url",placeholder:xe,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return V()},set value(Y){V(Y)}}));var T=o(J,2);{var de=Y=>{U(Y,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{l("keep"),V("")},children:(Ce,Ge)=>{S();var fe=A();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(Ce,fe)},$$slots:{default:!0}})};k(T,Y=>{W()==="edit"&&he()&&Y(de)})}x(w),s(Ee,w)};let ye=y(()=>e.settings_providerProfileKinds_baseUrl_label());ht(z,{get label(){return t(ye)},control:H,$$slots:{control:!0}})}};k(N,z=>{W()==="edit"&&he()&&l()!=="replace"?z(ve):z(re,-1)})}x(X),x(P),n((z,H)=>{i(Q,` ${z??""}`),i(ke,H)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",P,j,j),s(r,P)};k(it,r=>{t(De)&&te()&&r(Xe)})}return x(Be),n(()=>ot(Be,"data-kind",G())),s(c,Be),ut(at)}var Kr=b('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Pr=b('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Cr=b('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Sr=b('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),Ar=b('<p class="text-xs text-danger" role="alert"> </p>'),Dr=b('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),wr=b('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Lr=b('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Er=b('<p class="text-sm text-subtle" role="status"> </p>'),Gr=b('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ir=b('<p class="text-sm text-danger" role="alert"> </p>'),Ur=b('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function zr(c,a){const O=Gt();if(new.target)return lt({component:zr,...c});pt(a,!0);const G=()=>Ae(De,"$storedInstance$",l),W=()=>Ae(st,"$deviceGrantSupported$",l),m=()=>Ae(Be,"$instanceSetupSupported$",l),I=()=>Ae(M,"$isAuthenticating$",l),f=()=>Ae(we,"$isCancelling$",l),ae=()=>Ae(Ve,"$deviceFlow$",l),V=()=>Ae(Oe,"$cancelOutcome$",l),he=()=>Ae(at,"$error$",l),[l,j]=Lt();let $=_(a,"compact",7,!1),B=_(a,"onCancel",7);const ie=`${O}-host`,ne=`${O}-host-help`,te=`${O}-host-error`,xe=`${O}-token`,De=$t(),M=Kt(),we=tr(),Oe=rr(),Ve=Pt(),st=sr(),at=ar(),Be=ir();let Le=tt(It($t.select(Pe.state))),je=tt(!1),_e=tt(""),Me=tt(!1);const K=y(()=>Xt(t(Le))),Qe=y(()=>t(Me)||t(K)===G()&&W()===!1),qe=y(()=>t(K)?Zt(t(K)):null),it=y(()=>m()&&t(K)!==null&&t(_e).trim().length>0);bt(()=>{const u=G();t(je)||Ke(Le,u,!0)}),bt(()=>{m()||Ke(_e,"")}),Ut(()=>{const u=()=>{const d=Pe.state;Kt.select(d)&&Pt.select(d)&&Pe.dispatch(kt())};return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)});function Xe(){!m()||!t(K)||t(K)===G()||I()||f()||Pe.dispatch(Qt(t(K)))}function r(){Ke(je,!0),Ke(_e,"")}function P(){!m()||!t(K)||I()||f()||Pe.dispatch(Yt(t(K)))}function R(){const u=t(_e).trim();!m()||!u||!t(K)||I()||f()||(Pe.dispatch(er(t(K),u)),Ke(_e,""))}function oe(){!m()||f()||(I()&&Pe.dispatch(yt()),Ke(Me,!0))}function Q(){Ke(Me,!1)}function X(){f()||Pe.dispatch(yt())}function le(){t(qe)&&Vt(t(qe),{})}function ke(u){u.key==="Enter"&&(u.preventDefault(),Xe(),t(Qe)?document.getElementById(xe)?.focus():P())}function N(u){u.key==="Enter"&&(u.preventDefault(),R())}const ve=y(()=>$()?"sm":"xl"),re=y(()=>$()?"sm":"default");var z={get compact(){return $()},set compact(u=!1){$(u),v()},get onCancel(){return B()},set onCancel(u){B(u),v()},$set:dt,$on:(u,d)=>ct(a,u,d)},H=Ur();{const u=d=>{U(d,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return f()},onclick:X,children:(p,C)=>{S();var F=A();n(ce=>i(F,ce),[()=>f()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),s(p,F)},$$slots:{default:!0}})};var ye=h(H);{var Ee=d=>{var p=Kr(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),s(d,p)};k(ye,d=>{m()||d(Ee)})}var g=o(ye,2);{var w=d=>{var p=Pr(),C=D(p,!0);n(()=>i(C,G())),s(d,p)};k(g,d=>{(I()||f())&&d(w)})}var J=o(g,2);{var T=d=>{var p=Cr(),C=h(p);{let Ue=y(()=>e.lib_gitlabConnect_openGitlab_label());qt(C,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(Ue)},get compact(){return $()}})}var F=o(C,2),ce=h(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),He=D(se,!0),Ie=o(se,2);{let Ue=y(()=>f()||!m());U(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(Ue)},onclick:oe,children:(nt,_t)=>{S();var L=A();n(q=>i(L,q),[()=>e.lib_gitlabConnect_useToken_label()]),s(nt,L)},$$slots:{default:!0}})}var We=o(Ie,2);u(We),x(F),x(p),n(Ue=>i(He,Ue),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),s(d,p)},de=d=>{var p=Sr(),C=h(p);mt(C,{size:16,class:"shrink-0"});var F=o(C,2),ce=D(F,!0),se=o(F,2);u(se),x(p),n(He=>i(ce,He),[()=>e.lib_gitlabConnect_connecting_label()]),s(d,p)},Y=d=>{var p=Lr(),C=Je(p),F=h(C);xt(F,{get for(){return ie},children:(L,q)=>{S();var Z=A();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),s(L,Z)},$$slots:{default:!0}});var ce=o(F,2);{let L=y(()=>!m()),q=y(()=>!t(K)||void 0),Z=y(()=>t(K)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(L)},get"aria-invalid"(){return t(q)},get"aria-describedby"(){return t(Z)},get placeholder(){return jt},oninput:r,onchange:Xe,onkeydown:ke,get value(){return t(Le)},set value(pe){Ke(Le,pe,!0)}})}var se=o(ce,2),He=D(se,!0),Ie=o(se,2);{var We=L=>{var q=Ar(),Z=D(q,!0);n(pe=>{ot(q,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),s(L,q)};k(Ie,L=>{t(K)||L(We)})}x(C);var Ue=o(C,2);{var nt=L=>{var q=Dr(),Z=Je(q),pe=h(Z);xt(pe,{get for(){return xe},children:(E,me)=>{S();var Ne=A();n(ee=>i(Ne,ee),[()=>e.lib_gitlabConnect_token_label()]),s(E,Ne)},$$slots:{default:!0}});var Ye=o(pe,2);{let E=y(()=>!m());rt(Ye,{get id(){return xe},type:"password",autocomplete:"off",get disabled(){return t(E)},placeholder:"glpat-...",onkeydown:N,get value(){return t(_e)},set value(me){Ke(_e,me,!0)}})}var Ze=o(Ye,2),be=h(Ze),ze=o(be);{var et=E=>{U(E,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_createToken_label({host:t(K)})]),s(me,ee)},$$slots:{default:!0}})};k(ze,E=>{t(qe)&&t(K)&&E(et)})}x(Ze),x(Z);var ue=o(Z,2),Se=h(ue);{let E=y(()=>!t(it));U(Se,{variant:"primary",get size(){return t(ve)},type:"button",onclick:R,get disabled(){return t(E)},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_connect_label()]),s(me,ee)},$$slots:{default:!0}})}var vt=o(Se,2);{var At=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",onclick:Q,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_useDevice_label()]),s(me,ee)},$$slots:{default:!0}})};k(vt,E=>{t(Me)&&!(t(K)===G()&&W()===!1)&&E(At)})}var Dt=o(vt,2);{var wt=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_cancel_label()]),s(me,ee)},$$slots:{default:!0}})};k(Dt,E=>{B()&&E(wt)})}x(ue),n(E=>i(be,`${E??""} `),[()=>e.lib_gitlabConnect_token_description()]),s(L,q)},_t=L=>{var q=wr(),Z=h(q);{let be=y(()=>!t(K)||!m());U(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:P,get disabled(){return t(be)},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_connect_label()]),s(ze,ue)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=y(()=>!m());U(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_useToken_label()]),s(ze,ue)},$$slots:{default:!0}})}var Ye=o(pe,2);{var Ze=be=>{U(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_cancel_label()]),s(ze,ue)},$$slots:{default:!0}})};k(Ye,be=>{B()&&be(Ze)})}x(q),s(L,q)};k(Ue,L=>{t(Qe)?L(nt):L(_t,-1)})}n(L=>{ot(se,"id",ne),i(He,L)},[()=>e.lib_gitlabConnect_host_description()]),s(d,p)};k(J,d=>{(I()||f())&&ae()?d(T):I()||f()?d(de,1):d(Y,-1)})}var Ce=o(J,2);{var Ge=d=>{var p=Er(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_cancelled_label()]),s(d,p)},fe=d=>{var p=Gr(),C=h(p),F=D(C,!0),ce=o(C,2);U(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return f()},onclick:()=>Pe.dispatch(kt()),children:(se,He)=>{S();var Ie=A();n(We=>i(Ie,We),[()=>e.lib_gitlabConnect_checkStatus_label()]),s(se,Ie)},$$slots:{default:!0}}),x(p),n(se=>i(F,se),[()=>V()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),s(d,p)};k(Ce,d=>{V()==="cancelled"?d(Ge):(V()==="already-started"||V()==="failed")&&d(fe,1)})}var ge=o(Ce,2);{var Re=d=>{var p=Ir(),C=D(p,!0);n(()=>i(C,he())),s(d,p)};k(ge,d=>{he()&&d(Re)})}x(H)}n(()=>Ot(H,1,Bt($()?"space-y-2":"space-y-4"))),s(c,H);var $e=ut(z);return j(),$e}export{zr as G,or as M,$r as P,pr as a,ps as b,cr as k,cs as s};
1
+ import{t as lt,bo as _,bw as dt,b as ct,bm as e,br as ft,bs as Ae,bq as Lt}from"./C0QTy0Sy.js";import{bs as pt,ay as Je,be as S,b$ as A,b_ as n,bO as i,W as s,bS as o,bl as D,bn as ut,aA as v,a7 as Et,aD as t,c9 as y,aB as b,a5 as h,bA as x,bf as gt,bo as Gt,bV as tt,br as It,ca as bt,bH as Ke,bk as Ut}from"./3SdAC2_C.js";import{g as zt,i as Tt,I as mt}from"./B6S6VNu7.js";import{c as Ft}from"./CUkDMZwP.js";import{s as ot,f as Ot,c as Bt}from"./7UPrdiE9.js";import{f as U}from"./CttA-M7l.js";import"./C2jYl_tm.js";import"./lJeex2Gh.js";import{b as Mt}from"./11IPfP64.js";import"./A9niI_uA.js";import"./CJ4Z96pe.js";import{b as Rt}from"./B-4NNXpn.js";import{i as k}from"./bhKPSdq4.js";import{b as Ht}from"./D3yXvqwY.js";import{F as Nt,ay as Jt}from"./U9jJmfYa.js";import"./CrD0jtXE.js";import{F as ht,G as qt}from"./BdReS-5Z.js";import"./Dhy-QJgd.js";/* empty css */import{C as Wt}from"./DlUZpQ7U.js";import{L as xt}from"./CQwOMyxz.js";import{I as rt}from"./B2w13ngc.js";import"./DXn0DuET.js";import"./BWYuMy_r.js";import{h as Vt}from"./DtmCgGP_.js";import{Jv as Pe,fB as kt,J as jt,eo as yt,r5 as Qt,uA as Xt,Jm as Yt,oD as Zt,hR as er}from"./_LtUY0jS.js";import{aC as $t,aD as Kt,aE as tr,ax as rr,ay as Pt,az as sr,aA as ar,aI as ir}from"./Cb0qNR4H.js";var nr=b('<!> <p class="type-body"> </p>',1);function or(c,a){if(new.target)return lt({component:or,...c});pt(a,!0);let O=_(a,"open",15,!1),G=_(a,"static",7,!1),W=_(a,"title",7),m=_(a,"message",7),I=_(a,"buttons",7),f=_(a,"cancelIndex",7,0),ae=_(a,"onSelect",7);function V(l){O(!1),ae()?.(l)}var he={get open(){return O()},set open(l=!1){O(l),v()},get static(){return G()},set static(l=!1){G(l),v()},get title(){return W()},set title(l){W(l),v()},get message(){return m()},set message(l){m(l),v()},get buttons(){return I()},set buttons(l){I(l),v()},get cancelIndex(){return f()},set cancelIndex(l=0){f(l),v()},get onSelect(){return ae()},set onSelect(l){ae(l),v()},$set:dt,$on:(l,j)=>ct(a,l,j)};return Rt(c,{get static(){return G()},role:"alertdialog",get title(){return W()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>V(I().length-1),onCancel:()=>V(f()),get open(){return O()},set open(j){O(j)},footer:j=>{var $=Et(),B=Je($);zt(B,17,I,Tt,(ie,ne,te)=>{{let xe=y(()=>te===f()?"ghost":te===I().length-1?"primary":"outline");U(ie,{get variant(){return t(xe)},onclick:()=>V(te),children:(De,M)=>{S();var we=A();n(()=>i(we,t(ne))),s(De,we)},$$slots:{default:!0}})}}),s(j,$)},children:(j,$)=>{var B=nr(),ie=Je(B);Ft(ie,()=>Mt,(xe,De)=>{De(xe,{class:"sr-only",children:(M,we)=>{S();var Oe=A();n(()=>i(Oe,m())),s(M,Oe)},$$slots:{default:!0}})});var ne=o(ie,2),te=D(ne,!0);n(()=>i(te,m())),s(j,B)},$$slots:{footer:!0,default:!0}}),ut(he)}const Fe={anthropicKeys:"https://console.anthropic.com/settings/keys",openAiKeys:"https://platform.openai.com/api-keys",openAiTokens:"https://developers.openai.com/codex/enterprise/access-tokens",xaiConsole:"https://console.x.ai",factoryKeys:"https://app.factory.ai/settings/api-keys",cursorDashboard:"https://cursor.com/dashboard?tab=integrations",auggieAuth:"https://docs.augmentcode.com/cli/setup-auggie/authentication"},lr="claude setup-token",dr="auggie token print";function cr(c,a){if(a==="differentLogin")return e.settings_providerProfileKinds_differentLogin_description();if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenCodex_description():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_description():e.settings_providerProfileKinds_tokenClaude_description();switch(c){case"codex":return e.settings_providerProfileKinds_apiKeyCodex_description();case"grok":return e.settings_providerProfileKinds_apiKeyGrok_description();case"droid":return e.settings_providerProfileKinds_apiKeyDroid_description();case"cursor":return e.settings_providerProfileKinds_apiKeyCursor_description();default:return e.settings_providerProfileKinds_apiKeyClaude_description()}}function pr(c,a){return a==="apiKey"?e.settings_providerProfileKinds_apiKey_label():c==="auggie"?e.settings_providerProfileKinds_tokenAuggie_label():e.settings_providerProfileKinds_token_label()}function cs(c,a){return c!=="claude"&&c!=="codex"?cr(c,a):a==="token"?c==="codex"?e.settings_providerProfileKinds_tokenCodexDialog_description():e.settings_providerProfileKinds_tokenClaudeDialog_description():c==="codex"?e.settings_providerProfileKinds_apiKeyCodexDialog_description():e.settings_providerProfileKinds_apiKeyClaudeDialog_description()}function ur(c,a){if(a==="token")return c==="codex"?{steps:[e.settings_providerProfileKinds_tokenCodexStep1_label()],link:{href:Fe.openAiTokens,label:e.settings_providerProfileKinds_openAiAccessTokens_link()},eligibility:e.settings_providerProfileKinds_tokenCodexEligibility_description()}:c==="auggie"?{steps:[e.settings_providerProfileKinds_tokenAuggieStep1_label(),e.settings_providerProfileKinds_tokenAuggieStep2_label()],command:dr,link:{href:Fe.auggieAuth,label:e.settings_providerProfileKinds_auggieAuthDocs_link()}}:{steps:[e.settings_providerProfileKinds_tokenClaudeStep1_label(),e.settings_providerProfileKinds_tokenClaudeStep2_label()],command:lr};switch(c){case"codex":return{steps:[e.settings_providerProfileKinds_apiKeyCodexStep1_label(),e.settings_providerProfileKinds_apiKeyCodexStep2_label()],link:{href:Fe.openAiKeys,label:e.settings_providerProfileKinds_openAiApiKeys_link()}};case"grok":return{steps:[e.settings_providerProfileKinds_apiKeyGrokStep1_label(),e.settings_providerProfileKinds_apiKeyGrokStep2_label()],link:{href:Fe.xaiConsole,label:e.settings_providerProfileKinds_xaiConsole_link()}};case"droid":return{steps:[e.settings_providerProfileKinds_apiKeyDroidStep1_label(),e.settings_providerProfileKinds_apiKeyDroidStep2_label()],link:{href:Fe.factoryKeys,label:e.settings_providerProfileKinds_factoryApiKeys_link()}};case"cursor":return{steps:[e.settings_providerProfileKinds_apiKeyCursorStep1_label(),e.settings_providerProfileKinds_apiKeyCursorStep2_label()],link:{href:Fe.cursorDashboard,label:e.settings_providerProfileKinds_cursorDashboard_link()}};default:return{steps:[e.settings_providerProfileKinds_apiKeyClaudeStep1_label(),e.settings_providerProfileKinds_apiKeyClaudeStep2_label()],link:{href:Fe.anthropicKeys,label:e.settings_providerProfileKinds_anthropicConsole_link()}}}}function _r(c,a){return a?c==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeStep3_label():e.settings_providerProfileKinds_tokenClaudeStep3_label():e.settings_providerProfileKinds_pasteNoCheck_label()}function ps(c,a){if(a==="token")return c==="codex"?e.settings_providerProfileKinds_tokenNotJwt_error():c==="auggie"?e.settings_providerProfileKinds_tokenShapeAuggie_error():e.settings_providerProfileKinds_tokenShapeClaude_error();switch(c){case"codex":return e.settings_providerProfileKinds_keyShapeCodex_error();case"grok":return e.settings_providerProfileKinds_keyShapeGrok_error();case"droid":return e.settings_providerProfileKinds_keyShapeDroid_error();case"cursor":return e.settings_providerProfileKinds_keyShapeCursor_error();default:return e.settings_providerProfileKinds_keyShapeClaude_error()}}var vr=b('<p class="type-body text-muted-foreground" data-testid="provider-profile-token-eligibility"> </p>'),fr=b('<span class="mt-1 flex items-center gap-2" data-testid="provider-profile-setup-token"><code class="rounded border border-border bg-muted px-1.5 py-0.5 font-mono type-caption text-foreground"> </code> <!></span>'),Ct=b("<li> </li>"),gr=b('<section class="space-y-2" data-testid="provider-profile-secret-steps"><h3 class="type-body font-medium! text-foreground"> </h3> <ol class="type-body list-decimal space-y-1 pl-5 text-muted-foreground"><li> <!></li> <!> <!></ol> <!></section>'),St=b('<div class="flex items-center gap-2"><!> <!></div>'),br=b('<div class="space-y-2" data-testid="provider-profile-secret-saved"><p class="type-body text-foreground"> </p> <div class="flex items-center gap-3"><span class="type-body font-mono text-muted-foreground"> </span> <!></div></div>'),mr=b('<span class="type-body text-muted-foreground"> </span> <!>',1),hr=b('<span class="type-body font-mono text-muted-foreground"> </span> <!> <!>',1),xr=b('<div class="flex flex-wrap items-center gap-3" data-testid="provider-profile-base-url-saved"><span class="type-body text-foreground"> </span> <!></div>'),kr=b('<details class="group rounded-md border border-border" data-testid="provider-profile-custom-endpoint"><summary class="flex cursor-pointer list-none items-center gap-2 px-3 py-2 type-body text-foreground [&amp;::-webkit-details-marker]:hidden"><!> </summary> <div class="space-y-2 border-t border-border px-3 py-3"><p class="type-caption text-muted-foreground"> </p> <!></div></details>'),yr=b('<div class="space-y-5" data-testid="provider-profile-secret"><!> <!> <!> <!></div>');function $r(c,a){if(new.target)return lt({component:$r,...c});pt(a,!0);let O=_(a,"provider",7),G=_(a,"kind",7),W=_(a,"mode",7),m=_(a,"secret",15,""),I=_(a,"secretSaved",7,!1),f=_(a,"replacing",15,!1),ae=_(a,"secretError",7),V=_(a,"baseUrl",15,""),he=_(a,"baseUrlSaved",7,!1),l=_(a,"baseUrlAction",15,"keep"),j=_(a,"customEndpointOpen",15,!1),$=_(a,"disabled",7,!1),B=_(a,"secretDisabled",23,$),ie=_(a,"keyCheck",7,!0),ne=_(a,"pasteStep",7,!0),te=_(a,"customEndpoint",7,!0);const xe="https://",De=y(()=>O()==="claude"&&G()==="apiKey"),M=y(()=>ur(O(),G())),we=y(()=>_r(G(),ie())),Oe=y(()=>W()==="add"||!I()||f()),Ve=y(()=>pr(O(),G()));function st(){f(!1),m("")}var at={get provider(){return O()},set provider(r){O(r),v()},get kind(){return G()},set kind(r){G(r),v()},get mode(){return W()},set mode(r){W(r),v()},get secret(){return m()},set secret(r=""){m(r),v()},get secretSaved(){return I()},set secretSaved(r=!1){I(r),v()},get replacing(){return f()},set replacing(r=!1){f(r),v()},get secretError(){return ae()},set secretError(r){ae(r),v()},get baseUrl(){return V()},set baseUrl(r=""){V(r),v()},get baseUrlSaved(){return he()},set baseUrlSaved(r=!1){he(r),v()},get baseUrlAction(){return l()},set baseUrlAction(r="keep"){l(r),v()},get customEndpointOpen(){return j()},set customEndpointOpen(r=!1){j(r),v()},get disabled(){return $()},set disabled(r=!1){$(r),v()},get secretDisabled(){return B()},set secretDisabled(r=$){B(r),v()},get keyCheck(){return ie()},set keyCheck(r=!0){ie(r),v()},get pasteStep(){return ne()},set pasteStep(r=!0){ne(r),v()},get customEndpoint(){return te()},set customEndpoint(r=!0){te(r),v()},$set:dt,$on:(r,P)=>ct(a,r,P)},Be=yr(),Le=h(Be);{var je=r=>{var P=vr(),R=D(P,!0);n(()=>i(R,t(M).eligibility)),s(r,P)};k(Le,r=>{t(M).eligibility&&r(je)})}var _e=o(Le,2);{var Me=r=>{var P=gr(),R=h(P),oe=D(R,!0),Q=o(R,2),X=h(Q),le=h(X),ke=o(le);{var N=g=>{var w=fr(),J=h(w),T=D(J,!0),de=o(J,2);Wt(de,{get text(){return t(M).command},size:"sm"}),x(w),n(()=>i(T,t(M).command)),s(g,w)};k(ke,g=>{t(M).command&&g(N)})}x(X);var ve=o(X,2);{var re=g=>{var w=Ct(),J=D(w,!0);n(()=>i(J,t(M).steps[1])),s(g,w)};k(ve,g=>{t(M).steps[1]&&g(re)})}var z=o(ve,2);{var H=g=>{var w=Ct(),J=D(w,!0);n(()=>i(J,t(we))),s(g,w)};k(z,g=>{ne()&&g(H)})}x(Q);var ye=o(Q,2);{var Ee=g=>{U(g,{variant:"link",size:"sm",get href(){return t(M).link.href},target:"_blank",rel:"noopener noreferrer",class:"h-auto px-0",children:(w,J)=>{S();var T=A();n(()=>i(T,t(M).link.label)),s(w,T)},$$slots:{default:!0}})};k(ye,g=>{t(M).link&&g(Ee)})}x(P),n(g=>{i(oe,g),i(le,`${t(M).steps[0]??""} `)},[()=>G()==="apiKey"?e.settings_providerProfileKinds_apiKeyClaudeSteps_label():e.settings_providerProfileKinds_tokenSteps_label()]),s(r,P)};k(_e,r=>{(W()==="add"||f())&&r(Me)})}var K=o(_e,2);{var Qe=r=>{ht(r,{get label(){return t(Ve)},get error(){return ae()},control:(R,oe=gt)=>{var Q=St(),X=h(Q);rt(X,ft(oe,{type:"password",autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return B()},"data-testid":"provider-profile-secret-input",get value(){return m()},set value(N){m(N)}}));var le=o(X,2);{var ke=N=>{U(N,{variant:"ghost-light",size:"sm",get disabled(){return B()},onclick:st,children:(ve,re)=>{S();var z=A();n(H=>i(z,H),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(ve,z)},$$slots:{default:!0}})};k(le,N=>{W()==="edit"&&I()&&N(ke)})}x(Q),s(R,Q)},$$slots:{control:!0}})},qe=r=>{var P=br(),R=h(P),oe=D(R,!0),Q=o(R,2),X=h(Q),le=D(X,!0),ke=o(X,2);U(ke,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>f(!0),children:(N,ve)=>{S();var re=A();n(z=>i(re,z),[()=>e.settings_providerProfileKinds_replace_label()]),s(N,re)},$$slots:{default:!0}}),x(Q),x(P),n(N=>{i(oe,t(Ve)),i(le,N)},[()=>e.settings_providerProfileKinds_saved_label()]),s(r,P)};k(K,r=>{t(Oe)?r(Qe):r(qe,-1)})}var it=o(K,2);{var Xe=r=>{var P=kr(),R=h(P),oe=h(R);Nt(oe,{get icon(){return Jt},class:"size-3 transition-transform group-open:rotate-90"});var Q=o(oe);x(R);var X=o(R,2),le=h(X),ke=D(le,!0),N=o(le,2);{var ve=z=>{var H=xr(),ye=h(H),Ee=D(ye,!0),g=o(ye,2);{var w=T=>{var de=mr(),Y=Je(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("keep"),children:(fe,ge)=>{S();var Re=A();n($e=>i(Re,$e),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(fe,Re)},$$slots:{default:!0}}),n(fe=>i(Ce,fe),[()=>e.settings_providerProfileKinds_baseUrlRemoved_label()]),s(T,de)},J=T=>{var de=hr(),Y=Je(de),Ce=D(Y,!0),Ge=o(Y,2);U(Ge,{variant:"outline",size:"sm",get disabled(){return $()},onclick:()=>l("replace"),children:(ge,Re)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfileKinds_replace_label()]),s(ge,$e)},$$slots:{default:!0}});var fe=o(Ge,2);U(fe,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>l("remove"),children:(ge,Re)=>{S();var $e=A();n(u=>i($e,u),[()=>e.settings_providerProfiles_remove_label()]),s(ge,$e)},$$slots:{default:!0}}),n(ge=>i(Ce,ge),[()=>e.settings_providerProfileKinds_saved_label()]),s(T,de)};k(g,T=>{l()==="remove"?T(w):T(J,-1)})}x(H),n(T=>i(Ee,T),[()=>e.settings_providerProfileKinds_baseUrl_label()]),s(z,H)},re=z=>{{const H=(Ee,g=gt)=>{var w=St(),J=h(w);rt(J,ft(g,{type:"url",placeholder:xe,autocomplete:"off",spellcheck:!1,class:"font-mono",get disabled(){return $()},"data-testid":"provider-profile-base-url-input",get value(){return V()},set value(Y){V(Y)}}));var T=o(J,2);{var de=Y=>{U(Y,{variant:"ghost-light",size:"sm",get disabled(){return $()},onclick:()=>{l("keep"),V("")},children:(Ce,Ge)=>{S();var fe=A();n(ge=>i(fe,ge),[()=>e.settings_providerProfileKinds_keepSaved_label()]),s(Ce,fe)},$$slots:{default:!0}})};k(T,Y=>{W()==="edit"&&he()&&Y(de)})}x(w),s(Ee,w)};let ye=y(()=>e.settings_providerProfileKinds_baseUrl_label());ht(z,{get label(){return t(ye)},control:H,$$slots:{control:!0}})}};k(N,z=>{W()==="edit"&&he()&&l()!=="replace"?z(ve):z(re,-1)})}x(X),x(P),n((z,H)=>{i(Q,` ${z??""}`),i(ke,H)},[()=>e.settings_providerProfileKinds_customEndpoint_label(),()=>e.settings_providerProfileKinds_customEndpoint_description()]),Ht("open","toggle",P,j,j),s(r,P)};k(it,r=>{t(De)&&te()&&r(Xe)})}return x(Be),n(()=>ot(Be,"data-kind",G())),s(c,Be),ut(at)}var Kr=b('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Pr=b('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),Cr=b('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),Sr=b('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),Ar=b('<p class="text-xs text-danger" role="alert"> </p>'),Dr=b('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),wr=b('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),Lr=b('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),Er=b('<p class="text-sm text-subtle" role="status"> </p>'),Gr=b('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),Ir=b('<p class="text-sm text-danger" role="alert"> </p>'),Ur=b('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function zr(c,a){const O=Gt();if(new.target)return lt({component:zr,...c});pt(a,!0);const G=()=>Ae(De,"$storedInstance$",l),W=()=>Ae(st,"$deviceGrantSupported$",l),m=()=>Ae(Be,"$instanceSetupSupported$",l),I=()=>Ae(M,"$isAuthenticating$",l),f=()=>Ae(we,"$isCancelling$",l),ae=()=>Ae(Ve,"$deviceFlow$",l),V=()=>Ae(Oe,"$cancelOutcome$",l),he=()=>Ae(at,"$error$",l),[l,j]=Lt();let $=_(a,"compact",7,!1),B=_(a,"onCancel",7);const ie=`${O}-host`,ne=`${O}-host-help`,te=`${O}-host-error`,xe=`${O}-token`,De=$t(),M=Kt(),we=tr(),Oe=rr(),Ve=Pt(),st=sr(),at=ar(),Be=ir();let Le=tt(It($t.select(Pe.state))),je=tt(!1),_e=tt(""),Me=tt(!1);const K=y(()=>Xt(t(Le))),Qe=y(()=>t(Me)||t(K)===G()&&W()===!1),qe=y(()=>t(K)?Zt(t(K)):null),it=y(()=>m()&&t(K)!==null&&t(_e).trim().length>0);bt(()=>{const u=G();t(je)||Ke(Le,u,!0)}),bt(()=>{m()||Ke(_e,"")}),Ut(()=>{const u=()=>{const d=Pe.state;Kt.select(d)&&Pt.select(d)&&Pe.dispatch(kt())};return window.addEventListener("focus",u),()=>window.removeEventListener("focus",u)});function Xe(){!m()||!t(K)||t(K)===G()||I()||f()||Pe.dispatch(Qt(t(K)))}function r(){Ke(je,!0),Ke(_e,"")}function P(){!m()||!t(K)||I()||f()||Pe.dispatch(Yt(t(K)))}function R(){const u=t(_e).trim();!m()||!u||!t(K)||I()||f()||(Pe.dispatch(er(t(K),u)),Ke(_e,""))}function oe(){!m()||f()||(I()&&Pe.dispatch(yt()),Ke(Me,!0))}function Q(){Ke(Me,!1)}function X(){f()||Pe.dispatch(yt())}function le(){t(qe)&&Vt(t(qe),{})}function ke(u){u.key==="Enter"&&(u.preventDefault(),Xe(),t(Qe)?document.getElementById(xe)?.focus():P())}function N(u){u.key==="Enter"&&(u.preventDefault(),R())}const ve=y(()=>$()?"sm":"xl"),re=y(()=>$()?"sm":"default");var z={get compact(){return $()},set compact(u=!1){$(u),v()},get onCancel(){return B()},set onCancel(u){B(u),v()},$set:dt,$on:(u,d)=>ct(a,u,d)},H=Ur();{const u=d=>{U(d,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return f()},onclick:X,children:(p,C)=>{S();var F=A();n(ce=>i(F,ce),[()=>f()?e.lib_gitlabConnect_cancelling_label():e.lib_gitlabConnect_cancel_label()]),s(p,F)},$$slots:{default:!0}})};var ye=h(H);{var Ee=d=>{var p=Kr(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_updateRequired_description()]),s(d,p)};k(ye,d=>{m()||d(Ee)})}var g=o(ye,2);{var w=d=>{var p=Pr(),C=D(p,!0);n(()=>i(C,G())),s(d,p)};k(g,d=>{(I()||f())&&d(w)})}var J=o(g,2);{var T=d=>{var p=Cr(),C=h(p);{let Ue=y(()=>e.lib_gitlabConnect_openGitlab_label());qt(C,{get userCode(){return ae().userCode},get verificationUri(){return ae().verificationUri},get openLabel(){return t(Ue)},get compact(){return $()}})}var F=o(C,2),ce=h(F);mt(ce,{size:16,class:"shrink-0"});var se=o(ce,2),He=D(se,!0),Ie=o(se,2);{let Ue=y(()=>f()||!m());U(Ie,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(Ue)},onclick:oe,children:(nt,_t)=>{S();var L=A();n(q=>i(L,q),[()=>e.lib_gitlabConnect_useToken_label()]),s(nt,L)},$$slots:{default:!0}})}var We=o(Ie,2);u(We),x(F),x(p),n(Ue=>i(He,Ue),[()=>e.lib_gitlabConnect_waitingForAuthorization_label()]),s(d,p)},de=d=>{var p=Sr(),C=h(p);mt(C,{size:16,class:"shrink-0"});var F=o(C,2),ce=D(F,!0),se=o(F,2);u(se),x(p),n(He=>i(ce,He),[()=>e.lib_gitlabConnect_connecting_label()]),s(d,p)},Y=d=>{var p=Lr(),C=Je(p),F=h(C);xt(F,{get for(){return ie},children:(L,q)=>{S();var Z=A();n(pe=>i(Z,pe),[()=>e.lib_gitlabConnect_host_label()]),s(L,Z)},$$slots:{default:!0}});var ce=o(F,2);{let L=y(()=>!m()),q=y(()=>!t(K)||void 0),Z=y(()=>t(K)?ne:`${ne} ${te}`);rt(ce,{get id(){return ie},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(L)},get"aria-invalid"(){return t(q)},get"aria-describedby"(){return t(Z)},get placeholder(){return jt},oninput:r,onchange:Xe,onkeydown:ke,get value(){return t(Le)},set value(pe){Ke(Le,pe,!0)}})}var se=o(ce,2),He=D(se,!0),Ie=o(se,2);{var We=L=>{var q=Ar(),Z=D(q,!0);n(pe=>{ot(q,"id",te),i(Z,pe)},[()=>e.lib_gitlabConnect_invalidInstance_error()]),s(L,q)};k(Ie,L=>{t(K)||L(We)})}x(C);var Ue=o(C,2);{var nt=L=>{var q=Dr(),Z=Je(q),pe=h(Z);xt(pe,{get for(){return xe},children:(E,me)=>{S();var Ne=A();n(ee=>i(Ne,ee),[()=>e.lib_gitlabConnect_token_label()]),s(E,Ne)},$$slots:{default:!0}});var Ye=o(pe,2);{let E=y(()=>!m());rt(Ye,{get id(){return xe},type:"password",autocomplete:"off",get disabled(){return t(E)},placeholder:"glpat-...",onkeydown:N,get value(){return t(_e)},set value(me){Ke(_e,me,!0)}})}var Ze=o(Ye,2),be=h(Ze),ze=o(be);{var et=E=>{U(E,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:le,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_createToken_label({host:t(K)})]),s(me,ee)},$$slots:{default:!0}})};k(ze,E=>{t(qe)&&t(K)&&E(et)})}x(Ze),x(Z);var ue=o(Z,2),Se=h(ue);{let E=y(()=>!t(it));U(Se,{variant:"primary",get size(){return t(ve)},type:"button",onclick:R,get disabled(){return t(E)},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_connect_label()]),s(me,ee)},$$slots:{default:!0}})}var vt=o(Se,2);{var At=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",onclick:Q,children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_useDevice_label()]),s(me,ee)},$$slots:{default:!0}})};k(vt,E=>{t(Me)&&!(t(K)===G()&&W()===!1)&&E(At)})}var Dt=o(vt,2);{var wt=E=>{U(E,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(me,Ne)=>{S();var ee=A();n(Te=>i(ee,Te),[()=>e.lib_gitlabConnect_cancel_label()]),s(me,ee)},$$slots:{default:!0}})};k(Dt,E=>{B()&&E(wt)})}x(ue),n(E=>i(be,`${E??""} `),[()=>e.lib_gitlabConnect_token_description()]),s(L,q)},_t=L=>{var q=wr(),Z=h(q);{let be=y(()=>!t(K)||!m());U(Z,{variant:"primary",get size(){return t(ve)},type:"button",onclick:P,get disabled(){return t(be)},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_connect_label()]),s(ze,ue)},$$slots:{default:!0}})}var pe=o(Z,2);{let be=y(()=>!m());U(pe,{variant:"ghost",get size(){return t(re)},type:"button",get disabled(){return t(be)},onclick:oe,children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_useToken_label()]),s(ze,ue)},$$slots:{default:!0}})}var Ye=o(pe,2);{var Ze=be=>{U(be,{variant:"ghost",get size(){return t(re)},type:"button",get onclick(){return B()},children:(ze,et)=>{S();var ue=A();n(Se=>i(ue,Se),[()=>e.lib_gitlabConnect_cancel_label()]),s(ze,ue)},$$slots:{default:!0}})};k(Ye,be=>{B()&&be(Ze)})}x(q),s(L,q)};k(Ue,L=>{t(Qe)?L(nt):L(_t,-1)})}n(L=>{ot(se,"id",ne),i(He,L)},[()=>e.lib_gitlabConnect_host_description()]),s(d,p)};k(J,d=>{(I()||f())&&ae()?d(T):I()||f()?d(de,1):d(Y,-1)})}var Ce=o(J,2);{var Ge=d=>{var p=Er(),C=D(p,!0);n(F=>i(C,F),[()=>e.lib_gitlabConnect_cancelled_label()]),s(d,p)},fe=d=>{var p=Gr(),C=h(p),F=D(C,!0),ce=o(C,2);U(ce,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return f()},onclick:()=>Pe.dispatch(kt()),children:(se,He)=>{S();var Ie=A();n(We=>i(Ie,We),[()=>e.lib_gitlabConnect_checkStatus_label()]),s(se,Ie)},$$slots:{default:!0}}),x(p),n(se=>i(F,se),[()=>V()==="already-started"?e.lib_gitlabConnect_alreadyStarted_description():e.lib_gitlabConnect_cancelFailed_description()]),s(d,p)};k(Ce,d=>{V()==="cancelled"?d(Ge):(V()==="already-started"||V()==="failed")&&d(fe,1)})}var ge=o(Ce,2);{var Re=d=>{var p=Ir(),C=D(p,!0);n(()=>i(C,he())),s(d,p)};k(ge,d=>{he()&&d(Re)})}x(H)}n(()=>Ot(H,1,Bt($()?"space-y-2":"space-y-4"))),s(c,H);var $e=ut(z);return j(),$e}export{zr as G,or as M,$r as P,pr as a,ps as b,cr as k,cs as s};
@@ -1 +1 @@
1
- import{t as O,bo as m,bw as R,b as T,bm as y}from"./C0QTy0Sy.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./bhKPSdq4.js";import{E as z}from"./c5QZsH9t.js";import"./7UPrdiE9.js";import"./Bsh6nUhU.js";import"./DCRuihKm.js";import{f as A}from"./FzlZUztb.js";import{F as et,a3 as at,bP as ot}from"./U9jJmfYa.js";import"./CrD0jtXE.js";import{I as st}from"./B6S6VNu7.js";import{i as nt,b as rt}from"./BfojStRz.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
1
+ import{t as O,bo as m,bw as R,b as T,bm as y}from"./C0QTy0Sy.js";import{bs as U,a7 as Y,ay as q,W as s,bn as J,aA as v,be as p,b$ as f,b_ as u,bO as d,a5 as P,bA as S,bS as Q,aD as V,aB as L,c9 as X,aG as Z,bI as tt}from"./3SdAC2_C.js";import{i as C}from"./bhKPSdq4.js";import{E as z}from"./B9qXV8kb.js";import"./7UPrdiE9.js";import"./Bsh6nUhU.js";import"./C2jYl_tm.js";import{f as A}from"./CttA-M7l.js";import{F as et,a3 as at,bP as ot}from"./U9jJmfYa.js";import"./CrD0jtXE.js";import{I as st}from"./B6S6VNu7.js";import{i as nt,b as rt}from"./DpPV7WHr.js";var it=L('<span aria-hidden="true"><!></span>'),lt=L('<div class="flex flex-wrap justify-center gap-2"><!> <!></div>');function ct(g,n){if(new.target)return O({component:ct,...g});U(n,!0);let o=m(n,"view",7),b=m(n,"canMove",7,!1),w=m(n,"waiting",7,!1),h=m(n,"onWait",7),x=m(n,"onMove",7);var I={get view(){return o()},set view(t){o(t),v()},get canMove(){return b()},set canMove(t=!1){b(t),v()},get waiting(){return w()},set waiting(t=!1){w(t),v()},get onWait(){return h()},set onWait(t){h(t),v()},get onMove(){return x()},set onMove(t){x(t),v()},$set:R,$on:(t,k)=>T(n,t,k)},H=Y(),$=q(H);{var B=t=>{z(t,{class:"h-full min-h-0",density:"compact","data-workspace-home-panel-notice":"starting",icon:_=>{var r=it(),e=P(r);st(e,{size:16}),S(r),s(_,r)},title:_=>{p();var r=f();u(e=>d(r,e),[()=>y.workspaceHome_starting_label()]),s(_,r)},$$slots:{icon:!0,title:!0}})},F=t=>{z(t,{class:"h-full",get"data-workspace-home-panel-notice"(){return o().state},icon:e=>{{let a=X(()=>o().state==="moving"?at:ot);et(e,{get icon(){return V(a)},class:"size-5"})}},title:e=>{p();var a=f();u(l=>d(a,l),[()=>rt(o().state==="moving"?"moving":"detached")]),s(e,a)},description:e=>{p();var a=f();u(l=>d(a,l),[()=>nt(o())]),s(e,a)},actions:e=>{var a=lt(),l=P(a);{var D=i=>{A(i,{variant:"outline",size:"sm",get disabled(){return w()},onclick:()=>h()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_wait_label()]),s(M,c)},$$slots:{default:!0}})};C(l,i=>{o().canWait&&i(D)})}var G=Q(l,2);{var K=i=>{A(i,{variant:"outline",size:"sm",onclick:()=>x()?.(),children:(M,N)=>{p();var c=f();u(W=>d(c,W),[()=>y.workspaceHome_move_label()]),s(M,c)},$$slots:{default:!0}})};C(G,i=>{b()&&i(K)})}S(a),s(e,a)},$$slots:{icon:!0,title:!0,description:!0,actions:!0}})};C($,t=>{o().starting?t(B):t(F,-1)})}return s(g,H),J(I)}const E=Symbol("workspace-home-panel");function kt(g){tt(E,g)}function Mt(){return Z(E)}export{ct as W,Mt as g,kt as s};
@@ -1,4 +1,4 @@
1
- import{p as z}from"./ZxEOlEA2.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./BhSvmxU-.js";import{p as I}from"./BFeEPayU.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
1
+ import{p as z}from"./Bp4RMAg2.js";import{b as f,q as B,aX as E,B as F,ay as $,a_ as P,V as A,b0 as W,Y as _,U as N,aZ as Y,W as L,O as M,r as O}from"./CjJvlfCr.js";import{p as I}from"./BFeEPayU.js";var U=M.packet,u,C=(u=class{constructor(){this.packet=[],this.setAccTitle=P,this.getAccTitle=A,this.setDiagramTitle=W,this.getDiagramTitle=_,this.getAccDescription=N,this.setAccDescription=Y}getConfig(){const t=B({...U,...L().packet});return t.showBits&&(t.paddingY+=10),t}getPacket(){return this.packet}pushWord(t){t.length>0&&this.packet.push(t)}clear(){O(),this.packet=[]}},f(u,"PacketDB"),u),X=1e4,j=f((e,t)=>{z(e,t);let r=-1,s=[],i=1;const{bitsPerRow:l}=t.getConfig();for(let{start:a,end:o,bits:d,label:g}of e.blocks){if(a!==void 0&&o!==void 0&&o<a)throw new Error(`Packet block ${a} - ${o} is invalid. End must be greater than start.`);if(a??=r+1,a!==r+1)throw new Error(`Packet block ${a} - ${o??a} is not contiguous. It should start from ${r+1}.`);if(d===0)throw new Error(`Packet block ${a} is invalid. Cannot have a zero bit field.`);for(o??=a+(d??1)-1,d??=o-a+1,r=o,$.debug(`Packet block ${a} - ${r} with label ${g}`);s.length<=l+1&&t.getPacket().length<X;){const[c,p]=q({start:a,end:o,bits:d,label:g},i,l);if(s.push(c),c.end+1===i*l&&(t.pushWord(s),s=[],i++),!p)break;({start:a,end:o,bits:d,label:g}=p)}}t.pushWord(s)},"populate"),q=f((e,t,r)=>{if(e.start===void 0)throw new Error("start should have been set during first phase");if(e.end===void 0)throw new Error("end should have been set during first phase");if(e.start>e.end)throw new Error(`Block start ${e.start} is greater than block end ${e.end}.`);if(e.end+1<=t*r)return[e,void 0];const s=t*r-1,i=t*r;return[{start:e.start,end:s,label:e.label,bits:s-e.start},{start:i,end:e.end,label:e.label,bits:e.end-i}]},"getNextFittingBlock"),S={parser:{yy:void 0},parse:f(async e=>{const t=await I("packet",e),r=S.parser?.yy;if(!(r instanceof C))throw new Error("parser.parser?.yy was not a PacketDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");$.debug(t),j(t,r)},"parse")},G=f((e,t,r,s)=>{const i=s.db,l=i.getConfig(),{rowHeight:a,paddingY:o,bitWidth:d,bitsPerRow:g}=l,c=i.getPacket(),p=i.getDiagramTitle(),m=a+o,n=m*(c.length+1)-(p?0:a),h=d*g+2,k=E(t);k.attr("viewBox",`0 0 ${h} ${n}`),F(k,n,h,l.useMaxWidth);for(const[x,b]of c.entries())H(k,b,x,l);k.append("text").text(p).attr("x",h/2).attr("y",n-m/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),H=f((e,t,r,{rowHeight:s,paddingX:i,paddingY:l,bitWidth:a,bitsPerRow:o,showBits:d,bitOrder:g})=>{const c=e.append("g"),p=r*(s+l)+l,m=g==="descending";for(const n of t){const h=n.end-n.start+1,k=n.start%o,b=(m?o-k-h:k)*a+1,w=h*a-i;if(c.append("rect").attr("x",b).attr("y",p).attr("width",w).attr("height",s).attr("class","packetBlock"),c.append("text").attr("x",b+w/2).attr("y",p+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!d)continue;const[D,T]=m?[n.end,n.start]:[n.start,n.end],v=h===1,y=p-2;c.append("text").attr("x",b+(v?w/2:0)).attr("y",y).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",v?"middle":"start").text(D),v||c.append("text").attr("x",b+w).attr("y",y).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(T)}},"drawWord"),K={draw:G},V={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},Z=f(({packet:e}={})=>{const t=B(V,e);return`
2
2
  .packetByte {
3
3
  font-size: ${t.byteFontSize};
4
4
  }
@@ -1 +1 @@
1
- import{bs as h,i as p}from"./tr-2J8Mf.js";import{b,W as g}from"./eElW3aeh.js";import{h as c}from"./Dms_DO28.js";function k(e){switch(e?.state){case"pending":return{phase:"preparing"};case"running":return{phase:"runningSetup"};case"failed":{const t=e.error?.startsWith("node-setup-timeout")===!0;return e.exitCode===void 0&&!e.startedAt&&!t?{phase:"openFailed",error:e.error?.trim()||null}:{phase:"setupFailed",exitCode:e.exitCode??null,timedOut:t,error:e.exitCode===void 0&&!t&&e.error?.trim()||null}}default:return null}}function w(e){switch(e){case"attached":return"attached";case"detached":return"detached";case"moving":return"moving";case"starting":return"starting";default:return"unknown"}}function l(e){const t=e?.home;if(!t)return null;const n=w(t.state),o=n==="starting",a=n==="detached"||n==="moving",i=n==="attached"?k(t.setup):null,m=i?i.phase==="openFailed"||i.phase==="setupFailed"?"setupFailed":"opening":null,f=n==="attached"?m??(t.backupWarning===!0?"backupWarning":null):a?n:null;return{name:t.name,state:t.state,starting:o,unknownState:n==="unknown",unavailable:n!=="attached",lastBackupAt:t.lastBackupAt??null,banner:f,marker:a?n:null,canWait:n==="detached",canMove:n!=="moving",moveWarning:n==="detached",setup:i}}const I=12e3,v={workspaceId:null,generation:0,usableSince:null,waited:!1};function R(e,t){if(!t.loaded)return e;const n=e.workspaceId===t.workspaceId?e:{...v,workspaceId:t.workspaceId,generation:e.generation};return t.unavailable?n.waited?n:n.usableSince===null||t.now-n.usableSince<=I?{...n,usableSince:null,waited:!0}:n:n.waited?{...n,generation:t.contentLoaded?n.generation:n.generation+1,usableSince:t.now,waited:!1}:n.usableSince===null?{...n,usableSince:t.now}:n}const s="agent:",r="machine:",d="cloud:";function u(e){return"agentId"in e?`${s}${e.agentId}`:e.kind==="machine"?`${r}${e.nodeId}`:`${d}${e.cloudMachineId}`}function B(e){const t=n=>e.startsWith(n)?e.slice(n.length):"";return t(s)?{agentId:t(s)}:t(r)?{kind:"machine",nodeId:t(r)}:t(d)?{kind:"cloud",cloudMachineId:t(d)}:null}function S(e){return!e.nodeId||e.placementError||e.status===p.Deleted||e.retiredAt?!1:e.nodeState===void 0||e.nodeState==="ready"}function O({agents:e,machineRows:t}){const n=e.filter(S).map(a=>({key:u({agentId:String(a.id)}),kind:"agent",label:a.name,machineName:a.nodeName?.trim()||void 0,nodeId:a.nodeId,platform:null,disabled:!1})),o=t.filter(a=>a.id!==b).map(a=>{const i=g(a.id);return{key:u(i?{kind:"cloud",cloudMachineId:i}:{kind:"machine",nodeId:a.id}),kind:i?"cloud":"machine",label:a.label,platform:a.platform,disabled:a.disabled,...a.reason?{reason:a.reason}:{}}});return[...n,...o]}const T=new Set(["homes-unsupported","home-moving","home-target-unavailable","machine-update-required"]);function H(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t===-32003)return"forbidden";const o=n?.code;return typeof o=="string"&&T.has(o)?o:null}function _(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t!==-32603||!n||typeof n!="object")return null;const o=n;return o.code!=="home-unavailable"?null:{name:typeof o.name=="string"?o.name:"",lastBackupAt:typeof o.lastBackupAt=="string"?o.lastBackupAt:null,state:o.starting===!0?"starting":o.moving===!0?"moving":"detached"}}function C(e){const t={homeId:"",name:e.name,state:e.state,since:"",...e.lastBackupAt?{lastBackupAt:e.lastBackupAt}:{}};return{...l({home:t}),canWait:!1}}const E=new Set(["file","diff","terminal","changes","local-changes","code-review","chat-changes","activity-changes"]);function W(e){return E.has(e)}function F(e){return e.type==="terminal"&&e.scriptId?!1:W(e.type)}function q(e,t){return t&&e?.status!==h.Retired&&l(e)?.canMove===!0}const N=c("tabWindow/openTabInOwnWindowRequested"),$=c("tabWindow/moveTabBackRequested"),x=c("tabWindow/closeTabWindowTabRequested");export{u as a,_ as b,x as c,F as d,O as e,$ as f,C as h,v as i,q as m,R as n,N as o,B as p,H as s,l as w};
1
+ import{bs as h,i as p}from"./_LtUY0jS.js";import{b,W as g}from"./DZ84MPQO.js";import{h as c}from"./Dms_DO28.js";function k(e){switch(e?.state){case"pending":return{phase:"preparing"};case"running":return{phase:"runningSetup"};case"failed":{const t=e.error?.startsWith("node-setup-timeout")===!0;return e.exitCode===void 0&&!e.startedAt&&!t?{phase:"openFailed",error:e.error?.trim()||null}:{phase:"setupFailed",exitCode:e.exitCode??null,timedOut:t,error:e.exitCode===void 0&&!t&&e.error?.trim()||null}}default:return null}}function w(e){switch(e){case"attached":return"attached";case"detached":return"detached";case"moving":return"moving";case"starting":return"starting";default:return"unknown"}}function l(e){const t=e?.home;if(!t)return null;const n=w(t.state),o=n==="starting",a=n==="detached"||n==="moving",i=n==="attached"?k(t.setup):null,m=i?i.phase==="openFailed"||i.phase==="setupFailed"?"setupFailed":"opening":null,f=n==="attached"?m??(t.backupWarning===!0?"backupWarning":null):a?n:null;return{name:t.name,state:t.state,starting:o,unknownState:n==="unknown",unavailable:n!=="attached",lastBackupAt:t.lastBackupAt??null,banner:f,marker:a?n:null,canWait:n==="detached",canMove:n!=="moving",moveWarning:n==="detached",setup:i}}const I=12e3,v={workspaceId:null,generation:0,usableSince:null,waited:!1};function R(e,t){if(!t.loaded)return e;const n=e.workspaceId===t.workspaceId?e:{...v,workspaceId:t.workspaceId,generation:e.generation};return t.unavailable?n.waited?n:n.usableSince===null||t.now-n.usableSince<=I?{...n,usableSince:null,waited:!0}:n:n.waited?{...n,generation:t.contentLoaded?n.generation:n.generation+1,usableSince:t.now,waited:!1}:n.usableSince===null?{...n,usableSince:t.now}:n}const s="agent:",r="machine:",d="cloud:";function u(e){return"agentId"in e?`${s}${e.agentId}`:e.kind==="machine"?`${r}${e.nodeId}`:`${d}${e.cloudMachineId}`}function B(e){const t=n=>e.startsWith(n)?e.slice(n.length):"";return t(s)?{agentId:t(s)}:t(r)?{kind:"machine",nodeId:t(r)}:t(d)?{kind:"cloud",cloudMachineId:t(d)}:null}function S(e){return!e.nodeId||e.placementError||e.status===p.Deleted||e.retiredAt?!1:e.nodeState===void 0||e.nodeState==="ready"}function O({agents:e,machineRows:t}){const n=e.filter(S).map(a=>({key:u({agentId:String(a.id)}),kind:"agent",label:a.name,machineName:a.nodeName?.trim()||void 0,nodeId:a.nodeId,platform:null,disabled:!1})),o=t.filter(a=>a.id!==b).map(a=>{const i=g(a.id);return{key:u(i?{kind:"cloud",cloudMachineId:i}:{kind:"machine",nodeId:a.id}),kind:i?"cloud":"machine",label:a.label,platform:a.platform,disabled:a.disabled,...a.reason?{reason:a.reason}:{}}});return[...n,...o]}const T=new Set(["homes-unsupported","home-moving","home-target-unavailable","machine-update-required"]);function H(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t===-32003)return"forbidden";const o=n?.code;return typeof o=="string"&&T.has(o)?o:null}function _(e){if(!e||typeof e!="object")return null;const{rpcCode:t,data:n}=e;if(t!==-32603||!n||typeof n!="object")return null;const o=n;return o.code!=="home-unavailable"?null:{name:typeof o.name=="string"?o.name:"",lastBackupAt:typeof o.lastBackupAt=="string"?o.lastBackupAt:null,state:o.starting===!0?"starting":o.moving===!0?"moving":"detached"}}function C(e){const t={homeId:"",name:e.name,state:e.state,since:"",...e.lastBackupAt?{lastBackupAt:e.lastBackupAt}:{}};return{...l({home:t}),canWait:!1}}const E=new Set(["file","diff","terminal","changes","local-changes","code-review","chat-changes","activity-changes"]);function W(e){return E.has(e)}function F(e){return e.type==="terminal"&&e.scriptId?!1:W(e.type)}function q(e,t){return t&&e?.status!==h.Retired&&l(e)?.canMove===!0}const N=c("tabWindow/openTabInOwnWindowRequested"),$=c("tabWindow/moveTabBackRequested"),x=c("tabWindow/closeTabWindowTabRequested");export{u as a,_ as b,x as c,F as d,O as e,$ as f,C as h,v as i,q as m,R as n,N as o,B as p,H as s,l as w};
@@ -1 +1 @@
1
- import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{Jv as h,t1 as K,bs as C}from"./tr-2J8Mf.js";import{t as x,bo as u,bw as M,bs as f,bq as A,b as D}from"./C0QTy0Sy.js";import{i as E}from"./bhKPSdq4.js";import{t as J}from"./C-BsEdGZ.js";import{m as O}from"./A0p6PvBn.js";import{aK as j}from"./DKHY8q_S.js";import{c as B}from"./BmTMWrby.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===C.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function F(t,s){if(new.target)return x({component:F,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(v,"$slot$",o),[o,k]=A();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=O(),v=j(J(()=>c()));var _={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>D(s,e,y)},d=R(),b=q(d);{var g=e=>{B(e,{get slot(){return a()},get size(){return n()}})};E(b,e=>{r()&&a()!==null&&e(g)})}z(t,d);var w=I(_);return k(),w}export{F as W,V as r};
1
+ import{ca as p,c5 as i,aD as l,c9 as S,bs as W,a7 as R,ay as q,W as z,bn as I,aA as m}from"./3SdAC2_C.js";import{Jv as h,t1 as K,bs as C}from"./_LtUY0jS.js";import{t as x,bo as u,bw as M,bs as f,bq as A,b as D}from"./C0QTy0Sy.js";import{i as E}from"./bhKPSdq4.js";import{t as J}from"./C-BsEdGZ.js";import{m as O}from"./A0p6PvBn.js";import{aK as j}from"./CTP1vzdq.js";import{c as B}from"./DlUZpQ7U.js";function V(t){const s=()=>h.dispatch(K({quiet:t.quiet}));p(()=>{t.key?.(),t.active()&&i(s)});const r=S(()=>t.workspaces().some(o=>o.status===C.Retired));let a=i(()=>l(r));p(()=>{const o=l(r);i(()=>{a&&!o&&t.active()&&s(),a=o})})}function F(t,s){if(new.target)return x({component:F,...t});W(s,!0);const r=()=>f($,"$connected$",o),a=()=>f(v,"$slot$",o),[o,k]=A();let c=u(s,"workspaceId",7),n=u(s,"size",7,"default");const $=O(),v=j(J(()=>c()));var _={get workspaceId(){return c()},set workspaceId(e){c(e),m()},get size(){return n()},set size(e="default"){n(e),m()},$set:M,$on:(e,y)=>D(s,e,y)},d=R(),b=q(d);{var g=e=>{B(e,{get slot(){return a()},get size(){return n()}})};E(b,e=>{r()&&a()!==null&&e(g)})}z(t,d);var w=I(_);return k(),w}export{F as W,V as r};
@@ -1 +1 @@
1
- import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./C0QTy0Sy.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as q,aA as E}from"./3SdAC2_C.js";import{k as At}from"./-K3ARgq0.js";import{b as St}from"./Dn334wJv.js";import{Jv as a,eJ as Dt,eK as Pt,oj as Ut,A2 as Et,on as _t,oo as Tt,K3 as Ft,Ki as xt,K8 as Kt,vK as Wt,u$ as vt}from"./tr-2J8Mf.js";import{t as Ht}from"./C-BsEdGZ.js";import{g as qt}from"./DWGXN6Nr.js";import{dH as Lt,b$ as Nt,bQ as Ot,bU as Bt,bS as Mt}from"./BaujsV9k.js";import{af as jt}from"./3vWQiXY2.js";import{C as Gt}from"./W0L8GDXP.js";import{V as Jt}from"./CqcqWJoa.js";import{bT as Vt,bN as Qt,b8 as zt}from"./BqRWw-wJ.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const L=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),B=()=>d(z,"$foldUnchanged",n),M=()=>d(Q,"$lineWrapping",n),j=()=>d(X,"$diffSideBySide",n),G=()=>d(at,"$ftLoading$",n),[n,J]=It(),V=e=>{Jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return B()},onToggleFold:()=>a.dispatch(Kt()),get wrapEnabled(){return M()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return j()},onToggleSplit:()=>a.dispatch(Ft())})},Q=Vt(),z=Qt(),X=zt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=qt(),g=Ht(()=>i()),Y=Lt(g),Z=jt(g),w=crypto.randomUUID(),tt=Nt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Dt(e,"history")),()=>a.dispatch(Pt(e,"history"))});const r=s(()=>h().data?.gitRootId||""),K=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(K)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Bt(g),at=Mt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),S=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(S)?.result?.kind==="commitDetails"?t(S).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(S)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=q(!0),R=q(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:V})});const W=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,W)),()=>a.dispatch(Tt(e,W))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>bt(f,e,o)},v=Ct(),gt=Rt(v);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>G()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(K)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));St(Gt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:D,sourcePanelId:P}))},onOpenNote:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Wt(i(),b,{openInAdjacentPanel:D,sourcePanelId:P}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return J(),pt}export{Yt as default};
1
+ import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./C0QTy0Sy.js";import{bs as yt,ca as k,aD as t,c9 as s,a7 as Ct,ay as Rt,W as kt,bn as wt,bH as H,bV as q,aA as E}from"./3SdAC2_C.js";import{k as At}from"./-K3ARgq0.js";import{b as St}from"./Dn334wJv.js";import{Jv as a,eJ as Dt,eK as Pt,oj as Ut,A2 as Et,on as _t,oo as Tt,K3 as Ft,Ki as xt,K8 as Kt,vK as Wt,u$ as vt}from"./_LtUY0jS.js";import{t as Ht}from"./C-BsEdGZ.js";import{g as qt}from"./DWGXN6Nr.js";import{dH as Lt,b$ as Nt,bQ as Ot,bU as Bt,bS as Mt}from"./Cppy6ZYG.js";import{af as jt}from"./BYBhz2vc.js";import{C as Gt}from"./CChkl_5h.js";import{V as Jt}from"./BY98dnH8.js";import{bT as Vt,bN as Qt,b8 as zt}from"./CIWayVej.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const L=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),B=()=>d(z,"$foldUnchanged",n),M=()=>d(Q,"$lineWrapping",n),j=()=>d(X,"$diffSideBySide",n),G=()=>d(at,"$ftLoading$",n),[n,J]=It(),V=e=>{Jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(R)?.expandAll():t(R)?.collapseAll()},get foldEnabled(){return B()},onToggleFold:()=>a.dispatch(Kt()),get wrapEnabled(){return M()},onToggleWrap:()=>a.dispatch(xt()),get splitEnabled(){return j()},onToggleSplit:()=>a.dispatch(Ft())})},Q=Vt(),z=Qt(),X=zt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const F=qt(),g=Ht(()=>i()),Y=Lt(g),Z=jt(g),w=crypto.randomUUID(),tt=Nt(g,w),c=s(()=>h().data?.commitHash||""),x=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Dt(e,"history")),()=>a.dispatch(Pt(e,"history"))});const r=s(()=>h().data?.gitRootId||""),K=s(()=>t(r)&&L().find(e=>e.id===t(r))?.path||""),et=s(()=>t(K)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Bt(g),at=Mt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),S=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(S)?.result?.kind==="commitDetails"?t(S).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(S)?.loading??!1);k(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=q(!0),R=q(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(x)}}));k(()=>{!F||!$()||F.registerActions({display:V})});const W=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,W)),()=>a.dispatch(Tt(e,W))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>bt(f,e,o)},v=Ct(),gt=Rt(v);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>G()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(K)||void 0),ut=s(()=>({hash:t(c),message:t(x),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));St(Gt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:D,sourcePanelId:P}))},onOpenNote:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Wt(i(),b,{openInAdjacentPanel:D,sourcePanelId:P}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return J(),pt}export{Yt as default};
@@ -1 +1 @@
1
- import{t as ee,bo as i,bw as te,b as ae,br as qe,bs as xe,bq as He,bp as Ke,bm as N}from"./C0QTy0Sy.js";import{bs as re,b_ as $,aD as t,W as h,bA as q,bn as se,c9 as v,aA as l,aB as z,bV as O,br as Ve,ca as Me,bH as T,a5 as Q,bl as Z,bS as M,bO as be,ay as B,a7 as ke,aw as ze,bz as Pe}from"./3SdAC2_C.js";import{f as W}from"./FzlZUztb.js";import{Y as Xe}from"./DCRuihKm.js";import{F as I,cF as Ye,bF as Ae,d3 as Re,aC as Ge,cr as Je,bn as Qe,bi as Ze,bh as et,bg as tt}from"./U9jJmfYa.js";import{ay as at,aB as rt}from"./DKHY8q_S.js";import{f as st}from"./BE6Cp7Qp.js";import{g as nt,i as it,I as lt}from"./B6S6VNu7.js";import{s as E,g as ot,f as De}from"./7UPrdiE9.js";import{a as Te}from"./cfdblcWY.js";import{i as S}from"./bhKPSdq4.js";import{n as J,l as Ce,c as Le}from"./DLwWVKiF.js";import{m as ct}from"./CE7dsja4.js";import{a as ut}from"./CJtViYfh.js";import{al as mt,j as pe}from"./BqRWw-wJ.js";var dt=z('<span class="svelte-dywwvd"></span>'),vt=z('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function Ue(w,a){if(new.target)return ee({component:Ue,...w});re(a,!0);let g=i(a,"levels",7);const r=v(()=>{const s=g().slice(-Te).map(m=>Number.isFinite(m)?Math.min(1,Math.max(0,m)):0);return[...new Array(Te-s.length).fill(0),...s]});var d={get levels(){return g()},set levels(s){g(s),l()},$set:te,$on:(s,m)=>ae(a,s,m)},_=vt();return nt(_,21,()=>t(r),it,(s,m)=>{var c=dt();let x;$(()=>{E(c,"data-level",t(m)),x=ot(c,"",x,{height:`${2+t(m)*12}px`})}),h(s,c)}),q(_),h(w,_),se(d)}var gt=z('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function Fe(w,a){if(new.target)return ee({component:Fe,...w});re(a,!0);let g=i(a,"levels",7),r=i(a,"startedAt",7,null),d=i(a,"elapsed",7),_=O(Ve(Date.now()));Me(()=>{if(!(d()!==void 0||r()===null))return T(_,Date.now(),!0),Xe.subscribe(new Date(r()),()=>T(_,Date.now(),!0),"second")});const s=v(()=>d()??st(r()===null?0:t(_)-r()));var m={get levels(){return g()},set levels(u){g(u),l()},get startedAt(){return r()},set startedAt(u=null){r(u),l()},get elapsed(){return d()},set elapsed(u){d(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)},c=gt(),x=Q(c),P=Z(x,!0),C=M(x,2);return Ue(C,{get levels(){return g()}}),q(c),$(()=>be(P,t(s))),h(w,c),se(m)}var ft=new Set(["$$slots","$$events","$$legacy","class"]),pt=z("<!> <!>",1);function bt(w,a){if(new.target)return ee({component:bt,...w});re(a,!0);const g=()=>xe(c,"$levels$",d),r=()=>xe(x,"$startedAt$",d),[d,_]=He();let s=i(a,"class",7,""),m=Ke(a,ft);const c=at(),x=rt();var P={get class(){return s()},set class(u=""){s(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)};{let u=v(()=>`dictation-stop-pill ${s()}`.trim());W(w,qe({variant:"ghost",size:"sm",get class(){return t(u)},"aria-pressed":"true"},()=>m,{children:(R,H)=>{var p=pt(),U=B(p);I(U,{get icon(){return Ye},size:14});var j=M(U,2);Fe(j,{get levels(){return g()},get startedAt(){return r()}}),h(R,p)},$$slots:{default:!0}}))}var C=se(P);return _(),C}var ht=z('<img class="w-full h-full object-cover"/>'),_t=z('<div class="flex size-full items-center justify-center bg-muted text-subtle"><!></div>'),yt=z("<div><!> <!></div> <!>",1),wt=z('<span class="tabular-nums opacity-70 shrink-0" data-testid="attachment-upload-progress"> </span>'),xt=z("<!> <!>",1),kt=z('<div class="w-4 h-4 rounded overflow-hidden shrink-0"><img class="w-full h-full object-cover"/></div>'),zt=z('<div><!> <span class="font-medium truncate max-w-30"> </span> <!> <!></div>');function Pt(w,a){if(new.target)return ee({component:Pt,...w});re(a,!0);let g=i(a,"id",7),r=i(a,"name",7),d=i(a,"type",7,""),_=i(a,"size",7),s=i(a,"file",7),m=i(a,"imageData",7),c=i(a,"imageMimeType",7),x=i(a,"imageUrl",7),P=i(a,"onRemove",7),C=i(a,"class",7,""),u=i(a,"variant",7,"chip"),R=i(a,"thumbnailClass",7,"w-16 h-16"),H=i(a,"disabled",7,!1),p=i(a,"placementStatus",7,void 0),U=i(a,"placementProgress",7,void 0),j=i(a,"placementError",7,void 0),K=i(a,"onRetry",7),V=O(null);const ne=v(()=>mt(c()||d()||s()?.type));let ie=O(null);const y=v(()=>t(ne)?m()&&c()?`data:${pe(c())};base64,${m()}`:x()??t(ie):null);Me(()=>{if(t(ne)&&!(m()&&c())&&s()){const e=URL.createObjectURL(s());return T(ie,e,!0),()=>URL.revokeObjectURL(e)}T(ie,null)});const Se=v(()=>{if(d()==="folder")return Qe;const e=pe(d()||c()||s()?.type);return e.startsWith("image")?Ae:e.includes("javascript")||e.includes("typescript")||e.includes("json")?Ze:e.includes("text")||e.includes("markdown")?et:tt}),le=v(()=>pe(d()||c()||s()?.type).startsWith("image")),Ie=v(()=>{if(p()!=="failed")return;const e=N.chat_attachmentPreview_placementFailed_tooltip({name:r()});return j()?`${e} — ${j()}`:e}),he=v(()=>{if(p()!=="placing"||U()===void 0)return;const e=Math.max(0,Math.min(1,U()));return ct(e,{style:"percent",maximumFractionDigits:0})});let oe=O(!1),ce=O(null);function _e(){u()==="thumbnail"&&t(le)&&t(y)&&T(oe,!0)}function Ee(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),_e())}function $e(e){e.stopPropagation(),P()?.(g())}var je={get id(){return g()},set id(e){g(e),l()},get name(){return r()},set name(e){r(e),l()},get type(){return d()},set type(e=""){d(e),l()},get size(){return _()},set size(e){_(e),l()},get file(){return s()},set file(e){s(e),l()},get imageData(){return m()},set imageData(e){m(e),l()},get imageMimeType(){return c()},set imageMimeType(e){c(e),l()},get imageUrl(){return x()},set imageUrl(e){x(e),l()},get onRemove(){return P()},set onRemove(e){P(e),l()},get class(){return C()},set class(e=""){C(e),l()},get variant(){return u()},set variant(e="chip"){u(e),l()},get thumbnailClass(){return R()},set thumbnailClass(e="w-16 h-16"){R(e),l()},get disabled(){return H()},set disabled(e=!1){H(e),l()},get placementStatus(){return p()},set placementStatus(e=void 0){p(e),l()},get placementProgress(){return U()},set placementProgress(e=void 0){U(e),l()},get placementError(){return j()},set placementError(e=void 0){j(e),l()},get onRetry(){return K()},set onRetry(e){K(e),l()},$set:te,$on:(e,b)=>ae(a,e,b)},ye=ke(),Ne=B(ye);{var Oe=e=>{var b=yt(),D=B(b),X=Q(D);{let A=v(()=>N.chat_attachmentPreview_viewFullSize_ariaLabel({name:r()})),F=v(()=>H()||!t(y));W(X,{variant:"plain",wrapContent:!1,type:"button",get class(){return`${R()??""} rounded-lg overflow-hidden cursor-pointer hover:opacity-90 transition-opacity`},onclick:_e,onkeydown:Ee,get"aria-label"(){return t(A)},get title(){return r()},get disabled(){return t(F)},get ref(){return t(ce)},set ref(L){T(ce,L,!0)},children:(L,ve)=>{var Y=ke(),ge=B(Y);{var n=o=>{var f=ht();$(()=>{E(f,"src",t(y)),E(f,"alt",r())}),ze("error",f,()=>T(V,t(y),!0)),Pe(f),h(o,f)},k=o=>{var f=_t(),G=Q(f);I(G,{get icon(){return Ae},size:"15"}),q(f),h(o,f)};S(ge,o=>{t(y)?o(n):o(k,-1)})}h(L,Y)},$$slots:{default:!0}})}var ue=M(X,2);{var me=A=>{{let F=v(()=>N.chat_attachmentPreview_remove_ariaLabel({name:r()}));W(A,{variant:"ghost",size:"icon-xs",class:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none bg-background/80 hover:bg-background shadow-sm",onclick:$e,get"aria-label"(){return t(F)},children:(L,ve)=>{I(L,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(ue,A=>{P()&&A(me)})}q(D);var de=M(D,2);{let A=v(()=>t(y)??"");ut(de,{get imageUrl(){return t(A)},get imageName(){return r()},get openerElement(){return t(ce)},get open(){return t(oe)},set open(F){T(oe,F,!0)}})}$(()=>De(D,1,`relative group shrink-0 ${C()??""}`)),J(1,D,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,D,()=>Le,()=>({tier:"fast"})),h(e,b)},Be=e=>{var b=zt(),D=Q(b);{var X=n=>{var k=xt(),o=B(k);lt(o,{size:15,class:"opacity-50 shrink-0"});var f=M(o,2);{var G=fe=>{var we=wt(),We=Z(we,!0);$(()=>be(We,t(he))),h(fe,we)};S(f,fe=>{t(he)!==void 0&&fe(G)})}h(n,k)},ue=n=>{I(n,{get icon(){return Ge},size:"15",class:"shrink-0"})},me=n=>{var k=kt(),o=Z(k);$(()=>{E(o,"src",t(y)),E(o,"alt",r())}),ze("error",o,()=>T(V,t(y),!0)),Pe(o),h(n,k)},de=n=>{I(n,{get icon(){return t(Se)},size:"15",class:"opacity-30 shrink-0"})};S(D,n=>{p()==="placing"?n(X):p()==="failed"?n(ue,1):t(le)&&t(y)&&t(V)!==t(y)?n(me,2):n(de,-1)})}var A=M(D,2),F=Z(A,!0),L=M(A,2);{var ve=n=>{{let k=v(()=>N.chat_attachmentPreview_retryPlacement_ariaLabel({name:r()}));W(n,{variant:"ghost-light",size:"icon-xs",class:"shrink-0 -my-1",onclick:o=>{o.stopPropagation(),K()(g())},get"aria-label"(){return t(k)},"data-testid":"attachment-retry",children:(o,f)=>{I(o,{get icon(){return Je},size:"10"})},$$slots:{default:!0}})}};S(L,n=>{p()==="failed"&&K()&&n(ve)})}var Y=M(L,2);{var ge=n=>{{let k=v(()=>p()==="failed"?"":"opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),o=v(()=>N.chat_attachmentPreview_removeAttachment_ariaLabel());W(n,{variant:"ghost-light",size:"icon-xs",get class(){return`shrink-0 ${t(k)??""} transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none -my-1 -mr-1`},onclick:()=>P()(g()),get"aria-label"(){return t(o)},children:(f,G)=>{I(f,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(Y,n=>{P()&&n(ge)})}q(b),$(()=>{De(b,1,`flex items-center gap-1.5 px-2 py-0.5 rounded text-xs whitespace-nowrap group shrink-0 ${p()==="failed"?"bg-danger-background/10 text-danger border border-danger/40":"bg-muted/70 text-subtle"} ${C()??""}`),E(b,"data-placement-status",p()),E(b,"title",t(Ie)),be(F,r())}),J(1,b,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,b,()=>Le,()=>({tier:"fast"})),h(e,b)};S(Ne,e=>{u()==="thumbnail"&&t(le)&&t(ne)&&(!t(y)||t(V)!==t(y))?e(Oe):e(Be,-1)})}return h(w,ye),se(je)}export{Pt as A,Fe as D,bt as a};
1
+ import{t as ee,bo as i,bw as te,b as ae,br as qe,bs as xe,bq as He,bp as Ke,bm as N}from"./C0QTy0Sy.js";import{bs as re,b_ as $,aD as t,W as h,bA as q,bn as se,c9 as v,aA as l,aB as z,bV as O,br as Ve,ca as Me,bH as T,a5 as Q,bl as Z,bS as M,bO as be,ay as B,a7 as ke,aw as ze,bz as Pe}from"./3SdAC2_C.js";import{f as W}from"./CttA-M7l.js";import{Y as Xe}from"./C2jYl_tm.js";import{F as I,cF as Ye,bF as Ae,d3 as Re,aC as Ge,cr as Je,bn as Qe,bi as Ze,bh as et,bg as tt}from"./U9jJmfYa.js";import{ay as at,aB as rt}from"./CTP1vzdq.js";import{f as st}from"./BE6Cp7Qp.js";import{g as nt,i as it,I as lt}from"./B6S6VNu7.js";import{s as E,g as ot,f as De}from"./7UPrdiE9.js";import{a as Te}from"./Cb0qNR4H.js";import{i as S}from"./bhKPSdq4.js";import{n as J,l as Ce,c as Le}from"./DLwWVKiF.js";import{m as ct}from"./CE7dsja4.js";import{a as ut}from"./DT4Cgjmu.js";import{al as mt,j as pe}from"./CIWayVej.js";var dt=z('<span class="svelte-dywwvd"></span>'),vt=z('<span class="waveform svelte-dywwvd" aria-hidden="true" data-dictation-waveform=""></span>');function Ue(w,a){if(new.target)return ee({component:Ue,...w});re(a,!0);let g=i(a,"levels",7);const r=v(()=>{const s=g().slice(-Te).map(m=>Number.isFinite(m)?Math.min(1,Math.max(0,m)):0);return[...new Array(Te-s.length).fill(0),...s]});var d={get levels(){return g()},set levels(s){g(s),l()},$set:te,$on:(s,m)=>ae(a,s,m)},_=vt();return nt(_,21,()=>t(r),it,(s,m)=>{var c=dt();let x;$(()=>{E(c,"data-level",t(m)),x=ot(c,"",x,{height:`${2+t(m)*12}px`})}),h(s,c)}),q(_),h(w,_),se(d)}var gt=z('<span class="dictation-meter svelte-1oz1rct"><span class="elapsed svelte-1oz1rct" data-dictation-elapsed=""> </span> <!></span>');function Fe(w,a){if(new.target)return ee({component:Fe,...w});re(a,!0);let g=i(a,"levels",7),r=i(a,"startedAt",7,null),d=i(a,"elapsed",7),_=O(Ve(Date.now()));Me(()=>{if(!(d()!==void 0||r()===null))return T(_,Date.now(),!0),Xe.subscribe(new Date(r()),()=>T(_,Date.now(),!0),"second")});const s=v(()=>d()??st(r()===null?0:t(_)-r()));var m={get levels(){return g()},set levels(u){g(u),l()},get startedAt(){return r()},set startedAt(u=null){r(u),l()},get elapsed(){return d()},set elapsed(u){d(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)},c=gt(),x=Q(c),P=Z(x,!0),C=M(x,2);return Ue(C,{get levels(){return g()}}),q(c),$(()=>be(P,t(s))),h(w,c),se(m)}var ft=new Set(["$$slots","$$events","$$legacy","class"]),pt=z("<!> <!>",1);function bt(w,a){if(new.target)return ee({component:bt,...w});re(a,!0);const g=()=>xe(c,"$levels$",d),r=()=>xe(x,"$startedAt$",d),[d,_]=He();let s=i(a,"class",7,""),m=Ke(a,ft);const c=at(),x=rt();var P={get class(){return s()},set class(u=""){s(u),l()},$set:te,$on:(u,R)=>ae(a,u,R)};{let u=v(()=>`dictation-stop-pill ${s()}`.trim());W(w,qe({variant:"ghost",size:"sm",get class(){return t(u)},"aria-pressed":"true"},()=>m,{children:(R,H)=>{var p=pt(),U=B(p);I(U,{get icon(){return Ye},size:14});var j=M(U,2);Fe(j,{get levels(){return g()},get startedAt(){return r()}}),h(R,p)},$$slots:{default:!0}}))}var C=se(P);return _(),C}var ht=z('<img class="w-full h-full object-cover"/>'),_t=z('<div class="flex size-full items-center justify-center bg-muted text-subtle"><!></div>'),yt=z("<div><!> <!></div> <!>",1),wt=z('<span class="tabular-nums opacity-70 shrink-0" data-testid="attachment-upload-progress"> </span>'),xt=z("<!> <!>",1),kt=z('<div class="w-4 h-4 rounded overflow-hidden shrink-0"><img class="w-full h-full object-cover"/></div>'),zt=z('<div><!> <span class="font-medium truncate max-w-30"> </span> <!> <!></div>');function Pt(w,a){if(new.target)return ee({component:Pt,...w});re(a,!0);let g=i(a,"id",7),r=i(a,"name",7),d=i(a,"type",7,""),_=i(a,"size",7),s=i(a,"file",7),m=i(a,"imageData",7),c=i(a,"imageMimeType",7),x=i(a,"imageUrl",7),P=i(a,"onRemove",7),C=i(a,"class",7,""),u=i(a,"variant",7,"chip"),R=i(a,"thumbnailClass",7,"w-16 h-16"),H=i(a,"disabled",7,!1),p=i(a,"placementStatus",7,void 0),U=i(a,"placementProgress",7,void 0),j=i(a,"placementError",7,void 0),K=i(a,"onRetry",7),V=O(null);const ne=v(()=>mt(c()||d()||s()?.type));let ie=O(null);const y=v(()=>t(ne)?m()&&c()?`data:${pe(c())};base64,${m()}`:x()??t(ie):null);Me(()=>{if(t(ne)&&!(m()&&c())&&s()){const e=URL.createObjectURL(s());return T(ie,e,!0),()=>URL.revokeObjectURL(e)}T(ie,null)});const Se=v(()=>{if(d()==="folder")return Qe;const e=pe(d()||c()||s()?.type);return e.startsWith("image")?Ae:e.includes("javascript")||e.includes("typescript")||e.includes("json")?Ze:e.includes("text")||e.includes("markdown")?et:tt}),le=v(()=>pe(d()||c()||s()?.type).startsWith("image")),Ie=v(()=>{if(p()!=="failed")return;const e=N.chat_attachmentPreview_placementFailed_tooltip({name:r()});return j()?`${e} — ${j()}`:e}),he=v(()=>{if(p()!=="placing"||U()===void 0)return;const e=Math.max(0,Math.min(1,U()));return ct(e,{style:"percent",maximumFractionDigits:0})});let oe=O(!1),ce=O(null);function _e(){u()==="thumbnail"&&t(le)&&t(y)&&T(oe,!0)}function Ee(e){(e.key==="Enter"||e.key===" ")&&(e.preventDefault(),_e())}function $e(e){e.stopPropagation(),P()?.(g())}var je={get id(){return g()},set id(e){g(e),l()},get name(){return r()},set name(e){r(e),l()},get type(){return d()},set type(e=""){d(e),l()},get size(){return _()},set size(e){_(e),l()},get file(){return s()},set file(e){s(e),l()},get imageData(){return m()},set imageData(e){m(e),l()},get imageMimeType(){return c()},set imageMimeType(e){c(e),l()},get imageUrl(){return x()},set imageUrl(e){x(e),l()},get onRemove(){return P()},set onRemove(e){P(e),l()},get class(){return C()},set class(e=""){C(e),l()},get variant(){return u()},set variant(e="chip"){u(e),l()},get thumbnailClass(){return R()},set thumbnailClass(e="w-16 h-16"){R(e),l()},get disabled(){return H()},set disabled(e=!1){H(e),l()},get placementStatus(){return p()},set placementStatus(e=void 0){p(e),l()},get placementProgress(){return U()},set placementProgress(e=void 0){U(e),l()},get placementError(){return j()},set placementError(e=void 0){j(e),l()},get onRetry(){return K()},set onRetry(e){K(e),l()},$set:te,$on:(e,b)=>ae(a,e,b)},ye=ke(),Ne=B(ye);{var Oe=e=>{var b=yt(),D=B(b),X=Q(D);{let A=v(()=>N.chat_attachmentPreview_viewFullSize_ariaLabel({name:r()})),F=v(()=>H()||!t(y));W(X,{variant:"plain",wrapContent:!1,type:"button",get class(){return`${R()??""} rounded-lg overflow-hidden cursor-pointer hover:opacity-90 transition-opacity`},onclick:_e,onkeydown:Ee,get"aria-label"(){return t(A)},get title(){return r()},get disabled(){return t(F)},get ref(){return t(ce)},set ref(L){T(ce,L,!0)},children:(L,ve)=>{var Y=ke(),ge=B(Y);{var n=o=>{var f=ht();$(()=>{E(f,"src",t(y)),E(f,"alt",r())}),ze("error",f,()=>T(V,t(y),!0)),Pe(f),h(o,f)},k=o=>{var f=_t(),G=Q(f);I(G,{get icon(){return Ae},size:"15"}),q(f),h(o,f)};S(ge,o=>{t(y)?o(n):o(k,-1)})}h(L,Y)},$$slots:{default:!0}})}var ue=M(X,2);{var me=A=>{{let F=v(()=>N.chat_attachmentPreview_remove_ariaLabel({name:r()}));W(A,{variant:"ghost",size:"icon-xs",class:"absolute top-0.5 right-0.5 opacity-0 group-hover:opacity-100 focus-visible:opacity-100 transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none bg-background/80 hover:bg-background shadow-sm",onclick:$e,get"aria-label"(){return t(F)},children:(L,ve)=>{I(L,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(ue,A=>{P()&&A(me)})}q(D);var de=M(D,2);{let A=v(()=>t(y)??"");ut(de,{get imageUrl(){return t(A)},get imageName(){return r()},get openerElement(){return t(ce)},get open(){return t(oe)},set open(F){T(oe,F,!0)}})}$(()=>De(D,1,`relative group shrink-0 ${C()??""}`)),J(1,D,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,D,()=>Le,()=>({tier:"fast"})),h(e,b)},Be=e=>{var b=zt(),D=Q(b);{var X=n=>{var k=xt(),o=B(k);lt(o,{size:15,class:"opacity-50 shrink-0"});var f=M(o,2);{var G=fe=>{var we=wt(),We=Z(we,!0);$(()=>be(We,t(he))),h(fe,we)};S(f,fe=>{t(he)!==void 0&&fe(G)})}h(n,k)},ue=n=>{I(n,{get icon(){return Ge},size:"15",class:"shrink-0"})},me=n=>{var k=kt(),o=Z(k);$(()=>{E(o,"src",t(y)),E(o,"alt",r())}),ze("error",o,()=>T(V,t(y),!0)),Pe(o),h(n,k)},de=n=>{I(n,{get icon(){return t(Se)},size:"15",class:"opacity-30 shrink-0"})};S(D,n=>{p()==="placing"?n(X):p()==="failed"?n(ue,1):t(le)&&t(y)&&t(V)!==t(y)?n(me,2):n(de,-1)})}var A=M(D,2),F=Z(A,!0),L=M(A,2);{var ve=n=>{{let k=v(()=>N.chat_attachmentPreview_retryPlacement_ariaLabel({name:r()}));W(n,{variant:"ghost-light",size:"icon-xs",class:"shrink-0 -my-1",onclick:o=>{o.stopPropagation(),K()(g())},get"aria-label"(){return t(k)},"data-testid":"attachment-retry",children:(o,f)=>{I(o,{get icon(){return Je},size:"10"})},$$slots:{default:!0}})}};S(L,n=>{p()==="failed"&&K()&&n(ve)})}var Y=M(L,2);{var ge=n=>{{let k=v(()=>p()==="failed"?"":"opacity-0 group-hover:opacity-100 focus-visible:opacity-100"),o=v(()=>N.chat_attachmentPreview_removeAttachment_ariaLabel());W(n,{variant:"ghost-light",size:"icon-xs",get class(){return`shrink-0 ${t(k)??""} transition-opacity duration-spring-fast ease-spring-fast motion-reduce:transition-none -my-1 -mr-1`},onclick:()=>P()(g()),get"aria-label"(){return t(o)},children:(f,G)=>{I(f,{get icon(){return Re},size:"10"})},$$slots:{default:!0}})}};S(Y,n=>{P()&&n(ge)})}q(b),$(()=>{De(b,1,`flex items-center gap-1.5 px-2 py-0.5 rounded text-xs whitespace-nowrap group shrink-0 ${p()==="failed"?"bg-danger-background/10 text-danger border border-danger/40":"bg-muted/70 text-subtle"} ${C()??""}`),E(b,"data-placement-status",p()),E(b,"title",t(Ie)),be(F,r())}),J(1,b,()=>Ce,()=>({tier:"moderate",y:0,scale:.9})),J(2,b,()=>Le,()=>({tier:"fast"})),h(e,b)};S(Ne,e=>{u()==="thumbnail"&&t(le)&&t(ne)&&(!t(y)||t(V)!==t(y))?e(Oe):e(Be,-1)})}return h(w,ye),se(je)}export{Pt as A,Fe as D,bt as a};
@@ -1 +1 @@
1
- import{nV as P,o4 as g,Jv as h,vr as d,vw as p,vt as v,g$ as y,gC as f,h1 as m,h0 as A,A$ as u,A_ as L,DR as S,Dr as F,Du as B,B2 as C,u1 as z,C0 as O,tW as x,u2 as M,u3 as R,gT as _,h2 as D,gF as E,gE as j,Lu as V,Ls as H,Lt as G,Lb as U,nE as $,J9 as J,gV as K,t$ as N,Lp as W,Lr as q,BS as Q,K6 as X,BK as Y,db as Z,oE as ss,oG as es,oF as ts,oH as as,EG as is,i7 as os,zv as rs,gf as T,io as cs,ih as hs,r7 as ls}from"./tr-2J8Mf.js";import{bm as ns}from"./C0QTy0Sy.js";import{u as ds,b as ps,n as us,j as b,l as bs,v as I,y as Is}from"./EK6zOAHM.js";function ws(i,s,e,t){const a=s?.activeTabId;if(!s||!a||!s.tabs.some(r=>r.id===a))return null;const o=t?P(t).map(g):i.map(r=>[r]),c=o.findIndex(r=>r.includes(s.id));if(c<0)return null;const n=o[c+(e==="next"?1:-1)]?.[0];return n?{kind:"neighbor",tabId:a,targetPanelId:n}:o.length>=4||s.tabs.length<2&&o[c].length<2?null:{kind:"edge",tabId:a,position:e==="next"?"after":"before"}}class k{constructor(s){this.workspaceId=s}get state(){return h.state}dispatch(s){h.dispatch(s)}getPanelIds(){return ds.select(this.state,this.workspaceId)}getAllTabs(){return ps.select(this.state,this.workspaceId)}getPanel(s){return us.select(this.state,this.workspaceId,s)??null}getOtherPanelId(){const s=this.getPanelIds();if(s.length<2)return null;const e=b.select(this.state,this.workspaceId);return s.find(t=>t!==e)??null}openTab(s,e){if(e){this.dispatch(d(this.workspaceId,s,e));return}this.dispatch(p(this.workspaceId,s))}openUserTab(s,e){const t=e??b.select(this.state,this.workspaceId)??void 0;if(t){this.dispatch(d(this.workspaceId,s,t,void 0,!0));return}this.dispatch(p(this.workspaceId,s,{force:!0}))}openTabInAdjacentOrSplit(s,e,t){this.dispatch(v(this.workspaceId,s,e,t))}openBrowserPanel(s,e,t,a){const o={type:"browser",title:ns.layout_tabTypes_browser_title(),browserUrl:s??"about:blank",...a===void 0?{}:{browserRequestedUrl:a},contextItemId:e,closable:!0};this.openTabInAdjacentOrSplit(o,t)}closeTab(s,e){this.dispatch(y(this.workspaceId,s,e))}closeActiveTab(s){this.dispatch(f(this.workspaceId,s))}closeTabsByType(s,e,t){this.dispatch(m(this.workspaceId,s,e,t))}closeTabsByAgentId(s){this.dispatch(A(this.workspaceId,s))}reopenClosedTab(s,e){this.dispatch(u(this.workspaceId,void 0,s,e))}reopenLastClosed(){const s=bs.select(this.state,this.workspaceId);s?.kind==="column"?this.dispatch(L(this.workspaceId)):s?.kind==="tab"&&this.dispatch(u(this.workspaceId))}setActiveTab(s,e){this.dispatch(S(this.workspaceId,s,e))}selectNextTab(s){this.dispatch(F(this.workspaceId,s))}selectPreviousTab(s){this.dispatch(B(this.workspaceId,s))}reorderTabs(s,e,t){this.dispatch(C(this.workspaceId,s,e,t))}moveTabToPanel(s,e,t,a){this.dispatch(z(this.workspaceId,s,e,t,a))}moveActivePaneToColumn(s,e){const t=ws(this.getPanelIds(),this.getPanel(s),e,I.select(this.state,this.workspaceId));return t?(t.kind==="neighbor"?this.moveTabToPanel(t.tabId,s,t.targetPanelId):this.moveTabToSplitLevel(t.tabId,s,[],t.position,"horizontal"),!0):!1}canMoveActivePaneVertically(s,e){return O(I.select(this.state,this.workspaceId),this.getPanel(s),e)!==null}moveActivePaneVertically(s,e){return this.canMoveActivePaneVertically(s,e)?(this.dispatch(x(this.workspaceId,s,e)),!0):!1}moveTabToSplit(s,e,t,a){this.dispatch(M(this.workspaceId,s,e,t,a))}moveTabToSplitLevel(s,e,t,a,o){this.dispatch(R(this.workspaceId,s,e,t,a,o))}closeOtherTabs(s,e){this.dispatch(_(this.workspaceId,s,e))}closeTabsToRight(s,e){this.dispatch(D(this.workspaceId,s,e))}closeAllTabs(s){this.dispatch(E(this.workspaceId,s))}closeAllOthersEverywhere(s,e){this.dispatch(j(this.workspaceId,s,e))}updateTabTitle(s,e){this.dispatch(V(this.workspaceId,s,e))}updateTabBrowserUrl(s,e){this.dispatch(H(this.workspaceId,s,e))}updateTabFavicon(s,e){this.dispatch(G(this.workspaceId,s,e))}updateFileTabPath(s,e){this.dispatch(U(this.workspaceId,s,e))}focusPanel(s){this.dispatch($(this.workspaceId,s))}splitPanel(s,e,t){this.dispatch(J(this.workspaceId,s,e,t))}closePanel(s){this.dispatch(K(this.workspaceId,s))}movePanel(s,e,t){this.dispatch(N(this.workspaceId,s,e,t))}updateSizes(s,e){this.dispatch(W(this.workspaceId,s,e))}updateSplitSizes(s,e){this.dispatch(q(this.workspaceId,s,e))}resizeRootDivider(s,e){this.dispatch(Q(this.workspaceId,s,e))}toggleExpandPanel(s){this.dispatch(X(this.workspaceId,s))}resetLayout(){this.dispatch(Y(this.workspaceId))}applyPreset(s){this.dispatch(Z(this.workspaceId,s))}goBack(){this.dispatch(ss(this.workspaceId))}goForward(){this.dispatch(es(this.workspaceId))}goBackInFocusHistory(){this.dispatch(ts(this.workspaceId))}goForwardInFocusHistory(){this.dispatch(as(this.workspaceId))}setDeferSpecTab(s){this.dispatch(is(this.workspaceId,s))}consumePendingFocus(s){this.dispatch(os(this.workspaceId,s))}reconcileStaleAgentTabs(s,e,t){const a=Array.isArray(s)?s:Array.from(s);this.dispatch(rs(this.workspaceId,a,e,t))}clearLayout(){this.dispatch(T(this.workspaceId))}createGridLayout(s){return this.dispatch(cs(this.workspaceId,s)),this.getPanelIds()}batchMutations(s){return s()}initializeLayout(s){const e=s??hs();this.dispatch(ls(this.workspaceId,e))}cyclePresets(){const s=Is.select(this.state,this.workspaceId),e=Object.keys(s).length;e<=1?this.applyPreset("split-horizontal"):e===2?this.applyPreset("three-column"):this.applyPreset("single")}}const l=new Map;function Ts(i){let s=l.get(i);return s||(s=new k(i),l.set(i,s)),s}function ks(i){return!0}function Ps(i){l.delete(i)}function w(i){h.dispatch(T(i))}const fs=Object.freeze(Object.defineProperty({__proto__:null,PanelLayoutAdapter:k,clearPanelLayoutAdapter:Ps,clearPanelLayoutFn:w,clearPanelLayoutForWorkspace:w,getPanelLayoutManager:Ts,hasPanelLayoutManager:ks},Symbol.toStringTag,{value:"Module"}));export{Ps as c,Ts as g,ks as h,fs as p,ws as r};
1
+ import{nV as P,o4 as g,Jv as h,vr as d,vw as p,vt as v,g$ as y,gC as f,h1 as m,h0 as A,A$ as u,A_ as L,DR as S,Dr as F,Du as B,B2 as C,u1 as z,C0 as O,tW as x,u2 as M,u3 as R,gT as _,h2 as D,gF as E,gE as j,Lu as V,Ls as H,Lt as G,Lb as U,nE as $,J9 as J,gV as K,t$ as N,Lp as W,Lr as q,BS as Q,K6 as X,BK as Y,db as Z,oE as ss,oG as es,oF as ts,oH as as,EG as is,i7 as os,zv as rs,gf as T,io as cs,ih as hs,r7 as ls}from"./_LtUY0jS.js";import{bm as ns}from"./C0QTy0Sy.js";import{u as ds,b as ps,n as us,j as b,l as bs,v as I,y as Is}from"./BsOWc0fD.js";function ws(i,s,e,t){const a=s?.activeTabId;if(!s||!a||!s.tabs.some(r=>r.id===a))return null;const o=t?P(t).map(g):i.map(r=>[r]),c=o.findIndex(r=>r.includes(s.id));if(c<0)return null;const n=o[c+(e==="next"?1:-1)]?.[0];return n?{kind:"neighbor",tabId:a,targetPanelId:n}:o.length>=4||s.tabs.length<2&&o[c].length<2?null:{kind:"edge",tabId:a,position:e==="next"?"after":"before"}}class k{constructor(s){this.workspaceId=s}get state(){return h.state}dispatch(s){h.dispatch(s)}getPanelIds(){return ds.select(this.state,this.workspaceId)}getAllTabs(){return ps.select(this.state,this.workspaceId)}getPanel(s){return us.select(this.state,this.workspaceId,s)??null}getOtherPanelId(){const s=this.getPanelIds();if(s.length<2)return null;const e=b.select(this.state,this.workspaceId);return s.find(t=>t!==e)??null}openTab(s,e){if(e){this.dispatch(d(this.workspaceId,s,e));return}this.dispatch(p(this.workspaceId,s))}openUserTab(s,e){const t=e??b.select(this.state,this.workspaceId)??void 0;if(t){this.dispatch(d(this.workspaceId,s,t,void 0,!0));return}this.dispatch(p(this.workspaceId,s,{force:!0}))}openTabInAdjacentOrSplit(s,e,t){this.dispatch(v(this.workspaceId,s,e,t))}openBrowserPanel(s,e,t,a){const o={type:"browser",title:ns.layout_tabTypes_browser_title(),browserUrl:s??"about:blank",...a===void 0?{}:{browserRequestedUrl:a},contextItemId:e,closable:!0};this.openTabInAdjacentOrSplit(o,t)}closeTab(s,e){this.dispatch(y(this.workspaceId,s,e))}closeActiveTab(s){this.dispatch(f(this.workspaceId,s))}closeTabsByType(s,e,t){this.dispatch(m(this.workspaceId,s,e,t))}closeTabsByAgentId(s){this.dispatch(A(this.workspaceId,s))}reopenClosedTab(s,e){this.dispatch(u(this.workspaceId,void 0,s,e))}reopenLastClosed(){const s=bs.select(this.state,this.workspaceId);s?.kind==="column"?this.dispatch(L(this.workspaceId)):s?.kind==="tab"&&this.dispatch(u(this.workspaceId))}setActiveTab(s,e){this.dispatch(S(this.workspaceId,s,e))}selectNextTab(s){this.dispatch(F(this.workspaceId,s))}selectPreviousTab(s){this.dispatch(B(this.workspaceId,s))}reorderTabs(s,e,t){this.dispatch(C(this.workspaceId,s,e,t))}moveTabToPanel(s,e,t,a){this.dispatch(z(this.workspaceId,s,e,t,a))}moveActivePaneToColumn(s,e){const t=ws(this.getPanelIds(),this.getPanel(s),e,I.select(this.state,this.workspaceId));return t?(t.kind==="neighbor"?this.moveTabToPanel(t.tabId,s,t.targetPanelId):this.moveTabToSplitLevel(t.tabId,s,[],t.position,"horizontal"),!0):!1}canMoveActivePaneVertically(s,e){return O(I.select(this.state,this.workspaceId),this.getPanel(s),e)!==null}moveActivePaneVertically(s,e){return this.canMoveActivePaneVertically(s,e)?(this.dispatch(x(this.workspaceId,s,e)),!0):!1}moveTabToSplit(s,e,t,a){this.dispatch(M(this.workspaceId,s,e,t,a))}moveTabToSplitLevel(s,e,t,a,o){this.dispatch(R(this.workspaceId,s,e,t,a,o))}closeOtherTabs(s,e){this.dispatch(_(this.workspaceId,s,e))}closeTabsToRight(s,e){this.dispatch(D(this.workspaceId,s,e))}closeAllTabs(s){this.dispatch(E(this.workspaceId,s))}closeAllOthersEverywhere(s,e){this.dispatch(j(this.workspaceId,s,e))}updateTabTitle(s,e){this.dispatch(V(this.workspaceId,s,e))}updateTabBrowserUrl(s,e){this.dispatch(H(this.workspaceId,s,e))}updateTabFavicon(s,e){this.dispatch(G(this.workspaceId,s,e))}updateFileTabPath(s,e){this.dispatch(U(this.workspaceId,s,e))}focusPanel(s){this.dispatch($(this.workspaceId,s))}splitPanel(s,e,t){this.dispatch(J(this.workspaceId,s,e,t))}closePanel(s){this.dispatch(K(this.workspaceId,s))}movePanel(s,e,t){this.dispatch(N(this.workspaceId,s,e,t))}updateSizes(s,e){this.dispatch(W(this.workspaceId,s,e))}updateSplitSizes(s,e){this.dispatch(q(this.workspaceId,s,e))}resizeRootDivider(s,e){this.dispatch(Q(this.workspaceId,s,e))}toggleExpandPanel(s){this.dispatch(X(this.workspaceId,s))}resetLayout(){this.dispatch(Y(this.workspaceId))}applyPreset(s){this.dispatch(Z(this.workspaceId,s))}goBack(){this.dispatch(ss(this.workspaceId))}goForward(){this.dispatch(es(this.workspaceId))}goBackInFocusHistory(){this.dispatch(ts(this.workspaceId))}goForwardInFocusHistory(){this.dispatch(as(this.workspaceId))}setDeferSpecTab(s){this.dispatch(is(this.workspaceId,s))}consumePendingFocus(s){this.dispatch(os(this.workspaceId,s))}reconcileStaleAgentTabs(s,e,t){const a=Array.isArray(s)?s:Array.from(s);this.dispatch(rs(this.workspaceId,a,e,t))}clearLayout(){this.dispatch(T(this.workspaceId))}createGridLayout(s){return this.dispatch(cs(this.workspaceId,s)),this.getPanelIds()}batchMutations(s){return s()}initializeLayout(s){const e=s??hs();this.dispatch(ls(this.workspaceId,e))}cyclePresets(){const s=Is.select(this.state,this.workspaceId),e=Object.keys(s).length;e<=1?this.applyPreset("split-horizontal"):e===2?this.applyPreset("three-column"):this.applyPreset("single")}}const l=new Map;function Ts(i){let s=l.get(i);return s||(s=new k(i),l.set(i,s)),s}function ks(i){return!0}function Ps(i){l.delete(i)}function w(i){h.dispatch(T(i))}const fs=Object.freeze(Object.defineProperty({__proto__:null,PanelLayoutAdapter:k,clearPanelLayoutAdapter:Ps,clearPanelLayoutFn:w,clearPanelLayoutForWorkspace:w,getPanelLayoutManager:Ts,hasPanelLayoutManager:ks},Symbol.toStringTag,{value:"Module"}));export{Ps as c,Ts as g,ks as h,fs as p,ws as r};
@@ -1,4 +1,4 @@
1
- import{p as I}from"./ZxEOlEA2.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./BhSvmxU-.js";import{p as U}from"./BFeEPayU.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
1
+ import{p as I}from"./Bp4RMAg2.js";import{aZ as _,U as E,Y as F,b0 as D,V as P,a_ as z,b as c,aX as G,r as B,q as w,W as C,O as W,ay as b,a6 as V,B as H}from"./CjJvlfCr.js";import{p as U}from"./BFeEPayU.js";var m={showLegend:!0,ticks:5,max:null,min:0,graticule:"circle"},y=32,A={axes:[],curves:[],options:m},x=structuredClone(A),X=W.radar,j=c(()=>w({...X,...C().radar}),"getConfig"),M=c(()=>x.axes,"getAxes"),Y=c(()=>x.curves,"getCurves"),Z=c(()=>x.options,"getOptions"),q=c(a=>{x.axes=a.map(t=>({name:t.name,label:t.label??t.name}))},"setAxes"),K=c(a=>{x.curves=a.map(t=>({name:t.name,label:t.label??t.name,entries:N(t.entries)}))},"setCurves"),N=c(a=>{if(a[0].axis==null)return a.map(e=>e.value);const t=M();if(t.length===0)throw new Error("Axes must be populated before curves for reference entries");return t.map(e=>{const r=a.find(s=>s.axis?.$refText===e.name);if(r===void 0)throw new Error("Missing entry for axis "+e.label);return r.value})},"computeCurveEntries"),J=c(a=>{const t=a.reduce((e,r)=>(e[r.name]=r,e),{});x.options={showLegend:t.showLegend?.value??m.showLegend,ticks:t.ticks?.value??m.ticks,max:t.max?.value??m.max,min:t.min?.value??m.min,graticule:t.graticule?.value??m.graticule},x.options.ticks>y&&(b.warn(`Radar diagram ticks (${x.options.ticks}) exceeds maximum allowed (${y}). Using ${y} instead.`),x.options.ticks=y)},"setOptions"),Q=c(()=>{B(),x=structuredClone(A)},"clear"),$={getAxes:M,getCurves:Y,getOptions:Z,setAxes:q,setCurves:K,setOptions:J,getConfig:j,clear:Q,setAccTitle:z,getAccTitle:P,setDiagramTitle:D,getDiagramTitle:F,getAccDescription:E,setAccDescription:_},tt=c(a=>{I(a,$);const{axes:t,curves:e,options:r}=a;$.setAxes(t),$.setCurves(e),$.setOptions(r)},"populate"),et={parse:c(async a=>{const t=await U("radar",a);b.debug(t),tt(t)},"parse")},at=c((a,t,e,r)=>{const s=r.db,i=s.getAxes(),l=s.getCurves(),n=s.getOptions(),o=s.getConfig(),d=s.getDiagramTitle(),p=G(t),u=rt(p,o),g=n.max??Math.max(...l.map(f=>Math.max(...f.entries))),h=n.min,v=Math.min(o.width,o.height)/2;st(u,i,v,n.ticks,n.graticule),nt(u,i,v,o),L(u,i,l,h,g,n.graticule,o),k(u,l,n.showLegend,o),u.append("text").attr("class","radarTitle").text(d).attr("x",0).attr("y",-o.height/2-o.marginTop)},"draw"),rt=c((a,t)=>{const e=t.width+t.marginLeft+t.marginRight,r=t.height+t.marginTop+t.marginBottom,s={x:t.marginLeft+t.width/2,y:t.marginTop+t.height/2};return H(a,r,e,t.useMaxWidth??!0),a.attr("viewBox",`0 0 ${e} ${r}`).attr("overflow","visible"),a.append("g").attr("transform",`translate(${s.x}, ${s.y})`)},"drawFrame"),st=c((a,t,e,r,s)=>{if(s==="circle")for(let i=0;i<r;i++){const l=e*(i+1)/r;a.append("circle").attr("r",l).attr("class","radarGraticule")}else if(s==="polygon"){const i=t.length;for(let l=0;l<r;l++){const n=e*(l+1)/r,o=t.map((d,p)=>{const u=2*p*Math.PI/i-Math.PI/2,g=n*Math.cos(u),h=n*Math.sin(u);return`${g},${h}`}).join(" ");a.append("polygon").attr("points",o).attr("class","radarGraticule")}}},"drawGraticule"),nt=c((a,t,e,r)=>{const s=t.length;for(let i=0;i<s;i++){const l=t[i].label,n=2*i*Math.PI/s-Math.PI/2,o=Math.cos(n),d=Math.sin(n);a.append("line").attr("x1",0).attr("y1",0).attr("x2",e*r.axisScaleFactor*o).attr("y2",e*r.axisScaleFactor*d).attr("class","radarAxisLine");const p=o>.01?"start":o<-.01?"end":"middle",u=d>.01?"hanging":d<-.01?"auto":"central",g=4;a.append("text").text(l).attr("x",e*r.axisLabelFactor*o+g*o).attr("y",e*r.axisLabelFactor*d+g*d).attr("text-anchor",p).attr("dominant-baseline",u).attr("class","radarAxisLabel")}},"drawAxes");function L(a,t,e,r,s,i,l){const n=t.length,o=Math.min(l.width,l.height)/2;e.forEach((d,p)=>{if(d.entries.length!==n)return;const u=d.entries.map((g,h)=>{const v=2*Math.PI*h/n-Math.PI/2,f=T(g,r,s,o),O=f*Math.cos(v),R=f*Math.sin(v);return{x:O,y:R}});i==="circle"?a.append("path").attr("d",S(u,l.curveTension)).attr("class",`radarCurve-${p}`):i==="polygon"&&a.append("polygon").attr("points",u.map(g=>`${g.x},${g.y}`).join(" ")).attr("class",`radarCurve-${p}`)})}c(L,"drawCurves");function T(a,t,e,r){const s=Math.min(Math.max(a,t),e);return r*(s-t)/(e-t)}c(T,"relativeRadius");function S(a,t){const e=a.length;let r=`M${a[0].x},${a[0].y}`;for(let s=0;s<e;s++){const i=a[(s-1+e)%e],l=a[s],n=a[(s+1)%e],o=a[(s+2)%e],d={x:l.x+(n.x-i.x)*t,y:l.y+(n.y-i.y)*t},p={x:n.x-(o.x-l.x)*t,y:n.y-(o.y-l.y)*t};r+=` C${d.x},${d.y} ${p.x},${p.y} ${n.x},${n.y}`}return`${r} Z`}c(S,"closedRoundCurve");function k(a,t,e,r){if(!e)return;const s=(r.width/2+r.marginRight)*3/4,i=-(r.height/2+r.marginTop)*3/4,l=20;t.forEach((n,o)=>{const d=a.append("g").attr("transform",`translate(${s}, ${i+o*l})`);d.append("rect").attr("width",12).attr("height",12).attr("class",`radarLegendBox-${o}`),d.append("text").attr("x",16).attr("y",0).attr("class","radarLegendText").text(n.label)})}c(k,"drawLegend");var ot={draw:at},it=c((a,t)=>{let e="";for(let r=0;r<a.THEME_COLOR_LIMIT;r++){const s=a[`cScale${r}`];e+=`
2
2
  .radarCurve-${r} {
3
3
  color: ${s};
4
4
  fill: ${s};
@@ -1,4 +1,4 @@
1
- import{g as Fe}from"./7dpPwFPi.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./BhSvmxU-.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
1
+ import{g as Fe}from"./DoDP-NJt.js";import{ap as Me,a5 as xe,ar as Ke,bc as We,bb as Ye,be as Ve,bd as Ue,b9 as He,b7 as Xe,b2 as je,aN as Ge,aF as qe,aE as Je,az as Ze,aj as Qe,ai as $e,ak as et,S as tt,R as st,K as rt,k as it,I as at,f as nt,g as ot,e as ct,b as u,W as P,aW as X,ag as lt,aD as ut,B as ht,ay as y,r as gt,am as dt,aU as pt,ab as ft,x as bt,aT as St,p as xt,X as Le,ae as Lt,af as mt,aK as yt,z as wt,a3 as Et,ah as me,b6 as kt,aL as _t}from"./CjJvlfCr.js";import{G as Dt}from"./-xK_vQQs.js";function Tt(e){return Array.isArray(e)}function Nt(e){if(Me(e))return e;const a=xe(e);if(!It(e))return{};if(Tt(e)){const s=Array.from(e);return e.length>0&&typeof e[0]=="string"&&Object.hasOwn(e,"index")&&(s.index=e.index,s.input=e.input),s}if(Ke(e)){const s=e,c=s.constructor;return new c(s.buffer,s.byteOffset,s.length)}if(a==="[object ArrayBuffer]")return new ArrayBuffer(e.byteLength);if(a==="[object DataView]"){const s=e,c=s.buffer,g=s.byteOffset,t=s.byteLength,h=new ArrayBuffer(t),x=new Uint8Array(c,g,t);return new Uint8Array(h).set(x),new DataView(h)}if(a==="[object Boolean]"||a==="[object Number]"||a==="[object String]"){const s=e.constructor,c=new s(e.valueOf());return a==="[object String]"?Ct(c,e):se(c,e),c}if(a==="[object Date]")return new Date(Number(e));if(a==="[object RegExp]"){const s=e,c=new RegExp(s.source,s.flags);return c.lastIndex=s.lastIndex,c}if(a==="[object Symbol]")return Object(Symbol.prototype.valueOf.call(e));if(a==="[object Map]"){const s=e,c=new Map;return s.forEach((g,t)=>{c.set(t,g)}),c}if(a==="[object Set]"){const s=e,c=new Set;return s.forEach(g=>{c.add(g)}),c}if(a==="[object Arguments]"){const s=e,c={};return se(c,s),c.length=s.length,c[Symbol.iterator]=s[Symbol.iterator],c}const o={};return vt(o,e),se(o,e),Ot(o,e),o}function It(e){switch(xe(e)){case ct:case ot:case nt:case at:case it:case rt:case st:case tt:case et:case $e:case Qe:case Ze:case Je:case qe:case Ge:case je:case Xe:case He:case Ue:case Ve:case Ye:case We:return!0;default:return!1}}function se(e,a){for(const o in a)Object.hasOwn(a,o)&&(e[o]=a[o])}function Ot(e,a){const o=Object.getOwnPropertySymbols(a);for(let s=0;s<o.length;s++){const c=o[s];Object.prototype.propertyIsEnumerable.call(a,c)&&(e[c]=a[c])}}function Ct(e,a){const o=a.valueOf().length;for(const s in a)Object.hasOwn(a,s)&&(Number.isNaN(Number(s))||Number(s)>=o)&&(e[s]=a[s])}function vt(e,a){const o=Object.getPrototypeOf(a);o!==null&&typeof a.constructor=="function"&&Object.setPrototypeOf(e,o)}var ie=(function(){var e=u(function(C,d,i,l){for(i=i||{},l=C.length;l--;i[C[l]]=d);return i},"o"),a=[1,15],o=[1,7],s=[1,13],c=[1,14],g=[1,19],t=[1,16],h=[1,17],x=[1,18],L=[8,30],b=[8,10,21,28,29,30,31,39,43,46],f=[1,23],m=[1,24],w=[8,10,15,16,21,28,29,30,31,39,43,46],S=[8,10,15,16,21,27,28,29,30,31,39,43,46],_=[1,49],k={trace:u(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,NODE_ID:31,nodeShapeNLabel:32,dirList:33,DIR:34,NODE_DSTART:35,NODE_DEND:36,BLOCK_ARROW_START:37,BLOCK_ARROW_END:38,classDef:39,CLASSDEF_ID:40,CLASSDEF_STYLEOPTS:41,DEFAULT:42,class:43,CLASSENTITY_IDS:44,STYLECLASS:45,style:46,STYLE_ENTITY_IDS:47,STYLE_DEFINITION_DATA:48,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"NODE_ID",34:"DIR",35:"NODE_DSTART",36:"NODE_DEND",37:"BLOCK_ARROW_START",38:"BLOCK_ARROW_END",39:"classDef",40:"CLASSDEF_ID",41:"CLASSDEF_STYLEOPTS",42:"DEFAULT",43:"class",44:"CLASSENTITY_IDS",45:"STYLECLASS",46:"style",47:"STYLE_ENTITY_IDS",48:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[33,1],[33,2],[32,3],[32,4],[23,3],[23,3],[24,3],[25,3]],performAction:u(function(d,i,l,p,E,r,K){var n=r.length-1;switch(E){case 4:p.getLogger().debug("Rule: separator (NL) ");break;case 5:p.getLogger().debug("Rule: separator (Space) ");break;case 6:p.getLogger().debug("Rule: separator (EOF) ");break;case 7:p.getLogger().debug("Rule: hierarchy: ",r[n-1]),p.setHierarchy(r[n-1]);break;case 8:p.getLogger().debug("Stop NL ");break;case 9:p.getLogger().debug("Stop EOF ");break;case 10:p.getLogger().debug("Stop NL2 ");break;case 11:p.getLogger().debug("Stop EOF2 ");break;case 12:p.getLogger().debug("Rule: statement: ",r[n]),typeof r[n].length=="number"?this.$=r[n]:this.$=[r[n]];break;case 13:p.getLogger().debug("Rule: statement #2: ",r[n-1]),this.$=[r[n-1]].concat(r[n]);break;case 14:p.getLogger().debug("Rule: link: ",r[n],d),this.$={edgeTypeStr:r[n],label:""};break;case 15:p.getLogger().debug("Rule: LABEL link: ",r[n-3],r[n-1],r[n]),this.$={edgeTypeStr:r[n],label:r[n-1]};break;case 18:const F=parseInt(r[n]),Y=p.generateId();this.$={id:Y,type:"space",label:"",width:F,children:[]};break;case 23:p.getLogger().debug("Rule: (nodeStatement link node) ",r[n-2],r[n-1],r[n]," typestr: ",r[n-1].edgeTypeStr);const J=p.edgeStrToEdgeData(r[n-1].edgeTypeStr),V=p.edgeStrToEdgeStartData(r[n-1].edgeTypeStr),Z=p.edgeStrToThickness(r[n-1].edgeTypeStr),D=p.edgeStrToPattern(r[n-1].edgeTypeStr);this.$=[{id:r[n-2].id,label:r[n-2].label,type:r[n-2].type,directions:r[n-2].directions},{id:r[n-2].id+"-"+r[n].id,start:r[n-2].id,end:r[n].id,label:r[n-1].label,type:"edge",thickness:Z,pattern:D,directions:r[n].directions,arrowTypeEnd:J,arrowTypeStart:V},{id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions}];break;case 24:p.getLogger().debug("Rule: nodeStatement (abc88 node size) ",r[n-1],r[n]),this.$={id:r[n-1].id,label:r[n-1].label,type:p.typeStr2Type(r[n-1].typeStr),directions:r[n-1].directions,widthInColumns:parseInt(r[n],10)};break;case 25:p.getLogger().debug("Rule: nodeStatement (node) ",r[n]),this.$={id:r[n].id,label:r[n].label,type:p.typeStr2Type(r[n].typeStr),directions:r[n].directions,widthInColumns:1};break;case 26:p.getLogger().debug("APA123",this?this:"na"),p.getLogger().debug("COLUMNS: ",r[n]),this.$={type:"column-setting",columns:r[n]==="auto"?-1:parseInt(r[n])};break;case 27:p.getLogger().debug("Rule: id-block statement : ",r[n-2],r[n-1]),p.generateId(),this.$={...r[n-2],type:"composite",children:r[n-1]};break;case 28:p.getLogger().debug("Rule: blockStatement : ",r[n-2],r[n-1],r[n]);const z=p.generateId();this.$={id:z,type:"composite",label:"",children:r[n-1]};break;case 29:p.getLogger().debug("Rule: node (NODE_ID separator): ",r[n]),this.$={id:r[n]};break;case 30:p.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",r[n-1],r[n]),this.$={id:r[n-1],label:r[n].label,typeStr:r[n].typeStr,directions:r[n].directions};break;case 31:p.getLogger().debug("Rule: dirList: ",r[n]),this.$=[r[n]];break;case 32:p.getLogger().debug("Rule: dirList: ",r[n-1],r[n]),this.$=[r[n-1]].concat(r[n]);break;case 33:p.getLogger().debug("Rule: nodeShapeNLabel: ",r[n-2],r[n-1],r[n]),this.$={typeStr:r[n-2]+r[n],label:r[n-1]};break;case 34:p.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",r[n-3],r[n-2]," #3:",r[n-1],r[n]),this.$={typeStr:r[n-3]+r[n],label:r[n-2],directions:r[n-1]};break;case 35:case 36:this.$={type:"classDef",id:r[n-1].trim(),css:r[n].trim()};break;case 37:this.$={type:"applyClass",id:r[n-1].trim(),styleClass:r[n].trim()};break;case 38:this.$={type:"applyStyles",id:r[n-1].trim(),stylesStr:r[n].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{10:a,11:3,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{8:[1,20]},e(L,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,10:a,21:o,28:s,29:c,31:g,39:t,43:h,46:x}),e(b,[2,16],{14:22,15:f,16:m}),e(b,[2,17]),e(b,[2,18]),e(b,[2,19]),e(b,[2,20]),e(b,[2,21]),e(b,[2,22]),e(w,[2,25],{27:[1,25]}),e(b,[2,26]),{19:26,26:12,31:g},{10:a,11:27,13:4,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{40:[1,28],42:[1,29]},{44:[1,30]},{47:[1,31]},e(S,[2,29],{32:32,35:[1,33],37:[1,34]}),{1:[2,7]},e(L,[2,13]),{26:35,31:g},{31:[2,14]},{17:[1,36]},e(w,[2,24]),{10:a,11:37,13:4,14:22,15:f,16:m,19:5,20:6,21:o,22:8,23:9,24:10,25:11,26:12,28:s,29:c,31:g,39:t,43:h,46:x},{30:[1,38]},{41:[1,39]},{41:[1,40]},{45:[1,41]},{48:[1,42]},e(S,[2,30]),{18:[1,43]},{18:[1,44]},e(w,[2,23]),{18:[1,45]},{30:[1,46]},e(b,[2,28]),e(b,[2,35]),e(b,[2,36]),e(b,[2,37]),e(b,[2,38]),{36:[1,47]},{33:48,34:_},{15:[1,50]},e(b,[2,27]),e(S,[2,33]),{38:[1,51]},{33:52,34:_,38:[2,31]},{31:[2,15]},e(S,[2,34]),{38:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:u(function(d,i){if(i.recoverable)this.trace(d);else{var l=new Error(d);throw l.hash=i,l}},"parseError"),parse:u(function(d){var i=this,l=[0],p=[],E=[null],r=[],K=this.table,n="",F=0,Y=0,J=2,V=1,Z=r.slice.call(arguments,1),D=Object.create(this.lexer),z={yy:{}};for(var Q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Q)&&(z.yy[Q]=this.yy[Q]);D.setInput(d,z.yy),z.yy.lexer=D,z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var $=D.yylloc;r.push($);var Re=D.options&&D.options.ranges;typeof z.yy.parseError=="function"?this.parseError=z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Pe(I){l.length=l.length-2*I,E.length=E.length-I,r.length=r.length-I}u(Pe,"popStack");function de(){var I;return I=p.pop()||D.lex()||V,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=i.symbols_[I]||I),I}u(de,"lex");for(var N,R,v,ee,M={},U,B,pe,H;;){if(R=l[l.length-1],this.defaultActions[R]?v=this.defaultActions[R]:((N===null||typeof N>"u")&&(N=de()),v=K[R]&&K[R][N]),typeof v>"u"||!v.length||!v[0]){var te="";H=[];for(U in K[R])this.terminals_[U]&&U>J&&H.push("'"+this.terminals_[U]+"'");D.showPosition?te="Parse error on line "+(F+1)+`:
2
2
  `+D.showPosition()+`
3
3
  Expecting `+H.join(", ")+", got '"+(this.terminals_[N]||N)+"'":te="Parse error on line "+(F+1)+": Unexpected "+(N==V?"end of input":"'"+(this.terminals_[N]||N)+"'"),this.parseError(te,{text:D.match,token:this.terminals_[N]||N,line:D.yylineno,loc:$,expected:H})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+N);switch(v[0]){case 1:l.push(N),E.push(D.yytext),r.push(D.yylloc),l.push(v[1]),N=null,Y=D.yyleng,n=D.yytext,F=D.yylineno,$=D.yylloc;break;case 2:if(B=this.productions_[v[1]][1],M.$=E[E.length-B],M._$={first_line:r[r.length-(B||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(B||1)].first_column,last_column:r[r.length-1].last_column},Re&&(M._$.range=[r[r.length-(B||1)].range[0],r[r.length-1].range[1]]),ee=this.performAction.apply(M,[n,Y,F,z.yy,v[1],E,r].concat(Z)),typeof ee<"u")return ee;B&&(l=l.slice(0,-1*B*2),E=E.slice(0,-1*B),r=r.slice(0,-1*B)),l.push(this.productions_[v[1]][0]),E.push(M.$),r.push(M._$),pe=K[l[l.length-2]][l[l.length-1]],l.push(pe);break;case 3:return!0}}return!0},"parse")},T=(function(){var C={EOF:1,parseError:u(function(i,l){if(this.yy.parser)this.yy.parser.parseError(i,l);else throw new Error(i)},"parseError"),setInput:u(function(d,i){return this.yy=i||this.yy||{},this._input=d,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:u(function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var i=d.match(/(?:\r\n?|\n).*/g);return i?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},"input"),unput:u(function(d){var i=d.length,l=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-i),this.offset-=i;var p=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 E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===p.length?this.yylloc.first_column:0)+p[p.length-l.length].length-l[0].length:this.yylloc.first_column-i},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-i]),this.yyleng=this.yytext.length,this},"unput"),more:u(function(){return this._more=!0,this},"more"),reject:u(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:u(function(d){this.unput(this.match.slice(d))},"less"),pastInput:u(function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u(function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u(function(){var d=this.pastInput(),i=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
@@ -0,0 +1 @@
1
+ import{o_ as o}from"./_LtUY0jS.js";import{aO as r}from"./Cppy6ZYG.js";function c(n,e){if(!e)return!0;const t=r.select(n,e);return!!t&&!o(t)}export{c};
@@ -1 +1 @@
1
- import{t as be,bo as a,bm as u,bw as pe,b as me}from"./C0QTy0Sy.js";import{bs as xe,a7 as w,ay as c,W as o,bn as Ee,aA as n,bS as E,aD as O,bH as Se,a5 as Te,bA as Pe,c9 as ie,aB as de,bV as ke,be as S,b$ as T,b_ as P,bO as k}from"./3SdAC2_C.js";import{i as m}from"./bhKPSdq4.js";import{c as v}from"./CUkDMZwP.js";import{b as Ce}from"./7UPrdiE9.js";import{F as De,cA as Fe,be as We,ab as Le,a9 as Oe,a5 as Me,aU as ze,ce as Ae}from"./U9jJmfYa.js";import{f as Ve}from"./FzlZUztb.js";import"./DCRuihKm.js";import{l as ye,d as Ie,M as Ue,c as C}from"./fiz8N_zQ.js";import"./QeBH-DWE.js";var Be=de("<!> <!> <!> <!> <!> <!>",1),He=de("<span><!></span>"),Ne=de("<!> <!>",1);function je(ge,r){if(new.target)return be({component:je,...ge});xe(r,!0);const fe=e=>{var h=Be(),M=c(h);{var se=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return We},get checked(){return X()},closeOnSelect:!1,get onCheckedChange(){return Y()},children:(f,L)=>{S();var l=T();P(()=>k(l,R())),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(M,t=>{Q()&&t(se)})}var z=E(M,2);{var D=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Le},get checked(){return $()},closeOnSelect:!1,get onCheckedChange(){return ee()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_allFilesExpanded_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(z,t=>{Z()&&t(D)})}var le=E(z,2);{var A=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Oe},get checked(){return y()},closeOnSelect:!1,get onCheckedChange(){return I()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_foldUnchanged_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(le,t=>{V()&&t(A)})}var F=E(le,2);{var oe=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Me},get checked(){return B()},closeOnSelect:!1,get onCheckedChange(){return H()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_wrapLines_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(F,t=>{U()&&t(oe)})}var x=E(F,2);{var b=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return ze},get checked(){return j()},closeOnSelect:!1,get onCheckedChange(){return q()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_splitView_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(x,t=>{N()&&t(b)})}var p=E(x,2);{var W=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Ae},get checked(){return J()},closeOnSelect:!1,get onCheckedChange(){return K()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_diffIndicators_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(p,t=>{G()&&t(W)})}o(e,h)};let V=a(r,"showFold",7,!0),y=a(r,"foldEnabled",7,!1),I=a(r,"onToggleFold",7),U=a(r,"showWrap",7,!0),B=a(r,"wrapEnabled",7,!1),H=a(r,"onToggleWrap",7),N=a(r,"showSplit",7,!0),j=a(r,"splitEnabled",7,!1),q=a(r,"onToggleSplit",7),G=a(r,"showDiff",7,!1),J=a(r,"diffEnabled",7,!1),K=a(r,"onToggleDiff",7),Q=a(r,"showPreview",7,!1),R=a(r,"previewLabel",23,()=>u.ui_viewSettings_markdownPreview_label()),X=a(r,"previewEnabled",7,!1),Y=a(r,"onTogglePreview",7),Z=a(r,"showExpand",7,!1),$=a(r,"expanded",7,!1),ee=a(r,"onToggleExpand",7),te=a(r,"class",7,""),re=a(r,"size",7,"xs"),ae=a(r,"embedded",7,!1),ne=ke(!1);const ce={xs:"icon-xs",sm:"icon-sm",md:"icon"};var _e={get showFold(){return V()},set showFold(e=!0){V(e),n()},get foldEnabled(){return y()},set foldEnabled(e=!1){y(e),n()},get onToggleFold(){return I()},set onToggleFold(e){I(e),n()},get showWrap(){return U()},set showWrap(e=!0){U(e),n()},get wrapEnabled(){return B()},set wrapEnabled(e=!1){B(e),n()},get onToggleWrap(){return H()},set onToggleWrap(e){H(e),n()},get showSplit(){return N()},set showSplit(e=!0){N(e),n()},get splitEnabled(){return j()},set splitEnabled(e=!1){j(e),n()},get onToggleSplit(){return q()},set onToggleSplit(e){q(e),n()},get showDiff(){return G()},set showDiff(e=!1){G(e),n()},get diffEnabled(){return J()},set diffEnabled(e=!1){J(e),n()},get onToggleDiff(){return K()},set onToggleDiff(e){K(e),n()},get showPreview(){return Q()},set showPreview(e=!1){Q(e),n()},get previewLabel(){return R()},set previewLabel(e=u.ui_viewSettings_markdownPreview_label()){R(e),n()},get previewEnabled(){return X()},set previewEnabled(e=!1){X(e),n()},get onTogglePreview(){return Y()},set onTogglePreview(e){Y(e),n()},get showExpand(){return Z()},set showExpand(e=!1){Z(e),n()},get expanded(){return $()},set expanded(e=!1){$(e),n()},get onToggleExpand(){return ee()},set onToggleExpand(e){ee(e),n()},get class(){return te()},set class(e=""){te(e),n()},get size(){return re()},set size(e="xs"){re(e),n()},get embedded(){return ae()},set embedded(e=!1){ae(e),n()},$set:pe,$on:(e,h)=>me(r,e,h)},ue=w(),ve=c(ue);{var we=e=>{fe(e)},he=e=>{var h=w(),M=c(h);v(M,()=>Ue,(se,z)=>{z(se,{get open(){return O(ne)},set open(D){Se(ne,D,!0)},children:(D,le)=>{var A=Ne(),F=c(A);{const x=(b,p)=>{let W=()=>(p?.()).props;var t=He();Ce(t,()=>({class:"contents",...W()}));var s=Te(t);{let i=ie(()=>u.ui_viewSettings_trigger_tooltip()),d=ie(()=>u.ui_viewSettings_trigger_tooltip());Ve(s,{variant:"ghost-light",get size(){return ce[re()]},get tooltip(){return O(i)},tooltipSide:"bottom",get"aria-label"(){return O(d)},get"aria-expanded"(){return O(ne)},get class(){return te()},"data-testid":"view-settings-trigger",children:(g,f)=>{De(g,{get icon(){return Fe},size:"xs"})},$$slots:{default:!0}})}Pe(t),o(b,t)};v(F,()=>ye,(b,p)=>{p(b,{child:x,$$slots:{child:!0}})})}var oe=E(F,2);{let x=ie(()=>u.ui_dropdownMenu_ariaLabel());v(oe,()=>Ie,(b,p)=>{p(b,{align:"end",class:"w-56 p-3!",get"aria-label"(){return O(x)},children:(W,t)=>{fe(W)},$$slots:{default:!0}})})}o(D,A)},$$slots:{default:!0}})}),o(e,h)};m(ve,e=>{ae()?e(we):e(he,-1)})}return o(ge,ue),Ee(_e)}export{je as V};
1
+ import{t as be,bo as a,bm as u,bw as pe,b as me}from"./C0QTy0Sy.js";import{bs as xe,a7 as w,ay as c,W as o,bn as Ee,aA as n,bS as E,aD as O,bH as Se,a5 as Te,bA as Pe,c9 as ie,aB as de,bV as ke,be as S,b$ as T,b_ as P,bO as k}from"./3SdAC2_C.js";import{i as m}from"./bhKPSdq4.js";import{c as v}from"./CUkDMZwP.js";import{b as Ce}from"./7UPrdiE9.js";import{F as De,cA as Fe,be as We,ab as Le,a9 as Oe,a5 as Me,aU as ze,ce as Ae}from"./U9jJmfYa.js";import{f as Ve}from"./CttA-M7l.js";import"./C2jYl_tm.js";import{l as ye,d as Ie,M as Ue,c as C}from"./DCL0Px6m.js";import"./Dhy-QJgd.js";var Be=de("<!> <!> <!> <!> <!> <!>",1),He=de("<span><!></span>"),Ne=de("<!> <!>",1);function je(ge,r){if(new.target)return be({component:je,...ge});xe(r,!0);const fe=e=>{var h=Be(),M=c(h);{var se=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return We},get checked(){return X()},closeOnSelect:!1,get onCheckedChange(){return Y()},children:(f,L)=>{S();var l=T();P(()=>k(l,R())),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(M,t=>{Q()&&t(se)})}var z=E(M,2);{var D=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Le},get checked(){return $()},closeOnSelect:!1,get onCheckedChange(){return ee()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_allFilesExpanded_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(z,t=>{Z()&&t(D)})}var le=E(z,2);{var A=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Oe},get checked(){return y()},closeOnSelect:!1,get onCheckedChange(){return I()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_foldUnchanged_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(le,t=>{V()&&t(A)})}var F=E(le,2);{var oe=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Me},get checked(){return B()},closeOnSelect:!1,get onCheckedChange(){return H()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_wrapLines_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(F,t=>{U()&&t(oe)})}var x=E(F,2);{var b=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return ze},get checked(){return j()},closeOnSelect:!1,get onCheckedChange(){return q()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_splitView_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(x,t=>{N()&&t(b)})}var p=E(x,2);{var W=t=>{var s=w(),i=c(s);v(i,()=>C,(d,g)=>{g(d,{indicator:"switch",get icon(){return Ae},get checked(){return J()},closeOnSelect:!1,get onCheckedChange(){return K()},children:(f,L)=>{S();var l=T();P(_=>k(l,_),[()=>u.ui_viewSettings_diffIndicators_label()]),o(f,l)},$$slots:{default:!0}})}),o(t,s)};m(p,t=>{G()&&t(W)})}o(e,h)};let V=a(r,"showFold",7,!0),y=a(r,"foldEnabled",7,!1),I=a(r,"onToggleFold",7),U=a(r,"showWrap",7,!0),B=a(r,"wrapEnabled",7,!1),H=a(r,"onToggleWrap",7),N=a(r,"showSplit",7,!0),j=a(r,"splitEnabled",7,!1),q=a(r,"onToggleSplit",7),G=a(r,"showDiff",7,!1),J=a(r,"diffEnabled",7,!1),K=a(r,"onToggleDiff",7),Q=a(r,"showPreview",7,!1),R=a(r,"previewLabel",23,()=>u.ui_viewSettings_markdownPreview_label()),X=a(r,"previewEnabled",7,!1),Y=a(r,"onTogglePreview",7),Z=a(r,"showExpand",7,!1),$=a(r,"expanded",7,!1),ee=a(r,"onToggleExpand",7),te=a(r,"class",7,""),re=a(r,"size",7,"xs"),ae=a(r,"embedded",7,!1),ne=ke(!1);const ce={xs:"icon-xs",sm:"icon-sm",md:"icon"};var _e={get showFold(){return V()},set showFold(e=!0){V(e),n()},get foldEnabled(){return y()},set foldEnabled(e=!1){y(e),n()},get onToggleFold(){return I()},set onToggleFold(e){I(e),n()},get showWrap(){return U()},set showWrap(e=!0){U(e),n()},get wrapEnabled(){return B()},set wrapEnabled(e=!1){B(e),n()},get onToggleWrap(){return H()},set onToggleWrap(e){H(e),n()},get showSplit(){return N()},set showSplit(e=!0){N(e),n()},get splitEnabled(){return j()},set splitEnabled(e=!1){j(e),n()},get onToggleSplit(){return q()},set onToggleSplit(e){q(e),n()},get showDiff(){return G()},set showDiff(e=!1){G(e),n()},get diffEnabled(){return J()},set diffEnabled(e=!1){J(e),n()},get onToggleDiff(){return K()},set onToggleDiff(e){K(e),n()},get showPreview(){return Q()},set showPreview(e=!1){Q(e),n()},get previewLabel(){return R()},set previewLabel(e=u.ui_viewSettings_markdownPreview_label()){R(e),n()},get previewEnabled(){return X()},set previewEnabled(e=!1){X(e),n()},get onTogglePreview(){return Y()},set onTogglePreview(e){Y(e),n()},get showExpand(){return Z()},set showExpand(e=!1){Z(e),n()},get expanded(){return $()},set expanded(e=!1){$(e),n()},get onToggleExpand(){return ee()},set onToggleExpand(e){ee(e),n()},get class(){return te()},set class(e=""){te(e),n()},get size(){return re()},set size(e="xs"){re(e),n()},get embedded(){return ae()},set embedded(e=!1){ae(e),n()},$set:pe,$on:(e,h)=>me(r,e,h)},ue=w(),ve=c(ue);{var we=e=>{fe(e)},he=e=>{var h=w(),M=c(h);v(M,()=>Ue,(se,z)=>{z(se,{get open(){return O(ne)},set open(D){Se(ne,D,!0)},children:(D,le)=>{var A=Ne(),F=c(A);{const x=(b,p)=>{let W=()=>(p?.()).props;var t=He();Ce(t,()=>({class:"contents",...W()}));var s=Te(t);{let i=ie(()=>u.ui_viewSettings_trigger_tooltip()),d=ie(()=>u.ui_viewSettings_trigger_tooltip());Ve(s,{variant:"ghost-light",get size(){return ce[re()]},get tooltip(){return O(i)},tooltipSide:"bottom",get"aria-label"(){return O(d)},get"aria-expanded"(){return O(ne)},get class(){return te()},"data-testid":"view-settings-trigger",children:(g,f)=>{De(g,{get icon(){return Fe},size:"xs"})},$$slots:{default:!0}})}Pe(t),o(b,t)};v(F,()=>ye,(b,p)=>{p(b,{child:x,$$slots:{child:!0}})})}var oe=E(F,2);{let x=ie(()=>u.ui_dropdownMenu_ariaLabel());v(oe,()=>Ie,(b,p)=>{p(b,{align:"end",class:"w-56 p-3!",get"aria-label"(){return O(x)},children:(W,t)=>{fe(W)},$$slots:{default:!0}})})}o(D,A)},$$slots:{default:!0}})}),o(e,h)};m(ve,e=>{ae()?e(we):e(he,-1)})}return o(ge,ue),Ee(_e)}export{je as V};