@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,18 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CM28_vQq.js","/app/immutable/chunks/DenVKqrV.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DY2uGuix.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/CHyKyUzM.js","/app/immutable/chunks/CXgKrD4b.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/Brb5mMFP.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/xbz74Y37.js","/app/immutable/chunks/R4bwBwT_.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BFLeHPtB.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/01VYey36.js","/app/immutable/chunks/C9Vu0azd.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DLI1aSNH.js"])))=>i.map(i=>d[i]);
2
- var tp=Object.defineProperty;var np=Object.getPrototypeOf;var rp=Reflect.get;var yu=t=>{throw TypeError(t)};var op=(t,e,n)=>e in t?tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var _=(t,e,n)=>op(t,typeof e!="symbol"?e+"":e,n),cl=(t,e,n)=>e.has(t)||yu("Cannot "+n);var l=(t,e,n)=>(cl(t,e,"read from private field"),n?n.call(t):e.get(t)),C=(t,e,n)=>e.has(t)?yu("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),I=(t,e,n,r)=>(cl(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),F=(t,e,n)=>(cl(t,e,"access private method"),n);var wu=(t,e,n,r)=>({set _(o){I(t,e,o,n)},get _(){return l(t,e,r)}}),Cu=(t,e,n)=>rp(np(t),n,e);import{t as Ae,bq as h,by as Te,b as Ee,a_ as Ie,bt as ko,br as xr,bo as z,_ as cs}from"./CXgKrD4b.js";import{A as ip,bV as oe,c8 as xu,ao as er,bY as Ar,bU as sp,b5 as ys,aD as w,bH as N,aV as lo,c9 as U,br as Hn,aa as Sd,bi as Pe,aM as ap,aG as _l,bI as lp,cb as cp,ca as Le,c5 as Ao,c0 as up,bs as Oe,a7 as ue,ay as se,bf as we,W as Q,bn as _e,aA as p,aF as dp,bb as fp,c3 as hp,at as kd,bk as pp,bS as mn,aB as je,bo as kc,a5 as Ke,bA as Fe,b$ as Ad,b_ as vr,bO as Pl,bl as gp,be as mp}from"./DYhIMPy1.js";import{s as me}from"./CHyKyUzM.js";import{k as ul,i as Jt,l as Kn,j as Ks,v as yo,n as bp,r as Ac,I as vp}from"./BEdXc2Cn.js";import{b as Td}from"./BaIAhI85.js";import{c as co}from"./7vJjNlp5.js";import{G as yp,S as Ed,O as wp,b as js,c as Cp,y as To,I as Ga,x as Od,N as _d,e as xp,r as Sp,f as kp,L as Ap,n as Tp,o as Ep,l as Op,m as _p,C as Pp,d as Ip,i as Mp,h as Rp,g as Np,k as Dp,z as Fp,D as Lp}from"./Brb5mMFP.js";import{o as D,l as te,c as ke,b as et,s as L,_ as tt,g as Bp,e as wo,n as gn,d as vt}from"./CIyUrgF0.js";import{f as _r,P as zp,B as ye,R as Vp,e as Wp,c as Up,r as Hp,s as Kp}from"./BFLeHPtB.js";import{e as Tc,R as jp,c as $r,a as oo,E as qa,f as Gp,s as qp,m as kn,d as Yp}from"./uXuxG9cN.js";function Xp(){return Symbol(ip)}var Ut,Tt,Ht,ca,Nt,go,Ps;const $c=class $c extends Map{constructor(n){super();C(this,Nt);C(this,Ut,new Map);C(this,Tt,oe(0));C(this,Ht,oe(0));C(this,ca,xu||-1);if(er&&(n=new Map(n),Ar(l(this,Tt),"SvelteMap version"),Ar(l(this,Ht),"SvelteMap.size")),n){for(var[r,o]of n)super.set(r,o);l(this,Ht).v=super.size}}has(n){var r=l(this,Ut),o=r.get(n);if(o===void 0)if(super.has(n))o=F(this,Nt,go).call(this,0),er&&Ar(o,`SvelteMap get(${ys(n)})`),r.set(n,o);else return w(l(this,Tt)),!1;return w(o),!0}forEach(n,r){F(this,Nt,Ps).call(this),super.forEach(n,r)}get(n){var r=l(this,Ut),o=r.get(n);if(o===void 0)if(super.has(n))o=F(this,Nt,go).call(this,0),er&&Ar(o,`SvelteMap get(${ys(n)})`),r.set(n,o);else{w(l(this,Tt));return}return w(o),super.get(n)}getOrInsert(n,r){return super.has(n)||this.set(n,r),this.get(n)}getOrInsertComputed(n,r){return super.has(n)||this.set(n,r(n)),this.get(n)}set(n,r){var o=l(this,Ut),i=o.get(n),s=super.get(n),a=super.set(n,r),c=l(this,Tt);if(i===void 0)i=F(this,Nt,go).call(this,0),er&&Ar(i,`SvelteMap get(${ys(n)})`),o.set(n,i),N(l(this,Ht),super.size),lo(c);else if(s!==r){lo(i);var u=c.reactions===null?null:new Set(c.reactions),d=u===null||!i.reactions?.every(f=>u.has(f));d&&lo(c)}return a}delete(n){var r=l(this,Ut),o=r.get(n),i=super.delete(n);return o!==void 0&&(r.delete(n),N(o,-1)),i&&(N(l(this,Ht),super.size),lo(l(this,Tt))),i}clear(){if(super.size!==0){super.clear();var n=l(this,Ut);N(l(this,Ht),0);for(var r of n.values())N(r,-1);lo(l(this,Tt)),n.clear()}}keys(){return w(l(this,Tt)),super.keys()}values(){return F(this,Nt,Ps).call(this),super.values()}entries(){return F(this,Nt,Ps).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return w(l(this,Ht)),super.size}};Ut=new WeakMap,Tt=new WeakMap,Ht=new WeakMap,ca=new WeakMap,Nt=new WeakSet,go=function(n){return xu===l(this,ca)?oe(n):sp(n)},Ps=function(){w(l(this,Tt));var n=l(this,Ut);if(l(this,Ht).v!==n.size){for(var r of Cu($c.prototype,this,"keys").call(this))if(!n.has(r)){var o=F(this,Nt,go).call(this,0);er&&Ar(o,`SvelteMap get(${ys(r)})`),n.set(r,o)}}for([,o]of l(this,Ut))w(o)};let Il=$c;function Zp(t){return typeof t=="function"}function us(t){return t!==null&&typeof t=="object"}const Jp=["string","number","bigint","boolean"];function Ml(t){return t==null||Jp.includes(typeof t)?!0:Array.isArray(t)?t.every(e=>Ml(e)):typeof t=="object"?Object.getPrototypeOf(t)===Object.prototype:!1}const eo=Symbol("box"),Ya=Symbol("is-writable");function G(t,e){const n=U(t);return e?{[eo]:!0,[Ya]:!0,get current(){return w(n)},set current(r){e(r)}}:{[eo]:!0,get current(){return t()}}}function ds(t){return us(t)&&eo in t}function Ec(t){return ds(t)&&Ya in t}function Pd(t){return ds(t)?t:Zp(t)?G(t):xt(t)}function Qp(t){return Object.entries(t).reduce((e,[n,r])=>ds(r)?(Ec(r)?Object.defineProperty(e,n,{get(){return r.current},set(o){r.current=o}}):Object.defineProperty(e,n,{get(){return r.current}}),e):Object.assign(e,{[n]:r}),{})}function $p(t){return Ec(t)?{[eo]:!0,get current(){return t.current}}:t}function xt(t){let e=oe(Hn(t));return{[eo]:!0,[Ya]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}function Sr(t){let e=oe(Hn(t));return{[eo]:!0,[Ya]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}Sr.from=Pd;Sr.with=G;Sr.flatten=Qp;Sr.readonly=$p;Sr.isBox=ds;Sr.isWritableBox=Ec;function Id(...t){return function(e){for(const n of t)if(n){if(e.defaultPrevented)return;typeof n=="function"?n.call(this,e):n.current?.call(this,e)}}}var Su=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,eg=/\n/g,tg=/^\s*/,ng=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,rg=/^:\s*/,og=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ig=/^[;\s]*/,sg=/^\s+|\s+$/g,ag=`
3
- `,ku="/",Au="*",tr="",lg="comment",cg="declaration";function ug(t,e){if(typeof t!="string")throw new TypeError("First argument must be a string");if(!t)return[];e=e||{};var n=1,r=1;function o(v){var m=v.match(eg);m&&(n+=m.length);var E=v.lastIndexOf(ag);r=~E?v.length-E:r+v.length}function i(){var v={line:n,column:r};return function(m){return m.position=new s(v),u(),m}}function s(v){this.start=v,this.end={line:n,column:r},this.source=e.source}s.prototype.content=t;function a(v){var m=new Error(e.source+":"+n+":"+r+": "+v);if(m.reason=v,m.filename=e.source,m.line=n,m.column=r,m.source=t,!e.silent)throw m}function c(v){var m=v.exec(t);if(m){var E=m[0];return o(E),t=t.slice(E.length),m}}function u(){c(tg)}function d(v){var m;for(v=v||[];m=f();)m!==!1&&v.push(m);return v}function f(){var v=i();if(!(ku!=t.charAt(0)||Au!=t.charAt(1))){for(var m=2;tr!=t.charAt(m)&&(Au!=t.charAt(m)||ku!=t.charAt(m+1));)++m;if(m+=2,tr===t.charAt(m-1))return a("End of comment missing");var E=t.slice(2,m-2);return r+=2,o(E),t=t.slice(m),r+=2,v({type:lg,comment:E})}}function g(){var v=i(),m=c(ng);if(m){if(f(),!c(rg))return a("property missing ':'");var E=c(og),T=v({type:cg,property:Tu(m[0].replace(Su,tr)),value:E?Tu(E[0].replace(Su,tr)):tr});return c(ig),T}}function b(){var v=[];d(v);for(var m;m=g();)m!==!1&&(v.push(m),d(v));return v}return u(),b()}function Tu(t){return t?t.replace(sg,tr):tr}function dg(t,e){let n=null;if(!t||typeof t!="string")return n;const r=ug(t),o=typeof e=="function";return r.forEach(i=>{if(i.type!=="declaration")return;const{property:s,value:a}=i;o?e(s,a,i):a&&(n=n||{},n[s]=a)}),n}const fg=/\d/,hg=["-","_","/","."];function pg(t=""){if(!fg.test(t))return t!==t.toLowerCase()}function gg(t){const e=[];let n="",r,o;for(const i of t){const s=hg.includes(i);if(s===!0){e.push(n),n="",r=void 0;continue}const a=pg(i);if(o===!1){if(r===!1&&a===!0){e.push(n),n=i,r=a;continue}if(r===!0&&a===!1&&n.length>1){const c=n.at(-1);e.push(n.slice(0,Math.max(0,n.length-1))),n=c+i,r=a;continue}}n+=i,r=a,o=s}return e.push(n),e}function Md(t){return t?gg(t).map(e=>bg(e)).join(""):""}function mg(t){return vg(Md(t||""))}function bg(t){return t?t[0].toUpperCase()+t.slice(1):""}function vg(t){return t?t[0].toLowerCase()+t.slice(1):""}function mo(t){if(!t)return{};const e={};function n(r,o){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){e[Md(r)]=o;return}if(r.startsWith("--")){e[r]=o;return}e[mg(r)]=o}return dg(t,n),e}function Pr(...t){return(...e)=>{for(const n of t)typeof n=="function"&&n(...e)}}function yg(t,e){const n=RegExp(t,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(n)?r.replace(n,e):r}}const wg=yg(/[A-Z]/,t=>`-${t.toLowerCase()}`);function Cg(t){if(!t||typeof t!="object"||Array.isArray(t))throw new TypeError(`expected an argument of type object, but got ${typeof t}`);return Object.keys(t).map(e=>`${wg(e)}: ${t[e]};`).join(`
4
- `)}function Rd(t={}){return Cg(t).replace(`
5
- `," ")}const xg=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Sg=new Set(xg);function kg(t){return Sg.has(t)}function Zt(...t){const e={...t[0]};for(let n=1;n<t.length;n++){const r=t[n];if(r){for(const o of Object.keys(r)){const i=e[o],s=r[o],a=typeof i=="function",c=typeof s=="function";if(a&&kg(o)){const u=i,d=s;e[o]=Id(u,d)}else if(a&&c)e[o]=Pr(i,s);else if(o==="class"){const u=Ml(i),d=Ml(s);u&&d?e[o]=ul(i,s):u?e[o]=ul(i):d&&(e[o]=ul(s))}else if(o==="style"){const u=typeof i=="object",d=typeof s=="object",f=typeof i=="string",g=typeof s=="string";if(u&&d)e[o]={...i,...s};else if(u&&g){const b=mo(s);e[o]={...i,...b}}else if(f&&d){const b=mo(i);e[o]={...b,...s}}else if(f&&g){const b=mo(i),v=mo(s);e[o]={...b,...v}}else u?e[o]=i:d?e[o]=s:f?e[o]=i:g&&(e[o]=s)}else e[o]=s!==void 0?s:i}for(const o of Object.getOwnPropertySymbols(r)){const i=e[o],s=r[o];e[o]=s!==void 0?s:i}}}return typeof e.style=="object"&&(e.style=Rd(e.style).replaceAll(`
6
- `," ")),e.hidden===!1&&(e.hidden=void 0,delete e.hidden),e.disabled===!1&&(e.disabled=void 0,delete e.disabled),e}const Nd=typeof window<"u"?window:void 0;function Ag(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}var Rr,Io;class Tg{constructor(e={}){C(this,Rr);C(this,Io);const{window:n=Nd,document:r=n?.document}=e;n!==void 0&&(I(this,Rr,r),I(this,Io,Sd(o=>{const i=Pe(n,"focusin",o),s=Pe(n,"focusout",o);return()=>{i(),s()}})))}get current(){var e;return(e=l(this,Io))==null||e.call(this),l(this,Rr)?Ag(l(this,Rr)):null}}Rr=new WeakMap,Io=new WeakMap;new Tg;function Eg(t){return typeof t=="function"}var Mo,on;class St{constructor(e){C(this,Mo);C(this,on);I(this,Mo,e),I(this,on,Symbol(e))}get key(){return l(this,on)}exists(){return ap(l(this,on))}get(){const e=_l(l(this,on));if(e===void 0)throw new Error(`Context "${l(this,Mo)}" not found`);return e}getOr(e){const n=_l(l(this,on));return n===void 0?e:n}set(e){return lp(l(this,on),e)}}Mo=new WeakMap,on=new WeakMap;function Og(t,e){switch(t){case"post":Le(e);break;case"pre":cp(e);break}}function Dd(t,e,n,r={}){const{lazy:o=!1}=r;let i=!o,s=Array.isArray(t)?[]:void 0;Og(e,()=>{const a=Array.isArray(t)?t.map(u=>u()):t();if(!i){i=!0,s=a;return}const c=Ao(()=>n(a,s));return s=a,c})}function Se(t,e,n){Dd(t,"post",e,n)}function _g(t,e,n){Dd(t,"pre",e,n)}Se.pre=_g;function Eu(t){return Eg(t)?t():t}var Tn,Nr,Dr,Fr,En,ua,da,Lr;class Pg{constructor(e,n={box:"border-box"}){C(this,Tn,{width:0,height:0});C(this,Nr,!1);C(this,Dr);C(this,Fr);C(this,En);C(this,ua,U(()=>(w(l(this,Lr))?.(),this.getSize().width)));C(this,da,U(()=>(w(l(this,Lr))?.(),this.getSize().height)));C(this,Lr,U(()=>{const e=Eu(l(this,Fr));if(e)return Sd(n=>{if(!l(this,En))return;const r=new(l(this,En)).ResizeObserver(o=>{I(this,Nr,!0);for(const i of o){const s=l(this,Dr).box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];l(this,Tn).width=a.reduce((c,u)=>Math.max(c,u.inlineSize),0),l(this,Tn).height=a.reduce((c,u)=>Math.max(c,u.blockSize),0)}n()});return r.observe(e),()=>{I(this,Nr,!1),r.disconnect()}})}));I(this,En,n.window??Nd),I(this,Dr,n),I(this,Fr,e),I(this,Tn,{width:0,height:0})}calculateSize(){const e=Eu(l(this,Fr));if(!e||!l(this,En))return;const n=e.offsetWidth,r=e.offsetHeight;if(l(this,Dr).box==="border-box")return{width:n,height:r};const o=l(this,En).getComputedStyle(e),i=parseFloat(o.paddingLeft)+parseFloat(o.paddingRight),s=parseFloat(o.paddingTop)+parseFloat(o.paddingBottom),a=parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth),c=parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth),u=n-i-a,d=r-s-c;return{width:u,height:d}}getSize(){return l(this,Nr)?l(this,Tn):this.calculateSize()??l(this,Tn)}get current(){return w(l(this,Lr))?.(),this.getSize()}get width(){return w(l(this,ua))}get height(){return w(l(this,da))}}Tn=new WeakMap,Nr=new WeakMap,Dr=new WeakMap,Fr=new WeakMap,En=new WeakMap,ua=new WeakMap,da=new WeakMap,Lr=new WeakMap;function wn(t){Le(()=>()=>{t()})}function Oc(t){Le(()=>Ao(()=>t()))}function Ig(t,e){return setTimeout(e,t)}function Mt(t){up().then(t)}const Mg=1,Rg=9,Ng=11;function Rl(t){return us(t)&&t.nodeType===Mg&&typeof t.nodeName=="string"}function Fd(t){return us(t)&&t.nodeType===Rg}function Dg(t){return us(t)&&t.constructor?.name==="VisualViewport"}function Fg(t){return us(t)&&t.nodeType!==void 0}function Ld(t){return Fg(t)&&t.nodeType===Ng&&"host"in t}function Lg(t,e){if(!t||!e||!Rl(t)||!Rl(e))return!1;const n=e.getRootNode?.();if(t===e||t.contains(e))return!0;if(n&&Ld(n)){let r=e;for(;r;){if(t===r)return!0;r=r.parentNode||r.host}}return!1}function io(t){return Fd(t)?t:Dg(t)?t.document:t?.ownerDocument??document}function Bd(t){return Ld(t)?Bd(t.host):Fd(t)?t.defaultView??window:Rl(t)?t.ownerDocument?.defaultView??window:window}function Bg(t){let e=t.activeElement;for(;e?.shadowRoot;){const n=e.shadowRoot.activeElement;if(n===e)break;e=n}return e}var Ro;class Xa{constructor(e){_(this,"element");C(this,Ro,U(()=>this.element.current?this.element.current.getRootNode()??document:document));_(this,"getDocument",()=>io(this.root));_(this,"getWindow",()=>this.getDocument().defaultView??window);_(this,"getActiveElement",()=>Bg(this.root));_(this,"isActiveElement",e=>e===this.getActiveElement());_(this,"querySelector",e=>this.root?this.root.querySelector(e):null);_(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);_(this,"setTimeout",(e,n)=>this.getWindow().setTimeout(e,n));_(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=G(e):this.element=e}get root(){return w(l(this,Ro))}set root(e){N(l(this,Ro),e)}getElementById(e){return this.root.getElementById(e)}}Ro=new WeakMap;function pt(t,e){return{[Xp()]:n=>ds(t)?(t.current=n,Ao(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t.current=null,e?.(null))}):(t(n),Ao(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t(null),e?.(null))})}}function _c(t){return t?"true":"false"}function YC(t){return t?"true":void 0}function Za(t){return t?"":void 0}function XC(t){return t?!0:void 0}function Pc(t){return t?"open":"closed"}function ZC(t){return t?"checked":"unchecked"}function zd(t){return t==="starting"?{"data-starting-style":""}:t==="ending"?{"data-ending-style":""}:{}}function Vd(t,e){return e?"mixed":t?"true":"false"}var Br,No;class zg{constructor(e){C(this,Br);C(this,No);_(this,"attrs");I(this,Br,e.getVariant?e.getVariant():null),I(this,No,l(this,Br)?`data-${l(this,Br)}-`:`data-${e.component}-`),this.getAttr=this.getAttr.bind(this),this.selector=this.selector.bind(this),this.attrs=Object.fromEntries(e.parts.map(n=>[n,this.getAttr(n)]))}getAttr(e,n){return n?`data-${n}-${e}`:`${l(this,No)}${e}`}selector(e,n){return`[${this.getAttr(e,n)}]`}}Br=new WeakMap,No=new WeakMap;function Wd(t){const e=new zg(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const JC="Alt",Eo="ArrowDown",fs="ArrowLeft",hs="ArrowRight",Gs="ArrowUp",QC="Backspace",$C="CapsLock",ex="Control",Ud="End",Hd="Enter",Vg="Escape",tx="F1",nx="F10",rx="F11",ox="F12",ix="F2",sx="F3",ax="F4",lx="F5",cx="F6",ux="F7",dx="F8",fx="F9",Kd="Home",hx="Meta",Wg="PageDown",Ug="PageUp",px="Shift",Ja=" ",Hg="Tab";function Kg(t){return window.getComputedStyle(t).getPropertyValue("direction")}function jg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?fs:hs,vertical:Eo}[e]}function Gg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?hs:fs,vertical:Gs}[e]}function qg(t="ltr",e="horizontal"){return["ltr","rtl"].includes(t)||(t="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:jg(t,e),prevKey:Gg(t,e)}}const jd=typeof document<"u",Ou=Yg();function Yg(){return jd&&window?.navigator?.userAgent&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||window?.navigator?.maxTouchPoints>2&&/iPad|Macintosh/.test(window?.navigator.userAgent))}function bn(t){return t instanceof HTMLElement}function Rt(t){return t instanceof Element}function Gd(t){return t instanceof Element||t instanceof SVGElement}function gx(t){return t.pointerType==="touch"}function Xg(t){return t.matches(":focus-visible")}function Zg(t){return t!==null}function Jg(t){return t instanceof HTMLInputElement&&"select"in t}var Qe,sn;class Qg{constructor(e){C(this,Qe);C(this,sn,Sr(null));I(this,Qe,e)}getCandidateNodes(){return l(this,Qe).rootNode.current?l(this,Qe).candidateSelector?Array.from(l(this,Qe).rootNode.current.querySelectorAll(l(this,Qe).candidateSelector)):l(this,Qe).candidateAttr?Array.from(l(this,Qe).rootNode.current.querySelectorAll(`[${l(this,Qe).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,n,r=!1){const o=l(this,Qe).rootNode.current;if(!o||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const s=i.indexOf(e),a=Kg(o),{nextKey:c,prevKey:u}=qg(a,l(this,Qe).orientation.current),d=l(this,Qe).loop.current,f={[c]:s+1,[u]:s-1,[Kd]:0,[Ud]:i.length-1};if(r){const v=c===Eo?hs:Eo,m=u===Gs?fs:Gs;f[v]=s+1,f[m]=s-1}let g=f[n.key];if(g===void 0)return;n.preventDefault(),g<0&&d?g=i.length-1:g===i.length&&d&&(g=0);const b=i[g];if(b)return b.focus(),l(this,sn).current=b.id,l(this,Qe).onCandidateFocus?.(b),b}getTabIndex(e){const n=this.getCandidateNodes(),r=l(this,sn).current!==null;return e&&!r&&n[0]===e?(l(this,sn).current=e.id,0):e?.id===l(this,sn).current?0:-1}setCurrentTabStopId(e){l(this,sn).current=e}focusCurrentTabStop(){const e=l(this,sn).current;if(!e)return;const n=l(this,Qe).rootNode.current?.querySelector(`#${e}`);!n||!bn(n)||n.focus()}}Qe=new WeakMap,sn=new WeakMap;var or,Kt,an,Et,qn,Nl,Dl;class $g{constructor(e){C(this,qn);C(this,or);C(this,Kt,null);C(this,an,null);C(this,Et,0);I(this,or,e),wn(()=>F(this,qn,Nl).call(this))}run(e){F(this,qn,Nl).call(this);const n=l(this,or).ref.current;if(!n)return;if(typeof n.getAnimations!="function"){F(this,qn,Dl).call(this,e);return}const r=l(this,Et),o=()=>{r===l(this,Et)&&F(this,qn,Dl).call(this,e)},i=()=>{if(r!==l(this,Et))return;const a=n.getAnimations();if(a.length===0){o();return}Promise.all(a.map(c=>c.finished)).then(()=>{o()}).catch(()=>{if(r!==l(this,Et))return;if(n.getAnimations().some(d=>d.pending||d.playState!=="finished")){i();return}o()})},s=()=>{I(this,Kt,window.requestAnimationFrame(()=>{I(this,Kt,null),i()}))};if(!l(this,or).afterTick.current){s();return}I(this,Kt,window.requestAnimationFrame(()=>{I(this,Kt,null);const a="data-starting-style";if(!n.hasAttribute(a)){s();return}I(this,an,new MutationObserver(()=>{r===l(this,Et)&&(n.hasAttribute(a)||(l(this,an)?.disconnect(),I(this,an,null),s()))})),l(this,an).observe(n,{attributes:!0,attributeFilter:[a]})}))}}or=new WeakMap,Kt=new WeakMap,an=new WeakMap,Et=new WeakMap,qn=new WeakSet,Nl=function(){l(this,Kt)!==null&&(window.cancelAnimationFrame(l(this,Kt)),I(this,Kt,null)),l(this,an)?.disconnect(),I(this,an,null),wu(this,Et)._++},Dl=function(e){const n=l(this,Et),r=()=>{n===l(this,Et)&&e()};l(this,or).afterTick?Mt(r):r()};var lt,Do,Fo,ln,cn,Lo,On,Bo,Fl;class qd{constructor(e){C(this,Bo);C(this,lt);C(this,Do);C(this,Fo);C(this,ln,oe(!1));C(this,cn,oe(void 0));C(this,Lo,!1);C(this,On,null);I(this,lt,e),N(l(this,ln),e.open.current,!0),I(this,Do,e.enabled??!0),I(this,Fo,new $g({ref:l(this,lt).ref,afterTick:l(this,lt).open})),wn(()=>F(this,Bo,Fl).call(this)),Se(()=>l(this,lt).open.current,n=>{if(!l(this,Lo)){I(this,Lo,!0);return}if(F(this,Bo,Fl).call(this),!n&&l(this,lt).shouldSkipExitAnimation?.()){N(l(this,ln),!1),N(l(this,cn),void 0),l(this,lt).onComplete?.();return}if(n&&N(l(this,ln),!0),N(l(this,cn),n?"starting":"ending",!0),n&&I(this,On,window.requestAnimationFrame(()=>{I(this,On,null),l(this,lt).open.current&&N(l(this,cn),void 0)})),!l(this,Do)){n||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,lt).onComplete?.();return}l(this,Fo).run(()=>{n===l(this,lt).open.current&&(l(this,lt).open.current||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,lt).onComplete?.())})})}get shouldRender(){return w(l(this,ln))}get transitionStatus(){return w(l(this,cn))}}lt=new WeakMap,Do=new WeakMap,Fo=new WeakMap,ln=new WeakMap,cn=new WeakMap,Lo=new WeakMap,On=new WeakMap,Bo=new WeakSet,Fl=function(){l(this,On)!==null&&(window.cancelAnimationFrame(l(this,On)),I(this,On,null))};function ge(){}function qs(t,e){return`bits-${t}`}function Yd(t,e){if(new.target)return Ae({component:Yd,...t});Oe(e,!0);const n=h(e,"children",7);var r={get children(){return n()},set children(s){n(s),p()},$set:Te,$on:(s,a)=>Ee(e,s,a)},o=ue(),i=se(o);return yp(i,n,s=>{var a=ue(),c=se(a);me(c,()=>n()??we),Q(s,a)}),Q(t,o),_e(r)}const em=new St("BitsConfig");function tm(){const t=new nm(null,{});return em.getOr(t).opts}class nm{constructor(e,n){_(this,"opts");const r=rm(e,n);this.opts={defaultPortalTo:r(o=>o.defaultPortalTo),defaultLocale:r(o=>o.defaultLocale)}}}function rm(t,e){return n=>G(()=>{const o=n(e)?.current;if(o!==void 0)return o;if(t!==null)return n(t.opts)?.current})}function om(t,e){return n=>{const r=tm();return G(()=>{const o=n();if(o!==void 0)return o;const i=t(r).current;return i!==void 0?i:e})}}const im=om(t=>t.defaultPortalTo,"body");function Xd(t,e){if(new.target)return Ae({component:Xd,...t});Oe(e,!0);let n=h(e,"to",7),r=h(e,"children",7),o=h(e,"disabled",7);const i=im(()=>n()),s=dp();let a=U(c);function c(){if(!jd||o())return null;let m=null;if(typeof i.current=="string"){const E=document.querySelector(i.current);if(er&&E===null)throw new Error(`Target element "${i.current}" not found.`);m=E}else m=i.current;if(er&&!(m instanceof Element)){const E=m===null?"null":typeof m;throw new TypeError(`Unknown portal target type: ${E}. Allowed types: string (query selector) or Element.`)}return m}let u;function d(){u&&(hp(u),u=null)}Se([()=>w(a),()=>o()],([m,E])=>{if(!m||E){d();return}return u=fp(Yd,{target:m,props:{children:r()},context:s}),()=>{d()}});var f={get to(){return n()},set to(m){n(m),p()},get children(){return r()},set children(m){r(m),p()},get disabled(){return o()},set disabled(m){o(m),p()},$set:Te,$on:(m,E)=>Ee(e,m,E)},g=ue(),b=se(g);{var v=m=>{var E=ue(),T=se(E);me(T,()=>r()??we),Q(m,E)};Ie(b,m=>{o()&&m(v)})}return Q(t,g),_e(f)}class sm{constructor(e,n={bubbles:!0,cancelable:!0}){_(this,"eventName");_(this,"options");this.eventName=e,this.options=n}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,n){const r=this.createEvent(n);return e.dispatchEvent(r),r}listen(e,n,r){const o=i=>{n(i)};return Pe(e,this.eventName,o,r)}}function _u(t,e=500){let n=null;const r=(...o)=>{n!==null&&clearTimeout(n),n=setTimeout(()=>{t(...o)},e)};return r.destroy=()=>{n!==null&&(clearTimeout(n),n=null)},r}function Zd(t,e){return t===e||t.contains(e)}function Jd(t){return t?.ownerDocument??document}function am(t,e){const{clientX:n,clientY:r}=t,o=e.getBoundingClientRect();return n<o.left||n>o.right||r<o.top||r>o.bottom}const Ll=[Hd,Ja],lm=[Eo,Ug,Kd],Qd=[Gs,Wg,Ud],cm=[...lm,...Qd],um={ltr:[...Ll,hs],rtl:[...Ll,fs]},mx={ltr:[fs],rtl:[hs]};function dm(t){return t==="indeterminate"}function $d(t){return dm(t)?"indeterminate":t?"checked":"unchecked"}function It(t){return t.pointerType==="mouse"}function fm(t,{select:e=!1}={}){if(!t||!t.focus)return;const n=io(t);if(n.activeElement===t)return;const r=n.activeElement;t.focus({preventScroll:!0}),t!==r&&Jg(t)&&e&&t.select()}function hm(t,{select:e=!1}={},n){const r=n();for(const o of t)if(fm(o,{select:e}),n()!==r)return!0}let uo=oe(!1);const Wt=class Wt{constructor(){Le(()=>(Wt._refs===0&&(Wt._cleanup=kd(()=>{const e=[],n=o=>{N(uo,!1)},r=o=>{N(uo,!0)};return e.push(Pe(document,"pointerdown",n,{capture:!0}),Pe(document,"pointermove",n,{capture:!0}),Pe(document,"keydown",r,{capture:!0})),Pr(...e)})),Wt._refs++,()=>{Wt._refs--,Wt._refs===0&&(N(uo,!1),Wt._cleanup?.())}))}get current(){return w(uo)}set current(e){N(uo,e,!0)}};_(Wt,"_refs",0),_(Wt,"_cleanup");let Bl=Wt;/*!
7
- * tabbable 6.4.0
8
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
9
- */var ef=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],Ys=ef.join(","),tf=typeof Element>"u",yr=tf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Xs=!tf&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Zs=function(e,n){var r;n===void 0&&(n=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),i=o===""||o==="true",s=i||n&&e&&(typeof e.closest=="function"?e.closest("[inert]"):Zs(e.parentNode));return s},pm=function(e){var n,r=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"contenteditable");return r===""||r==="true"},nf=function(e,n,r){if(Zs(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(Ys));return n&&yr.call(e,Ys)&&o.unshift(e),o=o.filter(r),o},Js=function(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Zs(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=Js(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=yr.call(s,Ys);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),g=!Zs(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&g){var b=Js(f===!0?s.children:f.children,!0,r);r.flatten?o.push.apply(o,b):o.push({scopeParent:s,candidates:b})}else i.unshift.apply(i,s.children)}}return o},rf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},of=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||pm(e))&&!rf(e)?0:e.tabIndex},gm=function(e,n){var r=of(e);return r<0&&n&&!rf(e)?0:r},mm=function(e,n){return e.tabIndex===n.tabIndex?e.documentOrder-n.documentOrder:e.tabIndex-n.tabIndex},sf=function(e){return e.tagName==="INPUT"},bm=function(e){return sf(e)&&e.type==="hidden"},vm=function(e){var n=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return n},ym=function(e,n){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===n)return e[r]},wm=function(e){if(!e.name)return!0;var n=e.form||Xs(e),r=function(a){return n.querySelectorAll('input[type="radio"][name="'+a+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var i=ym(o,e.form);return!i||i===e},Cm=function(e){return sf(e)&&e.type==="radio"},xm=function(e){return Cm(e)&&!wm(e)},Sm=function(e){var n,r=e&&Xs(e),o=(n=r)===null||n===void 0?void 0:n.host,i=!1;if(r&&r!==e){var s,a,c;for(i=!!((s=o)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(o)||e!=null&&(c=e.ownerDocument)!==null&&c!==void 0&&c.contains(e));!i&&o;){var u,d,f;r=Xs(o),o=(u=r)===null||u===void 0?void 0:u.host,i=!!((d=o)!==null&&d!==void 0&&(f=d.ownerDocument)!==null&&f!==void 0&&f.contains(o))}}return i},Pu=function(e){var n=e.getBoundingClientRect(),r=n.width,o=n.height;return r===0&&o===0},km=function(e,n){var r=n.displayCheck,o=n.getShadowRoot;if(r==="full-native"&&"checkVisibility"in e){var i=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!i}if(getComputedStyle(e).visibility==="hidden")return!0;var s=yr.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(yr.call(a,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="full-native"||r==="legacy-full"){if(typeof o=="function"){for(var c=e;e;){var u=e.parentElement,d=Xs(e);if(u&&!u.shadowRoot&&o(u)===!0)return Pu(e);e.assignedSlot?e=e.assignedSlot:!u&&d!==e.ownerDocument?e=d.host:e=u}e=c}if(Sm(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return Pu(e);return!1},Am=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var n=e.parentElement;n;){if(n.tagName==="FIELDSET"&&n.disabled){for(var r=0;r<n.children.length;r++){var o=n.children.item(r);if(o.tagName==="LEGEND")return yr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Qs=function(e,n){return!(n.disabled||bm(n)||km(n,e)||vm(n)||Am(n))},zl=function(e,n){return!(xm(n)||of(n)<0||!Qs(e,n))},Tm=function(e){var n=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(n)||n>=0)},af=function(e){var n=[],r=[];return e.forEach(function(o,i){var s=!!o.scopeParent,a=s?o.scopeParent:o,c=gm(a,s),u=s?af(o.candidates):a;c===0?s?n.push.apply(n,u):n.push(a):r.push({documentOrder:i,tabIndex:c,item:o,isScope:s,content:u})}),r.sort(mm).reduce(function(o,i){return i.isScope?o.push.apply(o,i.content):o.push(i.content),o},[]).concat(n)},lf=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Js([e],n.includeContainer,{filter:zl.bind(null,n),flatten:!1,getShadowRoot:n.getShadowRoot,shadowRootFilter:Tm}):r=nf(e,n.includeContainer,zl.bind(null,n)),af(r)},cf=function(e,n){n=n||{};var r;return n.getShadowRoot?r=Js([e],n.includeContainer,{filter:Qs.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=nf(e,n.includeContainer,Qs.bind(null,n)),r},Ic=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return yr.call(e,Ys)===!1?!1:zl(n,e)},Em=ef.concat("iframe:not([inert]):not([inert] *)").join(","),uf=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return yr.call(e,Em)===!1?!1:Qs(n,e)};function Co(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Om(t,e){if(!Ic(t,Co()))return _m(t,e);const n=io(t),r=lf(n.body,Co());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1)[0]}function _m(t,e){const n=io(t);if(!uf(t,Co()))return n.body;const r=cf(n.body,Co());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1).find(s=>Ic(s,Co()))??n.body}function bx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===t.length-1?n?t[0]:void 0:t[e+1]}function vx(t,e,n=!0){if(!(t.length===0||e<0||e>=t.length))return t.length===1&&e===0?t[0]:e===0?n?t[t.length-1]:void 0:t[e-1]}function yx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e+n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function wx(t,e,n,r=!0){if(t.length===0||e<0||e>=t.length)return;let o=e-n;return r?o=(o%t.length+t.length)%t.length:o=Math.max(0,Math.min(o,t.length-1)),t[o]}function df(t,e,n){const r=e.toLowerCase();if(r.endsWith(" ")){const f=r.slice(0,-1);if(t.filter(m=>m.toLowerCase().startsWith(f)).length<=1)return df(t,f,n);const b=n?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return n;const v=t.filter(m=>m.toLowerCase().startsWith(r));if(v.length>0){const m=n?t.indexOf(n):-1;return Iu(v,Math.max(m,0)).find(O=>O!==n)||n}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,s=i.toLowerCase(),a=n?t.indexOf(n):-1;let c=Iu(t,Math.max(a,0));i.length===1&&(c=c.filter(f=>f!==n));const d=c.find(f=>f?.toLowerCase().startsWith(s));return d!==n?d:void 0}function Iu(t,e){return t.map((n,r)=>t[(e+r)%t.length])}const Pm={afterMs:1e4,onChange:ge};function Im(t,e){const{afterMs:n,onChange:r,getWindow:o}={...Pm,...e};let i=null,s=oe(Hn(t));function a(){return o().setTimeout(()=>{N(s,t,!0),r?.(t)},n)}return Le(()=>()=>{i&&o().clearTimeout(i)}),G(()=>w(s),c=>{N(s,c,!0),r?.(c),i&&o().clearTimeout(i),i=a()})}var un,dn,fa,ha;class Mm{constructor(e){C(this,un);C(this,dn);C(this,fa,U(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));C(this,ha,U(()=>l(this,un).getCurrentItem?l(this,un).getCurrentItem:l(this,un).getActiveElement));I(this,un,e),I(this,dn,Im("",{afterMs:1e3,getWindow:e.getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,n){if(!n.length)return;l(this,dn).current=l(this,dn).current+e;const r=w(l(this,ha))(),o=n.find(c=>c===r)?.textContent?.trim()??"",i=n.map(c=>c.textContent?.trim()??""),s=df(i,l(this,dn).current,o),a=n.find(c=>c.textContent?.trim()===s);return a&&w(l(this,fa))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,fa=new WeakMap,ha=new WeakMap;const Rm="data-context-menu-trigger",Nm="data-context-menu-content",Mc=new St("Menu.Root"),to=new St("Menu.Root | Menu.Sub"),ps=new St("Menu.Content"),Rc=new St("Menu.Group | Menu.RadioGroup"),Nc=new St("Menu.RadioGroup"),Dm=new St("Menu.CheckboxGroup"),ff=new sm("bitsmenuopen",{bubbles:!1,cancelable:!0}),Fm=Wd({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});var Ce,ir,_n,ct,yt,sr,fn,zr,$,hf,Is,Vl,Wl,Ul,Pn,bo,Ms,vo,Rs,pf,zo,gf,Ns,Ds,Er,Fs;class Lm{constructor(e){C(this,$);C(this,Ce);C(this,ir,null);C(this,_n,null);C(this,ct,!1);C(this,yt,null);C(this,sr,null);C(this,fn,null);C(this,zr,null);C(this,Pn,null);C(this,zo,e=>{if(!l(this,ct)||!l(this,yt)||!It(e))return;const n=l(this,Ce).triggerNode(),r=l(this,Ce).contentNode();if(!n||!r){F(this,$,vo).call(this);return}F(this,$,Er).call(this);const o={x:e.clientX,y:e.clientY};I(this,fn,o);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(l(this,yt)==="content"&&Ru(o,s)){F(this,$,bo).call(this);return}if(l(this,yt)==="trigger"&&Bm(o,i,4)){F(this,$,bo).call(this);return}if(F(this,$,pf).call(this,o)){F(this,$,Ds).call(this);return}const a=F(this,$,Is).call(this,o,l(this,yt));if(!a){F(this,$,vo).call(this);return}if(F(this,$,Vl).call(this,o,a.corridor,a.intent)){F(this,$,Ds).call(this);return}F(this,$,vo).call(this)});I(this,Ce,e),Se([e.triggerNode,e.contentNode,e.enabled],([n,r,o])=>{if(F(this,$,Rs).call(this),!n||!r||!o)return;const i=f=>{It(f)&&(I(this,zr,{x:f.clientX,y:f.clientY}),l(this,ct)||F(this,$,Wl).call(this,f,"content"))},s=f=>{It(f)&&F(this,$,Ul).call(this,f,"content")},a=f=>{It(f)&&(l(this,ct)||F(this,$,Wl).call(this,f,"trigger"))},c=f=>{if(It(f)){if(Rt(f.relatedTarget)){const g=l(this,Ce).subContentSelector(),b=f.relatedTarget.closest(g);if(b&&b!==r&&b.id&&!!r.querySelector(`[aria-controls="${b.id}"]`))return}F(this,$,Ul).call(this,f,"trigger")}},u=f=>{It(f)&&F(this,$,bo).call(this)},d=f=>{It(f)&&F(this,$,bo).call(this)};return n.addEventListener("pointermove",i),n.addEventListener("pointerleave",s),n.addEventListener("pointerenter",u),r.addEventListener("pointermove",a),r.addEventListener("pointerleave",c),r.addEventListener("pointerenter",d),()=>{n.removeEventListener("pointermove",i),n.removeEventListener("pointerleave",s),n.removeEventListener("pointerenter",u),r.removeEventListener("pointermove",a),r.removeEventListener("pointerleave",c),r.removeEventListener("pointerenter",d),F(this,$,Rs).call(this)}}),wn(()=>{F(this,$,Rs).call(this)})}}Ce=new WeakMap,ir=new WeakMap,_n=new WeakMap,ct=new WeakMap,yt=new WeakMap,sr=new WeakMap,fn=new WeakMap,zr=new WeakMap,$=new WeakSet,hf=function(){const e=l(this,Ce).parentContentNode();return e?e.getBoundingClientRect():l(this,Ce).triggerNode()?.getBoundingClientRect()??null},Is=function(e,n){const r=l(this,Ce).triggerNode(),o=l(this,Ce).contentNode();if(!r||!o)return null;const i=r.getBoundingClientRect(),s=o.getBoundingClientRect(),a=zm(i,s);let c,u,d;return n==="content"?(c=l(this,ct)?l(this,sr)??e:e,u=s):(c=l(this,zr)??e,u=F(this,$,hf).call(this)??i,d=s),I(this,sr,c),{corridor:Vm(i,s,a),intent:Wm(c,u,a,n,d),targetRect:u,side:a}},Vl=function(e,n,r){return Mu(e,n)||Mu(e,r)},Wl=function(e,n){const r={x:e.clientX,y:e.clientY};F(this,$,Is).call(this,r,n)&&(I(this,yt,n),I(this,fn,r))},Ul=function(e,n){if(!l(this,Ce).enabled())return;const r=l(this,Ce).triggerNode(),o=l(this,Ce).contentNode();if(!r||!o)return;const i=e.relatedTarget;if(Rt(i)&&(n==="content"&&o.contains(i)||n==="trigger"&&r.contains(i)))return;const s={x:e.clientX,y:e.clientY},a=F(this,$,Is).call(this,s,n);if(a){if(!Ru(s,a.targetRect)&&!F(this,$,Vl).call(this,s,a.corridor,a.intent)){F(this,$,Fs).call(this);return}I(this,ct,!0),I(this,yt,n),I(this,fn,s),l(this,Ce).setIsPointerInTransit(!0),F(this,$,gf).call(this),F(this,$,Ds).call(this)}},Pn=new WeakMap,bo=function(){if(!l(this,ct))return;const e=l(this,yt)==="trigger";F(this,$,Ns).call(this),F(this,$,Er).call(this),I(this,ct,!1),F(this,$,Fs).call(this),e?(F(this,$,Ms).call(this),I(this,Pn,setTimeout(()=>{I(this,Pn,null),l(this,Ce).setIsPointerInTransit(!1)},100))):l(this,Ce).setIsPointerInTransit(!1)},Ms=function(){l(this,Pn)!==null&&(clearTimeout(l(this,Pn)),I(this,Pn,null))},vo=function(){const e=l(this,fn);F(this,$,Ns).call(this),F(this,$,Er).call(this),F(this,$,Ms).call(this),I(this,ct,!1),l(this,Ce).setIsPointerInTransit(!1),F(this,$,Fs).call(this),l(this,Ce).onIntentExit(e)},Rs=function(){F(this,$,Ns).call(this),F(this,$,Er).call(this),F(this,$,Ms).call(this),l(this,ct)&&l(this,Ce).setIsPointerInTransit(!1),I(this,ct,!1),I(this,yt,null),I(this,sr,null),I(this,fn,null),I(this,zr,null)},pf=function(e){const n=l(this,Ce).contentNode();if(!n)return!1;const o=n.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const i=l(this,Ce).subContentSelector(),s=o.closest(i);return!s||s===n?!1:s.id?!!n.querySelector(`[aria-controls="${s.id}"]`):!1},zo=new WeakMap,gf=function(){if(l(this,ir))return;const e=io(l(this,Ce).triggerNode()??l(this,Ce).contentNode());e&&(e.addEventListener("pointermove",l(this,zo),!0),I(this,ir,()=>{e.removeEventListener("pointermove",l(this,zo),!0),I(this,ir,null)}))},Ns=function(){var e;(e=l(this,ir))==null||e.call(this)},Ds=function(){F(this,$,Er).call(this),I(this,_n,setTimeout(()=>{I(this,_n,null),l(this,ct)&&F(this,$,vo).call(this)},500))},Er=function(){l(this,_n)!==null&&(clearTimeout(l(this,_n)),I(this,_n,null))},Fs=function(){I(this,yt,null),I(this,sr,null),I(this,fn,null)};function Mu(t,e){const{x:n,y:r}=t;let o=!1;for(let i=0,s=e.length-1;i<e.length;s=i++){const a=e[i].x,c=e[i].y,u=e[s].x,d=e[s].y;c>r!=d>r&&n<(u-a)*(r-c)/(d-c)+a&&(o=!o)}return o}function Ru(t,e){return t.x>=e.left&&t.x<=e.right&&t.y>=e.top&&t.y<=e.bottom}function Bm(t,e,n){return t.x>=e.left+n&&t.x<=e.right-n&&t.y>=e.top+n&&t.y<=e.bottom-n}function zm(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}function Vm(t,e,n){switch(n){case"top":return[{x:Math.min(t.left,e.left)-2,y:t.top},{x:Math.min(t.left,e.left)-2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:e.bottom},{x:Math.max(t.right,e.right)+2,y:t.top}];case"bottom":return[{x:Math.min(t.left,e.left)-2,y:t.bottom},{x:Math.min(t.left,e.left)-2,y:e.top},{x:Math.max(t.right,e.right)+2,y:e.top},{x:Math.max(t.right,e.right)+2,y:t.bottom}];case"left":return[{x:t.left,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.min(t.top,e.top)-2},{x:e.right,y:Math.max(t.bottom,e.bottom)+2},{x:t.left,y:Math.max(t.bottom,e.bottom)+2}];case"right":return[{x:t.right,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.min(t.top,e.top)-2},{x:e.left,y:Math.max(t.bottom,e.bottom)+2},{x:t.right,y:Math.max(t.bottom,e.bottom)+2}]}}function Wm(t,e,n,r,o){const s=r==="trigger"?Um(n):n,a=o?Math.min(e.top,o.top)-8:e.top-8,c=o?Math.max(e.bottom,o.bottom)+8:e.bottom+8,u=o?Math.min(e.left,o.left)-8:e.left-8,d=o?Math.max(e.right,o.right)+8:e.right+8;switch(s){case"right":return[t,{x:e.left,y:a},{x:e.left,y:c}];case"left":return[t,{x:e.right,y:a},{x:e.right,y:c}];case"bottom":return[t,{x:u,y:e.top},{x:d,y:e.top}];case"top":return[t,{x:u,y:e.bottom},{x:d,y:e.bottom}]}}function Um(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}var Vo,Wo;const eu=class eu{constructor(e){_(this,"opts");_(this,"isUsingKeyboard",new Bl);C(this,Vo,oe(!1));C(this,Wo,oe(!1));_(this,"getBitsAttr",e=>Fm.getAttr(e,this.opts.variant.current));this.opts=e}static create(e){const n=new eu(e);return Mc.set(n)}get ignoreCloseAutoFocus(){return w(l(this,Vo))}set ignoreCloseAutoFocus(e){N(l(this,Vo),e,!0)}get isPointerInTransit(){return w(l(this,Wo))}set isPointerInTransit(e){N(l(this,Wo),e,!0)}};Vo=new WeakMap,Wo=new WeakMap;let Nu=eu;var Uo,Ho;const tu=class tu{constructor(e,n,r){_(this,"opts");_(this,"root");_(this,"parentMenu");_(this,"contentId",G(()=>""));C(this,Uo,oe(null));_(this,"contentPresence");C(this,Ho,oe(null));this.opts=e,this.root=n,this.parentMenu=r,this.contentPresence=new qd({ref:G(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),r&&Se(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return to.set(new tu(e,n,null))}get contentNode(){return w(l(this,Uo))}set contentNode(e){N(l(this,Uo),e,!0)}get triggerNode(){return w(l(this,Ho))}set triggerNode(e){N(l(this,Ho),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Uo=new WeakMap,Ho=new WeakMap;let Hl=tu;var Ko,jo,Go,qo,Yo,en,mf,Ls,bf,Xo,Zo;const nu=class nu{constructor(e,n){C(this,en);_(this,"opts");_(this,"parentMenu");_(this,"rovingFocusGroup");_(this,"domContext");_(this,"attachment");C(this,Ko,oe(""));C(this,jo,0);C(this,Go);C(this,qo,oe(!1));C(this,Yo);_(this,"onCloseAutoFocus",e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||l(this,Yo))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Ic(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});C(this,Xo,U(()=>({open:this.parentMenu.opts.open.current})));C(this,Zo,U(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":Pc(this.parentMenu.opts.open.current),...zd(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment})));_(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=n,this.domContext=new Xa(e.ref),this.attachment=pt(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=e.id,I(this,Yo,e.isSub??!1),this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new Lm({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:r=>{this.parentMenu.opts.open.current=!1,F(this,en,bf).call(this,r)},setIsPointerInTransit:r=>{this.parentMenu.root.isPointerInTransit=r}}),I(this,Go,new Mm({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch),this.rovingFocusGroup=new Qg({rootNode:G(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:G(()=>"vertical")}),Se(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{Mt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return ff.listen(r,o)}),Le(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(l(this,jo))})}static create(e){return ps.set(new nu(e,to.get()))}get search(){return w(l(this,Ko))}set search(e){N(l(this,Ko),e,!0)}get mounted(){return w(l(this,qo))}set mounted(e){N(l(this,qo),e,!0)}handleTabKeyDown(e){let n=this.parentMenu;for(;n.parentMenu!==null;)n=n.parentMenu;if(!n.triggerNode)return;e.preventDefault();const r=Om(n.triggerNode,e.shiftKey?"prev":"next");r?(this.parentMenu.root.ignoreCloseAutoFocus=!0,n.onClose(),Mt(()=>{r.focus(),Mt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Hg){this.handleTabKeyDown(e);return}const n=e.target,r=e.currentTarget;if(!bn(n)||!bn(r))return;const o=n.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,s=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(n,e)||e.code==="Space")return;const c=F(this,en,mf).call(this);o&&!i&&s&&l(this,Go).call(this,e.key,c),e.target?.id===this.parentMenu.contentId.current&&cm.includes(e.key)&&(e.preventDefault(),Qd.includes(e.key)&&c.reverse(),hm(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){Rt(e.currentTarget)&&Rt(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(l(this,jo)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&Mt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return F(this,en,Ls).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||F(this,en,Ls).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!F(this,en,Ls).call(this)}handleInteractOutside(e){if(!Gd(e.target))return;const n=this.parentMenu.triggerNode?.id;if(e.target.id===n){e.preventDefault();return}if(e.target.closest(`#${n}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,Mt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return w(l(this,Xo))}set snippetProps(e){N(l(this,Xo),e)}get props(){return w(l(this,Zo))}set props(e){N(l(this,Zo),e)}};Ko=new WeakMap,jo=new WeakMap,Go=new WeakMap,qo=new WeakMap,Yo=new WeakMap,en=new WeakSet,mf=function(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]},Ls=function(){return this.parentMenu.root.isPointerInTransit},bf=function(e){if(!e)return;const n=this.parentMenu.parentMenu?.contentNode;if(!n)return;const r=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!Rt(r))return;const o=r.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!o||!n.contains(o)||o!==this.parentMenu.triggerNode&&o.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))},Xo=new WeakMap,Zo=new WeakMap;let Du=nu;var Vr,Jo;class Qa{constructor(e,n){_(this,"opts");_(this,"content");_(this,"attachment");C(this,Vr,oe(!1));C(this,Jo,U(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":_c(this.opts.disabled.current),"data-disabled":Za(this.opts.disabled.current),"data-highlighted":w(l(this,Vr))?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment})));this.opts=e,this.content=n,this.attachment=pt(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&It(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const r=e.currentTarget;if(!bn(r))return;r.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||It(e)&&this.content.onItemLeave(e)}onfocus(e){Mt(()=>{e.defaultPrevented||this.opts.disabled.current||N(l(this,Vr),!0)})}onblur(e){Mt(()=>{e.defaultPrevented||N(l(this,Vr),!1)})}get props(){return w(l(this,Jo))}set props(e){N(l(this,Jo),e)}}Vr=new WeakMap,Jo=new WeakMap;var Qo,pa,vf,$o;const ru=class ru{constructor(e,n){C(this,pa);_(this,"opts");_(this,"item");_(this,"root");C(this,Qo,!1);C(this,$o,U(()=>Zt(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown})));this.opts=e,this.item=n,this.root=n.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}static create(e){const n=new Qa(e,ps.get());return new ru(e,n)}onkeydown(e){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&e.key===Ja)&&Ll.includes(e.key)){if(!bn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||F(this,pa,vf).call(this)}onpointerup(e){if(!e.defaultPrevented&&!l(this,Qo)){if(!bn(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){I(this,Qo,!0)}get props(){return w(l(this,$o))}set props(e){N(l(this,$o),e)}};Qo=new WeakMap,pa=new WeakSet,vf=function(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()},$o=new WeakMap;let $s=ru;var hn,In,Or,ei;const ou=class ou{constructor(e,n,r,o){C(this,In);_(this,"opts");_(this,"item");_(this,"content");_(this,"submenu");_(this,"attachment");C(this,hn,null);C(this,ei,U(()=>Zt({"aria-haspopup":"menu","aria-expanded":_c(this.submenu.opts.open.current),"data-state":Pc(this.submenu.opts.open.current),"aria-controls":this.submenu.opts.open.current?this.submenu.contentId.current:void 0,[this.submenu.root.getBitsAttr("sub-trigger")]:"",onclick:this.onclick,onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onkeydown:this.onkeydown,...this.attachment},this.item.props)));this.opts=e,this.item=n,this.content=r,this.submenu=o,this.attachment=pt(this.opts.ref,i=>this.submenu.triggerNode=i),this.onpointerleave=this.onpointerleave.bind(this),this.onpointermove=this.onpointermove.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),wn(()=>{F(this,In,Or).call(this)})}static create(e){const n=ps.get(),r=new Qa(e,n),o=to.get();return new ou(e,r,n,o)}onpointermove(e){if(It(e)){if(this.submenu.root.isPointerInTransit){l(this,hn)!==null&&F(this,In,Or).call(this);return}if(!this.item.opts.disabled.current&&!this.submenu.opts.open.current&&!l(this,hn)){const n=this.opts.openDelay.current;if(n<=0){this.submenu.onOpen();return}I(this,hn,this.content.domContext.setTimeout(()=>{if(this.submenu.root.isPointerInTransit){F(this,In,Or).call(this);return}this.submenu.onOpen(),F(this,In,Or).call(this)},n))}}}onpointerleave(e){It(e)&&F(this,In,Or).call(this)}onkeydown(e){const n=this.content.search!=="";this.item.opts.disabled.current||n&&e.key===Ja||um[this.submenu.root.opts.dir.current].includes(e.key)&&(e.currentTarget.click(),e.preventDefault())}onclick(e){if(this.item.opts.disabled.current||!bn(e.currentTarget))return;e.currentTarget.focus();const n=new CustomEvent("menusubtriggerselect",{bubbles:!0,cancelable:!0});this.opts.onSelect.current(n),this.submenu.opts.open.current||(this.submenu.onOpen(),Mt(()=>{const r=this.submenu.contentNode;r&&ff.dispatch(r)}))}get props(){return w(l(this,ei))}set props(e){N(l(this,ei),e)}};hn=new WeakMap,In=new WeakSet,Or=function(){l(this,hn)!==null&&(this.content.domContext.getWindow().clearTimeout(l(this,hn)),I(this,hn,null))},ei=new WeakMap;let Fu=ou;var ti,ni;const iu=class iu{constructor(e,n,r=null){_(this,"opts");_(this,"item");_(this,"group");C(this,ti,U(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));C(this,ni,U(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":Vd(this.opts.checked.current,this.opts.indeterminate.current),"data-state":$d(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""})));this.opts=e,this.item=n,this.group=r,this.group&&(Se(()=>this.group.opts.value.current,o=>{this.opts.checked.current=o.includes(this.opts.value.current)}),Se(()=>this.opts.checked.current,o=>{o?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}static create(e,n){const r=new $s(e,new Qa(e,ps.get()));return new iu(e,r,n)}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}get snippetProps(){return w(l(this,ti))}set snippetProps(e){N(l(this,ti),e)}get props(){return w(l(this,ni))}set props(e){N(l(this,ni),e)}};ti=new WeakMap,ni=new WeakMap;let Lu=iu;var ri,oi;const su=class su{constructor(e,n){_(this,"opts");_(this,"root");_(this,"attachment");C(this,ri,oe(void 0));C(this,oi,U(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=pt(this.opts.ref)}static create(e){return Rc.set(new su(e,Mc.get()))}get groupHeadingId(){return w(l(this,ri))}set groupHeadingId(e){N(l(this,ri),e,!0)}get props(){return w(l(this,oi))}set props(e){N(l(this,oi),e)}};ri=new WeakMap,oi=new WeakMap;let Bu=su;var ii;const So=class So{constructor(e,n){_(this,"opts");_(this,"group");_(this,"attachment");C(this,ii,U(()=>({id:this.opts.id.current,role:"group",[this.group.root.getBitsAttr("group-heading")]:"",...this.attachment})));this.opts=e,this.group=n,this.attachment=pt(this.opts.ref,r=>this.group.groupHeadingId=r?.id)}static create(e){const n=Dm.getOr(null);if(n)return new So(e,n);const r=Nc.getOr(null);return r?new So(e,r):new So(e,Rc.get())}get props(){return w(l(this,ii))}set props(e){N(l(this,ii),e)}};ii=new WeakMap;let zu=So;var si;const au=class au{constructor(e,n){_(this,"opts");_(this,"root");_(this,"attachment");C(this,si,U(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=pt(this.opts.ref)}static create(e){return new au(e,Mc.get())}get props(){return w(l(this,si))}set props(e){N(l(this,si),e)}};si=new WeakMap;let Vu=au;var ai,li;const lu=class lu{constructor(e,n){_(this,"opts");_(this,"content");_(this,"attachment");C(this,ai,oe(null));_(this,"root");C(this,li,U(()=>({id:this.opts.id.current,[this.root.getBitsAttr("radio-group")]:"",role:"group","aria-labelledby":this.groupHeadingId,...this.attachment})));this.opts=e,this.content=n,this.root=n.parentMenu.root,this.attachment=pt(this.opts.ref)}static create(e){return Rc.set(Nc.set(new lu(e,ps.get())))}get groupHeadingId(){return w(l(this,ai))}set groupHeadingId(e){N(l(this,ai),e,!0)}setValue(e){this.opts.value.current=e}get props(){return w(l(this,li))}set props(e){N(l(this,li),e)}};ai=new WeakMap,li=new WeakMap;let Wu=lu;var ci,ui;const cu=class cu{constructor(e,n,r){_(this,"opts");_(this,"item");_(this,"group");_(this,"attachment");C(this,ci,U(()=>this.group.opts.value.current===this.opts.value.current));C(this,ui,U(()=>({[this.group.root.getBitsAttr("radio-item")]:"",...this.item.props,role:"menuitemradio","aria-checked":Vd(this.isChecked,!1),"data-state":$d(this.isChecked),...this.attachment})));this.opts=e,this.item=n,this.group=r,this.attachment=pt(this.opts.ref)}static create(e){const n=Nc.get(),r=new Qa(e,n.content),o=new $s(e,r);return new cu(e,o,n)}get isChecked(){return w(l(this,ci))}set isChecked(e){N(l(this,ci),e)}selectValue(){this.group.setValue(this.opts.value.current)}get props(){return w(l(this,ui))}set props(e){N(l(this,ui),e)}};ci=new WeakMap,ui=new WeakMap;let Uu=cu;var ga,di;const uu=class uu{constructor(e,n){_(this,"opts");_(this,"parentMenu");_(this,"attachment");_(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});_(this,"onpointerdown",e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}});_(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});_(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Ja||e.key===Hd){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Eo&&(this.parentMenu.onOpen(),e.preventDefault())}});C(this,ga,U(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));C(this,di,U(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":_c(this.parentMenu.opts.open.current),"aria-controls":w(l(this,ga)),"data-disabled":Za(this.opts.disabled.current),"data-state":Pc(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment})));this.opts=e,this.parentMenu=n,this.attachment=pt(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(e){return new uu(e,to.get())}get props(){return w(l(this,di))}set props(e){N(l(this,di),e)}};ga=new WeakMap,di=new WeakMap;let Hu=uu;class Cx{static create(e){const n=to.get();return to.set(new Hl(e,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;var Mn,ar,Rn,Wr,Ur,Nn,Hr,Ot,ma,ro,yf,ba,Kr,va,ya,wa,Ca,fi,wf,xa,Sa;const du=class du{constructor(e){C(this,ro);_(this,"opts");C(this,Mn);C(this,ar);C(this,Rn,{pointerdown:!1});C(this,Wr,!1);C(this,Ur,!1);C(this,Nn);C(this,Hr);C(this,Ot,ge);C(this,ma,e=>{e.defaultPrevented||this.opts.ref.current&&Mt(()=>{if(!(!this.opts.ref.current||l(this,Ca).call(this,e.target))&&e.target&&!l(this,Ur)){if(typeof l(this,Hr)?.current!="function")return;l(this,Hr).current(e)}})});C(this,ba,e=>{let n=e;n.defaultPrevented&&(n=Ku(e)),typeof l(this,Mn)?.current=="function"&&l(this,Mn).current(e)});C(this,Kr,_u(e=>{if(!this.opts.ref.current){l(this,Ot).call(this);return}if(typeof this.opts.isValidEvent?.current!="function"){l(this,Ot).call(this);return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||jm(e,this.opts.ref.current);if(!l(this,Wr)||F(this,ro,wf).call(this)||!n){l(this,Ot).call(this);return}let r=e;if(r.defaultPrevented&&(r=Ku(r)),l(this,ar).current!=="close"&&l(this,ar).current!=="defer-otherwise-close"){l(this,Ot).call(this);return}if(e.pointerType==="touch")l(this,Ot).call(this),I(this,Ot,Pe(l(this,Nn),"click",l(this,ba),{once:!0}));else{if(typeof l(this,Mn)?.current!="function"){l(this,Ot).call(this);return}l(this,Mn).current(r)}},10));C(this,va,e=>{l(this,Rn)[e.type]=!0});C(this,ya,e=>{l(this,Rn)[e.type]=!1});C(this,wa,()=>{this.opts.ref.current&&I(this,Wr,Km(this.opts.ref.current))});C(this,Ca,e=>this.opts.ref.current?Zd(this.opts.ref.current,e):!1);C(this,fi,_u(()=>{for(const e in l(this,Rn))l(this,Rn)[e]=!1;I(this,Wr,!1)},20));C(this,xa,()=>{I(this,Ur,!0)});C(this,Sa,()=>{I(this,Ur,!1)});_(this,"props",{onfocuscapture:l(this,xa),onblurcapture:l(this,Sa)});this.opts=e,I(this,ar,e.interactOutsideBehavior),I(this,Mn,e.onInteractOutside),I(this,Hr,e.onFocusOutside),Le(()=>{I(this,Nn,Jd(this.opts.ref.current))});let n=ge,r;const o=()=>{clearTimeout(r),l(this,fi).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Kr).destroy(),n()};Se([()=>this.opts.enabled.current,()=>this.opts.ref.current],()=>{if(!(!this.opts.enabled.current||!this.opts.ref.current))return r=Ig(1,()=>{this.opts.ref.current&&(globalThis.bitsDismissableLayers.set(this,l(this,ar)),n(),n=F(this,ro,yf).call(this))}),o}),wn(()=>{l(this,fi).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Kr).destroy(),l(this,Ot).call(this),n()})}static create(e){return new du(e)}};Mn=new WeakMap,ar=new WeakMap,Rn=new WeakMap,Wr=new WeakMap,Ur=new WeakMap,Nn=new WeakMap,Hr=new WeakMap,Ot=new WeakMap,ma=new WeakMap,ro=new WeakSet,yf=function(){return Pr(Pe(l(this,Nn),"pointerdown",Pr(l(this,va),l(this,wa)),{capture:!0}),Pe(l(this,Nn),"pointerdown",Pr(l(this,ya),l(this,Kr))),Pe(l(this,Nn),"focusin",l(this,ma)))},ba=new WeakMap,Kr=new WeakMap,va=new WeakMap,ya=new WeakMap,wa=new WeakMap,Ca=new WeakMap,fi=new WeakMap,wf=function(){return Object.values(l(this,Rn)).some(Boolean)},xa=new WeakMap,Sa=new WeakMap;let Kl=du;function Hm(t=[...globalThis.bitsDismissableLayers]){return t.findLast(([e,{current:n}])=>n==="close"||n==="ignore")}function Km(t){const e=[...globalThis.bitsDismissableLayers],n=Hm(e);if(n)return n[0].opts.ref.current===t;const[r]=e[0];return r.opts.ref.current===t}function jm(t,e){const n=t.target;if(!Gd(n))return!1;const r=!!n.closest(`[${Rm}]`),o=!!e.closest(`[${Nm}]`);return"button"in t&&t.button>0&&!r?!1:"button"in t&&t.button===0&&r&&o?!0:r&&o?!1:Jd(n).documentElement.contains(n)&&!Zd(e,n)&&am(t,e)}function Ku(t){const e=t.currentTarget,n=t.target;let r;t instanceof PointerEvent?r=new PointerEvent(t.type,t):r=new PointerEvent("pointerdown",t);let o=!1;return new Proxy(r,{get:(s,a)=>a==="currentTarget"?e:a==="target"?n:a==="preventDefault"?()=>{o=!0,typeof s.preventDefault=="function"&&s.preventDefault()}:a==="defaultPrevented"?o:a in s?s[a]:t[a]})}function Cf(t,e){if(new.target)return Ae({component:Cf,...t});Oe(e,!0);let n=h(e,"interactOutsideBehavior",7,"close"),r=h(e,"onInteractOutside",7,ge),o=h(e,"onFocusOutside",7,ge),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"isValidEvent",7,()=>!1),u=h(e,"ref",7);const d=Kl.create({id:G(()=>i()),interactOutsideBehavior:G(()=>n()),onInteractOutside:G(()=>r()),enabled:G(()=>a()),onFocusOutside:G(()=>o()),isValidEvent:G(()=>c()),ref:u()});var f={get interactOutsideBehavior(){return n()},set interactOutsideBehavior(v="close"){n(v),p()},get onInteractOutside(){return r()},set onInteractOutside(v=ge){r(v),p()},get onFocusOutside(){return o()},set onFocusOutside(v=ge){o(v),p()},get id(){return i()},set id(v){i(v),p()},get children(){return s()},set children(v){s(v),p()},get enabled(){return a()},set enabled(v){a(v),p()},get isValidEvent(){return c()},set isValidEvent(v=()=>!1){c(v),p()},get ref(){return u()},set ref(v){u(v),p()},$set:Te,$on:(v,m)=>Ee(e,v,m)},g=ue(),b=se(g);return me(b,()=>s()??we,()=>({props:d.props})),Q(t,g),_e(f)}globalThis.bitsEscapeLayers??=new Map;var ka,Aa;const fu=class fu{constructor(e){_(this,"opts");_(this,"domContext");C(this,ka,()=>Pe(this.domContext.getDocument(),"keydown",l(this,Aa),{passive:!1}));C(this,Aa,e=>{if(e.key!==Vg||!Gm(this))return;const n=new KeyboardEvent(e.type,e);e.preventDefault();const r=this.opts.escapeKeydownBehavior.current;r!=="close"&&r!=="defer-otherwise-close"||this.opts.onEscapeKeydown.current(n)});this.opts=e,this.domContext=new Xa(this.opts.ref);let n=ge;Se(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=l(this,ka).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new fu(e)}};ka=new WeakMap,Aa=new WeakMap;let jl=fu;function Gm(t){const e=[...globalThis.bitsEscapeLayers],n=e.findLast(([o,{current:i}])=>i==="close"||i==="ignore");if(n)return n[0]===t;const[r]=e[0];return r===t}function xf(t,e){if(new.target)return Ae({component:xf,...t});Oe(e,!0);let n=h(e,"escapeKeydownBehavior",7,"close"),r=h(e,"onEscapeKeydown",7,ge),o=h(e,"children",7),i=h(e,"enabled",7),s=h(e,"ref",7);jl.create({escapeKeydownBehavior:G(()=>n()),onEscapeKeydown:G(()=>r()),enabled:G(()=>i()),ref:s()});var a={get escapeKeydownBehavior(){return n()},set escapeKeydownBehavior(d="close"){n(d),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(d=ge){r(d),p()},get children(){return o()},set children(d){o(d),p()},get enabled(){return i()},set enabled(d){i(d),p()},get ref(){return s()},set ref(d){s(d),p()},$set:Te,$on:(d,f)=>Ee(e,d,f)},c=ue(),u=se(c);return me(u,()=>o()??we),Q(t,c),_e(a)}var pn,hi,lr;const Ta=class Ta{constructor(){C(this,pn,xt([]));C(this,hi,new WeakMap);C(this,lr,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Ta),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&l(this,lr).set(e,r),l(this,pn).current=l(this,pn).current.filter(o=>o!==e),l(this,pn).current.unshift(e)}unregister(e){l(this,pn).current=l(this,pn).current.filter(r=>r!==e);const n=this.getActive();n&&n.resume()}getActive(){return l(this,pn).current[0]}setFocusMemory(e,n){l(this,hi).set(e,n)}getFocusMemory(e){return l(this,hi).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){l(this,lr).set(e,n)}getPreFocusMemory(e){return l(this,lr).get(e)}clearPreFocusMemory(e){l(this,lr).delete(e)}};pn=new WeakMap,hi=new WeakMap,lr=new WeakMap,_(Ta,"instance");let Gl=Ta;var Dn,$e,ut,cr,Fn,Be,Sf,kf,Af,Tf,Yl,Bs,Xl;const hu=class hu{constructor(e){C(this,Be);C(this,Dn,!1);C(this,$e,null);C(this,ut,Gl.getInstance());C(this,cr,[]);C(this,Fn);I(this,Fn,e)}get paused(){return l(this,Dn)}pause(){I(this,Dn,!0)}resume(){I(this,Dn,!1)}mount(e){l(this,$e)&&this.unmount(),I(this,$e,e),l(this,ut).register(this),F(this,Be,Tf).call(this),F(this,Be,kf).call(this)}unmount(){l(this,$e)&&(F(this,Be,Sf).call(this),F(this,Be,Af).call(this),l(this,ut).unregister(this),l(this,ut).clearPreFocusMemory(this),I(this,$e,null))}static use(e){let n=null;return Se([()=>e.ref.current,()=>e.enabled.current],([r,o])=>{r&&o?(n||(n=new hu(e)),n.mount(r)):n&&(n.unmount(),n=null)}),wn(()=>{n?.unmount()}),{get props(){return{tabindex:-1}}}}};Dn=new WeakMap,$e=new WeakMap,ut=new WeakMap,cr=new WeakMap,Fn=new WeakMap,Be=new WeakSet,Sf=function(){for(const e of l(this,cr))e();I(this,cr,[])},kf=function(){if(!l(this,$e))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Fn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,$e))return;const n=F(this,Be,Bs).call(this);n?(n.focus(),l(this,ut).setFocusMemory(this,n)):l(this,$e).focus()})},Af=function(){const e=new CustomEvent("focusScope.onCloseAutoFocus",{bubbles:!1,cancelable:!0});if(l(this,Fn).onCloseAutoFocus.current?.(e),!e.defaultPrevented){const n=l(this,ut).getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}},Tf=function(){if(!l(this,$e)||!l(this,Fn).trap.current)return;const e=l(this,$e),n=e.ownerDocument,r=s=>{if(l(this,Dn)||!l(this,ut).isActiveScope(this))return;const a=s.target;if(!a)return;if(e.contains(a))l(this,ut).setFocusMemory(this,a);else{const u=l(this,ut).getFocusMemory(this);if(u&&e.contains(u)&&uf(u))s.preventDefault(),u.focus();else{const d=F(this,Be,Bs).call(this),f=F(this,Be,Xl).call(this)[0];(d||f||e).focus()}}},o=s=>{if(!l(this,Fn).loop||l(this,Dn)||s.key!=="Tab"||!l(this,ut).isActiveScope(this))return;const a=F(this,Be,Yl).call(this);if(a.length===0)return;const c=a[0],u=a[a.length-1];!s.shiftKey&&n.activeElement===u?(s.preventDefault(),c.focus()):s.shiftKey&&n.activeElement===c&&(s.preventDefault(),u.focus())};l(this,cr).push(Pe(n,"focusin",r,{capture:!0}),Pe(e,"keydown",o));const i=new MutationObserver(()=>{const s=l(this,ut).getFocusMemory(this);if(s&&!e.contains(s)){const a=F(this,Be,Bs).call(this),c=F(this,Be,Xl).call(this)[0],u=a||c;u?(u.focus(),l(this,ut).setFocusMemory(this,u)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),l(this,cr).push(()=>i.disconnect())},Yl=function(){return l(this,$e)?lf(l(this,$e),{includeContainer:!1,getShadowRoot:!0}):[]},Bs=function(){return F(this,Be,Yl).call(this)[0]||null},Xl=function(){return l(this,$e)?cf(l(this,$e),{includeContainer:!1,getShadowRoot:!0}):[]};let ql=hu;function Ef(t,e){if(new.target)return Ae({component:Ef,...t});Oe(e,!0);let n=h(e,"enabled",7,!1),r=h(e,"trapFocus",7,!1),o=h(e,"loop",7,!1),i=h(e,"onCloseAutoFocus",7,ge),s=h(e,"onOpenAutoFocus",7,ge),a=h(e,"focusScope",7),c=h(e,"ref",7);const u=ql.use({enabled:G(()=>n()),trap:G(()=>r()),loop:o(),onCloseAutoFocus:G(()=>i()),onOpenAutoFocus:G(()=>s()),ref:c()});var d={get enabled(){return n()},set enabled(b=!1){n(b),p()},get trapFocus(){return r()},set trapFocus(b=!1){r(b),p()},get loop(){return o()},set loop(b=!1){o(b),p()},get onCloseAutoFocus(){return i()},set onCloseAutoFocus(b=ge){i(b),p()},get onOpenAutoFocus(){return s()},set onOpenAutoFocus(b=ge){s(b),p()},get focusScope(){return a()},set focusScope(b){a(b),p()},get ref(){return c()},set ref(b){c(b),p()},$set:Te,$on:(b,v)=>Ee(e,b,v)},f=ue(),g=se(f);return me(g,()=>a()??we,()=>({props:u.props})),Q(t,f),_e(d)}const ju=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var jr,Gr,pi,gi,Ea,Of,Oa,_a,mi;const pu=class pu{constructor(e){C(this,Ea);_(this,"opts");_(this,"domContext");C(this,jr,ge);C(this,Gr,!1);C(this,pi,ju);C(this,gi,ju);C(this,Oa,e=>{l(this,gi).call(this,e)});C(this,_a,e=>{const n=this.opts.ref.current,r=e.target;!bn(n)||!bn(r)||!l(this,Gr)||!Ym(this)||!Lg(n,r)||(l(this,pi).call(this,e),!e.defaultPrevented&&I(this,jr,qm(n,this.domContext.getDocument().body)))});C(this,mi,()=>{l(this,jr).call(this),I(this,jr,ge)});this.opts=e,this.domContext=new Xa(e.ref);let n=ge;Se(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,i])=>(I(this,Gr,r),I(this,pi,o),I(this,gi,i),r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=F(this,Ea,Of).call(this)),()=>{I(this,Gr,!1),n(),l(this,mi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new pu(e)}};jr=new WeakMap,Gr=new WeakMap,pi=new WeakMap,gi=new WeakMap,Ea=new WeakSet,Of=function(){return Pr(Pe(this.domContext.getDocument(),"pointerdown",l(this,_a)),Pe(this.domContext.getDocument(),"pointerup",Id(l(this,mi),l(this,Oa))))},Oa=new WeakMap,_a=new WeakMap,mi=new WeakMap;let Zl=pu;const Gu=t=>t.style.userSelect||t.style.webkitUserSelect;function qm(t,e){const n=Gu(e),r=Gu(t);return ws(e,"none"),ws(t,"text"),()=>{ws(e,n),ws(t,r)}}function ws(t,e){t.style.userSelect=e,t.style.webkitUserSelect=e}function Ym(t){const e=[...globalThis.bitsTextSelectionLayers];if(!e.length)return!1;const n=e.at(-1);return n?n[0]===t:!1}function _f(t,e){if(new.target)return Ae({component:_f,...t});Oe(e,!0);let n=h(e,"preventOverflowTextSelection",7,!0),r=h(e,"onPointerDown",7,ge),o=h(e,"onPointerUp",7,ge),i=h(e,"id",7),s=h(e,"children",7),a=h(e,"enabled",7),c=h(e,"ref",7);Zl.create({id:G(()=>i()),onPointerDown:G(()=>r()),onPointerUp:G(()=>o()),enabled:G(()=>a()&&n()),ref:c()});var u={get preventOverflowTextSelection(){return n()},set preventOverflowTextSelection(g=!0){n(g),p()},get onPointerDown(){return r()},set onPointerDown(g=ge){r(g),p()},get onPointerUp(){return o()},set onPointerUp(g=ge){o(g),p()},get id(){return i()},set id(g){i(g),p()},get children(){return s()},set children(g){s(g),p()},get enabled(){return a()},set enabled(g){a(g),p()},get ref(){return c()},set ref(g){c(g),p()},$set:Te,$on:(g,b)=>Ee(e,g,b)},d=ue(),f=se(d);return me(f,()=>s()??we),Q(t,d),_e(u)}globalThis.bitsIdCounter??={current:0};function ea(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var bi,qr,ur,dr,Pa,Pf;class Xm{constructor(e){C(this,Pa);C(this,bi);C(this,qr,0);C(this,ur,oe());C(this,dr);I(this,bi,e)}get(...e){return I(this,qr,l(this,qr)+1),w(l(this,ur))===void 0&&I(this,dr,kd(()=>{N(l(this,ur),l(this,bi).call(this,...e),!0)})),Le(()=>()=>{F(this,Pa,Pf).call(this)}),w(l(this,ur))}}bi=new WeakMap,qr=new WeakMap,ur=new WeakMap,dr=new WeakMap,Pa=new WeakSet,Pf=function(){I(this,qr,l(this,qr)-1),l(this,dr)&&l(this,qr)<=0&&(l(this,dr).call(this),N(l(this,ur),void 0),I(this,dr,void 0))};const zs=new Il;let Cs=oe(null),dl=null,fo=null,ho=!1;const qu=G(()=>{for(const t of zs.values())if(t)return!0;return!1});let fl=null;const Zm=new Xm(()=>{function t(){typeof document>"u"||(document.body.setAttribute("style",w(Cs)??""),document.body.style.removeProperty("--scrollbar-width"),Ou&&dl?.(),N(Cs,null))}function e(){fo!==null&&(window.clearTimeout(fo),fo=null)}function n(o,i){e(),ho=!0,fl=Date.now();const s=fl,a=()=>{fo=null,fl===s&&(If(zs)?ho=!1:(ho=!1,i()))},c=o===null?24:o;fo=window.setTimeout(a,c)}function r(){w(Cs)===null&&zs.size===0&&!ho&&N(Cs,document.body.getAttribute("style"),!0)}return Se(()=>qu.current,()=>{if(!qu.current)return;r(),ho=!1;const o=getComputedStyle(document.documentElement),i=getComputedStyle(document.body),s=o.scrollbarGutter?.includes("stable")||i.scrollbarGutter?.includes("stable"),a=window.innerWidth-document.documentElement.clientWidth,u={padding:Number.parseInt(i.paddingRight??"0",10)+a,margin:Number.parseInt(i.marginRight??"0",10)};a>0&&!s&&(document.body.style.paddingRight=`${u.padding}px`,document.body.style.marginRight=`${u.margin}px`,document.body.style.setProperty("--scrollbar-width",`${a}px`)),document.body.style.overflow="hidden",Ou&&(dl=Pe(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),Mt(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),wn(()=>()=>{e(),t(),dl?.()}),{get lockMap(){return zs},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});var fr,vi,yi,dt;class Jm{constructor(e,n=()=>null){C(this,fr,ea());C(this,vi);C(this,yi,()=>null);C(this,dt);_(this,"locked");I(this,vi,e),I(this,yi,n),I(this,dt,Zm.get()),l(this,dt)&&(l(this,dt).cancelPendingCleanup(),l(this,dt).ensureInitialStyleCaptured(),l(this,dt).lockMap.set(l(this,fr),l(this,vi)??!1),this.locked=G(()=>l(this,dt).lockMap.get(l(this,fr))??!1,r=>l(this,dt).lockMap.set(l(this,fr),r)),wn(()=>{if(l(this,dt).lockMap.delete(l(this,fr)),If(l(this,dt).lockMap))return;const r=l(this,yi).call(this);l(this,dt).scheduleCleanupIfNoNewLocks(r,()=>{l(this,dt).resetBodyStyle()})}))}}fr=new WeakMap,vi=new WeakMap,yi=new WeakMap,dt=new WeakMap;function If(t){for(const[e,n]of t)if(n)return!0;return!1}function Jl(t,e){if(new.target)return Ae({component:Jl,...t});Oe(e,!0);let n=h(e,"preventScroll",7,!0),r=h(e,"restoreScrollDelay",7,null);n()&&new Jm(n(),()=>r());var o={get preventScroll(){return n()},set preventScroll(i=!0){n(i),p()},get restoreScrollDelay(){return r()},set restoreScrollDelay(i=null){r(i),p()},$set:Te,$on:(i,s)=>Ee(e,i,s)};return _e(o)}const Qm=["top","right","bottom","left"],jn=Math.min,mt=Math.max,ta=Math.round,xs=Math.floor,$t=t=>({x:t,y:t}),$m={left:"right",right:"left",bottom:"top",top:"bottom"};function Ql(t,e,n){return mt(t,jn(e,n))}function vn(t,e){return typeof t=="function"?t(e):t}function yn(t){return t.split("-")[0]}function so(t){return t.split("-")[1]}function Dc(t){return t==="x"?"y":"x"}function Fc(t){return t==="y"?"height":"width"}function Qt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Lc(t){return Dc(Qt(t))}function eb(t,e,n){n===void 0&&(n=!1);const r=so(t),o=Lc(t),i=Fc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=na(s)),[s,na(s)]}function tb(t){const e=na(t);return[$l(t),e,$l(e)]}function $l(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Yu=["left","right"],Xu=["right","left"],nb=["top","bottom"],rb=["bottom","top"];function ob(t,e,n){switch(t){case"top":case"bottom":return n?e?Xu:Yu:e?Yu:Xu;case"left":case"right":return e?nb:rb;default:return[]}}function ib(t,e,n,r){const o=so(t);let i=ob(yn(t),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),e&&(i=i.concat(i.map($l)))),i}function na(t){const e=yn(t);return $m[e]+t.slice(e.length)}function sb(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mf(t){return typeof t!="number"?sb(t):{top:t,right:t,bottom:t,left:t}}function ra(t){const{x:e,y:n,width:r,height:o}=t;return{width:r,height:o,top:n,left:e,right:e+r,bottom:n+o,x:e,y:n}}function Zu(t,e,n){let{reference:r,floating:o}=t;const i=Qt(e),s=Lc(e),a=Fc(s),c=yn(e),u=i==="y",d=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let b;switch(c){case"top":b={x:d,y:r.y-o.height};break;case"bottom":b={x:d,y:r.y+r.height};break;case"right":b={x:r.x+r.width,y:f};break;case"left":b={x:r.x-o.width,y:f};break;default:b={x:r.x,y:r.y}}switch(so(e)){case"start":b[s]-=g*(n&&u?-1:1);break;case"end":b[s]+=g*(n&&u?-1:1);break}return b}async function ab(t,e){var n;e===void 0&&(e={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:g=!1,padding:b=0}=vn(e,t),v=Mf(b),E=a[g?f==="floating"?"reference":"floating":f],T=ra(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(E)))==null||n?E:E.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:c})),O=f==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),y=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},x=ra(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:O,offsetParent:A,strategy:c}):O);return{top:(T.top-x.top+v.top)/y.y,bottom:(x.bottom-T.bottom+v.bottom)/y.y,left:(T.left-x.left+v.left)/y.x,right:(x.right-T.right+v.right)/y.x}}const lb=50,cb=async(t,e,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:ab},c=await(s.isRTL==null?void 0:s.isRTL(e));let u=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:d,y:f}=Zu(u,r,c),g=r,b=0;const v={};for(let m=0;m<i.length;m++){const E=i[m];if(!E)continue;const{name:T,fn:O}=E,{x:A,y,data:x,reset:k}=await O({x:d,y:f,initialPlacement:r,placement:g,strategy:o,middlewareData:v,rects:u,platform:a,elements:{reference:t,floating:e}});d=A??d,f=y??f,v[T]={...v[T],...x},k&&b<lb&&(b++,typeof k=="object"&&(k.placement&&(g=k.placement),k.rects&&(u=k.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):k.rects),{x:d,y:f}=Zu(u,g,c)),m=-1)}return{x:d,y:f,placement:g,strategy:o,middlewareData:v}},ub=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=e,{element:u,padding:d=0}=vn(t,e)||{};if(u==null)return{};const f=Mf(d),g={x:n,y:r},b=Lc(o),v=Fc(b),m=await s.getDimensions(u),E=b==="y",T=E?"top":"left",O=E?"bottom":"right",A=E?"clientHeight":"clientWidth",y=i.reference[v]+i.reference[b]-g[b]-i.floating[v],x=g[b]-i.reference[b],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let R=k?k[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(k)))&&(R=a.floating[A]||i.floating[v]);const M=y/2-x/2,H=R/2-m[v]/2-1,K=jn(f[T],H),ee=jn(f[O],H),W=K,Y=R-m[v]-ee,B=R/2-m[v]/2+M,Z=Ql(W,B,Y),re=!c.arrow&&so(o)!=null&&B!==Z&&i.reference[v]/2-(B<W?K:ee)-m[v]/2<0,ie=re?B<W?B-W:B-Y:0;return{[b]:g[b]+ie,data:{[b]:Z,centerOffset:B-Z-ie,...re&&{alignmentOffset:ie}},reset:re}}}),db=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:m=!0,...E}=vn(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const T=yn(o),O=Qt(a),A=yn(a)===a,y=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=g||(A||!m?[na(a)]:tb(a)),k=v!=="none";!g&&k&&x.push(...ib(a,m,v,y));const R=[a,...x],M=await c.detectOverflow(e,E),H=[];let K=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&H.push(M[T]),f){const B=eb(o,s,y);H.push(M[B[0]],M[B[1]])}if(K=[...K,{placement:o,overflows:H}],!H.every(B=>B<=0)){var ee,W;const B=(((ee=i.flip)==null?void 0:ee.index)||0)+1,Z=R[B];if(Z&&(!(f==="alignment"?O!==Qt(Z):!1)||K.every(ne=>Qt(ne.placement)===O?ne.overflows[0]>0:!0)))return{data:{index:B,overflows:K},reset:{placement:Z}};let re=(W=K.filter(ie=>ie.overflows[0]<=0).sort((ie,ne)=>ie.overflows[1]-ne.overflows[1])[0])==null?void 0:W.placement;if(!re)switch(b){case"bestFit":{var Y;const ie=(Y=K.filter(ne=>{if(k){const fe=Qt(ne.placement);return fe===O||fe==="y"}return!0}).map(ne=>[ne.placement,ne.overflows.filter(fe=>fe>0).reduce((fe,P)=>fe+P,0)]).sort((ne,fe)=>ne[1]-fe[1])[0])==null?void 0:Y[0];ie&&(re=ie);break}case"initialPlacement":re=a;break}if(o!==re)return{reset:{placement:re}}}return{}}}};function Ju(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Qu(t){return Qm.some(e=>t[e]>=0)}const fb=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:r}=e,{strategy:o="referenceHidden",...i}=vn(t,e);switch(o){case"referenceHidden":{const s=await r.detectOverflow(e,{...i,elementContext:"reference"}),a=Ju(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qu(a)}}}case"escaped":{const s=await r.detectOverflow(e,{...i,altBoundary:!0}),a=Ju(s,n.floating);return{data:{escapedOffsets:a,escaped:Qu(a)}}}default:return{}}}}},Rf=new Set(["left","top"]);async function hb(t,e){const{placement:n,platform:r,elements:o}=t,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=yn(n),a=so(n),c=Qt(n)==="y",u=Rf.has(s)?-1:1,d=i&&c?-1:1,f=vn(e,t);let{mainAxis:g,crossAxis:b,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return a&&typeof v=="number"&&(b=a==="end"?v*-1:v),c?{x:b*d,y:g*u}:{x:g*u,y:b*d}}const pb=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=e,c=await hb(e,t);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},gb=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:r,placement:o,platform:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:T=>{let{x:O,y:A}=T;return{x:O,y:A}}},...u}=vn(t,e),d={x:n,y:r},f=await i.detectOverflow(e,u),g=Qt(yn(o)),b=Dc(g);let v=d[b],m=d[g];if(s){const T=b==="y"?"top":"left",O=b==="y"?"bottom":"right",A=v+f[T],y=v-f[O];v=Ql(A,v,y)}if(a){const T=g==="y"?"top":"left",O=g==="y"?"bottom":"right",A=m+f[T],y=m-f[O];m=Ql(A,m,y)}const E=c.fn({...e,[b]:v,[g]:m});return{...E,data:{x:E.x-n,y:E.y-r,enabled:{[b]:s,[g]:a}}}}}},mb=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=e,{offset:a=0,mainAxis:c=!0,crossAxis:u=!0}=vn(t,e),d={x:n,y:r},f=Qt(o),g=Dc(f);let b=d[g],v=d[f];const m=vn(a,e),E=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const A=g==="y"?"height":"width",y=i.reference[g]-i.floating[A]+E.mainAxis,x=i.reference[g]+i.reference[A]-E.mainAxis;b<y?b=y:b>x&&(b=x)}if(u){var T,O;const A=g==="y"?"width":"height",y=Rf.has(yn(o)),x=i.reference[f]-i.floating[A]+(y&&((T=s.offset)==null?void 0:T[f])||0)+(y?0:E.crossAxis),k=i.reference[f]+i.reference[A]+(y?0:((O=s.offset)==null?void 0:O[f])||0)-(y?E.crossAxis:0);v<x?v=x:v>k&&(v=k)}return{[g]:b,[f]:v}}}},bb=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,r;const{placement:o,rects:i,platform:s,elements:a}=e,{apply:c=()=>{},...u}=vn(t,e),d=await s.detectOverflow(e,u),f=yn(o),g=so(o),b=Qt(o)==="y",{width:v,height:m}=i.floating;let E,T;f==="top"||f==="bottom"?(E=f,T=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(T=f,E=g==="end"?"top":"bottom");const O=m-d.top-d.bottom,A=v-d.left-d.right,y=jn(m-d[E],O),x=jn(v-d[T],A),k=!e.middlewareData.shift;let R=y,M=x;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(M=A),(r=e.middlewareData.shift)!=null&&r.enabled.y&&(R=O),k&&!g){const K=mt(d.left,0),ee=mt(d.right,0),W=mt(d.top,0),Y=mt(d.bottom,0);b?M=v-2*(K!==0||ee!==0?K+ee:mt(d.left,d.right)):R=m-2*(W!==0||Y!==0?W+Y:mt(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:R});const H=await s.getDimensions(a.floating);return v!==H.width||m!==H.height?{reset:{rects:!0}}:{}}}};function $a(){return typeof window<"u"}function ao(t){return Nf(t)?(t.nodeName||"").toLowerCase():"#document"}function bt(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function tn(t){var e;return(e=(Nf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Nf(t){return $a()?t instanceof Node||t instanceof bt(t).Node:!1}function Dt(t){return $a()?t instanceof Element||t instanceof bt(t).Element:!1}function Cn(t){return $a()?t instanceof HTMLElement||t instanceof bt(t).HTMLElement:!1}function $u(t){return!$a()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof bt(t).ShadowRoot}function gs(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Ft(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function vb(t){return/^(table|td|th)$/.test(ao(t))}function el(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const yb=/transform|translate|scale|rotate|perspective|filter/,wb=/paint|layout|strict|content/,Jn=t=>!!t&&t!=="none";let hl;function Bc(t){const e=Dt(t)?Ft(t):t;return Jn(e.transform)||Jn(e.translate)||Jn(e.scale)||Jn(e.rotate)||Jn(e.perspective)||!zc()&&(Jn(e.backdropFilter)||Jn(e.filter))||yb.test(e.willChange||"")||wb.test(e.contain||"")}function Cb(t){let e=Gn(t);for(;Cn(e)&&!no(e);){if(Bc(e))return e;if(el(e))return null;e=Gn(e)}return null}function zc(){return hl==null&&(hl=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hl}function no(t){return/^(html|body|#document)$/.test(ao(t))}function Ft(t){return bt(t).getComputedStyle(t)}function tl(t){return Dt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(ao(t)==="html")return t;const e=t.assignedSlot||t.parentNode||$u(t)&&t.host||tn(t);return $u(e)?e.host:e}function Df(t){const e=Gn(t);return no(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&gs(e)?e:Df(e)}function Oo(t,e,n){var r;e===void 0&&(e=[]),n===void 0&&(n=!0);const o=Df(t),i=o===((r=t.ownerDocument)==null?void 0:r.body),s=bt(o);if(i){const a=ec(s);return e.concat(s,s.visualViewport||[],gs(o)?o:[],a&&n?Oo(a):[])}else return e.concat(o,Oo(o,[],n))}function ec(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ff(t){const e=Ft(t);let n=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Cn(t),i=o?t.offsetWidth:n,s=o?t.offsetHeight:r,a=ta(n)!==i||ta(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Vc(t){return Dt(t)?t:t.contextElement}function Ir(t){const e=Vc(t);if(!Cn(e))return $t(1);const n=e.getBoundingClientRect(),{width:r,height:o,$:i}=Ff(e);let s=(i?ta(n.width):n.width)/r,a=(i?ta(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const xb=$t(0);function Lf(t){const e=bt(t);return!zc()||!e.visualViewport?xb:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sb(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==bt(t)?!1:e}function wr(t,e,n,r){e===void 0&&(e=!1),n===void 0&&(n=!1);const o=t.getBoundingClientRect(),i=Vc(t);let s=$t(1);e&&(r?Dt(r)&&(s=Ir(r)):s=Ir(t));const a=Sb(i,n,r)?Lf(i):$t(0);let c=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,f=o.height/s.y;if(i){const g=bt(i),b=r&&Dt(r)?bt(r):r;let v=g,m=ec(v);for(;m&&r&&b!==v;){const E=Ir(m),T=m.getBoundingClientRect(),O=Ft(m),A=T.left+(m.clientLeft+parseFloat(O.paddingLeft))*E.x,y=T.top+(m.clientTop+parseFloat(O.paddingTop))*E.y;c*=E.x,u*=E.y,d*=E.x,f*=E.y,c+=A,u+=y,v=bt(m),m=ec(v)}}return ra({width:d,height:f,x:c,y:u})}function nl(t,e){const n=tl(t).scrollLeft;return e?e.left+n:wr(tn(t)).left+n}function Bf(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-nl(t,n),o=n.top+e.scrollTop;return{x:r,y:o}}function kb(t){let{elements:e,rect:n,offsetParent:r,strategy:o}=t;const i=o==="fixed",s=tn(r),a=e?el(e.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},u=$t(1);const d=$t(0),f=Cn(r);if((f||!f&&!i)&&((ao(r)!=="body"||gs(s))&&(c=tl(r)),f)){const b=wr(r);u=Ir(r),d.x=b.x+r.clientLeft,d.y=b.y+r.clientTop}const g=s&&!f&&!i?Bf(s,c):$t(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+g.x,y:n.y*u.y-c.scrollTop*u.y+d.y+g.y}}function Ab(t){return Array.from(t.getClientRects())}function Tb(t){const e=tn(t),n=tl(t),r=t.ownerDocument.body,o=mt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=mt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+nl(t);const a=-n.scrollTop;return Ft(r).direction==="rtl"&&(s+=mt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ed=25;function Eb(t,e){const n=bt(t),r=tn(t),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=zc();(!d||d&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const u=nl(r);if(u<=0){const d=r.ownerDocument,f=d.body,g=getComputedStyle(f),b=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,v=Math.abs(r.clientWidth-f.clientWidth-b);v<=ed&&(i-=v)}else u<=ed&&(i+=u);return{width:i,height:s,x:a,y:c}}function Ob(t,e){const n=wr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Cn(t)?Ir(t):$t(1),s=t.clientWidth*i.x,a=t.clientHeight*i.y,c=o*i.x,u=r*i.y;return{width:s,height:a,x:c,y:u}}function td(t,e,n){let r;if(e==="viewport")r=Eb(t,n);else if(e==="document")r=Tb(tn(t));else if(Dt(e))r=Ob(e,n);else{const o=Lf(t);r={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return ra(r)}function zf(t,e){const n=Gn(t);return n===e||!Dt(n)||no(n)?!1:Ft(n).position==="fixed"||zf(n,e)}function _b(t,e){const n=e.get(t);if(n)return n;let r=Oo(t,[],!1).filter(a=>Dt(a)&&ao(a)!=="body"),o=null;const i=Ft(t).position==="fixed";let s=i?Gn(t):t;for(;Dt(s)&&!no(s);){const a=Ft(s),c=Bc(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||gs(s)&&!c&&zf(t,s))?r=r.filter(d=>d!==s):o=a,s=Gn(s)}return e.set(t,r),r}function Pb(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?el(e)?[]:_b(e,this._c):[].concat(n),r],a=td(e,s[0],o);let c=a.top,u=a.right,d=a.bottom,f=a.left;for(let g=1;g<s.length;g++){const b=td(e,s[g],o);c=mt(b.top,c),u=jn(b.right,u),d=jn(b.bottom,d),f=mt(b.left,f)}return{width:u-f,height:d-c,x:f,y:c}}function Ib(t){const{width:e,height:n}=Ff(t);return{width:e,height:n}}function Mb(t,e,n){const r=Cn(e),o=tn(e),i=n==="fixed",s=wr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=$t(0);function u(){c.x=nl(o)}if(r||!r&&!i)if((ao(e)!=="body"||gs(o))&&(a=tl(e)),r){const b=wr(e,!0,i,e);c.x=b.x+e.clientLeft,c.y=b.y+e.clientTop}else o&&u();i&&!r&&o&&u();const d=o&&!r&&!i?Bf(o,a):$t(0),f=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:f,y:g,width:s.width,height:s.height}}function pl(t){return Ft(t).position==="static"}function nd(t,e){if(!Cn(t)||Ft(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return tn(t)===n&&(n=n.ownerDocument.body),n}function Vf(t,e){const n=bt(t);if(el(t))return n;if(!Cn(t)){let o=Gn(t);for(;o&&!no(o);){if(Dt(o)&&!pl(o))return o;o=Gn(o)}return n}let r=nd(t,e);for(;r&&vb(r)&&pl(r);)r=nd(r,e);return r&&no(r)&&pl(r)&&!Bc(r)?n:r||Cb(t)||n}const Rb=async function(t){const e=this.getOffsetParent||Vf,n=this.getDimensions,r=await n(t.floating);return{reference:Mb(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Nb(t){return Ft(t).direction==="rtl"}const Db={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:tn,getClippingRect:Pb,getOffsetParent:Vf,getElementRects:Rb,getClientRects:Ab,getDimensions:Ib,getScale:Ir,isElement:Dt,isRTL:Nb};function Wf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Fb(t,e){let n=null,r;const o=tn(t);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const u=t.getBoundingClientRect(),{left:d,top:f,width:g,height:b}=u;if(a||e(),!g||!b)return;const v=xs(f),m=xs(o.clientWidth-(d+g)),E=xs(o.clientHeight-(f+b)),T=xs(d),A={rootMargin:-v+"px "+-m+"px "+-E+"px "+-T+"px",threshold:mt(0,jn(1,c))||1};let y=!0;function x(k){const R=k[0].intersectionRatio;if(R!==c){if(!y)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Wf(u,t.getBoundingClientRect())&&s(),y=!1}try{n=new IntersectionObserver(x,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(x,A)}n.observe(t)}return s(!0),i}function Lb(t,e,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,u=Vc(t),d=o||i?[...u?Oo(u):[],...e?Oo(e):[]]:[];d.forEach(T=>{o&&T.addEventListener("scroll",n,{passive:!0}),i&&T.addEventListener("resize",n)});const f=u&&a?Fb(u,n):null;let g=-1,b=null;s&&(b=new ResizeObserver(T=>{let[O]=T;O&&O.target===u&&b&&e&&(b.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(e)})),n()}),u&&!c&&b.observe(u),e&&b.observe(e));let v,m=c?wr(t):null;c&&E();function E(){const T=wr(t);m&&!Wf(m,T)&&n(),m=T,v=requestAnimationFrame(E)}return n(),()=>{var T;d.forEach(O=>{o&&O.removeEventListener("scroll",n),i&&O.removeEventListener("resize",n)}),f?.(),(T=b)==null||T.disconnect(),b=null,c&&cancelAnimationFrame(v)}}const Bb=pb,zb=gb,Vb=db,Wb=bb,Ub=fb,Hb=ub,Kb=mb,jb=(t,e,n)=>{const r=new Map,o={platform:Db,...n},i={...o.platform,_c:r};return cb(t,e,{...o,platform:i})};function Qn(t){return typeof t=="function"?t():t}function Uf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function rd(t,e){const n=Uf(t);return Math.round(e*n)/n}function od(t){return{[`--bits-${t}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${t}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${t}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${t}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${t}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function Gb(t){const e=t.whileElementsMounted,n=U(()=>Qn(t.open)??!0),r=U(()=>Qn(t.middleware)),o=U(()=>Qn(t.transform)??!0),i=U(()=>Qn(t.placement)??"bottom"),s=U(()=>Qn(t.strategy)??"absolute"),a=U(()=>Qn(t.sideOffset)??0),c=U(()=>Qn(t.alignOffset)??0),u=t.reference;let d=oe(0),f=oe(0);const g=xt(null);let b=oe(Hn(w(s))),v=oe(Hn(w(i))),m=oe(Hn({})),E=oe(!1),T=!1,O=0;const A=U(()=>{const K=g.current?rd(g.current,w(d)):w(d),ee=g.current?rd(g.current,w(f)):w(f);return w(o)?{position:w(b),left:"0",top:"0",transform:`translate(${K}px, ${ee}px)`,...g.current&&Uf(g.current)>=1.5&&{willChange:"transform"}}:{position:w(b),left:`${K}px`,top:`${ee}px`}});let y;function x(){if(u.current===null||g.current===null)return;const K=u.current,ee=g.current,W=++O;jb(K,ee,{middleware:w(r),placement:w(i),strategy:w(s)}).then(Y=>{if(W!==O||u.current!==K||g.current!==ee)return;if(qb(K)){N(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(n)&&w(d)!==0&&w(f)!==0){const Z=Math.max(Math.abs(w(a)),Math.abs(w(c)),15);if(Y.x<=Z&&Y.y<=Z)return}N(d,Y.x,!0),N(f,Y.y,!0),N(b,Y.strategy,!0),N(v,Y.placement,!0),N(m,Y.middlewareData,!0),N(E,!0)})}function k(){typeof y=="function"&&(y(),y=void 0),O++}function R(){if(k(),e===void 0){x();return}w(n)&&(u.current===null||g.current===null||(y=e(u.current,g.current,x)))}function M(){!w(n)&&g.current===null&&N(E,!1)}function H(){return[w(r),w(i),w(s),w(a),w(c),w(n)]}return Le(()=>{e===void 0&&w(n)&&x()}),Le(R),Le(()=>{if(e!==void 0){if(H(),!w(n)){T=!1;return}if(!w(E)){T=!1;return}if(!T){T=!0;return}x()}}),Le(M),Le(()=>k),{floating:g,reference:u,get strategy(){return w(b)},get placement(){return w(v)},get middlewareData(){return w(m)},get isPositioned(){return w(E)},get floatingStyles(){return w(A)},get update(){return x}}}function qb(t){return t instanceof Element?!t.isConnected||t instanceof HTMLElement&&t.hidden?!0:t.getClientRects().length===0:!1}const Yb={top:"bottom",right:"left",bottom:"top",left:"right"},Wc=new St("Floating.Root"),tc=new St("Floating.Content"),Uc=new St("Floating.Root");class oa{constructor(){_(this,"anchorNode",xt(null));_(this,"customAnchorNode",xt(null));_(this,"triggerNode",xt(null));Le(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}static create(e=!1){return e?Uc.set(new oa):Wc.set(new oa)}}var wi,Ci,xi,Ia,Si,Ma,ki,Ai,Ti,Ei,Oi,_i,Pi,Ii,Mi,Ri,Ni,Di,Fi,Li,Bi,zi,Vi,Wi;const Ra=class Ra{constructor(e,n){_(this,"opts");_(this,"root");_(this,"contentRef",xt(null));_(this,"wrapperRef",xt(null));_(this,"arrowRef",xt(null));_(this,"contentAttachment",pt(this.contentRef));_(this,"wrapperAttachment",pt(this.wrapperRef));_(this,"arrowAttachment",pt(this.arrowRef));_(this,"arrowId",xt(ea()));C(this,wi,U(()=>{if(typeof this.opts.style=="string")return mo(this.opts.style);if(!this.opts.style)return{}}));C(this,Ci);C(this,xi,new Pg(()=>this.arrowRef.current??void 0));C(this,Ia,U(()=>l(this,xi)?.width??0));C(this,Si,U(()=>l(this,xi)?.height??0));C(this,Ma,U(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")));C(this,ki,U(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));C(this,Ai,U(()=>w(l(this,ki)).length>0));C(this,Ti,U(()=>({padding:this.opts.collisionPadding.current,boundary:w(l(this,ki)).filter(Zg),altBoundary:this.hasExplicitBoundaries})));C(this,Ei,oe(void 0));C(this,Oi,oe(void 0));C(this,_i,oe(void 0));C(this,Pi,oe(void 0));C(this,Ii,U(()=>[Bb({mainAxis:this.opts.sideOffset.current+w(l(this,Si)),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&zb({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Kb():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Vb({...this.detectOverflowOptions}),Wb({...this.detectOverflowOptions,apply:({rects:e,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=e.reference;N(l(this,Ei),n,!0),N(l(this,Oi),r,!0),N(l(this,_i),o,!0),N(l(this,Pi),i,!0)}}),this.arrowRef.current&&Hb({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Xb({arrowWidth:w(l(this,Ia)),arrowHeight:w(l(this,Si))}),this.opts.hideWhenDetached.current&&Ub({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));_(this,"floating");C(this,Mi,U(()=>Zb(this.floating.placement)));C(this,Ri,U(()=>Jb(this.floating.placement)));C(this,Ni,U(()=>this.floating.middlewareData.arrow?.x??0));C(this,Di,U(()=>this.floating.middlewareData.arrow?.y??0));C(this,Fi,U(()=>this.floating.middlewareData.arrow?.centerOffset!==0));C(this,Li,oe());C(this,Bi,U(()=>Yb[this.placedSide]));C(this,zi,U(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${w(l(this,Ei))}px`,"--bits-floating-available-height":`${w(l(this,Oi))}px`,"--bits-floating-anchor-width":`${w(l(this,_i))}px`,"--bits-floating-anchor-height":`${w(l(this,Pi))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(l(this,wi))},dir:this.opts.dir.current,...this.wrapperAttachment})));C(this,Vi,U(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Rd({...w(l(this,wi))}),...this.contentAttachment})));C(this,Wi,U(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0})));this.opts=e,this.root=n,I(this,Ci,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),Se(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Gb({strategy:()=>this.opts.strategy.current,placement:()=>w(l(this,Ma)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Lb(...r,{animationFrame:l(this,Ci)?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),Le(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),Se(()=>this.contentRef.current,r=>{if(!r||!this.opts.enabled.current)return;const o=Bd(r),i=o.requestAnimationFrame(()=>{if(this.contentRef.current!==r||!this.opts.enabled.current)return;const s=o.getComputedStyle(r).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{o.cancelAnimationFrame(i)}}),Le(()=>{this.floating.floating.current=this.wrapperRef.current})}static create(e,n=!1){return n?tc.set(new Ra(e,Uc.get())):tc.set(new Ra(e,Wc.get()))}get hasExplicitBoundaries(){return w(l(this,Ai))}set hasExplicitBoundaries(e){N(l(this,Ai),e)}get detectOverflowOptions(){return w(l(this,Ti))}set detectOverflowOptions(e){N(l(this,Ti),e)}get middleware(){return w(l(this,Ii))}set middleware(e){N(l(this,Ii),e)}get placedSide(){return w(l(this,Mi))}set placedSide(e){N(l(this,Mi),e)}get placedAlign(){return w(l(this,Ri))}set placedAlign(e){N(l(this,Ri),e)}get arrowX(){return w(l(this,Ni))}set arrowX(e){N(l(this,Ni),e)}get arrowY(){return w(l(this,Di))}set arrowY(e){N(l(this,Di),e)}get cannotCenterArrow(){return w(l(this,Fi))}set cannotCenterArrow(e){N(l(this,Fi),e)}get contentZIndex(){return w(l(this,Li))}set contentZIndex(e){N(l(this,Li),e,!0)}get arrowBaseSide(){return w(l(this,Bi))}set arrowBaseSide(e){N(l(this,Bi),e)}get wrapperProps(){return w(l(this,zi))}set wrapperProps(e){N(l(this,zi),e)}get props(){return w(l(this,Vi))}set props(e){N(l(this,Vi),e)}get arrowStyle(){return w(l(this,Wi))}set arrowStyle(e){N(l(this,Wi),e)}};wi=new WeakMap,Ci=new WeakMap,xi=new WeakMap,Ia=new WeakMap,Si=new WeakMap,Ma=new WeakMap,ki=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Oi=new WeakMap,_i=new WeakMap,Pi=new WeakMap,Ii=new WeakMap,Mi=new WeakMap,Ri=new WeakMap,Ni=new WeakMap,Di=new WeakMap,Fi=new WeakMap,Li=new WeakMap,Bi=new WeakMap,zi=new WeakMap,Vi=new WeakMap,Wi=new WeakMap;let nc=Ra;var Ui;const gu=class gu{constructor(e,n){_(this,"opts");_(this,"content");C(this,Ui,U(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment})));this.opts=e,this.content=n}static create(e){return new gu(e,tc.get())}get props(){return w(l(this,Ui))}set props(e){N(l(this,Ui),e)}};Ui=new WeakMap;let id=gu;class rc{constructor(e,n){_(this,"opts");_(this,"root");this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=Pd(e.virtualEl.current):n.triggerNode=e.ref}static create(e,n=!1){return n?new rc(e,Uc.get()):new rc(e,Wc.get())}}function Xb(t){return{name:"transformOrigin",options:t,fn(e){const{placement:n,rects:r,middlewareData:o}=e,s=o.arrow?.centerOffset!==0,a=s?0:t.arrowWidth,c=s?0:t.arrowHeight,[u,d]=Hc(n),f={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+a/2,b=(o.arrow?.y??0)+c/2;let v="",m="";return u==="bottom"?(v=s?f:`${g}px`,m=`${-c}px`):u==="top"?(v=s?f:`${g}px`,m=`${r.floating.height+c}px`):u==="right"?(v=`${-c}px`,m=s?f:`${b}px`):u==="left"&&(v=`${r.floating.width+c}px`,m=s?f:`${b}px`),{data:{x:v,y:m}}}}}function Hc(t){const[e,n="center"]=t.split("-");return[e,n]}function Zb(t){return Hc(t)[0]}function Jb(t){return Hc(t)[1]}function Hf(t,e){if(new.target)return Ae({component:Hf,...t});Oe(e,!0);let n=h(e,"children",7),r=h(e,"tooltip",7,!1);oa.create(r());var o={get children(){return n()},set children(a){n(a),p()},get tooltip(){return r()},set tooltip(a=!1){r(a),p()},$set:Te,$on:(a,c)=>Ee(e,a,c)},i=ue(),s=se(i);return me(s,()=>n()??we),Q(t,i),_e(o)}function Kf(t,e){if(new.target)return Ae({component:Kf,...t});Oe(e,!0);let n=h(e,"content",7),r=h(e,"side",7,"bottom"),o=h(e,"sideOffset",7,0),i=h(e,"align",7,"center"),s=h(e,"alignOffset",7,0),a=h(e,"id",7),c=h(e,"arrowPadding",7,0),u=h(e,"avoidCollisions",7,!0),d=h(e,"collisionBoundary",23,()=>[]),f=h(e,"collisionPadding",7,0),g=h(e,"hideWhenDetached",7,!1),b=h(e,"onPlaced",7,()=>{}),v=h(e,"sticky",7,"partial"),m=h(e,"updatePositionStrategy",7,"optimized"),E=h(e,"strategy",7,"fixed"),T=h(e,"dir",7,"ltr"),O=h(e,"style",23,()=>({})),A=h(e,"wrapperId",23,ea),y=h(e,"customAnchor",7,null),x=h(e,"enabled",7),k=h(e,"tooltip",7,!1);const R=nc.create({side:G(()=>r()),sideOffset:G(()=>o()),align:G(()=>i()),alignOffset:G(()=>s()),id:G(()=>a()),arrowPadding:G(()=>c()),avoidCollisions:G(()=>u()),collisionBoundary:G(()=>d()),collisionPadding:G(()=>f()),hideWhenDetached:G(()=>g()),onPlaced:G(()=>b()),sticky:G(()=>v()),updatePositionStrategy:G(()=>m()),strategy:G(()=>E()),dir:G(()=>T()),style:G(()=>O()),enabled:G(()=>x()),wrapperId:G(()=>A()),customAnchor:G(()=>y())},k()),M=U(()=>Zt(R.wrapperProps,{style:{pointerEvents:"auto"}}));var H={get content(){return n()},set content(W){n(W),p()},get side(){return r()},set side(W="bottom"){r(W),p()},get sideOffset(){return o()},set sideOffset(W=0){o(W),p()},get align(){return i()},set align(W="center"){i(W),p()},get alignOffset(){return s()},set alignOffset(W=0){s(W),p()},get id(){return a()},set id(W){a(W),p()},get arrowPadding(){return c()},set arrowPadding(W=0){c(W),p()},get avoidCollisions(){return u()},set avoidCollisions(W=!0){u(W),p()},get collisionBoundary(){return d()},set collisionBoundary(W=[]){d(W),p()},get collisionPadding(){return f()},set collisionPadding(W=0){f(W),p()},get hideWhenDetached(){return g()},set hideWhenDetached(W=!1){g(W),p()},get onPlaced(){return b()},set onPlaced(W=()=>{}){b(W),p()},get sticky(){return v()},set sticky(W="partial"){v(W),p()},get updatePositionStrategy(){return m()},set updatePositionStrategy(W="optimized"){m(W),p()},get strategy(){return E()},set strategy(W="fixed"){E(W),p()},get dir(){return T()},set dir(W="ltr"){T(W),p()},get style(){return O()},set style(W={}){O(W),p()},get wrapperId(){return A()},set wrapperId(W=ea()){A(W),p()},get customAnchor(){return y()},set customAnchor(W=null){y(W),p()},get enabled(){return x()},set enabled(W){x(W),p()},get tooltip(){return k()},set tooltip(W=!1){k(W),p()},$set:Te,$on:(W,Y)=>Ee(e,W,Y)},K=ue(),ee=se(K);return me(ee,()=>n()??we,()=>({props:R.props,wrapperProps:w(M)})),Q(t,K),_e(H)}function jf(t,e){if(new.target)return Ae({component:jf,...t});Oe(e,!0);let n=h(e,"content",7),r=h(e,"onPlaced",7);pp(()=>{r()?.()});var o={get content(){return n()},set content(a){n(a),p()},get onPlaced(){return r()},set onPlaced(a){r(a),p()},$set:Te,$on:(a,c)=>Ee(e,a,c)},i=ue(),s=se(i);return me(s,()=>n()??we,()=>({props:{},wrapperProps:{}})),Q(t,i),_e(o)}var Qb=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function Gf(t,e){if(new.target)return Ae({component:Gf,...t});Oe(e,!0);let n=h(e,"content",7),r=h(e,"isStatic",7,!1),o=h(e,"onPlaced",7),i=xr(e,Qb);var s={get content(){return n()},set content(f){n(f),p()},get isStatic(){return r()},set isStatic(f=!1){r(f),p()},get onPlaced(){return o()},set onPlaced(f){o(f),p()},$set:Te,$on:(f,g)=>Ee(e,f,g)},a=ue(),c=se(a);{var u=f=>{jf(f,{get content(){return n()},get onPlaced(){return o()}})},d=f=>{Kf(f,ko({get content(){return n()},get onPlaced(){return o()}},()=>i))};Ie(c,f=>{r()?f(u):f(d,-1)})}return Q(t,a),_e(s)}var $b=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","ref","tooltip","contentPointerEvents"]),ev=je("<!> <!>",1);function Kc(t,e){if(new.target)return Ae({component:Kc,...t});Oe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),H=h(e,"onPlaced",7),K=h(e,"onInteractOutside",7),ee=h(e,"onCloseAutoFocus",7),W=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),Z=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),ne=h(e,"customAnchor",7,null),fe=h(e,"isStatic",7,!1),P=h(e,"enabled",7),de=h(e,"ref",7),xe=h(e,"tooltip",7,!1),V=h(e,"contentPointerEvents",7,"auto"),ze=xr(e,$b);const he=U(()=>k()??!0),be=U(()=>y()??(w(he)?"fixed":"absolute"));var ve={get popper(){return n()},set popper(S){n(S),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(S){r(S),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(S){o(S),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(S){i(S),p()},get id(){return s()},set id(S){s(S),p()},get onPointerDown(){return a()},set onPointerDown(S){a(S),p()},get onPointerUp(){return c()},set onPointerUp(S){c(S),p()},get side(){return u()},set side(S){u(S),p()},get sideOffset(){return d()},set sideOffset(S){d(S),p()},get align(){return f()},set align(S){f(S),p()},get alignOffset(){return g()},set alignOffset(S){g(S),p()},get arrowPadding(){return b()},set arrowPadding(S){b(S),p()},get avoidCollisions(){return v()},set avoidCollisions(S){v(S),p()},get collisionBoundary(){return m()},set collisionBoundary(S){m(S),p()},get collisionPadding(){return E()},set collisionPadding(S){E(S),p()},get sticky(){return T()},set sticky(S){T(S),p()},get hideWhenDetached(){return O()},set hideWhenDetached(S){O(S),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(S){A(S),p()},get strategy(){return y()},set strategy(S){y(S),p()},get dir(){return x()},set dir(S){x(S),p()},get preventScroll(){return k()},set preventScroll(S){k(S),p()},get wrapperId(){return R()},set wrapperId(S){R(S),p()},get style(){return M()},set style(S){M(S),p()},get onPlaced(){return H()},set onPlaced(S){H(S),p()},get onInteractOutside(){return K()},set onInteractOutside(S){K(S),p()},get onCloseAutoFocus(){return ee()},set onCloseAutoFocus(S){ee(S),p()},get onOpenAutoFocus(){return W()},set onOpenAutoFocus(S){W(S),p()},get onFocusOutside(){return Y()},set onFocusOutside(S){Y(S),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(S="close"){B(S),p()},get loop(){return Z()},set loop(S){Z(S),p()},get trapFocus(){return re()},set trapFocus(S=!0){re(S),p()},get isValidEvent(){return ie()},set isValidEvent(S=()=>!1){ie(S),p()},get customAnchor(){return ne()},set customAnchor(S=null){ne(S),p()},get isStatic(){return fe()},set isStatic(S=!1){fe(S),p()},get enabled(){return P()},set enabled(S){P(S),p()},get ref(){return de()},set ref(S){de(S),p()},get tooltip(){return xe()},set tooltip(S=!1){xe(S),p()},get contentPointerEvents(){return V()},set contentPointerEvents(S="auto"){V(S),p()},$set:Te,$on:(S,ae)=>Ee(e,S,ae)};return Gf(t,{get isStatic(){return fe()},get id(){return s()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return w(be)},get dir(){return x()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return H()},get customAnchor(){return ne()},get enabled(){return P()},get tooltip(){return xe()},content:(ae,Ge)=>{let j=()=>(Ge?.()).props,Me=()=>(Ge?.()).wrapperProps;var it=ev(),qe=se(it);{var Lt=Re=>{Jl(Re,{get preventScroll(){return w(he)}})},Ye=Re=>{Jl(Re,{get preventScroll(){return w(he)}})};Ie(qe,Re=>{e.forceMount&&P()?Re(Lt):e.forceMount||Re(Ye,1)})}var Ve=mn(qe,2);{const Re=(nt,st)=>{let xn=()=>(st?.()).props;xf(nt,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get enabled(){return P()},get ref(){return de()},children:(Xn,kt)=>{Cf(Xn,{get id(){return s()},get onInteractOutside(){return K()},get onFocusOutside(){return Y()},get interactOutsideBehavior(){return B()},get isValidEvent(){return ie()},get enabled(){return P()},get ref(){return de()},children:(At,nn)=>{let Je=()=>(nn?.()).props;_f(At,{get id(){return s()},get preventOverflowTextSelection(){return i()},get onPointerDown(){return a()},get onPointerUp(){return c()},get enabled(){return P()},get ref(){return de()},children:(gt,Zn)=>{var vs=ue(),sl=se(vs);{let al=U(()=>({props:Zt(ze,j(),Je(),xn(),{style:{pointerEvents:V()}}),wrapperProps:Me()}));me(sl,()=>n()??we,()=>w(al))}Q(gt,vs)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let Ne=U(()=>P()&&!xe());Ef(Ve,{get onOpenAutoFocus(){return W()},get onCloseAutoFocus(){return ee()},get loop(){return Z()},get enabled(){return w(Ne)},get trapFocus(){return re()},get forceMount(){return e.forceMount},get ref(){return de()},focusScope:Re,$$slots:{focusScope:!0}})}Q(ae,it)},$$slots:{content:!0}}),_e(ve)}var tv=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function qf(t,e){if(new.target)return Ae({component:qf,...t});Oe(e,!0);let n=h(e,"popper",7),r=h(e,"open",7),o=h(e,"onEscapeKeydown",7),i=h(e,"escapeKeydownBehavior",7),s=h(e,"preventOverflowTextSelection",7),a=h(e,"id",7),c=h(e,"onPointerDown",7),u=h(e,"onPointerUp",7),d=h(e,"side",7),f=h(e,"sideOffset",7),g=h(e,"align",7),b=h(e,"alignOffset",7),v=h(e,"arrowPadding",7),m=h(e,"avoidCollisions",7),E=h(e,"collisionBoundary",7),T=h(e,"collisionPadding",7),O=h(e,"sticky",7),A=h(e,"hideWhenDetached",7),y=h(e,"updatePositionStrategy",7),x=h(e,"strategy",7),k=h(e,"dir",7),R=h(e,"preventScroll",7),M=h(e,"wrapperId",7),H=h(e,"style",7),K=h(e,"onPlaced",7),ee=h(e,"onInteractOutside",7),W=h(e,"onCloseAutoFocus",7),Y=h(e,"onOpenAutoFocus",7),B=h(e,"onFocusOutside",7),Z=h(e,"interactOutsideBehavior",7,"close"),re=h(e,"loop",7),ie=h(e,"trapFocus",7,!0),ne=h(e,"isValidEvent",7,()=>!1),fe=h(e,"customAnchor",7,null),P=h(e,"isStatic",7,!1),de=h(e,"ref",7),xe=h(e,"shouldRender",7),V=xr(e,tv);var ze={get popper(){return n()},set popper(S){n(S),p()},get open(){return r()},set open(S){r(S),p()},get onEscapeKeydown(){return o()},set onEscapeKeydown(S){o(S),p()},get escapeKeydownBehavior(){return i()},set escapeKeydownBehavior(S){i(S),p()},get preventOverflowTextSelection(){return s()},set preventOverflowTextSelection(S){s(S),p()},get id(){return a()},set id(S){a(S),p()},get onPointerDown(){return c()},set onPointerDown(S){c(S),p()},get onPointerUp(){return u()},set onPointerUp(S){u(S),p()},get side(){return d()},set side(S){d(S),p()},get sideOffset(){return f()},set sideOffset(S){f(S),p()},get align(){return g()},set align(S){g(S),p()},get alignOffset(){return b()},set alignOffset(S){b(S),p()},get arrowPadding(){return v()},set arrowPadding(S){v(S),p()},get avoidCollisions(){return m()},set avoidCollisions(S){m(S),p()},get collisionBoundary(){return E()},set collisionBoundary(S){E(S),p()},get collisionPadding(){return T()},set collisionPadding(S){T(S),p()},get sticky(){return O()},set sticky(S){O(S),p()},get hideWhenDetached(){return A()},set hideWhenDetached(S){A(S),p()},get updatePositionStrategy(){return y()},set updatePositionStrategy(S){y(S),p()},get strategy(){return x()},set strategy(S){x(S),p()},get dir(){return k()},set dir(S){k(S),p()},get preventScroll(){return R()},set preventScroll(S){R(S),p()},get wrapperId(){return M()},set wrapperId(S){M(S),p()},get style(){return H()},set style(S){H(S),p()},get onPlaced(){return K()},set onPlaced(S){K(S),p()},get onInteractOutside(){return ee()},set onInteractOutside(S){ee(S),p()},get onCloseAutoFocus(){return W()},set onCloseAutoFocus(S){W(S),p()},get onOpenAutoFocus(){return Y()},set onOpenAutoFocus(S){Y(S),p()},get onFocusOutside(){return B()},set onFocusOutside(S){B(S),p()},get interactOutsideBehavior(){return Z()},set interactOutsideBehavior(S="close"){Z(S),p()},get loop(){return re()},set loop(S){re(S),p()},get trapFocus(){return ie()},set trapFocus(S=!0){ie(S),p()},get isValidEvent(){return ne()},set isValidEvent(S=()=>!1){ne(S),p()},get customAnchor(){return fe()},set customAnchor(S=null){fe(S),p()},get isStatic(){return P()},set isStatic(S=!1){P(S),p()},get ref(){return de()},set ref(S){de(S),p()},get shouldRender(){return xe()},set shouldRender(S){xe(S),p()},$set:Te,$on:(S,ae)=>Ee(e,S,ae)},he=ue(),be=se(he);{var ve=S=>{Kc(S,ko({get popper(){return n()},get onEscapeKeydown(){return o()},get escapeKeydownBehavior(){return i()},get preventOverflowTextSelection(){return s()},get id(){return a()},get onPointerDown(){return c()},get onPointerUp(){return u()},get side(){return d()},get sideOffset(){return f()},get align(){return g()},get alignOffset(){return b()},get arrowPadding(){return v()},get avoidCollisions(){return m()},get collisionBoundary(){return E()},get collisionPadding(){return T()},get sticky(){return O()},get hideWhenDetached(){return A()},get updatePositionStrategy(){return y()},get strategy(){return x()},get dir(){return k()},get preventScroll(){return R()},get wrapperId(){return M()},get style(){return H()},get onPlaced(){return K()},get customAnchor(){return fe()},get isStatic(){return P()},get enabled(){return r()},get onInteractOutside(){return ee()},get onCloseAutoFocus(){return W()},get onOpenAutoFocus(){return Y()},get interactOutsideBehavior(){return Z()},get loop(){return re()},get trapFocus(){return ie()},get isValidEvent(){return ne()},get onFocusOutside(){return B()},forceMount:!1,get ref(){return de()}},()=>V))};Ie(be,S=>{xe()&&S(ve)})}return Q(t,he),_e(ze)}var nv=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function Yf(t,e){if(new.target)return Ae({component:Yf,...t});Oe(e,!0);let n=h(e,"popper",7),r=h(e,"onEscapeKeydown",7),o=h(e,"escapeKeydownBehavior",7),i=h(e,"preventOverflowTextSelection",7),s=h(e,"id",7),a=h(e,"onPointerDown",7),c=h(e,"onPointerUp",7),u=h(e,"side",7),d=h(e,"sideOffset",7),f=h(e,"align",7),g=h(e,"alignOffset",7),b=h(e,"arrowPadding",7),v=h(e,"avoidCollisions",7),m=h(e,"collisionBoundary",7),E=h(e,"collisionPadding",7),T=h(e,"sticky",7),O=h(e,"hideWhenDetached",7),A=h(e,"updatePositionStrategy",7),y=h(e,"strategy",7),x=h(e,"dir",7),k=h(e,"preventScroll",7),R=h(e,"wrapperId",7),M=h(e,"style",7),H=h(e,"onPlaced",7),K=h(e,"onInteractOutside",7),ee=h(e,"onCloseAutoFocus",7),W=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),Z=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),ne=h(e,"customAnchor",7,null),fe=h(e,"isStatic",7,!1),P=h(e,"enabled",7),de=xr(e,nv);var xe={get popper(){return n()},set popper(V){n(V),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(V){r(V),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(V){o(V),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(V){i(V),p()},get id(){return s()},set id(V){s(V),p()},get onPointerDown(){return a()},set onPointerDown(V){a(V),p()},get onPointerUp(){return c()},set onPointerUp(V){c(V),p()},get side(){return u()},set side(V){u(V),p()},get sideOffset(){return d()},set sideOffset(V){d(V),p()},get align(){return f()},set align(V){f(V),p()},get alignOffset(){return g()},set alignOffset(V){g(V),p()},get arrowPadding(){return b()},set arrowPadding(V){b(V),p()},get avoidCollisions(){return v()},set avoidCollisions(V){v(V),p()},get collisionBoundary(){return m()},set collisionBoundary(V){m(V),p()},get collisionPadding(){return E()},set collisionPadding(V){E(V),p()},get sticky(){return T()},set sticky(V){T(V),p()},get hideWhenDetached(){return O()},set hideWhenDetached(V){O(V),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(V){A(V),p()},get strategy(){return y()},set strategy(V){y(V),p()},get dir(){return x()},set dir(V){x(V),p()},get preventScroll(){return k()},set preventScroll(V){k(V),p()},get wrapperId(){return R()},set wrapperId(V){R(V),p()},get style(){return M()},set style(V){M(V),p()},get onPlaced(){return H()},set onPlaced(V){H(V),p()},get onInteractOutside(){return K()},set onInteractOutside(V){K(V),p()},get onCloseAutoFocus(){return ee()},set onCloseAutoFocus(V){ee(V),p()},get onOpenAutoFocus(){return W()},set onOpenAutoFocus(V){W(V),p()},get onFocusOutside(){return Y()},set onFocusOutside(V){Y(V),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(V="close"){B(V),p()},get loop(){return Z()},set loop(V){Z(V),p()},get trapFocus(){return re()},set trapFocus(V=!0){re(V),p()},get isValidEvent(){return ie()},set isValidEvent(V=()=>!1){ie(V),p()},get customAnchor(){return ne()},set customAnchor(V=null){ne(V),p()},get isStatic(){return fe()},set isStatic(V=!1){fe(V),p()},get enabled(){return P()},set enabled(V){P(V),p()},$set:Te,$on:(V,ze)=>Ee(e,V,ze)};return Kc(t,ko({get popper(){return n()},get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get preventOverflowTextSelection(){return i()},get id(){return s()},get onPointerDown(){return a()},get onPointerUp(){return c()},get side(){return u()},get sideOffset(){return d()},get align(){return f()},get alignOffset(){return g()},get arrowPadding(){return b()},get avoidCollisions(){return v()},get collisionBoundary(){return m()},get collisionPadding(){return E()},get sticky(){return T()},get hideWhenDetached(){return O()},get updatePositionStrategy(){return A()},get strategy(){return y()},get dir(){return x()},get preventScroll(){return k()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return H()},get customAnchor(){return ne()},get isStatic(){return fe()},get enabled(){return P()},get onInteractOutside(){return K()},get onCloseAutoFocus(){return ee()},get onOpenAutoFocus(){return W()},get interactOutsideBehavior(){return B()},get loop(){return Z()},get trapFocus(){return re()},get isValidEvent(){return ie()},get onFocusOutside(){return Y()}},()=>de,{forceMount:!0})),_e(xe)}function gl(t,e){const[n,r]=t;let o=!1;const i=e.length;for(let s=0,a=i-1;s<i;a=s++){const[c,u]=e[s]??[0,0],[d,f]=e[a]??[0,0];u>=r!=f>=r&&n<=(d-c)*(r-u)/(f-u)+c&&(o=!o)}return o}function ml(t,e){return t[0]>=e.left&&t[0]<=e.right&&t[1]>=e.top&&t[1]<=e.bottom}function sd(t,e){const n=t.left+t.width/2,r=t.top+t.height/2,o=e.left+e.width/2,i=e.top+e.height/2,s=o-n,a=i-r;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}var Ln,Yr,Xr,jt,ft,hr,pr,Bn,zn,pe,Vs,oc,ic,Xf,Zf,Vt,sc,Jf,Qf;class rv{constructor(e){C(this,pe);C(this,Ln);C(this,Yr);C(this,Xr);C(this,jt,null);C(this,ft,null);C(this,hr,[]);C(this,pr,null);C(this,Bn,null);C(this,zn,null);I(this,Ln,e),I(this,Yr,e.buffer??1);const n=e.transitIntentTimeout;I(this,Xr,typeof n=="number"&&n>0?n:null),Se([e.triggerNode,e.contentNode,e.enabled],([r,o,i])=>{if(!r||!o||!i){I(this,pr,null),F(this,pe,Vt).call(this);return}l(this,pr)&&l(this,pr)!==r&&F(this,pe,Vt).call(this),I(this,pr,r);const s=io(r),a=g=>{F(this,pe,Zf).call(this,[g.clientX,g.clientY],r,o)},c=g=>{const b=g.relatedTarget;if(Rt(b)&&o.contains(b))return;const v=l(this,Ln).ignoredTargets?.()??[];Rt(b)&&v.some(m=>m===b||m.contains(b))||(I(this,hr,Rt(b)&&v.length>0?v.filter(m=>b.contains(m)):[]),I(this,jt,[g.clientX,g.clientY]),I(this,ft,"content"),F(this,pe,oc).call(this))},u=()=>{F(this,pe,Vt).call(this)},d=()=>{F(this,pe,Vt).call(this)},f=g=>{const b=g.relatedTarget;Rt(b)&&r.contains(b)||(I(this,jt,[g.clientX,g.clientY]),I(this,ft,"trigger"),F(this,pe,oc).call(this))};return[Pe(s,"pointermove",a),Pe(r,"pointerleave",c),Pe(r,"pointerenter",u),Pe(o,"pointerenter",d),Pe(o,"pointerleave",f)].reduce((g,b)=>()=>{g(),b()},()=>{})})}}Ln=new WeakMap,Yr=new WeakMap,Xr=new WeakMap,jt=new WeakMap,ft=new WeakMap,hr=new WeakMap,pr=new WeakMap,Bn=new WeakMap,zn=new WeakMap,pe=new WeakSet,Vs=function(){l(this,Bn)!==null&&(cancelAnimationFrame(l(this,Bn)),I(this,Bn,null))},oc=function(){F(this,pe,Vs).call(this),I(this,Bn,requestAnimationFrame(()=>{I(this,Bn,null),!(!l(this,jt)||!l(this,ft))&&(F(this,pe,Vt).call(this),l(this,Ln).onPointerExit())}))},ic=function(){l(this,zn)!==null&&(clearTimeout(l(this,zn)),I(this,zn,null))},Xf=function(){l(this,Xr)!==null&&(F(this,pe,ic).call(this),I(this,zn,window.setTimeout(()=>{I(this,zn,null),!(!l(this,jt)||!l(this,ft))&&(F(this,pe,Vt).call(this),l(this,Ln).onPointerExit())},l(this,Xr))))},Zf=function(e,n,r){if(!l(this,jt)||!l(this,ft))return;F(this,pe,Vs).call(this),F(this,pe,Xf).call(this);const o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(l(this,ft)==="content"&&ml(e,i)){F(this,pe,Vt).call(this);return}if(l(this,ft)==="trigger"&&ml(e,o)){F(this,pe,Vt).call(this);return}if(l(this,ft)==="content"&&l(this,hr).length>0)for(const d of l(this,hr)){const f=d.getBoundingClientRect();if(ml(e,f))return;const g=sd(o,f),b=F(this,pe,sc).call(this,o,f,g);if(b&&gl(e,b))return}const s=sd(o,i),a=F(this,pe,sc).call(this,o,i,s);if(a&&gl(e,a))return;const c=l(this,ft)==="content"?i:o,u=F(this,pe,Jf).call(this,l(this,jt),c,s,l(this,ft));gl(e,u)||(F(this,pe,Vt).call(this),l(this,Ln).onPointerExit())},Vt=function(){I(this,jt,null),I(this,ft,null),I(this,hr,[]),F(this,pe,Vs).call(this),F(this,pe,ic).call(this)},sc=function(e,n,r){const o=l(this,Yr);switch(r){case"top":return[[Math.min(e.left,n.left)-o,e.top],[Math.min(e.left,n.left)-o,n.bottom],[Math.max(e.right,n.right)+o,n.bottom],[Math.max(e.right,n.right)+o,e.top]];case"bottom":return[[Math.min(e.left,n.left)-o,e.bottom],[Math.min(e.left,n.left)-o,n.top],[Math.max(e.right,n.right)+o,n.top],[Math.max(e.right,n.right)+o,e.bottom]];case"left":return[[e.left,Math.min(e.top,n.top)-o],[n.right,Math.min(e.top,n.top)-o],[n.right,Math.max(e.bottom,n.bottom)+o],[e.left,Math.max(e.bottom,n.bottom)+o]];case"right":return[[e.right,Math.min(e.top,n.top)-o],[n.left,Math.min(e.top,n.top)-o],[n.left,Math.max(e.bottom,n.bottom)+o],[e.right,Math.max(e.bottom,n.bottom)+o]]}},Jf=function(e,n,r,o){const i=l(this,Yr)*4,[s,a]=e;switch(o==="trigger"?F(this,pe,Qf).call(this,r):r){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}},Qf=function(e){switch(e){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}};var Hi,Ki,Vn,ji,lc;class ac{constructor(e,n){C(this,ji);C(this,Hi);C(this,Ki);C(this,Vn,null);I(this,Ki,e),I(this,Hi,n),this.stop=this.stop.bind(this),this.start=this.start.bind(this),wn(this.stop)}stop(){F(this,ji,lc).call(this)}start(...e){F(this,ji,lc).call(this),I(this,Vn,window.setTimeout(()=>{I(this,Vn,null),l(this,Ki).call(this,...e)},l(this,Hi)))}}Hi=new WeakMap,Ki=new WeakMap,Vn=new WeakMap,ji=new WeakSet,lc=function(){l(this,Vn)!==null&&(window.clearTimeout(l(this,Vn)),I(this,Vn,null))};const $f=Wd({component:"tooltip",parts:["content","trigger"]}),eh=new St("Tooltip.Provider"),jc=new St("Tooltip.Root");var Gi,qi,Yi,Xi,Zi;class th{constructor(){C(this,Gi,oe(Hn(new Map)));C(this,qi,oe(null));C(this,Yi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null}));C(this,Xi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null}));_(this,"register",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Zi).call(this)});_(this,"update",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Zi).call(this)});_(this,"unregister",e=>{if(!this.triggers.has(e))return;const n=new Map(this.triggers);n.delete(e),this.triggers=n,this.activeTriggerId===e&&(this.activeTriggerId=null)});_(this,"setActiveTrigger",e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e});_(this,"get",e=>this.triggers.get(e));_(this,"has",e=>this.triggers.has(e));_(this,"getFirstTriggerId",()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]});C(this,Zi,()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))})}get triggers(){return w(l(this,Gi))}set triggers(e){N(l(this,Gi),e,!0)}get activeTriggerId(){return w(l(this,qi))}set activeTriggerId(e){N(l(this,qi),e,!0)}get activeTriggerNode(){return w(l(this,Yi))}set activeTriggerNode(e){N(l(this,Yi),e)}get activePayload(){return w(l(this,Xi))}set activePayload(e){N(l(this,Xi),e)}}Gi=new WeakMap,qi=new WeakMap,Yi=new WeakMap,Xi=new WeakMap,Zi=new WeakMap;var Ji;class ov{constructor(){_(this,"registry",new th);C(this,Ji,oe(null))}get root(){return w(l(this,Ji))}set root(e){N(l(this,Ji),e,!0)}}Ji=new WeakMap;var Gt;class iv{constructor(){C(this,Gt,new ov)}get state(){return l(this,Gt)}open(e){l(this,Gt).registry.has(e)&&(l(this,Gt).registry.setActiveTrigger(e),l(this,Gt).root?.setActiveTrigger(e),l(this,Gt).root?.handleOpen())}close(){l(this,Gt).root?.handleClose()}get isOpen(){return l(this,Gt).root?.opts.open.current??!1}}Gt=new WeakMap;function sv(){return new iv}var Qi,Zr,_t,Na,Da;const mu=class mu{constructor(e){_(this,"opts");C(this,Qi,oe(!0));_(this,"isPointerInTransit",xt(!1));C(this,Zr);C(this,_t,oe(null));C(this,Na,()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else l(this,Zr).start()});C(this,Da,()=>{l(this,Zr).stop()});_(this,"onOpen",e=>{w(l(this,_t))&&w(l(this,_t))!==e&&w(l(this,_t)).handleClose(),l(this,Da).call(this),this.isOpenDelayed=!1,N(l(this,_t),e,!0)});_(this,"onClose",e=>{w(l(this,_t))===e&&(N(l(this,_t),null),l(this,Na).call(this))});_(this,"isTooltipOpen",e=>w(l(this,_t))===e);this.opts=e,I(this,Zr,new ac(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)),Oc(()=>Pe(window,"scroll",n=>{const r=w(l(this,_t));if(!r)return;const o=r.triggerNode;if(!o)return;const i=n.target;(i instanceof Element||i instanceof Document)&&i.contains(o)&&r.handleClose()}))}static create(e){return eh.set(new mu(e))}get isOpenDelayed(){return w(l(this,Qi))}set isOpenDelayed(e){N(l(this,Qi),e,!0)}};Qi=new WeakMap,Zr=new WeakMap,_t=new WeakMap,Na=new WeakMap,Da=new WeakMap;let cc=mu;var $i,es,ts,ns,rs,os,Wn,qt,is,Fa;const bu=class bu{constructor(e,n){_(this,"opts");_(this,"provider");C(this,$i,U(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current));C(this,es,U(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current));C(this,ts,U(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current));C(this,ns,U(()=>this.opts.disabled.current??this.provider.opts.disabled.current));C(this,rs,U(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current));_(this,"registry");_(this,"tether");C(this,os,oe(null));_(this,"contentPresence");C(this,Wn,oe(!1));C(this,qt);C(this,is,U(()=>this.opts.open.current?w(l(this,Wn))?"delayed-open":"instant-open":"closed"));_(this,"handleOpen",()=>{l(this,qt).stop(),N(l(this,Wn),!1),this.ensureActiveTrigger(),this.opts.open.current=!0});_(this,"handleClose",()=>{l(this,qt).stop(),this.opts.open.current=!1});C(this,Fa,()=>{l(this,qt).stop();const e=!this.provider.isOpenDelayed,n=this.delayDuration??0;e||n===0?(N(l(this,Wn),!1),this.opts.open.current=!0):l(this,qt).start()});_(this,"onTriggerEnter",e=>{this.setActiveTrigger(e),l(this,Fa).call(this)});_(this,"onTriggerLeave",()=>{this.disableHoverableContent?this.handleClose():l(this,qt).stop()});_(this,"ensureActiveTrigger",()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)});_(this,"setActiveTrigger",e=>{this.registry.setActiveTrigger(e)});_(this,"registerTrigger",e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});_(this,"updateTrigger",e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});_(this,"unregisterTrigger",e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()});_(this,"isActiveTrigger",e=>this.registry.activeTriggerId===e);this.opts=e,this.provider=n,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new th,I(this,qt,new ac(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration??0)),this.tether&&(this.tether.root=this,Oc(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new qd({open:this.opts.open,ref:G(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),Se(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&I(this,qt,new ac(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration))}),Se(()=>this.opts.open.current,r=>{r?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),Se(()=>this.opts.triggerId.current,r=>{r!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(r)}),Se(()=>this.registry.activeTriggerId,r=>{this.opts.triggerId.current!==r&&(this.opts.triggerId.current=r)})}static create(e){return jc.set(new bu(e,eh.get()))}get delayDuration(){return w(l(this,$i))}set delayDuration(e){N(l(this,$i),e)}get disableHoverableContent(){return w(l(this,es))}set disableHoverableContent(e){N(l(this,es),e)}get disableCloseOnTriggerClick(){return w(l(this,ts))}set disableCloseOnTriggerClick(e){N(l(this,ts),e)}get disabled(){return w(l(this,ns))}set disabled(e){N(l(this,ns),e)}get ignoreNonKeyboardFocus(){return w(l(this,rs))}set ignoreNonKeyboardFocus(e){N(l(this,rs),e)}get contentNode(){return w(l(this,os))}set contentNode(e){N(l(this,os),e,!0)}get stateAttr(){return w(l(this,is))}set stateAttr(e){N(l(this,is),e)}get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}};$i=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,rs=new WeakMap,os=new WeakMap,Wn=new WeakMap,qt=new WeakMap,is=new WeakMap,Fa=new WeakMap;let uc=bu;var gr,Pt,mr,Jr,Yt,ht,wt,Un,Qr,La,Ba,za,Va,Wa,Ua,Ha,Ka,ss;const ja=class ja{constructor(e,n,r){_(this,"opts");_(this,"root");_(this,"tether");_(this,"attachment");C(this,gr,xt(!1));C(this,Pt,oe(!1));_(this,"domContext");C(this,mr,null);C(this,Jr,!1);C(this,Yt,null);C(this,ht,()=>this.tether?.root??this.root);C(this,wt,()=>{const e=l(this,ht).call(this);return this.opts.disabled.current||!!e?.disabled});C(this,Un,e=>{if(!l(this,Jr))return;const n=this.opts.id.current,r=this.opts.payload.current,o=this.opts.disabled.current;if(l(this,Yt)&&l(this,Yt)!==n){const a=l(this,ht).call(this);this.tether?this.tether.registry.unregister(l(this,Yt)):a?.unregisterTrigger(l(this,Yt))}const i={id:n,node:e,payload:r,disabled:o},s=l(this,ht).call(this);this.tether?(this.tether.registry.has(n)?this.tether.registry.update(i):this.tether.registry.register(i),o&&this.tether.registry.activeTriggerId===n&&s?.opts.open.current&&s.handleClose()):s?.registry.has(n)?s.updateTrigger(i):s?.registerTrigger(i),I(this,Yt,n)});C(this,Qr,()=>{l(this,mr)!==null&&(clearTimeout(l(this,mr)),I(this,mr,null))});_(this,"handlePointerUp",()=>{l(this,gr).current=!1});C(this,La,()=>{l(this,wt).call(this)||(l(this,gr).current=!1)});C(this,Ba,()=>{l(this,wt).call(this)||(l(this,gr).current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))});C(this,za,e=>{const n=l(this,ht).call(this);if(n){if(l(this,wt).call(this)){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){l(this,Qr).call(this),I(this,mr,window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Pt),!0))},250));return}n.onTriggerEnter(this.opts.id.current),N(l(this,Pt),!0)}}});C(this,Va,e=>{const n=l(this,ht).call(this);if(n){if(l(this,wt).call(this)){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(w(l(this,Pt))||(l(this,Qr).call(this),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Pt),!0)))}});C(this,Wa,e=>{const n=l(this,ht).call(this);if(!n||l(this,wt).call(this))return;if(l(this,Qr).call(this),!n.isActiveTrigger(this.opts.id.current)){N(l(this,Pt),!1);return}const r=e.relatedTarget;if(Rt(r)){for(const o of n.registry.triggers.values())if(o.node===r){if(n.provider.opts.skipDelayDuration.current>0){N(l(this,Pt),!1);return}n.handleClose(),N(l(this,Pt),!1);return}}n.onTriggerLeave(),N(l(this,Pt),!1)});C(this,Ua,e=>{const n=l(this,ht).call(this);if(n&&!l(this,gr).current){if(l(this,wt).call(this)){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!Xg(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}});C(this,Ha,()=>{const e=l(this,ht).call(this);!e||l(this,wt).call(this)||e.handleClose()});C(this,Ka,()=>{const e=l(this,ht).call(this);!e||e.disableCloseOnTriggerClick||l(this,wt).call(this)||e.handleClose()});C(this,ss,U(()=>{const e=l(this,ht).call(this),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),r=l(this,wt).call(this);return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":Za(r),"data-delay-duration":`${e?.delayDuration??0}`,[$f.trigger]:"",tabindex:r?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:l(this,La),onpointerdown:l(this,Ba),onpointerenter:l(this,za),onpointermove:l(this,Va),onpointerleave:l(this,Wa),onfocus:l(this,Ua),onblur:l(this,Ha),onclick:l(this,Ka),...this.attachment}}));this.opts=e,this.root=n,this.tether=r,this.domContext=new Xa(e.ref),this.attachment=pt(this.opts.ref,o=>l(this,Un).call(this,o)),Se(()=>this.opts.id.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Se(()=>this.opts.payload.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Se(()=>this.opts.disabled.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Oc(()=>(I(this,Jr,!0),l(this,Un).call(this,this.opts.ref.current),()=>{const o=l(this,ht).call(this),i=l(this,Yt);i&&(this.tether?this.tether.registry.unregister(i):o?.unregisterTrigger(i)),I(this,Yt,null),I(this,Jr,!1)}))}static create(e){return e.tether.current?new ja(e,null,e.tether.current.state):new ja(e,jc.get(),null)}get props(){return w(l(this,ss))}set props(e){N(l(this,ss),e)}};gr=new WeakMap,Pt=new WeakMap,mr=new WeakMap,Jr=new WeakMap,Yt=new WeakMap,ht=new WeakMap,wt=new WeakMap,Un=new WeakMap,Qr=new WeakMap,La=new WeakMap,Ba=new WeakMap,za=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,Ka=new WeakMap,ss=new WeakMap;let dc=ja;var as,ls;const vu=class vu{constructor(e,n){_(this,"opts");_(this,"root");_(this,"attachment");_(this,"onInteractOutside",e=>{if(Rt(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});_(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()});_(this,"onOpenAutoFocus",e=>{e.preventDefault()});_(this,"onCloseAutoFocus",e=>{e.preventDefault()});C(this,as,U(()=>({open:this.root.opts.open.current})));C(this,ls,U(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Za(this.root.disabled),...zd(this.root.contentPresence.transitionStatus),style:{outline:"none"},[$f.content]:"",...this.attachment})));_(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=e,this.root=n,this.attachment=pt(this.opts.ref,r=>this.root.contentNode=r),new rv({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const r=[],o=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==o&&r.push(i.node);return r},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}static create(e){return new vu(e,jc.get())}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return w(l(this,as))}set snippetProps(e){N(l(this,as),e)}get props(){return w(l(this,ls))}set props(e){N(l(this,ls),e)}};as=new WeakMap,ls=new WeakMap;let fc=vu;function nh(t,e){if(new.target)return Ae({component:nh,...t});Oe(e,!0);let n=h(e,"open",15,!1),r=h(e,"triggerId",15,null),o=h(e,"onOpenChange",7,ge),i=h(e,"onOpenChangeComplete",7,ge),s=h(e,"disabled",7),a=h(e,"delayDuration",7),c=h(e,"disableCloseOnTriggerClick",7),u=h(e,"disableHoverableContent",7),d=h(e,"ignoreNonKeyboardFocus",7),f=h(e,"tether",7),g=h(e,"children",7);const b=uc.create({open:G(()=>n(),m=>{n(m),o()(m)}),triggerId:G(()=>r(),m=>{r(m)}),delayDuration:G(()=>a()),disableCloseOnTriggerClick:G(()=>c()),disableHoverableContent:G(()=>u()),ignoreNonKeyboardFocus:G(()=>d()),disabled:G(()=>s()),onOpenChangeComplete:G(()=>i()),tether:G(()=>f())});var v={get open(){return n()},set open(m=!1){n(m),p()},get triggerId(){return r()},set triggerId(m=null){r(m),p()},get onOpenChange(){return o()},set onOpenChange(m=ge){o(m),p()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(m=ge){i(m),p()},get disabled(){return s()},set disabled(m){s(m),p()},get delayDuration(){return a()},set delayDuration(m){a(m),p()},get disableCloseOnTriggerClick(){return c()},set disableCloseOnTriggerClick(m){c(m),p()},get disableHoverableContent(){return u()},set disableHoverableContent(m){u(m),p()},get ignoreNonKeyboardFocus(){return d()},set ignoreNonKeyboardFocus(m){d(m),p()},get tether(){return f()},set tether(m){f(m),p()},get children(){return g()},set children(m){g(m),p()},$set:Te,$on:(m,E)=>Ee(e,m,E)};return Hf(t,{tooltip:!0,children:(m,E)=>{var T=ue(),O=se(T);me(O,()=>g()??we,()=>({open:b.opts.open.current,triggerId:b.activeTriggerId,payload:b.activePayload})),Q(m,T)},$$slots:{default:!0}}),_e(v)}var av=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),ad=je("<div><div><!></div></div>");function rh(t,e){const n=kc();if(new.target)return Ae({component:rh,...t});Oe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>qs(n)),s=h(e,"ref",15,null),a=h(e,"side",7,"top"),c=h(e,"sideOffset",7,0),u=h(e,"align",7,"center"),d=h(e,"avoidCollisions",7,!0),f=h(e,"arrowPadding",7,0),g=h(e,"sticky",7,"partial"),b=h(e,"strategy",7),v=h(e,"hideWhenDetached",7,!1),m=h(e,"customAnchor",7),E=h(e,"collisionPadding",7,0),T=h(e,"onInteractOutside",7,ge),O=h(e,"onEscapeKeydown",7,ge),A=h(e,"forceMount",7,!1),y=h(e,"style",7),x=xr(e,av);const k=fc.create({id:G(()=>i()),ref:G(()=>s(),B=>s(B)),onInteractOutside:G(()=>T()),onEscapeKeydown:G(()=>O())}),R=U(()=>({side:a(),sideOffset:c(),align:u(),avoidCollisions:d(),arrowPadding:f(),sticky:g(),hideWhenDetached:v(),collisionPadding:E(),strategy:b(),customAnchor:m()??k.root.triggerNode})),M=U(()=>Zt(x,w(R),k.props));var H={get children(){return r()},set children(B){r(B),p()},get child(){return o()},set child(B){o(B),p()},get id(){return i()},set id(B=qs(n)){i(B),p()},get ref(){return s()},set ref(B=null){s(B),p()},get side(){return a()},set side(B="top"){a(B),p()},get sideOffset(){return c()},set sideOffset(B=0){c(B),p()},get align(){return u()},set align(B="center"){u(B),p()},get avoidCollisions(){return d()},set avoidCollisions(B=!0){d(B),p()},get arrowPadding(){return f()},set arrowPadding(B=0){f(B),p()},get sticky(){return g()},set sticky(B="partial"){g(B),p()},get strategy(){return b()},set strategy(B){b(B),p()},get hideWhenDetached(){return v()},set hideWhenDetached(B=!1){v(B),p()},get customAnchor(){return m()},set customAnchor(B){m(B),p()},get collisionPadding(){return E()},set collisionPadding(B=0){E(B),p()},get onInteractOutside(){return T()},set onInteractOutside(B=ge){T(B),p()},get onEscapeKeydown(){return O()},set onEscapeKeydown(B=ge){O(B),p()},get forceMount(){return A()},set forceMount(B=!1){A(B),p()},get style(){return y()},set style(B){y(B),p()},$set:Te,$on:(B,Z)=>Ee(e,B,Z)},K=ue(),ee=se(K);{var W=B=>{{const Z=(ie,ne)=>{let fe=()=>(ne?.()).props,P=()=>(ne?.()).wrapperProps;const de=U(()=>Zt(P(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),xe=U(()=>Zt(fe(),{style:od("tooltip")},{style:y()}));var V=ue(),ze=se(V);{var he=ve=>{var S=ue(),ae=se(S);{let Ge=U(()=>({props:w(xe),wrapperProps:w(de),...k.snippetProps}));me(ae,o,()=>w(Ge))}Q(ve,S)},be=ve=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=Ke(S);Jt(ae,()=>({...w(xe)}));var Ge=Ke(ae);me(Ge,()=>r()??we),Fe(ae),Fe(S),Q(ve,S)};Ie(ze,ve=>{o()?ve(he):ve(be,-1)})}Q(ie,V)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");Yf(B,ko(()=>w(M),()=>k.popperProps,{get enabled(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:Z,$$slots:{popper:!0}}))}},Y=B=>{{const Z=(ie,ne)=>{let fe=()=>(ne?.()).props,P=()=>(ne?.()).wrapperProps;const de=U(()=>Zt(P(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),xe=U(()=>Zt(fe(),{style:od("tooltip")},{style:y()}));var V=ue(),ze=se(V);{var he=ve=>{var S=ue(),ae=se(S);{let Ge=U(()=>({props:w(xe),wrapperProps:w(de),...k.snippetProps}));me(ae,o,()=>w(Ge))}Q(ve,S)},be=ve=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=Ke(S);Jt(ae,()=>({...w(xe)}));var Ge=Ke(ae);me(Ge,()=>r()??we),Fe(ae),Fe(S),Q(ve,S)};Ie(ze,ve=>{o()?ve(he):ve(be,-1)})}Q(ie,V)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");qf(B,ko(()=>w(M),()=>k.popperProps,{get open(){return k.root.opts.open.current},get id(){return i()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return k.opts.ref},tooltip:!0,get shouldRender(){return k.shouldRender},get contentPointerEvents(){return w(re)},popper:Z,$$slots:{popper:!0}}))}};Ie(ee,B=>{A()?B(W):A()||B(Y,1)})}return Q(t,K),_e(H)}var lv=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),cv=je("<button><!></button>");function oh(t,e){const n=kc();if(new.target)return Ae({component:oh,...t});Oe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>qs(n)),s=h(e,"disabled",7,!1),a=h(e,"payload",7),c=h(e,"tether",7),u=h(e,"type",7,"button"),d=h(e,"tabindex",7,0),f=h(e,"ref",15,null),g=xr(e,lv);const b=dc.create({id:G(()=>i()),disabled:G(()=>s()??!1),tabindex:G(()=>d()??0),payload:G(()=>a()),tether:G(()=>c()),ref:G(()=>f(),y=>f(y))}),v=U(()=>Zt(g,b.props,{type:u()}));var m={get children(){return r()},set children(y){r(y),p()},get child(){return o()},set child(y){o(y),p()},get id(){return i()},set id(y=qs(n)){i(y),p()},get disabled(){return s()},set disabled(y=!1){s(y),p()},get payload(){return a()},set payload(y){a(y),p()},get tether(){return c()},set tether(y){c(y),p()},get type(){return u()},set type(y="button"){u(y),p()},get tabindex(){return d()},set tabindex(y=0){d(y),p()},get ref(){return f()},set ref(y=null){f(y),p()},$set:Te,$on:(y,x)=>Ee(e,y,x)},E=ue(),T=se(E);{var O=y=>{var x=ue(),k=se(x);me(k,o,()=>({props:w(v)})),Q(y,x)},A=y=>{var x=cv();Jt(x,()=>({...w(v)}));var k=Ke(x);me(k,()=>r()??we),Fe(x),Q(y,x)};Ie(T,y=>{o()?y(O):y(A,-1)})}return Q(t,E),_e(m)}function ih(t,e){if(new.target)return Ae({component:ih,...t});Oe(e,!0);let n=h(e,"children",7),r=h(e,"delayDuration",7,700),o=h(e,"disableCloseOnTriggerClick",7,!1),i=h(e,"disableHoverableContent",7,!1),s=h(e,"disabled",7,!1),a=h(e,"ignoreNonKeyboardFocus",7,!1),c=h(e,"skipDelayDuration",7,300);cc.create({delayDuration:G(()=>r()),disableCloseOnTriggerClick:G(()=>o()),disableHoverableContent:G(()=>i()),disabled:G(()=>s()),ignoreNonKeyboardFocus:G(()=>a()),skipDelayDuration:G(()=>c())});var u={get children(){return n()},set children(g){n(g),p()},get delayDuration(){return r()},set delayDuration(g=700){r(g),p()},get disableCloseOnTriggerClick(){return o()},set disableCloseOnTriggerClick(g=!1){o(g),p()},get disableHoverableContent(){return i()},set disableHoverableContent(g=!1){i(g),p()},get disabled(){return s()},set disabled(g=!1){s(g),p()},get ignoreNonKeyboardFocus(){return a()},set ignoreNonKeyboardFocus(g=!1){a(g),p()},get skipDelayDuration(){return c()},set skipDelayDuration(g=300){c(g),p()},$set:Te,$on:(g,b)=>Ee(e,g,b)},d=ue(),f=se(d);return me(f,()=>n()??we),Q(t,d),_e(u)}var uv=je("<span><!></span>");function sh(t,e){if(new.target)return Ae({component:sh,...t});Oe(e,!0);let n=h(e,"triggerProps",7),r=h(e,"children",7);const o=["button","a[href]",'input:not([type="hidden"])',"select","textarea",'[role="button"]','[tabindex]:not([tabindex="-1"])'].join(","),i=["aria-describedby","data-state","data-delay-duration","data-tooltip-trigger"];let s=oe(null),a=oe(!1),c=oe(!1),u=[];const d=new WeakMap,f=U(()=>{const{disabled:y,type:x,tabindex:k,class:R,"aria-describedby":M,"data-state":H,"data-disabled":K,"data-delay-duration":ee,"data-tooltip-trigger":W,...Y}=n();return Y});function g(y,x){let k=d.get(y);return k||(k=new Map,d.set(y,k)),k.has(x)||k.set(x,y.getAttribute(x)),k.get(x)??null}function b(y){for(const x of i){const k=g(y,x);x==="data-state"&&k!==null||(k===null?y.removeAttribute(x):y.setAttribute(x,k))}}function v(y){for(const x of i){const k=g(y,x);if(x==="data-state"&&k!==null)continue;const R=n()[x];if(R==null||R===!1){k===null?y.removeAttribute(x):y.setAttribute(x,k);continue}const M=R===!0?"":String(R);y.setAttribute(x,x==="aria-describedby"&&k?`${k} ${M}`:M)}}Le(()=>{if(!w(s))return;N(c,w(s).closest('[role="menu"], [role="menuitem"]')!==null);const y=Array.from(w(s).querySelectorAll(o));for(const x of u)y.includes(x)||b(x);u=y,N(a,y.length>0);for(const x of y)v(x)});function m(y){!w(a)||y.target===w(s)||n().onfocus?.(y)}function E(y){!w(a)||w(s)?.contains(y.relatedTarget)||n().onblur?.(y)}var T={get triggerProps(){return n()},set triggerProps(y){n(y),p()},get children(){return r()},set children(y){r(y),p()},$set:Te,$on:(y,x)=>Ee(e,y,x)},O=uv();Jt(O,()=>({...w(f),class:n().class,role:w(a)||w(c)?void 0:"button",tabindex:w(a)?-1:w(c)?void 0:n().tabindex,"aria-disabled":w(a)||w(c)?void 0:n().disabled||void 0,"aria-describedby":w(a)?void 0:n()["aria-describedby"],"data-state":w(a)?void 0:n()["data-state"],"data-disabled":w(a)?void 0:n()["data-disabled"],"data-delay-duration":w(a)?void 0:n()["data-delay-duration"],"data-tooltip-trigger":w(a)?void 0:n()["data-tooltip-trigger"],onfocusin:m,onfocusout:E}));var A=Ke(O);return me(A,()=>r()??we),Fe(O),Td(O,y=>N(s,y),()=>w(s)),Q(t,O),_e(T)}var dv=je("<div></div>"),fv=je("<div><div><!> <!></div></div>"),hv=je("<!> <!>",1);function ah(t,e){const n=kc();if(new.target)return Ae({component:ah,...t});Oe(e,!0);let r=h(e,"content",7,""),o=h(e,"side",7,"top"),i=h(e,"align",7,"center"),s=h(e,"sideOffset",7,4),a=h(e,"alignOffset",7,0),c=h(e,"delayDuration",7,0),u=h(e,"disableHoverableContent",7,!0),d=h(e,"disableCloseOnTriggerClick",7,!1),f=h(e,"disabled",7,!1),g=h(e,"open",15,!1),b=h(e,"onOpenChange",7),v=h(e,"portalTarget",7),m=h(e,"class",7,""),E=h(e,"contentClass",7,""),T=h(e,"arrowClass",7,""),O=h(e,"showArrow",7,!1),A=h(e,"variant",7,"default"),y=h(e,"size",7,"default"),x=h(e,"children",7),k=h(e,"trigger",7),R=h(e,"onclick",7),M=oe(null);const H=sv(),K={default:"surface-inverse",secondary:"bg-secondary text-secondary-foreground border border-border",destructive:"bg-danger text-danger-background border border-danger",outline:"bg-transparent text-foreground ring-1 ring-inset ring-border"},ee={sm:"type-caption px-2 py-1",default:"type-caption px-2 py-1",lg:"type-title px-4 py-2"},W=U(()=>Kn("tooltip-motion overlay-surface z-(--layer-tooltip) w-fit max-w-xs whitespace-pre-wrap text-balance",K[A()],ee[y()],E()));function Y(P){g(P),b()?.(P)}function B(P){d()||P instanceof KeyboardEvent&&P.key!=="Enter"&&P.key!==" "||H.close()}Le(()=>{f()&&g()&&Y(!1)});let Z;Le(()=>{const P=f(),de=Z===!0&&!P;Z=P,de&&Ao(re)});function re(){if(!r()||g())return;const P=document.activeElement,de=w(M);!de?.id||!(P instanceof HTMLElement)||!de.contains(P)||P.matches(":focus-visible")&&H.open(de.id)}var ie={get content(){return r()},set content(P=""){r(P),p()},get side(){return o()},set side(P="top"){o(P),p()},get align(){return i()},set align(P="center"){i(P),p()},get sideOffset(){return s()},set sideOffset(P=4){s(P),p()},get alignOffset(){return a()},set alignOffset(P=0){a(P),p()},get delayDuration(){return c()},set delayDuration(P=0){c(P),p()},get disableHoverableContent(){return u()},set disableHoverableContent(P=!0){u(P),p()},get disableCloseOnTriggerClick(){return d()},set disableCloseOnTriggerClick(P=!1){d(P),p()},get disabled(){return f()},set disabled(P=!1){f(P),p()},get open(){return g()},set open(P=!1){g(P),p()},get onOpenChange(){return b()},set onOpenChange(P){b(P),p()},get portalTarget(){return v()},set portalTarget(P){v(P),p()},get class(){return m()},set class(P=""){m(P),p()},get contentClass(){return E()},set contentClass(P=""){E(P),p()},get arrowClass(){return T()},set arrowClass(P=""){T(P),p()},get showArrow(){return O()},set showArrow(P=!1){O(P),p()},get variant(){return A()},set variant(P="default"){A(P),p()},get size(){return y()},set size(P="default"){y(P),p()},get children(){return x()},set children(P){x(P),p()},get trigger(){return k()},set trigger(P){k(P),p()},get onclick(){return R()},set onclick(P){R(P),p()},$set:Te,$on:(P,de)=>Ee(e,P,de)},ne=ue(),fe=se(ne);return co(fe,()=>ih,(P,de)=>{de(P,{get delayDuration(){return c()},children:(xe,V)=>{var ze=ue(),he=se(ze);co(he,()=>nh,(be,ve)=>{ve(be,{onOpenChange:Y,get delayDuration(){return c()},get disableHoverableContent(){return u()},get disableCloseOnTriggerClick(){return d()},get tether(){return H},get open(){return g()},set open(S){g(S)},children:(S,ae)=>{var Ge=hv(),j=se(Ge);{const qe=(Ye,Ve)=>{let Re=()=>(Ve?.()).props;sh(Ye,{get triggerProps(){return Re()},children:(Ne,nt)=>{var st=ue(),xn=se(st);{var Xn=at=>{var At=ue(),nn=se(At);me(nn,()=>k()??we),Q(at,At)},kt=at=>{var At=ue(),nn=se(At);me(nn,()=>x()??we),Q(at,At)};Ie(xn,at=>{k()?at(Xn):x()&&at(kt,1)})}Q(Ne,st)},$$slots:{default:!0}})};let Lt=U(()=>Kn("inline-flex",m()));co(j,()=>oh,(Ye,Ve)=>{Ve(Ye,{get class(){return w(Lt)},get disabled(){return f()},get onclick(){return R()},onpointerdown:B,onkeydown:B,"data-tooltip-trigger":!0,get ref(){return w(M)},set ref(Re){N(M,Re,!0)},child:qe,$$slots:{child:!0}})})}var Me=mn(j,2);{var it=qe=>{var Lt=ue(),Ye=se(Lt);co(Ye,()=>Xd,(Ve,Re)=>{Re(Ve,{get to(){return v()},children:(Ne,nt)=>{var st=ue(),xn=se(st);{const Xn=(kt,at)=>{let At=()=>(at?.()).props,nn=()=>(at?.()).wrapperProps;var Je=fv();Jt(Je,()=>({...nn()}));var gt=Ke(Je);Jt(gt,()=>({...At(),id:n}));var Zn=Ke(gt);{var vs=Bt=>{var Sn=Ad();vr(()=>Pl(Sn,r())),Q(Bt,Sn)},sl=Bt=>{var Sn=ue(),ll=se(Sn);me(ll,()=>r()??we),Q(Bt,Sn)};Ie(Zn,Bt=>{typeof r()=="string"?Bt(vs):r()&&typeof r()=="function"&&Bt(sl,1)})}var al=mn(Zn,2);{var ep=Bt=>{var Sn=dv();vr(ll=>yo(Sn,1,ll),[()=>Ks(Kn("absolute bg-border",o()==="top"&&"w-px h-1.5 -bottom-1.5",o()==="bottom"&&"w-px h-1.5 -top-1.5",(o()==="top"||o()==="bottom")&&i()==="center"&&"left-1/2 -translate-x-1/2",(o()==="top"||o()==="bottom")&&i()==="start"&&"left-1.5",(o()==="top"||o()==="bottom")&&i()==="end"&&"right-1.5",o()==="left"&&"h-px w-1.5 -right-1.5",o()==="right"&&"h-px w-1.5 -left-1.5",(o()==="left"||o()==="right")&&i()==="center"&&"top-1/2 -translate-y-1/2",(o()==="left"||o()==="right")&&i()==="start"&&"top-1.5",(o()==="left"||o()==="right")&&i()==="end"&&"bottom-1.5",T()))]),Q(Bt,Sn)};Ie(al,Bt=>{O()&&Bt(ep)})}Fe(gt),Fe(Je),Q(kt,Je)};co(xn,()=>rh,(kt,at)=>{at(kt,{get id(){return n},role:"tooltip",get side(){return o()},get align(){return i()},get sideOffset(){return s()},get alignOffset(){return a()},get class(){return w(W)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},child:Xn,$$slots:{child:!0}})})}Q(Ne,st)},$$slots:{default:!0}})}),Q(qe,Lt)};Ie(Me,qe=>{r()&&!f()&&qe(it)})}Q(S,Ge)},$$slots:{default:!0}})}),Q(xe,ze)},$$slots:{default:!0}})}),Q(t,ne),_e(ie)}const rr=typeof navigator<"u"&&navigator.platform.toUpperCase().indexOf("MAC")>=0;function xx(t){return Array.isArray(t)?t.map(ld).join(" "):t.split("+").map(e=>ld(e.trim())).join(rr?"":"+")}function ld(t){const e=t.toLowerCase();return e==="cmd"||e==="meta"||e==="mod"?rr?"⌘":"Ctrl":e==="ctrl"||e==="control"?rr?"⌃":"Ctrl":e==="alt"||e==="option"?rr?"⌥":"Alt":e==="shift"?rr?"⇧":"Shift":e==="enter"||e==="return"?"↵":e==="esc"||e==="escape"?"Esc":e==="tab"?"⇥":e==="backspace"?"⌫":e==="delete"?"⌦":e==="space"?"␣":e==="up"||e==="arrowup"?"↑":e==="down"||e==="arrowdown"?"↓":e==="left"||e==="arrowleft"?"←":e==="right"||e==="arrowright"?"→":e==="pageup"?"PgUp":e==="pagedown"?"PgDn":t==="["?"[":t==="]"?"]":t.toUpperCase()}function We(t,e){return{key:Ed[t],get label(){return e()}}}const De={NEW_TAB:We("navigation.new-tab",()=>z.ui_shortcuts_newTab_label()),CLOSE_TAB:We("navigation.close-tab",()=>z.workspace_shortcuts_closePanelTab_description()),CLOSE_WORKSPACE_TAB:We("navigation.close-space-tab",()=>z.workspace_shortcuts_closeSpaceTab_description()),GO_BACK:{key:"mod+←",get label(){return z.ui_shortcuts_goBack_label()}},GO_FORWARD:{key:"mod+→",get label(){return z.ui_shortcuts_goForward_label()}},MOVE_SPACE_TAB_LEFT:We("navigation.move-space-tab-left",()=>z.ui_shortcuts_moveSpaceTabLeft_label()),MOVE_SPACE_TAB_RIGHT:We("navigation.move-space-tab-right",()=>z.ui_shortcuts_moveSpaceTabRight_label()),NEW_AGENT:We("workspace.new-agent",()=>z.ui_shortcuts_newAgent_label()),NEW_NOTE:We("workspace.new-note",()=>z.layout_panelEmptyState_newItem_tooltip({label:z.layout_panelEmptyState_note_label()})),NEW_TERMINAL:We("workspace.new-terminal",()=>z.layout_panelEmptyState_newItem_tooltip({label:z.layout_panelEmptyState_terminal_label()})),NEW_BROWSER:We("workspace.new-browser",()=>z.layout_panelEmptyState_newItem_tooltip({label:z.layout_panelEmptyState_browser_label()})),SEND:We("chat.send",()=>z.ui_shortcuts_sendMessage_label()),TOGGLE_TASK_LIST:We("editor.toggle-task-list",()=>z.ui_shortcuts_toggleTaskList_label()),CONFIRM:{key:"enter",get label(){return z.ui_shortcuts_confirm_label()}},TOGGLE_SIDEBAR:We("panel.toggle-sidebar",()=>z.ui_shortcuts_toggleSidebar_label()),PREVIOUS_PANE:We("panel.previous-pane",()=>z.ui_shortcuts_prevTab_label()),NEXT_PANE:We("panel.next-pane",()=>z.ui_shortcuts_nextTab_label()),FOCUS_PREVIOUS_COLUMN:We("panel.focus-previous-column",()=>z.ui_shortcuts_prevPanel_label()),FOCUS_NEXT_COLUMN:We("panel.focus-next-column",()=>z.ui_shortcuts_nextPanel_label()),MOVE_PANE_PREVIOUS_COLUMN:We("panel.move-pane-previous-column",()=>z.ui_shortcuts_movePanePreviousColumn_label()),MOVE_PANE_NEXT_COLUMN:We("panel.move-pane-next-column",()=>z.ui_shortcuts_movePaneNextColumn_label()),CREATE_COLUMN_RIGHT:We("panel.create-column-right",()=>z.ui_shortcuts_splitPanelHorizontal_label())};function Sx(t,e=rr){const n=De[t].key.toLowerCase().split("+");return{key:n.at(-1)??"",meta:n.includes("meta")||n.includes("cmd")||e&&n.includes("mod"),ctrl:n.includes("ctrl")||!e&&n.includes("mod"),shift:n.includes("shift"),alt:n.includes("alt")||n.includes("option")}}function pv(){return rr}function J(t,e,n){return{id:t,key:Ed[t],get label(){return e()},...n&&{contexts:n}}}const lh={global:{get title(){return z.ui_shortcuts_globalCategory_title()},shortcuts:[J("global.command-palette",()=>z.ui_shortcuts_commandPalette_label(),["global"]),J("global.settings",()=>z.ui_shortcuts_settings_label(),["global"]),J("global.keyboard-shortcuts",()=>z.ui_shortcuts_keyboardShortcuts_label(),["global"]),J("global.command-palette-alt",()=>z.ui_shortcuts_commandPalette_label(),["global"]),J("global.toggle-spaces",()=>z.home_navigation_description(),["global"]),J("global.new-space",()=>z.workspace_page_newSpace_title(),["global"]),J("global.search",()=>z.ui_shortcuts_search_label(),["global"]),J("global.next-space",()=>z.ui_shortcuts_nextSpace_label(),["global"]),J("global.previous-space",()=>z.ui_shortcuts_prevSpace_label(),["global"]),J("global.next-space-alt",()=>z.ui_shortcuts_nextSpace_label(),["global"]),J("global.previous-space-alt",()=>z.ui_shortcuts_prevSpace_label(),["global"])]},navigation:{get title(){return z.ui_shortcuts_navigationCategory_title()},shortcuts:[J("navigation.go-to-tab",()=>z.ui_shortcuts_goToTab_label(),["global"]),J("navigation.go-to-device",()=>z.machineRail_nav_ariaLabel(),["global"]),J("navigation.new-tab",()=>De.NEW_TAB.label,["global"]),J("navigation.close-tab",()=>De.CLOSE_TAB.label,["global"]),J("navigation.close-space-tab",()=>De.CLOSE_WORKSPACE_TAB.label,["global"]),J("navigation.reopen-tab",()=>z.ui_shortcuts_reopenTab_label(),["global"]),J("navigation.move-space-tab-left",()=>De.MOVE_SPACE_TAB_LEFT.label,["global"]),J("navigation.move-space-tab-right",()=>De.MOVE_SPACE_TAB_RIGHT.label,["global"]),J("workspace.new-agent",()=>De.NEW_AGENT.label,["global"]),J("workspace.new-note",()=>De.NEW_NOTE.label,["global"]),J("workspace.new-terminal",()=>De.NEW_TERMINAL.label,["global"]),J("workspace.new-browser",()=>De.NEW_BROWSER.label,["global"]),J("workspace.set-aside",()=>z.home_setAside_shortcut_label())]},chat:{get title(){return z.ui_shortcuts_chatCategory_title()},shortcuts:[J("chat.send",()=>De.SEND.label,["chat"]),J("chat.force-send",()=>z.ui_shortcuts_forceSend_label(),["chat"]),J("chat.new-line",()=>z.ui_shortcuts_newLine_label(),["chat"]),J("chat.focus-input",()=>z.ui_shortcuts_focusInput_label(),["chat"]),J("chat.mention-context",()=>z.ui_shortcuts_mentionContext_label(),["chat"])]},editor:{get title(){return z.ui_shortcuts_editorCategory_title()},shortcuts:[J("editor.go-to-line",()=>z.ui_shortcuts_goToLine_label(),["editor"]),J("editor.save",()=>z.ui_shortcuts_save_label(),["editor"]),J("editor.undo",()=>z.ui_shortcuts_undo_label(),["editor"]),J("editor.redo",()=>z.ui_shortcuts_redo_label(),["editor"]),J("editor.toggle-task-list",()=>De.TOGGLE_TASK_LIST.label,["editor"]),J("editor.toggle-word-wrap",()=>z.ui_shortcuts_toggleWordWrap_label(),["editor"]),J("editor.copy",()=>z.ui_shortcuts_copy_label(),["editor"]),J("editor.select-all",()=>z.ui_shortcuts_selectAll_label(),["editor"])]},panel:{get title(){return z.ui_shortcuts_panelCategory_title()},shortcuts:[J("panel.toggle-sidebar",()=>De.TOGGLE_SIDEBAR.label,["panel"]),J("panel.create-column-right",()=>De.CREATE_COLUMN_RIGHT.label,["global"]),J("panel.focus-next-column",()=>De.FOCUS_NEXT_COLUMN.label,["global"]),J("panel.maximize",()=>z.ui_shortcuts_maximizePanel_label(),["global"]),J("panel.focus-previous-column",()=>De.FOCUS_PREVIOUS_COLUMN.label,["global"]),J("panel.next-pane",()=>De.NEXT_PANE.label,["global"]),J("panel.previous-pane",()=>De.PREVIOUS_PANE.label,["global"]),J("panel.move-pane-next-column",()=>De.MOVE_PANE_NEXT_COLUMN.label,["global"]),J("panel.move-pane-previous-column",()=>De.MOVE_PANE_PREVIOUS_COLUMN.label,["global"]),J("panel.copy-browser-url",()=>z.ui_shortcuts_copyBrowserUrl_label(),["panel"])]},leader:{get title(){return z.ui_shortcuts_leaderCategory_title()},shortcuts:[J("leader.navigate-panels",()=>z.ui_shortcuts_navigatePanels_label(),["panel"]),J("leader.resize-panels",()=>z.ui_shortcuts_resizePanels_label(),["panel"]),J("leader.split-right",()=>z.ui_shortcuts_splitRight_label(),["panel"]),J("leader.toggle-zoom",()=>z.ui_shortcuts_toggleZoom_label(),["panel"]),J("leader.close-panel",()=>z.ui_shortcuts_closePanel_label(),["panel"]),J("leader.next-previous-panel",()=>z.ui_shortcuts_nextPrevPanel_label(),["panel"]),J("leader.equalize-sizes",()=>z.ui_shortcuts_equalizeSizes_label(),["panel"]),J("leader.jump-to-panel",()=>z.ui_shortcuts_jumpToPanel_label(),["panel"]),J("leader.cycle-layout",()=>z.ui_shortcuts_cycleLayout_label(),["panel"])]},dock:{get title(){return z.ui_shortcuts_dockCategory_title()},shortcuts:[J("dock.focus",()=>z.ui_shortcuts_dockFocus_label(),["global"]),J("dock.capture",()=>z.ui_shortcuts_dockCapture_label(),["global"]),J("dock.record",()=>z.ui_shortcuts_dockRecord_label(),["global"])]}},kx=Object.entries(lh).flatMap(([t,e])=>e.shortcuts.map(n=>({id:n.id,category:t,defaultKey:n.key,key:n.key,get label(){return n.label},contexts:n.contexts})));function Ax(t={},e=!1){return Object.fromEntries(Object.entries(lh).map(([n,r])=>[n,{title:r.title,shortcuts:r.shortcuts.filter(o=>e||o.id!=="navigation.go-to-device").map(o=>({...o,key:wp(o.id,t)}))}]))}var gv=je('<kbd data-slot="shortcut-chip" style="font-family: var(--font-ui);"><!></kbd>');function ch(t,e){if(new.target)return Ae({component:ch,...t});Oe(e,!0);let n=h(e,"class",7),r=h(e,"children",7);var o={get class(){return n()},set class(a){n(a),p()},get children(){return r()},set children(a){r(a),p()},$set:Te,$on:(a,c)=>Ee(e,a,c)},i=gv(),s=Ke(i);return me(s,()=>r()??we),Fe(i),vr(a=>yo(i,1,a),[()=>Ks(Kn("type-caption shrink-0 font-normal leading-none text-shortcut-foreground",n()))]),Q(t,i),_e(o)}const bl=(t,e=we,n=we)=>{var r=bv(),o=se(r),i=gp(o,!0),s=mn(o,2);{var a=c=>{var u=mv();bp(u,23,n,(d,f)=>`key-${f}-${d}`,(d,f)=>{ch(d,{children:(g,b)=>{mp();var v=Ad();vr(()=>Pl(v,w(f))),Q(g,v)},$$slots:{default:!0}})}),Fe(u),Q(c,u)};Ie(s,c=>{n().length>0&&c(a)})}vr(()=>Pl(i,e())),Q(t,r)};var mv=je('<div class="flex items-center gap-1 text-muted-foreground"></div>'),bv=je('<span class="type-caption"> </span> <!>',1),vv=je('<div class="flex items-center justify-between gap-3"><!></div> <div class="flex items-center justify-between gap-3"><!></div>',1);function uh(t,e){if(new.target)return Ae({component:uh,...t});Oe(e,!0);let n=h(e,"label",7),r=h(e,"shortcut",7),o=h(e,"secondary",7),i=h(e,"side",7,"top"),s=h(e,"align",7,"center"),a=h(e,"sideOffset",7,4),c=h(e,"delayDuration",7,500),u=h(e,"disabled",7,!1),d=h(e,"portalTarget",7),f=h(e,"class",7,""),g=h(e,"contentClass",7,""),b=h(e,"children",7),v=h(e,"trigger",7);const m=pv();function E(x){const k={mod:m?"⌘":"Ctrl",cmd:m?"⌘":"Ctrl",command:m?"⌘":"Ctrl",ctrl:m?"⌃":"Ctrl",control:m?"⌃":"Ctrl",alt:m?"⌥":"Alt",option:m?"⌥":"Alt",shift:m?"⇧":"Shift",enter:"↵",return:"↵",delete:"⌦",backspace:"⌫",escape:"Esc",esc:"Esc",tab:"⇥",space:"␣",up:"↑",down:"↓",left:"←",right:"→",arrowup:"↑",arrowdown:"↓",arrowleft:"←",arrowright:"→",pageup:"PgUp",pagedown:"PgDn",home:"Home",end:"End"},R=x.toLowerCase();return k[R]||x.toUpperCase()}function T(x){return Array.isArray(x)?x.map(E):x.split("+").map(k=>E(k.trim()))}const O=U(()=>r()?T(r()):[]),A=U(()=>o()?T(o().shortcut):[]);var y={get label(){return n()},set label(x){n(x),p()},get shortcut(){return r()},set shortcut(x){r(x),p()},get secondary(){return o()},set secondary(x){o(x),p()},get side(){return i()},set side(x="top"){i(x),p()},get align(){return s()},set align(x="center"){s(x),p()},get sideOffset(){return a()},set sideOffset(x=4){a(x),p()},get delayDuration(){return c()},set delayDuration(x=500){c(x),p()},get disabled(){return u()},set disabled(x=!1){u(x),p()},get portalTarget(){return d()},set portalTarget(x){d(x),p()},get class(){return f()},set class(x=""){f(x),p()},get contentClass(){return g()},set contentClass(x=""){g(x),p()},get children(){return b()},set children(x){b(x),p()},get trigger(){return v()},set trigger(x){v(x),p()},$set:Te,$on:(x,k)=>Ee(e,x,k)};{const x=M=>{var H=ue(),K=se(H);{var ee=Y=>{var B=ue(),Z=se(B);me(Z,()=>b()??we),Q(Y,B)},W=Y=>{x()?.(Y)};Ie(K,Y=>{b()?Y(ee):x()&&Y(W,1)})}Q(M,H)},k=M=>{var H=ue(),K=se(H);{var ee=Y=>{var B=vv(),Z=se(B),re=Ke(Z);bl(re,n,()=>w(O)),Fe(Z);var ie=mn(Z,2),ne=Ke(ie);bl(ne,()=>o().label,()=>w(A)),Fe(ie),Q(Y,B)},W=Y=>{bl(Y,n,()=>w(O))};Ie(K,Y=>{o()?Y(ee):Y(W,-1)})}Q(M,H)};let R=U(()=>Kn(o()?"flex flex-col items-stretch gap-1.5":"flex items-center gap-3",g()));ah(t,{get side(){return i()},get align(){return s()},get sideOffset(){return a()},get delayDuration(){return c()},get disabled(){return u()},get portalTarget(){return d()},get class(){return f()},get contentClass(){return w(R)},trigger:x,content:k,$$slots:{trigger:!0,content:!0}})}return _e(y)}const yv=D({provider:te("github"),protocol:te("https"),host:te("github.com"),managedHelperEnabled:ke(),setting:te("sourceControl.github.exposeGitCredentialToChildren")}),Tx=D({defaultProviderId:L().nullable(),defaultModelId:L().nullable(),enabledProviderIds:et(L().min(1)).optional(),repositoryConnections:et(D({provider:tt(["github","gitlab"]),host:L(),configured:ke()})),gitCredentialPolicy:yv}),wv=D({resource:tt(["git","ai"]),reason:tt(["missing","rejected","insufficient-scope"]),providerId:L().nullable(),host:L().nullable(),recovery:D({actor:te("host-owner"),action:tt(["check-git-authorization","check-ai-authorization"]),setting:te("sourceControl.github.exposeGitCredentialToChildren").optional()})});function Cv(t){const e=wv.safeParse(t);if(!e.success)return null;const{resource:n,reason:r,recovery:o}=e.data,i=n==="ai"?"AI":"Git",s=r==="missing"?z.hostExecution_missingAuthorization_description({resource:i}):r==="insufficient-scope"?z.hostExecution_insufficientScope_description({resource:i}):z.hostExecution_rejectedAuthorization_description({resource:i});return o.setting?`${s} ${z.hostExecution_disabledHelper_description({setting:o.setting})}`:s}function dh(t,e){if(!e.agentNodes||!Cp.safeParse(t).success&&e.agentPlatformRouting!==!0||t.target==="local"&&(t.checkout??"isolated")==="isolated"&&!e.localNodeIsolation)throw new Error(z.agent_placement_unavailable())}const fh=D({workspaceId:L().min(1),agentId:L().min(1),requestId:Bp()}).strict(),xv=fh.extend({checkpointId:L().min(1)}),Sv=D({ok:te(!0),status:tt(["merged","conflict","blocked"]),commitRange:L().optional(),canonicalHead:L().optional(),conflictingPaths:et(L()).optional(),reason:L().optional(),overlappingPaths:et(L()).optional()});class kv{constructor(e,n,r){this.request=e,this.remoteEnabled=n,this.observeCapabilities=r}async capabilities(){const n=(await this.observeCapabilities())?.server?.capabilities;return{agentNodes:n?.agentNodes===1,...n?.agentNodes===1&&n?.agentPlatformRouting===1?{agentPlatformRouting:!0}:{},localNodeIsolation:n?.agentNodes===1&&n?.localNodeIsolation===1}}async preparePlacement(e){const n=js.parse(e),r=()=>{if((n.target==="remote"||To(n.target)||n.exclusive===!0)&&!this.remoteEnabled())throw new Error(z.agent_placement_labsRequired())};r();const o=await this.capabilities();return r(),dh(n,o),n}async requireHub(){if(!(await this.capabilities()).agentNodes)throw new Error(z.agent_placement_unavailable())}async merge(e){const n=xv.parse(e);return await this.requireHub(),Sv.parse(await this.request("hub.merge",n))}async discard(e){const n=fh.parse(e);return await this.requireHub(),D({ok:te(!0)}).parse(await this.request("hub.discard",n))}}function He(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}function hh(t){return t==="workspace.create"?"initialAgent":t==="agent.wakeOrCreate"?"create":void 0}function Av(t,e){return["agent.create","agent.delegate","agent.wakeOrCreate","workspace.create"].includes(t)||t==="workspace.update"&&"defaultAgentPlacement"in He(e)}async function Tv(t,e){const n=He(await e()),r=He(He(n.server).capabilities);if(r.agentNodes===1||r.remoteMachines!==1||r.remoteInitialAgent!==1)return!1;const o=js.parse(t);if(o.exclusive===!0)throw new Error(z.agent_placement_unavailable());if(To(o.target)&&r.cloudMachines!==1)throw new Error(z.agent_placement_unavailable());if(o.target==="cloud"&&r.cloudMachineProviders!==1)throw new Error(z.agent_placement_unavailable());if(o.cloudMachineId!==void 0&&r.cloudMachineEntries!==1)throw new Error(z.agent_placement_unavailable());return!0}async function ph(t,e,n,r,o){const i=He(e);if(t==="agent.delegate"&&Array.isArray(i.tasks)){const v=[];for(const T of i.tasks){const O=typeof T=="string"?{taskNoteId:T}:He(T),A=He(await ph(t,{...i,tasks:void 0,...O},n,r,o));v.push({...O,...A.placement?{placement:A.placement}:{}})}const{placement:m,...E}=i;return{...E,tasks:v}}const s=new kv(n,r,o);if(t==="workspace.update")return i.defaultAgentPlacement!=null&&await s.preparePlacement(js.parse(i.defaultAgentPlacement)),e;const a=hh(t);if(a==="initialAgent"&&!i[a])return e;const c=a?He(i[a]):i;if(c.isolation==="cow")throw new Error(z.agent_placement_retiredIsolation());if(c.placement!==void 0&&c.isolation!==void 0)throw new Error(z.agent_placement_incompatibleIsolation());if(a==="initialAgent"&&c.placement!=null&&He(c.placement).target!=="local"&&await Tv(c.placement,o)){if(!r())throw new Error(z.agent_placement_labsRequired());return e}let u=c.placement,d=await s.capabilities(),f=!1;if(u===void 0){const v=i.workspaceId;let m;const E=async()=>{if(!m){f=!0;const O=He(await n("workspace.get",{workspaceId:v}));m=He(O.workspace??O)}return m},T=c.specialistId??c.specialist;if(t==="agent.delegate"&&(typeof T!="string"||!T))return e;if(typeof T=="string"&&T){f=!0;const O=c.workspacePath??i.workspacePath;let A=typeof O=="string"&&O?O:void 0;if(!A&&typeof v=="string"){const x=await E(),k=x.worktreePath??x.repositoryPath;typeof k=="string"&&k&&(A=k)}const y=He(await n("specialist.get",{id:T,...v?{workspaceId:v}:{},...A?{workspacePath:A}:{}}));if(!y.specialist)throw new Error(z.agent_placement_specialistUnavailable());u=He(y.specialist).runsOn}u==null&&typeof v=="string"&&(u=(await E()).defaultAgentPlacement)}if(!d.agentNodes){if(u!=null)throw new Error(z.agent_placement_unavailable());return e}const g=u==null?void 0:js.parse(u);if(!r()&&(g?.target==="remote"||To(g?.target)||g?.exclusive===!0))throw new Error(z.agent_placement_labsRequired());if(f&&(d=await s.capabilities()),g)dh(g,d);else if(!d.agentNodes)throw new Error(z.agent_placement_unavailable());if(!r()&&(g?.target==="remote"||To(g?.target)||g?.exclusive===!0))throw new Error(z.agent_placement_labsRequired());if(!g)return e;if(c.isolation!==void 0)throw new Error(z.agent_placement_incompatibleIsolation());const b={...c,placement:g};return a?{...i,[a]:b}:b}function Ev(t,e,n){if(n)return;const r=He(e),o=hh(t),i=o?He(r[o]):r,s=Array.isArray(i.tasks)?i.tasks.map(a=>He(a).placement??i.placement):[i.placement];if(s.push(r.defaultAgentPlacement),s.some(a=>He(a).target==="remote"||To(He(a).target)||He(a).exclusive===!0))throw new Error(z.agent_placement_labsRequired())}function Ov(t,e={}){const n=Ga.BACKEND.PR_MONITOR;return async r=>{const o=t(),i=()=>new ye({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});if(!o)throw i();const s=_r(e.reviewMonitoring)&&_r(o.reviewMonitoring)?Math.min(e.reviewMonitoring,o.reviewMonitoring):void 0;let a,c=!1,u=!1;const d=new Set,f=new Set,g=new Set,b=()=>{if(!c){c=!0;for(const O of[...f])O();f.clear()}},v=o.on(n.RETIRED,O=>{const A=D({id:L()}).safeParse(O);if(!A.success)return b();a?A.data.id===a&&b():(d.add(A.data.id),d.size>256&&b())}),m=o.on(n.NOTIFICATION,O=>{const A=D({id:L(),notification:D({method:L(),params:wo().optional()})}).safeParse(O);if(!c&&t()===o&&A.success&&A.data.id===a)for(const y of g)y(A.data.notification)}),E=O=>{const A=D({ok:ke(),result:wo().optional(),error:D({code:L(),message:L(),rpcCode:gn().optional(),data:wo().optional()}).optional()}).parse(O);if(!A.ok)throw A.error?new ye(A.error):i();return A.result},T=async()=>{if(!u&&(u=!0,b(),o.offById(n.RETIRED,v),o.offById(n.NOTIFICATION,m),a))try{await o.invoke(n.RELEASE,{id:a,workspaceId:r})}catch{}};try{const O=D({origin:zp,support:tt(["supported","unsupported","consumer-pending"])}).parse(E(await o.invoke(n.CAPTURE,{workspaceId:r,...s===void 0?{}:{reviewMonitoring:s}})));if(a=O.origin.sessionId,(d.has(a)||t()!==o)&&b(),c||O.origin.workspaceId!==r)throw i();return{...O,onNotification(A){return g.add(A),()=>{g.delete(A)}},onRetired(A){return c?(A(),()=>{}):(f.add(A),()=>{f.delete(A)})},async request(A,y){if(t()!==o&&b(),c||y.workspaceId!==r)throw i();const x=await o.invoke(n.REQUEST,{id:a,workspaceId:r,method:A,params:y});if(t()!==o&&b(),c)throw i();return E(x)},release:T}}catch(O){throw await T(),O}}}const cd=D({repository:Tc,providerProjectId:L().nullable(),connection:jp.nullable().optional(),branch:L()}),_v=D({remoteName:L(),fetchUrls:et(L()),pushUrls:et(L())}),Gc=D({operationId:L(),scope:qa,contextRevision:oo,root:$r,worktreeId:L(),source:cd,target:cd,localHeadSha:L().nullable(),transport:_v.nullable()}),Pv=vt("stage",[D({stage:te("commit"),commitHash:L()}),D({stage:te("push"),pushedSha:L()})]),hc=tt(["commit","push","create-pr"]),Iv=tt(["open","locked","closed","merged"]),ud=D({provider:Tc.shape.provider,instanceBaseUrl:L(),projectId:L(),projectPath:L().nullable(),branch:L()}),pc=D({resource:Gp,url:L(),title:L(),body:L().nullable(),state:Iv.nullable(),draft:ke().nullable(),sourceBranch:L().nullable(),targetBranch:L().nullable(),source:ud.nullable(),target:ud.nullable(),author:L().nullable(),mergeable:ke().nullable(),mergeableState:L().nullable(),headSha:L().nullable(),createdAt:L().nullable(),updatedAt:L().nullable()}),Mv=vt("status",[D({status:te("not-attempted")}),D({status:te("created"),review:pc}),D({status:te("reused"),review:pc}),D({status:te("failed"),stage:hc,code:L().nullable(),message:L()}),D({status:te("uncertain"),stage:hc,message:L()})]),Rv=vt("state",[D({state:te("included"),localHeadSha:L(),remoteSourceSha:L()}),D({state:te("local-ahead"),localHeadSha:L(),remoteSourceSha:L()}),D({state:te("diverged"),localHeadSha:L(),remoteSourceSha:L()}),D({state:te("remote-branch-missing"),localHeadSha:L().nullable()}),D({state:te("unknown"),localHeadSha:L().nullable(),remoteSourceSha:L().nullable()})]),gh=D({requestId:L(),preparation:Gc,gitReceipts:et(Pv),outcome:Mv,publication:Rv});D({reviewPreparation:Gc.optional()}).passthrough();D({reviewExecution:gh.optional()}).passthrough();const ms=L().min(1).max(4096),mh=oo.shape.sequence,bs=vt("kind",[$r.options[0].strict(),$r.options[1].strict()]),Nv=D({workspaceId:ms,action:hc,files:et(L()).nullish(),options:D({stageUnstaged:ke().optional(),pushAfterCommit:ke().optional(),createPRAfterPush:ke().optional()}).strict().optional(),review:D({root:bs,choice:vt("kind",[D({kind:te("saved")}).strict(),D({kind:te("explicitTarget"),target:Tc.strict()}).strict()]),targetBranch:L().nullish(),pushRemote:L().nullish(),companion:D({kind:te("create-pr")}).strict().optional()}).strict()}).strict().refine(t=>t.workspaceId===t.review.root.workspaceId&&(!Object.hasOwn(t.review,"companion")||t.review.companion!==void 0&&t.action==="commit"&&!Object.hasOwn(t,"files")&&!Object.hasOwn(t,"options")&&!Object.hasOwn(t.review,"pushRemote")&&typeof t.review.targetBranch=="string"&&t.review.targetBranch.length>0)&&(t.action==="commit"||t.files==null&&!t.options?.stageUnstaged&&!t.options?.pushAfterCommit&&!t.options?.createPRAfterPush)),Dv=D({commitMessage:L().nullish(),prTitle:L().nullish(),prBody:L().nullish()}).strict(),bh={valid:ke(),warnings:et(L()),errors:et(L()),suggestedCommitMessage:L().optional(),suggestedPRTitle:L().optional(),suggestedPRBody:L().optional(),filesCount:gn().int().nonnegative(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative(),files:et(D({path:L(),staged:ke(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative()}).strict()),reviewPreparation:Gc};D({...bh,reviewOperation:D({operationId:ms,root:bs,retirementSequence:mh,expiresAfterMs:te(3e5)}).strict()}).strict();const Fv=D({...bh,root:bs,expiresAfterMs:te(3e5)}).strict(),vh={operationId:ms,root:bs,state:tt(["prepared","pending","settled"]),reviewExecution:gh.optional()},yh=t=>t.state==="settled"==(t.reviewExecution!==void 0),Lv=D(vh).strict().refine(yh),Bv=D({...vh,state:tt(["pending","settled"]),success:ke(),steps:et(D({id:L(),name:L(),status:tt(["pending","running","completed","failed"]),message:L().optional(),error:L().optional()}).strict()),result:D({commitHash:L().optional(),pushedSha:L().optional(),prNumber:gn().int().nonnegative().optional(),prUrl:L().optional()}).strict().optional(),error:L().optional()}).strict().refine(yh);D({operationIds:et(ms).max(64),sequence:mh,allRetired:ke(),terminal:ke()}).strict();const zv=D({current:ke(),uncertain:ke(),execute:Bv.nullable(),reconciliation:Lv.nullable()}).strict(),Ex=D({attemptId:ms,root:bs,admission:L().nullable(),hostContext:L().nullable()}).strict(),rl=L().min(1).max(128).refine(t=>!/[\u0000-\u001f\u007f]/.test(t)),xo=oo.shape.sequence,qc=gn().int().positive().safe(),Vv=D({workspaceId:rl}).strict(),ia=D({repository:D({provider:te("gitlab"),instanceBaseUrl:L().max(2048).refine(Od),projectPath:L().min(1).max(1024).refine(t=>{const e=t.split("/");return e.length>=2&&e[0]!=="groups"&&e.every(n=>/^[A-Za-z0-9_.-]+$/.test(n)&&![".","..","-"].includes(n))})}).strict(),kind:tt(["merge-request","issue"]),number:qc}).strict(),Wv=D({readLifetimeId:rl,scope:qa.strict(),revision:oo.strict(),expiresAfterMs:te(3e5),retirementSequence:xo,instances:et(D({provider:te("gitlab"),instanceBaseUrl:L().max(2048).refine(Od),availability:te("connected")}).strict()).max(64)}).strict(),Uv=tt(["authentication","project-denied","resource-denied","optional-restricted","optional-unavailable","rate-limited","transient","unavailable","unknown"]),Hv=D({number:qc,title:L(),body:L().nullable(),state:L(),url:L(),author:L(),createdAt:L(),updatedAt:L()}).strict(),Kv=D({resource:ia,prNumber:qc,details:pc.extend({resource:ia}).strict()}).strip(),jv=D({readLifetimeId:rl,scope:qa.strict(),revision:oo.strict(),target:ia,outcome:vt("kind",[D({kind:te("merge-request"),snapshot:Kv}).strict(),D({kind:te("issue"),issue:Hv}).strict(),D({kind:te("failure"),code:Uv,status:gn().int().min(100).max(599).nullable()}).strict()]),quota:D({resetAt:xo.nullable(),remaining:xo.nullable(),limit:xo.nullable()}).strict()}).strict();D({readLifetimeIds:et(rl).max(64),sequence:xo,allRetired:ke(),terminal:ke()}).strict();const Gv=D({target:ia,refresh:ke().optional()}).strict();function qv(t,e,n){if(t.readLifetimeId!==e.readLifetimeId||!qp(t.scope,e.scope)||t.revision.epoch!==e.revision.epoch||t.revision.sequence!==e.revision.sequence||kn(t.target)!==kn(n))return!1;const r=t.outcome;if(r.kind==="failure")return!0;if(r.kind!==n.kind)return!1;const o=r.kind==="issue"?r.issue.url:r.snapshot.details.url,i=_d(o,e.instances);return!i||kn(i)!==kn(n)?!1:r.kind==="issue"?r.issue.number===n.number:r.snapshot.prNumber===n.number&&kn(r.snapshot.resource)===kn(n)&&kn(r.snapshot.details.resource)===kn(n)}function Yv(t){const e=Ga.BACKEND.REPOSITORY_RESOURCE,n=()=>new ye({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}),r=o=>{const i=D({ok:te(!0),result:wo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=Vv.parse({workspaceId:o}),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:L().min(1).max(128)}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a))try{await s.invoke(e.RELEASE,{...i,id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({id:L().min(1).max(128)}).safeParse(E);T.success&&(a=T.data.id);const O=D({id:L().min(1).max(128),capture:Wv}).strict().parse(E);if(a=O.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=O.capture;return{capture:A,onRetired(y){return m()?(f.add(y),()=>{f.delete(y)}):(y(),()=>{})},async detail(y,x=!1){if(!m())throw n();const{target:k}=Gv.parse({target:y,refresh:x});try{const R=jv.parse(r(await s.invoke(e.DETAIL,{...i,id:a,target:k,refresh:x})));if(!m()||!qv(R,A,k))throw n();return R}catch{throw await v(),n()}},release:v}}catch(E){throw await v(),E}}}const vl=L().min(1).max(128),Ss=()=>({status:"unavailable",reason:"retired"});function Xv(t){const e=Ga.BACKEND.REPOSITORY_CHECKOUT,n=()=>new ye({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}),r=o=>{const i=D({ok:te(!0),result:wo()}).strict().safeParse(o);if(!i.success)throw n();return i.data.result};return async o=>{const i=xp.parse(o),s=t();if(!s)throw n();let a,c=!1,u=!1;const d=new Set,f=new Set,g=()=>{if(!c){c=!0;for(const E of[...f])try{E()}catch{}f.clear()}},b=s.on(e.RETIRED,E=>{const T=D({id:vl}).strict().safeParse(E);if(!T.success){g();return}a===void 0?(d.add(T.data.id),d.size>64&&(d.clear(),g())):a===T.data.id&&g()}),v=async()=>{if(!u&&(u=!0,g(),s.offById(e.RETIRED,b),a!==void 0))try{await s.invoke(e.RELEASE,{id:a})}catch{}},m=()=>(t()!==s&&g(),!c&&!u);try{const E=r(await s.invoke(e.CAPTURE,i)),T=D({value:D({id:vl})}).safeParse(E);T.success&&(a=T.data.value.id);const O=Sp(D({id:vl,capture:kp,repoConfigSupported:ke().optional()}).strict()).parse(E);if(O.status==="unavailable")return await v(),O;if(a=O.value.id,d.has(a)&&g(),d.clear(),!m())throw n();const A=Object.freeze(O.value.capture),y=async(x,k,R)=>{if(!m())return Ss();try{const M=Ap(R,r(await s.invoke(e.REQUEST,{id:a,kind:x,params:k})));return m()?M:Ss()}catch(M){throw await v(),M}};return{status:"ready",value:{capture:A,onRetired(x){return m()?(f.add(x),()=>{f.delete(x)}):(x(),()=>{})},projects:x=>y("projects",Np.parse(x),Dp),project:x=>y("project",Mp.parse(x),Rp),branches:x=>y("branches",Pp.parse(x),Ip),...O.value.repoConfigSupported===!0?{repoConfig:async x=>{const k=Op.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Ss();const R=await y("repoConfig",k,_p);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R}}:{},async warm(x){const k=Tp.parse(x);if(k.checkoutId!==A.checkoutId||k.revision!==A.revision)return Ss();const R=await y("warm",k,Ep);if(R.status==="ready"&&(R.value.projectPath!==k.projectPath||R.value.branch!==k.branch||R.value.commitSha!==k.commitSha))throw await v(),n();return R},release:v}}}catch(E){throw await v(),E}}}const _o=oo.shape.sequence,Po=L().min(1).max(4096),ol=vt("kind",[$r.options[0].strict(),$r.options[1].strict()]);D({workspaceId:Po,gitRootId:Po.nullish()}).strict();const Zv=vt("mode",[D({mode:te("automatic")}).strict(),D({mode:te("explicit-remote"),remoteName:L().min(1).refine(t=>!/^\p{White_Space}|\p{White_Space}$/u.test(t)&&!/\p{Cc}/u.test(t)&&!/[\uD800-\uDFFF]/u.test(t)&&new TextEncoder().encode(t).length<=1024)}).strict()]),Jv=vt("kind",[D({kind:te("save"),choice:Zv}).strict(),D({kind:te("reset")}).strict()]),Ws=D({root:ol,rootIncarnation:_o,selectionRevision:_o,selection:vt("kind",[D({kind:te("neverSaved")}).strict(),D({kind:te("reset")}).strict(),D({kind:te("saved"),value:Yp}).strict()])}).strict(),wh=D({scope:qa.strict(),root:ol,snapshot:Ws,expiresAfterMs:te(3e5)}).strict();wh.extend({selectionId:Po,retirementSequence:_o}).strict();const Qv=D({result:vt("kind",[D({kind:te("applied"),snapshot:Ws}).strict(),D({kind:te("unchanged"),snapshot:Ws}).strict(),D({kind:te("conflict"),snapshot:Ws}).strict(),D({kind:te("missingRoot")}).strict(),D({kind:te("failed"),code:tt(["admission-retired","authority-unavailable","storage-failed","completion-unobserved"])}).strict()]),persistence:vt("kind",[D({kind:te("notAttempted")}).strict(),D({kind:te("noEffect")}).strict(),D({kind:te("committed"),selectionRevision:_o}).strict(),D({kind:te("unknown")}).strict()])}).strict(),Ch=vt("status",[D({status:te("notStarted")}).strict(),D({status:te("pending")}).strict(),D({status:te("settled"),receipt:Qv}).strict()]);D({selectionId:Po,root:ol,attempt:Ch}).strict();D({selectionIds:et(Po).max(64),sequence:_o,allRetired:ke(),terminal:ke()}).strict();const $v=D({current:ke(),attempt:Ch.nullable(),uncertain:ke()}).strict(),rt=Ga.BACKEND;function ce(){return typeof window<"u"?window.electronAPI:void 0}function Xt(t){if(!t||!t.ok)throw new ye(t?.error??{code:"TRANSPORT_ERROR",message:"Backend request failed"});return t.result}function yl(t){if(t!==void 0)return JSON.parse(JSON.stringify(t))}const gc=new Set;function Ox(){const t=new Map;for(const e of gc)t.set(e.channel,(t.get(e.channel)??0)+e.size());return Object.fromEntries([...t].sort(([e],[n])=>e.localeCompare(n)))}function wl(t,e){const n=new Set;let r=null;const o={channel:t,size:()=>n.size};return{subscribe(i,s){if(!r){const c=i.on(t,u=>{for(const d of[...n])try{d(u)}catch(f){console.warn(`[electron-ipc-transport] ${e} handler threw`,f)}});r={api:i,id:c}}n.add(s),gc.add(o);let a=!1;return()=>{a||(a=!0,n.delete(s),!(n.size>0)&&(gc.delete(o),r&&(r.api.offById(t,r.id),r=null)))}}}}function dd(t={}){const e=wl(rt.STATUS,"onReconnected"),n=wl(rt.NOTIFICATION,"onNotification"),r=wl(rt.PR_MONITOR.READY,"onMonitorReconnected");return{onMonitorReconnected(o){const i=ce();if(!i)return()=>{};const s=r.subscribe(i,o),a=e.subscribe(i,c=>{c?.status==="connected"&&c.reconnected&&o()});return()=>{s(),a()}},capturePrMonitorSession:Ov(ce,t),captureRepositorySelection:ey,async readPrincipal(){const o=ce();if(!o)throw new ye({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(rt.READ_PRINCIPAL);if(ce()!==o)throw new ye({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},async observeNodeCapabilities(){const o=ce();if(!o)throw new ye({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(rt.NODE_CAPABILITIES);if(ce()!==o)throw new ye({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},prepareNativeReview:ty,captureRepositoryResource:Yv(ce),captureRepositoryCheckout:Xv(ce),async captureRepositoryRoute(o){const i=ce(),s=()=>new ye({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"});if(!i)throw s();const a=Object.freeze($r.parse(o));let c,u=!1,d=!1,f=!1;const g=new Set,b=new Set,v=()=>{if(!d){d=!0;for(const T of[...b])try{T()}catch{}b.clear()}},m=i.on(rt.REPOSITORY.RETIRED,T=>{!T||typeof T!="object"||!("id"in T)||typeof T.id!="string"||(c===void 0&&!f?(g.add(T.id),g.size>32&&(f=!0,g.clear(),v())):T.id===c&&v())}),E=async()=>{if(!u&&(u=!0,v(),i.offById(rt.REPOSITORY.RETIRED,m),!!c))try{await i.invoke(rt.REPOSITORY.RELEASE,{id:c,root:a})}catch{}};try{const T=Xt(await i.invoke(rt.REPOSITORY.CAPTURE,{root:a}));if(typeof T.id!="string"||!T.id||(c=T.id,g.has(c)&&v(),g.clear(),ce()!==i||f||d))throw s()}catch(T){throw await E(),T}return{onRetired(T){return u||d||ce()!==i?(T(),()=>{}):(b.add(T),()=>{b.delete(T)})},async request(T,O,A){if(u||d||ce()!==i||A&&"localMachine"in A)throw s();const y=Xt(await i.invoke(rt.REPOSITORY.REQUEST,{id:c,root:a,method:T,params:yl(O),...A?.timeoutMs===void 0?{}:{timeoutMs:A.timeoutMs}}));return{...y,current:y.current&&!u&&!d&&ce()===i}},release:E}},isAvailable(){return!!ce()},async request(o,i,s){const a=ce();if(!a)throw new ye({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const c={method:o,params:yl(i)};s?.timeoutMs!==void 0&&(c.timeoutMs=s.timeoutMs),s?.localMachine&&(c.localMachine=!0),!s?.localMachine&&Vp.has(o)&&_r(t.reviewMonitoring)&&_r(a.reviewMonitoring)&&(c.reviewMonitoring=Math.min(t.reviewMonitoring,a.reviewMonitoring));const u=await a.invoke(rt.REQUEST,c);return Xt(u)},async subscribe(o){const i=ce();if(!i)throw new ye({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const s=await i.invoke(rt.SUBSCRIBE,yl(o));return Xt(s)},async unsubscribe(o,i){const s=ce();if(s)try{await s.invoke(rt.UNSUBSCRIBE,{subscriptionId:o,...i!==void 0?{workspaceId:i}:{}})}catch{}},onNotification(o){const i=ce();return i?n.subscribe(i,s=>o(s)):()=>{}},onReconnected(o){const i=ce();if(!i)return()=>{};const s=_r(t.reviewMonitoring)&&_r(i.reviewMonitoring)?r.subscribe(i,c=>{c&&typeof c=="object"&&"attachment"in c&&c.attachment===!0&&o()}):()=>{},a=e.subscribe(i,c=>{c?.status!=="connected"||c.reconnected!==!0||o()});return()=>{s(),a()}}}}async function ey(t){const e=ce(),n=ol.parse(t),r=()=>new ye({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"});if(!e)throw r();const o=rt.REPOSITORY_SELECTION;let i,s=!1,a,c=!1;const u=new Map,d=new Set,f=A=>{if(!(a==="closed"||a===A)){a=A;for(const y of[...d])try{y(A)}catch{}A==="closed"&&d.clear()}},g=e.on(o.RETIRED,A=>{const y=D({id:L().min(1),kind:tt(["admission","closed"])}).strict().safeParse(A);y.success&&(i===void 0?(u.get(y.data.id)!=="closed"&&u.set(y.data.id,y.data.kind),u.size>32&&(c=!0,u.clear(),f("closed"))):y.data.id===i&&f(y.data.kind))}),b=async()=>{if(!s&&(s=!0,f("closed"),e.offById(o.RETIRED,g),i))try{await e.invoke(o.RELEASE,{id:i,root:n})}catch{}};let v;try{const A=Xt(await e.invoke(o.CAPTURE,{root:n})),y=D({id:L().min(1).max(4096)}).safeParse(A);y.success&&(i=y.data.id);const x=D({id:L().min(1),preview:wh}).strict().parse(A);i=x.id,v=x.preview;const k=u.get(i);if(u.clear(),k&&f(k),s||c||a||ce()!==e||JSON.stringify(v.root)!==JSON.stringify(n))throw r()}catch(A){throw await b(),A}let m,E,T;const O=A=>{if(s||a==="closed"||ce()!==e||T)return Promise.reject(r());const y=(async()=>{try{const x=$v.parse(Xt(await A()));m?.attempt?.status!=="settled"&&(m=x)}catch{m={...m??{attempt:null,current:!1},uncertain:m?.attempt?.status!=="settled"}}return{...m,current:!!m.current&&!s&&!a&&ce()===e}})();return T=y,y.finally(()=>{T===y&&(T=void 0)}),y};return{preview:v,onRetired(A){return(s||ce()!==e)&&f("closed"),a&&A(a),a!=="closed"&&d.add(A),()=>{d.delete(A)}},confirm(A){const y=Jv.parse(A),x=JSON.stringify(y);return E!==void 0?E!==x?Promise.reject(r()):T??Promise.resolve({...m??{attempt:null,uncertain:!0},current:!!m?.current&&!s&&!a&&ce()===e}):a||s||T||ce()!==e?Promise.reject(r()):(E=x,O(()=>e.invoke(o.CONFIRM,{id:i,root:n,command:y})))},reconcile:()=>O(()=>e.invoke(o.RECONCILE,{id:i,root:n})),release:b}}async function ty(t){const e=ce(),n=Nv.parse(t);if(!e)throw new ye({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});return xh(e,n.review.root,{input:n},!!n.review.companion)}async function xh(t,e,n,r=!1){const o=()=>new ye({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});if(ce()!==t)throw o();const i=rt.NATIVE_REVIEW;let s,a=!1,c,u;const d=()=>c==="closed";let f=!1;const g=new Map,b=new Set,v=k=>{if(!(c==="closed"||c===k)){c=k;for(const R of[...b])try{R(k)}catch{}k==="closed"&&b.clear()}},m=t.on(i.RETIRED,k=>{const R=D({id:L().min(1),kind:tt(["admission","closed"])}).strict().safeParse(k);R.success&&(s===void 0?(g.get(R.data.id)!=="closed"&&g.set(R.data.id,R.data.kind),g.size>32&&(f=!0,g.clear(),v("closed"))):R.data.id===s&&v(R.data.kind))}),E=async()=>{if(!a&&(a=!0,v("closed"),t.offById(i.RETIRED,m),u?.then(k=>k.release(),()=>{}),s))try{await t.invoke(i.RELEASE,{id:s,root:e})}catch{}};let T;try{const k=Xt(await t.invoke(i.PREPARE,n)),R=D({id:L().min(1).max(4096)}).safeParse(k);R.success&&(s=R.data.id);const M=D({id:L().min(1),preview:Fv}).strict().parse(k);s=M.id,T=M.preview;const H=g.get(s);if(g.clear(),H&&v(H),a||f||c||ce()!==t||JSON.stringify(T.root)!==JSON.stringify(e))throw o()}catch(k){throw await E(),k}let O,A,y;const x=k=>{if(a||c==="closed"||ce()!==t||y)return Promise.reject(o());let R;const M=new Promise(H=>{R=H});return y=M,(async()=>{try{O=zv.parse(Xt(await k()))}catch{O={...O??{execute:null,reconciliation:null,current:!1},uncertain:O?.uncertain||O?.execute?.state!=="settled"&&O?.reconciliation?.state!=="settled"}}return{...O,current:!!O.current&&!a&&!c&&ce()===t}})().then(R,()=>R({...O??{execute:null,reconciliation:null},current:!1,uncertain:!0})),M.finally(()=>{y===M&&(y=void 0)}),M};return{...r?{prepareCompanion(){return u||(u=Promise.resolve().then(async()=>{if(!s||a||c==="closed"||y||ce()!==t)throw o();const k=await xh(t,e,{companionOf:s,root:e});if(a||d()||ce()!==t)throw await k.release(),o();return k}),u)}}:{},preview:T,onRetired(k){return(a||ce()!==t)&&v("closed"),c&&k(c),c!=="closed"&&b.add(k),()=>{b.delete(k)}},confirm(k){const R=Dv.parse(k),M=JSON.stringify(R);return A!==void 0?A!==M?Promise.reject(o()):y??Promise.resolve({...O??{execute:null,reconciliation:null,uncertain:!0},current:!!O?.current&&!a&&!c&&ce()===t}):c||a||y||ce()!==t?Promise.reject(o()):(A=M,x(()=>t.invoke(i.EXECUTE,{id:s,root:e,command:R})))},reconcile:()=>x(()=>t.invoke(i.RECONCILE,{id:s,root:e})),release:E}}let Cl=null;function ny(){if(Fp())return dd();const t=Wp();if(t){const e=Up({url:t});return Hp({getStatus:()=>e.getConnectionStatus(),getTarget:()=>Kp(t),onStatusChange:n=>e.onConnectionStatusChange(n),getStartupState:()=>e.getStartupState(),onStartupChange:n=>e.onStartupChange(n),onReconnected:n=>e.onReconnected(n)}),e}return dd()}function Xe(){return Cl||(Cl=ny()),Cl}function ry(t){const e=Xe();return e.captureRepositoryResource?e.captureRepositoryResource(t):Promise.reject(new ye({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}))}function oy(t){const e=Xe();return e.captureRepositoryRoute?e.captureRepositoryRoute(t):Promise.reject(new ye({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"}))}function iy(t){const e=Xe();return e.captureRepositorySelection?e.captureRepositorySelection(t):Promise.reject(new ye({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"}))}async function Sh(t,e,n){try{const r=Xe();if(Av(t,e)){const{store:o}=await cs(async()=>{const{store:d}=await import("./CM28_vQq.js");return{store:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),i=()=>o.state.userPreferences?.labsRemoteAgentsEnabled===!0,s=o.state.daemonHealth?.connectionGeneration,a=()=>{if(r!==Xe()||s!==o.state.daemonHealth?.connectionGeneration)throw new Error(z.agent_placement_backendChanged())};e=await ph(t,e,async(d,f)=>{a();const g=await r.request(d,f);return a(),g},i,async()=>{if(a(),!r.observeNodeCapabilities)throw new Error(z.agent_placement_unavailable());const d=await r.observeNodeCapabilities();return a(),d}),a(),Ev(t,e,i())}return await r.request(t,e,n)}catch(r){if(r instanceof ye){const o=Cv(r.data?.executionAuthorization);if(o)throw new ye({code:r.code,rpcCode:r.rpcCode,data:r.data,message:o})}throw r}}async function sy(){const t=Xe();if(!t.readPrincipal)throw new ye({code:"UNAVAILABLE",message:"Principal discovery unavailable"});const e=await t.readPrincipal();if(t!==Xe())throw new ye({code:"UNAVAILABLE",message:"Backend transport changed"});return e}async function ay(){const t=Xe(),{store:e}=await cs(async()=>{const{store:o}=await import("./CM28_vQq.js");return{store:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url),n=e.state.daemonHealth?.connectionGeneration;if(!t.observeNodeCapabilities)throw new Error(z.agent_placement_unavailable());const r=await t.observeNodeCapabilities();if(t!==Xe()||n!==e.state.daemonHealth?.connectionGeneration)throw new Error(z.agent_placement_backendChanged());return r}async function ly(t){return Xe().subscribe(t)}async function cy(t,e){return Xe().unsubscribe(t,e)}let xl=null;function uy(){return xl||(xl=Sh("client.hello",{}).then(t=>t?.server?.capabilities?.liveState===!0).catch(()=>!1)),xl}function dy(t){return Xe().onNotification(t)}function kh(t){return Xe().onReconnected(t)}function fy(t){const e=Xe();return e.prepareNativeReview?e.prepareNativeReview(t):Promise.reject(new ye({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"}))}function hy(t){const e=Xe();return e.captureRepositoryCheckout?e.captureRepositoryCheckout(t):Promise.reject(new ye({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}))}function py(t){const e=Xe();return e.capturePrMonitorSession?e.capturePrMonitorSession(t):Promise.reject(new ye({code:"PR_MONITOR_SESSION_UNAVAILABLE",message:"Monitor transport unavailable"}))}function gy(){return Xe().prMonitorBackendId?.()}function my(t){const e=Xe();return e.onMonitorReconnected?e.onMonitorReconnected(t):e.onReconnected(t)}const _x=Object.freeze(Object.defineProperty({__proto__:null,backendRequest:Sh,backendSubscribe:ly,backendUnsubscribe:cy,captureBackendRepositoryCheckout:hy,captureBackendRepositoryResource:ry,captureBackendRepositoryRoute:oy,captureBackendRepositorySelection:iy,capturePrMonitorSession:py,detectLiveStateCapability:uy,electronAPI:ce,observeBackendNodeCapabilities:ay,onBackendNotification:dy,onBackendReconnected:kh,onMonitorReconnected:my,prMonitorBackendId:gy,prepareBackendNativeReview:fy,readBackendPrincipal:sy},Symbol.toStringTag,{value:"Module"}));let Sl=0,fd=!1;function Ah(t){fd||(kh(()=>{Sl+=1}),fd=!0);const e=Sl;return{workspaceId:t,key:JSON.stringify([e,t??null]),isCurrent:()=>e===Sl}}function Px(){return Promise.resolve()}const by=["show-choices","open-in-browser","open-in-app","copy-link","start-workspace"];function Ix(t){return by.includes(t)}function Mx(t){const e=t.match(/^(.+?)#L(\d+)(?:-\d+|C(\d+))?$/);if(e)return{path:e[1],line:Number.parseInt(e[2],10),...e[3]?{column:Number.parseInt(e[3],10)}:{}};const n=t.match(/^(.+?):L(\d+)(?:-\d+)?$/);if(n&&(n[1].includes(".")||n[1].includes("/")))return{path:n[1],line:Number.parseInt(n[2],10)};const r=t.match(/^(.+?):(\d+)(?::(\d+))?$/);return r&&!/:\d+$/.test(r[1])&&(r[1].includes(".")||r[1].includes("/"))?{path:r[1],line:Number.parseInt(r[2],10),...r[3]?{column:Number.parseInt(r[3],10)}:{}}:{path:t}}const vy=["/oauth","/authorize","/login/oauth","/auth/"];function Rx(t){try{const{pathname:e}=new URL(t),n=e.toLowerCase();return vy.some(r=>n.includes(r))}catch{return!1}}function Nx(t){try{const{hostname:e}=new URL(t);return e==="github.com"||e.endsWith(".github.com")}catch{return!1}}function Th(t){try{const e=new URL(t);if(e.hostname!=="github.com"&&e.hostname!=="www.github.com")return null;const n=e.pathname.split("/").filter(Boolean);if(n.length<4)return null;const[r,o,i,s]=n,a=i==="issues"?"issue":i==="pull"?"pr":null;return!a||!/^\d+$/.test(s)?null:{owner:r,repo:o,number:Number.parseInt(s,10),kind:a}}catch{return null}}function Dx(t,e=typeof navigator<"u"?navigator.platform:void 0){const n=t.modifiers??t.event??{};return typeof e=="string"&&e.toUpperCase().includes("MAC")?!!n.metaKey:!!n.ctrlKey}function yy(t,e,n,r){let o=!0,i,s,a=null;const c=()=>{o&&(o=!1,s?.(),i?.release())};return!e||!Lp(t)?(n({status:"idle"}),c):((async()=>{const u=(await cs(async()=>{const{appClient:b}=await import("./R4bwBwT_.js").then(v=>v.p);return{appClient:b}},__vite__mapDeps([14,15,8,3,1,2,4,5,6,7,9,10,11,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;if(!o)return;if(i=await u.captureRepositoryResource(e),!o){await i.release();return}if(s=i.onRetired(()=>{o&&(n({status:"idle"}),c())}),!o){s();return}if(a=_d(t,i.capture.instances),!a){n({status:"idle"}),c();return}n({status:"loading",resource:a});const d=await i.detail(a);if(!o)return;const f=d.outcome;if(f.kind==="failure"){n({status:"error",resource:a,reason:f.code});return}if(f.kind==="issue"){n({status:"ready",data:{...f.issue,provider:"gitlab",resource:a,kind:"issue",headRef:null,baseRef:null}});return}const g=f.snapshot.details;n({status:"ready",data:{provider:"gitlab",resource:a,kind:"pr",number:a.number,title:g.title,url:g.url,state:g.state==="open"&&g.draft===!0?"draft":g.state??"unknown",author:g.author,createdAt:g.createdAt,updatedAt:g.updatedAt,headRef:g.sourceBranch,baseRef:g.targetBranch}})})().catch(()=>{o&&(n(a?{status:"error",resource:a,reason:"unavailable"}:{status:"idle"}),c())}),c)}function wy(t){if(t&&typeof t=="object"&&"data"in t){const e=t.data;if(e&&typeof e=="object"&&"code"in e&&e.code==="rate-limited")return"rate-limited"}return"unavailable"}const hd=new WeakMap;let Cy=0;const ks=new Map;function xy(t){return`${t.owner}/${t.repo}#${t.number}/${t.kind}`}async function Sy(t,e,n){const r=e??(await cs(async()=>{const{appClient:i}=await import("./R4bwBwT_.js").then(s=>s.p);return{appClient:i}},__vite__mapDeps([14,15,8,3,1,2,4,5,6,7,9,10,11,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;return t.kind==="pr"?{kind:"pr",...await r.githubPullRequest(t.owner,t.repo,t.number,...n===void 0?[]:[n])}:{kind:"issue",...await r.githubIssue(t.owner,t.repo,t.number,...n===void 0?[]:[n])}}function ky(){return new DOMException("The GitHub link preview request was aborted.","AbortError")}function Ay(t,e){return new Promise((n,r)=>{const o=()=>r(ky());if(t.then(n,r).finally(()=>e.removeEventListener("abort",o)),e.aborted){o();return}e.addEventListener("abort",o,{once:!0})})}async function Ty(t,e={}){const n=Th(t);if(!n)return null;const r=Ah(e.workspaceId),o=e.client??(await cs(async()=>{const{appClient:c}=await import("./R4bwBwT_.js").then(u=>u.p);return{appClient:c}},__vite__mapDeps([14,15,8,3,1,2,4,5,6,7,9,10,11,16,17,18,19,20,21]),import.meta.url)).appClient.integrations;let i=hd.get(o);i===void 0&&(i=++Cy,hd.set(o,i));const s=JSON.stringify([r.key,i,xy(n)]);let a=ks.get(s);return a||(a=Sy(n,o,r.workspaceId).finally(()=>{ks.get(s)===a&&ks.delete(s)}),ks.set(s,a)),e.signal?Ay(a,e.signal):a}function Ey(){let t=0;return{next(){const e=++t;return{get isCurrent(){return e===t}}},invalidate(){t++}}}const Ze=Hn({visible:!1,url:"",x:0,y:0,anchorBottom:0,copied:!1,preview:{status:"idle"}});let Mr=null;const sa=Ey();let br,aa;function Oy(t,e){const n=Ah(e);br?.(),br=void 0;const r=sa.next();if(!Th(t)){Ze.preview={status:"idle"},br=yy(t,e,o=>{r.isCurrent&&(Ze.preview=o)});return}Ze.preview={status:"loading"},Ty(t,{workspaceId:e}).then(o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview=o?{status:"ready",data:o}:{status:"idle"})},o=>{!r.isCurrent||!n.isCurrent()||(Ze.preview={status:"error",reason:wy(o)})})}function _y(t){try{const e=new URL(t),n=e.host+e.pathname,r=n.endsWith("/")?n.slice(0,-1):n;if(r.length<=50)return r;const o=r.split("/");let i=o[0];for(let s=1;s<o.length;s++){const a=i+"/"+o[s];if(a.length>47)return i+"/…";i=a}return i}catch{return t.length>50?t.slice(0,47)+"…":t}}function Py(t,e,n){Mr&&clearTimeout(Mr),sa.invalidate(),br?.(),br=void 0,aa?.(),Ze.preview={status:"idle"};const r=t.closest("[data-workspace-surface]"),o=n??r?.dataset.workspaceSurface,i=t.href,s=()=>t.isConnected&&t.href===i&&(!r||r.contains(t)&&r.dataset.workspaceSurface===o),a=new MutationObserver(()=>{s()||mc()});a.observe(t.ownerDocument.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-workspace-surface","href"]}),aa=()=>a.disconnect(),Ze.copied=!1,Mr=setTimeout(()=>{if(!s()){mc();return}const c=t.getBoundingClientRect();Ze.visible=!0,Ze.url=e,Ze.x=c.left+c.width/2,Ze.y=c.top,Ze.anchorBottom=c.bottom,Oy(e,o)},300)}function mc(){if(aa?.(),aa=void 0,br?.(),br=void 0,Mr&&(clearTimeout(Mr),Mr=null),Ze.copied){Ze.preview={status:"idle"},sa.invalidate();return}Ze.visible=!1,sa.invalidate(),Ze.preview={status:"idle"}}const Fx=Object.freeze(Object.defineProperty({__proto__:null,formatUrlForDisplay:_y,hideLinkTooltip:mc,showLinkTooltip:Py,state:Ze},Symbol.toStringTag,{value:"Module"})),Iy=Symbol("ui-size");function My(){return _l(Iy)??"default"}var Ry=Array.isArray,il=t=>{if(!t&&t!==0&&t!==0n)return"";if(typeof t=="string")return t;if(typeof t=="number")return t!==t?"":""+t;if(typeof t=="bigint")return""+t;let e="";if(Ry(t)){const n=t.length;for(let r=0;r<n;r++){const o=t[r];if(!o&&o!==0&&o!==0n)continue;const i=typeof o=="string"?o:il(o);i&&(e&&(e+=" "),e+=i)}return e}if(typeof t=="object")for(const n in t)t[n]&&(e&&(e+=" "),e+=n);return e},Ny=/\s+/g,bc=Array.isArray,Dy=t=>typeof t!="string"||!t?t:t.replace(Ny," ").trim(),Fy=t=>{const e=t.length;if(e===0)return!1;const n=t.charCodeAt(0),r=t.charCodeAt(e-1);if(n===32||r===32||n>=9&&n<=13||n===160||r>=9&&r<=13||r===160)return!0;for(let o=0;o<e;o++){const i=t.charCodeAt(o);if(i>=9&&i<=13||i===160||i===32&&o+1<e&&t.charCodeAt(o+1)===32)return!0}return!1},Us=(...t)=>{const e=il(t);if(e)return Fy(e)?Dy(e):e},vc=t=>t===!1?"false":t===!0?"true":t===0?"0":t,Ct=t=>{if(!t||typeof t!="object")return!0;for(const e in t)return!1;return!0},Eh=(t,e)=>{if(t===e)return!0;if(!t||!e)return!1;const n=t,r=e,o=Object.keys(n),i=Object.keys(r);if(o.length!==i.length)return!1;for(let s=0;s<o.length;s++){const a=o[s];if(!i.includes(a)||n[a]!==r[a])return!1}return!0},Ly=(t,e)=>{const n=t;for(const r in e)if(Object.hasOwn(e,r)){const o=e[r];r in n?n[r]=Us(n[r],o):n[r]=o}return t},Oh=(t,e)=>{for(let n=0;n<t.length;n++){const r=t[n];bc(r)?Oh(r,e):r&&e.push(r)}},yc=(...t)=>{const e=[];Oh(t,e);const n=[];for(let r=0;r<e.length;r++)e[r]&&n.push(e[r]);return n},Yc=(t,e)=>{const n=t,r=e,o={};for(const i in n){const s=n[i];if(i in r){const a=r[i];bc(s)||bc(a)?o[i]=yc(a,s):typeof s=="object"&&typeof a=="object"&&s&&a?o[i]=Yc(s,a):o[i]=a+" "+s}else o[i]=s}for(const i in r)i in n||(o[i]=r[i]);return o},By={twMerge:!0,twMergeConfig:{}},_h=256,zy=128,Cr=Symbol("tv-cache-miss"),Vy=t=>t?.class!=null&&t.class!==""||t?.className!=null&&t.className!=="",pd=t=>{if(t===void 0)return"";if(t===null)return"null";if(typeof t=="string")return t;if(typeof t=="boolean")return t?"true":"false";if(typeof t=="number")return t===0?"0":String(t);if(typeof t=="bigint")return String(t);const e=vc(t),n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return String(e);if(n==="object")try{return JSON.stringify(e)}catch{return null}return null},Tr=(t,e)=>{if(e===void 0)return t;if(e===null)return t+"null";const n=typeof e;if(n==="string"||n==="number"||n==="boolean"||n==="bigint")return t+String(e);if(Array.isArray(e))return t+e.join("\0");try{return t+JSON.stringify(e)}catch{return t+"?"}},Ph=(t,e,n,r)=>{let o="";const i=Object.create(null);for(let a=0;a<t.length;a++){const c=t[a];i[c]=1;let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=pd(u);if(d===null)return null;o+=c+":"+d+";"}const s=[];for(const a in e)a==="class"||a==="className"||i[a]||(i[a]=1,s.push(a));if(n)for(const a in n)a==="class"||a==="className"||i[a]||n[a]===void 0||(i[a]=1,s.push(a));s.length>1&&s.sort();for(let a=0;a<s.length;a++){const c=s[a];let u=e[c];n&&n[c]!==void 0&&(u=n[c]);const d=pd(u);if(d===null)return null;o+=c+":"+d+";"}return o},Ih=(t,e)=>{let n="";for(let r=0;r<t.length;r++){const{conditionKeys:o,source:i}=t[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Tr(n,i[a]),n+=","}n+="c=",n=Tr(n,i.class),n+="|cn=",n=Tr(n,i.className),n+=";"}for(let r=0;r<e.length;r++){const{conditionKeys:o,source:i}=e[r];for(let s=0;s<o.length;s++){const a=o[s];n+=a+"=",n=Tr(n,i[a]),n+=","}Array.isArray(i.slots)&&(n+="slots="+i.slots.join(",")+","),n+="c=",n=Tr(n,i.class),n+="|cn=",n=Tr(n,i.className),n+=";"}return n},Mh=(t=_h)=>{let e=new Map,n=null;return{get(r){if(e.has(r))return e.get(r);if(n?.has(r)){const o=n.get(r);return e.set(r,o),o}return Cr},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Wy=(t=_h)=>{const e=Mh(t);return{get(n){return e.get(n)},set(n,r){e.set(n,r)}}},Uy=(t=zy)=>{let e=new Map,n=null,r=0;return{get(o,i){const s=e.get(o);if(s){const a=s.get(i);if(a!==void 0||s.has(i))return a}if(n){const a=n.get(o);if(a){const c=a.get(i);if(c!==void 0||a.has(i)){let u=e.get(o);return u||(u=new Map,e.set(o,u)),u.has(i)||r++,u.set(i,c),c}}}return Cr},set(o,i,s){r>=t&&(n=e,e=new Map,r=0);let a=e.get(o);a||(a=new Map,e.set(o,a)),a.has(i)||r++,a.set(i,s)}}},Xc=(t,e)=>{let n=null;return(r,o)=>{if(!Vy(o))return r;const i=o.class,s=o.className;if(i!=null&&i!==""&&typeof i!="string"||s!=null&&s!==""&&typeof s!="string")return t(e,r,i,s);n??=Uy();const a=r??"",c=(typeof i=="string"?i:"")+"\0"+(typeof s=="string"?s:""),u=n.get(a,c);if(u!==Cr)return u;const d=t(e,r,i,s);return n.set(a,c,d),d}};function Hy(){let t=null,e={},n=!1;return{get cachedTwMerge(){return t},set cachedTwMerge(r){t=r},get cachedTwMergeConfig(){return e},set cachedTwMergeConfig(r){e=r},get didTwMergeConfigChange(){return n},set didTwMergeConfigChange(r){n=r},reset(){t=null,e={},n=!1}}}var ot=Hy(),Ky=t=>{!Ct(t.twMergeConfig)&&!Eh(t.twMergeConfig,ot.cachedTwMergeConfig)&&(ot.didTwMergeConfigChange=!0,ot.cachedTwMergeConfig=t.twMergeConfig)},jy=(t,e)=>{const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[o];n.push({key:o,values:i,isEmpty:Ct(i)})}return n},Gy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},qy=t=>{if(!Array.isArray(t)||t.length===0)return[];const e=[];for(let n=0;n<t.length;n++){const r=t[n],o=[];for(const i in r)i!=="slots"&&i!=="class"&&i!=="className"&&o.push(i);e.push({conditionKeys:o,source:r})}return e},Yy=t=>{const e={};for(let n=0;n<t.length;n++){const r=t[n],o=r.source.slots;if(Array.isArray(o))for(let i=0;i<o.length;i++){const s=o[i];e[s]||(e[s]=[]),e[s].push(r)}}return e},Xy=(t,e)=>{const{extend:n=null,slots:r={},variants:o={},compoundVariants:i=[],compoundSlots:s=[],defaultVariants:a={}}=t,c={...By,...e},u=t.slots!==void 0,d=n?.base?Us(n.base,t?.base):t?.base,f=n?.variants&&!Ct(n.variants)?Yc(o,n.variants):o,g=n?.defaultVariants&&!Ct(n.defaultVariants)?{...n.defaultVariants,...a}:a;Ky(c);const b=!n?.slots||Ct(n.slots),v=u?b&&n?.base?Us(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Us(t.base):void 0,m=u?{base:v,...r}:{},E=b?m:Ly({...n?.slots},Ct(m)?{base:t?.base}:m),T=!n?.compoundVariants||Ct(n.compoundVariants)?i:yc(n?.compoundVariants,i),O=!n?.compoundSlots||Ct(n.compoundSlots)?s:yc(n?.compoundSlots,s),A=Object.keys(f),y=T&&!Array.isArray(T)?new TypeError(`The "compoundVariants" prop must be an array. Received: ${typeof T}`):O&&!Array.isArray(O)?new TypeError(`The "compoundSlots" prop must be an array. Received: ${typeof O}`):null,x=u||!b?"slots":A.length===0?"plain":"variants";return{config:c,extend:n,base:d,variants:f,defaultVariants:g,slots:E,compoundVariants:T,compoundSlots:O,compiledVariants:null,compiledCompoundVariants:null,compiledCompoundSlots:null,compiledCompoundSlotsBySlot:null,deferredError:y,mode:x,slotKeys:null,variantKeys:A}},Rh=t=>(t.compiledVariants!==null||(t.compiledVariants=jy(t.variants,t.variantKeys),t.compiledCompoundVariants=Gy(t.compoundVariants),t.compiledCompoundSlots=qy(t.compoundSlots),t.compiledCompoundSlotsBySlot=Yy(t.compiledCompoundSlots),t.slotKeys=t.slots&&typeof t.slots=="object"?Object.keys(t.slots):[]),t),wc=[],Nh=[],Zy=[],Jy=[],Qy=[],Dh=(t,e,n)=>{const r={};for(const o in t)r[o]=t[o];if(e)for(const o in e)e[o]!==void 0&&(r[o]=e[o]);if(n)for(const o in n)n[o]!==void 0&&(r[o]=n[o]);return r},As=t=>t==null||t===!1,$y=(t,e)=>{if(!Array.isArray(t))return t===e||As(t)&&As(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||As(r)&&As(e))return!0}return!1},Fh=(t,e,n,r)=>{if(t.isEmpty)return null;const o=r?.[t.key]??n?.[t.key];if(o===null)return null;const i=vc(o);if(typeof i=="object")return null;const s=e?.[t.key],a=i??vc(s);return t.values[a||"false"]},Zc=(t,e)=>{const{conditionKeys:n,source:r}=t;for(let o=0;o<n.length;o++){const i=n[o];if(!$y(r[i],e[i]))return!1}return!0},gd=(t,e,n)=>{typeof n=="string"?e==="base"&&t.push(n):n&&typeof n=="object"&&n[e]&&t.push(n[e])},ew=(t,e,n)=>{const r=Nh;r.length=0;for(let o=0;o<t.length;o++){const i=Fh(t[o],e,n);i&&r.push(i)}return r},tw=(t,e,n,r,o)=>{const i=Nh;i.length=0;for(let s=0;s<e.length;s++){const a=Fh(e[s],n,r,o),c=t==="base"&&typeof a=="string"?a:a&&a[t];c&&i.push(c)}return i},nw=(t,e)=>{const n=Zy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Zc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},rw=(t,e,n)=>{const r=Jy;r.length=0;for(let o=0;o<e.length;o++){const i=e[o];Zc(i,n)&&(gd(r,t,i.source.class),gd(r,t,i.source.className))}return r},ow=(t,e)=>{const n=Qy;n.length=0;for(let r=0;r<t.length;r++){const o=t[r];Zc(o,e)&&(o.source.class&&n.push(o.source.class),o.source.className&&n.push(o.source.className))}return n},iw=(t,e)=>{const{base:n,config:r}=t;let o=Cr;const i=Xc(e,r);return(s=>(o===Cr&&(o=e(r,n)),i(o,s)))},sw=(t,e)=>{const{base:n,config:r,defaultVariants:o,deferredError:i,variantKeys:s}=t;let a=t.compiledCompoundVariants,c=t.compiledVariants,u=wc,d=null;const f=Xc(e,r);let g=1;const b=v=>{const m=a.length>0?nw(a,Dh(o,v)):void 0;return e(r,n,ew(c,o,v),m)};return(v=>{if(i)throw i;(c===null||a===null)&&(Rh(t),c=t.compiledVariants,a=t.compiledCompoundVariants,u=t.compiledCompoundSlots??wc);let m;if(g>0)g--,m=b(v);else{d??=Wy();const E=Ph(s,o,v);if(E!==null){const T=a.length>0||u.length>0?Ih(a,u):"",O=E+"#"+T,A=d.get(O);A!==Cr?m=A:(m=b(v),d.set(O,m))}else m=b(v)}return f(m,v)})},aw=(t,e)=>{const{config:n,defaultVariants:r,deferredError:o,slots:i,variantKeys:s}=t;let a=null,c=null,u=null,d=null,f=!1,g=null,b=null,v=1;const m=()=>{if(u!==null)return;(t.compiledVariants===null||t.compiledCompoundVariants===null||t.compiledCompoundSlots===null||t.compiledCompoundSlotsBySlot===null||t.slotKeys===null)&&Rh(t);const T=t.compiledVariants;a=t.compiledCompoundVariants,c=t.compiledCompoundSlots;const O=t.compiledCompoundSlotsBySlot;u=t.slotKeys,f=a.length>0||c.length>0,g=Xc(e,n);const A=new Array(u.length);for(let y=0;y<u.length;y++){const x=u[y],k=O[x]??wc;A[y]=(R,M)=>{const H=f?Dh(r,R,M):void 0,K=H?rw(x,a,H):void 0,ee=H?ow(k,H):void 0;return e(n,i[x],tw(x,T,r,R,M),K,ee)}}d=A},E=T=>{const O=u,A=d,y=g,x={};for(let k=0;k<O.length;k++){const R=A[k],M=R(T);x[O[k]]=H=>{if(H==null)return M;let K=!1;for(const ee in H)if(!(ee==="class"||ee==="className")&&H[ee]!==void 0){K=!0;break}return y(K?R(T,H):M,H)}}return x};return(T=>{if(o)throw o;if(m(),v>0)return v--,E(T);const O=Ph(s,r,T);if(O===null)return E(T);const A=f?Ih(a,c):"",y=O+"#"+A;b??=Mh();const x=b.get(y);if(x!==Cr)return x;const k=E(T);return b.set(y,k),k})},lw=(t,e)=>{if(t.mode==="plain")return iw(t,e);let n;return(r=>(n??=t.mode==="slots"?aw(t,e):sw(t,e),n(r)))},cw=(t,e)=>{t.variantKeys=e.variantKeys,t.extend=e.extend,t.base=e.base,t.slots=e.slots,t.variants=e.variants,t.defaultVariants=e.defaultVariants,t.compoundSlots=e.compoundSlots,t.compoundVariants=e.compoundVariants},uw=t=>{const e=(r,o)=>{const i=Xy(r,o),s=lw(i,t);return cw(s,i),s};return{tv:e,createTV:r=>(o,i)=>e(o,i?Yc(r,i):r)}},dw=(t,e)=>{const n=t.length,r=e.length,o=new Array(n+r);for(let i=0;i<n;i++)o[i]=t[i];for(let i=0;i<r;i++)o[n+i]=e[i];return o},fw=(t,e)=>({classGroupId:t,validator:e}),Lh=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),la="-",md=[],hw="arbitrary..",pw=t=>{const e=mw(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=t;return{getClassGroupId:s=>{if(s[0]==="["&&s[s.length-1]==="]")return gw(s);const a=s.split(la),c=a[0]===""&&a.length>1?1:0;return Bh(a,c,e)},getConflictingClassGroupIds:(s,a)=>{if(a){const c=r[s],u=n[s];return c?u?dw(u,c):c:u||md}return n[s]||md}}},Bh=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const o=t[e],i=n.nextPart.get(o);if(i){const u=Bh(t,e+1,i);if(u)return u}const s=n.validators;if(s===null)return;const a=e===0?t.join(la):t.slice(e).join(la),c=s.length;for(let u=0;u<c;u++){const d=s[u];if(d.validator(a))return d.classGroupId}},gw=t=>{const e=t.slice(1,-1),n=e.indexOf(":");if(n===-1)return;const r=e.slice(0,n);return r?hw+r:void 0},mw=t=>{const{theme:e,classGroups:n}=t;return bw(n,e)},bw=(t,e)=>{const n=Lh();for(const r in t){const o=t[r];Jc(o,n,r,e)}return n},Jc=(t,e,n,r)=>{const o=t.length;for(let i=0;i<o;i++){const s=t[i];vw(s,e,n,r)}},vw=(t,e,n,r)=>{if(typeof t=="string"){yw(t,e,n);return}if(typeof t=="function"){ww(t,e,n,r);return}Cw(t,e,n,r)},yw=(t,e,n)=>{const r=t===""?e:zh(e,t);r.classGroupId=n},ww=(t,e,n,r)=>{if(xw(t)){Jc(t(r),e,n,r);return}e.validators===null&&(e.validators=[]),e.validators.push(fw(n,t))},Cw=(t,e,n,r)=>{const o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){const[a,c]=o[s];Jc(c,zh(e,a),n,r)}},zh=(t,e)=>{let n=t;const r=e.split(la),o=r.length;for(let i=0;i<o;i++){const s=r[i];let a=n.nextPart.get(s);a||(a=Lh(),n.nextPart.set(s,a)),n=a}return n},xw=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,Sw="!",kw=58,Aw=47,Tw=91,Ew=93,Ow=40,_w=41,bd=33,Pw=(t,e,n,r)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:r,isExternal:void 0}),vd=t=>{const e=[];let n=0,r=0,o=0,i;const s=t.length;for(let g=0;g<s;g++){const b=t.charCodeAt(g);if(n===0&&r===0){if(b===kw){e.push(t.slice(o,g)),o=g+1;continue}if(b===Aw){i=g;continue}}b===Tw?n++:b===Ew?n--:b===Ow?r++:b===_w&&r--}const a=e.length===0?t:t.slice(o);let c=a,u=!1;const d=a.length-1;a.charCodeAt(d)===bd?(c=a.slice(0,-1),u=!0):a.charCodeAt(0)===bd&&(c=a.slice(1),u=!0);const f=i&&i>o?i-o:void 0;return Pw(e,u,c,f)},Iw=t=>{const e=new Set(t.orderSensitiveModifiers);return n=>{const r=[];let o=[];for(let i=0;i<n.length;i++){const s=n[i],a=s[0]==="[",c=e.has(s);if(a||c){if(o.length>0){o.sort();for(let u=0;u<o.length;u++)r.push(o[u]);o=[]}r.push(s)}else o.push(s)}if(o.length>0){o.sort();for(let i=0;i<o.length;i++)r.push(o[i])}return r}},kl={isExternal:!0,classId:-1,conflictIds:[]},Mw=4096,Rw=16384,Nw=t=>{const e=Iw(t),n=Dw(t),{getClassGroupId:r,getConflictingClassGroupIds:o}=pw(t);let i=Object.create(null),s=Object.create(null),a=0,c=new Int32Array(256),u=0,d=new Uint8Array(64),f=!1;const g=A=>{const y=[],x=A.length;let k=-1;f=!1;for(let R=0;R<x;R++){const M=A.charCodeAt(R);M===32?k!==-1&&(y.push(A.slice(k,R)),k=-1):M>=9&&M<=13?(f=!0,k!==-1&&(y.push(A.slice(k,R)),k=-1)):k===-1&&(k=R)}return k!==-1&&y.push(A.slice(k)),y},b=new Map;let v=0;const m=A=>{let y=b.get(A);if(y===void 0&&(y=v++,b.set(A,y),y>=c.length)){const x=new Int32Array(c.length*2);x.set(c),c=x}return y},E=A=>{const{isExternal:y,modifiers:x,hasImportantModifier:k,baseClassName:R,maybePostfixModifierPosition:M}=vd(A);if(y)return kl;let H=!!M,K;if(H){const Z=R.substring(0,M);K=r(Z);const re=K&&n[K]?r(R):void 0;re&&re!==K&&(K=re,H=!1)}else K=r(R);if(!K){if(!H||(K=r(R),!K))return kl;H=!1}const ee=x.length===0?"":x.length===1?x[0]:e(x).join(":"),W=k?ee+Sw:ee,Y=o(K,H),B=[];for(let Z=0;Z<Y.length;Z++)B.push(m(W+Y[Z]));return{isExternal:!1,classId:m(W+K),conflictIds:B}},T=A=>{let y=i[A];return y!==void 0||(y=s[A],y===void 0&&(y=E(A)),i[A]=y,++a>Mw&&(a=0,s=i,i=Object.create(null))),y};return{parseClassName:vd,sortModifiers:e,postfixLookupClassGroupIds:n,getClassGroupId:r,getConflictingClassGroupIds:o,getClassDescriptor:T,mergeClassList:A=>{const y=g(A),x=y.length;if(x===1)return y[0];v>Rw&&(b.clear(),v=0,i=Object.create(null),s=Object.create(null),a=0),u=u+1|0,u===0&&(u=1);const k=u;if(x>d.length){let K=d.length;for(;K<x;)K*=2;d=new Uint8Array(K)}let R=!1,M=0;for(let K=x-1;K>=0;K-=1){const ee=y[K];M+=ee.length;const W=T(ee);if(W.isExternal){d[K]=1;continue}const Y=W.classId;if(c[Y]===k){d[K]=0,R=!0;continue}c[Y]=k;const B=W.conflictIds;for(let Z=0;Z<B.length;Z++)c[B[Z]]=k;d[K]=1}if(!R&&!f&&A.length===M+x-1)return A;let H="";for(let K=0;K<x;K++)d[K]===1&&(H&&(H+=" "),H+=y[K]);return H}}},Dw=t=>{const e=Object.create(null),n=t.postfixLookupClassGroups;if(n)for(let r=0;r<n.length;r++)e[n[r]]=!0;return e},Fw=500,yd=t=>{let e,n,r=Object.create(null),o=Object.create(null),i=0;const s=u=>(e=Nw(t()),n=e.mergeClassList,c.mergeString=a,a(u)),a=u=>{let d=r[u];return d!==void 0||(d=o[u],d===void 0&&(d=n(u)),r[u]=d,++i>Fw&&(i=0,o=r,r=Object.create(null))),d},c=(...u)=>c.mergeString(il(u));return c.mergeString=s,c},Lw=[],Ue=t=>{const e=n=>n[t]||Lw;return e.isThemeGetter=!0,e},Vh=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wh=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Bw=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,zw=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Vw=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ww=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Uw=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Hw=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Uh=Number,Kw=Number.isNaN,jw=Number.isInteger,An=t=>Bw.test(t),le=t=>!!t&&!Kw(Uh(t)),zt=t=>!!t&&jw(Uh(t)),Al=t=>t.endsWith("%")&&le(t.slice(0,-1)),rn=t=>zw.test(t),Hh=()=>!0,Gw=t=>Vw.test(t)&&!Ww.test(t),Qc=()=>!1,qw=t=>Uw.test(t),Yw=t=>Hw.test(t),Xw=t=>!q(t)&&!X(t),Zw=t=>t.startsWith("@container")&&(t[10]==="/"&&t[11]!==void 0||t[11]==="s"&&t[16]!==void 0&&t.startsWith("-size/",10)||t[11]==="n"&&t[18]!==void 0&&t.startsWith("-normal/",10)),Jw=t=>Yn(t,Gh,Qc),q=t=>Vh.test(t),$n=t=>Yn(t,qh,Gw),wd=t=>Yn(t,iC,le),Qw=t=>Yn(t,Xh,Hh),$w=t=>Yn(t,Yh,Qc),Cd=t=>Yn(t,Kh,Qc),eC=t=>Yn(t,jh,Yw),Ts=t=>Yn(t,Zh,qw),X=t=>Wh.test(t),po=t=>kr(t,qh),tC=t=>kr(t,Yh),xd=t=>kr(t,Kh),nC=t=>kr(t,Gh),rC=t=>kr(t,jh),Es=t=>kr(t,Zh,!0),oC=t=>kr(t,Xh,!0),Yn=(t,e,n)=>{const r=Vh.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},kr=(t,e,n=!1)=>{const r=Wh.exec(t);return r?r[1]?e(r[1]):n:!1},Kh=t=>t==="position"||t==="percentage",jh=t=>t==="image"||t==="url",Gh=t=>t==="length"||t==="size"||t==="bg-size",qh=t=>t==="length",iC=t=>t==="number",Yh=t=>t==="family-name",Xh=t=>t==="number"||t==="weight",Zh=t=>t==="shadow",Tl=()=>{const t=Ue("color"),e=Ue("font"),n=Ue("text"),r=Ue("font-weight"),o=Ue("tracking"),i=Ue("leading"),s=Ue("breakpoint"),a=Ue("container"),c=Ue("spacing"),u=Ue("radius"),d=Ue("shadow"),f=Ue("inset-shadow"),g=Ue("text-shadow"),b=Ue("drop-shadow"),v=Ue("blur"),m=Ue("perspective"),E=Ue("aspect"),T=Ue("ease"),O=Ue("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],y=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],x=()=>[...y(),X,q],k=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],M=()=>[X,q,c],H=()=>[An,"full","auto",...M()],K=()=>[zt,"none","subgrid",X,q],ee=()=>["auto",{span:["full",zt,X,q]},zt,X,q],W=()=>[zt,"auto",X,q],Y=()=>["auto","min","max","fr",X,q],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],Z=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...M()],ie=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ne=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...M()],fe=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],P=()=>[t,X,q],de=()=>[...y(),xd,Cd,{position:[X,q]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V=()=>["auto","cover","contain",nC,Jw,{size:[X,q]}],ze=()=>[Al,po,$n],he=()=>["","none","full",u,X,q],be=()=>["",le,po,$n],ve=()=>["solid","dashed","dotted","double"],S=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[le,Al,xd,Cd],Ge=()=>["","none",v,X,q],j=()=>["none",le,X,q],Me=()=>["none",le,X,q],it=()=>[le,X,q],qe=()=>[An,"full",...M()];return{theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[rn],breakpoint:[rn],color:[Hh],container:[rn],"drop-shadow":[rn],ease:["in","out","in-out"],font:[Xw],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[rn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[rn],shadow:[rn],spacing:["px",le],text:[rn],"text-shadow":[rn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",An,q,X,E]}],container:["container"],"container-type":[{"@container":["","normal","size",X,q]}],"container-named":[Zw],columns:[{columns:[le,q,X,a]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:x()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:H()}],"inset-x":[{"inset-x":H()}],"inset-y":[{"inset-y":H()}],start:[{"inset-s":H(),start:H()}],end:[{"inset-e":H(),end:H()}],"inset-bs":[{"inset-bs":H()}],"inset-be":[{"inset-be":H()}],top:[{top:H()}],right:[{right:H()}],bottom:[{bottom:H()}],left:[{left:H()}],visibility:["visible","invisible","collapse"],z:[{z:[zt,"auto",X,q]}],basis:[{basis:[An,"full","auto",a,...M()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[le,An,"auto","initial","none",q]}],grow:[{grow:["",le,X,q]}],shrink:[{shrink:["",le,X,q]}],order:[{order:[zt,"first","last","none",X,q]}],"grid-cols":[{"grid-cols":K()}],"col-start-end":[{col:ee()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":K()}],"row-start-end":[{row:ee()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":Y()}],"auto-rows":[{"auto-rows":Y()}],gap:[{gap:M()}],"gap-x":[{"gap-x":M()}],"gap-y":[{"gap-y":M()}],"justify-content":[{justify:[...B(),"normal"]}],"justify-items":[{"justify-items":[...Z(),"normal"]}],"justify-self":[{"justify-self":["auto",...Z()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...Z(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...Z(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...Z(),"baseline"]}],"place-self":[{"place-self":["auto",...Z()]}],p:[{p:M()}],px:[{px:M()}],py:[{py:M()}],ps:[{ps:M()}],pe:[{pe:M()}],pbs:[{pbs:M()}],pbe:[{pbe:M()}],pt:[{pt:M()}],pr:[{pr:M()}],pb:[{pb:M()}],pl:[{pl:M()}],m:[{m:re()}],mx:[{mx:re()}],my:[{my:re()}],ms:[{ms:re()}],me:[{me:re()}],mbs:[{mbs:re()}],mbe:[{mbe:re()}],mt:[{mt:re()}],mr:[{mr:re()}],mb:[{mb:re()}],ml:[{ml:re()}],"space-x":[{"space-x":M()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":M()}],"space-y-reverse":["space-y-reverse"],size:[{size:ie()}],"inline-size":[{inline:["auto",...ne()]}],"min-inline-size":[{"min-inline":["auto",...ne()]}],"max-inline-size":[{"max-inline":["none",...ne()]}],"block-size":[{block:["auto",...fe()]}],"min-block-size":[{"min-block":["auto",...fe()]}],"max-block-size":[{"max-block":["none",...fe()]}],w:[{w:[a,"screen",...ie()]}],"min-w":[{"min-w":[a,"screen","none",...ie()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ie()]}],h:[{h:["screen","lh",...ie()]}],"min-h":[{"min-h":["screen","lh","none",...ie()]}],"max-h":[{"max-h":["screen","lh",...ie()]}],"font-size":[{text:["base",n,po,$n]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,oC,Qw]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Al,q]}],"font-family":[{font:[tC,$w,e]}],"font-features":[{"font-features":[q]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,X,q]}],"line-clamp":[{"line-clamp":[le,"none",X,wd]}],leading:[{leading:[i,...M()]}],"list-image":[{"list-image":["none",X,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",X,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",X,$n]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[le,"auto",X,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:M()}],"tab-size":[{tab:[zt,X,q]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",X,q]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",X,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:V()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},zt,X,q],radial:["",X,q],conic:[zt,X,q]},rC,eC]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:ze()}],"gradient-via-pos":[{via:ze()}],"gradient-to-pos":[{to:ze()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:be()}],"border-w-x":[{"border-x":be()}],"border-w-y":[{"border-y":be()}],"border-w-s":[{"border-s":be()}],"border-w-e":[{"border-e":be()}],"border-w-bs":[{"border-bs":be()}],"border-w-be":[{"border-be":be()}],"border-w-t":[{"border-t":be()}],"border-w-r":[{"border-r":be()}],"border-w-b":[{"border-b":be()}],"border-w-l":[{"border-l":be()}],"divide-x":[{"divide-x":be()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":be()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-bs":[{"border-bs":P()}],"border-color-be":[{"border-be":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,X,q]}],"outline-w":[{outline:["",le,po,$n]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",d,Es,Ts]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",f,Es,Ts]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:be()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[le,$n]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":be()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",g,Es,Ts]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[le,X,q]}],"mix-blend":[{"mix-blend":[...S(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":S()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[le]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[X,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":y()}],"mask-image-conic-pos":[{"mask-conic":[le]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:V()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:Ge()}],brightness:[{brightness:[le,X,q]}],contrast:[{contrast:[le,X,q]}],"drop-shadow":[{"drop-shadow":["","none",b,Es,Ts]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",le,X,q]}],"hue-rotate":[{"hue-rotate":[le,X,q]}],invert:[{invert:["",le,X,q]}],saturate:[{saturate:[le,X,q]}],sepia:[{sepia:["",le,X,q]}],"backdrop-filter":[{"backdrop-filter":["","none",X,q]}],"backdrop-blur":[{"backdrop-blur":Ge()}],"backdrop-brightness":[{"backdrop-brightness":[le,X,q]}],"backdrop-contrast":[{"backdrop-contrast":[le,X,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",le,X,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[le,X,q]}],"backdrop-invert":[{"backdrop-invert":["",le,X,q]}],"backdrop-opacity":[{"backdrop-opacity":[le,X,q]}],"backdrop-saturate":[{"backdrop-saturate":[le,X,q]}],"backdrop-sepia":[{"backdrop-sepia":["",le,X,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":M()}],"border-spacing-x":[{"border-spacing-x":M()}],"border-spacing-y":[{"border-spacing-y":M()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",X,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[le,"initial",X,q]}],ease:[{ease:["linear","initial",T,X,q]}],delay:[{delay:[le,X,q]}],animate:[{animate:["none",O,X,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[m,X,q]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:j()}],"rotate-x":[{"rotate-x":j()}],"rotate-y":[{"rotate-y":j()}],"rotate-z":[{"rotate-z":j()}],scale:[{scale:Me()}],"scale-x":[{"scale-x":Me()}],"scale-y":[{"scale-y":Me()}],"scale-z":[{"scale-z":Me()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:qe()}],"translate-x":[{"translate-x":qe()}],"translate-y":[{"translate-y":qe()}],"translate-z":[{"translate-z":qe()}],"translate-none":["translate-none"],zoom:[{zoom:[zt,X,q]}],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",X,q]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":P()}],"scrollbar-track-color":[{"scrollbar-track":P()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":M()}],"scroll-mx":[{"scroll-mx":M()}],"scroll-my":[{"scroll-my":M()}],"scroll-ms":[{"scroll-ms":M()}],"scroll-me":[{"scroll-me":M()}],"scroll-mbs":[{"scroll-mbs":M()}],"scroll-mbe":[{"scroll-mbe":M()}],"scroll-mt":[{"scroll-mt":M()}],"scroll-mr":[{"scroll-mr":M()}],"scroll-mb":[{"scroll-mb":M()}],"scroll-ml":[{"scroll-ml":M()}],"scroll-p":[{"scroll-p":M()}],"scroll-px":[{"scroll-px":M()}],"scroll-py":[{"scroll-py":M()}],"scroll-ps":[{"scroll-ps":M()}],"scroll-pe":[{"scroll-pe":M()}],"scroll-pbs":[{"scroll-pbs":M()}],"scroll-pbe":[{"scroll-pbe":M()}],"scroll-pt":[{"scroll-pt":M()}],"scroll-pr":[{"scroll-pr":M()}],"scroll-pb":[{"scroll-pb":M()}],"scroll-pl":[{"scroll-pl":M()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",X,q]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[le,po,$n,wd]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sC=(t,{extend:e={},override:n={}})=>(Os(t.theme,n.theme),Os(t.classGroups,n.classGroups),Os(t.conflictingClassGroups,n.conflictingClassGroups),Os(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Cc(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),Cc(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),_s(t.theme,e.theme),_s(t.classGroups,e.classGroups),_s(t.conflictingClassGroups,e.conflictingClassGroups),_s(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),xc(t,e,"postfixLookupClassGroups"),xc(t,e,"orderSensitiveModifiers"),t),Cc=(t,e,n)=>{n!==void 0&&(t[e]=n)},Os=(t,e)=>{if(e)for(const n in e)Cc(t,n,e[n])},_s=(t,e)=>{if(e)for(const n in e)xc(t,e,n)},xc=(t,e,n)=>{const r=e[n];r!==void 0&&(t[n]=t[n]?t[n].concat(r):r)},Jh=t=>yd(t?typeof t=="function"?()=>t(Tl()):()=>sC(Tl(),t):Tl),aC=t=>{if(Ct(t))return;const e=t,n={...e.extend??{}};for(const o of["theme","classGroups","conflictingClassGroups","conflictingClassGroupModifiers","postfixLookupClassGroups","orderSensitiveModifiers","cacheSize","prefix","separator","experimentalParseClassName"])e[o]!==void 0&&n[o]===void 0&&(n[o]=e[o]);const r={};if(Object.keys(n).length>0&&(r.extend=n),e.override!=null&&!Ct(e.override)&&(r.override=e.override),!(!r.extend&&!r.override))return r},lC=t=>{const e=aC(t),n=Jh(e);return r=>n.mergeString(r)},Hs,cC=()=>(Hs||(Hs=Jh()),Hs),uC=()=>((!ot.cachedTwMerge||ot.didTwMergeConfigChange)&&(ot.didTwMergeConfigChange=!1,ot.cachedTwMerge=lC(ot.cachedTwMergeConfig)),ot.cachedTwMerge),dC=t=>{const e=t?.twMergeConfig;!e||Ct(e)||Eh(e,ot.cachedTwMergeConfig)||(ot.cachedTwMergeConfig=e,ot.didTwMergeConfigChange=!0)},fC=t=>il(t),hC=ot.reset.bind(ot);ot.reset=()=>{Hs=void 0,hC()};var pC=(t,e)=>{const n=fC(t);return!n||!(e?.twMerge??!0)?n||void 0:n.indexOf(" ")===-1?n:(dC(e),(!!(e?.twMergeConfig&&!Ct(e.twMergeConfig))?uC():cC().mergeString)(n)||void 0)},gC=(t,...e)=>pC(e,t),mC=uw(gC),Qh=mC.tv;const Lx={gray:"hsl(var(--accent))",red:"var(--color-red-500)",orange:"var(--color-orange-500)",amber:"var(--color-amber-500)",yellow:"var(--color-yellow-500)",lime:"var(--color-lime-500)",green:"var(--color-green-500)",emerald:"var(--color-emerald-500)",teal:"var(--color-teal-500)",cyan:"var(--color-cyan-500)",blue:"var(--color-blue-500)",indigo:"var(--color-indigo-500)",violet:"var(--color-violet-500)",purple:"var(--color-purple-500)",fuchsia:"var(--color-fuchsia-500)",pink:"var(--color-pink-500)",rose:"var(--color-rose-500)"},bC={default:{variant:"solid",color:"gray"},secondary:{variant:"solid",color:"gray"},outline:{variant:"dot",color:"gray"},destructive:{variant:"solid",color:"red"},success:{variant:"solid",color:"green"},info:{variant:"solid",color:"blue"}};function Bx(t="solid",e){const n=t==="solid"||t==="dot"?{variant:t,color:"gray"}:bC[t];return{...n,color:e??n.color}}const zx=Qh({base:"inline-flex w-fit shrink-0 items-center justify-center overflow-hidden whitespace-nowrap rounded-(--radius-medium) font-medium text-foreground transition-[background-color,color,box-shadow] duration-spring-fast ease-spring-fast motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:size-3",variants:{variant:{solid:"",dot:"border border-border"},size:{default:"h-6 px-2.5 text-[12px] gap-1.5",compact:"h-5 px-2 text-[11px] gap-1"}},defaultVariants:{variant:"solid",size:"default"}}),vC=[{id:"skeleton-state-matrix",title:"Skeleton loading states",states:["default","line","avatar","card","shimmer","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Ac({id:"skeleton",source:"src/lib/components/ui/skeleton/skeleton.svelte",publicImport:"$lib/components/ui/skeleton",legacyImports:["$lib/components/ui/skeleton/index.js","$lib/components/ui/skeleton/skeleton.svelte"],exports:["Root","Skeleton","skeletonMetadata"],category:"primitive",owner:"007-B1",callers:["src/features/discussions/components/DiscussionSkeleton.svelte","src/features/file-tracking/components/diff/TrackedChangeDiffViewer.svelte","src/features/home/HomeLoading.svelte","src/features/hud/components/DockConversationPanel.svelte","src/features/inline-html/InlineHtmlPreview.svelte","src/features/layout/tab-types/FileTabType.svelte","src/features/layout/tab-types/NoteTabType.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte","src/lib/components/CommandPalette.svelte","src/lib/components/chat/ChatChangesPanel.svelte","src/lib/components/chat/ChatPanel.svelte","src/lib/components/code-review/CodeReviewTabContent.svelte","src/lib/components/file-explorer/file-tree-view.svelte","src/lib/components/notes/primitives/ReferenceBlock.svelte","src/lib/components/patterns/screen/LoadingState.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/ui/sidebar/sidebar-menu-skeleton.svelte","src/lib/components/ui/tooltip/GitHubLinkCard.svelte","src/lib/components/workspace/CheckoutModePill.svelte","src/lib/components/workspace/ContentSkeleton.svelte","src/lib/components/workspace/NoteWithComments.svelte","src/lib/components/workspace/PullRequestCreator.svelte","src/lib/components/workspace/SidebarSkeleton.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte","src/lib/components/workspace/WorkspaceHoverCard.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/sidebar/NotesPanel.svelte","src/lib/components/workspace/sidebar/SecondaryRootChangesView.svelte","src/lib/components/workspace/sidebar/SidebarChangesPanel.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/skeleton/skeleton.test.ts",removalGate:"Retain while exported and loading, reduced-motion, and fixture tests pass.",dynamicImports:[],fixtures:vC});const nr=class nr{constructor(){_(this,"subscribers",new Map([["second",new Set],["minute",new Set],["hour",new Set],["day",new Set]]));_(this,"intervals",new Map([["second",null],["minute",null],["hour",null],["day",null]]));_(this,"INTERVALS",{second:1e3,minute:60*1e3,hour:3600*1e3,day:1440*60*1e3})}static getInstance(){return nr.instance||(nr.instance=new nr),nr.instance}getBucket(e){const n=Math.abs(Date.now()-e.getTime()),r=Math.floor(n/6e4);return r<1?"second":r<60?"minute":r<1440?"hour":"day"}ensureInterval(e){if(this.intervals.get(e))return;const n=setInterval(()=>{const r=this.subscribers.get(e);r&&r.forEach(o=>{o.callback();const i=o.fixedBucket??this.getBucket(o.targetDate);i!==e&&(r.delete(o),this.subscribers.get(i)?.add(o),this.ensureInterval(i),this.cleanupIntervalIfEmpty(e))})},this.INTERVALS[e]);this.intervals.set(e,n)}cleanupIntervalIfEmpty(e){const n=this.subscribers.get(e);if(n&&n.size===0){const r=this.intervals.get(e);r&&(clearInterval(r),this.intervals.set(e,null))}}subscribe(e,n,r){const o=r??this.getBucket(e),i={callback:n,targetDate:e,fixedBucket:r};return this.subscribers.get(o)?.add(i),this.ensureInterval(o),()=>{for(const[s,a]of this.subscribers)if(a.has(i)){a.delete(i),this.cleanupIntervalIfEmpty(s);break}}}getSubscriberCount(){let e=0;for(const n of this.subscribers.values())e+=n.size;return e}getActiveIntervalCount(){let e=0;for(const n of this.intervals.values())n&&e++;return e}};_(nr,"instance",null);let Sc=nr;const Vx=Sc.getInstance(),yC=[{id:"tooltip-interaction",title:"Tooltip interaction and content states",states:["closed","open","hover-delay","keyboard-focus","escape-dismiss","portal","arrow","disabled","rich-content","shortcut","spring-enter","crisp-exit","long-content","compact","zoom-200","light","dark","reduced-motion"],themes:["light","dark"],viewport:"both",reducedMotion:!0},{id:"tooltip-open-state",title:"Tooltip open state",states:["open-on-mount","portal","arrow","escape-dismiss","trigger-focus-preserved"],themes:["light","dark"],viewport:"both",reducedMotion:!0}];Ac({id:"tooltip",source:"src/lib/components/ui/tooltip/index.ts",publicImport:"$lib/components/ui/tooltip",legacyImports:["$lib/components/ui/tooltip/LinkTooltip.svelte","$lib/components/ui/tooltip/Tooltip.svelte","$lib/components/ui/tooltip/TooltipRich.svelte","$lib/components/ui/tooltip/index.js","$lib/components/ui/tooltip/link-tooltip-state.svelte"],exports:["Content","LinkTooltip","Portal","Provider","Root","Tooltip","TooltipContent","TooltipPortal","TooltipProvider","TooltipRich","TooltipRoot","TooltipShortcut","TooltipTrigger","Trigger","formatUrlForDisplay","hideLinkTooltip","showLinkTooltip","tooltipMetadata"],usage:`<script lang="ts">
10
- import * as Tooltip from '$lib/components/ui/tooltip';
11
- <\/script>
12
-
13
- <Tooltip.Provider>
14
- <Tooltip.Root>
15
- <Tooltip.Trigger>Keyboard help</Tooltip.Trigger>
16
- <Tooltip.Content>Press Command K to open navigation.</Tooltip.Content>
17
- </Tooltip.Root>
18
- </Tooltip.Provider>`,category:"pattern",owner:"012-F2",callers:["src/features/layout/components/content-header/ContentHeader.svelte","src/features/notes/note-presence/NotePresenceAvatars.svelte","src/features/onboarding/messages/ProviderCard.svelte","src/features/onboarding/messages/WorkspaceSetupCard.svelte","src/features/presence/components/PresenceAvatarStack.svelte","src/lib/component-catalog/renderers/NavigationHelpCatalogPreview.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/components/chat/AgentSubscriptions.svelte","src/lib/components/chat/ChatMessage.svelte","src/lib/components/chat/ContextEngineToolCall.svelte","src/lib/components/chat/EventWakeupBanner.svelte","src/lib/components/chat/InlineAgentAvatar.svelte","src/lib/components/chat/MessageActions.svelte","src/lib/components/chat/QueuedMessageList.svelte","src/lib/components/chat/SuggestedPrompts.svelte","src/lib/components/chat/input/ContextPickerButton.svelte","src/lib/components/chat/input/SimpleRichInput.svelte","src/lib/components/layout/DaemonStatusIndicator.svelte","src/lib/components/layout/WindowTitleBar.svelte","src/lib/components/layout/panel-system/PanelTabBar.svelte","src/lib/components/layout/sidebar-nav/cards/ChiefCard.svelte","src/lib/components/modals/PullConflictDialog.svelte","src/lib/components/notes/primitives/DiagramBlock.svelte","src/lib/components/settings/AIBehaviorSidebar.svelte","src/lib/components/terminal/QuakeTerminalOverlay.svelte","src/lib/components/terminal/RootQuakeTerminalOverlay.svelte","src/lib/components/tiptap/BubbleMenu.svelte","src/lib/components/tiptap/ContextMentionNodeView.svelte","src/lib/components/tiptap/PasteChipNodeView.svelte","src/lib/components/tiptap/TaskItemNodeView.svelte","src/lib/components/ui/CopyButton.svelte","src/lib/components/ui/copy-input/copy-input.svelte","src/lib/components/ui/button/button.svelte","src/lib/components/ui/grouped-combobox/grouped-combobox.svelte","src/lib/components/ui/indicators/AgentBadge.svelte","src/lib/components/ui/list/ListItem.svelte","src/lib/components/ui/searchable-combobox/searchable-combobox.svelte","src/lib/components/ui/sidebar/sidebar-menu-button.svelte","src/lib/components/ui/sidebar/sidebar-provider.svelte","src/lib/components/workspace/CompactWorkspaceInitializer.svelte","src/lib/components/workspace/TaskProgressBar.svelte","src/lib/components/workspace/WorkspaceCard.svelte","src/lib/components/workspace/initializer/BranchSelector.svelte","src/lib/components/workspace/initializer/IssueSuggestions.svelte","src/lib/components/workspace/initializer/SetupScriptEditor.svelte","src/lib/components/workspace/sidebar/BranchDisplay.svelte","src/lib/components/workspace/sidebar/ContextItemRow.svelte","src/lib/components/workspace/sidebar/FileChangesSection.svelte","src/lib/components/workspace/sidebar/FlameGraph.svelte","src/lib/components/workspace/sidebar/McpServersSection.svelte","src/lib/components/workspace/sidebar/MergePanel.svelte","src/lib/components/workspace/sidebar/SidebarSectionTabs.svelte","src/lib/components/workspace/sidebar/WorkspaceProgressCard.svelte","src/lib/components/workspace/sidebar/WorkspaceTokenUsage.svelte","src/routes/(app)/+layout.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/tooltip/github-link-preview.test.ts",removalGate:"Retain while callers need the pattern and repository preview data contracts pass.",dynamicImports:["src/features/navigation/link-handler.ts"],fixtures:yC});const wC=[{value:"primary",label:"Primary",guidance:"One highest-priority action per region."},{value:"secondary",label:"Secondary",guidance:"Supporting actions that remain visible."},{value:"ghost",label:"Ghost",guidance:"Low-emphasis or repeated toolbar actions."},{value:"destructive",label:"Destructive",guidance:"Irreversible or damaging actions only."}],CC=[{value:"sm",iconValue:"icon-sm",label:"Small"},{value:"default",iconValue:"icon",label:"Medium"},{value:"lg",iconValue:"icon-lg",label:"Large"}],xC=[{prop:"variant",alias:"default",replacement:"secondary"},{prop:"variant",alias:"tertiary",replacement:"outline"},{prop:"variant",alias:"neumorphic",replacement:"outline"},{prop:"size",alias:"xs",replacement:"compact"},{prop:"size",alias:"icon-xs",replacement:"icon-compact"}],El="border border-border text-foreground hover:bg-hover active:bg-active",SC=Qh({base:"type-caption group/button relative isolate inline-flex shrink-0 cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap rounded-(--radius-medium) border-0 bg-transparent font-normal transition-[color,opacity,background-color] duration-spring-fast ease-spring-fast disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50 aria-invalid:ring-1 aria-invalid:ring-danger motion-reduce:transition-none [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{primary:"text-primary-foreground",default:"text-secondary-foreground",destructive:"bg-danger text-danger-background",outline:El,tertiary:El,secondary:"text-secondary-foreground",ghost:"text-foreground","ghost-light":"text-muted-foreground hover:text-foreground",underline:"text-muted-foreground underline decoration-border underline-offset-3 hover:text-foreground",plain:"text-inherit font-inherit",link:"text-primary-ink underline-offset-4 hover:underline",neumorphic:El},size:{default:"h-(--control-height-medium) px-4 [--button-icon-padding:0.75rem]",compact:"h-(--control-height-compact) gap-1 px-3 [--button-icon-padding:0.375rem]",xs:"h-(--control-height-compact) gap-1 px-3 [--button-icon-padding:0.375rem]",sm:"h-(--control-height-small) gap-1 px-3 [--button-icon-padding:0.375rem]",lg:"h-(--control-height-large) px-4 [--button-icon-padding:0.75rem]",xl:"h-(--control-height-large) px-5 [--button-icon-padding:1rem]",icon:"size-(--control-height-medium) p-0 [&_svg]:size-4","icon-compact":"size-(--control-height-compact) p-0 [&_svg]:size-3.5","icon-sm":"size-(--control-height-small) p-0 [&_svg]:size-4","icon-xs":"size-(--control-height-compact) p-0 [&_svg]:size-3","icon-lg":"size-(--control-height-large) p-0 [&_svg]:size-4"},leadingIcon:{true:"pl-[var(--button-icon-padding)]"},trailingIcon:{true:"pr-[var(--button-icon-padding)]"}},compoundVariants:[{variant:"plain",class:"px-0 py-0"}],defaultVariants:{variant:"secondary",size:"default"}}),Ol="bg-active hover:bg-active active:bg-active",kC={outline:Ol,tertiary:Ol,neumorphic:Ol},$h={primary:"bg-primary shadow-(--elevation-raised) group-hover/button:brightness-95 group-active/button:brightness-90 group-active/button:shadow-none",default:"bg-secondary shadow-(--elevation-raised) group-hover/button:brightness-95 group-active/button:brightness-90 group-active/button:shadow-none",secondary:"bg-secondary shadow-(--elevation-raised) group-hover/button:brightness-95 group-active/button:brightness-90 group-active/button:shadow-none",destructive:"bg-danger shadow-(--elevation-raised) group-hover/button:brightness-95 group-active/button:brightness-90 group-active/button:shadow-none",outline:"bg-transparent shadow-none",tertiary:"bg-transparent shadow-none",neumorphic:"bg-transparent shadow-none",ghost:"bg-transparent shadow-[0_0_0_1px_transparent] group-hover/button:bg-hover group-hover/button:shadow-[0_0_0_1px_var(--hover)] group-active/button:bg-active group-active/button:shadow-[0_0_0_0_var(--active)]","ghost-light":"bg-transparent shadow-[0_0_0_1px_transparent] group-hover/button:bg-hover group-hover/button:shadow-[0_0_0_1px_var(--hover)] group-active/button:bg-active group-active/button:shadow-[0_0_0_0_var(--active)]",underline:"bg-transparent shadow-[0_0_0_1px_transparent]",plain:"bg-transparent shadow-[0_0_0_1px_transparent]",link:"bg-transparent shadow-[0_0_0_1px_transparent]"},AC={...$h,primary:"bg-primary brightness-90 shadow-none",default:"bg-secondary brightness-90 shadow-none",secondary:"bg-secondary brightness-90 shadow-none",destructive:"bg-danger brightness-90 shadow-none",ghost:"bg-active shadow-[0_0_0_1px_var(--active)] group-active/button:shadow-[0_0_0_0_var(--active)]","ghost-light":"bg-active shadow-[0_0_0_1px_var(--active)] group-active/button:shadow-[0_0_0_0_var(--active)]"};var TC=new Set(["$$slots","$$events","$$legacy","class","variant","size","ref","href","type","disabled","loading","active","wrapContent","truncateLabel","labelClass","iconOnly","leadingIcon","trailingIcon","onclick","children","tooltip","tooltipDisabled","tooltipShortcut","tooltipSide","tooltipAlign","tooltipDelayDuration","tooltipClass","tooltipContentClass","aria-label","aria-labelledby","title"]),EC=je('<span data-slot="button-leading-icon" class="inline-flex shrink-0 items-center justify-center"><!></span>'),OC=je('<span data-slot="button-trailing-icon" class="inline-flex shrink-0 items-center justify-center"><!></span>'),_C=je('<span data-slot="button-content" style="gap: inherit; justify-content: inherit"><!> <span data-slot="button-label"><!></span> <!></span>'),PC=je('<span data-slot="button-spinner" class="pointer-events-none absolute inset-0 flex items-center justify-center" aria-hidden="true"><!></span>'),IC=je('<span data-slot="button-surface" style="border-radius: inherit" aria-hidden="true"></span> <!> <!>',1),MC=je("<a><!></a>"),RC=je("<button><!></button>"),NC=je('<div style="display: contents;"><!></div>');function DC(t,e){if(new.target)return Ae({component:DC,...t});Oe(e,!0);const n=j=>{var Me=IC(),it=se(Me),qe=mn(it,2);{var Lt=Ne=>{var nt=_C();let st;var xn=Ke(nt);{var Xn=Je=>{var gt=EC(),Zn=Ke(gt);me(Zn,T),Fe(gt),Q(Je,gt)};Ie(xn,Je=>{T()&&Je(Xn)})}var kt=mn(xn,2),at=Ke(kt);me(at,()=>y()??we),Fe(kt);var At=mn(kt,2);{var nn=Je=>{var gt=OC(),Zn=Ke(gt);me(Zn,O),Fe(gt),Q(Je,gt)};Ie(At,Je=>{O()&&Je(nn)})}Fe(nt),vr(Je=>{st=yo(nt,1,"relative inline-flex min-w-0 max-w-full flex-1 items-center [&_svg]:transition-[stroke-width] [&_svg]:duration-spring-fast motion-reduce:[&_svg]:transition-none",null,st,{"opacity-0":f()}),yo(kt,1,Je)},[()=>Ks(Kn("min-w-0 max-w-full flex-1",v()&&"truncate",m()))]),Q(Ne,nt)},Ye=Ne=>{var nt=ue(),st=se(nt);me(st,()=>y()??we),Q(Ne,nt)};Ie(qe,Ne=>{b()?Ne(Lt):Ne(Ye,-1)})}var Ve=mn(qe,2);{var Re=Ne=>{var nt=PC(),st=Ke(nt);vp(st,{variant:"bloom",get size(){return w(de)},get playing(){return f()},get class(){return w(xe)}}),Fe(nt),Q(Ne,nt)};Ie(Ve,Ne=>{f()&&Ne(Re)})}vr(()=>yo(it,1,Ks(w(P)))),Q(j,Me)},r=j=>{var Me=NC(),it=Ke(Me);{var qe=Ye=>{var Ve=MC();Jt(Ve,()=>({"data-slot":"button",class:w(fe),href:c(),"data-state":g()?"active":void 0,"aria-label":w(ze),"aria-labelledby":B(),title:Z(),"aria-busy":f()||void 0,"aria-disabled":w(V)||void 0,role:w(V)?"link":void 0,tabindex:w(V)?-1:void 0,onclick:w(V)?Ne=>Ne.preventDefault():A(),...re}));var Re=Ke(Ve);n(Re),Fe(Ve),Q(Ye,Ve)},Lt=Ye=>{var Ve=RC();Jt(Ve,()=>({"data-slot":"button",class:w(fe),type:u(),"data-state":g()?"active":void 0,disabled:w(V),"aria-label":w(ze),"aria-labelledby":B(),title:Z(),"aria-busy":f()||void 0,onclick:w(V)?Ne=>Ne.preventDefault():A(),...re}));var Re=Ke(Ve);n(Re),Fe(Ve),Q(Ye,Ve)};Ie(it,Ye=>{c()?Ye(qe):Ye(Lt,-1)})}Fe(Me),Td(Me,Ye=>N(he,Ye),()=>w(he)),Q(j,Me)};let o=h(e,"class",7),i=h(e,"variant",7,"default"),s=h(e,"size",7,void 0),a=h(e,"ref",15),c=h(e,"href",7,void 0),u=h(e,"type",7,"button"),d=h(e,"disabled",7),f=h(e,"loading",7,!1),g=h(e,"active",7,!1),b=h(e,"wrapContent",7,!0),v=h(e,"truncateLabel",7,!0),m=h(e,"labelClass",7,void 0),E=h(e,"iconOnly",7,!1),T=h(e,"leadingIcon",7),O=h(e,"trailingIcon",7),A=h(e,"onclick",7),y=h(e,"children",7),x=h(e,"tooltip",7,void 0),k=h(e,"tooltipDisabled",7,!1),R=h(e,"tooltipShortcut",7,void 0),M=h(e,"tooltipSide",7,"top"),H=h(e,"tooltipAlign",7,"center"),K=h(e,"tooltipDelayDuration",7,200),ee=h(e,"tooltipClass",7,void 0),W=h(e,"tooltipContentClass",7,void 0),Y=h(e,"aria-label",7),B=h(e,"aria-labelledby",7),Z=h(e,"title",7),re=xr(e,TC);const ie=My(),ne=U(()=>s()??(ie==="compact"?"compact":"default")),fe=U(()=>Kn(SC({variant:i(),size:w(ne),leadingIcon:!!T(),trailingIcon:!!O()}),!b()&&(w(ne)==="xs"||w(ne)==="sm"||w(ne)==="compact")&&"has-[>svg]:pl-2 has-[>svg]:pr-2.5",o(),g()&&kC[i()])),P=U(()=>Kn("pointer-events-none absolute inset-0 -z-10 transition-[box-shadow,background-color,filter] duration-spring-fast ease-spring-fast motion-reduce:transition-none",(g()?AC:$h)[i()])),de=U(()=>w(ne)==="xs"||w(ne)==="compact"||w(ne)==="sm"||w(ne)==="icon-compact"||w(ne)==="icon-xs"||w(ne)==="icon-sm"?12:w(ne)==="lg"||w(ne)==="xl"||w(ne)==="icon-lg"?18:16),xe=U(()=>w(de)===12?"size-3!":w(de)===18?"size-[18px]!":"size-4!"),V=U(()=>!!(d()||f())),ze=U(()=>{if((E()||w(ne).startsWith("icon"))&&!Y()?.trim()&&!B()?.trim()&&!Z()?.trim()&&!x()?.trim())throw new Error("Icon-only Button requires a non-empty aria-label, aria-labelledby, title, or tooltip.");return Y()?.trim()?Y():x()?.trim()?x():void 0});let he=oe(null);Le(()=>{if(!w(he))return;const j=w(he).firstElementChild;return a(j),()=>{a()===j&&a(null)}});var be={get class(){return o()},set class(j){o(j),p()},get variant(){return i()},set variant(j="default"){i(j),p()},get size(){return s()},set size(j=void 0){s(j),p()},get ref(){return a()},set ref(j){a(j),p()},get href(){return c()},set href(j=void 0){c(j),p()},get type(){return u()},set type(j="button"){u(j),p()},get disabled(){return d()},set disabled(j){d(j),p()},get loading(){return f()},set loading(j=!1){f(j),p()},get active(){return g()},set active(j=!1){g(j),p()},get wrapContent(){return b()},set wrapContent(j=!0){b(j),p()},get truncateLabel(){return v()},set truncateLabel(j=!0){v(j),p()},get labelClass(){return m()},set labelClass(j=void 0){m(j),p()},get iconOnly(){return E()},set iconOnly(j=!1){E(j),p()},get leadingIcon(){return T()},set leadingIcon(j){T(j),p()},get trailingIcon(){return O()},set trailingIcon(j){O(j),p()},get onclick(){return A()},set onclick(j){A(j),p()},get children(){return y()},set children(j){y(j),p()},get tooltip(){return x()},set tooltip(j=void 0){x(j),p()},get tooltipDisabled(){return k()},set tooltipDisabled(j=!1){k(j),p()},get tooltipShortcut(){return R()},set tooltipShortcut(j=void 0){R(j),p()},get tooltipSide(){return M()},set tooltipSide(j="top"){M(j),p()},get tooltipAlign(){return H()},set tooltipAlign(j="center"){H(j),p()},get tooltipDelayDuration(){return K()},set tooltipDelayDuration(j=200){K(j),p()},get tooltipClass(){return ee()},set tooltipClass(j=void 0){ee(j),p()},get tooltipContentClass(){return W()},set tooltipContentClass(j=void 0){W(j),p()},get"aria-label"(){return Y()},set"aria-label"(j){Y(j),p()},get"aria-labelledby"(){return B()},set"aria-labelledby"(j){B(j),p()},get title(){return Z()},set title(j){Z(j),p()},$set:Te,$on:(j,Me)=>Ee(e,j,Me)},ve=ue(),S=se(ve);{var ae=j=>{uh(j,{get label(){return x()},get shortcut(){return R()},get side(){return M()},get align(){return H()},get delayDuration(){return K()},get disabled(){return k()},get class(){return ee()},get contentClass(){return W()},children:(Me,it)=>{r(Me)},$$slots:{default:!0}})},Ge=j=>{r(j)};Ie(S,j=>{x()?j(ae):j(Ge,-1)})}return Q(t,ve),_e(be)}const FC=[{id:"interaction-states",title:"Button interaction states",states:["emphasis-ladder","size-ladder","guidance","primary","secondary","ghost","outline","destructive","active","keyboard-focus","disabled","loading","loading-variants","icon-only","icon-weight","action-feedback"],themes:["light","dark"],viewport:"both"},{id:"content-and-motion",title:"Button content and motion",states:["long-label","light","dark","reduced-motion","action-feedback"],themes:["light","dark"],viewport:"both",reducedMotion:!0},{id:"compatibility-aliases",title:"Compatibility aliases",states:["default","compact"],themes:["light","dark"],viewport:"both"}];Ac({id:"button",source:"src/lib/components/ui/button/button.svelte",publicImport:"$lib/components/ui/button",legacyImports:["$lib/components/ui/button/button.svelte","$lib/components/ui/button/index.js"],exports:["Button","ButtonVariant","buttonMetadata"],category:"primitive",owner:"007-B1",callers:["src/features/discussions/components/DiscussionMessageView.svelte","src/features/discussions/components/DiscussionMicrophone.svelte","src/features/discussions/components/DiscussionMessageBody.svelte","src/features/discussions/components/DiscussionReferencePicker.svelte","src/features/discussions/components/discussion-states.preview.svelte","src/features/discussions/components/__tests__/DiscussionPresentationHost.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/features/hud/components/AdaptiveDockShell.svelte","src/features/hud/components/DockActionFeedback.svelte","src/features/hud/components/DockConversationPanel.svelte","src/features/hud/components/DockConversationResize.svelte","src/features/hud/components/DockOverview.svelte","src/features/hud/components/DockRail.svelte","src/features/hud/components/DockSideEntries.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/PopoversCatalogPreview.svelte","src/lib/component-catalog/renderers/ScreenStatesCatalogPreview.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/button/button.test.ts",removalGate:"Retain while exported and behavior, accessibility, shared loading indicator, and fixtures pass.",dynamicImports:[],fixtures:FC,useWhen:["Triggering an immediate action with explicit emphasis and accessible labeling."],dontUseWhen:["Navigating to another location; use a link instead."],apiGuidance:{emphasis:wC,sizes:CC,compatibilityAliases:[...xC,{prop:"variant",alias:"ghost-light",replacement:"ghost"},{prop:"size",alias:"compact",replacement:"sm"}]}});export{Ex as $,JC as A,QC as B,$C as C,Xa as D,Ud as E,tx as F,id as G,Hf as H,Ef as I,by as J,Kd as K,Dm as L,hx as M,Lu as N,Du as O,zu as P,Bu as Q,$s as R,Hl as S,ff as T,Wu as U,Uu as V,Nu as W,Vu as X,Fu as Y,Cx as Z,Nv as _,Eo as a,Vd as a$,kv as a0,Wg as a1,Ug as a2,qf as a3,Yf as a4,Xd as a5,qd as a6,Qg as a7,px as a8,De as a9,cy as aA,wx as aB,Lx as aC,zx as aD,Za as aE,_c as aF,YC as aG,XC as aH,Im as aI,G as aJ,hy as aK,ry as aL,oy as aM,iy as aN,Ah as aO,py as aP,jb as aQ,Xp as aR,Wd as aS,qs as aT,ce as aU,Pr as aV,Vb as aW,xx as aX,_y as aY,yx as aZ,Ax as a_,lh as aa,kx as ab,Iy as ac,Ja as ad,mx as ae,rv as af,Jl as ag,ol as ah,ch as ai,Il as aj,Hg as ak,_f as al,ah as am,nh as an,fc as ao,uh as ap,rh as aq,ih as ar,oh as as,sh as at,Mt as au,pt as av,Lb as aw,Sh as ax,ly as ay,_x as az,fs as b,ZC as b0,Pc as b1,zd as b2,od as b3,df as b4,Sx as b5,Bd as b6,Cv as b7,Tx as b8,Ox as b9,fy as bA,vx as bB,sy as bC,Xe as bD,Bx as bE,Vx as bF,xt as bG,Ze as bH,Rd as bI,Qh as bJ,ea as bK,My as bL,Se as bM,Px as ba,Rx as bb,Dx as bc,Rt as bd,Eg as be,Nx as bf,Ix as bg,bn as bh,Ou as bi,pv as bj,Ic as bk,gx as bl,Fx as bm,Zt as bn,bx as bo,ge as bp,ay as bq,Bb as br,dy as bs,kh as bt,wn as bu,my as bv,Oc as bw,Mx as bx,Th as by,gy as bz,hs as c,Gs as d,$g as e,DC as f,ex as g,St as h,Mm as i,Cf as j,Hu as k,Hd as l,Vg as m,xf as n,nx as o,rx as p,ox as q,ix as r,sx as s,ax as t,lx as u,cx as v,ux as w,dx as x,fx as y,rc as z};