@intent-hq/web 2.332.1 → 2.334.0

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 (276) hide show
  1. package/package.json +1 -1
  2. package/web/app/immutable/chunks/{D3hH9rNi.js → 03PfIO_9.js} +1 -1
  3. package/web/app/immutable/chunks/{MbWbx059.js → 072Tb_6D.js} +1 -1
  4. package/web/app/immutable/chunks/{BeZwt05v.js → 1N54IjFy.js} +1 -1
  5. package/web/app/immutable/chunks/{dpdLxO6f.js → 2J-nekl4.js} +3 -3
  6. package/web/app/immutable/chunks/{DivUGPVj.js → 2cP0f-ZS.js} +1 -1
  7. package/web/app/immutable/chunks/{D5BJwiCX.js → 35OKERyz.js} +3 -3
  8. package/web/app/immutable/chunks/{BwEg66U_.js → 4AVTvQlm.js} +1 -1
  9. package/web/app/immutable/chunks/{B832GCAy.js → 4doVsrTt.js} +1 -1
  10. package/web/app/immutable/chunks/{D3zprjIo.js → 5gyILap3.js} +1 -1
  11. package/web/app/immutable/chunks/{CsBfHq3z.js → 71wna1Z8.js} +1 -1
  12. package/web/app/immutable/chunks/{BTdEOciU.js → 7AKPDTqy.js} +1 -1
  13. package/web/app/immutable/chunks/{DCmZzs_t.js → 8ZRaDoDY.js} +1 -1
  14. package/web/app/immutable/chunks/{CKywtFzw.js → 9oNS7b_T.js} +1 -1
  15. package/web/app/immutable/chunks/{BSQNx4Vk.js → AMK506zb.js} +1 -1
  16. package/web/app/immutable/chunks/{HSKzTsh4.js → Az9OQ8Pw.js} +1 -1
  17. package/web/app/immutable/chunks/{BAzseDFu.js → B-1pTbth.js} +1 -1
  18. package/web/app/immutable/chunks/{DHj5Vli6.js → B-lr2mEf.js} +1 -1
  19. package/web/app/immutable/chunks/{CYgZakZC.js → B0h3U-Yz.js} +1 -1
  20. package/web/app/immutable/chunks/{Jr_-MnLx.js → B29HdkQh.js} +1 -1
  21. package/web/app/immutable/chunks/{7vJjNlp5.js → B3KrGqdQ.js} +1 -1
  22. package/web/app/immutable/chunks/{BL_9_s5D.js → B3RoFPrI.js} +1 -1
  23. package/web/app/immutable/chunks/{Dtby9LLe.js → B4egTWvZ.js} +1 -1
  24. package/web/app/immutable/chunks/{BlieKkQ9.js → B6KMCDK3.js} +1 -1
  25. package/web/app/immutable/chunks/{ZiiwkTV-.js → B77TCztV.js} +1 -1
  26. package/web/app/immutable/chunks/{CS_bXQRj.js → B7_YNW7R.js} +1 -1
  27. package/web/app/immutable/chunks/{BWcK5t6w.js → B94CMzpV.js} +1 -1
  28. package/web/app/immutable/chunks/{aA6XO7Z6.js → BAOVYkFF.js} +1 -1
  29. package/web/app/immutable/chunks/{CE_FxgNs.js → BAzeccV1.js} +1 -1
  30. package/web/app/immutable/chunks/{DdkKMLjv.js → BBA4Bzbm.js} +1 -1
  31. package/web/app/immutable/chunks/{DD5ISNL6.js → BCGsV37m.js} +1 -1
  32. package/web/app/immutable/chunks/{d6WJXB_G.js → BE3xHJK-.js} +1 -1
  33. package/web/app/immutable/chunks/{L4diC29H.js → BE_5EfDm.js} +4 -4
  34. package/web/app/immutable/chunks/{CdKj5L2M.js → BFBxuHtI.js} +1 -1
  35. package/web/app/immutable/chunks/{BtxhSwaF.js → BHNjUi-M.js} +1 -1
  36. package/web/app/immutable/chunks/{9WOIFXVq.js → BHVl-WA3.js} +1 -1
  37. package/web/app/immutable/chunks/{B9Yp_9YB.js → BHvVwiFl.js} +1 -1
  38. package/web/app/immutable/chunks/{BLMF5IFF.js → BIvp5Tt2.js} +1 -1
  39. package/web/app/immutable/chunks/{CKDHxXsq.js → BJOBGHF6.js} +1 -1
  40. package/web/app/immutable/chunks/{Df2kEBtG.js → BMFAZxzl.js} +1 -1
  41. package/web/app/immutable/chunks/{GLVkpxmO.js → BMMqOSaL.js} +1 -1
  42. package/web/app/immutable/chunks/{DJ54sSxs.js → BNcmjmX0.js} +1 -1
  43. package/web/app/immutable/chunks/{RnZH5q_1.js → BNhmUsaA.js} +1 -1
  44. package/web/app/immutable/chunks/BRJ8JwtZ.js +2 -0
  45. package/web/app/immutable/chunks/{B2Iig513.js → BW9zdIKM.js} +1 -1
  46. package/web/app/immutable/chunks/{BUxvwYCZ.js → BWLkc8Du.js} +1 -1
  47. package/web/app/immutable/chunks/{CpxAEr5T.js → BY2EZOH5.js} +1 -1
  48. package/web/app/immutable/chunks/{CI8cTsXC.js → BYS_XVzS.js} +1 -1
  49. package/web/app/immutable/chunks/{EnAyz2Ek.js → B_sZwi21.js} +1 -1
  50. package/web/app/immutable/chunks/{CqCOQpit.js → BaeUp1de.js} +1 -1
  51. package/web/app/immutable/chunks/{Rni3zXxR.js → BcRUrG7V.js} +1 -1
  52. package/web/app/immutable/chunks/{Dz_Si7JX.js → BcvgmgBl.js} +1 -1
  53. package/web/app/immutable/chunks/{CoMudm58.js → Bd-UWJsU.js} +1 -1
  54. package/web/app/immutable/chunks/{BaodgUOU.js → BdYPHOrS.js} +1 -1
  55. package/web/app/immutable/chunks/{DY2uGuix.js → Bdtl8KA4.js} +1 -1
  56. package/web/app/immutable/chunks/{a_UT53Db.js → BduWPjcR.js} +1 -1
  57. package/web/app/immutable/chunks/BeA8kzlg.js +1 -0
  58. package/web/app/immutable/chunks/{CglC4HOM.js → BfDRfZ1x.js} +1 -1
  59. package/web/app/immutable/chunks/{CHyKyUzM.js → BfNeIJAh.js} +1 -1
  60. package/web/app/immutable/chunks/{DytZzUZT.js → BfiKUtfz.js} +1 -1
  61. package/web/app/immutable/chunks/{XP2gV3S1.js → BiRCgfI8.js} +1 -1
  62. package/web/app/immutable/chunks/{NoEKF6rx.js → BjWMcF7P.js} +1 -1
  63. package/web/app/immutable/chunks/{CH1kO0eh.js → BjdHDlxK.js} +1 -1
  64. package/web/app/immutable/chunks/{9yLYut_f.js → Bmyv2TKf.js} +1 -1
  65. package/web/app/immutable/chunks/{xbz74Y37.js → Bobasviv.js} +1 -1
  66. package/web/app/immutable/chunks/Bp1o3thS.js +1 -0
  67. package/web/app/immutable/chunks/{BwHfUkOf.js → BpidAqRA.js} +6 -6
  68. package/web/app/immutable/chunks/{DmihuZfS.js → BpnwXy6U.js} +1 -1
  69. package/web/app/immutable/chunks/{C9KtSy8M.js → BrK9k8X4.js} +1 -1
  70. package/web/app/immutable/chunks/{C0Tvtwp-.js → BsYAGCCJ.js} +1 -1
  71. package/web/app/immutable/chunks/{CMQoknXV.js → BsbCFjWI.js} +1 -1
  72. package/web/app/immutable/chunks/{Ci37X5fE.js → BuCbZihK.js} +2 -2
  73. package/web/app/immutable/chunks/{zVHvgElF.js → BuEytmbB.js} +1 -1
  74. package/web/app/immutable/chunks/{5BjH__qw.js → BuNYZSRv.js} +1 -1
  75. package/web/app/immutable/chunks/{BYJTJW1o.js → BuxSPewv.js} +1 -1
  76. package/web/app/immutable/chunks/{wYgYMVXC.js → Bv6lXJbF.js} +1 -1
  77. package/web/app/immutable/chunks/{Dr8wriKt.js → Bvt4TKMh.js} +1 -1
  78. package/web/app/immutable/chunks/{BMla283I.js → Bxd9OUMD.js} +1 -1
  79. package/web/app/immutable/chunks/{Bielx7or.js → BzOameBd.js} +1 -1
  80. package/web/app/immutable/chunks/{DsAgoq4e.js → C-tVLzji.js} +1 -1
  81. package/web/app/immutable/chunks/{D76tmIP3.js → C1MSnWt8.js} +1 -1
  82. package/web/app/immutable/chunks/{CkMfCuzz.js → C1ZTS4Sh.js} +1 -1
  83. package/web/app/immutable/chunks/{BsWB9YpI.js → C3KFiFcK.js} +1 -1
  84. package/web/app/immutable/chunks/{hgJz-lxL.js → C4RucMn0.js} +1 -1
  85. package/web/app/immutable/chunks/{C9IQsGTN.js → C5vuxPIj.js} +1 -1
  86. package/web/app/immutable/chunks/{CpMi3Pqw.js → C7Fm8r7x.js} +1 -1
  87. package/web/app/immutable/chunks/{Z2NV50FD.js → C7Ro1E0r.js} +1 -1
  88. package/web/app/immutable/chunks/C7wbrsvU.js +1 -0
  89. package/web/app/immutable/chunks/{HcYBxKPc.js → CArqGgyL.js} +1 -1
  90. package/web/app/immutable/chunks/{BaUPC41p.js → CBC7YFdV.js} +1 -1
  91. package/web/app/immutable/chunks/{D6dlkp5M.js → CCGEGA0G.js} +1 -1
  92. package/web/app/immutable/chunks/CCPn5VZR.js +1 -0
  93. package/web/app/immutable/chunks/{D3E9Lwsk.js → CDSwBgYD.js} +1 -1
  94. package/web/app/immutable/chunks/{Bi2Qf6lk.js → CESOOiWP.js} +1 -1
  95. package/web/app/immutable/chunks/{EZSy0A04.js → CEboTiDi.js} +3 -3
  96. package/web/app/immutable/chunks/{DDNd0tnm.js → CFS-CWu3.js} +1 -1
  97. package/web/app/immutable/chunks/{CM28_vQq.js → CGVLIZz9.js} +1 -1
  98. package/web/app/immutable/chunks/{C7eDW7UL.js → CGiCL1Ov.js} +1 -1
  99. package/web/app/immutable/chunks/{ChNKlZtm.js → CIqnL4UD.js} +1 -1
  100. package/web/app/immutable/chunks/{CdgAiqh6.js → CJB7cvC2.js} +1 -1
  101. package/web/app/immutable/chunks/{CeOYgNbD.js → CKJpktTE.js} +1 -1
  102. package/web/app/immutable/chunks/{D7VyNuwA.js → CKrDMmMA.js} +1 -1
  103. package/web/app/immutable/chunks/{BRWLc5hQ.js → CMOnvdXp.js} +1 -1
  104. package/web/app/immutable/chunks/{CA4-dLAB.js → CMpcqAa4.js} +3 -3
  105. package/web/app/immutable/chunks/{CYp2pkXV.js → CO7hmy56.js} +1 -1
  106. package/web/app/immutable/chunks/{DgtU93Ce.js → CP_jYxTi.js} +1 -1
  107. package/web/app/immutable/chunks/{u6FKwXpA.js → CRLRbkCn.js} +1 -1
  108. package/web/app/immutable/chunks/{B8OTnzCv.js → CSSojjBG.js} +1 -1
  109. package/web/app/immutable/chunks/{BCJxSao_.js → CWYYinAo.js} +1 -1
  110. package/web/app/immutable/chunks/{fUxAhSKl.js → CXKfuiUF.js} +1 -1
  111. package/web/app/immutable/chunks/{BpePMNve.js → CXzbClP6.js} +1 -1
  112. package/web/app/immutable/chunks/{DgyZN5lH.js → CYttmgAy.js} +2 -2
  113. package/web/app/immutable/chunks/CZ_kVWbN.js +4 -0
  114. package/web/app/immutable/chunks/{NrjxMz2i.js → CZnrzyHp.js} +1 -1
  115. package/web/app/immutable/chunks/{XBT2FDUw.js → CfwVmHCf.js} +1 -1
  116. package/web/app/immutable/chunks/{DBZdNxOK.js → CgWmg0h0.js} +1 -1
  117. package/web/app/immutable/chunks/{Bmwe3v73.js → CiQ6prZ_.js} +1 -1
  118. package/web/app/immutable/chunks/{C2NjZei7.js → Ci__OGHt.js} +1 -1
  119. package/web/app/immutable/chunks/{CHqSpAhM.js → Cil-vK29.js} +1 -1
  120. package/web/app/immutable/chunks/{C0mowKhJ.js → CiqS40z1.js} +1 -1
  121. package/web/app/immutable/chunks/{CHz9NPSg.js → CjijEKrk.js} +1 -1
  122. package/web/app/immutable/chunks/{BRfIKJVK.js → Ckt4hpBJ.js} +1 -1
  123. package/web/app/immutable/chunks/{NpJ_H_lL.js → Cl-7Au8R.js} +1 -1
  124. package/web/app/immutable/chunks/{Zi02dDqY.js → ClZsJ0tq.js} +1 -1
  125. package/web/app/immutable/chunks/{FgsGgOBB.js → Cn1E5b8h.js} +1 -1
  126. package/web/app/immutable/chunks/{BEdXc2Cn.js → CnMdEUN9.js} +1 -1
  127. package/web/app/immutable/chunks/{wAlzdqKW.js → Co38dt7I.js} +1 -1
  128. package/web/app/immutable/chunks/{DUj2SOU7.js → CoVAqVcd.js} +1 -1
  129. package/web/app/immutable/chunks/{AMuVbvNH.js → Csi1v0mQ.js} +1 -1
  130. package/web/app/immutable/chunks/{eO-TU1Uq.js → CuXSY9SQ.js} +2 -2
  131. package/web/app/immutable/chunks/{D0WfEFI8.js → CwKaV1IY.js} +1 -1
  132. package/web/app/immutable/chunks/{DsX0vSiK.js → CwMAKc0Q.js} +1 -1
  133. package/web/app/immutable/chunks/{wF4KE5sw.js → CwMqpcMm.js} +1 -1
  134. package/web/app/immutable/chunks/{BL5Rh4Sz.js → CwakGbfV.js} +1 -1
  135. package/web/app/immutable/chunks/{CCXE6oHN.js → CwiXEybf.js} +1 -1
  136. package/web/app/immutable/chunks/{BPe3vmZW.js → Cxbk0QV6.js} +1 -1
  137. package/web/app/immutable/chunks/{jyWTS4lZ.js → D-JSvqq2.js} +2 -2
  138. package/web/app/immutable/chunks/{CLMPxb4p.js → D-Uzg_w_.js} +1 -1
  139. package/web/app/immutable/chunks/{1bpiYpBu.js → D-v3doGL.js} +1 -1
  140. package/web/app/immutable/chunks/{BKjGGpm1.js → D0BUPqIH.js} +4 -4
  141. package/web/app/immutable/chunks/{C1dnD04C.js → D0Nn2MSZ.js} +43 -43
  142. package/web/app/immutable/chunks/{01VYey36.js → D2laB2lQ.js} +1 -1
  143. package/web/app/immutable/chunks/{DYXF8P9g.js → D3DGxoeO.js} +1 -1
  144. package/web/app/immutable/chunks/{BmIdlkCY.js → D8UOq-cZ.js} +1 -1
  145. package/web/app/immutable/chunks/D9wogWMJ.js +1 -0
  146. package/web/app/immutable/chunks/{D-Mv0NgR.js → DAGiwOmW.js} +1 -1
  147. package/web/app/immutable/chunks/{DxhV3A5f.js → DANuQK8j.js} +1 -1
  148. package/web/app/immutable/chunks/{B6SFcGZ4.js → DAxsY0Gj.js} +1 -1
  149. package/web/app/immutable/chunks/DCCFERAn.js +1 -0
  150. package/web/app/immutable/chunks/{Ct1y2X3-.js → DCD7Mz5K.js} +1 -1
  151. package/web/app/immutable/chunks/{BRc8KqQS.js → DDRhcF_8.js} +1 -1
  152. package/web/app/immutable/chunks/{BzOYno2y.js → DF71nvkU.js} +1 -1
  153. package/web/app/immutable/chunks/{BCR36ulI.js → DGUKdi7i.js} +1 -1
  154. package/web/app/immutable/chunks/{DgqSfEsd.js → DGcTdGo8.js} +2 -2
  155. package/web/app/immutable/chunks/{D-0JsOoD.js → DJQSxFj4.js} +1 -1
  156. package/web/app/immutable/chunks/{CYBP2kAe.js → DKNnPYeR.js} +1 -1
  157. package/web/app/immutable/chunks/{Cqn-1YSM.js → DKf1LSfP.js} +1 -1
  158. package/web/app/immutable/chunks/{quL6pHxK.js → DLtIqvYl.js} +2 -2
  159. package/web/app/immutable/chunks/{BdorRWAe.js → DMHPeP9b.js} +1 -1
  160. package/web/app/immutable/chunks/{1N4-_XNd.js → DMW_Ogh_.js} +1 -1
  161. package/web/app/immutable/chunks/{CInI0Sus.js → DNEb71Dh.js} +1 -1
  162. package/web/app/immutable/chunks/DVNTCHDs.js +1 -0
  163. package/web/app/immutable/chunks/{Qj93naoS.js → DVTVoVn3.js} +1 -1
  164. package/web/app/immutable/chunks/{BA5tpMka.js → DVWbUaqE.js} +2 -2
  165. package/web/app/immutable/chunks/{Pd9lmiP5.js → DWLCZ9bk.js} +1 -1
  166. package/web/app/immutable/chunks/{DQa6YuyW.js → DXNrmOAj.js} +1 -1
  167. package/web/app/immutable/chunks/{DLI1aSNH.js → DXO_adPf.js} +1 -1
  168. package/web/app/immutable/chunks/{Dl-ybQ3z.js → DZTtqmYJ.js} +1 -1
  169. package/web/app/immutable/chunks/{CQ-f-CXn.js → D_i6tc5B.js} +1 -1
  170. package/web/app/immutable/chunks/{DQhpCQ8x.js → DbWOkCcI.js} +1 -1
  171. package/web/app/immutable/chunks/{uU0UH-Q4.js → DcZ6Y3e4.js} +1 -1
  172. package/web/app/immutable/chunks/DdWD_Vv3.js +1 -0
  173. package/web/app/immutable/chunks/{BQypG4-Z.js → Df-CfLbF.js} +1 -1
  174. package/web/app/immutable/chunks/{R4bwBwT_.js → DfBE7crq.js} +1 -1
  175. package/web/app/immutable/chunks/{7ts4wsuO.js → DhSqfFgd.js} +1 -1
  176. package/web/app/immutable/chunks/{CNf_ONa3.js → DiUyyFSb.js} +1 -1
  177. package/web/app/immutable/chunks/{BkMLj_bt.js → Diees_tN.js} +1 -1
  178. package/web/app/immutable/chunks/{DenVKqrV.js → Dk1_0x0Q.js} +1 -1
  179. package/web/app/immutable/chunks/{bbeE_6so.js → DkPqbYEN.js} +1 -1
  180. package/web/app/immutable/chunks/{D10X859N.js → DqdGC4dy.js} +1 -1
  181. package/web/app/immutable/chunks/Dso1_H3c.js +1 -0
  182. package/web/app/immutable/chunks/{nhnbx7C0.js → DuD0elPz.js} +1 -1
  183. package/web/app/immutable/chunks/{DegFSSpo.js → DvQkR2Is.js} +1 -1
  184. package/web/app/immutable/chunks/{C2aaRYxm.js → DwLudbcs.js} +1 -1
  185. package/web/app/immutable/chunks/{DBwqw4Qu.js → DxFUSFjo.js} +1 -1
  186. package/web/app/immutable/chunks/{BnXfq0KH.js → DxGil5MD.js} +1 -1
  187. package/web/app/immutable/chunks/{CmtNfm_M.js → DxHHBDex.js} +1 -1
  188. package/web/app/immutable/chunks/{CY6Ad305.js → DyEA97Ij.js} +1 -1
  189. package/web/app/immutable/chunks/{DEL8D3D_.js → DySSBJC4.js} +1 -1
  190. package/web/app/immutable/chunks/{CR7cFb79.js → DyrELBv-.js} +1 -1
  191. package/web/app/immutable/chunks/{BOXppFhx.js → Dzg-ll0I.js} +1 -1
  192. package/web/app/immutable/chunks/{C0y0G1dd.js → DziBVnxJ.js} +3 -3
  193. package/web/app/immutable/chunks/{DRFOuvia.js → FEnI6pqw.js} +1 -1
  194. package/web/app/immutable/chunks/{idgVmMSO.js → G3lcIaVb.js} +1 -1
  195. package/web/app/immutable/chunks/{DX0DDRCM.js → GY5YfSD1.js} +1 -1
  196. package/web/app/immutable/chunks/{Cq9yywqY.js → H6rH-O5e.js} +1 -1
  197. package/web/app/immutable/chunks/{BFLeHPtB.js → HZf189bi.js} +1 -1
  198. package/web/app/immutable/chunks/{Dsnfh8nl.js → HjTnEK4j.js} +1 -1
  199. package/web/app/immutable/chunks/{Cyv_QpXG.js → MCnrQrjH.js} +1 -1
  200. package/web/app/immutable/chunks/{La4DuXBq.js → MItv5vwZ.js} +1 -1
  201. package/web/app/immutable/chunks/{INGceerY.js → N6ccAT9m.js} +3 -3
  202. package/web/app/immutable/chunks/{IqoI0Sop.js → Ossh6uZu.js} +1 -1
  203. package/web/app/immutable/chunks/{B8vvVbvT.js → PA5tKchu.js} +1 -1
  204. package/web/app/immutable/chunks/{Ck4zrPgL.js → Qk-BsDf0.js} +1 -1
  205. package/web/app/immutable/chunks/{IjAEhEd_.js → RlWPb-l5.js} +1 -1
  206. package/web/app/immutable/chunks/{ClRyDWdo.js → SpNk3-qf.js} +2 -2
  207. package/web/app/immutable/chunks/{CFF4_0hC.js → T2yA2AgY.js} +2 -2
  208. package/web/app/immutable/chunks/{IlWp1nGl.js → Ug0dtdu2.js} +4 -4
  209. package/web/app/immutable/chunks/{uc0NJTBD.js → VLZW5k04.js} +1 -1
  210. package/web/app/immutable/chunks/{9REiaz4P.js → Wjuib0ag.js} +1 -1
  211. package/web/app/immutable/chunks/{DbZHCFkf.js → YkXzGZ8n.js} +1 -1
  212. package/web/app/immutable/chunks/{3ol3wj0q.js → Z1K5P4U2.js} +1 -1
  213. package/web/app/immutable/chunks/{CF-5Z7Xo.js → ayrFAfGH.js} +1 -1
  214. package/web/app/immutable/chunks/{BB1bdkKj.js → dLK087oD.js} +1 -1
  215. package/web/app/immutable/chunks/{vEgCNzPn.js → f7LaE2V_.js} +4 -4
  216. package/web/app/immutable/chunks/{ShdiMoFn.js → fJUF_fJi.js} +1 -1
  217. package/web/app/immutable/chunks/{Cc05Arx_.js → fOffirGV.js} +1 -1
  218. package/web/app/immutable/chunks/{B4CT3ZnO.js → gVcm9LZ1.js} +1 -1
  219. package/web/app/immutable/chunks/{rz6OBXp5.js → jrcipDnr.js} +1 -1
  220. package/web/app/immutable/chunks/{OtDorjRa.js → k3FE0FJZ.js} +1 -1
  221. package/web/app/immutable/chunks/{DTmn8xTR.js → l8UFOWir.js} +3 -3
  222. package/web/app/immutable/chunks/{g2VxMEGm.js → m2BK1mVX.js} +1 -1
  223. package/web/app/immutable/chunks/m5UczIQR.js +18 -0
  224. package/web/app/immutable/chunks/{Cc3p9mKN.js → mdduA0pr.js} +1 -1
  225. package/web/app/immutable/chunks/{BKpbFIyR.js → nd4329YU.js} +1 -1
  226. package/web/app/immutable/chunks/{DHO1UrQa.js → oJD7n1Ce.js} +1 -1
  227. package/web/app/immutable/chunks/{7usnYPNF.js → rNW14wgI.js} +1 -1
  228. package/web/app/immutable/chunks/{CSAk4qZa.js → sT0KaY62.js} +1 -1
  229. package/web/app/immutable/chunks/{rExovR4J.js → t1ZWo-I1.js} +1 -1
  230. package/web/app/immutable/chunks/{tE5q5HcJ.js → tO-hey33.js} +1 -1
  231. package/web/app/immutable/chunks/{nUyY273s.js → td5hg6sa.js} +1 -1
  232. package/web/app/immutable/chunks/{DvT1AhIX.js → tj2YkYbp.js} +1 -1
  233. package/web/app/immutable/chunks/{phDOGC4e.js → wP6HsJDJ.js} +1 -1
  234. package/web/app/immutable/chunks/{-vn0_Dx_.js → wylA95cI.js} +1 -1
  235. package/web/app/immutable/chunks/{DO_AuT0X.js → xD874lNR.js} +2 -2
  236. package/web/app/immutable/chunks/{DjiG1aj4.js → xTKdEUQT.js} +1 -1
  237. package/web/app/immutable/chunks/{DB6X5Jmb.js → zP9pbpMh.js} +1 -1
  238. package/web/app/immutable/chunks/{BqzIXvAg.js → zobwBhBP.js} +1 -1
  239. package/web/app/immutable/entry/{app.Btk0VZWt.js → app.DzJavKOz.js} +3 -3
  240. package/web/app/immutable/entry/start.D3-DqMWL.js +1 -0
  241. package/web/app/immutable/nodes/{0.0HFA2uVE.js → 0.DwHYAcJA.js} +1 -1
  242. package/web/app/immutable/nodes/{1.CZQtUsls.js → 1.CNlxk-Wb.js} +1 -1
  243. package/web/app/immutable/nodes/{10.MP2WoiSH.js → 10.Bnp8Ru15.js} +1 -1
  244. package/web/app/immutable/nodes/{11.v3TvfIzF.js → 11.CVezrggv.js} +1 -1
  245. package/web/app/immutable/nodes/{12.DU8-Nmz-.js → 12.BPw8mLRI.js} +1 -1
  246. package/web/app/immutable/nodes/{13.pNrv4shY.js → 13.DEB8Wg7Z.js} +3 -3
  247. package/web/app/immutable/nodes/{14.C9nz_rbo.js → 14.C5EP7pij.js} +1 -1
  248. package/web/app/immutable/nodes/{15.DBMm4pyM.js → 15.FeIesTUd.js} +1 -1
  249. package/web/app/immutable/nodes/{16.ClJoD8WH.js → 16.CxMj36A8.js} +1 -1
  250. package/web/app/immutable/nodes/{17.BIcZRnyp.js → 17.CWgUp0nx.js} +2 -2
  251. package/web/app/immutable/nodes/2.i3va2l-3.js +13 -0
  252. package/web/app/immutable/nodes/{3.Bi5S8K8Z.js → 3.TRZPY3g1.js} +1 -1
  253. package/web/app/immutable/nodes/{4.CtEWydTh.js → 4.Q_cklVfx.js} +1 -1
  254. package/web/app/immutable/nodes/{5.dqwJX5_j.js → 5.DQss9mOg.js} +1 -1
  255. package/web/app/immutable/nodes/{6.D2iLOyko.js → 6.B1fe3H2i.js} +1 -1
  256. package/web/app/immutable/nodes/{7.Ca_BtpTz.js → 7.Bs2GT-JO.js} +1 -1
  257. package/web/app/immutable/nodes/8.Bhi1HY5b.js +14 -0
  258. package/web/app/immutable/nodes/{9.Db1dzGjG.js → 9.BWi2XzAl.js} +5 -5
  259. package/web/app/version.json +1 -1
  260. package/web/generated/paraglide.js +49 -49
  261. package/web/index.html +19 -19
  262. package/web/app/immutable/chunks/-svebp9s.js +0 -18
  263. package/web/app/immutable/chunks/Bap15j_Q.js +0 -4
  264. package/web/app/immutable/chunks/Brb5mMFP.js +0 -1
  265. package/web/app/immutable/chunks/C9Vu0azd.js +0 -1
  266. package/web/app/immutable/chunks/CCbp1hCi.js +0 -1
  267. package/web/app/immutable/chunks/CXgKrD4b.js +0 -1
  268. package/web/app/immutable/chunks/D6WWKWsa.js +0 -2
  269. package/web/app/immutable/chunks/DKDrWyIv.js +0 -1
  270. package/web/app/immutable/chunks/Nzi7bwxO.js +0 -1
  271. package/web/app/immutable/chunks/VIhYvpCH.js +0 -1
  272. package/web/app/immutable/chunks/o1Ob2Zjf.js +0 -1
  273. package/web/app/immutable/chunks/tjb4ezeK.js +0 -1
  274. package/web/app/immutable/entry/start.atGTcU00.js +0 -1
  275. package/web/app/immutable/nodes/2.B3TiYssM.js +0 -13
  276. package/web/app/immutable/nodes/8.BhbuK5L7.js +0 -14
