@intent-hq/web 2.320.1 → 2.321.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.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{4o1DPfmL.js → -x_SoK5J.js} +1 -1
- package/web/app/immutable/chunks/{DJbnWCnN.js → 0Orrh1Id.js} +6 -6
- package/web/app/immutable/chunks/{Wm9WFHAU.js → 0TFOtiMK.js} +1 -1
- package/web/app/immutable/chunks/{DgvFQ5ps.js → 0x0gscua.js} +1 -1
- package/web/app/immutable/chunks/{D2Hsf4lo.js → 45y_L1a9.js} +1 -1
- package/web/app/immutable/chunks/{CVQvxrRM.js → 4iRc0E9v.js} +1 -1
- package/web/app/immutable/chunks/{CcjhvQaU.js → 5MGYaOe_.js} +1 -1
- package/web/app/immutable/chunks/{D7hkdi6r.js → 5QXDo1_h.js} +1 -1
- package/web/app/immutable/chunks/{VlQJw7Mt.js → 6cxhz2FS.js} +1 -1
- package/web/app/immutable/chunks/{B-NH8jPK.js → 7fl6VDRo.js} +1 -1
- package/web/app/immutable/chunks/{BIzCpN2r.js → 8OpKoiOO.js} +1 -1
- package/web/app/immutable/chunks/{Byh9jXBr.js → 8biy-UQv.js} +1 -1
- package/web/app/immutable/chunks/{Ck3dkN4B.js → Ab2YxsyL.js} +1 -1
- package/web/app/immutable/chunks/{CAoY2-K6.js → B-WefpDP.js} +1 -1
- package/web/app/immutable/chunks/{CQX4KubR.js → B0FM877X.js} +1 -1
- package/web/app/immutable/chunks/{C23Piy_l.js → B0FYEeEw.js} +1 -1
- package/web/app/immutable/chunks/{CpEHCOut.js → B0JWnOsx.js} +1 -1
- package/web/app/immutable/chunks/{C0Eg_x6y.js → B0pgN3Jj.js} +1 -1
- package/web/app/immutable/chunks/{BJfH3e03.js → B1WyTcs2.js} +3 -3
- package/web/app/immutable/chunks/{C-r1nQ0P.js → B2c_0_UD.js} +2 -2
- package/web/app/immutable/chunks/{BtxYdCDO.js → B2yYgkwz.js} +1 -1
- package/web/app/immutable/chunks/{DnIfn_Q5.js → B5nbjbRb.js} +1 -1
- package/web/app/immutable/chunks/{Cmsg1-Jz.js → B6DUgu-2.js} +1 -1
- package/web/app/immutable/chunks/{BpzYGtC7.js → B7BTR3Z_.js} +1 -1
- package/web/app/immutable/chunks/{eeOO6ePS.js → B9MBednq.js} +1 -1
- package/web/app/immutable/chunks/{GzyujEXJ.js → BBZiE97y.js} +1 -1
- package/web/app/immutable/chunks/{CjOd6IrN.js → BBeErNG6.js} +1 -1
- package/web/app/immutable/chunks/{CwKQMp5y.js → BC1v75_H.js} +1 -1
- package/web/app/immutable/chunks/{D02FkLBh.js → BD8I8FK1.js} +1 -1
- package/web/app/immutable/chunks/{gV7ZxrZ2.js → BDgfVkJh.js} +1 -1
- package/web/app/immutable/chunks/{DBEuoua2.js → BEQ_aNVt.js} +2 -2
- package/web/app/immutable/chunks/{C-_w8CdN.js → BG-UHIO1.js} +2 -2
- package/web/app/immutable/chunks/{BtA94G-4.js → BGFrQA7m.js} +1 -1
- package/web/app/immutable/chunks/{CW_i4yzi.js → BGiTQR4x.js} +1 -1
- package/web/app/immutable/chunks/{O4y88_QN.js → BLhWzQz2.js} +1 -1
- package/web/app/immutable/chunks/{BRqOyyER.js → BM51eWC-.js} +1 -1
- package/web/app/immutable/chunks/{VE9Tc-Fm.js → BMH4mbSd.js} +2 -2
- package/web/app/immutable/chunks/{CpnH3je1.js → BMc6OzJ-.js} +2 -2
- package/web/app/immutable/chunks/{Dkt7Tsgw.js → BMvbnoDk.js} +1 -1
- package/web/app/immutable/chunks/{DAgho_P-.js → BOaNSc_1.js} +1 -1
- package/web/app/immutable/chunks/{BZrP_BN5.js → BOrghaSd.js} +2 -2
- package/web/app/immutable/chunks/{DDRNgELR.js → BPp7FHiR.js} +1 -1
- package/web/app/immutable/chunks/{C0HDG-tg.js → BS5yagDq.js} +1 -1
- package/web/app/immutable/chunks/{4EPU-1_C.js → BWHu0fap.js} +1 -1
- package/web/app/immutable/chunks/{CT5WLLvq.js → BX-dt_Uh.js} +1 -1
- package/web/app/immutable/chunks/{DnWPcgvb.js → BXPwex0u.js} +1 -1
- package/web/app/immutable/chunks/{CDFwOYFZ.js → BXean12D.js} +1 -1
- package/web/app/immutable/chunks/{BTVnc-yD.js → BZyfa8QR.js} +1 -1
- package/web/app/immutable/chunks/{DcQGtdYG.js → BbCn81lZ.js} +1 -1
- package/web/app/immutable/chunks/{D2MFHl3c.js → Bc-CUZMV.js} +1 -1
- package/web/app/immutable/chunks/{49Xcxy9Z.js → Bcc7Bzbg.js} +1 -1
- package/web/app/immutable/chunks/{DQSz8rIC.js → BcpqnYRX.js} +5 -5
- package/web/app/immutable/chunks/{H5XG0yyu.js → BdWpSBC4.js} +2 -2
- package/web/app/immutable/chunks/{BxxQ5pIU.js → BeqbwVaJ.js} +1 -1
- package/web/app/immutable/chunks/{DgDI47Tl.js → BflC9e-C.js} +1 -1
- package/web/app/immutable/chunks/{DSP3ClFU.js → Bgw4M5Hc.js} +1 -1
- package/web/app/immutable/chunks/{lzfQOUtM.js → Bi4OiJD3.js} +1 -1
- package/web/app/immutable/chunks/{CIH3mb7Y.js → BkR5Qiti.js} +1 -1
- package/web/app/immutable/chunks/{BMJ3_jM1.js → Bknqawxe.js} +1 -1
- package/web/app/immutable/chunks/{2d9ARddo.js → Bm_1OUSw.js} +1 -1
- package/web/app/immutable/chunks/{DVX1HL-4.js → Bmmshx2M.js} +1 -1
- package/web/app/immutable/chunks/{DYepVMa7.js → Bo4s1kgI.js} +3 -3
- package/web/app/immutable/chunks/{D_FHOcPH.js → Bok30zBH.js} +1 -1
- package/web/app/immutable/chunks/{DsQHEEWt.js → BsB3ty-n.js} +1 -1
- package/web/app/immutable/chunks/{BsCDeyle.js → BtTBXjdJ.js} +1 -1
- package/web/app/immutable/chunks/{r2I2bB7k.js → BtWwzwrf.js} +1 -1
- package/web/app/immutable/chunks/{D8UQMJEh.js → BvkV35-O.js} +1 -1
- package/web/app/immutable/chunks/{fUyHJpWx.js → BwICfRz9.js} +1 -1
- package/web/app/immutable/chunks/{CfpYQrWa.js → BwYRCP9e.js} +1 -1
- package/web/app/immutable/chunks/{C9Az19Q-.js → ByKL05wN.js} +1 -1
- package/web/app/immutable/chunks/{u-Ou3zHY.js → Byv2GcxJ.js} +2 -2
- package/web/app/immutable/chunks/{D-NAfI6p.js → BziQ6zwo.js} +1 -1
- package/web/app/immutable/chunks/{SrOLwB5L.js → C-RJDuZ9.js} +1 -1
- package/web/app/immutable/chunks/{IsZuHG2a.js → C-neqscP.js} +1 -1
- package/web/app/immutable/chunks/{CtNKFf3W.js → C06rhFz-.js} +1 -1
- package/web/app/immutable/chunks/{VKc1-U2z.js → C0VXEpDj.js} +1 -1
- package/web/app/immutable/chunks/{ivVGXMNS.js → C0mBOV7w.js} +1 -1
- package/web/app/immutable/chunks/{B9MzVcgv.js → C11XjPnf.js} +3 -3
- package/web/app/immutable/chunks/{55B_mQC6.js → C3AKbypo.js} +6 -6
- package/web/app/immutable/chunks/{ChV6OcuF.js → C3lgqjB4.js} +1 -1
- package/web/app/immutable/chunks/{DFRP5ruh.js → C5aeZ3Yo.js} +2 -2
- package/web/app/immutable/chunks/{Bk4gFCP5.js → C6-BVYMv.js} +1 -1
- package/web/app/immutable/chunks/C76-jvlr.js +19 -0
- package/web/app/immutable/chunks/{DlUfd75E.js → C7JWgw8J.js} +3 -3
- package/web/app/immutable/chunks/{DjWen1vr.js → C804xHCz.js} +1 -1
- package/web/app/immutable/chunks/{DdteGby8.js → C8xPpxcv.js} +1 -1
- package/web/app/immutable/chunks/{BoUhyyfU.js → C8zzua9V.js} +1 -1
- package/web/app/immutable/chunks/{CuTNRxpo.js → CAgY0H5Q.js} +1 -1
- package/web/app/immutable/chunks/{ApbPdiAE.js → CBxbaIvA.js} +1 -1
- package/web/app/immutable/chunks/CCaX_DIa.js +1 -0
- package/web/app/immutable/chunks/{7z2H_RtS.js → CCnP87Jb.js} +1 -1
- package/web/app/immutable/chunks/{CrkvePNd.js → CCsRc7xx.js} +1 -1
- package/web/app/immutable/chunks/{CXux1NAJ.js → CDsY8gY8.js} +1 -1
- package/web/app/immutable/chunks/{DMu4mjpX.js → CEFpGNTq.js} +1 -1
- package/web/app/immutable/chunks/{V4Dt-iuy.js → CEj75uMJ.js} +1 -1
- package/web/app/immutable/chunks/{Le4YFzxz.js → CG9qWr93.js} +3 -3
- package/web/app/immutable/chunks/{DjfcjPFA.js → CGBBhq8k.js} +1 -1
- package/web/app/immutable/chunks/{DU9iEtZ1.js → CGIf2jXM.js} +1 -1
- package/web/app/immutable/chunks/{BS3L5ssG.js → CGVJO4eq.js} +1 -1
- package/web/app/immutable/chunks/{ipFV2AXr.js → CHM5tGJ6.js} +1 -1
- package/web/app/immutable/chunks/CHRkLzGl.js +1 -0
- package/web/app/immutable/chunks/{D5BYjywr.js → CHZAzCO9.js} +2 -2
- package/web/app/immutable/chunks/{Dby-RtfB.js → CIh8Ybhq.js} +1 -1
- package/web/app/immutable/chunks/{BnY6qa9O.js → CKO4faLg.js} +1 -1
- package/web/app/immutable/chunks/{Cm-Ux8AK.js → CKwPlZ66.js} +1 -1
- package/web/app/immutable/chunks/{5BaUgoc7.js → CLmrIbfi.js} +1 -1
- package/web/app/immutable/chunks/{DeFnstZp.js → CM7Hb3PZ.js} +1 -1
- package/web/app/immutable/chunks/{JwXVdNK9.js → CN70DRE5.js} +1 -1
- package/web/app/immutable/chunks/{Dbcyn1sm.js → CPKLysog.js} +1 -1
- package/web/app/immutable/chunks/CRyHSgI1.js +1 -0
- package/web/app/immutable/chunks/{Bv7Cc181.js → CS7dHtKw.js} +1 -1
- package/web/app/immutable/chunks/{XL81JlY3.js → CTlGDL05.js} +1 -1
- package/web/app/immutable/chunks/{DkrIcKd4.js → CVjlpAWj.js} +3 -3
- package/web/app/immutable/chunks/{vnFqKiHP.js → CVrH3Neh.js} +1 -1
- package/web/app/immutable/chunks/{D7ZBvVv7.js → CXIZuwd7.js} +1 -1
- package/web/app/immutable/chunks/{IYLMGQxr.js → CY9IKMQG.js} +1 -1
- package/web/app/immutable/chunks/{CKiOztob.js → CYOvUFvY.js} +1 -1
- package/web/app/immutable/chunks/{DOxrGs5l.js → CZEWv-Gf.js} +1 -1
- package/web/app/immutable/chunks/{jiIr1QvR.js → C_Vz3LCC.js} +1 -1
- package/web/app/immutable/chunks/{sOHh4EMg.js → Cb3FWEmc.js} +1 -1
- package/web/app/immutable/chunks/{BvO0zD3q.js → Cbqk5Mud.js} +1 -1
- package/web/app/immutable/chunks/{BkH6TsO0.js → CchM71Qw.js} +1 -1
- package/web/app/immutable/chunks/{zl8Sz0Gx.js → CdGIN-T1.js} +3 -3
- package/web/app/immutable/chunks/{V_BIwIYH.js → CdVKa6AF.js} +2 -2
- package/web/app/immutable/chunks/{CMcfEzCt.js → Ced26xBL.js} +1 -1
- package/web/app/immutable/chunks/{DukwQosN.js → Ci959ZOg.js} +1 -1
- package/web/app/immutable/chunks/{DDhu5Shq.js → Cja4W1Zb.js} +4 -4
- package/web/app/immutable/chunks/{DtL3mwiX.js → CmAVmm3T.js} +1 -1
- package/web/app/immutable/chunks/CmYXfe7_.js +1 -0
- package/web/app/immutable/chunks/{BoAwi0I6.js → CoUfnBeR.js} +1 -1
- package/web/app/immutable/chunks/{COuKp8NZ.js → Cq6ekj5I.js} +1 -1
- package/web/app/immutable/chunks/{CrF5hjNA.js → CqGkRJXi.js} +1 -1
- package/web/app/immutable/chunks/{CGVZRNqq.js → Cqay3Iio.js} +1 -1
- package/web/app/immutable/chunks/{D8l-pxCs.js → CsqvO7xN.js} +1 -1
- package/web/app/immutable/chunks/{DQhHyGm2.js → Ctggj9Y1.js} +1 -1
- package/web/app/immutable/chunks/{CTIoKRdg.js → Cts399i7.js} +1 -1
- package/web/app/immutable/chunks/{TRcwahzR.js → CulY8r4s.js} +1 -1
- package/web/app/immutable/chunks/{3TX-_riq.js → CvBuWqyP.js} +4 -4
- package/web/app/immutable/chunks/{DB531Hr_.js → CvegPRPp.js} +2 -2
- package/web/app/immutable/chunks/{Do2QepJk.js → Cwv7iryQ.js} +1 -1
- package/web/app/immutable/chunks/{CYvGLw1Y.js → CxQ0SCX2.js} +1 -1
- package/web/app/immutable/chunks/{DZxiqmZj.js → CxZuxrAL.js} +1 -1
- package/web/app/immutable/chunks/{sWFJeG75.js → Cz8iOYm8.js} +1 -1
- package/web/app/immutable/chunks/{DUW0BlH5.js → CztKENY4.js} +1 -1
- package/web/app/immutable/chunks/{XWXuV5J_.js → D26IPp5S.js} +1 -1
- package/web/app/immutable/chunks/{mEKKjA-u.js → D2iCI9dn.js} +1 -1
- package/web/app/immutable/chunks/{CZFJH8pA.js → D2zJp5fS.js} +29 -29
- package/web/app/immutable/chunks/{Bv-JB2Uu.js → D4e2w8TP.js} +1 -1
- package/web/app/immutable/chunks/{BmGPu7Nl.js → D5lr7eae.js} +2 -2
- package/web/app/immutable/chunks/{9Lm8k_8r.js → D6dCvfQe.js} +1 -1
- package/web/app/immutable/chunks/{CMeoq2YD.js → D7q-DSVP.js} +1 -1
- package/web/app/immutable/chunks/{Btkc4GhJ.js → D84A4J8d.js} +1 -1
- package/web/app/immutable/chunks/{Df_CcsUd.js → DDdLPEvL.js} +1 -1
- package/web/app/immutable/chunks/{DU9yd1xn.js → DDnwQoVq.js} +1 -1
- package/web/app/immutable/chunks/{MJGmlCLu.js → DFcwI6Rh.js} +1 -1
- package/web/app/immutable/chunks/{BQKHJuv8.js → DFyBaL9d.js} +1 -1
- package/web/app/immutable/chunks/{CCmXROuj.js → DI4wCe7O.js} +1 -1
- package/web/app/immutable/chunks/{DSbw-nyW.js → DJKXcaw9.js} +1 -1
- package/web/app/immutable/chunks/{B524kvVw.js → DMRQ6CDd.js} +2 -2
- package/web/app/immutable/chunks/{i3h2CX4F.js → DMvfzQWM.js} +1 -1
- package/web/app/immutable/chunks/{KJelEqX3.js → DNFHGDC9.js} +1 -1
- package/web/app/immutable/chunks/{R6dAjEem.js → DNNMwmDG.js} +1 -1
- package/web/app/immutable/chunks/{CZ5Pr0zI.js → DOzF5uE-.js} +1 -1
- package/web/app/immutable/chunks/{DDdEHmdT.js → DPoarPZL.js} +1 -1
- package/web/app/immutable/chunks/{273-ejOd.js → DR4i54x0.js} +1 -1
- package/web/app/immutable/chunks/{CCVg2HgS.js → DRpDjwRs.js} +1 -1
- package/web/app/immutable/chunks/{Dy4G53ce.js → DS2Q5gr9.js} +1 -1
- package/web/app/immutable/chunks/{B-ukGsyU.js → DSdY0J1g.js} +1 -1
- package/web/app/immutable/chunks/{DgvGDMI5.js → DXySew1R.js} +1 -1
- package/web/app/immutable/chunks/{C72zM9oE.js → DYfBNrOV.js} +1 -1
- package/web/app/immutable/chunks/{CCghBHzC.js → DYhpST_X.js} +1 -1
- package/web/app/immutable/chunks/{QeTaV4Op.js → DZAWjsA4.js} +1 -1
- package/web/app/immutable/chunks/{CBE9bOjQ.js → DZtstCLQ.js} +1 -1
- package/web/app/immutable/chunks/{B1892jNy.js → D_HysCp7.js} +1 -1
- package/web/app/immutable/chunks/{BOypJjQg.js → Dd0rdLMI.js} +1 -1
- package/web/app/immutable/chunks/{CwSP6heW.js → Dd7A9glX.js} +1 -1
- package/web/app/immutable/chunks/{C2pLxq9N.js → Dgqdx3pd.js} +1 -1
- package/web/app/immutable/chunks/{Ca0VZzWN.js → DhtKWu39.js} +1 -1
- package/web/app/immutable/chunks/{BBvT7Bb8.js → Dix9BiYu.js} +1 -1
- package/web/app/immutable/chunks/{CK2xtMaJ.js → DjqPgoUP.js} +1 -1
- package/web/app/immutable/chunks/DlBxdhh5.js +2 -0
- package/web/app/immutable/chunks/{CgQiyraX.js → DlZzAKZ2.js} +1 -1
- package/web/app/immutable/chunks/{CW_MTCOu.js → DnfX8iZ_.js} +1 -1
- package/web/app/immutable/chunks/Dritbi2C.js +6 -0
- package/web/app/immutable/chunks/{cYktK7bI.js → DsRLPs6I.js} +10 -10
- package/web/app/immutable/chunks/{DVijqcE1.js → Du7yAEgM.js} +1 -1
- package/web/app/immutable/chunks/{oB6nSTCC.js → DuMlpvYZ.js} +1 -1
- package/web/app/immutable/chunks/{DbSP_yi5.js → DwNzQjT_.js} +1 -1
- package/web/app/immutable/chunks/{DWcUEP_3.js → DwsRDnkS.js} +4 -4
- package/web/app/immutable/chunks/{T2aO1XPv.js → DyVNmy1r.js} +1 -1
- package/web/app/immutable/chunks/{IwQXvQKq.js → I0eHZGMz.js} +1 -1
- package/web/app/immutable/chunks/{DLme1vI4.js → JfyBNQs2.js} +1 -1
- package/web/app/immutable/chunks/{YGDnq71P.js → NeHKo0ZG.js} +1 -1
- package/web/app/immutable/chunks/{CAhuuwZ9.js → O0CxvO89.js} +1 -1
- package/web/app/immutable/chunks/{DudXAl_N.js → Ob5NWDgS.js} +1 -1
- package/web/app/immutable/chunks/{Dczc0YMo.js → PUalo3UE.js} +1 -1
- package/web/app/immutable/chunks/{DXjHY2hF.js → QGE3iD8D.js} +1 -1
- package/web/app/immutable/chunks/{_p09hiud.js → QSR6vsk4.js} +1 -1
- package/web/app/immutable/chunks/{9tzjcklF.js → QjpXu0Du.js} +1 -1
- package/web/app/immutable/chunks/{CPObUSo8.js → UEd-gngc.js} +1 -1
- package/web/app/immutable/chunks/VEkj47bo.js +1 -0
- package/web/app/immutable/chunks/{Cx547a39.js → VeIqG7dc.js} +4 -4
- package/web/app/immutable/chunks/{j3QkolT-.js → XF_IbTR1.js} +3 -3
- package/web/app/immutable/chunks/{CcVvQKcJ.js → XV0T3w4n.js} +1 -1
- package/web/app/immutable/chunks/{Dk1FwKDL.js → YO4PhogQ.js} +1 -1
- package/web/app/immutable/chunks/{BLl4jbbs.js → aLZSbque.js} +2 -2
- package/web/app/immutable/chunks/{DKBox7Ew.js → csuWDYc9.js} +1 -1
- package/web/app/immutable/chunks/{CnlzKY2y.js → dmSYAakE.js} +1 -1
- package/web/app/immutable/chunks/eK7OULll.js +1 -0
- package/web/app/immutable/chunks/{Cugknw1m.js → gCXIPBa3.js} +1 -1
- package/web/app/immutable/chunks/{CJhkZF1l.js → hxIWaKu8.js} +1 -1
- package/web/app/immutable/chunks/{C3lmZVdU.js → jMKjj8ae.js} +1 -1
- package/web/app/immutable/chunks/{Dpk7e0gp.js → jvHJQ-Xz.js} +1 -1
- package/web/app/immutable/chunks/{BB6TPLRQ.js → k4eU_FWk.js} +1 -1
- package/web/app/immutable/chunks/{BigdBsL9.js → nLw8YrmA.js} +1 -1
- package/web/app/immutable/chunks/{mk8wN9pR.js → nR16njgN.js} +1 -1
- package/web/app/immutable/chunks/{Dld3dCA-.js → o5rEX9Xy.js} +1 -1
- package/web/app/immutable/chunks/{B30Ssr1r.js → p5gLe3PS.js} +1 -1
- package/web/app/immutable/chunks/{VKC6gzws.js → pnKMO5U0.js} +53 -53
- package/web/app/immutable/chunks/{CGTFiYKr.js → reR1kPlm.js} +1 -1
- package/web/app/immutable/chunks/{BwfkZxtl.js → tGqA6xQ9.js} +1 -1
- package/web/app/immutable/chunks/uLB4Kp9c.js +1 -0
- package/web/app/immutable/chunks/{CI-U2zwu.js → ubLEbEcV.js} +1 -1
- package/web/app/immutable/chunks/{Dtei9o3U.js → uyOfKmty.js} +3 -3
- package/web/app/immutable/chunks/{DVRDTT5s.js → vUGF5JqJ.js} +1 -1
- package/web/app/immutable/chunks/{DamIfQPR.js → vzGm0J_h.js} +1 -1
- package/web/app/immutable/chunks/{Dlalsrb2.js → w6mFE4SD.js} +1 -1
- package/web/app/immutable/chunks/{OvSKCwS-.js → z3QVK190.js} +2 -2
- package/web/app/immutable/entry/{app.DnikQ4I9.js → app.PHHlgSoZ.js} +3 -3
- package/web/app/immutable/entry/start.Cltn4m6a.js +1 -0
- package/web/app/immutable/nodes/{0.C7A1xQm9.js → 0.D7bJjS_y.js} +1 -1
- package/web/app/immutable/nodes/{1.D3O5lTcl.js → 1.B3gH8FG5.js} +1 -1
- package/web/app/immutable/nodes/{10.BaLN4VIK.js → 10.NQcSgQgq.js} +4 -4
- package/web/app/immutable/nodes/{11.DNy1N3E_.js → 11.Drfz7PRj.js} +1 -1
- package/web/app/immutable/nodes/{12.CkJqJXDQ.js → 12.gXokqM9g.js} +1 -1
- package/web/app/immutable/nodes/{13.BQO-XqRU.js → 13.DFxxGy6Y.js} +3 -3
- package/web/app/immutable/nodes/{14.BycEEfsq.js → 14.7T2ChNl_.js} +1 -1
- package/web/app/immutable/nodes/{15.Cul5GEsK.js → 15.CgEeXtgJ.js} +1 -1
- package/web/app/immutable/nodes/{16.BjrtGDLp.js → 16.CWrHY2VB.js} +2 -2
- package/web/app/immutable/nodes/{2.Cfk2c4l0.js → 2.DQ6QcB9c.js} +8 -8
- package/web/app/immutable/nodes/{3.Dp8QGgRH.js → 3.Fjkgohv2.js} +1 -1
- package/web/app/immutable/nodes/{4.D3m3OUdj.js → 4.D1BNF_ep.js} +1 -1
- package/web/app/immutable/nodes/{5.BMBYYbKi.js → 5.C5OySrRk.js} +2 -2
- package/web/app/immutable/nodes/{6.BIo4yUgT.js → 6.BrxG9qCf.js} +1 -1
- package/web/app/immutable/nodes/{7.DdNd4GXX.js → 7.CvdabbdY.js} +1 -1
- package/web/app/immutable/nodes/8.BSQtFfFS.js +15 -0
- package/web/app/immutable/nodes/{9.kCWJBZ1N.js → 9.D6DS9Z9f.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/4Qt-u50Z.js +0 -1
- package/web/app/immutable/chunks/B--T3tY0.js +0 -19
- package/web/app/immutable/chunks/BJzlL5VK.js +0 -1
- package/web/app/immutable/chunks/C7-4lB53.js +0 -6
- package/web/app/immutable/chunks/CR8nwpLC.js +0 -1
- package/web/app/immutable/chunks/CduK2Osu.js +0 -1
- package/web/app/immutable/chunks/CmTfIBH2.js +0 -2
- package/web/app/immutable/chunks/DakbBhJV.js +0 -1
- package/web/app/immutable/chunks/DclJ6-AA.js +0 -1
- package/web/app/immutable/chunks/DozYGPQ1.js +0 -1
- package/web/app/immutable/entry/start.DW0TPq6E.js +0 -1
- package/web/app/immutable/nodes/8.Cp6GdAVQ.js +0 -15
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
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 P=(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 Te,bq as h,by as Ee,b as Oe,a_ as Ne,bt as So,br as Cr,bo as V,_ as ls}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/QSR6vsk4.js","/app/immutable/chunks/Bo4s1kgI.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/BlOn95cv.js","/app/immutable/chunks/UyBYtOpv.js","/app/immutable/chunks/p5gLe3PS.js","/app/immutable/chunks/eK7OULll.js","/app/immutable/chunks/Dix9BiYu.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/CxZuxrAL.js","/app/immutable/chunks/Dritbi2C.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/XV0T3w4n.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/4iRc0E9v.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/B-WefpDP.js","/app/immutable/chunks/DZtstCLQ.js","/app/immutable/assets/spinner.D_TRo5Hy.css"])))=>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 P=(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 Te,bq as h,by as Ee,b as Oe,a_ as Ne,bt as So,br as Cr,bo as V,_ as ls}from"./eK7OULll.js";import{A as ip,bV as oe,c8 as xu,ao as $n,bY as kr,bU as sp,b5 as vs,aD as w,bH as N,aV as ao,c9 as U,br as Hn,aa as Sd,bi as Ie,aM as ap,aG as Pl,bI as lp,cb as cp,ca as Le,c5 as ko,c0 as up,bs as Pe,a7 as ue,ay as se,bf as xe,W as Z,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 Ke,bo as kc,a5 as He,bA as Fe,b$ as Ad,b_ as br,bO as _l,bl as gp,be as mp}from"./DYhIMPy1.js";import{s as ye}from"./p5gLe3PS.js";import{e as ul,c as Jt,f as Kn,d as Hs,k as vo,h as bp,p as Ac,I as vp}from"./DZtstCLQ.js";import{b as Td}from"./BaIAhI85.js";import{c as lo}from"./DFcwI6Rh.js";import{F as yp,S as Ed,N as wp,b as Ks,c as Cp,x as Ao,I as ja,w as Od,M as Pd,e as xp,r as Sp,f as kp,K as Ap,n as Tp,o as Ep,l as Op,m as Pp,C as _p,d as Ip,i as Mp,h as Rp,g as Np,k as Dp,y as Fp,B as Lp}from"./Dix9BiYu.js";import{o as D,l as ne,c as Ae,b as $e,s as L,_ as et,g as Bp,e as yo,n as gn,d as bt}from"./UyBYtOpv.js";import{f as Or,P as zp,B as Ce,R as Vp,e as Wp,c as Up,r as Hp,s as Kp}from"./XV0T3w4n.js";import{e as Tc,R as jp,c as Qr,a as ro,E as Ga,f as Gp,s as qp,m as kn,d as Yp}from"./BlOn95cv.js";function Xp(){return Symbol(ip)}var Ut,kt,Ht,la,Mt,po,Ps;const $c=class $c extends Map{constructor(n){super();C(this,Mt);C(this,Ut,new Map);C(this,kt,oe(0));C(this,Ht,oe(0));C(this,la,xu||-1);if($n&&(n=new Map(n),kr(l(this,kt),"SvelteMap version"),kr(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,Mt,po).call(this,0),$n&&kr(o,`SvelteMap get(${vs(n)})`),r.set(n,o);else return w(l(this,kt)),!1;return w(o),!0}forEach(n,r){F(this,Mt,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,Mt,po).call(this,0),$n&&kr(o,`SvelteMap get(${vs(n)})`),r.set(n,o);else{w(l(this,kt));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,kt);if(i===void 0)i=F(this,Mt,po).call(this,0),$n&&kr(i,`SvelteMap get(${vs(n)})`),o.set(n,i),N(l(this,Ht),super.size),ao(c);else if(s!==r){ao(i);var u=c.reactions===null?null:new Set(c.reactions),d=u===null||!i.reactions?.every(f=>u.has(f));d&&ao(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),ao(l(this,kt))),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);ao(l(this,kt)),n.clear()}}keys(){return w(l(this,kt)),super.keys()}values(){return F(this,Mt,Ps).call(this),super.values()}entries(){return F(this,Mt,Ps).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return w(l(this,Ht)),super.size}};Ut=new WeakMap,kt=new WeakMap,Ht=new WeakMap,la=new WeakMap,Mt=new WeakSet,po=function(n){return xu===l(this,la)?oe(n):sp(n)},Ps=function(){w(l(this,kt));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,Mt,po).call(this,0);$n&&kr(o,`SvelteMap get(${vs(r)})`),n.set(r,o)}}for([,o]of l(this,Ut))w(o)};let Il=$c;function Zp(t){return typeof t=="function"}function cs(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 $r=Symbol("box"),qa=Symbol("is-writable");function G(t,e){const n=U(t);return e?{[$r]:!0,[qa]:!0,get current(){return w(n)},set current(r){e(r)}}:{[$r]:!0,get current(){return t()}}}function us(t){return cs(t)&&$r in t}function Ec(t){return us(t)&&qa in t}function _d(t){return us(t)?t:Zp(t)?G(t):Ct(t)}function Qp(t){return Object.entries(t).reduce((e,[n,r])=>us(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)?{[$r]:!0,get current(){return t.current}}:t}function Ct(t){let e=oe(Hn(t));return{[$r]:!0,[qa]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}function xr(t){let e=oe(Hn(t));return{[$r]:!0,[qa]:!0,get current(){return w(e)},set current(n){N(e,n,!0)}}}xr.from=_d;xr.with=G;xr.flatten=Qp;xr.readonly=$p;xr.isBox=us;xr.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
3
|
`,ku="/",Au="*",er="",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;er!=t.charAt(m)&&(Au!=t.charAt(m)||ku!=t.charAt(m+1));)++m;if(m+=2,er===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,er)),value:E?Tu(E[0].replace(Su,er)):er});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,er):er}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 go(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
4
|
`)}function Rd(t={}){return Cg(t).replace(`
|
|
5
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=go(s);e[o]={...i,...b}}else if(f&&d){const b=go(i);e[o]={...b,...s}}else if(f&&g){const b=go(i),v=go(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
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 Mr,_o;class Tg{constructor(e={}){C(this,Mr);C(this,_o);const{window:n=Nd,document:r=n?.document}=e;n!==void 0&&(I(this,Mr,r),I(this,_o,Sd(o=>{const i=Ie(n,"focusin",o),s=Ie(n,"focusout",o);return()=>{i(),s()}})))}get current(){var e;return(e=l(this,_o))==null||e.call(this),l(this,Mr)?Ag(l(this,Mr)):null}}Mr=new WeakMap,_o=new WeakMap;new Tg;function Eg(t){return typeof t=="function"}var Io,on;class xt{constructor(e){C(this,Io);C(this,on);I(this,Io,e),I(this,on,Symbol(e))}get key(){return l(this,on)}exists(){return ap(l(this,on))}get(){const e=Pl(l(this,on));if(e===void 0)throw new Error(`Context "${l(this,Io)}" not found`);return e}getOr(e){const n=Pl(l(this,on));return n===void 0?e:n}set(e){return lp(l(this,on),e)}}Io=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=ko(()=>n(a,s));return s=a,c})}function ke(t,e,n){Dd(t,"post",e,n)}function Pg(t,e,n){Dd(t,"pre",e,n)}ke.pre=Pg;function Eu(t){return Eg(t)?t():t}var Tn,Rr,Nr,Dr,En,ca,ua,Fr;class _g{constructor(e,n={box:"border-box"}){C(this,Tn,{width:0,height:0});C(this,Rr,!1);C(this,Nr);C(this,Dr);C(this,En);C(this,ca,U(()=>(w(l(this,Fr))?.(),this.getSize().width)));C(this,ua,U(()=>(w(l(this,Fr))?.(),this.getSize().height)));C(this,Fr,U(()=>{const e=Eu(l(this,Dr));if(e)return Sd(n=>{if(!l(this,En))return;const r=new(l(this,En)).ResizeObserver(o=>{I(this,Rr,!0);for(const i of o){const s=l(this,Nr).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,Rr,!1),r.disconnect()}})}));I(this,En,n.window??Nd),I(this,Nr,n),I(this,Dr,e),I(this,Tn,{width:0,height:0})}calculateSize(){const e=Eu(l(this,Dr));if(!e||!l(this,En))return;const n=e.offsetWidth,r=e.offsetHeight;if(l(this,Nr).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,Rr)?l(this,Tn):this.calculateSize()??l(this,Tn)}get current(){return w(l(this,Fr))?.(),this.getSize()}get width(){return w(l(this,ca))}get height(){return w(l(this,ua))}}Tn=new WeakMap,Rr=new WeakMap,Nr=new WeakMap,Dr=new WeakMap,En=new WeakMap,ca=new WeakMap,ua=new WeakMap,Fr=new WeakMap;function wn(t){Le(()=>()=>{t()})}function Oc(t){Le(()=>ko(()=>t()))}function Ig(t,e){return setTimeout(e,t)}function _t(t){up().then(t)}const Mg=1,Rg=9,Ng=11;function Rl(t){return cs(t)&&t.nodeType===Mg&&typeof t.nodeName=="string"}function Fd(t){return cs(t)&&t.nodeType===Rg}function Dg(t){return cs(t)&&t.constructor?.name==="VisualViewport"}function Fg(t){return cs(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 oo(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 Mo;class Ya{constructor(e){P(this,"element");C(this,Mo,U(()=>this.element.current?this.element.current.getRootNode()??document:document));P(this,"getDocument",()=>oo(this.root));P(this,"getWindow",()=>this.getDocument().defaultView??window);P(this,"getActiveElement",()=>Bg(this.root));P(this,"isActiveElement",e=>e===this.getActiveElement());P(this,"querySelector",e=>this.root?this.root.querySelector(e):null);P(this,"querySelectorAll",e=>this.root?this.root.querySelectorAll(e):[]);P(this,"setTimeout",(e,n)=>this.getWindow().setTimeout(e,n));P(this,"clearTimeout",e=>this.getWindow().clearTimeout(e));typeof e=="function"?this.element=G(e):this.element=e}get root(){return w(l(this,Mo))}set root(e){N(l(this,Mo),e)}getElementById(e){return this.root.getElementById(e)}}Mo=new WeakMap;function ft(t,e){return{[Xp()]:n=>us(t)?(t.current=n,ko(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t.current=null,e?.(null))}):(t(n),ko(()=>e?.(n)),()=>{"isConnected"in n&&n.isConnected||(t(null),e?.(null))})}}function Pc(t){return t?"true":"false"}function YC(t){return t?"true":void 0}function Xa(t){return t?"":void 0}function XC(t){return t?!0:void 0}function _c(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 Lr,Ro;class zg{constructor(e){C(this,Lr);C(this,Ro);P(this,"attrs");I(this,Lr,e.getVariant?e.getVariant():null),I(this,Ro,l(this,Lr)?`data-${l(this,Lr)}-`:`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,Ro)}${e}`}selector(e,n){return`[${this.getAttr(e,n)}]`}}Lr=new WeakMap,Ro=new WeakMap;function Wd(t){const e=new zg(t);return{...e.attrs,selector:e.selector,getAttr:e.getAttr}}const JC="Alt",To="ArrowDown",ds="ArrowLeft",fs="ArrowRight",js="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",Za=" ",Hg="Tab";function Kg(t){return window.getComputedStyle(t).getPropertyValue("direction")}function jg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?ds:fs,vertical:To}[e]}function Gg(t="ltr",e="horizontal"){return{horizontal:t==="rtl"?fs:ds,vertical:js}[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 It(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 Je,sn;class Qg{constructor(e){C(this,Je);C(this,sn,xr(null));I(this,Je,e)}getCandidateNodes(){return l(this,Je).rootNode.current?l(this,Je).candidateSelector?Array.from(l(this,Je).rootNode.current.querySelectorAll(l(this,Je).candidateSelector)):l(this,Je).candidateAttr?Array.from(l(this,Je).rootNode.current.querySelectorAll(`[${l(this,Je).candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,n,r=!1){const o=l(this,Je).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,Je).orientation.current),d=l(this,Je).loop.current,f={[c]:s+1,[u]:s-1,[Kd]:0,[Ud]:i.length-1};if(r){const v=c===To?fs:To,m=u===js?ds:js;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,Je).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,Je).rootNode.current?.querySelector(`#${e}`);!n||!bn(n)||n.focus()}}Je=new WeakMap,sn=new WeakMap;var rr,Kt,an,At,qn,Nl,Dl;class $g{constructor(e){C(this,qn);C(this,rr);C(this,Kt,null);C(this,an,null);C(this,At,0);I(this,rr,e),wn(()=>F(this,qn,Nl).call(this))}run(e){F(this,qn,Nl).call(this);const n=l(this,rr).ref.current;if(!n)return;if(typeof n.getAnimations!="function"){F(this,qn,Dl).call(this,e);return}const r=l(this,At),o=()=>{r===l(this,At)&&F(this,qn,Dl).call(this,e)},i=()=>{if(r!==l(this,At))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,At))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,rr).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,At)&&(n.hasAttribute(a)||(l(this,an)?.disconnect(),I(this,an,null),s()))})),l(this,an).observe(n,{attributes:!0,attributeFilter:[a]})}))}}rr=new WeakMap,Kt=new WeakMap,an=new WeakMap,At=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,At)._++},Dl=function(e){const n=l(this,At),r=()=>{n===l(this,At)&&e()};l(this,rr).afterTick?_t(r):r()};var st,No,Do,ln,cn,Fo,On,Lo,Fl;class qd{constructor(e){C(this,Lo);C(this,st);C(this,No);C(this,Do);C(this,ln,oe(!1));C(this,cn,oe(void 0));C(this,Fo,!1);C(this,On,null);I(this,st,e),N(l(this,ln),e.open.current,!0),I(this,No,e.enabled??!0),I(this,Do,new $g({ref:l(this,st).ref,afterTick:l(this,st).open})),wn(()=>F(this,Lo,Fl).call(this)),ke(()=>l(this,st).open.current,n=>{if(!l(this,Fo)){I(this,Fo,!0);return}if(F(this,Lo,Fl).call(this),!n&&l(this,st).shouldSkipExitAnimation?.()){N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).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,st).open.current&&N(l(this,cn),void 0)})),!l(this,No)){n||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).onComplete?.();return}l(this,Do).run(()=>{n===l(this,st).open.current&&(l(this,st).open.current||N(l(this,ln),!1),N(l(this,cn),void 0),l(this,st).onComplete?.())})})}get shouldRender(){return w(l(this,ln))}get transitionStatus(){return w(l(this,cn))}}st=new WeakMap,No=new WeakMap,Do=new WeakMap,ln=new WeakMap,cn=new WeakMap,Fo=new WeakMap,On=new WeakMap,Lo=new WeakSet,Fl=function(){l(this,On)!==null&&(window.cancelAnimationFrame(l(this,On)),I(this,On,null))};function me(){}function Gs(t,e){return`bits-${t}`}function Yd(t,e){if(new.target)return Te({component:Yd,...t});Pe(e,!0);const n=h(e,"children",7);var r={get children(){return n()},set children(s){n(s),p()},$set:Ee,$on:(s,a)=>Oe(e,s,a)},o=ue(),i=se(o);return yp(i,n,s=>{var a=ue(),c=se(a);ye(c,()=>n()??xe),Z(s,a)}),Z(t,o),_e(r)}const em=new xt("BitsConfig");function tm(){const t=new nm(null,{});return em.getOr(t).opts}class nm{constructor(e,n){P(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 Te({component:Xd,...t});Pe(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($n&&E===null)throw new Error(`Target element "${i.current}" not found.`);m=E}else m=i.current;if($n&&!(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)}ke([()=>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:Ee,$on:(m,E)=>Oe(e,m,E)},g=ue(),b=se(g);{var v=m=>{var E=ue(),T=se(E);ye(T,()=>r()??xe),Z(m,E)};Ne(b,m=>{o()&&m(v)})}return Z(t,g),_e(f)}class sm{constructor(e,n={bubbles:!0,cancelable:!0}){P(this,"eventName");P(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 Ie(e,this.eventName,o,r)}}function Pu(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,Za],lm=[To,Ug,Kd],Qd=[js,Wg,Ud],cm=[...lm,...Qd],um={ltr:[...Ll,fs],rtl:[...Ll,ds]},mx={ltr:[ds],rtl:[fs]};function dm(t){return t==="indeterminate"}function $d(t){return dm(t)?"indeterminate":t?"checked":"unchecked"}function Pt(t){return t.pointerType==="mouse"}function fm(t,{select:e=!1}={}){if(!t||!t.focus)return;const n=oo(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 co=oe(!1);const Wt=class Wt{constructor(){Le(()=>(Wt._refs===0&&(Wt._cleanup=kd(()=>{const e=[],n=o=>{N(co,!1)},r=o=>{N(co,!0)};return e.push(Ie(document,"pointerdown",n,{capture:!0}),Ie(document,"pointermove",n,{capture:!0}),Ie(document,"keydown",r,{capture:!0})),Pr(...e)})),Wt._refs++,()=>{Wt._refs--,Wt._refs===0&&(N(co,!1),Wt._cleanup?.())}))}get current(){return w(co)}set current(e){N(co,e,!0)}};P(Wt,"_refs",0),P(Wt,"_cleanup");let Bl=Wt;/*!
|
|
7
7
|
* tabbable 6.4.0
|
|
8
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] *)"],qs=ef.join(","),tf=typeof Element>"u",vr=tf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ys=!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},Xs=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]"):Xs(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(Xs(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(qs));return n&&vr.call(e,qs)&&o.unshift(e),o=o.filter(r),o},Zs=function(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Xs(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=Zs(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=vr.call(s,qs);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),g=!Xs(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&g){var b=Zs(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||Ys(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&&Ys(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=Ys(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},_u=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=vr.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(vr.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=Ys(e);if(u&&!u.shadowRoot&&o(u)===!0)return _u(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 _u(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 vr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Js=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||!Js(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=Zs([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=Zs([e],n.includeContainer,{filter:Js.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=nf(e,n.includeContainer,Js.bind(null,n)),r},Ic=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,qs)===!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 vr.call(e,Em)===!1?!1:Js(n,e)};function wo(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Om(t,e){if(!Ic(t,wo()))return Pm(t,e);const n=oo(t),r=lf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1)[0]}function Pm(t,e){const n=oo(t);if(!uf(t,wo()))return n.body;const r=cf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1).find(s=>Ic(s,wo()))??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 _m={afterMs:1e4,onChange:me};function Im(t,e){const{afterMs:n,onChange:r,getWindow:o}={..._m,...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,da,fa;class Mm{constructor(e){C(this,un);C(this,dn);C(this,da,U(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));C(this,fa,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,fa))(),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,da))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,da=new WeakMap,fa=new WeakMap;const Rm="data-context-menu-trigger",Nm="data-context-menu-content",Mc=new xt("Menu.Root"),eo=new xt("Menu.Root | Menu.Sub"),hs=new xt("Menu.Content"),Rc=new xt("Menu.Group | Menu.RadioGroup"),Nc=new xt("Menu.RadioGroup"),Dm=new xt("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 Se,or,Pn,at,vt,ir,fn,Br,Q,hf,_s,Vl,Wl,Ul,_n,mo,Is,bo,Ms,pf,Bo,gf,Rs,Ns,Tr,Ds;class Lm{constructor(e){C(this,Q);C(this,Se);C(this,or,null);C(this,Pn,null);C(this,at,!1);C(this,vt,null);C(this,ir,null);C(this,fn,null);C(this,Br,null);C(this,_n,null);C(this,Bo,e=>{if(!l(this,at)||!l(this,vt)||!Pt(e))return;const n=l(this,Se).triggerNode(),r=l(this,Se).contentNode();if(!n||!r){F(this,Q,bo).call(this);return}F(this,Q,Tr).call(this);const o={x:e.clientX,y:e.clientY};I(this,fn,o);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(l(this,vt)==="content"&&Ru(o,s)){F(this,Q,mo).call(this);return}if(l(this,vt)==="trigger"&&Bm(o,i,4)){F(this,Q,mo).call(this);return}if(F(this,Q,pf).call(this,o)){F(this,Q,Ns).call(this);return}const a=F(this,Q,_s).call(this,o,l(this,vt));if(!a){F(this,Q,bo).call(this);return}if(F(this,Q,Vl).call(this,o,a.corridor,a.intent)){F(this,Q,Ns).call(this);return}F(this,Q,bo).call(this)});I(this,Se,e),ke([e.triggerNode,e.contentNode,e.enabled],([n,r,o])=>{if(F(this,Q,Ms).call(this),!n||!r||!o)return;const i=f=>{Pt(f)&&(I(this,Br,{x:f.clientX,y:f.clientY}),l(this,at)||F(this,Q,Wl).call(this,f,"content"))},s=f=>{Pt(f)&&F(this,Q,Ul).call(this,f,"content")},a=f=>{Pt(f)&&(l(this,at)||F(this,Q,Wl).call(this,f,"trigger"))},c=f=>{if(Pt(f)){if(It(f.relatedTarget)){const g=l(this,Se).subContentSelector(),b=f.relatedTarget.closest(g);if(b&&b!==r&&b.id&&!!r.querySelector(`[aria-controls="${b.id}"]`))return}F(this,Q,Ul).call(this,f,"trigger")}},u=f=>{Pt(f)&&F(this,Q,mo).call(this)},d=f=>{Pt(f)&&F(this,Q,mo).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,Q,Ms).call(this)}}),wn(()=>{F(this,Q,Ms).call(this)})}}Se=new WeakMap,or=new WeakMap,Pn=new WeakMap,at=new WeakMap,vt=new WeakMap,ir=new WeakMap,fn=new WeakMap,Br=new WeakMap,Q=new WeakSet,hf=function(){const e=l(this,Se).parentContentNode();return e?e.getBoundingClientRect():l(this,Se).triggerNode()?.getBoundingClientRect()??null},_s=function(e,n){const r=l(this,Se).triggerNode(),o=l(this,Se).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,at)?l(this,ir)??e:e,u=s):(c=l(this,Br)??e,u=F(this,Q,hf).call(this)??i,d=s),I(this,ir,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,Q,_s).call(this,r,n)&&(I(this,vt,n),I(this,fn,r))},Ul=function(e,n){if(!l(this,Se).enabled())return;const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return;const i=e.relatedTarget;if(It(i)&&(n==="content"&&o.contains(i)||n==="trigger"&&r.contains(i)))return;const s={x:e.clientX,y:e.clientY},a=F(this,Q,_s).call(this,s,n);if(a){if(!Ru(s,a.targetRect)&&!F(this,Q,Vl).call(this,s,a.corridor,a.intent)){F(this,Q,Ds).call(this);return}I(this,at,!0),I(this,vt,n),I(this,fn,s),l(this,Se).setIsPointerInTransit(!0),F(this,Q,gf).call(this),F(this,Q,Ns).call(this)}},_n=new WeakMap,mo=function(){if(!l(this,at))return;const e=l(this,vt)==="trigger";F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),I(this,at,!1),F(this,Q,Ds).call(this),e?(F(this,Q,Is).call(this),I(this,_n,setTimeout(()=>{I(this,_n,null),l(this,Se).setIsPointerInTransit(!1)},100))):l(this,Se).setIsPointerInTransit(!1)},Is=function(){l(this,_n)!==null&&(clearTimeout(l(this,_n)),I(this,_n,null))},bo=function(){const e=l(this,fn);F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),F(this,Q,Is).call(this),I(this,at,!1),l(this,Se).setIsPointerInTransit(!1),F(this,Q,Ds).call(this),l(this,Se).onIntentExit(e)},Ms=function(){F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),F(this,Q,Is).call(this),l(this,at)&&l(this,Se).setIsPointerInTransit(!1),I(this,at,!1),I(this,vt,null),I(this,ir,null),I(this,fn,null),I(this,Br,null)},pf=function(e){const n=l(this,Se).contentNode();if(!n)return!1;const o=n.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const i=l(this,Se).subContentSelector(),s=o.closest(i);return!s||s===n?!1:s.id?!!n.querySelector(`[aria-controls="${s.id}"]`):!1},Bo=new WeakMap,gf=function(){if(l(this,or))return;const e=oo(l(this,Se).triggerNode()??l(this,Se).contentNode());e&&(e.addEventListener("pointermove",l(this,Bo),!0),I(this,or,()=>{e.removeEventListener("pointermove",l(this,Bo),!0),I(this,or,null)}))},Rs=function(){var e;(e=l(this,or))==null||e.call(this)},Ns=function(){F(this,Q,Tr).call(this),I(this,Pn,setTimeout(()=>{I(this,Pn,null),l(this,at)&&F(this,Q,bo).call(this)},500))},Tr=function(){l(this,Pn)!==null&&(clearTimeout(l(this,Pn)),I(this,Pn,null))},Ds=function(){I(this,vt,null),I(this,ir,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 zo,Vo;const eu=class eu{constructor(e){P(this,"opts");P(this,"isUsingKeyboard",new Bl);C(this,zo,oe(!1));C(this,Vo,oe(!1));P(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,zo))}set ignoreCloseAutoFocus(e){N(l(this,zo),e,!0)}get isPointerInTransit(){return w(l(this,Vo))}set isPointerInTransit(e){N(l(this,Vo),e,!0)}};zo=new WeakMap,Vo=new WeakMap;let Nu=eu;var Wo,Uo;const tu=class tu{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"parentMenu");P(this,"contentId",G(()=>""));C(this,Wo,oe(null));P(this,"contentPresence");C(this,Uo,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&&ke(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return eo.set(new tu(e,n,null))}get contentNode(){return w(l(this,Wo))}set contentNode(e){N(l(this,Wo),e,!0)}get triggerNode(){return w(l(this,Uo))}set triggerNode(e){N(l(this,Uo),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Wo=new WeakMap,Uo=new WeakMap;let Hl=tu;var Ho,Ko,jo,Go,qo,en,mf,Fs,bf,Yo,Xo;const nu=class nu{constructor(e,n){C(this,en);P(this,"opts");P(this,"parentMenu");P(this,"rovingFocusGroup");P(this,"domContext");P(this,"attachment");C(this,Ho,oe(""));C(this,Ko,0);C(this,jo);C(this,Go,oe(!1));C(this,qo);P(this,"onCloseAutoFocus",e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||l(this,qo))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Ic(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});C(this,Yo,U(()=>({open:this.parentMenu.opts.open.current})));C(this,Xo,U(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":_c(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})));P(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=n,this.domContext=new Ya(e.ref),this.attachment=ft(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=e.id,I(this,qo,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,jo,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")}),ke(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{_t(()=>{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,Ko))})}static create(e){return hs.set(new nu(e,eo.get()))}get search(){return w(l(this,Ho))}set search(e){N(l(this,Ho),e,!0)}get mounted(){return w(l(this,Go))}set mounted(e){N(l(this,Go),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(),_t(()=>{r.focus(),_t(()=>{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,jo).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){It(e.currentTarget)&&It(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ko)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&_t(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return F(this,en,Fs).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||F(this,en,Fs).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!F(this,en,Fs).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,_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return w(l(this,Yo))}set snippetProps(e){N(l(this,Yo),e)}get props(){return w(l(this,Xo))}set props(e){N(l(this,Xo),e)}};Ho=new WeakMap,Ko=new WeakMap,jo=new WeakMap,Go=new WeakMap,qo=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])`)):[]},Fs=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(!It(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}))},Yo=new WeakMap,Xo=new WeakMap;let Du=nu;var zr,Zo;class Ja{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,zr,oe(!1));C(this,Zo,U(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Pc(this.opts.disabled.current),"data-disabled":Xa(this.opts.disabled.current),"data-highlighted":w(l(this,zr))?"":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=ft(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&&Pt(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||Pt(e)&&this.content.onItemLeave(e)}onfocus(e){_t(()=>{e.defaultPrevented||this.opts.disabled.current||N(l(this,zr),!0)})}onblur(e){_t(()=>{e.defaultPrevented||N(l(this,zr),!1)})}get props(){return w(l(this,Zo))}set props(e){N(l(this,Zo),e)}}zr=new WeakMap,Zo=new WeakMap;var Jo,ha,vf,Qo;const ru=class ru{constructor(e,n){C(this,ha);P(this,"opts");P(this,"item");P(this,"root");C(this,Jo,!1);C(this,Qo,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 Ja(e,hs.get());return new ru(e,n)}onkeydown(e){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&e.key===Za)&&Ll.includes(e.key)){if(!bn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||F(this,ha,vf).call(this)}onpointerup(e){if(!e.defaultPrevented&&!l(this,Jo)){if(!bn(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){I(this,Jo,!0)}get props(){return w(l(this,Qo))}set props(e){N(l(this,Qo),e)}};Jo=new WeakMap,ha=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()},Qo=new WeakMap;let Qs=ru;var hn,In,Er,$o;const ou=class ou{constructor(e,n,r,o){C(this,In);P(this,"opts");P(this,"item");P(this,"content");P(this,"submenu");P(this,"attachment");C(this,hn,null);C(this,$o,U(()=>Zt({"aria-haspopup":"menu","aria-expanded":Pc(this.submenu.opts.open.current),"data-state":_c(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=ft(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,Er).call(this)})}static create(e){const n=hs.get(),r=new Ja(e,n),o=eo.get();return new ou(e,r,n,o)}onpointermove(e){if(Pt(e)){if(this.submenu.root.isPointerInTransit){l(this,hn)!==null&&F(this,In,Er).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,Er).call(this);return}this.submenu.onOpen(),F(this,In,Er).call(this)},n))}}}onpointerleave(e){Pt(e)&&F(this,In,Er).call(this)}onkeydown(e){const n=this.content.search!=="";this.item.opts.disabled.current||n&&e.key===Za||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(),_t(()=>{const r=this.submenu.contentNode;r&&ff.dispatch(r)}))}get props(){return w(l(this,$o))}set props(e){N(l(this,$o),e)}};hn=new WeakMap,In=new WeakSet,Er=function(){l(this,hn)!==null&&(this.content.domContext.getWindow().clearTimeout(l(this,hn)),I(this,hn,null))},$o=new WeakMap;let Fu=ou;var ei,ti;const iu=class iu{constructor(e,n,r=null){P(this,"opts");P(this,"item");P(this,"group");C(this,ei,U(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));C(this,ti,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&&(ke(()=>this.group.opts.value.current,o=>{this.opts.checked.current=o.includes(this.opts.value.current)}),ke(()=>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 Qs(e,new Ja(e,hs.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,ei))}set snippetProps(e){N(l(this,ei),e)}get props(){return w(l(this,ti))}set props(e){N(l(this,ti),e)}};ei=new WeakMap,ti=new WeakMap;let Lu=iu;var ni,ri;const su=class su{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ni,oe(void 0));C(this,ri,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=ft(this.opts.ref)}static create(e){return Rc.set(new su(e,Mc.get()))}get groupHeadingId(){return w(l(this,ni))}set groupHeadingId(e){N(l(this,ni),e,!0)}get props(){return w(l(this,ri))}set props(e){N(l(this,ri),e)}};ni=new WeakMap,ri=new WeakMap;let Bu=su;var oi;const xo=class xo{constructor(e,n){P(this,"opts");P(this,"group");P(this,"attachment");C(this,oi,U(()=>({id:this.opts.id.current,role:"group",[this.group.root.getBitsAttr("group-heading")]:"",...this.attachment})));this.opts=e,this.group=n,this.attachment=ft(this.opts.ref,r=>this.group.groupHeadingId=r?.id)}static create(e){const n=Dm.getOr(null);if(n)return new xo(e,n);const r=Nc.getOr(null);return r?new xo(e,r):new xo(e,Rc.get())}get props(){return w(l(this,oi))}set props(e){N(l(this,oi),e)}};oi=new WeakMap;let zu=xo;var ii;const au=class au{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ii,U(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return new au(e,Mc.get())}get props(){return w(l(this,ii))}set props(e){N(l(this,ii),e)}};ii=new WeakMap;let Vu=au;var si,ai;const lu=class lu{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,si,oe(null));P(this,"root");C(this,ai,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=ft(this.opts.ref)}static create(e){return Rc.set(Nc.set(new lu(e,hs.get())))}get groupHeadingId(){return w(l(this,si))}set groupHeadingId(e){N(l(this,si),e,!0)}setValue(e){this.opts.value.current=e}get props(){return w(l(this,ai))}set props(e){N(l(this,ai),e)}};si=new WeakMap,ai=new WeakMap;let Wu=lu;var li,ci;const cu=class cu{constructor(e,n,r){P(this,"opts");P(this,"item");P(this,"group");P(this,"attachment");C(this,li,U(()=>this.group.opts.value.current===this.opts.value.current));C(this,ci,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=ft(this.opts.ref)}static create(e){const n=Nc.get(),r=new Ja(e,n.content),o=new Qs(e,r);return new cu(e,o,n)}get isChecked(){return w(l(this,li))}set isChecked(e){N(l(this,li),e)}selectValue(){this.group.setValue(this.opts.value.current)}get props(){return w(l(this,ci))}set props(e){N(l(this,ci),e)}};li=new WeakMap,ci=new WeakMap;let Uu=cu;var pa,ui;const uu=class uu{constructor(e,n){P(this,"opts");P(this,"parentMenu");P(this,"attachment");P(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});P(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())}});P(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});P(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Za||e.key===Hd){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===To&&(this.parentMenu.onOpen(),e.preventDefault())}});C(this,pa,U(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));C(this,ui,U(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Pc(this.parentMenu.opts.open.current),"aria-controls":w(l(this,pa)),"data-disabled":Xa(this.opts.disabled.current),"data-state":_c(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=ft(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(e){return new uu(e,eo.get())}get props(){return w(l(this,ui))}set props(e){N(l(this,ui),e)}};pa=new WeakMap,ui=new WeakMap;let Hu=uu;class Cx{static create(e){const n=eo.get();return eo.set(new Hl(e,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;var Mn,sr,Rn,Vr,Wr,Nn,Ur,Tt,ga,no,yf,ma,Hr,ba,va,ya,wa,di,wf,Ca,xa;const du=class du{constructor(e){C(this,no);P(this,"opts");C(this,Mn);C(this,sr);C(this,Rn,{pointerdown:!1});C(this,Vr,!1);C(this,Wr,!1);C(this,Nn);C(this,Ur);C(this,Tt,me);C(this,ga,e=>{e.defaultPrevented||this.opts.ref.current&&_t(()=>{if(!(!this.opts.ref.current||l(this,wa).call(this,e.target))&&e.target&&!l(this,Wr)){if(typeof l(this,Ur)?.current!="function")return;l(this,Ur).current(e)}})});C(this,ma,e=>{let n=e;n.defaultPrevented&&(n=Ku(e)),typeof l(this,Mn)?.current=="function"&&l(this,Mn).current(e)});C(this,Hr,Pu(e=>{if(!this.opts.ref.current){l(this,Tt).call(this);return}if(typeof this.opts.isValidEvent?.current!="function"){l(this,Tt).call(this);return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||jm(e,this.opts.ref.current);if(!l(this,Vr)||F(this,no,wf).call(this)||!n){l(this,Tt).call(this);return}let r=e;if(r.defaultPrevented&&(r=Ku(r)),l(this,sr).current!=="close"&&l(this,sr).current!=="defer-otherwise-close"){l(this,Tt).call(this);return}if(e.pointerType==="touch")l(this,Tt).call(this),I(this,Tt,Ie(l(this,Nn),"click",l(this,ma),{once:!0}));else{if(typeof l(this,Mn)?.current!="function"){l(this,Tt).call(this);return}l(this,Mn).current(r)}},10));C(this,ba,e=>{l(this,Rn)[e.type]=!0});C(this,va,e=>{l(this,Rn)[e.type]=!1});C(this,ya,()=>{this.opts.ref.current&&I(this,Vr,Km(this.opts.ref.current))});C(this,wa,e=>this.opts.ref.current?Zd(this.opts.ref.current,e):!1);C(this,di,Pu(()=>{for(const e in l(this,Rn))l(this,Rn)[e]=!1;I(this,Vr,!1)},20));C(this,Ca,()=>{I(this,Wr,!0)});C(this,xa,()=>{I(this,Wr,!1)});P(this,"props",{onfocuscapture:l(this,Ca),onblurcapture:l(this,xa)});this.opts=e,I(this,sr,e.interactOutsideBehavior),I(this,Mn,e.onInteractOutside),I(this,Ur,e.onFocusOutside),Le(()=>{I(this,Nn,Jd(this.opts.ref.current))});let n=me,r;const o=()=>{clearTimeout(r),l(this,di).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),n()};ke([()=>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,sr)),n(),n=F(this,no,yf).call(this))}),o}),wn(()=>{l(this,di).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),l(this,Tt).call(this),n()})}static create(e){return new du(e)}};Mn=new WeakMap,sr=new WeakMap,Rn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,Nn=new WeakMap,Ur=new WeakMap,Tt=new WeakMap,ga=new WeakMap,no=new WeakSet,yf=function(){return Pr(Ie(l(this,Nn),"pointerdown",Pr(l(this,ba),l(this,ya)),{capture:!0}),Ie(l(this,Nn),"pointerdown",Pr(l(this,va),l(this,Hr))),Ie(l(this,Nn),"focusin",l(this,ga)))},ma=new WeakMap,Hr=new WeakMap,ba=new WeakMap,va=new WeakMap,ya=new WeakMap,wa=new WeakMap,di=new WeakMap,wf=function(){return Object.values(l(this,Rn)).some(Boolean)},Ca=new WeakMap,xa=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 Te({component:Cf,...t});Pe(e,!0);let n=h(e,"interactOutsideBehavior",7,"close"),r=h(e,"onInteractOutside",7,me),o=h(e,"onFocusOutside",7,me),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=me){r(v),p()},get onFocusOutside(){return o()},set onFocusOutside(v=me){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:Ee,$on:(v,m)=>Oe(e,v,m)},g=ue(),b=se(g);return ye(b,()=>s()??xe,()=>({props:d.props})),Z(t,g),_e(f)}globalThis.bitsEscapeLayers??=new Map;var Sa,ka;const fu=class fu{constructor(e){P(this,"opts");P(this,"domContext");C(this,Sa,()=>Ie(this.domContext.getDocument(),"keydown",l(this,ka),{passive:!1}));C(this,ka,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 Ya(this.opts.ref);let n=me;ke(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=l(this,Sa).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new fu(e)}};Sa=new WeakMap,ka=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 Te({component:xf,...t});Pe(e,!0);let n=h(e,"escapeKeydownBehavior",7,"close"),r=h(e,"onEscapeKeydown",7,me),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=me){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:Ee,$on:(d,f)=>Oe(e,d,f)},c=ue(),u=se(c);return ye(u,()=>o()??xe),Z(t,c),_e(a)}var pn,fi,ar;const Aa=class Aa{constructor(){C(this,pn,Ct([]));C(this,fi,new WeakMap);C(this,ar,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Aa),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&l(this,ar).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,fi).set(e,n)}getFocusMemory(e){return l(this,fi).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){l(this,ar).set(e,n)}getPreFocusMemory(e){return l(this,ar).get(e)}clearPreFocusMemory(e){l(this,ar).delete(e)}};pn=new WeakMap,fi=new WeakMap,ar=new WeakMap,P(Aa,"instance");let Gl=Aa;var Dn,Qe,lt,lr,Fn,Be,Sf,kf,Af,Tf,Yl,Ls,Xl;const hu=class hu{constructor(e){C(this,Be);C(this,Dn,!1);C(this,Qe,null);C(this,lt,Gl.getInstance());C(this,lr,[]);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,Qe)&&this.unmount(),I(this,Qe,e),l(this,lt).register(this),F(this,Be,Tf).call(this),F(this,Be,kf).call(this)}unmount(){l(this,Qe)&&(F(this,Be,Sf).call(this),F(this,Be,Af).call(this),l(this,lt).unregister(this),l(this,lt).clearPreFocusMemory(this),I(this,Qe,null))}static use(e){let n=null;return ke([()=>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,Qe=new WeakMap,lt=new WeakMap,lr=new WeakMap,Fn=new WeakMap,Be=new WeakSet,Sf=function(){for(const e of l(this,lr))e();I(this,lr,[])},kf=function(){if(!l(this,Qe))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Fn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Qe))return;const n=F(this,Be,Ls).call(this);n?(n.focus(),l(this,lt).setFocusMemory(this,n)):l(this,Qe).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,lt).getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}},Tf=function(){if(!l(this,Qe)||!l(this,Fn).trap.current)return;const e=l(this,Qe),n=e.ownerDocument,r=s=>{if(l(this,Dn)||!l(this,lt).isActiveScope(this))return;const a=s.target;if(!a)return;if(e.contains(a))l(this,lt).setFocusMemory(this,a);else{const u=l(this,lt).getFocusMemory(this);if(u&&e.contains(u)&&uf(u))s.preventDefault(),u.focus();else{const d=F(this,Be,Ls).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,lt).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,lr).push(Ie(n,"focusin",r,{capture:!0}),Ie(e,"keydown",o));const i=new MutationObserver(()=>{const s=l(this,lt).getFocusMemory(this);if(s&&!e.contains(s)){const a=F(this,Be,Ls).call(this),c=F(this,Be,Xl).call(this)[0],u=a||c;u?(u.focus(),l(this,lt).setFocusMemory(this,u)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),l(this,lr).push(()=>i.disconnect())},Yl=function(){return l(this,Qe)?lf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]},Ls=function(){return F(this,Be,Yl).call(this)[0]||null},Xl=function(){return l(this,Qe)?cf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]};let ql=hu;function Ef(t,e){if(new.target)return Te({component:Ef,...t});Pe(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,me),s=h(e,"onOpenAutoFocus",7,me),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=me){i(b),p()},get onOpenAutoFocus(){return s()},set onOpenAutoFocus(b=me){s(b),p()},get focusScope(){return a()},set focusScope(b){a(b),p()},get ref(){return c()},set ref(b){c(b),p()},$set:Ee,$on:(b,v)=>Oe(e,b,v)},f=ue(),g=se(f);return ye(g,()=>a()??xe,()=>({props:u.props})),Z(t,f),_e(d)}const ju=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Kr,jr,hi,pi,Ta,Of,Ea,Oa,gi;const pu=class pu{constructor(e){C(this,Ta);P(this,"opts");P(this,"domContext");C(this,Kr,me);C(this,jr,!1);C(this,hi,ju);C(this,pi,ju);C(this,Ea,e=>{l(this,pi).call(this,e)});C(this,Oa,e=>{const n=this.opts.ref.current,r=e.target;!bn(n)||!bn(r)||!l(this,jr)||!Ym(this)||!Lg(n,r)||(l(this,hi).call(this,e),!e.defaultPrevented&&I(this,Kr,qm(n,this.domContext.getDocument().body)))});C(this,gi,()=>{l(this,Kr).call(this),I(this,Kr,me)});this.opts=e,this.domContext=new Ya(e.ref);let n=me;ke(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,i])=>(I(this,jr,r),I(this,hi,o),I(this,pi,i),r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=F(this,Ta,Of).call(this)),()=>{I(this,jr,!1),n(),l(this,gi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new pu(e)}};Kr=new WeakMap,jr=new WeakMap,hi=new WeakMap,pi=new WeakMap,Ta=new WeakSet,Of=function(){return Pr(Ie(this.domContext.getDocument(),"pointerdown",l(this,Oa)),Ie(this.domContext.getDocument(),"pointerup",Id(l(this,gi),l(this,Ea))))},Ea=new WeakMap,Oa=new WeakMap,gi=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 ys(e,"none"),ys(t,"text"),()=>{ys(e,n),ys(t,r)}}function ys(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 Pf(t,e){if(new.target)return Te({component:Pf,...t});Pe(e,!0);let n=h(e,"preventOverflowTextSelection",7,!0),r=h(e,"onPointerDown",7,me),o=h(e,"onPointerUp",7,me),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=me){r(g),p()},get onPointerUp(){return o()},set onPointerUp(g=me){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:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>s()??xe),Z(t,d),_e(u)}globalThis.bitsIdCounter??={current:0};function $s(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var mi,Gr,cr,ur,Pa,_f;class Xm{constructor(e){C(this,Pa);C(this,mi);C(this,Gr,0);C(this,cr,oe());C(this,ur);I(this,mi,e)}get(...e){return I(this,Gr,l(this,Gr)+1),w(l(this,cr))===void 0&&I(this,ur,kd(()=>{N(l(this,cr),l(this,mi).call(this,...e),!0)})),Le(()=>()=>{F(this,Pa,_f).call(this)}),w(l(this,cr))}}mi=new WeakMap,Gr=new WeakMap,cr=new WeakMap,ur=new WeakMap,Pa=new WeakSet,_f=function(){I(this,Gr,l(this,Gr)-1),l(this,ur)&&l(this,Gr)<=0&&(l(this,ur).call(this),N(l(this,cr),void 0),I(this,ur,void 0))};const Bs=new Il;let ws=oe(null),dl=null,uo=null,fo=!1;const qu=G(()=>{for(const t of Bs.values())if(t)return!0;return!1});let fl=null;const Zm=new Xm(()=>{function t(){typeof document>"u"||(document.body.setAttribute("style",w(ws)??""),document.body.style.removeProperty("--scrollbar-width"),Ou&&dl?.(),N(ws,null))}function e(){uo!==null&&(window.clearTimeout(uo),uo=null)}function n(o,i){e(),fo=!0,fl=Date.now();const s=fl,a=()=>{uo=null,fl===s&&(If(Bs)?fo=!1:(fo=!1,i()))},c=o===null?24:o;uo=window.setTimeout(a,c)}function r(){w(ws)===null&&Bs.size===0&&!fo&&N(ws,document.body.getAttribute("style"),!0)}return ke(()=>qu.current,()=>{if(!qu.current)return;r(),fo=!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=Ie(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),_t(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),wn(()=>()=>{e(),t(),dl?.()}),{get lockMap(){return Bs},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});var dr,bi,vi,ct;class Jm{constructor(e,n=()=>null){C(this,dr,$s());C(this,bi);C(this,vi,()=>null);C(this,ct);P(this,"locked");I(this,bi,e),I(this,vi,n),I(this,ct,Zm.get()),l(this,ct)&&(l(this,ct).cancelPendingCleanup(),l(this,ct).ensureInitialStyleCaptured(),l(this,ct).lockMap.set(l(this,dr),l(this,bi)??!1),this.locked=G(()=>l(this,ct).lockMap.get(l(this,dr))??!1,r=>l(this,ct).lockMap.set(l(this,dr),r)),wn(()=>{if(l(this,ct).lockMap.delete(l(this,dr)),If(l(this,ct).lockMap))return;const r=l(this,vi).call(this);l(this,ct).scheduleCleanupIfNoNewLocks(r,()=>{l(this,ct).resetBodyStyle()})}))}}dr=new WeakMap,bi=new WeakMap,vi=new WeakMap,ct=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 Te({component:Jl,...t});Pe(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:Ee,$on:(i,s)=>Oe(e,i,s)};return _e(o)}const Qm=["top","right","bottom","left"],jn=Math.min,gt=Math.max,ea=Math.round,Cs=Math.floor,$t=t=>({x:t,y:t}),$m={left:"right",right:"left",bottom:"top",top:"bottom"};function Ql(t,e,n){return gt(t,jn(e,n))}function vn(t,e){return typeof t=="function"?t(e):t}function yn(t){return t.split("-")[0]}function io(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=io(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=ta(s)),[s,ta(s)]}function tb(t){const e=ta(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=io(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 ta(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 na(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(io(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=na(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=na(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,K=R/2-m[v]/2-1,j=jn(f[T],K),$=jn(f[O],K),z=j,Y=R-m[v]-$,B=R/2-m[v]/2+M,J=Ql(z,B,Y),re=!c.arrow&&io(o)!=null&&B!==J&&i.reference[v]/2-(B<z?j:$)-m[v]/2<0,ee=re?B<z?B-z:B-Y:0;return{[b]:g[b]+ee,data:{[b]:J,centerOffset:B-J-ee,...re&&{alignmentOffset:ee}},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?[ta(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),K=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&K.push(M[T]),f){const B=eb(o,s,y);K.push(M[B[0]],M[B[1]])}if(j=[...j,{placement:o,overflows:K}],!K.every(B=>B<=0)){var $,z;const B=((($=i.flip)==null?void 0:$.index)||0)+1,J=R[B];if(J&&(!(f==="alignment"?O!==Qt(J):!1)||j.every(ie=>Qt(ie.placement)===O?ie.overflows[0]>0:!0)))return{data:{index:B,overflows:j},reset:{placement:J}};let re=(z=j.filter(ee=>ee.overflows[0]<=0).sort((ee,ie)=>ee.overflows[1]-ie.overflows[1])[0])==null?void 0:z.placement;if(!re)switch(b){case"bestFit":{var Y;const ee=(Y=j.filter(ie=>{if(k){const he=Qt(ie.placement);return he===O||he==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(he=>he>0).reduce((he,_)=>he+_,0)]).sort((ie,he)=>ie[1]-he[1])[0])==null?void 0:Y[0];ee&&(re=ee);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=io(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=io(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 j=gt(d.left,0),$=gt(d.right,0),z=gt(d.top,0),Y=gt(d.bottom,0);b?M=v-2*(j!==0||$!==0?j+$:gt(d.left,d.right)):R=m-2*(z!==0||Y!==0?z+Y:gt(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:R});const K=await s.getDimensions(a.floating);return v!==K.width||m!==K.height?{reset:{rects:!0}}:{}}}};function Qa(){return typeof window<"u"}function so(t){return Nf(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(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 Qa()?t instanceof Node||t instanceof mt(t).Node:!1}function Rt(t){return Qa()?t instanceof Element||t instanceof mt(t).Element:!1}function Cn(t){return Qa()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function $u(t){return!Qa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function ps(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function vb(t){return/^(table|td|th)$/.test(so(t))}function $a(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/,Zn=t=>!!t&&t!=="none";let hl;function Bc(t){const e=Rt(t)?Nt(t):t;return Zn(e.transform)||Zn(e.translate)||Zn(e.scale)||Zn(e.rotate)||Zn(e.perspective)||!zc()&&(Zn(e.backdropFilter)||Zn(e.filter))||yb.test(e.willChange||"")||wb.test(e.contain||"")}function Cb(t){let e=Gn(t);for(;Cn(e)&&!to(e);){if(Bc(e))return e;if($a(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 to(t){return/^(html|body|#document)$/.test(so(t))}function Nt(t){return mt(t).getComputedStyle(t)}function el(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(so(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 to(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&ps(e)?e:Df(e)}function Eo(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=mt(o);if(i){const a=ec(s);return e.concat(s,s.visualViewport||[],ps(o)?o:[],a&&n?Eo(a):[])}else return e.concat(o,Eo(o,[],n))}function ec(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ff(t){const e=Nt(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=ea(n)!==i||ea(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Vc(t){return Rt(t)?t:t.contextElement}function _r(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?ea(n.width):n.width)/r,a=(i?ea(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=mt(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!==mt(t)?!1:e}function yr(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?Rt(r)&&(s=_r(r)):s=_r(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=mt(i),b=r&&Rt(r)?mt(r):r;let v=g,m=ec(v);for(;m&&r&&b!==v;){const E=_r(m),T=m.getBoundingClientRect(),O=Nt(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=mt(m),m=ec(v)}}return na({width:d,height:f,x:c,y:u})}function tl(t,e){const n=el(t).scrollLeft;return e?e.left+n:yr(tn(t)).left+n}function Bf(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tl(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?$a(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)&&((so(r)!=="body"||ps(s))&&(c=el(r)),f)){const b=yr(r);u=_r(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=el(t),r=t.ownerDocument.body,o=gt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=gt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+tl(t);const a=-n.scrollTop;return Nt(r).direction==="rtl"&&(s+=gt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ed=25;function Eb(t,e){const n=mt(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=tl(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=yr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Cn(t)?_r(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(Rt(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 na(r)}function zf(t,e){const n=Gn(t);return n===e||!Rt(n)||to(n)?!1:Nt(n).position==="fixed"||zf(n,e)}function Pb(t,e){const n=e.get(t);if(n)return n;let r=Eo(t,[],!1).filter(a=>Rt(a)&&so(a)!=="body"),o=null;const i=Nt(t).position==="fixed";let s=i?Gn(t):t;for(;Rt(s)&&!to(s);){const a=Nt(s),c=Bc(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ps(s)&&!c&&zf(t,s))?r=r.filter(d=>d!==s):o=a,s=Gn(s)}return e.set(t,r),r}function _b(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?$a(e)?[]:Pb(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=gt(b.top,c),u=jn(b.right,u),d=jn(b.bottom,d),f=gt(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=yr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=$t(0);function u(){c.x=tl(o)}if(r||!r&&!i)if((so(e)!=="body"||ps(o))&&(a=el(e)),r){const b=yr(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 Nt(t).position==="static"}function nd(t,e){if(!Cn(t)||Nt(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=mt(t);if($a(t))return n;if(!Cn(t)){let o=Gn(t);for(;o&&!to(o);){if(Rt(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&&to(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 Nt(t).direction==="rtl"}const Db={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:tn,getClippingRect:_b,getOffsetParent:Vf,getElementRects:Rb,getClientRects:Ab,getDimensions:Ib,getScale:_r,isElement:Rt,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=Cs(f),m=Cs(o.clientWidth-(d+g)),E=Cs(o.clientHeight-(f+b)),T=Cs(d),A={rootMargin:-v+"px "+-m+"px "+-E+"px "+-T+"px",threshold:gt(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?Eo(u):[],...e?Eo(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?yr(t):null;c&&E();function E(){const T=yr(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 Jn(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(()=>Jn(t.open)??!0),r=U(()=>Jn(t.middleware)),o=U(()=>Jn(t.transform)??!0),i=U(()=>Jn(t.placement)??"bottom"),s=U(()=>Jn(t.strategy)??"absolute"),a=U(()=>Jn(t.sideOffset)??0),c=U(()=>Jn(t.alignOffset)??0),u=t.reference;let d=oe(0),f=oe(0);const g=Ct(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 j=g.current?rd(g.current,w(d)):w(d),$=g.current?rd(g.current,w(f)):w(f);return w(o)?{position:w(b),left:"0",top:"0",transform:`translate(${j}px, ${$}px)`,...g.current&&Uf(g.current)>=1.5&&{willChange:"transform"}}:{position:w(b),left:`${j}px`,top:`${$}px`}});let y;function x(){if(u.current===null||g.current===null)return;const j=u.current,$=g.current,z=++O;jb(j,$,{middleware:w(r),placement:w(i),strategy:w(s)}).then(Y=>{if(z!==O||u.current!==j||g.current!==$)return;if(qb(j)){N(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(n)&&w(d)!==0&&w(f)!==0){const J=Math.max(Math.abs(w(a)),Math.abs(w(c)),15);if(Y.x<=J&&Y.y<=J)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 K(){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(K(),!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 xt("Floating.Root"),tc=new xt("Floating.Content"),Uc=new xt("Floating.Root");class ra{constructor(){P(this,"anchorNode",Ct(null));P(this,"customAnchorNode",Ct(null));P(this,"triggerNode",Ct(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 ra):Wc.set(new ra)}}var yi,wi,Ci,_a,xi,Ia,Si,ki,Ai,Ti,Ei,Oi,Pi,_i,Ii,Mi,Ri,Ni,Di,Fi,Li,Bi,zi,Vi;const Ma=class Ma{constructor(e,n){P(this,"opts");P(this,"root");P(this,"contentRef",Ct(null));P(this,"wrapperRef",Ct(null));P(this,"arrowRef",Ct(null));P(this,"contentAttachment",ft(this.contentRef));P(this,"wrapperAttachment",ft(this.wrapperRef));P(this,"arrowAttachment",ft(this.arrowRef));P(this,"arrowId",Ct($s()));C(this,yi,U(()=>{if(typeof this.opts.style=="string")return go(this.opts.style);if(!this.opts.style)return{}}));C(this,wi);C(this,Ci,new _g(()=>this.arrowRef.current??void 0));C(this,_a,U(()=>l(this,Ci)?.width??0));C(this,xi,U(()=>l(this,Ci)?.height??0));C(this,Ia,U(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")));C(this,Si,U(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));C(this,ki,U(()=>w(l(this,Si)).length>0));C(this,Ai,U(()=>({padding:this.opts.collisionPadding.current,boundary:w(l(this,Si)).filter(Zg),altBoundary:this.hasExplicitBoundaries})));C(this,Ti,oe(void 0));C(this,Ei,oe(void 0));C(this,Oi,oe(void 0));C(this,Pi,oe(void 0));C(this,_i,U(()=>[Bb({mainAxis:this.opts.sideOffset.current+w(l(this,xi)),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,Ti),n,!0),N(l(this,Ei),r,!0),N(l(this,Oi),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,_a)),arrowHeight:w(l(this,xi))}),this.opts.hideWhenDetached.current&&Ub({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));P(this,"floating");C(this,Ii,U(()=>Zb(this.floating.placement)));C(this,Mi,U(()=>Jb(this.floating.placement)));C(this,Ri,U(()=>this.floating.middlewareData.arrow?.x??0));C(this,Ni,U(()=>this.floating.middlewareData.arrow?.y??0));C(this,Di,U(()=>this.floating.middlewareData.arrow?.centerOffset!==0));C(this,Fi,oe());C(this,Li,U(()=>Yb[this.placedSide]));C(this,Bi,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,Ti))}px`,"--bits-floating-available-height":`${w(l(this,Ei))}px`,"--bits-floating-anchor-width":`${w(l(this,Oi))}px`,"--bits-floating-anchor-height":`${w(l(this,Pi))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(l(this,yi))},dir:this.opts.dir.current,...this.wrapperAttachment})));C(this,zi,U(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Rd({...w(l(this,yi))}),...this.contentAttachment})));C(this,Vi,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,wi,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ke(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Gb({strategy:()=>this.opts.strategy.current,placement:()=>w(l(this,Ia)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Lb(...r,{animationFrame:l(this,wi)?.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()}),ke(()=>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 Ma(e,Uc.get())):tc.set(new Ma(e,Wc.get()))}get hasExplicitBoundaries(){return w(l(this,ki))}set hasExplicitBoundaries(e){N(l(this,ki),e)}get detectOverflowOptions(){return w(l(this,Ai))}set detectOverflowOptions(e){N(l(this,Ai),e)}get middleware(){return w(l(this,_i))}set middleware(e){N(l(this,_i),e)}get placedSide(){return w(l(this,Ii))}set placedSide(e){N(l(this,Ii),e)}get placedAlign(){return w(l(this,Mi))}set placedAlign(e){N(l(this,Mi),e)}get arrowX(){return w(l(this,Ri))}set arrowX(e){N(l(this,Ri),e)}get arrowY(){return w(l(this,Ni))}set arrowY(e){N(l(this,Ni),e)}get cannotCenterArrow(){return w(l(this,Di))}set cannotCenterArrow(e){N(l(this,Di),e)}get contentZIndex(){return w(l(this,Fi))}set contentZIndex(e){N(l(this,Fi),e,!0)}get arrowBaseSide(){return w(l(this,Li))}set arrowBaseSide(e){N(l(this,Li),e)}get wrapperProps(){return w(l(this,Bi))}set wrapperProps(e){N(l(this,Bi),e)}get props(){return w(l(this,zi))}set props(e){N(l(this,zi),e)}get arrowStyle(){return w(l(this,Vi))}set arrowStyle(e){N(l(this,Vi),e)}};yi=new WeakMap,wi=new WeakMap,Ci=new WeakMap,_a=new WeakMap,xi=new WeakMap,Ia=new WeakMap,Si=new WeakMap,ki=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,_i=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;let nc=Ma;var Wi;const gu=class gu{constructor(e,n){P(this,"opts");P(this,"content");C(this,Wi,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,Wi))}set props(e){N(l(this,Wi),e)}};Wi=new WeakMap;let id=gu;class rc{constructor(e,n){P(this,"opts");P(this,"root");this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=_d(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 Te({component:Hf,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"tooltip",7,!1);ra.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:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe),Z(t,i),_e(o)}function Kf(t,e){if(new.target)return Te({component:Kf,...t});Pe(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,$s),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 K={get content(){return n()},set content(z){n(z),p()},get side(){return r()},set side(z="bottom"){r(z),p()},get sideOffset(){return o()},set sideOffset(z=0){o(z),p()},get align(){return i()},set align(z="center"){i(z),p()},get alignOffset(){return s()},set alignOffset(z=0){s(z),p()},get id(){return a()},set id(z){a(z),p()},get arrowPadding(){return c()},set arrowPadding(z=0){c(z),p()},get avoidCollisions(){return u()},set avoidCollisions(z=!0){u(z),p()},get collisionBoundary(){return d()},set collisionBoundary(z=[]){d(z),p()},get collisionPadding(){return f()},set collisionPadding(z=0){f(z),p()},get hideWhenDetached(){return g()},set hideWhenDetached(z=!1){g(z),p()},get onPlaced(){return b()},set onPlaced(z=()=>{}){b(z),p()},get sticky(){return v()},set sticky(z="partial"){v(z),p()},get updatePositionStrategy(){return m()},set updatePositionStrategy(z="optimized"){m(z),p()},get strategy(){return E()},set strategy(z="fixed"){E(z),p()},get dir(){return T()},set dir(z="ltr"){T(z),p()},get style(){return O()},set style(z={}){O(z),p()},get wrapperId(){return A()},set wrapperId(z=$s()){A(z),p()},get customAnchor(){return y()},set customAnchor(z=null){y(z),p()},get enabled(){return x()},set enabled(z){x(z),p()},get tooltip(){return k()},set tooltip(z=!1){k(z),p()},$set:Ee,$on:(z,Y)=>Oe(e,z,Y)},j=ue(),$=se(j);return ye($,()=>n()??xe,()=>({props:R.props,wrapperProps:w(M)})),Z(t,j),_e(K)}function jf(t,e){if(new.target)return Te({component:jf,...t});Pe(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:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe,()=>({props:{},wrapperProps:{}})),Z(t,i),_e(o)}var Qb=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function Gf(t,e){if(new.target)return Te({component:Gf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"isStatic",7,!1),o=h(e,"onPlaced",7),i=Cr(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:Ee,$on:(f,g)=>Oe(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,So({get content(){return n()},get onPlaced(){return o()}},()=>i))};Ne(c,f=>{r()?f(u):f(d,-1)})}return Z(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=Ke("<!> <!>",1);function Kc(t,e){if(new.target)return Te({component:Kc,...t});Pe(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),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=h(e,"ref",7),be=h(e,"tooltip",7,!1),W=h(e,"contentPointerEvents",7,"auto"),Me=Cr(e,$b);const pe=U(()=>k()??!0),ve=U(()=>y()??(w(pe)?"fixed":"absolute"));var we={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 K()},set onPlaced(S){K(S),p()},get onInteractOutside(){return j()},set onInteractOutside(S){j(S),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(S){$(S),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(S){z(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 J()},set loop(S){J(S),p()},get trapFocus(){return re()},set trapFocus(S=!0){re(S),p()},get isValidEvent(){return ee()},set isValidEvent(S=()=>!1){ee(S),p()},get customAnchor(){return ie()},set customAnchor(S=null){ie(S),p()},get isStatic(){return he()},set isStatic(S=!1){he(S),p()},get enabled(){return _()},set enabled(S){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get tooltip(){return be()},set tooltip(S=!1){be(S),p()},get contentPointerEvents(){return W()},set contentPointerEvents(S="auto"){W(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)};return Gf(t,{get isStatic(){return he()},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(ve)},get dir(){return x()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get enabled(){return _()},get tooltip(){return be()},content:(ae,H)=>{let Re=()=>(H?.()).props,rt=()=>(H?.()).wrapperProps;var ht=ev(),Ge=se(ht);{var qe=ge=>{Jl(ge,{get preventScroll(){return w(pe)}})},ze=ge=>{Jl(ge,{get preventScroll(){return w(pe)}})};Ne(Ge,ge=>{e.forceMount&&_()?ge(qe):e.forceMount||ge(ze,1)})}var pt=mn(Ge,2);{const ge=(Dt,Ft)=>{let Xn=()=>(Ft?.()).props;xf(Dt,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get enabled(){return _()},get ref(){return de()},children:(Lt,xn)=>{Cf(Lt,{get id(){return s()},get onInteractOutside(){return j()},get onFocusOutside(){return Y()},get interactOutsideBehavior(){return B()},get isValidEvent(){return ee()},get enabled(){return _()},get ref(){return de()},children:(St,Xe)=>{let it=()=>(Xe?.()).props;Pf(St,{get id(){return s()},get preventOverflowTextSelection(){return i()},get onPointerDown(){return a()},get onPointerUp(){return c()},get enabled(){return _()},get ref(){return de()},children:(nn,il)=>{var bs=ue(),sl=se(bs);{let al=U(()=>({props:Zt(Me,Re(),it(),Xn(),{style:{pointerEvents:W()}}),wrapperProps:rt()}));ye(sl,()=>n()??xe,()=>w(al))}Z(nn,bs)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let Ye=U(()=>_()&&!be());Ef(pt,{get onOpenAutoFocus(){return z()},get onCloseAutoFocus(){return $()},get loop(){return J()},get enabled(){return w(Ye)},get trapFocus(){return re()},get forceMount(){return e.forceMount},get ref(){return de()},focusScope:ge,$$slots:{focusScope:!0}})}Z(ae,ht)},$$slots:{content:!0}}),_e(we)}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 Te({component:qf,...t});Pe(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),K=h(e,"style",7),j=h(e,"onPlaced",7),$=h(e,"onInteractOutside",7),z=h(e,"onCloseAutoFocus",7),Y=h(e,"onOpenAutoFocus",7),B=h(e,"onFocusOutside",7),J=h(e,"interactOutsideBehavior",7,"close"),re=h(e,"loop",7),ee=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),he=h(e,"customAnchor",7,null),_=h(e,"isStatic",7,!1),de=h(e,"ref",7),be=h(e,"shouldRender",7),W=Cr(e,tv);var Me={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 K()},set style(S){K(S),p()},get onPlaced(){return j()},set onPlaced(S){j(S),p()},get onInteractOutside(){return $()},set onInteractOutside(S){$(S),p()},get onCloseAutoFocus(){return z()},set onCloseAutoFocus(S){z(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 J()},set interactOutsideBehavior(S="close"){J(S),p()},get loop(){return re()},set loop(S){re(S),p()},get trapFocus(){return ee()},set trapFocus(S=!0){ee(S),p()},get isValidEvent(){return ie()},set isValidEvent(S=()=>!1){ie(S),p()},get customAnchor(){return he()},set customAnchor(S=null){he(S),p()},get isStatic(){return _()},set isStatic(S=!1){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get shouldRender(){return be()},set shouldRender(S){be(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)},pe=ue(),ve=se(pe);{var we=S=>{Kc(S,So({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 K()},get onPlaced(){return j()},get customAnchor(){return he()},get isStatic(){return _()},get enabled(){return r()},get onInteractOutside(){return $()},get onCloseAutoFocus(){return z()},get onOpenAutoFocus(){return Y()},get interactOutsideBehavior(){return J()},get loop(){return re()},get trapFocus(){return ee()},get isValidEvent(){return ie()},get onFocusOutside(){return B()},forceMount:!1,get ref(){return de()}},()=>W))};Ne(ve,S=>{be()&&S(we)})}return Z(t,pe),_e(Me)}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 Te({component:Yf,...t});Pe(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),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=Cr(e,nv);var be={get popper(){return n()},set popper(W){n(W),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(W){r(W),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(W){o(W),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(W){i(W),p()},get id(){return s()},set id(W){s(W),p()},get onPointerDown(){return a()},set onPointerDown(W){a(W),p()},get onPointerUp(){return c()},set onPointerUp(W){c(W),p()},get side(){return u()},set side(W){u(W),p()},get sideOffset(){return d()},set sideOffset(W){d(W),p()},get align(){return f()},set align(W){f(W),p()},get alignOffset(){return g()},set alignOffset(W){g(W),p()},get arrowPadding(){return b()},set arrowPadding(W){b(W),p()},get avoidCollisions(){return v()},set avoidCollisions(W){v(W),p()},get collisionBoundary(){return m()},set collisionBoundary(W){m(W),p()},get collisionPadding(){return E()},set collisionPadding(W){E(W),p()},get sticky(){return T()},set sticky(W){T(W),p()},get hideWhenDetached(){return O()},set hideWhenDetached(W){O(W),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(W){A(W),p()},get strategy(){return y()},set strategy(W){y(W),p()},get dir(){return x()},set dir(W){x(W),p()},get preventScroll(){return k()},set preventScroll(W){k(W),p()},get wrapperId(){return R()},set wrapperId(W){R(W),p()},get style(){return M()},set style(W){M(W),p()},get onPlaced(){return K()},set onPlaced(W){K(W),p()},get onInteractOutside(){return j()},set onInteractOutside(W){j(W),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(W){$(W),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(W){z(W),p()},get onFocusOutside(){return Y()},set onFocusOutside(W){Y(W),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(W="close"){B(W),p()},get loop(){return J()},set loop(W){J(W),p()},get trapFocus(){return re()},set trapFocus(W=!0){re(W),p()},get isValidEvent(){return ee()},set isValidEvent(W=()=>!1){ee(W),p()},get customAnchor(){return ie()},set customAnchor(W=null){ie(W),p()},get isStatic(){return he()},set isStatic(W=!1){he(W),p()},get enabled(){return _()},set enabled(W){_(W),p()},$set:Ee,$on:(W,Me)=>Oe(e,W,Me)};return Kc(t,So({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 K()},get customAnchor(){return ie()},get isStatic(){return he()},get enabled(){return _()},get onInteractOutside(){return j()},get onCloseAutoFocus(){return $()},get onOpenAutoFocus(){return z()},get interactOutsideBehavior(){return B()},get loop(){return J()},get trapFocus(){return re()},get isValidEvent(){return ee()},get onFocusOutside(){return Y()}},()=>de,{forceMount:!0})),_e(be)}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,qr,Yr,jt,ut,fr,hr,Bn,zn,fe,zs,oc,ic,Xf,Zf,Vt,sc,Jf,Qf;class rv{constructor(e){C(this,fe);C(this,Ln);C(this,qr);C(this,Yr);C(this,jt,null);C(this,ut,null);C(this,fr,[]);C(this,hr,null);C(this,Bn,null);C(this,zn,null);I(this,Ln,e),I(this,qr,e.buffer??1);const n=e.transitIntentTimeout;I(this,Yr,typeof n=="number"&&n>0?n:null),ke([e.triggerNode,e.contentNode,e.enabled],([r,o,i])=>{if(!r||!o||!i){I(this,hr,null),F(this,fe,Vt).call(this);return}l(this,hr)&&l(this,hr)!==r&&F(this,fe,Vt).call(this),I(this,hr,r);const s=oo(r),a=g=>{F(this,fe,Zf).call(this,[g.clientX,g.clientY],r,o)},c=g=>{const b=g.relatedTarget;if(It(b)&&o.contains(b))return;const v=l(this,Ln).ignoredTargets?.()??[];It(b)&&v.some(m=>m===b||m.contains(b))||(I(this,fr,It(b)&&v.length>0?v.filter(m=>b.contains(m)):[]),I(this,jt,[g.clientX,g.clientY]),I(this,ut,"content"),F(this,fe,oc).call(this))},u=()=>{F(this,fe,Vt).call(this)},d=()=>{F(this,fe,Vt).call(this)},f=g=>{const b=g.relatedTarget;It(b)&&r.contains(b)||(I(this,jt,[g.clientX,g.clientY]),I(this,ut,"trigger"),F(this,fe,oc).call(this))};return[Ie(s,"pointermove",a),Ie(r,"pointerleave",c),Ie(r,"pointerenter",u),Ie(o,"pointerenter",d),Ie(o,"pointerleave",f)].reduce((g,b)=>()=>{g(),b()},()=>{})})}}Ln=new WeakMap,qr=new WeakMap,Yr=new WeakMap,jt=new WeakMap,ut=new WeakMap,fr=new WeakMap,hr=new WeakMap,Bn=new WeakMap,zn=new WeakMap,fe=new WeakSet,zs=function(){l(this,Bn)!==null&&(cancelAnimationFrame(l(this,Bn)),I(this,Bn,null))},oc=function(){F(this,fe,zs).call(this),I(this,Bn,requestAnimationFrame(()=>{I(this,Bn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,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,Yr)!==null&&(F(this,fe,ic).call(this),I(this,zn,window.setTimeout(()=>{I(this,zn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},l(this,Yr))))},Zf=function(e,n,r){if(!l(this,jt)||!l(this,ut))return;F(this,fe,zs).call(this),F(this,fe,Xf).call(this);const o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(l(this,ut)==="content"&&ml(e,i)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="trigger"&&ml(e,o)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="content"&&l(this,fr).length>0)for(const d of l(this,fr)){const f=d.getBoundingClientRect();if(ml(e,f))return;const g=sd(o,f),b=F(this,fe,sc).call(this,o,f,g);if(b&&gl(e,b))return}const s=sd(o,i),a=F(this,fe,sc).call(this,o,i,s);if(a&&gl(e,a))return;const c=l(this,ut)==="content"?i:o,u=F(this,fe,Jf).call(this,l(this,jt),c,s,l(this,ut));gl(e,u)||(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},Vt=function(){I(this,jt,null),I(this,ut,null),I(this,fr,[]),F(this,fe,zs).call(this),F(this,fe,ic).call(this)},sc=function(e,n,r){const o=l(this,qr);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,qr)*4,[s,a]=e;switch(o==="trigger"?F(this,fe,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 Ui,Hi,Vn,Ki,lc;class ac{constructor(e,n){C(this,Ki);C(this,Ui);C(this,Hi);C(this,Vn,null);I(this,Hi,e),I(this,Ui,n),this.stop=this.stop.bind(this),this.start=this.start.bind(this),wn(this.stop)}stop(){F(this,Ki,lc).call(this)}start(...e){F(this,Ki,lc).call(this),I(this,Vn,window.setTimeout(()=>{I(this,Vn,null),l(this,Hi).call(this,...e)},l(this,Ui)))}}Ui=new WeakMap,Hi=new WeakMap,Vn=new WeakMap,Ki=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 xt("Tooltip.Provider"),jc=new xt("Tooltip.Root");var ji,Gi,qi,Yi,Xi;class th{constructor(){C(this,ji,oe(Hn(new Map)));C(this,Gi,oe(null));C(this,qi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null}));C(this,Yi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null}));P(this,"register",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Xi).call(this)});P(this,"update",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Xi).call(this)});P(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)});P(this,"setActiveTrigger",e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e});P(this,"get",e=>this.triggers.get(e));P(this,"has",e=>this.triggers.has(e));P(this,"getFirstTriggerId",()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]});C(this,Xi,()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))})}get triggers(){return w(l(this,ji))}set triggers(e){N(l(this,ji),e,!0)}get activeTriggerId(){return w(l(this,Gi))}set activeTriggerId(e){N(l(this,Gi),e,!0)}get activeTriggerNode(){return w(l(this,qi))}set activeTriggerNode(e){N(l(this,qi),e)}get activePayload(){return w(l(this,Yi))}set activePayload(e){N(l(this,Yi),e)}}ji=new WeakMap,Gi=new WeakMap,qi=new WeakMap,Yi=new WeakMap,Xi=new WeakMap;var Zi;class ov{constructor(){P(this,"registry",new th);C(this,Zi,oe(null))}get root(){return w(l(this,Zi))}set root(e){N(l(this,Zi),e,!0)}}Zi=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 Ji,Xr,Et,Ra,Na;const mu=class mu{constructor(e){P(this,"opts");C(this,Ji,oe(!0));P(this,"isPointerInTransit",Ct(!1));C(this,Xr);C(this,Et,oe(null));C(this,Ra,()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else l(this,Xr).start()});C(this,Na,()=>{l(this,Xr).stop()});P(this,"onOpen",e=>{w(l(this,Et))&&w(l(this,Et))!==e&&w(l(this,Et)).handleClose(),l(this,Na).call(this),this.isOpenDelayed=!1,N(l(this,Et),e,!0)});P(this,"onClose",e=>{w(l(this,Et))===e&&(N(l(this,Et),null),l(this,Ra).call(this))});P(this,"isTooltipOpen",e=>w(l(this,Et))===e);this.opts=e,I(this,Xr,new ac(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)),Oc(()=>Ie(window,"scroll",n=>{const r=w(l(this,Et));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,Ji))}set isOpenDelayed(e){N(l(this,Ji),e,!0)}};Ji=new WeakMap,Xr=new WeakMap,Et=new WeakMap,Ra=new WeakMap,Na=new WeakMap;let cc=mu;var Qi,$i,es,ts,ns,rs,Wn,qt,os,Da;const bu=class bu{constructor(e,n){P(this,"opts");P(this,"provider");C(this,Qi,U(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current));C(this,$i,U(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current));C(this,es,U(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current));C(this,ts,U(()=>this.opts.disabled.current??this.provider.opts.disabled.current));C(this,ns,U(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current));P(this,"registry");P(this,"tether");C(this,rs,oe(null));P(this,"contentPresence");C(this,Wn,oe(!1));C(this,qt);C(this,os,U(()=>this.opts.open.current?w(l(this,Wn))?"delayed-open":"instant-open":"closed"));P(this,"handleOpen",()=>{l(this,qt).stop(),N(l(this,Wn),!1),this.ensureActiveTrigger(),this.opts.open.current=!0});P(this,"handleClose",()=>{l(this,qt).stop(),this.opts.open.current=!1});C(this,Da,()=>{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()});P(this,"onTriggerEnter",e=>{this.setActiveTrigger(e),l(this,Da).call(this)});P(this,"onTriggerLeave",()=>{this.disableHoverableContent?this.handleClose():l(this,qt).stop()});P(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)});P(this,"setActiveTrigger",e=>{this.registry.setActiveTrigger(e)});P(this,"registerTrigger",e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"updateTrigger",e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"unregisterTrigger",e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()});P(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)}}),ke(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&I(this,qt,new ac(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration))}),ke(()=>this.opts.open.current,r=>{r?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ke(()=>this.opts.triggerId.current,r=>{r!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(r)}),ke(()=>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,Qi))}set delayDuration(e){N(l(this,Qi),e)}get disableHoverableContent(){return w(l(this,$i))}set disableHoverableContent(e){N(l(this,$i),e)}get disableCloseOnTriggerClick(){return w(l(this,es))}set disableCloseOnTriggerClick(e){N(l(this,es),e)}get disabled(){return w(l(this,ts))}set disabled(e){N(l(this,ts),e)}get ignoreNonKeyboardFocus(){return w(l(this,ns))}set ignoreNonKeyboardFocus(e){N(l(this,ns),e)}get contentNode(){return w(l(this,rs))}set contentNode(e){N(l(this,rs),e,!0)}get stateAttr(){return w(l(this,os))}set stateAttr(e){N(l(this,os),e)}get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}};Qi=new WeakMap,$i=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,rs=new WeakMap,Wn=new WeakMap,qt=new WeakMap,os=new WeakMap,Da=new WeakMap;let uc=bu;var pr,Ot,gr,Zr,Yt,dt,yt,Un,Jr,Fa,La,Ba,za,Va,Wa,Ua,Ha,is;const Ka=class Ka{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"tether");P(this,"attachment");C(this,pr,Ct(!1));C(this,Ot,oe(!1));P(this,"domContext");C(this,gr,null);C(this,Zr,!1);C(this,Yt,null);C(this,dt,()=>this.tether?.root??this.root);C(this,yt,()=>{const e=l(this,dt).call(this);return this.opts.disabled.current||!!e?.disabled});C(this,Un,e=>{if(!l(this,Zr))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,dt).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,dt).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,Jr,()=>{l(this,gr)!==null&&(clearTimeout(l(this,gr)),I(this,gr,null))});P(this,"handlePointerUp",()=>{l(this,pr).current=!1});C(this,Fa,()=>{l(this,yt).call(this)||(l(this,pr).current=!1)});C(this,La,()=>{l(this,yt).call(this)||(l(this,pr).current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))});C(this,Ba,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){l(this,Jr).call(this),I(this,gr,window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0))},250));return}n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)}}});C(this,za,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(w(l(this,Ot))||(l(this,Jr).call(this),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)))}});C(this,Va,e=>{const n=l(this,dt).call(this);if(!n||l(this,yt).call(this))return;if(l(this,Jr).call(this),!n.isActiveTrigger(this.opts.id.current)){N(l(this,Ot),!1);return}const r=e.relatedTarget;if(It(r)){for(const o of n.registry.triggers.values())if(o.node===r){if(n.provider.opts.skipDelayDuration.current>0){N(l(this,Ot),!1);return}n.handleClose(),N(l(this,Ot),!1);return}}n.onTriggerLeave(),N(l(this,Ot),!1)});C(this,Wa,e=>{const n=l(this,dt).call(this);if(n&&!l(this,pr).current){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!Xg(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}});C(this,Ua,()=>{const e=l(this,dt).call(this);!e||l(this,yt).call(this)||e.handleClose()});C(this,Ha,()=>{const e=l(this,dt).call(this);!e||e.disableCloseOnTriggerClick||l(this,yt).call(this)||e.handleClose()});C(this,is,U(()=>{const e=l(this,dt).call(this),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),r=l(this,yt).call(this);return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":Xa(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,Fa),onpointerdown:l(this,La),onpointerenter:l(this,Ba),onpointermove:l(this,za),onpointerleave:l(this,Va),onfocus:l(this,Wa),onblur:l(this,Ua),onclick:l(this,Ha),...this.attachment}}));this.opts=e,this.root=n,this.tether=r,this.domContext=new Ya(e.ref),this.attachment=ft(this.opts.ref,o=>l(this,Un).call(this,o)),ke(()=>this.opts.id.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.payload.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.disabled.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Oc(()=>(I(this,Zr,!0),l(this,Un).call(this,this.opts.ref.current),()=>{const o=l(this,dt).call(this),i=l(this,Yt);i&&(this.tether?this.tether.registry.unregister(i):o?.unregisterTrigger(i)),I(this,Yt,null),I(this,Zr,!1)}))}static create(e){return e.tether.current?new Ka(e,null,e.tether.current.state):new Ka(e,jc.get(),null)}get props(){return w(l(this,is))}set props(e){N(l(this,is),e)}};pr=new WeakMap,Ot=new WeakMap,gr=new WeakMap,Zr=new WeakMap,Yt=new WeakMap,dt=new WeakMap,yt=new WeakMap,Un=new WeakMap,Jr=new WeakMap,Fa=new WeakMap,La=new WeakMap,Ba=new WeakMap,za=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,is=new WeakMap;let dc=Ka;var ss,as;const vu=class vu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");P(this,"onInteractOutside",e=>{if(It(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onOpenAutoFocus",e=>{e.preventDefault()});P(this,"onCloseAutoFocus",e=>{e.preventDefault()});C(this,ss,U(()=>({open:this.root.opts.open.current})));C(this,as,U(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Xa(this.root.disabled),...zd(this.root.contentPresence.transitionStatus),style:{outline:"none"},[$f.content]:"",...this.attachment})));P(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=e,this.root=n,this.attachment=ft(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,ss))}set snippetProps(e){N(l(this,ss),e)}get props(){return w(l(this,as))}set props(e){N(l(this,as),e)}};ss=new WeakMap,as=new WeakMap;let fc=vu;function nh(t,e){if(new.target)return Te({component:nh,...t});Pe(e,!0);let n=h(e,"open",15,!1),r=h(e,"triggerId",15,null),o=h(e,"onOpenChange",7,me),i=h(e,"onOpenChangeComplete",7,me),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=me){o(m),p()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(m=me){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:Ee,$on:(m,E)=>Oe(e,m,E)};return Hf(t,{tooltip:!0,children:(m,E)=>{var T=ue(),O=se(T);ye(O,()=>g()??xe,()=>({open:b.opts.open.current,triggerId:b.activeTriggerId,payload:b.activePayload})),Z(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=Ke("<div><div><!></div></div>");function rh(t,e){const n=kc();if(new.target)return Te({component:rh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>Gs(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,me),O=h(e,"onEscapeKeydown",7,me),A=h(e,"forceMount",7,!1),y=h(e,"style",7),x=Cr(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 K={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=Gs(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=me){T(B),p()},get onEscapeKeydown(){return O()},set onEscapeKeydown(B=me){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:Ee,$on:(B,J)=>Oe(e,B,J)},j=ue(),$=se(j);{var z=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:od("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");Yf(B,So(()=>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:J,$$slots:{popper:!0}}))}},Y=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:od("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");qf(B,So(()=>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:J,$$slots:{popper:!0}}))}};Ne($,B=>{A()?B(z):A()||B(Y,1)})}return Z(t,j),_e(K)}var lv=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),cv=Ke("<button><!></button>");function oh(t,e){const n=kc();if(new.target)return Te({component:oh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>Gs(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=Cr(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=Gs(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:Ee,$on:(y,x)=>Oe(e,y,x)},E=ue(),T=se(E);{var O=y=>{var x=ue(),k=se(x);ye(k,o,()=>({props:w(v)})),Z(y,x)},A=y=>{var x=cv();Jt(x,()=>({...w(v)}));var k=He(x);ye(k,()=>r()??xe),Fe(x),Z(y,x)};Ne(T,y=>{o()?y(O):y(A,-1)})}return Z(t,E),_e(m)}function ih(t,e){if(new.target)return Te({component:ih,...t});Pe(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:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>n()??xe),Z(t,d),_e(u)}var uv=Ke("<span><!></span>");function sh(t,e){if(new.target)return Te({component:sh,...t});Pe(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":K,"data-disabled":j,"data-delay-duration":$,"data-tooltip-trigger":z,...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:Ee,$on:(y,x)=>Oe(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=He(O);return ye(A,()=>r()??xe),Fe(O),Td(O,y=>N(s,y),()=>w(s)),Z(t,O),_e(T)}var dv=Ke("<div></div>"),fv=Ke("<div><div><!> <!></div></div>"),hv=Ke("<!> <!>",1);function ah(t,e){const n=kc();if(new.target)return Te({component:ah,...t});Pe(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 K=sv(),j={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"},$={sm:"type-caption px-2 py-1",default:"type-caption px-2 py-1",lg:"type-title px-4 py-2"},z=U(()=>Kn("tooltip-motion overlay-surface z-(--layer-tooltip) w-fit max-w-xs whitespace-pre-wrap text-balance",j[A()],$[y()],E()));function Y(_){g(_),b()?.(_)}function B(_){d()||_ instanceof KeyboardEvent&&_.key!=="Enter"&&_.key!==" "||K.close()}Le(()=>{f()&&g()&&Y(!1)});let J;Le(()=>{const _=f(),de=J===!0&&!_;J=_,de&&ko(re)});function re(){if(!r()||g())return;const _=document.activeElement,de=w(M);!de?.id||!(_ instanceof HTMLElement)||!de.contains(_)||_.matches(":focus-visible")&&K.open(de.id)}var ee={get content(){return r()},set content(_=""){r(_),p()},get side(){return o()},set side(_="top"){o(_),p()},get align(){return i()},set align(_="center"){i(_),p()},get sideOffset(){return s()},set sideOffset(_=4){s(_),p()},get alignOffset(){return a()},set alignOffset(_=0){a(_),p()},get delayDuration(){return c()},set delayDuration(_=0){c(_),p()},get disableHoverableContent(){return u()},set disableHoverableContent(_=!0){u(_),p()},get disableCloseOnTriggerClick(){return d()},set disableCloseOnTriggerClick(_=!1){d(_),p()},get disabled(){return f()},set disabled(_=!1){f(_),p()},get open(){return g()},set open(_=!1){g(_),p()},get onOpenChange(){return b()},set onOpenChange(_){b(_),p()},get portalTarget(){return v()},set portalTarget(_){v(_),p()},get class(){return m()},set class(_=""){m(_),p()},get contentClass(){return E()},set contentClass(_=""){E(_),p()},get arrowClass(){return T()},set arrowClass(_=""){T(_),p()},get showArrow(){return O()},set showArrow(_=!1){O(_),p()},get variant(){return A()},set variant(_="default"){A(_),p()},get size(){return y()},set size(_="default"){y(_),p()},get children(){return x()},set children(_){x(_),p()},get trigger(){return k()},set trigger(_){k(_),p()},get onclick(){return R()},set onclick(_){R(_),p()},$set:Ee,$on:(_,de)=>Oe(e,_,de)},ie=ue(),he=se(ie);return lo(he,()=>ih,(_,de)=>{de(_,{get delayDuration(){return c()},children:(be,W)=>{var Me=ue(),pe=se(Me);lo(pe,()=>nh,(ve,we)=>{we(ve,{onOpenChange:Y,get delayDuration(){return c()},get disableHoverableContent(){return u()},get disableCloseOnTriggerClick(){return d()},get tether(){return K},get open(){return g()},set open(S){g(S)},children:(S,ae)=>{var H=hv(),Re=se(H);{const Ge=(ze,pt)=>{let ge=()=>(pt?.()).props;sh(ze,{get triggerProps(){return ge()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{var Lt=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>k()??xe),Z(ot,St)},xn=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>x()??xe),Z(ot,St)};Ne(Xn,ot=>{k()?ot(Lt):x()&&ot(xn,1)})}Z(Ye,Ft)},$$slots:{default:!0}})};let qe=U(()=>Kn("inline-flex",m()));lo(Re,()=>oh,(ze,pt)=>{pt(ze,{get class(){return w(qe)},get disabled(){return f()},get onclick(){return R()},onpointerdown:B,onkeydown:B,"data-tooltip-trigger":!0,get ref(){return w(M)},set ref(ge){N(M,ge,!0)},child:Ge,$$slots:{child:!0}})})}var rt=mn(Re,2);{var ht=Ge=>{var qe=ue(),ze=se(qe);lo(ze,()=>Xd,(pt,ge)=>{ge(pt,{get to(){return v()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{const Lt=(xn,ot)=>{let St=()=>(ot?.()).props,Xe=()=>(ot?.()).wrapperProps;var it=fv();Jt(it,()=>({...Xe()}));var nn=He(it);Jt(nn,()=>({...St(),id:n}));var il=He(nn);{var bs=Bt=>{var Sn=Ad();br(()=>_l(Sn,r())),Z(Bt,Sn)},sl=Bt=>{var Sn=ue(),ll=se(Sn);ye(ll,()=>r()??xe),Z(Bt,Sn)};Ne(il,Bt=>{typeof r()=="string"?Bt(bs):r()&&typeof r()=="function"&&Bt(sl,1)})}var al=mn(il,2);{var ep=Bt=>{var Sn=dv();br(ll=>vo(Sn,1,ll),[()=>Hs(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()))]),Z(Bt,Sn)};Ne(al,Bt=>{O()&&Bt(ep)})}Fe(nn),Fe(it),Z(xn,it)};lo(Xn,()=>rh,(xn,ot)=>{ot(xn,{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(z)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},child:Lt,$$slots:{child:!0}})})}Z(Ye,Ft)},$$slots:{default:!0}})}),Z(Ge,qe)};Ne(rt,Ge=>{r()&&!f()&&Ge(ht)})}Z(S,H)},$$slots:{default:!0}})}),Z(be,Me)},$$slots:{default:!0}})}),Z(t,ie),_e(ee)}const nr=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(nr?"":"+")}function ld(t){const e=t.toLowerCase();return e==="cmd"||e==="meta"||e==="mod"?nr?"⌘":"Ctrl":e==="ctrl"||e==="control"?nr?"⌃":"Ctrl":e==="alt"||e==="option"?nr?"⌥":"Alt":e==="shift"?nr?"⇧":"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 Ve(t,e){return{key:Ed[t],get label(){return e()}}}const De={NEW_TAB:Ve("navigation.new-tab",()=>V.ui_shortcuts_newTab_label()),CLOSE_TAB:Ve("navigation.close-tab",()=>V.workspace_shortcuts_closePanelTab_description()),CLOSE_WORKSPACE_TAB:Ve("navigation.close-space-tab",()=>V.workspace_shortcuts_closeSpaceTab_description()),GO_BACK:{key:"mod+←",get label(){return V.ui_shortcuts_goBack_label()}},GO_FORWARD:{key:"mod+→",get label(){return V.ui_shortcuts_goForward_label()}},MOVE_SPACE_TAB_LEFT:Ve("navigation.move-space-tab-left",()=>V.ui_shortcuts_moveSpaceTabLeft_label()),MOVE_SPACE_TAB_RIGHT:Ve("navigation.move-space-tab-right",()=>V.ui_shortcuts_moveSpaceTabRight_label()),NEW_AGENT:Ve("workspace.new-agent",()=>V.ui_shortcuts_newAgent_label()),NEW_NOTE:Ve("workspace.new-note",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_note_label()})),NEW_TERMINAL:Ve("workspace.new-terminal",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_terminal_label()})),NEW_BROWSER:Ve("workspace.new-browser",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_browser_label()})),SEND:Ve("chat.send",()=>V.ui_shortcuts_sendMessage_label()),TOGGLE_TASK_LIST:Ve("editor.toggle-task-list",()=>V.ui_shortcuts_toggleTaskList_label()),CONFIRM:{key:"enter",get label(){return V.ui_shortcuts_confirm_label()}},TOGGLE_SIDEBAR:Ve("panel.toggle-sidebar",()=>V.ui_shortcuts_toggleSidebar_label()),PREVIOUS_PANE:Ve("panel.previous-pane",()=>V.ui_shortcuts_prevTab_label()),NEXT_PANE:Ve("panel.next-pane",()=>V.ui_shortcuts_nextTab_label()),FOCUS_PREVIOUS_COLUMN:Ve("panel.focus-previous-column",()=>V.ui_shortcuts_prevPanel_label()),FOCUS_NEXT_COLUMN:Ve("panel.focus-next-column",()=>V.ui_shortcuts_nextPanel_label()),MOVE_PANE_PREVIOUS_COLUMN:Ve("panel.move-pane-previous-column",()=>V.ui_shortcuts_movePanePreviousColumn_label()),MOVE_PANE_NEXT_COLUMN:Ve("panel.move-pane-next-column",()=>V.ui_shortcuts_movePaneNextColumn_label()),CREATE_COLUMN_RIGHT:Ve("panel.create-column-right",()=>V.ui_shortcuts_splitPanelHorizontal_label())};function Sx(t,e=nr){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 nr}function te(t,e,n){return{id:t,key:Ed[t],get label(){return e()},...n&&{contexts:n}}}const lh={global:{get title(){return V.ui_shortcuts_globalCategory_title()},shortcuts:[te("global.command-palette",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.settings",()=>V.ui_shortcuts_settings_label(),["global"]),te("global.keyboard-shortcuts",()=>V.ui_shortcuts_keyboardShortcuts_label(),["global"]),te("global.command-palette-alt",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.toggle-spaces",()=>V.home_navigation_description(),["global"]),te("global.new-space",()=>V.workspace_page_newSpace_title(),["global"]),te("global.search",()=>V.ui_shortcuts_search_label(),["global"]),te("global.next-space",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space",()=>V.ui_shortcuts_prevSpace_label(),["global"]),te("global.next-space-alt",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space-alt",()=>V.ui_shortcuts_prevSpace_label(),["global"])]},navigation:{get title(){return V.ui_shortcuts_navigationCategory_title()},shortcuts:[te("navigation.go-to-tab",()=>V.ui_shortcuts_goToTab_label(),["global"]),te("navigation.new-tab",()=>De.NEW_TAB.label,["global"]),te("navigation.close-tab",()=>De.CLOSE_TAB.label,["global"]),te("navigation.close-space-tab",()=>De.CLOSE_WORKSPACE_TAB.label,["global"]),te("navigation.reopen-tab",()=>V.ui_shortcuts_reopenTab_label(),["global"]),te("navigation.move-space-tab-left",()=>De.MOVE_SPACE_TAB_LEFT.label,["global"]),te("navigation.move-space-tab-right",()=>De.MOVE_SPACE_TAB_RIGHT.label,["global"]),te("workspace.new-agent",()=>De.NEW_AGENT.label,["global"]),te("workspace.new-note",()=>De.NEW_NOTE.label,["global"]),te("workspace.new-terminal",()=>De.NEW_TERMINAL.label,["global"]),te("workspace.new-browser",()=>De.NEW_BROWSER.label,["global"]),te("workspace.set-aside",()=>V.home_setAside_shortcut_label())]},chat:{get title(){return V.ui_shortcuts_chatCategory_title()},shortcuts:[te("chat.send",()=>De.SEND.label,["chat"]),te("chat.force-send",()=>V.ui_shortcuts_forceSend_label(),["chat"]),te("chat.new-line",()=>V.ui_shortcuts_newLine_label(),["chat"]),te("chat.focus-input",()=>V.ui_shortcuts_focusInput_label(),["chat"]),te("chat.mention-context",()=>V.ui_shortcuts_mentionContext_label(),["chat"])]},editor:{get title(){return V.ui_shortcuts_editorCategory_title()},shortcuts:[te("editor.go-to-line",()=>V.ui_shortcuts_goToLine_label(),["editor"]),te("editor.save",()=>V.ui_shortcuts_save_label(),["editor"]),te("editor.undo",()=>V.ui_shortcuts_undo_label(),["editor"]),te("editor.redo",()=>V.ui_shortcuts_redo_label(),["editor"]),te("editor.toggle-task-list",()=>De.TOGGLE_TASK_LIST.label,["editor"]),te("editor.toggle-word-wrap",()=>V.ui_shortcuts_toggleWordWrap_label(),["editor"]),te("editor.copy",()=>V.ui_shortcuts_copy_label(),["editor"]),te("editor.select-all",()=>V.ui_shortcuts_selectAll_label(),["editor"])]},panel:{get title(){return V.ui_shortcuts_panelCategory_title()},shortcuts:[te("panel.toggle-sidebar",()=>De.TOGGLE_SIDEBAR.label,["panel"]),te("panel.create-column-right",()=>De.CREATE_COLUMN_RIGHT.label,["global"]),te("panel.focus-next-column",()=>De.FOCUS_NEXT_COLUMN.label,["global"]),te("panel.maximize",()=>V.ui_shortcuts_maximizePanel_label(),["global"]),te("panel.focus-previous-column",()=>De.FOCUS_PREVIOUS_COLUMN.label,["global"]),te("panel.next-pane",()=>De.NEXT_PANE.label,["global"]),te("panel.previous-pane",()=>De.PREVIOUS_PANE.label,["global"]),te("panel.move-pane-next-column",()=>De.MOVE_PANE_NEXT_COLUMN.label,["global"]),te("panel.move-pane-previous-column",()=>De.MOVE_PANE_PREVIOUS_COLUMN.label,["global"]),te("panel.copy-browser-url",()=>V.ui_shortcuts_copyBrowserUrl_label(),["panel"])]},leader:{get title(){return V.ui_shortcuts_leaderCategory_title()},shortcuts:[te("leader.navigate-panels",()=>V.ui_shortcuts_navigatePanels_label(),["panel"]),te("leader.resize-panels",()=>V.ui_shortcuts_resizePanels_label(),["panel"]),te("leader.split-right",()=>V.ui_shortcuts_splitRight_label(),["panel"]),te("leader.toggle-zoom",()=>V.ui_shortcuts_toggleZoom_label(),["panel"]),te("leader.close-panel",()=>V.ui_shortcuts_closePanel_label(),["panel"]),te("leader.next-previous-panel",()=>V.ui_shortcuts_nextPrevPanel_label(),["panel"]),te("leader.equalize-sizes",()=>V.ui_shortcuts_equalizeSizes_label(),["panel"]),te("leader.jump-to-panel",()=>V.ui_shortcuts_jumpToPanel_label(),["panel"]),te("leader.cycle-layout",()=>V.ui_shortcuts_cycleLayout_label(),["panel"])]}},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={}){return Object.fromEntries(Object.entries(lh).map(([e,n])=>[e,{title:n.title,shortcuts:n.shortcuts.map(r=>({...r,key:wp(r.id,t)}))}]))}var gv=Ke('<kbd data-slot="shortcut-chip" style="font-family: var(--font-ui);"><!></kbd>');function ch(t,e){if(new.target)return Te({component:ch,...t});Pe(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:Ee,$on:(a,c)=>Oe(e,a,c)},i=gv(),s=He(i);return ye(s,()=>r()??xe),Fe(i),br(a=>vo(i,1,a),[()=>Hs(Kn("type-caption shrink-0 font-normal leading-none text-shortcut-foreground",n()))]),Z(t,i),_e(o)}const bl=(t,e=xe,n=xe)=>{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();br(()=>_l(v,w(f))),Z(g,v)},$$slots:{default:!0}})}),Fe(u),Z(c,u)};Ne(s,c=>{n().length>0&&c(a)})}br(()=>_l(i,e())),Z(t,r)};var mv=Ke('<div class="flex items-center gap-1 text-muted-foreground"></div>'),bv=Ke('<span class="type-caption"> </span> <!>',1),vv=Ke('<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 Te({component:uh,...t});Pe(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:Ee,$on:(x,k)=>Oe(e,x,k)};{const x=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=ue(),J=se(B);ye(J,()=>b()??xe),Z(Y,B)},z=Y=>{x()?.(Y)};Ne(j,Y=>{b()?Y($):x()&&Y(z,1)})}Z(M,K)},k=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=vv(),J=se(B),re=He(J);bl(re,n,()=>w(O)),Fe(J);var ee=mn(J,2),ie=He(ee);bl(ie,()=>o().label,()=>w(A)),Fe(ee),Z(Y,B)},z=Y=>{bl(Y,n,()=>w(O))};Ne(j,Y=>{o()?Y($):Y(z,-1)})}Z(M,K)};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:ne("github"),protocol:ne("https"),host:ne("github.com"),managedHelperEnabled:Ae(),setting:ne("sourceControl.github.exposeGitCredentialToChildren")}),Tx=D({defaultProviderId:L().nullable(),defaultModelId:L().nullable(),enabledProviderIds:$e(L().min(1)).optional(),repositoryConnections:$e(D({provider:et(["github","gitlab"]),host:L(),configured:Ae()})),gitCredentialPolicy:yv}),wv=D({resource:et(["git","ai"]),reason:et(["missing","rejected","insufficient-scope"]),providerId:L().nullable(),host:L().nullable(),recovery:D({actor:ne("host-owner"),action:et(["check-git-authorization","check-ai-authorization"]),setting:ne("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"?V.hostExecution_missingAuthorization_description({resource:i}):r==="insufficient-scope"?V.hostExecution_insufficientScope_description({resource:i}):V.hostExecution_rejectedAuthorization_description({resource:i});return o.setting?`${s} ${V.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(V.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:ne(!0),status:et(["merged","conflict","blocked"]),commitRange:L().optional(),canonicalHead:L().optional(),conflictingPaths:$e(L()).optional(),reason:L().optional(),overlappingPaths:$e(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=Ks.parse(e),r=()=>{if((n.target==="remote"||Ao(n.target)||n.exclusive===!0)&&!this.remoteEnabled())throw new Error(V.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(V.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:ne(!0)}).parse(await this.request("hub.discard",n))}}function Ue(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 Ue(e)}async function Tv(t,e){const n=Ue(await e()),r=Ue(Ue(n.server).capabilities);if(r.agentNodes===1||r.remoteMachines!==1||r.remoteInitialAgent!==1)return!1;const o=Ks.parse(t);if(o.exclusive===!0)throw new Error(V.agent_placement_unavailable());if(Ao(o.target)&&r.cloudMachines!==1)throw new Error(V.agent_placement_unavailable());if(o.target==="cloud"&&r.cloudMachineProviders!==1)throw new Error(V.agent_placement_unavailable());if(o.cloudMachineId!==void 0&&r.cloudMachineEntries!==1)throw new Error(V.agent_placement_unavailable());return!0}async function ph(t,e,n,r,o){const i=Ue(e);if(t==="agent.delegate"&&Array.isArray(i.tasks)){const v=[];for(const T of i.tasks){const O=typeof T=="string"?{taskNoteId:T}:Ue(T),A=Ue(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(Ks.parse(i.defaultAgentPlacement)),e;const a=hh(t);if(a==="initialAgent"&&!i[a])return e;const c=a?Ue(i[a]):i;if(c.isolation==="cow")throw new Error(V.agent_placement_retiredIsolation());if(c.placement!==void 0&&c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());if(a==="initialAgent"&&c.placement!=null&&Ue(c.placement).target!=="local"&&await Tv(c.placement,o)){if(!r())throw new Error(V.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=Ue(await n("workspace.get",{workspaceId:v}));m=Ue(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=Ue(await n("specialist.get",{id:T,...v?{workspaceId:v}:{},...A?{workspacePath:A}:{}}));if(!y.specialist)throw new Error(V.agent_placement_specialistUnavailable());u=Ue(y.specialist).runsOn}u==null&&typeof v=="string"&&(u=(await E()).defaultAgentPlacement)}if(!d.agentNodes){if(u!=null)throw new Error(V.agent_placement_unavailable());return e}const g=u==null?void 0:Ks.parse(u);if(!r()&&(g?.target==="remote"||Ao(g?.target)||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(f&&(d=await s.capabilities()),g)dh(g,d);else if(!d.agentNodes)throw new Error(V.agent_placement_unavailable());if(!r()&&(g?.target==="remote"||Ao(g?.target)||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(!g)return e;if(c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());const b={...c,placement:g};return a?{...i,[a]:b}:b}function Ev(t,e,n){if(n)return;const r=Ue(e),o=hh(t),i=o?Ue(r[o]):r,s=Array.isArray(i.tasks)?i.tasks.map(a=>Ue(a).placement??i.placement):[i.placement];if(s.push(r.defaultAgentPlacement),s.some(a=>Ue(a).target==="remote"||Ao(Ue(a).target)||Ue(a).exclusive===!0))throw new Error(V.agent_placement_labsRequired())}function Ov(t,e={}){const n=ja.BACKEND.PR_MONITOR;return async r=>{const o=t(),i=()=>new Ce({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});if(!o)throw i();const s=Or(e.reviewMonitoring)&&Or(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:yo().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:Ae(),result:yo().optional(),error:D({code:L(),message:L(),rpcCode:gn().optional(),data:yo().optional()}).optional()}).parse(O);if(!A.ok)throw A.error?new Ce(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:et(["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()}),Pv=D({remoteName:L(),fetchUrls:$e(L()),pushUrls:$e(L())}),Gc=D({operationId:L(),scope:Ga,contextRevision:ro,root:Qr,worktreeId:L(),source:cd,target:cd,localHeadSha:L().nullable(),transport:Pv.nullable()}),_v=bt("stage",[D({stage:ne("commit"),commitHash:L()}),D({stage:ne("push"),pushedSha:L()})]),hc=et(["commit","push","create-pr"]),Iv=et(["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:Ae().nullable(),sourceBranch:L().nullable(),targetBranch:L().nullable(),source:ud.nullable(),target:ud.nullable(),author:L().nullable(),mergeable:Ae().nullable(),mergeableState:L().nullable(),headSha:L().nullable(),createdAt:L().nullable(),updatedAt:L().nullable()}),Mv=bt("status",[D({status:ne("not-attempted")}),D({status:ne("created"),review:pc}),D({status:ne("reused"),review:pc}),D({status:ne("failed"),stage:hc,code:L().nullable(),message:L()}),D({status:ne("uncertain"),stage:hc,message:L()})]),Rv=bt("state",[D({state:ne("included"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("local-ahead"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("diverged"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("remote-branch-missing"),localHeadSha:L().nullable()}),D({state:ne("unknown"),localHeadSha:L().nullable(),remoteSourceSha:L().nullable()})]),gh=D({requestId:L(),preparation:Gc,gitReceipts:$e(_v),outcome:Mv,publication:Rv});D({reviewPreparation:Gc.optional()}).passthrough();D({reviewExecution:gh.optional()}).passthrough();const gs=L().min(1).max(4096),mh=ro.shape.sequence,ms=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]),Nv=D({workspaceId:gs,action:hc,files:$e(L()).nullish(),options:D({stageUnstaged:Ae().optional(),pushAfterCommit:Ae().optional(),createPRAfterPush:Ae().optional()}).strict().optional(),review:D({root:ms,choice:bt("kind",[D({kind:ne("saved")}).strict(),D({kind:ne("explicitTarget"),target:Tc.strict()}).strict()]),targetBranch:L().nullish(),pushRemote:L().nullish(),companion:D({kind:ne("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:Ae(),warnings:$e(L()),errors:$e(L()),suggestedCommitMessage:L().optional(),suggestedPRTitle:L().optional(),suggestedPRBody:L().optional(),filesCount:gn().int().nonnegative(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative(),files:$e(D({path:L(),staged:Ae(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative()}).strict()),reviewPreparation:Gc};D({...bh,reviewOperation:D({operationId:gs,root:ms,retirementSequence:mh,expiresAfterMs:ne(3e5)}).strict()}).strict();const Fv=D({...bh,root:ms,expiresAfterMs:ne(3e5)}).strict(),vh={operationId:gs,root:ms,state:et(["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:et(["pending","settled"]),success:Ae(),steps:$e(D({id:L(),name:L(),status:et(["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:$e(gs).max(64),sequence:mh,allRetired:Ae(),terminal:Ae()}).strict();const zv=D({current:Ae(),uncertain:Ae(),execute:Bv.nullable(),reconciliation:Lv.nullable()}).strict(),Ex=D({attemptId:gs,root:ms,admission:L().nullable(),hostContext:L().nullable()}).strict(),nl=L().min(1).max(128).refine(t=>!/[\u0000-\u001f\u007f]/.test(t)),Co=ro.shape.sequence,qc=gn().int().positive().safe(),Vv=D({workspaceId:nl}).strict(),oa=D({repository:D({provider:ne("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:et(["merge-request","issue"]),number:qc}).strict(),Wv=D({readLifetimeId:nl,scope:Ga.strict(),revision:ro.strict(),expiresAfterMs:ne(3e5),retirementSequence:Co,instances:$e(D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Od),availability:ne("connected")}).strict()).max(64)}).strict(),Uv=et(["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:oa,prNumber:qc,details:pc.extend({resource:oa}).strict()}).strip(),jv=D({readLifetimeId:nl,scope:Ga.strict(),revision:ro.strict(),target:oa,outcome:bt("kind",[D({kind:ne("merge-request"),snapshot:Kv}).strict(),D({kind:ne("issue"),issue:Hv}).strict(),D({kind:ne("failure"),code:Uv,status:gn().int().min(100).max(599).nullable()}).strict()]),quota:D({resetAt:Co.nullable(),remaining:Co.nullable(),limit:Co.nullable()}).strict()}).strict();D({readLifetimeIds:$e(nl).max(64),sequence:Co,allRetired:Ae(),terminal:Ae()}).strict();const Gv=D({target:oa,refresh:Ae().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=Pd(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=ja.BACKEND.REPOSITORY_RESOURCE,n=()=>new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).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),xs=()=>({status:"unavailable",reason:"retired"});function Xv(t){const e=ja.BACKEND.REPOSITORY_CHECKOUT,n=()=>new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).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:Ae().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 xs();try{const M=Ap(R,r(await s.invoke(e.REQUEST,{id:a,kind:x,params:k})));return m()?M:xs()}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",_p.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 xs();const R=await y("repoConfig",k,Pp);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 xs();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 Oo=ro.shape.sequence,Po=L().min(1).max(4096),rl=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]);D({workspaceId:Po,gitRootId:Po.nullish()}).strict();const Zv=bt("mode",[D({mode:ne("automatic")}).strict(),D({mode:ne("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=bt("kind",[D({kind:ne("save"),choice:Zv}).strict(),D({kind:ne("reset")}).strict()]),Vs=D({root:rl,rootIncarnation:Oo,selectionRevision:Oo,selection:bt("kind",[D({kind:ne("neverSaved")}).strict(),D({kind:ne("reset")}).strict(),D({kind:ne("saved"),value:Yp}).strict()])}).strict(),wh=D({scope:Ga.strict(),root:rl,snapshot:Vs,expiresAfterMs:ne(3e5)}).strict();wh.extend({selectionId:Po,retirementSequence:Oo}).strict();const Qv=D({result:bt("kind",[D({kind:ne("applied"),snapshot:Vs}).strict(),D({kind:ne("unchanged"),snapshot:Vs}).strict(),D({kind:ne("conflict"),snapshot:Vs}).strict(),D({kind:ne("missingRoot")}).strict(),D({kind:ne("failed"),code:et(["admission-retired","authority-unavailable","storage-failed","completion-unobserved"])}).strict()]),persistence:bt("kind",[D({kind:ne("notAttempted")}).strict(),D({kind:ne("noEffect")}).strict(),D({kind:ne("committed"),selectionRevision:Oo}).strict(),D({kind:ne("unknown")}).strict()])}).strict(),Ch=bt("status",[D({status:ne("notStarted")}).strict(),D({status:ne("pending")}).strict(),D({status:ne("settled"),receipt:Qv}).strict()]);D({selectionId:Po,root:rl,attempt:Ch}).strict();D({selectionIds:$e(Po).max(64),sequence:Oo,allRetired:Ae(),terminal:Ae()}).strict();const $v=D({current:Ae(),attempt:Ch.nullable(),uncertain:Ae()}).strict(),tt=ja.BACKEND;function ce(){return typeof window<"u"?window.electronAPI:void 0}function Xt(t){if(!t||!t.ok)throw new Ce(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(tt.STATUS,"onReconnected"),n=wl(tt.NOTIFICATION,"onNotification"),r=wl(tt.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 Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.READ_PRINCIPAL);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},async observeNodeCapabilities(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.NODE_CAPABILITIES);if(ce()!==o)throw new Ce({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 Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"});if(!i)throw s();const a=Object.freeze(Qr.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(tt.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(tt.REPOSITORY.RETIRED,m),!!c))try{await i.invoke(tt.REPOSITORY.RELEASE,{id:c,root:a})}catch{}};try{const T=Xt(await i.invoke(tt.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(tt.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 Ce({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)&&Or(t.reviewMonitoring)&&Or(a.reviewMonitoring)&&(c.reviewMonitoring=Math.min(t.reviewMonitoring,a.reviewMonitoring));const u=await a.invoke(tt.REQUEST,c);return Xt(u)},async subscribe(o){const i=ce();if(!i)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const s=await i.invoke(tt.SUBSCRIBE,yl(o));return Xt(s)},async unsubscribe(o,i){const s=ce();if(s)try{await s.invoke(tt.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=Or(t.reviewMonitoring)&&Or(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=rl.parse(t),r=()=>new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"});if(!e)throw r();const o=tt.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:et(["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 Ce({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 Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});if(ce()!==t)throw o();const i=tt.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:et(["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 K=g.get(s);if(g.clear(),K&&v(K),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(K=>{R=K});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 je(){return Cl||(Cl=ny()),Cl}function ry(t){const e=je();return e.captureRepositoryResource?e.captureRepositoryResource(t):Promise.reject(new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}))}function oy(t){const e=je();return e.captureRepositoryRoute?e.captureRepositoryRoute(t):Promise.reject(new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"}))}function iy(t){const e=je();return e.captureRepositorySelection?e.captureRepositorySelection(t):Promise.reject(new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"}))}async function Sh(t,e,n){try{const r=je();if(Av(t,e)){const{store:o}=await ls(async()=>{const{store:d}=await import("./_p09hiud.js");return{store:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),i=()=>o.state.userPreferences?.labsRemoteAgentsEnabled===!0,s=o.state.daemonHealth?.connectionGeneration,a=()=>{if(r!==je()||s!==o.state.daemonHealth?.connectionGeneration)throw new Error(V.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(V.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 Ce){const o=Cv(r.data?.executionAuthorization);if(o)throw new Ce({code:r.code,rpcCode:r.rpcCode,data:r.data,message:o})}throw r}}async function sy(){const t=je();if(!t.readPrincipal)throw new Ce({code:"UNAVAILABLE",message:"Principal discovery unavailable"});const e=await t.readPrincipal();if(t!==je())throw new Ce({code:"UNAVAILABLE",message:"Backend transport changed"});return e}async function ay(){const t=je(),{store:e}=await ls(async()=>{const{store:o}=await import("./_p09hiud.js");return{store:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),n=e.state.daemonHealth?.connectionGeneration;if(!t.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const r=await t.observeNodeCapabilities();if(t!==je()||n!==e.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged());return r}async function ly(t){return je().subscribe(t)}async function cy(t,e){return je().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 je().onNotification(t)}function kh(t){return je().onReconnected(t)}function fy(t){const e=je();return e.prepareNativeReview?e.prepareNativeReview(t):Promise.reject(new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"}))}function hy(t){const e=je();return e.captureRepositoryCheckout?e.captureRepositoryCheckout(t):Promise.reject(new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}))}function py(t){const e=je();return e.capturePrMonitorSession?e.capturePrMonitorSession(t):Promise.reject(new Ce({code:"PR_MONITOR_SESSION_UNAVAILABLE",message:"Monitor transport unavailable"}))}function gy(){return je().prMonitorBackendId?.()}function my(t){const e=je();return e.onMonitorReconnected?e.onMonitorReconnected(t):e.onReconnected(t)}const Px=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 _x(){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 ls(async()=>{const{appClient:b}=await import("./C7-4lB53.js").then(v=>v.Z);return{appClient:b}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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=Pd(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 Ss=new Map;function xy(t){return`${t.owner}/${t.repo}#${t.number}/${t.kind}`}async function Sy(t,e,n){const r=e??(await ls(async()=>{const{appClient:i}=await import("./C7-4lB53.js").then(s=>s.Z);return{appClient:i}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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 ls(async()=>{const{appClient:c}=await import("./C7-4lB53.js").then(u=>u.Z);return{appClient:c}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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=Ss.get(s);return a||(a=Sy(n,o,r.workspaceId).finally(()=>{Ss.get(s)===a&&Ss.delete(s)}),Ss.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 Ir=null;const ia=Ey();let mr,sa;function Oy(t,e){const n=Ah(e);mr?.(),mr=void 0;const r=ia.next();if(!Th(t)){Ze.preview={status:"idle"},mr=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 Py(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 _y(t,e,n){Ir&&clearTimeout(Ir),ia.invalidate(),mr?.(),mr=void 0,sa?.(),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"]}),sa=()=>a.disconnect(),Ze.copied=!1,Ir=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(sa?.(),sa=void 0,mr?.(),mr=void 0,Ir&&(clearTimeout(Ir),Ir=null),Ze.copied){Ze.preview={status:"idle"},ia.invalidate();return}Ze.visible=!1,ia.invalidate(),Ze.preview={status:"idle"}}const Fx=Object.freeze(Object.defineProperty({__proto__:null,formatUrlForDisplay:Py,hideLinkTooltip:mc,showLinkTooltip:_y,state:Ze},Symbol.toStringTag,{value:"Module"})),Iy=Symbol("ui-size");function My(){return Pl(Iy)??"default"}var Ry=Array.isArray,ol=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:ol(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},Ws=(...t)=>{const e=ol(t);if(e)return Fy(e)?Dy(e):e},vc=t=>t===!1?"false":t===!0?"true":t===0?"0":t,wt=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]=Ws(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:{}},Ph=256,zy=128,wr=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},Ar=(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+"?"}},_h=(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=Ar(n,i[a]),n+=","}n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(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=Ar(n,i[a]),n+=","}Array.isArray(i.slots)&&(n+="slots="+i.slots.join(",")+","),n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}return n},Mh=(t=Ph)=>{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 wr},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Wy=(t=Ph)=>{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 wr},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!==wr)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 nt=Hy(),Ky=t=>{!wt(t.twMergeConfig)&&!Eh(t.twMergeConfig,nt.cachedTwMergeConfig)&&(nt.didTwMergeConfigChange=!0,nt.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:wt(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?Ws(n.base,t?.base):t?.base,f=n?.variants&&!wt(n.variants)?Yc(o,n.variants):o,g=n?.defaultVariants&&!wt(n.defaultVariants)?{...n.defaultVariants,...a}:a;Ky(c);const b=!n?.slots||wt(n.slots),v=u?b&&n?.base?Ws(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Ws(t.base):void 0,m=u?{base:v,...r}:{},E=b?m:Ly({...n?.slots},wt(m)?{base:t?.base}:m),T=!n?.compoundVariants||wt(n.compoundVariants)?i:yc(n?.compoundVariants,i),O=!n?.compoundSlots||wt(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},ks=t=>t==null||t===!1,$y=(t,e)=>{if(!Array.isArray(t))return t===e||ks(t)&&ks(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||ks(r)&&ks(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=wr;const i=Xc(e,r);return(s=>(o===wr&&(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=_h(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!==wr?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 K=f?Dh(r,R,M):void 0,j=K?rw(x,a,K):void 0,$=K?ow(k,K):void 0;return e(n,i[x],tw(x,T,r,R,M),j,$)}}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]]=K=>{if(K==null)return M;let j=!1;for(const $ in K)if(!($==="class"||$==="className")&&K[$]!==void 0){j=!0;break}return y(j?R(T,K):M,K)}}return x};return(T=>{if(o)throw o;if(m(),v>0)return v--,E(T);const O=_h(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!==wr)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}),aa="-",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(aa),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(aa):t.slice(e).join(aa),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(aa),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,Pw=41,bd=33,_w=(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===Pw&&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 _w(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 K=!!M,j;if(K){const J=R.substring(0,M);j=r(J);const re=j&&n[j]?r(R):void 0;re&&re!==j&&(j=re,K=!1)}else j=r(R);if(!j){if(!K||(j=r(R),!j))return kl;K=!1}const $=x.length===0?"":x.length===1?x[0]:e(x).join(":"),z=k?$+Sw:$,Y=o(j,K),B=[];for(let J=0;J<Y.length;J++)B.push(m(z+Y[J]));return{isExternal:!1,classId:m(z+j),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 j=d.length;for(;j<x;)j*=2;d=new Uint8Array(j)}let R=!1,M=0;for(let j=x-1;j>=0;j-=1){const $=y[j];M+=$.length;const z=T($);if(z.isExternal){d[j]=1;continue}const Y=z.classId;if(c[Y]===k){d[j]=0,R=!0;continue}c[Y]=k;const B=z.conflictIds;for(let J=0;J<B.length;J++)c[B[J]]=k;d[j]=1}if(!R&&!f&&A.length===M+x-1)return A;let K="";for(let j=0;j<x;j++)d[j]===1&&(K&&(K+=" "),K+=y[j]);return K}}},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(ol(u));return c.mergeString=s,c},Lw=[],We=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),Qn=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),As=t=>Yn(t,Zh,qw),X=t=>Wh.test(t),ho=t=>Sr(t,qh),tC=t=>Sr(t,Yh),xd=t=>Sr(t,Kh),nC=t=>Sr(t,Gh),rC=t=>Sr(t,jh),Ts=t=>Sr(t,Zh,!0),oC=t=>Sr(t,Xh,!0),Yn=(t,e,n)=>{const r=Vh.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Sr=(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=We("color"),e=We("font"),n=We("text"),r=We("font-weight"),o=We("tracking"),i=We("leading"),s=We("breakpoint"),a=We("container"),c=We("spacing"),u=We("radius"),d=We("shadow"),f=We("inset-shadow"),g=We("text-shadow"),b=We("drop-shadow"),v=We("blur"),m=We("perspective"),E=We("aspect"),T=We("ease"),O=We("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],K=()=>[An,"full","auto",...M()],j=()=>[zt,"none","subgrid",X,q],$=()=>["auto",{span:["full",zt,X,q]},zt,X,q],z=()=>[zt,"auto",X,q],Y=()=>["auto","min","max","fr",X,q],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...M()],ee=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ie=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...M()],he=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],_=()=>[t,X,q],de=()=>[...y(),xd,Cd,{position:[X,q]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",nC,Jw,{size:[X,q]}],Me=()=>[Al,ho,Qn],pe=()=>["","none","full",u,X,q],ve=()=>["",le,ho,Qn],we=()=>["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],H=()=>["","none",v,X,q],Re=()=>["none",le,X,q],rt=()=>["none",le,X,q],ht=()=>[le,X,q],Ge=()=>[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:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],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":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"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":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],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:ee()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,ho,Qn]}],"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:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",X,Qn]}],"text-decoration-color":[{decoration:_()}],"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:be()}],"bg-size":[{bg:W()}],"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:_()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,X,q]}],"outline-w":[{outline:["",le,ho,Qn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,Ts,As]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,Ts,As]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[le,Qn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,Ts,As]}],"text-shadow-color":[{"text-shadow":_()}],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":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"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":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"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":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"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":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"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":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"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":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"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":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"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":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:H()}],brightness:[{brightness:[le,X,q]}],contrast:[{contrast:[le,X,q]}],"drop-shadow":[{"drop-shadow":["","none",b,Ts,As]}],"drop-shadow-color":[{"drop-shadow":_()}],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":H()}],"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:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[zt,X,q]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"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",..._()]}],"stroke-w":[{stroke:[le,ho,Qn,wd]}],stroke:[{stroke:["none",..._()]}],"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={}})=>(Es(t.theme,n.theme),Es(t.classGroups,n.classGroups),Es(t.conflictingClassGroups,n.conflictingClassGroups),Es(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Cc(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),Cc(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),Os(t.theme,e.theme),Os(t.classGroups,e.classGroups),Os(t.conflictingClassGroups,e.conflictingClassGroups),Os(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),xc(t,e,"postfixLookupClassGroups"),xc(t,e,"orderSensitiveModifiers"),t),Cc=(t,e,n)=>{n!==void 0&&(t[e]=n)},Es=(t,e)=>{if(e)for(const n in e)Cc(t,n,e[n])},Os=(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(wt(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&&!wt(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)},Us,cC=()=>(Us||(Us=Jh()),Us),uC=()=>((!nt.cachedTwMerge||nt.didTwMergeConfigChange)&&(nt.didTwMergeConfigChange=!1,nt.cachedTwMerge=lC(nt.cachedTwMergeConfig)),nt.cachedTwMerge),dC=t=>{const e=t?.twMergeConfig;!e||wt(e)||Eh(e,nt.cachedTwMergeConfig)||(nt.cachedTwMergeConfig=e,nt.didTwMergeConfigChange=!0)},fC=t=>ol(t),hC=nt.reset.bind(nt);nt.reset=()=>{Us=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&&!wt(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/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 tr=class tr{constructor(){P(this,"subscribers",new Map([["second",new Set],["minute",new Set],["hour",new Set],["day",new Set]]));P(this,"intervals",new Map([["second",null],["minute",null],["hour",null],["day",null]]));P(this,"INTERVALS",{second:1e3,minute:60*1e3,hour:3600*1e3,day:1440*60*1e3})}static getInstance(){return tr.instance||(tr.instance=new tr),tr.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=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){const r=this.getBucket(e),o={callback:n,targetDate:e};return this.subscribers.get(r)?.add(o),this.ensureInterval(r),()=>{for(const[i,s]of this.subscribers)if(s.has(o)){s.delete(o),this.cleanupIntervalIfEmpty(i);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}};P(tr,"instance",null);let Sc=tr;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">
|
|
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] *)"],qs=ef.join(","),tf=typeof Element>"u",vr=tf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ys=!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},Xs=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]"):Xs(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(Xs(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(qs));return n&&vr.call(e,qs)&&o.unshift(e),o=o.filter(r),o},Zs=function(e,n,r){for(var o=[],i=Array.from(e);i.length;){var s=i.shift();if(!Xs(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),c=a.length?a:s.children,u=Zs(c,!0,r);r.flatten?o.push.apply(o,u):o.push({scopeParent:s,candidates:u})}else{var d=vr.call(s,qs);d&&r.filter(s)&&(n||!e.includes(s))&&o.push(s);var f=s.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(s),g=!Xs(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(s));if(f&&g){var b=Zs(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||Ys(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&&Ys(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=Ys(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},_u=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=vr.call(e,"details>summary:first-of-type"),a=s?e.parentElement:e;if(vr.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=Ys(e);if(u&&!u.shadowRoot&&o(u)===!0)return _u(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 _u(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 vr.call(n,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}n=n.parentElement}return!1},Js=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||!Js(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=Zs([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=Zs([e],n.includeContainer,{filter:Js.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):r=nf(e,n.includeContainer,Js.bind(null,n)),r},Ic=function(e,n){if(n=n||{},!e)throw new Error("No node provided");return vr.call(e,qs)===!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 vr.call(e,Em)===!1?!1:Js(n,e)};function wo(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function Om(t,e){if(!Ic(t,wo()))return Pm(t,e);const n=oo(t),r=lf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1)[0]}function Pm(t,e){const n=oo(t);if(!uf(t,wo()))return n.body;const r=cf(n.body,wo());e==="prev"&&r.reverse();const o=r.indexOf(t);return o===-1?n.body:r.slice(o+1).find(s=>Ic(s,wo()))??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 _m={afterMs:1e4,onChange:me};function Im(t,e){const{afterMs:n,onChange:r,getWindow:o}={..._m,...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,da,fa;class Mm{constructor(e){C(this,un);C(this,dn);C(this,da,U(()=>l(this,un).onMatch?l(this,un).onMatch:e=>e.focus()));C(this,fa,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,fa))(),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,da))(a),a}resetTypeahead(){l(this,dn).current=""}get search(){return l(this,dn).current}}un=new WeakMap,dn=new WeakMap,da=new WeakMap,fa=new WeakMap;const Rm="data-context-menu-trigger",Nm="data-context-menu-content",Mc=new xt("Menu.Root"),eo=new xt("Menu.Root | Menu.Sub"),hs=new xt("Menu.Content"),Rc=new xt("Menu.Group | Menu.RadioGroup"),Nc=new xt("Menu.RadioGroup"),Dm=new xt("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 Se,or,Pn,at,vt,ir,fn,Br,Q,hf,_s,Vl,Wl,Ul,_n,mo,Is,bo,Ms,pf,Bo,gf,Rs,Ns,Tr,Ds;class Lm{constructor(e){C(this,Q);C(this,Se);C(this,or,null);C(this,Pn,null);C(this,at,!1);C(this,vt,null);C(this,ir,null);C(this,fn,null);C(this,Br,null);C(this,_n,null);C(this,Bo,e=>{if(!l(this,at)||!l(this,vt)||!Pt(e))return;const n=l(this,Se).triggerNode(),r=l(this,Se).contentNode();if(!n||!r){F(this,Q,bo).call(this);return}F(this,Q,Tr).call(this);const o={x:e.clientX,y:e.clientY};I(this,fn,o);const i=n.getBoundingClientRect(),s=r.getBoundingClientRect();if(l(this,vt)==="content"&&Ru(o,s)){F(this,Q,mo).call(this);return}if(l(this,vt)==="trigger"&&Bm(o,i,4)){F(this,Q,mo).call(this);return}if(F(this,Q,pf).call(this,o)){F(this,Q,Ns).call(this);return}const a=F(this,Q,_s).call(this,o,l(this,vt));if(!a){F(this,Q,bo).call(this);return}if(F(this,Q,Vl).call(this,o,a.corridor,a.intent)){F(this,Q,Ns).call(this);return}F(this,Q,bo).call(this)});I(this,Se,e),ke([e.triggerNode,e.contentNode,e.enabled],([n,r,o])=>{if(F(this,Q,Ms).call(this),!n||!r||!o)return;const i=f=>{Pt(f)&&(I(this,Br,{x:f.clientX,y:f.clientY}),l(this,at)||F(this,Q,Wl).call(this,f,"content"))},s=f=>{Pt(f)&&F(this,Q,Ul).call(this,f,"content")},a=f=>{Pt(f)&&(l(this,at)||F(this,Q,Wl).call(this,f,"trigger"))},c=f=>{if(Pt(f)){if(It(f.relatedTarget)){const g=l(this,Se).subContentSelector(),b=f.relatedTarget.closest(g);if(b&&b!==r&&b.id&&!!r.querySelector(`[aria-controls="${b.id}"]`))return}F(this,Q,Ul).call(this,f,"trigger")}},u=f=>{Pt(f)&&F(this,Q,mo).call(this)},d=f=>{Pt(f)&&F(this,Q,mo).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,Q,Ms).call(this)}}),wn(()=>{F(this,Q,Ms).call(this)})}}Se=new WeakMap,or=new WeakMap,Pn=new WeakMap,at=new WeakMap,vt=new WeakMap,ir=new WeakMap,fn=new WeakMap,Br=new WeakMap,Q=new WeakSet,hf=function(){const e=l(this,Se).parentContentNode();return e?e.getBoundingClientRect():l(this,Se).triggerNode()?.getBoundingClientRect()??null},_s=function(e,n){const r=l(this,Se).triggerNode(),o=l(this,Se).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,at)?l(this,ir)??e:e,u=s):(c=l(this,Br)??e,u=F(this,Q,hf).call(this)??i,d=s),I(this,ir,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,Q,_s).call(this,r,n)&&(I(this,vt,n),I(this,fn,r))},Ul=function(e,n){if(!l(this,Se).enabled())return;const r=l(this,Se).triggerNode(),o=l(this,Se).contentNode();if(!r||!o)return;const i=e.relatedTarget;if(It(i)&&(n==="content"&&o.contains(i)||n==="trigger"&&r.contains(i)))return;const s={x:e.clientX,y:e.clientY},a=F(this,Q,_s).call(this,s,n);if(a){if(!Ru(s,a.targetRect)&&!F(this,Q,Vl).call(this,s,a.corridor,a.intent)){F(this,Q,Ds).call(this);return}I(this,at,!0),I(this,vt,n),I(this,fn,s),l(this,Se).setIsPointerInTransit(!0),F(this,Q,gf).call(this),F(this,Q,Ns).call(this)}},_n=new WeakMap,mo=function(){if(!l(this,at))return;const e=l(this,vt)==="trigger";F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),I(this,at,!1),F(this,Q,Ds).call(this),e?(F(this,Q,Is).call(this),I(this,_n,setTimeout(()=>{I(this,_n,null),l(this,Se).setIsPointerInTransit(!1)},100))):l(this,Se).setIsPointerInTransit(!1)},Is=function(){l(this,_n)!==null&&(clearTimeout(l(this,_n)),I(this,_n,null))},bo=function(){const e=l(this,fn);F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),F(this,Q,Is).call(this),I(this,at,!1),l(this,Se).setIsPointerInTransit(!1),F(this,Q,Ds).call(this),l(this,Se).onIntentExit(e)},Ms=function(){F(this,Q,Rs).call(this),F(this,Q,Tr).call(this),F(this,Q,Is).call(this),l(this,at)&&l(this,Se).setIsPointerInTransit(!1),I(this,at,!1),I(this,vt,null),I(this,ir,null),I(this,fn,null),I(this,Br,null)},pf=function(e){const n=l(this,Se).contentNode();if(!n)return!1;const o=n.ownerDocument.elementFromPoint(e.x,e.y);if(!o)return!1;const i=l(this,Se).subContentSelector(),s=o.closest(i);return!s||s===n?!1:s.id?!!n.querySelector(`[aria-controls="${s.id}"]`):!1},Bo=new WeakMap,gf=function(){if(l(this,or))return;const e=oo(l(this,Se).triggerNode()??l(this,Se).contentNode());e&&(e.addEventListener("pointermove",l(this,Bo),!0),I(this,or,()=>{e.removeEventListener("pointermove",l(this,Bo),!0),I(this,or,null)}))},Rs=function(){var e;(e=l(this,or))==null||e.call(this)},Ns=function(){F(this,Q,Tr).call(this),I(this,Pn,setTimeout(()=>{I(this,Pn,null),l(this,at)&&F(this,Q,bo).call(this)},500))},Tr=function(){l(this,Pn)!==null&&(clearTimeout(l(this,Pn)),I(this,Pn,null))},Ds=function(){I(this,vt,null),I(this,ir,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 zo,Vo;const eu=class eu{constructor(e){P(this,"opts");P(this,"isUsingKeyboard",new Bl);C(this,zo,oe(!1));C(this,Vo,oe(!1));P(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,zo))}set ignoreCloseAutoFocus(e){N(l(this,zo),e,!0)}get isPointerInTransit(){return w(l(this,Vo))}set isPointerInTransit(e){N(l(this,Vo),e,!0)}};zo=new WeakMap,Vo=new WeakMap;let Nu=eu;var Wo,Uo;const tu=class tu{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"parentMenu");P(this,"contentId",G(()=>""));C(this,Wo,oe(null));P(this,"contentPresence");C(this,Uo,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&&ke(()=>r.opts.open.current,()=>{r.opts.open.current||(this.opts.open.current=!1)})}static create(e,n){return eo.set(new tu(e,n,null))}get contentNode(){return w(l(this,Wo))}set contentNode(e){N(l(this,Wo),e,!0)}get triggerNode(){return w(l(this,Uo))}set triggerNode(e){N(l(this,Uo),e,!0)}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}};Wo=new WeakMap,Uo=new WeakMap;let Hl=tu;var Ho,Ko,jo,Go,qo,en,mf,Fs,bf,Yo,Xo;const nu=class nu{constructor(e,n){C(this,en);P(this,"opts");P(this,"parentMenu");P(this,"rovingFocusGroup");P(this,"domContext");P(this,"attachment");C(this,Ho,oe(""));C(this,Ko,0);C(this,jo);C(this,Go,oe(!1));C(this,qo);P(this,"onCloseAutoFocus",e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||l(this,qo))){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Ic(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}});C(this,Yo,U(()=>({open:this.parentMenu.opts.open.current})));C(this,Xo,U(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":_c(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})));P(this,"popperProps",{onCloseAutoFocus:e=>this.onCloseAutoFocus(e)});this.opts=e,this.parentMenu=n,this.domContext=new Ya(e.ref),this.attachment=ft(this.opts.ref,r=>{this.parentMenu.contentNode!==r&&(this.parentMenu.contentNode=r)}),n.contentId=e.id,I(this,qo,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,jo,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")}),ke(()=>this.parentMenu.contentNode,r=>{if(!r)return;const o=()=>{_t(()=>{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,Ko))})}static create(e){return hs.set(new nu(e,eo.get()))}get search(){return w(l(this,Ho))}set search(e){N(l(this,Ho),e,!0)}get mounted(){return w(l(this,Go))}set mounted(e){N(l(this,Go),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(),_t(()=>{r.focus(),_t(()=>{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,jo).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){It(e.currentTarget)&&It(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(l(this,Ko)),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&_t(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return F(this,en,Fs).call(this)}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||F(this,en,Fs).call(this)||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!F(this,en,Fs).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,_t(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}get snippetProps(){return w(l(this,Yo))}set snippetProps(e){N(l(this,Yo),e)}get props(){return w(l(this,Xo))}set props(e){N(l(this,Xo),e)}};Ho=new WeakMap,Ko=new WeakMap,jo=new WeakMap,Go=new WeakMap,qo=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])`)):[]},Fs=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(!It(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}))},Yo=new WeakMap,Xo=new WeakMap;let Du=nu;var zr,Zo;class Ja{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,zr,oe(!1));C(this,Zo,U(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":Pc(this.opts.disabled.current),"data-disabled":Xa(this.opts.disabled.current),"data-highlighted":w(l(this,zr))?"":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=ft(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&&Pt(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||Pt(e)&&this.content.onItemLeave(e)}onfocus(e){_t(()=>{e.defaultPrevented||this.opts.disabled.current||N(l(this,zr),!0)})}onblur(e){_t(()=>{e.defaultPrevented||N(l(this,zr),!1)})}get props(){return w(l(this,Zo))}set props(e){N(l(this,Zo),e)}}zr=new WeakMap,Zo=new WeakMap;var Jo,ha,vf,Qo;const ru=class ru{constructor(e,n){C(this,ha);P(this,"opts");P(this,"item");P(this,"root");C(this,Jo,!1);C(this,Qo,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 Ja(e,hs.get());return new ru(e,n)}onkeydown(e){const n=this.item.content.search!=="";if(!(this.item.opts.disabled.current||n&&e.key===Za)&&Ll.includes(e.key)){if(!bn(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||F(this,ha,vf).call(this)}onpointerup(e){if(!e.defaultPrevented&&!l(this,Jo)){if(!bn(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){I(this,Jo,!0)}get props(){return w(l(this,Qo))}set props(e){N(l(this,Qo),e)}};Jo=new WeakMap,ha=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()},Qo=new WeakMap;let Qs=ru;var hn,In,Er,$o;const ou=class ou{constructor(e,n,r,o){C(this,In);P(this,"opts");P(this,"item");P(this,"content");P(this,"submenu");P(this,"attachment");C(this,hn,null);C(this,$o,U(()=>Zt({"aria-haspopup":"menu","aria-expanded":Pc(this.submenu.opts.open.current),"data-state":_c(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=ft(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,Er).call(this)})}static create(e){const n=hs.get(),r=new Ja(e,n),o=eo.get();return new ou(e,r,n,o)}onpointermove(e){if(Pt(e)){if(this.submenu.root.isPointerInTransit){l(this,hn)!==null&&F(this,In,Er).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,Er).call(this);return}this.submenu.onOpen(),F(this,In,Er).call(this)},n))}}}onpointerleave(e){Pt(e)&&F(this,In,Er).call(this)}onkeydown(e){const n=this.content.search!=="";this.item.opts.disabled.current||n&&e.key===Za||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(),_t(()=>{const r=this.submenu.contentNode;r&&ff.dispatch(r)}))}get props(){return w(l(this,$o))}set props(e){N(l(this,$o),e)}};hn=new WeakMap,In=new WeakSet,Er=function(){l(this,hn)!==null&&(this.content.domContext.getWindow().clearTimeout(l(this,hn)),I(this,hn,null))},$o=new WeakMap;let Fu=ou;var ei,ti;const iu=class iu{constructor(e,n,r=null){P(this,"opts");P(this,"item");P(this,"group");C(this,ei,U(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current})));C(this,ti,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&&(ke(()=>this.group.opts.value.current,o=>{this.opts.checked.current=o.includes(this.opts.value.current)}),ke(()=>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 Qs(e,new Ja(e,hs.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,ei))}set snippetProps(e){N(l(this,ei),e)}get props(){return w(l(this,ti))}set props(e){N(l(this,ti),e)}};ei=new WeakMap,ti=new WeakMap;let Lu=iu;var ni,ri;const su=class su{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ni,oe(void 0));C(this,ri,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=ft(this.opts.ref)}static create(e){return Rc.set(new su(e,Mc.get()))}get groupHeadingId(){return w(l(this,ni))}set groupHeadingId(e){N(l(this,ni),e,!0)}get props(){return w(l(this,ri))}set props(e){N(l(this,ri),e)}};ni=new WeakMap,ri=new WeakMap;let Bu=su;var oi;const xo=class xo{constructor(e,n){P(this,"opts");P(this,"group");P(this,"attachment");C(this,oi,U(()=>({id:this.opts.id.current,role:"group",[this.group.root.getBitsAttr("group-heading")]:"",...this.attachment})));this.opts=e,this.group=n,this.attachment=ft(this.opts.ref,r=>this.group.groupHeadingId=r?.id)}static create(e){const n=Dm.getOr(null);if(n)return new xo(e,n);const r=Nc.getOr(null);return r?new xo(e,r):new xo(e,Rc.get())}get props(){return w(l(this,oi))}set props(e){N(l(this,oi),e)}};oi=new WeakMap;let zu=xo;var ii;const au=class au{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");C(this,ii,U(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("separator")]:"",...this.attachment})));this.opts=e,this.root=n,this.attachment=ft(this.opts.ref)}static create(e){return new au(e,Mc.get())}get props(){return w(l(this,ii))}set props(e){N(l(this,ii),e)}};ii=new WeakMap;let Vu=au;var si,ai;const lu=class lu{constructor(e,n){P(this,"opts");P(this,"content");P(this,"attachment");C(this,si,oe(null));P(this,"root");C(this,ai,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=ft(this.opts.ref)}static create(e){return Rc.set(Nc.set(new lu(e,hs.get())))}get groupHeadingId(){return w(l(this,si))}set groupHeadingId(e){N(l(this,si),e,!0)}setValue(e){this.opts.value.current=e}get props(){return w(l(this,ai))}set props(e){N(l(this,ai),e)}};si=new WeakMap,ai=new WeakMap;let Wu=lu;var li,ci;const cu=class cu{constructor(e,n,r){P(this,"opts");P(this,"item");P(this,"group");P(this,"attachment");C(this,li,U(()=>this.group.opts.value.current===this.opts.value.current));C(this,ci,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=ft(this.opts.ref)}static create(e){const n=Nc.get(),r=new Ja(e,n.content),o=new Qs(e,r);return new cu(e,o,n)}get isChecked(){return w(l(this,li))}set isChecked(e){N(l(this,li),e)}selectValue(){this.group.setValue(this.opts.value.current)}get props(){return w(l(this,ci))}set props(e){N(l(this,ci),e)}};li=new WeakMap,ci=new WeakMap;let Uu=cu;var pa,ui;const uu=class uu{constructor(e,n){P(this,"opts");P(this,"parentMenu");P(this,"attachment");P(this,"onclick",e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())});P(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())}});P(this,"onpointerup",e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())});P(this,"onkeydown",e=>{if(!this.opts.disabled.current){if(e.key===Za||e.key===Hd){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===To&&(this.parentMenu.onOpen(),e.preventDefault())}});C(this,pa,U(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current}));C(this,ui,U(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":Pc(this.parentMenu.opts.open.current),"aria-controls":w(l(this,pa)),"data-disabled":Xa(this.opts.disabled.current),"data-state":_c(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=ft(this.opts.ref,r=>this.parentMenu.triggerNode=r)}static create(e){return new uu(e,eo.get())}get props(){return w(l(this,ui))}set props(e){N(l(this,ui),e)}};pa=new WeakMap,ui=new WeakMap;let Hu=uu;class Cx{static create(e){const n=eo.get();return eo.set(new Hl(e,n.root,n))}}globalThis.bitsDismissableLayers??=new Map;var Mn,sr,Rn,Vr,Wr,Nn,Ur,Tt,ga,no,yf,ma,Hr,ba,va,ya,wa,di,wf,Ca,xa;const du=class du{constructor(e){C(this,no);P(this,"opts");C(this,Mn);C(this,sr);C(this,Rn,{pointerdown:!1});C(this,Vr,!1);C(this,Wr,!1);C(this,Nn);C(this,Ur);C(this,Tt,me);C(this,ga,e=>{e.defaultPrevented||this.opts.ref.current&&_t(()=>{if(!(!this.opts.ref.current||l(this,wa).call(this,e.target))&&e.target&&!l(this,Wr)){if(typeof l(this,Ur)?.current!="function")return;l(this,Ur).current(e)}})});C(this,ma,e=>{let n=e;n.defaultPrevented&&(n=Ku(e)),typeof l(this,Mn)?.current=="function"&&l(this,Mn).current(e)});C(this,Hr,Pu(e=>{if(!this.opts.ref.current){l(this,Tt).call(this);return}if(typeof this.opts.isValidEvent?.current!="function"){l(this,Tt).call(this);return}const n=this.opts.isValidEvent.current(e,this.opts.ref.current)||jm(e,this.opts.ref.current);if(!l(this,Vr)||F(this,no,wf).call(this)||!n){l(this,Tt).call(this);return}let r=e;if(r.defaultPrevented&&(r=Ku(r)),l(this,sr).current!=="close"&&l(this,sr).current!=="defer-otherwise-close"){l(this,Tt).call(this);return}if(e.pointerType==="touch")l(this,Tt).call(this),I(this,Tt,Ie(l(this,Nn),"click",l(this,ma),{once:!0}));else{if(typeof l(this,Mn)?.current!="function"){l(this,Tt).call(this);return}l(this,Mn).current(r)}},10));C(this,ba,e=>{l(this,Rn)[e.type]=!0});C(this,va,e=>{l(this,Rn)[e.type]=!1});C(this,ya,()=>{this.opts.ref.current&&I(this,Vr,Km(this.opts.ref.current))});C(this,wa,e=>this.opts.ref.current?Zd(this.opts.ref.current,e):!1);C(this,di,Pu(()=>{for(const e in l(this,Rn))l(this,Rn)[e]=!1;I(this,Vr,!1)},20));C(this,Ca,()=>{I(this,Wr,!0)});C(this,xa,()=>{I(this,Wr,!1)});P(this,"props",{onfocuscapture:l(this,Ca),onblurcapture:l(this,xa)});this.opts=e,I(this,sr,e.interactOutsideBehavior),I(this,Mn,e.onInteractOutside),I(this,Ur,e.onFocusOutside),Le(()=>{I(this,Nn,Jd(this.opts.ref.current))});let n=me,r;const o=()=>{clearTimeout(r),l(this,di).call(this),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),n()};ke([()=>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,sr)),n(),n=F(this,no,yf).call(this))}),o}),wn(()=>{l(this,di).destroy(),globalThis.bitsDismissableLayers.delete(this),l(this,Hr).destroy(),l(this,Tt).call(this),n()})}static create(e){return new du(e)}};Mn=new WeakMap,sr=new WeakMap,Rn=new WeakMap,Vr=new WeakMap,Wr=new WeakMap,Nn=new WeakMap,Ur=new WeakMap,Tt=new WeakMap,ga=new WeakMap,no=new WeakSet,yf=function(){return Pr(Ie(l(this,Nn),"pointerdown",Pr(l(this,ba),l(this,ya)),{capture:!0}),Ie(l(this,Nn),"pointerdown",Pr(l(this,va),l(this,Hr))),Ie(l(this,Nn),"focusin",l(this,ga)))},ma=new WeakMap,Hr=new WeakMap,ba=new WeakMap,va=new WeakMap,ya=new WeakMap,wa=new WeakMap,di=new WeakMap,wf=function(){return Object.values(l(this,Rn)).some(Boolean)},Ca=new WeakMap,xa=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 Te({component:Cf,...t});Pe(e,!0);let n=h(e,"interactOutsideBehavior",7,"close"),r=h(e,"onInteractOutside",7,me),o=h(e,"onFocusOutside",7,me),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=me){r(v),p()},get onFocusOutside(){return o()},set onFocusOutside(v=me){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:Ee,$on:(v,m)=>Oe(e,v,m)},g=ue(),b=se(g);return ye(b,()=>s()??xe,()=>({props:d.props})),Z(t,g),_e(f)}globalThis.bitsEscapeLayers??=new Map;var Sa,ka;const fu=class fu{constructor(e){P(this,"opts");P(this,"domContext");C(this,Sa,()=>Ie(this.domContext.getDocument(),"keydown",l(this,ka),{passive:!1}));C(this,ka,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 Ya(this.opts.ref);let n=me;ke(()=>e.enabled.current,r=>(r&&(globalThis.bitsEscapeLayers.set(this,e.escapeKeydownBehavior),n=l(this,Sa).call(this)),()=>{n(),globalThis.bitsEscapeLayers.delete(this)}))}static create(e){return new fu(e)}};Sa=new WeakMap,ka=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 Te({component:xf,...t});Pe(e,!0);let n=h(e,"escapeKeydownBehavior",7,"close"),r=h(e,"onEscapeKeydown",7,me),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=me){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:Ee,$on:(d,f)=>Oe(e,d,f)},c=ue(),u=se(c);return ye(u,()=>o()??xe),Z(t,c),_e(a)}var pn,fi,ar;const Aa=class Aa{constructor(){C(this,pn,Ct([]));C(this,fi,new WeakMap);C(this,ar,new WeakMap)}static getInstance(){return this.instance||(this.instance=new Aa),this.instance}register(e){const n=this.getActive();n&&n!==e&&n.pause();const r=document.activeElement;r&&r!==document.body&&l(this,ar).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,fi).set(e,n)}getFocusMemory(e){return l(this,fi).get(e)}isActiveScope(e){return this.getActive()===e}setPreFocusMemory(e,n){l(this,ar).set(e,n)}getPreFocusMemory(e){return l(this,ar).get(e)}clearPreFocusMemory(e){l(this,ar).delete(e)}};pn=new WeakMap,fi=new WeakMap,ar=new WeakMap,P(Aa,"instance");let Gl=Aa;var Dn,Qe,lt,lr,Fn,Be,Sf,kf,Af,Tf,Yl,Ls,Xl;const hu=class hu{constructor(e){C(this,Be);C(this,Dn,!1);C(this,Qe,null);C(this,lt,Gl.getInstance());C(this,lr,[]);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,Qe)&&this.unmount(),I(this,Qe,e),l(this,lt).register(this),F(this,Be,Tf).call(this),F(this,Be,kf).call(this)}unmount(){l(this,Qe)&&(F(this,Be,Sf).call(this),F(this,Be,Af).call(this),l(this,lt).unregister(this),l(this,lt).clearPreFocusMemory(this),I(this,Qe,null))}static use(e){let n=null;return ke([()=>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,Qe=new WeakMap,lt=new WeakMap,lr=new WeakMap,Fn=new WeakMap,Be=new WeakSet,Sf=function(){for(const e of l(this,lr))e();I(this,lr,[])},kf=function(){if(!l(this,Qe))return;const e=new CustomEvent("focusScope.onOpenAutoFocus",{bubbles:!1,cancelable:!0});l(this,Fn).onOpenAutoFocus.current(e),e.defaultPrevented||requestAnimationFrame(()=>{if(!l(this,Qe))return;const n=F(this,Be,Ls).call(this);n?(n.focus(),l(this,lt).setFocusMemory(this,n)):l(this,Qe).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,lt).getPreFocusMemory(this);if(n&&document.contains(n))try{n.focus()}catch{document.body.focus()}}},Tf=function(){if(!l(this,Qe)||!l(this,Fn).trap.current)return;const e=l(this,Qe),n=e.ownerDocument,r=s=>{if(l(this,Dn)||!l(this,lt).isActiveScope(this))return;const a=s.target;if(!a)return;if(e.contains(a))l(this,lt).setFocusMemory(this,a);else{const u=l(this,lt).getFocusMemory(this);if(u&&e.contains(u)&&uf(u))s.preventDefault(),u.focus();else{const d=F(this,Be,Ls).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,lt).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,lr).push(Ie(n,"focusin",r,{capture:!0}),Ie(e,"keydown",o));const i=new MutationObserver(()=>{const s=l(this,lt).getFocusMemory(this);if(s&&!e.contains(s)){const a=F(this,Be,Ls).call(this),c=F(this,Be,Xl).call(this)[0],u=a||c;u?(u.focus(),l(this,lt).setFocusMemory(this,u)):e.focus()}});i.observe(e,{childList:!0,subtree:!0}),l(this,lr).push(()=>i.disconnect())},Yl=function(){return l(this,Qe)?lf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]},Ls=function(){return F(this,Be,Yl).call(this)[0]||null},Xl=function(){return l(this,Qe)?cf(l(this,Qe),{includeContainer:!1,getShadowRoot:!0}):[]};let ql=hu;function Ef(t,e){if(new.target)return Te({component:Ef,...t});Pe(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,me),s=h(e,"onOpenAutoFocus",7,me),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=me){i(b),p()},get onOpenAutoFocus(){return s()},set onOpenAutoFocus(b=me){s(b),p()},get focusScope(){return a()},set focusScope(b){a(b),p()},get ref(){return c()},set ref(b){c(b),p()},$set:Ee,$on:(b,v)=>Oe(e,b,v)},f=ue(),g=se(f);return ye(g,()=>a()??xe,()=>({props:u.props})),Z(t,f),_e(d)}const ju=()=>{};globalThis.bitsTextSelectionLayers??=new Map;var Kr,jr,hi,pi,Ta,Of,Ea,Oa,gi;const pu=class pu{constructor(e){C(this,Ta);P(this,"opts");P(this,"domContext");C(this,Kr,me);C(this,jr,!1);C(this,hi,ju);C(this,pi,ju);C(this,Ea,e=>{l(this,pi).call(this,e)});C(this,Oa,e=>{const n=this.opts.ref.current,r=e.target;!bn(n)||!bn(r)||!l(this,jr)||!Ym(this)||!Lg(n,r)||(l(this,hi).call(this,e),!e.defaultPrevented&&I(this,Kr,qm(n,this.domContext.getDocument().body)))});C(this,gi,()=>{l(this,Kr).call(this),I(this,Kr,me)});this.opts=e,this.domContext=new Ya(e.ref);let n=me;ke(()=>[this.opts.enabled.current,this.opts.onPointerDown.current,this.opts.onPointerUp.current],([r,o,i])=>(I(this,jr,r),I(this,hi,o),I(this,pi,i),r&&(globalThis.bitsTextSelectionLayers.set(this,this.opts.enabled),n(),n=F(this,Ta,Of).call(this)),()=>{I(this,jr,!1),n(),l(this,gi).call(this),globalThis.bitsTextSelectionLayers.delete(this)}))}static create(e){return new pu(e)}};Kr=new WeakMap,jr=new WeakMap,hi=new WeakMap,pi=new WeakMap,Ta=new WeakSet,Of=function(){return Pr(Ie(this.domContext.getDocument(),"pointerdown",l(this,Oa)),Ie(this.domContext.getDocument(),"pointerup",Id(l(this,gi),l(this,Ea))))},Ea=new WeakMap,Oa=new WeakMap,gi=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 ys(e,"none"),ys(t,"text"),()=>{ys(e,n),ys(t,r)}}function ys(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 Pf(t,e){if(new.target)return Te({component:Pf,...t});Pe(e,!0);let n=h(e,"preventOverflowTextSelection",7,!0),r=h(e,"onPointerDown",7,me),o=h(e,"onPointerUp",7,me),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=me){r(g),p()},get onPointerUp(){return o()},set onPointerUp(g=me){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:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>s()??xe),Z(t,d),_e(u)}globalThis.bitsIdCounter??={current:0};function $s(t="bits"){return globalThis.bitsIdCounter.current++,`${t}-${globalThis.bitsIdCounter.current}`}var mi,Gr,cr,ur,Pa,_f;class Xm{constructor(e){C(this,Pa);C(this,mi);C(this,Gr,0);C(this,cr,oe());C(this,ur);I(this,mi,e)}get(...e){return I(this,Gr,l(this,Gr)+1),w(l(this,cr))===void 0&&I(this,ur,kd(()=>{N(l(this,cr),l(this,mi).call(this,...e),!0)})),Le(()=>()=>{F(this,Pa,_f).call(this)}),w(l(this,cr))}}mi=new WeakMap,Gr=new WeakMap,cr=new WeakMap,ur=new WeakMap,Pa=new WeakSet,_f=function(){I(this,Gr,l(this,Gr)-1),l(this,ur)&&l(this,Gr)<=0&&(l(this,ur).call(this),N(l(this,cr),void 0),I(this,ur,void 0))};const Bs=new Il;let ws=oe(null),dl=null,uo=null,fo=!1;const qu=G(()=>{for(const t of Bs.values())if(t)return!0;return!1});let fl=null;const Zm=new Xm(()=>{function t(){typeof document>"u"||(document.body.setAttribute("style",w(ws)??""),document.body.style.removeProperty("--scrollbar-width"),Ou&&dl?.(),N(ws,null))}function e(){uo!==null&&(window.clearTimeout(uo),uo=null)}function n(o,i){e(),fo=!0,fl=Date.now();const s=fl,a=()=>{uo=null,fl===s&&(If(Bs)?fo=!1:(fo=!1,i()))},c=o===null?24:o;uo=window.setTimeout(a,c)}function r(){w(ws)===null&&Bs.size===0&&!fo&&N(ws,document.body.getAttribute("style"),!0)}return ke(()=>qu.current,()=>{if(!qu.current)return;r(),fo=!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=Ie(document,"touchmove",d=>{d.target===document.documentElement&&(d.touches.length>1||d.preventDefault())},{passive:!1})),_t(()=>{document.body.style.pointerEvents="none",document.body.style.overflow="hidden"})}),wn(()=>()=>{e(),t(),dl?.()}),{get lockMap(){return Bs},resetBodyStyle:t,scheduleCleanupIfNoNewLocks:n,cancelPendingCleanup:e,ensureInitialStyleCaptured:r}});var dr,bi,vi,ct;class Jm{constructor(e,n=()=>null){C(this,dr,$s());C(this,bi);C(this,vi,()=>null);C(this,ct);P(this,"locked");I(this,bi,e),I(this,vi,n),I(this,ct,Zm.get()),l(this,ct)&&(l(this,ct).cancelPendingCleanup(),l(this,ct).ensureInitialStyleCaptured(),l(this,ct).lockMap.set(l(this,dr),l(this,bi)??!1),this.locked=G(()=>l(this,ct).lockMap.get(l(this,dr))??!1,r=>l(this,ct).lockMap.set(l(this,dr),r)),wn(()=>{if(l(this,ct).lockMap.delete(l(this,dr)),If(l(this,ct).lockMap))return;const r=l(this,vi).call(this);l(this,ct).scheduleCleanupIfNoNewLocks(r,()=>{l(this,ct).resetBodyStyle()})}))}}dr=new WeakMap,bi=new WeakMap,vi=new WeakMap,ct=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 Te({component:Jl,...t});Pe(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:Ee,$on:(i,s)=>Oe(e,i,s)};return _e(o)}const Qm=["top","right","bottom","left"],jn=Math.min,gt=Math.max,ea=Math.round,Cs=Math.floor,$t=t=>({x:t,y:t}),$m={left:"right",right:"left",bottom:"top",top:"bottom"};function Ql(t,e,n){return gt(t,jn(e,n))}function vn(t,e){return typeof t=="function"?t(e):t}function yn(t){return t.split("-")[0]}function io(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=io(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=ta(s)),[s,ta(s)]}function tb(t){const e=ta(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=io(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 ta(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 na(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(io(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=na(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=na(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,K=R/2-m[v]/2-1,j=jn(f[T],K),$=jn(f[O],K),z=j,Y=R-m[v]-$,B=R/2-m[v]/2+M,J=Ql(z,B,Y),re=!c.arrow&&io(o)!=null&&B!==J&&i.reference[v]/2-(B<z?j:$)-m[v]/2<0,ee=re?B<z?B-z:B-Y:0;return{[b]:g[b]+ee,data:{[b]:J,centerOffset:B-J-ee,...re&&{alignmentOffset:ee}},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?[ta(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),K=[];let j=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&K.push(M[T]),f){const B=eb(o,s,y);K.push(M[B[0]],M[B[1]])}if(j=[...j,{placement:o,overflows:K}],!K.every(B=>B<=0)){var $,z;const B=((($=i.flip)==null?void 0:$.index)||0)+1,J=R[B];if(J&&(!(f==="alignment"?O!==Qt(J):!1)||j.every(ie=>Qt(ie.placement)===O?ie.overflows[0]>0:!0)))return{data:{index:B,overflows:j},reset:{placement:J}};let re=(z=j.filter(ee=>ee.overflows[0]<=0).sort((ee,ie)=>ee.overflows[1]-ie.overflows[1])[0])==null?void 0:z.placement;if(!re)switch(b){case"bestFit":{var Y;const ee=(Y=j.filter(ie=>{if(k){const he=Qt(ie.placement);return he===O||he==="y"}return!0}).map(ie=>[ie.placement,ie.overflows.filter(he=>he>0).reduce((he,_)=>he+_,0)]).sort((ie,he)=>ie[1]-he[1])[0])==null?void 0:Y[0];ee&&(re=ee);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=io(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=io(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 j=gt(d.left,0),$=gt(d.right,0),z=gt(d.top,0),Y=gt(d.bottom,0);b?M=v-2*(j!==0||$!==0?j+$:gt(d.left,d.right)):R=m-2*(z!==0||Y!==0?z+Y:gt(d.top,d.bottom))}await c({...e,availableWidth:M,availableHeight:R});const K=await s.getDimensions(a.floating);return v!==K.width||m!==K.height?{reset:{rects:!0}}:{}}}};function Qa(){return typeof window<"u"}function so(t){return Nf(t)?(t.nodeName||"").toLowerCase():"#document"}function mt(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 Qa()?t instanceof Node||t instanceof mt(t).Node:!1}function Rt(t){return Qa()?t instanceof Element||t instanceof mt(t).Element:!1}function Cn(t){return Qa()?t instanceof HTMLElement||t instanceof mt(t).HTMLElement:!1}function $u(t){return!Qa()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof mt(t).ShadowRoot}function ps(t){const{overflow:e,overflowX:n,overflowY:r,display:o}=Nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+n)&&o!=="inline"&&o!=="contents"}function vb(t){return/^(table|td|th)$/.test(so(t))}function $a(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/,Zn=t=>!!t&&t!=="none";let hl;function Bc(t){const e=Rt(t)?Nt(t):t;return Zn(e.transform)||Zn(e.translate)||Zn(e.scale)||Zn(e.rotate)||Zn(e.perspective)||!zc()&&(Zn(e.backdropFilter)||Zn(e.filter))||yb.test(e.willChange||"")||wb.test(e.contain||"")}function Cb(t){let e=Gn(t);for(;Cn(e)&&!to(e);){if(Bc(e))return e;if($a(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 to(t){return/^(html|body|#document)$/.test(so(t))}function Nt(t){return mt(t).getComputedStyle(t)}function el(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Gn(t){if(so(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 to(e)?t.ownerDocument?t.ownerDocument.body:t.body:Cn(e)&&ps(e)?e:Df(e)}function Eo(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=mt(o);if(i){const a=ec(s);return e.concat(s,s.visualViewport||[],ps(o)?o:[],a&&n?Eo(a):[])}else return e.concat(o,Eo(o,[],n))}function ec(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ff(t){const e=Nt(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=ea(n)!==i||ea(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Vc(t){return Rt(t)?t:t.contextElement}function _r(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?ea(n.width):n.width)/r,a=(i?ea(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=mt(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!==mt(t)?!1:e}function yr(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?Rt(r)&&(s=_r(r)):s=_r(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=mt(i),b=r&&Rt(r)?mt(r):r;let v=g,m=ec(v);for(;m&&r&&b!==v;){const E=_r(m),T=m.getBoundingClientRect(),O=Nt(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=mt(m),m=ec(v)}}return na({width:d,height:f,x:c,y:u})}function tl(t,e){const n=el(t).scrollLeft;return e?e.left+n:yr(tn(t)).left+n}function Bf(t,e){const n=t.getBoundingClientRect(),r=n.left+e.scrollLeft-tl(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?$a(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)&&((so(r)!=="body"||ps(s))&&(c=el(r)),f)){const b=yr(r);u=_r(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=el(t),r=t.ownerDocument.body,o=gt(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=gt(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+tl(t);const a=-n.scrollTop;return Nt(r).direction==="rtl"&&(s+=gt(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const ed=25;function Eb(t,e){const n=mt(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=tl(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=yr(t,!0,e==="fixed"),r=n.top+t.clientTop,o=n.left+t.clientLeft,i=Cn(t)?_r(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(Rt(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 na(r)}function zf(t,e){const n=Gn(t);return n===e||!Rt(n)||to(n)?!1:Nt(n).position==="fixed"||zf(n,e)}function Pb(t,e){const n=e.get(t);if(n)return n;let r=Eo(t,[],!1).filter(a=>Rt(a)&&so(a)!=="body"),o=null;const i=Nt(t).position==="fixed";let s=i?Gn(t):t;for(;Rt(s)&&!to(s);){const a=Nt(s),c=Bc(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&(o.position==="absolute"||o.position==="fixed")||ps(s)&&!c&&zf(t,s))?r=r.filter(d=>d!==s):o=a,s=Gn(s)}return e.set(t,r),r}function _b(t){let{element:e,boundary:n,rootBoundary:r,strategy:o}=t;const s=[...n==="clippingAncestors"?$a(e)?[]:Pb(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=gt(b.top,c),u=jn(b.right,u),d=jn(b.bottom,d),f=gt(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=yr(t,!0,i,e);let a={scrollLeft:0,scrollTop:0};const c=$t(0);function u(){c.x=tl(o)}if(r||!r&&!i)if((so(e)!=="body"||ps(o))&&(a=el(e)),r){const b=yr(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 Nt(t).position==="static"}function nd(t,e){if(!Cn(t)||Nt(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=mt(t);if($a(t))return n;if(!Cn(t)){let o=Gn(t);for(;o&&!to(o);){if(Rt(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&&to(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 Nt(t).direction==="rtl"}const Db={convertOffsetParentRelativeRectToViewportRelativeRect:kb,getDocumentElement:tn,getClippingRect:_b,getOffsetParent:Vf,getElementRects:Rb,getClientRects:Ab,getDimensions:Ib,getScale:_r,isElement:Rt,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=Cs(f),m=Cs(o.clientWidth-(d+g)),E=Cs(o.clientHeight-(f+b)),T=Cs(d),A={rootMargin:-v+"px "+-m+"px "+-E+"px "+-T+"px",threshold:gt(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?Eo(u):[],...e?Eo(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?yr(t):null;c&&E();function E(){const T=yr(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 Jn(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(()=>Jn(t.open)??!0),r=U(()=>Jn(t.middleware)),o=U(()=>Jn(t.transform)??!0),i=U(()=>Jn(t.placement)??"bottom"),s=U(()=>Jn(t.strategy)??"absolute"),a=U(()=>Jn(t.sideOffset)??0),c=U(()=>Jn(t.alignOffset)??0),u=t.reference;let d=oe(0),f=oe(0);const g=Ct(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 j=g.current?rd(g.current,w(d)):w(d),$=g.current?rd(g.current,w(f)):w(f);return w(o)?{position:w(b),left:"0",top:"0",transform:`translate(${j}px, ${$}px)`,...g.current&&Uf(g.current)>=1.5&&{willChange:"transform"}}:{position:w(b),left:`${j}px`,top:`${$}px`}});let y;function x(){if(u.current===null||g.current===null)return;const j=u.current,$=g.current,z=++O;jb(j,$,{middleware:w(r),placement:w(i),strategy:w(s)}).then(Y=>{if(z!==O||u.current!==j||g.current!==$)return;if(qb(j)){N(m,{...w(m),hide:{...w(m).hide,referenceHidden:!0}},!0);return}if(!w(n)&&w(d)!==0&&w(f)!==0){const J=Math.max(Math.abs(w(a)),Math.abs(w(c)),15);if(Y.x<=J&&Y.y<=J)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 K(){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(K(),!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 xt("Floating.Root"),tc=new xt("Floating.Content"),Uc=new xt("Floating.Root");class ra{constructor(){P(this,"anchorNode",Ct(null));P(this,"customAnchorNode",Ct(null));P(this,"triggerNode",Ct(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 ra):Wc.set(new ra)}}var yi,wi,Ci,_a,xi,Ia,Si,ki,Ai,Ti,Ei,Oi,Pi,_i,Ii,Mi,Ri,Ni,Di,Fi,Li,Bi,zi,Vi;const Ma=class Ma{constructor(e,n){P(this,"opts");P(this,"root");P(this,"contentRef",Ct(null));P(this,"wrapperRef",Ct(null));P(this,"arrowRef",Ct(null));P(this,"contentAttachment",ft(this.contentRef));P(this,"wrapperAttachment",ft(this.wrapperRef));P(this,"arrowAttachment",ft(this.arrowRef));P(this,"arrowId",Ct($s()));C(this,yi,U(()=>{if(typeof this.opts.style=="string")return go(this.opts.style);if(!this.opts.style)return{}}));C(this,wi);C(this,Ci,new _g(()=>this.arrowRef.current??void 0));C(this,_a,U(()=>l(this,Ci)?.width??0));C(this,xi,U(()=>l(this,Ci)?.height??0));C(this,Ia,U(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:"")));C(this,Si,U(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]));C(this,ki,U(()=>w(l(this,Si)).length>0));C(this,Ai,U(()=>({padding:this.opts.collisionPadding.current,boundary:w(l(this,Si)).filter(Zg),altBoundary:this.hasExplicitBoundaries})));C(this,Ti,oe(void 0));C(this,Ei,oe(void 0));C(this,Oi,oe(void 0));C(this,Pi,oe(void 0));C(this,_i,U(()=>[Bb({mainAxis:this.opts.sideOffset.current+w(l(this,xi)),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,Ti),n,!0),N(l(this,Ei),r,!0),N(l(this,Oi),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,_a)),arrowHeight:w(l(this,xi))}),this.opts.hideWhenDetached.current&&Ub({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean)));P(this,"floating");C(this,Ii,U(()=>Zb(this.floating.placement)));C(this,Mi,U(()=>Jb(this.floating.placement)));C(this,Ri,U(()=>this.floating.middlewareData.arrow?.x??0));C(this,Ni,U(()=>this.floating.middlewareData.arrow?.y??0));C(this,Di,U(()=>this.floating.middlewareData.arrow?.centerOffset!==0));C(this,Fi,oe());C(this,Li,U(()=>Yb[this.placedSide]));C(this,Bi,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,Ti))}px`,"--bits-floating-available-height":`${w(l(this,Ei))}px`,"--bits-floating-anchor-width":`${w(l(this,Oi))}px`,"--bits-floating-anchor-height":`${w(l(this,Pi))}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...w(l(this,yi))},dir:this.opts.dir.current,...this.wrapperAttachment})));C(this,zi,U(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Rd({...w(l(this,yi))}),...this.contentAttachment})));C(this,Vi,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,wi,e.updatePositionStrategy),e.customAnchor&&(this.root.customAnchorNode.current=e.customAnchor.current),ke(()=>e.customAnchor.current,r=>{this.root.customAnchorNode.current=r}),this.floating=Gb({strategy:()=>this.opts.strategy.current,placement:()=>w(l(this,Ia)),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...r)=>Lb(...r,{animationFrame:l(this,wi)?.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()}),ke(()=>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 Ma(e,Uc.get())):tc.set(new Ma(e,Wc.get()))}get hasExplicitBoundaries(){return w(l(this,ki))}set hasExplicitBoundaries(e){N(l(this,ki),e)}get detectOverflowOptions(){return w(l(this,Ai))}set detectOverflowOptions(e){N(l(this,Ai),e)}get middleware(){return w(l(this,_i))}set middleware(e){N(l(this,_i),e)}get placedSide(){return w(l(this,Ii))}set placedSide(e){N(l(this,Ii),e)}get placedAlign(){return w(l(this,Mi))}set placedAlign(e){N(l(this,Mi),e)}get arrowX(){return w(l(this,Ri))}set arrowX(e){N(l(this,Ri),e)}get arrowY(){return w(l(this,Ni))}set arrowY(e){N(l(this,Ni),e)}get cannotCenterArrow(){return w(l(this,Di))}set cannotCenterArrow(e){N(l(this,Di),e)}get contentZIndex(){return w(l(this,Fi))}set contentZIndex(e){N(l(this,Fi),e,!0)}get arrowBaseSide(){return w(l(this,Li))}set arrowBaseSide(e){N(l(this,Li),e)}get wrapperProps(){return w(l(this,Bi))}set wrapperProps(e){N(l(this,Bi),e)}get props(){return w(l(this,zi))}set props(e){N(l(this,zi),e)}get arrowStyle(){return w(l(this,Vi))}set arrowStyle(e){N(l(this,Vi),e)}};yi=new WeakMap,wi=new WeakMap,Ci=new WeakMap,_a=new WeakMap,xi=new WeakMap,Ia=new WeakMap,Si=new WeakMap,ki=new WeakMap,Ai=new WeakMap,Ti=new WeakMap,Ei=new WeakMap,Oi=new WeakMap,Pi=new WeakMap,_i=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;let nc=Ma;var Wi;const gu=class gu{constructor(e,n){P(this,"opts");P(this,"content");C(this,Wi,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,Wi))}set props(e){N(l(this,Wi),e)}};Wi=new WeakMap;let id=gu;class rc{constructor(e,n){P(this,"opts");P(this,"root");this.opts=e,this.root=n,e.virtualEl&&e.virtualEl.current?n.triggerNode=_d(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 Te({component:Hf,...t});Pe(e,!0);let n=h(e,"children",7),r=h(e,"tooltip",7,!1);ra.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:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe),Z(t,i),_e(o)}function Kf(t,e){if(new.target)return Te({component:Kf,...t});Pe(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,$s),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 K={get content(){return n()},set content(z){n(z),p()},get side(){return r()},set side(z="bottom"){r(z),p()},get sideOffset(){return o()},set sideOffset(z=0){o(z),p()},get align(){return i()},set align(z="center"){i(z),p()},get alignOffset(){return s()},set alignOffset(z=0){s(z),p()},get id(){return a()},set id(z){a(z),p()},get arrowPadding(){return c()},set arrowPadding(z=0){c(z),p()},get avoidCollisions(){return u()},set avoidCollisions(z=!0){u(z),p()},get collisionBoundary(){return d()},set collisionBoundary(z=[]){d(z),p()},get collisionPadding(){return f()},set collisionPadding(z=0){f(z),p()},get hideWhenDetached(){return g()},set hideWhenDetached(z=!1){g(z),p()},get onPlaced(){return b()},set onPlaced(z=()=>{}){b(z),p()},get sticky(){return v()},set sticky(z="partial"){v(z),p()},get updatePositionStrategy(){return m()},set updatePositionStrategy(z="optimized"){m(z),p()},get strategy(){return E()},set strategy(z="fixed"){E(z),p()},get dir(){return T()},set dir(z="ltr"){T(z),p()},get style(){return O()},set style(z={}){O(z),p()},get wrapperId(){return A()},set wrapperId(z=$s()){A(z),p()},get customAnchor(){return y()},set customAnchor(z=null){y(z),p()},get enabled(){return x()},set enabled(z){x(z),p()},get tooltip(){return k()},set tooltip(z=!1){k(z),p()},$set:Ee,$on:(z,Y)=>Oe(e,z,Y)},j=ue(),$=se(j);return ye($,()=>n()??xe,()=>({props:R.props,wrapperProps:w(M)})),Z(t,j),_e(K)}function jf(t,e){if(new.target)return Te({component:jf,...t});Pe(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:Ee,$on:(a,c)=>Oe(e,a,c)},i=ue(),s=se(i);return ye(s,()=>n()??xe,()=>({props:{},wrapperProps:{}})),Z(t,i),_e(o)}var Qb=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function Gf(t,e){if(new.target)return Te({component:Gf,...t});Pe(e,!0);let n=h(e,"content",7),r=h(e,"isStatic",7,!1),o=h(e,"onPlaced",7),i=Cr(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:Ee,$on:(f,g)=>Oe(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,So({get content(){return n()},get onPlaced(){return o()}},()=>i))};Ne(c,f=>{r()?f(u):f(d,-1)})}return Z(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=Ke("<!> <!>",1);function Kc(t,e){if(new.target)return Te({component:Kc,...t});Pe(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),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=h(e,"ref",7),be=h(e,"tooltip",7,!1),W=h(e,"contentPointerEvents",7,"auto"),Me=Cr(e,$b);const pe=U(()=>k()??!0),ve=U(()=>y()??(w(pe)?"fixed":"absolute"));var we={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 K()},set onPlaced(S){K(S),p()},get onInteractOutside(){return j()},set onInteractOutside(S){j(S),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(S){$(S),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(S){z(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 J()},set loop(S){J(S),p()},get trapFocus(){return re()},set trapFocus(S=!0){re(S),p()},get isValidEvent(){return ee()},set isValidEvent(S=()=>!1){ee(S),p()},get customAnchor(){return ie()},set customAnchor(S=null){ie(S),p()},get isStatic(){return he()},set isStatic(S=!1){he(S),p()},get enabled(){return _()},set enabled(S){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get tooltip(){return be()},set tooltip(S=!1){be(S),p()},get contentPointerEvents(){return W()},set contentPointerEvents(S="auto"){W(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)};return Gf(t,{get isStatic(){return he()},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(ve)},get dir(){return x()},get wrapperId(){return R()},get style(){return M()},get onPlaced(){return K()},get customAnchor(){return ie()},get enabled(){return _()},get tooltip(){return be()},content:(ae,H)=>{let Re=()=>(H?.()).props,rt=()=>(H?.()).wrapperProps;var ht=ev(),Ge=se(ht);{var qe=ge=>{Jl(ge,{get preventScroll(){return w(pe)}})},ze=ge=>{Jl(ge,{get preventScroll(){return w(pe)}})};Ne(Ge,ge=>{e.forceMount&&_()?ge(qe):e.forceMount||ge(ze,1)})}var pt=mn(Ge,2);{const ge=(Dt,Ft)=>{let Xn=()=>(Ft?.()).props;xf(Dt,{get onEscapeKeydown(){return r()},get escapeKeydownBehavior(){return o()},get enabled(){return _()},get ref(){return de()},children:(Lt,xn)=>{Cf(Lt,{get id(){return s()},get onInteractOutside(){return j()},get onFocusOutside(){return Y()},get interactOutsideBehavior(){return B()},get isValidEvent(){return ee()},get enabled(){return _()},get ref(){return de()},children:(St,Xe)=>{let it=()=>(Xe?.()).props;Pf(St,{get id(){return s()},get preventOverflowTextSelection(){return i()},get onPointerDown(){return a()},get onPointerUp(){return c()},get enabled(){return _()},get ref(){return de()},children:(nn,il)=>{var bs=ue(),sl=se(bs);{let al=U(()=>({props:Zt(Me,Re(),it(),Xn(),{style:{pointerEvents:W()}}),wrapperProps:rt()}));ye(sl,()=>n()??xe,()=>w(al))}Z(nn,bs)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})};let Ye=U(()=>_()&&!be());Ef(pt,{get onOpenAutoFocus(){return z()},get onCloseAutoFocus(){return $()},get loop(){return J()},get enabled(){return w(Ye)},get trapFocus(){return re()},get forceMount(){return e.forceMount},get ref(){return de()},focusScope:ge,$$slots:{focusScope:!0}})}Z(ae,ht)},$$slots:{content:!0}}),_e(we)}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 Te({component:qf,...t});Pe(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),K=h(e,"style",7),j=h(e,"onPlaced",7),$=h(e,"onInteractOutside",7),z=h(e,"onCloseAutoFocus",7),Y=h(e,"onOpenAutoFocus",7),B=h(e,"onFocusOutside",7),J=h(e,"interactOutsideBehavior",7,"close"),re=h(e,"loop",7),ee=h(e,"trapFocus",7,!0),ie=h(e,"isValidEvent",7,()=>!1),he=h(e,"customAnchor",7,null),_=h(e,"isStatic",7,!1),de=h(e,"ref",7),be=h(e,"shouldRender",7),W=Cr(e,tv);var Me={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 K()},set style(S){K(S),p()},get onPlaced(){return j()},set onPlaced(S){j(S),p()},get onInteractOutside(){return $()},set onInteractOutside(S){$(S),p()},get onCloseAutoFocus(){return z()},set onCloseAutoFocus(S){z(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 J()},set interactOutsideBehavior(S="close"){J(S),p()},get loop(){return re()},set loop(S){re(S),p()},get trapFocus(){return ee()},set trapFocus(S=!0){ee(S),p()},get isValidEvent(){return ie()},set isValidEvent(S=()=>!1){ie(S),p()},get customAnchor(){return he()},set customAnchor(S=null){he(S),p()},get isStatic(){return _()},set isStatic(S=!1){_(S),p()},get ref(){return de()},set ref(S){de(S),p()},get shouldRender(){return be()},set shouldRender(S){be(S),p()},$set:Ee,$on:(S,ae)=>Oe(e,S,ae)},pe=ue(),ve=se(pe);{var we=S=>{Kc(S,So({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 K()},get onPlaced(){return j()},get customAnchor(){return he()},get isStatic(){return _()},get enabled(){return r()},get onInteractOutside(){return $()},get onCloseAutoFocus(){return z()},get onOpenAutoFocus(){return Y()},get interactOutsideBehavior(){return J()},get loop(){return re()},get trapFocus(){return ee()},get isValidEvent(){return ie()},get onFocusOutside(){return B()},forceMount:!1,get ref(){return de()}},()=>W))};Ne(ve,S=>{be()&&S(we)})}return Z(t,pe),_e(Me)}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 Te({component:Yf,...t});Pe(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),K=h(e,"onPlaced",7),j=h(e,"onInteractOutside",7),$=h(e,"onCloseAutoFocus",7),z=h(e,"onOpenAutoFocus",7),Y=h(e,"onFocusOutside",7),B=h(e,"interactOutsideBehavior",7,"close"),J=h(e,"loop",7),re=h(e,"trapFocus",7,!0),ee=h(e,"isValidEvent",7,()=>!1),ie=h(e,"customAnchor",7,null),he=h(e,"isStatic",7,!1),_=h(e,"enabled",7),de=Cr(e,nv);var be={get popper(){return n()},set popper(W){n(W),p()},get onEscapeKeydown(){return r()},set onEscapeKeydown(W){r(W),p()},get escapeKeydownBehavior(){return o()},set escapeKeydownBehavior(W){o(W),p()},get preventOverflowTextSelection(){return i()},set preventOverflowTextSelection(W){i(W),p()},get id(){return s()},set id(W){s(W),p()},get onPointerDown(){return a()},set onPointerDown(W){a(W),p()},get onPointerUp(){return c()},set onPointerUp(W){c(W),p()},get side(){return u()},set side(W){u(W),p()},get sideOffset(){return d()},set sideOffset(W){d(W),p()},get align(){return f()},set align(W){f(W),p()},get alignOffset(){return g()},set alignOffset(W){g(W),p()},get arrowPadding(){return b()},set arrowPadding(W){b(W),p()},get avoidCollisions(){return v()},set avoidCollisions(W){v(W),p()},get collisionBoundary(){return m()},set collisionBoundary(W){m(W),p()},get collisionPadding(){return E()},set collisionPadding(W){E(W),p()},get sticky(){return T()},set sticky(W){T(W),p()},get hideWhenDetached(){return O()},set hideWhenDetached(W){O(W),p()},get updatePositionStrategy(){return A()},set updatePositionStrategy(W){A(W),p()},get strategy(){return y()},set strategy(W){y(W),p()},get dir(){return x()},set dir(W){x(W),p()},get preventScroll(){return k()},set preventScroll(W){k(W),p()},get wrapperId(){return R()},set wrapperId(W){R(W),p()},get style(){return M()},set style(W){M(W),p()},get onPlaced(){return K()},set onPlaced(W){K(W),p()},get onInteractOutside(){return j()},set onInteractOutside(W){j(W),p()},get onCloseAutoFocus(){return $()},set onCloseAutoFocus(W){$(W),p()},get onOpenAutoFocus(){return z()},set onOpenAutoFocus(W){z(W),p()},get onFocusOutside(){return Y()},set onFocusOutside(W){Y(W),p()},get interactOutsideBehavior(){return B()},set interactOutsideBehavior(W="close"){B(W),p()},get loop(){return J()},set loop(W){J(W),p()},get trapFocus(){return re()},set trapFocus(W=!0){re(W),p()},get isValidEvent(){return ee()},set isValidEvent(W=()=>!1){ee(W),p()},get customAnchor(){return ie()},set customAnchor(W=null){ie(W),p()},get isStatic(){return he()},set isStatic(W=!1){he(W),p()},get enabled(){return _()},set enabled(W){_(W),p()},$set:Ee,$on:(W,Me)=>Oe(e,W,Me)};return Kc(t,So({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 K()},get customAnchor(){return ie()},get isStatic(){return he()},get enabled(){return _()},get onInteractOutside(){return j()},get onCloseAutoFocus(){return $()},get onOpenAutoFocus(){return z()},get interactOutsideBehavior(){return B()},get loop(){return J()},get trapFocus(){return re()},get isValidEvent(){return ee()},get onFocusOutside(){return Y()}},()=>de,{forceMount:!0})),_e(be)}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,qr,Yr,jt,ut,fr,hr,Bn,zn,fe,zs,oc,ic,Xf,Zf,Vt,sc,Jf,Qf;class rv{constructor(e){C(this,fe);C(this,Ln);C(this,qr);C(this,Yr);C(this,jt,null);C(this,ut,null);C(this,fr,[]);C(this,hr,null);C(this,Bn,null);C(this,zn,null);I(this,Ln,e),I(this,qr,e.buffer??1);const n=e.transitIntentTimeout;I(this,Yr,typeof n=="number"&&n>0?n:null),ke([e.triggerNode,e.contentNode,e.enabled],([r,o,i])=>{if(!r||!o||!i){I(this,hr,null),F(this,fe,Vt).call(this);return}l(this,hr)&&l(this,hr)!==r&&F(this,fe,Vt).call(this),I(this,hr,r);const s=oo(r),a=g=>{F(this,fe,Zf).call(this,[g.clientX,g.clientY],r,o)},c=g=>{const b=g.relatedTarget;if(It(b)&&o.contains(b))return;const v=l(this,Ln).ignoredTargets?.()??[];It(b)&&v.some(m=>m===b||m.contains(b))||(I(this,fr,It(b)&&v.length>0?v.filter(m=>b.contains(m)):[]),I(this,jt,[g.clientX,g.clientY]),I(this,ut,"content"),F(this,fe,oc).call(this))},u=()=>{F(this,fe,Vt).call(this)},d=()=>{F(this,fe,Vt).call(this)},f=g=>{const b=g.relatedTarget;It(b)&&r.contains(b)||(I(this,jt,[g.clientX,g.clientY]),I(this,ut,"trigger"),F(this,fe,oc).call(this))};return[Ie(s,"pointermove",a),Ie(r,"pointerleave",c),Ie(r,"pointerenter",u),Ie(o,"pointerenter",d),Ie(o,"pointerleave",f)].reduce((g,b)=>()=>{g(),b()},()=>{})})}}Ln=new WeakMap,qr=new WeakMap,Yr=new WeakMap,jt=new WeakMap,ut=new WeakMap,fr=new WeakMap,hr=new WeakMap,Bn=new WeakMap,zn=new WeakMap,fe=new WeakSet,zs=function(){l(this,Bn)!==null&&(cancelAnimationFrame(l(this,Bn)),I(this,Bn,null))},oc=function(){F(this,fe,zs).call(this),I(this,Bn,requestAnimationFrame(()=>{I(this,Bn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,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,Yr)!==null&&(F(this,fe,ic).call(this),I(this,zn,window.setTimeout(()=>{I(this,zn,null),!(!l(this,jt)||!l(this,ut))&&(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},l(this,Yr))))},Zf=function(e,n,r){if(!l(this,jt)||!l(this,ut))return;F(this,fe,zs).call(this),F(this,fe,Xf).call(this);const o=n.getBoundingClientRect(),i=r.getBoundingClientRect();if(l(this,ut)==="content"&&ml(e,i)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="trigger"&&ml(e,o)){F(this,fe,Vt).call(this);return}if(l(this,ut)==="content"&&l(this,fr).length>0)for(const d of l(this,fr)){const f=d.getBoundingClientRect();if(ml(e,f))return;const g=sd(o,f),b=F(this,fe,sc).call(this,o,f,g);if(b&&gl(e,b))return}const s=sd(o,i),a=F(this,fe,sc).call(this,o,i,s);if(a&&gl(e,a))return;const c=l(this,ut)==="content"?i:o,u=F(this,fe,Jf).call(this,l(this,jt),c,s,l(this,ut));gl(e,u)||(F(this,fe,Vt).call(this),l(this,Ln).onPointerExit())},Vt=function(){I(this,jt,null),I(this,ut,null),I(this,fr,[]),F(this,fe,zs).call(this),F(this,fe,ic).call(this)},sc=function(e,n,r){const o=l(this,qr);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,qr)*4,[s,a]=e;switch(o==="trigger"?F(this,fe,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 Ui,Hi,Vn,Ki,lc;class ac{constructor(e,n){C(this,Ki);C(this,Ui);C(this,Hi);C(this,Vn,null);I(this,Hi,e),I(this,Ui,n),this.stop=this.stop.bind(this),this.start=this.start.bind(this),wn(this.stop)}stop(){F(this,Ki,lc).call(this)}start(...e){F(this,Ki,lc).call(this),I(this,Vn,window.setTimeout(()=>{I(this,Vn,null),l(this,Hi).call(this,...e)},l(this,Ui)))}}Ui=new WeakMap,Hi=new WeakMap,Vn=new WeakMap,Ki=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 xt("Tooltip.Provider"),jc=new xt("Tooltip.Root");var ji,Gi,qi,Yi,Xi;class th{constructor(){C(this,ji,oe(Hn(new Map)));C(this,Gi,oe(null));C(this,qi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null}));C(this,Yi,U(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null}));P(this,"register",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Xi).call(this)});P(this,"update",e=>{const n=new Map(this.triggers);n.set(e.id,e),this.triggers=n,l(this,Xi).call(this)});P(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)});P(this,"setActiveTrigger",e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e});P(this,"get",e=>this.triggers.get(e));P(this,"has",e=>this.triggers.has(e));P(this,"getFirstTriggerId",()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]});C(this,Xi,()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))})}get triggers(){return w(l(this,ji))}set triggers(e){N(l(this,ji),e,!0)}get activeTriggerId(){return w(l(this,Gi))}set activeTriggerId(e){N(l(this,Gi),e,!0)}get activeTriggerNode(){return w(l(this,qi))}set activeTriggerNode(e){N(l(this,qi),e)}get activePayload(){return w(l(this,Yi))}set activePayload(e){N(l(this,Yi),e)}}ji=new WeakMap,Gi=new WeakMap,qi=new WeakMap,Yi=new WeakMap,Xi=new WeakMap;var Zi;class ov{constructor(){P(this,"registry",new th);C(this,Zi,oe(null))}get root(){return w(l(this,Zi))}set root(e){N(l(this,Zi),e,!0)}}Zi=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 Ji,Xr,Et,Ra,Na;const mu=class mu{constructor(e){P(this,"opts");C(this,Ji,oe(!0));P(this,"isPointerInTransit",Ct(!1));C(this,Xr);C(this,Et,oe(null));C(this,Ra,()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else l(this,Xr).start()});C(this,Na,()=>{l(this,Xr).stop()});P(this,"onOpen",e=>{w(l(this,Et))&&w(l(this,Et))!==e&&w(l(this,Et)).handleClose(),l(this,Na).call(this),this.isOpenDelayed=!1,N(l(this,Et),e,!0)});P(this,"onClose",e=>{w(l(this,Et))===e&&(N(l(this,Et),null),l(this,Ra).call(this))});P(this,"isTooltipOpen",e=>w(l(this,Et))===e);this.opts=e,I(this,Xr,new ac(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current)),Oc(()=>Ie(window,"scroll",n=>{const r=w(l(this,Et));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,Ji))}set isOpenDelayed(e){N(l(this,Ji),e,!0)}};Ji=new WeakMap,Xr=new WeakMap,Et=new WeakMap,Ra=new WeakMap,Na=new WeakMap;let cc=mu;var Qi,$i,es,ts,ns,rs,Wn,qt,os,Da;const bu=class bu{constructor(e,n){P(this,"opts");P(this,"provider");C(this,Qi,U(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current));C(this,$i,U(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current));C(this,es,U(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current));C(this,ts,U(()=>this.opts.disabled.current??this.provider.opts.disabled.current));C(this,ns,U(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current));P(this,"registry");P(this,"tether");C(this,rs,oe(null));P(this,"contentPresence");C(this,Wn,oe(!1));C(this,qt);C(this,os,U(()=>this.opts.open.current?w(l(this,Wn))?"delayed-open":"instant-open":"closed"));P(this,"handleOpen",()=>{l(this,qt).stop(),N(l(this,Wn),!1),this.ensureActiveTrigger(),this.opts.open.current=!0});P(this,"handleClose",()=>{l(this,qt).stop(),this.opts.open.current=!1});C(this,Da,()=>{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()});P(this,"onTriggerEnter",e=>{this.setActiveTrigger(e),l(this,Da).call(this)});P(this,"onTriggerLeave",()=>{this.disableHoverableContent?this.handleClose():l(this,qt).stop()});P(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)});P(this,"setActiveTrigger",e=>{this.registry.setActiveTrigger(e)});P(this,"registerTrigger",e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"updateTrigger",e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()});P(this,"unregisterTrigger",e=>{const n=this.registry.activeTriggerId===e;this.registry.unregister(e),n&&this.opts.open.current&&this.handleClose()});P(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)}}),ke(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&I(this,qt,new ac(()=>{N(l(this,Wn),!0),this.opts.open.current=!0},this.delayDuration))}),ke(()=>this.opts.open.current,r=>{r?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),ke(()=>this.opts.triggerId.current,r=>{r!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(r)}),ke(()=>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,Qi))}set delayDuration(e){N(l(this,Qi),e)}get disableHoverableContent(){return w(l(this,$i))}set disableHoverableContent(e){N(l(this,$i),e)}get disableCloseOnTriggerClick(){return w(l(this,es))}set disableCloseOnTriggerClick(e){N(l(this,es),e)}get disabled(){return w(l(this,ts))}set disabled(e){N(l(this,ts),e)}get ignoreNonKeyboardFocus(){return w(l(this,ns))}set ignoreNonKeyboardFocus(e){N(l(this,ns),e)}get contentNode(){return w(l(this,rs))}set contentNode(e){N(l(this,rs),e,!0)}get stateAttr(){return w(l(this,os))}set stateAttr(e){N(l(this,os),e)}get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}};Qi=new WeakMap,$i=new WeakMap,es=new WeakMap,ts=new WeakMap,ns=new WeakMap,rs=new WeakMap,Wn=new WeakMap,qt=new WeakMap,os=new WeakMap,Da=new WeakMap;let uc=bu;var pr,Ot,gr,Zr,Yt,dt,yt,Un,Jr,Fa,La,Ba,za,Va,Wa,Ua,Ha,is;const Ka=class Ka{constructor(e,n,r){P(this,"opts");P(this,"root");P(this,"tether");P(this,"attachment");C(this,pr,Ct(!1));C(this,Ot,oe(!1));P(this,"domContext");C(this,gr,null);C(this,Zr,!1);C(this,Yt,null);C(this,dt,()=>this.tether?.root??this.root);C(this,yt,()=>{const e=l(this,dt).call(this);return this.opts.disabled.current||!!e?.disabled});C(this,Un,e=>{if(!l(this,Zr))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,dt).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,dt).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,Jr,()=>{l(this,gr)!==null&&(clearTimeout(l(this,gr)),I(this,gr,null))});P(this,"handlePointerUp",()=>{l(this,pr).current=!1});C(this,Fa,()=>{l(this,yt).call(this)||(l(this,pr).current=!1)});C(this,La,()=>{l(this,yt).call(this)||(l(this,pr).current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0}))});C(this,Ba,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}if(e.pointerType!=="touch"){if(n.provider.isPointerInTransit.current){l(this,Jr).call(this),I(this,gr,window.setTimeout(()=>{n.provider.isPointerInTransit.current&&(n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0))},250));return}n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)}}});C(this,za,e=>{const n=l(this,dt).call(this);if(n){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}e.pointerType!=="touch"&&(w(l(this,Ot))||(l(this,Jr).call(this),n.provider.isPointerInTransit.current=!1,n.onTriggerEnter(this.opts.id.current),N(l(this,Ot),!0)))}});C(this,Va,e=>{const n=l(this,dt).call(this);if(!n||l(this,yt).call(this))return;if(l(this,Jr).call(this),!n.isActiveTrigger(this.opts.id.current)){N(l(this,Ot),!1);return}const r=e.relatedTarget;if(It(r)){for(const o of n.registry.triggers.values())if(o.node===r){if(n.provider.opts.skipDelayDuration.current>0){N(l(this,Ot),!1);return}n.handleClose(),N(l(this,Ot),!1);return}}n.onTriggerLeave(),N(l(this,Ot),!1)});C(this,Wa,e=>{const n=l(this,dt).call(this);if(n&&!l(this,pr).current){if(l(this,yt).call(this)){n.opts.open.current&&n.handleClose();return}n.ignoreNonKeyboardFocus&&!Xg(e.currentTarget)||(n.setActiveTrigger(this.opts.id.current),n.handleOpen())}});C(this,Ua,()=>{const e=l(this,dt).call(this);!e||l(this,yt).call(this)||e.handleClose()});C(this,Ha,()=>{const e=l(this,dt).call(this);!e||e.disableCloseOnTriggerClick||l(this,yt).call(this)||e.handleClose()});C(this,is,U(()=>{const e=l(this,dt).call(this),n=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),r=l(this,yt).call(this);return{id:this.opts.id.current,"aria-describedby":n?e?.contentNode?.id:void 0,"data-state":n?e?.stateAttr:"closed","data-disabled":Xa(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,Fa),onpointerdown:l(this,La),onpointerenter:l(this,Ba),onpointermove:l(this,za),onpointerleave:l(this,Va),onfocus:l(this,Wa),onblur:l(this,Ua),onclick:l(this,Ha),...this.attachment}}));this.opts=e,this.root=n,this.tether=r,this.domContext=new Ya(e.ref),this.attachment=ft(this.opts.ref,o=>l(this,Un).call(this,o)),ke(()=>this.opts.id.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.payload.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),ke(()=>this.opts.disabled.current,()=>{l(this,Un).call(this,this.opts.ref.current)}),Oc(()=>(I(this,Zr,!0),l(this,Un).call(this,this.opts.ref.current),()=>{const o=l(this,dt).call(this),i=l(this,Yt);i&&(this.tether?this.tether.registry.unregister(i):o?.unregisterTrigger(i)),I(this,Yt,null),I(this,Zr,!1)}))}static create(e){return e.tether.current?new Ka(e,null,e.tether.current.state):new Ka(e,jc.get(),null)}get props(){return w(l(this,is))}set props(e){N(l(this,is),e)}};pr=new WeakMap,Ot=new WeakMap,gr=new WeakMap,Zr=new WeakMap,Yt=new WeakMap,dt=new WeakMap,yt=new WeakMap,Un=new WeakMap,Jr=new WeakMap,Fa=new WeakMap,La=new WeakMap,Ba=new WeakMap,za=new WeakMap,Va=new WeakMap,Wa=new WeakMap,Ua=new WeakMap,Ha=new WeakMap,is=new WeakMap;let dc=Ka;var ss,as;const vu=class vu{constructor(e,n){P(this,"opts");P(this,"root");P(this,"attachment");P(this,"onInteractOutside",e=>{if(It(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onEscapeKeydown",e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()});P(this,"onOpenAutoFocus",e=>{e.preventDefault()});P(this,"onCloseAutoFocus",e=>{e.preventDefault()});C(this,ss,U(()=>({open:this.root.opts.open.current})));C(this,as,U(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":Xa(this.root.disabled),...zd(this.root.contentPresence.transitionStatus),style:{outline:"none"},[$f.content]:"",...this.attachment})));P(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus});this.opts=e,this.root=n,this.attachment=ft(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,ss))}set snippetProps(e){N(l(this,ss),e)}get props(){return w(l(this,as))}set props(e){N(l(this,as),e)}};ss=new WeakMap,as=new WeakMap;let fc=vu;function nh(t,e){if(new.target)return Te({component:nh,...t});Pe(e,!0);let n=h(e,"open",15,!1),r=h(e,"triggerId",15,null),o=h(e,"onOpenChange",7,me),i=h(e,"onOpenChangeComplete",7,me),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=me){o(m),p()},get onOpenChangeComplete(){return i()},set onOpenChangeComplete(m=me){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:Ee,$on:(m,E)=>Oe(e,m,E)};return Hf(t,{tooltip:!0,children:(m,E)=>{var T=ue(),O=se(T);ye(O,()=>g()??xe,()=>({open:b.opts.open.current,triggerId:b.activeTriggerId,payload:b.activePayload})),Z(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=Ke("<div><div><!></div></div>");function rh(t,e){const n=kc();if(new.target)return Te({component:rh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>Gs(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,me),O=h(e,"onEscapeKeydown",7,me),A=h(e,"forceMount",7,!1),y=h(e,"style",7),x=Cr(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 K={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=Gs(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=me){T(B),p()},get onEscapeKeydown(){return O()},set onEscapeKeydown(B=me){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:Ee,$on:(B,J)=>Oe(e,B,J)},j=ue(),$=se(j);{var z=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:od("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");Yf(B,So(()=>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:J,$$slots:{popper:!0}}))}},Y=B=>{{const J=(ee,ie)=>{let he=()=>(ie?.()).props,_=()=>(ie?.()).wrapperProps;const de=U(()=>Zt(_(),{style:{pointerEvents:k.root.disableHoverableContent?"none":void 0}})),be=U(()=>Zt(he(),{style:od("tooltip")},{style:y()}));var W=ue(),Me=se(W);{var pe=we=>{var S=ue(),ae=se(S);{let H=U(()=>({props:w(be),wrapperProps:w(de),...k.snippetProps}));ye(ae,o,()=>w(H))}Z(we,S)},ve=we=>{var S=ad();Jt(S,()=>({...w(de)}));var ae=He(S);Jt(ae,()=>({...w(be)}));var H=He(ae);ye(H,()=>r()??xe),Fe(ae),Fe(S),Z(we,S)};Ne(Me,we=>{o()?we(pe):we(ve,-1)})}Z(ee,W)};let re=U(()=>k.root.disableHoverableContent?"none":"auto");qf(B,So(()=>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:J,$$slots:{popper:!0}}))}};Ne($,B=>{A()?B(z):A()||B(Y,1)})}return Z(t,j),_e(K)}var lv=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),cv=Ke("<button><!></button>");function oh(t,e){const n=kc();if(new.target)return Te({component:oh,...t});Pe(e,!0);let r=h(e,"children",7),o=h(e,"child",7),i=h(e,"id",23,()=>Gs(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=Cr(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=Gs(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:Ee,$on:(y,x)=>Oe(e,y,x)},E=ue(),T=se(E);{var O=y=>{var x=ue(),k=se(x);ye(k,o,()=>({props:w(v)})),Z(y,x)},A=y=>{var x=cv();Jt(x,()=>({...w(v)}));var k=He(x);ye(k,()=>r()??xe),Fe(x),Z(y,x)};Ne(T,y=>{o()?y(O):y(A,-1)})}return Z(t,E),_e(m)}function ih(t,e){if(new.target)return Te({component:ih,...t});Pe(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:Ee,$on:(g,b)=>Oe(e,g,b)},d=ue(),f=se(d);return ye(f,()=>n()??xe),Z(t,d),_e(u)}var uv=Ke("<span><!></span>");function sh(t,e){if(new.target)return Te({component:sh,...t});Pe(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":K,"data-disabled":j,"data-delay-duration":$,"data-tooltip-trigger":z,...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:Ee,$on:(y,x)=>Oe(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=He(O);return ye(A,()=>r()??xe),Fe(O),Td(O,y=>N(s,y),()=>w(s)),Z(t,O),_e(T)}var dv=Ke("<div></div>"),fv=Ke("<div><div><!> <!></div></div>"),hv=Ke("<!> <!>",1);function ah(t,e){const n=kc();if(new.target)return Te({component:ah,...t});Pe(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 K=sv(),j={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"},$={sm:"type-caption px-2 py-1",default:"type-caption px-2 py-1",lg:"type-title px-4 py-2"},z=U(()=>Kn("tooltip-motion overlay-surface z-(--layer-tooltip) w-fit max-w-xs whitespace-pre-wrap text-balance",j[A()],$[y()],E()));function Y(_){g(_),b()?.(_)}function B(_){d()||_ instanceof KeyboardEvent&&_.key!=="Enter"&&_.key!==" "||K.close()}Le(()=>{f()&&g()&&Y(!1)});let J;Le(()=>{const _=f(),de=J===!0&&!_;J=_,de&&ko(re)});function re(){if(!r()||g())return;const _=document.activeElement,de=w(M);!de?.id||!(_ instanceof HTMLElement)||!de.contains(_)||_.matches(":focus-visible")&&K.open(de.id)}var ee={get content(){return r()},set content(_=""){r(_),p()},get side(){return o()},set side(_="top"){o(_),p()},get align(){return i()},set align(_="center"){i(_),p()},get sideOffset(){return s()},set sideOffset(_=4){s(_),p()},get alignOffset(){return a()},set alignOffset(_=0){a(_),p()},get delayDuration(){return c()},set delayDuration(_=0){c(_),p()},get disableHoverableContent(){return u()},set disableHoverableContent(_=!0){u(_),p()},get disableCloseOnTriggerClick(){return d()},set disableCloseOnTriggerClick(_=!1){d(_),p()},get disabled(){return f()},set disabled(_=!1){f(_),p()},get open(){return g()},set open(_=!1){g(_),p()},get onOpenChange(){return b()},set onOpenChange(_){b(_),p()},get portalTarget(){return v()},set portalTarget(_){v(_),p()},get class(){return m()},set class(_=""){m(_),p()},get contentClass(){return E()},set contentClass(_=""){E(_),p()},get arrowClass(){return T()},set arrowClass(_=""){T(_),p()},get showArrow(){return O()},set showArrow(_=!1){O(_),p()},get variant(){return A()},set variant(_="default"){A(_),p()},get size(){return y()},set size(_="default"){y(_),p()},get children(){return x()},set children(_){x(_),p()},get trigger(){return k()},set trigger(_){k(_),p()},get onclick(){return R()},set onclick(_){R(_),p()},$set:Ee,$on:(_,de)=>Oe(e,_,de)},ie=ue(),he=se(ie);return lo(he,()=>ih,(_,de)=>{de(_,{get delayDuration(){return c()},children:(be,W)=>{var Me=ue(),pe=se(Me);lo(pe,()=>nh,(ve,we)=>{we(ve,{onOpenChange:Y,get delayDuration(){return c()},get disableHoverableContent(){return u()},get disableCloseOnTriggerClick(){return d()},get tether(){return K},get open(){return g()},set open(S){g(S)},children:(S,ae)=>{var H=hv(),Re=se(H);{const Ge=(ze,pt)=>{let ge=()=>(pt?.()).props;sh(ze,{get triggerProps(){return ge()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{var Lt=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>k()??xe),Z(ot,St)},xn=ot=>{var St=ue(),Xe=se(St);ye(Xe,()=>x()??xe),Z(ot,St)};Ne(Xn,ot=>{k()?ot(Lt):x()&&ot(xn,1)})}Z(Ye,Ft)},$$slots:{default:!0}})};let qe=U(()=>Kn("inline-flex",m()));lo(Re,()=>oh,(ze,pt)=>{pt(ze,{get class(){return w(qe)},get disabled(){return f()},get onclick(){return R()},onpointerdown:B,onkeydown:B,"data-tooltip-trigger":!0,get ref(){return w(M)},set ref(ge){N(M,ge,!0)},child:Ge,$$slots:{child:!0}})})}var rt=mn(Re,2);{var ht=Ge=>{var qe=ue(),ze=se(qe);lo(ze,()=>Xd,(pt,ge)=>{ge(pt,{get to(){return v()},children:(Ye,Dt)=>{var Ft=ue(),Xn=se(Ft);{const Lt=(xn,ot)=>{let St=()=>(ot?.()).props,Xe=()=>(ot?.()).wrapperProps;var it=fv();Jt(it,()=>({...Xe()}));var nn=He(it);Jt(nn,()=>({...St(),id:n}));var il=He(nn);{var bs=Bt=>{var Sn=Ad();br(()=>_l(Sn,r())),Z(Bt,Sn)},sl=Bt=>{var Sn=ue(),ll=se(Sn);ye(ll,()=>r()??xe),Z(Bt,Sn)};Ne(il,Bt=>{typeof r()=="string"?Bt(bs):r()&&typeof r()=="function"&&Bt(sl,1)})}var al=mn(il,2);{var ep=Bt=>{var Sn=dv();br(ll=>vo(Sn,1,ll),[()=>Hs(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()))]),Z(Bt,Sn)};Ne(al,Bt=>{O()&&Bt(ep)})}Fe(nn),Fe(it),Z(xn,it)};lo(Xn,()=>rh,(xn,ot)=>{ot(xn,{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(z)},"data-tooltip-content":!0,"data-overlay-surface":!0,onFocusOutside:()=>{},child:Lt,$$slots:{child:!0}})})}Z(Ye,Ft)},$$slots:{default:!0}})}),Z(Ge,qe)};Ne(rt,Ge=>{r()&&!f()&&Ge(ht)})}Z(S,H)},$$slots:{default:!0}})}),Z(be,Me)},$$slots:{default:!0}})}),Z(t,ie),_e(ee)}const nr=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(nr?"":"+")}function ld(t){const e=t.toLowerCase();return e==="cmd"||e==="meta"||e==="mod"?nr?"⌘":"Ctrl":e==="ctrl"||e==="control"?nr?"⌃":"Ctrl":e==="alt"||e==="option"?nr?"⌥":"Alt":e==="shift"?nr?"⇧":"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 Ve(t,e){return{key:Ed[t],get label(){return e()}}}const De={NEW_TAB:Ve("navigation.new-tab",()=>V.ui_shortcuts_newTab_label()),CLOSE_TAB:Ve("navigation.close-tab",()=>V.workspace_shortcuts_closePanelTab_description()),CLOSE_WORKSPACE_TAB:Ve("navigation.close-space-tab",()=>V.workspace_shortcuts_closeSpaceTab_description()),GO_BACK:{key:"mod+←",get label(){return V.ui_shortcuts_goBack_label()}},GO_FORWARD:{key:"mod+→",get label(){return V.ui_shortcuts_goForward_label()}},MOVE_SPACE_TAB_LEFT:Ve("navigation.move-space-tab-left",()=>V.ui_shortcuts_moveSpaceTabLeft_label()),MOVE_SPACE_TAB_RIGHT:Ve("navigation.move-space-tab-right",()=>V.ui_shortcuts_moveSpaceTabRight_label()),NEW_AGENT:Ve("workspace.new-agent",()=>V.ui_shortcuts_newAgent_label()),NEW_NOTE:Ve("workspace.new-note",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_note_label()})),NEW_TERMINAL:Ve("workspace.new-terminal",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_terminal_label()})),NEW_BROWSER:Ve("workspace.new-browser",()=>V.layout_panelEmptyState_newItem_tooltip({label:V.layout_panelEmptyState_browser_label()})),SEND:Ve("chat.send",()=>V.ui_shortcuts_sendMessage_label()),TOGGLE_TASK_LIST:Ve("editor.toggle-task-list",()=>V.ui_shortcuts_toggleTaskList_label()),CONFIRM:{key:"enter",get label(){return V.ui_shortcuts_confirm_label()}},TOGGLE_SIDEBAR:Ve("panel.toggle-sidebar",()=>V.ui_shortcuts_toggleSidebar_label()),PREVIOUS_PANE:Ve("panel.previous-pane",()=>V.ui_shortcuts_prevTab_label()),NEXT_PANE:Ve("panel.next-pane",()=>V.ui_shortcuts_nextTab_label()),FOCUS_PREVIOUS_COLUMN:Ve("panel.focus-previous-column",()=>V.ui_shortcuts_prevPanel_label()),FOCUS_NEXT_COLUMN:Ve("panel.focus-next-column",()=>V.ui_shortcuts_nextPanel_label()),MOVE_PANE_PREVIOUS_COLUMN:Ve("panel.move-pane-previous-column",()=>V.ui_shortcuts_movePanePreviousColumn_label()),MOVE_PANE_NEXT_COLUMN:Ve("panel.move-pane-next-column",()=>V.ui_shortcuts_movePaneNextColumn_label()),CREATE_COLUMN_RIGHT:Ve("panel.create-column-right",()=>V.ui_shortcuts_splitPanelHorizontal_label())};function Sx(t,e=nr){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 nr}function te(t,e,n){return{id:t,key:Ed[t],get label(){return e()},...n&&{contexts:n}}}const lh={global:{get title(){return V.ui_shortcuts_globalCategory_title()},shortcuts:[te("global.command-palette",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.settings",()=>V.ui_shortcuts_settings_label(),["global"]),te("global.keyboard-shortcuts",()=>V.ui_shortcuts_keyboardShortcuts_label(),["global"]),te("global.command-palette-alt",()=>V.ui_shortcuts_commandPalette_label(),["global"]),te("global.toggle-spaces",()=>V.home_navigation_description(),["global"]),te("global.new-space",()=>V.workspace_page_newSpace_title(),["global"]),te("global.search",()=>V.ui_shortcuts_search_label(),["global"]),te("global.next-space",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space",()=>V.ui_shortcuts_prevSpace_label(),["global"]),te("global.next-space-alt",()=>V.ui_shortcuts_nextSpace_label(),["global"]),te("global.previous-space-alt",()=>V.ui_shortcuts_prevSpace_label(),["global"])]},navigation:{get title(){return V.ui_shortcuts_navigationCategory_title()},shortcuts:[te("navigation.go-to-tab",()=>V.ui_shortcuts_goToTab_label(),["global"]),te("navigation.new-tab",()=>De.NEW_TAB.label,["global"]),te("navigation.close-tab",()=>De.CLOSE_TAB.label,["global"]),te("navigation.close-space-tab",()=>De.CLOSE_WORKSPACE_TAB.label,["global"]),te("navigation.reopen-tab",()=>V.ui_shortcuts_reopenTab_label(),["global"]),te("navigation.move-space-tab-left",()=>De.MOVE_SPACE_TAB_LEFT.label,["global"]),te("navigation.move-space-tab-right",()=>De.MOVE_SPACE_TAB_RIGHT.label,["global"]),te("workspace.new-agent",()=>De.NEW_AGENT.label,["global"]),te("workspace.new-note",()=>De.NEW_NOTE.label,["global"]),te("workspace.new-terminal",()=>De.NEW_TERMINAL.label,["global"]),te("workspace.new-browser",()=>De.NEW_BROWSER.label,["global"]),te("workspace.set-aside",()=>V.home_setAside_shortcut_label())]},chat:{get title(){return V.ui_shortcuts_chatCategory_title()},shortcuts:[te("chat.send",()=>De.SEND.label,["chat"]),te("chat.force-send",()=>V.ui_shortcuts_forceSend_label(),["chat"]),te("chat.new-line",()=>V.ui_shortcuts_newLine_label(),["chat"]),te("chat.focus-input",()=>V.ui_shortcuts_focusInput_label(),["chat"]),te("chat.mention-context",()=>V.ui_shortcuts_mentionContext_label(),["chat"])]},editor:{get title(){return V.ui_shortcuts_editorCategory_title()},shortcuts:[te("editor.go-to-line",()=>V.ui_shortcuts_goToLine_label(),["editor"]),te("editor.save",()=>V.ui_shortcuts_save_label(),["editor"]),te("editor.undo",()=>V.ui_shortcuts_undo_label(),["editor"]),te("editor.redo",()=>V.ui_shortcuts_redo_label(),["editor"]),te("editor.toggle-task-list",()=>De.TOGGLE_TASK_LIST.label,["editor"]),te("editor.toggle-word-wrap",()=>V.ui_shortcuts_toggleWordWrap_label(),["editor"]),te("editor.copy",()=>V.ui_shortcuts_copy_label(),["editor"]),te("editor.select-all",()=>V.ui_shortcuts_selectAll_label(),["editor"])]},panel:{get title(){return V.ui_shortcuts_panelCategory_title()},shortcuts:[te("panel.toggle-sidebar",()=>De.TOGGLE_SIDEBAR.label,["panel"]),te("panel.create-column-right",()=>De.CREATE_COLUMN_RIGHT.label,["global"]),te("panel.focus-next-column",()=>De.FOCUS_NEXT_COLUMN.label,["global"]),te("panel.maximize",()=>V.ui_shortcuts_maximizePanel_label(),["global"]),te("panel.focus-previous-column",()=>De.FOCUS_PREVIOUS_COLUMN.label,["global"]),te("panel.next-pane",()=>De.NEXT_PANE.label,["global"]),te("panel.previous-pane",()=>De.PREVIOUS_PANE.label,["global"]),te("panel.move-pane-next-column",()=>De.MOVE_PANE_NEXT_COLUMN.label,["global"]),te("panel.move-pane-previous-column",()=>De.MOVE_PANE_PREVIOUS_COLUMN.label,["global"]),te("panel.copy-browser-url",()=>V.ui_shortcuts_copyBrowserUrl_label(),["panel"])]},leader:{get title(){return V.ui_shortcuts_leaderCategory_title()},shortcuts:[te("leader.navigate-panels",()=>V.ui_shortcuts_navigatePanels_label(),["panel"]),te("leader.resize-panels",()=>V.ui_shortcuts_resizePanels_label(),["panel"]),te("leader.split-right",()=>V.ui_shortcuts_splitRight_label(),["panel"]),te("leader.toggle-zoom",()=>V.ui_shortcuts_toggleZoom_label(),["panel"]),te("leader.close-panel",()=>V.ui_shortcuts_closePanel_label(),["panel"]),te("leader.next-previous-panel",()=>V.ui_shortcuts_nextPrevPanel_label(),["panel"]),te("leader.equalize-sizes",()=>V.ui_shortcuts_equalizeSizes_label(),["panel"]),te("leader.jump-to-panel",()=>V.ui_shortcuts_jumpToPanel_label(),["panel"]),te("leader.cycle-layout",()=>V.ui_shortcuts_cycleLayout_label(),["panel"])]}},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={}){return Object.fromEntries(Object.entries(lh).map(([e,n])=>[e,{title:n.title,shortcuts:n.shortcuts.map(r=>({...r,key:wp(r.id,t)}))}]))}var gv=Ke('<kbd data-slot="shortcut-chip" style="font-family: var(--font-ui);"><!></kbd>');function ch(t,e){if(new.target)return Te({component:ch,...t});Pe(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:Ee,$on:(a,c)=>Oe(e,a,c)},i=gv(),s=He(i);return ye(s,()=>r()??xe),Fe(i),br(a=>vo(i,1,a),[()=>Hs(Kn("type-caption shrink-0 font-normal leading-none text-shortcut-foreground",n()))]),Z(t,i),_e(o)}const bl=(t,e=xe,n=xe)=>{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();br(()=>_l(v,w(f))),Z(g,v)},$$slots:{default:!0}})}),Fe(u),Z(c,u)};Ne(s,c=>{n().length>0&&c(a)})}br(()=>_l(i,e())),Z(t,r)};var mv=Ke('<div class="flex items-center gap-1 text-muted-foreground"></div>'),bv=Ke('<span class="type-caption"> </span> <!>',1),vv=Ke('<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 Te({component:uh,...t});Pe(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:Ee,$on:(x,k)=>Oe(e,x,k)};{const x=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=ue(),J=se(B);ye(J,()=>b()??xe),Z(Y,B)},z=Y=>{x()?.(Y)};Ne(j,Y=>{b()?Y($):x()&&Y(z,1)})}Z(M,K)},k=M=>{var K=ue(),j=se(K);{var $=Y=>{var B=vv(),J=se(B),re=He(J);bl(re,n,()=>w(O)),Fe(J);var ee=mn(J,2),ie=He(ee);bl(ie,()=>o().label,()=>w(A)),Fe(ee),Z(Y,B)},z=Y=>{bl(Y,n,()=>w(O))};Ne(j,Y=>{o()?Y($):Y(z,-1)})}Z(M,K)};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:ne("github"),protocol:ne("https"),host:ne("github.com"),managedHelperEnabled:Ae(),setting:ne("sourceControl.github.exposeGitCredentialToChildren")}),Tx=D({defaultProviderId:L().nullable(),defaultModelId:L().nullable(),enabledProviderIds:$e(L().min(1)).optional(),repositoryConnections:$e(D({provider:et(["github","gitlab"]),host:L(),configured:Ae()})),gitCredentialPolicy:yv}),wv=D({resource:et(["git","ai"]),reason:et(["missing","rejected","insufficient-scope"]),providerId:L().nullable(),host:L().nullable(),recovery:D({actor:ne("host-owner"),action:et(["check-git-authorization","check-ai-authorization"]),setting:ne("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"?V.hostExecution_missingAuthorization_description({resource:i}):r==="insufficient-scope"?V.hostExecution_insufficientScope_description({resource:i}):V.hostExecution_rejectedAuthorization_description({resource:i});return o.setting?`${s} ${V.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(V.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:ne(!0),status:et(["merged","conflict","blocked"]),commitRange:L().optional(),canonicalHead:L().optional(),conflictingPaths:$e(L()).optional(),reason:L().optional(),overlappingPaths:$e(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=Ks.parse(e),r=()=>{if((n.target==="remote"||Ao(n.target)||n.exclusive===!0)&&!this.remoteEnabled())throw new Error(V.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(V.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:ne(!0)}).parse(await this.request("hub.discard",n))}}function Ue(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 Ue(e)}async function Tv(t,e){const n=Ue(await e()),r=Ue(Ue(n.server).capabilities);if(r.agentNodes===1||r.remoteMachines!==1||r.remoteInitialAgent!==1)return!1;const o=Ks.parse(t);if(o.exclusive===!0)throw new Error(V.agent_placement_unavailable());if(Ao(o.target)&&r.cloudMachines!==1)throw new Error(V.agent_placement_unavailable());if(o.target==="cloud"&&r.cloudMachineProviders!==1)throw new Error(V.agent_placement_unavailable());if(o.cloudMachineId!==void 0&&r.cloudMachineEntries!==1)throw new Error(V.agent_placement_unavailable());return!0}async function ph(t,e,n,r,o){const i=Ue(e);if(t==="agent.delegate"&&Array.isArray(i.tasks)){const v=[];for(const T of i.tasks){const O=typeof T=="string"?{taskNoteId:T}:Ue(T),A=Ue(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(Ks.parse(i.defaultAgentPlacement)),e;const a=hh(t);if(a==="initialAgent"&&!i[a])return e;const c=a?Ue(i[a]):i;if(c.isolation==="cow")throw new Error(V.agent_placement_retiredIsolation());if(c.placement!==void 0&&c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());if(a==="initialAgent"&&c.placement!=null&&Ue(c.placement).target!=="local"&&await Tv(c.placement,o)){if(!r())throw new Error(V.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=Ue(await n("workspace.get",{workspaceId:v}));m=Ue(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=Ue(await n("specialist.get",{id:T,...v?{workspaceId:v}:{},...A?{workspacePath:A}:{}}));if(!y.specialist)throw new Error(V.agent_placement_specialistUnavailable());u=Ue(y.specialist).runsOn}u==null&&typeof v=="string"&&(u=(await E()).defaultAgentPlacement)}if(!d.agentNodes){if(u!=null)throw new Error(V.agent_placement_unavailable());return e}const g=u==null?void 0:Ks.parse(u);if(!r()&&(g?.target==="remote"||Ao(g?.target)||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(f&&(d=await s.capabilities()),g)dh(g,d);else if(!d.agentNodes)throw new Error(V.agent_placement_unavailable());if(!r()&&(g?.target==="remote"||Ao(g?.target)||g?.exclusive===!0))throw new Error(V.agent_placement_labsRequired());if(!g)return e;if(c.isolation!==void 0)throw new Error(V.agent_placement_incompatibleIsolation());const b={...c,placement:g};return a?{...i,[a]:b}:b}function Ev(t,e,n){if(n)return;const r=Ue(e),o=hh(t),i=o?Ue(r[o]):r,s=Array.isArray(i.tasks)?i.tasks.map(a=>Ue(a).placement??i.placement):[i.placement];if(s.push(r.defaultAgentPlacement),s.some(a=>Ue(a).target==="remote"||Ao(Ue(a).target)||Ue(a).exclusive===!0))throw new Error(V.agent_placement_labsRequired())}function Ov(t,e={}){const n=ja.BACKEND.PR_MONITOR;return async r=>{const o=t(),i=()=>new Ce({code:"PR_MONITOR_SESSION_RETIRED",message:"Monitor connection unavailable"});if(!o)throw i();const s=Or(e.reviewMonitoring)&&Or(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:yo().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:Ae(),result:yo().optional(),error:D({code:L(),message:L(),rpcCode:gn().optional(),data:yo().optional()}).optional()}).parse(O);if(!A.ok)throw A.error?new Ce(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:et(["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()}),Pv=D({remoteName:L(),fetchUrls:$e(L()),pushUrls:$e(L())}),Gc=D({operationId:L(),scope:Ga,contextRevision:ro,root:Qr,worktreeId:L(),source:cd,target:cd,localHeadSha:L().nullable(),transport:Pv.nullable()}),_v=bt("stage",[D({stage:ne("commit"),commitHash:L()}),D({stage:ne("push"),pushedSha:L()})]),hc=et(["commit","push","create-pr"]),Iv=et(["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:Ae().nullable(),sourceBranch:L().nullable(),targetBranch:L().nullable(),source:ud.nullable(),target:ud.nullable(),author:L().nullable(),mergeable:Ae().nullable(),mergeableState:L().nullable(),headSha:L().nullable(),createdAt:L().nullable(),updatedAt:L().nullable()}),Mv=bt("status",[D({status:ne("not-attempted")}),D({status:ne("created"),review:pc}),D({status:ne("reused"),review:pc}),D({status:ne("failed"),stage:hc,code:L().nullable(),message:L()}),D({status:ne("uncertain"),stage:hc,message:L()})]),Rv=bt("state",[D({state:ne("included"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("local-ahead"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("diverged"),localHeadSha:L(),remoteSourceSha:L()}),D({state:ne("remote-branch-missing"),localHeadSha:L().nullable()}),D({state:ne("unknown"),localHeadSha:L().nullable(),remoteSourceSha:L().nullable()})]),gh=D({requestId:L(),preparation:Gc,gitReceipts:$e(_v),outcome:Mv,publication:Rv});D({reviewPreparation:Gc.optional()}).passthrough();D({reviewExecution:gh.optional()}).passthrough();const gs=L().min(1).max(4096),mh=ro.shape.sequence,ms=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]),Nv=D({workspaceId:gs,action:hc,files:$e(L()).nullish(),options:D({stageUnstaged:Ae().optional(),pushAfterCommit:Ae().optional(),createPRAfterPush:Ae().optional()}).strict().optional(),review:D({root:ms,choice:bt("kind",[D({kind:ne("saved")}).strict(),D({kind:ne("explicitTarget"),target:Tc.strict()}).strict()]),targetBranch:L().nullish(),pushRemote:L().nullish(),companion:D({kind:ne("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:Ae(),warnings:$e(L()),errors:$e(L()),suggestedCommitMessage:L().optional(),suggestedPRTitle:L().optional(),suggestedPRBody:L().optional(),filesCount:gn().int().nonnegative(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative(),files:$e(D({path:L(),staged:Ae(),additions:gn().int().nonnegative(),deletions:gn().int().nonnegative()}).strict()),reviewPreparation:Gc};D({...bh,reviewOperation:D({operationId:gs,root:ms,retirementSequence:mh,expiresAfterMs:ne(3e5)}).strict()}).strict();const Fv=D({...bh,root:ms,expiresAfterMs:ne(3e5)}).strict(),vh={operationId:gs,root:ms,state:et(["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:et(["pending","settled"]),success:Ae(),steps:$e(D({id:L(),name:L(),status:et(["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:$e(gs).max(64),sequence:mh,allRetired:Ae(),terminal:Ae()}).strict();const zv=D({current:Ae(),uncertain:Ae(),execute:Bv.nullable(),reconciliation:Lv.nullable()}).strict(),Ex=D({attemptId:gs,root:ms,admission:L().nullable(),hostContext:L().nullable()}).strict(),nl=L().min(1).max(128).refine(t=>!/[\u0000-\u001f\u007f]/.test(t)),Co=ro.shape.sequence,qc=gn().int().positive().safe(),Vv=D({workspaceId:nl}).strict(),oa=D({repository:D({provider:ne("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:et(["merge-request","issue"]),number:qc}).strict(),Wv=D({readLifetimeId:nl,scope:Ga.strict(),revision:ro.strict(),expiresAfterMs:ne(3e5),retirementSequence:Co,instances:$e(D({provider:ne("gitlab"),instanceBaseUrl:L().max(2048).refine(Od),availability:ne("connected")}).strict()).max(64)}).strict(),Uv=et(["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:oa,prNumber:qc,details:pc.extend({resource:oa}).strict()}).strip(),jv=D({readLifetimeId:nl,scope:Ga.strict(),revision:ro.strict(),target:oa,outcome:bt("kind",[D({kind:ne("merge-request"),snapshot:Kv}).strict(),D({kind:ne("issue"),issue:Hv}).strict(),D({kind:ne("failure"),code:Uv,status:gn().int().min(100).max(599).nullable()}).strict()]),quota:D({resetAt:Co.nullable(),remaining:Co.nullable(),limit:Co.nullable()}).strict()}).strict();D({readLifetimeIds:$e(nl).max(64),sequence:Co,allRetired:Ae(),terminal:Ae()}).strict();const Gv=D({target:oa,refresh:Ae().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=Pd(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=ja.BACKEND.REPOSITORY_RESOURCE,n=()=>new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).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),xs=()=>({status:"unavailable",reason:"retired"});function Xv(t){const e=ja.BACKEND.REPOSITORY_CHECKOUT,n=()=>new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}),r=o=>{const i=D({ok:ne(!0),result:yo()}).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:Ae().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 xs();try{const M=Ap(R,r(await s.invoke(e.REQUEST,{id:a,kind:x,params:k})));return m()?M:xs()}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",_p.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 xs();const R=await y("repoConfig",k,Pp);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 xs();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 Oo=ro.shape.sequence,Po=L().min(1).max(4096),rl=bt("kind",[Qr.options[0].strict(),Qr.options[1].strict()]);D({workspaceId:Po,gitRootId:Po.nullish()}).strict();const Zv=bt("mode",[D({mode:ne("automatic")}).strict(),D({mode:ne("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=bt("kind",[D({kind:ne("save"),choice:Zv}).strict(),D({kind:ne("reset")}).strict()]),Vs=D({root:rl,rootIncarnation:Oo,selectionRevision:Oo,selection:bt("kind",[D({kind:ne("neverSaved")}).strict(),D({kind:ne("reset")}).strict(),D({kind:ne("saved"),value:Yp}).strict()])}).strict(),wh=D({scope:Ga.strict(),root:rl,snapshot:Vs,expiresAfterMs:ne(3e5)}).strict();wh.extend({selectionId:Po,retirementSequence:Oo}).strict();const Qv=D({result:bt("kind",[D({kind:ne("applied"),snapshot:Vs}).strict(),D({kind:ne("unchanged"),snapshot:Vs}).strict(),D({kind:ne("conflict"),snapshot:Vs}).strict(),D({kind:ne("missingRoot")}).strict(),D({kind:ne("failed"),code:et(["admission-retired","authority-unavailable","storage-failed","completion-unobserved"])}).strict()]),persistence:bt("kind",[D({kind:ne("notAttempted")}).strict(),D({kind:ne("noEffect")}).strict(),D({kind:ne("committed"),selectionRevision:Oo}).strict(),D({kind:ne("unknown")}).strict()])}).strict(),Ch=bt("status",[D({status:ne("notStarted")}).strict(),D({status:ne("pending")}).strict(),D({status:ne("settled"),receipt:Qv}).strict()]);D({selectionId:Po,root:rl,attempt:Ch}).strict();D({selectionIds:$e(Po).max(64),sequence:Oo,allRetired:Ae(),terminal:Ae()}).strict();const $v=D({current:Ae(),attempt:Ch.nullable(),uncertain:Ae()}).strict(),tt=ja.BACKEND;function ce(){return typeof window<"u"?window.electronAPI:void 0}function Xt(t){if(!t||!t.ok)throw new Ce(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(tt.STATUS,"onReconnected"),n=wl(tt.NOTIFICATION,"onNotification"),r=wl(tt.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 Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.READ_PRINCIPAL);if(ce()!==o)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge changed"});return Xt(i)},async observeNodeCapabilities(){const o=ce();if(!o)throw new Ce({code:"UNAVAILABLE",message:"Backend unavailable"});const i=await o.invoke(tt.NODE_CAPABILITIES);if(ce()!==o)throw new Ce({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 Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"});if(!i)throw s();const a=Object.freeze(Qr.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(tt.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(tt.REPOSITORY.RETIRED,m),!!c))try{await i.invoke(tt.REPOSITORY.RELEASE,{id:c,root:a})}catch{}};try{const T=Xt(await i.invoke(tt.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(tt.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 Ce({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)&&Or(t.reviewMonitoring)&&Or(a.reviewMonitoring)&&(c.reviewMonitoring=Math.min(t.reviewMonitoring,a.reviewMonitoring));const u=await a.invoke(tt.REQUEST,c);return Xt(u)},async subscribe(o){const i=ce();if(!i)throw new Ce({code:"UNAVAILABLE",message:"Backend bridge unavailable"});const s=await i.invoke(tt.SUBSCRIBE,yl(o));return Xt(s)},async unsubscribe(o,i){const s=ce();if(s)try{await s.invoke(tt.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=Or(t.reviewMonitoring)&&Or(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=rl.parse(t),r=()=>new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"});if(!e)throw r();const o=tt.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:et(["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 Ce({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 Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"});if(ce()!==t)throw o();const i=tt.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:et(["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 K=g.get(s);if(g.clear(),K&&v(K),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(K=>{R=K});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 je(){return Cl||(Cl=ny()),Cl}function ry(t){const e=je();return e.captureRepositoryResource?e.captureRepositoryResource(t):Promise.reject(new Ce({code:"REPOSITORY_RESOURCE_UNAVAILABLE",message:"REPOSITORY_RESOURCE_UNAVAILABLE"}))}function oy(t){const e=je();return e.captureRepositoryRoute?e.captureRepositoryRoute(t):Promise.reject(new Ce({code:"REPOSITORY_ROUTE_UNAVAILABLE",message:"Repository route unavailable"}))}function iy(t){const e=je();return e.captureRepositorySelection?e.captureRepositorySelection(t):Promise.reject(new Ce({code:"REPOSITORY_SELECTION_UNAVAILABLE",message:"REPOSITORY_SELECTION_UNAVAILABLE"}))}async function Sh(t,e,n){try{const r=je();if(Av(t,e)){const{store:o}=await ls(async()=>{const{store:d}=await import("./QSR6vsk4.js");return{store:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),i=()=>o.state.userPreferences?.labsRemoteAgentsEnabled===!0,s=o.state.daemonHealth?.connectionGeneration,a=()=>{if(r!==je()||s!==o.state.daemonHealth?.connectionGeneration)throw new Error(V.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(V.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 Ce){const o=Cv(r.data?.executionAuthorization);if(o)throw new Ce({code:r.code,rpcCode:r.rpcCode,data:r.data,message:o})}throw r}}async function sy(){const t=je();if(!t.readPrincipal)throw new Ce({code:"UNAVAILABLE",message:"Principal discovery unavailable"});const e=await t.readPrincipal();if(t!==je())throw new Ce({code:"UNAVAILABLE",message:"Backend transport changed"});return e}async function ay(){const t=je(),{store:e}=await ls(async()=>{const{store:o}=await import("./QSR6vsk4.js");return{store:o}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12]),import.meta.url),n=e.state.daemonHealth?.connectionGeneration;if(!t.observeNodeCapabilities)throw new Error(V.agent_placement_unavailable());const r=await t.observeNodeCapabilities();if(t!==je()||n!==e.state.daemonHealth?.connectionGeneration)throw new Error(V.agent_placement_backendChanged());return r}async function ly(t){return je().subscribe(t)}async function cy(t,e){return je().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 je().onNotification(t)}function kh(t){return je().onReconnected(t)}function fy(t){const e=je();return e.prepareNativeReview?e.prepareNativeReview(t):Promise.reject(new Ce({code:"NATIVE_REVIEW_UNAVAILABLE",message:"NATIVE_REVIEW_UNAVAILABLE"}))}function hy(t){const e=je();return e.captureRepositoryCheckout?e.captureRepositoryCheckout(t):Promise.reject(new Ce({code:"REPOSITORY_CHECKOUT_UNAVAILABLE",message:"REPOSITORY_CHECKOUT_UNAVAILABLE"}))}function py(t){const e=je();return e.capturePrMonitorSession?e.capturePrMonitorSession(t):Promise.reject(new Ce({code:"PR_MONITOR_SESSION_UNAVAILABLE",message:"Monitor transport unavailable"}))}function gy(){return je().prMonitorBackendId?.()}function my(t){const e=je();return e.onMonitorReconnected?e.onMonitorReconnected(t):e.onReconnected(t)}const Px=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 _x(){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 ls(async()=>{const{appClient:b}=await import("./Dritbi2C.js").then(v=>v.Z);return{appClient:b}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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=Pd(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 Ss=new Map;function xy(t){return`${t.owner}/${t.repo}#${t.number}/${t.kind}`}async function Sy(t,e,n){const r=e??(await ls(async()=>{const{appClient:i}=await import("./Dritbi2C.js").then(s=>s.Z);return{appClient:i}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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 ls(async()=>{const{appClient:c}=await import("./Dritbi2C.js").then(u=>u.Z);return{appClient:c}},__vite__mapDeps([13,14,9,3,1,2,4,5,6,7,8,10,15,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=Ss.get(s);return a||(a=Sy(n,o,r.workspaceId).finally(()=>{Ss.get(s)===a&&Ss.delete(s)}),Ss.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 Ir=null;const ia=Ey();let mr,sa;function Oy(t,e){const n=Ah(e);mr?.(),mr=void 0;const r=ia.next();if(!Th(t)){Ze.preview={status:"idle"},mr=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 Py(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 _y(t,e,n){Ir&&clearTimeout(Ir),ia.invalidate(),mr?.(),mr=void 0,sa?.(),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"]}),sa=()=>a.disconnect(),Ze.copied=!1,Ir=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(sa?.(),sa=void 0,mr?.(),mr=void 0,Ir&&(clearTimeout(Ir),Ir=null),Ze.copied){Ze.preview={status:"idle"},ia.invalidate();return}Ze.visible=!1,ia.invalidate(),Ze.preview={status:"idle"}}const Fx=Object.freeze(Object.defineProperty({__proto__:null,formatUrlForDisplay:Py,hideLinkTooltip:mc,showLinkTooltip:_y,state:Ze},Symbol.toStringTag,{value:"Module"})),Iy=Symbol("ui-size");function My(){return Pl(Iy)??"default"}var Ry=Array.isArray,ol=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:ol(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},Ws=(...t)=>{const e=ol(t);if(e)return Fy(e)?Dy(e):e},vc=t=>t===!1?"false":t===!0?"true":t===0?"0":t,wt=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]=Ws(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:{}},Ph=256,zy=128,wr=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},Ar=(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+"?"}},_h=(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=Ar(n,i[a]),n+=","}n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(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=Ar(n,i[a]),n+=","}Array.isArray(i.slots)&&(n+="slots="+i.slots.join(",")+","),n+="c=",n=Ar(n,i.class),n+="|cn=",n=Ar(n,i.className),n+=";"}return n},Mh=(t=Ph)=>{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 wr},set(r,o){e.size>=t&&(n=e,e=new Map),e.set(r,o)}}},Wy=(t=Ph)=>{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 wr},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!==wr)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 nt=Hy(),Ky=t=>{!wt(t.twMergeConfig)&&!Eh(t.twMergeConfig,nt.cachedTwMergeConfig)&&(nt.didTwMergeConfigChange=!0,nt.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:wt(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?Ws(n.base,t?.base):t?.base,f=n?.variants&&!wt(n.variants)?Yc(o,n.variants):o,g=n?.defaultVariants&&!wt(n.defaultVariants)?{...n.defaultVariants,...a}:a;Ky(c);const b=!n?.slots||wt(n.slots),v=u?b&&n?.base?Ws(t?.base,n.base):typeof t?.base=="string"||t?.base==null?t.base:Ws(t.base):void 0,m=u?{base:v,...r}:{},E=b?m:Ly({...n?.slots},wt(m)?{base:t?.base}:m),T=!n?.compoundVariants||wt(n.compoundVariants)?i:yc(n?.compoundVariants,i),O=!n?.compoundSlots||wt(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},ks=t=>t==null||t===!1,$y=(t,e)=>{if(!Array.isArray(t))return t===e||ks(t)&&ks(e);for(let n=0;n<t.length;n++){const r=t[n];if(r===e||ks(r)&&ks(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=wr;const i=Xc(e,r);return(s=>(o===wr&&(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=_h(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!==wr?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 K=f?Dh(r,R,M):void 0,j=K?rw(x,a,K):void 0,$=K?ow(k,K):void 0;return e(n,i[x],tw(x,T,r,R,M),j,$)}}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]]=K=>{if(K==null)return M;let j=!1;for(const $ in K)if(!($==="class"||$==="className")&&K[$]!==void 0){j=!0;break}return y(j?R(T,K):M,K)}}return x};return(T=>{if(o)throw o;if(m(),v>0)return v--,E(T);const O=_h(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!==wr)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}),aa="-",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(aa),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(aa):t.slice(e).join(aa),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(aa),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,Pw=41,bd=33,_w=(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===Pw&&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 _w(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 K=!!M,j;if(K){const J=R.substring(0,M);j=r(J);const re=j&&n[j]?r(R):void 0;re&&re!==j&&(j=re,K=!1)}else j=r(R);if(!j){if(!K||(j=r(R),!j))return kl;K=!1}const $=x.length===0?"":x.length===1?x[0]:e(x).join(":"),z=k?$+Sw:$,Y=o(j,K),B=[];for(let J=0;J<Y.length;J++)B.push(m(z+Y[J]));return{isExternal:!1,classId:m(z+j),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 j=d.length;for(;j<x;)j*=2;d=new Uint8Array(j)}let R=!1,M=0;for(let j=x-1;j>=0;j-=1){const $=y[j];M+=$.length;const z=T($);if(z.isExternal){d[j]=1;continue}const Y=z.classId;if(c[Y]===k){d[j]=0,R=!0;continue}c[Y]=k;const B=z.conflictIds;for(let J=0;J<B.length;J++)c[B[J]]=k;d[j]=1}if(!R&&!f&&A.length===M+x-1)return A;let K="";for(let j=0;j<x;j++)d[j]===1&&(K&&(K+=" "),K+=y[j]);return K}}},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(ol(u));return c.mergeString=s,c},Lw=[],We=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),Qn=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),As=t=>Yn(t,Zh,qw),X=t=>Wh.test(t),ho=t=>Sr(t,qh),tC=t=>Sr(t,Yh),xd=t=>Sr(t,Kh),nC=t=>Sr(t,Gh),rC=t=>Sr(t,jh),Ts=t=>Sr(t,Zh,!0),oC=t=>Sr(t,Xh,!0),Yn=(t,e,n)=>{const r=Vh.exec(t);return r?r[1]?e(r[1]):n(r[2]):!1},Sr=(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=We("color"),e=We("font"),n=We("text"),r=We("font-weight"),o=We("tracking"),i=We("leading"),s=We("breakpoint"),a=We("container"),c=We("spacing"),u=We("radius"),d=We("shadow"),f=We("inset-shadow"),g=We("text-shadow"),b=We("drop-shadow"),v=We("blur"),m=We("perspective"),E=We("aspect"),T=We("ease"),O=We("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],K=()=>[An,"full","auto",...M()],j=()=>[zt,"none","subgrid",X,q],$=()=>["auto",{span:["full",zt,X,q]},zt,X,q],z=()=>[zt,"auto",X,q],Y=()=>["auto","min","max","fr",X,q],B=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],re=()=>["auto",...M()],ee=()=>[An,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...M()],ie=()=>[An,"screen","full","dvw","lvw","svw","min","max","fit",...M()],he=()=>[An,"screen","full","lh","dvh","lvh","svh","min","max","fit",...M()],_=()=>[t,X,q],de=()=>[...y(),xd,Cd,{position:[X,q]}],be=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",nC,Jw,{size:[X,q]}],Me=()=>[Al,ho,Qn],pe=()=>["","none","full",u,X,q],ve=()=>["",le,ho,Qn],we=()=>["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],H=()=>["","none",v,X,q],Re=()=>["none",le,X,q],rt=()=>["none",le,X,q],ht=()=>[le,X,q],Ge=()=>[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:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],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":j()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":z()}],"col-end":[{"col-end":z()}],"grid-rows":[{"grid-rows":j()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":z()}],"row-end":[{"row-end":z()}],"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":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...B()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":B()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],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:ee()}],"inline-size":[{inline:["auto",...ie()]}],"min-inline-size":[{"min-inline":["auto",...ie()]}],"max-inline-size":[{"max-inline":["none",...ie()]}],"block-size":[{block:["auto",...he()]}],"min-block-size":[{"min-block":["auto",...he()]}],"max-block-size":[{"max-block":["none",...he()]}],w:[{w:[a,"screen",...ee()]}],"min-w":[{"min-w":[a,"screen","none",...ee()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",n,ho,Qn]}],"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:_()}],"text-color":[{text:_()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[le,"from-font","auto",X,Qn]}],"text-decoration-color":[{decoration:_()}],"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:be()}],"bg-size":[{bg:W()}],"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:_()}],"gradient-from-pos":[{from:Me()}],"gradient-via-pos":[{via:Me()}],"gradient-to-pos":[{to:Me()}],"gradient-from":[{from:_()}],"gradient-via":[{via:_()}],"gradient-to":[{to:_()}],rounded:[{rounded:pe()}],"rounded-s":[{"rounded-s":pe()}],"rounded-e":[{"rounded-e":pe()}],"rounded-t":[{"rounded-t":pe()}],"rounded-r":[{"rounded-r":pe()}],"rounded-b":[{"rounded-b":pe()}],"rounded-l":[{"rounded-l":pe()}],"rounded-ss":[{"rounded-ss":pe()}],"rounded-se":[{"rounded-se":pe()}],"rounded-ee":[{"rounded-ee":pe()}],"rounded-es":[{"rounded-es":pe()}],"rounded-tl":[{"rounded-tl":pe()}],"rounded-tr":[{"rounded-tr":pe()}],"rounded-br":[{"rounded-br":pe()}],"rounded-bl":[{"rounded-bl":pe()}],"border-w":[{border:ve()}],"border-w-x":[{"border-x":ve()}],"border-w-y":[{"border-y":ve()}],"border-w-s":[{"border-s":ve()}],"border-w-e":[{"border-e":ve()}],"border-w-bs":[{"border-bs":ve()}],"border-w-be":[{"border-be":ve()}],"border-w-t":[{"border-t":ve()}],"border-w-r":[{"border-r":ve()}],"border-w-b":[{"border-b":ve()}],"border-w-l":[{"border-l":ve()}],"divide-x":[{"divide-x":ve()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ve()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:_()}],"border-color-x":[{"border-x":_()}],"border-color-y":[{"border-y":_()}],"border-color-s":[{"border-s":_()}],"border-color-e":[{"border-e":_()}],"border-color-bs":[{"border-bs":_()}],"border-color-be":[{"border-be":_()}],"border-color-t":[{"border-t":_()}],"border-color-r":[{"border-r":_()}],"border-color-b":[{"border-b":_()}],"border-color-l":[{"border-l":_()}],"divide-color":[{divide:_()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[le,X,q]}],"outline-w":[{outline:["",le,ho,Qn]}],"outline-color":[{outline:_()}],shadow:[{shadow:["","none",d,Ts,As]}],"shadow-color":[{shadow:_()}],"inset-shadow":[{"inset-shadow":["none",f,Ts,As]}],"inset-shadow-color":[{"inset-shadow":_()}],"ring-w":[{ring:ve()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:_()}],"ring-offset-w":[{"ring-offset":[le,Qn]}],"ring-offset-color":[{"ring-offset":_()}],"inset-ring-w":[{"inset-ring":ve()}],"inset-ring-color":[{"inset-ring":_()}],"text-shadow":[{"text-shadow":["none",g,Ts,As]}],"text-shadow-color":[{"text-shadow":_()}],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":_()}],"mask-image-linear-to-color":[{"mask-linear-to":_()}],"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":_()}],"mask-image-t-to-color":[{"mask-t-to":_()}],"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":_()}],"mask-image-r-to-color":[{"mask-r-to":_()}],"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":_()}],"mask-image-b-to-color":[{"mask-b-to":_()}],"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":_()}],"mask-image-l-to-color":[{"mask-l-to":_()}],"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":_()}],"mask-image-x-to-color":[{"mask-x-to":_()}],"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":_()}],"mask-image-y-to-color":[{"mask-y-to":_()}],"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":_()}],"mask-image-radial-to-color":[{"mask-radial-to":_()}],"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":_()}],"mask-image-conic-to-color":[{"mask-conic-to":_()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:be()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",X,q]}],filter:[{filter:["","none",X,q]}],blur:[{blur:H()}],brightness:[{brightness:[le,X,q]}],contrast:[{contrast:[le,X,q]}],"drop-shadow":[{"drop-shadow":["","none",b,Ts,As]}],"drop-shadow-color":[{"drop-shadow":_()}],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":H()}],"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:Re()}],"rotate-x":[{"rotate-x":Re()}],"rotate-y":[{"rotate-y":Re()}],"rotate-z":[{"rotate-z":Re()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:ht()}],"skew-x":[{"skew-x":ht()}],"skew-y":[{"skew-y":ht()}],transform:[{transform:[X,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ge()}],"translate-x":[{"translate-x":Ge()}],"translate-y":[{"translate-y":Ge()}],"translate-z":[{"translate-z":Ge()}],"translate-none":["translate-none"],zoom:[{zoom:[zt,X,q]}],accent:[{accent:_()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:_()}],"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":_()}],"scrollbar-track-color":[{"scrollbar-track":_()}],"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",..._()]}],"stroke-w":[{stroke:[le,ho,Qn,wd]}],stroke:[{stroke:["none",..._()]}],"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={}})=>(Es(t.theme,n.theme),Es(t.classGroups,n.classGroups),Es(t.conflictingClassGroups,n.conflictingClassGroups),Es(t.conflictingClassGroupModifiers,n.conflictingClassGroupModifiers),Cc(t,"postfixLookupClassGroups",n.postfixLookupClassGroups),Cc(t,"orderSensitiveModifiers",n.orderSensitiveModifiers),Os(t.theme,e.theme),Os(t.classGroups,e.classGroups),Os(t.conflictingClassGroups,e.conflictingClassGroups),Os(t.conflictingClassGroupModifiers,e.conflictingClassGroupModifiers),xc(t,e,"postfixLookupClassGroups"),xc(t,e,"orderSensitiveModifiers"),t),Cc=(t,e,n)=>{n!==void 0&&(t[e]=n)},Es=(t,e)=>{if(e)for(const n in e)Cc(t,n,e[n])},Os=(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(wt(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&&!wt(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)},Us,cC=()=>(Us||(Us=Jh()),Us),uC=()=>((!nt.cachedTwMerge||nt.didTwMergeConfigChange)&&(nt.didTwMergeConfigChange=!1,nt.cachedTwMerge=lC(nt.cachedTwMergeConfig)),nt.cachedTwMerge),dC=t=>{const e=t?.twMergeConfig;!e||wt(e)||Eh(e,nt.cachedTwMergeConfig)||(nt.cachedTwMergeConfig=e,nt.didTwMergeConfigChange=!0)},fC=t=>ol(t),hC=nt.reset.bind(nt);nt.reset=()=>{Us=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&&!wt(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/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 tr=class tr{constructor(){P(this,"subscribers",new Map([["second",new Set],["minute",new Set],["hour",new Set],["day",new Set]]));P(this,"intervals",new Map([["second",null],["minute",null],["hour",null],["day",null]]));P(this,"INTERVALS",{second:1e3,minute:60*1e3,hour:3600*1e3,day:1440*60*1e3})}static getInstance(){return tr.instance||(tr.instance=new tr),tr.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=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){const r=this.getBucket(e),o={callback:n,targetDate:e};return this.subscribers.get(r)?.add(o),this.ensureInterval(r),()=>{for(const[i,s]of this.subscribers)if(s.has(o)){s.delete(o),this.cleanupIntervalIfEmpty(i);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}};P(tr,"instance",null);let Sc=tr;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
10
|
import * as Tooltip from '$lib/components/ui/tooltip';
|
|
11
11
|
<\/script>
|
|
12
12
|
|