@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
- var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var qt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>qt(c,typeof e!="symbol"?e+"":e,n),Qe=(c,e,n)=>e.has(c)||gt("Cannot "+n);var h=(c,e,n)=>(Qe(c,e,"read from private field"),n?n.call(c):e.get(c)),A=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Qe(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Qe(c,e,"access private method"),n);import{t as te,bq as r,a_ as Y,by as re,b as se,br as Ee,bo as ce,bt as Ze}from"./CXgKrD4b.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as T,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Jt,c5 as $,bI as Wt,aG as Xt}from"./DYhIMPy1.js";import{s as H}from"./CHyKyUzM.js";import{c as pe}from"./7vJjNlp5.js";import{h as Qt,a$ as Yt,aF as Zt,av as _t,l as $t,ad as er,aH as tr,aE as pt,aS as rr,a7 as sr,aT as Ve,bp as ht,bM as nr,aJ as q,bn as xt,bL as ar,ai as ir,f as mt,bJ as Ct}from"./-svebp9s.js";import{O as or}from"./1bpiYpBu.js";import{a as ur,D as lr}from"./Ct1y2X3-.js";import{i as at,l as be,u as wt,j as cr,v as dr}from"./BEdXc2Cn.js";import"./CeOYgNbD.js";import{e as gr,P as bt}from"./aA6XO7Z6.js";import{b as fr}from"./BaIAhI85.js";import{i as hr}from"./CC7to1B5.js";import"./BYJTJW1o.js";import"./CKywtFzw.js";import{g as mr}from"./C9IQsGTN.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Qt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");A(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(h(this,xe))}set props(e){k(h(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);A(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(h(this,Ce))}set anyPressed(n){k(h(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);A(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(h(this,we))}set anyPressed(n){k(h(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,me,Ie,Pe;const it=class it{constructor(e,n){A(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");A(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));A(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));A(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));A(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));A(this,me,N(0));A(this,Ie,I(()=>({pressed:this.isPressed})));A(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(h(this,me)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(h(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(h(this,De)),"aria-checked":a(h(this,Oe)),disabled:tr(a(h(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(h(this,me),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(h(this,me),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(h(this,Se))}set isPressed(e){k(h(this,Se),e)}onclick(e){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(h(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(h(this,Ie))}set snippetProps(e){k(h(this,Ie),e)}get props(){return a(h(this,Pe))}set props(e){k(h(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},me=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,ht),y=r(e,"type",7),C=r(e,"disabled",7,!1),m=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:q(()=>i()),value:q(()=>g(),l=>{g(l),f()(l)}),disabled:q(()=>C()),loop:q(()=>m()),orientation:q(()=>w()),rovingFocus:q(()=>_()),type:y(),ref:q(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=ht){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return m()},set loop(l=!0){m(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=T(p);{var K=l=>{var E=V(),B=T(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),m=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:q(()=>C()),value:q(()=>f()),disabled:q(()=>y()??!1),ref:q(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:m()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return m()},set type(o="button"){m(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=T(x);{var z=o=>{var p=V(),L=T(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),m,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=hr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&m.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),m.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>m=o,()=>m),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},m=Pr(),w=de(m),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(m),_e(b=>{wt(m,"data-size",y),dr(m,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,m),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),m=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),J=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),W=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Te=N(null),Re=N(null),Ne=N(null);const Q=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(Q)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(Q)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function Tt(u){const Z=l()??(J()?a(Re):B()?a(Ne):E()?a(Te):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var At={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return m()},set footer(u){m(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return J()},set focusCancel(u=!1){J(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return W()},set onCloseAutoFocus(u){W(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=T(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Tr)=>{var ut=V(),Vt=T(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(Q)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:Tt,get onCloseAutoFocus(){return W()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Te),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(Q)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(Q)&&M.preventDefault(),get ref(){return a(Te)},set ref(M){k(Te,M,!0)},children:(M,Ar)=>{Ft(M,{onSubmit:Bt,get busy(){return a(Q)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=T(lt);{var Ht=he=>{var Ue=V(),ct=T(Ue);H(ct,m),F(he,Ue)},jt=he=>{Lt(he,{secondary:qe=>{var Ae=V(),Je=T(Ae);{var We=le=>{mt(le,{variant:"ghost-light",get disabled(){return a(Q)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(Je,le=>{o()&&le(We)})}F(qe,Ae)},primary:qe=>{{let Ae=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),Je=I(()=>a(Q)||S()),We=I(()=>!v()||a(Q)||S());mt(qe,{type:"submit",get variant(){return P()},get class(){return a(Ae)},get loading(){return a(Je)},get disabled(){return a(We)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,he=>{m()?he(Ht):he(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(At)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),m=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return m()},set busy(t=!1){m(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return m()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),J=T(B);{var D=G=>{var O=V(),ie=T(O);H(ie,C),F(G,O)};Y(J,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){A(this,R,N(Jt([])));A(this,ke);A(this,Fe);A(this,Le,N(null));A(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(h(this,Le))}set hover(e){k(h(this,Le),e,!0)}get keyboardIndex(){return a(h(this,ze))}set keyboardIndex(e){k(h(this,ze),e,!0)}get selectedIndexes(){const e=new Set(h(this,ke).call(this));return a(h(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(h(this,R)).indexOf(void 0);return i<0?a(h(this,R)).push(n)-1:(a(h(this,R))[i]=n,i)})}release(e){$(()=>{a(h(this,R))[e]&&(a(h(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(h(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(h(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=mr(e,{axis:h(this,Fe)});for(const[n,i]of a(h(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(h(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),m=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));Wt(Et,{state:x,get size(){return m()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return m()},set size(t="default"){m(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=T(o);{var L=t=>{var l=V(),E=T(l);{let B=I(()=>Array.isArray(i())?i():[]),J=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(J)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var W=vt(),X=T(W);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,W)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=T(l);{let B=I(()=>typeof i()=="string"?i():""),J=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(J)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var W=vt(),X=T(W);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,W)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),m=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return m()},set onclick(t){m(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=T(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return m()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,J)=>{var D=V(),G=T(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
1
+ var Ut=Object.defineProperty;var gt=c=>{throw TypeError(c)};var qt=(c,e,n)=>e in c?Ut(c,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):c[e]=n;var U=(c,e,n)=>qt(c,typeof e!="symbol"?e+"":e,n),Qe=(c,e,n)=>e.has(c)||gt("Cannot "+n);var h=(c,e,n)=>(Qe(c,e,"read from private field"),n?n.call(c):e.get(c)),A=(c,e,n)=>e.has(c)?gt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(c):e.set(c,n),Ye=(c,e,n,i)=>(Qe(c,e,"write to private field"),i?i.call(c,n):e.set(c,n),n),ft=(c,e,n)=>(Qe(c,e,"access private method"),n);import{t as te,bq as r,a_ as Y,by as re,b as se,br as Ee,bo as ce,bt as Ze}from"./Dso1_H3c.js";import{c9 as I,aD as a,bH as k,ca as ye,bV as N,bo as yt,bs as ne,a7 as V,ay as T,W as F,bn as ae,aA as s,a5 as de,bf as fe,bA as ge,aB as Be,b_ as _e,bS as ve,be as $e,b$ as et,bO as tt,br as Jt,c5 as $,bI as Wt,aG as Xt}from"./DYhIMPy1.js";import{s as H}from"./BfNeIJAh.js";import{c as pe}from"./B3KrGqdQ.js";import{h as Qt,a$ as Yt,aF as Zt,av as _t,l as $t,ad as er,aH as tr,aE as pt,aS as rr,a7 as sr,aT as Ve,bp as ht,bM as nr,aJ as q,bn as xt,bL as ar,ai as ir,f as mt,bJ as Ct}from"./m5UczIQR.js";import{O as or}from"./D-v3doGL.js";import{a as ur,D as lr}from"./DCD7Mz5K.js";import{i as at,l as be,u as wt,j as cr,v as dr}from"./CnMdEUN9.js";import"./CKJpktTE.js";import{e as gr,P as bt}from"./BAOVYkFF.js";import{b as fr}from"./BaIAhI85.js";import{i as hr}from"./CC7to1B5.js";import"./BuxSPewv.js";import"./9oNS7b_T.js";import{g as mr}from"./C5vuxPIj.js";const rt=rr({component:"toggle-group",parts:["root","item"]}),St=new Qt("ToggleGroup.Root");var xe;class It{constructor(e){U(this,"opts");U(this,"rovingFocusGroup");U(this,"attachment");A(this,xe,I(()=>({id:this.opts.id.current,[rt.root]:"",role:"group","data-orientation":this.opts.orientation.current,"data-disabled":pt(this.opts.disabled.current),...this.attachment})));this.opts=e,this.attachment=_t(this.opts.ref),this.rovingFocusGroup=new sr({candidateAttr:rt.item,rootNode:e.ref,loop:e.loop,orientation:e.orientation})}get props(){return a(h(this,xe))}set props(e){k(h(this,xe),e)}}xe=new WeakMap;var Ce;class br extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!1);A(this,Ce,I(()=>this.opts.value.current!==""));this.opts=n}get anyPressed(){return a(h(this,Ce))}set anyPressed(n){k(h(this,Ce),n)}includesItem(n){return this.opts.value.current===n}toggleItem(n,i){this.includesItem(n)?this.opts.value.current="":(this.opts.value.current=n,this.rovingFocusGroup.setCurrentTabStopId(i))}}Ce=new WeakMap;var we;class vr extends It{constructor(n){super(n);U(this,"opts");U(this,"isMulti",!0);A(this,we,I(()=>this.opts.value.current.length>0));this.opts=n}get anyPressed(){return a(h(this,we))}set anyPressed(n){k(h(this,we),n)}includesItem(n){return this.opts.value.current.includes(n)}toggleItem(n,i){this.includesItem(n)?this.opts.value.current=this.opts.value.current.filter(d=>d!==n):(this.opts.value.current=[...this.opts.value.current,n],this.rovingFocusGroup.setCurrentTabStopId(i))}}we=new WeakMap;class yr{static create(e){const{type:n,...i}=e,d=n==="single"?new br(i):new vr(i);return St.set(d)}}var ee,Se,Oe,De,Ge,Pt,me,Ie,Pe;const it=class it{constructor(e,n){A(this,Ge);U(this,"opts");U(this,"root");U(this,"attachment");A(this,ee,I(()=>this.opts.disabled.current||this.root.opts.disabled.current));A(this,Se,I(()=>this.root.includesItem(this.opts.value.current)));A(this,Oe,I(()=>this.root.isMulti?void 0:Yt(this.isPressed,!1)));A(this,De,I(()=>this.root.isMulti?Zt(this.isPressed):void 0));A(this,me,N(0));A(this,Ie,I(()=>({pressed:this.isPressed})));A(this,Pe,I(()=>({id:this.opts.id.current,role:this.root.isMulti?void 0:"radio",tabindex:a(h(this,me)),"data-orientation":this.root.opts.orientation.current,"data-disabled":pt(a(h(this,ee))),"data-state":_r(this.isPressed),"data-value":this.opts.value.current,"aria-pressed":a(h(this,De)),"aria-checked":a(h(this,Oe)),disabled:tr(a(h(this,ee))),[rt.item]:"",onclick:this.onclick,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.root=n,this.attachment=_t(this.opts.ref),ye(()=>{this.root.opts.rovingFocus.current?k(h(this,me),this.root.rovingFocusGroup.getTabIndex(this.opts.ref.current),!0):k(h(this,me),0)}),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this)}static create(e){return new it(e,St.get())}get isPressed(){return a(h(this,Se))}set isPressed(e){k(h(this,Se),e)}onclick(e){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)}onkeydown(e){if(!a(h(this,ee))){if(e.key===$t||e.key===er){e.preventDefault(),ft(this,Ge,Pt).call(this);return}this.root.opts.rovingFocus.current&&this.root.rovingFocusGroup.handleKeydown(this.opts.ref.current,e)}}get snippetProps(){return a(h(this,Ie))}set snippetProps(e){k(h(this,Ie),e)}get props(){return a(h(this,Pe))}set props(e){k(h(this,Pe),e)}};ee=new WeakMap,Se=new WeakMap,Oe=new WeakMap,De=new WeakMap,Ge=new WeakSet,Pt=function(){a(h(this,ee))||this.root.toggleItem(this.opts.value.current,this.opts.id.current)},me=new WeakMap,Ie=new WeakMap,Pe=new WeakMap;let st=it;function _r(c){return c?"on":"off"}var pr=new Set(["$$slots","$$events","$$legacy","id","ref","value","onValueChange","type","disabled","loop","orientation","rovingFocus","child","children"]),xr=Be("<div><!></div>");function nt(c,e){const n=yt();if(new.target)return te({component:nt,...c});ne(e,!0);let i=r(e,"id",23,()=>Ve(n)),d=r(e,"ref",15,null),g=r(e,"value",15),f=r(e,"onValueChange",7,ht),y=r(e,"type",7),C=r(e,"disabled",7,!1),m=r(e,"loop",7,!0),w=r(e,"orientation",7,"horizontal"),_=r(e,"rovingFocus",7,!0),P=r(e,"child",7),v=r(e,"children",7),x=Ee(e,pr);function S(){g()===void 0&&g(y()==="single"?"":[])}S(),nr.pre(()=>g(),()=>{S()});const z=yr.create({id:q(()=>i()),value:q(()=>g(),l=>{g(l),f()(l)}),disabled:q(()=>C()),loop:q(()=>m()),orientation:q(()=>w()),rovingFocus:q(()=>_()),type:y(),ref:q(()=>d(),l=>d(l))}),b=I(()=>xt(x,z.props));var o={get id(){return i()},set id(l=Ve(n)){i(l),s()},get ref(){return d()},set ref(l=null){d(l),s()},get value(){return g()},set value(l){g(l),s()},get onValueChange(){return f()},set onValueChange(l=ht){f(l),s()},get type(){return y()},set type(l){y(l),s()},get disabled(){return C()},set disabled(l=!1){C(l),s()},get loop(){return m()},set loop(l=!0){m(l),s()},get orientation(){return w()},set orientation(l="horizontal"){w(l),s()},get rovingFocus(){return _()},set rovingFocus(l=!0){_(l),s()},get child(){return P()},set child(l){P(l),s()},get children(){return v()},set children(l){v(l),s()},$set:re,$on:(l,E)=>se(e,l,E)},p=V(),L=T(p);{var K=l=>{var E=V(),B=T(E);H(B,P,()=>({props:a(b)})),F(l,E)},t=l=>{var E=xr();at(E,()=>({...a(b)}));var B=de(E);H(B,()=>v()??fe),ge(E),F(l,E)};Y(L,l=>{P()?l(K):l(t,-1)})}return F(c,p),ae(o)}var Cr=new Set(["$$slots","$$events","$$legacy","children","child","ref","value","disabled","id","type"]),wr=Be("<button><!></button>");function kt(c,e){const n=yt();if(new.target)return te({component:kt,...c});ne(e,!0);let i=r(e,"children",7),d=r(e,"child",7),g=r(e,"ref",15,null),f=r(e,"value",7),y=r(e,"disabled",7,!1),C=r(e,"id",23,()=>Ve(n)),m=r(e,"type",7,"button"),w=Ee(e,Cr);const _=st.create({id:q(()=>C()),value:q(()=>f()),disabled:q(()=>y()??!1),ref:q(()=>g(),o=>g(o))}),P=I(()=>xt(w,_.props,{type:m()}));var v={get children(){return i()},set children(o){i(o),s()},get child(){return d()},set child(o){d(o),s()},get ref(){return g()},set ref(o=null){g(o),s()},get value(){return f()},set value(o){f(o),s()},get disabled(){return y()},set disabled(o=!1){y(o),s()},get id(){return C()},set id(o=Ve(n)){C(o),s()},get type(){return m()},set type(o="button"){m(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},x=V(),S=T(x);{var z=o=>{var p=V(),L=T(p);{let K=I(()=>({props:a(P),..._.snippetProps}));H(L,d,()=>a(K))}F(o,p)},b=o=>{var p=wr();at(p,()=>({...a(P)}));var L=de(p);H(L,()=>i()??fe,()=>_.snippetProps),ge(p),F(o,p)};Y(S,o=>{d()?o(z):o(b,-1)})}return F(c,x),ae(v)}var Sr=new Set(["$$slots","$$events","$$legacy","children","onSubmit","busy","enterKey","modEnter","class"]),Ir=Be('<form><fieldset class="contents"><!></fieldset></form>');function Ft(c,e){if(new.target)return te({component:Ft,...c});ne(e,!0);let n=r(e,"children",7),i=r(e,"onSubmit",7),d=r(e,"busy",7,!1),g=r(e,"enterKey",7,"submit"),f=r(e,"modEnter",7,"submit"),y=r(e,"class",7),C=Ee(e,Sr),m,w=N(!1);const _=I(()=>d()||a(w));async function P(o){if(o.preventDefault(),!a(_)){k(w,!0);try{await i()(o)}finally{k(w,!1)}}}function v(o){if(o.key!=="Enter"||o.isComposing||o.defaultPrevented||a(_))return;const p=o.target,L=hr(p),K=p.closest('button, a[href], select, summary, [role="button"], [role="link"], [role="checkbox"], [role="radio"], [role="switch"], [role="tab"], [role="menuitem"], [role="option"], [role="combobox"], [role="slider"]');if(K&&m.contains(K)||p instanceof HTMLInputElement&&!["text","search","email","url","tel","password","number"].includes(p.type))return;const t=o.metaKey||o.ctrlKey;(t?f()==="submit":!L&&g()==="submit")?(o.preventDefault(),m.requestSubmit()):(!L||t)&&o.preventDefault()}var x={get children(){return n()},set children(o){n(o),s()},get onSubmit(){return i()},set onSubmit(o){i(o),s()},get busy(){return d()},set busy(o=!1){d(o),s()},get enterKey(){return g()},set enterKey(o="submit"){g(o),s()},get modEnter(){return f()},set modEnter(o="submit"){f(o),s()},get class(){return y()},set class(o){y(o),s()},$set:re,$on:(o,p)=>se(e,o,p)},S=Ir();at(S,o=>({"data-slot":"form","aria-busy":a(_)||void 0,class:o,onsubmit:P,onkeydown:v,...C}),[()=>be("grid gap-4",y())]);var z=de(S),b=de(z);return H(b,n),ge(z),ge(S),fr(S,o=>m=o,()=>m),_e(()=>{z.disabled=a(_),wt(z,"aria-busy",a(_)||void 0)}),F(c,S),ae(x)}var Pr=Be('<div data-slot="form-actions"><div data-slot="form-actions-destructive" class="flex items-center"><!></div> <div data-slot="form-actions-end" class="ml-auto flex items-center gap-2"><!> <!> <!></div></div>');function Lt(c,e){if(new.target)return te({component:Lt,...c});ne(e,!0);let n=r(e,"destructive",7),i=r(e,"secondary",7),d=r(e,"primary",7),g=r(e,"hint",7),f=r(e,"class",7);const y=ar();var C={get destructive(){return n()},set destructive(b){n(b),s()},get secondary(){return i()},set secondary(b){i(b),s()},get primary(){return d()},set primary(b){d(b),s()},get hint(){return g()},set hint(b){g(b),s()},get class(){return f()},set class(b){f(b),s()},$set:re,$on:(b,o)=>se(e,b,o)},m=Pr(),w=de(m),_=de(w);H(_,()=>n()??fe),ge(w);var P=ve(w,2),v=de(P);{var x=b=>{ir(b,{children:(o,p)=>{$e();var L=et();_e(()=>tt(L,g())),F(o,L)},$$slots:{default:!0}})};Y(v,b=>{g()&&b(x)})}var S=ve(v,2);H(S,()=>i()??fe);var z=ve(S,2);return H(z,d),ge(P),ge(m),_e(b=>{wt(m,"data-size",y),dr(m,1,b)},[()=>cr(be("flex items-center justify-between",y==="compact"?"gap-2":"gap-3",f()))]),F(c,m),ae(C)}function zt(c,e){if(new.target)return te({component:zt,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"titleId",7),y=r(e,"descriptionId",7),C=r(e,"children",7),m=r(e,"footer",7),w=r(e,"submitLabel",23,()=>ce.modals_bulkActionConfirm_confirm_label()),_=r(e,"cancelLabel",23,()=>ce.modals_bulkActionConfirm_cancel_label()),P=r(e,"submitVariant",7,"primary"),v=r(e,"canSubmit",7,!0),x=r(e,"busy",7,!1),S=r(e,"submitBusy",7,!1),z=r(e,"role",7,"dialog"),b=r(e,"dismissOnInteractOutside",7,!0),o=r(e,"showCancel",7,!0),p=r(e,"showCloseButton",7,!0),L=r(e,"closeLabel",23,()=>ce.ui_dialog_close_ariaLabel()),K=r(e,"class",7),t=r(e,"size",7,"default"),l=r(e,"initialFocus",7),E=r(e,"focusContent",7,!1),B=r(e,"focusSubmit",7,!1),J=r(e,"focusCancel",7,!1),D=r(e,"escapeKeydownBehavior",7,"close"),G=r(e,"enterKey",7,"submit"),O=r(e,"modEnter",7,"submit"),ie=r(e,"onfocusin",7),W=r(e,"onCloseAutoFocus",7),X=r(e,"onSubmit",7),oe=r(e,"onCancel",7),ue=N(!1),j=N(""),Me=N(!1),Te=N(null),Re=N(null),Ne=N(null);const Q=I(()=>x()||a(ue));ye(()=>{n()&&(k(Me,!1),k(j,""))});function He(){a(Q)||a(Me)||(k(Me,!0),n(!1),oe()?.())}async function Bt(){if(!(a(Q)||S()||!v())){k(ue,!0),k(j,"");try{await X()()}catch{k(j,ce.ui_dialog_submitFailed_error(),!0)}finally{k(ue,!1)}}}function Tt(u){const Z=l()??(J()?a(Re):B()?a(Ne):E()?a(Te):null);Z&&(Z.focus(),Z.ownerDocument.activeElement===Z&&u.preventDefault())}var At={get open(){return n()},set open(u=!1){n(u),s()},get static(){return i()},set static(u=!1){i(u),s()},get title(){return d()},set title(u){d(u),s()},get description(){return g()},set description(u){g(u),s()},get titleId(){return f()},set titleId(u){f(u),s()},get descriptionId(){return y()},set descriptionId(u){y(u),s()},get children(){return C()},set children(u){C(u),s()},get footer(){return m()},set footer(u){m(u),s()},get submitLabel(){return w()},set submitLabel(u=ce.modals_bulkActionConfirm_confirm_label()){w(u),s()},get cancelLabel(){return _()},set cancelLabel(u=ce.modals_bulkActionConfirm_cancel_label()){_(u),s()},get submitVariant(){return P()},set submitVariant(u="primary"){P(u),s()},get canSubmit(){return v()},set canSubmit(u=!0){v(u),s()},get busy(){return x()},set busy(u=!1){x(u),s()},get submitBusy(){return S()},set submitBusy(u=!1){S(u),s()},get role(){return z()},set role(u="dialog"){z(u),s()},get dismissOnInteractOutside(){return b()},set dismissOnInteractOutside(u=!0){b(u),s()},get showCancel(){return o()},set showCancel(u=!0){o(u),s()},get showCloseButton(){return p()},set showCloseButton(u=!0){p(u),s()},get closeLabel(){return L()},set closeLabel(u=ce.ui_dialog_close_ariaLabel()){L(u),s()},get class(){return K()},set class(u){K(u),s()},get size(){return t()},set size(u="default"){t(u),s()},get initialFocus(){return l()},set initialFocus(u){l(u),s()},get focusContent(){return E()},set focusContent(u=!1){E(u),s()},get focusSubmit(){return B()},set focusSubmit(u=!1){B(u),s()},get focusCancel(){return J()},set focusCancel(u=!1){J(u),s()},get escapeKeydownBehavior(){return D()},set escapeKeydownBehavior(u="close"){D(u),s()},get enterKey(){return G()},set enterKey(u="submit"){G(u),s()},get modEnter(){return O()},set modEnter(u="submit"){O(u),s()},get onfocusin(){return ie()},set onfocusin(u){ie(u),s()},get onCloseAutoFocus(){return W()},set onCloseAutoFocus(u){W(u),s()},get onSubmit(){return X()},set onSubmit(u){X(u),s()},get onCancel(){return oe()},set onCancel(u){oe(u),s()},$set:re,$on:(u,Z)=>se(e,u,Z)},ot=V(),Kt=T(ot);return pe(Kt,()=>or,(u,Z)=>{Z(u,{get open(){return n()},get staticPosition(){return i()},onOpenChange:je=>!je&&He(),children:(je,Tr)=>{var ut=V(),Vt=T(ut);{let Ot=I(()=>be("flex min-h-0 flex-col overflow-hidden p-0",K()));pe(Vt,()=>ur,(Dt,Gt)=>{Gt(Dt,{get role(){return z()},get size(){return t()},get class(){return a(Ot)},get closeDisabled(){return a(Q)},get showCloseButton(){return p()},get closeLabel(){return L()},get escapeKeydownBehavior(){return D()},onOpenAutoFocus:Tt,get onCloseAutoFocus(){return W()},get onfocusin(){return ie()},onkeydown:M=>{M.key==="Escape"&&gr(a(Te),M)||M.key==="Escape"&&D()==="close"&&(M.preventDefault(),M.stopPropagation(),He())},onInteractOutside:M=>(a(Q)||!b())&&M.preventDefault(),onEscapeKeydown:M=>a(Q)&&M.preventDefault(),get ref(){return a(Te)},set ref(M){k(Te,M,!0)},children:(M,Ar)=>{Ft(M,{onSubmit:Bt,get busy(){return a(Q)},get enterKey(){return G()},get modEnter(){return O()},class:"flex min-h-0 min-w-0 flex-1 flex-col",children:(Mt,Kr)=>{lr(Mt,{get title(){return d()},get description(){return g()},get titleId(){return f()},get descriptionId(){return y()},get children(){return C()},get error(){return a(j)},footer:Rt=>{var lt=V(),Nt=T(lt);{var Ht=he=>{var Ue=V(),ct=T(Ue);H(ct,m),F(he,Ue)},jt=he=>{Lt(he,{secondary:qe=>{var Ae=V(),Je=T(Ae);{var We=le=>{mt(le,{variant:"ghost-light",get disabled(){return a(Q)},onclick:He,get ref(){return a(Re)},set ref(Ke){k(Re,Ke,!0)},children:(Ke,Xe)=>{$e();var dt=et();_e(()=>tt(dt,_())),F(Ke,dt)},$$slots:{default:!0}})};Y(Je,le=>{o()&&le(We)})}F(qe,Ae)},primary:qe=>{{let Ae=I(()=>B()?"focus-visible:outline focus-visible:-outline-offset-1":void 0),Je=I(()=>a(Q)||S()),We=I(()=>!v()||a(Q)||S());mt(qe,{type:"submit",get variant(){return P()},get class(){return a(Ae)},get loading(){return a(Je)},get disabled(){return a(We)},get ref(){return a(Ne)},set ref(le){k(Ne,le,!0)},children:(le,Ke)=>{$e();var Xe=et();_e(()=>tt(Xe,w())),F(le,Xe)},$$slots:{default:!0}})}},$$slots:{secondary:!0,primary:!0}})};Y(Nt,he=>{m()?he(Ht):he(jt,-1)})}F(Rt,lt)},$$slots:{footer:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})})}F(je,ut)},$$slots:{default:!0}})}),F(c,ot),ae(At)}function kr(c,e){if(new.target)return te({component:kr,...c});ne(e,!0);let n=r(e,"open",15,!1),i=r(e,"static",7,!1),d=r(e,"title",7),g=r(e,"description",7),f=r(e,"confirmLabel",7),y=r(e,"cancelLabel",7),C=r(e,"details",7),m=r(e,"busy",7,!1),w=r(e,"submitBusy",7,!1),_=r(e,"canSubmit",7,!0),P=r(e,"focusSubmit",7,!0),v=r(e,"focusCancel",7,!1),x=r(e,"enterKey",7,"submit"),S=r(e,"modEnter",7,"submit"),z=r(e,"destructive",7,!0),b=r(e,"class",7),o=r(e,"closeLabel",7),p=r(e,"onConfirm",7),L=r(e,"onCancel",7);var K={get open(){return n()},set open(t=!1){n(t),s()},get static(){return i()},set static(t=!1){i(t),s()},get title(){return d()},set title(t){d(t),s()},get description(){return g()},set description(t){g(t),s()},get confirmLabel(){return f()},set confirmLabel(t){f(t),s()},get cancelLabel(){return y()},set cancelLabel(t){y(t),s()},get details(){return C()},set details(t){C(t),s()},get busy(){return m()},set busy(t=!1){m(t),s()},get submitBusy(){return w()},set submitBusy(t=!1){w(t),s()},get canSubmit(){return _()},set canSubmit(t=!0){_(t),s()},get focusSubmit(){return P()},set focusSubmit(t=!0){P(t),s()},get focusCancel(){return v()},set focusCancel(t=!1){v(t),s()},get enterKey(){return x()},set enterKey(t="submit"){x(t),s()},get modEnter(){return S()},set modEnter(t="submit"){S(t),s()},get destructive(){return z()},set destructive(t=!0){z(t),s()},get class(){return b()},set class(t){b(t),s()},get closeLabel(){return o()},set closeLabel(t){o(t),s()},get onConfirm(){return p()},set onConfirm(t){p(t),s()},get onCancel(){return L()},set onCancel(t){L(t),s()},$set:re,$on:(t,l)=>se(e,t,l)};{let t=I(()=>z()?"destructive":"default");zt(c,{get static(){return i()},get title(){return d()},get description(){return g()},get submitLabel(){return f()},get cancelLabel(){return y()},get submitVariant(){return a(t)},get busy(){return m()},get submitBusy(){return w()},get canSubmit(){return _()},get focusSubmit(){return P()},get focusCancel(){return v()},get enterKey(){return x()},get modEnter(){return S()},get class(){return b()},get closeLabel(){return o()},get onSubmit(){return p()},get onCancel(){return L()},get open(){return n()},set open(l){n(l)},children:(l,E)=>{var B=V(),J=T(B);{var D=G=>{var O=V(),ie=T(O);H(ie,C),F(G,O)};Y(J,G=>{C()&&G(D)})}F(l,B)},$$slots:{default:!0}})}return ae(K)}var R,ke,Fe,Le,ze;class Fr{constructor(e,n){A(this,R,N(Jt([])));A(this,ke);A(this,Fe);A(this,Le,N(null));A(this,ze,N(0));Ye(this,ke,e),Ye(this,Fe,n)}get hover(){return a(h(this,Le))}set hover(e){k(h(this,Le),e,!0)}get keyboardIndex(){return a(h(this,ze))}set keyboardIndex(e){k(h(this,ze),e,!0)}get selectedIndexes(){const e=new Set(h(this,ke).call(this));return a(h(this,R)).flatMap((n,i)=>n&&e.has(n.value)?[i]:[])}allocate(e){return $(()=>{const n={value:e,element:null,disabled:!1},i=a(h(this,R)).indexOf(void 0);return i<0?a(h(this,R)).push(n)-1:(a(h(this,R))[i]=n,i)})}release(e){$(()=>{a(h(this,R))[e]&&(a(h(this,R))[e]=void 0,this.hover?.activeIndex===e&&this.hover.setActiveIndex(null),this.hover?.registerItem(e,null))})}update(e,n,i){$(()=>{const d=a(h(this,R))[e];d&&(d.value=n,d.disabled=i)})}register(e,n){$(()=>{const i=a(h(this,R))[e];i&&(i.element=n,this.hover?.registerItem(e,n))})}connect(e){$(()=>{this.hover?.destroy(),this.hover=mr(e,{axis:h(this,Fe)});for(const[n,i]of a(h(this,R)).entries())i?.element&&this.hover.registerItem(n,i.element)})}disconnect(){$(()=>{this.hover?.destroy(),this.hover=null})}activate(e){this.keyboardIndex=e,this.hover?.setActiveIndex(e)}focusAdjacent(e,n){const i=a(h(this,R)).map((f,y)=>({entry:f,entryIndex:y})).filter(({entry:f})=>f?.element&&!f.disabled),d=i.findIndex(({entryIndex:f})=>f===e);if(d<0||i.length===0)return;const g=i[(d+n+i.length)%i.length];this.activate(g.entryIndex),g.entry?.element?.focus()}}R=new WeakMap,ke=new WeakMap,Fe=new WeakMap,Le=new WeakMap,ze=new WeakMap;const Et=Symbol("toggle-group");var Lr=new Set(["$$slots","$$events","$$legacy","value","onValueChange","type","disabled","axis","variant","size","class","children"]),vt=Be("<!> <!>",1);function zr(c,e){if(new.target)return te({component:zr,...c});ne(e,!0);const n=Ct({base:"relative isolate inline-flex shrink-0 items-center justify-center gap-0.5 rounded-(--radius-medium) border-0 bg-card",variants:{variant:{default:"shadow-(--elevation-raised)",outline:"border border-border shadow-none",flat:"bg-muted/40 shadow-none"},size:{default:"",xs:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",15),d=r(e,"onValueChange",7),g=r(e,"type",7,"single"),f=r(e,"disabled",7,!1),y=r(e,"axis",7,"x"),C=r(e,"variant",7,"default"),m=r(e,"size",7,"default"),w=r(e,"class",7,""),_=r(e,"children",7),P=Ee(e,Lr),v=N(null);const x=new Fr(()=>Array.isArray(i())?i():typeof i()=="string"&&i()?[i()]:[],$(()=>y()));Wt(Et,{state:x,get size(){return m()},get variant(){return C()}}),ye(()=>{if(a(v))return x.connect(a(v)),()=>x.disconnect()});function S(t){i(t),d()?.(t)}function z(t){i(t),d()?.(t)}var b={get value(){return i()},set value(t){i(t),s()},get onValueChange(){return d()},set onValueChange(t){d(t),s()},get type(){return g()},set type(t="single"){g(t),s()},get disabled(){return f()},set disabled(t=!1){f(t),s()},get axis(){return y()},set axis(t="x"){y(t),s()},get variant(){return C()},set variant(t="default"){C(t),s()},get size(){return m()},set size(t="default"){m(t),s()},get class(){return w()},set class(t=""){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},o=V(),p=T(o);{var L=t=>{var l=V(),E=T(l);{let B=I(()=>Array.isArray(i())?i():[]),J=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"multiple",get value(){return a(B)},onValueChange:z,get disabled(){return f()},get class(){return a(J)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var W=vt(),X=T(W);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,W)},$$slots:{default:!0}}))})}F(t,l)},K=t=>{var l=V(),E=T(l);{let B=I(()=>typeof i()=="string"?i():""),J=I(()=>be(n({variant:C(),size:m()}),w()));pe(E,()=>nt,(D,G)=>{G(D,Ze({type:"single",get value(){return a(B)},onValueChange:S,get disabled(){return f()},get class(){return a(J)}},()=>P,{get ref(){return a(v)},set ref(O){k(v,O,!0)},children:(O,ie)=>{var W=vt(),X=T(W);{var oe=j=>{bt(j,{get store(){return x.hover},get selectedIndexes(){return x.selectedIndexes}})};Y(X,j=>{x.hover&&j(oe)})}var ue=ve(X,2);H(ue,()=>_()??fe),F(O,W)},$$slots:{default:!0}}))})}F(t,l)};Y(p,t=>{g()==="multiple"?t(L):t(K,-1)})}return F(c,o),ae(b)}var Er=new Set(["$$slots","$$events","$$legacy","value","disabled","variant","size","tooltip","class","onclick","onfocus","children"]);function Br(c,e){if(new.target)return te({component:Br,...c});ne(e,!0);const n=Ct({base:"type-caption relative z-10 inline-flex shrink-0 cursor-pointer items-center justify-center whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal text-muted-foreground transition-[color,font-weight] duration-spring-fast ease-spring-fast hover:text-foreground active:bg-active disabled:pointer-events-none disabled:opacity-50 data-[state=on]:[--text-caption-weight:500] data-[state=on]:text-foreground motion-reduce:transition-none",variants:{variant:{default:"",outline:"bg-transparent",flat:""},size:{default:"h-(--control-height-medium) min-w-8 px-2",xs:"h-(--control-height-small) min-w-7 px-1.5",sm:"h-(--control-height-small) min-w-7 px-1.5",lg:"h-(--control-height-large) min-w-9 px-2.5"}},defaultVariants:{variant:"default",size:"default"}});let i=r(e,"value",7),d=r(e,"disabled",7,!1),g=r(e,"variant",7,void 0),f=r(e,"size",7,void 0),y=r(e,"tooltip",7,void 0),C=r(e,"class",7,""),m=r(e,"onclick",7),w=r(e,"onfocus",7),_=r(e,"children",7),P=Ee(e,Er);const v=Xt(Et),x=v.state.allocate($(()=>i()));let S=N(null);const z=I(()=>f()??v?.size??"default"),b=I(()=>g()??v?.variant??"default");ye(()=>v.state.update(x,i(),d())),ye(()=>(v.state.register(x,a(S)),()=>v.state.register(x,null)));function o(t){v.state.activate(x),w()?.(t)}var p={get value(){return i()},set value(t){i(t),s()},get disabled(){return d()},set disabled(t=!1){d(t),s()},get variant(){return g()},set variant(t=void 0){g(t),s()},get size(){return f()},set size(t=void 0){f(t),s()},get tooltip(){return y()},set tooltip(t=void 0){y(t),s()},get class(){return C()},set class(t=""){C(t),s()},get onclick(){return m()},set onclick(t){m(t),s()},get onfocus(){return w()},set onfocus(t){w(t),s()},get children(){return _()},set children(t){_(t),s()},$set:re,$on:(t,l)=>se(e,t,l)},L=V(),K=T(L);{let t=I(()=>be(n({variant:a(b),size:a(z)}),C()));pe(K,()=>kt,(l,E)=>{E(l,Ze({get value(){return i()},get title(){return y()},get disabled(){return d()},get onclick(){return m()},onfocus:o,get class(){return a(t)}},()=>P,{get ref(){return a(S)},set ref(B){k(S,B,!0)},children:(B,J)=>{var D=V(),G=T(D);H(G,()=>_()??fe),F(B,D)},$$slots:{default:!0}}))})}return F(c,L),ae(p)}export{Fr as C,kr as D,Ft as F,zr as T,Lt as a,zt as b,Br as c};
@@ -1,4 +1,4 @@
1
- import{p as Mt}from"./Dr8wriKt.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./BKjGGpm1.js";import{p as Rt}from"./DBZdNxOK.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
1
+ import{p as Mt}from"./Bvt4TKMh.js";import{aZ as Nt,U as zt,Y as Lt,b0 as Tt,V as Xt,a_ as At,b as u,a6 as Et,W as Yt,q as J,ay as Q,aX as It,B as Bt,r as Ft,X as V}from"./D0BUPqIH.js";import{p as Rt}from"./CgWmg0h0.js";var G=u((o,r)=>{const e=o<=1?o*100:o;if(e<0||e>100)throw new Error(`${r} must be between 0-1 (decimal) or 0-100 (percentage). Received: ${o}`);return e},"toPercent"),X=u((o,r,e)=>({x:G(r,`${e} evolution`),y:G(o,`${e} visibility`)}),"toCoordinates"),K=u(o=>{if(o){if(o==="+<>")return"bidirectional";if(o==="+<")return"backward";if(o==="+>")return"forward"}},"getFlowFromPort"),Ot=u(o=>{if(!o?.startsWith("+"))return{};const e=/^\+'([^']*)'/.exec(o)?.[1];return o.includes("<>")?{flow:"bidirectional",label:e}:o.includes("<")?{flow:"backward",label:e}:o.includes(">")?{flow:"forward",label:e}:{label:e}},"extractFlowFromArrow"),Wt=u((o,r)=>{if(Mt(o,r),o.size&&r.setSize(o.size.width,o.size.height),o.evolution){const e=o.evolution.stages.map(a=>a.secondName?`${a.name.trim()} / ${a.secondName.trim()}`:a.name.trim()),h=o.evolution.stages.filter(a=>a.boundary!==void 0).map(a=>a.boundary);r.updateAxes({stages:e,stageBoundaries:h})}if(o.anchors.forEach(e=>{const h=X(e.visibility,e.evolution,`Anchor "${e.name}"`);r.addNode(e.name,e.name,h.x,h.y,"anchor")}),o.components.forEach(e=>{const h=X(e.visibility,e.evolution,`Component "${e.name}"`),a=e.label?(e.label.negX?-1:1)*e.label.offsetX:void 0,d=e.label?(e.label.negY?-1:1)*e.label.offsetY:void 0,w=e.decorator?.strategy;r.addNode(e.name,e.name,h.x,h.y,"component",a,d,e.inertia,w)}),o.notes.forEach(e=>{const h=X(e.visibility,e.evolution,`Note "${e.text}"`);r.addNote(e.text,h.x,h.y)}),o.pipelines.forEach(e=>{const h=r.getNode(e.parent);if(!h||typeof h.y!="number")throw new Error(`Pipeline "${e.parent}" must reference an existing component with coordinates.`);const a=h.y;r.startPipeline(e.parent),e.components.forEach(d=>{const w=`${e.parent}_${d.name}`,C=d.label?(d.label.negX?-1:1)*d.label.offsetX:void 0,g=d.label?(d.label.negY?-1:1)*d.label.offsetY:void 0,R=G(d.evolution,`Pipeline component "${d.name}" evolution`);r.addNode(w,d.name,R,a,"pipeline-component",C,g),r.addPipelineComponent(e.parent,w)})}),o.links.forEach(e=>{const h=!!e.arrow&&(e.arrow.includes("-.->")||e.arrow.includes(".-."));let a=K(e.fromPort)??K(e.toPort);const{flow:d,label:w}=Ot(e.arrow);!a&&d&&(a=d);const C=e.linkLabel,g=w??C;r.addLink(r.resolveNodeId(e.from),r.resolveNodeId(e.to),h,g,a)}),o.evolves.forEach(e=>{const h=r.getNode(e.component);if(h?.y!==void 0){const a=G(e.target,`Evolve target for "${e.component}"`);r.addTrend(e.component,a,h.y)}}),o.annotations.length>0){const e=o.annotations[0],h=X(e.x,e.y,"Annotations box");r.setAnnotationsBox(h.x,h.y)}o.annotation.forEach(e=>{const h=X(e.x,e.y,`Annotation ${e.number}`);r.addAnnotation(e.number,[{x:h.x,y:h.y}],e.text)}),o.accelerators.forEach(e=>{const h=X(e.x,e.y,`Accelerator "${e.name}"`);r.addAccelerator(e.name,h.x,h.y)}),o.deaccelerators.forEach(e=>{const h=X(e.x,e.y,`Deaccelerator "${e.name}"`);r.addDeaccelerator(e.name,h.x,h.y)})},"populateDb"),tt={parser:{yy:void 0},parse:u(async o=>{const r=await Rt("wardley",o);Q.debug(r);const e=tt.parser?.yy;if(!e||typeof e.addNode!="function")throw new Error("parser.parser?.yy was not a WardleyDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues.");Wt(r,e)},"parse")},E,Dt=(E=class{constructor(){this.nodes=new Map,this.links=[],this.trends=new Map,this.pipelines=new Map,this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.axes={}}addNode(r){const e=this.nodes.get(r.id)??{id:r.id,label:r.label},h={...e,...r,className:r.className??e.className,labelOffsetX:r.labelOffsetX??e.labelOffsetX,labelOffsetY:r.labelOffsetY??e.labelOffsetY};this.nodes.set(r.id,h)}addLink(r){this.links.push(r)}addTrend(r){this.trends.set(r.nodeId,r)}startPipeline(r){this.pipelines.set(r,{nodeId:r,componentIds:[]});const e=this.nodes.get(r);e&&(e.isPipelineParent=!0)}addPipelineComponent(r,e){const h=this.pipelines.get(r);h&&h.componentIds.push(e);const a=this.nodes.get(e);a&&(a.inPipeline=!0)}addAnnotation(r){this.annotations.push(r)}addNote(r){this.notes.push(r)}addAccelerator(r){this.accelerators.push(r)}addDeaccelerator(r){this.deaccelerators.push(r)}setAnnotationsBox(r,e){this.annotationsBox={x:r,y:e}}setAxes(r){this.axes={...this.axes,...r}}setSize(r,e){this.size={width:r,height:e}}getNode(r){return this.nodes.get(r)}resolveNodeId(r){if(this.nodes.has(r))return r;for(const[e,h]of this.nodes)if(h.label===r)return e;return r}build(){const r=[];for(const e of this.nodes.values()){if(typeof e.x!="number"||typeof e.y!="number")throw new Error(`Node "${e.label}" is missing coordinates`);r.push(e)}return{nodes:r,links:[...this.links],trends:[...this.trends.values()],pipelines:[...this.pipelines.values()],annotations:[...this.annotations],notes:[...this.notes],accelerators:[...this.accelerators],deaccelerators:[...this.deaccelerators],annotationsBox:this.annotationsBox,axes:{...this.axes},size:this.size}}clear(){this.nodes.clear(),this.links=[],this.trends.clear(),this.pipelines.clear(),this.annotations=[],this.notes=[],this.accelerators=[],this.deaccelerators=[],this.annotationsBox=void 0,this.axes={},this.size=void 0}},u(E,"WardleyBuilder"),E),k=new Dt;function et(){return V()["wardley-beta"]}u(et,"getConfig");function at(o,r,e,h,a,d,w,C,g){k.addNode({id:o,label:r,x:e,y:h,className:a,labelOffsetX:d,labelOffsetY:w,inertia:C,sourceStrategy:g})}u(at,"addNode");function rt(o,r,e=!1,h,a){k.addLink({source:o,target:r,dashed:e,label:h,flow:a})}u(rt,"addLink");function ot(o,r,e){k.addTrend({nodeId:o,targetX:r,targetY:e})}u(ot,"addTrend");function nt(o,r,e){k.addAnnotation({number:o,coordinates:r,text:e})}u(nt,"addAnnotation");function st(o,r,e){k.addNote({text:o,x:r,y:e})}u(st,"addNote");function it(o,r,e){k.addAccelerator({name:o,x:r,y:e})}u(it,"addAccelerator");function dt(o,r,e){k.addDeaccelerator({name:o,x:r,y:e})}u(dt,"addDeaccelerator");function lt(o,r){k.setAnnotationsBox(o,r)}u(lt,"setAnnotationsBox");function ct(o,r){k.setSize(o,r)}u(ct,"setSize");function pt(o){k.startPipeline(o)}u(pt,"startPipeline");function ft(o,r){k.addPipelineComponent(o,r)}u(ft,"addPipelineComponent");function ht(o){k.setAxes(o)}u(ht,"updateAxes");function xt(o){return k.getNode(o)}u(xt,"getNode");function gt(o){return k.resolveNodeId(o)}u(gt,"resolveNodeId");function yt(){return k.build()}u(yt,"getWardleyData");function ut(){k.clear(),Ft()}u(ut,"clear");var Gt={getConfig:et,addNode:at,addLink:rt,addTrend:ot,addAnnotation:nt,addNote:st,addAccelerator:it,addDeaccelerator:dt,setAnnotationsBox:lt,setSize:ct,startPipeline:pt,addPipelineComponent:ft,updateAxes:ht,getNode:xt,resolveNodeId:gt,getWardleyData:yt,clear:ut,setAccTitle:At,getAccTitle:Xt,setDiagramTitle:Tt,getDiagramTitle:Lt,getAccDescription:zt,setAccDescription:Nt},qt=["Genesis","Custom Built","Product","Commodity"],Ht=u(()=>{const{themeVariables:o}=V();return{backgroundColor:o.wardley?.backgroundColor??o.background??"#fff",axisColor:o.wardley?.axisColor??"#000",axisTextColor:o.wardley?.axisTextColor??o.primaryTextColor??"#222",gridColor:o.wardley?.gridColor??"rgba(100, 100, 100, 0.2)",componentFill:o.wardley?.componentFill??"#fff",componentStroke:o.wardley?.componentStroke??"#000",componentLabelColor:o.wardley?.componentLabelColor??o.primaryTextColor??"#222",linkStroke:o.wardley?.linkStroke??"#000",evolutionStroke:o.wardley?.evolutionStroke??"#dc3545",annotationStroke:o.wardley?.annotationStroke??"#000",annotationTextColor:o.wardley?.annotationTextColor??o.primaryTextColor??"#222",annotationFill:o.wardley?.annotationFill??o.background??"#fff"}},"getTheme"),jt=u(()=>{const o=V()["wardley-beta"];return{width:o?.width??900,height:o?.height??600,padding:o?.padding??48,nodeRadius:o?.nodeRadius??6,nodeLabelOffset:o?.nodeLabelOffset??8,axisFontSize:o?.axisFontSize??12,labelFontSize:o?.labelFontSize??10,showGrid:o?.showGrid??!1,useMaxWidth:o?.useMaxWidth??!0}},"getConfigValues"),Vt=u((o,r,e,h)=>{Q.debug(`Rendering Wardley map
2
2
  `+o);const a=jt(),d=Ht(),w=a.nodeRadius*1.6,C=h.db,g=C.getWardleyData(),R=C.getDiagramTitle(),S=g.size?.width??a.width,b=g.size?.height??a.height,Y=It(r);Y.selectAll("*").remove(),Bt(Y,b,S,a.useMaxWidth),Y.attr("viewBox",`0 0 ${S} ${b}`);const v=Y.append("g").attr("class","wardley-map"),q=Y.append("defs");q.append("marker").attr("id",`arrow-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",6).attr("markerHeight",6).attr("orient","auto-start-reverse").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.evolutionStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-end-${r}`).attr("viewBox","0 0 10 10").attr("refX",9).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("fill",d.linkStroke).attr("stroke","none"),q.append("marker").attr("id",`link-arrow-start-${r}`).attr("viewBox","0 0 10 10").attr("refX",1).attr("refY",5).attr("markerWidth",5).attr("markerHeight",5).attr("orient","auto").append("path").attr("d","M 10 0 L 0 5 L 10 10 z").attr("fill",d.linkStroke).attr("stroke","none"),v.append("rect").attr("class","wardley-background").attr("width",S).attr("height",b).attr("fill",d.backgroundColor);const I=S-a.padding*2,B=b-a.padding*2;R&&v.append("text").attr("class","wardley-title").attr("x",S/2).attr("y",a.padding/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize*1.05).attr("font-weight","bold").attr("text-anchor","middle").attr("dominant-baseline","middle").text(R);const z=u(t=>a.padding+t/100*I,"projectX"),L=u(t=>b-a.padding-t/100*B,"projectY"),O=v.append("g").attr("class","wardley-axes");O.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1),O.append("line").attr("x1",a.padding).attr("x2",a.padding).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.axisColor).attr("stroke-width",1);const wt=g.axes.xLabel??"Evolution",mt=g.axes.yLabel??"Visibility";O.append("text").attr("class","wardley-axis-label wardley-axis-label-x").attr("x",a.padding+I/2).attr("y",b-a.padding/4).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").text(wt),O.append("text").attr("class","wardley-axis-label wardley-axis-label-y").attr("x",a.padding/3).attr("y",a.padding+B/2).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize).attr("font-weight","bold").attr("text-anchor","middle").attr("transform",`rotate(-90 ${a.padding/3} ${a.padding+B/2})`).text(mt);const F=g.axes.stages&&g.axes.stages.length>0?g.axes.stages:qt;if(F.length>0){const t=v.append("g").attr("class","wardley-stages"),s=g.axes.stageBoundaries,n=[];if(s&&s.length===F.length){let i=0;s.forEach(p=>{n.push({start:i,end:p}),i=p})}else{const i=1/F.length;F.forEach((p,l)=>{n.push({start:l*i,end:(l+1)*i})})}F.forEach((i,p)=>{const l=n[p],f=a.padding+l.start*I,x=a.padding+l.end*I,y=(f+x)/2;p>0&&t.append("line").attr("x1",f).attr("x2",f).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke","#000").attr("stroke-width",1).attr("stroke-dasharray","5 5").attr("opacity",.8),t.append("text").attr("class","wardley-stage-label").attr("x",y).attr("y",b-a.padding/1.5).attr("fill",d.axisTextColor).attr("font-size",a.axisFontSize-2).attr("text-anchor","middle").text(i)})}if(a.showGrid){const t=v.append("g").attr("class","wardley-grid");for(let s=1;s<4;s++){const n=s/4,i=a.padding+I*n;t.append("line").attr("x1",i).attr("x2",i).attr("y1",a.padding).attr("y2",b-a.padding).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6"),t.append("line").attr("x1",a.padding).attr("x2",S-a.padding).attr("y1",b-a.padding-B*n).attr("y2",b-a.padding-B*n).attr("stroke",d.gridColor).attr("stroke-dasharray","2 6")}}const c=new Map;if(g.nodes.forEach(t=>{c.set(t.id,{x:z(t.x),y:L(t.y),node:t})}),g.pipelines.length>0){const t=v.append("g").attr("class","wardley-pipelines"),s=v.append("g").attr("class","wardley-pipeline-links");g.pipelines.forEach(n=>{if(n.componentIds.length===0)return;const i=n.componentIds.map(x=>({id:x,pos:c.get(x),node:g.nodes.find(y=>y.id===x)})).filter(x=>x.pos&&x.node).sort((x,y)=>x.node.x-y.node.x);for(let x=0;x<i.length-1;x++){const y=i[x],m=i[x+1];s.append("line").attr("class","wardley-pipeline-evolution-link").attr("x1",y.pos.x).attr("y1",y.pos.y).attr("x2",m.pos.x).attr("y2",m.pos.y).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4")}let p=1/0,l=-1/0,f=0;if(n.componentIds.forEach(x=>{const y=c.get(x);y&&(p=Math.min(p,y.x),l=Math.max(l,y.x),f=y.y)}),p!==1/0&&l!==-1/0){const y=a.nodeRadius*4,m=f-y/2,P=c.get(n.nodeId);if(P){const N=(p+l)/2;P.x=N,P.y=m-w/6}t.append("rect").attr("class","wardley-pipeline-box").attr("x",p-15).attr("y",m).attr("width",l-p+30).attr("height",y).attr("fill","none").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}})}const _=v.append("g").attr("class","wardley-links"),Z=new Map;g.pipelines.forEach(t=>{Z.set(t.nodeId,new Set(t.componentIds))});const U=g.links.filter(t=>!(!c.has(t.source)||!c.has(t.target)||Z.get(t.target)?.has(t.source)));_.selectAll("line").data(U).enter().append("line").attr("class",t=>`wardley-link${t.dashed?" wardley-link--dashed":""}`).attr("x1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.x+l/x*p}).attr("y1",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.source).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f);return s.y+f/x*p}).attr("x2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.x+l/x*p}).attr("y2",t=>{const s=c.get(t.source),n=c.get(t.target),p=g.nodes.find(y=>y.id===t.target).isPipelineParent?w/Math.sqrt(2):a.nodeRadius,l=s.x-n.x,f=s.y-n.y,x=Math.sqrt(l*l+f*f);return n.y+f/x*p}).attr("stroke",d.linkStroke).attr("stroke-width",1).attr("stroke-dasharray",t=>t.dashed?"6 6":null).attr("marker-end",t=>t.flow==="forward"||t.flow==="bidirectional"?`url(#link-arrow-end-${r})`:null).attr("marker-start",t=>t.flow==="backward"||t.flow==="bidirectional"?`url(#link-arrow-start-${r})`:null),_.selectAll("text").data(U.filter(t=>t.label)).enter().append("text").attr("class","wardley-link-label").attr("x",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=n.y-s.y,l=n.x-s.x,f=Math.sqrt(l*l+p*p),x=8,y=p/f;return i+y*x}).attr("y",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.y+n.y)/2,p=n.x-s.x,l=n.y-s.y,f=Math.sqrt(p*p+l*l),x=8,y=-p/f;return i+y*x}).attr("fill",d.axisTextColor).attr("font-size",a.labelFontSize).attr("text-anchor","middle").attr("dominant-baseline","middle").attr("transform",t=>{const s=c.get(t.source),n=c.get(t.target),i=(s.x+n.x)/2,p=(s.y+n.y)/2,l=n.x-s.x,f=n.y-s.y,x=Math.sqrt(l*l+f*f),y=8,m=f/x,P=-l/x,N=i+m*y,W=p+P*y;let A=Math.atan2(f,l)*180/Math.PI;return(A>90||A<-90)&&(A+=180),`rotate(${A} ${N} ${W})`}).text(t=>t.label);const kt=v.append("g").attr("class","wardley-trends"),bt=g.trends.map(t=>{const s=c.get(t.nodeId);if(!s)return null;const n=z(t.targetX),i=L(t.targetY),p=n-s.x,l=i-s.y,f=Math.sqrt(p*p+l*l),x=a.nodeRadius+2,y=f>x?n-p/f*x:n,m=f>x?i-l/f*x:i;return{origin:s,targetX:n,targetY:i,adjustedX2:y,adjustedY2:m}}).filter(t=>t!==null);kt.selectAll("line").data(bt).enter().append("line").attr("class","wardley-trend").attr("x1",t=>t.origin.x).attr("y1",t=>t.origin.y).attr("x2",t=>t.adjustedX2).attr("y2",t=>t.adjustedY2).attr("stroke",d.evolutionStroke).attr("stroke-width",1).attr("stroke-dasharray","4 4").attr("marker-end",`url(#arrow-${r})`);const M=v.append("g").attr("class","wardley-nodes").selectAll("g").data(g.nodes).enter().append("g").attr("class",t=>["wardley-node",t.className?`wardley-node--${t.className}`:""].filter(Boolean).join(" "));M.filter(t=>t.sourceStrategy==="outsource").append("circle").attr("class","wardley-outsource-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#666").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="buy").append("circle").attr("class","wardley-buy-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#ccc").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.sourceStrategy==="build").append("circle").attr("class","wardley-build-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","#eee").attr("stroke","#000").attr("stroke-width",1);const T=M.filter(t=>t.sourceStrategy==="market");T.append("circle").attr("class","wardley-market-overlay").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius*2).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>!t.isPipelineParent&&t.sourceStrategy!=="market"&&t.className!=="anchor").append("circle").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y).attr("r",a.nodeRadius).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1);const H=a.nodeRadius*.7,$=a.nodeRadius*1.2;if(T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x).attr("y1",t=>c.get(t.id).y-$).attr("x2",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y2",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("line").attr("class","wardley-market-line").attr("x1",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("y1",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("x2",t=>c.get(t.id).x).attr("y2",t=>c.get(t.id).y-$).attr("stroke",d.componentStroke).attr("stroke-width",1),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x).attr("cy",t=>c.get(t.id).y-$).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x-$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),T.append("circle").attr("class","wardley-market-dot").attr("cx",t=>c.get(t.id).x+$*Math.cos(Math.PI/6)).attr("cy",t=>c.get(t.id).y+$*Math.sin(Math.PI/6)).attr("r",H).attr("fill","white").attr("stroke",d.componentStroke).attr("stroke-width",2),M.filter(t=>t.isPipelineParent===!0).append("rect").attr("x",t=>c.get(t.id).x-w/2).attr("y",t=>c.get(t.id).y-w/2).attr("width",w).attr("height",w).attr("fill",d.componentFill).attr("stroke",d.componentStroke).attr("stroke-width",1),M.filter(t=>t.inertia===!0).append("line").attr("class","wardley-inertia").attr("x1",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y1",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y-n/2}).attr("x2",t=>{const s=c.get(t.id);let n=t.isPipelineParent?w/2+15:a.nodeRadius+15;return t.sourceStrategy&&(n+=a.nodeRadius+10),s.x+n}).attr("y2",t=>{const s=c.get(t.id),n=t.isPipelineParent?w:a.nodeRadius*2;return s.y+n/2}).attr("stroke",d.componentStroke).attr("stroke-width",6),M.append("text").attr("x",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetX!==void 0?s.x+t.labelOffsetX:s.x;let n=a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetX===void 0&&(n+=10);const i=t.labelOffsetX??n;return s.x+i}).attr("y",t=>{const s=c.get(t.id);if(t.className==="anchor")return t.labelOffsetY!==void 0?s.y+t.labelOffsetY:s.y-3;let n=-a.nodeLabelOffset;t.sourceStrategy&&t.labelOffsetY===void 0&&(n-=10);const i=t.labelOffsetY??n;return s.y+i}).attr("class","wardley-node-label").attr("fill",t=>t.className==="evolved"?d.evolutionStroke:t.className==="anchor"?"#000":d.componentLabelColor).attr("font-size",a.labelFontSize).attr("font-weight",t=>t.className==="anchor"?"bold":"normal").attr("text-anchor",t=>t.className==="anchor"?"middle":"start").attr("dominant-baseline",t=>t.className==="anchor"?"middle":"auto").text(t=>t.label),g.annotations.length>0){const t=v.append("g").attr("class","wardley-annotations");if(g.annotations.forEach(s=>{const n=s.coordinates.map(i=>({x:z(i.x),y:L(i.y)}));if(n.length>1)for(let i=0;i<n.length-1;i++)t.append("line").attr("class","wardley-annotation-line").attr("x1",n[i].x).attr("y1",n[i].y).attr("x2",n[i+1].x).attr("y2",n[i+1].y).attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("stroke-dasharray","4 4");n.forEach(i=>{const p=t.append("g").attr("class","wardley-annotation");p.append("circle").attr("cx",i.x).attr("cy",i.y).attr("r",10).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5),p.append("text").attr("x",i.x).attr("y",i.y).attr("text-anchor","middle").attr("dominant-baseline","central").attr("font-size",10).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.number)})}),g.annotationsBox){let s=z(g.annotationsBox.x),n=L(g.annotationsBox.y);const i=10,p=16,l=11,f=t.append("g").attr("class","wardley-annotations-box"),x=[...g.annotations].filter(m=>m.text).sort((m,P)=>m.number-P.number),y=[];if(x.forEach((m,P)=>{const N=f.append("text").attr("x",s+i).attr("y",n+i+(P+1)*p).attr("font-size",l).attr("fill",d.axisTextColor).attr("text-anchor","start").attr("dominant-baseline","middle").text(`${m.number}. ${m.text}`);y.push(N)}),y.length>0){let m=0,P=0;y.forEach(j=>{const D=j.node(),Ct=D.getComputedTextLength();m=Math.max(m,Ct);const St=D.getBBox();P=Math.max(P,St.height)});const N=m+i*2+105,W=x.length*p+i*2+P/2,A=a.padding,$t=S-a.padding-N,vt=a.padding,Pt=b-a.padding-W;s=Math.max(A,Math.min(s,$t)),n=Math.max(vt,Math.min(n,Pt)),y.forEach((j,D)=>{j.attr("x",s+i).attr("y",n+i+(D+1)*p)}),f.insert("rect","text").attr("x",s).attr("y",n).attr("width",N).attr("height",W).attr("fill","white").attr("stroke",d.axisColor).attr("stroke-width",1.5).attr("rx",4).attr("ry",4)}}}if(g.notes.length>0){const t=v.append("g").attr("class","wardley-notes");g.notes.forEach(s=>{const n=z(s.x),i=L(s.y);t.append("text").attr("x",n).attr("y",i).attr("text-anchor","start").attr("font-size",11).attr("fill",d.axisTextColor).attr("font-weight","bold").text(s.text)})}if(g.accelerators.length>0){const t=v.append("g").attr("class","wardley-accelerators");g.accelerators.forEach(s=>{const n=z(s.x),i=L(s.y),p=60,l=30,f=20,x=`
3
3
  M ${n} ${i-l/2}
4
4
  L ${n+p-f} ${i-l/2}
@@ -1,4 +1,4 @@
1
- import{t as Ke,bq as k,a_ as E,bo as Se,by as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./CXgKrD4b.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as I,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./DYhIMPy1.js";import{nz as Rr,Ik as ct,mH as Wt,ea as Mr,eu as Pr,ev as Ir}from"./DenVKqrV.js";import{I as De,D as Oe,y as Lr,h as at}from"./NpJ_H_lL.js";import{dr as Ar,bf as zr}from"./HcYBxKPc.js";import{a9 as jt}from"./DTmn8xTR.js";import{I as it,v as Ee,n as Ge,p as It,u as Er}from"./BEdXc2Cn.js";import{f as xe}from"./-svebp9s.js";import"./CHyKyUzM.js";import{F as fe,_ as Hr,cL as Dr,as as ot,at as pt,bY as Tr,aR as Wr,bI as jr,bC as Fr,b5 as Br,cQ as Gr,ch as Or,b2 as Ct,cV as Rt,cl as _t,bk as Kr,cz as Vr,aq as Ur}from"./D-Mv0NgR.js";import{i as Jr}from"./C1dnD04C.js";import{z as Ft,B as qr}from"./BA5tpMka.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Ut}from"./C9IQsGTN.js";import"./BYJTJW1o.js";import{M as Mt}from"./IlWp1nGl.js";import{t as St}from"./HSKzTsh4.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
1
+ import{t as Ke,bq as k,a_ as E,bo as Se,by as Ve,b as Ue,q as ur,n as vr,r as gr,o as fr,p as hr,s as mr,bu as ht,bs as pr,f as _r,l as xr,g as br,e as wr,d as kr,m as yr,j as $r,i as Cr,h as Sr,k as Nr}from"./Dso1_H3c.js";import{bs as Je,ca as Ze,aD as e,ay as be,a5 as o,bH as I,bS as n,a7 as Pt,W as i,be as st,b$ as et,b_ as M,bO as S,bA as s,bl as O,bn as qe,bV as we,aA as y,c9 as _,aB as x,br as mt}from"./DYhIMPy1.js";import{nz as Rr,Ik as ct,mH as Wt,ea as Mr,eu as Pr,ev as Ir}from"./Dk1_0x0Q.js";import{I as De,D as Oe,y as Lr,h as at}from"./Cl-7Au8R.js";import{dr as Ar,bf as zr}from"./CArqGgyL.js";import{a9 as jt}from"./l8UFOWir.js";import{I as it,v as Ee,n as Ge,p as It,u as Er}from"./CnMdEUN9.js";import{f as xe}from"./m5UczIQR.js";import"./BfNeIJAh.js";import{F as fe,_ as Hr,cL as Dr,as as ot,at as pt,bY as Tr,aR as Wr,bI as jr,bC as Fr,b5 as Br,cQ as Gr,ch as Or,b2 as Ct,cV as Rt,cl as _t,bk as Kr,cz as Vr,aq as Ur}from"./DAGiwOmW.js";import{i as Jr}from"./D0Nn2MSZ.js";import{z as Ft,B as qr}from"./DVWbUaqE.js";import{H as Bt}from"./CcNhqKh5.js";import{I as Ut}from"./C5vuxPIj.js";import"./BuxSPewv.js";import{M as Mt}from"./Ug0dtdu2.js";import{t as St}from"./Az9OQ8Pw.js";const Qr=[/^diff --git /,/^index\s/,/^---\s/,/^\+\+\+\s/,/^\/];function Yr($){const r=[];if(!$)return r;const d=$.split(`
2
2
  `);let m=null,b=0,u=0;const W=P=>{const h=P.match(/@@ -(\d+)(?:,(\d+))? \+(\d+)(?:,(\d+))? @@/),J=h?parseInt(h[1],10):0,K=h&&h[2]?parseInt(h[2],10):null,pe=h?parseInt(h[3],10):0,q=h&&h[4]?parseInt(h[4],10):null;m={header:P,oldStart:J,oldLines:K,newStart:pe,newLines:q,lines:[]},r.push(m),b=J,u=pe};for(const P of d){if(P.startsWith("@@")){W(P);continue}if(!m)continue;const h=m;P.startsWith("+")?h.lines.push({type:"addition",content:P.slice(1),oldNum:null,newNum:u++,raw:P}):P.startsWith("-")?h.lines.push({type:"deletion",content:P.slice(1),oldNum:b++,newNum:null,raw:P}):P.startsWith(" ")?h.lines.push({type:"context",content:P.slice(1),oldNum:b++,newNum:u++,raw:P}):Qr.some(J=>J.test(P))||P.trim()===""&&h.lines.push({type:"context",content:"",oldNum:b++,newNum:u++,raw:P})}return r}var Xr=x('<div><!> <!> <!></div> <p class="text-ui text-subtle mt-1"> </p>',1);function Jt($,r){if(new.target)return Ke({component:Jt,...$});Je(r,!0);let d=k(r,"lineNumber",7,0),m=k(r,"fileName",7,""),b=k(r,"onSend",7),u=k(r,"onClose",7),W=k(r,"isSending",7,!1),P=k(r,"class",7,""),h=we(""),J=we(null);Ze(()=>{e(J)&&e(J).focus()});function K(){!e(h).trim()||W()||(b()?.(e(h).trim(),d(),m()),I(h,""))}function pe(L){L.key==="Enter"&&!L.shiftKey&&(L.preventDefault(),K()),L.key==="Escape"&&u()?.()}var q={get lineNumber(){return d()},set lineNumber(L=0){d(L),y()},get fileName(){return m()},set fileName(L=""){m(L),y()},get onSend(){return b()},set onSend(L){b(L),y()},get onClose(){return u()},set onClose(L){u(L),y()},get isSending(){return W()},set isSending(L=!1){W(L),y()},get class(){return P()},set class(L=""){P(L),y()},$set:Ve,$on:(L,he)=>Ue(r,L,he)},w=Xr(),H=be(w),de=o(H);{let L=_(()=>Se.codeReview_inlineComment_askLine_placeholder());Ut(de,{onkeydown:pe,get placeholder(){return e(L)},get disabled(){return W()},class:"flex-1 h-8 rounded-md border border-border bg-background px-3 text-sm placeholder:text-muted-foreground disabled:opacity-50",get ref(){return e(J)},set ref(he){I(J,he,!0)},get value(){return e(h)},set value(he){I(h,he,!0)}})}var ce=n(de,2);{let L=_(()=>!e(h).trim()||W());xe(ce,{type:"button",variant:"primary",onclick:K,get disabled(){return e(L)},class:"h-8 w-8 p-0",children:(he,Ne)=>{var _e=Pt(),C=be(_e);{var z=me=>{it(me,{size:14})},Le=me=>{fe(me,{get icon(){return Hr},class:"h-3.5 w-3.5"})};E(C,me=>{W()?me(z):me(Le,-1)})}i(he,_e)},$$slots:{default:!0}})}var ae=n(ce,2);xe(ae,{type:"button",variant:"ghost",onclick:()=>u()?.(),class:"h-8 px-2 text-xs text-muted-foreground hover:text-foreground transition-colors",children:(L,he)=>{st();var Ne=et();M(_e=>S(Ne,_e),[()=>Se.codeReview_inlineComment_cancel_label()]),i(L,Ne)},$$slots:{default:!0}}),s(H);var te=n(H,2),ke=O(te,!0);return M(L=>{Ee(H,1,`walkthrough-inline-comment flex items-center gap-2 ${P()??""}`),S(ke,L)},[()=>Se.codeReview_inlineComment_inputHint_label()]),i($,w),qe(q)}var Zr=x('<div class="text-xs text-slate-400 dark:text-slate-500 mt-1"> </div>'),en=x('<span class="font-medium"> </span> <!>',1),tn=x('<div class="flex items-start gap-3 py-2"><div><!></div> <div class="flex-1 min-w-0"><div class="text-sm leading-relaxed text-slate-700 dark:text-slate-300"><!></div></div></div>'),rn=x('<div class="px-4 pb-3 divide-y divide-border"></div>'),nn=x('<div class="border-t border-border"><!> <!></div>'),an=x('<div class="flex items-center gap-2 px-4 py-2 text-xs text-slate-500 dark:text-slate-400 border-t border-border"><!> <span> </span></div>'),sn=x('<div class="flex items-center gap-2"><!> <!> <!></div> <p class="text-ui text-slate-400 dark:text-slate-500 mt-1"> </p>',1),on=x("<!> <span> </span>",1),ln=x('<div><div class="flex items-start gap-3 px-4 py-3"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-sm text-slate-800 dark:text-slate-200 leading-relaxed"><!></div> <!></div> <!></div> <!> <!> <div class="border-t border-border px-4 py-2"><!></div></div>');function qt($,r){if(new.target)return Ke({component:qt,...$});Je(r,!0);let d=k(r,"annotation",7),m=k(r,"lineNumber",7),b=k(r,"fileName",7),u=k(r,"messages",23,()=>[]),W=k(r,"onSendMessage",7),P=k(r,"onClose",7),h=k(r,"isSending",7,!1),J=k(r,"isAgentResponding",7,!1),K=k(r,"timestamp",7),pe=k(r,"class",7,""),q=we(""),w=we(!1),H=we(!1),de=we(null);Ze(()=>{e(w)&&e(de)&&e(de).focus()});function ce(){!e(q).trim()||h()||(W()?.(e(q).trim(),m(),b()),I(q,""))}function ae(a){a.key==="Enter"&&!a.shiftKey&&(a.preventDefault(),ce()),a.key==="Escape"&&(e(q)?I(q,""):I(w,!1))}function te(a){switch(a){case"highlight":return Br;case"context":return Fr;case"explanation":default:return jr}}function ke(a){switch(a){case"highlight":return"text-orange-500";case"context":return"text-blue-500";case"explanation":default:return"text-warning-ink"}}function L(a){return a?Lr(a):""}const he=_(()=>u().length>0);var Ne={get annotation(){return d()},set annotation(a){d(a),y()},get lineNumber(){return m()},set lineNumber(a){m(a),y()},get fileName(){return b()},set fileName(a){b(a),y()},get messages(){return u()},set messages(a=[]){u(a),y()},get onSendMessage(){return W()},set onSendMessage(a){W(a),y()},get onClose(){return P()},set onClose(a){P(a),y()},get isSending(){return h()},set isSending(a=!1){h(a),y()},get isAgentResponding(){return J()},set isAgentResponding(a=!1){J(a),y()},get timestamp(){return K()},set timestamp(a){K(a),y()},get class(){return pe()},set class(a=""){pe(a),y()},$set:Ve,$on:(a,T)=>Ue(r,a,T)},_e=ln(),C=o(_e),z=o(C),Le=o(z);{let a=_(()=>te(d().type)),T=_(()=>ke(d().type));fe(Le,{get icon(){return e(a)},get class(){return`h-4 w-4 ${e(T)??""}`}})}s(z);var me=n(z,2),v=o(me),R=o(v);Mt(R,{get content(){return d().message},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(v);var A=n(v,2);{var X=a=>{var T=Zr(),Z=O(T,!0);M(ee=>S(Z,ee),[()=>L(K())]),i(a,T)};E(A,a=>{K()&&a(X)})}s(me);var ie=n(me,2);{var $e=a=>{{let T=_(()=>Se.codeReview_commentThread_dismiss_tooltip());xe(a,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,get onclick(){return P()},class:"shrink-0 text-slate-400 hover:text-slate-600 dark:text-slate-500 dark:hover:text-slate-300 transition-colors",get title(){return e(T)},children:(Z,ee)=>{fe(Z,{get icon(){return Dr}})},$$slots:{default:!0}})}};E(ie,a=>{P()&&a($e)})}s(C);var Ce=n(C,2);{var ye=a=>{var T=nn(),Z=o(T);xe(Z,{type:"button",variant:"ghost",onclick:()=>I(H,!e(H)),class:"w-full flex items-center justify-between px-4 py-2 text-sm text-slate-600 dark:text-slate-400 hover:bg-slate-50 dark:hover:bg-slate-800/50 transition-colors",children:(Q,se)=>{var Y=en(),c=be(Y),p=O(c,!0),B=n(c,2);{let ue=_(()=>e(H)?ot:pt);fe(B,{get icon(){return e(ue)},class:"h-3 w-3"})}M(ue=>S(p,ue),[()=>Se.codeReview_commentThread_suggestedChanges_label()]),i(Q,Y)},$$slots:{default:!0}});var ee=n(Z,2);{var re=Q=>{var se=rn();Ge(se,21,u,Y=>Y.id,(Y,c)=>{var p=tn(),B=o(p),ue=o(B);{let g=_(()=>e(c).type==="user"?Gr:Or),N=_(()=>e(c).type==="user"?"text-blue-600 dark:text-blue-400":"text-purple-600 dark:text-purple-400");fe(ue,{get icon(){return e(g)},get class(){return`h-2.5 w-2.5 ${e(N)??""}`}})}s(B);var Re=n(B,2),t=o(Re),l=o(t);Mt(l,{get content(){return e(c).content},className:"[&>*:first-child]:mt-0 [&>*:last-child]:mb-0"}),s(t),s(Re),s(p),M(()=>Ee(B,1,`shrink-0 flex h-5 w-5 items-center justify-center rounded-full ${e(c).type==="user"?"bg-blue-100 dark:bg-blue-900/50":"bg-purple-100 dark:bg-purple-900/50"}`)),De(3,p,()=>at,()=>({axis:"y",distance:4,tier:"moderate"})),i(Y,p)}),s(se),De(3,se,()=>Oe,()=>({tier:"moderate"})),i(Q,se)};E(ee,Q=>{e(H)&&Q(re)})}s(T),i(a,T)};E(Ce,a=>{e(he)&&a(ye)})}var V=n(Ce,2);{var j=a=>{var T=an(),Z=o(T);it(Z,{size:12});var ee=n(Z,2),re=O(ee,!0);s(T),M(Q=>S(re,Q),[()=>Se.codeReview_commentThread_agentResponding_label()]),i(a,T)};E(V,a=>{J()&&a(j)})}var f=n(V,2),D=o(f);{var F=a=>{var T=sn(),Z=be(T),ee=o(Z);{let c=_(()=>Se.codeReview_commentThread_followUp_placeholder());Ut(ee,{onkeydown:ae,get placeholder(){return e(c)},get disabled(){return h()},class:"flex-1 h-8 rounded-md border border-border bg-white dark:bg-slate-800 px-3 text-sm placeholder:text-slate-400 disabled:opacity-50",get ref(){return e(de)},set ref(p){I(de,p,!0)},get value(){return e(q)},set value(p){I(q,p,!0)}})}var re=n(ee,2);{let c=_(()=>!e(q).trim()||h());xe(re,{type:"button",variant:"primary",onclick:ce,get disabled(){return e(c)},class:"h-8 w-8 p-0",children:(p,B)=>{var ue=Pt(),Re=be(ue);{var t=g=>{it(g,{size:14})},l=g=>{fe(g,{get icon(){return Tr},class:"h-3 w-3"})};E(Re,g=>{h()?g(t):g(l,-1)})}i(p,ue)},$$slots:{default:!0}})}var Q=n(re,2);xe(Q,{type:"button",variant:"ghost",onclick:()=>{I(w,!1),I(q,"")},class:"h-8 px-2 text-xs text-slate-500 hover:text-slate-700 dark:text-slate-400 dark:hover:text-slate-200 transition-colors",children:(c,p)=>{st();var B=et();M(ue=>S(B,ue),[()=>Se.codeReview_commentThread_cancel_label()]),i(c,B)},$$slots:{default:!0}}),s(Z);var se=n(Z,2),Y=O(se,!0);M(c=>S(Y,c),[()=>Se.codeReview_commentThread_inputHint_label()]),De(3,Z,()=>Oe,()=>({tier:"fast"})),i(a,T)},le=a=>{xe(a,{type:"button",variant:"ghost",onclick:()=>I(w,!0),class:"flex items-center gap-1.5 text-xs text-emerald-600 dark:text-emerald-400 hover:text-emerald-700 dark:hover:text-emerald-300 transition-colors",children:(T,Z)=>{var ee=on(),re=be(ee);fe(re,{get icon(){return Wr},class:"h-3 w-3"});var Q=n(re,2),se=O(Q,!0);M(Y=>S(se,Y),[()=>Se.codeReview_commentThread_askQuestion_label()]),i(T,ee)},$$slots:{default:!0}})};E(D,a=>{e(w)?a(F):a(le,-1)})}return s(f),s(_e),M(()=>Ee(_e,1,`walkthrough-comment-thread relative flex w-full flex-col bg-white shadow-sm dark:bg-slate-900 ${pe()??""}`)),De(3,_e,()=>Oe,()=>({tier:"moderate"})),i($,_e),qe(Ne)}var dn=x('<span class="text-emerald-600 dark:text-emerald-400 font-medium"> </span>'),cn=x('<!> <svg class="h-4 w-4 text-ghost shrink-0" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12zm2 0v12h6v-12H5.5z"></path></svg> <div class="flex items-baseline gap-2 flex-1 min-w-0"><span class="text-sm font-medium text-foreground truncate"> </span> <span class="text-xs text-subtle truncate hidden sm:inline"> </span></div> <div class="flex items-center gap-1 text-xs shrink-0"><!></div>',1),un=x('<div class="px-4 pb-3 -mt-1"><p class="text-sm text-subtle"> </p></div>'),vn=x('<div><div><span class="w-12 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <pre class="flex-1 px-1 whitespace-pre overflow-hidden text-ellipsis"><code class="hljs"></code></pre></div>'),gn=x('<div class="border-t border-border"><div class="font-mono text-xs leading-relaxed text-muted-foreground"><!> <!></div></div>'),fn=x('<span class="text-subtle">·</span> <!>',1),hn=x('<div class="flex items-center justify-end gap-2 px-3 py-1.5 bg-muted/20 border-b border-border text-xs"><!> <!></div>'),Gt=x("<!> <span> </span> <!>",1),mn=x('<div class="ml-20"><!></div>'),pn=x('<div class="ml-20 border-l-2 border-primary-ink/50 bg-muted/20"><div class="p-3"><!></div></div>'),_n=x('<div><div><span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span> <span class="w-10 px-2 text-right text-ui text-subtle tabular-nums"> </span></div> <span> </span> <div class="flex-1 flex items-center min-w-0 pr-2"><pre class="flex-1 px-1 whitespace-pre overflow-x-auto"><code class="hljs"></code></pre> <!></div></div> <!> <!> <!>',1),xn=x("<!> <!>",1),bn=x('<div class="relative"><!> <div class="overflow-x-auto"><div class="font-mono text-xs leading-relaxed min-w-full"></div></div></div>'),wn=x('<div><div class="flex flex-col border-b border-border"><!> <!></div> <!> <!></div>');function Lt($,r){if(new.target)return Ke({component:Lt,...$});Je(r,!0);let d=k(r,"fileName",7),m=k(r,"patch",7),b=k(r,"annotations",23,()=>[]),u=k(r,"initialCollapsed",7,!1),W=k(r,"contextLines",7,3),P=k(r,"onSendMessage",7),h=k(r,"isSending",7,!1),J=k(r,"additions",7,0),K=k(r,"deletions",7,0),pe=k(r,"fileDescription",7,""),q=k(r,"class",7,"");const w=_(()=>Yr(m())),H=_(()=>Rr(d())),de=_(()=>{const t=new Map;return!e(H)||e(H)==="text"||e(H)==="plaintext"||!Bt.getLanguage(e(H))||e(w).forEach(l=>{const g=[];if(l.lines.forEach(N=>{const G=N.content||"",U=`${N.oldNum}-${N.newNum}`;g.push({content:G,key:U})}),g.length!==0)try{const N=g.map(ne=>ne.content).join(`
3
3
  `),U=Bt.highlight(N,{language:e(H)}).value.split(`
4
4
  `);g.forEach((ne,oe)=>{oe<U.length&&t.set(ne.key,U[oe])})}catch(N){console.warn("Failed to highlight hunk:",N)}}),t});let ce=we(mt(u())),ae=we(mt(new Set)),te=we(null);const ke=_(()=>{const t=new Map;for(const l of b()){const g=t.get(l.line)||[];g.push(l),t.set(l.line,g)}return t}),L=_(()=>new Set(b().map(t=>t.line)));function he(t){if(t.type==="deletion")return[];const l=t.newNum;return l==null?[]:e(ke).get(l)||[]}function Ne(t,l,g){if(g.type==="addition"||g.type==="deletion")return!0;const N=g.newNum??g.oldNum;if(N!==null&&e(L).has(N))return!0;const G=e(w)[t];if(!G)return!1;for(let U=Math.max(0,l-W());U<=Math.min(G.lines.length-1,l+W());U++){const ne=G.lines[U];if(ne.type==="addition"||ne.type==="deletion")return!0;const oe=ne.newNum??ne.oldNum;if(oe!==null&&e(L).has(oe))return!0}for(const U of e(ae)){const[ne,oe,ve]=U.split("-").map(Number);if(ne===t&&l>=oe&&l<=ve)return!0}return!1}function _e(t){const l=e(w)[t];if(!l)return[];const g=[];let N=null;for(let G=0;G<l.lines.length;G++){const U=Ne(t,G,l.lines[G]);!U&&N===null?N=G:U&&N!==null&&(g.push({startIndex:N,endIndex:G-1,count:G-N}),N=null)}return N!==null&&g.push({startIndex:N,endIndex:l.lines.length-1,count:l.lines.length-N}),g}function C(t,l,g){const N=`${t}-${l}-${g}`;e(ae).add(N),I(ae,new Set(e(ae)),!0)}function z(){for(let t=0;t<e(w).length;t++){const l=e(w)[t];C(t,0,l.lines.length-1)}}function Le(){I(ae,new Set,!0)}function me(t){const l=`${t.oldNum}-${t.newNum}`,g=e(de).get(l);return g!==void 0?g:v(t.content||"")}function v(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function R(t){switch(t.type){case"addition":return"bg-emerald-500/5 dark:bg-emerald-500/10";case"deletion":return"bg-red-500/5 dark:bg-red-500/10";default:return""}}function A(t){switch(t.type){case"addition":return"text-emerald-600 dark:text-emerald-400 font-medium";case"deletion":return"text-red-600 dark:text-red-400 font-medium";default:return"text-transparent"}}function X(t){switch(t.type){case"addition":return"+";case"deletion":return"-";default:return" "}}function ie(t){switch(t.type){case"addition":return"bg-emerald-500/10 dark:bg-emerald-500/15";case"deletion":return"bg-red-500/10 dark:bg-red-500/15";default:return"bg-muted/30"}}function $e(){I(ce,!e(ce))}function Ce(t){I(te,t,!0)}function ye(){I(te,null)}function V(t,l,g){P()?.(t,l,g),I(te,null)}const j=_(()=>()=>{const t=d().split("/");return t[t.length-1]}),f=_(()=>()=>{const t=d().split("/");return t.length<=1?"":t.slice(0,-1).join("/")}),D=_(()=>{for(let t=0;t<e(w).length;t++)if(_e(t).length>0)return!0;return!1}),F=_(()=>{const l=[];for(let g=0;g<e(w).length&&l.length<3;g++){const N=e(w)[g];for(let G=0;G<N.lines.length&&l.length<3;G++){const U=N.lines[G];(U.type==="addition"||U.type==="deletion")&&l.push({line:U,hunkIndex:g,lineIndex:G})}}return l}),le=_(()=>{let t=0;for(const l of e(w))for(const g of l.lines)(g.type==="addition"||g.type==="deletion")&&t++;return t});let a=we(mt(new Map));function T(t){return`${t.file}:${t.line}:${t.type}`}function Z(t){return e(a).get(T(t))||[]}var ee={get fileName(){return d()},set fileName(t){d(t),y()},get patch(){return m()},set patch(t){m(t),y()},get annotations(){return b()},set annotations(t=[]){b(t),y()},get initialCollapsed(){return u()},set initialCollapsed(t=!1){u(t),y()},get contextLines(){return W()},set contextLines(t=3){W(t),y()},get onSendMessage(){return P()},set onSendMessage(t){P(t),y()},get isSending(){return h()},set isSending(t=!1){h(t),y()},get additions(){return J()},set additions(t=0){J(t),y()},get deletions(){return K()},set deletions(t=0){K(t),y()},get fileDescription(){return pe()},set fileDescription(t=""){pe(t),y()},get class(){return q()},set class(t=""){q(t),y()},$set:Ve,$on:(t,l)=>Ue(r,t,l)},re=wn(),Q=o(re),se=o(Q);xe(se,{type:"button",variant:"ghost",class:"w-full flex items-center gap-2 px-4 py-3 hover:bg-muted/30 transition-colors text-left group",onclick:$e,children:(t,l)=>{var g=cn(),N=be(g);{let Ie=_(()=>e(ce)?pt:ot);fe(N,{get icon(){return e(Ie)},class:"h-3 w-3 text-ghost shrink-0"})}var G=n(N,4),U=o(G),ne=O(U,!0),oe=n(U,2),ve=O(oe,!0);s(G);var Me=n(G,2),Ae=o(Me);{var Te=Ie=>{var ze=dn(),Fe=O(ze);M(()=>S(Fe,`+${J()+K()}`)),i(Ie,ze)};E(Ae,Ie=>{(J()>0||K()>0)&&Ie(Te)})}s(Me),M((Ie,ze)=>{S(ne,Ie),S(ve,ze)},[()=>e(j)(),()=>e(f)()]),i(t,g)},$$slots:{default:!0}});var Y=n(se,2);{var c=t=>{var l=un(),g=o(l),N=O(g,!0);s(l),M(()=>S(N,pe())),i(t,l)};E(Y,t=>{pe()&&t(c)})}s(Q);var p=n(Q,2);{var B=t=>{var l=gn(),g=o(l),N=o(g);Ge(N,17,()=>e(F),({line:ne,hunkIndex:oe,lineIndex:ve})=>`preview-${oe}-${ve}`,(ne,oe)=>{let ve=()=>e(oe).line;var Me=vn(),Ae=o(Me),Te=o(Ae),Ie=O(Te,!0);s(Ae);var ze=n(Ae,2),Fe=O(ze,!0),We=n(ze,2),ge=o(We);Ft(ge,()=>me(ve()),!0),s(ge),s(We),s(Me),M((Qe,Ye,Xe,tt)=>{Ee(Me,1,`flex ${Qe??""}`),Ee(Ae,1,`w-12 shrink-0 flex select-none ${Ye??""} border-r border-border`),S(Ie,ve().newNum??ve().oldNum??""),Ee(ze,1,`w-5 shrink-0 text-center select-none ${Xe??""}`),S(Fe,tt)},[()=>R(ve()),()=>ie(ve()),()=>A(ve()),()=>X(ve())]),i(ne,Me)});var G=n(N,2);{var U=ne=>{xe(ne,{type:"button",variant:"ghost",class:"w-full py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors text-center",onclick:$e,children:(oe,ve)=>{st();var Me=et();M(Ae=>S(Me,Ae),[()=>Se.codeReview_fileDiff_moreLines_label({count:e(le)-e(F).length})]),i(oe,Me)},$$slots:{default:!0}})};E(G,ne=>{e(le)>e(F).length&&ne(U)})}s(g),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(p,t=>{e(ce)&&e(F).length>0&&t(B)})}var ue=n(p,2);{var Re=t=>{var l=bn(),g=o(l);{var N=ne=>{var oe=hn(),ve=o(oe);xe(ve,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:z,children:(Te,Ie)=>{st();var ze=et();M(Fe=>S(ze,Fe),[()=>Se.codeReview_fileDiff_expandAll_label()]),i(Te,ze)},$$slots:{default:!0}});var Me=n(ve,2);{var Ae=Te=>{var Ie=fn(),ze=n(be(Ie),2);xe(ze,{type:"button",variant:"ghost",class:"text-muted-foreground hover:text-foreground transition-colors",onclick:Le,children:(Fe,We)=>{st();var ge=et();M(Qe=>S(ge,Qe),[()=>Se.codeReview_fileDiff_collapse_label()]),i(Fe,ge)},$$slots:{default:!0}}),i(Te,Ie)};E(Me,Te=>{e(ae).size>0&&Te(Ae)})}s(oe),i(ne,oe)};E(g,ne=>{e(D)&&ne(N)})}var G=n(g,2),U=o(G);Ge(U,21,()=>e(w),It,(ne,oe,ve)=>{const Me=_(()=>_e(ve)),Ae=_(()=>e(Me).find(We=>We.startIndex===0));var Te=xn(),Ie=be(Te);{var ze=We=>{xe(We,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-b border-border",onclick:()=>C(ve,e(Ae).startIndex,e(Ae).endIndex),children:(ge,Qe)=>{var Ye=Gt(),Xe=be(Ye);fe(Xe,{get icon(){return ot},class:"h-2.5 w-2.5"});var tt=n(Xe,2),xt=O(tt,!0),rt=n(tt,2);fe(rt,{get icon(){return ot},class:"h-2.5 w-2.5"}),M(ut=>S(xt,ut),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(Ae).count})]),i(ge,Ye)},$$slots:{default:!0}})};E(Ie,We=>{e(Ae)&&We(ze)})}var Fe=n(Ie,2);Ge(Fe,19,()=>e(oe).lines,(We,ge)=>`${ve}-${ge}`,(We,ge,Qe)=>{const Ye=_(()=>`${e(ge).oldNum}-${e(ge).newNum}`),Xe=_(()=>he(e(ge))),tt=_(()=>e(te)===e(Ye)),xt=_(()=>Ne(ve,e(Qe),e(ge))),rt=_(()=>e(Me).find(lt=>lt.startIndex===e(Qe)+1));var ut=Pt(),er=be(ut);{var tr=lt=>{var At=_n(),vt=be(At),gt=o(vt),zt=o(gt),rr=O(zt,!0),nr=n(zt,2),ar=O(nr,!0);s(gt);var bt=n(gt,2),sr=O(bt,!0),Et=n(bt,2),wt=o(Et),Ht=o(wt);Ft(Ht,()=>me(e(ge)),!0),s(Ht),s(wt);var or=n(wt,2);{var ir=Pe=>{{let He=_(()=>Se.codeReview_fileDiff_askLine_tooltip());xe(Pe,{type:"button",variant:"ghost",size:"icon-compact",iconOnly:!0,class:"size-5 opacity-0 group-hover:opacity-100 text-muted-foreground hover:text-primary-ink transition-all shrink-0",onclick:()=>Ce(e(Ye)),get title(){return e(He)},children:(je,Be)=>{fe(je,{get icon(){return Ct}})},$$slots:{default:!0}})}};E(or,Pe=>{P()&&Pe(ir)})}s(Et),s(vt);var Dt=n(vt,2);Ge(Dt,19,()=>e(Xe),(Pe,He)=>`${Pe.line}-${He}`,(Pe,He)=>{var je=mn(),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0),ft=_(()=>Z(e(He)));qt(Be,{get annotation(){return e(He)},get lineNumber(){return e(nt)},get fileName(){return d()},get messages(){return e(ft)},onSendMessage:(kt,yt,$t)=>V(kt,yt,$t),get isSending(){return h()}})}s(je),De(3,je,()=>Oe,()=>({tier:"moderate"})),i(Pe,je)});var Tt=n(Dt,2);{var lr=Pe=>{var He=pn(),je=o(He),Be=o(je);{let nt=_(()=>e(ge).newNum??e(ge).oldNum??0);Jt(Be,{get lineNumber(){return e(nt)},get fileName(){return d()},onSend:V,onClose:ye,get isSending(){return h()}})}s(je),s(He),i(Pe,He)};E(Tt,Pe=>{e(tt)&&e(Xe).length===0&&Pe(lr)})}var dr=n(Tt,2);{var cr=Pe=>{xe(Pe,{type:"button",variant:"ghost",class:"w-full flex items-center justify-center gap-2 py-1.5 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors border-y border-border bg-muted/10",onclick:()=>C(ve,e(rt).startIndex,e(rt).endIndex),children:(He,je)=>{var Be=Gt(),nt=be(Be);fe(nt,{get icon(){return Ct},class:"h-2.5 w-2.5"});var ft=n(nt,2),kt=O(ft,!0),yt=n(ft,2);fe(yt,{get icon(){return Ct},class:"h-2.5 w-2.5"}),M($t=>S(kt,$t),[()=>Se.codeReview_fileDiff_showHidden_label({count:e(rt).count})]),i(He,Be)},$$slots:{default:!0}})};E(dr,Pe=>{e(rt)&&Pe(cr)})}M((Pe,He,je,Be)=>{Ee(vt,1,`group flex ${Pe??""} hover:bg-accent/30 transition-colors`),Ee(gt,1,`w-20 shrink-0 flex select-none ${He??""} border-r border-border`),S(rr,e(ge).oldNum??""),S(ar,e(ge).newNum??""),Ee(bt,1,`w-5 shrink-0 text-center select-none ${je??""}`),S(sr,Be)},[()=>R(e(ge)),()=>ie(e(ge)),()=>A(e(ge)),()=>X(e(ge))]),i(lt,At)};E(er,lt=>{e(xt)&&lt(tr)})}i(We,ut)}),i(ne,Te)}),s(U),s(G),s(l),De(3,l,()=>Oe,()=>({tier:"moderate"})),i(t,l)};E(ue,t=>{e(ce)||t(Re)})}return s(re),M(()=>Ee(re,1,`walkthrough-file-diff overflow-hidden bg-card ${q()??""}`)),i($,re),qe(ee)}var kn=x('<div class="flex items-start gap-3"><div class="shrink-0 mt-0.5"><svg viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M2 6a2 2 0 012-2h4l2 2h4a2 2 0 012 2v1H8a3 3 0 00-3 3v1.5a1.5 1.5 0 01-3 0V6z" clip-rule="evenodd"></path><path d="M6 12a2 2 0 012-2h8a2 2 0 012 2v2a2 2 0 01-2 2H2h2a2 2 0 002-2v-2z"></path></svg></div> <div class="flex-1 min-w-0"><h4 class="text-sm font-medium text-foreground line-clamp-2"> </h4> <p class="text-xs text-subtle mt-1 line-clamp-2"> </p> <div class="flex items-center gap-1 mt-2 text-xs text-subtle"><svg class="h-3.5 w-3.5" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span> </span></div></div></div>'),yn=x('<div><div class="mb-4"><h3 class="text-sm font-medium text-subtle"> </h3></div> <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-3"></div></div>');function Qt($,r){if(new.target)return Ke({component:Qt,...$});Je(r,!0);let d=k(r,"categories",7),m=k(r,"onCategoryClick",7),b=k(r,"class",7,"");function u(w){const H=["bg-blue-500/10 border-blue-500/30 hover:border-blue-500/50","bg-purple-500/10 border-purple-500/30 hover:border-purple-500/50","bg-emerald-500/10 border-emerald-500/30 hover:border-emerald-500/50","bg-warning/10 border-warning/30 hover:border-warning/30","bg-rose-500/10 border-rose-500/30 hover:border-rose-500/50","bg-cyan-500/10 border-cyan-500/30 hover:border-cyan-500/50"];return H[w%H.length]}function W(w){const H=["text-blue-500","text-purple-500","text-emerald-500","text-warning-ink","text-rose-500","text-cyan-500"];return H[w%H.length]}var P={get categories(){return d()},set categories(w){d(w),y()},get onCategoryClick(){return m()},set onCategoryClick(w){m(w),y()},get class(){return b()},set class(w=""){b(w),y()},$set:Ve,$on:(w,H)=>Ue(r,w,H)},h=yn(),J=o(h),K=o(J),pe=O(K,!0);s(J);var q=n(J,2);return Ge(q,21,d,It,(w,H,de)=>{{let ce=_(()=>u(de));xe(w,{type:"button",variant:"ghost",get class(){return`text-left p-4 rounded-lg border transition-all duration-spring-moderate ease-spring-moderate motion-reduce:transition-none ${e(ce)??""}`},onclick:()=>m()?.(de),children:(ae,te)=>{var ke=kn(),L=o(ke),he=O(L),Ne=n(L,2),_e=o(Ne),C=O(_e,!0),z=n(_e,2),Le=O(z,!0),me=n(z,2),v=n(o(me),2),R=O(v,!0);s(me),s(Ne),s(ke),M((A,X)=>{Ee(he,0,`h-5 w-5 ${A??""}`),S(C,e(H).title),S(Le,e(H).description),S(R,X)},[()=>W(de),()=>e(H).files.length===1?Se.codeReview_categoriesGrid_fileCount_one({count:e(H).files.length}):Se.codeReview_categoriesGrid_fileCount_many({count:e(H).files.length})]),i(ae,ke)},$$slots:{default:!0}})}}),s(q),s(h),M(w=>{Ee(h,1,`walkthrough-categories-grid ${b()??""}`),S(pe,w)},[()=>Se.codeReview_categoriesGrid_whatChanged_title()]),i($,h),qe(P)}var $n=x('<div class="w-0.5 flex-1 bg-border min-h-5"></div>'),Cn=x('<p class="text-sm text-subtle mt-2"> </p>'),Sn=x('<div class="rounded-lg border border-border bg-card p-4"><div class="flex items-center gap-2"><svg class="h-4 w-4 text-ghost" viewBox="0 0 16 16" fill="currentColor"><path d="M3.5 1.5A1.5 1.5 0 0 1 5 0h6a1.5 1.5 0 0 1 1.5 1.5v12A1.5 1.5 0 0 1 11 15H5a1.5 1.5 0 0 1-1.5-1.5v-12z"></path></svg> <span class="text-sm font-medium text-foreground"> </span></div> <!></div>'),Nn=x('<div class="flex gap-4"><div class="relative flex flex-col items-center w-3"><div></div> <div class="absolute top-4 w-2 h-2 rounded-full bg-muted-foreground/30 ring-2 ring-background"></div></div> <div class="flex-1 min-w-0 pb-4"><!></div></div>'),Rn=x('<div><div class="flex items-start gap-4 mb-4"><div class="relative flex flex-col items-center"><div></div> <!></div> <div class="flex-1 min-w-0 -mt-0.5"><h3 class="text-base font-semibold text-foreground"> </h3> <p class="text-sm text-subtle mt-1"> </p></div></div> <div class="relative"></div></div>');function Yt($,r){if(new.target)return Ke({component:Yt,...$});Je(r,!0);let d=k(r,"category",7),m=k(r,"categoryIndex",7),b=k(r,"filePatchMap",7),u=k(r,"isLast",7,!1),W=k(r,"onSendMessage",7),P=k(r,"isSending",7,!1),h=k(r,"class",7,"");function J(C){const z=["bg-blue-500","bg-purple-500","bg-emerald-500","bg-warning","bg-rose-500","bg-cyan-500"];return z[C%z.length]}const K=_(()=>d().files.map(C=>{const z=b().get(C.path);return{...C,patch:z?.patch,additions:z?.additions??0,deletions:z?.deletions??0}}));var pe={get category(){return d()},set category(C){d(C),y()},get categoryIndex(){return m()},set categoryIndex(C){m(C),y()},get filePatchMap(){return b()},set filePatchMap(C){b(C),y()},get isLast(){return u()},set isLast(C=!1){u(C),y()},get onSendMessage(){return W()},set onSendMessage(C){W(C),y()},get isSending(){return P()},set isSending(C=!1){P(C),y()},get class(){return h()},set class(C=""){h(C),y()},$set:Ve,$on:(C,z)=>Ue(r,C,z)},q=Rn(),w=o(q),H=o(w),de=o(H),ce=n(de,2);{var ae=C=>{var z=$n();i(C,z)};E(ce,C=>{(!u()||e(K).length>0)&&C(ae)})}s(H);var te=n(H,2),ke=o(te),L=O(ke,!0),he=n(ke,2),Ne=O(he,!0);s(te),s(w);var _e=n(w,2);return Ge(_e,23,()=>e(K),(C,z)=>`${m()}-${z}`,(C,z,Le)=>{var me=Nn(),v=o(me),R=o(v);st(2),s(v);var A=n(v,2),X=o(A);{var ie=Ce=>{Lt(Ce,{get fileName(){return e(z).path},get patch(){return e(z).patch},get annotations(){return e(z).annotations},get additions(){return e(z).additions},get deletions(){return e(z).deletions},get fileDescription(){return e(z).summary},get onSendMessage(){return W()},get isSending(){return P()},class:"rounded-lg border border-border overflow-hidden"})},$e=Ce=>{var ye=Sn(),V=o(ye),j=n(o(V),2),f=O(j,!0);s(V);var D=n(V,2);{var F=le=>{var a=Cn(),T=O(a,!0);M(()=>S(T,e(z).summary)),i(le,a)};E(D,le=>{e(z).summary&&le(F)})}s(ye),M(()=>S(f,e(z).path)),i(Ce,ye)};E(X,Ce=>{e(z).patch?Ce(ie):Ce($e,-1)})}s(A),s(me),M(()=>Ee(R,1,`w-0.5 flex-1 bg-border ${e(Le)===e(K).length-1&&u()?"h-1/2":""}`)),i(C,me)}),s(_e),s(q),M(C=>{Ee(q,1,`walkthrough-category-section ${h()??""}`),Er(q,"id",`category-${m()??""}`),Ee(de,1,`w-3 h-3 rounded-full ${C??""} ring-4 ring-background shrink-0`),S(L,d().title),S(Ne,d().description)},[()=>J(m())]),i($,q),qe(pe)}var Mn=x('<!> <!> <span class="text-sm font-medium"> </span> <!>',1),Pn=x('<div class="flex items-center gap-2 text-sm text-subtle py-2"><!> <span> </span></div>'),Ot=x("<!> ",1),In=x('<div class="rounded-lg bg-danger-background/10 border border-danger/20 p-4"><p class="text-sm text-danger"> </p> <!></div>'),Ln=x('<h2 class="text-lg font-semibold text-foreground"> </h2>'),An=x('<p class="text-sm text-subtle italic"> </p>'),Kt=x("<div><!></div>"),zn=x('<div class="space-y-8 pt-4"></div>'),En=x('<!> <!> <span class="text-sm font-medium text-subtle"> </span>',1),Hn=x('<div class="space-y-3 pt-2"></div>'),Dn=x('<div class="pt-4 border-t border-border"><!> <!></div>'),Tn=x('<div class="flex justify-end pt-2"><!></div>'),Wn=x('<div class="space-y-6"><!> <!> <!> <!> <!> <!></div>'),jn=x('<div class="px-4 pb-4"><!> <!> <!></div>'),Fn=x('<div class="border-t border-border"><!> <!></div>');function Xt($,r){if(new.target)return Ke({component:Xt,...$});Je(r,!0);let d=k(r,"walkthrough",7),m=k(r,"status",7),b=k(r,"workspaceId",7),u=k(r,"error",7,""),W=k(r,"workspacePath",7),P=k(r,"changes",23,()=>[]),h=k(r,"onSendMessage",7),J=k(r,"isSending",7,!1),K=k(r,"onRegenerate",7),pe=k(r,"showCategoriesGrid",7,!0);const q=_(()=>m()==="running"),w=_(()=>m()==="complete"),H=_(()=>!!u());let de=we(!0),ce=we(!1),ae=we(mt(new Map));const te=_(()=>{if(d()?.categories&&d().categories.length>0)return d().categories;if(d()?.annotations&&d().annotations.length>0){const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}return[{title:d().title,description:d().overview,files:Array.from(v.entries()).map(([R,A])=>({path:R,annotations:A.sort((X,ie)=>X.line-ie.line)}))}]}return[]}),ke=_(()=>{if(!d()?.annotations)return new Map;const v=new Map;for(const R of d().annotations){const A=v.get(R.file)||[];A.push(R),v.set(R.file,A)}for(const[R,A]of v)v.set(R,A.sort((X,ie)=>X.line-ie.line));return v}),L=_(()=>{const v=new Set;for(const R of e(te))for(const A of R.files)v.add(A.path);for(const R of e(ke).keys())v.add(R);return v}),he=_(()=>P().filter(v=>!e(L).has(v.relativePath)));Ze(()=>{if(!d()||!W())return;const v=new Set([...e(L),...e(he).map(R=>R.relativePath)]);for(const R of v)e(ae).has(R)||Jr(b(),!0,R).then(A=>{if(A&&A.oldContent!==void 0&&A.newContent!==void 0){const X=Ne(R,A.oldContent,A.newContent);if(X){const ie=P().find($e=>$e.relativePath===R);e(ae).set(R,{patch:X,additions:ie?.stats?.additions??0,deletions:ie?.stats?.deletions??0}),I(ae,new Map(e(ae)),!0)}}}).catch(A=>{console.warn(`Failed to load diff for ${R}:`,A)})});function Ne(v,R,A){const X=R.split(`
@@ -1 +1 @@
1
- var U=Object.defineProperty;var L=e=>{throw TypeError(e)};var K=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var x=(e,t,r)=>K(e,typeof t!="symbol"?t+"":t,r),Q=(e,t,r)=>t.has(e)||L("Cannot "+r);var T=(e,t,r)=>(Q(e,t,"read from private field"),r?r.call(e):t.get(e)),P=(e,t,r)=>t.has(e)?L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);import{at as V,ca as X,c9 as G,aD as M,bH as Y,bo as Z,bs as $,a7 as E,ay as F,W as z,bn as ee,aA as m,a5 as te,bf as re,bA as oe,aB as se}from"./DYhIMPy1.js";import{a as N,s as ie}from"./BsieX9dN.js";import{q as ne,s as j,i as ae}from"./BEdXc2Cn.js";import{S as ce}from"./NpJ_H_lL.js";import{t as le,bq as b,a_ as de,by as ue,b as fe,br as he}from"./CXgKrD4b.js";import{s as k}from"./CHyKyUzM.js";import{av as pe,aG as ve,aS as ge,aT as D,aJ as S,bn as me}from"./-svebp9s.js";function A(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function be(e){const t=e.querySelectorAll("[data-animated-height-target]"),r=t.item(t.length-1)||e.firstElementChild;if(!r)return e.scrollHeight;const a=getComputedStyle(r),c=Number.parseFloat(a.height);return Number.isFinite(c)?a.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((s,l)=>s+(Number.parseFloat(a[l])||0),0):r.offsetHeight}const Re=(e,t=!0)=>{let{open:r,onClosed:a}=A(t);const{tier:c}=A(t),s=new ce(0,c);let l=!r,h,n=!1,v,g,d;const H=e.style.overflow,w=e.style.height,C=()=>{e.style.overflow="clip",h=s.current,e.style.height=`${h}px`},O=V(()=>{X(()=>{const u=s.current;!l||n||u===h||(d?.(),d=N(()=>{d=void 0,n||C()}))})}),p=()=>{if(n)return;v?.(),g?.();const u=y=>{g=N(()=>{if(g=void 0,n)return;const J=s.set(y,{instant:!l||j()});l=!0,r||J.then(()=>{!n&&!r&&s.current===0&&a?.()}),d?.(),d=void 0,C()})};r?v=ie(()=>{v=void 0,u(be(e))}):u(0)},o=()=>{j()&&p()},i=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{r&&p()});let f=null;const q=()=>{const u=e.querySelectorAll("[data-animated-height-target]"),y=u.item(u.length-1)||e.firstElementChild||e;y!==f&&(f&&i?.unobserve(f),f=y,i?.observe(y))};q();const B=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{n||(q(),r&&p())});B?.observe(e,{childList:!0,subtree:!0});const I=ne(o);return p(),{update(u=!0){({open:r,onClosed:a}=A(u)),p()},destroy(){n=!0,v?.(),g?.(),d?.(),s.set(s.current,{instant:!0}),i?.disconnect(),B?.disconnect(),I(),O(),e.style.height=w,e.style.overflow=H}}},ye=ge({component:"separator",parts:["root"]});var _;const W=class W{constructor(t){x(this,"opts");x(this,"attachment");P(this,_,G(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":ve(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[ye.root]:"",...this.attachment})));this.opts=t,this.attachment=pe(t.ref)}static create(t){return new W(t)}get props(){return M(T(this,_))}set props(t){Y(T(this,_),t)}};_=new WeakMap;let R=W;var _e=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]),we=se("<div><!></div>");function Ce(e,t){const r=Z();if(new.target)return le({component:Ce,...e});$(t,!0);let a=b(t,"id",23,()=>D(r)),c=b(t,"ref",15,null),s=b(t,"child",7),l=b(t,"children",7),h=b(t,"decorative",7,!1),n=b(t,"orientation",7,"horizontal"),v=he(t,_e);const g=R.create({ref:S(()=>c(),o=>c(o)),id:S(()=>a()),decorative:S(()=>h()),orientation:S(()=>n())}),d=G(()=>me(v,g.props));var H={get id(){return a()},set id(o=D(r)){a(o),m()},get ref(){return c()},set ref(o=null){c(o),m()},get child(){return s()},set child(o){s(o),m()},get children(){return l()},set children(o){l(o),m()},get decorative(){return h()},set decorative(o=!1){h(o),m()},get orientation(){return n()},set orientation(o="horizontal"){n(o),m()},$set:ue,$on:(o,i)=>fe(t,o,i)},w=E(),C=F(w);{var O=o=>{var i=E(),f=F(i);k(f,s,()=>({props:M(d)})),z(o,i)},p=o=>{var i=we();ae(i,()=>({...M(d)}));var f=te(i);k(f,()=>l()??re),oe(i),z(o,i)};de(C,o=>{s()?o(O):o(p,-1)})}return z(e,w),ee(H)}export{Ce as S,Re as a};
1
+ var U=Object.defineProperty;var L=e=>{throw TypeError(e)};var K=(e,t,r)=>t in e?U(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var x=(e,t,r)=>K(e,typeof t!="symbol"?t+"":t,r),Q=(e,t,r)=>t.has(e)||L("Cannot "+r);var T=(e,t,r)=>(Q(e,t,"read from private field"),r?r.call(e):t.get(e)),P=(e,t,r)=>t.has(e)?L("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r);import{at as V,ca as X,c9 as G,aD as M,bH as Y,bo as Z,bs as $,a7 as E,ay as F,W as z,bn as ee,aA as m,a5 as te,bf as re,bA as oe,aB as se}from"./DYhIMPy1.js";import{a as N,s as ie}from"./BsieX9dN.js";import{q as ne,s as j,i as ae}from"./CnMdEUN9.js";import{S as ce}from"./Cl-7Au8R.js";import{t as le,bq as b,a_ as de,by as ue,b as fe,br as he}from"./Dso1_H3c.js";import{s as k}from"./BfNeIJAh.js";import{av as pe,aG as ve,aS as ge,aT as D,aJ as S,bn as me}from"./m5UczIQR.js";function A(e){return typeof e=="object"?{open:e.open??!0,tier:e.tier??"slow",onClosed:e.onClosed}:{open:e??!0,tier:"slow",onClosed:void 0}}function be(e){const t=e.querySelectorAll("[data-animated-height-target]"),r=t.item(t.length-1)||e.firstElementChild;if(!r)return e.scrollHeight;const a=getComputedStyle(r),c=Number.parseFloat(a.height);return Number.isFinite(c)?a.boxSizing==="border-box"?c:c+["paddingTop","paddingBottom","borderTopWidth","borderBottomWidth"].reduce((s,l)=>s+(Number.parseFloat(a[l])||0),0):r.offsetHeight}const Re=(e,t=!0)=>{let{open:r,onClosed:a}=A(t);const{tier:c}=A(t),s=new ce(0,c);let l=!r,h,n=!1,v,g,d;const H=e.style.overflow,w=e.style.height,C=()=>{e.style.overflow="clip",h=s.current,e.style.height=`${h}px`},O=V(()=>{X(()=>{const u=s.current;!l||n||u===h||(d?.(),d=N(()=>{d=void 0,n||C()}))})}),p=()=>{if(n)return;v?.(),g?.();const u=y=>{g=N(()=>{if(g=void 0,n)return;const J=s.set(y,{instant:!l||j()});l=!0,r||J.then(()=>{!n&&!r&&s.current===0&&a?.()}),d?.(),d=void 0,C()})};r?v=ie(()=>{v=void 0,u(be(e))}):u(0)},o=()=>{j()&&p()},i=typeof ResizeObserver>"u"?void 0:new ResizeObserver(()=>{r&&p()});let f=null;const q=()=>{const u=e.querySelectorAll("[data-animated-height-target]"),y=u.item(u.length-1)||e.firstElementChild||e;y!==f&&(f&&i?.unobserve(f),f=y,i?.observe(y))};q();const B=typeof MutationObserver>"u"?void 0:new MutationObserver(()=>{n||(q(),r&&p())});B?.observe(e,{childList:!0,subtree:!0});const I=ne(o);return p(),{update(u=!0){({open:r,onClosed:a}=A(u)),p()},destroy(){n=!0,v?.(),g?.(),d?.(),s.set(s.current,{instant:!0}),i?.disconnect(),B?.disconnect(),I(),O(),e.style.height=w,e.style.overflow=H}}},ye=ge({component:"separator",parts:["root"]});var _;const W=class W{constructor(t){x(this,"opts");x(this,"attachment");P(this,_,G(()=>({id:this.opts.id.current,role:this.opts.decorative.current?"none":"separator","aria-orientation":this.opts.orientation.current,"aria-hidden":ve(this.opts.decorative.current),"data-orientation":this.opts.orientation.current,[ye.root]:"",...this.attachment})));this.opts=t,this.attachment=pe(t.ref)}static create(t){return new W(t)}get props(){return M(T(this,_))}set props(t){Y(T(this,_),t)}};_=new WeakMap;let R=W;var _e=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","decorative","orientation"]),we=se("<div><!></div>");function Ce(e,t){const r=Z();if(new.target)return le({component:Ce,...e});$(t,!0);let a=b(t,"id",23,()=>D(r)),c=b(t,"ref",15,null),s=b(t,"child",7),l=b(t,"children",7),h=b(t,"decorative",7,!1),n=b(t,"orientation",7,"horizontal"),v=he(t,_e);const g=R.create({ref:S(()=>c(),o=>c(o)),id:S(()=>a()),decorative:S(()=>h()),orientation:S(()=>n())}),d=G(()=>me(v,g.props));var H={get id(){return a()},set id(o=D(r)){a(o),m()},get ref(){return c()},set ref(o=null){c(o),m()},get child(){return s()},set child(o){s(o),m()},get children(){return l()},set children(o){l(o),m()},get decorative(){return h()},set decorative(o=!1){h(o),m()},get orientation(){return n()},set orientation(o="horizontal"){n(o),m()},$set:ue,$on:(o,i)=>fe(t,o,i)},w=E(),C=F(w);{var O=o=>{var i=E(),f=F(i);k(f,s,()=>({props:M(d)})),z(o,i)},p=o=>{var i=we();ae(i,()=>({...M(d)}));var f=te(i);k(f,()=>l()??re),oe(i),z(o,i)};de(C,o=>{s()?o(O):o(p,-1)})}return z(e,w),ee(H)}export{Ce as S,Re as a};
@@ -1 +1 @@
1
- import{l as e}from"./D5BJwiCX.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};
1
+ import{l as e}from"./35OKERyz.js";const t={comments:{lineComment:"#",blockComment:["'''","'''"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string","comment"]}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],onEnterRules:[{beforeText:new RegExp("^\\s*(?:def|class|for|if|elif|else|while|try|with|finally|except|async|match|case).*?:\\s*$"),action:{indentAction:e.IndentAction.Indent}}],folding:{offSide:!0,markers:{start:new RegExp("^\\s*#region\\b"),end:new RegExp("^\\s*#endregion\\b")}}},s={defaultToken:"",tokenPostfix:".python",keywords:["False","None","True","_","and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","match","nonlocal","not","or","pass","print","raise","return","try","type","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","self","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.bracket"},{open:"(",close:")",token:"delimiter.parenthesis"}],tokenizer:{root:[{include:"@whitespace"},{include:"@numbers"},{include:"@strings"},[/[,:;]/,"delimiter"],[/[{}\[\]()]/,"@brackets"],[/@[a-zA-Z_]\w*/,"tag"],[/[a-zA-Z_]\w*/,{cases:{"@keywords":"keyword","@default":"identifier"}}]],whitespace:[[/\s+/,"white"],[/(^#.*$)/,"comment"],[/'''/,"string","@endDocString"],[/"""/,"string","@endDblDocString"]],endDocString:[[/[^']+/,"string"],[/\\'/,"string"],[/'''/,"string","@popall"],[/'/,"string"]],endDblDocString:[[/[^"]+/,"string"],[/\\"/,"string"],[/"""/,"string","@popall"],[/"/,"string"]],numbers:[[/-?0x([abcdef]|[ABCDEF]|\d)+[lL]?/,"number.hex"],[/-?(\d*\.)?\d+([eE][+\-]?\d+)?[jJ]?[lL]?/,"number"]],strings:[[/'$/,"string.escape","@popall"],[/f'{1,3}/,"string.escape","@fStringBody"],[/'/,"string.escape","@stringBody"],[/"$/,"string.escape","@popall"],[/f"{1,3}/,"string.escape","@fDblStringBody"],[/"/,"string.escape","@dblStringBody"]],fStringBody:[[/[^\\'\{\}]+$/,"string","@popall"],[/[^\\'\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],stringBody:[[/[^\\']+$/,"string","@popall"],[/[^\\']+/,"string"],[/\\./,"string"],[/'/,"string.escape","@popall"],[/\\$/,"string"]],fDblStringBody:[[/[^\\"\{\}]+$/,"string","@popall"],[/[^\\"\{\}]+/,"string"],[/\{[^\}':!=]+/,"identifier","@fStringDetail"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],dblStringBody:[[/[^\\"]+$/,"string","@popall"],[/[^\\"]+/,"string"],[/\\./,"string"],[/"/,"string.escape","@popall"],[/\\$/,"string"]],fStringDetail:[[/[:][^}]+/,"string"],[/[!][ars]/,"string"],[/=/,"string"],[/\}/,"identifier","@pop"]]}};export{t as conf,s as language};
@@ -1 +1 @@
1
- import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./CXgKrD4b.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 L,aA as U}from"./DYhIMPy1.js";import{G as At}from"./Brb5mMFP.js";import{b as Dt}from"./BaIAhI85.js";import{Ik as a,eu as Pt,ev as St,nV as Et,z3 as Ut,nZ as _t,n_ as Ft,IR as Tt,J6 as Wt,IW as xt,uV as qt,ua as vt}from"./DenVKqrV.js";import{b2 as Ht}from"./L4diC29H.js";import{g as Lt}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Gt,bE as Kt}from"./HcYBxKPc.js";import{af as Mt}from"./DTmn8xTR.js";import{C as Vt}from"./BqzIXvAg.js";import{V as jt}from"./Cc3p9mKN.js";import{bQ as Jt,bK as zt,b5 as Qt}from"./Zi02dDqY.js";import{i as Zt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const N=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),G=()=>d(Q,"$foldUnchanged",n),K=()=>d(z,"$lineWrapping",n),M=()=>d(Z,"$diffSideBySide",n),V=()=>d(at,"$ftLoading$",n),[n,j]=It(),J=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 G()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Wt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Tt())})},z=Jt(),Q=zt(),Z=Qt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Lt(),g=Ht(()=>i()),X=Nt(g),Y=Mt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),W=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Gt(g),at=Kt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),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||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).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(D)?.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(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=L(!0),R=L(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:Zt(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(W)}}));k(()=>{!T||!$()||T.registerActions({display:J})});const q=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,q)),()=>a.dispatch(Ft(e,q))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$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(()=>V()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(W),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}));Dt(Vt(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 P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return j(),pt}export{Xt as default};
1
+ import{t as ht,bq as E,by as $t,bs as It,b as bt,bu as d}from"./Dso1_H3c.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 L,aA as U}from"./DYhIMPy1.js";import{G as At}from"./DCCFERAn.js";import{b as Dt}from"./BaIAhI85.js";import{Ik as a,eu as Pt,ev as St,nV as Et,z3 as Ut,nZ as _t,n_ as Ft,IR as Tt,J6 as Wt,IW as xt,uV as qt,ua as vt}from"./Dk1_0x0Q.js";import{b2 as Ht}from"./BE_5EfDm.js";import{g as Lt}from"./DfN8_dcw.js";import{dr as Nt,bN as Ot,bC as Bt,bG as Gt,bE as Kt}from"./CArqGgyL.js";import{af as Mt}from"./l8UFOWir.js";import{C as Vt}from"./zobwBhBP.js";import{V as jt}from"./mdduA0pr.js";import{bQ as Jt,bK as zt,b5 as Qt}from"./ClZsJ0tq.js";import{i as Zt}from"./H2jLkRRS.js";function Xt(_,f){if(new.target)return ht({component:Xt,..._});yt(f,!0);const N=()=>d(Y,"$gitRoots$",n),F=()=>d(X,"$workspace",n),O=()=>d(st,"$ftCommits$",n),B=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),G=()=>d(Q,"$foldUnchanged",n),K=()=>d(z,"$lineWrapping",n),M=()=>d(Z,"$diffSideBySide",n),V=()=>d(at,"$ftLoading$",n),[n,j]=It(),J=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 G()},onToggleFold:()=>a.dispatch(xt()),get wrapEnabled(){return K()},onToggleWrap:()=>a.dispatch(Wt()),get splitEnabled(){return M()},onToggleSplit:()=>a.dispatch(Tt())})},z=Jt(),Q=zt(),Z=Qt();let h=E(f,"tab",7),i=E(f,"workspaceId",7),$=E(f,"isActive",7);const T=Lt(),g=Ht(()=>i()),X=Nt(g),Y=Mt(g),w=crypto.randomUUID(),tt=Ot(g,w),c=s(()=>h().data?.commitHash||""),W=s(()=>h().data?.commitMessage||"");k(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Pt(e,"history")),()=>a.dispatch(St(e,"history"))});const r=s(()=>h().data?.gitRootId||""),x=s(()=>t(r)&&N().find(e=>e.id===t(r))?.path||""),et=s(()=>t(x)||F()?.worktreePath||F()?.repositoryPath||""),st=Bt(g),ot=Gt(g),at=Kt(g),nt=s(()=>O()||[]),it=s(()=>B()||[]),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||[]),D=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(D)?.result?.kind==="commitDetails"?t(D).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(D)?.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(Et(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Ut(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=L(!0),R=L(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:Zt(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(W)}}));k(()=>{!T||!$()||T.registerActions({display:J})});const q=crypto.randomUUID();k(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,q)),()=>a.dispatch(Ft(e,q))});var mt={get tab(){return h()},set tab(e){h(e),U()},get workspaceId(){return i()},set workspaceId(e){i(e),U()},get isActive(){return $()},set isActive(e){$(e),U()},$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(()=>V()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(x)||void 0),ut=s(()=>({hash:t(c),message:t(W),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}));Dt(Vt(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 P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:P,sourcePanelId:S}))},onOpenNote:(b,m)=>{const P=m?.metaKey||m?.ctrlKey||!1,S=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(qt(i(),b,{openInAdjacentPanel:P,sourcePanelId:S}))}}),b=>H(R,b,!0),()=>t(R))}}),kt(_,v);var pt=wt(mt);return j(),pt}export{Xt as default};
@@ -1 +1 @@
1
- import{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./CXgKrD4b.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./DYhIMPy1.js";import{C as U}from"./BqzIXvAg.js";import{dr as V}from"./HcYBxKPc.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});L(o,!0);const l=()=>D(b,"$workspace",u),[u,m]=j();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:W,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};T(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(c,p);var x=H(C);return m(),x}export{Z as default};
1
+ import{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./Dso1_H3c.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./DYhIMPy1.js";import{C as U}from"./zobwBhBP.js";import{dr as V}from"./CArqGgyL.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});L(o,!0);const l=()=>D(b,"$workspace",u),[u,m]=j();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:W,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};T(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(c,p);var x=H(C);return m(),x}export{Z as default};
@@ -1,2 +1,2 @@
1
- import{t as ht,bq as m,bo as g,a_ as p,by as bt,b as xt}from"./CXgKrD4b.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./BEdXc2Cn.js";import{I as Pt,D as zt}from"./NpJ_H_lL.js";import{f as M}from"./-svebp9s.js";import"./CHyKyUzM.js";import{F as rt,c8 as Rt,ck as St,aq as Wt}from"./D-Mv0NgR.js";import{e as Dt}from"./BA5tpMka.js";import{D as Lt}from"./Dl-ybQ3z.js";import{Ik as $t,ua as qt}from"./DenVKqrV.js";import{g as Ht}from"./Ci37X5fE.js";var Nt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),L=m(n,"workspaceId",7),P=m(n,"applying",7,!1),$=m(n,"onApply",7),q=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
1
+ import{t as ht,bq as m,bo as g,a_ as p,by as bt,b as xt}from"./Dso1_H3c.js";import{bs as yt,a7 as kt,ay as Q,W as u,bn as At,aA as h,a5 as F,bS as f,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./DYhIMPy1.js";import{I as Bt,n as Ct}from"./CnMdEUN9.js";import{I as Pt,D as zt}from"./Cl-7Au8R.js";import{f as M}from"./m5UczIQR.js";import"./BfNeIJAh.js";import{F as rt,c8 as Rt,ck as St,aq as Wt}from"./DAGiwOmW.js";import{e as Dt}from"./DVWbUaqE.js";import{D as Lt}from"./DZTtqmYJ.js";import{Ik as $t,ua as qt}from"./Dk1_0x0Q.js";import{g as Ht}from"./BuCbZihK.js";var Nt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),Ft=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Mt=k("<!> ",1),Ot=k('<div class="mb-2 flex gap-1"></div>'),Vt=k('<div class="border-t border-border p-2"><!> <!></div>'),jt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Tt(U,n){if(new.target)return ht({component:Tt,...U});yt(n,!0);let A=m(n,"patches",7),O=m(n,"label",23,()=>g.ui_patchBlock_label()),V=m(n,"lastApply",7),w=m(n,"linkedAgentId",7),L=m(n,"workspaceId",7),P=m(n,"applying",7,!1),$=m(n,"onApply",7),q=m(n,"onRevert",7),j=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),T=y(()=>V()?.status==="success");function st(t){const o=t.split(`
2
2
  `);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),G=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(T)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||q()));function ot(){et(j,!e(j))}function lt(){e(T)?q()?.():$()?.()}var it={get patches(){return A()},set patches(t){A(t),h()},get label(){return O()},set label(t=g.ui_patchBlock_label()){O(t),h()},get lastApply(){return V()},set lastApply(t){V(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return q()},set onRevert(t){q(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=jt(),v=F(o),b=F(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());M(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:l=>{L()&&$t.dispatch(qt(L(),{agentId:w(),...Ht(l)}))},get title(){return e(c)},children:(l,_)=>{Dt(l,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};p(b,a=>{w()&&a(I)})}var Z=f(b,2);M(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var l=Ft(),_=Q(l);{var B=i=>{rt(i,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};p(_,i=>{w()||i(B)})}var C=f(_,2),s=S(C,!0),d=f(C,2),r=F(d),R=S(r),H=f(r,2),J=S(H);W(d);var K=f(d,2);{var tt=i=>{var N=Nt(),mt=S(N,!0);D(gt=>x(mt,gt),[()=>g.ui_patchBlock_applied_label()]),u(i,N)};p(K,i=>{e(T)&&i(tt)})}D(()=>{x(s,O()),x(R,`+${e(X).addCount??""}`),x(J,`-${e(X).removeCount??""}`)}),u(a,l)},$$slots:{default:!0}});var ut=f(Z,2);{var ft=a=>{M(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:lt,get disabled(){return P()},children:(c,l)=>{var _=Mt(),B=Q(_);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(G).icon},size:"xs"})};p(B,r=>{P()?r(C):e(G).icon&&r(s,1)})}var d=f(B);D(()=>x(d,` ${e(G).label??""}`)),u(c,_)},$$slots:{default:!0}})};p(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=f(v,2);{var _t=a=>{var c=Vt(),l=F(c);{var _=s=>{var d=Ot();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,H)=>{{let J=y(()=>e(H)===e(E)?"default":"ghost-light");M(r,{get variant(){return e(J)},size:"sm",class:"type-caption",onclick:()=>et(E,e(H),!0),children:(K,tt)=>{wt();var i=It();D(N=>x(i,N),[()=>e(R).filePath.split("/").pop()]),u(K,i)},$$slots:{default:!0}})}}),W(d),u(s,d)};p(l,s=>{A().length>1&&s(_)})}var B=f(l,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};p(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),u(a,c)};p(vt,a=>{e(j)&&a(_t)})}W(o),u(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),u(t,o)};p(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return u(U,Y),At(it)}export{Tt as P};
@@ -1 +1 @@
1
- import{g as c}from"./D5BJwiCX.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};
1
+ import{g as c}from"./35OKERyz.js";function a(e,o){const r=globalThis.MonacoEnvironment;if(r?.createTrustedTypesPolicy)try{return r.createTrustedTypesPolicy(e,o)}catch(t){console.error(t);return}try{return globalThis.trustedTypes?.createPolicy(e,o)}catch(t){console.error(t);return}}let n;typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope"&&globalThis.workerttPolicy!==void 0?n=globalThis.workerttPolicy:n=a("defaultWorkerFactory",{createScriptURL:e=>e});function l(e){const o=e.label,r=globalThis.MonacoEnvironment;if(r){if(typeof r.getWorker=="function")return r.getWorker("workerMain.js",o);if(typeof r.getWorkerUrl=="function"){const t=r.getWorkerUrl("workerMain.js",o);return new Worker(n?n.createScriptURL(t):t,{name:o,type:"module"})}}if(e.createWorker)return e.createWorker();throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function s(e){const o=Promise.resolve(l({label:e.label??"monaco-editor-worker",moduleId:e.moduleId,createWorker:e.createWorker})).then(r=>(r.postMessage("ignore"),r.postMessage(e.createData),r));return c.createWebWorker({worker:o,host:e.host,keepIdleModels:e.keepIdleModels})}export{s as c};