@@ -1 +1 @@
1
- import{D as C}from"./Zi02dDqY.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./CXgKrD4b.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./DYhIMPy1.js";import{G as ue}from"./Brb5mMFP.js";import{u as D}from"./BEdXc2Cn.js";import{a as me}from"./BKjGGpm1.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};
1
+ import{D as C}from"./ClZsJ0tq.js";import{t as re,bq as y,a_ as se,by as ae,b as ne,bo as I}from"./Dso1_H3c.js";import{bs as oe,cb as ie,c5 as le,bH as k,aD as b,a5 as G,bA as q,b_ as R,W as E,bn as ce,bV as W,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as de,aB as P}from"./DYhIMPy1.js";import{G as ue}from"./DCCFERAn.js";import{u as D}from"./CnMdEUN9.js";import{a as me}from"./D0BUPqIH.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,u=t[e];if(u===void 0)return{complete:!1};if(u==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(u==="{"||u==="["){const r=u==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:m})=>m)),g=n.filter(m=>m.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:m})=>m)),_=a.filter(m=>m.group===void 0||v.has(m.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),u=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,u,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),u=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!u.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,u))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Ne(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});oe(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),u=W(null),r=W(0),c="",h,i=!1;ie(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();le(()=>{i&&(w!==h||!p.startsWith(c))&&(k(u,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(u,null):o&&k(u,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(u):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:ae,$on:(o,p)=>ne(e,o,p)},m=Se(),A=G(m);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);q(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=de(),w=H(p);ue(w,()=>b(r),S=>{me(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};se(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return q(m),R(()=>{D(m,"aria-busy",a()),D(m,"data-diagram-streaming",a())}),E(t,m),ce(_)}export{_e as S,Ne as p};
@@ -1 +1 @@
1
- import{k as t}from"./5BjH__qw.js";import"./DYhIMPy1.js";import{bo as n}from"./CXgKrD4b.js";import"./BEdXc2Cn.js";import"./CHyKyUzM.js";import"./-svebp9s.js";import"./ChTqQfQN.js";import"./CpMi3Pqw.js";import"./DenVKqrV.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
1
+ import{k as t}from"./BuNYZSRv.js";import"./DYhIMPy1.js";import{bo as n}from"./Dso1_H3c.js";import"./CnMdEUN9.js";import"./BfNeIJAh.js";import"./m5UczIQR.js";import"./ChTqQfQN.js";import"./C7Fm8r7x.js";import"./Dk1_0x0Q.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
@@ -1 +1 @@
1
- import{t as le,bq as u,a_ as D,by as ce,b as ve}from"./CXgKrD4b.js";import{bs as de,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./DYhIMPy1.js";import{v as X,u as c,n as _e,w as R}from"./BEdXc2Cn.js";import{s as ke}from"./CHyKyUzM.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./NpJ_H_lL.js";import{A as xe}from"./L4diC29H.js";import{s as We}from"./BA5tpMka.js";function ye(W){const{itemCount:a,maxVisible:v,availableWidth:r,surface:s,overlap:b,overflowOverlap:d}=W;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,v)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?W.measureOverflowText(A)-(i>0?d:0):0)<=r)return i}return 0}function Ie(W,a=r=>requestAnimationFrame(r),v=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let d=!1;const _=a(()=>{d=!0,s=void 0;const m=r;r=void 0,W(m)});d||(s=_)},cancel(){s!==void 0&&(v(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(W,a){if(new.target)return le({component:Se,...W});de(a,!0);let v=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),d=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),y=P(void 0),z=P(void 0);const h=x(()=>We[d()]),U=x(()=>s()&&e(z)!==void 0?ye({itemCount:v().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(v().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>v().slice(0,e(Y))),E=x(()=>Math.max(0,v().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(y))return Ae;J??=`500 12px ${getComputedStyle(e(y)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(y)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(y)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return v()},set items(t){v(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return d()},set variant(t="card-stack"){d(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>ve(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return d()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(y,t),()=>e(y)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",d()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),ge(ee)}export{Se as A};
1
+ import{t as le,bq as u,a_ as D,by as ce,b as ve}from"./Dso1_H3c.js";import{bs as de,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./DYhIMPy1.js";import{v as X,u as c,n as _e,w as R}from"./CnMdEUN9.js";import{s as ke}from"./BfNeIJAh.js";import{b as we}from"./BaIAhI85.js";import{t as j}from"./Cl-7Au8R.js";import{A as xe}from"./BE_5EfDm.js";import{s as We}from"./DVWbUaqE.js";function ye(W){const{itemCount:a,maxVisible:v,availableWidth:r,surface:s,overlap:b,overflowOverlap:d}=W;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,v)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?W.measureOverflowText(A)-(i>0?d:0):0)<=r)return i}return 0}function Ie(W,a=r=>requestAnimationFrame(r),v=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let d=!1;const _=a(()=>{d=!0,s=void 0;const m=r;r=void 0,W(m)});d||(s=_)},cancel(){s!==void 0&&(v(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(W,a){if(new.target)return le({component:Se,...W});de(a,!0);let v=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),d=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),y=P(void 0),z=P(void 0);const h=x(()=>We[d()]),U=x(()=>s()&&e(z)!==void 0?ye({itemCount:v().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(v().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>v().slice(0,e(Y))),E=x(()=>Math.max(0,v().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(y))return Ae;J??=`500 12px ${getComputedStyle(e(y)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(y)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(y)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return v()},set items(t){v(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return d()},set variant(t="card-stack"){d(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>ve(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return d()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(y,t),()=>e(y)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",d()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(W,p),ge(ee)}export{Se as A};
@@ -1 +1 @@
1
- import"./DYhIMPy1.js";import{p as r}from"./BwHfUkOf.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
1
+ import"./DYhIMPy1.js";import{p as r}from"./BpidAqRA.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
@@ -1,4 +1,4 @@
1
- import{I as W}from"./CqCOQpit.js";import{p as X}from"./Dr8wriKt.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./BKjGGpm1.js";import{p as te}from"./DBZdNxOK.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
1
+ import{I as W}from"./BaeUp1de.js";import{p as X}from"./Bvt4TKMh.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./D0BUPqIH.js";import{p as te}from"./CgWmg0h0.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
2
2
  `),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
3
3
  `),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
4
4
  `+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
@@ -1 +1 @@
1
- import{b as s}from"./BKjGGpm1.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
1
+ import{b as s}from"./D0BUPqIH.js";var t,e=(t=class{constructor(i){this.init=i,this.records=this.init()}reset(){this.records=this.init()}},s(t,"ImperativeState"),t);export{e as I};
@@ -1,4 +1,4 @@
1
- import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./BKjGGpm1.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
1
+ import{b as o,X as ot,aH as ut,aX as dt,i as yt,r as ft,z as pt,b0 as it,V as gt,a_ as kt,U as mt,aZ as wt,Y as _t,B as bt}from"./D0BUPqIH.js";var J=(function(){var e=o(function(T,t,s,i){for(s=s||{},i=T.length;i--;s[T[i]]=t);return s},"o"),h=[1,4],r=[1,14],a=[1,12],l=[1,13],y=[6,7,8],f=[1,20],d=[1,18],m=[1,19],u=[6,7,11],k=[1,6,13,14],g=[1,23],_=[1,24],x=[1,6,7,11,13,14],D={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ishikawa:4,spaceLines:5,SPACELINE:6,NL:7,ISHIKAWA:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,TEXT:14,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"ISHIKAWA",11:"EOF",13:"SPACELIST",14:"TEXT"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,1],[12,1],[12,1]],performAction:o(function(t,s,i,c,p,n,v){var w=n.length-1;switch(p){case 6:case 7:return c;case 15:c.addNode(n[w-1].length,n[w].trim());break;case 16:c.addNode(0,n[w].trim());break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:h},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:h},{6:r,7:[1,10],9:9,12:11,13:a,14:l},e(y,[2,3]),{1:[2,2]},e(y,[2,4]),e(y,[2,5]),{1:[2,6],6:r,12:15,13:a,14:l},{6:r,9:16,12:11,13:a,14:l},{6:f,7:d,10:17,11:m},e(u,[2,18],{14:[1,21]}),e(u,[2,16]),e(u,[2,17]),{6:f,7:d,10:22,11:m},{1:[2,7],6:r,12:15,13:a,14:l},e(k,[2,14],{7:g,11:_}),e(x,[2,8]),e(x,[2,9]),e(x,[2,10]),e(u,[2,15]),e(k,[2,13],{7:g,11:_}),e(x,[2,11]),e(x,[2,12])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(t,s){if(s.recoverable)this.trace(t);else{var i=new Error(t);throw i.hash=s,i}},"parseError"),parse:o(function(t){var s=this,i=[0],c=[],p=[null],n=[],v=this.table,w="",I=0,$=0,L=2,A=1,V=n.slice.call(arguments,1),b=Object.create(this.lexer),S={yy:{}};for(var B in this.yy)Object.prototype.hasOwnProperty.call(this.yy,B)&&(S.yy[B]=this.yy[B]);b.setInput(t,S.yy),S.yy.lexer=b,S.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var R=b.yylloc;n.push(R);var U=b.options&&b.options.ranges;typeof S.yy.parseError=="function"?this.parseError=S.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Y(P){i.length=i.length-2*P,p.length=p.length-P,n.length=n.length-P}o(Y,"popStack");function tt(){var P;return P=c.pop()||b.lex()||A,typeof P!="number"&&(P instanceof Array&&(c=P,P=c.pop()),P=s.symbols_[P]||P),P}o(tt,"lex");for(var M,W,N,K,z={},G,C,et,X;;){if(W=i[i.length-1],this.defaultActions[W]?N=this.defaultActions[W]:((M===null||typeof M>"u")&&(M=tt()),N=v[W]&&v[W][M]),typeof N>"u"||!N.length||!N[0]){var q="";X=[];for(G in v[W])this.terminals_[G]&&G>L&&X.push("'"+this.terminals_[G]+"'");b.showPosition?q="Parse error on line "+(I+1)+`:
2
2
  `+b.showPosition()+`
3
3
  Expecting `+X.join(", ")+", got '"+(this.terminals_[M]||M)+"'":q="Parse error on line "+(I+1)+": Unexpected "+(M==A?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(q,{text:b.match,token:this.terminals_[M]||M,line:b.yylineno,loc:R,expected:X})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+W+", token: "+M);switch(N[0]){case 1:i.push(M),p.push(b.yytext),n.push(b.yylloc),i.push(N[1]),M=null,$=b.yyleng,w=b.yytext,I=b.yylineno,R=b.yylloc;break;case 2:if(C=this.productions_[N[1]][1],z.$=p[p.length-C],z._$={first_line:n[n.length-(C||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-(C||1)].first_column,last_column:n[n.length-1].last_column},U&&(z._$.range=[n[n.length-(C||1)].range[0],n[n.length-1].range[1]]),K=this.performAction.apply(z,[w,$,I,S.yy,N[1],p,n].concat(V)),typeof K<"u")return K;C&&(i=i.slice(0,-1*C*2),p=p.slice(0,-1*C),n=n.slice(0,-1*C)),i.push(this.productions_[N[1]][0]),p.push(z.$),n.push(z._$),et=v[i[i.length-2]][i[i.length-1]],i.push(et);break;case 3:return!0}}return!0},"parse")},O=(function(){var T={EOF:1,parseError:o(function(s,i){if(this.yy.parser)this.yy.parser.parseError(s,i);else throw new Error(s)},"parseError"),setInput:o(function(t,s){return this.yy=s||this.yy||{},this._input=t,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var t=this._input[0];this.yytext+=t,this.yyleng++,this.offset++,this.match+=t,this.matched+=t;var s=t.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),t},"input"),unput:o(function(t){var s=t.length,i=t.split(/(?:\r\n?|\n)/g);this._input=t+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),i.length-1&&(this.yylineno-=i.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:i?(i.length===c.length?this.yylloc.first_column:0)+c[c.length-i.length].length-i[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
4
4
  `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(t){this.unput(this.match.slice(t))},"less"),pastInput:o(function(){var t=this.matched.substr(0,this.matched.length-this.match.length);return(t.length>20?"...":"")+t.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var t=this.match;return t.length<20&&(t+=this._input.substr(0,20-t.length)),(t.substr(0,20)+(t.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var t=this.pastInput(),s=new Array(t.length+1).join("-");return t+this.upcomingInput()+`
@@ -1 +1 @@
1
- import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./R4bwBwT_.js";import{Ik as o,Df as C,CH as _,g as A,uA as O,ua as D,fW as H,BZ as L,Cf as P,Ef as R,C1 as x}from"./DenVKqrV.js";import{aZ as p}from"./HcYBxKPc.js";import{d as B}from"./B0Z-1lwJ.js";import{n as W}from"./DgyZN5lH.js";import{o as F,e as q}from"./CLMPxb4p.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Z(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Z(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function K(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await W(d):await F(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(D(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await K(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,K as seekConversationToMessage};
1
+ import{C as M}from"./BvFAWM27.js";import{a as v}from"./BdWqymET.js";import{d as E}from"./DfBE7crq.js";import{Ik as o,Df as C,CH as _,g as A,uA as O,ua as D,fW as H,BZ as L,Cf as P,Ef as R,C1 as x}from"./Dk1_0x0Q.js";import{aZ as p}from"./CArqGgyL.js";import{d as B}from"./B0Z-1lwJ.js";import{n as W}from"./CYttmgAy.js";import{o as F,e as q}from"./D-Uzg_w_.js";const u=new v("OpenMessage"),S=150,y=15e3,N=2,G=[150,400,800,1500,3e3],Y=M;let g;function k(e){return new Promise(t=>setTimeout(t,e))}function m(e,t){const s=o.state,n=s.agentSessions?.byAgentId[e]?.messages,a=s.agentSessions?.historySegmentsByAgentId?.[e]?.messages;return!!(n?.some(r=>r.id===t)||a?.some(r=>r.id===t))}function T(e,t){const s=o.state,n=s.agentSessions?.historySegmentsByAgentId?.[e];n?.detachedFromTail!==!0||n.messages.some(r=>r.id===t)||!s.agentSessions?.byAgentId[e]?.messages?.some(r=>r.id===t)||o.dispatch(H(e))}function Z(e){return o.state.chatState?.byAgentId[e]?.transcriptHydration}async function I(e,t,s){const n=Date.now()+y;let a=0;for(;Date.now()<n;){if(s.aborted)return!1;if(m(e,t))return!0;if(a>=N&&Z(e)==="settled"&&!p.select(o.state,e).initialHistoryPending)return!1;a++,await k(S)}return!s.aborted&&m(e,t)}async function K(e,t,s,n){const a=Date.now()+y;for(;p.select(o.state,e).initialHistoryPending;){if(n?.aborted||Date.now()>=a)return!1;await k(S)}const r=o.state.agentSessions?.byAgentId[e];if(!r||n?.aborted)return!1;if(m(e,t))return T(e,t),!0;s??=r.workspaceId;const l=p.select(o.state,e);let c={nextToken:l.scrollbackOlderToken,prevToken:l.scrollbackGapToken,olderAnchorId:l.scrollbackOlderTokenAnchorId};o.dispatch(L(e,"seek"));const d=p.select(o.state,e).scrollbackDiscardEpoch,f=()=>!!o.state.agentSessions?.byAgentId[e]&&p.select(o.state,e).scrollbackDiscardEpoch===d;try{const i=await E.agents.getConversation(e,Y,void 0,t,void 0,s);return n?.aborted||!f()||!i.messages.some(h=>h.id===t)?!1:(o.dispatch(P(e,i.messages,i.messages[0]?.seq)),i.nextToken===null&&o.dispatch(R(e)),c={nextToken:i.nextToken,prevToken:i.prevToken,olderAnchorId:i.messages[0]?.id??null},m(e,t))}catch(i){return u.warn("[seekConversationToMessage] Seek fetch failed (message may no longer exist)",{agentId:e,messageId:t,error:i}),!1}finally{f()&&o.dispatch(x(e,c))}}async function ee(e){if(e.signal?.aborted)return;g?.abort(),g=new AbortController;const t=e.signal?AbortSignal.any([g.signal,e.signal]):g.signal,{workspaceId:s,agentId:n,messageId:a,query:r,targetTabId:l}=e;u.info("[openMessage] Deep-opening conversation at message",{workspaceId:s,agentId:n,messageId:a});const c=s===A;c&&!e.contentAlreadyOpen&&(o.dispatch(C(n)),o.dispatch(_(A,n)),o.dispatch(O("chief")));const d=c?"/":q(s);if(!e.contentAlreadyOpen&&typeof window<"u"&&window.location.pathname!==d){try{c?await W(d):await F(s)}catch(w){u.warn("[openMessage] Workspace navigation failed",{workspaceId:s,error:w});return}if(t.aborted)return;if(window.location.pathname!==d){u.warn("[openMessage] Workspace navigation was not confirmed",{workspaceId:s});return}}!e.contentAlreadyOpen&&!c&&o.dispatch(D(s,{agentId:n}));const f=await I(n,a,t);f&&T(n,a);const i=f||await K(n,a,s,t);if(t.aborted)return;if(!i){u.warn("[openMessage] Message not found; conversation opened at tail",{agentId:n,messageId:a});return}const h=`open-message-${Date.now()}-${Math.random().toString(36).slice(2)}`,b={agentId:n,messageId:a,query:r,targetTabId:l,requestId:h,signal:t};for(const w of G)setTimeout(()=>{t.aborted||B("chat:open-message",b)},w)}export{ee as openMessage,K as seekConversationToMessage};
@@ -1 +1 @@
1
- var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./BRWLc5hQ.js";import{applyCustomMonacoTheme as f,revertMonacoTheme as I}from"./DYXF8P9g.js";import{d as y}from"./B0Z-1lwJ.js";import{Bk as r}from"./DenVKqrV.js";const u="custom-vscode-theme",l="theme-preset-id",d="theme-preset-set",o=typeof window<"u",n=class n{constructor(){a(this,"currentTheme","system");a(this,"fixedDarkAppearance",o&&["dock","dock-annotation","dock-capture-editor"].includes(document.documentElement.dataset.auxiliaryWindow??""));a(this,"mediaQuery",null);a(this,"customTheme",null);a(this,"presetDarkTheme",null);a(this,"presetLightTheme",null);a(this,"appliedCSSVariableKeys",[]);a(this,"activePresetId",null);a(this,"handleSystemThemeChange",()=>{this.currentTheme==="system"&&this.applyTheme()});o&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.loadTheme(),this.setupListeners())}static getInstance(){return n.instance||(n.instance=new n),n.instance}static resetInstance(){n.instance?.dispose(),n.instance=null}loadTheme(){const e=r.getItem("theme");e&&(this.currentTheme=e),this.activePresetId=r.getItem(l);const s=r.getItem(d);if(s)try{const{dark:t,light:i}=JSON.parse(s);this.presetDarkTheme=c(t),this.presetLightTheme=c(i)}catch{r.removeItem(d),this.activePresetId=null,r.removeItem(l)}if(!this.presetDarkTheme){const t=r.getItem(u);if(t)try{const i=JSON.parse(t);this.customTheme=c(i)}catch{r.removeItem(u),this.activePresetId=null,r.removeItem(l)}}this.applyTheme()}setupListeners(){this.mediaQuery&&this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}dispose(){this.mediaQuery?.removeEventListener("change",this.handleSystemThemeChange),this.mediaQuery=null}setTheme(e,s={}){if(!o)return;const{persist:t=!0}=s;this.currentTheme=e,t&&r.setItem("theme",e),this.applyTheme()}getTheme(){return this.currentTheme}setCustomTheme(e){if(!o)return;const s=c(e);this.customTheme=s,this.activePresetId=null,this.presetDarkTheme=null,this.presetLightTheme=null,r.removeItem(l),r.removeItem(d),r.setJSON(u,e),this.applyTheme()}setPresetTheme(e,s,t){o&&(this.presetDarkTheme=c(s),this.presetLightTheme=c(t),this.activePresetId=e,this.customTheme=null,r.removeItem(u),r.setItem(l,e),r.setJSON(d,{dark:s,light:t}),this.applyTheme())}clearCustomTheme(){o&&(this.customTheme=null,this.presetDarkTheme=null,this.presetLightTheme=null,this.activePresetId=null,r.removeItem(u),r.removeItem(l),r.removeItem(d),this.removeCSSVariableOverrides(),this.applyTheme())}hasCustomTheme(){return this.getActiveTheme()!==null}getCustomThemeName(){return this.getActiveTheme()?.name??null}getActivePresetId(){return this.activePresetId}resolveIsDark(){if(this.fixedDarkAppearance)return!0;const e=this.mediaQuery?.matches??!1;return this.currentTheme==="system"?e:this.currentTheme==="dark"}getActiveTheme(){return this.presetDarkTheme&&this.presetLightTheme?this.resolveIsDark()?this.presetDarkTheme:this.presetLightTheme:this.fixedDarkAppearance&&this.customTheme?.type==="light"?null:this.customTheme}applyTheme(){if(!o)return;const e=document.documentElement,s=this.mediaQuery?.matches??!1,t=this.getActiveTheme(),i=this.isDark();e.classList.remove("dark","light"),e.classList.add(i?"dark":"light"),e.style.setProperty("color-scheme",i?"dark":"light"),t?this.applyCSSVariableOverrides(t.cssVariables):this.removeCSSVariableOverrides(),i&&!s&&!t?e.setAttribute("data-theme-override","true"):e.removeAttribute("data-theme-override");const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",i?"#0a0a0a":"#ffffff"),t?f(t.monacoTheme):I(i),y("theme-changed",{theme:this.currentTheme,isDark:i,customThemeName:t?.name??null,activePresetId:this.activePresetId,terminalColors:t?.terminalColors??null})}applyCSSVariableOverrides(e){const s=document.documentElement;this.removeCSSVariableOverrides();const t=[];for(const[i,T]of Object.entries(e))s.style.setProperty(i,T),t.push(i);this.appliedCSSVariableKeys=t}removeCSSVariableOverrides(){const e=document.documentElement;for(const s of this.appliedCSSVariableKeys)e.style.removeProperty(s);this.appliedCSSVariableKeys=[]}toggleTheme(){if(!o)return;const e=["light","dark","system"],t=(e.indexOf(this.currentTheme)+1)%e.length;this.setTheme(e[t])}isDark(){return this.fixedDarkAppearance?!0:this.customTheme?this.customTheme.type==="dark":this.resolveIsDark()}};a(n,"instance",null);let m=n;const E={setTheme:(...h)=>m.getInstance().setTheme(...h),getTheme:()=>m.getInstance().getTheme(),setCustomTheme:(...h)=>m.getInstance().setCustomTheme(...h),setPresetTheme:(...h)=>m.getInstance().setPresetTheme(...h),clearCustomTheme:()=>m.getInstance().clearCustomTheme(),hasCustomTheme:()=>m.getInstance().hasCustomTheme(),getCustomThemeName:()=>m.getInstance().getCustomThemeName(),getActivePresetId:()=>m.getInstance().getActivePresetId(),toggleTheme:()=>m.getInstance().toggleTheme(),isDark:()=>m.getInstance().isDark()};export{m as T,E as t};
1
+ var g=Object.defineProperty;var v=(h,e,s)=>e in h?g(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s;var a=(h,e,s)=>v(h,typeof e!="symbol"?e+"":e,s);import{p as c}from"./CMOnvdXp.js";import{applyCustomMonacoTheme as f,revertMonacoTheme as I}from"./D3DGxoeO.js";import{d as y}from"./B0Z-1lwJ.js";import{Bk as r}from"./Dk1_0x0Q.js";const u="custom-vscode-theme",l="theme-preset-id",d="theme-preset-set",o=typeof window<"u",n=class n{constructor(){a(this,"currentTheme","system");a(this,"fixedDarkAppearance",o&&["dock","dock-annotation","dock-capture-editor"].includes(document.documentElement.dataset.auxiliaryWindow??""));a(this,"mediaQuery",null);a(this,"customTheme",null);a(this,"presetDarkTheme",null);a(this,"presetLightTheme",null);a(this,"appliedCSSVariableKeys",[]);a(this,"activePresetId",null);a(this,"handleSystemThemeChange",()=>{this.currentTheme==="system"&&this.applyTheme()});o&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.loadTheme(),this.setupListeners())}static getInstance(){return n.instance||(n.instance=new n),n.instance}static resetInstance(){n.instance?.dispose(),n.instance=null}loadTheme(){const e=r.getItem("theme");e&&(this.currentTheme=e),this.activePresetId=r.getItem(l);const s=r.getItem(d);if(s)try{const{dark:t,light:i}=JSON.parse(s);this.presetDarkTheme=c(t),this.presetLightTheme=c(i)}catch{r.removeItem(d),this.activePresetId=null,r.removeItem(l)}if(!this.presetDarkTheme){const t=r.getItem(u);if(t)try{const i=JSON.parse(t);this.customTheme=c(i)}catch{r.removeItem(u),this.activePresetId=null,r.removeItem(l)}}this.applyTheme()}setupListeners(){this.mediaQuery&&this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}dispose(){this.mediaQuery?.removeEventListener("change",this.handleSystemThemeChange),this.mediaQuery=null}setTheme(e,s={}){if(!o)return;const{persist:t=!0}=s;this.currentTheme=e,t&&r.setItem("theme",e),this.applyTheme()}getTheme(){return this.currentTheme}setCustomTheme(e){if(!o)return;const s=c(e);this.customTheme=s,this.activePresetId=null,this.presetDarkTheme=null,this.presetLightTheme=null,r.removeItem(l),r.removeItem(d),r.setJSON(u,e),this.applyTheme()}setPresetTheme(e,s,t){o&&(this.presetDarkTheme=c(s),this.presetLightTheme=c(t),this.activePresetId=e,this.customTheme=null,r.removeItem(u),r.setItem(l,e),r.setJSON(d,{dark:s,light:t}),this.applyTheme())}clearCustomTheme(){o&&(this.customTheme=null,this.presetDarkTheme=null,this.presetLightTheme=null,this.activePresetId=null,r.removeItem(u),r.removeItem(l),r.removeItem(d),this.removeCSSVariableOverrides(),this.applyTheme())}hasCustomTheme(){return this.getActiveTheme()!==null}getCustomThemeName(){return this.getActiveTheme()?.name??null}getActivePresetId(){return this.activePresetId}resolveIsDark(){if(this.fixedDarkAppearance)return!0;const e=this.mediaQuery?.matches??!1;return this.currentTheme==="system"?e:this.currentTheme==="dark"}getActiveTheme(){return this.presetDarkTheme&&this.presetLightTheme?this.resolveIsDark()?this.presetDarkTheme:this.presetLightTheme:this.fixedDarkAppearance&&this.customTheme?.type==="light"?null:this.customTheme}applyTheme(){if(!o)return;const e=document.documentElement,s=this.mediaQuery?.matches??!1,t=this.getActiveTheme(),i=this.isDark();e.classList.remove("dark","light"),e.classList.add(i?"dark":"light"),e.style.setProperty("color-scheme",i?"dark":"light"),t?this.applyCSSVariableOverrides(t.cssVariables):this.removeCSSVariableOverrides(),i&&!s&&!t?e.setAttribute("data-theme-override","true"):e.removeAttribute("data-theme-override");const p=document.querySelector('meta[name="theme-color"]');p&&p.setAttribute("content",i?"#0a0a0a":"#ffffff"),t?f(t.monacoTheme):I(i),y("theme-changed",{theme:this.currentTheme,isDark:i,customThemeName:t?.name??null,activePresetId:this.activePresetId,terminalColors:t?.terminalColors??null})}applyCSSVariableOverrides(e){const s=document.documentElement;this.removeCSSVariableOverrides();const t=[];for(const[i,T]of Object.entries(e))s.style.setProperty(i,T),t.push(i);this.appliedCSSVariableKeys=t}removeCSSVariableOverrides(){const e=document.documentElement;for(const s of this.appliedCSSVariableKeys)e.style.removeProperty(s);this.appliedCSSVariableKeys=[]}toggleTheme(){if(!o)return;const e=["light","dark","system"],t=(e.indexOf(this.currentTheme)+1)%e.length;this.setTheme(e[t])}isDark(){return this.fixedDarkAppearance?!0:this.customTheme?this.customTheme.type==="dark":this.resolveIsDark()}};a(n,"instance",null);let m=n;const E={setTheme:(...h)=>m.getInstance().setTheme(...h),getTheme:()=>m.getInstance().getTheme(),setCustomTheme:(...h)=>m.getInstance().setCustomTheme(...h),setPresetTheme:(...h)=>m.getInstance().setPresetTheme(...h),clearCustomTheme:()=>m.getInstance().clearCustomTheme(),hasCustomTheme:()=>m.getInstance().hasCustomTheme(),getCustomThemeName:()=>m.getInstance().getCustomThemeName(),getActivePresetId:()=>m.getInstance().getActivePresetId(),toggleTheme:()=>m.getInstance().toggleTheme(),isDark:()=>m.getInstance().isDark()};export{m as T,E as t};